aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2010-04-26 19:38:36 -0700
committerGlenn Morris2010-04-26 19:38:36 -0700
commit7186fb09de6c3c4789aaa808a4f9af97b1cf14d4 (patch)
tree2ce0b96c3505b401c3ab22745530976ec48242b9
parentb678dd8b8e406bcb65375723b72f239263bf5347 (diff)
downloademacs-7186fb09de6c3c4789aaa808a4f9af97b1cf14d4.tar.gz
emacs-7186fb09de6c3c4789aaa808a4f9af97b1cf14d4.zip
Regenerate configure.
-rwxr-xr-xconfigure18949
1 files changed, 15716 insertions, 3233 deletions
diff --git a/configure b/configure
index 36d7ec0aa85..23b80837eb0 100755
--- a/configure
+++ b/configure
@@ -1,22 +1,18 @@
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 GNU Autoconf 2.65 for emacs 24.0.50. 3# Generated by GNU Autoconf 2.62 for emacs 24.0.50.
4#
5# 4#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
8# Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation 7# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it. 8# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ## 9## --------------------- ##
14## M4sh Initialization. ## 10## M4sh Initialization. ##
15## -------------------- ## 11## --------------------- ##
16 12
17# Be more Bourne compatible 13# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh 14DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 emulate sh 16 emulate sh
21 NULLCMD=: 17 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
@@ -24,15 +20,23 @@ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 alias -g '${1+"$@"}'='"$@"' 20 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST 21 setopt NO_GLOB_SUBST
26else 22else
27 case `(set -o) 2>/dev/null` in #( 23 case `(set -o) 2>/dev/null` in
28 *posix*) : 24 *posix*) set -o posix ;;
29 set -o posix ;; #(
30 *) :
31 ;;
32esac 25esac
26
33fi 27fi
34 28
35 29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
36as_nl=' 40as_nl='
37' 41'
38export as_nl 42export as_nl
@@ -40,13 +44,7 @@ export as_nl
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris, 47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n' 48 as_echo='printf %s\n'
51 as_echo_n='printf %s' 49 as_echo_n='printf %s'
52else 50else
@@ -57,7 +55,7 @@ else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval 56 as_echo_n_body='eval
59 arg=$1; 57 arg=$1;
60 case $arg in #( 58 case $arg in
61 *"$as_nl"*) 59 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl"; 60 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
@@ -80,6 +78,13 @@ if test "${PATH_SEPARATOR+set}" != set; then
80 } 78 }
81fi 79fi
82 80
81# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84else
85 as_unset=false
86fi
87
83 88
84# IFS 89# IFS
85# We need space, tab and new line, in precisely that order. Quoting is 90# We need space, tab and new line, in precisely that order. Quoting is
@@ -89,15 +94,15 @@ fi
89IFS=" "" $as_nl" 94IFS=" "" $as_nl"
90 95
91# Find who we are. Look in the path if we contain no directory separator. 96# Find who we are. Look in the path if we contain no directory separator.
92case $0 in #(( 97case $0 in
93 *[\\/]* ) as_myself=$0 ;; 98 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH 100for as_dir in $PATH
96do 101do
97 IFS=$as_save_IFS 102 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=. 103 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done 105done
101IFS=$as_save_IFS 106IFS=$as_save_IFS
102 107
103 ;; 108 ;;
@@ -109,16 +114,12 @@ if test "x$as_myself" = x; then
109fi 114fi
110if test ! -f "$as_myself"; then 115if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1 117 { (exit 1); exit 1; }
113fi 118fi
114 119
115# Unset variables that we do not need and which cause bugs (e.g. in 120# Work around bugs in pre-3.0 UWIN ksh.
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 121for as_var in ENV MAIL MAILPATH
117# suppresses any "Segmentation fault" message there. '((' could 122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done 123done
123PS1='$ ' 124PS1='$ '
124PS2='> ' 125PS2='> '
@@ -130,299 +131,330 @@ export LC_ALL
130LANGUAGE=C 131LANGUAGE=C
131export LANGUAGE 132export LANGUAGE
132 133
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138else
139 as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
150as_me=`$as_basename -- "$0" ||
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154$as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
133# CDPATH. 169# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 170$as_unset CDPATH
171
135 172
136if test "x$CONFIG_SHELL" = x; then 173if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 174 if (eval ":") 2>/dev/null; then
138 emulate sh 175 as_have_required=yes
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else 176else
145 case \`(set -o) 2>/dev/null\` in #( 177 as_have_required=no
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi 178fi
152" 179
153 as_required="as_fn_return () { (exit \$1); } 180 if test $as_have_required = yes && (eval ":
154as_fn_success () { as_fn_return 0; } 181(as_func_return () {
155as_fn_failure () { as_fn_return 1; } 182 (exit \$1)
156as_fn_ret_success () { return 0; } 183}
157as_fn_ret_failure () { return 1; } 184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
158 196
159exitcode=0 197exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; } 198if as_func_success; then
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 199 :
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else 200else
178 as_have_required=no 201 exitcode=1
202 echo as_func_success failed.
203fi
204
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
179fi 208fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 209
210if as_func_ret_success; then
211 :
182else 212else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 213 exitcode=1
184as_found=false 214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237 :
238else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do 242do
187 IFS=$as_save_IFS 243 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=. 244 test -z "$as_dir" && as_dir=.
189 as_found=: 245 case $as_dir in
190 case $as_dir in #(
191 /*) 246 /*)
192 for as_base in sh bash ksh sh5; do 247 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks. 248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200fi
201fi
202 done;; 249 done;;
203 esac 250 esac
204 as_found=false
205done 251done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS 252IFS=$as_save_IFS
211 253
212 254
213 if test "x$CONFIG_SHELL" != x; then : 255 for as_shell in $as_candidate_shells $SHELL; do
214 # We cannot yet assume a decent shell, so we have to provide a 256 # Try only shells that exist, to save several forks.
215 # neutralization value for shells without unset; and this also 257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216 # works around shells that cannot unset nonexistent variables. 258 { ("$as_shell") 2> /dev/null <<\_ASEOF
217 BASH_ENV=/dev/null 259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
218 ENV=/dev/null 260 emulate sh
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 261 NULLCMD=:
220 export CONFIG_SHELL 262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 263 # is contrary to our usage. Disable this feature.
222fi 264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
223 270
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235 fi
236 exit 1
237fi
238fi 271fi
272
273
274:
275_ASEOF
276}; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
239fi 292fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245 293
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254 { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257 294
258# as_fn_set_status STATUS 295:
259# ----------------------- 296(as_func_return () {
260# Set $? to STATUS, without forking. 297 (exit $1)
261as_fn_set_status () 298}
262{ 299as_func_success () {
263 return $1 300 as_func_return 0
264} # as_fn_set_status 301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
265 311
266# as_fn_exit STATUS 312exitcode=0
267# ----------------- 313if as_func_success; then
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 314 :
269as_fn_exit () 315else
270{ 316 exitcode=1
271 set +e 317 echo as_func_success failed.
272 as_fn_set_status $1 318fi
273 exit $1
274} # as_fn_exit
275 319
276# as_fn_mkdir_p 320if as_func_failure; then
277# ------------- 321 exitcode=1
278# Create "$as_dir" as a directory, including parents if necessary. 322 echo as_func_failure succeeded.
279as_fn_mkdir_p () 323fi
280{
281 324
282 case $as_dir in #( 325if as_func_ret_success; then
283 -*) as_dir=./$as_dir;; 326 :
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334else 327else
335 as_fn_append () 328 exitcode=1
336 { 329 echo as_func_ret_success failed.
337 eval $1=\$$1\$2 330fi
338 } 331
339fi # as_fn_append 332if as_func_ret_failure; then
340 333 exitcode=1
341# as_fn_arith ARG... 334 echo as_func_ret_failure succeeded.
342# ------------------ 335fi
343# Perform arithmetic evaluation on the ARGs, and store the result in the 336
344# global $as_val. Take advantage of shells that can avoid forks. The arguments 337if ( set x; as_func_ret_success y && test x = "$1" ); then
345# must be portable across $(()) and expr. 338 :
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351else 339else
352 as_fn_arith () 340 exitcode=1
353 { 341 echo positional parameters were not saved.
354 as_val=`expr "$@" || test $? -eq 1` 342fi
355 }
356fi # as_fn_arith
357 343
344test $exitcode = 0) || { (exit 1); exit 1; }
358 345
359# as_fn_error ERROR [LINENO LOG_FD] 346(
360# --------------------------------- 347 as_lineno_1=$LINENO
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 348 as_lineno_2=$LINENO
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 349 test "x$as_lineno_1" != "x$as_lineno_2" &&
363# script with status $?, using 1 if that was 0. 350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
364as_fn_error ()
365{
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373} # as_fn_error
374 351
375if expr a : '\(a\)' >/dev/null 2>&1 && 352_ASEOF
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then 353}; then
377 as_expr=expr 354 break
355fi
356
357fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
378else 404else
379 as_expr=false 405 exitcode=1
406 echo as_func_success failed.
380fi 407fi
381 408
382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 409if as_func_failure; then
383 as_basename=basename 410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
384else 416else
385 as_basename=false 417 exitcode=1
418 echo as_func_ret_success failed.
386fi 419fi
387 420
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 421if as_func_ret_failure; then
389 as_dirname=dirname 422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
390else 428else
391 as_dirname=false 429 exitcode=1
430 echo positional parameters were not saved.
392fi 431fi
393 432
394as_me=`$as_basename -- "$0" || 433test \$exitcode = 0") || {
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 434 echo No shell found that supports shell functions.
396 X"$0" : 'X\(//\)$' \| \ 435 echo Please tell bug-autoconf@gnu.org about your system,
397 X"$0" : 'X\(/\)' \| . 2>/dev/null || 436 echo including any error possibly output before this message.
398$as_echo X/"$0" | 437 echo This can help us improve future autoconf versions.
399 sed '/^.*\/\([^/][^/]*\)\/*$/{ 438 echo Configuration will now proceed without shell functions.
400 s//\1/ 439}
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412 440
413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
419 441
420 442
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO 443 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO 444 as_lineno_2=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 445 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n ' 458 sed -n '
427 p 459 p
428 /[$]LINENO/= 460 /[$]LINENO/=
@@ -439,7 +471,8 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
439 s/-\n.*// 471 s/-\n.*//
440 ' >$as_me.lineno && 472 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" || 473 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
443 476
444 # Don't try to exec as it changes $[0], causing all sort of problems 477 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the 478 # (the dirname of $[0] is not the place where we might find the
@@ -449,18 +482,29 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
449 exit 482 exit
450} 483}
451 484
485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
452ECHO_C= ECHO_N= ECHO_T= 492ECHO_C= ECHO_N= ECHO_T=
453case `echo -n x` in #((((( 493case `echo -n x` in
454-n*) 494-n*)
455 case `echo 'xy\c'` in 495 case `echo 'x\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';; 497 *) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;; 498 esac;;
461*) 499*)
462 ECHO_N='-n';; 500 ECHO_N='-n';;
463esac 501esac
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505else
506 as_expr=false
507fi
464 508
465rm -f conf$$ conf$$.exe conf$$.file 509rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then 510if test -d conf$$.dir; then
@@ -490,7 +534,7 @@ rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null 534rmdir conf$$.dir 2>/dev/null
491 535
492if mkdir -p . 2>/dev/null; then 536if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"' 537 as_mkdir_p=:
494else 538else
495 test -d ./-p && rmdir ./-p 539 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false 540 as_mkdir_p=false
@@ -509,10 +553,10 @@ else
509 if test -d "$1"; then 553 if test -d "$1"; then
510 test -d "$1/."; 554 test -d "$1/.";
511 else 555 else
512 case $1 in #( 556 case $1 in
513 -*)set "./$1";; 557 -*)set "./$1";;
514 esac; 558 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
516 ???[sx]*):;;*)false;;esac;fi 560 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh 561 '\'' sh
518 ' 562 '
@@ -526,8 +570,8 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 571
528 572
529test -n "$DJDIR" || exec 7<&0 </dev/null 573
530exec 6>&1 574exec 7<&0 </dev/null 6>&1
531 575
532# Name of the host. 576# Name of the host.
533# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 577# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
@@ -545,6 +589,7 @@ cross_compiling=no
545subdirs= 589subdirs=
546MFLAGS= 590MFLAGS=
547MAKEFLAGS= 591MAKEFLAGS=
592SHELL=${CONFIG_SHELL-/bin/sh}
548 593
549# Identity of this package. 594# Identity of this package.
550PACKAGE_NAME='emacs' 595PACKAGE_NAME='emacs'
@@ -552,7 +597,6 @@ PACKAGE_TARNAME='emacs'
552PACKAGE_VERSION='24.0.50' 597PACKAGE_VERSION='24.0.50'
553PACKAGE_STRING='emacs 24.0.50' 598PACKAGE_STRING='emacs 24.0.50'
554PACKAGE_BUGREPORT='' 599PACKAGE_BUGREPORT=''
555PACKAGE_URL=''
556 600
557ac_unique_file="src/lisp.h" 601ac_unique_file="src/lisp.h"
558# Factoring default headers for most tests. 602# Factoring default headers for most tests.
@@ -594,159 +638,161 @@ ac_includes_default="\
594ac_config_libobj_dir=src 638ac_config_libobj_dir=src
595ac_header_list= 639ac_header_list=
596ac_func_list= 640ac_func_list=
597ac_subst_vars='LTLIBOBJS 641ac_subst_vars='SHELL
598XOBJ
599XMENU_OBJ
600OTHER_FILES
601LIB_SRC_EXTRA_INSTALLABLES
602GNU_OBJC_CFLAGS
603GNUSTEP_SYSTEM_LIBRARIES
604GNUSTEP_SYSTEM_HEADERS
605GNUSTEP_MAKEFILES
606ns_appsrc
607ns_appresdir
608ns_appbindir
609ns_appdir
610opsysfile
611machfile
612X_TOOLKIT_TYPE
613C_SWITCH_X_SITE
614LD_SWITCH_X_SITE_AUX
615LD_SWITCH_X_SITE
616c_switch_machine
617c_switch_system
618gameuser
619gamedir
620bitmapdir
621archlibdir
622etcdir
623x_default_search_path
624lisppath
625locallisppath
626lispdir
627srcdir
628canonical
629configuration
630version
631KRB4LIB
632DESLIB
633KRB5LIB
634CRYPTOLIB
635COM_ERRLIB
636LIBRESOLV
637LIBHESIOD
638GETOPTOBJS
639GETOPT_H
640GETLOADAVG_LIBS
641KMEM_GROUP
642NEED_SETGID
643LIBOBJS
644LIBS_MAIL
645liblockfile
646ALLOCA
647LIBXSM
648LIBGPM
649LIBGIF
650LIBTIFF
651LIBPNG
652LIBJPEG
653LIBXPM
654FREETYPE_LIBS
655FREETYPE_CFLAGS
656M17N_FLT_LIBS
657M17N_FLT_CFLAGS
658LIBOTF_LIBS
659LIBOTF_CFLAGS
660XFT_LIBS
661XFT_CFLAGS
662FONTCONFIG_LIBS
663FONTCONFIG_CFLAGS
664LIBSELINUX_LIBS
665GCONF_LIBS
666GCONF_CFLAGS
667DBUS_OBJ
668DBUS_LIBS
669DBUS_CFLAGS
670GTK_OBJ
671GTK_LIBS
672GTK_CFLAGS
673RSVG_LIBS
674RSVG_CFLAGS
675HAVE_XSERVER
676XMKMF
677SET_MAKE
678CFLAGS_SOUND
679ALSA_LIBS
680ALSA_CFLAGS
681PKG_CONFIG
682LIBSOUND
683CRT_DIR
684LIB_MATH
685MAKEINFO
686GZIP_PROG
687INSTALL_INFO
688RANLIB
689INSTALL_DATA
690INSTALL_SCRIPT
691INSTALL_PROGRAM
692LN_S
693EGREP
694GREP
695CPP
696OBJEXT
697EXEEXT
698ac_ct_CC
699CPPFLAGS
700LDFLAGS
701CFLAGS
702CC
703host_os
704host_vendor
705host_cpu
706host
707build_os
708build_vendor
709build_cpu
710build
711MAINT
712target_alias
713host_alias
714build_alias
715LIBS
716ECHO_T
717ECHO_N
718ECHO_C
719DEFS
720mandir
721localedir
722libdir
723psdir
724pdfdir
725dvidir
726htmldir
727infodir
728docdir
729oldincludedir
730includedir
731localstatedir
732sharedstatedir
733sysconfdir
734datadir
735datarootdir
736libexecdir
737sbindir
738bindir
739program_transform_name
740prefix
741exec_prefix
742PACKAGE_URL
743PACKAGE_BUGREPORT
744PACKAGE_STRING
745PACKAGE_VERSION
746PACKAGE_TARNAME
747PACKAGE_NAME
748PATH_SEPARATOR 642PATH_SEPARATOR
749SHELL' 643PACKAGE_NAME
644PACKAGE_TARNAME
645PACKAGE_VERSION
646PACKAGE_STRING
647PACKAGE_BUGREPORT
648exec_prefix
649prefix
650program_transform_name
651bindir
652sbindir
653libexecdir
654datarootdir
655datadir
656sysconfdir
657sharedstatedir
658localstatedir
659includedir
660oldincludedir
661docdir
662infodir
663htmldir
664dvidir
665pdfdir
666psdir
667libdir
668localedir
669mandir
670DEFS
671ECHO_C
672ECHO_N
673ECHO_T
674LIBS
675build_alias
676host_alias
677target_alias
678MAINT
679build
680build_cpu
681build_vendor
682build_os
683host
684host_cpu
685host_vendor
686host_os
687CC
688CFLAGS
689LDFLAGS
690CPPFLAGS
691ac_ct_CC
692EXEEXT
693OBJEXT
694CPP
695GREP
696EGREP
697LN_S
698INSTALL_PROGRAM
699INSTALL_SCRIPT
700INSTALL_DATA
701RANLIB
702INSTALL_INFO
703GZIP_PROG
704MAKEINFO
705LIB_MATH
706CRT_DIR
707LIBSOUND
708PKG_CONFIG
709ALSA_CFLAGS
710ALSA_LIBS
711CFLAGS_SOUND
712SET_MAKE
713XMKMF
714HAVE_XSERVER
715RSVG_CFLAGS
716RSVG_LIBS
717GTK_CFLAGS
718GTK_LIBS
719GTK_OBJ
720DBUS_CFLAGS
721DBUS_LIBS
722DBUS_OBJ
723GCONF_CFLAGS
724GCONF_LIBS
725LIBSELINUX_LIBS
726LUCID_LIBW
727LIBXP
728FONTCONFIG_CFLAGS
729FONTCONFIG_LIBS
730XFT_CFLAGS
731XFT_LIBS
732LIBOTF_CFLAGS
733LIBOTF_LIBS
734M17N_FLT_CFLAGS
735M17N_FLT_LIBS
736FREETYPE_CFLAGS
737FREETYPE_LIBS
738LIBXPM
739LIBJPEG
740LIBPNG
741LIBTIFF
742LIBGIF
743LIBGPM
744LIBXSM
745ALLOCA
746liblockfile
747LIBS_MAIL
748LIBOBJS
749NEED_SETGID
750KMEM_GROUP
751GETLOADAVG_LIBS
752GETOPT_H
753GETOPTOBJS
754LIBHESIOD
755LIBRESOLV
756COM_ERRLIB
757CRYPTOLIB
758KRB5LIB
759DESLIB
760KRB4LIB
761version
762configuration
763canonical
764srcdir
765lispdir
766locallisppath
767lisppath
768x_default_search_path
769etcdir
770archlibdir
771bitmapdir
772gamedir
773gameuser
774c_switch_system
775c_switch_machine
776LD_SWITCH_X_SITE
777LD_SWITCH_X_SITE_AUX
778C_SWITCH_X_SITE
779X_TOOLKIT_TYPE
780machfile
781opsysfile
782ns_appdir
783ns_appbindir
784ns_appresdir
785ns_appsrc
786GNUSTEP_MAKEFILES
787GNUSTEP_SYSTEM_HEADERS
788GNUSTEP_SYSTEM_LIBRARIES
789GNU_OBJC_CFLAGS
790LIB_SRC_EXTRA_INSTALLABLES
791OTHER_FILES
792XMENU_OBJ
793XOBJ
794WIDGET_OBJ
795LTLIBOBJS'
750ac_subst_files='' 796ac_subst_files=''
751ac_user_opts=' 797ac_user_opts='
752enable_option_checking 798enable_option_checking
@@ -911,7 +957,8 @@ do
911 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 957 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
912 # Reject names that are not valid shell variable names. 958 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error "invalid feature name: $ac_useropt" 960 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
961 { (exit 1); exit 1; }; }
915 ac_useropt_orig=$ac_useropt 962 ac_useropt_orig=$ac_useropt
916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in 964 case $ac_user_opts in
@@ -937,7 +984,8 @@ do
937 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 984 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938 # Reject names that are not valid shell variable names. 985 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error "invalid feature name: $ac_useropt" 987 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
988 { (exit 1); exit 1; }; }
941 ac_useropt_orig=$ac_useropt 989 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in 991 case $ac_user_opts in
@@ -1141,7 +1189,8 @@ do
1141 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1189 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142 # Reject names that are not valid shell variable names. 1190 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error "invalid package name: $ac_useropt" 1192 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1193 { (exit 1); exit 1; }; }
1145 ac_useropt_orig=$ac_useropt 1194 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in 1196 case $ac_user_opts in
@@ -1157,7 +1206,8 @@ do
1157 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1206 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158 # Reject names that are not valid shell variable names. 1207 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 as_fn_error "invalid package name: $ac_useropt" 1209 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1210 { (exit 1); exit 1; }; }
1161 ac_useropt_orig=$ac_useropt 1211 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1212 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in 1213 case $ac_user_opts in
@@ -1187,17 +1237,17 @@ do
1187 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1237 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1188 x_libraries=$ac_optarg ;; 1238 x_libraries=$ac_optarg ;;
1189 1239
1190 -*) as_fn_error "unrecognized option: \`$ac_option' 1240 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1191Try \`$0 --help' for more information." 1241Try \`$0 --help' for more information." >&2
1242 { (exit 1); exit 1; }; }
1192 ;; 1243 ;;
1193 1244
1194 *=*) 1245 *=*)
1195 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1246 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196 # Reject names that are not valid shell variable names. 1247 # Reject names that are not valid shell variable names.
1197 case $ac_envvar in #( 1248 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1198 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1249 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1199 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1250 { (exit 1); exit 1; }; }
1200 esac
1201 eval $ac_envvar=\$ac_optarg 1251 eval $ac_envvar=\$ac_optarg
1202 export $ac_envvar ;; 1252 export $ac_envvar ;;
1203 1253
@@ -1214,14 +1264,16 @@ done
1214 1264
1215if test -n "$ac_prev"; then 1265if test -n "$ac_prev"; then
1216 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1266 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1217 as_fn_error "missing argument to $ac_option" 1267 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1268 { (exit 1); exit 1; }; }
1218fi 1269fi
1219 1270
1220if test -n "$ac_unrecognized_opts"; then 1271if test -n "$ac_unrecognized_opts"; then
1221 case $enable_option_checking in 1272 case $enable_option_checking in
1222 no) ;; 1273 no) ;;
1223 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1274 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1224 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1275 { (exit 1); exit 1; }; } ;;
1276 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225 esac 1277 esac
1226fi 1278fi
1227 1279
@@ -1243,7 +1295,8 @@ do
1243 [\\/$]* | ?:[\\/]* ) continue;; 1295 [\\/$]* | ?:[\\/]* ) continue;;
1244 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245 esac 1297 esac
1246 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1298 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1299 { (exit 1); exit 1; }; }
1247done 1300done
1248 1301
1249# There might be people who depend on the old broken behavior: `$host' 1302# There might be people who depend on the old broken behavior: `$host'
@@ -1273,9 +1326,11 @@ test "$silent" = yes && exec 6>/dev/null
1273ac_pwd=`pwd` && test -n "$ac_pwd" && 1326ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274ac_ls_di=`ls -di .` && 1327ac_ls_di=`ls -di .` &&
1275ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1328ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276 as_fn_error "working directory cannot be determined" 1329 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1330 { (exit 1); exit 1; }; }
1277test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1331test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1278 as_fn_error "pwd does not report name of working directory" 1332 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1333 { (exit 1); exit 1; }; }
1279 1334
1280 1335
1281# Find the source files, if location was not specified. 1336# Find the source files, if location was not specified.
@@ -1314,11 +1369,13 @@ else
1314fi 1369fi
1315if test ! -r "$srcdir/$ac_unique_file"; then 1370if test ! -r "$srcdir/$ac_unique_file"; then
1316 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1317 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1372 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1373 { (exit 1); exit 1; }; }
1318fi 1374fi
1319ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1375ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1320ac_abs_confdir=`( 1376ac_abs_confdir=`(
1321 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1377 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1378 { (exit 1); exit 1; }; }
1322 pwd)` 1379 pwd)`
1323# When building in place, set srcdir=. 1380# When building in place, set srcdir=.
1324if test "$ac_abs_confdir" = "$ac_pwd"; then 1381if test "$ac_abs_confdir" = "$ac_pwd"; then
@@ -1498,7 +1555,7 @@ Some influential environment variables:
1498 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1555 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1499 nonstandard directory <lib dir> 1556 nonstandard directory <lib dir>
1500 LIBS libraries to pass to the linker, e.g. -l<library> 1557 LIBS libraries to pass to the linker, e.g. -l<library>
1501 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1558 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1502 you have headers in a nonstandard directory <include dir> 1559 you have headers in a nonstandard directory <include dir>
1503 CPP C preprocessor 1560 CPP C preprocessor
1504 XMKMF Path to xmkmf, Makefile generator for X Window System 1561 XMKMF Path to xmkmf, Makefile generator for X Window System
@@ -1506,7 +1563,6 @@ Some influential environment variables:
1506Use these variables to override the choices made by `configure' or to help 1563Use these variables to override the choices made by `configure' or to help
1507it to find libraries and programs with nonstandard names/locations. 1564it to find libraries and programs with nonstandard names/locations.
1508 1565
1509Report bugs to the package provider.
1510_ACEOF 1566_ACEOF
1511ac_status=$? 1567ac_status=$?
1512fi 1568fi
@@ -1570,551 +1626,21 @@ test -n "$ac_init_help" && exit $ac_status
1570if $ac_init_version; then 1626if $ac_init_version; then
1571 cat <<\_ACEOF 1627 cat <<\_ACEOF
1572emacs configure 24.0.50 1628emacs configure 24.0.50
1573generated by GNU Autoconf 2.65 1629generated by GNU Autoconf 2.62
1574 1630
1575Copyright (C) 2009 Free Software Foundation, Inc. 1631Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16322002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1576This configure script is free software; the Free Software Foundation 1633This configure script is free software; the Free Software Foundation
1577gives unlimited permission to copy, distribute and modify it. 1634gives unlimited permission to copy, distribute and modify it.
1578_ACEOF 1635_ACEOF
1579 exit 1636 exit
1580fi 1637fi
1581
1582## ------------------------ ##
1583## Autoconf initialization. ##
1584## ------------------------ ##
1585
1586# ac_fn_c_try_compile LINENO
1587# --------------------------
1588# Try to compile conftest.$ac_ext, and return whether this succeeded.
1589ac_fn_c_try_compile ()
1590{
1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592 rm -f conftest.$ac_objext
1593 if { { ac_try="$ac_compile"
1594case "(($ac_try" in
1595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596 *) ac_try_echo=$ac_try;;
1597esac
1598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599$as_echo "$ac_try_echo"; } >&5
1600 (eval "$ac_compile") 2>conftest.err
1601 ac_status=$?
1602 if test -s conftest.err; then
1603 grep -v '^ *+' conftest.err >conftest.er1
1604 cat conftest.er1 >&5
1605 mv -f conftest.er1 conftest.err
1606 fi
1607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608 test $ac_status = 0; } && {
1609 test -z "$ac_c_werror_flag" ||
1610 test ! -s conftest.err
1611 } && test -s conftest.$ac_objext; then :
1612 ac_retval=0
1613else
1614 $as_echo "$as_me: failed program was:" >&5
1615sed 's/^/| /' conftest.$ac_ext >&5
1616
1617 ac_retval=1
1618fi
1619 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1620 as_fn_set_status $ac_retval
1621
1622} # ac_fn_c_try_compile
1623
1624# ac_fn_c_try_link LINENO
1625# -----------------------
1626# Try to link conftest.$ac_ext, and return whether this succeeded.
1627ac_fn_c_try_link ()
1628{
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 rm -f conftest.$ac_objext conftest$ac_exeext
1631 if { { ac_try="$ac_link"
1632case "(($ac_try" in
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1635esac
1636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637$as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_link") 2>conftest.err
1639 ac_status=$?
1640 if test -s conftest.err; then
1641 grep -v '^ *+' conftest.err >conftest.er1
1642 cat conftest.er1 >&5
1643 mv -f conftest.er1 conftest.err
1644 fi
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } && {
1647 test -z "$ac_c_werror_flag" ||
1648 test ! -s conftest.err
1649 } && test -s conftest$ac_exeext && {
1650 test "$cross_compiling" = yes ||
1651 $as_test_x conftest$ac_exeext
1652 }; then :
1653 ac_retval=0
1654else
1655 $as_echo "$as_me: failed program was:" >&5
1656sed 's/^/| /' conftest.$ac_ext >&5
1657
1658 ac_retval=1
1659fi
1660 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1661 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1662 # interfere with the next link command; also delete a directory that is
1663 # left behind by Apple's compiler. We do this before executing the actions.
1664 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1665 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1666 as_fn_set_status $ac_retval
1667
1668} # ac_fn_c_try_link
1669
1670# ac_fn_c_try_cpp LINENO
1671# ----------------------
1672# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1673ac_fn_c_try_cpp ()
1674{
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 if { { ac_try="$ac_cpp conftest.$ac_ext"
1677case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680esac
1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682$as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1689 fi
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } >/dev/null && {
1692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 }; then :
1695 ac_retval=0
1696else
1697 $as_echo "$as_me: failed program was:" >&5
1698sed 's/^/| /' conftest.$ac_ext >&5
1699
1700 ac_retval=1
1701fi
1702 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1703 as_fn_set_status $ac_retval
1704
1705} # ac_fn_c_try_cpp
1706
1707# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1708# -------------------------------------------------------
1709# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1710# the include files in INCLUDES and setting the cache variable VAR
1711# accordingly.
1712ac_fn_c_check_header_mongrel ()
1713{
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717$as_echo_n "checking for $2... " >&6; }
1718if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1719 $as_echo_n "(cached) " >&6
1720fi
1721eval ac_res=\$$3
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1723$as_echo "$ac_res" >&6; }
1724else
1725 # Is the header compilable?
1726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1727$as_echo_n "checking $2 usability... " >&6; }
1728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729/* end confdefs.h. */
1730$4
1731#include <$2>
1732_ACEOF
1733if ac_fn_c_try_compile "$LINENO"; then :
1734 ac_header_compiler=yes
1735else
1736 ac_header_compiler=no
1737fi
1738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1740$as_echo "$ac_header_compiler" >&6; }
1741
1742# Is the header present?
1743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1744$as_echo_n "checking $2 presence... " >&6; }
1745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746/* end confdefs.h. */
1747#include <$2>
1748_ACEOF
1749if ac_fn_c_try_cpp "$LINENO"; then :
1750 ac_header_preproc=yes
1751else
1752 ac_header_preproc=no
1753fi
1754rm -f conftest.err conftest.$ac_ext
1755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1756$as_echo "$ac_header_preproc" >&6; }
1757
1758# So? What about this header?
1759case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1760 yes:no: )
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1762$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1764$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1765 ;;
1766 no:yes:* )
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1768$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1770$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1772$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1774$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1776$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1777 ;;
1778esac
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780$as_echo_n "checking for $2... " >&6; }
1781if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1782 $as_echo_n "(cached) " >&6
1783else
1784 eval "$3=\$ac_header_compiler"
1785fi
1786eval ac_res=\$$3
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788$as_echo "$ac_res" >&6; }
1789fi
1790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1791
1792} # ac_fn_c_check_header_mongrel
1793
1794# ac_fn_c_try_run LINENO
1795# ----------------------
1796# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1797# that executables *can* be run.
1798ac_fn_c_try_run ()
1799{
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 if { { ac_try="$ac_link"
1802case "(($ac_try" in
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1805esac
1806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807$as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_link") 2>&5
1809 ac_status=$?
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1812 { { case "(($ac_try" in
1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1815esac
1816eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817$as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_try") 2>&5
1819 ac_status=$?
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; }; }; then :
1822 ac_retval=0
1823else
1824 $as_echo "$as_me: program exited with status $ac_status" >&5
1825 $as_echo "$as_me: failed program was:" >&5
1826sed 's/^/| /' conftest.$ac_ext >&5
1827
1828 ac_retval=$ac_status
1829fi
1830 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1831 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1832 as_fn_set_status $ac_retval
1833
1834} # ac_fn_c_try_run
1835
1836# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1837# -------------------------------------------------------
1838# Tests whether HEADER exists and can be compiled using the include files in
1839# INCLUDES, setting the cache variable VAR accordingly.
1840ac_fn_c_check_header_compile ()
1841{
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844$as_echo_n "checking for $2... " >&6; }
1845if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1846 $as_echo_n "(cached) " >&6
1847else
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849/* end confdefs.h. */
1850$4
1851#include <$2>
1852_ACEOF
1853if ac_fn_c_try_compile "$LINENO"; then :
1854 eval "$3=yes"
1855else
1856 eval "$3=no"
1857fi
1858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1859fi
1860eval ac_res=\$$3
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862$as_echo "$ac_res" >&6; }
1863 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1864
1865} # ac_fn_c_check_header_compile
1866
1867# ac_fn_c_check_header_preproc LINENO HEADER VAR
1868# ----------------------------------------------
1869# Tests whether HEADER is present, setting the cache variable VAR accordingly.
1870ac_fn_c_check_header_preproc ()
1871{
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874$as_echo_n "checking for $2... " >&6; }
1875if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1876 $as_echo_n "(cached) " >&6
1877else
1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879/* end confdefs.h. */
1880#include <$2>
1881_ACEOF
1882if ac_fn_c_try_cpp "$LINENO"; then :
1883 eval "$3=yes"
1884else
1885 eval "$3=no"
1886fi
1887rm -f conftest.err conftest.$ac_ext
1888fi
1889eval ac_res=\$$3
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891$as_echo "$ac_res" >&6; }
1892 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1893
1894} # ac_fn_c_check_header_preproc
1895
1896# ac_fn_c_check_decl LINENO SYMBOL VAR
1897# ------------------------------------
1898# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1899ac_fn_c_check_decl ()
1900{
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1903$as_echo_n "checking whether $2 is declared... " >&6; }
1904if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1905 $as_echo_n "(cached) " >&6
1906else
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908/* end confdefs.h. */
1909$4
1910int
1911main ()
1912{
1913#ifndef $2
1914 (void) $2;
1915#endif
1916
1917 ;
1918 return 0;
1919}
1920_ACEOF
1921if ac_fn_c_try_compile "$LINENO"; then :
1922 eval "$3=yes"
1923else
1924 eval "$3=no"
1925fi
1926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927fi
1928eval ac_res=\$$3
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930$as_echo "$ac_res" >&6; }
1931 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1932
1933} # ac_fn_c_check_decl
1934
1935# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1936# ----------------------------------------------------
1937# Tries to find if the field MEMBER exists in type AGGR, after including
1938# INCLUDES, setting cache variable VAR accordingly.
1939ac_fn_c_check_member ()
1940{
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1943$as_echo_n "checking for $2.$3... " >&6; }
1944if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1945 $as_echo_n "(cached) " >&6
1946else
1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948/* end confdefs.h. */
1949$5
1950int
1951main ()
1952{
1953static $2 ac_aggr;
1954if (ac_aggr.$3)
1955return 0;
1956 ;
1957 return 0;
1958}
1959_ACEOF
1960if ac_fn_c_try_compile "$LINENO"; then :
1961 eval "$4=yes"
1962else
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964/* end confdefs.h. */
1965$5
1966int
1967main ()
1968{
1969static $2 ac_aggr;
1970if (sizeof ac_aggr.$3)
1971return 0;
1972 ;
1973 return 0;
1974}
1975_ACEOF
1976if ac_fn_c_try_compile "$LINENO"; then :
1977 eval "$4=yes"
1978else
1979 eval "$4=no"
1980fi
1981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982fi
1983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984fi
1985eval ac_res=\$$4
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987$as_echo "$ac_res" >&6; }
1988 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1989
1990} # ac_fn_c_check_member
1991
1992# ac_fn_c_check_func LINENO FUNC VAR
1993# ----------------------------------
1994# Tests whether FUNC exists, setting the cache variable VAR accordingly
1995ac_fn_c_check_func ()
1996{
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999$as_echo_n "checking for $2... " >&6; }
2000if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2001 $as_echo_n "(cached) " >&6
2002else
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004/* end confdefs.h. */
2005/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2007#define $2 innocuous_$2
2008
2009/* System header to define __stub macros and hopefully few prototypes,
2010 which can conflict with char $2 (); below.
2011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2012 <limits.h> exists even on freestanding compilers. */
2013
2014#ifdef __STDC__
2015# include <limits.h>
2016#else
2017# include <assert.h>
2018#endif
2019
2020#undef $2
2021
2022/* Override any GCC internal prototype to avoid an error.
2023 Use char because int might match the return type of a GCC
2024 builtin and then its argument prototype would still apply. */
2025#ifdef __cplusplus
2026extern "C"
2027#endif
2028char $2 ();
2029/* The GNU C library defines this for functions which it implements
2030 to always fail with ENOSYS. Some functions are actually named
2031 something starting with __ and the normal name is an alias. */
2032#if defined __stub_$2 || defined __stub___$2
2033choke me
2034#endif
2035
2036int
2037main ()
2038{
2039return $2 ();
2040 ;
2041 return 0;
2042}
2043_ACEOF
2044if ac_fn_c_try_link "$LINENO"; then :
2045 eval "$3=yes"
2046else
2047 eval "$3=no"
2048fi
2049rm -f core conftest.err conftest.$ac_objext \
2050 conftest$ac_exeext conftest.$ac_ext
2051fi
2052eval ac_res=\$$3
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054$as_echo "$ac_res" >&6; }
2055 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2056
2057} # ac_fn_c_check_func
2058
2059# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2060# -------------------------------------------
2061# Tests whether TYPE exists after having included INCLUDES, setting cache
2062# variable VAR accordingly.
2063ac_fn_c_check_type ()
2064{
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2067$as_echo_n "checking for $2... " >&6; }
2068if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2069 $as_echo_n "(cached) " >&6
2070else
2071 eval "$3=no"
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073/* end confdefs.h. */
2074$4
2075int
2076main ()
2077{
2078if (sizeof ($2))
2079 return 0;
2080 ;
2081 return 0;
2082}
2083_ACEOF
2084if ac_fn_c_try_compile "$LINENO"; then :
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086/* end confdefs.h. */
2087$4
2088int
2089main ()
2090{
2091if (sizeof (($2)))
2092 return 0;
2093 ;
2094 return 0;
2095}
2096_ACEOF
2097if ac_fn_c_try_compile "$LINENO"; then :
2098
2099else
2100 eval "$3=yes"
2101fi
2102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103fi
2104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105fi
2106eval ac_res=\$$3
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108$as_echo "$ac_res" >&6; }
2109 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2110
2111} # ac_fn_c_check_type
2112cat >config.log <<_ACEOF 1638cat >config.log <<_ACEOF
2113This file contains any messages produced by compilers while 1639This file contains any messages produced by compilers while
2114running configure, to aid debugging if configure makes a mistake. 1640running configure, to aid debugging if configure makes a mistake.
2115 1641
2116It was created by emacs $as_me 24.0.50, which was 1642It was created by emacs $as_me 24.0.50, which was
2117generated by GNU Autoconf 2.65. Invocation command line was 1643generated by GNU Autoconf 2.62. Invocation command line was
2118 1644
2119 $ $0 $@ 1645 $ $0 $@
2120 1646
@@ -2150,8 +1676,8 @@ for as_dir in $PATH
2150do 1676do
2151 IFS=$as_save_IFS 1677 IFS=$as_save_IFS
2152 test -z "$as_dir" && as_dir=. 1678 test -z "$as_dir" && as_dir=.
2153 $as_echo "PATH: $as_dir" 1679 $as_echo "PATH: $as_dir"
2154 done 1680done
2155IFS=$as_save_IFS 1681IFS=$as_save_IFS
2156 1682
2157} >&5 1683} >&5
@@ -2188,9 +1714,9 @@ do
2188 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1714 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2189 esac 1715 esac
2190 case $ac_pass in 1716 case $ac_pass in
2191 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1717 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2192 2) 1718 2)
2193 as_fn_append ac_configure_args1 " '$ac_arg'" 1719 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2194 if test $ac_must_keep_next = true; then 1720 if test $ac_must_keep_next = true; then
2195 ac_must_keep_next=false # Got value, back to normal. 1721 ac_must_keep_next=false # Got value, back to normal.
2196 else 1722 else
@@ -2206,13 +1732,13 @@ do
2206 -* ) ac_must_keep_next=true ;; 1732 -* ) ac_must_keep_next=true ;;
2207 esac 1733 esac
2208 fi 1734 fi
2209 as_fn_append ac_configure_args " '$ac_arg'" 1735 ac_configure_args="$ac_configure_args '$ac_arg'"
2210 ;; 1736 ;;
2211 esac 1737 esac
2212 done 1738 done
2213done 1739done
2214{ ac_configure_args0=; unset ac_configure_args0;} 1740$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2215{ ac_configure_args1=; unset ac_configure_args1;} 1741$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2216 1742
2217# When interrupted or exit'd, cleanup temporary files, and complete 1743# When interrupted or exit'd, cleanup temporary files, and complete
2218# config.log. We remove comments because anyway the quotes in there 1744# config.log. We remove comments because anyway the quotes in there
@@ -2237,13 +1763,13 @@ _ASBOX
2237 case $ac_val in #( 1763 case $ac_val in #(
2238 *${as_nl}*) 1764 *${as_nl}*)
2239 case $ac_var in #( 1765 case $ac_var in #(
2240 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1766 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2241$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1767$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2242 esac 1768 esac
2243 case $ac_var in #( 1769 case $ac_var in #(
2244 _ | IFS | as_nl) ;; #( 1770 _ | IFS | as_nl) ;; #(
2245 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1771 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2246 *) { eval $ac_var=; unset $ac_var;} ;; 1772 *) $as_unset $ac_var ;;
2247 esac ;; 1773 esac ;;
2248 esac 1774 esac
2249 done 1775 done
@@ -2315,39 +1841,37 @@ _ASBOX
2315 exit $exit_status 1841 exit $exit_status
2316' 0 1842' 0
2317for ac_signal in 1 2 13 15; do 1843for ac_signal in 1 2 13 15; do
2318 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1844 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2319done 1845done
2320ac_signal=0 1846ac_signal=0
2321 1847
2322# confdefs.h avoids OS command line length limits that DEFS can exceed. 1848# confdefs.h avoids OS command line length limits that DEFS can exceed.
2323rm -f -r conftest* confdefs.h 1849rm -f -r conftest* confdefs.h
2324 1850
2325$as_echo "/* confdefs.h */" > confdefs.h
2326
2327# Predefined preprocessor variables. 1851# Predefined preprocessor variables.
2328 1852
2329cat >>confdefs.h <<_ACEOF 1853cat >>confdefs.h <<_ACEOF
2330#define PACKAGE_NAME "$PACKAGE_NAME" 1854#define PACKAGE_NAME "$PACKAGE_NAME"
2331_ACEOF 1855_ACEOF
2332 1856
1857
2333cat >>confdefs.h <<_ACEOF 1858cat >>confdefs.h <<_ACEOF
2334#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1859#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2335_ACEOF 1860_ACEOF
2336 1861
1862
2337cat >>confdefs.h <<_ACEOF 1863cat >>confdefs.h <<_ACEOF
2338#define PACKAGE_VERSION "$PACKAGE_VERSION" 1864#define PACKAGE_VERSION "$PACKAGE_VERSION"
2339_ACEOF 1865_ACEOF
2340 1866
1867
2341cat >>confdefs.h <<_ACEOF 1868cat >>confdefs.h <<_ACEOF
2342#define PACKAGE_STRING "$PACKAGE_STRING" 1869#define PACKAGE_STRING "$PACKAGE_STRING"
2343_ACEOF 1870_ACEOF
2344 1871
2345cat >>confdefs.h <<_ACEOF
2346#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2347_ACEOF
2348 1872
2349cat >>confdefs.h <<_ACEOF 1873cat >>confdefs.h <<_ACEOF
2350#define PACKAGE_URL "$PACKAGE_URL" 1874#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2351_ACEOF 1875_ACEOF
2352 1876
2353 1877
@@ -2367,8 +1891,8 @@ fi
2367for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1891for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2368do 1892do
2369 test "x$ac_site_file" = xNONE && continue 1893 test "x$ac_site_file" = xNONE && continue
2370 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1894 if test -r "$ac_site_file"; then
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1895 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2372$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1896$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2373 sed 's/^/| /' "$ac_site_file" >&5 1897 sed 's/^/| /' "$ac_site_file" >&5
2374 . "$ac_site_file" 1898 . "$ac_site_file"
@@ -2376,10 +1900,10 @@ $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2376done 1900done
2377 1901
2378if test -r "$cache_file"; then 1902if test -r "$cache_file"; then
2379 # Some versions of bash will fail to source /dev/null (special files 1903 # Some versions of bash will fail to source /dev/null (special
2380 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1904 # files actually), so we avoid doing that.
2381 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1905 if test -f "$cache_file"; then
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1906 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2383$as_echo "$as_me: loading cache $cache_file" >&6;} 1907$as_echo "$as_me: loading cache $cache_file" >&6;}
2384 case $cache_file in 1908 case $cache_file in
2385 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1909 [\\/]* | ?:[\\/]* ) . "$cache_file";;
@@ -2387,16 +1911,14 @@ $as_echo "$as_me: loading cache $cache_file" >&6;}
2387 esac 1911 esac
2388 fi 1912 fi
2389else 1913else
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 1914 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2391$as_echo "$as_me: creating cache $cache_file" >&6;} 1915$as_echo "$as_me: creating cache $cache_file" >&6;}
2392 >$cache_file 1916 >$cache_file
2393fi 1917fi
2394 1918
2395as_fn_append ac_header_list " stdlib.h" 1919ac_header_list="$ac_header_list sys/time.h"
2396as_fn_append ac_header_list " unistd.h" 1920ac_header_list="$ac_header_list unistd.h"
2397as_fn_append ac_header_list " sys/param.h" 1921ac_func_list="$ac_func_list alarm"
2398as_fn_append ac_header_list " sys/time.h"
2399as_fn_append ac_func_list " alarm"
2400# Check that the precious variables saved in the cache have kept the same 1922# Check that the precious variables saved in the cache have kept the same
2401# value. 1923# value.
2402ac_cache_corrupted=false 1924ac_cache_corrupted=false
@@ -2407,11 +1929,11 @@ for ac_var in $ac_precious_vars; do
2407 eval ac_new_val=\$ac_env_${ac_var}_value 1929 eval ac_new_val=\$ac_env_${ac_var}_value
2408 case $ac_old_set,$ac_new_set in 1930 case $ac_old_set,$ac_new_set in
2409 set,) 1931 set,)
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1932 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2411$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1933$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2412 ac_cache_corrupted=: ;; 1934 ac_cache_corrupted=: ;;
2413 ,set) 1935 ,set)
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 1936 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2415$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1937$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2416 ac_cache_corrupted=: ;; 1938 ac_cache_corrupted=: ;;
2417 ,);; 1939 ,);;
@@ -2421,17 +1943,17 @@ $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2421 ac_old_val_w=`echo x $ac_old_val` 1943 ac_old_val_w=`echo x $ac_old_val`
2422 ac_new_val_w=`echo x $ac_new_val` 1944 ac_new_val_w=`echo x $ac_new_val`
2423 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1945 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 1946 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2425$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1947$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2426 ac_cache_corrupted=: 1948 ac_cache_corrupted=:
2427 else 1949 else
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1950 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2429$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1951$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2430 eval $ac_var=\$ac_old_val 1952 eval $ac_var=\$ac_old_val
2431 fi 1953 fi
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 1954 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2433$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1955$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 1956 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2435$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1957$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2436 fi;; 1958 fi;;
2437 esac 1959 esac
@@ -2443,20 +1965,41 @@ $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2443 esac 1965 esac
2444 case " $ac_configure_args " in 1966 case " $ac_configure_args " in
2445 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1967 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2446 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 1968 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2447 esac 1969 esac
2448 fi 1970 fi
2449done 1971done
2450if $ac_cache_corrupted; then 1972if $ac_cache_corrupted; then
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1973 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2454$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1974$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2455 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 1975 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1976$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1977 { (exit 1); exit 1; }; }
2456fi 1978fi
2457## -------------------- ## 1979
2458## Main body of script. ## 1980
2459## -------------------- ## 1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2460 2003
2461ac_ext=c 2004ac_ext=c
2462ac_cpp='$CPP $CPPFLAGS' 2005ac_cpp='$CPP $CPPFLAGS'
@@ -2495,33 +2038,39 @@ gameuser=games
2495 2038
2496 2039
2497# Check whether --with-pop was given. 2040# Check whether --with-pop was given.
2498if test "${with_pop+set}" = set; then : 2041if test "${with_pop+set}" = set; then
2499 withval=$with_pop; 2042 withval=$with_pop;
2500else 2043else
2501 with_pop=yes 2044 with_pop=yes
2502fi 2045fi
2503 2046
2504if test "$with_pop" = yes; then 2047if test "$with_pop" = yes; then
2505 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h 2048 cat >>confdefs.h <<\_ACEOF
2049#define MAIL_USE_POP 1
2050_ACEOF
2506 2051
2507fi 2052fi
2508 2053
2509 2054
2055
2510# Check whether --with-kerberos was given. 2056# Check whether --with-kerberos was given.
2511if test "${with_kerberos+set}" = set; then : 2057if test "${with_kerberos+set}" = set; then
2512 withval=$with_kerberos; 2058 withval=$with_kerberos;
2513else 2059else
2514 with_kerberos=no 2060 with_kerberos=no
2515fi 2061fi
2516 2062
2517if test "$with_kerberos" != no; then 2063if test "$with_kerberos" != no; then
2518 $as_echo "#define KERBEROS 1" >>confdefs.h 2064 cat >>confdefs.h <<\_ACEOF
2065#define KERBEROS 1
2066_ACEOF
2519 2067
2520fi 2068fi
2521 2069
2522 2070
2071
2523# Check whether --with-kerberos5 was given. 2072# Check whether --with-kerberos5 was given.
2524if test "${with_kerberos5+set}" = set; then : 2073if test "${with_kerberos5+set}" = set; then
2525 withval=$with_kerberos5; 2074 withval=$with_kerberos5;
2526else 2075else
2527 with_kerberos5=no 2076 with_kerberos5=no
@@ -2530,17 +2079,21 @@ fi
2530if test "${with_kerberos5}" != no; then 2079if test "${with_kerberos5}" != no; then
2531 if test "${with_kerberos}" = no; then 2080 if test "${with_kerberos}" = no; then
2532 with_kerberos=yes 2081 with_kerberos=yes
2533 $as_echo "#define KERBEROS 1" >>confdefs.h 2082 cat >>confdefs.h <<\_ACEOF
2083#define KERBEROS 1
2084_ACEOF
2534 2085
2535 fi 2086 fi
2536 2087
2537$as_echo "#define KERBEROS5 1" >>confdefs.h 2088cat >>confdefs.h <<\_ACEOF
2089#define KERBEROS5 1
2090_ACEOF
2538 2091
2539fi 2092fi
2540 2093
2541 2094
2542# Check whether --with-hesiod was given. 2095# Check whether --with-hesiod was given.
2543if test "${with_hesiod+set}" = set; then : 2096if test "${with_hesiod+set}" = set; then
2544 withval=$with_hesiod; 2097 withval=$with_hesiod;
2545else 2098else
2546 with_hesiod=no 2099 with_hesiod=no
@@ -2548,13 +2101,15 @@ fi
2548 2101
2549if test "$with_hesiod" != no; then 2102if test "$with_hesiod" != no; then
2550 2103
2551$as_echo "#define HESIOD 1" >>confdefs.h 2104cat >>confdefs.h <<\_ACEOF
2105#define HESIOD 1
2106_ACEOF
2552 2107
2553fi 2108fi
2554 2109
2555 2110
2556# Check whether --with-mmdf was given. 2111# Check whether --with-mmdf was given.
2557if test "${with_mmdf+set}" = set; then : 2112if test "${with_mmdf+set}" = set; then
2558 withval=$with_mmdf; 2113 withval=$with_mmdf;
2559else 2114else
2560 with_mmdf=no 2115 with_mmdf=no
@@ -2562,13 +2117,15 @@ fi
2562 2117
2563if test "$with_mmdf" != no; then 2118if test "$with_mmdf" != no; then
2564 2119
2565$as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h 2120cat >>confdefs.h <<\_ACEOF
2121#define MAIL_USE_MMDF 1
2122_ACEOF
2566 2123
2567fi 2124fi
2568 2125
2569 2126
2570# Check whether --with-mail-unlink was given. 2127# Check whether --with-mail-unlink was given.
2571if test "${with_mail_unlink+set}" = set; then : 2128if test "${with_mail_unlink+set}" = set; then
2572 withval=$with_mail_unlink; 2129 withval=$with_mail_unlink;
2573else 2130else
2574 with_mail_unlink=no 2131 with_mail_unlink=no
@@ -2576,13 +2133,15 @@ fi
2576 2133
2577if test "$with_mail_unlink" != no; then 2134if test "$with_mail_unlink" != no; then
2578 2135
2579$as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h 2136cat >>confdefs.h <<\_ACEOF
2137#define MAIL_UNLINK_SPOOL 1
2138_ACEOF
2580 2139
2581fi 2140fi
2582 2141
2583 2142
2584# Check whether --with-mailhost was given. 2143# Check whether --with-mailhost was given.
2585if test "${with_mailhost+set}" = set; then : 2144if test "${with_mailhost+set}" = set; then
2586 withval=$with_mailhost; 2145 withval=$with_mailhost;
2587cat >>confdefs.h <<_ACEOF 2146cat >>confdefs.h <<_ACEOF
2588#define MAILHOST "$withval" 2147#define MAILHOST "$withval"
@@ -2593,7 +2152,7 @@ fi
2593 2152
2594 2153
2595# Check whether --with-sound was given. 2154# Check whether --with-sound was given.
2596if test "${with_sound+set}" = set; then : 2155if test "${with_sound+set}" = set; then
2597 withval=$with_sound; 2156 withval=$with_sound;
2598else 2157else
2599 with_sound=yes 2158 with_sound=yes
@@ -2602,7 +2161,7 @@ fi
2602 2161
2603 2162
2604# Check whether --with-sync-input was given. 2163# Check whether --with-sync-input was given.
2605if test "${with_sync_input+set}" = set; then : 2164if test "${with_sync_input+set}" = set; then
2606 withval=$with_sync_input; 2165 withval=$with_sync_input;
2607else 2166else
2608 with_sync_input=yes 2167 with_sync_input=yes
@@ -2610,13 +2169,15 @@ fi
2610 2169
2611if test "$with_sync_input" = yes; then 2170if test "$with_sync_input" = yes; then
2612 2171
2613$as_echo "#define SYNC_INPUT 1" >>confdefs.h 2172cat >>confdefs.h <<\_ACEOF
2173#define SYNC_INPUT 1
2174_ACEOF
2614 2175
2615fi 2176fi
2616 2177
2617 2178
2618# Check whether --with-x-toolkit was given. 2179# Check whether --with-x-toolkit was given.
2619if test "${with_x_toolkit+set}" = set; then : 2180if test "${with_x_toolkit+set}" = set; then
2620 withval=$with_x_toolkit; case "${withval}" in 2181 withval=$with_x_toolkit; case "${withval}" in
2621 y | ye | yes ) val=gtk ;; 2182 y | ye | yes ) val=gtk ;;
2622 n | no ) val=no ;; 2183 n | no ) val=no ;;
@@ -2625,9 +2186,13 @@ if test "${with_x_toolkit+set}" = set; then :
2625 m | mo | mot | moti | motif ) val=motif ;; 2186 m | mo | mot | moti | motif ) val=motif ;;
2626 g | gt | gtk ) val=gtk ;; 2187 g | gt | gtk ) val=gtk ;;
2627 * ) 2188 * )
2628as_fn_error "\`--with-x-toolkit=$withval' is invalid; 2189{ { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2190this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2191\`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2192$as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2629this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. 2193this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2630\`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5 2194\`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2195 { (exit 1); exit 1; }; }
2631 ;; 2196 ;;
2632 esac 2197 esac
2633 with_x_toolkit=$val 2198 with_x_toolkit=$val
@@ -2637,7 +2202,7 @@ fi
2637 2202
2638 2203
2639# Check whether --with-xpm was given. 2204# Check whether --with-xpm was given.
2640if test "${with_xpm+set}" = set; then : 2205if test "${with_xpm+set}" = set; then
2641 withval=$with_xpm; 2206 withval=$with_xpm;
2642else 2207else
2643 with_xpm=yes 2208 with_xpm=yes
@@ -2645,7 +2210,7 @@ fi
2645 2210
2646 2211
2647# Check whether --with-jpeg was given. 2212# Check whether --with-jpeg was given.
2648if test "${with_jpeg+set}" = set; then : 2213if test "${with_jpeg+set}" = set; then
2649 withval=$with_jpeg; 2214 withval=$with_jpeg;
2650else 2215else
2651 with_jpeg=yes 2216 with_jpeg=yes
@@ -2653,7 +2218,7 @@ fi
2653 2218
2654 2219
2655# Check whether --with-tiff was given. 2220# Check whether --with-tiff was given.
2656if test "${with_tiff+set}" = set; then : 2221if test "${with_tiff+set}" = set; then
2657 withval=$with_tiff; 2222 withval=$with_tiff;
2658else 2223else
2659 with_tiff=yes 2224 with_tiff=yes
@@ -2661,7 +2226,7 @@ fi
2661 2226
2662 2227
2663# Check whether --with-gif was given. 2228# Check whether --with-gif was given.
2664if test "${with_gif+set}" = set; then : 2229if test "${with_gif+set}" = set; then
2665 withval=$with_gif; 2230 withval=$with_gif;
2666else 2231else
2667 with_gif=yes 2232 with_gif=yes
@@ -2669,7 +2234,7 @@ fi
2669 2234
2670 2235
2671# Check whether --with-png was given. 2236# Check whether --with-png was given.
2672if test "${with_png+set}" = set; then : 2237if test "${with_png+set}" = set; then
2673 withval=$with_png; 2238 withval=$with_png;
2674else 2239else
2675 with_png=yes 2240 with_png=yes
@@ -2677,7 +2242,7 @@ fi
2677 2242
2678 2243
2679# Check whether --with-rsvg was given. 2244# Check whether --with-rsvg was given.
2680if test "${with_rsvg+set}" = set; then : 2245if test "${with_rsvg+set}" = set; then
2681 withval=$with_rsvg; 2246 withval=$with_rsvg;
2682else 2247else
2683 with_rsvg=yes 2248 with_rsvg=yes
@@ -2686,7 +2251,7 @@ fi
2686 2251
2687 2252
2688# Check whether --with-xft was given. 2253# Check whether --with-xft was given.
2689if test "${with_xft+set}" = set; then : 2254if test "${with_xft+set}" = set; then
2690 withval=$with_xft; 2255 withval=$with_xft;
2691else 2256else
2692 with_xft=yes 2257 with_xft=yes
@@ -2694,7 +2259,7 @@ fi
2694 2259
2695 2260
2696# Check whether --with-libotf was given. 2261# Check whether --with-libotf was given.
2697if test "${with_libotf+set}" = set; then : 2262if test "${with_libotf+set}" = set; then
2698 withval=$with_libotf; 2263 withval=$with_libotf;
2699else 2264else
2700 with_libotf=yes 2265 with_libotf=yes
@@ -2702,7 +2267,7 @@ fi
2702 2267
2703 2268
2704# Check whether --with-m17n-flt was given. 2269# Check whether --with-m17n-flt was given.
2705if test "${with_m17n_flt+set}" = set; then : 2270if test "${with_m17n_flt+set}" = set; then
2706 withval=$with_m17n_flt; 2271 withval=$with_m17n_flt;
2707else 2272else
2708 with_m17n_flt=yes 2273 with_m17n_flt=yes
@@ -2711,7 +2276,7 @@ fi
2711 2276
2712 2277
2713# Check whether --with-toolkit-scroll-bars was given. 2278# Check whether --with-toolkit-scroll-bars was given.
2714if test "${with_toolkit_scroll_bars+set}" = set; then : 2279if test "${with_toolkit_scroll_bars+set}" = set; then
2715 withval=$with_toolkit_scroll_bars; 2280 withval=$with_toolkit_scroll_bars;
2716else 2281else
2717 with_toolkit_scroll_bars=yes 2282 with_toolkit_scroll_bars=yes
@@ -2719,7 +2284,7 @@ fi
2719 2284
2720 2285
2721# Check whether --with-xaw3d was given. 2286# Check whether --with-xaw3d was given.
2722if test "${with_xaw3d+set}" = set; then : 2287if test "${with_xaw3d+set}" = set; then
2723 withval=$with_xaw3d; 2288 withval=$with_xaw3d;
2724else 2289else
2725 with_xaw3d=yes 2290 with_xaw3d=yes
@@ -2727,7 +2292,7 @@ fi
2727 2292
2728 2293
2729# Check whether --with-xim was given. 2294# Check whether --with-xim was given.
2730if test "${with_xim+set}" = set; then : 2295if test "${with_xim+set}" = set; then
2731 withval=$with_xim; 2296 withval=$with_xim;
2732else 2297else
2733 with_xim=yes 2298 with_xim=yes
@@ -2735,7 +2300,7 @@ fi
2735 2300
2736 2301
2737# Check whether --with-ns was given. 2302# Check whether --with-ns was given.
2738if test "${with_ns+set}" = set; then : 2303if test "${with_ns+set}" = set; then
2739 withval=$with_ns; 2304 withval=$with_ns;
2740else 2305else
2741 with_ns=no 2306 with_ns=no
@@ -2744,7 +2309,7 @@ fi
2744 2309
2745 2310
2746# Check whether --with-gpm was given. 2311# Check whether --with-gpm was given.
2747if test "${with_gpm+set}" = set; then : 2312if test "${with_gpm+set}" = set; then
2748 withval=$with_gpm; 2313 withval=$with_gpm;
2749else 2314else
2750 with_gpm=yes 2315 with_gpm=yes
@@ -2752,7 +2317,7 @@ fi
2752 2317
2753 2318
2754# Check whether --with-dbus was given. 2319# Check whether --with-dbus was given.
2755if test "${with_dbus+set}" = set; then : 2320if test "${with_dbus+set}" = set; then
2756 withval=$with_dbus; 2321 withval=$with_dbus;
2757else 2322else
2758 with_dbus=yes 2323 with_dbus=yes
@@ -2760,7 +2325,7 @@ fi
2760 2325
2761 2326
2762# Check whether --with-gconf was given. 2327# Check whether --with-gconf was given.
2763if test "${with_gconf+set}" = set; then : 2328if test "${with_gconf+set}" = set; then
2764 withval=$with_gconf; 2329 withval=$with_gconf;
2765else 2330else
2766 with_gconf=yes 2331 with_gconf=yes
@@ -2768,7 +2333,7 @@ fi
2768 2333
2769 2334
2770# Check whether --with-selinux was given. 2335# Check whether --with-selinux was given.
2771if test "${with_selinux+set}" = set; then : 2336if test "${with_selinux+set}" = set; then
2772 withval=$with_selinux; 2337 withval=$with_selinux;
2773else 2338else
2774 with_selinux=yes 2339 with_selinux=yes
@@ -2779,7 +2344,7 @@ fi
2779## a suitable makeinfo, and can live without the manuals. 2344## a suitable makeinfo, and can live without the manuals.
2780 2345
2781# Check whether --with-makeinfo was given. 2346# Check whether --with-makeinfo was given.
2782if test "${with_makeinfo+set}" = set; then : 2347if test "${with_makeinfo+set}" = set; then
2783 withval=$with_makeinfo; 2348 withval=$with_makeinfo;
2784else 2349else
2785 with_makeinfo=yes 2350 with_makeinfo=yes
@@ -2788,23 +2353,29 @@ fi
2788 2353
2789 2354
2790# Check whether --with-gtk was given. 2355# Check whether --with-gtk was given.
2791if test "${with_gtk+set}" = set; then : 2356if test "${with_gtk+set}" = set; then
2792 withval=$with_gtk; as_fn_error "--with-gtk has been removed. Use --with-x-toolkit to 2357 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2793specify a toolkit." "$LINENO" 5 2358specify a toolkit." >&5
2359$as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2360specify a toolkit." >&2;}
2361 { (exit 1); exit 1; }; }
2794fi 2362fi
2795 2363
2796 2364
2797 2365
2798# Check whether --with-gcc was given. 2366# Check whether --with-gcc was given.
2799if test "${with_gcc+set}" = set; then : 2367if test "${with_gcc+set}" = set; then
2800 withval=$with_gcc; as_fn_error "--with-gcc has been removed. Set the \`CC' environment 2368 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2801variable to specify a compiler." "$LINENO" 5 2369variable to specify a compiler." >&5
2370$as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2371variable to specify a compiler." >&2;}
2372 { (exit 1); exit 1; }; }
2802fi 2373fi
2803 2374
2804 2375
2805 2376
2806# Check whether --with-pkg-config-prog was given. 2377# Check whether --with-pkg-config-prog was given.
2807if test "${with_pkg_config_prog+set}" = set; then : 2378if test "${with_pkg_config_prog+set}" = set; then
2808 withval=$with_pkg_config_prog; 2379 withval=$with_pkg_config_prog;
2809fi 2380fi
2810 2381
@@ -2817,7 +2388,7 @@ fi
2817CRT_DIR= 2388CRT_DIR=
2818 2389
2819# Check whether --with-crt-dir was given. 2390# Check whether --with-crt-dir was given.
2820if test "${with_crt_dir+set}" = set; then : 2391if test "${with_crt_dir+set}" = set; then
2821 withval=$with_crt_dir; 2392 withval=$with_crt_dir;
2822fi 2393fi
2823 2394
@@ -2825,7 +2396,7 @@ CRT_DIR="${with_crt_dir}"
2825 2396
2826 2397
2827# Check whether --with-gnustep-conf was given. 2398# Check whether --with-gnustep-conf was given.
2828if test "${with_gnustep_conf+set}" = set; then : 2399if test "${with_gnustep_conf+set}" = set; then
2829 withval=$with_gnustep_conf; 2400 withval=$with_gnustep_conf;
2830fi 2401fi
2831 2402
@@ -2835,7 +2406,7 @@ test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2835 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf 2406 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2836 2407
2837# Check whether --enable-ns-self-contained was given. 2408# Check whether --enable-ns-self-contained was given.
2838if test "${enable_ns_self_contained+set}" = set; then : 2409if test "${enable_ns_self_contained+set}" = set; then
2839 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval 2410 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2840else 2411else
2841 EN_NS_SELF_CONTAINED=yes 2412 EN_NS_SELF_CONTAINED=yes
@@ -2843,7 +2414,7 @@ fi
2843 2414
2844 2415
2845# Check whether --enable-asserts was given. 2416# Check whether --enable-asserts was given.
2846if test "${enable_asserts+set}" = set; then : 2417if test "${enable_asserts+set}" = set; then
2847 enableval=$enable_asserts; USE_XASSERTS=$enableval 2418 enableval=$enable_asserts; USE_XASSERTS=$enableval
2848else 2419else
2849 USE_XASSERTS=no 2420 USE_XASSERTS=no
@@ -2851,7 +2422,7 @@ fi
2851 2422
2852 2423
2853# Check whether --enable-maintainer-mode was given. 2424# Check whether --enable-maintainer-mode was given.
2854if test "${enable_maintainer_mode+set}" = set; then : 2425if test "${enable_maintainer_mode+set}" = set; then
2855 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2426 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2856else 2427else
2857 USE_MAINTAINER_MODE=no 2428 USE_MAINTAINER_MODE=no
@@ -2865,7 +2436,7 @@ fi
2865 2436
2866 2437
2867# Check whether --enable-locallisppath was given. 2438# Check whether --enable-locallisppath was given.
2868if test "${enable_locallisppath+set}" = set; then : 2439if test "${enable_locallisppath+set}" = set; then
2869 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then 2440 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2870 locallisppath= 2441 locallisppath=
2871elif test "${enableval}" != "yes"; then 2442elif test "${enableval}" != "yes"; then
@@ -2875,7 +2446,7 @@ fi
2875 2446
2876 2447
2877# Check whether --enable-checking was given. 2448# Check whether --enable-checking was given.
2878if test "${enable_checking+set}" = set; then : 2449if test "${enable_checking+set}" = set; then
2879 enableval=$enable_checking; ac_checking_flags="${enableval}" 2450 enableval=$enable_checking; ac_checking_flags="${enableval}"
2880fi 2451fi
2881 2452
@@ -2903,44 +2474,58 @@ do
2903 stringfreelist) ac_gc_check_string_free_list=1 ;; 2474 stringfreelist) ac_gc_check_string_free_list=1 ;;
2904 xmallocoverrun) ac_xmalloc_overrun=1 ;; 2475 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2905 conslist) ac_gc_check_cons_list=1 ;; 2476 conslist) ac_gc_check_cons_list=1 ;;
2906 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;; 2477 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2478$as_echo "$as_me: error: unknown check category $check" >&2;}
2479 { (exit 1); exit 1; }; } ;;
2907 esac 2480 esac
2908done 2481done
2909IFS="$ac_save_IFS" 2482IFS="$ac_save_IFS"
2910 2483
2911if test x$ac_enable_checking != x ; then 2484if test x$ac_enable_checking != x ; then
2912 2485
2913$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h 2486cat >>confdefs.h <<\_ACEOF
2487#define ENABLE_CHECKING 1
2488_ACEOF
2914 2489
2915fi 2490fi
2916if test x$ac_gc_check_stringbytes != x ; then 2491if test x$ac_gc_check_stringbytes != x ; then
2917 2492
2918$as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h 2493cat >>confdefs.h <<\_ACEOF
2494#define GC_CHECK_STRING_BYTES 1
2495_ACEOF
2919 2496
2920fi 2497fi
2921if test x$ac_gc_check_stringoverrun != x ; then 2498if test x$ac_gc_check_stringoverrun != x ; then
2922 2499
2923$as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h 2500cat >>confdefs.h <<\_ACEOF
2501#define GC_CHECK_STRING_OVERRUN 1
2502_ACEOF
2924 2503
2925fi 2504fi
2926if test x$ac_gc_check_string_free_list != x ; then 2505if test x$ac_gc_check_string_free_list != x ; then
2927 2506
2928$as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h 2507cat >>confdefs.h <<\_ACEOF
2508#define GC_CHECK_STRING_FREE_LIST 1
2509_ACEOF
2929 2510
2930fi 2511fi
2931if test x$ac_xmalloc_overrun != x ; then 2512if test x$ac_xmalloc_overrun != x ; then
2932 2513
2933$as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h 2514cat >>confdefs.h <<\_ACEOF
2515#define XMALLOC_OVERRUN_CHECK 1
2516_ACEOF
2934 2517
2935fi 2518fi
2936if test x$ac_gc_check_cons_list != x ; then 2519if test x$ac_gc_check_cons_list != x ; then
2937 2520
2938$as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h 2521cat >>confdefs.h <<\_ACEOF
2522#define GC_CHECK_CONS_LIST 1
2523_ACEOF
2939 2524
2940fi 2525fi
2941 2526
2942# Check whether --enable-profiling was given. 2527# Check whether --enable-profiling was given.
2943if test "${enable_profiling+set}" = set; then : 2528if test "${enable_profiling+set}" = set; then
2944 enableval=$enable_profiling; ac_enable_profiling="${enableval}" 2529 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2945fi 2530fi
2946 2531
@@ -2953,7 +2538,7 @@ else
2953fi 2538fi
2954 2539
2955# Check whether --enable-autodepend was given. 2540# Check whether --enable-autodepend was given.
2956if test "${enable_autodepend+set}" = set; then : 2541if test "${enable_autodepend+set}" = set; then
2957 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}" 2542 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2958else 2543else
2959 ac_enable_autodepend=yes 2544 ac_enable_autodepend=yes
@@ -2987,7 +2572,7 @@ esac
2987#### Check if the source directory already has a configured system in it. 2572#### Check if the source directory already has a configured system in it.
2988if test `pwd` != `(cd ${srcdir} && pwd)` \ 2573if test `pwd` != `(cd ${srcdir} && pwd)` \
2989 && test -f "${srcdir}/src/config.h" ; then 2574 && test -f "${srcdir}/src/config.h" ; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used 2575 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2991 as a build directory right now; it has been configured in its own 2576 as a build directory right now; it has been configured in its own
2992 right. To configure in another directory as well, you MUST 2577 right. To configure in another directory as well, you MUST
2993 use GNU make. If you do not have GNU make, then you must 2578 use GNU make. If you do not have GNU make, then you must
@@ -3008,16 +2593,24 @@ fi
3008 2593
3009ac_aux_dir= 2594ac_aux_dir=
3010for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2595for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3011 for ac_t in install-sh install.sh shtool; do 2596 if test -f "$ac_dir/install-sh"; then
3012 if test -f "$ac_dir/$ac_t"; then 2597 ac_aux_dir=$ac_dir
3013 ac_aux_dir=$ac_dir 2598 ac_install_sh="$ac_aux_dir/install-sh -c"
3014 ac_install_sh="$ac_aux_dir/$ac_t -c" 2599 break
3015 break 2 2600 elif test -f "$ac_dir/install.sh"; then
3016 fi 2601 ac_aux_dir=$ac_dir
3017 done 2602 ac_install_sh="$ac_aux_dir/install.sh -c"
2603 break
2604 elif test -f "$ac_dir/shtool"; then
2605 ac_aux_dir=$ac_dir
2606 ac_install_sh="$ac_aux_dir/shtool install -c"
2607 break
2608 fi
3018done 2609done
3019if test -z "$ac_aux_dir"; then 2610if test -z "$ac_aux_dir"; then
3020 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2611 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2612$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2613 { (exit 1); exit 1; }; }
3021fi 2614fi
3022 2615
3023# These three variables are undocumented and unsupported, 2616# These three variables are undocumented and unsupported,
@@ -3031,27 +2624,35 @@ ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3031 2624
3032# Make sure we can run config.sub. 2625# Make sure we can run config.sub.
3033$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2626$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3034 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2627 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2628$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2629 { (exit 1); exit 1; }; }
3035 2630
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2631{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3037$as_echo_n "checking build system type... " >&6; } 2632$as_echo_n "checking build system type... " >&6; }
3038if test "${ac_cv_build+set}" = set; then : 2633if test "${ac_cv_build+set}" = set; then
3039 $as_echo_n "(cached) " >&6 2634 $as_echo_n "(cached) " >&6
3040else 2635else
3041 ac_build_alias=$build_alias 2636 ac_build_alias=$build_alias
3042test "x$ac_build_alias" = x && 2637test "x$ac_build_alias" = x &&
3043 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2638 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3044test "x$ac_build_alias" = x && 2639test "x$ac_build_alias" = x &&
3045 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2640 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2641$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2642 { (exit 1); exit 1; }; }
3046ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2643ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3047 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2644 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2645$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2646 { (exit 1); exit 1; }; }
3048 2647
3049fi 2648fi
3050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2649{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3051$as_echo "$ac_cv_build" >&6; } 2650$as_echo "$ac_cv_build" >&6; }
3052case $ac_cv_build in 2651case $ac_cv_build in
3053*-*-*) ;; 2652*-*-*) ;;
3054*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2653*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2654$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2655 { (exit 1); exit 1; }; };;
3055esac 2656esac
3056build=$ac_cv_build 2657build=$ac_cv_build
3057ac_save_IFS=$IFS; IFS='-' 2658ac_save_IFS=$IFS; IFS='-'
@@ -3067,24 +2668,28 @@ IFS=$ac_save_IFS
3067case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2668case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3068 2669
3069 2670
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2671{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3071$as_echo_n "checking host system type... " >&6; } 2672$as_echo_n "checking host system type... " >&6; }
3072if test "${ac_cv_host+set}" = set; then : 2673if test "${ac_cv_host+set}" = set; then
3073 $as_echo_n "(cached) " >&6 2674 $as_echo_n "(cached) " >&6
3074else 2675else
3075 if test "x$host_alias" = x; then 2676 if test "x$host_alias" = x; then
3076 ac_cv_host=$ac_cv_build 2677 ac_cv_host=$ac_cv_build
3077else 2678else
3078 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2679 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3079 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2680 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2681$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2682 { (exit 1); exit 1; }; }
3080fi 2683fi
3081 2684
3082fi 2685fi
3083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2686{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3084$as_echo "$ac_cv_host" >&6; } 2687$as_echo "$ac_cv_host" >&6; }
3085case $ac_cv_host in 2688case $ac_cv_host in
3086*-*-*) ;; 2689*-*-*) ;;
3087*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2690*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2691$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2692 { (exit 1); exit 1; }; };;
3088esac 2693esac
3089host=$ac_cv_host 2694host=$ac_cv_host
3090ac_save_IFS=$IFS; IFS='-' 2695ac_save_IFS=$IFS; IFS='-'
@@ -3164,7 +2769,9 @@ case "${canonical}" in
3164 opsys=netbsd 2769 opsys=netbsd
3165 if test -f /usr/lib/crti.o; then 2770 if test -f /usr/lib/crti.o; then
3166 2771
3167$as_echo "#define HAVE_CRTIN /**/" >>confdefs.h 2772cat >>confdefs.h <<\_ACEOF
2773#define HAVE_CRTIN /**/
2774_ACEOF
3168 2775
3169 fi 2776 fi
3170 2777
@@ -3389,8 +2996,11 @@ fi
3389 2996
3390 2997
3391if test $unported = yes; then 2998if test $unported = yes; then
3392 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems. 2999 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3393Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5 3000Check \`etc/MACHINES' for recognized configuration names." >&5
3001$as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3002Check \`etc/MACHINES' for recognized configuration names." >&2;}
3003 { (exit 1); exit 1; }; }
3394fi 3004fi
3395 3005
3396machfile="m/${machine}.h" 3006machfile="m/${machine}.h"
@@ -3411,9 +3021,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
3411if test -n "$ac_tool_prefix"; then 3021if test -n "$ac_tool_prefix"; then
3412 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3022 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3413set dummy ${ac_tool_prefix}gcc; ac_word=$2 3023set dummy ${ac_tool_prefix}gcc; ac_word=$2
3414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3024{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3415$as_echo_n "checking for $ac_word... " >&6; } 3025$as_echo_n "checking for $ac_word... " >&6; }
3416if test "${ac_cv_prog_CC+set}" = set; then : 3026if test "${ac_cv_prog_CC+set}" = set; then
3417 $as_echo_n "(cached) " >&6 3027 $as_echo_n "(cached) " >&6
3418else 3028else
3419 if test -n "$CC"; then 3029 if test -n "$CC"; then
@@ -3424,24 +3034,24 @@ for as_dir in $PATH
3424do 3034do
3425 IFS=$as_save_IFS 3035 IFS=$as_save_IFS
3426 test -z "$as_dir" && as_dir=. 3036 test -z "$as_dir" && as_dir=.
3427 for ac_exec_ext in '' $ac_executable_extensions; do 3037 for ac_exec_ext in '' $ac_executable_extensions; do
3428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3429 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3039 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3040 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3431 break 2 3041 break 2
3432 fi 3042 fi
3433done 3043done
3434 done 3044done
3435IFS=$as_save_IFS 3045IFS=$as_save_IFS
3436 3046
3437fi 3047fi
3438fi 3048fi
3439CC=$ac_cv_prog_CC 3049CC=$ac_cv_prog_CC
3440if test -n "$CC"; then 3050if test -n "$CC"; then
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3051 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3442$as_echo "$CC" >&6; } 3052$as_echo "$CC" >&6; }
3443else 3053else
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3054 { $as_echo "$as_me:$LINENO: result: no" >&5
3445$as_echo "no" >&6; } 3055$as_echo "no" >&6; }
3446fi 3056fi
3447 3057
@@ -3451,9 +3061,9 @@ if test -z "$ac_cv_prog_CC"; then
3451 ac_ct_CC=$CC 3061 ac_ct_CC=$CC
3452 # Extract the first word of "gcc", so it can be a program name with args. 3062 # Extract the first word of "gcc", so it can be a program name with args.
3453set dummy gcc; ac_word=$2 3063set dummy gcc; ac_word=$2
3454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3064{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3455$as_echo_n "checking for $ac_word... " >&6; } 3065$as_echo_n "checking for $ac_word... " >&6; }
3456if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3066if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3457 $as_echo_n "(cached) " >&6 3067 $as_echo_n "(cached) " >&6
3458else 3068else
3459 if test -n "$ac_ct_CC"; then 3069 if test -n "$ac_ct_CC"; then
@@ -3464,24 +3074,24 @@ for as_dir in $PATH
3464do 3074do
3465 IFS=$as_save_IFS 3075 IFS=$as_save_IFS
3466 test -z "$as_dir" && as_dir=. 3076 test -z "$as_dir" && as_dir=.
3467 for ac_exec_ext in '' $ac_executable_extensions; do 3077 for ac_exec_ext in '' $ac_executable_extensions; do
3468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3469 ac_cv_prog_ac_ct_CC="gcc" 3079 ac_cv_prog_ac_ct_CC="gcc"
3470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3080 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3471 break 2 3081 break 2
3472 fi 3082 fi
3473done 3083done
3474 done 3084done
3475IFS=$as_save_IFS 3085IFS=$as_save_IFS
3476 3086
3477fi 3087fi
3478fi 3088fi
3479ac_ct_CC=$ac_cv_prog_ac_ct_CC 3089ac_ct_CC=$ac_cv_prog_ac_ct_CC
3480if test -n "$ac_ct_CC"; then 3090if test -n "$ac_ct_CC"; then
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3091 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3482$as_echo "$ac_ct_CC" >&6; } 3092$as_echo "$ac_ct_CC" >&6; }
3483else 3093else
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3094 { $as_echo "$as_me:$LINENO: result: no" >&5
3485$as_echo "no" >&6; } 3095$as_echo "no" >&6; }
3486fi 3096fi
3487 3097
@@ -3490,8 +3100,12 @@ fi
3490 else 3100 else
3491 case $cross_compiling:$ac_tool_warned in 3101 case $cross_compiling:$ac_tool_warned in
3492yes:) 3102yes:)
3493{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3103{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3104whose name does not start with the host triplet. If you think this
3105configuration is useful to you, please write to autoconf@gnu.org." >&5
3106$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3107whose name does not start with the host triplet. If you think this
3108configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3495ac_tool_warned=yes ;; 3109ac_tool_warned=yes ;;
3496esac 3110esac
3497 CC=$ac_ct_CC 3111 CC=$ac_ct_CC
@@ -3504,9 +3118,9 @@ if test -z "$CC"; then
3504 if test -n "$ac_tool_prefix"; then 3118 if test -n "$ac_tool_prefix"; then
3505 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3119 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3506set dummy ${ac_tool_prefix}cc; ac_word=$2 3120set dummy ${ac_tool_prefix}cc; ac_word=$2
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3121{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3508$as_echo_n "checking for $ac_word... " >&6; } 3122$as_echo_n "checking for $ac_word... " >&6; }
3509if test "${ac_cv_prog_CC+set}" = set; then : 3123if test "${ac_cv_prog_CC+set}" = set; then
3510 $as_echo_n "(cached) " >&6 3124 $as_echo_n "(cached) " >&6
3511else 3125else
3512 if test -n "$CC"; then 3126 if test -n "$CC"; then
@@ -3517,24 +3131,24 @@ for as_dir in $PATH
3517do 3131do
3518 IFS=$as_save_IFS 3132 IFS=$as_save_IFS
3519 test -z "$as_dir" && as_dir=. 3133 test -z "$as_dir" && as_dir=.
3520 for ac_exec_ext in '' $ac_executable_extensions; do 3134 for ac_exec_ext in '' $ac_executable_extensions; do
3521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3522 ac_cv_prog_CC="${ac_tool_prefix}cc" 3136 ac_cv_prog_CC="${ac_tool_prefix}cc"
3523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3137 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 break 2 3138 break 2
3525 fi 3139 fi
3526done 3140done
3527 done 3141done
3528IFS=$as_save_IFS 3142IFS=$as_save_IFS
3529 3143
3530fi 3144fi
3531fi 3145fi
3532CC=$ac_cv_prog_CC 3146CC=$ac_cv_prog_CC
3533if test -n "$CC"; then 3147if test -n "$CC"; then
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3148 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3535$as_echo "$CC" >&6; } 3149$as_echo "$CC" >&6; }
3536else 3150else
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3151 { $as_echo "$as_me:$LINENO: result: no" >&5
3538$as_echo "no" >&6; } 3152$as_echo "no" >&6; }
3539fi 3153fi
3540 3154
@@ -3544,9 +3158,9 @@ fi
3544if test -z "$CC"; then 3158if test -z "$CC"; then
3545 # Extract the first word of "cc", so it can be a program name with args. 3159 # Extract the first word of "cc", so it can be a program name with args.
3546set dummy cc; ac_word=$2 3160set dummy cc; ac_word=$2
3547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3161{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3548$as_echo_n "checking for $ac_word... " >&6; } 3162$as_echo_n "checking for $ac_word... " >&6; }
3549if test "${ac_cv_prog_CC+set}" = set; then : 3163if test "${ac_cv_prog_CC+set}" = set; then
3550 $as_echo_n "(cached) " >&6 3164 $as_echo_n "(cached) " >&6
3551else 3165else
3552 if test -n "$CC"; then 3166 if test -n "$CC"; then
@@ -3558,18 +3172,18 @@ for as_dir in $PATH
3558do 3172do
3559 IFS=$as_save_IFS 3173 IFS=$as_save_IFS
3560 test -z "$as_dir" && as_dir=. 3174 test -z "$as_dir" && as_dir=.
3561 for ac_exec_ext in '' $ac_executable_extensions; do 3175 for ac_exec_ext in '' $ac_executable_extensions; do
3562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3563 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3177 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3564 ac_prog_rejected=yes 3178 ac_prog_rejected=yes
3565 continue 3179 continue
3566 fi 3180 fi
3567 ac_cv_prog_CC="cc" 3181 ac_cv_prog_CC="cc"
3568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3182 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 break 2 3183 break 2
3570 fi 3184 fi
3571done 3185done
3572 done 3186done
3573IFS=$as_save_IFS 3187IFS=$as_save_IFS
3574 3188
3575if test $ac_prog_rejected = yes; then 3189if test $ac_prog_rejected = yes; then
@@ -3588,10 +3202,10 @@ fi
3588fi 3202fi
3589CC=$ac_cv_prog_CC 3203CC=$ac_cv_prog_CC
3590if test -n "$CC"; then 3204if test -n "$CC"; then
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3205 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3592$as_echo "$CC" >&6; } 3206$as_echo "$CC" >&6; }
3593else 3207else
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3208 { $as_echo "$as_me:$LINENO: result: no" >&5
3595$as_echo "no" >&6; } 3209$as_echo "no" >&6; }
3596fi 3210fi
3597 3211
@@ -3603,9 +3217,9 @@ if test -z "$CC"; then
3603 do 3217 do
3604 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3605set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3219set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3220{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3607$as_echo_n "checking for $ac_word... " >&6; } 3221$as_echo_n "checking for $ac_word... " >&6; }
3608if test "${ac_cv_prog_CC+set}" = set; then : 3222if test "${ac_cv_prog_CC+set}" = set; then
3609 $as_echo_n "(cached) " >&6 3223 $as_echo_n "(cached) " >&6
3610else 3224else
3611 if test -n "$CC"; then 3225 if test -n "$CC"; then
@@ -3616,24 +3230,24 @@ for as_dir in $PATH
3616do 3230do
3617 IFS=$as_save_IFS 3231 IFS=$as_save_IFS
3618 test -z "$as_dir" && as_dir=. 3232 test -z "$as_dir" && as_dir=.
3619 for ac_exec_ext in '' $ac_executable_extensions; do 3233 for ac_exec_ext in '' $ac_executable_extensions; do
3620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3621 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3235 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3236 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3623 break 2 3237 break 2
3624 fi 3238 fi
3625done 3239done
3626 done 3240done
3627IFS=$as_save_IFS 3241IFS=$as_save_IFS
3628 3242
3629fi 3243fi
3630fi 3244fi
3631CC=$ac_cv_prog_CC 3245CC=$ac_cv_prog_CC
3632if test -n "$CC"; then 3246if test -n "$CC"; then
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3247 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3634$as_echo "$CC" >&6; } 3248$as_echo "$CC" >&6; }
3635else 3249else
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3250 { $as_echo "$as_me:$LINENO: result: no" >&5
3637$as_echo "no" >&6; } 3251$as_echo "no" >&6; }
3638fi 3252fi
3639 3253
@@ -3647,9 +3261,9 @@ if test -z "$CC"; then
3647do 3261do
3648 # Extract the first word of "$ac_prog", so it can be a program name with args. 3262 # Extract the first word of "$ac_prog", so it can be a program name with args.
3649set dummy $ac_prog; ac_word=$2 3263set dummy $ac_prog; ac_word=$2
3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3264{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3651$as_echo_n "checking for $ac_word... " >&6; } 3265$as_echo_n "checking for $ac_word... " >&6; }
3652if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3266if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3653 $as_echo_n "(cached) " >&6 3267 $as_echo_n "(cached) " >&6
3654else 3268else
3655 if test -n "$ac_ct_CC"; then 3269 if test -n "$ac_ct_CC"; then
@@ -3660,24 +3274,24 @@ for as_dir in $PATH
3660do 3274do
3661 IFS=$as_save_IFS 3275 IFS=$as_save_IFS
3662 test -z "$as_dir" && as_dir=. 3276 test -z "$as_dir" && as_dir=.
3663 for ac_exec_ext in '' $ac_executable_extensions; do 3277 for ac_exec_ext in '' $ac_executable_extensions; do
3664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3665 ac_cv_prog_ac_ct_CC="$ac_prog" 3279 ac_cv_prog_ac_ct_CC="$ac_prog"
3666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3280 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3667 break 2 3281 break 2
3668 fi 3282 fi
3669done 3283done
3670 done 3284done
3671IFS=$as_save_IFS 3285IFS=$as_save_IFS
3672 3286
3673fi 3287fi
3674fi 3288fi
3675ac_ct_CC=$ac_cv_prog_ac_ct_CC 3289ac_ct_CC=$ac_cv_prog_ac_ct_CC
3676if test -n "$ac_ct_CC"; then 3290if test -n "$ac_ct_CC"; then
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3291 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3678$as_echo "$ac_ct_CC" >&6; } 3292$as_echo "$ac_ct_CC" >&6; }
3679else 3293else
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3294 { $as_echo "$as_me:$LINENO: result: no" >&5
3681$as_echo "no" >&6; } 3295$as_echo "no" >&6; }
3682fi 3296fi
3683 3297
@@ -3690,8 +3304,12 @@ done
3690 else 3304 else
3691 case $cross_compiling:$ac_tool_warned in 3305 case $cross_compiling:$ac_tool_warned in
3692yes:) 3306yes:)
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3307{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3308whose name does not start with the host triplet. If you think this
3309configuration is useful to you, please write to autoconf@gnu.org." >&5
3310$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3311whose name does not start with the host triplet. If you think this
3312configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3695ac_tool_warned=yes ;; 3313ac_tool_warned=yes ;;
3696esac 3314esac
3697 CC=$ac_ct_CC 3315 CC=$ac_ct_CC
@@ -3701,37 +3319,55 @@ fi
3701fi 3319fi
3702 3320
3703 3321
3704test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3322test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3705$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3323See \`config.log' for more details." >&5
3706as_fn_error "no acceptable C compiler found in \$PATH 3324$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3707See \`config.log' for more details." "$LINENO" 5; } 3325See \`config.log' for more details." >&2;}
3326 { (exit 1); exit 1; }; }
3708 3327
3709# Provide some information about the compiler. 3328# Provide some information about the compiler.
3710$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3329$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3711set X $ac_compile 3330set X $ac_compile
3712ac_compiler=$2 3331ac_compiler=$2
3713for ac_option in --version -v -V -qversion; do 3332{ (ac_try="$ac_compiler --version >&5"
3714 { { ac_try="$ac_compiler $ac_option >&5"
3715case "(($ac_try" in 3333case "(($ac_try" in
3716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717 *) ac_try_echo=$ac_try;; 3335 *) ac_try_echo=$ac_try;;
3718esac 3336esac
3719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3337eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3720$as_echo "$ac_try_echo"; } >&5 3338$as_echo "$ac_try_echo") >&5
3721 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3339 (eval "$ac_compiler --version >&5") 2>&5
3722 ac_status=$? 3340 ac_status=$?
3723 if test -s conftest.err; then 3341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 sed '10a\ 3342 (exit $ac_status); }
3725... rest of stderr output deleted ... 3343{ (ac_try="$ac_compiler -v >&5"
3726 10q' conftest.err >conftest.er1 3344case "(($ac_try" in
3727 cat conftest.er1 >&5 3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728 fi 3346 *) ac_try_echo=$ac_try;;
3729 rm -f conftest.er1 conftest.err 3347esac
3730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3348eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3731 test $ac_status = 0; } 3349$as_echo "$ac_try_echo") >&5
3732done 3350 (eval "$ac_compiler -v >&5") 2>&5
3351 ac_status=$?
3352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }
3354{ (ac_try="$ac_compiler -V >&5"
3355case "(($ac_try" in
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3358esac
3359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3360$as_echo "$ac_try_echo") >&5
3361 (eval "$ac_compiler -V >&5") 2>&5
3362 ac_status=$?
3363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); }
3733 3365
3734cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3366cat >conftest.$ac_ext <<_ACEOF
3367/* confdefs.h. */
3368_ACEOF
3369cat confdefs.h >>conftest.$ac_ext
3370cat >>conftest.$ac_ext <<_ACEOF
3735/* end confdefs.h. */ 3371/* end confdefs.h. */
3736 3372
3737int 3373int
@@ -3747,8 +3383,8 @@ ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3747# Try to create an executable without -o first, disregard a.out. 3383# Try to create an executable without -o first, disregard a.out.
3748# It will help us diagnose broken compilers, and finding out an intuition 3384# It will help us diagnose broken compilers, and finding out an intuition
3749# of exeext. 3385# of exeext.
3750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3386{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3751$as_echo_n "checking whether the C compiler works... " >&6; } 3387$as_echo_n "checking for C compiler default output file name... " >&6; }
3752ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3388ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3753 3389
3754# The possible output files: 3390# The possible output files:
@@ -3764,17 +3400,17 @@ do
3764done 3400done
3765rm -f $ac_rmfiles 3401rm -f $ac_rmfiles
3766 3402
3767if { { ac_try="$ac_link_default" 3403if { (ac_try="$ac_link_default"
3768case "(($ac_try" in 3404case "(($ac_try" in
3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;; 3406 *) ac_try_echo=$ac_try;;
3771esac 3407esac
3772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3408eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3773$as_echo "$ac_try_echo"; } >&5 3409$as_echo "$ac_try_echo") >&5
3774 (eval "$ac_link_default") 2>&5 3410 (eval "$ac_link_default") 2>&5
3775 ac_status=$? 3411 ac_status=$?
3776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 test $ac_status = 0; }; then : 3413 (exit $ac_status); }; then
3778 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3414 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3779# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3415# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3780# in a Makefile. We should not override ac_cv_exeext if it was cached, 3416# in a Makefile. We should not override ac_cv_exeext if it was cached,
@@ -3791,7 +3427,7 @@ do
3791 # certainly right. 3427 # certainly right.
3792 break;; 3428 break;;
3793 *.* ) 3429 *.* )
3794 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3430 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3795 then :; else 3431 then :; else
3796 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3432 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3797 fi 3433 fi
@@ -3810,42 +3446,80 @@ test "$ac_cv_exeext" = no && ac_cv_exeext=
3810else 3446else
3811 ac_file='' 3447 ac_file=''
3812fi 3448fi
3813if test -z "$ac_file"; then : 3449
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3450{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3815$as_echo "no" >&6; } 3451$as_echo "$ac_file" >&6; }
3816$as_echo "$as_me: failed program was:" >&5 3452if test -z "$ac_file"; then
3453 $as_echo "$as_me: failed program was:" >&5
3817sed 's/^/| /' conftest.$ac_ext >&5 3454sed 's/^/| /' conftest.$ac_ext >&5
3818 3455
3819{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3456{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3820$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3457See \`config.log' for more details." >&5
3821{ as_fn_set_status 77 3458$as_echo "$as_me: error: C compiler cannot create executables
3822as_fn_error "C compiler cannot create executables 3459See \`config.log' for more details." >&2;}
3823See \`config.log' for more details." "$LINENO" 5; }; } 3460 { (exit 77); exit 77; }; }
3824else
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3826$as_echo "yes" >&6; }
3827fi 3461fi
3828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3462
3829$as_echo_n "checking for C compiler default output file name... " >&6; }
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3831$as_echo "$ac_file" >&6; }
3832ac_exeext=$ac_cv_exeext 3463ac_exeext=$ac_cv_exeext
3833 3464
3465# Check that the compiler produces executables we can run. If not, either
3466# the compiler is broken, or we cross compile.
3467{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3468$as_echo_n "checking whether the C compiler works... " >&6; }
3469# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3470# If not cross compiling, check that we can run a simple program.
3471if test "$cross_compiling" != yes; then
3472 if { ac_try='./$ac_file'
3473 { (case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3476esac
3477eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3478$as_echo "$ac_try_echo") >&5
3479 (eval "$ac_try") 2>&5
3480 ac_status=$?
3481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); }; }; then
3483 cross_compiling=no
3484 else
3485 if test "$cross_compiling" = maybe; then
3486 cross_compiling=yes
3487 else
3488 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3489If you meant to cross compile, use \`--host'.
3490See \`config.log' for more details." >&5
3491$as_echo "$as_me: error: cannot run C compiled programs.
3492If you meant to cross compile, use \`--host'.
3493See \`config.log' for more details." >&2;}
3494 { (exit 1); exit 1; }; }
3495 fi
3496 fi
3497fi
3498{ $as_echo "$as_me:$LINENO: result: yes" >&5
3499$as_echo "yes" >&6; }
3500
3834rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3501rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3835ac_clean_files=$ac_clean_files_save 3502ac_clean_files=$ac_clean_files_save
3836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3503# Check that the compiler produces executables we can run. If not, either
3504# the compiler is broken, or we cross compile.
3505{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3506$as_echo_n "checking whether we are cross compiling... " >&6; }
3507{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3508$as_echo "$cross_compiling" >&6; }
3509
3510{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3837$as_echo_n "checking for suffix of executables... " >&6; } 3511$as_echo_n "checking for suffix of executables... " >&6; }
3838if { { ac_try="$ac_link" 3512if { (ac_try="$ac_link"
3839case "(($ac_try" in 3513case "(($ac_try" in
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;; 3515 *) ac_try_echo=$ac_try;;
3842esac 3516esac
3843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3844$as_echo "$ac_try_echo"; } >&5 3518$as_echo "$ac_try_echo") >&5
3845 (eval "$ac_link") 2>&5 3519 (eval "$ac_link") 2>&5
3846 ac_status=$? 3520 ac_status=$?
3847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 test $ac_status = 0; }; then : 3522 (exit $ac_status); }; then
3849 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3523 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3850# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3524# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3851# work properly (i.e., refer to `conftest.exe'), while it won't with 3525# work properly (i.e., refer to `conftest.exe'), while it won't with
@@ -3860,83 +3534,30 @@ for ac_file in conftest.exe conftest conftest.*; do
3860 esac 3534 esac
3861done 3535done
3862else 3536else
3863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3537 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3864$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3538See \`config.log' for more details." >&5
3865as_fn_error "cannot compute suffix of executables: cannot compile and link 3539$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3866See \`config.log' for more details." "$LINENO" 5; } 3540See \`config.log' for more details." >&2;}
3541 { (exit 1); exit 1; }; }
3867fi 3542fi
3868rm -f conftest conftest$ac_cv_exeext 3543
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3544rm -f conftest$ac_cv_exeext
3545{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3870$as_echo "$ac_cv_exeext" >&6; } 3546$as_echo "$ac_cv_exeext" >&6; }
3871 3547
3872rm -f conftest.$ac_ext 3548rm -f conftest.$ac_ext
3873EXEEXT=$ac_cv_exeext 3549EXEEXT=$ac_cv_exeext
3874ac_exeext=$EXEEXT 3550ac_exeext=$EXEEXT
3875cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3551{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3876/* end confdefs.h. */
3877#include <stdio.h>
3878int
3879main ()
3880{
3881FILE *f = fopen ("conftest.out", "w");
3882 return ferror (f) || fclose (f) != 0;
3883
3884 ;
3885 return 0;
3886}
3887_ACEOF
3888ac_clean_files="$ac_clean_files conftest.out"
3889# Check that the compiler produces executables we can run. If not, either
3890# the compiler is broken, or we cross compile.
3891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3892$as_echo_n "checking whether we are cross compiling... " >&6; }
3893if test "$cross_compiling" != yes; then
3894 { { ac_try="$ac_link"
3895case "(($ac_try" in
3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3898esac
3899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3900$as_echo "$ac_try_echo"; } >&5
3901 (eval "$ac_link") 2>&5
3902 ac_status=$?
3903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3904 test $ac_status = 0; }
3905 if { ac_try='./conftest$ac_cv_exeext'
3906 { { case "(($ac_try" in
3907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908 *) ac_try_echo=$ac_try;;
3909esac
3910eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3911$as_echo "$ac_try_echo"; } >&5
3912 (eval "$ac_try") 2>&5
3913 ac_status=$?
3914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3915 test $ac_status = 0; }; }; then
3916 cross_compiling=no
3917 else
3918 if test "$cross_compiling" = maybe; then
3919 cross_compiling=yes
3920 else
3921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3922$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3923as_fn_error "cannot run C compiled programs.
3924If you meant to cross compile, use \`--host'.
3925See \`config.log' for more details." "$LINENO" 5; }
3926 fi
3927 fi
3928fi
3929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3930$as_echo "$cross_compiling" >&6; }
3931
3932rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3933ac_clean_files=$ac_clean_files_save
3934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3935$as_echo_n "checking for suffix of object files... " >&6; } 3552$as_echo_n "checking for suffix of object files... " >&6; }
3936if test "${ac_cv_objext+set}" = set; then : 3553if test "${ac_cv_objext+set}" = set; then
3937 $as_echo_n "(cached) " >&6 3554 $as_echo_n "(cached) " >&6
3938else 3555else
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3556 cat >conftest.$ac_ext <<_ACEOF
3557/* confdefs.h. */
3558_ACEOF
3559cat confdefs.h >>conftest.$ac_ext
3560cat >>conftest.$ac_ext <<_ACEOF
3940/* end confdefs.h. */ 3561/* end confdefs.h. */
3941 3562
3942int 3563int
@@ -3948,17 +3569,17 @@ main ()
3948} 3569}
3949_ACEOF 3570_ACEOF
3950rm -f conftest.o conftest.obj 3571rm -f conftest.o conftest.obj
3951if { { ac_try="$ac_compile" 3572if { (ac_try="$ac_compile"
3952case "(($ac_try" in 3573case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;; 3575 *) ac_try_echo=$ac_try;;
3955esac 3576esac
3956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3577eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3957$as_echo "$ac_try_echo"; } >&5 3578$as_echo "$ac_try_echo") >&5
3958 (eval "$ac_compile") 2>&5 3579 (eval "$ac_compile") 2>&5
3959 ac_status=$? 3580 ac_status=$?
3960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 test $ac_status = 0; }; then : 3582 (exit $ac_status); }; then
3962 for ac_file in conftest.o conftest.obj conftest.*; do 3583 for ac_file in conftest.o conftest.obj conftest.*; do
3963 test -f "$ac_file" || continue; 3584 test -f "$ac_file" || continue;
3964 case $ac_file in 3585 case $ac_file in
@@ -3971,23 +3592,29 @@ else
3971 $as_echo "$as_me: failed program was:" >&5 3592 $as_echo "$as_me: failed program was:" >&5
3972sed 's/^/| /' conftest.$ac_ext >&5 3593sed 's/^/| /' conftest.$ac_ext >&5
3973 3594
3974{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3595{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3596See \`config.log' for more details." >&5
3976as_fn_error "cannot compute suffix of object files: cannot compile 3597$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3977See \`config.log' for more details." "$LINENO" 5; } 3598See \`config.log' for more details." >&2;}
3599 { (exit 1); exit 1; }; }
3978fi 3600fi
3601
3979rm -f conftest.$ac_cv_objext conftest.$ac_ext 3602rm -f conftest.$ac_cv_objext conftest.$ac_ext
3980fi 3603fi
3981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3604{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3982$as_echo "$ac_cv_objext" >&6; } 3605$as_echo "$ac_cv_objext" >&6; }
3983OBJEXT=$ac_cv_objext 3606OBJEXT=$ac_cv_objext
3984ac_objext=$OBJEXT 3607ac_objext=$OBJEXT
3985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3608{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3986$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3609$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3987if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3610if test "${ac_cv_c_compiler_gnu+set}" = set; then
3988 $as_echo_n "(cached) " >&6 3611 $as_echo_n "(cached) " >&6
3989else 3612else
3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3613 cat >conftest.$ac_ext <<_ACEOF
3614/* confdefs.h. */
3615_ACEOF
3616cat confdefs.h >>conftest.$ac_ext
3617cat >>conftest.$ac_ext <<_ACEOF
3991/* end confdefs.h. */ 3618/* end confdefs.h. */
3992 3619
3993int 3620int
@@ -4001,16 +3628,37 @@ main ()
4001 return 0; 3628 return 0;
4002} 3629}
4003_ACEOF 3630_ACEOF
4004if ac_fn_c_try_compile "$LINENO"; then : 3631rm -f conftest.$ac_objext
3632if { (ac_try="$ac_compile"
3633case "(($ac_try" in
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3636esac
3637eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3638$as_echo "$ac_try_echo") >&5
3639 (eval "$ac_compile") 2>conftest.er1
3640 ac_status=$?
3641 grep -v '^ *+' conftest.er1 >conftest.err
3642 rm -f conftest.er1
3643 cat conftest.err >&5
3644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); } && {
3646 test -z "$ac_c_werror_flag" ||
3647 test ! -s conftest.err
3648 } && test -s conftest.$ac_objext; then
4005 ac_compiler_gnu=yes 3649 ac_compiler_gnu=yes
4006else 3650else
4007 ac_compiler_gnu=no 3651 $as_echo "$as_me: failed program was:" >&5
3652sed 's/^/| /' conftest.$ac_ext >&5
3653
3654 ac_compiler_gnu=no
4008fi 3655fi
3656
4009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4010ac_cv_c_compiler_gnu=$ac_compiler_gnu 3658ac_cv_c_compiler_gnu=$ac_compiler_gnu
4011 3659
4012fi 3660fi
4013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3661{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4014$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3662$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4015if test $ac_compiler_gnu = yes; then 3663if test $ac_compiler_gnu = yes; then
4016 GCC=yes 3664 GCC=yes
@@ -4019,16 +3667,20 @@ else
4019fi 3667fi
4020ac_test_CFLAGS=${CFLAGS+set} 3668ac_test_CFLAGS=${CFLAGS+set}
4021ac_save_CFLAGS=$CFLAGS 3669ac_save_CFLAGS=$CFLAGS
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3670{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4023$as_echo_n "checking whether $CC accepts -g... " >&6; } 3671$as_echo_n "checking whether $CC accepts -g... " >&6; }
4024if test "${ac_cv_prog_cc_g+set}" = set; then : 3672if test "${ac_cv_prog_cc_g+set}" = set; then
4025 $as_echo_n "(cached) " >&6 3673 $as_echo_n "(cached) " >&6
4026else 3674else
4027 ac_save_c_werror_flag=$ac_c_werror_flag 3675 ac_save_c_werror_flag=$ac_c_werror_flag
4028 ac_c_werror_flag=yes 3676 ac_c_werror_flag=yes
4029 ac_cv_prog_cc_g=no 3677 ac_cv_prog_cc_g=no
4030 CFLAGS="-g" 3678 CFLAGS="-g"
4031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3679 cat >conftest.$ac_ext <<_ACEOF
3680/* confdefs.h. */
3681_ACEOF
3682cat confdefs.h >>conftest.$ac_ext
3683cat >>conftest.$ac_ext <<_ACEOF
4032/* end confdefs.h. */ 3684/* end confdefs.h. */
4033 3685
4034int 3686int
@@ -4039,11 +3691,35 @@ main ()
4039 return 0; 3691 return 0;
4040} 3692}
4041_ACEOF 3693_ACEOF
4042if ac_fn_c_try_compile "$LINENO"; then : 3694rm -f conftest.$ac_objext
3695if { (ac_try="$ac_compile"
3696case "(($ac_try" in
3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3699esac
3700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3701$as_echo "$ac_try_echo") >&5
3702 (eval "$ac_compile") 2>conftest.er1
3703 ac_status=$?
3704 grep -v '^ *+' conftest.er1 >conftest.err
3705 rm -f conftest.er1
3706 cat conftest.err >&5
3707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } && {
3709 test -z "$ac_c_werror_flag" ||
3710 test ! -s conftest.err
3711 } && test -s conftest.$ac_objext; then
4043 ac_cv_prog_cc_g=yes 3712 ac_cv_prog_cc_g=yes
4044else 3713else
4045 CFLAGS="" 3714 $as_echo "$as_me: failed program was:" >&5
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3715sed 's/^/| /' conftest.$ac_ext >&5
3716
3717 CFLAGS=""
3718 cat >conftest.$ac_ext <<_ACEOF
3719/* confdefs.h. */
3720_ACEOF
3721cat confdefs.h >>conftest.$ac_ext
3722cat >>conftest.$ac_ext <<_ACEOF
4047/* end confdefs.h. */ 3723/* end confdefs.h. */
4048 3724
4049int 3725int
@@ -4054,12 +3730,36 @@ main ()
4054 return 0; 3730 return 0;
4055} 3731}
4056_ACEOF 3732_ACEOF
4057if ac_fn_c_try_compile "$LINENO"; then : 3733rm -f conftest.$ac_objext
4058 3734if { (ac_try="$ac_compile"
3735case "(($ac_try" in
3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737 *) ac_try_echo=$ac_try;;
3738esac
3739eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3740$as_echo "$ac_try_echo") >&5
3741 (eval "$ac_compile") 2>conftest.er1
3742 ac_status=$?
3743 grep -v '^ *+' conftest.er1 >conftest.err
3744 rm -f conftest.er1
3745 cat conftest.err >&5
3746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); } && {
3748 test -z "$ac_c_werror_flag" ||
3749 test ! -s conftest.err
3750 } && test -s conftest.$ac_objext; then
3751 :
4059else 3752else
4060 ac_c_werror_flag=$ac_save_c_werror_flag 3753 $as_echo "$as_me: failed program was:" >&5
3754sed 's/^/| /' conftest.$ac_ext >&5
3755
3756 ac_c_werror_flag=$ac_save_c_werror_flag
4061 CFLAGS="-g" 3757 CFLAGS="-g"
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3758 cat >conftest.$ac_ext <<_ACEOF
3759/* confdefs.h. */
3760_ACEOF
3761cat confdefs.h >>conftest.$ac_ext
3762cat >>conftest.$ac_ext <<_ACEOF
4063/* end confdefs.h. */ 3763/* end confdefs.h. */
4064 3764
4065int 3765int
@@ -4070,17 +3770,42 @@ main ()
4070 return 0; 3770 return 0;
4071} 3771}
4072_ACEOF 3772_ACEOF
4073if ac_fn_c_try_compile "$LINENO"; then : 3773rm -f conftest.$ac_objext
3774if { (ac_try="$ac_compile"
3775case "(($ac_try" in
3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3778esac
3779eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3780$as_echo "$ac_try_echo") >&5
3781 (eval "$ac_compile") 2>conftest.er1
3782 ac_status=$?
3783 grep -v '^ *+' conftest.er1 >conftest.err
3784 rm -f conftest.er1
3785 cat conftest.err >&5
3786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); } && {
3788 test -z "$ac_c_werror_flag" ||
3789 test ! -s conftest.err
3790 } && test -s conftest.$ac_objext; then
4074 ac_cv_prog_cc_g=yes 3791 ac_cv_prog_cc_g=yes
3792else
3793 $as_echo "$as_me: failed program was:" >&5
3794sed 's/^/| /' conftest.$ac_ext >&5
3795
3796
4075fi 3797fi
3798
4076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4077fi 3800fi
3801
4078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4079fi 3803fi
3804
4080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4081 ac_c_werror_flag=$ac_save_c_werror_flag 3806 ac_c_werror_flag=$ac_save_c_werror_flag
4082fi 3807fi
4083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3808{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4084$as_echo "$ac_cv_prog_cc_g" >&6; } 3809$as_echo "$ac_cv_prog_cc_g" >&6; }
4085if test "$ac_test_CFLAGS" = set; then 3810if test "$ac_test_CFLAGS" = set; then
4086 CFLAGS=$ac_save_CFLAGS 3811 CFLAGS=$ac_save_CFLAGS
@@ -4097,14 +3822,18 @@ else
4097 CFLAGS= 3822 CFLAGS=
4098 fi 3823 fi
4099fi 3824fi
4100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3825{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4101$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3826$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4102if test "${ac_cv_prog_cc_c89+set}" = set; then : 3827if test "${ac_cv_prog_cc_c89+set}" = set; then
4103 $as_echo_n "(cached) " >&6 3828 $as_echo_n "(cached) " >&6
4104else 3829else
4105 ac_cv_prog_cc_c89=no 3830 ac_cv_prog_cc_c89=no
4106ac_save_CC=$CC 3831ac_save_CC=$CC
4107cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3832cat >conftest.$ac_ext <<_ACEOF
3833/* confdefs.h. */
3834_ACEOF
3835cat confdefs.h >>conftest.$ac_ext
3836cat >>conftest.$ac_ext <<_ACEOF
4108/* end confdefs.h. */ 3837/* end confdefs.h. */
4109#include <stdarg.h> 3838#include <stdarg.h>
4110#include <stdio.h> 3839#include <stdio.h>
@@ -4161,9 +3890,32 @@ for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4161 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3890 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4162do 3891do
4163 CC="$ac_save_CC $ac_arg" 3892 CC="$ac_save_CC $ac_arg"
4164 if ac_fn_c_try_compile "$LINENO"; then : 3893 rm -f conftest.$ac_objext
3894if { (ac_try="$ac_compile"
3895case "(($ac_try" in
3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3898esac
3899eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3900$as_echo "$ac_try_echo") >&5
3901 (eval "$ac_compile") 2>conftest.er1
3902 ac_status=$?
3903 grep -v '^ *+' conftest.er1 >conftest.err
3904 rm -f conftest.er1
3905 cat conftest.err >&5
3906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); } && {
3908 test -z "$ac_c_werror_flag" ||
3909 test ! -s conftest.err
3910 } && test -s conftest.$ac_objext; then
4165 ac_cv_prog_cc_c89=$ac_arg 3911 ac_cv_prog_cc_c89=$ac_arg
3912else
3913 $as_echo "$as_me: failed program was:" >&5
3914sed 's/^/| /' conftest.$ac_ext >&5
3915
3916
4166fi 3917fi
3918
4167rm -f core conftest.err conftest.$ac_objext 3919rm -f core conftest.err conftest.$ac_objext
4168 test "x$ac_cv_prog_cc_c89" != "xno" && break 3920 test "x$ac_cv_prog_cc_c89" != "xno" && break
4169done 3921done
@@ -4174,19 +3926,17 @@ fi
4174# AC_CACHE_VAL 3926# AC_CACHE_VAL
4175case "x$ac_cv_prog_cc_c89" in 3927case "x$ac_cv_prog_cc_c89" in
4176 x) 3928 x)
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3929 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4178$as_echo "none needed" >&6; } ;; 3930$as_echo "none needed" >&6; } ;;
4179 xno) 3931 xno)
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3932 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4181$as_echo "unsupported" >&6; } ;; 3933$as_echo "unsupported" >&6; } ;;
4182 *) 3934 *)
4183 CC="$CC $ac_cv_prog_cc_c89" 3935 CC="$CC $ac_cv_prog_cc_c89"
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3936 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4185$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3937$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4186esac 3938esac
4187if test "x$ac_cv_prog_cc_c89" != xno; then :
4188 3939
4189fi
4190 3940
4191ac_ext=c 3941ac_ext=c
4192ac_cpp='$CPP $CPPFLAGS' 3942ac_cpp='$CPP $CPPFLAGS'
@@ -4204,13 +3954,17 @@ fi
4204## using a Sun compiler, which needs -Xs to prevent whitespace. 3954## using a Sun compiler, which needs -Xs to prevent whitespace.
4205if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \ 3955if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4206 test x"$CPP" = x; then 3956 test x"$CPP" = x; then
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5 3957 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
4208$as_echo_n "checking whether we are using a Sun C compiler... " >&6; } 3958$as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4209 3959
4210if test "${emacs_cv_sunpro_c+set}" = set; then : 3960if test "${emacs_cv_sunpro_c+set}" = set; then
4211 $as_echo_n "(cached) " >&6 3961 $as_echo_n "(cached) " >&6
4212else 3962else
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3963 cat >conftest.$ac_ext <<_ACEOF
3964/* confdefs.h. */
3965_ACEOF
3966cat confdefs.h >>conftest.$ac_ext
3967cat >>conftest.$ac_ext <<_ACEOF
4214/* end confdefs.h. */ 3968/* end confdefs.h. */
4215 3969
4216int 3970int
@@ -4224,16 +3978,41 @@ fail;
4224 return 0; 3978 return 0;
4225} 3979}
4226_ACEOF 3980_ACEOF
4227if ac_fn_c_try_link "$LINENO"; then : 3981rm -f conftest.$ac_objext conftest$ac_exeext
3982if { (ac_try="$ac_link"
3983case "(($ac_try" in
3984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3985 *) ac_try_echo=$ac_try;;
3986esac
3987eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3988$as_echo "$ac_try_echo") >&5
3989 (eval "$ac_link") 2>conftest.er1
3990 ac_status=$?
3991 grep -v '^ *+' conftest.er1 >conftest.err
3992 rm -f conftest.er1
3993 cat conftest.err >&5
3994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); } && {
3996 test -z "$ac_c_werror_flag" ||
3997 test ! -s conftest.err
3998 } && test -s conftest$ac_exeext && {
3999 test "$cross_compiling" = yes ||
4000 $as_test_x conftest$ac_exeext
4001 }; then
4228 emacs_cv_sunpro_c=yes 4002 emacs_cv_sunpro_c=yes
4229else 4003else
4230 emacs_cv_sunpro_c=no 4004 $as_echo "$as_me: failed program was:" >&5
4005sed 's/^/| /' conftest.$ac_ext >&5
4006
4007 emacs_cv_sunpro_c=no
4231fi 4008fi
4232rm -f core conftest.err conftest.$ac_objext \ 4009
4233 conftest$ac_exeext conftest.$ac_ext 4010rm -rf conftest.dSYM
4011rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4012 conftest$ac_exeext conftest.$ac_ext
4234fi 4013fi
4235 4014
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5 4015 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4237$as_echo "$emacs_cv_sunpro_c" >&6; } 4016$as_echo "$emacs_cv_sunpro_c" >&6; }
4238 4017
4239 if test x"$emacs_cv_sunpro_c" = xyes; then 4018 if test x"$emacs_cv_sunpro_c" = xyes; then
@@ -4273,14 +4052,14 @@ ac_cpp='$CPP $CPPFLAGS'
4273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4275ac_compiler_gnu=$ac_cv_c_compiler_gnu 4054ac_compiler_gnu=$ac_cv_c_compiler_gnu
4276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4055{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4277$as_echo_n "checking how to run the C preprocessor... " >&6; } 4056$as_echo_n "checking how to run the C preprocessor... " >&6; }
4278# On Suns, sometimes $CPP names a directory. 4057# On Suns, sometimes $CPP names a directory.
4279if test -n "$CPP" && test -d "$CPP"; then 4058if test -n "$CPP" && test -d "$CPP"; then
4280 CPP= 4059 CPP=
4281fi 4060fi
4282if test -z "$CPP"; then 4061if test -z "$CPP"; then
4283 if test "${ac_cv_prog_CPP+set}" = set; then : 4062 if test "${ac_cv_prog_CPP+set}" = set; then
4284 $as_echo_n "(cached) " >&6 4063 $as_echo_n "(cached) " >&6
4285else 4064else
4286 # Double quotes because CPP needs to be expanded 4065 # Double quotes because CPP needs to be expanded
@@ -4295,7 +4074,11 @@ do
4295 # <limits.h> exists even on freestanding compilers. 4074 # <limits.h> exists even on freestanding compilers.
4296 # On the NeXT, cc -E runs the code through the compiler's parser, 4075 # On the NeXT, cc -E runs the code through the compiler's parser,
4297 # not just through cpp. "Syntax error" is here to catch this case. 4076 # not just through cpp. "Syntax error" is here to catch this case.
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4077 cat >conftest.$ac_ext <<_ACEOF
4078/* confdefs.h. */
4079_ACEOF
4080cat confdefs.h >>conftest.$ac_ext
4081cat >>conftest.$ac_ext <<_ACEOF
4299/* end confdefs.h. */ 4082/* end confdefs.h. */
4300#ifdef __STDC__ 4083#ifdef __STDC__
4301# include <limits.h> 4084# include <limits.h>
@@ -4304,34 +4087,78 @@ do
4304#endif 4087#endif
4305 Syntax error 4088 Syntax error
4306_ACEOF 4089_ACEOF
4307if ac_fn_c_try_cpp "$LINENO"; then : 4090if { (ac_try="$ac_cpp conftest.$ac_ext"
4308 4091case "(($ac_try" in
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4094esac
4095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4096$as_echo "$ac_try_echo") >&5
4097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4098 ac_status=$?
4099 grep -v '^ *+' conftest.er1 >conftest.err
4100 rm -f conftest.er1
4101 cat conftest.err >&5
4102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } >/dev/null && {
4104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4105 test ! -s conftest.err
4106 }; then
4107 :
4309else 4108else
4109 $as_echo "$as_me: failed program was:" >&5
4110sed 's/^/| /' conftest.$ac_ext >&5
4111
4310 # Broken: fails on valid input. 4112 # Broken: fails on valid input.
4311continue 4113continue
4312fi 4114fi
4115
4313rm -f conftest.err conftest.$ac_ext 4116rm -f conftest.err conftest.$ac_ext
4314 4117
4315 # OK, works on sane cases. Now check whether nonexistent headers 4118 # OK, works on sane cases. Now check whether nonexistent headers
4316 # can be detected and how. 4119 # can be detected and how.
4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4120 cat >conftest.$ac_ext <<_ACEOF
4121/* confdefs.h. */
4122_ACEOF
4123cat confdefs.h >>conftest.$ac_ext
4124cat >>conftest.$ac_ext <<_ACEOF
4318/* end confdefs.h. */ 4125/* end confdefs.h. */
4319#include <ac_nonexistent.h> 4126#include <ac_nonexistent.h>
4320_ACEOF 4127_ACEOF
4321if ac_fn_c_try_cpp "$LINENO"; then : 4128if { (ac_try="$ac_cpp conftest.$ac_ext"
4129case "(($ac_try" in
4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4132esac
4133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4134$as_echo "$ac_try_echo") >&5
4135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4136 ac_status=$?
4137 grep -v '^ *+' conftest.er1 >conftest.err
4138 rm -f conftest.er1
4139 cat conftest.err >&5
4140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); } >/dev/null && {
4142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4143 test ! -s conftest.err
4144 }; then
4322 # Broken: success on invalid input. 4145 # Broken: success on invalid input.
4323continue 4146continue
4324else 4147else
4148 $as_echo "$as_me: failed program was:" >&5
4149sed 's/^/| /' conftest.$ac_ext >&5
4150
4325 # Passes both tests. 4151 # Passes both tests.
4326ac_preproc_ok=: 4152ac_preproc_ok=:
4327break 4153break
4328fi 4154fi
4155
4329rm -f conftest.err conftest.$ac_ext 4156rm -f conftest.err conftest.$ac_ext
4330 4157
4331done 4158done
4332# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4159# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4333rm -f conftest.err conftest.$ac_ext 4160rm -f conftest.err conftest.$ac_ext
4334if $ac_preproc_ok; then : 4161if $ac_preproc_ok; then
4335 break 4162 break
4336fi 4163fi
4337 4164
@@ -4343,7 +4170,7 @@ fi
4343else 4170else
4344 ac_cv_prog_CPP=$CPP 4171 ac_cv_prog_CPP=$CPP
4345fi 4172fi
4346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4173{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4347$as_echo "$CPP" >&6; } 4174$as_echo "$CPP" >&6; }
4348ac_preproc_ok=false 4175ac_preproc_ok=false
4349for ac_c_preproc_warn_flag in '' yes 4176for ac_c_preproc_warn_flag in '' yes
@@ -4354,7 +4181,11 @@ do
4354 # <limits.h> exists even on freestanding compilers. 4181 # <limits.h> exists even on freestanding compilers.
4355 # On the NeXT, cc -E runs the code through the compiler's parser, 4182 # On the NeXT, cc -E runs the code through the compiler's parser,
4356 # not just through cpp. "Syntax error" is here to catch this case. 4183 # not just through cpp. "Syntax error" is here to catch this case.
4357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4184 cat >conftest.$ac_ext <<_ACEOF
4185/* confdefs.h. */
4186_ACEOF
4187cat confdefs.h >>conftest.$ac_ext
4188cat >>conftest.$ac_ext <<_ACEOF
4358/* end confdefs.h. */ 4189/* end confdefs.h. */
4359#ifdef __STDC__ 4190#ifdef __STDC__
4360# include <limits.h> 4191# include <limits.h>
@@ -4363,40 +4194,85 @@ do
4363#endif 4194#endif
4364 Syntax error 4195 Syntax error
4365_ACEOF 4196_ACEOF
4366if ac_fn_c_try_cpp "$LINENO"; then : 4197if { (ac_try="$ac_cpp conftest.$ac_ext"
4367 4198case "(($ac_try" in
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4201esac
4202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4203$as_echo "$ac_try_echo") >&5
4204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4205 ac_status=$?
4206 grep -v '^ *+' conftest.er1 >conftest.err
4207 rm -f conftest.er1
4208 cat conftest.err >&5
4209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } >/dev/null && {
4211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4212 test ! -s conftest.err
4213 }; then
4214 :
4368else 4215else
4216 $as_echo "$as_me: failed program was:" >&5
4217sed 's/^/| /' conftest.$ac_ext >&5
4218
4369 # Broken: fails on valid input. 4219 # Broken: fails on valid input.
4370continue 4220continue
4371fi 4221fi
4222
4372rm -f conftest.err conftest.$ac_ext 4223rm -f conftest.err conftest.$ac_ext
4373 4224
4374 # OK, works on sane cases. Now check whether nonexistent headers 4225 # OK, works on sane cases. Now check whether nonexistent headers
4375 # can be detected and how. 4226 # can be detected and how.
4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4227 cat >conftest.$ac_ext <<_ACEOF
4228/* confdefs.h. */
4229_ACEOF
4230cat confdefs.h >>conftest.$ac_ext
4231cat >>conftest.$ac_ext <<_ACEOF
4377/* end confdefs.h. */ 4232/* end confdefs.h. */
4378#include <ac_nonexistent.h> 4233#include <ac_nonexistent.h>
4379_ACEOF 4234_ACEOF
4380if ac_fn_c_try_cpp "$LINENO"; then : 4235if { (ac_try="$ac_cpp conftest.$ac_ext"
4236case "(($ac_try" in
4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238 *) ac_try_echo=$ac_try;;
4239esac
4240eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4241$as_echo "$ac_try_echo") >&5
4242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4243 ac_status=$?
4244 grep -v '^ *+' conftest.er1 >conftest.err
4245 rm -f conftest.er1
4246 cat conftest.err >&5
4247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } >/dev/null && {
4249 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4250 test ! -s conftest.err
4251 }; then
4381 # Broken: success on invalid input. 4252 # Broken: success on invalid input.
4382continue 4253continue
4383else 4254else
4255 $as_echo "$as_me: failed program was:" >&5
4256sed 's/^/| /' conftest.$ac_ext >&5
4257
4384 # Passes both tests. 4258 # Passes both tests.
4385ac_preproc_ok=: 4259ac_preproc_ok=:
4386break 4260break
4387fi 4261fi
4262
4388rm -f conftest.err conftest.$ac_ext 4263rm -f conftest.err conftest.$ac_ext
4389 4264
4390done 4265done
4391# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4266# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4392rm -f conftest.err conftest.$ac_ext 4267rm -f conftest.err conftest.$ac_ext
4393if $ac_preproc_ok; then : 4268if $ac_preproc_ok; then
4394 4269 :
4395else 4270else
4396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4271 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4397$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4272See \`config.log' for more details." >&5
4398as_fn_error "C preprocessor \"$CPP\" fails sanity check 4273$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4399See \`config.log' for more details." "$LINENO" 5; } 4274See \`config.log' for more details." >&2;}
4275 { (exit 1); exit 1; }; }
4400fi 4276fi
4401 4277
4402ac_ext=c 4278ac_ext=c
@@ -4406,9 +4282,9 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
4406ac_compiler_gnu=$ac_cv_c_compiler_gnu 4282ac_compiler_gnu=$ac_cv_c_compiler_gnu
4407 4283
4408 4284
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4285{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4410$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4286$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4411if test "${ac_cv_path_GREP+set}" = set; then : 4287if test "${ac_cv_path_GREP+set}" = set; then
4412 $as_echo_n "(cached) " >&6 4288 $as_echo_n "(cached) " >&6
4413else 4289else
4414 if test -z "$GREP"; then 4290 if test -z "$GREP"; then
@@ -4419,7 +4295,7 @@ for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4419do 4295do
4420 IFS=$as_save_IFS 4296 IFS=$as_save_IFS
4421 test -z "$as_dir" && as_dir=. 4297 test -z "$as_dir" && as_dir=.
4422 for ac_prog in grep ggrep; do 4298 for ac_prog in grep ggrep; do
4423 for ac_exec_ext in '' $ac_executable_extensions; do 4299 for ac_exec_ext in '' $ac_executable_extensions; do
4424 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4300 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4425 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4301 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
@@ -4439,7 +4315,7 @@ case `"$ac_path_GREP" --version 2>&1` in
4439 $as_echo 'GREP' >> "conftest.nl" 4315 $as_echo 'GREP' >> "conftest.nl"
4440 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4316 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4441 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4317 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4442 as_fn_arith $ac_count + 1 && ac_count=$as_val 4318 ac_count=`expr $ac_count + 1`
4443 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4319 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4444 # Best one so far, save it but keep looking for a better one 4320 # Best one so far, save it but keep looking for a better one
4445 ac_cv_path_GREP="$ac_path_GREP" 4321 ac_cv_path_GREP="$ac_path_GREP"
@@ -4454,24 +4330,26 @@ esac
4454 $ac_path_GREP_found && break 3 4330 $ac_path_GREP_found && break 3
4455 done 4331 done
4456 done 4332 done
4457 done 4333done
4458IFS=$as_save_IFS 4334IFS=$as_save_IFS
4459 if test -z "$ac_cv_path_GREP"; then 4335 if test -z "$ac_cv_path_GREP"; then
4460 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4336 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4337$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4338 { (exit 1); exit 1; }; }
4461 fi 4339 fi
4462else 4340else
4463 ac_cv_path_GREP=$GREP 4341 ac_cv_path_GREP=$GREP
4464fi 4342fi
4465 4343
4466fi 4344fi
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4345{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4468$as_echo "$ac_cv_path_GREP" >&6; } 4346$as_echo "$ac_cv_path_GREP" >&6; }
4469 GREP="$ac_cv_path_GREP" 4347 GREP="$ac_cv_path_GREP"
4470 4348
4471 4349
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4350{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4473$as_echo_n "checking for egrep... " >&6; } 4351$as_echo_n "checking for egrep... " >&6; }
4474if test "${ac_cv_path_EGREP+set}" = set; then : 4352if test "${ac_cv_path_EGREP+set}" = set; then
4475 $as_echo_n "(cached) " >&6 4353 $as_echo_n "(cached) " >&6
4476else 4354else
4477 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4355 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
@@ -4485,7 +4363,7 @@ for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4485do 4363do
4486 IFS=$as_save_IFS 4364 IFS=$as_save_IFS
4487 test -z "$as_dir" && as_dir=. 4365 test -z "$as_dir" && as_dir=.
4488 for ac_prog in egrep; do 4366 for ac_prog in egrep; do
4489 for ac_exec_ext in '' $ac_executable_extensions; do 4367 for ac_exec_ext in '' $ac_executable_extensions; do
4490 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4368 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4491 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4369 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
@@ -4505,7 +4383,7 @@ case `"$ac_path_EGREP" --version 2>&1` in
4505 $as_echo 'EGREP' >> "conftest.nl" 4383 $as_echo 'EGREP' >> "conftest.nl"
4506 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4384 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4507 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4385 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4508 as_fn_arith $ac_count + 1 && ac_count=$as_val 4386 ac_count=`expr $ac_count + 1`
4509 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4387 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4510 # Best one so far, save it but keep looking for a better one 4388 # Best one so far, save it but keep looking for a better one
4511 ac_cv_path_EGREP="$ac_path_EGREP" 4389 ac_cv_path_EGREP="$ac_path_EGREP"
@@ -4520,10 +4398,12 @@ esac
4520 $ac_path_EGREP_found && break 3 4398 $ac_path_EGREP_found && break 3
4521 done 4399 done
4522 done 4400 done
4523 done 4401done
4524IFS=$as_save_IFS 4402IFS=$as_save_IFS
4525 if test -z "$ac_cv_path_EGREP"; then 4403 if test -z "$ac_cv_path_EGREP"; then
4526 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4404 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4405$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4406 { (exit 1); exit 1; }; }
4527 fi 4407 fi
4528else 4408else
4529 ac_cv_path_EGREP=$EGREP 4409 ac_cv_path_EGREP=$EGREP
@@ -4531,17 +4411,21 @@ fi
4531 4411
4532 fi 4412 fi
4533fi 4413fi
4534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4414{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4535$as_echo "$ac_cv_path_EGREP" >&6; } 4415$as_echo "$ac_cv_path_EGREP" >&6; }
4536 EGREP="$ac_cv_path_EGREP" 4416 EGREP="$ac_cv_path_EGREP"
4537 4417
4538 4418
4539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4419{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4540$as_echo_n "checking for ANSI C header files... " >&6; } 4420$as_echo_n "checking for ANSI C header files... " >&6; }
4541if test "${ac_cv_header_stdc+set}" = set; then : 4421if test "${ac_cv_header_stdc+set}" = set; then
4542 $as_echo_n "(cached) " >&6 4422 $as_echo_n "(cached) " >&6
4543else 4423else
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4424 cat >conftest.$ac_ext <<_ACEOF
4425/* confdefs.h. */
4426_ACEOF
4427cat confdefs.h >>conftest.$ac_ext
4428cat >>conftest.$ac_ext <<_ACEOF
4545/* end confdefs.h. */ 4429/* end confdefs.h. */
4546#include <stdlib.h> 4430#include <stdlib.h>
4547#include <stdarg.h> 4431#include <stdarg.h>
@@ -4556,23 +4440,48 @@ main ()
4556 return 0; 4440 return 0;
4557} 4441}
4558_ACEOF 4442_ACEOF
4559if ac_fn_c_try_compile "$LINENO"; then : 4443rm -f conftest.$ac_objext
4444if { (ac_try="$ac_compile"
4445case "(($ac_try" in
4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447 *) ac_try_echo=$ac_try;;
4448esac
4449eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4450$as_echo "$ac_try_echo") >&5
4451 (eval "$ac_compile") 2>conftest.er1
4452 ac_status=$?
4453 grep -v '^ *+' conftest.er1 >conftest.err
4454 rm -f conftest.er1
4455 cat conftest.err >&5
4456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); } && {
4458 test -z "$ac_c_werror_flag" ||
4459 test ! -s conftest.err
4460 } && test -s conftest.$ac_objext; then
4560 ac_cv_header_stdc=yes 4461 ac_cv_header_stdc=yes
4561else 4462else
4562 ac_cv_header_stdc=no 4463 $as_echo "$as_me: failed program was:" >&5
4464sed 's/^/| /' conftest.$ac_ext >&5
4465
4466 ac_cv_header_stdc=no
4563fi 4467fi
4468
4564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4565 4470
4566if test $ac_cv_header_stdc = yes; then 4471if test $ac_cv_header_stdc = yes; then
4567 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4472 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4473 cat >conftest.$ac_ext <<_ACEOF
4474/* confdefs.h. */
4475_ACEOF
4476cat confdefs.h >>conftest.$ac_ext
4477cat >>conftest.$ac_ext <<_ACEOF
4569/* end confdefs.h. */ 4478/* end confdefs.h. */
4570#include <string.h> 4479#include <string.h>
4571 4480
4572_ACEOF 4481_ACEOF
4573if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4482if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4574 $EGREP "memchr" >/dev/null 2>&1; then : 4483 $EGREP "memchr" >/dev/null 2>&1; then
4575 4484 :
4576else 4485else
4577 ac_cv_header_stdc=no 4486 ac_cv_header_stdc=no
4578fi 4487fi
@@ -4582,14 +4491,18 @@ fi
4582 4491
4583if test $ac_cv_header_stdc = yes; then 4492if test $ac_cv_header_stdc = yes; then
4584 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4493 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4494 cat >conftest.$ac_ext <<_ACEOF
4495/* confdefs.h. */
4496_ACEOF
4497cat confdefs.h >>conftest.$ac_ext
4498cat >>conftest.$ac_ext <<_ACEOF
4586/* end confdefs.h. */ 4499/* end confdefs.h. */
4587#include <stdlib.h> 4500#include <stdlib.h>
4588 4501
4589_ACEOF 4502_ACEOF
4590if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4503if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4591 $EGREP "free" >/dev/null 2>&1; then : 4504 $EGREP "free" >/dev/null 2>&1; then
4592 4505 :
4593else 4506else
4594 ac_cv_header_stdc=no 4507 ac_cv_header_stdc=no
4595fi 4508fi
@@ -4599,10 +4512,14 @@ fi
4599 4512
4600if test $ac_cv_header_stdc = yes; then 4513if test $ac_cv_header_stdc = yes; then
4601 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4514 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4602 if test "$cross_compiling" = yes; then : 4515 if test "$cross_compiling" = yes; then
4603 : 4516 :
4604else 4517else
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4518 cat >conftest.$ac_ext <<_ACEOF
4519/* confdefs.h. */
4520_ACEOF
4521cat confdefs.h >>conftest.$ac_ext
4522cat >>conftest.$ac_ext <<_ACEOF
4606/* end confdefs.h. */ 4523/* end confdefs.h. */
4607#include <ctype.h> 4524#include <ctype.h>
4608#include <stdlib.h> 4525#include <stdlib.h>
@@ -4629,34 +4546,117 @@ main ()
4629 return 0; 4546 return 0;
4630} 4547}
4631_ACEOF 4548_ACEOF
4632if ac_fn_c_try_run "$LINENO"; then : 4549rm -f conftest$ac_exeext
4633 4550if { (ac_try="$ac_link"
4551case "(($ac_try" in
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4554esac
4555eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4556$as_echo "$ac_try_echo") >&5
4557 (eval "$ac_link") 2>&5
4558 ac_status=$?
4559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4561 { (case "(($ac_try" in
4562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4563 *) ac_try_echo=$ac_try;;
4564esac
4565eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4566$as_echo "$ac_try_echo") >&5
4567 (eval "$ac_try") 2>&5
4568 ac_status=$?
4569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }; }; then
4571 :
4634else 4572else
4635 ac_cv_header_stdc=no 4573 $as_echo "$as_me: program exited with status $ac_status" >&5
4574$as_echo "$as_me: failed program was:" >&5
4575sed 's/^/| /' conftest.$ac_ext >&5
4576
4577( exit $ac_status )
4578ac_cv_header_stdc=no
4636fi 4579fi
4637rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4580rm -rf conftest.dSYM
4638 conftest.$ac_objext conftest.beam conftest.$ac_ext 4581rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4639fi 4582fi
4640 4583
4584
4641fi 4585fi
4642fi 4586fi
4643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4587{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4644$as_echo "$ac_cv_header_stdc" >&6; } 4588$as_echo "$ac_cv_header_stdc" >&6; }
4645if test $ac_cv_header_stdc = yes; then 4589if test $ac_cv_header_stdc = yes; then
4646 4590
4647$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4591cat >>confdefs.h <<\_ACEOF
4592#define STDC_HEADERS 1
4593_ACEOF
4648 4594
4649fi 4595fi
4650 4596
4651# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4597# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4598
4599
4600
4601
4602
4603
4604
4605
4606
4652for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4607for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4653 inttypes.h stdint.h unistd.h 4608 inttypes.h stdint.h unistd.h
4654do : 4609do
4655 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4610as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4656ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4611{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4657" 4612$as_echo_n "checking for $ac_header... " >&6; }
4658eval as_val=\$$as_ac_Header 4613if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4659 if test "x$as_val" = x""yes; then : 4614 $as_echo_n "(cached) " >&6
4615else
4616 cat >conftest.$ac_ext <<_ACEOF
4617/* confdefs.h. */
4618_ACEOF
4619cat confdefs.h >>conftest.$ac_ext
4620cat >>conftest.$ac_ext <<_ACEOF
4621/* end confdefs.h. */
4622$ac_includes_default
4623
4624#include <$ac_header>
4625_ACEOF
4626rm -f conftest.$ac_objext
4627if { (ac_try="$ac_compile"
4628case "(($ac_try" in
4629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4630 *) ac_try_echo=$ac_try;;
4631esac
4632eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4633$as_echo "$ac_try_echo") >&5
4634 (eval "$ac_compile") 2>conftest.er1
4635 ac_status=$?
4636 grep -v '^ *+' conftest.er1 >conftest.err
4637 rm -f conftest.er1
4638 cat conftest.err >&5
4639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); } && {
4641 test -z "$ac_c_werror_flag" ||
4642 test ! -s conftest.err
4643 } && test -s conftest.$ac_objext; then
4644 eval "$as_ac_Header=yes"
4645else
4646 $as_echo "$as_me: failed program was:" >&5
4647sed 's/^/| /' conftest.$ac_ext >&5
4648
4649 eval "$as_ac_Header=no"
4650fi
4651
4652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4653fi
4654ac_res=`eval 'as_val=${'$as_ac_Header'}
4655 $as_echo "$as_val"'`
4656 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4657$as_echo "$ac_res" >&6; }
4658if test `eval 'as_val=${'$as_ac_Header'}
4659 $as_echo "$as_val"'` = yes; then
4660 cat >>confdefs.h <<_ACEOF 4660 cat >>confdefs.h <<_ACEOF
4661#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4661#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4662_ACEOF 4662_ACEOF
@@ -4667,8 +4667,134 @@ done
4667 4667
4668 4668
4669 4669
4670 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4670 if test "${ac_cv_header_minix_config_h+set}" = set; then
4671if test "x$ac_cv_header_minix_config_h" = x""yes; then : 4671 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4672$as_echo_n "checking for minix/config.h... " >&6; }
4673if test "${ac_cv_header_minix_config_h+set}" = set; then
4674 $as_echo_n "(cached) " >&6
4675fi
4676{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4677$as_echo "$ac_cv_header_minix_config_h" >&6; }
4678else
4679 # Is the header compilable?
4680{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4681$as_echo_n "checking minix/config.h usability... " >&6; }
4682cat >conftest.$ac_ext <<_ACEOF
4683/* confdefs.h. */
4684_ACEOF
4685cat confdefs.h >>conftest.$ac_ext
4686cat >>conftest.$ac_ext <<_ACEOF
4687/* end confdefs.h. */
4688$ac_includes_default
4689#include <minix/config.h>
4690_ACEOF
4691rm -f conftest.$ac_objext
4692if { (ac_try="$ac_compile"
4693case "(($ac_try" in
4694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4695 *) ac_try_echo=$ac_try;;
4696esac
4697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4698$as_echo "$ac_try_echo") >&5
4699 (eval "$ac_compile") 2>conftest.er1
4700 ac_status=$?
4701 grep -v '^ *+' conftest.er1 >conftest.err
4702 rm -f conftest.er1
4703 cat conftest.err >&5
4704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); } && {
4706 test -z "$ac_c_werror_flag" ||
4707 test ! -s conftest.err
4708 } && test -s conftest.$ac_objext; then
4709 ac_header_compiler=yes
4710else
4711 $as_echo "$as_me: failed program was:" >&5
4712sed 's/^/| /' conftest.$ac_ext >&5
4713
4714 ac_header_compiler=no
4715fi
4716
4717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4718{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4719$as_echo "$ac_header_compiler" >&6; }
4720
4721# Is the header present?
4722{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4723$as_echo_n "checking minix/config.h presence... " >&6; }
4724cat >conftest.$ac_ext <<_ACEOF
4725/* confdefs.h. */
4726_ACEOF
4727cat confdefs.h >>conftest.$ac_ext
4728cat >>conftest.$ac_ext <<_ACEOF
4729/* end confdefs.h. */
4730#include <minix/config.h>
4731_ACEOF
4732if { (ac_try="$ac_cpp conftest.$ac_ext"
4733case "(($ac_try" in
4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4736esac
4737eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4738$as_echo "$ac_try_echo") >&5
4739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4740 ac_status=$?
4741 grep -v '^ *+' conftest.er1 >conftest.err
4742 rm -f conftest.er1
4743 cat conftest.err >&5
4744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); } >/dev/null && {
4746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4747 test ! -s conftest.err
4748 }; then
4749 ac_header_preproc=yes
4750else
4751 $as_echo "$as_me: failed program was:" >&5
4752sed 's/^/| /' conftest.$ac_ext >&5
4753
4754 ac_header_preproc=no
4755fi
4756
4757rm -f conftest.err conftest.$ac_ext
4758{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4759$as_echo "$ac_header_preproc" >&6; }
4760
4761# So? What about this header?
4762case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4763 yes:no: )
4764 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4765$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4766 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4767$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4768 ac_header_preproc=yes
4769 ;;
4770 no:yes:* )
4771 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4772$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4773 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4774$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4775 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4776$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4777 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4778$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4779 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4780$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4781 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4782$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4783
4784 ;;
4785esac
4786{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4787$as_echo_n "checking for minix/config.h... " >&6; }
4788if test "${ac_cv_header_minix_config_h+set}" = set; then
4789 $as_echo_n "(cached) " >&6
4790else
4791 ac_cv_header_minix_config_h=$ac_header_preproc
4792fi
4793{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4794$as_echo "$ac_cv_header_minix_config_h" >&6; }
4795
4796fi
4797if test $ac_cv_header_minix_config_h = yes; then
4672 MINIX=yes 4798 MINIX=yes
4673else 4799else
4674 MINIX= 4800 MINIX=
@@ -4677,23 +4803,34 @@ fi
4677 4803
4678 if test "$MINIX" = yes; then 4804 if test "$MINIX" = yes; then
4679 4805
4680$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4806cat >>confdefs.h <<\_ACEOF
4807#define _POSIX_SOURCE 1
4808_ACEOF
4681 4809
4682 4810
4683$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4811cat >>confdefs.h <<\_ACEOF
4812#define _POSIX_1_SOURCE 2
4813_ACEOF
4684 4814
4685 4815
4686$as_echo "#define _MINIX 1" >>confdefs.h 4816cat >>confdefs.h <<\_ACEOF
4817#define _MINIX 1
4818_ACEOF
4687 4819
4688 fi 4820 fi
4689 4821
4690 4822
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4823
4824 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4692$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4825$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4693if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 4826if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4694 $as_echo_n "(cached) " >&6 4827 $as_echo_n "(cached) " >&6
4695else 4828else
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4829 cat >conftest.$ac_ext <<_ACEOF
4830/* confdefs.h. */
4831_ACEOF
4832cat confdefs.h >>conftest.$ac_ext
4833cat >>conftest.$ac_ext <<_ACEOF
4697/* end confdefs.h. */ 4834/* end confdefs.h. */
4698 4835
4699# define __EXTENSIONS__ 1 4836# define __EXTENSIONS__ 1
@@ -4706,34 +4843,69 @@ main ()
4706 return 0; 4843 return 0;
4707} 4844}
4708_ACEOF 4845_ACEOF
4709if ac_fn_c_try_compile "$LINENO"; then : 4846rm -f conftest.$ac_objext
4847if { (ac_try="$ac_compile"
4848case "(($ac_try" in
4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850 *) ac_try_echo=$ac_try;;
4851esac
4852eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4853$as_echo "$ac_try_echo") >&5
4854 (eval "$ac_compile") 2>conftest.er1
4855 ac_status=$?
4856 grep -v '^ *+' conftest.er1 >conftest.err
4857 rm -f conftest.er1
4858 cat conftest.err >&5
4859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } && {
4861 test -z "$ac_c_werror_flag" ||
4862 test ! -s conftest.err
4863 } && test -s conftest.$ac_objext; then
4710 ac_cv_safe_to_define___extensions__=yes 4864 ac_cv_safe_to_define___extensions__=yes
4711else 4865else
4712 ac_cv_safe_to_define___extensions__=no 4866 $as_echo "$as_me: failed program was:" >&5
4867sed 's/^/| /' conftest.$ac_ext >&5
4868
4869 ac_cv_safe_to_define___extensions__=no
4713fi 4870fi
4871
4714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4715fi 4873fi
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4874{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4717$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4875$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4718 test $ac_cv_safe_to_define___extensions__ = yes && 4876 test $ac_cv_safe_to_define___extensions__ = yes &&
4719 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4877 cat >>confdefs.h <<\_ACEOF
4878#define __EXTENSIONS__ 1
4879_ACEOF
4720 4880
4721 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4881 cat >>confdefs.h <<\_ACEOF
4882#define _ALL_SOURCE 1
4883_ACEOF
4722 4884
4723 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4885 cat >>confdefs.h <<\_ACEOF
4886#define _GNU_SOURCE 1
4887_ACEOF
4724 4888
4725 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4889 cat >>confdefs.h <<\_ACEOF
4890#define _POSIX_PTHREAD_SEMANTICS 1
4891_ACEOF
4726 4892
4727 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4893 cat >>confdefs.h <<\_ACEOF
4894#define _TANDEM_SOURCE 1
4895_ACEOF
4728 4896
4729 4897
4730 4898
4731### Use -Wno-pointer-sign if the compiler supports it 4899### Use -Wno-pointer-sign if the compiler supports it
4732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5 4900{ $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4733$as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; } 4901$as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4734SAVE_CFLAGS="$CFLAGS" 4902SAVE_CFLAGS="$CFLAGS"
4735CFLAGS="$CFLAGS -Wno-pointer-sign" 4903CFLAGS="$CFLAGS -Wno-pointer-sign"
4736cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4904cat >conftest.$ac_ext <<_ACEOF
4905/* confdefs.h. */
4906_ACEOF
4907cat confdefs.h >>conftest.$ac_ext
4908cat >>conftest.$ac_ext <<_ACEOF
4737/* end confdefs.h. */ 4909/* end confdefs.h. */
4738 4910
4739int 4911int
@@ -4744,27 +4916,52 @@ main ()
4744 return 0; 4916 return 0;
4745} 4917}
4746_ACEOF 4918_ACEOF
4747if ac_fn_c_try_compile "$LINENO"; then : 4919rm -f conftest.$ac_objext
4920if { (ac_try="$ac_compile"
4921case "(($ac_try" in
4922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923 *) ac_try_echo=$ac_try;;
4924esac
4925eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4926$as_echo "$ac_try_echo") >&5
4927 (eval "$ac_compile") 2>conftest.er1
4928 ac_status=$?
4929 grep -v '^ *+' conftest.er1 >conftest.err
4930 rm -f conftest.er1
4931 cat conftest.err >&5
4932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } && {
4934 test -z "$ac_c_werror_flag" ||
4935 test ! -s conftest.err
4936 } && test -s conftest.$ac_objext; then
4748 has_option=yes 4937 has_option=yes
4749else 4938else
4750 has_option=no 4939 $as_echo "$as_me: failed program was:" >&5
4940sed 's/^/| /' conftest.$ac_ext >&5
4941
4942 has_option=no
4751fi 4943fi
4944
4752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753if test $has_option = yes; then 4946if test $has_option = yes; then
4754 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH" 4947 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4755fi 4948fi
4756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 4949{ $as_echo "$as_me:$LINENO: result: $has_option" >&5
4757$as_echo "$has_option" >&6; } 4950$as_echo "$has_option" >&6; }
4758CFLAGS="$SAVE_CFLAGS" 4951CFLAGS="$SAVE_CFLAGS"
4759unset has_option 4952unset has_option
4760unset SAVE_CFLAGS 4953unset SAVE_CFLAGS
4761 4954
4762### Use -Wdeclaration-after-statement if the compiler supports it 4955### Use -Wdeclaration-after-statement if the compiler supports it
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5 4956{ $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4764$as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; } 4957$as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4765SAVE_CFLAGS="$CFLAGS" 4958SAVE_CFLAGS="$CFLAGS"
4766CFLAGS="$CFLAGS -Wdeclaration-after-statement" 4959CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4767cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4960cat >conftest.$ac_ext <<_ACEOF
4961/* confdefs.h. */
4962_ACEOF
4963cat confdefs.h >>conftest.$ac_ext
4964cat >>conftest.$ac_ext <<_ACEOF
4768/* end confdefs.h. */ 4965/* end confdefs.h. */
4769 4966
4770int 4967int
@@ -4775,16 +4972,37 @@ main ()
4775 return 0; 4972 return 0;
4776} 4973}
4777_ACEOF 4974_ACEOF
4778if ac_fn_c_try_compile "$LINENO"; then : 4975rm -f conftest.$ac_objext
4976if { (ac_try="$ac_compile"
4977case "(($ac_try" in
4978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979 *) ac_try_echo=$ac_try;;
4980esac
4981eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4982$as_echo "$ac_try_echo") >&5
4983 (eval "$ac_compile") 2>conftest.er1
4984 ac_status=$?
4985 grep -v '^ *+' conftest.er1 >conftest.err
4986 rm -f conftest.er1
4987 cat conftest.err >&5
4988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); } && {
4990 test -z "$ac_c_werror_flag" ||
4991 test ! -s conftest.err
4992 } && test -s conftest.$ac_objext; then
4779 has_option=yes 4993 has_option=yes
4780else 4994else
4781 has_option=no 4995 $as_echo "$as_me: failed program was:" >&5
4996sed 's/^/| /' conftest.$ac_ext >&5
4997
4998 has_option=no
4782fi 4999fi
5000
4783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784if test $has_option = yes; then 5002if test $has_option = yes; then
4785 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH" 5003 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4786fi 5004fi
4787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 5005{ $as_echo "$as_me:$LINENO: result: $has_option" >&5
4788$as_echo "$has_option" >&6; } 5006$as_echo "$has_option" >&6; }
4789CFLAGS="$SAVE_CFLAGS" 5007CFLAGS="$SAVE_CFLAGS"
4790unset has_option 5008unset has_option
@@ -4792,14 +5010,14 @@ unset SAVE_CFLAGS
4792 5010
4793#### Some other nice autoconf tests. 5011#### Some other nice autoconf tests.
4794 5012
4795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5013{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4796$as_echo_n "checking whether ln -s works... " >&6; } 5014$as_echo_n "checking whether ln -s works... " >&6; }
4797LN_S=$as_ln_s 5015LN_S=$as_ln_s
4798if test "$LN_S" = "ln -s"; then 5016if test "$LN_S" = "ln -s"; then
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5017 { $as_echo "$as_me:$LINENO: result: yes" >&5
4800$as_echo "yes" >&6; } 5018$as_echo "yes" >&6; }
4801else 5019else
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5020 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4803$as_echo "no, using $LN_S" >&6; } 5021$as_echo "no, using $LN_S" >&6; }
4804fi 5022fi
4805 5023
@@ -4808,14 +5026,14 @@ ac_cpp='$CPP $CPPFLAGS'
4808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810ac_compiler_gnu=$ac_cv_c_compiler_gnu 5028ac_compiler_gnu=$ac_cv_c_compiler_gnu
4811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5029{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4812$as_echo_n "checking how to run the C preprocessor... " >&6; } 5030$as_echo_n "checking how to run the C preprocessor... " >&6; }
4813# On Suns, sometimes $CPP names a directory. 5031# On Suns, sometimes $CPP names a directory.
4814if test -n "$CPP" && test -d "$CPP"; then 5032if test -n "$CPP" && test -d "$CPP"; then
4815 CPP= 5033 CPP=
4816fi 5034fi
4817if test -z "$CPP"; then 5035if test -z "$CPP"; then
4818 if test "${ac_cv_prog_CPP+set}" = set; then : 5036 if test "${ac_cv_prog_CPP+set}" = set; then
4819 $as_echo_n "(cached) " >&6 5037 $as_echo_n "(cached) " >&6
4820else 5038else
4821 # Double quotes because CPP needs to be expanded 5039 # Double quotes because CPP needs to be expanded
@@ -4830,7 +5048,11 @@ do
4830 # <limits.h> exists even on freestanding compilers. 5048 # <limits.h> exists even on freestanding compilers.
4831 # On the NeXT, cc -E runs the code through the compiler's parser, 5049 # On the NeXT, cc -E runs the code through the compiler's parser,
4832 # not just through cpp. "Syntax error" is here to catch this case. 5050 # not just through cpp. "Syntax error" is here to catch this case.
4833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5051 cat >conftest.$ac_ext <<_ACEOF
5052/* confdefs.h. */
5053_ACEOF
5054cat confdefs.h >>conftest.$ac_ext
5055cat >>conftest.$ac_ext <<_ACEOF
4834/* end confdefs.h. */ 5056/* end confdefs.h. */
4835#ifdef __STDC__ 5057#ifdef __STDC__
4836# include <limits.h> 5058# include <limits.h>
@@ -4839,34 +5061,78 @@ do
4839#endif 5061#endif
4840 Syntax error 5062 Syntax error
4841_ACEOF 5063_ACEOF
4842if ac_fn_c_try_cpp "$LINENO"; then : 5064if { (ac_try="$ac_cpp conftest.$ac_ext"
4843 5065case "(($ac_try" in
5066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5067 *) ac_try_echo=$ac_try;;
5068esac
5069eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5070$as_echo "$ac_try_echo") >&5
5071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5072 ac_status=$?
5073 grep -v '^ *+' conftest.er1 >conftest.err
5074 rm -f conftest.er1
5075 cat conftest.err >&5
5076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); } >/dev/null && {
5078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5079 test ! -s conftest.err
5080 }; then
5081 :
4844else 5082else
5083 $as_echo "$as_me: failed program was:" >&5
5084sed 's/^/| /' conftest.$ac_ext >&5
5085
4845 # Broken: fails on valid input. 5086 # Broken: fails on valid input.
4846continue 5087continue
4847fi 5088fi
5089
4848rm -f conftest.err conftest.$ac_ext 5090rm -f conftest.err conftest.$ac_ext
4849 5091
4850 # OK, works on sane cases. Now check whether nonexistent headers 5092 # OK, works on sane cases. Now check whether nonexistent headers
4851 # can be detected and how. 5093 # can be detected and how.
4852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5094 cat >conftest.$ac_ext <<_ACEOF
5095/* confdefs.h. */
5096_ACEOF
5097cat confdefs.h >>conftest.$ac_ext
5098cat >>conftest.$ac_ext <<_ACEOF
4853/* end confdefs.h. */ 5099/* end confdefs.h. */
4854#include <ac_nonexistent.h> 5100#include <ac_nonexistent.h>
4855_ACEOF 5101_ACEOF
4856if ac_fn_c_try_cpp "$LINENO"; then : 5102if { (ac_try="$ac_cpp conftest.$ac_ext"
5103case "(($ac_try" in
5104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5105 *) ac_try_echo=$ac_try;;
5106esac
5107eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5108$as_echo "$ac_try_echo") >&5
5109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5110 ac_status=$?
5111 grep -v '^ *+' conftest.er1 >conftest.err
5112 rm -f conftest.er1
5113 cat conftest.err >&5
5114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); } >/dev/null && {
5116 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5117 test ! -s conftest.err
5118 }; then
4857 # Broken: success on invalid input. 5119 # Broken: success on invalid input.
4858continue 5120continue
4859else 5121else
5122 $as_echo "$as_me: failed program was:" >&5
5123sed 's/^/| /' conftest.$ac_ext >&5
5124
4860 # Passes both tests. 5125 # Passes both tests.
4861ac_preproc_ok=: 5126ac_preproc_ok=:
4862break 5127break
4863fi 5128fi
5129
4864rm -f conftest.err conftest.$ac_ext 5130rm -f conftest.err conftest.$ac_ext
4865 5131
4866done 5132done
4867# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5133# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4868rm -f conftest.err conftest.$ac_ext 5134rm -f conftest.err conftest.$ac_ext
4869if $ac_preproc_ok; then : 5135if $ac_preproc_ok; then
4870 break 5136 break
4871fi 5137fi
4872 5138
@@ -4878,7 +5144,7 @@ fi
4878else 5144else
4879 ac_cv_prog_CPP=$CPP 5145 ac_cv_prog_CPP=$CPP
4880fi 5146fi
4881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5147{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4882$as_echo "$CPP" >&6; } 5148$as_echo "$CPP" >&6; }
4883ac_preproc_ok=false 5149ac_preproc_ok=false
4884for ac_c_preproc_warn_flag in '' yes 5150for ac_c_preproc_warn_flag in '' yes
@@ -4889,7 +5155,11 @@ do
4889 # <limits.h> exists even on freestanding compilers. 5155 # <limits.h> exists even on freestanding compilers.
4890 # On the NeXT, cc -E runs the code through the compiler's parser, 5156 # On the NeXT, cc -E runs the code through the compiler's parser,
4891 # not just through cpp. "Syntax error" is here to catch this case. 5157 # not just through cpp. "Syntax error" is here to catch this case.
4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5158 cat >conftest.$ac_ext <<_ACEOF
5159/* confdefs.h. */
5160_ACEOF
5161cat confdefs.h >>conftest.$ac_ext
5162cat >>conftest.$ac_ext <<_ACEOF
4893/* end confdefs.h. */ 5163/* end confdefs.h. */
4894#ifdef __STDC__ 5164#ifdef __STDC__
4895# include <limits.h> 5165# include <limits.h>
@@ -4898,40 +5168,85 @@ do
4898#endif 5168#endif
4899 Syntax error 5169 Syntax error
4900_ACEOF 5170_ACEOF
4901if ac_fn_c_try_cpp "$LINENO"; then : 5171if { (ac_try="$ac_cpp conftest.$ac_ext"
4902 5172case "(($ac_try" in
5173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5174 *) ac_try_echo=$ac_try;;
5175esac
5176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5177$as_echo "$ac_try_echo") >&5
5178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5179 ac_status=$?
5180 grep -v '^ *+' conftest.er1 >conftest.err
5181 rm -f conftest.er1
5182 cat conftest.err >&5
5183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); } >/dev/null && {
5185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5186 test ! -s conftest.err
5187 }; then
5188 :
4903else 5189else
5190 $as_echo "$as_me: failed program was:" >&5
5191sed 's/^/| /' conftest.$ac_ext >&5
5192
4904 # Broken: fails on valid input. 5193 # Broken: fails on valid input.
4905continue 5194continue
4906fi 5195fi
5196
4907rm -f conftest.err conftest.$ac_ext 5197rm -f conftest.err conftest.$ac_ext
4908 5198
4909 # OK, works on sane cases. Now check whether nonexistent headers 5199 # OK, works on sane cases. Now check whether nonexistent headers
4910 # can be detected and how. 5200 # can be detected and how.
4911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5201 cat >conftest.$ac_ext <<_ACEOF
5202/* confdefs.h. */
5203_ACEOF
5204cat confdefs.h >>conftest.$ac_ext
5205cat >>conftest.$ac_ext <<_ACEOF
4912/* end confdefs.h. */ 5206/* end confdefs.h. */
4913#include <ac_nonexistent.h> 5207#include <ac_nonexistent.h>
4914_ACEOF 5208_ACEOF
4915if ac_fn_c_try_cpp "$LINENO"; then : 5209if { (ac_try="$ac_cpp conftest.$ac_ext"
5210case "(($ac_try" in
5211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5212 *) ac_try_echo=$ac_try;;
5213esac
5214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5215$as_echo "$ac_try_echo") >&5
5216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5217 ac_status=$?
5218 grep -v '^ *+' conftest.er1 >conftest.err
5219 rm -f conftest.er1
5220 cat conftest.err >&5
5221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); } >/dev/null && {
5223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5224 test ! -s conftest.err
5225 }; then
4916 # Broken: success on invalid input. 5226 # Broken: success on invalid input.
4917continue 5227continue
4918else 5228else
5229 $as_echo "$as_me: failed program was:" >&5
5230sed 's/^/| /' conftest.$ac_ext >&5
5231
4919 # Passes both tests. 5232 # Passes both tests.
4920ac_preproc_ok=: 5233ac_preproc_ok=:
4921break 5234break
4922fi 5235fi
5236
4923rm -f conftest.err conftest.$ac_ext 5237rm -f conftest.err conftest.$ac_ext
4924 5238
4925done 5239done
4926# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5240# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4927rm -f conftest.err conftest.$ac_ext 5241rm -f conftest.err conftest.$ac_ext
4928if $ac_preproc_ok; then : 5242if $ac_preproc_ok; then
4929 5243 :
4930else 5244else
4931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5245 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4932$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5246See \`config.log' for more details." >&5
4933as_fn_error "C preprocessor \"$CPP\" fails sanity check 5247$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4934See \`config.log' for more details." "$LINENO" 5; } 5248See \`config.log' for more details." >&2;}
5249 { (exit 1); exit 1; }; }
4935fi 5250fi
4936 5251
4937ac_ext=c 5252ac_ext=c
@@ -4954,10 +5269,10 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
4954# OS/2's system install, which has a completely different semantic 5269# OS/2's system install, which has a completely different semantic
4955# ./install, which can be erroneously created by make from ./install.sh. 5270# ./install, which can be erroneously created by make from ./install.sh.
4956# Reject install programs that cannot install multiple files. 5271# Reject install programs that cannot install multiple files.
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 5272{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4958$as_echo_n "checking for a BSD-compatible install... " >&6; } 5273$as_echo_n "checking for a BSD-compatible install... " >&6; }
4959if test -z "$INSTALL"; then 5274if test -z "$INSTALL"; then
4960if test "${ac_cv_path_install+set}" = set; then : 5275if test "${ac_cv_path_install+set}" = set; then
4961 $as_echo_n "(cached) " >&6 5276 $as_echo_n "(cached) " >&6
4962else 5277else
4963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
@@ -4965,11 +5280,11 @@ for as_dir in $PATH
4965do 5280do
4966 IFS=$as_save_IFS 5281 IFS=$as_save_IFS
4967 test -z "$as_dir" && as_dir=. 5282 test -z "$as_dir" && as_dir=.
4968 # Account for people who put trailing slashes in PATH elements. 5283 # Account for people who put trailing slashes in PATH elements.
4969case $as_dir/ in #(( 5284case $as_dir/ in
4970 ./ | .// | /[cC]/* | \ 5285 ./ | .// | /cC/* | \
4971 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 5286 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4972 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 5287 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4973 /usr/ucb/* ) ;; 5288 /usr/ucb/* ) ;;
4974 *) 5289 *)
4975 # OSF1 and SCO ODT 3.0 have their own names for install. 5290 # OSF1 and SCO ODT 3.0 have their own names for install.
@@ -5006,7 +5321,7 @@ case $as_dir/ in #((
5006 ;; 5321 ;;
5007esac 5322esac
5008 5323
5009 done 5324done
5010IFS=$as_save_IFS 5325IFS=$as_save_IFS
5011 5326
5012rm -rf conftest.one conftest.two conftest.dir 5327rm -rf conftest.one conftest.two conftest.dir
@@ -5022,7 +5337,7 @@ fi
5022 INSTALL=$ac_install_sh 5337 INSTALL=$ac_install_sh
5023 fi 5338 fi
5024fi 5339fi
5025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 5340{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5026$as_echo "$INSTALL" >&6; } 5341$as_echo "$INSTALL" >&6; }
5027 5342
5028# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 5343# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
@@ -5037,9 +5352,9 @@ if test "x$RANLIB" = x; then
5037 if test -n "$ac_tool_prefix"; then 5352 if test -n "$ac_tool_prefix"; then
5038 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5353 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5039set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5354set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5355{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5041$as_echo_n "checking for $ac_word... " >&6; } 5356$as_echo_n "checking for $ac_word... " >&6; }
5042if test "${ac_cv_prog_RANLIB+set}" = set; then : 5357if test "${ac_cv_prog_RANLIB+set}" = set; then
5043 $as_echo_n "(cached) " >&6 5358 $as_echo_n "(cached) " >&6
5044else 5359else
5045 if test -n "$RANLIB"; then 5360 if test -n "$RANLIB"; then
@@ -5050,24 +5365,24 @@ for as_dir in $PATH
5050do 5365do
5051 IFS=$as_save_IFS 5366 IFS=$as_save_IFS
5052 test -z "$as_dir" && as_dir=. 5367 test -z "$as_dir" && as_dir=.
5053 for ac_exec_ext in '' $ac_executable_extensions; do 5368 for ac_exec_ext in '' $ac_executable_extensions; do
5054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5055 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5370 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5371 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5057 break 2 5372 break 2
5058 fi 5373 fi
5059done 5374done
5060 done 5375done
5061IFS=$as_save_IFS 5376IFS=$as_save_IFS
5062 5377
5063fi 5378fi
5064fi 5379fi
5065RANLIB=$ac_cv_prog_RANLIB 5380RANLIB=$ac_cv_prog_RANLIB
5066if test -n "$RANLIB"; then 5381if test -n "$RANLIB"; then
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5382 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5068$as_echo "$RANLIB" >&6; } 5383$as_echo "$RANLIB" >&6; }
5069else 5384else
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5385 { $as_echo "$as_me:$LINENO: result: no" >&5
5071$as_echo "no" >&6; } 5386$as_echo "no" >&6; }
5072fi 5387fi
5073 5388
@@ -5077,9 +5392,9 @@ if test -z "$ac_cv_prog_RANLIB"; then
5077 ac_ct_RANLIB=$RANLIB 5392 ac_ct_RANLIB=$RANLIB
5078 # Extract the first word of "ranlib", so it can be a program name with args. 5393 # Extract the first word of "ranlib", so it can be a program name with args.
5079set dummy ranlib; ac_word=$2 5394set dummy ranlib; ac_word=$2
5080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5395{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5081$as_echo_n "checking for $ac_word... " >&6; } 5396$as_echo_n "checking for $ac_word... " >&6; }
5082if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5397if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5083 $as_echo_n "(cached) " >&6 5398 $as_echo_n "(cached) " >&6
5084else 5399else
5085 if test -n "$ac_ct_RANLIB"; then 5400 if test -n "$ac_ct_RANLIB"; then
@@ -5090,24 +5405,24 @@ for as_dir in $PATH
5090do 5405do
5091 IFS=$as_save_IFS 5406 IFS=$as_save_IFS
5092 test -z "$as_dir" && as_dir=. 5407 test -z "$as_dir" && as_dir=.
5093 for ac_exec_ext in '' $ac_executable_extensions; do 5408 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5095 ac_cv_prog_ac_ct_RANLIB="ranlib" 5410 ac_cv_prog_ac_ct_RANLIB="ranlib"
5096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5411 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 break 2 5412 break 2
5098 fi 5413 fi
5099done 5414done
5100 done 5415done
5101IFS=$as_save_IFS 5416IFS=$as_save_IFS
5102 5417
5103fi 5418fi
5104fi 5419fi
5105ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5420ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5106if test -n "$ac_ct_RANLIB"; then 5421if test -n "$ac_ct_RANLIB"; then
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5422 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5108$as_echo "$ac_ct_RANLIB" >&6; } 5423$as_echo "$ac_ct_RANLIB" >&6; }
5109else 5424else
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5425 { $as_echo "$as_me:$LINENO: result: no" >&5
5111$as_echo "no" >&6; } 5426$as_echo "no" >&6; }
5112fi 5427fi
5113 5428
@@ -5116,8 +5431,12 @@ fi
5116 else 5431 else
5117 case $cross_compiling:$ac_tool_warned in 5432 case $cross_compiling:$ac_tool_warned in
5118yes:) 5433yes:)
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5434{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5435whose name does not start with the host triplet. If you think this
5436configuration is useful to you, please write to autoconf@gnu.org." >&5
5437$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5438whose name does not start with the host triplet. If you think this
5439configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5121ac_tool_warned=yes ;; 5440ac_tool_warned=yes ;;
5122esac 5441esac
5123 RANLIB=$ac_ct_RANLIB 5442 RANLIB=$ac_ct_RANLIB
@@ -5129,9 +5448,9 @@ fi
5129fi 5448fi
5130# Extract the first word of "install-info", so it can be a program name with args. 5449# Extract the first word of "install-info", so it can be a program name with args.
5131set dummy install-info; ac_word=$2 5450set dummy install-info; ac_word=$2
5132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5451{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5133$as_echo_n "checking for $ac_word... " >&6; } 5452$as_echo_n "checking for $ac_word... " >&6; }
5134if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : 5453if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5135 $as_echo_n "(cached) " >&6 5454 $as_echo_n "(cached) " >&6
5136else 5455else
5137 case $INSTALL_INFO in 5456 case $INSTALL_INFO in
@@ -5144,14 +5463,14 @@ for as_dir in $PATH
5144do 5463do
5145 IFS=$as_save_IFS 5464 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=. 5465 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do 5466 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5149 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" 5468 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5469 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 break 2 5470 break 2
5152 fi 5471 fi
5153done 5472done
5154 done 5473done
5155IFS=$as_save_IFS 5474IFS=$as_save_IFS
5156 5475
5157 ;; 5476 ;;
@@ -5159,19 +5478,19 @@ esac
5159fi 5478fi
5160INSTALL_INFO=$ac_cv_path_INSTALL_INFO 5479INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5161if test -n "$INSTALL_INFO"; then 5480if test -n "$INSTALL_INFO"; then
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 5481 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5163$as_echo "$INSTALL_INFO" >&6; } 5482$as_echo "$INSTALL_INFO" >&6; }
5164else 5483else
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5484 { $as_echo "$as_me:$LINENO: result: no" >&5
5166$as_echo "no" >&6; } 5485$as_echo "no" >&6; }
5167fi 5486fi
5168 5487
5169 5488
5170# Extract the first word of "install-info", so it can be a program name with args. 5489# Extract the first word of "install-info", so it can be a program name with args.
5171set dummy install-info; ac_word=$2 5490set dummy install-info; ac_word=$2
5172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5491{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5173$as_echo_n "checking for $ac_word... " >&6; } 5492$as_echo_n "checking for $ac_word... " >&6; }
5174if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : 5493if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5175 $as_echo_n "(cached) " >&6 5494 $as_echo_n "(cached) " >&6
5176else 5495else
5177 case $INSTALL_INFO in 5496 case $INSTALL_INFO in
@@ -5184,14 +5503,14 @@ for as_dir in /usr/sbin
5184do 5503do
5185 IFS=$as_save_IFS 5504 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=. 5505 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do 5506 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" 5508 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5509 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 break 2 5510 break 2
5192 fi 5511 fi
5193done 5512done
5194 done 5513done
5195IFS=$as_save_IFS 5514IFS=$as_save_IFS
5196 5515
5197 ;; 5516 ;;
@@ -5199,19 +5518,19 @@ esac
5199fi 5518fi
5200INSTALL_INFO=$ac_cv_path_INSTALL_INFO 5519INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5201if test -n "$INSTALL_INFO"; then 5520if test -n "$INSTALL_INFO"; then
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 5521 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5203$as_echo "$INSTALL_INFO" >&6; } 5522$as_echo "$INSTALL_INFO" >&6; }
5204else 5523else
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5524 { $as_echo "$as_me:$LINENO: result: no" >&5
5206$as_echo "no" >&6; } 5525$as_echo "no" >&6; }
5207fi 5526fi
5208 5527
5209 5528
5210# Extract the first word of "install-info", so it can be a program name with args. 5529# Extract the first word of "install-info", so it can be a program name with args.
5211set dummy install-info; ac_word=$2 5530set dummy install-info; ac_word=$2
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5531{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5213$as_echo_n "checking for $ac_word... " >&6; } 5532$as_echo_n "checking for $ac_word... " >&6; }
5214if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : 5533if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5215 $as_echo_n "(cached) " >&6 5534 $as_echo_n "(cached) " >&6
5216else 5535else
5217 case $INSTALL_INFO in 5536 case $INSTALL_INFO in
@@ -5224,14 +5543,14 @@ for as_dir in /sbin
5224do 5543do
5225 IFS=$as_save_IFS 5544 IFS=$as_save_IFS
5226 test -z "$as_dir" && as_dir=. 5545 test -z "$as_dir" && as_dir=.
5227 for ac_exec_ext in '' $ac_executable_extensions; do 5546 for ac_exec_ext in '' $ac_executable_extensions; do
5228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5229 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" 5548 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5549 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 break 2 5550 break 2
5232 fi 5551 fi
5233done 5552done
5234 done 5553done
5235IFS=$as_save_IFS 5554IFS=$as_save_IFS
5236 5555
5237 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":" 5556 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
@@ -5240,19 +5559,19 @@ esac
5240fi 5559fi
5241INSTALL_INFO=$ac_cv_path_INSTALL_INFO 5560INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5242if test -n "$INSTALL_INFO"; then 5561if test -n "$INSTALL_INFO"; then
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 5562 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5244$as_echo "$INSTALL_INFO" >&6; } 5563$as_echo "$INSTALL_INFO" >&6; }
5245else 5564else
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5565 { $as_echo "$as_me:$LINENO: result: no" >&5
5247$as_echo "no" >&6; } 5566$as_echo "no" >&6; }
5248fi 5567fi
5249 5568
5250 5569
5251# Extract the first word of "gzip", so it can be a program name with args. 5570# Extract the first word of "gzip", so it can be a program name with args.
5252set dummy gzip; ac_word=$2 5571set dummy gzip; ac_word=$2
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5572{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5254$as_echo_n "checking for $ac_word... " >&6; } 5573$as_echo_n "checking for $ac_word... " >&6; }
5255if test "${ac_cv_path_GZIP_PROG+set}" = set; then : 5574if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5256 $as_echo_n "(cached) " >&6 5575 $as_echo_n "(cached) " >&6
5257else 5576else
5258 case $GZIP_PROG in 5577 case $GZIP_PROG in
@@ -5265,14 +5584,14 @@ for as_dir in $PATH
5265do 5584do
5266 IFS=$as_save_IFS 5585 IFS=$as_save_IFS
5267 test -z "$as_dir" && as_dir=. 5586 test -z "$as_dir" && as_dir=.
5268 for ac_exec_ext in '' $ac_executable_extensions; do 5587 for ac_exec_ext in '' $ac_executable_extensions; do
5269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5270 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext" 5589 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5590 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5272 break 2 5591 break 2
5273 fi 5592 fi
5274done 5593done
5275 done 5594done
5276IFS=$as_save_IFS 5595IFS=$as_save_IFS
5277 5596
5278 ;; 5597 ;;
@@ -5280,10 +5599,10 @@ esac
5280fi 5599fi
5281GZIP_PROG=$ac_cv_path_GZIP_PROG 5600GZIP_PROG=$ac_cv_path_GZIP_PROG
5282if test -n "$GZIP_PROG"; then 5601if test -n "$GZIP_PROG"; then
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5 5602 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5284$as_echo "$GZIP_PROG" >&6; } 5603$as_echo "$GZIP_PROG" >&6; }
5285else 5604else
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5605 { $as_echo "$as_me:$LINENO: result: no" >&5
5287$as_echo "no" >&6; } 5606$as_echo "no" >&6; }
5288fi 5607fi
5289 5608
@@ -5293,9 +5612,9 @@ fi
5293## Need makeinfo >= 4.6 (?) to build the manuals. 5612## Need makeinfo >= 4.6 (?) to build the manuals.
5294# Extract the first word of "makeinfo", so it can be a program name with args. 5613# Extract the first word of "makeinfo", so it can be a program name with args.
5295set dummy makeinfo; ac_word=$2 5614set dummy makeinfo; ac_word=$2
5296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5615{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5297$as_echo_n "checking for $ac_word... " >&6; } 5616$as_echo_n "checking for $ac_word... " >&6; }
5298if test "${ac_cv_path_MAKEINFO+set}" = set; then : 5617if test "${ac_cv_path_MAKEINFO+set}" = set; then
5299 $as_echo_n "(cached) " >&6 5618 $as_echo_n "(cached) " >&6
5300else 5619else
5301 case $MAKEINFO in 5620 case $MAKEINFO in
@@ -5308,14 +5627,14 @@ for as_dir in $PATH
5308do 5627do
5309 IFS=$as_save_IFS 5628 IFS=$as_save_IFS
5310 test -z "$as_dir" && as_dir=. 5629 test -z "$as_dir" && as_dir=.
5311 for ac_exec_ext in '' $ac_executable_extensions; do 5630 for ac_exec_ext in '' $ac_executable_extensions; do
5312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5313 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext" 5632 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5633 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5315 break 2 5634 break 2
5316 fi 5635 fi
5317done 5636done
5318 done 5637done
5319IFS=$as_save_IFS 5638IFS=$as_save_IFS
5320 5639
5321 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no" 5640 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
@@ -5324,10 +5643,10 @@ esac
5324fi 5643fi
5325MAKEINFO=$ac_cv_path_MAKEINFO 5644MAKEINFO=$ac_cv_path_MAKEINFO
5326if test -n "$MAKEINFO"; then 5645if test -n "$MAKEINFO"; then
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 5646 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5328$as_echo "$MAKEINFO" >&6; } 5647$as_echo "$MAKEINFO" >&6; }
5329else 5648else
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5649 { $as_echo "$as_me:$LINENO: result: no" >&5
5331$as_echo "no" >&6; } 5650$as_echo "no" >&6; }
5332fi 5651fi
5333 5652
@@ -5350,10 +5669,15 @@ if test "$MAKEINFO" = "no"; then
5350 if test "x${with_makeinfo}" = "xno"; then 5669 if test "x${with_makeinfo}" = "xno"; then
5351 MAKEINFO=off 5670 MAKEINFO=off
5352 elif test ! -e $srcdir/info/emacs; then 5671 elif test ! -e $srcdir/info/emacs; then
5353 as_fn_error "You do not seem to have makeinfo >= 4.6, and your 5672 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5673source tree does not seem to have pre-built manuals in the \`info' directory.
5674Either install a suitable version of makeinfo, or re-run configure
5675with the \`--without-makeinfo' option to build without the manuals. " >&5
5676$as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5354source tree does not seem to have pre-built manuals in the \`info' directory. 5677source tree does not seem to have pre-built manuals in the \`info' directory.
5355Either install a suitable version of makeinfo, or re-run configure 5678Either install a suitable version of makeinfo, or re-run configure
5356with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5 5679with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5680 { (exit 1); exit 1; }; }
5357 fi 5681 fi
5358fi 5682fi
5359 5683
@@ -5376,22 +5700,46 @@ else
5376 LDFLAGS="$LDFLAGS -znocombreloc" 5700 LDFLAGS="$LDFLAGS -znocombreloc"
5377fi 5701fi
5378 5702
5379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5 5703{ $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5380$as_echo_n "checking for -znocombreloc... " >&6; } 5704$as_echo_n "checking for -znocombreloc... " >&6; }
5381cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5705cat >conftest.$ac_ext <<_ACEOF
5382/* end confdefs.h. */
5383main(){return 0;} 5706main(){return 0;}
5384_ACEOF 5707_ACEOF
5385if ac_fn_c_try_link "$LINENO"; then : 5708rm -f conftest.$ac_objext conftest$ac_exeext
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5709if { (ac_try="$ac_link"
5710case "(($ac_try" in
5711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5712 *) ac_try_echo=$ac_try;;
5713esac
5714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5715$as_echo "$ac_try_echo") >&5
5716 (eval "$ac_link") 2>conftest.er1
5717 ac_status=$?
5718 grep -v '^ *+' conftest.er1 >conftest.err
5719 rm -f conftest.er1
5720 cat conftest.err >&5
5721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } && {
5723 test -z "$ac_c_werror_flag" ||
5724 test ! -s conftest.err
5725 } && test -s conftest$ac_exeext && {
5726 test "$cross_compiling" = yes ||
5727 $as_test_x conftest$ac_exeext
5728 }; then
5729 { $as_echo "$as_me:$LINENO: result: yes" >&5
5387$as_echo "yes" >&6; } 5730$as_echo "yes" >&6; }
5388else 5731else
5389 LDFLAGS=$late_LDFLAGS 5732 $as_echo "$as_me: failed program was:" >&5
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5733sed 's/^/| /' conftest.$ac_ext >&5
5734
5735 LDFLAGS=$late_LDFLAGS
5736 { $as_echo "$as_me:$LINENO: result: no" >&5
5391$as_echo "no" >&6; } 5737$as_echo "no" >&6; }
5392fi 5738fi
5393rm -f core conftest.err conftest.$ac_objext \ 5739
5394 conftest$ac_exeext conftest.$ac_ext 5740rm -rf conftest.dSYM
5741rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5742 conftest$ac_exeext conftest.$ac_ext
5395 5743
5396LIB_MATH=-lm 5744LIB_MATH=-lm
5397 5745
@@ -5409,7 +5757,7 @@ esac
5409 5757
5410#### Extract some information from the operating system and machine files. 5758#### Extract some information from the operating system and machine files.
5411 5759
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the machine- and system-dependent files to find out 5760{ $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5413 - which libraries the lib-src programs will want, and 5761 - which libraries the lib-src programs will want, and
5414 - whether the GNU malloc routines are usable..." >&5 5762 - whether the GNU malloc routines are usable..." >&5
5415$as_echo "$as_me: checking the machine- and system-dependent files to find out 5763$as_echo "$as_me: checking the machine- and system-dependent files to find out
@@ -5550,15 +5898,15 @@ fi
5550 5898
5551 5899
5552# Check whether --enable-largefile was given. 5900# Check whether --enable-largefile was given.
5553if test "${enable_largefile+set}" = set; then : 5901if test "${enable_largefile+set}" = set; then
5554 enableval=$enable_largefile; 5902 enableval=$enable_largefile;
5555fi 5903fi
5556 5904
5557if test "$enable_largefile" != no; then 5905if test "$enable_largefile" != no; then
5558 5906
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 5907 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5560$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 5908$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5561if test "${ac_cv_sys_largefile_CC+set}" = set; then : 5909if test "${ac_cv_sys_largefile_CC+set}" = set; then
5562 $as_echo_n "(cached) " >&6 5910 $as_echo_n "(cached) " >&6
5563else 5911else
5564 ac_cv_sys_largefile_CC=no 5912 ac_cv_sys_largefile_CC=no
@@ -5567,7 +5915,11 @@ else
5567 while :; do 5915 while :; do
5568 # IRIX 6.2 and later do not support large files by default, 5916 # IRIX 6.2 and later do not support large files by default,
5569 # so use the C compiler's -n32 option if that helps. 5917 # so use the C compiler's -n32 option if that helps.
5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5918 cat >conftest.$ac_ext <<_ACEOF
5919/* confdefs.h. */
5920_ACEOF
5921cat confdefs.h >>conftest.$ac_ext
5922cat >>conftest.$ac_ext <<_ACEOF
5571/* end confdefs.h. */ 5923/* end confdefs.h. */
5572#include <sys/types.h> 5924#include <sys/types.h>
5573 /* Check that off_t can represent 2**63 - 1 correctly. 5925 /* Check that off_t can represent 2**63 - 1 correctly.
@@ -5586,14 +5938,60 @@ main ()
5586 return 0; 5938 return 0;
5587} 5939}
5588_ACEOF 5940_ACEOF
5589 if ac_fn_c_try_compile "$LINENO"; then : 5941 rm -f conftest.$ac_objext
5942if { (ac_try="$ac_compile"
5943case "(($ac_try" in
5944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945 *) ac_try_echo=$ac_try;;
5946esac
5947eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5948$as_echo "$ac_try_echo") >&5
5949 (eval "$ac_compile") 2>conftest.er1
5950 ac_status=$?
5951 grep -v '^ *+' conftest.er1 >conftest.err
5952 rm -f conftest.er1
5953 cat conftest.err >&5
5954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); } && {
5956 test -z "$ac_c_werror_flag" ||
5957 test ! -s conftest.err
5958 } && test -s conftest.$ac_objext; then
5590 break 5959 break
5960else
5961 $as_echo "$as_me: failed program was:" >&5
5962sed 's/^/| /' conftest.$ac_ext >&5
5963
5964
5591fi 5965fi
5966
5592rm -f core conftest.err conftest.$ac_objext 5967rm -f core conftest.err conftest.$ac_objext
5593 CC="$CC -n32" 5968 CC="$CC -n32"
5594 if ac_fn_c_try_compile "$LINENO"; then : 5969 rm -f conftest.$ac_objext
5970if { (ac_try="$ac_compile"
5971case "(($ac_try" in
5972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5973 *) ac_try_echo=$ac_try;;
5974esac
5975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5976$as_echo "$ac_try_echo") >&5
5977 (eval "$ac_compile") 2>conftest.er1
5978 ac_status=$?
5979 grep -v '^ *+' conftest.er1 >conftest.err
5980 rm -f conftest.er1
5981 cat conftest.err >&5
5982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } && {
5984 test -z "$ac_c_werror_flag" ||
5985 test ! -s conftest.err
5986 } && test -s conftest.$ac_objext; then
5595 ac_cv_sys_largefile_CC=' -n32'; break 5987 ac_cv_sys_largefile_CC=' -n32'; break
5988else
5989 $as_echo "$as_me: failed program was:" >&5
5990sed 's/^/| /' conftest.$ac_ext >&5
5991
5992
5596fi 5993fi
5994
5597rm -f core conftest.err conftest.$ac_objext 5995rm -f core conftest.err conftest.$ac_objext
5598 break 5996 break
5599 done 5997 done
@@ -5601,19 +5999,23 @@ rm -f core conftest.err conftest.$ac_objext
5601 rm -f conftest.$ac_ext 5999 rm -f conftest.$ac_ext
5602 fi 6000 fi
5603fi 6001fi
5604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 6002{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5605$as_echo "$ac_cv_sys_largefile_CC" >&6; } 6003$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5606 if test "$ac_cv_sys_largefile_CC" != no; then 6004 if test "$ac_cv_sys_largefile_CC" != no; then
5607 CC=$CC$ac_cv_sys_largefile_CC 6005 CC=$CC$ac_cv_sys_largefile_CC
5608 fi 6006 fi
5609 6007
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 6008 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5611$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 6009$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5612if test "${ac_cv_sys_file_offset_bits+set}" = set; then : 6010if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5613 $as_echo_n "(cached) " >&6 6011 $as_echo_n "(cached) " >&6
5614else 6012else
5615 while :; do 6013 while :; do
5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6014 cat >conftest.$ac_ext <<_ACEOF
6015/* confdefs.h. */
6016_ACEOF
6017cat confdefs.h >>conftest.$ac_ext
6018cat >>conftest.$ac_ext <<_ACEOF
5617/* end confdefs.h. */ 6019/* end confdefs.h. */
5618#include <sys/types.h> 6020#include <sys/types.h>
5619 /* Check that off_t can represent 2**63 - 1 correctly. 6021 /* Check that off_t can represent 2**63 - 1 correctly.
@@ -5632,11 +6034,38 @@ main ()
5632 return 0; 6034 return 0;
5633} 6035}
5634_ACEOF 6036_ACEOF
5635if ac_fn_c_try_compile "$LINENO"; then : 6037rm -f conftest.$ac_objext
6038if { (ac_try="$ac_compile"
6039case "(($ac_try" in
6040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6041 *) ac_try_echo=$ac_try;;
6042esac
6043eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6044$as_echo "$ac_try_echo") >&5
6045 (eval "$ac_compile") 2>conftest.er1
6046 ac_status=$?
6047 grep -v '^ *+' conftest.er1 >conftest.err
6048 rm -f conftest.er1
6049 cat conftest.err >&5
6050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } && {
6052 test -z "$ac_c_werror_flag" ||
6053 test ! -s conftest.err
6054 } && test -s conftest.$ac_objext; then
5636 ac_cv_sys_file_offset_bits=no; break 6055 ac_cv_sys_file_offset_bits=no; break
6056else
6057 $as_echo "$as_me: failed program was:" >&5
6058sed 's/^/| /' conftest.$ac_ext >&5
6059
6060
5637fi 6061fi
6062
5638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6064 cat >conftest.$ac_ext <<_ACEOF
6065/* confdefs.h. */
6066_ACEOF
6067cat confdefs.h >>conftest.$ac_ext
6068cat >>conftest.$ac_ext <<_ACEOF
5640/* end confdefs.h. */ 6069/* end confdefs.h. */
5641#define _FILE_OFFSET_BITS 64 6070#define _FILE_OFFSET_BITS 64
5642#include <sys/types.h> 6071#include <sys/types.h>
@@ -5656,15 +6085,38 @@ main ()
5656 return 0; 6085 return 0;
5657} 6086}
5658_ACEOF 6087_ACEOF
5659if ac_fn_c_try_compile "$LINENO"; then : 6088rm -f conftest.$ac_objext
6089if { (ac_try="$ac_compile"
6090case "(($ac_try" in
6091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6092 *) ac_try_echo=$ac_try;;
6093esac
6094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6095$as_echo "$ac_try_echo") >&5
6096 (eval "$ac_compile") 2>conftest.er1
6097 ac_status=$?
6098 grep -v '^ *+' conftest.er1 >conftest.err
6099 rm -f conftest.er1
6100 cat conftest.err >&5
6101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); } && {
6103 test -z "$ac_c_werror_flag" ||
6104 test ! -s conftest.err
6105 } && test -s conftest.$ac_objext; then
5660 ac_cv_sys_file_offset_bits=64; break 6106 ac_cv_sys_file_offset_bits=64; break
6107else
6108 $as_echo "$as_me: failed program was:" >&5
6109sed 's/^/| /' conftest.$ac_ext >&5
6110
6111
5661fi 6112fi
6113
5662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5663 ac_cv_sys_file_offset_bits=unknown 6115 ac_cv_sys_file_offset_bits=unknown
5664 break 6116 break
5665done 6117done
5666fi 6118fi
5667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 6119{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5668$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 6120$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5669case $ac_cv_sys_file_offset_bits in #( 6121case $ac_cv_sys_file_offset_bits in #(
5670 no | unknown) ;; 6122 no | unknown) ;;
@@ -5676,13 +6128,17 @@ _ACEOF
5676esac 6128esac
5677rm -rf conftest* 6129rm -rf conftest*
5678 if test $ac_cv_sys_file_offset_bits = unknown; then 6130 if test $ac_cv_sys_file_offset_bits = unknown; then
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 6131 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5680$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 6132$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5681if test "${ac_cv_sys_large_files+set}" = set; then : 6133if test "${ac_cv_sys_large_files+set}" = set; then
5682 $as_echo_n "(cached) " >&6 6134 $as_echo_n "(cached) " >&6
5683else 6135else
5684 while :; do 6136 while :; do
5685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6137 cat >conftest.$ac_ext <<_ACEOF
6138/* confdefs.h. */
6139_ACEOF
6140cat confdefs.h >>conftest.$ac_ext
6141cat >>conftest.$ac_ext <<_ACEOF
5686/* end confdefs.h. */ 6142/* end confdefs.h. */
5687#include <sys/types.h> 6143#include <sys/types.h>
5688 /* Check that off_t can represent 2**63 - 1 correctly. 6144 /* Check that off_t can represent 2**63 - 1 correctly.
@@ -5701,11 +6157,38 @@ main ()
5701 return 0; 6157 return 0;
5702} 6158}
5703_ACEOF 6159_ACEOF
5704if ac_fn_c_try_compile "$LINENO"; then : 6160rm -f conftest.$ac_objext
6161if { (ac_try="$ac_compile"
6162case "(($ac_try" in
6163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164 *) ac_try_echo=$ac_try;;
6165esac
6166eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6167$as_echo "$ac_try_echo") >&5
6168 (eval "$ac_compile") 2>conftest.er1
6169 ac_status=$?
6170 grep -v '^ *+' conftest.er1 >conftest.err
6171 rm -f conftest.er1
6172 cat conftest.err >&5
6173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } && {
6175 test -z "$ac_c_werror_flag" ||
6176 test ! -s conftest.err
6177 } && test -s conftest.$ac_objext; then
5705 ac_cv_sys_large_files=no; break 6178 ac_cv_sys_large_files=no; break
6179else
6180 $as_echo "$as_me: failed program was:" >&5
6181sed 's/^/| /' conftest.$ac_ext >&5
6182
6183
5706fi 6184fi
6185
5707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6187 cat >conftest.$ac_ext <<_ACEOF
6188/* confdefs.h. */
6189_ACEOF
6190cat confdefs.h >>conftest.$ac_ext
6191cat >>conftest.$ac_ext <<_ACEOF
5709/* end confdefs.h. */ 6192/* end confdefs.h. */
5710#define _LARGE_FILES 1 6193#define _LARGE_FILES 1
5711#include <sys/types.h> 6194#include <sys/types.h>
@@ -5725,15 +6208,38 @@ main ()
5725 return 0; 6208 return 0;
5726} 6209}
5727_ACEOF 6210_ACEOF
5728if ac_fn_c_try_compile "$LINENO"; then : 6211rm -f conftest.$ac_objext
6212if { (ac_try="$ac_compile"
6213case "(($ac_try" in
6214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6215 *) ac_try_echo=$ac_try;;
6216esac
6217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6218$as_echo "$ac_try_echo") >&5
6219 (eval "$ac_compile") 2>conftest.er1
6220 ac_status=$?
6221 grep -v '^ *+' conftest.er1 >conftest.err
6222 rm -f conftest.er1
6223 cat conftest.err >&5
6224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } && {
6226 test -z "$ac_c_werror_flag" ||
6227 test ! -s conftest.err
6228 } && test -s conftest.$ac_objext; then
5729 ac_cv_sys_large_files=1; break 6229 ac_cv_sys_large_files=1; break
6230else
6231 $as_echo "$as_me: failed program was:" >&5
6232sed 's/^/| /' conftest.$ac_ext >&5
6233
6234
5730fi 6235fi
6236
5731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5732 ac_cv_sys_large_files=unknown 6238 ac_cv_sys_large_files=unknown
5733 break 6239 break
5734done 6240done
5735fi 6241fi
5736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 6242{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5737$as_echo "$ac_cv_sys_large_files" >&6; } 6243$as_echo "$ac_cv_sys_large_files" >&6; }
5738case $ac_cv_sys_large_files in #( 6244case $ac_cv_sys_large_files in #(
5739 no | unknown) ;; 6245 no | unknown) ;;
@@ -5767,7 +6273,18 @@ case "${canonical}" in
5767 fi 6273 fi
5768 6274
5769 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \ 6275 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5770 as_fn_error "crt*.o not found. Use --with-crt-dir to specify the location." "$LINENO" 5 6276 { { $as_echo "$as_me:$LINENO: error: crt*.o not found. Use --with-crt-dir to specify the location." >&5
6277$as_echo "$as_me: error: crt*.o not found. Use --with-crt-dir to specify the location." >&2;}
6278 { (exit 1); exit 1; }; }
6279 ;;
6280
6281 *)
6282 ## For clarity, ignore any user-specified setting on other platforms.
6283 if test "X$CRT_DIR" != "X"; then
6284 { $as_echo "$as_me:$LINENO: WARNING: Ignoring user-specified crt-dir." >&5
6285$as_echo "$as_me: WARNING: Ignoring user-specified crt-dir." >&2;}
6286 CRT_DIR=
6287 fi
5771 ;; 6288 ;;
5772 6289
5773esac 6290esac
@@ -5780,12 +6297,145 @@ test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
5780 6297
5781if test "${with_sound}" != "no"; then 6298if test "${with_sound}" != "no"; then
5782 # Sound support for GNU/Linux and the free BSDs. 6299 # Sound support for GNU/Linux and the free BSDs.
5783 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h 6300
5784do : 6301
5785 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6302
5786ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6303for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5787eval as_val=\$$as_ac_Header 6304do
5788 if test "x$as_val" = x""yes; then : 6305as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6306if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6307 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6308$as_echo_n "checking for $ac_header... " >&6; }
6309if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6310 $as_echo_n "(cached) " >&6
6311fi
6312ac_res=`eval 'as_val=${'$as_ac_Header'}
6313 $as_echo "$as_val"'`
6314 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6315$as_echo "$ac_res" >&6; }
6316else
6317 # Is the header compilable?
6318{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6319$as_echo_n "checking $ac_header usability... " >&6; }
6320cat >conftest.$ac_ext <<_ACEOF
6321/* confdefs.h. */
6322_ACEOF
6323cat confdefs.h >>conftest.$ac_ext
6324cat >>conftest.$ac_ext <<_ACEOF
6325/* end confdefs.h. */
6326$ac_includes_default
6327#include <$ac_header>
6328_ACEOF
6329rm -f conftest.$ac_objext
6330if { (ac_try="$ac_compile"
6331case "(($ac_try" in
6332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6333 *) ac_try_echo=$ac_try;;
6334esac
6335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6336$as_echo "$ac_try_echo") >&5
6337 (eval "$ac_compile") 2>conftest.er1
6338 ac_status=$?
6339 grep -v '^ *+' conftest.er1 >conftest.err
6340 rm -f conftest.er1
6341 cat conftest.err >&5
6342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); } && {
6344 test -z "$ac_c_werror_flag" ||
6345 test ! -s conftest.err
6346 } && test -s conftest.$ac_objext; then
6347 ac_header_compiler=yes
6348else
6349 $as_echo "$as_me: failed program was:" >&5
6350sed 's/^/| /' conftest.$ac_ext >&5
6351
6352 ac_header_compiler=no
6353fi
6354
6355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6356{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6357$as_echo "$ac_header_compiler" >&6; }
6358
6359# Is the header present?
6360{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6361$as_echo_n "checking $ac_header presence... " >&6; }
6362cat >conftest.$ac_ext <<_ACEOF
6363/* confdefs.h. */
6364_ACEOF
6365cat confdefs.h >>conftest.$ac_ext
6366cat >>conftest.$ac_ext <<_ACEOF
6367/* end confdefs.h. */
6368#include <$ac_header>
6369_ACEOF
6370if { (ac_try="$ac_cpp conftest.$ac_ext"
6371case "(($ac_try" in
6372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6373 *) ac_try_echo=$ac_try;;
6374esac
6375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6376$as_echo "$ac_try_echo") >&5
6377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6378 ac_status=$?
6379 grep -v '^ *+' conftest.er1 >conftest.err
6380 rm -f conftest.er1
6381 cat conftest.err >&5
6382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); } >/dev/null && {
6384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6385 test ! -s conftest.err
6386 }; then
6387 ac_header_preproc=yes
6388else
6389 $as_echo "$as_me: failed program was:" >&5
6390sed 's/^/| /' conftest.$ac_ext >&5
6391
6392 ac_header_preproc=no
6393fi
6394
6395rm -f conftest.err conftest.$ac_ext
6396{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6397$as_echo "$ac_header_preproc" >&6; }
6398
6399# So? What about this header?
6400case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6401 yes:no: )
6402 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6403$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6405$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6406 ac_header_preproc=yes
6407 ;;
6408 no:yes:* )
6409 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6410$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6412$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6413 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6414$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6416$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6418$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6420$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6421
6422 ;;
6423esac
6424{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6425$as_echo_n "checking for $ac_header... " >&6; }
6426if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6427 $as_echo_n "(cached) " >&6
6428else
6429 eval "$as_ac_Header=\$ac_header_preproc"
6430fi
6431ac_res=`eval 'as_val=${'$as_ac_Header'}
6432 $as_echo "$as_val"'`
6433 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6434$as_echo "$ac_res" >&6; }
6435
6436fi
6437if test `eval 'as_val=${'$as_ac_Header'}
6438 $as_echo "$as_val"'` = yes; then
5789 cat >>confdefs.h <<_ACEOF 6439 cat >>confdefs.h <<_ACEOF
5790#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6440#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5791_ACEOF 6441_ACEOF
@@ -5795,14 +6445,18 @@ fi
5795done 6445done
5796 6446
5797 # Emulation library used on NetBSD. 6447 # Emulation library used on NetBSD.
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5 6448 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5799$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; } 6449$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5800if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then : 6450if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5801 $as_echo_n "(cached) " >&6 6451 $as_echo_n "(cached) " >&6
5802else 6452else
5803 ac_check_lib_save_LIBS=$LIBS 6453 ac_check_lib_save_LIBS=$LIBS
5804LIBS="-lossaudio $LIBS" 6454LIBS="-lossaudio $LIBS"
5805cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6455cat >conftest.$ac_ext <<_ACEOF
6456/* confdefs.h. */
6457_ACEOF
6458cat confdefs.h >>conftest.$ac_ext
6459cat >>conftest.$ac_ext <<_ACEOF
5806/* end confdefs.h. */ 6460/* end confdefs.h. */
5807 6461
5808/* Override any GCC internal prototype to avoid an error. 6462/* Override any GCC internal prototype to avoid an error.
@@ -5820,18 +6474,43 @@ return _oss_ioctl ();
5820 return 0; 6474 return 0;
5821} 6475}
5822_ACEOF 6476_ACEOF
5823if ac_fn_c_try_link "$LINENO"; then : 6477rm -f conftest.$ac_objext conftest$ac_exeext
6478if { (ac_try="$ac_link"
6479case "(($ac_try" in
6480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6481 *) ac_try_echo=$ac_try;;
6482esac
6483eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6484$as_echo "$ac_try_echo") >&5
6485 (eval "$ac_link") 2>conftest.er1
6486 ac_status=$?
6487 grep -v '^ *+' conftest.er1 >conftest.err
6488 rm -f conftest.er1
6489 cat conftest.err >&5
6490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } && {
6492 test -z "$ac_c_werror_flag" ||
6493 test ! -s conftest.err
6494 } && test -s conftest$ac_exeext && {
6495 test "$cross_compiling" = yes ||
6496 $as_test_x conftest$ac_exeext
6497 }; then
5824 ac_cv_lib_ossaudio__oss_ioctl=yes 6498 ac_cv_lib_ossaudio__oss_ioctl=yes
5825else 6499else
5826 ac_cv_lib_ossaudio__oss_ioctl=no 6500 $as_echo "$as_me: failed program was:" >&5
6501sed 's/^/| /' conftest.$ac_ext >&5
6502
6503 ac_cv_lib_ossaudio__oss_ioctl=no
5827fi 6504fi
5828rm -f core conftest.err conftest.$ac_objext \ 6505
5829 conftest$ac_exeext conftest.$ac_ext 6506rm -rf conftest.dSYM
6507rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6508 conftest$ac_exeext conftest.$ac_ext
5830LIBS=$ac_check_lib_save_LIBS 6509LIBS=$ac_check_lib_save_LIBS
5831fi 6510fi
5832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 6511{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5833$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; } 6512$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5834if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then : 6513if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5835 LIBSOUND=-lossaudio 6514 LIBSOUND=-lossaudio
5836else 6515else
5837 LIBSOUND= 6516 LIBSOUND=
@@ -5846,9 +6525,9 @@ fi
5846 6525
5847 # Extract the first word of "pkg-config", so it can be a program name with args. 6526 # Extract the first word of "pkg-config", so it can be a program name with args.
5848set dummy pkg-config; ac_word=$2 6527set dummy pkg-config; ac_word=$2
5849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6528{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5850$as_echo_n "checking for $ac_word... " >&6; } 6529$as_echo_n "checking for $ac_word... " >&6; }
5851if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 6530if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5852 $as_echo_n "(cached) " >&6 6531 $as_echo_n "(cached) " >&6
5853else 6532else
5854 case $PKG_CONFIG in 6533 case $PKG_CONFIG in
@@ -5861,14 +6540,14 @@ for as_dir in $PATH
5861do 6540do
5862 IFS=$as_save_IFS 6541 IFS=$as_save_IFS
5863 test -z "$as_dir" && as_dir=. 6542 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do 6543 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5866 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 6545 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6546 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 break 2 6547 break 2
5869 fi 6548 fi
5870done 6549done
5871 done 6550done
5872IFS=$as_save_IFS 6551IFS=$as_save_IFS
5873 6552
5874 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 6553 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -5877,10 +6556,10 @@ esac
5877fi 6556fi
5878PKG_CONFIG=$ac_cv_path_PKG_CONFIG 6557PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5879if test -n "$PKG_CONFIG"; then 6558if test -n "$PKG_CONFIG"; then
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 6559 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5881$as_echo "$PKG_CONFIG" >&6; } 6560$as_echo "$PKG_CONFIG" >&6; }
5882else 6561else
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6562 { $as_echo "$as_me:$LINENO: result: no" >&5
5884$as_echo "no" >&6; } 6563$as_echo "no" >&6; }
5885fi 6564fi
5886 6565
@@ -5891,27 +6570,27 @@ fi
5891 else 6570 else
5892 PKG_CONFIG_MIN_VERSION=0.9.0 6571 PKG_CONFIG_MIN_VERSION=0.9.0
5893 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 6572 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5 6573 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
5895$as_echo_n "checking for $ALSA_MODULES... " >&6; } 6574$as_echo_n "checking for $ALSA_MODULES... " >&6; }
5896 6575
5897 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then 6576 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6577 { $as_echo "$as_me:$LINENO: result: yes" >&5
5899$as_echo "yes" >&6; } 6578$as_echo "yes" >&6; }
5900 succeeded=yes 6579 succeeded=yes
5901 6580
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5 6581 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
5903$as_echo_n "checking ALSA_CFLAGS... " >&6; } 6582$as_echo_n "checking ALSA_CFLAGS... " >&6; }
5904 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'` 6583 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5 6584 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
5906$as_echo "$ALSA_CFLAGS" >&6; } 6585$as_echo "$ALSA_CFLAGS" >&6; }
5907 6586
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5 6587 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
5909$as_echo_n "checking ALSA_LIBS... " >&6; } 6588$as_echo_n "checking ALSA_LIBS... " >&6; }
5910 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'` 6589 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5 6590 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
5912$as_echo "$ALSA_LIBS" >&6; } 6591$as_echo "$ALSA_LIBS" >&6; }
5913 else 6592 else
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6593 { $as_echo "$as_me:$LINENO: result: no" >&5
5915$as_echo "no" >&6; } 6594$as_echo "no" >&6; }
5916 ALSA_CFLAGS="" 6595 ALSA_CFLAGS=""
5917 ALSA_LIBS="" 6596 ALSA_LIBS=""
@@ -5940,7 +6619,11 @@ $as_echo "no" >&6; }
5940 SAVE_LDFLAGS="$LDFLAGS" 6619 SAVE_LDFLAGS="$LDFLAGS"
5941 CFLAGS="$ALSA_CFLAGS $CFLAGS" 6620 CFLAGS="$ALSA_CFLAGS $CFLAGS"
5942 LDFLAGS="$ALSA_LIBS $LDFLAGS" 6621 LDFLAGS="$ALSA_LIBS $LDFLAGS"
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6622 cat >conftest.$ac_ext <<_ACEOF
6623/* confdefs.h. */
6624_ACEOF
6625cat confdefs.h >>conftest.$ac_ext
6626cat >>conftest.$ac_ext <<_ACEOF
5944/* end confdefs.h. */ 6627/* end confdefs.h. */
5945#include <asoundlib.h> 6628#include <asoundlib.h>
5946int 6629int
@@ -5951,14 +6634,39 @@ snd_lib_error_set_handler (0);
5951 return 0; 6634 return 0;
5952} 6635}
5953_ACEOF 6636_ACEOF
5954if ac_fn_c_try_compile "$LINENO"; then : 6637rm -f conftest.$ac_objext
6638if { (ac_try="$ac_compile"
6639case "(($ac_try" in
6640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6641 *) ac_try_echo=$ac_try;;
6642esac
6643eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6644$as_echo "$ac_try_echo") >&5
6645 (eval "$ac_compile") 2>conftest.er1
6646 ac_status=$?
6647 grep -v '^ *+' conftest.er1 >conftest.err
6648 rm -f conftest.er1
6649 cat conftest.err >&5
6650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); } && {
6652 test -z "$ac_c_werror_flag" ||
6653 test ! -s conftest.err
6654 } && test -s conftest.$ac_objext; then
5955 emacs_alsa_normal=yes 6655 emacs_alsa_normal=yes
5956else 6656else
5957 emacs_alsa_normal=no 6657 $as_echo "$as_me: failed program was:" >&5
6658sed 's/^/| /' conftest.$ac_ext >&5
6659
6660 emacs_alsa_normal=no
5958fi 6661fi
6662
5959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5960 if test "$emacs_alsa_normal" != yes; then 6664 if test "$emacs_alsa_normal" != yes; then
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6665 cat >conftest.$ac_ext <<_ACEOF
6666/* confdefs.h. */
6667_ACEOF
6668cat confdefs.h >>conftest.$ac_ext
6669cat >>conftest.$ac_ext <<_ACEOF
5962/* end confdefs.h. */ 6670/* end confdefs.h. */
5963#include <alsa/asoundlib.h> 6671#include <alsa/asoundlib.h>
5964int 6672int
@@ -5969,14 +6677,37 @@ snd_lib_error_set_handler (0);
5969 return 0; 6677 return 0;
5970} 6678}
5971_ACEOF 6679_ACEOF
5972if ac_fn_c_try_compile "$LINENO"; then : 6680rm -f conftest.$ac_objext
6681if { (ac_try="$ac_compile"
6682case "(($ac_try" in
6683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6684 *) ac_try_echo=$ac_try;;
6685esac
6686eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6687$as_echo "$ac_try_echo") >&5
6688 (eval "$ac_compile") 2>conftest.er1
6689 ac_status=$?
6690 grep -v '^ *+' conftest.er1 >conftest.err
6691 rm -f conftest.er1
6692 cat conftest.err >&5
6693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); } && {
6695 test -z "$ac_c_werror_flag" ||
6696 test ! -s conftest.err
6697 } && test -s conftest.$ac_objext; then
5973 emacs_alsa_subdir=yes 6698 emacs_alsa_subdir=yes
5974else 6699else
5975 emacs_alsa_subdir=no 6700 $as_echo "$as_me: failed program was:" >&5
6701sed 's/^/| /' conftest.$ac_ext >&5
6702
6703 emacs_alsa_subdir=no
5976fi 6704fi
6705
5977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5978 if test "$emacs_alsa_subdir" != yes; then 6707 if test "$emacs_alsa_subdir" != yes; then
5979 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5 6708 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6709$as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6710 { (exit 1); exit 1; }; }
5980 fi 6711 fi
5981 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" 6712 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
5982 fi 6713 fi
@@ -5986,22 +6717,179 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986 LIBSOUND="$LIBSOUND $ALSA_LIBS" 6717 LIBSOUND="$LIBSOUND $ALSA_LIBS"
5987 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS" 6718 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
5988 6719
5989$as_echo "#define HAVE_ALSA 1" >>confdefs.h 6720cat >>confdefs.h <<\_ACEOF
6721#define HAVE_ALSA 1
6722_ACEOF
5990 6723
5991 fi 6724 fi
5992 6725
5993fi 6726fi
5994 6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
5995for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ 6753for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5996 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ 6754 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5997 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ 6755 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5998 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \ 6756 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5999 sys/utsname.h pwd.h utmp.h 6757 sys/utsname.h pwd.h utmp.h
6000do : 6758do
6001 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6759as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6002ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6760if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6003eval as_val=\$$as_ac_Header 6761 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6004 if test "x$as_val" = x""yes; then : 6762$as_echo_n "checking for $ac_header... " >&6; }
6763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6764 $as_echo_n "(cached) " >&6
6765fi
6766ac_res=`eval 'as_val=${'$as_ac_Header'}
6767 $as_echo "$as_val"'`
6768 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6769$as_echo "$ac_res" >&6; }
6770else
6771 # Is the header compilable?
6772{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6773$as_echo_n "checking $ac_header usability... " >&6; }
6774cat >conftest.$ac_ext <<_ACEOF
6775/* confdefs.h. */
6776_ACEOF
6777cat confdefs.h >>conftest.$ac_ext
6778cat >>conftest.$ac_ext <<_ACEOF
6779/* end confdefs.h. */
6780$ac_includes_default
6781#include <$ac_header>
6782_ACEOF
6783rm -f conftest.$ac_objext
6784if { (ac_try="$ac_compile"
6785case "(($ac_try" in
6786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6787 *) ac_try_echo=$ac_try;;
6788esac
6789eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6790$as_echo "$ac_try_echo") >&5
6791 (eval "$ac_compile") 2>conftest.er1
6792 ac_status=$?
6793 grep -v '^ *+' conftest.er1 >conftest.err
6794 rm -f conftest.er1
6795 cat conftest.err >&5
6796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); } && {
6798 test -z "$ac_c_werror_flag" ||
6799 test ! -s conftest.err
6800 } && test -s conftest.$ac_objext; then
6801 ac_header_compiler=yes
6802else
6803 $as_echo "$as_me: failed program was:" >&5
6804sed 's/^/| /' conftest.$ac_ext >&5
6805
6806 ac_header_compiler=no
6807fi
6808
6809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6810{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6811$as_echo "$ac_header_compiler" >&6; }
6812
6813# Is the header present?
6814{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6815$as_echo_n "checking $ac_header presence... " >&6; }
6816cat >conftest.$ac_ext <<_ACEOF
6817/* confdefs.h. */
6818_ACEOF
6819cat confdefs.h >>conftest.$ac_ext
6820cat >>conftest.$ac_ext <<_ACEOF
6821/* end confdefs.h. */
6822#include <$ac_header>
6823_ACEOF
6824if { (ac_try="$ac_cpp conftest.$ac_ext"
6825case "(($ac_try" in
6826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6827 *) ac_try_echo=$ac_try;;
6828esac
6829eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6830$as_echo "$ac_try_echo") >&5
6831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6832 ac_status=$?
6833 grep -v '^ *+' conftest.er1 >conftest.err
6834 rm -f conftest.er1
6835 cat conftest.err >&5
6836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } >/dev/null && {
6838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6839 test ! -s conftest.err
6840 }; then
6841 ac_header_preproc=yes
6842else
6843 $as_echo "$as_me: failed program was:" >&5
6844sed 's/^/| /' conftest.$ac_ext >&5
6845
6846 ac_header_preproc=no
6847fi
6848
6849rm -f conftest.err conftest.$ac_ext
6850{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6851$as_echo "$ac_header_preproc" >&6; }
6852
6853# So? What about this header?
6854case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6855 yes:no: )
6856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6857$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6859$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6860 ac_header_preproc=yes
6861 ;;
6862 no:yes:* )
6863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6864$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6866$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6868$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6870$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6872$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6874$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6875
6876 ;;
6877esac
6878{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6879$as_echo_n "checking for $ac_header... " >&6; }
6880if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6881 $as_echo_n "(cached) " >&6
6882else
6883 eval "$as_ac_Header=\$ac_header_preproc"
6884fi
6885ac_res=`eval 'as_val=${'$as_ac_Header'}
6886 $as_echo "$as_val"'`
6887 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6888$as_echo "$ac_res" >&6; }
6889
6890fi
6891if test `eval 'as_val=${'$as_ac_Header'}
6892 $as_echo "$as_val"'` = yes; then
6005 cat >>confdefs.h <<_ACEOF 6893 cat >>confdefs.h <<_ACEOF
6006#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6894#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6007_ACEOF 6895_ACEOF
@@ -6011,9 +6899,13 @@ fi
6011done 6899done
6012 6900
6013 6901
6014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5 6902{ $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6015$as_echo_n "checking if personality LINUX32 can be set... " >&6; } 6903$as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6016cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6904cat >conftest.$ac_ext <<_ACEOF
6905/* confdefs.h. */
6906_ACEOF
6907cat confdefs.h >>conftest.$ac_ext
6908cat >>conftest.$ac_ext <<_ACEOF
6017/* end confdefs.h. */ 6909/* end confdefs.h. */
6018#include <sys/personality.h> 6910#include <sys/personality.h>
6019int 6911int
@@ -6024,39 +6916,112 @@ personality (PER_LINUX32)
6024 return 0; 6916 return 0;
6025} 6917}
6026_ACEOF 6918_ACEOF
6027if ac_fn_c_try_compile "$LINENO"; then : 6919rm -f conftest.$ac_objext
6920if { (ac_try="$ac_compile"
6921case "(($ac_try" in
6922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6923 *) ac_try_echo=$ac_try;;
6924esac
6925eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6926$as_echo "$ac_try_echo") >&5
6927 (eval "$ac_compile") 2>conftest.er1
6928 ac_status=$?
6929 grep -v '^ *+' conftest.er1 >conftest.err
6930 rm -f conftest.er1
6931 cat conftest.err >&5
6932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); } && {
6934 test -z "$ac_c_werror_flag" ||
6935 test ! -s conftest.err
6936 } && test -s conftest.$ac_objext; then
6028 emacs_cv_personality_linux32=yes 6937 emacs_cv_personality_linux32=yes
6029else 6938else
6030 emacs_cv_personality_linux32=no 6939 $as_echo "$as_me: failed program was:" >&5
6940sed 's/^/| /' conftest.$ac_ext >&5
6941
6942 emacs_cv_personality_linux32=no
6031fi 6943fi
6944
6032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5 6946{ $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6034$as_echo "$emacs_cv_personality_linux32" >&6; } 6947$as_echo "$emacs_cv_personality_linux32" >&6; }
6035 6948
6036if test $emacs_cv_personality_linux32 = yes; then 6949if test $emacs_cv_personality_linux32 = yes; then
6037 6950
6038$as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h 6951cat >>confdefs.h <<\_ACEOF
6952#define HAVE_PERSONALITY_LINUX32 1
6953_ACEOF
6039 6954
6040fi 6955fi
6041 6956
6957
6042for ac_header in term.h 6958for ac_header in term.h
6043do : 6959do
6044 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h" 6960as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6045if test "x$ac_cv_header_term_h" = x""yes; then : 6961{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6962$as_echo_n "checking for $ac_header... " >&6; }
6963if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6964 $as_echo_n "(cached) " >&6
6965else
6966 cat >conftest.$ac_ext <<_ACEOF
6967/* confdefs.h. */
6968_ACEOF
6969cat confdefs.h >>conftest.$ac_ext
6970cat >>conftest.$ac_ext <<_ACEOF
6971/* end confdefs.h. */
6972#include <$ac_header>
6973_ACEOF
6974if { (ac_try="$ac_cpp conftest.$ac_ext"
6975case "(($ac_try" in
6976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6977 *) ac_try_echo=$ac_try;;
6978esac
6979eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6980$as_echo "$ac_try_echo") >&5
6981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6982 ac_status=$?
6983 grep -v '^ *+' conftest.er1 >conftest.err
6984 rm -f conftest.er1
6985 cat conftest.err >&5
6986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); } >/dev/null && {
6988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6989 test ! -s conftest.err
6990 }; then
6991 eval "$as_ac_Header=yes"
6992else
6993 $as_echo "$as_me: failed program was:" >&5
6994sed 's/^/| /' conftest.$ac_ext >&5
6995
6996 eval "$as_ac_Header=no"
6997fi
6998
6999rm -f conftest.err conftest.$ac_ext
7000fi
7001ac_res=`eval 'as_val=${'$as_ac_Header'}
7002 $as_echo "$as_val"'`
7003 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7004$as_echo "$ac_res" >&6; }
7005if test `eval 'as_val=${'$as_ac_Header'}
7006 $as_echo "$as_val"'` = yes; then
6046 cat >>confdefs.h <<_ACEOF 7007 cat >>confdefs.h <<_ACEOF
6047#define HAVE_TERM_H 1 7008#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6048_ACEOF 7009_ACEOF
6049 7010
6050fi 7011fi
6051 7012
6052done 7013done
6053 7014
6054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7015{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6055$as_echo_n "checking for ANSI C header files... " >&6; } 7016$as_echo_n "checking for ANSI C header files... " >&6; }
6056if test "${ac_cv_header_stdc+set}" = set; then : 7017if test "${ac_cv_header_stdc+set}" = set; then
6057 $as_echo_n "(cached) " >&6 7018 $as_echo_n "(cached) " >&6
6058else 7019else
6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7020 cat >conftest.$ac_ext <<_ACEOF
7021/* confdefs.h. */
7022_ACEOF
7023cat confdefs.h >>conftest.$ac_ext
7024cat >>conftest.$ac_ext <<_ACEOF
6060/* end confdefs.h. */ 7025/* end confdefs.h. */
6061#include <stdlib.h> 7026#include <stdlib.h>
6062#include <stdarg.h> 7027#include <stdarg.h>
@@ -6071,23 +7036,48 @@ main ()
6071 return 0; 7036 return 0;
6072} 7037}
6073_ACEOF 7038_ACEOF
6074if ac_fn_c_try_compile "$LINENO"; then : 7039rm -f conftest.$ac_objext
7040if { (ac_try="$ac_compile"
7041case "(($ac_try" in
7042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7043 *) ac_try_echo=$ac_try;;
7044esac
7045eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7046$as_echo "$ac_try_echo") >&5
7047 (eval "$ac_compile") 2>conftest.er1
7048 ac_status=$?
7049 grep -v '^ *+' conftest.er1 >conftest.err
7050 rm -f conftest.er1
7051 cat conftest.err >&5
7052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); } && {
7054 test -z "$ac_c_werror_flag" ||
7055 test ! -s conftest.err
7056 } && test -s conftest.$ac_objext; then
6075 ac_cv_header_stdc=yes 7057 ac_cv_header_stdc=yes
6076else 7058else
6077 ac_cv_header_stdc=no 7059 $as_echo "$as_me: failed program was:" >&5
7060sed 's/^/| /' conftest.$ac_ext >&5
7061
7062 ac_cv_header_stdc=no
6078fi 7063fi
7064
6079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6080 7066
6081if test $ac_cv_header_stdc = yes; then 7067if test $ac_cv_header_stdc = yes; then
6082 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7068 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7069 cat >conftest.$ac_ext <<_ACEOF
7070/* confdefs.h. */
7071_ACEOF
7072cat confdefs.h >>conftest.$ac_ext
7073cat >>conftest.$ac_ext <<_ACEOF
6084/* end confdefs.h. */ 7074/* end confdefs.h. */
6085#include <string.h> 7075#include <string.h>
6086 7076
6087_ACEOF 7077_ACEOF
6088if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6089 $EGREP "memchr" >/dev/null 2>&1; then : 7079 $EGREP "memchr" >/dev/null 2>&1; then
6090 7080 :
6091else 7081else
6092 ac_cv_header_stdc=no 7082 ac_cv_header_stdc=no
6093fi 7083fi
@@ -6097,14 +7087,18 @@ fi
6097 7087
6098if test $ac_cv_header_stdc = yes; then 7088if test $ac_cv_header_stdc = yes; then
6099 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7089 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7090 cat >conftest.$ac_ext <<_ACEOF
7091/* confdefs.h. */
7092_ACEOF
7093cat confdefs.h >>conftest.$ac_ext
7094cat >>conftest.$ac_ext <<_ACEOF
6101/* end confdefs.h. */ 7095/* end confdefs.h. */
6102#include <stdlib.h> 7096#include <stdlib.h>
6103 7097
6104_ACEOF 7098_ACEOF
6105if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7099if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6106 $EGREP "free" >/dev/null 2>&1; then : 7100 $EGREP "free" >/dev/null 2>&1; then
6107 7101 :
6108else 7102else
6109 ac_cv_header_stdc=no 7103 ac_cv_header_stdc=no
6110fi 7104fi
@@ -6114,10 +7108,14 @@ fi
6114 7108
6115if test $ac_cv_header_stdc = yes; then 7109if test $ac_cv_header_stdc = yes; then
6116 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7110 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6117 if test "$cross_compiling" = yes; then : 7111 if test "$cross_compiling" = yes; then
6118 : 7112 :
6119else 7113else
6120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7114 cat >conftest.$ac_ext <<_ACEOF
7115/* confdefs.h. */
7116_ACEOF
7117cat confdefs.h >>conftest.$ac_ext
7118cat >>conftest.$ac_ext <<_ACEOF
6121/* end confdefs.h. */ 7119/* end confdefs.h. */
6122#include <ctype.h> 7120#include <ctype.h>
6123#include <stdlib.h> 7121#include <stdlib.h>
@@ -6144,31 +7142,64 @@ main ()
6144 return 0; 7142 return 0;
6145} 7143}
6146_ACEOF 7144_ACEOF
6147if ac_fn_c_try_run "$LINENO"; then : 7145rm -f conftest$ac_exeext
6148 7146if { (ac_try="$ac_link"
7147case "(($ac_try" in
7148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7149 *) ac_try_echo=$ac_try;;
7150esac
7151eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7152$as_echo "$ac_try_echo") >&5
7153 (eval "$ac_link") 2>&5
7154 ac_status=$?
7155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7157 { (case "(($ac_try" in
7158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7159 *) ac_try_echo=$ac_try;;
7160esac
7161eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7162$as_echo "$ac_try_echo") >&5
7163 (eval "$ac_try") 2>&5
7164 ac_status=$?
7165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); }; }; then
7167 :
6149else 7168else
6150 ac_cv_header_stdc=no 7169 $as_echo "$as_me: program exited with status $ac_status" >&5
7170$as_echo "$as_me: failed program was:" >&5
7171sed 's/^/| /' conftest.$ac_ext >&5
7172
7173( exit $ac_status )
7174ac_cv_header_stdc=no
6151fi 7175fi
6152rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7176rm -rf conftest.dSYM
6153 conftest.$ac_objext conftest.beam conftest.$ac_ext 7177rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6154fi 7178fi
6155 7179
7180
6156fi 7181fi
6157fi 7182fi
6158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7183{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6159$as_echo "$ac_cv_header_stdc" >&6; } 7184$as_echo "$ac_cv_header_stdc" >&6; }
6160if test $ac_cv_header_stdc = yes; then 7185if test $ac_cv_header_stdc = yes; then
6161 7186
6162$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7187cat >>confdefs.h <<\_ACEOF
7188#define STDC_HEADERS 1
7189_ACEOF
6163 7190
6164fi 7191fi
6165 7192
6166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 7193{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6167$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 7194$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6168if test "${ac_cv_header_time+set}" = set; then : 7195if test "${ac_cv_header_time+set}" = set; then
6169 $as_echo_n "(cached) " >&6 7196 $as_echo_n "(cached) " >&6
6170else 7197else
6171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7198 cat >conftest.$ac_ext <<_ACEOF
7199/* confdefs.h. */
7200_ACEOF
7201cat confdefs.h >>conftest.$ac_ext
7202cat >>conftest.$ac_ext <<_ACEOF
6172/* end confdefs.h. */ 7203/* end confdefs.h. */
6173#include <sys/types.h> 7204#include <sys/types.h>
6174#include <sys/time.h> 7205#include <sys/time.h>
@@ -6183,57 +7214,202 @@ return 0;
6183 return 0; 7214 return 0;
6184} 7215}
6185_ACEOF 7216_ACEOF
6186if ac_fn_c_try_compile "$LINENO"; then : 7217rm -f conftest.$ac_objext
7218if { (ac_try="$ac_compile"
7219case "(($ac_try" in
7220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7221 *) ac_try_echo=$ac_try;;
7222esac
7223eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7224$as_echo "$ac_try_echo") >&5
7225 (eval "$ac_compile") 2>conftest.er1
7226 ac_status=$?
7227 grep -v '^ *+' conftest.er1 >conftest.err
7228 rm -f conftest.er1
7229 cat conftest.err >&5
7230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); } && {
7232 test -z "$ac_c_werror_flag" ||
7233 test ! -s conftest.err
7234 } && test -s conftest.$ac_objext; then
6187 ac_cv_header_time=yes 7235 ac_cv_header_time=yes
6188else 7236else
6189 ac_cv_header_time=no 7237 $as_echo "$as_me: failed program was:" >&5
7238sed 's/^/| /' conftest.$ac_ext >&5
7239
7240 ac_cv_header_time=no
6190fi 7241fi
7242
6191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6192fi 7244fi
6193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 7245{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6194$as_echo "$ac_cv_header_time" >&6; } 7246$as_echo "$ac_cv_header_time" >&6; }
6195if test $ac_cv_header_time = yes; then 7247if test $ac_cv_header_time = yes; then
6196 7248
6197$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 7249cat >>confdefs.h <<\_ACEOF
7250#define TIME_WITH_SYS_TIME 1
7251_ACEOF
6198 7252
6199fi 7253fi
6200 7254
6201ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default" 7255{ $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6202if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then : 7256$as_echo_n "checking whether sys_siglist is declared... " >&6; }
6203 ac_have_decl=1 7257if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7258 $as_echo_n "(cached) " >&6
6204else 7259else
6205 ac_have_decl=0 7260 cat >conftest.$ac_ext <<_ACEOF
7261/* confdefs.h. */
7262_ACEOF
7263cat confdefs.h >>conftest.$ac_ext
7264cat >>conftest.$ac_ext <<_ACEOF
7265/* end confdefs.h. */
7266$ac_includes_default
7267int
7268main ()
7269{
7270#ifndef sys_siglist
7271 (void) sys_siglist;
7272#endif
7273
7274 ;
7275 return 0;
7276}
7277_ACEOF
7278rm -f conftest.$ac_objext
7279if { (ac_try="$ac_compile"
7280case "(($ac_try" in
7281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7282 *) ac_try_echo=$ac_try;;
7283esac
7284eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7285$as_echo "$ac_try_echo") >&5
7286 (eval "$ac_compile") 2>conftest.er1
7287 ac_status=$?
7288 grep -v '^ *+' conftest.er1 >conftest.err
7289 rm -f conftest.er1
7290 cat conftest.err >&5
7291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); } && {
7293 test -z "$ac_c_werror_flag" ||
7294 test ! -s conftest.err
7295 } && test -s conftest.$ac_objext; then
7296 ac_cv_have_decl_sys_siglist=yes
7297else
7298 $as_echo "$as_me: failed program was:" >&5
7299sed 's/^/| /' conftest.$ac_ext >&5
7300
7301 ac_cv_have_decl_sys_siglist=no
7302fi
7303
7304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6206fi 7305fi
7306{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7307$as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7308if test $ac_cv_have_decl_sys_siglist = yes; then
6207 7309
6208cat >>confdefs.h <<_ACEOF 7310cat >>confdefs.h <<_ACEOF
6209#define HAVE_DECL_SYS_SIGLIST $ac_have_decl 7311#define HAVE_DECL_SYS_SIGLIST 1
7312_ACEOF
7313
7314
7315else
7316 cat >>confdefs.h <<_ACEOF
7317#define HAVE_DECL_SYS_SIGLIST 0
6210_ACEOF 7318_ACEOF
6211 7319
7320
7321fi
7322
7323
6212if test $ac_cv_have_decl_sys_siglist != yes; then 7324if test $ac_cv_have_decl_sys_siglist != yes; then
6213 # For Tru64, at least: 7325 # For Tru64, at least:
6214 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default" 7326 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6215if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then : 7327$as_echo_n "checking whether __sys_siglist is declared... " >&6; }
6216 ac_have_decl=1 7328if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7329 $as_echo_n "(cached) " >&6
7330else
7331 cat >conftest.$ac_ext <<_ACEOF
7332/* confdefs.h. */
7333_ACEOF
7334cat confdefs.h >>conftest.$ac_ext
7335cat >>conftest.$ac_ext <<_ACEOF
7336/* end confdefs.h. */
7337$ac_includes_default
7338int
7339main ()
7340{
7341#ifndef __sys_siglist
7342 (void) __sys_siglist;
7343#endif
7344
7345 ;
7346 return 0;
7347}
7348_ACEOF
7349rm -f conftest.$ac_objext
7350if { (ac_try="$ac_compile"
7351case "(($ac_try" in
7352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7353 *) ac_try_echo=$ac_try;;
7354esac
7355eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7356$as_echo "$ac_try_echo") >&5
7357 (eval "$ac_compile") 2>conftest.er1
7358 ac_status=$?
7359 grep -v '^ *+' conftest.er1 >conftest.err
7360 rm -f conftest.er1
7361 cat conftest.err >&5
7362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); } && {
7364 test -z "$ac_c_werror_flag" ||
7365 test ! -s conftest.err
7366 } && test -s conftest.$ac_objext; then
7367 ac_cv_have_decl___sys_siglist=yes
6217else 7368else
6218 ac_have_decl=0 7369 $as_echo "$as_me: failed program was:" >&5
7370sed 's/^/| /' conftest.$ac_ext >&5
7371
7372 ac_cv_have_decl___sys_siglist=no
7373fi
7374
7375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219fi 7376fi
7377{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7378$as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7379if test $ac_cv_have_decl___sys_siglist = yes; then
6220 7380
6221cat >>confdefs.h <<_ACEOF 7381cat >>confdefs.h <<_ACEOF
6222#define HAVE_DECL___SYS_SIGLIST $ac_have_decl 7382#define HAVE_DECL___SYS_SIGLIST 1
7383_ACEOF
7384
7385
7386else
7387 cat >>confdefs.h <<_ACEOF
7388#define HAVE_DECL___SYS_SIGLIST 0
6223_ACEOF 7389_ACEOF
6224 7390
7391
7392fi
7393
7394
6225 if test $ac_cv_have_decl___sys_siglist = yes; then 7395 if test $ac_cv_have_decl___sys_siglist = yes; then
6226 7396
6227$as_echo "#define sys_siglist __sys_siglist" >>confdefs.h 7397cat >>confdefs.h <<\_ACEOF
7398#define sys_siglist __sys_siglist
7399_ACEOF
6228 7400
6229 fi 7401 fi
6230fi 7402fi
6231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 7403{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6232$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 7404$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6233if test "${ac_cv_header_sys_wait_h+set}" = set; then : 7405if test "${ac_cv_header_sys_wait_h+set}" = set; then
6234 $as_echo_n "(cached) " >&6 7406 $as_echo_n "(cached) " >&6
6235else 7407else
6236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7408 cat >conftest.$ac_ext <<_ACEOF
7409/* confdefs.h. */
7410_ACEOF
7411cat confdefs.h >>conftest.$ac_ext
7412cat >>conftest.$ac_ext <<_ACEOF
6237/* end confdefs.h. */ 7413/* end confdefs.h. */
6238#include <sys/types.h> 7414#include <sys/types.h>
6239#include <sys/wait.h> 7415#include <sys/wait.h>
@@ -6254,28 +7430,55 @@ main ()
6254 return 0; 7430 return 0;
6255} 7431}
6256_ACEOF 7432_ACEOF
6257if ac_fn_c_try_compile "$LINENO"; then : 7433rm -f conftest.$ac_objext
7434if { (ac_try="$ac_compile"
7435case "(($ac_try" in
7436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7437 *) ac_try_echo=$ac_try;;
7438esac
7439eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7440$as_echo "$ac_try_echo") >&5
7441 (eval "$ac_compile") 2>conftest.er1
7442 ac_status=$?
7443 grep -v '^ *+' conftest.er1 >conftest.err
7444 rm -f conftest.er1
7445 cat conftest.err >&5
7446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); } && {
7448 test -z "$ac_c_werror_flag" ||
7449 test ! -s conftest.err
7450 } && test -s conftest.$ac_objext; then
6258 ac_cv_header_sys_wait_h=yes 7451 ac_cv_header_sys_wait_h=yes
6259else 7452else
6260 ac_cv_header_sys_wait_h=no 7453 $as_echo "$as_me: failed program was:" >&5
7454sed 's/^/| /' conftest.$ac_ext >&5
7455
7456 ac_cv_header_sys_wait_h=no
6261fi 7457fi
7458
6262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6263fi 7460fi
6264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 7461{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6265$as_echo "$ac_cv_header_sys_wait_h" >&6; } 7462$as_echo "$ac_cv_header_sys_wait_h" >&6; }
6266if test $ac_cv_header_sys_wait_h = yes; then 7463if test $ac_cv_header_sys_wait_h = yes; then
6267 7464
6268$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 7465cat >>confdefs.h <<\_ACEOF
7466#define HAVE_SYS_WAIT_H 1
7467_ACEOF
6269 7468
6270fi 7469fi
6271 7470
6272 7471
6273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5 7472{ $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6274$as_echo_n "checking for struct utimbuf... " >&6; } 7473$as_echo_n "checking for struct utimbuf... " >&6; }
6275if test "${emacs_cv_struct_utimbuf+set}" = set; then : 7474if test "${emacs_cv_struct_utimbuf+set}" = set; then
6276 $as_echo_n "(cached) " >&6 7475 $as_echo_n "(cached) " >&6
6277else 7476else
6278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7477 cat >conftest.$ac_ext <<_ACEOF
7478/* confdefs.h. */
7479_ACEOF
7480cat confdefs.h >>conftest.$ac_ext
7481cat >>conftest.$ac_ext <<_ACEOF
6279/* end confdefs.h. */ 7482/* end confdefs.h. */
6280#ifdef TIME_WITH_SYS_TIME 7483#ifdef TIME_WITH_SYS_TIME
6281#include <sys/time.h> 7484#include <sys/time.h>
@@ -6298,27 +7501,54 @@ static struct utimbuf x; x.actime = x.modtime;
6298 return 0; 7501 return 0;
6299} 7502}
6300_ACEOF 7503_ACEOF
6301if ac_fn_c_try_compile "$LINENO"; then : 7504rm -f conftest.$ac_objext
7505if { (ac_try="$ac_compile"
7506case "(($ac_try" in
7507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7508 *) ac_try_echo=$ac_try;;
7509esac
7510eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7511$as_echo "$ac_try_echo") >&5
7512 (eval "$ac_compile") 2>conftest.er1
7513 ac_status=$?
7514 grep -v '^ *+' conftest.er1 >conftest.err
7515 rm -f conftest.er1
7516 cat conftest.err >&5
7517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); } && {
7519 test -z "$ac_c_werror_flag" ||
7520 test ! -s conftest.err
7521 } && test -s conftest.$ac_objext; then
6302 emacs_cv_struct_utimbuf=yes 7522 emacs_cv_struct_utimbuf=yes
6303else 7523else
6304 emacs_cv_struct_utimbuf=no 7524 $as_echo "$as_me: failed program was:" >&5
7525sed 's/^/| /' conftest.$ac_ext >&5
7526
7527 emacs_cv_struct_utimbuf=no
6305fi 7528fi
7529
6306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6307fi 7531fi
6308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5 7532{ $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6309$as_echo "$emacs_cv_struct_utimbuf" >&6; } 7533$as_echo "$emacs_cv_struct_utimbuf" >&6; }
6310if test $emacs_cv_struct_utimbuf = yes; then 7534if test $emacs_cv_struct_utimbuf = yes; then
6311 7535
6312$as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h 7536cat >>confdefs.h <<\_ACEOF
7537#define HAVE_STRUCT_UTIMBUF 1
7538_ACEOF
6313 7539
6314fi 7540fi
6315 7541
6316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 7542{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6317$as_echo_n "checking return type of signal handlers... " >&6; } 7543$as_echo_n "checking return type of signal handlers... " >&6; }
6318if test "${ac_cv_type_signal+set}" = set; then : 7544if test "${ac_cv_type_signal+set}" = set; then
6319 $as_echo_n "(cached) " >&6 7545 $as_echo_n "(cached) " >&6
6320else 7546else
6321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7547 cat >conftest.$ac_ext <<_ACEOF
7548/* confdefs.h. */
7549_ACEOF
7550cat confdefs.h >>conftest.$ac_ext
7551cat >>conftest.$ac_ext <<_ACEOF
6322/* end confdefs.h. */ 7552/* end confdefs.h. */
6323#include <sys/types.h> 7553#include <sys/types.h>
6324#include <signal.h> 7554#include <signal.h>
@@ -6331,14 +7561,35 @@ return *(signal (0, 0)) (0) == 1;
6331 return 0; 7561 return 0;
6332} 7562}
6333_ACEOF 7563_ACEOF
6334if ac_fn_c_try_compile "$LINENO"; then : 7564rm -f conftest.$ac_objext
7565if { (ac_try="$ac_compile"
7566case "(($ac_try" in
7567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7568 *) ac_try_echo=$ac_try;;
7569esac
7570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7571$as_echo "$ac_try_echo") >&5
7572 (eval "$ac_compile") 2>conftest.er1
7573 ac_status=$?
7574 grep -v '^ *+' conftest.er1 >conftest.err
7575 rm -f conftest.er1
7576 cat conftest.err >&5
7577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); } && {
7579 test -z "$ac_c_werror_flag" ||
7580 test ! -s conftest.err
7581 } && test -s conftest.$ac_objext; then
6335 ac_cv_type_signal=int 7582 ac_cv_type_signal=int
6336else 7583else
6337 ac_cv_type_signal=void 7584 $as_echo "$as_me: failed program was:" >&5
7585sed 's/^/| /' conftest.$ac_ext >&5
7586
7587 ac_cv_type_signal=void
6338fi 7588fi
7589
6339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6340fi 7591fi
6341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 7592{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6342$as_echo "$ac_cv_type_signal" >&6; } 7593$as_echo "$ac_cv_type_signal" >&6; }
6343 7594
6344cat >>confdefs.h <<_ACEOF 7595cat >>confdefs.h <<_ACEOF
@@ -6347,12 +7598,16 @@ _ACEOF
6347 7598
6348 7599
6349 7600
6350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5 7601{ $as_echo "$as_me:$LINENO: checking for speed_t" >&5
6351$as_echo_n "checking for speed_t... " >&6; } 7602$as_echo_n "checking for speed_t... " >&6; }
6352if test "${emacs_cv_speed_t+set}" = set; then : 7603if test "${emacs_cv_speed_t+set}" = set; then
6353 $as_echo_n "(cached) " >&6 7604 $as_echo_n "(cached) " >&6
6354else 7605else
6355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7606 cat >conftest.$ac_ext <<_ACEOF
7607/* confdefs.h. */
7608_ACEOF
7609cat confdefs.h >>conftest.$ac_ext
7610cat >>conftest.$ac_ext <<_ACEOF
6356/* end confdefs.h. */ 7611/* end confdefs.h. */
6357#include <termios.h> 7612#include <termios.h>
6358int 7613int
@@ -6363,27 +7618,54 @@ speed_t x = 1;
6363 return 0; 7618 return 0;
6364} 7619}
6365_ACEOF 7620_ACEOF
6366if ac_fn_c_try_compile "$LINENO"; then : 7621rm -f conftest.$ac_objext
7622if { (ac_try="$ac_compile"
7623case "(($ac_try" in
7624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7625 *) ac_try_echo=$ac_try;;
7626esac
7627eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7628$as_echo "$ac_try_echo") >&5
7629 (eval "$ac_compile") 2>conftest.er1
7630 ac_status=$?
7631 grep -v '^ *+' conftest.er1 >conftest.err
7632 rm -f conftest.er1
7633 cat conftest.err >&5
7634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } && {
7636 test -z "$ac_c_werror_flag" ||
7637 test ! -s conftest.err
7638 } && test -s conftest.$ac_objext; then
6367 emacs_cv_speed_t=yes 7639 emacs_cv_speed_t=yes
6368else 7640else
6369 emacs_cv_speed_t=no 7641 $as_echo "$as_me: failed program was:" >&5
7642sed 's/^/| /' conftest.$ac_ext >&5
7643
7644 emacs_cv_speed_t=no
6370fi 7645fi
7646
6371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6372fi 7648fi
6373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5 7649{ $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6374$as_echo "$emacs_cv_speed_t" >&6; } 7650$as_echo "$emacs_cv_speed_t" >&6; }
6375if test $emacs_cv_speed_t = yes; then 7651if test $emacs_cv_speed_t = yes; then
6376 7652
6377$as_echo "#define HAVE_SPEED_T 1" >>confdefs.h 7653cat >>confdefs.h <<\_ACEOF
7654#define HAVE_SPEED_T 1
7655_ACEOF
6378 7656
6379fi 7657fi
6380 7658
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 7659{ $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
6382$as_echo_n "checking for struct timeval... " >&6; } 7660$as_echo_n "checking for struct timeval... " >&6; }
6383if test "${emacs_cv_struct_timeval+set}" = set; then : 7661if test "${emacs_cv_struct_timeval+set}" = set; then
6384 $as_echo_n "(cached) " >&6 7662 $as_echo_n "(cached) " >&6
6385else 7663else
6386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7664 cat >conftest.$ac_ext <<_ACEOF
7665/* confdefs.h. */
7666_ACEOF
7667cat confdefs.h >>conftest.$ac_ext
7668cat >>conftest.$ac_ext <<_ACEOF
6387/* end confdefs.h. */ 7669/* end confdefs.h. */
6388#ifdef TIME_WITH_SYS_TIME 7670#ifdef TIME_WITH_SYS_TIME
6389#include <sys/time.h> 7671#include <sys/time.h>
@@ -6403,28 +7685,55 @@ static struct timeval x; x.tv_sec = x.tv_usec;
6403 return 0; 7685 return 0;
6404} 7686}
6405_ACEOF 7687_ACEOF
6406if ac_fn_c_try_compile "$LINENO"; then : 7688rm -f conftest.$ac_objext
7689if { (ac_try="$ac_compile"
7690case "(($ac_try" in
7691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7692 *) ac_try_echo=$ac_try;;
7693esac
7694eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7695$as_echo "$ac_try_echo") >&5
7696 (eval "$ac_compile") 2>conftest.er1
7697 ac_status=$?
7698 grep -v '^ *+' conftest.er1 >conftest.err
7699 rm -f conftest.er1
7700 cat conftest.err >&5
7701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); } && {
7703 test -z "$ac_c_werror_flag" ||
7704 test ! -s conftest.err
7705 } && test -s conftest.$ac_objext; then
6407 emacs_cv_struct_timeval=yes 7706 emacs_cv_struct_timeval=yes
6408else 7707else
6409 emacs_cv_struct_timeval=no 7708 $as_echo "$as_me: failed program was:" >&5
7709sed 's/^/| /' conftest.$ac_ext >&5
7710
7711 emacs_cv_struct_timeval=no
6410fi 7712fi
7713
6411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6412fi 7715fi
6413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5 7716{ $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6414$as_echo "$emacs_cv_struct_timeval" >&6; } 7717$as_echo "$emacs_cv_struct_timeval" >&6; }
6415HAVE_TIMEVAL=$emacs_cv_struct_timeval 7718HAVE_TIMEVAL=$emacs_cv_struct_timeval
6416if test $emacs_cv_struct_timeval = yes; then 7719if test $emacs_cv_struct_timeval = yes; then
6417 7720
6418$as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h 7721cat >>confdefs.h <<\_ACEOF
7722#define HAVE_TIMEVAL 1
7723_ACEOF
6419 7724
6420fi 7725fi
6421 7726
6422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5 7727{ $as_echo "$as_me:$LINENO: checking for struct exception" >&5
6423$as_echo_n "checking for struct exception... " >&6; } 7728$as_echo_n "checking for struct exception... " >&6; }
6424if test "${emacs_cv_struct_exception+set}" = set; then : 7729if test "${emacs_cv_struct_exception+set}" = set; then
6425 $as_echo_n "(cached) " >&6 7730 $as_echo_n "(cached) " >&6
6426else 7731else
6427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7732 cat >conftest.$ac_ext <<_ACEOF
7733/* confdefs.h. */
7734_ACEOF
7735cat confdefs.h >>conftest.$ac_ext
7736cat >>conftest.$ac_ext <<_ACEOF
6428/* end confdefs.h. */ 7737/* end confdefs.h. */
6429#include <math.h> 7738#include <math.h>
6430int 7739int
@@ -6435,44 +7744,248 @@ static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6435 return 0; 7744 return 0;
6436} 7745}
6437_ACEOF 7746_ACEOF
6438if ac_fn_c_try_compile "$LINENO"; then : 7747rm -f conftest.$ac_objext
7748if { (ac_try="$ac_compile"
7749case "(($ac_try" in
7750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7751 *) ac_try_echo=$ac_try;;
7752esac
7753eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7754$as_echo "$ac_try_echo") >&5
7755 (eval "$ac_compile") 2>conftest.er1
7756 ac_status=$?
7757 grep -v '^ *+' conftest.er1 >conftest.err
7758 rm -f conftest.er1
7759 cat conftest.err >&5
7760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } && {
7762 test -z "$ac_c_werror_flag" ||
7763 test ! -s conftest.err
7764 } && test -s conftest.$ac_objext; then
6439 emacs_cv_struct_exception=yes 7765 emacs_cv_struct_exception=yes
6440else 7766else
6441 emacs_cv_struct_exception=no 7767 $as_echo "$as_me: failed program was:" >&5
7768sed 's/^/| /' conftest.$ac_ext >&5
7769
7770 emacs_cv_struct_exception=no
6442fi 7771fi
7772
6443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6444fi 7774fi
6445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5 7775{ $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6446$as_echo "$emacs_cv_struct_exception" >&6; } 7776$as_echo "$emacs_cv_struct_exception" >&6; }
6447HAVE_EXCEPTION=$emacs_cv_struct_exception 7777HAVE_EXCEPTION=$emacs_cv_struct_exception
6448if test $emacs_cv_struct_exception != yes; then 7778if test $emacs_cv_struct_exception != yes; then
6449 7779
6450$as_echo "#define NO_MATHERR 1" >>confdefs.h 7780cat >>confdefs.h <<\_ACEOF
7781#define NO_MATHERR 1
7782_ACEOF
6451 7783
6452fi 7784fi
6453 7785
7786
6454for ac_header in sys/socket.h 7787for ac_header in sys/socket.h
6455do : 7788do
6456 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 7789as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6457if test "x$ac_cv_header_sys_socket_h" = x""yes; then : 7790if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7791 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7792$as_echo_n "checking for $ac_header... " >&6; }
7793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7794 $as_echo_n "(cached) " >&6
7795fi
7796ac_res=`eval 'as_val=${'$as_ac_Header'}
7797 $as_echo "$as_val"'`
7798 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7799$as_echo "$ac_res" >&6; }
7800else
7801 # Is the header compilable?
7802{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7803$as_echo_n "checking $ac_header usability... " >&6; }
7804cat >conftest.$ac_ext <<_ACEOF
7805/* confdefs.h. */
7806_ACEOF
7807cat confdefs.h >>conftest.$ac_ext
7808cat >>conftest.$ac_ext <<_ACEOF
7809/* end confdefs.h. */
7810$ac_includes_default
7811#include <$ac_header>
7812_ACEOF
7813rm -f conftest.$ac_objext
7814if { (ac_try="$ac_compile"
7815case "(($ac_try" in
7816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7817 *) ac_try_echo=$ac_try;;
7818esac
7819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7820$as_echo "$ac_try_echo") >&5
7821 (eval "$ac_compile") 2>conftest.er1
7822 ac_status=$?
7823 grep -v '^ *+' conftest.er1 >conftest.err
7824 rm -f conftest.er1
7825 cat conftest.err >&5
7826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); } && {
7828 test -z "$ac_c_werror_flag" ||
7829 test ! -s conftest.err
7830 } && test -s conftest.$ac_objext; then
7831 ac_header_compiler=yes
7832else
7833 $as_echo "$as_me: failed program was:" >&5
7834sed 's/^/| /' conftest.$ac_ext >&5
7835
7836 ac_header_compiler=no
7837fi
7838
7839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7840{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7841$as_echo "$ac_header_compiler" >&6; }
7842
7843# Is the header present?
7844{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7845$as_echo_n "checking $ac_header presence... " >&6; }
7846cat >conftest.$ac_ext <<_ACEOF
7847/* confdefs.h. */
7848_ACEOF
7849cat confdefs.h >>conftest.$ac_ext
7850cat >>conftest.$ac_ext <<_ACEOF
7851/* end confdefs.h. */
7852#include <$ac_header>
7853_ACEOF
7854if { (ac_try="$ac_cpp conftest.$ac_ext"
7855case "(($ac_try" in
7856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857 *) ac_try_echo=$ac_try;;
7858esac
7859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7860$as_echo "$ac_try_echo") >&5
7861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7862 ac_status=$?
7863 grep -v '^ *+' conftest.er1 >conftest.err
7864 rm -f conftest.er1
7865 cat conftest.err >&5
7866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } >/dev/null && {
7868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7869 test ! -s conftest.err
7870 }; then
7871 ac_header_preproc=yes
7872else
7873 $as_echo "$as_me: failed program was:" >&5
7874sed 's/^/| /' conftest.$ac_ext >&5
7875
7876 ac_header_preproc=no
7877fi
7878
7879rm -f conftest.err conftest.$ac_ext
7880{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7881$as_echo "$ac_header_preproc" >&6; }
7882
7883# So? What about this header?
7884case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7885 yes:no: )
7886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7887$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7889$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7890 ac_header_preproc=yes
7891 ;;
7892 no:yes:* )
7893 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7894$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7896$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7897 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7898$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7900$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7902$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7904$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7905
7906 ;;
7907esac
7908{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7909$as_echo_n "checking for $ac_header... " >&6; }
7910if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7911 $as_echo_n "(cached) " >&6
7912else
7913 eval "$as_ac_Header=\$ac_header_preproc"
7914fi
7915ac_res=`eval 'as_val=${'$as_ac_Header'}
7916 $as_echo "$as_val"'`
7917 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7918$as_echo "$ac_res" >&6; }
7919
7920fi
7921if test `eval 'as_val=${'$as_ac_Header'}
7922 $as_echo "$as_val"'` = yes; then
6458 cat >>confdefs.h <<_ACEOF 7923 cat >>confdefs.h <<_ACEOF
6459#define HAVE_SYS_SOCKET_H 1 7924#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6460_ACEOF 7925_ACEOF
6461 7926
6462fi 7927fi
6463 7928
6464done 7929done
6465 7930
7931
6466for ac_header in net/if.h 7932for ac_header in net/if.h
6467do : 7933do
6468 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default 7934as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7935{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7936$as_echo_n "checking for $ac_header... " >&6; }
7937if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7938 $as_echo_n "(cached) " >&6
7939else
7940 cat >conftest.$ac_ext <<_ACEOF
7941/* confdefs.h. */
7942_ACEOF
7943cat confdefs.h >>conftest.$ac_ext
7944cat >>conftest.$ac_ext <<_ACEOF
7945/* end confdefs.h. */
7946$ac_includes_default
6469#if HAVE_SYS_SOCKET_H 7947#if HAVE_SYS_SOCKET_H
6470#include <sys/socket.h> 7948#include <sys/socket.h>
6471#endif 7949#endif
6472" 7950
6473if test "x$ac_cv_header_net_if_h" = x""yes; then : 7951#include <$ac_header>
7952_ACEOF
7953rm -f conftest.$ac_objext
7954if { (ac_try="$ac_compile"
7955case "(($ac_try" in
7956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7957 *) ac_try_echo=$ac_try;;
7958esac
7959eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7960$as_echo "$ac_try_echo") >&5
7961 (eval "$ac_compile") 2>conftest.er1
7962 ac_status=$?
7963 grep -v '^ *+' conftest.er1 >conftest.err
7964 rm -f conftest.er1
7965 cat conftest.err >&5
7966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); } && {
7968 test -z "$ac_c_werror_flag" ||
7969 test ! -s conftest.err
7970 } && test -s conftest.$ac_objext; then
7971 eval "$as_ac_Header=yes"
7972else
7973 $as_echo "$as_me: failed program was:" >&5
7974sed 's/^/| /' conftest.$ac_ext >&5
7975
7976 eval "$as_ac_Header=no"
7977fi
7978
7979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7980fi
7981ac_res=`eval 'as_val=${'$as_ac_Header'}
7982 $as_echo "$as_val"'`
7983 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7984$as_echo "$ac_res" >&6; }
7985if test `eval 'as_val=${'$as_ac_Header'}
7986 $as_echo "$as_val"'` = yes; then
6474 cat >>confdefs.h <<_ACEOF 7987 cat >>confdefs.h <<_ACEOF
6475#define HAVE_NET_IF_H 1 7988#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6476_ACEOF 7989_ACEOF
6477 7990
6478fi 7991fi
@@ -6480,12 +7993,16 @@ fi
6480done 7993done
6481 7994
6482 7995
6483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 7996{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6484$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 7997$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6485if test "${ac_cv_struct_tm+set}" = set; then : 7998if test "${ac_cv_struct_tm+set}" = set; then
6486 $as_echo_n "(cached) " >&6 7999 $as_echo_n "(cached) " >&6
6487else 8000else
6488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8001 cat >conftest.$ac_ext <<_ACEOF
8002/* confdefs.h. */
8003_ACEOF
8004cat confdefs.h >>conftest.$ac_ext
8005cat >>conftest.$ac_ext <<_ACEOF
6489/* end confdefs.h. */ 8006/* end confdefs.h. */
6490#include <sys/types.h> 8007#include <sys/types.h>
6491#include <time.h> 8008#include <time.h>
@@ -6500,26 +8017,146 @@ struct tm tm;
6500 return 0; 8017 return 0;
6501} 8018}
6502_ACEOF 8019_ACEOF
6503if ac_fn_c_try_compile "$LINENO"; then : 8020rm -f conftest.$ac_objext
8021if { (ac_try="$ac_compile"
8022case "(($ac_try" in
8023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024 *) ac_try_echo=$ac_try;;
8025esac
8026eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8027$as_echo "$ac_try_echo") >&5
8028 (eval "$ac_compile") 2>conftest.er1
8029 ac_status=$?
8030 grep -v '^ *+' conftest.er1 >conftest.err
8031 rm -f conftest.er1
8032 cat conftest.err >&5
8033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } && {
8035 test -z "$ac_c_werror_flag" ||
8036 test ! -s conftest.err
8037 } && test -s conftest.$ac_objext; then
6504 ac_cv_struct_tm=time.h 8038 ac_cv_struct_tm=time.h
6505else 8039else
6506 ac_cv_struct_tm=sys/time.h 8040 $as_echo "$as_me: failed program was:" >&5
8041sed 's/^/| /' conftest.$ac_ext >&5
8042
8043 ac_cv_struct_tm=sys/time.h
6507fi 8044fi
8045
6508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6509fi 8047fi
6510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 8048{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6511$as_echo "$ac_cv_struct_tm" >&6; } 8049$as_echo "$ac_cv_struct_tm" >&6; }
6512if test $ac_cv_struct_tm = sys/time.h; then 8050if test $ac_cv_struct_tm = sys/time.h; then
6513 8051
6514$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 8052cat >>confdefs.h <<\_ACEOF
8053#define TM_IN_SYS_TIME 1
8054_ACEOF
6515 8055
6516fi 8056fi
6517 8057
6518ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 8058{ $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8059$as_echo_n "checking for struct tm.tm_zone... " >&6; }
8060if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8061 $as_echo_n "(cached) " >&6
8062else
8063 cat >conftest.$ac_ext <<_ACEOF
8064/* confdefs.h. */
8065_ACEOF
8066cat confdefs.h >>conftest.$ac_ext
8067cat >>conftest.$ac_ext <<_ACEOF
8068/* end confdefs.h. */
8069#include <sys/types.h>
6519#include <$ac_cv_struct_tm> 8070#include <$ac_cv_struct_tm>
6520 8071
6521" 8072
6522if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then : 8073int
8074main ()
8075{
8076static struct tm ac_aggr;
8077if (ac_aggr.tm_zone)
8078return 0;
8079 ;
8080 return 0;
8081}
8082_ACEOF
8083rm -f conftest.$ac_objext
8084if { (ac_try="$ac_compile"
8085case "(($ac_try" in
8086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8087 *) ac_try_echo=$ac_try;;
8088esac
8089eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8090$as_echo "$ac_try_echo") >&5
8091 (eval "$ac_compile") 2>conftest.er1
8092 ac_status=$?
8093 grep -v '^ *+' conftest.er1 >conftest.err
8094 rm -f conftest.er1
8095 cat conftest.err >&5
8096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } && {
8098 test -z "$ac_c_werror_flag" ||
8099 test ! -s conftest.err
8100 } && test -s conftest.$ac_objext; then
8101 ac_cv_member_struct_tm_tm_zone=yes
8102else
8103 $as_echo "$as_me: failed program was:" >&5
8104sed 's/^/| /' conftest.$ac_ext >&5
8105
8106 cat >conftest.$ac_ext <<_ACEOF
8107/* confdefs.h. */
8108_ACEOF
8109cat confdefs.h >>conftest.$ac_ext
8110cat >>conftest.$ac_ext <<_ACEOF
8111/* end confdefs.h. */
8112#include <sys/types.h>
8113#include <$ac_cv_struct_tm>
8114
8115
8116int
8117main ()
8118{
8119static struct tm ac_aggr;
8120if (sizeof ac_aggr.tm_zone)
8121return 0;
8122 ;
8123 return 0;
8124}
8125_ACEOF
8126rm -f conftest.$ac_objext
8127if { (ac_try="$ac_compile"
8128case "(($ac_try" in
8129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8130 *) ac_try_echo=$ac_try;;
8131esac
8132eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8133$as_echo "$ac_try_echo") >&5
8134 (eval "$ac_compile") 2>conftest.er1
8135 ac_status=$?
8136 grep -v '^ *+' conftest.er1 >conftest.err
8137 rm -f conftest.er1
8138 cat conftest.err >&5
8139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } && {
8141 test -z "$ac_c_werror_flag" ||
8142 test ! -s conftest.err
8143 } && test -s conftest.$ac_objext; then
8144 ac_cv_member_struct_tm_tm_zone=yes
8145else
8146 $as_echo "$as_me: failed program was:" >&5
8147sed 's/^/| /' conftest.$ac_ext >&5
8148
8149 ac_cv_member_struct_tm_tm_zone=no
8150fi
8151
8152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8153fi
8154
8155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8156fi
8157{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8158$as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8159if test $ac_cv_member_struct_tm_tm_zone = yes; then
6523 8160
6524cat >>confdefs.h <<_ACEOF 8161cat >>confdefs.h <<_ACEOF
6525#define HAVE_STRUCT_TM_TM_ZONE 1 8162#define HAVE_STRUCT_TM_TM_ZONE 1
@@ -6530,27 +8167,91 @@ fi
6530 8167
6531if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 8168if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6532 8169
6533$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 8170cat >>confdefs.h <<\_ACEOF
8171#define HAVE_TM_ZONE 1
8172_ACEOF
6534 8173
6535else 8174else
6536 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 8175 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6537" 8176$as_echo_n "checking whether tzname is declared... " >&6; }
6538if test "x$ac_cv_have_decl_tzname" = x""yes; then : 8177if test "${ac_cv_have_decl_tzname+set}" = set; then
6539 ac_have_decl=1 8178 $as_echo_n "(cached) " >&6
6540else 8179else
6541 ac_have_decl=0 8180 cat >conftest.$ac_ext <<_ACEOF
8181/* confdefs.h. */
8182_ACEOF
8183cat confdefs.h >>conftest.$ac_ext
8184cat >>conftest.$ac_ext <<_ACEOF
8185/* end confdefs.h. */
8186#include <time.h>
8187
8188int
8189main ()
8190{
8191#ifndef tzname
8192 (void) tzname;
8193#endif
8194
8195 ;
8196 return 0;
8197}
8198_ACEOF
8199rm -f conftest.$ac_objext
8200if { (ac_try="$ac_compile"
8201case "(($ac_try" in
8202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8203 *) ac_try_echo=$ac_try;;
8204esac
8205eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8206$as_echo "$ac_try_echo") >&5
8207 (eval "$ac_compile") 2>conftest.er1
8208 ac_status=$?
8209 grep -v '^ *+' conftest.er1 >conftest.err
8210 rm -f conftest.er1
8211 cat conftest.err >&5
8212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); } && {
8214 test -z "$ac_c_werror_flag" ||
8215 test ! -s conftest.err
8216 } && test -s conftest.$ac_objext; then
8217 ac_cv_have_decl_tzname=yes
8218else
8219 $as_echo "$as_me: failed program was:" >&5
8220sed 's/^/| /' conftest.$ac_ext >&5
8221
8222 ac_cv_have_decl_tzname=no
6542fi 8223fi
6543 8224
8225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8226fi
8227{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8228$as_echo "$ac_cv_have_decl_tzname" >&6; }
8229if test $ac_cv_have_decl_tzname = yes; then
8230
6544cat >>confdefs.h <<_ACEOF 8231cat >>confdefs.h <<_ACEOF
6545#define HAVE_DECL_TZNAME $ac_have_decl 8232#define HAVE_DECL_TZNAME 1
8233_ACEOF
8234
8235
8236else
8237 cat >>confdefs.h <<_ACEOF
8238#define HAVE_DECL_TZNAME 0
6546_ACEOF 8239_ACEOF
6547 8240
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 8241
8242fi
8243
8244
8245 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
6549$as_echo_n "checking for tzname... " >&6; } 8246$as_echo_n "checking for tzname... " >&6; }
6550if test "${ac_cv_var_tzname+set}" = set; then : 8247if test "${ac_cv_var_tzname+set}" = set; then
6551 $as_echo_n "(cached) " >&6 8248 $as_echo_n "(cached) " >&6
6552else 8249else
6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8250 cat >conftest.$ac_ext <<_ACEOF
8251/* confdefs.h. */
8252_ACEOF
8253cat confdefs.h >>conftest.$ac_ext
8254cat >>conftest.$ac_ext <<_ACEOF
6554/* end confdefs.h. */ 8255/* end confdefs.h. */
6555#include <time.h> 8256#include <time.h>
6556#if !HAVE_DECL_TZNAME 8257#if !HAVE_DECL_TZNAME
@@ -6565,40 +8266,265 @@ return tzname[0][0];
6565 return 0; 8266 return 0;
6566} 8267}
6567_ACEOF 8268_ACEOF
6568if ac_fn_c_try_link "$LINENO"; then : 8269rm -f conftest.$ac_objext conftest$ac_exeext
8270if { (ac_try="$ac_link"
8271case "(($ac_try" in
8272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8273 *) ac_try_echo=$ac_try;;
8274esac
8275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8276$as_echo "$ac_try_echo") >&5
8277 (eval "$ac_link") 2>conftest.er1
8278 ac_status=$?
8279 grep -v '^ *+' conftest.er1 >conftest.err
8280 rm -f conftest.er1
8281 cat conftest.err >&5
8282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); } && {
8284 test -z "$ac_c_werror_flag" ||
8285 test ! -s conftest.err
8286 } && test -s conftest$ac_exeext && {
8287 test "$cross_compiling" = yes ||
8288 $as_test_x conftest$ac_exeext
8289 }; then
6569 ac_cv_var_tzname=yes 8290 ac_cv_var_tzname=yes
6570else 8291else
6571 ac_cv_var_tzname=no 8292 $as_echo "$as_me: failed program was:" >&5
8293sed 's/^/| /' conftest.$ac_ext >&5
8294
8295 ac_cv_var_tzname=no
6572fi 8296fi
6573rm -f core conftest.err conftest.$ac_objext \ 8297
6574 conftest$ac_exeext conftest.$ac_ext 8298rm -rf conftest.dSYM
8299rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8300 conftest$ac_exeext conftest.$ac_ext
6575fi 8301fi
6576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 8302{ $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6577$as_echo "$ac_cv_var_tzname" >&6; } 8303$as_echo "$ac_cv_var_tzname" >&6; }
6578 if test $ac_cv_var_tzname = yes; then 8304 if test $ac_cv_var_tzname = yes; then
6579 8305
6580$as_echo "#define HAVE_TZNAME 1" >>confdefs.h 8306cat >>confdefs.h <<\_ACEOF
8307#define HAVE_TZNAME 1
8308_ACEOF
6581 8309
6582 fi 8310 fi
6583fi 8311fi
6584 8312
6585ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h> 8313{ $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6586" 8314$as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
6587if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then : 8315if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8316 $as_echo_n "(cached) " >&6
8317else
8318 cat >conftest.$ac_ext <<_ACEOF
8319/* confdefs.h. */
8320_ACEOF
8321cat confdefs.h >>conftest.$ac_ext
8322cat >>conftest.$ac_ext <<_ACEOF
8323/* end confdefs.h. */
8324#include <time.h>
8325
8326int
8327main ()
8328{
8329static struct tm ac_aggr;
8330if (ac_aggr.tm_gmtoff)
8331return 0;
8332 ;
8333 return 0;
8334}
8335_ACEOF
8336rm -f conftest.$ac_objext
8337if { (ac_try="$ac_compile"
8338case "(($ac_try" in
8339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8340 *) ac_try_echo=$ac_try;;
8341esac
8342eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8343$as_echo "$ac_try_echo") >&5
8344 (eval "$ac_compile") 2>conftest.er1
8345 ac_status=$?
8346 grep -v '^ *+' conftest.er1 >conftest.err
8347 rm -f conftest.er1
8348 cat conftest.err >&5
8349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); } && {
8351 test -z "$ac_c_werror_flag" ||
8352 test ! -s conftest.err
8353 } && test -s conftest.$ac_objext; then
8354 ac_cv_member_struct_tm_tm_gmtoff=yes
8355else
8356 $as_echo "$as_me: failed program was:" >&5
8357sed 's/^/| /' conftest.$ac_ext >&5
6588 8358
6589$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h 8359 cat >conftest.$ac_ext <<_ACEOF
8360/* confdefs.h. */
8361_ACEOF
8362cat confdefs.h >>conftest.$ac_ext
8363cat >>conftest.$ac_ext <<_ACEOF
8364/* end confdefs.h. */
8365#include <time.h>
8366
8367int
8368main ()
8369{
8370static struct tm ac_aggr;
8371if (sizeof ac_aggr.tm_gmtoff)
8372return 0;
8373 ;
8374 return 0;
8375}
8376_ACEOF
8377rm -f conftest.$ac_objext
8378if { (ac_try="$ac_compile"
8379case "(($ac_try" in
8380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8381 *) ac_try_echo=$ac_try;;
8382esac
8383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8384$as_echo "$ac_try_echo") >&5
8385 (eval "$ac_compile") 2>conftest.er1
8386 ac_status=$?
8387 grep -v '^ *+' conftest.er1 >conftest.err
8388 rm -f conftest.er1
8389 cat conftest.err >&5
8390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); } && {
8392 test -z "$ac_c_werror_flag" ||
8393 test ! -s conftest.err
8394 } && test -s conftest.$ac_objext; then
8395 ac_cv_member_struct_tm_tm_gmtoff=yes
8396else
8397 $as_echo "$as_me: failed program was:" >&5
8398sed 's/^/| /' conftest.$ac_ext >&5
8399
8400 ac_cv_member_struct_tm_tm_gmtoff=no
8401fi
8402
8403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8404fi
8405
8406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8407fi
8408{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8409$as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8410if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8411
8412cat >>confdefs.h <<\_ACEOF
8413#define HAVE_TM_GMTOFF 1
8414_ACEOF
6590 8415
6591fi 8416fi
6592 8417
6593ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default 8418{ $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8419$as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8420if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8421 $as_echo_n "(cached) " >&6
8422else
8423 cat >conftest.$ac_ext <<_ACEOF
8424/* confdefs.h. */
8425_ACEOF
8426cat confdefs.h >>conftest.$ac_ext
8427cat >>conftest.$ac_ext <<_ACEOF
8428/* end confdefs.h. */
8429$ac_includes_default
8430#if HAVE_SYS_SOCKET_H
8431#include <sys/socket.h>
8432#endif
8433#if HAVE_NET_IF_H
8434#include <net/if.h>
8435#endif
8436
8437int
8438main ()
8439{
8440static struct ifreq ac_aggr;
8441if (ac_aggr.ifr_flags)
8442return 0;
8443 ;
8444 return 0;
8445}
8446_ACEOF
8447rm -f conftest.$ac_objext
8448if { (ac_try="$ac_compile"
8449case "(($ac_try" in
8450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451 *) ac_try_echo=$ac_try;;
8452esac
8453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8454$as_echo "$ac_try_echo") >&5
8455 (eval "$ac_compile") 2>conftest.er1
8456 ac_status=$?
8457 grep -v '^ *+' conftest.er1 >conftest.err
8458 rm -f conftest.er1
8459 cat conftest.err >&5
8460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } && {
8462 test -z "$ac_c_werror_flag" ||
8463 test ! -s conftest.err
8464 } && test -s conftest.$ac_objext; then
8465 ac_cv_member_struct_ifreq_ifr_flags=yes
8466else
8467 $as_echo "$as_me: failed program was:" >&5
8468sed 's/^/| /' conftest.$ac_ext >&5
8469
8470 cat >conftest.$ac_ext <<_ACEOF
8471/* confdefs.h. */
8472_ACEOF
8473cat confdefs.h >>conftest.$ac_ext
8474cat >>conftest.$ac_ext <<_ACEOF
8475/* end confdefs.h. */
8476$ac_includes_default
6594#if HAVE_SYS_SOCKET_H 8477#if HAVE_SYS_SOCKET_H
6595#include <sys/socket.h> 8478#include <sys/socket.h>
6596#endif 8479#endif
6597#if HAVE_NET_IF_H 8480#if HAVE_NET_IF_H
6598#include <net/if.h> 8481#include <net/if.h>
6599#endif 8482#endif
6600" 8483
6601if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then : 8484int
8485main ()
8486{
8487static struct ifreq ac_aggr;
8488if (sizeof ac_aggr.ifr_flags)
8489return 0;
8490 ;
8491 return 0;
8492}
8493_ACEOF
8494rm -f conftest.$ac_objext
8495if { (ac_try="$ac_compile"
8496case "(($ac_try" in
8497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8498 *) ac_try_echo=$ac_try;;
8499esac
8500eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8501$as_echo "$ac_try_echo") >&5
8502 (eval "$ac_compile") 2>conftest.er1
8503 ac_status=$?
8504 grep -v '^ *+' conftest.er1 >conftest.err
8505 rm -f conftest.er1
8506 cat conftest.err >&5
8507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); } && {
8509 test -z "$ac_c_werror_flag" ||
8510 test ! -s conftest.err
8511 } && test -s conftest.$ac_objext; then
8512 ac_cv_member_struct_ifreq_ifr_flags=yes
8513else
8514 $as_echo "$as_me: failed program was:" >&5
8515sed 's/^/| /' conftest.$ac_ext >&5
8516
8517 ac_cv_member_struct_ifreq_ifr_flags=no
8518fi
8519
8520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8521fi
8522
8523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8524fi
8525{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8526$as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8527if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
6602 8528
6603cat >>confdefs.h <<_ACEOF 8529cat >>confdefs.h <<_ACEOF
6604#define HAVE_STRUCT_IFREQ_IFR_FLAGS 1 8530#define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
@@ -6606,15 +8532,116 @@ _ACEOF
6606 8532
6607 8533
6608fi 8534fi
6609ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default 8535{ $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8536$as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8537if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8538 $as_echo_n "(cached) " >&6
8539else
8540 cat >conftest.$ac_ext <<_ACEOF
8541/* confdefs.h. */
8542_ACEOF
8543cat confdefs.h >>conftest.$ac_ext
8544cat >>conftest.$ac_ext <<_ACEOF
8545/* end confdefs.h. */
8546$ac_includes_default
8547#if HAVE_SYS_SOCKET_H
8548#include <sys/socket.h>
8549#endif
8550#if HAVE_NET_IF_H
8551#include <net/if.h>
8552#endif
8553
8554int
8555main ()
8556{
8557static struct ifreq ac_aggr;
8558if (ac_aggr.ifr_hwaddr)
8559return 0;
8560 ;
8561 return 0;
8562}
8563_ACEOF
8564rm -f conftest.$ac_objext
8565if { (ac_try="$ac_compile"
8566case "(($ac_try" in
8567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8569esac
8570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8571$as_echo "$ac_try_echo") >&5
8572 (eval "$ac_compile") 2>conftest.er1
8573 ac_status=$?
8574 grep -v '^ *+' conftest.er1 >conftest.err
8575 rm -f conftest.er1
8576 cat conftest.err >&5
8577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } && {
8579 test -z "$ac_c_werror_flag" ||
8580 test ! -s conftest.err
8581 } && test -s conftest.$ac_objext; then
8582 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8583else
8584 $as_echo "$as_me: failed program was:" >&5
8585sed 's/^/| /' conftest.$ac_ext >&5
8586
8587 cat >conftest.$ac_ext <<_ACEOF
8588/* confdefs.h. */
8589_ACEOF
8590cat confdefs.h >>conftest.$ac_ext
8591cat >>conftest.$ac_ext <<_ACEOF
8592/* end confdefs.h. */
8593$ac_includes_default
6610#if HAVE_SYS_SOCKET_H 8594#if HAVE_SYS_SOCKET_H
6611#include <sys/socket.h> 8595#include <sys/socket.h>
6612#endif 8596#endif
6613#if HAVE_NET_IF_H 8597#if HAVE_NET_IF_H
6614#include <net/if.h> 8598#include <net/if.h>
6615#endif 8599#endif
6616" 8600
6617if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then : 8601int
8602main ()
8603{
8604static struct ifreq ac_aggr;
8605if (sizeof ac_aggr.ifr_hwaddr)
8606return 0;
8607 ;
8608 return 0;
8609}
8610_ACEOF
8611rm -f conftest.$ac_objext
8612if { (ac_try="$ac_compile"
8613case "(($ac_try" in
8614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615 *) ac_try_echo=$ac_try;;
8616esac
8617eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8618$as_echo "$ac_try_echo") >&5
8619 (eval "$ac_compile") 2>conftest.er1
8620 ac_status=$?
8621 grep -v '^ *+' conftest.er1 >conftest.err
8622 rm -f conftest.er1
8623 cat conftest.err >&5
8624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); } && {
8626 test -z "$ac_c_werror_flag" ||
8627 test ! -s conftest.err
8628 } && test -s conftest.$ac_objext; then
8629 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8630else
8631 $as_echo "$as_me: failed program was:" >&5
8632sed 's/^/| /' conftest.$ac_ext >&5
8633
8634 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8635fi
8636
8637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8638fi
8639
8640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8641fi
8642{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8643$as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8644if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
6618 8645
6619cat >>confdefs.h <<_ACEOF 8646cat >>confdefs.h <<_ACEOF
6620#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 8647#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
@@ -6622,15 +8649,116 @@ _ACEOF
6622 8649
6623 8650
6624fi 8651fi
6625ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default 8652{ $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8653$as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8654if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8655 $as_echo_n "(cached) " >&6
8656else
8657 cat >conftest.$ac_ext <<_ACEOF
8658/* confdefs.h. */
8659_ACEOF
8660cat confdefs.h >>conftest.$ac_ext
8661cat >>conftest.$ac_ext <<_ACEOF
8662/* end confdefs.h. */
8663$ac_includes_default
6626#if HAVE_SYS_SOCKET_H 8664#if HAVE_SYS_SOCKET_H
6627#include <sys/socket.h> 8665#include <sys/socket.h>
6628#endif 8666#endif
6629#if HAVE_NET_IF_H 8667#if HAVE_NET_IF_H
6630#include <net/if.h> 8668#include <net/if.h>
6631#endif 8669#endif
6632" 8670
6633if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then : 8671int
8672main ()
8673{
8674static struct ifreq ac_aggr;
8675if (ac_aggr.ifr_netmask)
8676return 0;
8677 ;
8678 return 0;
8679}
8680_ACEOF
8681rm -f conftest.$ac_objext
8682if { (ac_try="$ac_compile"
8683case "(($ac_try" in
8684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8685 *) ac_try_echo=$ac_try;;
8686esac
8687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8688$as_echo "$ac_try_echo") >&5
8689 (eval "$ac_compile") 2>conftest.er1
8690 ac_status=$?
8691 grep -v '^ *+' conftest.er1 >conftest.err
8692 rm -f conftest.er1
8693 cat conftest.err >&5
8694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); } && {
8696 test -z "$ac_c_werror_flag" ||
8697 test ! -s conftest.err
8698 } && test -s conftest.$ac_objext; then
8699 ac_cv_member_struct_ifreq_ifr_netmask=yes
8700else
8701 $as_echo "$as_me: failed program was:" >&5
8702sed 's/^/| /' conftest.$ac_ext >&5
8703
8704 cat >conftest.$ac_ext <<_ACEOF
8705/* confdefs.h. */
8706_ACEOF
8707cat confdefs.h >>conftest.$ac_ext
8708cat >>conftest.$ac_ext <<_ACEOF
8709/* end confdefs.h. */
8710$ac_includes_default
8711#if HAVE_SYS_SOCKET_H
8712#include <sys/socket.h>
8713#endif
8714#if HAVE_NET_IF_H
8715#include <net/if.h>
8716#endif
8717
8718int
8719main ()
8720{
8721static struct ifreq ac_aggr;
8722if (sizeof ac_aggr.ifr_netmask)
8723return 0;
8724 ;
8725 return 0;
8726}
8727_ACEOF
8728rm -f conftest.$ac_objext
8729if { (ac_try="$ac_compile"
8730case "(($ac_try" in
8731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8732 *) ac_try_echo=$ac_try;;
8733esac
8734eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8735$as_echo "$ac_try_echo") >&5
8736 (eval "$ac_compile") 2>conftest.er1
8737 ac_status=$?
8738 grep -v '^ *+' conftest.er1 >conftest.err
8739 rm -f conftest.er1
8740 cat conftest.err >&5
8741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); } && {
8743 test -z "$ac_c_werror_flag" ||
8744 test ! -s conftest.err
8745 } && test -s conftest.$ac_objext; then
8746 ac_cv_member_struct_ifreq_ifr_netmask=yes
8747else
8748 $as_echo "$as_me: failed program was:" >&5
8749sed 's/^/| /' conftest.$ac_ext >&5
8750
8751 ac_cv_member_struct_ifreq_ifr_netmask=no
8752fi
8753
8754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8755fi
8756
8757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8758fi
8759{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8760$as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8761if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
6634 8762
6635cat >>confdefs.h <<_ACEOF 8763cat >>confdefs.h <<_ACEOF
6636#define HAVE_STRUCT_IFREQ_IFR_NETMASK 1 8764#define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
@@ -6638,15 +8766,116 @@ _ACEOF
6638 8766
6639 8767
6640fi 8768fi
6641ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default 8769{ $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8770$as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8771if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8772 $as_echo_n "(cached) " >&6
8773else
8774 cat >conftest.$ac_ext <<_ACEOF
8775/* confdefs.h. */
8776_ACEOF
8777cat confdefs.h >>conftest.$ac_ext
8778cat >>conftest.$ac_ext <<_ACEOF
8779/* end confdefs.h. */
8780$ac_includes_default
6642#if HAVE_SYS_SOCKET_H 8781#if HAVE_SYS_SOCKET_H
6643#include <sys/socket.h> 8782#include <sys/socket.h>
6644#endif 8783#endif
6645#if HAVE_NET_IF_H 8784#if HAVE_NET_IF_H
6646#include <net/if.h> 8785#include <net/if.h>
6647#endif 8786#endif
6648" 8787
6649if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then : 8788int
8789main ()
8790{
8791static struct ifreq ac_aggr;
8792if (ac_aggr.ifr_broadaddr)
8793return 0;
8794 ;
8795 return 0;
8796}
8797_ACEOF
8798rm -f conftest.$ac_objext
8799if { (ac_try="$ac_compile"
8800case "(($ac_try" in
8801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8802 *) ac_try_echo=$ac_try;;
8803esac
8804eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8805$as_echo "$ac_try_echo") >&5
8806 (eval "$ac_compile") 2>conftest.er1
8807 ac_status=$?
8808 grep -v '^ *+' conftest.er1 >conftest.err
8809 rm -f conftest.er1
8810 cat conftest.err >&5
8811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); } && {
8813 test -z "$ac_c_werror_flag" ||
8814 test ! -s conftest.err
8815 } && test -s conftest.$ac_objext; then
8816 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8817else
8818 $as_echo "$as_me: failed program was:" >&5
8819sed 's/^/| /' conftest.$ac_ext >&5
8820
8821 cat >conftest.$ac_ext <<_ACEOF
8822/* confdefs.h. */
8823_ACEOF
8824cat confdefs.h >>conftest.$ac_ext
8825cat >>conftest.$ac_ext <<_ACEOF
8826/* end confdefs.h. */
8827$ac_includes_default
8828#if HAVE_SYS_SOCKET_H
8829#include <sys/socket.h>
8830#endif
8831#if HAVE_NET_IF_H
8832#include <net/if.h>
8833#endif
8834
8835int
8836main ()
8837{
8838static struct ifreq ac_aggr;
8839if (sizeof ac_aggr.ifr_broadaddr)
8840return 0;
8841 ;
8842 return 0;
8843}
8844_ACEOF
8845rm -f conftest.$ac_objext
8846if { (ac_try="$ac_compile"
8847case "(($ac_try" in
8848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849 *) ac_try_echo=$ac_try;;
8850esac
8851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8852$as_echo "$ac_try_echo") >&5
8853 (eval "$ac_compile") 2>conftest.er1
8854 ac_status=$?
8855 grep -v '^ *+' conftest.er1 >conftest.err
8856 rm -f conftest.er1
8857 cat conftest.err >&5
8858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } && {
8860 test -z "$ac_c_werror_flag" ||
8861 test ! -s conftest.err
8862 } && test -s conftest.$ac_objext; then
8863 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8864else
8865 $as_echo "$as_me: failed program was:" >&5
8866sed 's/^/| /' conftest.$ac_ext >&5
8867
8868 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8869fi
8870
8871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8872fi
8873
8874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8875fi
8876{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8877$as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8878if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
6650 8879
6651cat >>confdefs.h <<_ACEOF 8880cat >>confdefs.h <<_ACEOF
6652#define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1 8881#define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
@@ -6654,15 +8883,116 @@ _ACEOF
6654 8883
6655 8884
6656fi 8885fi
6657ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default 8886{ $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8887$as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8888if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8889 $as_echo_n "(cached) " >&6
8890else
8891 cat >conftest.$ac_ext <<_ACEOF
8892/* confdefs.h. */
8893_ACEOF
8894cat confdefs.h >>conftest.$ac_ext
8895cat >>conftest.$ac_ext <<_ACEOF
8896/* end confdefs.h. */
8897$ac_includes_default
6658#if HAVE_SYS_SOCKET_H 8898#if HAVE_SYS_SOCKET_H
6659#include <sys/socket.h> 8899#include <sys/socket.h>
6660#endif 8900#endif
6661#if HAVE_NET_IF_H 8901#if HAVE_NET_IF_H
6662#include <net/if.h> 8902#include <net/if.h>
6663#endif 8903#endif
6664" 8904
6665if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then : 8905int
8906main ()
8907{
8908static struct ifreq ac_aggr;
8909if (ac_aggr.ifr_addr)
8910return 0;
8911 ;
8912 return 0;
8913}
8914_ACEOF
8915rm -f conftest.$ac_objext
8916if { (ac_try="$ac_compile"
8917case "(($ac_try" in
8918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8919 *) ac_try_echo=$ac_try;;
8920esac
8921eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8922$as_echo "$ac_try_echo") >&5
8923 (eval "$ac_compile") 2>conftest.er1
8924 ac_status=$?
8925 grep -v '^ *+' conftest.er1 >conftest.err
8926 rm -f conftest.er1
8927 cat conftest.err >&5
8928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); } && {
8930 test -z "$ac_c_werror_flag" ||
8931 test ! -s conftest.err
8932 } && test -s conftest.$ac_objext; then
8933 ac_cv_member_struct_ifreq_ifr_addr=yes
8934else
8935 $as_echo "$as_me: failed program was:" >&5
8936sed 's/^/| /' conftest.$ac_ext >&5
8937
8938 cat >conftest.$ac_ext <<_ACEOF
8939/* confdefs.h. */
8940_ACEOF
8941cat confdefs.h >>conftest.$ac_ext
8942cat >>conftest.$ac_ext <<_ACEOF
8943/* end confdefs.h. */
8944$ac_includes_default
8945#if HAVE_SYS_SOCKET_H
8946#include <sys/socket.h>
8947#endif
8948#if HAVE_NET_IF_H
8949#include <net/if.h>
8950#endif
8951
8952int
8953main ()
8954{
8955static struct ifreq ac_aggr;
8956if (sizeof ac_aggr.ifr_addr)
8957return 0;
8958 ;
8959 return 0;
8960}
8961_ACEOF
8962rm -f conftest.$ac_objext
8963if { (ac_try="$ac_compile"
8964case "(($ac_try" in
8965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8966 *) ac_try_echo=$ac_try;;
8967esac
8968eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8969$as_echo "$ac_try_echo") >&5
8970 (eval "$ac_compile") 2>conftest.er1
8971 ac_status=$?
8972 grep -v '^ *+' conftest.er1 >conftest.err
8973 rm -f conftest.er1
8974 cat conftest.err >&5
8975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } && {
8977 test -z "$ac_c_werror_flag" ||
8978 test ! -s conftest.err
8979 } && test -s conftest.$ac_objext; then
8980 ac_cv_member_struct_ifreq_ifr_addr=yes
8981else
8982 $as_echo "$as_me: failed program was:" >&5
8983sed 's/^/| /' conftest.$ac_ext >&5
8984
8985 ac_cv_member_struct_ifreq_ifr_addr=no
8986fi
8987
8988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8989fi
8990
8991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8992fi
8993{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8994$as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8995if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
6666 8996
6667cat >>confdefs.h <<_ACEOF 8997cat >>confdefs.h <<_ACEOF
6668#define HAVE_STRUCT_IFREQ_IFR_ADDR 1 8998#define HAVE_STRUCT_IFREQ_IFR_ADDR 1
@@ -6673,28 +9003,36 @@ fi
6673 9003
6674 9004
6675 9005
6676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5 9006{ $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
6677$as_echo_n "checking for function prototypes... " >&6; } 9007$as_echo_n "checking for function prototypes... " >&6; }
6678if test "$ac_cv_prog_cc_c89" != no; then 9008if test "$ac_cv_prog_cc_c89" != no; then
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9009 { $as_echo "$as_me:$LINENO: result: yes" >&5
6680$as_echo "yes" >&6; } 9010$as_echo "yes" >&6; }
6681 9011
6682$as_echo "#define PROTOTYPES 1" >>confdefs.h 9012cat >>confdefs.h <<\_ACEOF
9013#define PROTOTYPES 1
9014_ACEOF
6683 9015
6684 9016
6685$as_echo "#define __PROTOTYPES 1" >>confdefs.h 9017cat >>confdefs.h <<\_ACEOF
9018#define __PROTOTYPES 1
9019_ACEOF
6686 9020
6687else 9021else
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9022 { $as_echo "$as_me:$LINENO: result: no" >&5
6689$as_echo "no" >&6; } 9023$as_echo "no" >&6; }
6690fi 9024fi
6691 9025
6692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 9026{ $as_echo "$as_me:$LINENO: checking for working volatile" >&5
6693$as_echo_n "checking for working volatile... " >&6; } 9027$as_echo_n "checking for working volatile... " >&6; }
6694if test "${ac_cv_c_volatile+set}" = set; then : 9028if test "${ac_cv_c_volatile+set}" = set; then
6695 $as_echo_n "(cached) " >&6 9029 $as_echo_n "(cached) " >&6
6696else 9030else
6697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9031 cat >conftest.$ac_ext <<_ACEOF
9032/* confdefs.h. */
9033_ACEOF
9034cat confdefs.h >>conftest.$ac_ext
9035cat >>conftest.$ac_ext <<_ACEOF
6698/* end confdefs.h. */ 9036/* end confdefs.h. */
6699 9037
6700int 9038int
@@ -6708,27 +9046,54 @@ return !x && !y;
6708 return 0; 9046 return 0;
6709} 9047}
6710_ACEOF 9048_ACEOF
6711if ac_fn_c_try_compile "$LINENO"; then : 9049rm -f conftest.$ac_objext
9050if { (ac_try="$ac_compile"
9051case "(($ac_try" in
9052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9053 *) ac_try_echo=$ac_try;;
9054esac
9055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9056$as_echo "$ac_try_echo") >&5
9057 (eval "$ac_compile") 2>conftest.er1
9058 ac_status=$?
9059 grep -v '^ *+' conftest.er1 >conftest.err
9060 rm -f conftest.er1
9061 cat conftest.err >&5
9062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } && {
9064 test -z "$ac_c_werror_flag" ||
9065 test ! -s conftest.err
9066 } && test -s conftest.$ac_objext; then
6712 ac_cv_c_volatile=yes 9067 ac_cv_c_volatile=yes
6713else 9068else
6714 ac_cv_c_volatile=no 9069 $as_echo "$as_me: failed program was:" >&5
9070sed 's/^/| /' conftest.$ac_ext >&5
9071
9072 ac_cv_c_volatile=no
6715fi 9073fi
9074
6716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6717fi 9076fi
6718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 9077{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6719$as_echo "$ac_cv_c_volatile" >&6; } 9078$as_echo "$ac_cv_c_volatile" >&6; }
6720if test $ac_cv_c_volatile = no; then 9079if test $ac_cv_c_volatile = no; then
6721 9080
6722$as_echo "#define volatile /**/" >>confdefs.h 9081cat >>confdefs.h <<\_ACEOF
9082#define volatile /**/
9083_ACEOF
6723 9084
6724fi 9085fi
6725 9086
6726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 9087{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6727$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 9088$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6728if test "${ac_cv_c_const+set}" = set; then : 9089if test "${ac_cv_c_const+set}" = set; then
6729 $as_echo_n "(cached) " >&6 9090 $as_echo_n "(cached) " >&6
6730else 9091else
6731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9092 cat >conftest.$ac_ext <<_ACEOF
9093/* confdefs.h. */
9094_ACEOF
9095cat confdefs.h >>conftest.$ac_ext
9096cat >>conftest.$ac_ext <<_ACEOF
6732/* end confdefs.h. */ 9097/* end confdefs.h. */
6733 9098
6734int 9099int
@@ -6788,27 +9153,54 @@ main ()
6788 return 0; 9153 return 0;
6789} 9154}
6790_ACEOF 9155_ACEOF
6791if ac_fn_c_try_compile "$LINENO"; then : 9156rm -f conftest.$ac_objext
9157if { (ac_try="$ac_compile"
9158case "(($ac_try" in
9159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9160 *) ac_try_echo=$ac_try;;
9161esac
9162eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9163$as_echo "$ac_try_echo") >&5
9164 (eval "$ac_compile") 2>conftest.er1
9165 ac_status=$?
9166 grep -v '^ *+' conftest.er1 >conftest.err
9167 rm -f conftest.er1
9168 cat conftest.err >&5
9169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); } && {
9171 test -z "$ac_c_werror_flag" ||
9172 test ! -s conftest.err
9173 } && test -s conftest.$ac_objext; then
6792 ac_cv_c_const=yes 9174 ac_cv_c_const=yes
6793else 9175else
6794 ac_cv_c_const=no 9176 $as_echo "$as_me: failed program was:" >&5
9177sed 's/^/| /' conftest.$ac_ext >&5
9178
9179 ac_cv_c_const=no
6795fi 9180fi
9181
6796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797fi 9183fi
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 9184{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6799$as_echo "$ac_cv_c_const" >&6; } 9185$as_echo "$ac_cv_c_const" >&6; }
6800if test $ac_cv_c_const = no; then 9186if test $ac_cv_c_const = no; then
6801 9187
6802$as_echo "#define const /**/" >>confdefs.h 9188cat >>confdefs.h <<\_ACEOF
9189#define const /**/
9190_ACEOF
6803 9191
6804fi 9192fi
6805 9193
6806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5 9194{ $as_echo "$as_me:$LINENO: checking for void * support" >&5
6807$as_echo_n "checking for void * support... " >&6; } 9195$as_echo_n "checking for void * support... " >&6; }
6808if test "${emacs_cv_void_star+set}" = set; then : 9196if test "${emacs_cv_void_star+set}" = set; then
6809 $as_echo_n "(cached) " >&6 9197 $as_echo_n "(cached) " >&6
6810else 9198else
6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9199 cat >conftest.$ac_ext <<_ACEOF
9200/* confdefs.h. */
9201_ACEOF
9202cat confdefs.h >>conftest.$ac_ext
9203cat >>conftest.$ac_ext <<_ACEOF
6812/* end confdefs.h. */ 9204/* end confdefs.h. */
6813 9205
6814int 9206int
@@ -6819,31 +9211,57 @@ void * foo;
6819 return 0; 9211 return 0;
6820} 9212}
6821_ACEOF 9213_ACEOF
6822if ac_fn_c_try_compile "$LINENO"; then : 9214rm -f conftest.$ac_objext
9215if { (ac_try="$ac_compile"
9216case "(($ac_try" in
9217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9218 *) ac_try_echo=$ac_try;;
9219esac
9220eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9221$as_echo "$ac_try_echo") >&5
9222 (eval "$ac_compile") 2>conftest.er1
9223 ac_status=$?
9224 grep -v '^ *+' conftest.er1 >conftest.err
9225 rm -f conftest.er1
9226 cat conftest.err >&5
9227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); } && {
9229 test -z "$ac_c_werror_flag" ||
9230 test ! -s conftest.err
9231 } && test -s conftest.$ac_objext; then
6823 emacs_cv_void_star=yes 9232 emacs_cv_void_star=yes
6824else 9233else
6825 emacs_cv_void_star=no 9234 $as_echo "$as_me: failed program was:" >&5
9235sed 's/^/| /' conftest.$ac_ext >&5
9236
9237 emacs_cv_void_star=no
6826fi 9238fi
9239
6827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6828fi 9241fi
6829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5 9242{ $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6830$as_echo "$emacs_cv_void_star" >&6; } 9243$as_echo "$emacs_cv_void_star" >&6; }
6831if test $emacs_cv_void_star = yes; then 9244if test $emacs_cv_void_star = yes; then
6832 $as_echo "#define POINTER_TYPE void" >>confdefs.h 9245 cat >>confdefs.h <<\_ACEOF
9246#define POINTER_TYPE void
9247_ACEOF
6833 9248
6834else 9249else
6835 $as_echo "#define POINTER_TYPE char" >>confdefs.h 9250 cat >>confdefs.h <<\_ACEOF
9251#define POINTER_TYPE char
9252_ACEOF
6836 9253
6837fi 9254fi
6838 9255
6839 9256
6840 9257
6841 9258
6842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 9259
9260{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6843$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 9261$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6844set x ${MAKE-make} 9262set x ${MAKE-make}
6845ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 9263ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6846if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 9264if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6847 $as_echo_n "(cached) " >&6 9265 $as_echo_n "(cached) " >&6
6848else 9266else
6849 cat >conftest.make <<\_ACEOF 9267 cat >conftest.make <<\_ACEOF
@@ -6861,18 +9279,18 @@ esac
6861rm -f conftest.make 9279rm -f conftest.make
6862fi 9280fi
6863if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 9281if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9282 { $as_echo "$as_me:$LINENO: result: yes" >&5
6865$as_echo "yes" >&6; } 9283$as_echo "yes" >&6; }
6866 SET_MAKE= 9284 SET_MAKE=
6867else 9285else
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9286 { $as_echo "$as_me:$LINENO: result: no" >&5
6869$as_echo "no" >&6; } 9287$as_echo "no" >&6; }
6870 SET_MAKE="MAKE=${MAKE-make}" 9288 SET_MAKE="MAKE=${MAKE-make}"
6871fi 9289fi
6872 9290
6873 9291
6874if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then 9292if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5 9293 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
6876$as_echo_n "checking whether we are using GNU Make... " >&6; } 9294$as_echo_n "checking whether we are using GNU Make... " >&6; }
6877 HAVE_GNU_MAKE=no 9295 HAVE_GNU_MAKE=no
6878 testval=`make --version 2>/dev/null | grep 'GNU Make'` 9296 testval=`make --version 2>/dev/null | grep 'GNU Make'`
@@ -6881,14 +9299,18 @@ $as_echo_n "checking whether we are using GNU Make... " >&6; }
6881 else 9299 else
6882 ac_enable_autodepend=no 9300 ac_enable_autodepend=no
6883 fi 9301 fi
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5 9302 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
6885$as_echo "$HAVE_GNU_MAKE" >&6; } 9303$as_echo "$HAVE_GNU_MAKE" >&6; }
6886 if test $HAVE_GNU_MAKE = yes; then 9304 if test $HAVE_GNU_MAKE = yes; then
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5 9305 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
6888$as_echo_n "checking whether gcc understands -MMD -MF... " >&6; } 9306$as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
6889 SAVE_CFLAGS="$CFLAGS" 9307 SAVE_CFLAGS="$CFLAGS"
6890 CFLAGS="$CFLAGS -MMD -MF deps.d" 9308 CFLAGS="$CFLAGS -MMD -MF deps.d"
6891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9309 cat >conftest.$ac_ext <<_ACEOF
9310/* confdefs.h. */
9311_ACEOF
9312cat confdefs.h >>conftest.$ac_ext
9313cat >>conftest.$ac_ext <<_ACEOF
6892/* end confdefs.h. */ 9314/* end confdefs.h. */
6893 9315
6894int 9316int
@@ -6899,28 +9321,51 @@ main ()
6899 return 0; 9321 return 0;
6900} 9322}
6901_ACEOF 9323_ACEOF
6902if ac_fn_c_try_compile "$LINENO"; then : 9324rm -f conftest.$ac_objext
6903 9325if { (ac_try="$ac_compile"
9326case "(($ac_try" in
9327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9328 *) ac_try_echo=$ac_try;;
9329esac
9330eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9331$as_echo "$ac_try_echo") >&5
9332 (eval "$ac_compile") 2>conftest.er1
9333 ac_status=$?
9334 grep -v '^ *+' conftest.er1 >conftest.err
9335 rm -f conftest.er1
9336 cat conftest.err >&5
9337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); } && {
9339 test -z "$ac_c_werror_flag" ||
9340 test ! -s conftest.err
9341 } && test -s conftest.$ac_objext; then
9342 :
6904else 9343else
6905 ac_enable_autodepend=no 9344 $as_echo "$as_me: failed program was:" >&5
9345sed 's/^/| /' conftest.$ac_ext >&5
9346
9347 ac_enable_autodepend=no
6906fi 9348fi
9349
6907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6908 CFLAGS="$SAVE_CFLAGS" 9351 CFLAGS="$SAVE_CFLAGS"
6909 test -f deps.d || ac_enable_autodepend=no 9352 test -f deps.d || ac_enable_autodepend=no
6910 rm -rf deps.d 9353 rm -rf deps.d
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5 9354 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
6912$as_echo "$ac_enable_autodepend" >&6; } 9355$as_echo "$ac_enable_autodepend" >&6; }
6913 fi 9356 fi
6914 if test $ac_enable_autodepend = yes; then 9357 if test $ac_enable_autodepend = yes; then
6915 9358
6916$as_echo "#define AUTO_DEPEND 1" >>confdefs.h 9359cat >>confdefs.h <<\_ACEOF
9360#define AUTO_DEPEND 1
9361_ACEOF
6917 9362
6918 fi 9363 fi
6919fi 9364fi
6920 9365
6921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5 9366{ $as_echo "$as_me:$LINENO: checking for long file names" >&5
6922$as_echo_n "checking for long file names... " >&6; } 9367$as_echo_n "checking for long file names... " >&6; }
6923if test "${ac_cv_sys_long_file_names+set}" = set; then : 9368if test "${ac_cv_sys_long_file_names+set}" = set; then
6924 $as_echo_n "(cached) " >&6 9369 $as_echo_n "(cached) " >&6
6925else 9370else
6926 ac_cv_sys_long_file_names=yes 9371 ac_cv_sys_long_file_names=yes
@@ -6950,23 +9395,25 @@ for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib
6950 test $ac_cv_sys_long_file_names = no && break 9395 test $ac_cv_sys_long_file_names = no && break
6951done 9396done
6952fi 9397fi
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5 9398{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6954$as_echo "$ac_cv_sys_long_file_names" >&6; } 9399$as_echo "$ac_cv_sys_long_file_names" >&6; }
6955if test $ac_cv_sys_long_file_names = yes; then 9400if test $ac_cv_sys_long_file_names = yes; then
6956 9401
6957$as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h 9402cat >>confdefs.h <<\_ACEOF
9403#define HAVE_LONG_FILE_NAMES 1
9404_ACEOF
6958 9405
6959fi 9406fi
6960 9407
6961 9408
6962#### Choose a window system. 9409#### Choose a window system.
6963 9410
6964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 9411{ $as_echo "$as_me:$LINENO: checking for X" >&5
6965$as_echo_n "checking for X... " >&6; } 9412$as_echo_n "checking for X... " >&6; }
6966 9413
6967 9414
6968# Check whether --with-x was given. 9415# Check whether --with-x was given.
6969if test "${with_x+set}" = set; then : 9416if test "${with_x+set}" = set; then
6970 withval=$with_x; 9417 withval=$with_x;
6971fi 9418fi
6972 9419
@@ -6976,8 +9423,10 @@ if test "x$with_x" = xno; then
6976 have_x=disabled 9423 have_x=disabled
6977else 9424else
6978 case $x_includes,$x_libraries in #( 9425 case $x_includes,$x_libraries in #(
6979 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #( 9426 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
6980 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : 9427$as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9428 { (exit 1); exit 1; }; };; #(
9429 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6981 $as_echo_n "(cached) " >&6 9430 $as_echo_n "(cached) " >&6
6982else 9431else
6983 # One or both of the vars are not set, and there is no cached value. 9432 # One or both of the vars are not set, and there is no cached value.
@@ -7013,7 +9462,7 @@ _ACEOF
7013 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 9462 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7014 esac 9463 esac
7015 case $ac_im_usrlibdir in 9464 case $ac_im_usrlibdir in
7016 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 9465 /usr/lib | /lib) ;;
7017 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 9466 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7018 esac 9467 esac
7019 fi 9468 fi
@@ -7025,25 +9474,21 @@ fi
7025# Check X11 before X11Rn because it is often a symlink to the current release. 9474# Check X11 before X11Rn because it is often a symlink to the current release.
7026ac_x_header_dirs=' 9475ac_x_header_dirs='
7027/usr/X11/include 9476/usr/X11/include
7028/usr/X11R7/include
7029/usr/X11R6/include 9477/usr/X11R6/include
7030/usr/X11R5/include 9478/usr/X11R5/include
7031/usr/X11R4/include 9479/usr/X11R4/include
7032 9480
7033/usr/include/X11 9481/usr/include/X11
7034/usr/include/X11R7
7035/usr/include/X11R6 9482/usr/include/X11R6
7036/usr/include/X11R5 9483/usr/include/X11R5
7037/usr/include/X11R4 9484/usr/include/X11R4
7038 9485
7039/usr/local/X11/include 9486/usr/local/X11/include
7040/usr/local/X11R7/include
7041/usr/local/X11R6/include 9487/usr/local/X11R6/include
7042/usr/local/X11R5/include 9488/usr/local/X11R5/include
7043/usr/local/X11R4/include 9489/usr/local/X11R4/include
7044 9490
7045/usr/local/include/X11 9491/usr/local/include/X11
7046/usr/local/include/X11R7
7047/usr/local/include/X11R6 9492/usr/local/include/X11R6
7048/usr/local/include/X11R5 9493/usr/local/include/X11R5
7049/usr/local/include/X11R4 9494/usr/local/include/X11R4
@@ -7065,14 +9510,37 @@ ac_x_header_dirs='
7065if test "$ac_x_includes" = no; then 9510if test "$ac_x_includes" = no; then
7066 # Guess where to find include files, by looking for Xlib.h. 9511 # Guess where to find include files, by looking for Xlib.h.
7067 # First, try using that file with no special directory specified. 9512 # First, try using that file with no special directory specified.
7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9513 cat >conftest.$ac_ext <<_ACEOF
9514/* confdefs.h. */
9515_ACEOF
9516cat confdefs.h >>conftest.$ac_ext
9517cat >>conftest.$ac_ext <<_ACEOF
7069/* end confdefs.h. */ 9518/* end confdefs.h. */
7070#include <X11/Xlib.h> 9519#include <X11/Xlib.h>
7071_ACEOF 9520_ACEOF
7072if ac_fn_c_try_cpp "$LINENO"; then : 9521if { (ac_try="$ac_cpp conftest.$ac_ext"
9522case "(($ac_try" in
9523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9524 *) ac_try_echo=$ac_try;;
9525esac
9526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9527$as_echo "$ac_try_echo") >&5
9528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9529 ac_status=$?
9530 grep -v '^ *+' conftest.er1 >conftest.err
9531 rm -f conftest.er1
9532 cat conftest.err >&5
9533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); } >/dev/null && {
9535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9536 test ! -s conftest.err
9537 }; then
7073 # We can compile using X headers with no special include directory. 9538 # We can compile using X headers with no special include directory.
7074ac_x_includes= 9539ac_x_includes=
7075else 9540else
9541 $as_echo "$as_me: failed program was:" >&5
9542sed 's/^/| /' conftest.$ac_ext >&5
9543
7076 for ac_dir in $ac_x_header_dirs; do 9544 for ac_dir in $ac_x_header_dirs; do
7077 if test -r "$ac_dir/X11/Xlib.h"; then 9545 if test -r "$ac_dir/X11/Xlib.h"; then
7078 ac_x_includes=$ac_dir 9546 ac_x_includes=$ac_dir
@@ -7080,6 +9548,7 @@ else
7080 fi 9548 fi
7081done 9549done
7082fi 9550fi
9551
7083rm -f conftest.err conftest.$ac_ext 9552rm -f conftest.err conftest.$ac_ext
7084fi # $ac_x_includes = no 9553fi # $ac_x_includes = no
7085 9554
@@ -7089,7 +9558,11 @@ if test "$ac_x_libraries" = no; then
7089 # Don't add to $LIBS permanently. 9558 # Don't add to $LIBS permanently.
7090 ac_save_LIBS=$LIBS 9559 ac_save_LIBS=$LIBS
7091 LIBS="-lX11 $LIBS" 9560 LIBS="-lX11 $LIBS"
7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9561 cat >conftest.$ac_ext <<_ACEOF
9562/* confdefs.h. */
9563_ACEOF
9564cat confdefs.h >>conftest.$ac_ext
9565cat >>conftest.$ac_ext <<_ACEOF
7093/* end confdefs.h. */ 9566/* end confdefs.h. */
7094#include <X11/Xlib.h> 9567#include <X11/Xlib.h>
7095int 9568int
@@ -7100,12 +9573,35 @@ XrmInitialize ()
7100 return 0; 9573 return 0;
7101} 9574}
7102_ACEOF 9575_ACEOF
7103if ac_fn_c_try_link "$LINENO"; then : 9576rm -f conftest.$ac_objext conftest$ac_exeext
9577if { (ac_try="$ac_link"
9578case "(($ac_try" in
9579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9580 *) ac_try_echo=$ac_try;;
9581esac
9582eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9583$as_echo "$ac_try_echo") >&5
9584 (eval "$ac_link") 2>conftest.er1
9585 ac_status=$?
9586 grep -v '^ *+' conftest.er1 >conftest.err
9587 rm -f conftest.er1
9588 cat conftest.err >&5
9589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); } && {
9591 test -z "$ac_c_werror_flag" ||
9592 test ! -s conftest.err
9593 } && test -s conftest$ac_exeext && {
9594 test "$cross_compiling" = yes ||
9595 $as_test_x conftest$ac_exeext
9596 }; then
7104 LIBS=$ac_save_LIBS 9597 LIBS=$ac_save_LIBS
7105# We can link X programs with no special library path. 9598# We can link X programs with no special library path.
7106ac_x_libraries= 9599ac_x_libraries=
7107else 9600else
7108 LIBS=$ac_save_LIBS 9601 $as_echo "$as_me: failed program was:" >&5
9602sed 's/^/| /' conftest.$ac_ext >&5
9603
9604 LIBS=$ac_save_LIBS
7109for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 9605for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7110do 9606do
7111 # Don't even attempt the hair of trying to link an X program! 9607 # Don't even attempt the hair of trying to link an X program!
@@ -7117,8 +9613,10 @@ do
7117 done 9613 done
7118done 9614done
7119fi 9615fi
7120rm -f core conftest.err conftest.$ac_objext \ 9616
7121 conftest$ac_exeext conftest.$ac_ext 9617rm -rf conftest.dSYM
9618rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9619 conftest$ac_exeext conftest.$ac_ext
7122fi # $ac_x_libraries = no 9620fi # $ac_x_libraries = no
7123 9621
7124case $ac_x_includes,$ac_x_libraries in #( 9622case $ac_x_includes,$ac_x_libraries in #(
@@ -7139,7 +9637,7 @@ fi
7139fi # $with_x != no 9637fi # $with_x != no
7140 9638
7141if test "$have_x" != yes; then 9639if test "$have_x" != yes; then
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 9640 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
7143$as_echo "$have_x" >&6; } 9641$as_echo "$have_x" >&6; }
7144 no_x=yes 9642 no_x=yes
7145else 9643else
@@ -7150,7 +9648,7 @@ else
7150 ac_cv_have_x="have_x=yes\ 9648 ac_cv_have_x="have_x=yes\
7151 ac_x_includes='$x_includes'\ 9649 ac_x_includes='$x_includes'\
7152 ac_x_libraries='$x_libraries'" 9650 ac_x_libraries='$x_libraries'"
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 9651 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7154$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 9652$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7155fi 9653fi
7156 9654
@@ -7246,17 +9744,150 @@ if test "${with_ns}" != no; then
7246 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" 9744 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7247 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}" 9745 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
7248 fi 9746 fi
7249 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default" 9747 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
7250if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then : 9748 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9749$as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9750if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9751 $as_echo_n "(cached) " >&6
9752fi
9753{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9754$as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9755else
9756 # Is the header compilable?
9757{ $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9758$as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9759cat >conftest.$ac_ext <<_ACEOF
9760/* confdefs.h. */
9761_ACEOF
9762cat confdefs.h >>conftest.$ac_ext
9763cat >>conftest.$ac_ext <<_ACEOF
9764/* end confdefs.h. */
9765$ac_includes_default
9766#include <AppKit/AppKit.h>
9767_ACEOF
9768rm -f conftest.$ac_objext
9769if { (ac_try="$ac_compile"
9770case "(($ac_try" in
9771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9772 *) ac_try_echo=$ac_try;;
9773esac
9774eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9775$as_echo "$ac_try_echo") >&5
9776 (eval "$ac_compile") 2>conftest.er1
9777 ac_status=$?
9778 grep -v '^ *+' conftest.er1 >conftest.err
9779 rm -f conftest.er1
9780 cat conftest.err >&5
9781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); } && {
9783 test -z "$ac_c_werror_flag" ||
9784 test ! -s conftest.err
9785 } && test -s conftest.$ac_objext; then
9786 ac_header_compiler=yes
9787else
9788 $as_echo "$as_me: failed program was:" >&5
9789sed 's/^/| /' conftest.$ac_ext >&5
9790
9791 ac_header_compiler=no
9792fi
9793
9794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9795{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9796$as_echo "$ac_header_compiler" >&6; }
9797
9798# Is the header present?
9799{ $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9800$as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9801cat >conftest.$ac_ext <<_ACEOF
9802/* confdefs.h. */
9803_ACEOF
9804cat confdefs.h >>conftest.$ac_ext
9805cat >>conftest.$ac_ext <<_ACEOF
9806/* end confdefs.h. */
9807#include <AppKit/AppKit.h>
9808_ACEOF
9809if { (ac_try="$ac_cpp conftest.$ac_ext"
9810case "(($ac_try" in
9811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812 *) ac_try_echo=$ac_try;;
9813esac
9814eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9815$as_echo "$ac_try_echo") >&5
9816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9817 ac_status=$?
9818 grep -v '^ *+' conftest.er1 >conftest.err
9819 rm -f conftest.er1
9820 cat conftest.err >&5
9821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } >/dev/null && {
9823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9824 test ! -s conftest.err
9825 }; then
9826 ac_header_preproc=yes
9827else
9828 $as_echo "$as_me: failed program was:" >&5
9829sed 's/^/| /' conftest.$ac_ext >&5
9830
9831 ac_header_preproc=no
9832fi
9833
9834rm -f conftest.err conftest.$ac_ext
9835{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9836$as_echo "$ac_header_preproc" >&6; }
9837
9838# So? What about this header?
9839case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9840 yes:no: )
9841 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9842$as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9843 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9844$as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9845 ac_header_preproc=yes
9846 ;;
9847 no:yes:* )
9848 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9849$as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9850 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9851$as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9852 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9853$as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9854 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9855$as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9856 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9857$as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9858 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9859$as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9860
9861 ;;
9862esac
9863{ $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9864$as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9865if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9866 $as_echo_n "(cached) " >&6
9867else
9868 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9869fi
9870{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9871$as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9872
9873fi
9874if test $ac_cv_header_AppKit_AppKit_h = yes; then
7251 HAVE_NS=yes 9875 HAVE_NS=yes
7252else 9876else
7253 as_fn_error "\`--with-ns' was specified, but the include 9877 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
7254 files are missing or cannot be compiled." "$LINENO" 5 9878 files are missing or cannot be compiled." >&5
9879$as_echo "$as_me: error: \`--with-ns' was specified, but the include
9880 files are missing or cannot be compiled." >&2;}
9881 { (exit 1); exit 1; }; }
7255fi 9882fi
7256 9883
7257 9884
7258 NS_HAVE_NSINTEGER=yes 9885 NS_HAVE_NSINTEGER=yes
7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9886 cat >conftest.$ac_ext <<_ACEOF
9887/* confdefs.h. */
9888_ACEOF
9889cat confdefs.h >>conftest.$ac_ext
9890cat >>conftest.$ac_ext <<_ACEOF
7260/* end confdefs.h. */ 9891/* end confdefs.h. */
7261#include <Foundation/NSObjCRuntime.h> 9892#include <Foundation/NSObjCRuntime.h>
7262int 9893int
@@ -7267,11 +9898,32 @@ NSInteger i;
7267 return 0; 9898 return 0;
7268} 9899}
7269_ACEOF 9900_ACEOF
7270if ac_fn_c_try_compile "$LINENO"; then : 9901rm -f conftest.$ac_objext
9902if { (ac_try="$ac_compile"
9903case "(($ac_try" in
9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905 *) ac_try_echo=$ac_try;;
9906esac
9907eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9908$as_echo "$ac_try_echo") >&5
9909 (eval "$ac_compile") 2>conftest.er1
9910 ac_status=$?
9911 grep -v '^ *+' conftest.er1 >conftest.err
9912 rm -f conftest.er1
9913 cat conftest.err >&5
9914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); } && {
9916 test -z "$ac_c_werror_flag" ||
9917 test ! -s conftest.err
9918 } && test -s conftest.$ac_objext; then
7271 ns_have_nsinteger=yes 9919 ns_have_nsinteger=yes
7272else 9920else
7273 ns_have_nsinteger=no 9921 $as_echo "$as_me: failed program was:" >&5
9922sed 's/^/| /' conftest.$ac_ext >&5
9923
9924 ns_have_nsinteger=no
7274fi 9925fi
9926
7275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7276 if test $ns_have_nsinteger = no; then 9928 if test $ns_have_nsinteger = no; then
7277 NS_HAVE_NSINTEGER=no 9929 NS_HAVE_NSINTEGER=no
@@ -7313,9 +9965,9 @@ esac
7313if test "$window_system" = none && test "X$with_x" != "Xno"; then 9965if test "$window_system" = none && test "X$with_x" != "Xno"; then
7314 # Extract the first word of "X", so it can be a program name with args. 9966 # Extract the first word of "X", so it can be a program name with args.
7315set dummy X; ac_word=$2 9967set dummy X; ac_word=$2
7316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9968{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7317$as_echo_n "checking for $ac_word... " >&6; } 9969$as_echo_n "checking for $ac_word... " >&6; }
7318if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then : 9970if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
7319 $as_echo_n "(cached) " >&6 9971 $as_echo_n "(cached) " >&6
7320else 9972else
7321 if test -n "$HAVE_XSERVER"; then 9973 if test -n "$HAVE_XSERVER"; then
@@ -7326,14 +9978,14 @@ for as_dir in $PATH
7326do 9978do
7327 IFS=$as_save_IFS 9979 IFS=$as_save_IFS
7328 test -z "$as_dir" && as_dir=. 9980 test -z "$as_dir" && as_dir=.
7329 for ac_exec_ext in '' $ac_executable_extensions; do 9981 for ac_exec_ext in '' $ac_executable_extensions; do
7330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7331 ac_cv_prog_HAVE_XSERVER="true" 9983 ac_cv_prog_HAVE_XSERVER="true"
7332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9984 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7333 break 2 9985 break 2
7334 fi 9986 fi
7335done 9987done
7336 done 9988done
7337IFS=$as_save_IFS 9989IFS=$as_save_IFS
7338 9990
7339 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false" 9991 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
@@ -7341,10 +9993,10 @@ fi
7341fi 9993fi
7342HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER 9994HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7343if test -n "$HAVE_XSERVER"; then 9995if test -n "$HAVE_XSERVER"; then
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5 9996 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
7345$as_echo "$HAVE_XSERVER" >&6; } 9997$as_echo "$HAVE_XSERVER" >&6; }
7346else 9998else
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9999 { $as_echo "$as_me:$LINENO: result: no" >&5
7348$as_echo "no" >&6; } 10000$as_echo "no" >&6; }
7349fi 10001fi
7350 10002
@@ -7352,14 +10004,23 @@ fi
7352 if test "$HAVE_XSERVER" = true || 10004 if test "$HAVE_XSERVER" = true ||
7353 test -n "$DISPLAY" || 10005 test -n "$DISPLAY" ||
7354 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then 10006 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7355 as_fn_error "You seem to be running X, but no X development libraries 10007 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
10008were found. You should install the relevant development files for X
10009and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10010sure you have development files for image handling, i.e.
10011tiff, gif, jpeg, png and xpm.
10012If you are sure you want Emacs compiled without X window support, pass
10013 --without-x
10014to configure." >&5
10015$as_echo "$as_me: error: You seem to be running X, but no X development libraries
7356were found. You should install the relevant development files for X 10016were found. You should install the relevant development files for X
7357and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make 10017and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7358sure you have development files for image handling, i.e. 10018sure you have development files for image handling, i.e.
7359tiff, gif, jpeg, png and xpm. 10019tiff, gif, jpeg, png and xpm.
7360If you are sure you want Emacs compiled without X window support, pass 10020If you are sure you want Emacs compiled without X window support, pass
7361 --without-x 10021 --without-x
7362to configure." "$LINENO" 5 10022to configure." >&2;}
10023 { (exit 1); exit 1; }; }
7363 fi 10024 fi
7364fi 10025fi
7365 10026
@@ -7373,26 +10034,198 @@ esac
7373# Assume not, until told otherwise. 10034# Assume not, until told otherwise.
7374GNU_MALLOC=yes 10035GNU_MALLOC=yes
7375doug_lea_malloc=yes 10036doug_lea_malloc=yes
7376ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state" 10037{ $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
7377if test "x$ac_cv_func_malloc_get_state" = x""yes; then : 10038$as_echo_n "checking for malloc_get_state... " >&6; }
10039if test "${ac_cv_func_malloc_get_state+set}" = set; then
10040 $as_echo_n "(cached) " >&6
10041else
10042 cat >conftest.$ac_ext <<_ACEOF
10043/* confdefs.h. */
10044_ACEOF
10045cat confdefs.h >>conftest.$ac_ext
10046cat >>conftest.$ac_ext <<_ACEOF
10047/* end confdefs.h. */
10048/* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10050#define malloc_get_state innocuous_malloc_get_state
7378 10051
10052/* System header to define __stub macros and hopefully few prototypes,
10053 which can conflict with char malloc_get_state (); below.
10054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10055 <limits.h> exists even on freestanding compilers. */
10056
10057#ifdef __STDC__
10058# include <limits.h>
10059#else
10060# include <assert.h>
10061#endif
10062
10063#undef malloc_get_state
10064
10065/* Override any GCC internal prototype to avoid an error.
10066 Use char because int might match the return type of a GCC
10067 builtin and then its argument prototype would still apply. */
10068#ifdef __cplusplus
10069extern "C"
10070#endif
10071char malloc_get_state ();
10072/* The GNU C library defines this for functions which it implements
10073 to always fail with ENOSYS. Some functions are actually named
10074 something starting with __ and the normal name is an alias. */
10075#if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10076choke me
10077#endif
10078
10079int
10080main ()
10081{
10082return malloc_get_state ();
10083 ;
10084 return 0;
10085}
10086_ACEOF
10087rm -f conftest.$ac_objext conftest$ac_exeext
10088if { (ac_try="$ac_link"
10089case "(($ac_try" in
10090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10091 *) ac_try_echo=$ac_try;;
10092esac
10093eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10094$as_echo "$ac_try_echo") >&5
10095 (eval "$ac_link") 2>conftest.er1
10096 ac_status=$?
10097 grep -v '^ *+' conftest.er1 >conftest.err
10098 rm -f conftest.er1
10099 cat conftest.err >&5
10100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); } && {
10102 test -z "$ac_c_werror_flag" ||
10103 test ! -s conftest.err
10104 } && test -s conftest$ac_exeext && {
10105 test "$cross_compiling" = yes ||
10106 $as_test_x conftest$ac_exeext
10107 }; then
10108 ac_cv_func_malloc_get_state=yes
10109else
10110 $as_echo "$as_me: failed program was:" >&5
10111sed 's/^/| /' conftest.$ac_ext >&5
10112
10113 ac_cv_func_malloc_get_state=no
10114fi
10115
10116rm -rf conftest.dSYM
10117rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10118 conftest$ac_exeext conftest.$ac_ext
10119fi
10120{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10121$as_echo "$ac_cv_func_malloc_get_state" >&6; }
10122if test $ac_cv_func_malloc_get_state = yes; then
10123 :
7379else 10124else
7380 doug_lea_malloc=no 10125 doug_lea_malloc=no
7381fi 10126fi
7382 10127
7383ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state" 10128{ $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
7384if test "x$ac_cv_func_malloc_set_state" = x""yes; then : 10129$as_echo_n "checking for malloc_set_state... " >&6; }
10130if test "${ac_cv_func_malloc_set_state+set}" = set; then
10131 $as_echo_n "(cached) " >&6
10132else
10133 cat >conftest.$ac_ext <<_ACEOF
10134/* confdefs.h. */
10135_ACEOF
10136cat confdefs.h >>conftest.$ac_ext
10137cat >>conftest.$ac_ext <<_ACEOF
10138/* end confdefs.h. */
10139/* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10141#define malloc_set_state innocuous_malloc_set_state
10142
10143/* System header to define __stub macros and hopefully few prototypes,
10144 which can conflict with char malloc_set_state (); below.
10145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10146 <limits.h> exists even on freestanding compilers. */
10147
10148#ifdef __STDC__
10149# include <limits.h>
10150#else
10151# include <assert.h>
10152#endif
10153
10154#undef malloc_set_state
10155
10156/* Override any GCC internal prototype to avoid an error.
10157 Use char because int might match the return type of a GCC
10158 builtin and then its argument prototype would still apply. */
10159#ifdef __cplusplus
10160extern "C"
10161#endif
10162char malloc_set_state ();
10163/* The GNU C library defines this for functions which it implements
10164 to always fail with ENOSYS. Some functions are actually named
10165 something starting with __ and the normal name is an alias. */
10166#if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10167choke me
10168#endif
10169
10170int
10171main ()
10172{
10173return malloc_set_state ();
10174 ;
10175 return 0;
10176}
10177_ACEOF
10178rm -f conftest.$ac_objext conftest$ac_exeext
10179if { (ac_try="$ac_link"
10180case "(($ac_try" in
10181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10182 *) ac_try_echo=$ac_try;;
10183esac
10184eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10185$as_echo "$ac_try_echo") >&5
10186 (eval "$ac_link") 2>conftest.er1
10187 ac_status=$?
10188 grep -v '^ *+' conftest.er1 >conftest.err
10189 rm -f conftest.er1
10190 cat conftest.err >&5
10191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); } && {
10193 test -z "$ac_c_werror_flag" ||
10194 test ! -s conftest.err
10195 } && test -s conftest$ac_exeext && {
10196 test "$cross_compiling" = yes ||
10197 $as_test_x conftest$ac_exeext
10198 }; then
10199 ac_cv_func_malloc_set_state=yes
10200else
10201 $as_echo "$as_me: failed program was:" >&5
10202sed 's/^/| /' conftest.$ac_ext >&5
10203
10204 ac_cv_func_malloc_set_state=no
10205fi
7385 10206
10207rm -rf conftest.dSYM
10208rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10209 conftest$ac_exeext conftest.$ac_ext
10210fi
10211{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10212$as_echo "$ac_cv_func_malloc_set_state" >&6; }
10213if test $ac_cv_func_malloc_set_state = yes; then
10214 :
7386else 10215else
7387 doug_lea_malloc=no 10216 doug_lea_malloc=no
7388fi 10217fi
7389 10218
7390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5 10219{ $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7391$as_echo_n "checking whether __after_morecore_hook exists... " >&6; } 10220$as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7392if test "${emacs_cv_var___after_morecore_hook+set}" = set; then : 10221if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7393 $as_echo_n "(cached) " >&6 10222 $as_echo_n "(cached) " >&6
7394else 10223else
7395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10224 cat >conftest.$ac_ext <<_ACEOF
10225/* confdefs.h. */
10226_ACEOF
10227cat confdefs.h >>conftest.$ac_ext
10228cat >>conftest.$ac_ext <<_ACEOF
7396/* end confdefs.h. */ 10229/* end confdefs.h. */
7397extern void (* __after_morecore_hook)(); 10230extern void (* __after_morecore_hook)();
7398int 10231int
@@ -7403,15 +10236,40 @@ __after_morecore_hook = 0
7403 return 0; 10236 return 0;
7404} 10237}
7405_ACEOF 10238_ACEOF
7406if ac_fn_c_try_link "$LINENO"; then : 10239rm -f conftest.$ac_objext conftest$ac_exeext
10240if { (ac_try="$ac_link"
10241case "(($ac_try" in
10242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10243 *) ac_try_echo=$ac_try;;
10244esac
10245eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10246$as_echo "$ac_try_echo") >&5
10247 (eval "$ac_link") 2>conftest.er1
10248 ac_status=$?
10249 grep -v '^ *+' conftest.er1 >conftest.err
10250 rm -f conftest.er1
10251 cat conftest.err >&5
10252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } && {
10254 test -z "$ac_c_werror_flag" ||
10255 test ! -s conftest.err
10256 } && test -s conftest$ac_exeext && {
10257 test "$cross_compiling" = yes ||
10258 $as_test_x conftest$ac_exeext
10259 }; then
7407 emacs_cv_var___after_morecore_hook=yes 10260 emacs_cv_var___after_morecore_hook=yes
7408else 10261else
7409 emacs_cv_var___after_morecore_hook=no 10262 $as_echo "$as_me: failed program was:" >&5
10263sed 's/^/| /' conftest.$ac_ext >&5
10264
10265 emacs_cv_var___after_morecore_hook=no
7410fi 10266fi
7411rm -f core conftest.err conftest.$ac_objext \ 10267
7412 conftest$ac_exeext conftest.$ac_ext 10268rm -rf conftest.dSYM
10269rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10270 conftest$ac_exeext conftest.$ac_ext
7413fi 10271fi
7414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5 10272{ $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7415$as_echo "$emacs_cv_var___after_morecore_hook" >&6; } 10273$as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7416if test $emacs_cv_var___after_morecore_hook = no; then 10274if test $emacs_cv_var___after_morecore_hook = no; then
7417 doug_lea_malloc=no 10275 doug_lea_malloc=no
@@ -7427,7 +10285,9 @@ if test "$doug_lea_malloc" = "yes" ; then
7427 (Using Doug Lea's new malloc from the GNU C Library.)" 10285 (Using Doug Lea's new malloc from the GNU C Library.)"
7428 fi 10286 fi
7429 10287
7430$as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h 10288cat >>confdefs.h <<\_ACEOF
10289#define DOUG_LEA_MALLOC 1
10290_ACEOF
7431 10291
7432fi 10292fi
7433 10293
@@ -7438,14 +10298,142 @@ fi
7438 10298
7439 10299
7440 10300
10301for ac_header in stdlib.h unistd.h
10302do
10303as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10305 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10306$as_echo_n "checking for $ac_header... " >&6; }
10307if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10308 $as_echo_n "(cached) " >&6
10309fi
10310ac_res=`eval 'as_val=${'$as_ac_Header'}
10311 $as_echo "$as_val"'`
10312 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10313$as_echo "$ac_res" >&6; }
10314else
10315 # Is the header compilable?
10316{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10317$as_echo_n "checking $ac_header usability... " >&6; }
10318cat >conftest.$ac_ext <<_ACEOF
10319/* confdefs.h. */
10320_ACEOF
10321cat confdefs.h >>conftest.$ac_ext
10322cat >>conftest.$ac_ext <<_ACEOF
10323/* end confdefs.h. */
10324$ac_includes_default
10325#include <$ac_header>
10326_ACEOF
10327rm -f conftest.$ac_objext
10328if { (ac_try="$ac_compile"
10329case "(($ac_try" in
10330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10331 *) ac_try_echo=$ac_try;;
10332esac
10333eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10334$as_echo "$ac_try_echo") >&5
10335 (eval "$ac_compile") 2>conftest.er1
10336 ac_status=$?
10337 grep -v '^ *+' conftest.er1 >conftest.err
10338 rm -f conftest.er1
10339 cat conftest.err >&5
10340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); } && {
10342 test -z "$ac_c_werror_flag" ||
10343 test ! -s conftest.err
10344 } && test -s conftest.$ac_objext; then
10345 ac_header_compiler=yes
10346else
10347 $as_echo "$as_me: failed program was:" >&5
10348sed 's/^/| /' conftest.$ac_ext >&5
7441 10349
7442 for ac_header in $ac_header_list 10350 ac_header_compiler=no
7443do : 10351fi
7444 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10352
7445ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 10353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7446" 10354{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7447eval as_val=\$$as_ac_Header 10355$as_echo "$ac_header_compiler" >&6; }
7448 if test "x$as_val" = x""yes; then : 10356
10357# Is the header present?
10358{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10359$as_echo_n "checking $ac_header presence... " >&6; }
10360cat >conftest.$ac_ext <<_ACEOF
10361/* confdefs.h. */
10362_ACEOF
10363cat confdefs.h >>conftest.$ac_ext
10364cat >>conftest.$ac_ext <<_ACEOF
10365/* end confdefs.h. */
10366#include <$ac_header>
10367_ACEOF
10368if { (ac_try="$ac_cpp conftest.$ac_ext"
10369case "(($ac_try" in
10370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371 *) ac_try_echo=$ac_try;;
10372esac
10373eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10374$as_echo "$ac_try_echo") >&5
10375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10376 ac_status=$?
10377 grep -v '^ *+' conftest.er1 >conftest.err
10378 rm -f conftest.er1
10379 cat conftest.err >&5
10380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); } >/dev/null && {
10382 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10383 test ! -s conftest.err
10384 }; then
10385 ac_header_preproc=yes
10386else
10387 $as_echo "$as_me: failed program was:" >&5
10388sed 's/^/| /' conftest.$ac_ext >&5
10389
10390 ac_header_preproc=no
10391fi
10392
10393rm -f conftest.err conftest.$ac_ext
10394{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10395$as_echo "$ac_header_preproc" >&6; }
10396
10397# So? What about this header?
10398case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10399 yes:no: )
10400 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10401$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10402 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10403$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10404 ac_header_preproc=yes
10405 ;;
10406 no:yes:* )
10407 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10408$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10409 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10410$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10412$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10413 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10414$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10416$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10418$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10419
10420 ;;
10421esac
10422{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10423$as_echo_n "checking for $ac_header... " >&6; }
10424if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10425 $as_echo_n "(cached) " >&6
10426else
10427 eval "$as_ac_Header=\$ac_header_preproc"
10428fi
10429ac_res=`eval 'as_val=${'$as_ac_Header'}
10430 $as_echo "$as_val"'`
10431 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10432$as_echo "$ac_res" >&6; }
10433
10434fi
10435if test `eval 'as_val=${'$as_ac_Header'}
10436 $as_echo "$as_val"'` = yes; then
7449 cat >>confdefs.h <<_ACEOF 10437 cat >>confdefs.h <<_ACEOF
7450#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10438#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7451_ACEOF 10439_ACEOF
@@ -7455,32 +10443,118 @@ fi
7455done 10443done
7456 10444
7457 10445
10446for ac_func in getpagesize
10447do
10448as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10449{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10450$as_echo_n "checking for $ac_func... " >&6; }
10451if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10452 $as_echo_n "(cached) " >&6
10453else
10454 cat >conftest.$ac_ext <<_ACEOF
10455/* confdefs.h. */
10456_ACEOF
10457cat confdefs.h >>conftest.$ac_ext
10458cat >>conftest.$ac_ext <<_ACEOF
10459/* end confdefs.h. */
10460/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10462#define $ac_func innocuous_$ac_func
10463
10464/* System header to define __stub macros and hopefully few prototypes,
10465 which can conflict with char $ac_func (); below.
10466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10467 <limits.h> exists even on freestanding compilers. */
7458 10468
10469#ifdef __STDC__
10470# include <limits.h>
10471#else
10472# include <assert.h>
10473#endif
7459 10474
10475#undef $ac_func
7460 10476
10477/* Override any GCC internal prototype to avoid an error.
10478 Use char because int might match the return type of a GCC
10479 builtin and then its argument prototype would still apply. */
10480#ifdef __cplusplus
10481extern "C"
10482#endif
10483char $ac_func ();
10484/* The GNU C library defines this for functions which it implements
10485 to always fail with ENOSYS. Some functions are actually named
10486 something starting with __ and the normal name is an alias. */
10487#if defined __stub_$ac_func || defined __stub___$ac_func
10488choke me
10489#endif
7461 10490
10491int
10492main ()
10493{
10494return $ac_func ();
10495 ;
10496 return 0;
10497}
10498_ACEOF
10499rm -f conftest.$ac_objext conftest$ac_exeext
10500if { (ac_try="$ac_link"
10501case "(($ac_try" in
10502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10503 *) ac_try_echo=$ac_try;;
10504esac
10505eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10506$as_echo "$ac_try_echo") >&5
10507 (eval "$ac_link") 2>conftest.er1
10508 ac_status=$?
10509 grep -v '^ *+' conftest.er1 >conftest.err
10510 rm -f conftest.er1
10511 cat conftest.err >&5
10512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } && {
10514 test -z "$ac_c_werror_flag" ||
10515 test ! -s conftest.err
10516 } && test -s conftest$ac_exeext && {
10517 test "$cross_compiling" = yes ||
10518 $as_test_x conftest$ac_exeext
10519 }; then
10520 eval "$as_ac_var=yes"
10521else
10522 $as_echo "$as_me: failed program was:" >&5
10523sed 's/^/| /' conftest.$ac_ext >&5
7462 10524
10525 eval "$as_ac_var=no"
10526fi
7463 10527
7464for ac_func in getpagesize 10528rm -rf conftest.dSYM
7465do : 10529rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7466 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 10530 conftest$ac_exeext conftest.$ac_ext
7467if test "x$ac_cv_func_getpagesize" = x""yes; then : 10531fi
10532ac_res=`eval 'as_val=${'$as_ac_var'}
10533 $as_echo "$as_val"'`
10534 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10535$as_echo "$ac_res" >&6; }
10536if test `eval 'as_val=${'$as_ac_var'}
10537 $as_echo "$as_val"'` = yes; then
7468 cat >>confdefs.h <<_ACEOF 10538 cat >>confdefs.h <<_ACEOF
7469#define HAVE_GETPAGESIZE 1 10539#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7470_ACEOF 10540_ACEOF
7471 10541
7472fi 10542fi
7473done 10543done
7474 10544
7475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 10545{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
7476$as_echo_n "checking for working mmap... " >&6; } 10546$as_echo_n "checking for working mmap... " >&6; }
7477if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : 10547if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7478 $as_echo_n "(cached) " >&6 10548 $as_echo_n "(cached) " >&6
7479else 10549else
7480 if test "$cross_compiling" = yes; then : 10550 if test "$cross_compiling" = yes; then
7481 ac_cv_func_mmap_fixed_mapped=no 10551 ac_cv_func_mmap_fixed_mapped=no
7482else 10552else
7483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10553 cat >conftest.$ac_ext <<_ACEOF
10554/* confdefs.h. */
10555_ACEOF
10556cat confdefs.h >>conftest.$ac_ext
10557cat >>conftest.$ac_ext <<_ACEOF
7484/* end confdefs.h. */ 10558/* end confdefs.h. */
7485$ac_includes_default 10559$ac_includes_default
7486/* malloc might have been renamed as rpl_malloc. */ 10560/* malloc might have been renamed as rpl_malloc. */
@@ -7517,6 +10591,11 @@ char *malloc ();
7517 10591
7518/* This mess was copied from the GNU getpagesize.h. */ 10592/* This mess was copied from the GNU getpagesize.h. */
7519#ifndef HAVE_GETPAGESIZE 10593#ifndef HAVE_GETPAGESIZE
10594/* Assume that all systems that can run configure have sys/param.h. */
10595# ifndef HAVE_SYS_PARAM_H
10596# define HAVE_SYS_PARAM_H 1
10597# endif
10598
7520# ifdef _SC_PAGESIZE 10599# ifdef _SC_PAGESIZE
7521# define getpagesize() sysconf(_SC_PAGESIZE) 10600# define getpagesize() sysconf(_SC_PAGESIZE)
7522# else /* no _SC_PAGESIZE */ 10601# else /* no _SC_PAGESIZE */
@@ -7552,7 +10631,7 @@ main ()
7552{ 10631{
7553 char *data, *data2, *data3; 10632 char *data, *data2, *data3;
7554 int i, pagesize; 10633 int i, pagesize;
7555 int fd, fd2; 10634 int fd;
7556 10635
7557 pagesize = getpagesize (); 10636 pagesize = getpagesize ();
7558 10637
@@ -7565,41 +10644,27 @@ main ()
7565 umask (0); 10644 umask (0);
7566 fd = creat ("conftest.mmap", 0600); 10645 fd = creat ("conftest.mmap", 0600);
7567 if (fd < 0) 10646 if (fd < 0)
7568 return 2; 10647 return 1;
7569 if (write (fd, data, pagesize) != pagesize) 10648 if (write (fd, data, pagesize) != pagesize)
7570 return 3; 10649 return 1;
7571 close (fd); 10650 close (fd);
7572 10651
7573 /* Next, check that the tail of a page is zero-filled. File must have
7574 non-zero length, otherwise we risk SIGBUS for entire page. */
7575 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7576 if (fd2 < 0)
7577 return 4;
7578 data2 = "";
7579 if (write (fd2, data2, 1) != 1)
7580 return 5;
7581 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7582 if (data2 == MAP_FAILED)
7583 return 6;
7584 for (i = 0; i < pagesize; ++i)
7585 if (*(data2 + i))
7586 return 7;
7587 close (fd2);
7588 if (munmap (data2, pagesize))
7589 return 8;
7590
7591 /* Next, try to mmap the file at a fixed address which already has 10652 /* Next, try to mmap the file at a fixed address which already has
7592 something else allocated at it. If we can, also make sure that 10653 something else allocated at it. If we can, also make sure that
7593 we see the same garbage. */ 10654 we see the same garbage. */
7594 fd = open ("conftest.mmap", O_RDWR); 10655 fd = open ("conftest.mmap", O_RDWR);
7595 if (fd < 0) 10656 if (fd < 0)
7596 return 9; 10657 return 1;
10658 data2 = (char *) malloc (2 * pagesize);
10659 if (!data2)
10660 return 1;
10661 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7597 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 10662 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7598 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 10663 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7599 return 10; 10664 return 1;
7600 for (i = 0; i < pagesize; ++i) 10665 for (i = 0; i < pagesize; ++i)
7601 if (*(data + i) != *(data2 + i)) 10666 if (*(data + i) != *(data2 + i))
7602 return 11; 10667 return 1;
7603 10668
7604 /* Finally, make sure that changes to the mapped area do not 10669 /* Finally, make sure that changes to the mapped area do not
7605 percolate back to the file as seen by read(). (This is a bug on 10670 percolate back to the file as seen by read(). (This is a bug on
@@ -7608,34 +10673,63 @@ main ()
7608 *(data2 + i) = *(data2 + i) + 1; 10673 *(data2 + i) = *(data2 + i) + 1;
7609 data3 = (char *) malloc (pagesize); 10674 data3 = (char *) malloc (pagesize);
7610 if (!data3) 10675 if (!data3)
7611 return 12; 10676 return 1;
7612 if (read (fd, data3, pagesize) != pagesize) 10677 if (read (fd, data3, pagesize) != pagesize)
7613 return 13; 10678 return 1;
7614 for (i = 0; i < pagesize; ++i) 10679 for (i = 0; i < pagesize; ++i)
7615 if (*(data + i) != *(data3 + i)) 10680 if (*(data + i) != *(data3 + i))
7616 return 14; 10681 return 1;
7617 close (fd); 10682 close (fd);
7618 return 0; 10683 return 0;
7619} 10684}
7620_ACEOF 10685_ACEOF
7621if ac_fn_c_try_run "$LINENO"; then : 10686rm -f conftest$ac_exeext
10687if { (ac_try="$ac_link"
10688case "(($ac_try" in
10689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690 *) ac_try_echo=$ac_try;;
10691esac
10692eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10693$as_echo "$ac_try_echo") >&5
10694 (eval "$ac_link") 2>&5
10695 ac_status=$?
10696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10698 { (case "(($ac_try" in
10699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10700 *) ac_try_echo=$ac_try;;
10701esac
10702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10703$as_echo "$ac_try_echo") >&5
10704 (eval "$ac_try") 2>&5
10705 ac_status=$?
10706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); }; }; then
7622 ac_cv_func_mmap_fixed_mapped=yes 10708 ac_cv_func_mmap_fixed_mapped=yes
7623else 10709else
7624 ac_cv_func_mmap_fixed_mapped=no 10710 $as_echo "$as_me: program exited with status $ac_status" >&5
10711$as_echo "$as_me: failed program was:" >&5
10712sed 's/^/| /' conftest.$ac_ext >&5
10713
10714( exit $ac_status )
10715ac_cv_func_mmap_fixed_mapped=no
7625fi 10716fi
7626rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10717rm -rf conftest.dSYM
7627 conftest.$ac_objext conftest.beam conftest.$ac_ext 10718rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7628fi 10719fi
7629 10720
10721
7630fi 10722fi
7631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 10723{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7632$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 10724$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7633if test $ac_cv_func_mmap_fixed_mapped = yes; then 10725if test $ac_cv_func_mmap_fixed_mapped = yes; then
7634 10726
7635$as_echo "#define HAVE_MMAP 1" >>confdefs.h 10727cat >>confdefs.h <<\_ACEOF
10728#define HAVE_MMAP 1
10729_ACEOF
7636 10730
7637fi 10731fi
7638rm -f conftest.mmap conftest.txt 10732rm -f conftest.mmap
7639 10733
7640if test $use_mmap_for_buffers = yes; then 10734if test $use_mmap_for_buffers = yes; then
7641 REL_ALLOC=no 10735 REL_ALLOC=no
@@ -7643,14 +10737,19 @@ fi
7643 10737
7644LIBS="$libsrc_libs $LIBS" 10738LIBS="$libsrc_libs $LIBS"
7645 10739
7646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 10740
10741{ $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7647$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 10742$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7648if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : 10743if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7649 $as_echo_n "(cached) " >&6 10744 $as_echo_n "(cached) " >&6
7650else 10745else
7651 ac_check_lib_save_LIBS=$LIBS 10746 ac_check_lib_save_LIBS=$LIBS
7652LIBS="-ldnet $LIBS" 10747LIBS="-ldnet $LIBS"
7653cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10748cat >conftest.$ac_ext <<_ACEOF
10749/* confdefs.h. */
10750_ACEOF
10751cat confdefs.h >>conftest.$ac_ext
10752cat >>conftest.$ac_ext <<_ACEOF
7654/* end confdefs.h. */ 10753/* end confdefs.h. */
7655 10754
7656/* Override any GCC internal prototype to avoid an error. 10755/* Override any GCC internal prototype to avoid an error.
@@ -7668,18 +10767,43 @@ return dnet_ntoa ();
7668 return 0; 10767 return 0;
7669} 10768}
7670_ACEOF 10769_ACEOF
7671if ac_fn_c_try_link "$LINENO"; then : 10770rm -f conftest.$ac_objext conftest$ac_exeext
10771if { (ac_try="$ac_link"
10772case "(($ac_try" in
10773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10774 *) ac_try_echo=$ac_try;;
10775esac
10776eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10777$as_echo "$ac_try_echo") >&5
10778 (eval "$ac_link") 2>conftest.er1
10779 ac_status=$?
10780 grep -v '^ *+' conftest.er1 >conftest.err
10781 rm -f conftest.er1
10782 cat conftest.err >&5
10783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); } && {
10785 test -z "$ac_c_werror_flag" ||
10786 test ! -s conftest.err
10787 } && test -s conftest$ac_exeext && {
10788 test "$cross_compiling" = yes ||
10789 $as_test_x conftest$ac_exeext
10790 }; then
7672 ac_cv_lib_dnet_dnet_ntoa=yes 10791 ac_cv_lib_dnet_dnet_ntoa=yes
7673else 10792else
7674 ac_cv_lib_dnet_dnet_ntoa=no 10793 $as_echo "$as_me: failed program was:" >&5
10794sed 's/^/| /' conftest.$ac_ext >&5
10795
10796 ac_cv_lib_dnet_dnet_ntoa=no
7675fi 10797fi
7676rm -f core conftest.err conftest.$ac_objext \ 10798
7677 conftest$ac_exeext conftest.$ac_ext 10799rm -rf conftest.dSYM
10800rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10801 conftest$ac_exeext conftest.$ac_ext
7678LIBS=$ac_check_lib_save_LIBS 10802LIBS=$ac_check_lib_save_LIBS
7679fi 10803fi
7680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 10804{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7681$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 10805$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7682if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : 10806if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7683 cat >>confdefs.h <<_ACEOF 10807 cat >>confdefs.h <<_ACEOF
7684#define HAVE_LIBDNET 1 10808#define HAVE_LIBDNET 1
7685_ACEOF 10809_ACEOF
@@ -7689,14 +10813,18 @@ _ACEOF
7689fi 10813fi
7690 10814
7691 10815
7692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5 10816{ $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7693$as_echo_n "checking for main in -lXbsd... " >&6; } 10817$as_echo_n "checking for main in -lXbsd... " >&6; }
7694if test "${ac_cv_lib_Xbsd_main+set}" = set; then : 10818if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7695 $as_echo_n "(cached) " >&6 10819 $as_echo_n "(cached) " >&6
7696else 10820else
7697 ac_check_lib_save_LIBS=$LIBS 10821 ac_check_lib_save_LIBS=$LIBS
7698LIBS="-lXbsd $LIBS" 10822LIBS="-lXbsd $LIBS"
7699cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10823cat >conftest.$ac_ext <<_ACEOF
10824/* confdefs.h. */
10825_ACEOF
10826cat confdefs.h >>conftest.$ac_ext
10827cat >>conftest.$ac_ext <<_ACEOF
7700/* end confdefs.h. */ 10828/* end confdefs.h. */
7701 10829
7702 10830
@@ -7708,30 +10836,60 @@ return main ();
7708 return 0; 10836 return 0;
7709} 10837}
7710_ACEOF 10838_ACEOF
7711if ac_fn_c_try_link "$LINENO"; then : 10839rm -f conftest.$ac_objext conftest$ac_exeext
10840if { (ac_try="$ac_link"
10841case "(($ac_try" in
10842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10843 *) ac_try_echo=$ac_try;;
10844esac
10845eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10846$as_echo "$ac_try_echo") >&5
10847 (eval "$ac_link") 2>conftest.er1
10848 ac_status=$?
10849 grep -v '^ *+' conftest.er1 >conftest.err
10850 rm -f conftest.er1
10851 cat conftest.err >&5
10852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); } && {
10854 test -z "$ac_c_werror_flag" ||
10855 test ! -s conftest.err
10856 } && test -s conftest$ac_exeext && {
10857 test "$cross_compiling" = yes ||
10858 $as_test_x conftest$ac_exeext
10859 }; then
7712 ac_cv_lib_Xbsd_main=yes 10860 ac_cv_lib_Xbsd_main=yes
7713else 10861else
7714 ac_cv_lib_Xbsd_main=no 10862 $as_echo "$as_me: failed program was:" >&5
10863sed 's/^/| /' conftest.$ac_ext >&5
10864
10865 ac_cv_lib_Xbsd_main=no
7715fi 10866fi
7716rm -f core conftest.err conftest.$ac_objext \ 10867
7717 conftest$ac_exeext conftest.$ac_ext 10868rm -rf conftest.dSYM
10869rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10870 conftest$ac_exeext conftest.$ac_ext
7718LIBS=$ac_check_lib_save_LIBS 10871LIBS=$ac_check_lib_save_LIBS
7719fi 10872fi
7720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5 10873{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7721$as_echo "$ac_cv_lib_Xbsd_main" >&6; } 10874$as_echo "$ac_cv_lib_Xbsd_main" >&6; }
7722if test "x$ac_cv_lib_Xbsd_main" = x""yes; then : 10875if test $ac_cv_lib_Xbsd_main = yes; then
7723 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" 10876 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7724fi 10877fi
7725 10878
7726 10879
7727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5 10880
10881{ $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7728$as_echo_n "checking for cma_open in -lpthreads... " >&6; } 10882$as_echo_n "checking for cma_open in -lpthreads... " >&6; }
7729if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then : 10883if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7730 $as_echo_n "(cached) " >&6 10884 $as_echo_n "(cached) " >&6
7731else 10885else
7732 ac_check_lib_save_LIBS=$LIBS 10886 ac_check_lib_save_LIBS=$LIBS
7733LIBS="-lpthreads $LIBS" 10887LIBS="-lpthreads $LIBS"
7734cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10888cat >conftest.$ac_ext <<_ACEOF
10889/* confdefs.h. */
10890_ACEOF
10891cat confdefs.h >>conftest.$ac_ext
10892cat >>conftest.$ac_ext <<_ACEOF
7735/* end confdefs.h. */ 10893/* end confdefs.h. */
7736 10894
7737/* Override any GCC internal prototype to avoid an error. 10895/* Override any GCC internal prototype to avoid an error.
@@ -7749,18 +10907,43 @@ return cma_open ();
7749 return 0; 10907 return 0;
7750} 10908}
7751_ACEOF 10909_ACEOF
7752if ac_fn_c_try_link "$LINENO"; then : 10910rm -f conftest.$ac_objext conftest$ac_exeext
10911if { (ac_try="$ac_link"
10912case "(($ac_try" in
10913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914 *) ac_try_echo=$ac_try;;
10915esac
10916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10917$as_echo "$ac_try_echo") >&5
10918 (eval "$ac_link") 2>conftest.er1
10919 ac_status=$?
10920 grep -v '^ *+' conftest.er1 >conftest.err
10921 rm -f conftest.er1
10922 cat conftest.err >&5
10923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); } && {
10925 test -z "$ac_c_werror_flag" ||
10926 test ! -s conftest.err
10927 } && test -s conftest$ac_exeext && {
10928 test "$cross_compiling" = yes ||
10929 $as_test_x conftest$ac_exeext
10930 }; then
7753 ac_cv_lib_pthreads_cma_open=yes 10931 ac_cv_lib_pthreads_cma_open=yes
7754else 10932else
7755 ac_cv_lib_pthreads_cma_open=no 10933 $as_echo "$as_me: failed program was:" >&5
10934sed 's/^/| /' conftest.$ac_ext >&5
10935
10936 ac_cv_lib_pthreads_cma_open=no
7756fi 10937fi
7757rm -f core conftest.err conftest.$ac_objext \ 10938
7758 conftest$ac_exeext conftest.$ac_ext 10939rm -rf conftest.dSYM
10940rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10941 conftest$ac_exeext conftest.$ac_ext
7759LIBS=$ac_check_lib_save_LIBS 10942LIBS=$ac_check_lib_save_LIBS
7760fi 10943fi
7761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5 10944{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7762$as_echo "$ac_cv_lib_pthreads_cma_open" >&6; } 10945$as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
7763if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then : 10946if test $ac_cv_lib_pthreads_cma_open = yes; then
7764 cat >>confdefs.h <<_ACEOF 10947 cat >>confdefs.h <<_ACEOF
7765#define HAVE_LIBPTHREADS 1 10948#define HAVE_LIBPTHREADS 1
7766_ACEOF 10949_ACEOF
@@ -7773,9 +10956,9 @@ fi
7773 10956
7774case ${host_os} in 10957case ${host_os} in
7775aix*) 10958aix*)
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5 10959 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
7777$as_echo_n "checking for -bbigtoc option... " >&6; } 10960$as_echo_n "checking for -bbigtoc option... " >&6; }
7778if test "${gdb_cv_bigtoc+set}" = set; then : 10961if test "${gdb_cv_bigtoc+set}" = set; then
7779 $as_echo_n "(cached) " >&6 10962 $as_echo_n "(cached) " >&6
7780else 10963else
7781 10964
@@ -7785,7 +10968,11 @@ else
7785 esac 10968 esac
7786 10969
7787 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc 10970 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10971 cat >conftest.$ac_ext <<_ACEOF
10972/* confdefs.h. */
10973_ACEOF
10974cat confdefs.h >>conftest.$ac_ext
10975cat >>conftest.$ac_ext <<_ACEOF
7789/* end confdefs.h. */ 10976/* end confdefs.h. */
7790 10977
7791int 10978int
@@ -7796,16 +10983,41 @@ int i;
7796 return 0; 10983 return 0;
7797} 10984}
7798_ACEOF 10985_ACEOF
7799if ac_fn_c_try_link "$LINENO"; then : 10986rm -f conftest.$ac_objext conftest$ac_exeext
7800 10987if { (ac_try="$ac_link"
10988case "(($ac_try" in
10989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990 *) ac_try_echo=$ac_try;;
10991esac
10992eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10993$as_echo "$ac_try_echo") >&5
10994 (eval "$ac_link") 2>conftest.er1
10995 ac_status=$?
10996 grep -v '^ *+' conftest.er1 >conftest.err
10997 rm -f conftest.er1
10998 cat conftest.err >&5
10999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); } && {
11001 test -z "$ac_c_werror_flag" ||
11002 test ! -s conftest.err
11003 } && test -s conftest$ac_exeext && {
11004 test "$cross_compiling" = yes ||
11005 $as_test_x conftest$ac_exeext
11006 }; then
11007 :
7801else 11008else
7802 gdb_cv_bigtoc= 11009 $as_echo "$as_me: failed program was:" >&5
11010sed 's/^/| /' conftest.$ac_ext >&5
11011
11012 gdb_cv_bigtoc=
7803fi 11013fi
7804rm -f core conftest.err conftest.$ac_objext \ 11014
7805 conftest$ac_exeext conftest.$ac_ext 11015rm -rf conftest.dSYM
11016rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11017 conftest$ac_exeext conftest.$ac_ext
7806 11018
7807fi 11019fi
7808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5 11020{ $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
7809$as_echo "$gdb_cv_bigtoc" >&6; } 11021$as_echo "$gdb_cv_bigtoc" >&6; }
7810 ;; 11022 ;;
7811esac 11023esac
@@ -7833,9 +11045,13 @@ if test "${HAVE_X11}" = "yes"; then
7833 fi 11045 fi
7834 11046
7835 if test "${opsys}" = "gnu-linux"; then 11047 if test "${opsys}" = "gnu-linux"; then
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5 11048 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7837$as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; } 11049$as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
7838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11050 cat >conftest.$ac_ext <<_ACEOF
11051/* confdefs.h. */
11052_ACEOF
11053cat confdefs.h >>conftest.$ac_ext
11054cat >>conftest.$ac_ext <<_ACEOF
7839/* end confdefs.h. */ 11055/* end confdefs.h. */
7840 11056
7841int 11057int
@@ -7846,13 +11062,38 @@ XOpenDisplay ("foo");
7846 return 0; 11062 return 0;
7847} 11063}
7848_ACEOF 11064_ACEOF
7849if ac_fn_c_try_link "$LINENO"; then : 11065rm -f conftest.$ac_objext conftest$ac_exeext
11066if { (ac_try="$ac_link"
11067case "(($ac_try" in
11068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11069 *) ac_try_echo=$ac_try;;
11070esac
11071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11072$as_echo "$ac_try_echo") >&5
11073 (eval "$ac_link") 2>conftest.er1
11074 ac_status=$?
11075 grep -v '^ *+' conftest.er1 >conftest.err
11076 rm -f conftest.er1
11077 cat conftest.err >&5
11078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); } && {
11080 test -z "$ac_c_werror_flag" ||
11081 test ! -s conftest.err
11082 } && test -s conftest$ac_exeext && {
11083 test "$cross_compiling" = yes ||
11084 $as_test_x conftest$ac_exeext
11085 }; then
7850 xlinux_first_failure=no 11086 xlinux_first_failure=no
7851else 11087else
7852 xlinux_first_failure=yes 11088 $as_echo "$as_me: failed program was:" >&5
11089sed 's/^/| /' conftest.$ac_ext >&5
11090
11091 xlinux_first_failure=yes
7853fi 11092fi
7854rm -f core conftest.err conftest.$ac_objext \ 11093
7855 conftest$ac_exeext conftest.$ac_ext 11094rm -rf conftest.dSYM
11095rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11096 conftest$ac_exeext conftest.$ac_ext
7856 if test "${xlinux_first_failure}" = "yes"; then 11097 if test "${xlinux_first_failure}" = "yes"; then
7857 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" 11098 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7858 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" 11099 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
@@ -7862,7 +11103,11 @@ rm -f core conftest.err conftest.$ac_objext \
7862 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" 11103 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7863 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" 11104 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7864 LIBS="$LIBS -b i486-linuxaout" 11105 LIBS="$LIBS -b i486-linuxaout"
7865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11106 cat >conftest.$ac_ext <<_ACEOF
11107/* confdefs.h. */
11108_ACEOF
11109cat confdefs.h >>conftest.$ac_ext
11110cat >>conftest.$ac_ext <<_ACEOF
7866/* end confdefs.h. */ 11111/* end confdefs.h. */
7867 11112
7868int 11113int
@@ -7873,13 +11118,38 @@ XOpenDisplay ("foo");
7873 return 0; 11118 return 0;
7874} 11119}
7875_ACEOF 11120_ACEOF
7876if ac_fn_c_try_link "$LINENO"; then : 11121rm -f conftest.$ac_objext conftest$ac_exeext
11122if { (ac_try="$ac_link"
11123case "(($ac_try" in
11124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125 *) ac_try_echo=$ac_try;;
11126esac
11127eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11128$as_echo "$ac_try_echo") >&5
11129 (eval "$ac_link") 2>conftest.er1
11130 ac_status=$?
11131 grep -v '^ *+' conftest.er1 >conftest.err
11132 rm -f conftest.er1
11133 cat conftest.err >&5
11134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); } && {
11136 test -z "$ac_c_werror_flag" ||
11137 test ! -s conftest.err
11138 } && test -s conftest$ac_exeext && {
11139 test "$cross_compiling" = yes ||
11140 $as_test_x conftest$ac_exeext
11141 }; then
7877 xlinux_second_failure=no 11142 xlinux_second_failure=no
7878else 11143else
7879 xlinux_second_failure=yes 11144 $as_echo "$as_me: failed program was:" >&5
11145sed 's/^/| /' conftest.$ac_ext >&5
11146
11147 xlinux_second_failure=yes
7880fi 11148fi
7881rm -f core conftest.err conftest.$ac_objext \ 11149
7882 conftest$ac_exeext conftest.$ac_ext 11150rm -rf conftest.dSYM
11151rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11152 conftest$ac_exeext conftest.$ac_ext
7883 if test "${xlinux_second_failure}" = "yes"; then 11153 if test "${xlinux_second_failure}" = "yes"; then
7884 # If we get the same failure with -b, there is no use adding -b. 11154 # If we get the same failure with -b, there is no use adding -b.
7885 # So take it out. This plays safe. 11155 # So take it out. This plays safe.
@@ -7887,23 +11157,27 @@ rm -f core conftest.err conftest.$ac_objext \
7887 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" 11157 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7888 CPPFLAGS="$OLD_CPPFLAGS" 11158 CPPFLAGS="$OLD_CPPFLAGS"
7889 LIBS="$OLD_LIBS" 11159 LIBS="$OLD_LIBS"
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11160 { $as_echo "$as_me:$LINENO: result: no" >&5
7891$as_echo "no" >&6; } 11161$as_echo "no" >&6; }
7892 else 11162 else
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11163 { $as_echo "$as_me:$LINENO: result: yes" >&5
7894$as_echo "yes" >&6; } 11164$as_echo "yes" >&6; }
7895 fi 11165 fi
7896 else 11166 else
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11167 { $as_echo "$as_me:$LINENO: result: no" >&5
7898$as_echo "no" >&6; } 11168$as_echo "no" >&6; }
7899 fi 11169 fi
7900 fi 11170 fi
7901 11171
7902 # Reportedly, some broken Solaris systems have XKBlib.h but are missing 11172 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7903 # header files included from there. 11173 # header files included from there.
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5 11174 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
7905$as_echo_n "checking for Xkb... " >&6; } 11175$as_echo_n "checking for Xkb... " >&6; }
7906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11176 cat >conftest.$ac_ext <<_ACEOF
11177/* confdefs.h. */
11178_ACEOF
11179cat confdefs.h >>conftest.$ac_ext
11180cat >>conftest.$ac_ext <<_ACEOF
7907/* end confdefs.h. */ 11181/* end confdefs.h. */
7908#include <X11/Xlib.h> 11182#include <X11/Xlib.h>
7909#include <X11/XKBlib.h> 11183#include <X11/XKBlib.h>
@@ -7915,28 +11189,145 @@ XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7915 return 0; 11189 return 0;
7916} 11190}
7917_ACEOF 11191_ACEOF
7918if ac_fn_c_try_link "$LINENO"; then : 11192rm -f conftest.$ac_objext conftest$ac_exeext
11193if { (ac_try="$ac_link"
11194case "(($ac_try" in
11195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11196 *) ac_try_echo=$ac_try;;
11197esac
11198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11199$as_echo "$ac_try_echo") >&5
11200 (eval "$ac_link") 2>conftest.er1
11201 ac_status=$?
11202 grep -v '^ *+' conftest.er1 >conftest.err
11203 rm -f conftest.er1
11204 cat conftest.err >&5
11205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); } && {
11207 test -z "$ac_c_werror_flag" ||
11208 test ! -s conftest.err
11209 } && test -s conftest$ac_exeext && {
11210 test "$cross_compiling" = yes ||
11211 $as_test_x conftest$ac_exeext
11212 }; then
7919 emacs_xkb=yes 11213 emacs_xkb=yes
7920else 11214else
7921 emacs_xkb=no 11215 $as_echo "$as_me: failed program was:" >&5
11216sed 's/^/| /' conftest.$ac_ext >&5
11217
11218 emacs_xkb=no
7922fi 11219fi
7923rm -f core conftest.err conftest.$ac_objext \ 11220
7924 conftest$ac_exeext conftest.$ac_ext 11221rm -rf conftest.dSYM
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5 11222rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11223 conftest$ac_exeext conftest.$ac_ext
11224 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7926$as_echo "$emacs_xkb" >&6; } 11225$as_echo "$emacs_xkb" >&6; }
7927 if test $emacs_xkb = yes; then 11226 if test $emacs_xkb = yes; then
7928 11227
7929$as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h 11228cat >>confdefs.h <<\_ACEOF
11229#define HAVE_XKBGETKEYBOARD 1
11230_ACEOF
7930 11231
7931 fi 11232 fi
7932 11233
7933 for ac_func in XrmSetDatabase XScreenResourceString \ 11234
11235
11236
11237
11238for ac_func in XrmSetDatabase XScreenResourceString \
7934XScreenNumberOfScreen XSetWMProtocols 11239XScreenNumberOfScreen XSetWMProtocols
7935do : 11240do
7936 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11241as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7937ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11242{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7938eval as_val=\$$as_ac_var 11243$as_echo_n "checking for $ac_func... " >&6; }
7939 if test "x$as_val" = x""yes; then : 11244if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11245 $as_echo_n "(cached) " >&6
11246else
11247 cat >conftest.$ac_ext <<_ACEOF
11248/* confdefs.h. */
11249_ACEOF
11250cat confdefs.h >>conftest.$ac_ext
11251cat >>conftest.$ac_ext <<_ACEOF
11252/* end confdefs.h. */
11253/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11255#define $ac_func innocuous_$ac_func
11256
11257/* System header to define __stub macros and hopefully few prototypes,
11258 which can conflict with char $ac_func (); below.
11259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11260 <limits.h> exists even on freestanding compilers. */
11261
11262#ifdef __STDC__
11263# include <limits.h>
11264#else
11265# include <assert.h>
11266#endif
11267
11268#undef $ac_func
11269
11270/* Override any GCC internal prototype to avoid an error.
11271 Use char because int might match the return type of a GCC
11272 builtin and then its argument prototype would still apply. */
11273#ifdef __cplusplus
11274extern "C"
11275#endif
11276char $ac_func ();
11277/* The GNU C library defines this for functions which it implements
11278 to always fail with ENOSYS. Some functions are actually named
11279 something starting with __ and the normal name is an alias. */
11280#if defined __stub_$ac_func || defined __stub___$ac_func
11281choke me
11282#endif
11283
11284int
11285main ()
11286{
11287return $ac_func ();
11288 ;
11289 return 0;
11290}
11291_ACEOF
11292rm -f conftest.$ac_objext conftest$ac_exeext
11293if { (ac_try="$ac_link"
11294case "(($ac_try" in
11295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11296 *) ac_try_echo=$ac_try;;
11297esac
11298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11299$as_echo "$ac_try_echo") >&5
11300 (eval "$ac_link") 2>conftest.er1
11301 ac_status=$?
11302 grep -v '^ *+' conftest.er1 >conftest.err
11303 rm -f conftest.er1
11304 cat conftest.err >&5
11305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); } && {
11307 test -z "$ac_c_werror_flag" ||
11308 test ! -s conftest.err
11309 } && test -s conftest$ac_exeext && {
11310 test "$cross_compiling" = yes ||
11311 $as_test_x conftest$ac_exeext
11312 }; then
11313 eval "$as_ac_var=yes"
11314else
11315 $as_echo "$as_me: failed program was:" >&5
11316sed 's/^/| /' conftest.$ac_ext >&5
11317
11318 eval "$as_ac_var=no"
11319fi
11320
11321rm -rf conftest.dSYM
11322rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11323 conftest$ac_exeext conftest.$ac_ext
11324fi
11325ac_res=`eval 'as_val=${'$as_ac_var'}
11326 $as_echo "$as_val"'`
11327 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11328$as_echo "$ac_res" >&6; }
11329if test `eval 'as_val=${'$as_ac_var'}
11330 $as_echo "$as_val"'` = yes; then
7940 cat >>confdefs.h <<_ACEOF 11331 cat >>confdefs.h <<_ACEOF
7941#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11332#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7942_ACEOF 11333_ACEOF
@@ -7947,12 +11338,16 @@ done
7947fi 11338fi
7948 11339
7949if test "${window_system}" = "x11"; then 11340if test "${window_system}" = "x11"; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5 11341 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
7951$as_echo_n "checking X11 version 6... " >&6; } 11342$as_echo_n "checking X11 version 6... " >&6; }
7952 if test "${emacs_cv_x11_version_6+set}" = set; then : 11343 if test "${emacs_cv_x11_version_6+set}" = set; then
7953 $as_echo_n "(cached) " >&6 11344 $as_echo_n "(cached) " >&6
7954else 11345else
7955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11346 cat >conftest.$ac_ext <<_ACEOF
11347/* confdefs.h. */
11348_ACEOF
11349cat confdefs.h >>conftest.$ac_ext
11350cat >>conftest.$ac_ext <<_ACEOF
7956/* end confdefs.h. */ 11351/* end confdefs.h. */
7957#include <X11/Xlib.h> 11352#include <X11/Xlib.h>
7958int 11353int
@@ -7966,23 +11361,50 @@ fail;
7966 return 0; 11361 return 0;
7967} 11362}
7968_ACEOF 11363_ACEOF
7969if ac_fn_c_try_link "$LINENO"; then : 11364rm -f conftest.$ac_objext conftest$ac_exeext
11365if { (ac_try="$ac_link"
11366case "(($ac_try" in
11367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11368 *) ac_try_echo=$ac_try;;
11369esac
11370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11371$as_echo "$ac_try_echo") >&5
11372 (eval "$ac_link") 2>conftest.er1
11373 ac_status=$?
11374 grep -v '^ *+' conftest.er1 >conftest.err
11375 rm -f conftest.er1
11376 cat conftest.err >&5
11377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); } && {
11379 test -z "$ac_c_werror_flag" ||
11380 test ! -s conftest.err
11381 } && test -s conftest$ac_exeext && {
11382 test "$cross_compiling" = yes ||
11383 $as_test_x conftest$ac_exeext
11384 }; then
7970 emacs_cv_x11_version_6=yes 11385 emacs_cv_x11_version_6=yes
7971else 11386else
7972 emacs_cv_x11_version_6=no 11387 $as_echo "$as_me: failed program was:" >&5
11388sed 's/^/| /' conftest.$ac_ext >&5
11389
11390 emacs_cv_x11_version_6=no
7973fi 11391fi
7974rm -f core conftest.err conftest.$ac_objext \ 11392
7975 conftest$ac_exeext conftest.$ac_ext 11393rm -rf conftest.dSYM
11394rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11395 conftest$ac_exeext conftest.$ac_ext
7976fi 11396fi
7977 11397
7978 if test $emacs_cv_x11_version_6 = yes; then 11398 if test $emacs_cv_x11_version_6 = yes; then
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5 11399 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
7980$as_echo "6 or newer" >&6; } 11400$as_echo "6 or newer" >&6; }
7981 11401
7982$as_echo "#define HAVE_X11R6 1" >>confdefs.h 11402cat >>confdefs.h <<\_ACEOF
11403#define HAVE_X11R6 1
11404_ACEOF
7983 11405
7984 else 11406 else
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5 11407 { $as_echo "$as_me:$LINENO: result: before 6" >&5
7986$as_echo "before 6" >&6; } 11408$as_echo "before 6" >&6; }
7987 fi 11409 fi
7988fi 11410fi
@@ -8000,9 +11422,9 @@ if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
8000 11422
8001 # Extract the first word of "pkg-config", so it can be a program name with args. 11423 # Extract the first word of "pkg-config", so it can be a program name with args.
8002set dummy pkg-config; ac_word=$2 11424set dummy pkg-config; ac_word=$2
8003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11425{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8004$as_echo_n "checking for $ac_word... " >&6; } 11426$as_echo_n "checking for $ac_word... " >&6; }
8005if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 11427if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8006 $as_echo_n "(cached) " >&6 11428 $as_echo_n "(cached) " >&6
8007else 11429else
8008 case $PKG_CONFIG in 11430 case $PKG_CONFIG in
@@ -8015,14 +11437,14 @@ for as_dir in $PATH
8015do 11437do
8016 IFS=$as_save_IFS 11438 IFS=$as_save_IFS
8017 test -z "$as_dir" && as_dir=. 11439 test -z "$as_dir" && as_dir=.
8018 for ac_exec_ext in '' $ac_executable_extensions; do 11440 for ac_exec_ext in '' $ac_executable_extensions; do
8019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8020 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11442 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11443 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8022 break 2 11444 break 2
8023 fi 11445 fi
8024done 11446done
8025 done 11447done
8026IFS=$as_save_IFS 11448IFS=$as_save_IFS
8027 11449
8028 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 11450 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -8031,10 +11453,10 @@ esac
8031fi 11453fi
8032PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11454PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8033if test -n "$PKG_CONFIG"; then 11455if test -n "$PKG_CONFIG"; then
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11456 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8035$as_echo "$PKG_CONFIG" >&6; } 11457$as_echo "$PKG_CONFIG" >&6; }
8036else 11458else
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11459 { $as_echo "$as_me:$LINENO: result: no" >&5
8038$as_echo "no" >&6; } 11460$as_echo "no" >&6; }
8039fi 11461fi
8040 11462
@@ -8045,27 +11467,27 @@ fi
8045 else 11467 else
8046 PKG_CONFIG_MIN_VERSION=0.9.0 11468 PKG_CONFIG_MIN_VERSION=0.9.0
8047 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 11469 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5 11470 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
8049$as_echo_n "checking for $RSVG_MODULE... " >&6; } 11471$as_echo_n "checking for $RSVG_MODULE... " >&6; }
8050 11472
8051 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then 11473 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11474 { $as_echo "$as_me:$LINENO: result: yes" >&5
8053$as_echo "yes" >&6; } 11475$as_echo "yes" >&6; }
8054 succeeded=yes 11476 succeeded=yes
8055 11477
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5 11478 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
8057$as_echo_n "checking RSVG_CFLAGS... " >&6; } 11479$as_echo_n "checking RSVG_CFLAGS... " >&6; }
8058 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'` 11480 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5 11481 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
8060$as_echo "$RSVG_CFLAGS" >&6; } 11482$as_echo "$RSVG_CFLAGS" >&6; }
8061 11483
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5 11484 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
8063$as_echo_n "checking RSVG_LIBS... " >&6; } 11485$as_echo_n "checking RSVG_LIBS... " >&6; }
8064 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'` 11486 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5 11487 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
8066$as_echo "$RSVG_LIBS" >&6; } 11488$as_echo "$RSVG_LIBS" >&6; }
8067 else 11489 else
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11490 { $as_echo "$as_me:$LINENO: result: no" >&5
8069$as_echo "no" >&6; } 11491$as_echo "no" >&6; }
8070 RSVG_CFLAGS="" 11492 RSVG_CFLAGS=""
8071 RSVG_LIBS="" 11493 RSVG_LIBS=""
@@ -8095,7 +11517,9 @@ $as_echo "no" >&6; }
8095 if test ".${RSVG_CFLAGS}" != "."; then 11517 if test ".${RSVG_CFLAGS}" != "."; then
8096 HAVE_RSVG=yes 11518 HAVE_RSVG=yes
8097 11519
8098$as_echo "#define HAVE_RSVG 1" >>confdefs.h 11520cat >>confdefs.h <<\_ACEOF
11521#define HAVE_RSVG 1
11522_ACEOF
8099 11523
8100 CFLAGS="$CFLAGS $RSVG_CFLAGS" 11524 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8101 LIBS="$RSVG_LIBS $LIBS" 11525 LIBS="$RSVG_LIBS $LIBS"
@@ -8115,9 +11539,9 @@ if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8115 11539
8116 # Extract the first word of "pkg-config", so it can be a program name with args. 11540 # Extract the first word of "pkg-config", so it can be a program name with args.
8117set dummy pkg-config; ac_word=$2 11541set dummy pkg-config; ac_word=$2
8118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11542{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8119$as_echo_n "checking for $ac_word... " >&6; } 11543$as_echo_n "checking for $ac_word... " >&6; }
8120if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 11544if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8121 $as_echo_n "(cached) " >&6 11545 $as_echo_n "(cached) " >&6
8122else 11546else
8123 case $PKG_CONFIG in 11547 case $PKG_CONFIG in
@@ -8130,14 +11554,14 @@ for as_dir in $PATH
8130do 11554do
8131 IFS=$as_save_IFS 11555 IFS=$as_save_IFS
8132 test -z "$as_dir" && as_dir=. 11556 test -z "$as_dir" && as_dir=.
8133 for ac_exec_ext in '' $ac_executable_extensions; do 11557 for ac_exec_ext in '' $ac_executable_extensions; do
8134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8135 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11559 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11560 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8137 break 2 11561 break 2
8138 fi 11562 fi
8139done 11563done
8140 done 11564done
8141IFS=$as_save_IFS 11565IFS=$as_save_IFS
8142 11566
8143 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 11567 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -8146,10 +11570,10 @@ esac
8146fi 11570fi
8147PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11571PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8148if test -n "$PKG_CONFIG"; then 11572if test -n "$PKG_CONFIG"; then
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11573 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8150$as_echo "$PKG_CONFIG" >&6; } 11574$as_echo "$PKG_CONFIG" >&6; }
8151else 11575else
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11576 { $as_echo "$as_me:$LINENO: result: no" >&5
8153$as_echo "no" >&6; } 11577$as_echo "no" >&6; }
8154fi 11578fi
8155 11579
@@ -8160,27 +11584,27 @@ fi
8160 else 11584 else
8161 PKG_CONFIG_MIN_VERSION=0.9.0 11585 PKG_CONFIG_MIN_VERSION=0.9.0
8162 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 11586 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5 11587 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8164$as_echo_n "checking for $GTK_MODULES... " >&6; } 11588$as_echo_n "checking for $GTK_MODULES... " >&6; }
8165 11589
8166 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then 11590 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11591 { $as_echo "$as_me:$LINENO: result: yes" >&5
8168$as_echo "yes" >&6; } 11592$as_echo "yes" >&6; }
8169 succeeded=yes 11593 succeeded=yes
8170 11594
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5 11595 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8172$as_echo_n "checking GTK_CFLAGS... " >&6; } 11596$as_echo_n "checking GTK_CFLAGS... " >&6; }
8173 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'` 11597 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5 11598 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8175$as_echo "$GTK_CFLAGS" >&6; } 11599$as_echo "$GTK_CFLAGS" >&6; }
8176 11600
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5 11601 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8178$as_echo_n "checking GTK_LIBS... " >&6; } 11602$as_echo_n "checking GTK_LIBS... " >&6; }
8179 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'` 11603 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5 11604 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8181$as_echo "$GTK_LIBS" >&6; } 11605$as_echo "$GTK_LIBS" >&6; }
8182 else 11606 else
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11607 { $as_echo "$as_me:$LINENO: result: no" >&5
8184$as_echo "no" >&6; } 11608$as_echo "no" >&6; }
8185 GTK_CFLAGS="" 11609 GTK_CFLAGS=""
8186 GTK_LIBS="" 11610 GTK_LIBS=""
@@ -8205,7 +11629,9 @@ $as_echo "no" >&6; }
8205 fi 11629 fi
8206 11630
8207 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then 11631 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8208 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5 11632 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11633$as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11634 { (exit 1); exit 1; }; }
8209 fi 11635 fi
8210fi 11636fi
8211 11637
@@ -8219,12 +11645,101 @@ if test x"$pkg_check_gtk" = xyes; then
8219 CFLAGS="$CFLAGS $GTK_CFLAGS" 11645 CFLAGS="$CFLAGS $GTK_CFLAGS"
8220 LIBS="$GTK_LIBS $LIBS" 11646 LIBS="$GTK_LIBS $LIBS"
8221 GTK_COMPILES=no 11647 GTK_COMPILES=no
8222 for ac_func in gtk_main 11648
8223do : 11649for ac_func in gtk_main
8224 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main" 11650do
8225if test "x$ac_cv_func_gtk_main" = x""yes; then : 11651as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11652{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11653$as_echo_n "checking for $ac_func... " >&6; }
11654if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11655 $as_echo_n "(cached) " >&6
11656else
11657 cat >conftest.$ac_ext <<_ACEOF
11658/* confdefs.h. */
11659_ACEOF
11660cat confdefs.h >>conftest.$ac_ext
11661cat >>conftest.$ac_ext <<_ACEOF
11662/* end confdefs.h. */
11663/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11665#define $ac_func innocuous_$ac_func
11666
11667/* System header to define __stub macros and hopefully few prototypes,
11668 which can conflict with char $ac_func (); below.
11669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11670 <limits.h> exists even on freestanding compilers. */
11671
11672#ifdef __STDC__
11673# include <limits.h>
11674#else
11675# include <assert.h>
11676#endif
11677
11678#undef $ac_func
11679
11680/* Override any GCC internal prototype to avoid an error.
11681 Use char because int might match the return type of a GCC
11682 builtin and then its argument prototype would still apply. */
11683#ifdef __cplusplus
11684extern "C"
11685#endif
11686char $ac_func ();
11687/* The GNU C library defines this for functions which it implements
11688 to always fail with ENOSYS. Some functions are actually named
11689 something starting with __ and the normal name is an alias. */
11690#if defined __stub_$ac_func || defined __stub___$ac_func
11691choke me
11692#endif
11693
11694int
11695main ()
11696{
11697return $ac_func ();
11698 ;
11699 return 0;
11700}
11701_ACEOF
11702rm -f conftest.$ac_objext conftest$ac_exeext
11703if { (ac_try="$ac_link"
11704case "(($ac_try" in
11705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11706 *) ac_try_echo=$ac_try;;
11707esac
11708eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11709$as_echo "$ac_try_echo") >&5
11710 (eval "$ac_link") 2>conftest.er1
11711 ac_status=$?
11712 grep -v '^ *+' conftest.er1 >conftest.err
11713 rm -f conftest.er1
11714 cat conftest.err >&5
11715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); } && {
11717 test -z "$ac_c_werror_flag" ||
11718 test ! -s conftest.err
11719 } && test -s conftest$ac_exeext && {
11720 test "$cross_compiling" = yes ||
11721 $as_test_x conftest$ac_exeext
11722 }; then
11723 eval "$as_ac_var=yes"
11724else
11725 $as_echo "$as_me: failed program was:" >&5
11726sed 's/^/| /' conftest.$ac_ext >&5
11727
11728 eval "$as_ac_var=no"
11729fi
11730
11731rm -rf conftest.dSYM
11732rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11733 conftest$ac_exeext conftest.$ac_ext
11734fi
11735ac_res=`eval 'as_val=${'$as_ac_var'}
11736 $as_echo "$as_val"'`
11737 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11738$as_echo "$ac_res" >&6; }
11739if test `eval 'as_val=${'$as_ac_var'}
11740 $as_echo "$as_val"'` = yes; then
8226 cat >>confdefs.h <<_ACEOF 11741 cat >>confdefs.h <<_ACEOF
8227#define HAVE_GTK_MAIN 1 11742#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8228_ACEOF 11743_ACEOF
8229 GTK_COMPILES=yes 11744 GTK_COMPILES=yes
8230fi 11745fi
@@ -8232,19 +11747,23 @@ done
8232 11747
8233 if test "${GTK_COMPILES}" != "yes"; then 11748 if test "${GTK_COMPILES}" != "yes"; then
8234 if test "$USE_X_TOOLKIT" != "maybe"; then 11749 if test "$USE_X_TOOLKIT" != "maybe"; then
8235 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5; 11750 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11751$as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11752 { (exit 1); exit 1; }; };
8236 fi 11753 fi
8237 else 11754 else
8238 HAVE_GTK=yes 11755 HAVE_GTK=yes
8239 11756
8240$as_echo "#define USE_GTK 1" >>confdefs.h 11757cat >>confdefs.h <<\_ACEOF
11758#define USE_GTK 1
11759_ACEOF
8241 11760
8242 GTK_OBJ=gtkutil.o 11761 GTK_OBJ=gtkutil.o
8243 USE_X_TOOLKIT=none 11762 USE_X_TOOLKIT=none
8244 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then 11763 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
8245 : 11764 :
8246 else 11765 else
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with 11766 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
8248 closing open displays. This is no problem if you just use 11767 closing open displays. This is no problem if you just use
8249 one display, but if you use more than one and close one of them 11768 one display, but if you use more than one and close one of them
8250 Emacs may crash." >&5 11769 Emacs may crash." >&5
@@ -8267,12 +11786,101 @@ if test "${HAVE_GTK}" = "yes"; then
8267 fi 11786 fi
8268 11787
8269 HAVE_GTK_MULTIDISPLAY=no 11788 HAVE_GTK_MULTIDISPLAY=no
8270 for ac_func in gdk_display_open 11789
8271do : 11790for ac_func in gdk_display_open
8272 ac_fn_c_check_func "$LINENO" "gdk_display_open" "ac_cv_func_gdk_display_open" 11791do
8273if test "x$ac_cv_func_gdk_display_open" = x""yes; then : 11792as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11793{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11794$as_echo_n "checking for $ac_func... " >&6; }
11795if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11796 $as_echo_n "(cached) " >&6
11797else
11798 cat >conftest.$ac_ext <<_ACEOF
11799/* confdefs.h. */
11800_ACEOF
11801cat confdefs.h >>conftest.$ac_ext
11802cat >>conftest.$ac_ext <<_ACEOF
11803/* end confdefs.h. */
11804/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11806#define $ac_func innocuous_$ac_func
11807
11808/* System header to define __stub macros and hopefully few prototypes,
11809 which can conflict with char $ac_func (); below.
11810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11811 <limits.h> exists even on freestanding compilers. */
11812
11813#ifdef __STDC__
11814# include <limits.h>
11815#else
11816# include <assert.h>
11817#endif
11818
11819#undef $ac_func
11820
11821/* Override any GCC internal prototype to avoid an error.
11822 Use char because int might match the return type of a GCC
11823 builtin and then its argument prototype would still apply. */
11824#ifdef __cplusplus
11825extern "C"
11826#endif
11827char $ac_func ();
11828/* The GNU C library defines this for functions which it implements
11829 to always fail with ENOSYS. Some functions are actually named
11830 something starting with __ and the normal name is an alias. */
11831#if defined __stub_$ac_func || defined __stub___$ac_func
11832choke me
11833#endif
11834
11835int
11836main ()
11837{
11838return $ac_func ();
11839 ;
11840 return 0;
11841}
11842_ACEOF
11843rm -f conftest.$ac_objext conftest$ac_exeext
11844if { (ac_try="$ac_link"
11845case "(($ac_try" in
11846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11847 *) ac_try_echo=$ac_try;;
11848esac
11849eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11850$as_echo "$ac_try_echo") >&5
11851 (eval "$ac_link") 2>conftest.er1
11852 ac_status=$?
11853 grep -v '^ *+' conftest.er1 >conftest.err
11854 rm -f conftest.er1
11855 cat conftest.err >&5
11856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); } && {
11858 test -z "$ac_c_werror_flag" ||
11859 test ! -s conftest.err
11860 } && test -s conftest$ac_exeext && {
11861 test "$cross_compiling" = yes ||
11862 $as_test_x conftest$ac_exeext
11863 }; then
11864 eval "$as_ac_var=yes"
11865else
11866 $as_echo "$as_me: failed program was:" >&5
11867sed 's/^/| /' conftest.$ac_ext >&5
11868
11869 eval "$as_ac_var=no"
11870fi
11871
11872rm -rf conftest.dSYM
11873rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11874 conftest$ac_exeext conftest.$ac_ext
11875fi
11876ac_res=`eval 'as_val=${'$as_ac_var'}
11877 $as_echo "$as_val"'`
11878 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11879$as_echo "$ac_res" >&6; }
11880if test `eval 'as_val=${'$as_ac_var'}
11881 $as_echo "$as_val"'` = yes; then
8274 cat >>confdefs.h <<_ACEOF 11882 cat >>confdefs.h <<_ACEOF
8275#define HAVE_GDK_DISPLAY_OPEN 1 11883#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8276_ACEOF 11884_ACEOF
8277 HAVE_GTK_MULTIDISPLAY=yes 11885 HAVE_GTK_MULTIDISPLAY=yes
8278fi 11886fi
@@ -8280,27 +11888,170 @@ done
8280 11888
8281 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then 11889 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
8282 11890
8283$as_echo "#define HAVE_GTK_MULTIDISPLAY 1" >>confdefs.h 11891cat >>confdefs.h <<\_ACEOF
11892#define HAVE_GTK_MULTIDISPLAY 1
11893_ACEOF
8284 11894
8285 fi 11895 fi
8286 11896
8287 HAVE_GTK_FILE_SELECTION=no 11897 HAVE_GTK_FILE_SELECTION=no
8288 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default 11898 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11899$as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11900if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11901 $as_echo_n "(cached) " >&6
11902else
11903 cat >conftest.$ac_ext <<_ACEOF
11904/* confdefs.h. */
11905_ACEOF
11906cat confdefs.h >>conftest.$ac_ext
11907cat >>conftest.$ac_ext <<_ACEOF
11908/* end confdefs.h. */
11909$ac_includes_default
8289#include <gtk/gtk.h> 11910#include <gtk/gtk.h>
8290" 11911
8291if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then : 11912int
11913main ()
11914{
11915#ifndef GTK_TYPE_FILE_SELECTION
11916 (void) GTK_TYPE_FILE_SELECTION;
11917#endif
11918
11919 ;
11920 return 0;
11921}
11922_ACEOF
11923rm -f conftest.$ac_objext
11924if { (ac_try="$ac_compile"
11925case "(($ac_try" in
11926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927 *) ac_try_echo=$ac_try;;
11928esac
11929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11930$as_echo "$ac_try_echo") >&5
11931 (eval "$ac_compile") 2>conftest.er1
11932 ac_status=$?
11933 grep -v '^ *+' conftest.er1 >conftest.err
11934 rm -f conftest.er1
11935 cat conftest.err >&5
11936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); } && {
11938 test -z "$ac_c_werror_flag" ||
11939 test ! -s conftest.err
11940 } && test -s conftest.$ac_objext; then
11941 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11942else
11943 $as_echo "$as_me: failed program was:" >&5
11944sed 's/^/| /' conftest.$ac_ext >&5
11945
11946 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11947fi
11948
11949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11950fi
11951{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11952$as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11953if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
8292 HAVE_GTK_FILE_SELECTION=yes 11954 HAVE_GTK_FILE_SELECTION=yes
8293else 11955else
8294 HAVE_GTK_FILE_SELECTION=no 11956 HAVE_GTK_FILE_SELECTION=no
8295fi 11957fi
8296 11958
8297 if test "$HAVE_GTK_FILE_SELECTION" = yes; then 11959 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
8298 for ac_func in gtk_file_selection_new 11960
8299do : 11961for ac_func in gtk_file_selection_new
8300 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new" 11962do
8301if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then : 11963as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11964{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11965$as_echo_n "checking for $ac_func... " >&6; }
11966if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11967 $as_echo_n "(cached) " >&6
11968else
11969 cat >conftest.$ac_ext <<_ACEOF
11970/* confdefs.h. */
11971_ACEOF
11972cat confdefs.h >>conftest.$ac_ext
11973cat >>conftest.$ac_ext <<_ACEOF
11974/* end confdefs.h. */
11975/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11977#define $ac_func innocuous_$ac_func
11978
11979/* System header to define __stub macros and hopefully few prototypes,
11980 which can conflict with char $ac_func (); below.
11981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11982 <limits.h> exists even on freestanding compilers. */
11983
11984#ifdef __STDC__
11985# include <limits.h>
11986#else
11987# include <assert.h>
11988#endif
11989
11990#undef $ac_func
11991
11992/* Override any GCC internal prototype to avoid an error.
11993 Use char because int might match the return type of a GCC
11994 builtin and then its argument prototype would still apply. */
11995#ifdef __cplusplus
11996extern "C"
11997#endif
11998char $ac_func ();
11999/* The GNU C library defines this for functions which it implements
12000 to always fail with ENOSYS. Some functions are actually named
12001 something starting with __ and the normal name is an alias. */
12002#if defined __stub_$ac_func || defined __stub___$ac_func
12003choke me
12004#endif
12005
12006int
12007main ()
12008{
12009return $ac_func ();
12010 ;
12011 return 0;
12012}
12013_ACEOF
12014rm -f conftest.$ac_objext conftest$ac_exeext
12015if { (ac_try="$ac_link"
12016case "(($ac_try" in
12017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018 *) ac_try_echo=$ac_try;;
12019esac
12020eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12021$as_echo "$ac_try_echo") >&5
12022 (eval "$ac_link") 2>conftest.er1
12023 ac_status=$?
12024 grep -v '^ *+' conftest.er1 >conftest.err
12025 rm -f conftest.er1
12026 cat conftest.err >&5
12027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); } && {
12029 test -z "$ac_c_werror_flag" ||
12030 test ! -s conftest.err
12031 } && test -s conftest$ac_exeext && {
12032 test "$cross_compiling" = yes ||
12033 $as_test_x conftest$ac_exeext
12034 }; then
12035 eval "$as_ac_var=yes"
12036else
12037 $as_echo "$as_me: failed program was:" >&5
12038sed 's/^/| /' conftest.$ac_ext >&5
12039
12040 eval "$as_ac_var=no"
12041fi
12042
12043rm -rf conftest.dSYM
12044rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12045 conftest$ac_exeext conftest.$ac_ext
12046fi
12047ac_res=`eval 'as_val=${'$as_ac_var'}
12048 $as_echo "$as_val"'`
12049 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12050$as_echo "$ac_res" >&6; }
12051if test `eval 'as_val=${'$as_ac_var'}
12052 $as_echo "$as_val"'` = yes; then
8302 cat >>confdefs.h <<_ACEOF 12053 cat >>confdefs.h <<_ACEOF
8303#define HAVE_GTK_FILE_SELECTION_NEW 1 12054#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8304_ACEOF 12055_ACEOF
8305 HAVE_GTK_FILE_SELECTION=yes 12056 HAVE_GTK_FILE_SELECTION=yes
8306else 12057else
@@ -8311,22 +12062,163 @@ done
8311 fi 12062 fi
8312 12063
8313 HAVE_GTK_FILE_CHOOSER=no 12064 HAVE_GTK_FILE_CHOOSER=no
8314 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_CHOOSER" "ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" "$ac_includes_default 12065 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12066$as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12067if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12068 $as_echo_n "(cached) " >&6
12069else
12070 cat >conftest.$ac_ext <<_ACEOF
12071/* confdefs.h. */
12072_ACEOF
12073cat confdefs.h >>conftest.$ac_ext
12074cat >>conftest.$ac_ext <<_ACEOF
12075/* end confdefs.h. */
12076$ac_includes_default
8315#include <gtk/gtk.h> 12077#include <gtk/gtk.h>
8316" 12078
8317if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x""yes; then : 12079int
12080main ()
12081{
12082#ifndef GTK_TYPE_FILE_CHOOSER
12083 (void) GTK_TYPE_FILE_CHOOSER;
12084#endif
12085
12086 ;
12087 return 0;
12088}
12089_ACEOF
12090rm -f conftest.$ac_objext
12091if { (ac_try="$ac_compile"
12092case "(($ac_try" in
12093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094 *) ac_try_echo=$ac_try;;
12095esac
12096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12097$as_echo "$ac_try_echo") >&5
12098 (eval "$ac_compile") 2>conftest.er1
12099 ac_status=$?
12100 grep -v '^ *+' conftest.er1 >conftest.err
12101 rm -f conftest.er1
12102 cat conftest.err >&5
12103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); } && {
12105 test -z "$ac_c_werror_flag" ||
12106 test ! -s conftest.err
12107 } && test -s conftest.$ac_objext; then
12108 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12109else
12110 $as_echo "$as_me: failed program was:" >&5
12111sed 's/^/| /' conftest.$ac_ext >&5
12112
12113 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12114fi
12115
12116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12117fi
12118{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12119$as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12120if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
8318 HAVE_GTK_FILE_CHOOSER=yes 12121 HAVE_GTK_FILE_CHOOSER=yes
8319else 12122else
8320 HAVE_GTK_FILE_CHOOSER=no 12123 HAVE_GTK_FILE_CHOOSER=no
8321fi 12124fi
8322 12125
8323 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then 12126 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8324 for ac_func in gtk_file_chooser_dialog_new 12127
8325do : 12128for ac_func in gtk_file_chooser_dialog_new
8326 ac_fn_c_check_func "$LINENO" "gtk_file_chooser_dialog_new" "ac_cv_func_gtk_file_chooser_dialog_new" 12129do
8327if test "x$ac_cv_func_gtk_file_chooser_dialog_new" = x""yes; then : 12130as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12131{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12132$as_echo_n "checking for $ac_func... " >&6; }
12133if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12134 $as_echo_n "(cached) " >&6
12135else
12136 cat >conftest.$ac_ext <<_ACEOF
12137/* confdefs.h. */
12138_ACEOF
12139cat confdefs.h >>conftest.$ac_ext
12140cat >>conftest.$ac_ext <<_ACEOF
12141/* end confdefs.h. */
12142/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12144#define $ac_func innocuous_$ac_func
12145
12146/* System header to define __stub macros and hopefully few prototypes,
12147 which can conflict with char $ac_func (); below.
12148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12149 <limits.h> exists even on freestanding compilers. */
12150
12151#ifdef __STDC__
12152# include <limits.h>
12153#else
12154# include <assert.h>
12155#endif
12156
12157#undef $ac_func
12158
12159/* Override any GCC internal prototype to avoid an error.
12160 Use char because int might match the return type of a GCC
12161 builtin and then its argument prototype would still apply. */
12162#ifdef __cplusplus
12163extern "C"
12164#endif
12165char $ac_func ();
12166/* The GNU C library defines this for functions which it implements
12167 to always fail with ENOSYS. Some functions are actually named
12168 something starting with __ and the normal name is an alias. */
12169#if defined __stub_$ac_func || defined __stub___$ac_func
12170choke me
12171#endif
12172
12173int
12174main ()
12175{
12176return $ac_func ();
12177 ;
12178 return 0;
12179}
12180_ACEOF
12181rm -f conftest.$ac_objext conftest$ac_exeext
12182if { (ac_try="$ac_link"
12183case "(($ac_try" in
12184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12185 *) ac_try_echo=$ac_try;;
12186esac
12187eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12188$as_echo "$ac_try_echo") >&5
12189 (eval "$ac_link") 2>conftest.er1
12190 ac_status=$?
12191 grep -v '^ *+' conftest.er1 >conftest.err
12192 rm -f conftest.er1
12193 cat conftest.err >&5
12194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } && {
12196 test -z "$ac_c_werror_flag" ||
12197 test ! -s conftest.err
12198 } && test -s conftest$ac_exeext && {
12199 test "$cross_compiling" = yes ||
12200 $as_test_x conftest$ac_exeext
12201 }; then
12202 eval "$as_ac_var=yes"
12203else
12204 $as_echo "$as_me: failed program was:" >&5
12205sed 's/^/| /' conftest.$ac_ext >&5
12206
12207 eval "$as_ac_var=no"
12208fi
12209
12210rm -rf conftest.dSYM
12211rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12212 conftest$ac_exeext conftest.$ac_ext
12213fi
12214ac_res=`eval 'as_val=${'$as_ac_var'}
12215 $as_echo "$as_val"'`
12216 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12217$as_echo "$ac_res" >&6; }
12218if test `eval 'as_val=${'$as_ac_var'}
12219 $as_echo "$as_val"'` = yes; then
8328 cat >>confdefs.h <<_ACEOF 12220 cat >>confdefs.h <<_ACEOF
8329#define HAVE_GTK_FILE_CHOOSER_DIALOG_NEW 1 12221#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8330_ACEOF 12222_ACEOF
8331 HAVE_GTK_FILE_CHOOSER=yes 12223 HAVE_GTK_FILE_CHOOSER=yes
8332else 12224else
@@ -8339,18 +12231,153 @@ done
8339 if test "$HAVE_GTK_FILE_SELECTION" = yes \ 12231 if test "$HAVE_GTK_FILE_SELECTION" = yes \
8340 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then 12232 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8341 12233
8342$as_echo "#define HAVE_GTK_FILE_BOTH 1" >>confdefs.h 12234cat >>confdefs.h <<\_ACEOF
12235#define HAVE_GTK_FILE_BOTH 1
12236_ACEOF
8343 12237
8344 fi 12238 fi
8345 12239
8346 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then 12240 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8347 HAVE_GTK_AND_PTHREAD=no 12241 HAVE_GTK_AND_PTHREAD=no
8348 for ac_header in pthread.h 12242
8349do : 12243for ac_header in pthread.h
8350 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 12244do
8351if test "x$ac_cv_header_pthread_h" = x""yes; then : 12245as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12246if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12247 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12248$as_echo_n "checking for $ac_header... " >&6; }
12249if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12250 $as_echo_n "(cached) " >&6
12251fi
12252ac_res=`eval 'as_val=${'$as_ac_Header'}
12253 $as_echo "$as_val"'`
12254 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12255$as_echo "$ac_res" >&6; }
12256else
12257 # Is the header compilable?
12258{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12259$as_echo_n "checking $ac_header usability... " >&6; }
12260cat >conftest.$ac_ext <<_ACEOF
12261/* confdefs.h. */
12262_ACEOF
12263cat confdefs.h >>conftest.$ac_ext
12264cat >>conftest.$ac_ext <<_ACEOF
12265/* end confdefs.h. */
12266$ac_includes_default
12267#include <$ac_header>
12268_ACEOF
12269rm -f conftest.$ac_objext
12270if { (ac_try="$ac_compile"
12271case "(($ac_try" in
12272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12273 *) ac_try_echo=$ac_try;;
12274esac
12275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12276$as_echo "$ac_try_echo") >&5
12277 (eval "$ac_compile") 2>conftest.er1
12278 ac_status=$?
12279 grep -v '^ *+' conftest.er1 >conftest.err
12280 rm -f conftest.er1
12281 cat conftest.err >&5
12282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } && {
12284 test -z "$ac_c_werror_flag" ||
12285 test ! -s conftest.err
12286 } && test -s conftest.$ac_objext; then
12287 ac_header_compiler=yes
12288else
12289 $as_echo "$as_me: failed program was:" >&5
12290sed 's/^/| /' conftest.$ac_ext >&5
12291
12292 ac_header_compiler=no
12293fi
12294
12295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12296{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12297$as_echo "$ac_header_compiler" >&6; }
12298
12299# Is the header present?
12300{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12301$as_echo_n "checking $ac_header presence... " >&6; }
12302cat >conftest.$ac_ext <<_ACEOF
12303/* confdefs.h. */
12304_ACEOF
12305cat confdefs.h >>conftest.$ac_ext
12306cat >>conftest.$ac_ext <<_ACEOF
12307/* end confdefs.h. */
12308#include <$ac_header>
12309_ACEOF
12310if { (ac_try="$ac_cpp conftest.$ac_ext"
12311case "(($ac_try" in
12312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12313 *) ac_try_echo=$ac_try;;
12314esac
12315eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12316$as_echo "$ac_try_echo") >&5
12317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12318 ac_status=$?
12319 grep -v '^ *+' conftest.er1 >conftest.err
12320 rm -f conftest.er1
12321 cat conftest.err >&5
12322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } >/dev/null && {
12324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12325 test ! -s conftest.err
12326 }; then
12327 ac_header_preproc=yes
12328else
12329 $as_echo "$as_me: failed program was:" >&5
12330sed 's/^/| /' conftest.$ac_ext >&5
12331
12332 ac_header_preproc=no
12333fi
12334
12335rm -f conftest.err conftest.$ac_ext
12336{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12337$as_echo "$ac_header_preproc" >&6; }
12338
12339# So? What about this header?
12340case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12341 yes:no: )
12342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12343$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12345$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12346 ac_header_preproc=yes
12347 ;;
12348 no:yes:* )
12349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12350$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12352$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12354$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12356$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12358$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12360$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12361
12362 ;;
12363esac
12364{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12365$as_echo_n "checking for $ac_header... " >&6; }
12366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12367 $as_echo_n "(cached) " >&6
12368else
12369 eval "$as_ac_Header=\$ac_header_preproc"
12370fi
12371ac_res=`eval 'as_val=${'$as_ac_Header'}
12372 $as_echo "$as_val"'`
12373 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12374$as_echo "$ac_res" >&6; }
12375
12376fi
12377if test `eval 'as_val=${'$as_ac_Header'}
12378 $as_echo "$as_val"'` = yes; then
8352 cat >>confdefs.h <<_ACEOF 12379 cat >>confdefs.h <<_ACEOF
8353#define HAVE_PTHREAD_H 1 12380#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8354_ACEOF 12381_ACEOF
8355 12382
8356fi 12383fi
@@ -8358,14 +12385,18 @@ fi
8358done 12385done
8359 12386
8360 if test "$ac_cv_header_pthread_h"; then 12387 if test "$ac_cv_header_pthread_h"; then
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5 12388 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
8362$as_echo_n "checking for pthread_self in -lpthread... " >&6; } 12389$as_echo_n "checking for pthread_self in -lpthread... " >&6; }
8363if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then : 12390if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
8364 $as_echo_n "(cached) " >&6 12391 $as_echo_n "(cached) " >&6
8365else 12392else
8366 ac_check_lib_save_LIBS=$LIBS 12393 ac_check_lib_save_LIBS=$LIBS
8367LIBS="-lpthread $LIBS" 12394LIBS="-lpthread $LIBS"
8368cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12395cat >conftest.$ac_ext <<_ACEOF
12396/* confdefs.h. */
12397_ACEOF
12398cat confdefs.h >>conftest.$ac_ext
12399cat >>conftest.$ac_ext <<_ACEOF
8369/* end confdefs.h. */ 12400/* end confdefs.h. */
8370 12401
8371/* Override any GCC internal prototype to avoid an error. 12402/* Override any GCC internal prototype to avoid an error.
@@ -8383,18 +12414,43 @@ return pthread_self ();
8383 return 0; 12414 return 0;
8384} 12415}
8385_ACEOF 12416_ACEOF
8386if ac_fn_c_try_link "$LINENO"; then : 12417rm -f conftest.$ac_objext conftest$ac_exeext
12418if { (ac_try="$ac_link"
12419case "(($ac_try" in
12420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12421 *) ac_try_echo=$ac_try;;
12422esac
12423eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12424$as_echo "$ac_try_echo") >&5
12425 (eval "$ac_link") 2>conftest.er1
12426 ac_status=$?
12427 grep -v '^ *+' conftest.er1 >conftest.err
12428 rm -f conftest.er1
12429 cat conftest.err >&5
12430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } && {
12432 test -z "$ac_c_werror_flag" ||
12433 test ! -s conftest.err
12434 } && test -s conftest$ac_exeext && {
12435 test "$cross_compiling" = yes ||
12436 $as_test_x conftest$ac_exeext
12437 }; then
8387 ac_cv_lib_pthread_pthread_self=yes 12438 ac_cv_lib_pthread_pthread_self=yes
8388else 12439else
8389 ac_cv_lib_pthread_pthread_self=no 12440 $as_echo "$as_me: failed program was:" >&5
12441sed 's/^/| /' conftest.$ac_ext >&5
12442
12443 ac_cv_lib_pthread_pthread_self=no
8390fi 12444fi
8391rm -f core conftest.err conftest.$ac_objext \ 12445
8392 conftest$ac_exeext conftest.$ac_ext 12446rm -rf conftest.dSYM
12447rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12448 conftest$ac_exeext conftest.$ac_ext
8393LIBS=$ac_check_lib_save_LIBS 12449LIBS=$ac_check_lib_save_LIBS
8394fi 12450fi
8395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5 12451{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
8396$as_echo "$ac_cv_lib_pthread_pthread_self" >&6; } 12452$as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
8397if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then : 12453if test $ac_cv_lib_pthread_pthread_self = yes; then
8398 HAVE_GTK_AND_PTHREAD=yes 12454 HAVE_GTK_AND_PTHREAD=yes
8399fi 12455fi
8400 12456
@@ -8405,7 +12461,9 @@ fi
8405 *) GTK_LIBS="$GTK_LIBS -lpthread" ;; 12461 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
8406 esac 12462 esac
8407 12463
8408$as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h 12464cat >>confdefs.h <<\_ACEOF
12465#define HAVE_GTK_AND_PTHREAD 1
12466_ACEOF
8409 12467
8410 fi 12468 fi
8411 fi 12469 fi
@@ -8419,9 +12477,9 @@ if test "${with_dbus}" = "yes"; then
8419 12477
8420 # Extract the first word of "pkg-config", so it can be a program name with args. 12478 # Extract the first word of "pkg-config", so it can be a program name with args.
8421set dummy pkg-config; ac_word=$2 12479set dummy pkg-config; ac_word=$2
8422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12480{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8423$as_echo_n "checking for $ac_word... " >&6; } 12481$as_echo_n "checking for $ac_word... " >&6; }
8424if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 12482if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8425 $as_echo_n "(cached) " >&6 12483 $as_echo_n "(cached) " >&6
8426else 12484else
8427 case $PKG_CONFIG in 12485 case $PKG_CONFIG in
@@ -8434,14 +12492,14 @@ for as_dir in $PATH
8434do 12492do
8435 IFS=$as_save_IFS 12493 IFS=$as_save_IFS
8436 test -z "$as_dir" && as_dir=. 12494 test -z "$as_dir" && as_dir=.
8437 for ac_exec_ext in '' $ac_executable_extensions; do 12495 for ac_exec_ext in '' $ac_executable_extensions; do
8438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8439 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12497 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12498 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8441 break 2 12499 break 2
8442 fi 12500 fi
8443done 12501done
8444 done 12502done
8445IFS=$as_save_IFS 12503IFS=$as_save_IFS
8446 12504
8447 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 12505 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -8450,10 +12508,10 @@ esac
8450fi 12508fi
8451PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12509PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8452if test -n "$PKG_CONFIG"; then 12510if test -n "$PKG_CONFIG"; then
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12511 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8454$as_echo "$PKG_CONFIG" >&6; } 12512$as_echo "$PKG_CONFIG" >&6; }
8455else 12513else
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12514 { $as_echo "$as_me:$LINENO: result: no" >&5
8457$as_echo "no" >&6; } 12515$as_echo "no" >&6; }
8458fi 12516fi
8459 12517
@@ -8464,27 +12522,27 @@ fi
8464 else 12522 else
8465 PKG_CONFIG_MIN_VERSION=0.9.0 12523 PKG_CONFIG_MIN_VERSION=0.9.0
8466 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 12524 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5 12525 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
8468$as_echo_n "checking for dbus-1 >= 1.0... " >&6; } 12526$as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
8469 12527
8470 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then 12528 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12529 { $as_echo "$as_me:$LINENO: result: yes" >&5
8472$as_echo "yes" >&6; } 12530$as_echo "yes" >&6; }
8473 succeeded=yes 12531 succeeded=yes
8474 12532
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5 12533 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
8476$as_echo_n "checking DBUS_CFLAGS... " >&6; } 12534$as_echo_n "checking DBUS_CFLAGS... " >&6; }
8477 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` 12535 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5 12536 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
8479$as_echo "$DBUS_CFLAGS" >&6; } 12537$as_echo "$DBUS_CFLAGS" >&6; }
8480 12538
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5 12539 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
8482$as_echo_n "checking DBUS_LIBS... " >&6; } 12540$as_echo_n "checking DBUS_LIBS... " >&6; }
8483 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` 12541 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5 12542 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
8485$as_echo "$DBUS_LIBS" >&6; } 12543$as_echo "$DBUS_LIBS" >&6; }
8486 else 12544 else
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12545 { $as_echo "$as_me:$LINENO: result: no" >&5
8488$as_echo "no" >&6; } 12546$as_echo "no" >&6; }
8489 DBUS_CFLAGS="" 12547 DBUS_CFLAGS=""
8490 DBUS_LIBS="" 12548 DBUS_LIBS=""
@@ -8511,14 +12569,105 @@ $as_echo "no" >&6; }
8511 if test "$HAVE_DBUS" = yes; then 12569 if test "$HAVE_DBUS" = yes; then
8512 LIBS="$LIBS $DBUS_LIBS" 12570 LIBS="$LIBS $DBUS_LIBS"
8513 12571
8514$as_echo "#define HAVE_DBUS 1" >>confdefs.h 12572cat >>confdefs.h <<\_ACEOF
12573#define HAVE_DBUS 1
12574_ACEOF
12575
12576
12577for ac_func in dbus_watch_get_unix_fd
12578do
12579as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12580{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12581$as_echo_n "checking for $ac_func... " >&6; }
12582if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12583 $as_echo_n "(cached) " >&6
12584else
12585 cat >conftest.$ac_ext <<_ACEOF
12586/* confdefs.h. */
12587_ACEOF
12588cat confdefs.h >>conftest.$ac_ext
12589cat >>conftest.$ac_ext <<_ACEOF
12590/* end confdefs.h. */
12591/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12593#define $ac_func innocuous_$ac_func
12594
12595/* System header to define __stub macros and hopefully few prototypes,
12596 which can conflict with char $ac_func (); below.
12597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12598 <limits.h> exists even on freestanding compilers. */
12599
12600#ifdef __STDC__
12601# include <limits.h>
12602#else
12603# include <assert.h>
12604#endif
12605
12606#undef $ac_func
12607
12608/* Override any GCC internal prototype to avoid an error.
12609 Use char because int might match the return type of a GCC
12610 builtin and then its argument prototype would still apply. */
12611#ifdef __cplusplus
12612extern "C"
12613#endif
12614char $ac_func ();
12615/* The GNU C library defines this for functions which it implements
12616 to always fail with ENOSYS. Some functions are actually named
12617 something starting with __ and the normal name is an alias. */
12618#if defined __stub_$ac_func || defined __stub___$ac_func
12619choke me
12620#endif
12621
12622int
12623main ()
12624{
12625return $ac_func ();
12626 ;
12627 return 0;
12628}
12629_ACEOF
12630rm -f conftest.$ac_objext conftest$ac_exeext
12631if { (ac_try="$ac_link"
12632case "(($ac_try" in
12633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12634 *) ac_try_echo=$ac_try;;
12635esac
12636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12637$as_echo "$ac_try_echo") >&5
12638 (eval "$ac_link") 2>conftest.er1
12639 ac_status=$?
12640 grep -v '^ *+' conftest.er1 >conftest.err
12641 rm -f conftest.er1
12642 cat conftest.err >&5
12643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); } && {
12645 test -z "$ac_c_werror_flag" ||
12646 test ! -s conftest.err
12647 } && test -s conftest$ac_exeext && {
12648 test "$cross_compiling" = yes ||
12649 $as_test_x conftest$ac_exeext
12650 }; then
12651 eval "$as_ac_var=yes"
12652else
12653 $as_echo "$as_me: failed program was:" >&5
12654sed 's/^/| /' conftest.$ac_ext >&5
12655
12656 eval "$as_ac_var=no"
12657fi
8515 12658
8516 for ac_func in dbus_watch_get_unix_fd 12659rm -rf conftest.dSYM
8517do : 12660rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8518 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd" 12661 conftest$ac_exeext conftest.$ac_ext
8519if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then : 12662fi
12663ac_res=`eval 'as_val=${'$as_ac_var'}
12664 $as_echo "$as_val"'`
12665 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12666$as_echo "$ac_res" >&6; }
12667if test `eval 'as_val=${'$as_ac_var'}
12668 $as_echo "$as_val"'` = yes; then
8520 cat >>confdefs.h <<_ACEOF 12669 cat >>confdefs.h <<_ACEOF
8521#define HAVE_DBUS_WATCH_GET_UNIX_FD 1 12670#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8522_ACEOF 12671_ACEOF
8523 12672
8524fi 12673fi
@@ -8536,9 +12685,9 @@ if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
8536 12685
8537 # Extract the first word of "pkg-config", so it can be a program name with args. 12686 # Extract the first word of "pkg-config", so it can be a program name with args.
8538set dummy pkg-config; ac_word=$2 12687set dummy pkg-config; ac_word=$2
8539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12688{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8540$as_echo_n "checking for $ac_word... " >&6; } 12689$as_echo_n "checking for $ac_word... " >&6; }
8541if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 12690if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8542 $as_echo_n "(cached) " >&6 12691 $as_echo_n "(cached) " >&6
8543else 12692else
8544 case $PKG_CONFIG in 12693 case $PKG_CONFIG in
@@ -8551,14 +12700,14 @@ for as_dir in $PATH
8551do 12700do
8552 IFS=$as_save_IFS 12701 IFS=$as_save_IFS
8553 test -z "$as_dir" && as_dir=. 12702 test -z "$as_dir" && as_dir=.
8554 for ac_exec_ext in '' $ac_executable_extensions; do 12703 for ac_exec_ext in '' $ac_executable_extensions; do
8555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8556 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12705 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12706 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8558 break 2 12707 break 2
8559 fi 12708 fi
8560done 12709done
8561 done 12710done
8562IFS=$as_save_IFS 12711IFS=$as_save_IFS
8563 12712
8564 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 12713 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -8567,10 +12716,10 @@ esac
8567fi 12716fi
8568PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12717PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8569if test -n "$PKG_CONFIG"; then 12718if test -n "$PKG_CONFIG"; then
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12719 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8571$as_echo "$PKG_CONFIG" >&6; } 12720$as_echo "$PKG_CONFIG" >&6; }
8572else 12721else
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12722 { $as_echo "$as_me:$LINENO: result: no" >&5
8574$as_echo "no" >&6; } 12723$as_echo "no" >&6; }
8575fi 12724fi
8576 12725
@@ -8581,27 +12730,27 @@ fi
8581 else 12730 else
8582 PKG_CONFIG_MIN_VERSION=0.9.0 12731 PKG_CONFIG_MIN_VERSION=0.9.0
8583 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 12732 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5 12733 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
8585$as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; } 12734$as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
8586 12735
8587 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then 12736 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12737 { $as_echo "$as_me:$LINENO: result: yes" >&5
8589$as_echo "yes" >&6; } 12738$as_echo "yes" >&6; }
8590 succeeded=yes 12739 succeeded=yes
8591 12740
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5 12741 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
8593$as_echo_n "checking GCONF_CFLAGS... " >&6; } 12742$as_echo_n "checking GCONF_CFLAGS... " >&6; }
8594 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` 12743 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5 12744 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
8596$as_echo "$GCONF_CFLAGS" >&6; } 12745$as_echo "$GCONF_CFLAGS" >&6; }
8597 12746
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5 12747 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
8599$as_echo_n "checking GCONF_LIBS... " >&6; } 12748$as_echo_n "checking GCONF_LIBS... " >&6; }
8600 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` 12749 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5 12750 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
8602$as_echo "$GCONF_LIBS" >&6; } 12751$as_echo "$GCONF_LIBS" >&6; }
8603 else 12752 else
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12753 { $as_echo "$as_me:$LINENO: result: no" >&5
8605$as_echo "no" >&6; } 12754$as_echo "no" >&6; }
8606 GCONF_CFLAGS="" 12755 GCONF_CFLAGS=""
8607 GCONF_LIBS="" 12756 GCONF_LIBS=""
@@ -8627,7 +12776,9 @@ $as_echo "no" >&6; }
8627 12776
8628 if test "$HAVE_GCONF" = yes; then 12777 if test "$HAVE_GCONF" = yes; then
8629 12778
8630$as_echo "#define HAVE_GCONF 1" >>confdefs.h 12779cat >>confdefs.h <<\_ACEOF
12780#define HAVE_GCONF 1
12781_ACEOF
8631 12782
8632 fi 12783 fi
8633fi 12784fi
@@ -8635,14 +12786,18 @@ fi
8635HAVE_LIBSELINUX=no 12786HAVE_LIBSELINUX=no
8636LIBSELINUX_LIBS= 12787LIBSELINUX_LIBS=
8637if test "${with_selinux}" = "yes"; then 12788if test "${with_selinux}" = "yes"; then
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5 12789 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
8639$as_echo_n "checking for lgetfilecon in -lselinux... " >&6; } 12790$as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
8640if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then : 12791if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
8641 $as_echo_n "(cached) " >&6 12792 $as_echo_n "(cached) " >&6
8642else 12793else
8643 ac_check_lib_save_LIBS=$LIBS 12794 ac_check_lib_save_LIBS=$LIBS
8644LIBS="-lselinux $LIBS" 12795LIBS="-lselinux $LIBS"
8645cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12796cat >conftest.$ac_ext <<_ACEOF
12797/* confdefs.h. */
12798_ACEOF
12799cat confdefs.h >>conftest.$ac_ext
12800cat >>conftest.$ac_ext <<_ACEOF
8646/* end confdefs.h. */ 12801/* end confdefs.h. */
8647 12802
8648/* Override any GCC internal prototype to avoid an error. 12803/* Override any GCC internal prototype to avoid an error.
@@ -8660,18 +12815,43 @@ return lgetfilecon ();
8660 return 0; 12815 return 0;
8661} 12816}
8662_ACEOF 12817_ACEOF
8663if ac_fn_c_try_link "$LINENO"; then : 12818rm -f conftest.$ac_objext conftest$ac_exeext
12819if { (ac_try="$ac_link"
12820case "(($ac_try" in
12821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12822 *) ac_try_echo=$ac_try;;
12823esac
12824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12825$as_echo "$ac_try_echo") >&5
12826 (eval "$ac_link") 2>conftest.er1
12827 ac_status=$?
12828 grep -v '^ *+' conftest.er1 >conftest.err
12829 rm -f conftest.er1
12830 cat conftest.err >&5
12831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); } && {
12833 test -z "$ac_c_werror_flag" ||
12834 test ! -s conftest.err
12835 } && test -s conftest$ac_exeext && {
12836 test "$cross_compiling" = yes ||
12837 $as_test_x conftest$ac_exeext
12838 }; then
8664 ac_cv_lib_selinux_lgetfilecon=yes 12839 ac_cv_lib_selinux_lgetfilecon=yes
8665else 12840else
8666 ac_cv_lib_selinux_lgetfilecon=no 12841 $as_echo "$as_me: failed program was:" >&5
12842sed 's/^/| /' conftest.$ac_ext >&5
12843
12844 ac_cv_lib_selinux_lgetfilecon=no
8667fi 12845fi
8668rm -f core conftest.err conftest.$ac_objext \ 12846
8669 conftest$ac_exeext conftest.$ac_ext 12847rm -rf conftest.dSYM
12848rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12849 conftest$ac_exeext conftest.$ac_ext
8670LIBS=$ac_check_lib_save_LIBS 12850LIBS=$ac_check_lib_save_LIBS
8671fi 12851fi
8672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5 12852{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
8673$as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; } 12853$as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
8674if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then : 12854if test $ac_cv_lib_selinux_lgetfilecon = yes; then
8675 HAVE_LIBSELINUX=yes 12855 HAVE_LIBSELINUX=yes
8676else 12856else
8677 HAVE_LIBSELINUX=no 12857 HAVE_LIBSELINUX=no
@@ -8679,7 +12859,9 @@ fi
8679 12859
8680 if test "$HAVE_LIBSELINUX" = yes; then 12860 if test "$HAVE_LIBSELINUX" = yes; then
8681 12861
8682$as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h 12862cat >>confdefs.h <<\_ACEOF
12863#define HAVE_LIBSELINUX 1
12864_ACEOF
8683 12865
8684 LIBSELINUX_LIBS=-lselinux 12866 LIBSELINUX_LIBS=-lselinux
8685 fi 12867 fi
@@ -8687,14 +12869,19 @@ fi
8687 12869
8688 12870
8689HAVE_XAW3D=no 12871HAVE_XAW3D=no
12872LUCID_LIBW=
8690if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then 12873if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
8691 if test "$with_xaw3d" != no; then 12874 if test "$with_xaw3d" != no; then
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5 12875 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
8693$as_echo_n "checking for xaw3d... " >&6; } 12876$as_echo_n "checking for xaw3d... " >&6; }
8694 if test "${emacs_cv_xaw3d+set}" = set; then : 12877 if test "${emacs_cv_xaw3d+set}" = set; then
8695 $as_echo_n "(cached) " >&6 12878 $as_echo_n "(cached) " >&6
8696else 12879else
8697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12880 cat >conftest.$ac_ext <<_ACEOF
12881/* confdefs.h. */
12882_ACEOF
12883cat confdefs.h >>conftest.$ac_ext
12884cat >>conftest.$ac_ext <<_ACEOF
8698/* end confdefs.h. */ 12885/* end confdefs.h. */
8699 12886
8700#include <X11/Intrinsic.h> 12887#include <X11/Intrinsic.h>
@@ -8707,35 +12894,67 @@ main ()
8707 return 0; 12894 return 0;
8708} 12895}
8709_ACEOF 12896_ACEOF
8710if ac_fn_c_try_link "$LINENO"; then : 12897rm -f conftest.$ac_objext conftest$ac_exeext
12898if { (ac_try="$ac_link"
12899case "(($ac_try" in
12900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12901 *) ac_try_echo=$ac_try;;
12902esac
12903eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12904$as_echo "$ac_try_echo") >&5
12905 (eval "$ac_link") 2>conftest.er1
12906 ac_status=$?
12907 grep -v '^ *+' conftest.er1 >conftest.err
12908 rm -f conftest.er1
12909 cat conftest.err >&5
12910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); } && {
12912 test -z "$ac_c_werror_flag" ||
12913 test ! -s conftest.err
12914 } && test -s conftest$ac_exeext && {
12915 test "$cross_compiling" = yes ||
12916 $as_test_x conftest$ac_exeext
12917 }; then
8711 emacs_cv_xaw3d=yes 12918 emacs_cv_xaw3d=yes
8712else 12919else
8713 emacs_cv_xaw3d=no 12920 $as_echo "$as_me: failed program was:" >&5
12921sed 's/^/| /' conftest.$ac_ext >&5
12922
12923 emacs_cv_xaw3d=no
8714fi 12924fi
8715rm -f core conftest.err conftest.$ac_objext \ 12925
8716 conftest$ac_exeext conftest.$ac_ext 12926rm -rf conftest.dSYM
12927rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12928 conftest$ac_exeext conftest.$ac_ext
8717fi 12929fi
8718 12930
8719 else 12931 else
8720 emacs_cv_xaw3d=no 12932 emacs_cv_xaw3d=no
8721 fi 12933 fi
8722 if test $emacs_cv_xaw3d = yes; then 12934 if test $emacs_cv_xaw3d = yes; then
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5 12935 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
8724$as_echo "yes; using Lucid toolkit" >&6; } 12936$as_echo "yes; using Lucid toolkit" >&6; }
8725 USE_X_TOOLKIT=LUCID 12937 USE_X_TOOLKIT=LUCID
8726 HAVE_XAW3D=yes 12938 HAVE_XAW3D=yes
12939 LUCID_LIBW=-lXaw3d
8727 12940
8728$as_echo "#define HAVE_XAW3D 1" >>confdefs.h 12941cat >>confdefs.h <<\_ACEOF
12942#define HAVE_XAW3D 1
12943_ACEOF
8729 12944
8730 else 12945 else
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12946 { $as_echo "$as_me:$LINENO: result: no" >&5
8732$as_echo "no" >&6; } 12947$as_echo "no" >&6; }
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5 12948 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
8734$as_echo_n "checking for libXaw... " >&6; } 12949$as_echo_n "checking for libXaw... " >&6; }
8735 if test "${emacs_cv_xaw+set}" = set; then : 12950 if test "${emacs_cv_xaw+set}" = set; then
8736 $as_echo_n "(cached) " >&6 12951 $as_echo_n "(cached) " >&6
8737else 12952else
8738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12953 cat >conftest.$ac_ext <<_ACEOF
12954/* confdefs.h. */
12955_ACEOF
12956cat confdefs.h >>conftest.$ac_ext
12957cat >>conftest.$ac_ext <<_ACEOF
8739/* end confdefs.h. */ 12958/* end confdefs.h. */
8740 12959
8741#include <X11/Intrinsic.h> 12960#include <X11/Intrinsic.h>
@@ -8748,38 +12967,71 @@ main ()
8748 return 0; 12967 return 0;
8749} 12968}
8750_ACEOF 12969_ACEOF
8751if ac_fn_c_try_link "$LINENO"; then : 12970rm -f conftest.$ac_objext conftest$ac_exeext
12971if { (ac_try="$ac_link"
12972case "(($ac_try" in
12973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974 *) ac_try_echo=$ac_try;;
12975esac
12976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12977$as_echo "$ac_try_echo") >&5
12978 (eval "$ac_link") 2>conftest.er1
12979 ac_status=$?
12980 grep -v '^ *+' conftest.er1 >conftest.err
12981 rm -f conftest.er1
12982 cat conftest.err >&5
12983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); } && {
12985 test -z "$ac_c_werror_flag" ||
12986 test ! -s conftest.err
12987 } && test -s conftest$ac_exeext && {
12988 test "$cross_compiling" = yes ||
12989 $as_test_x conftest$ac_exeext
12990 }; then
8752 emacs_cv_xaw=yes 12991 emacs_cv_xaw=yes
8753else 12992else
8754 emacs_cv_xaw=no 12993 $as_echo "$as_me: failed program was:" >&5
12994sed 's/^/| /' conftest.$ac_ext >&5
12995
12996 emacs_cv_xaw=no
8755fi 12997fi
8756rm -f core conftest.err conftest.$ac_objext \ 12998
8757 conftest$ac_exeext conftest.$ac_ext 12999rm -rf conftest.dSYM
13000rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13001 conftest$ac_exeext conftest.$ac_ext
8758fi 13002fi
8759 13003
8760 if test $emacs_cv_xaw = yes; then 13004 if test $emacs_cv_xaw = yes; then
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5 13005 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
8762$as_echo "yes; using Lucid toolkit" >&6; } 13006$as_echo "yes; using Lucid toolkit" >&6; }
8763 USE_X_TOOLKIT=LUCID 13007 USE_X_TOOLKIT=LUCID
13008 LUCID_LIBW=-lXaw
8764 elif test x"${USE_X_TOOLKIT}" = xLUCID; then 13009 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
8765 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5 13010 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
13011$as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
13012 { (exit 1); exit 1; }; }
8766 else 13013 else
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5 13014 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
8768$as_echo "no; do not use toolkit by default" >&6; } 13015$as_echo "no; do not use toolkit by default" >&6; }
8769 USE_X_TOOLKIT=none 13016 USE_X_TOOLKIT=none
8770 fi 13017 fi
8771 fi 13018 fi
8772fi 13019fi
8773 13020
13021
8774X_TOOLKIT_TYPE=$USE_X_TOOLKIT 13022X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8775 13023
8776if test "${USE_X_TOOLKIT}" != "none"; then 13024if test "${USE_X_TOOLKIT}" != "none"; then
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5 13025 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8778$as_echo_n "checking X11 toolkit version... " >&6; } 13026$as_echo_n "checking X11 toolkit version... " >&6; }
8779 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then : 13027 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8780 $as_echo_n "(cached) " >&6 13028 $as_echo_n "(cached) " >&6
8781else 13029else
8782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13030 cat >conftest.$ac_ext <<_ACEOF
13031/* confdefs.h. */
13032_ACEOF
13033cat confdefs.h >>conftest.$ac_ext
13034cat >>conftest.$ac_ext <<_ACEOF
8783/* end confdefs.h. */ 13035/* end confdefs.h. */
8784#include <X11/Intrinsic.h> 13036#include <X11/Intrinsic.h>
8785int 13037int
@@ -8793,24 +13045,51 @@ fail;
8793 return 0; 13045 return 0;
8794} 13046}
8795_ACEOF 13047_ACEOF
8796if ac_fn_c_try_link "$LINENO"; then : 13048rm -f conftest.$ac_objext conftest$ac_exeext
13049if { (ac_try="$ac_link"
13050case "(($ac_try" in
13051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052 *) ac_try_echo=$ac_try;;
13053esac
13054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13055$as_echo "$ac_try_echo") >&5
13056 (eval "$ac_link") 2>conftest.er1
13057 ac_status=$?
13058 grep -v '^ *+' conftest.er1 >conftest.err
13059 rm -f conftest.er1
13060 cat conftest.err >&5
13061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); } && {
13063 test -z "$ac_c_werror_flag" ||
13064 test ! -s conftest.err
13065 } && test -s conftest$ac_exeext && {
13066 test "$cross_compiling" = yes ||
13067 $as_test_x conftest$ac_exeext
13068 }; then
8797 emacs_cv_x11_toolkit_version_6=yes 13069 emacs_cv_x11_toolkit_version_6=yes
8798else 13070else
8799 emacs_cv_x11_toolkit_version_6=no 13071 $as_echo "$as_me: failed program was:" >&5
13072sed 's/^/| /' conftest.$ac_ext >&5
13073
13074 emacs_cv_x11_toolkit_version_6=no
8800fi 13075fi
8801rm -f core conftest.err conftest.$ac_objext \ 13076
8802 conftest$ac_exeext conftest.$ac_ext 13077rm -rf conftest.dSYM
13078rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13079 conftest$ac_exeext conftest.$ac_ext
8803fi 13080fi
8804 13081
8805 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 13082 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8806 if test $emacs_cv_x11_toolkit_version_6 = yes; then 13083 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5 13084 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
8808$as_echo "6 or newer" >&6; } 13085$as_echo "6 or newer" >&6; }
8809 13086
8810$as_echo "#define HAVE_X11XTR6 1" >>confdefs.h 13087cat >>confdefs.h <<\_ACEOF
13088#define HAVE_X11XTR6 1
13089_ACEOF
8811 13090
8812 else 13091 else
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5 13092 { $as_echo "$as_me:$LINENO: result: before 6" >&5
8814$as_echo "before 6" >&6; } 13093$as_echo "before 6" >&6; }
8815 fi 13094 fi
8816 13095
@@ -8820,14 +13099,19 @@ $as_echo "before 6" >&6; }
8820 else 13099 else
8821 LIBS="-lXt $LIBS" 13100 LIBS="-lXt $LIBS"
8822 fi 13101 fi
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5 13102
13103{ $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8824$as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; } 13104$as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
8825if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then : 13105if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8826 $as_echo_n "(cached) " >&6 13106 $as_echo_n "(cached) " >&6
8827else 13107else
8828 ac_check_lib_save_LIBS=$LIBS 13108 ac_check_lib_save_LIBS=$LIBS
8829LIBS="-lXmu $LIBS" 13109LIBS="-lXmu $LIBS"
8830cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13110cat >conftest.$ac_ext <<_ACEOF
13111/* confdefs.h. */
13112_ACEOF
13113cat confdefs.h >>conftest.$ac_ext
13114cat >>conftest.$ac_ext <<_ACEOF
8831/* end confdefs.h. */ 13115/* end confdefs.h. */
8832 13116
8833/* Override any GCC internal prototype to avoid an error. 13117/* Override any GCC internal prototype to avoid an error.
@@ -8845,18 +13129,43 @@ return XmuConvertStandardSelection ();
8845 return 0; 13129 return 0;
8846} 13130}
8847_ACEOF 13131_ACEOF
8848if ac_fn_c_try_link "$LINENO"; then : 13132rm -f conftest.$ac_objext conftest$ac_exeext
13133if { (ac_try="$ac_link"
13134case "(($ac_try" in
13135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13136 *) ac_try_echo=$ac_try;;
13137esac
13138eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13139$as_echo "$ac_try_echo") >&5
13140 (eval "$ac_link") 2>conftest.er1
13141 ac_status=$?
13142 grep -v '^ *+' conftest.er1 >conftest.err
13143 rm -f conftest.er1
13144 cat conftest.err >&5
13145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); } && {
13147 test -z "$ac_c_werror_flag" ||
13148 test ! -s conftest.err
13149 } && test -s conftest$ac_exeext && {
13150 test "$cross_compiling" = yes ||
13151 $as_test_x conftest$ac_exeext
13152 }; then
8849 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes 13153 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
8850else 13154else
8851 ac_cv_lib_Xmu_XmuConvertStandardSelection=no 13155 $as_echo "$as_me: failed program was:" >&5
13156sed 's/^/| /' conftest.$ac_ext >&5
13157
13158 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
8852fi 13159fi
8853rm -f core conftest.err conftest.$ac_objext \ 13160
8854 conftest$ac_exeext conftest.$ac_ext 13161rm -rf conftest.dSYM
13162rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13163 conftest$ac_exeext conftest.$ac_ext
8855LIBS=$ac_check_lib_save_LIBS 13164LIBS=$ac_check_lib_save_LIBS
8856fi 13165fi
8857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 13166{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8858$as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; } 13167$as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
8859if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then : 13168if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8860 cat >>confdefs.h <<_ACEOF 13169 cat >>confdefs.h <<_ACEOF
8861#define HAVE_LIBXMU 1 13170#define HAVE_LIBXMU 1
8862_ACEOF 13171_ACEOF
@@ -8871,14 +13180,19 @@ fi
8871# On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. 13180# On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8872if test "${HAVE_X11}" = "yes"; then 13181if test "${HAVE_X11}" = "yes"; then
8873 if test "${USE_X_TOOLKIT}" != "none"; then 13182 if test "${USE_X_TOOLKIT}" != "none"; then
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 13183
13184{ $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8875$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } 13185$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8876if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then : 13186if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8877 $as_echo_n "(cached) " >&6 13187 $as_echo_n "(cached) " >&6
8878else 13188else
8879 ac_check_lib_save_LIBS=$LIBS 13189 ac_check_lib_save_LIBS=$LIBS
8880LIBS="-lXext $LIBS" 13190LIBS="-lXext $LIBS"
8881cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13191cat >conftest.$ac_ext <<_ACEOF
13192/* confdefs.h. */
13193_ACEOF
13194cat confdefs.h >>conftest.$ac_ext
13195cat >>conftest.$ac_ext <<_ACEOF
8882/* end confdefs.h. */ 13196/* end confdefs.h. */
8883 13197
8884/* Override any GCC internal prototype to avoid an error. 13198/* Override any GCC internal prototype to avoid an error.
@@ -8896,18 +13210,43 @@ return XShapeQueryExtension ();
8896 return 0; 13210 return 0;
8897} 13211}
8898_ACEOF 13212_ACEOF
8899if ac_fn_c_try_link "$LINENO"; then : 13213rm -f conftest.$ac_objext conftest$ac_exeext
13214if { (ac_try="$ac_link"
13215case "(($ac_try" in
13216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13217 *) ac_try_echo=$ac_try;;
13218esac
13219eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13220$as_echo "$ac_try_echo") >&5
13221 (eval "$ac_link") 2>conftest.er1
13222 ac_status=$?
13223 grep -v '^ *+' conftest.er1 >conftest.err
13224 rm -f conftest.er1
13225 cat conftest.err >&5
13226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); } && {
13228 test -z "$ac_c_werror_flag" ||
13229 test ! -s conftest.err
13230 } && test -s conftest$ac_exeext && {
13231 test "$cross_compiling" = yes ||
13232 $as_test_x conftest$ac_exeext
13233 }; then
8900 ac_cv_lib_Xext_XShapeQueryExtension=yes 13234 ac_cv_lib_Xext_XShapeQueryExtension=yes
8901else 13235else
8902 ac_cv_lib_Xext_XShapeQueryExtension=no 13236 $as_echo "$as_me: failed program was:" >&5
13237sed 's/^/| /' conftest.$ac_ext >&5
13238
13239 ac_cv_lib_Xext_XShapeQueryExtension=no
8903fi 13240fi
8904rm -f core conftest.err conftest.$ac_objext \ 13241
8905 conftest$ac_exeext conftest.$ac_ext 13242rm -rf conftest.dSYM
13243rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13244 conftest$ac_exeext conftest.$ac_ext
8906LIBS=$ac_check_lib_save_LIBS 13245LIBS=$ac_check_lib_save_LIBS
8907fi 13246fi
8908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 13247{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8909$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } 13248$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8910if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then : 13249if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8911 cat >>confdefs.h <<_ACEOF 13250 cat >>confdefs.h <<_ACEOF
8912#define HAVE_LIBXEXT 1 13251#define HAVE_LIBXEXT 1
8913_ACEOF 13252_ACEOF
@@ -8919,13 +13258,18 @@ fi
8919 fi 13258 fi
8920fi 13259fi
8921 13260
13261LIBXP=
8922if test "${USE_X_TOOLKIT}" = "MOTIF"; then 13262if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5 13263 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8924$as_echo_n "checking for Motif version 2.1... " >&6; } 13264$as_echo_n "checking for Motif version 2.1... " >&6; }
8925if test "${emacs_cv_motif_version_2_1+set}" = set; then : 13265if test "${emacs_cv_motif_version_2_1+set}" = set; then
8926 $as_echo_n "(cached) " >&6 13266 $as_echo_n "(cached) " >&6
8927else 13267else
8928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13268 cat >conftest.$ac_ext <<_ACEOF
13269/* confdefs.h. */
13270_ACEOF
13271cat confdefs.h >>conftest.$ac_ext
13272cat >>conftest.$ac_ext <<_ACEOF
8929/* end confdefs.h. */ 13273/* end confdefs.h. */
8930#include <Xm/Xm.h> 13274#include <Xm/Xm.h>
8931int 13275int
@@ -8940,29 +13284,56 @@ Motif version prior to 2.1.
8940 return 0; 13284 return 0;
8941} 13285}
8942_ACEOF 13286_ACEOF
8943if ac_fn_c_try_compile "$LINENO"; then : 13287rm -f conftest.$ac_objext
13288if { (ac_try="$ac_compile"
13289case "(($ac_try" in
13290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13291 *) ac_try_echo=$ac_try;;
13292esac
13293eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13294$as_echo "$ac_try_echo") >&5
13295 (eval "$ac_compile") 2>conftest.er1
13296 ac_status=$?
13297 grep -v '^ *+' conftest.er1 >conftest.err
13298 rm -f conftest.er1
13299 cat conftest.err >&5
13300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); } && {
13302 test -z "$ac_c_werror_flag" ||
13303 test ! -s conftest.err
13304 } && test -s conftest.$ac_objext; then
8944 emacs_cv_motif_version_2_1=yes 13305 emacs_cv_motif_version_2_1=yes
8945else 13306else
8946 emacs_cv_motif_version_2_1=no 13307 $as_echo "$as_me: failed program was:" >&5
13308sed 's/^/| /' conftest.$ac_ext >&5
13309
13310 emacs_cv_motif_version_2_1=no
8947fi 13311fi
13312
8948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8949fi 13314fi
8950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5 13315{ $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8951$as_echo "$emacs_cv_motif_version_2_1" >&6; } 13316$as_echo "$emacs_cv_motif_version_2_1" >&6; }
8952 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 13317 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
8953 if test $emacs_cv_motif_version_2_1 = yes; then 13318 if test $emacs_cv_motif_version_2_1 = yes; then
8954 HAVE_LIBXP=no 13319 HAVE_LIBXP=no
8955 13320
8956$as_echo "#define HAVE_MOTIF_2_1 1" >>confdefs.h 13321cat >>confdefs.h <<\_ACEOF
13322#define HAVE_MOTIF_2_1 1
13323_ACEOF
8957 13324
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5 13325 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8959$as_echo_n "checking for XpCreateContext in -lXp... " >&6; } 13326$as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
8960if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then : 13327if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8961 $as_echo_n "(cached) " >&6 13328 $as_echo_n "(cached) " >&6
8962else 13329else
8963 ac_check_lib_save_LIBS=$LIBS 13330 ac_check_lib_save_LIBS=$LIBS
8964LIBS="-lXp $LIBS" 13331LIBS="-lXp $LIBS"
8965cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13332cat >conftest.$ac_ext <<_ACEOF
13333/* confdefs.h. */
13334_ACEOF
13335cat confdefs.h >>conftest.$ac_ext
13336cat >>conftest.$ac_ext <<_ACEOF
8966/* end confdefs.h. */ 13337/* end confdefs.h. */
8967 13338
8968/* Override any GCC internal prototype to avoid an error. 13339/* Override any GCC internal prototype to avoid an error.
@@ -8980,30 +13351,58 @@ return XpCreateContext ();
8980 return 0; 13351 return 0;
8981} 13352}
8982_ACEOF 13353_ACEOF
8983if ac_fn_c_try_link "$LINENO"; then : 13354rm -f conftest.$ac_objext conftest$ac_exeext
13355if { (ac_try="$ac_link"
13356case "(($ac_try" in
13357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13358 *) ac_try_echo=$ac_try;;
13359esac
13360eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13361$as_echo "$ac_try_echo") >&5
13362 (eval "$ac_link") 2>conftest.er1
13363 ac_status=$?
13364 grep -v '^ *+' conftest.er1 >conftest.err
13365 rm -f conftest.er1
13366 cat conftest.err >&5
13367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); } && {
13369 test -z "$ac_c_werror_flag" ||
13370 test ! -s conftest.err
13371 } && test -s conftest$ac_exeext && {
13372 test "$cross_compiling" = yes ||
13373 $as_test_x conftest$ac_exeext
13374 }; then
8984 ac_cv_lib_Xp_XpCreateContext=yes 13375 ac_cv_lib_Xp_XpCreateContext=yes
8985else 13376else
8986 ac_cv_lib_Xp_XpCreateContext=no 13377 $as_echo "$as_me: failed program was:" >&5
13378sed 's/^/| /' conftest.$ac_ext >&5
13379
13380 ac_cv_lib_Xp_XpCreateContext=no
8987fi 13381fi
8988rm -f core conftest.err conftest.$ac_objext \ 13382
8989 conftest$ac_exeext conftest.$ac_ext 13383rm -rf conftest.dSYM
13384rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13385 conftest$ac_exeext conftest.$ac_ext
8990LIBS=$ac_check_lib_save_LIBS 13386LIBS=$ac_check_lib_save_LIBS
8991fi 13387fi
8992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5 13388{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8993$as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; } 13389$as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
8994if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then : 13390if test $ac_cv_lib_Xp_XpCreateContext = yes; then
8995 HAVE_LIBXP=yes 13391 HAVE_LIBXP=yes
8996fi 13392fi
8997 13393
8998 if test ${HAVE_LIBXP} = yes; then 13394 if test ${HAVE_LIBXP} = yes; then
8999 13395
9000$as_echo "#define HAVE_LIBXP 1" >>confdefs.h 13396cat >>confdefs.h <<\_ACEOF
13397#define HAVE_LIBXP 1
13398_ACEOF
9001 13399
13400 LIBXP=-lXp
9002 fi 13401 fi
9003 else 13402 else
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5 13403 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
9005$as_echo_n "checking for LessTif where some systems put it... " >&6; } 13404$as_echo_n "checking for LessTif where some systems put it... " >&6; }
9006if test "${emacs_cv_lesstif+set}" = set; then : 13405if test "${emacs_cv_lesstif+set}" = set; then
9007 $as_echo_n "(cached) " >&6 13406 $as_echo_n "(cached) " >&6
9008else 13407else
9009 # We put this in CFLAGS temporarily to precede other -I options 13408 # We put this in CFLAGS temporarily to precede other -I options
@@ -9013,7 +13412,11 @@ else
9013 OLD_CFLAGS=$CFLAGS 13412 OLD_CFLAGS=$CFLAGS
9014 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" 13413 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9015 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" 13414 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13415 cat >conftest.$ac_ext <<_ACEOF
13416/* confdefs.h. */
13417_ACEOF
13418cat confdefs.h >>conftest.$ac_ext
13419cat >>conftest.$ac_ext <<_ACEOF
9017/* end confdefs.h. */ 13420/* end confdefs.h. */
9018#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h> 13421#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9019int 13422int
@@ -9024,14 +13427,35 @@ int x = 5;
9024 return 0; 13427 return 0;
9025} 13428}
9026_ACEOF 13429_ACEOF
9027if ac_fn_c_try_compile "$LINENO"; then : 13430rm -f conftest.$ac_objext
13431if { (ac_try="$ac_compile"
13432case "(($ac_try" in
13433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13434 *) ac_try_echo=$ac_try;;
13435esac
13436eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13437$as_echo "$ac_try_echo") >&5
13438 (eval "$ac_compile") 2>conftest.er1
13439 ac_status=$?
13440 grep -v '^ *+' conftest.er1 >conftest.err
13441 rm -f conftest.er1
13442 cat conftest.err >&5
13443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); } && {
13445 test -z "$ac_c_werror_flag" ||
13446 test ! -s conftest.err
13447 } && test -s conftest.$ac_objext; then
9028 emacs_cv_lesstif=yes 13448 emacs_cv_lesstif=yes
9029else 13449else
9030 emacs_cv_lesstif=no 13450 $as_echo "$as_me: failed program was:" >&5
13451sed 's/^/| /' conftest.$ac_ext >&5
13452
13453 emacs_cv_lesstif=no
9031fi 13454fi
13455
9032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9033fi 13457fi
9034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5 13458{ $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
9035$as_echo "$emacs_cv_lesstif" >&6; } 13459$as_echo "$emacs_cv_lesstif" >&6; }
9036 if test $emacs_cv_lesstif = yes; then 13460 if test $emacs_cv_lesstif = yes; then
9037 # Make sure this -I option remains in CPPFLAGS after it is set 13461 # Make sure this -I option remains in CPPFLAGS after it is set
@@ -9049,31 +13473,45 @@ $as_echo "$emacs_cv_lesstif" >&6; }
9049fi 13473fi
9050 13474
9051 13475
13476
13477
9052USE_TOOLKIT_SCROLL_BARS=no 13478USE_TOOLKIT_SCROLL_BARS=no
9053if test "${with_toolkit_scroll_bars}" != "no"; then 13479if test "${with_toolkit_scroll_bars}" != "no"; then
9054 if test "${USE_X_TOOLKIT}" != "none"; then 13480 if test "${USE_X_TOOLKIT}" != "none"; then
9055 if test "${USE_X_TOOLKIT}" = "MOTIF"; then 13481 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9056 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h 13482 cat >>confdefs.h <<\_ACEOF
13483#define USE_TOOLKIT_SCROLL_BARS 1
13484_ACEOF
9057 13485
9058 HAVE_XAW3D=no 13486 HAVE_XAW3D=no
9059 USE_TOOLKIT_SCROLL_BARS=yes 13487 USE_TOOLKIT_SCROLL_BARS=yes
9060 elif test "${HAVE_XAW3D}" = "yes"; then 13488 elif test "${HAVE_XAW3D}" = "yes"; then
9061 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h 13489 cat >>confdefs.h <<\_ACEOF
13490#define USE_TOOLKIT_SCROLL_BARS 1
13491_ACEOF
9062 13492
9063 USE_TOOLKIT_SCROLL_BARS=yes 13493 USE_TOOLKIT_SCROLL_BARS=yes
9064 fi 13494 fi
9065 elif test "${HAVE_GTK}" = "yes"; then 13495 elif test "${HAVE_GTK}" = "yes"; then
9066 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h 13496 cat >>confdefs.h <<\_ACEOF
13497#define USE_TOOLKIT_SCROLL_BARS 1
13498_ACEOF
9067 13499
9068 USE_TOOLKIT_SCROLL_BARS=yes 13500 USE_TOOLKIT_SCROLL_BARS=yes
9069 elif test "${HAVE_NS}" = "yes"; then 13501 elif test "${HAVE_NS}" = "yes"; then
9070 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h 13502 cat >>confdefs.h <<\_ACEOF
13503#define USE_TOOLKIT_SCROLL_BARS 1
13504_ACEOF
9071 13505
9072 USE_TOOLKIT_SCROLL_BARS=yes 13506 USE_TOOLKIT_SCROLL_BARS=yes
9073 fi 13507 fi
9074fi 13508fi
9075 13509
9076cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13510cat >conftest.$ac_ext <<_ACEOF
13511/* confdefs.h. */
13512_ACEOF
13513cat confdefs.h >>conftest.$ac_ext
13514cat >>conftest.$ac_ext <<_ACEOF
9077/* end confdefs.h. */ 13515/* end confdefs.h. */
9078 13516
9079 #include <X11/Xlib.h> 13517 #include <X11/Xlib.h>
@@ -9086,20 +13524,45 @@ XIMProc callback;
9086 return 0; 13524 return 0;
9087} 13525}
9088_ACEOF 13526_ACEOF
9089if ac_fn_c_try_compile "$LINENO"; then : 13527rm -f conftest.$ac_objext
13528if { (ac_try="$ac_compile"
13529case "(($ac_try" in
13530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13531 *) ac_try_echo=$ac_try;;
13532esac
13533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13534$as_echo "$ac_try_echo") >&5
13535 (eval "$ac_compile") 2>conftest.er1
13536 ac_status=$?
13537 grep -v '^ *+' conftest.er1 >conftest.err
13538 rm -f conftest.er1
13539 cat conftest.err >&5
13540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } && {
13542 test -z "$ac_c_werror_flag" ||
13543 test ! -s conftest.err
13544 } && test -s conftest.$ac_objext; then
9090 HAVE_XIM=yes 13545 HAVE_XIM=yes
9091 13546
9092$as_echo "#define HAVE_XIM 1" >>confdefs.h 13547cat >>confdefs.h <<\_ACEOF
13548#define HAVE_XIM 1
13549_ACEOF
9093 13550
9094else 13551else
9095 HAVE_XIM=no 13552 $as_echo "$as_me: failed program was:" >&5
13553sed 's/^/| /' conftest.$ac_ext >&5
13554
13555 HAVE_XIM=no
9096fi 13556fi
13557
9097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9098 13559
9099 13560
9100if test "${with_xim}" != "no"; then 13561if test "${with_xim}" != "no"; then
9101 13562
9102$as_echo "#define USE_XIM 1" >>confdefs.h 13563cat >>confdefs.h <<\_ACEOF
13564#define USE_XIM 1
13565_ACEOF
9103 13566
9104fi 13567fi
9105 13568
@@ -9109,7 +13572,11 @@ if test "${HAVE_XIM}" != "no"; then
9109 if test "$GCC" = yes; then 13572 if test "$GCC" = yes; then
9110 CFLAGS="$CFLAGS --pedantic-errors" 13573 CFLAGS="$CFLAGS --pedantic-errors"
9111 fi 13574 fi
9112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13575 cat >conftest.$ac_ext <<_ACEOF
13576/* confdefs.h. */
13577_ACEOF
13578cat confdefs.h >>conftest.$ac_ext
13579cat >>conftest.$ac_ext <<_ACEOF
9113/* end confdefs.h. */ 13580/* end confdefs.h. */
9114 13581
9115#include <X11/Xlib.h> 13582#include <X11/Xlib.h>
@@ -9135,15 +13602,43 @@ extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9135 return 0; 13602 return 0;
9136} 13603}
9137_ACEOF 13604_ACEOF
9138if ac_fn_c_try_compile "$LINENO"; then : 13605rm -f conftest.$ac_objext
13606if { (ac_try="$ac_compile"
13607case "(($ac_try" in
13608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609 *) ac_try_echo=$ac_try;;
13610esac
13611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13612$as_echo "$ac_try_echo") >&5
13613 (eval "$ac_compile") 2>conftest.er1
13614 ac_status=$?
13615 grep -v '^ *+' conftest.er1 >conftest.err
13616 rm -f conftest.er1
13617 cat conftest.err >&5
13618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } && {
13620 test -z "$ac_c_werror_flag" ||
13621 test ! -s conftest.err
13622 } && test -s conftest.$ac_objext; then
9139 emacs_cv_arg6_star=yes 13623 emacs_cv_arg6_star=yes
13624else
13625 $as_echo "$as_me: failed program was:" >&5
13626sed 's/^/| /' conftest.$ac_ext >&5
13627
13628
9140fi 13629fi
13630
9141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9142 if test "$emacs_cv_arg6_star" = yes; then 13632
9143 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h 13633 if test "$emacs_cv_arg6_star" = yes; then
13634 cat >>confdefs.h <<\_ACEOF
13635#define XRegisterIMInstantiateCallback_arg6 XPointer*
13636_ACEOF
9144 13637
9145 else 13638 else
9146 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h 13639 cat >>confdefs.h <<\_ACEOF
13640#define XRegisterIMInstantiateCallback_arg6 XPointer
13641_ACEOF
9147 13642
9148 fi 13643 fi
9149 CFLAGS=$late_CFLAGS 13644 CFLAGS=$late_CFLAGS
@@ -9160,9 +13655,9 @@ if test "${HAVE_X11}" = "yes"; then
9160 13655
9161 # Extract the first word of "pkg-config", so it can be a program name with args. 13656 # Extract the first word of "pkg-config", so it can be a program name with args.
9162set dummy pkg-config; ac_word=$2 13657set dummy pkg-config; ac_word=$2
9163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13658{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9164$as_echo_n "checking for $ac_word... " >&6; } 13659$as_echo_n "checking for $ac_word... " >&6; }
9165if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 13660if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9166 $as_echo_n "(cached) " >&6 13661 $as_echo_n "(cached) " >&6
9167else 13662else
9168 case $PKG_CONFIG in 13663 case $PKG_CONFIG in
@@ -9175,14 +13670,14 @@ for as_dir in $PATH
9175do 13670do
9176 IFS=$as_save_IFS 13671 IFS=$as_save_IFS
9177 test -z "$as_dir" && as_dir=. 13672 test -z "$as_dir" && as_dir=.
9178 for ac_exec_ext in '' $ac_executable_extensions; do 13673 for ac_exec_ext in '' $ac_executable_extensions; do
9179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9180 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13675 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13676 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9182 break 2 13677 break 2
9183 fi 13678 fi
9184done 13679done
9185 done 13680done
9186IFS=$as_save_IFS 13681IFS=$as_save_IFS
9187 13682
9188 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 13683 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -9191,10 +13686,10 @@ esac
9191fi 13686fi
9192PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13687PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9193if test -n "$PKG_CONFIG"; then 13688if test -n "$PKG_CONFIG"; then
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13689 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9195$as_echo "$PKG_CONFIG" >&6; } 13690$as_echo "$PKG_CONFIG" >&6; }
9196else 13691else
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13692 { $as_echo "$as_me:$LINENO: result: no" >&5
9198$as_echo "no" >&6; } 13693$as_echo "no" >&6; }
9199fi 13694fi
9200 13695
@@ -9205,27 +13700,27 @@ fi
9205 else 13700 else
9206 PKG_CONFIG_MIN_VERSION=0.9.0 13701 PKG_CONFIG_MIN_VERSION=0.9.0
9207 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 13702 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5 13703 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
9209$as_echo_n "checking for fontconfig >= 2.2.0... " >&6; } 13704$as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9210 13705
9211 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then 13706 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13707 { $as_echo "$as_me:$LINENO: result: yes" >&5
9213$as_echo "yes" >&6; } 13708$as_echo "yes" >&6; }
9214 succeeded=yes 13709 succeeded=yes
9215 13710
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5 13711 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
9217$as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; } 13712$as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9218 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` 13713 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5 13714 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
9220$as_echo "$FONTCONFIG_CFLAGS" >&6; } 13715$as_echo "$FONTCONFIG_CFLAGS" >&6; }
9221 13716
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5 13717 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
9223$as_echo_n "checking FONTCONFIG_LIBS... " >&6; } 13718$as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9224 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` 13719 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5 13720 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
9226$as_echo "$FONTCONFIG_LIBS" >&6; } 13721$as_echo "$FONTCONFIG_LIBS" >&6; }
9227 else 13722 else
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13723 { $as_echo "$as_me:$LINENO: result: no" >&5
9229$as_echo "no" >&6; } 13724$as_echo "no" >&6; }
9230 FONTCONFIG_CFLAGS="" 13725 FONTCONFIG_CFLAGS=""
9231 FONTCONFIG_LIBS="" 13726 FONTCONFIG_LIBS=""
@@ -9262,9 +13757,9 @@ $as_echo "no" >&6; }
9262 13757
9263 # Extract the first word of "pkg-config", so it can be a program name with args. 13758 # Extract the first word of "pkg-config", so it can be a program name with args.
9264set dummy pkg-config; ac_word=$2 13759set dummy pkg-config; ac_word=$2
9265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13760{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9266$as_echo_n "checking for $ac_word... " >&6; } 13761$as_echo_n "checking for $ac_word... " >&6; }
9267if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 13762if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9268 $as_echo_n "(cached) " >&6 13763 $as_echo_n "(cached) " >&6
9269else 13764else
9270 case $PKG_CONFIG in 13765 case $PKG_CONFIG in
@@ -9277,14 +13772,14 @@ for as_dir in $PATH
9277do 13772do
9278 IFS=$as_save_IFS 13773 IFS=$as_save_IFS
9279 test -z "$as_dir" && as_dir=. 13774 test -z "$as_dir" && as_dir=.
9280 for ac_exec_ext in '' $ac_executable_extensions; do 13775 for ac_exec_ext in '' $ac_executable_extensions; do
9281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9282 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13777 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13778 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9284 break 2 13779 break 2
9285 fi 13780 fi
9286done 13781done
9287 done 13782done
9288IFS=$as_save_IFS 13783IFS=$as_save_IFS
9289 13784
9290 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 13785 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -9293,10 +13788,10 @@ esac
9293fi 13788fi
9294PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13789PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9295if test -n "$PKG_CONFIG"; then 13790if test -n "$PKG_CONFIG"; then
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13791 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9297$as_echo "$PKG_CONFIG" >&6; } 13792$as_echo "$PKG_CONFIG" >&6; }
9298else 13793else
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13794 { $as_echo "$as_me:$LINENO: result: no" >&5
9300$as_echo "no" >&6; } 13795$as_echo "no" >&6; }
9301fi 13796fi
9302 13797
@@ -9307,27 +13802,27 @@ fi
9307 else 13802 else
9308 PKG_CONFIG_MIN_VERSION=0.9.0 13803 PKG_CONFIG_MIN_VERSION=0.9.0
9309 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 13804 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5 13805 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
9311$as_echo_n "checking for xft >= 0.13.0... " >&6; } 13806$as_echo_n "checking for xft >= 0.13.0... " >&6; }
9312 13807
9313 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then 13808 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13809 { $as_echo "$as_me:$LINENO: result: yes" >&5
9315$as_echo "yes" >&6; } 13810$as_echo "yes" >&6; }
9316 succeeded=yes 13811 succeeded=yes
9317 13812
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5 13813 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
9319$as_echo_n "checking XFT_CFLAGS... " >&6; } 13814$as_echo_n "checking XFT_CFLAGS... " >&6; }
9320 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'` 13815 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5 13816 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
9322$as_echo "$XFT_CFLAGS" >&6; } 13817$as_echo "$XFT_CFLAGS" >&6; }
9323 13818
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5 13819 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
9325$as_echo_n "checking XFT_LIBS... " >&6; } 13820$as_echo_n "checking XFT_LIBS... " >&6; }
9326 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'` 13821 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5 13822 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
9328$as_echo "$XFT_LIBS" >&6; } 13823$as_echo "$XFT_LIBS" >&6; }
9329 else 13824 else
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13825 { $as_echo "$as_me:$LINENO: result: no" >&5
9331$as_echo "no" >&6; } 13826$as_echo "no" >&6; }
9332 XFT_CFLAGS="" 13827 XFT_CFLAGS=""
9333 XFT_LIBS="" 13828 XFT_LIBS=""
@@ -9354,14 +13849,18 @@ $as_echo "no" >&6; }
9354 ## Because xftfont.c uses XRenderQueryExtension, we also 13849 ## Because xftfont.c uses XRenderQueryExtension, we also
9355 ## need to link to -lXrender. 13850 ## need to link to -lXrender.
9356 HAVE_XRENDER=no 13851 HAVE_XRENDER=no
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5 13852 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
9358$as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; } 13853$as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
9359if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then : 13854if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
9360 $as_echo_n "(cached) " >&6 13855 $as_echo_n "(cached) " >&6
9361else 13856else
9362 ac_check_lib_save_LIBS=$LIBS 13857 ac_check_lib_save_LIBS=$LIBS
9363LIBS="-lXrender $LIBS" 13858LIBS="-lXrender $LIBS"
9364cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13859cat >conftest.$ac_ext <<_ACEOF
13860/* confdefs.h. */
13861_ACEOF
13862cat confdefs.h >>conftest.$ac_ext
13863cat >>conftest.$ac_ext <<_ACEOF
9365/* end confdefs.h. */ 13864/* end confdefs.h. */
9366 13865
9367/* Override any GCC internal prototype to avoid an error. 13866/* Override any GCC internal prototype to avoid an error.
@@ -9379,18 +13878,43 @@ return XRenderQueryExtension ();
9379 return 0; 13878 return 0;
9380} 13879}
9381_ACEOF 13880_ACEOF
9382if ac_fn_c_try_link "$LINENO"; then : 13881rm -f conftest.$ac_objext conftest$ac_exeext
13882if { (ac_try="$ac_link"
13883case "(($ac_try" in
13884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885 *) ac_try_echo=$ac_try;;
13886esac
13887eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13888$as_echo "$ac_try_echo") >&5
13889 (eval "$ac_link") 2>conftest.er1
13890 ac_status=$?
13891 grep -v '^ *+' conftest.er1 >conftest.err
13892 rm -f conftest.er1
13893 cat conftest.err >&5
13894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); } && {
13896 test -z "$ac_c_werror_flag" ||
13897 test ! -s conftest.err
13898 } && test -s conftest$ac_exeext && {
13899 test "$cross_compiling" = yes ||
13900 $as_test_x conftest$ac_exeext
13901 }; then
9383 ac_cv_lib_Xrender_XRenderQueryExtension=yes 13902 ac_cv_lib_Xrender_XRenderQueryExtension=yes
9384else 13903else
9385 ac_cv_lib_Xrender_XRenderQueryExtension=no 13904 $as_echo "$as_me: failed program was:" >&5
13905sed 's/^/| /' conftest.$ac_ext >&5
13906
13907 ac_cv_lib_Xrender_XRenderQueryExtension=no
9386fi 13908fi
9387rm -f core conftest.err conftest.$ac_objext \ 13909
9388 conftest$ac_exeext conftest.$ac_ext 13910rm -rf conftest.dSYM
13911rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13912 conftest$ac_exeext conftest.$ac_ext
9389LIBS=$ac_check_lib_save_LIBS 13913LIBS=$ac_check_lib_save_LIBS
9390fi 13914fi
9391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5 13915{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
9392$as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; } 13916$as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
9393if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then : 13917if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
9394 HAVE_XRENDER=yes 13918 HAVE_XRENDER=yes
9395fi 13919fi
9396 13920
@@ -9402,16 +13926,146 @@ fi
9402 CFLAGS="$CFLAGS $XFT_CFLAGS" 13926 CFLAGS="$CFLAGS $XFT_CFLAGS"
9403 XFT_LIBS="-lXrender $XFT_LIBS" 13927 XFT_LIBS="-lXrender $XFT_LIBS"
9404 LIBS="$XFT_LIBS $LIBS" 13928 LIBS="$XFT_LIBS $LIBS"
9405 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default" 13929 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
9406if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then : 13930 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5 13931$as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13932if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13933 $as_echo_n "(cached) " >&6
13934fi
13935{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13936$as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13937else
13938 # Is the header compilable?
13939{ $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13940$as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13941cat >conftest.$ac_ext <<_ACEOF
13942/* confdefs.h. */
13943_ACEOF
13944cat confdefs.h >>conftest.$ac_ext
13945cat >>conftest.$ac_ext <<_ACEOF
13946/* end confdefs.h. */
13947$ac_includes_default
13948#include <X11/Xft/Xft.h>
13949_ACEOF
13950rm -f conftest.$ac_objext
13951if { (ac_try="$ac_compile"
13952case "(($ac_try" in
13953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13954 *) ac_try_echo=$ac_try;;
13955esac
13956eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13957$as_echo "$ac_try_echo") >&5
13958 (eval "$ac_compile") 2>conftest.er1
13959 ac_status=$?
13960 grep -v '^ *+' conftest.er1 >conftest.err
13961 rm -f conftest.er1
13962 cat conftest.err >&5
13963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } && {
13965 test -z "$ac_c_werror_flag" ||
13966 test ! -s conftest.err
13967 } && test -s conftest.$ac_objext; then
13968 ac_header_compiler=yes
13969else
13970 $as_echo "$as_me: failed program was:" >&5
13971sed 's/^/| /' conftest.$ac_ext >&5
13972
13973 ac_header_compiler=no
13974fi
13975
13976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13977{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13978$as_echo "$ac_header_compiler" >&6; }
13979
13980# Is the header present?
13981{ $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13982$as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13983cat >conftest.$ac_ext <<_ACEOF
13984/* confdefs.h. */
13985_ACEOF
13986cat confdefs.h >>conftest.$ac_ext
13987cat >>conftest.$ac_ext <<_ACEOF
13988/* end confdefs.h. */
13989#include <X11/Xft/Xft.h>
13990_ACEOF
13991if { (ac_try="$ac_cpp conftest.$ac_ext"
13992case "(($ac_try" in
13993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13994 *) ac_try_echo=$ac_try;;
13995esac
13996eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13997$as_echo "$ac_try_echo") >&5
13998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13999 ac_status=$?
14000 grep -v '^ *+' conftest.er1 >conftest.err
14001 rm -f conftest.er1
14002 cat conftest.err >&5
14003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); } >/dev/null && {
14005 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14006 test ! -s conftest.err
14007 }; then
14008 ac_header_preproc=yes
14009else
14010 $as_echo "$as_me: failed program was:" >&5
14011sed 's/^/| /' conftest.$ac_ext >&5
14012
14013 ac_header_preproc=no
14014fi
14015
14016rm -f conftest.err conftest.$ac_ext
14017{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14018$as_echo "$ac_header_preproc" >&6; }
14019
14020# So? What about this header?
14021case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14022 yes:no: )
14023 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14024$as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14025 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14026$as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14027 ac_header_preproc=yes
14028 ;;
14029 no:yes:* )
14030 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14031$as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14032 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14033$as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14034 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14035$as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14036 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14037$as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14038 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14039$as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14040 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14041$as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14042
14043 ;;
14044esac
14045{ $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14046$as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14047if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14048 $as_echo_n "(cached) " >&6
14049else
14050 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14051fi
14052{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14053$as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14054
14055fi
14056if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14057 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
9408$as_echo_n "checking for XftFontOpen in -lXft... " >&6; } 14058$as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
9409if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then : 14059if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
9410 $as_echo_n "(cached) " >&6 14060 $as_echo_n "(cached) " >&6
9411else 14061else
9412 ac_check_lib_save_LIBS=$LIBS 14062 ac_check_lib_save_LIBS=$LIBS
9413LIBS="-lXft $XFT_LIBS $LIBS" 14063LIBS="-lXft $XFT_LIBS $LIBS"
9414cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14064cat >conftest.$ac_ext <<_ACEOF
14065/* confdefs.h. */
14066_ACEOF
14067cat confdefs.h >>conftest.$ac_ext
14068cat >>conftest.$ac_ext <<_ACEOF
9415/* end confdefs.h. */ 14069/* end confdefs.h. */
9416 14070
9417/* Override any GCC internal prototype to avoid an error. 14071/* Override any GCC internal prototype to avoid an error.
@@ -9429,18 +14083,43 @@ return XftFontOpen ();
9429 return 0; 14083 return 0;
9430} 14084}
9431_ACEOF 14085_ACEOF
9432if ac_fn_c_try_link "$LINENO"; then : 14086rm -f conftest.$ac_objext conftest$ac_exeext
14087if { (ac_try="$ac_link"
14088case "(($ac_try" in
14089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14090 *) ac_try_echo=$ac_try;;
14091esac
14092eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14093$as_echo "$ac_try_echo") >&5
14094 (eval "$ac_link") 2>conftest.er1
14095 ac_status=$?
14096 grep -v '^ *+' conftest.er1 >conftest.err
14097 rm -f conftest.er1
14098 cat conftest.err >&5
14099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } && {
14101 test -z "$ac_c_werror_flag" ||
14102 test ! -s conftest.err
14103 } && test -s conftest$ac_exeext && {
14104 test "$cross_compiling" = yes ||
14105 $as_test_x conftest$ac_exeext
14106 }; then
9433 ac_cv_lib_Xft_XftFontOpen=yes 14107 ac_cv_lib_Xft_XftFontOpen=yes
9434else 14108else
9435 ac_cv_lib_Xft_XftFontOpen=no 14109 $as_echo "$as_me: failed program was:" >&5
14110sed 's/^/| /' conftest.$ac_ext >&5
14111
14112 ac_cv_lib_Xft_XftFontOpen=no
9436fi 14113fi
9437rm -f core conftest.err conftest.$ac_objext \ 14114
9438 conftest$ac_exeext conftest.$ac_ext 14115rm -rf conftest.dSYM
14116rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14117 conftest$ac_exeext conftest.$ac_ext
9439LIBS=$ac_check_lib_save_LIBS 14118LIBS=$ac_check_lib_save_LIBS
9440fi 14119fi
9441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5 14120{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
9442$as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; } 14121$as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
9443if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then : 14122if test $ac_cv_lib_Xft_XftFontOpen = yes; then
9444 HAVE_XFT=yes 14123 HAVE_XFT=yes
9445fi 14124fi
9446 14125
@@ -9450,7 +14129,9 @@ fi
9450 14129
9451 if test "${HAVE_XFT}" = "yes"; then 14130 if test "${HAVE_XFT}" = "yes"; then
9452 14131
9453$as_echo "#define HAVE_XFT 1" >>confdefs.h 14132cat >>confdefs.h <<\_ACEOF
14133#define HAVE_XFT 1
14134_ACEOF
9454 14135
9455 14136
9456 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS" 14137 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
@@ -9479,7 +14160,9 @@ $as_echo "#define HAVE_XFT 1" >>confdefs.h
9479 HAVE_LIBOTF=no 14160 HAVE_LIBOTF=no
9480 if test "${HAVE_FREETYPE}" = "yes"; then 14161 if test "${HAVE_FREETYPE}" = "yes"; then
9481 14162
9482$as_echo "#define HAVE_FREETYPE 1" >>confdefs.h 14163cat >>confdefs.h <<\_ACEOF
14164#define HAVE_FREETYPE 1
14165_ACEOF
9483 14166
9484 if test "${with_libotf}" != "no"; then 14167 if test "${with_libotf}" != "no"; then
9485 14168
@@ -9487,9 +14170,9 @@ $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
9487 14170
9488 # Extract the first word of "pkg-config", so it can be a program name with args. 14171 # Extract the first word of "pkg-config", so it can be a program name with args.
9489set dummy pkg-config; ac_word=$2 14172set dummy pkg-config; ac_word=$2
9490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14173{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9491$as_echo_n "checking for $ac_word... " >&6; } 14174$as_echo_n "checking for $ac_word... " >&6; }
9492if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 14175if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9493 $as_echo_n "(cached) " >&6 14176 $as_echo_n "(cached) " >&6
9494else 14177else
9495 case $PKG_CONFIG in 14178 case $PKG_CONFIG in
@@ -9502,14 +14185,14 @@ for as_dir in $PATH
9502do 14185do
9503 IFS=$as_save_IFS 14186 IFS=$as_save_IFS
9504 test -z "$as_dir" && as_dir=. 14187 test -z "$as_dir" && as_dir=.
9505 for ac_exec_ext in '' $ac_executable_extensions; do 14188 for ac_exec_ext in '' $ac_executable_extensions; do
9506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9507 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14190 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14191 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9509 break 2 14192 break 2
9510 fi 14193 fi
9511done 14194done
9512 done 14195done
9513IFS=$as_save_IFS 14196IFS=$as_save_IFS
9514 14197
9515 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 14198 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -9518,10 +14201,10 @@ esac
9518fi 14201fi
9519PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14202PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9520if test -n "$PKG_CONFIG"; then 14203if test -n "$PKG_CONFIG"; then
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14204 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9522$as_echo "$PKG_CONFIG" >&6; } 14205$as_echo "$PKG_CONFIG" >&6; }
9523else 14206else
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14207 { $as_echo "$as_me:$LINENO: result: no" >&5
9525$as_echo "no" >&6; } 14208$as_echo "no" >&6; }
9526fi 14209fi
9527 14210
@@ -9532,27 +14215,27 @@ fi
9532 else 14215 else
9533 PKG_CONFIG_MIN_VERSION=0.9.0 14216 PKG_CONFIG_MIN_VERSION=0.9.0
9534 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 14217 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5 14218 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
9536$as_echo_n "checking for libotf... " >&6; } 14219$as_echo_n "checking for libotf... " >&6; }
9537 14220
9538 if $PKG_CONFIG --exists "libotf" 2>&5; then 14221 if $PKG_CONFIG --exists "libotf" 2>&5; then
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14222 { $as_echo "$as_me:$LINENO: result: yes" >&5
9540$as_echo "yes" >&6; } 14223$as_echo "yes" >&6; }
9541 succeeded=yes 14224 succeeded=yes
9542 14225
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5 14226 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
9544$as_echo_n "checking LIBOTF_CFLAGS... " >&6; } 14227$as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
9545 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'` 14228 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5 14229 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
9547$as_echo "$LIBOTF_CFLAGS" >&6; } 14230$as_echo "$LIBOTF_CFLAGS" >&6; }
9548 14231
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5 14232 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
9550$as_echo_n "checking LIBOTF_LIBS... " >&6; } 14233$as_echo_n "checking LIBOTF_LIBS... " >&6; }
9551 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'` 14234 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5 14235 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
9553$as_echo "$LIBOTF_LIBS" >&6; } 14236$as_echo "$LIBOTF_LIBS" >&6; }
9554 else 14237 else
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14238 { $as_echo "$as_me:$LINENO: result: no" >&5
9556$as_echo "no" >&6; } 14239$as_echo "no" >&6; }
9557 LIBOTF_CFLAGS="" 14240 LIBOTF_CFLAGS=""
9558 LIBOTF_LIBS="" 14241 LIBOTF_LIBS=""
@@ -9578,16 +14261,22 @@ $as_echo "no" >&6; }
9578 14261
9579 if test "$HAVE_LIBOTF" = "yes"; then 14262 if test "$HAVE_LIBOTF" = "yes"; then
9580 14263
9581$as_echo "#define HAVE_LIBOTF 1" >>confdefs.h 14264cat >>confdefs.h <<\_ACEOF
14265#define HAVE_LIBOTF 1
14266_ACEOF
9582 14267
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5 14268 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
9584$as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; } 14269$as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
9585if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then : 14270if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
9586 $as_echo_n "(cached) " >&6 14271 $as_echo_n "(cached) " >&6
9587else 14272else
9588 ac_check_lib_save_LIBS=$LIBS 14273 ac_check_lib_save_LIBS=$LIBS
9589LIBS="-lotf $LIBS" 14274LIBS="-lotf $LIBS"
9590cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14275cat >conftest.$ac_ext <<_ACEOF
14276/* confdefs.h. */
14277_ACEOF
14278cat confdefs.h >>conftest.$ac_ext
14279cat >>conftest.$ac_ext <<_ACEOF
9591/* end confdefs.h. */ 14280/* end confdefs.h. */
9592 14281
9593/* Override any GCC internal prototype to avoid an error. 14282/* Override any GCC internal prototype to avoid an error.
@@ -9605,18 +14294,43 @@ return OTF_get_variation_glyphs ();
9605 return 0; 14294 return 0;
9606} 14295}
9607_ACEOF 14296_ACEOF
9608if ac_fn_c_try_link "$LINENO"; then : 14297rm -f conftest.$ac_objext conftest$ac_exeext
14298if { (ac_try="$ac_link"
14299case "(($ac_try" in
14300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14301 *) ac_try_echo=$ac_try;;
14302esac
14303eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14304$as_echo "$ac_try_echo") >&5
14305 (eval "$ac_link") 2>conftest.er1
14306 ac_status=$?
14307 grep -v '^ *+' conftest.er1 >conftest.err
14308 rm -f conftest.er1
14309 cat conftest.err >&5
14310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); } && {
14312 test -z "$ac_c_werror_flag" ||
14313 test ! -s conftest.err
14314 } && test -s conftest$ac_exeext && {
14315 test "$cross_compiling" = yes ||
14316 $as_test_x conftest$ac_exeext
14317 }; then
9609 ac_cv_lib_otf_OTF_get_variation_glyphs=yes 14318 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
9610else 14319else
9611 ac_cv_lib_otf_OTF_get_variation_glyphs=no 14320 $as_echo "$as_me: failed program was:" >&5
14321sed 's/^/| /' conftest.$ac_ext >&5
14322
14323 ac_cv_lib_otf_OTF_get_variation_glyphs=no
9612fi 14324fi
9613rm -f core conftest.err conftest.$ac_objext \ 14325
9614 conftest$ac_exeext conftest.$ac_ext 14326rm -rf conftest.dSYM
14327rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14328 conftest$ac_exeext conftest.$ac_ext
9615LIBS=$ac_check_lib_save_LIBS 14329LIBS=$ac_check_lib_save_LIBS
9616fi 14330fi
9617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5 14331{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
9618$as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; } 14332$as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
9619if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then : 14333if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
9620 HAVE_OTF_GET_VARIATION_GLYPHS=yes 14334 HAVE_OTF_GET_VARIATION_GLYPHS=yes
9621else 14335else
9622 HAVE_OTF_GET_VARIATION_GLYPHS=no 14336 HAVE_OTF_GET_VARIATION_GLYPHS=no
@@ -9624,7 +14338,9 @@ fi
9624 14338
9625 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then 14339 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
9626 14340
9627$as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h 14341cat >>confdefs.h <<\_ACEOF
14342#define HAVE_OTF_GET_VARIATION_GLYPHS 1
14343_ACEOF
9628 14344
9629 fi 14345 fi
9630 fi 14346 fi
@@ -9639,9 +14355,9 @@ $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
9639 14355
9640 # Extract the first word of "pkg-config", so it can be a program name with args. 14356 # Extract the first word of "pkg-config", so it can be a program name with args.
9641set dummy pkg-config; ac_word=$2 14357set dummy pkg-config; ac_word=$2
9642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14358{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9643$as_echo_n "checking for $ac_word... " >&6; } 14359$as_echo_n "checking for $ac_word... " >&6; }
9644if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 14360if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9645 $as_echo_n "(cached) " >&6 14361 $as_echo_n "(cached) " >&6
9646else 14362else
9647 case $PKG_CONFIG in 14363 case $PKG_CONFIG in
@@ -9654,14 +14370,14 @@ for as_dir in $PATH
9654do 14370do
9655 IFS=$as_save_IFS 14371 IFS=$as_save_IFS
9656 test -z "$as_dir" && as_dir=. 14372 test -z "$as_dir" && as_dir=.
9657 for ac_exec_ext in '' $ac_executable_extensions; do 14373 for ac_exec_ext in '' $ac_executable_extensions; do
9658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9659 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14375 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14376 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9661 break 2 14377 break 2
9662 fi 14378 fi
9663done 14379done
9664 done 14380done
9665IFS=$as_save_IFS 14381IFS=$as_save_IFS
9666 14382
9667 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 14383 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -9670,10 +14386,10 @@ esac
9670fi 14386fi
9671PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14387PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9672if test -n "$PKG_CONFIG"; then 14388if test -n "$PKG_CONFIG"; then
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14389 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9674$as_echo "$PKG_CONFIG" >&6; } 14390$as_echo "$PKG_CONFIG" >&6; }
9675else 14391else
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14392 { $as_echo "$as_me:$LINENO: result: no" >&5
9677$as_echo "no" >&6; } 14393$as_echo "no" >&6; }
9678fi 14394fi
9679 14395
@@ -9684,27 +14400,27 @@ fi
9684 else 14400 else
9685 PKG_CONFIG_MIN_VERSION=0.9.0 14401 PKG_CONFIG_MIN_VERSION=0.9.0
9686 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 14402 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5 14403 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
9688$as_echo_n "checking for m17n-flt... " >&6; } 14404$as_echo_n "checking for m17n-flt... " >&6; }
9689 14405
9690 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then 14406 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14407 { $as_echo "$as_me:$LINENO: result: yes" >&5
9692$as_echo "yes" >&6; } 14408$as_echo "yes" >&6; }
9693 succeeded=yes 14409 succeeded=yes
9694 14410
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5 14411 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
9696$as_echo_n "checking M17N_FLT_CFLAGS... " >&6; } 14412$as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
9697 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'` 14413 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5 14414 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
9699$as_echo "$M17N_FLT_CFLAGS" >&6; } 14415$as_echo "$M17N_FLT_CFLAGS" >&6; }
9700 14416
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5 14417 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
9702$as_echo_n "checking M17N_FLT_LIBS... " >&6; } 14418$as_echo_n "checking M17N_FLT_LIBS... " >&6; }
9703 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'` 14419 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5 14420 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
9705$as_echo "$M17N_FLT_LIBS" >&6; } 14421$as_echo "$M17N_FLT_LIBS" >&6; }
9706 else 14422 else
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14423 { $as_echo "$as_me:$LINENO: result: no" >&5
9708$as_echo "no" >&6; } 14424$as_echo "no" >&6; }
9709 M17N_FLT_CFLAGS="" 14425 M17N_FLT_CFLAGS=""
9710 M17N_FLT_LIBS="" 14426 M17N_FLT_LIBS=""
@@ -9730,7 +14446,9 @@ $as_echo "no" >&6; }
9730 14446
9731 if test "$HAVE_M17N_FLT" = "yes"; then 14447 if test "$HAVE_M17N_FLT" = "yes"; then
9732 14448
9733$as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h 14449cat >>confdefs.h <<\_ACEOF
14450#define HAVE_M17N_FLT 1
14451_ACEOF
9734 14452
9735 fi 14453 fi
9736 fi 14454 fi
@@ -9757,16 +14475,146 @@ HAVE_XPM=no
9757LIBXPM= 14475LIBXPM=
9758if test "${HAVE_X11}" = "yes"; then 14476if test "${HAVE_X11}" = "yes"; then
9759 if test "${with_xpm}" != "no"; then 14477 if test "${with_xpm}" != "no"; then
9760 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default" 14478 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9761if test "x$ac_cv_header_X11_xpm_h" = x""yes; then : 14479 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5 14480$as_echo_n "checking for X11/xpm.h... " >&6; }
14481if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14482 $as_echo_n "(cached) " >&6
14483fi
14484{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14485$as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14486else
14487 # Is the header compilable?
14488{ $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14489$as_echo_n "checking X11/xpm.h usability... " >&6; }
14490cat >conftest.$ac_ext <<_ACEOF
14491/* confdefs.h. */
14492_ACEOF
14493cat confdefs.h >>conftest.$ac_ext
14494cat >>conftest.$ac_ext <<_ACEOF
14495/* end confdefs.h. */
14496$ac_includes_default
14497#include <X11/xpm.h>
14498_ACEOF
14499rm -f conftest.$ac_objext
14500if { (ac_try="$ac_compile"
14501case "(($ac_try" in
14502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14503 *) ac_try_echo=$ac_try;;
14504esac
14505eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14506$as_echo "$ac_try_echo") >&5
14507 (eval "$ac_compile") 2>conftest.er1
14508 ac_status=$?
14509 grep -v '^ *+' conftest.er1 >conftest.err
14510 rm -f conftest.er1
14511 cat conftest.err >&5
14512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); } && {
14514 test -z "$ac_c_werror_flag" ||
14515 test ! -s conftest.err
14516 } && test -s conftest.$ac_objext; then
14517 ac_header_compiler=yes
14518else
14519 $as_echo "$as_me: failed program was:" >&5
14520sed 's/^/| /' conftest.$ac_ext >&5
14521
14522 ac_header_compiler=no
14523fi
14524
14525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14526{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14527$as_echo "$ac_header_compiler" >&6; }
14528
14529# Is the header present?
14530{ $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14531$as_echo_n "checking X11/xpm.h presence... " >&6; }
14532cat >conftest.$ac_ext <<_ACEOF
14533/* confdefs.h. */
14534_ACEOF
14535cat confdefs.h >>conftest.$ac_ext
14536cat >>conftest.$ac_ext <<_ACEOF
14537/* end confdefs.h. */
14538#include <X11/xpm.h>
14539_ACEOF
14540if { (ac_try="$ac_cpp conftest.$ac_ext"
14541case "(($ac_try" in
14542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14543 *) ac_try_echo=$ac_try;;
14544esac
14545eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14546$as_echo "$ac_try_echo") >&5
14547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14548 ac_status=$?
14549 grep -v '^ *+' conftest.er1 >conftest.err
14550 rm -f conftest.er1
14551 cat conftest.err >&5
14552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); } >/dev/null && {
14554 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14555 test ! -s conftest.err
14556 }; then
14557 ac_header_preproc=yes
14558else
14559 $as_echo "$as_me: failed program was:" >&5
14560sed 's/^/| /' conftest.$ac_ext >&5
14561
14562 ac_header_preproc=no
14563fi
14564
14565rm -f conftest.err conftest.$ac_ext
14566{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14567$as_echo "$ac_header_preproc" >&6; }
14568
14569# So? What about this header?
14570case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14571 yes:no: )
14572 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14573$as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14574 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14575$as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14576 ac_header_preproc=yes
14577 ;;
14578 no:yes:* )
14579 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14580$as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14581 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14582$as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14583 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14584$as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14585 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14586$as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14587 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14588$as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14589 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14590$as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14591
14592 ;;
14593esac
14594{ $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14595$as_echo_n "checking for X11/xpm.h... " >&6; }
14596if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14597 $as_echo_n "(cached) " >&6
14598else
14599 ac_cv_header_X11_xpm_h=$ac_header_preproc
14600fi
14601{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14602$as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14603
14604fi
14605if test $ac_cv_header_X11_xpm_h = yes; then
14606 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
9763$as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; } 14607$as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
9764if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then : 14608if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
9765 $as_echo_n "(cached) " >&6 14609 $as_echo_n "(cached) " >&6
9766else 14610else
9767 ac_check_lib_save_LIBS=$LIBS 14611 ac_check_lib_save_LIBS=$LIBS
9768LIBS="-lXpm -lX11 $LIBS" 14612LIBS="-lXpm -lX11 $LIBS"
9769cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14613cat >conftest.$ac_ext <<_ACEOF
14614/* confdefs.h. */
14615_ACEOF
14616cat confdefs.h >>conftest.$ac_ext
14617cat >>conftest.$ac_ext <<_ACEOF
9770/* end confdefs.h. */ 14618/* end confdefs.h. */
9771 14619
9772/* Override any GCC internal prototype to avoid an error. 14620/* Override any GCC internal prototype to avoid an error.
@@ -9784,18 +14632,43 @@ return XpmReadFileToPixmap ();
9784 return 0; 14632 return 0;
9785} 14633}
9786_ACEOF 14634_ACEOF
9787if ac_fn_c_try_link "$LINENO"; then : 14635rm -f conftest.$ac_objext conftest$ac_exeext
14636if { (ac_try="$ac_link"
14637case "(($ac_try" in
14638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14639 *) ac_try_echo=$ac_try;;
14640esac
14641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14642$as_echo "$ac_try_echo") >&5
14643 (eval "$ac_link") 2>conftest.er1
14644 ac_status=$?
14645 grep -v '^ *+' conftest.er1 >conftest.err
14646 rm -f conftest.er1
14647 cat conftest.err >&5
14648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); } && {
14650 test -z "$ac_c_werror_flag" ||
14651 test ! -s conftest.err
14652 } && test -s conftest$ac_exeext && {
14653 test "$cross_compiling" = yes ||
14654 $as_test_x conftest$ac_exeext
14655 }; then
9788 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes 14656 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9789else 14657else
9790 ac_cv_lib_Xpm_XpmReadFileToPixmap=no 14658 $as_echo "$as_me: failed program was:" >&5
14659sed 's/^/| /' conftest.$ac_ext >&5
14660
14661 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
9791fi 14662fi
9792rm -f core conftest.err conftest.$ac_objext \ 14663
9793 conftest$ac_exeext conftest.$ac_ext 14664rm -rf conftest.dSYM
14665rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14666 conftest$ac_exeext conftest.$ac_ext
9794LIBS=$ac_check_lib_save_LIBS 14667LIBS=$ac_check_lib_save_LIBS
9795fi 14668fi
9796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 14669{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9797$as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; } 14670$as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
9798if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then : 14671if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9799 HAVE_XPM=yes 14672 HAVE_XPM=yes
9800fi 14673fi
9801 14674
@@ -9803,9 +14676,13 @@ fi
9803 14676
9804 14677
9805 if test "${HAVE_XPM}" = "yes"; then 14678 if test "${HAVE_XPM}" = "yes"; then
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5 14679 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9807$as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; } 14680$as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
9808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14681 cat >conftest.$ac_ext <<_ACEOF
14682/* confdefs.h. */
14683_ACEOF
14684cat confdefs.h >>conftest.$ac_ext
14685cat >>conftest.$ac_ext <<_ACEOF
9809/* end confdefs.h. */ 14686/* end confdefs.h. */
9810#include "X11/xpm.h" 14687#include "X11/xpm.h"
9811#ifndef XpmReturnAllocPixels 14688#ifndef XpmReturnAllocPixels
@@ -9814,7 +14691,7 @@ no_return_alloc_pixels
9814 14691
9815_ACEOF 14692_ACEOF
9816if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14693if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9817 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then : 14694 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
9818 HAVE_XPM=no 14695 HAVE_XPM=no
9819else 14696else
9820 HAVE_XPM=yes 14697 HAVE_XPM=yes
@@ -9823,10 +14700,10 @@ rm -f conftest*
9823 14700
9824 14701
9825 if test "${HAVE_XPM}" = "yes"; then 14702 if test "${HAVE_XPM}" = "yes"; then
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14703 { $as_echo "$as_me:$LINENO: result: yes" >&5
9827$as_echo "yes" >&6; } 14704$as_echo "yes" >&6; }
9828 else 14705 else
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14706 { $as_echo "$as_me:$LINENO: result: no" >&5
9830$as_echo "no" >&6; } 14707$as_echo "no" >&6; }
9831 fi 14708 fi
9832 fi 14709 fi
@@ -9834,7 +14711,9 @@ $as_echo "no" >&6; }
9834 14711
9835 if test "${HAVE_XPM}" = "yes"; then 14712 if test "${HAVE_XPM}" = "yes"; then
9836 14713
9837$as_echo "#define HAVE_XPM 1" >>confdefs.h 14714cat >>confdefs.h <<\_ACEOF
14715#define HAVE_XPM 1
14716_ACEOF
9838 14717
9839 LIBXPM=-lXpm 14718 LIBXPM=-lXpm
9840 fi 14719 fi
@@ -9846,16 +14725,146 @@ HAVE_JPEG=no
9846LIBJPEG= 14725LIBJPEG=
9847if test "${HAVE_X11}" = "yes"; then 14726if test "${HAVE_X11}" = "yes"; then
9848 if test "${with_jpeg}" != "no"; then 14727 if test "${with_jpeg}" != "no"; then
9849 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default" 14728 if test "${ac_cv_header_jerror_h+set}" = set; then
9850if test "x$ac_cv_header_jerror_h" = x""yes; then : 14729 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5 14730$as_echo_n "checking for jerror.h... " >&6; }
14731if test "${ac_cv_header_jerror_h+set}" = set; then
14732 $as_echo_n "(cached) " >&6
14733fi
14734{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14735$as_echo "$ac_cv_header_jerror_h" >&6; }
14736else
14737 # Is the header compilable?
14738{ $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14739$as_echo_n "checking jerror.h usability... " >&6; }
14740cat >conftest.$ac_ext <<_ACEOF
14741/* confdefs.h. */
14742_ACEOF
14743cat confdefs.h >>conftest.$ac_ext
14744cat >>conftest.$ac_ext <<_ACEOF
14745/* end confdefs.h. */
14746$ac_includes_default
14747#include <jerror.h>
14748_ACEOF
14749rm -f conftest.$ac_objext
14750if { (ac_try="$ac_compile"
14751case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14754esac
14755eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14756$as_echo "$ac_try_echo") >&5
14757 (eval "$ac_compile") 2>conftest.er1
14758 ac_status=$?
14759 grep -v '^ *+' conftest.er1 >conftest.err
14760 rm -f conftest.er1
14761 cat conftest.err >&5
14762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } && {
14764 test -z "$ac_c_werror_flag" ||
14765 test ! -s conftest.err
14766 } && test -s conftest.$ac_objext; then
14767 ac_header_compiler=yes
14768else
14769 $as_echo "$as_me: failed program was:" >&5
14770sed 's/^/| /' conftest.$ac_ext >&5
14771
14772 ac_header_compiler=no
14773fi
14774
14775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14776{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14777$as_echo "$ac_header_compiler" >&6; }
14778
14779# Is the header present?
14780{ $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14781$as_echo_n "checking jerror.h presence... " >&6; }
14782cat >conftest.$ac_ext <<_ACEOF
14783/* confdefs.h. */
14784_ACEOF
14785cat confdefs.h >>conftest.$ac_ext
14786cat >>conftest.$ac_ext <<_ACEOF
14787/* end confdefs.h. */
14788#include <jerror.h>
14789_ACEOF
14790if { (ac_try="$ac_cpp conftest.$ac_ext"
14791case "(($ac_try" in
14792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793 *) ac_try_echo=$ac_try;;
14794esac
14795eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14796$as_echo "$ac_try_echo") >&5
14797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14798 ac_status=$?
14799 grep -v '^ *+' conftest.er1 >conftest.err
14800 rm -f conftest.er1
14801 cat conftest.err >&5
14802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } >/dev/null && {
14804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14805 test ! -s conftest.err
14806 }; then
14807 ac_header_preproc=yes
14808else
14809 $as_echo "$as_me: failed program was:" >&5
14810sed 's/^/| /' conftest.$ac_ext >&5
14811
14812 ac_header_preproc=no
14813fi
14814
14815rm -f conftest.err conftest.$ac_ext
14816{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14817$as_echo "$ac_header_preproc" >&6; }
14818
14819# So? What about this header?
14820case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14821 yes:no: )
14822 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14823$as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14824 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14825$as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14826 ac_header_preproc=yes
14827 ;;
14828 no:yes:* )
14829 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14830$as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14831 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14832$as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14833 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14834$as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14835 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14836$as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14837 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14838$as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14839 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14840$as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14841
14842 ;;
14843esac
14844{ $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14845$as_echo_n "checking for jerror.h... " >&6; }
14846if test "${ac_cv_header_jerror_h+set}" = set; then
14847 $as_echo_n "(cached) " >&6
14848else
14849 ac_cv_header_jerror_h=$ac_header_preproc
14850fi
14851{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14852$as_echo "$ac_cv_header_jerror_h" >&6; }
14853
14854fi
14855if test $ac_cv_header_jerror_h = yes; then
14856 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9852$as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; } 14857$as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
9853if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then : 14858if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9854 $as_echo_n "(cached) " >&6 14859 $as_echo_n "(cached) " >&6
9855else 14860else
9856 ac_check_lib_save_LIBS=$LIBS 14861 ac_check_lib_save_LIBS=$LIBS
9857LIBS="-ljpeg $LIBS" 14862LIBS="-ljpeg $LIBS"
9858cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14863cat >conftest.$ac_ext <<_ACEOF
14864/* confdefs.h. */
14865_ACEOF
14866cat confdefs.h >>conftest.$ac_ext
14867cat >>conftest.$ac_ext <<_ACEOF
9859/* end confdefs.h. */ 14868/* end confdefs.h. */
9860 14869
9861/* Override any GCC internal prototype to avoid an error. 14870/* Override any GCC internal prototype to avoid an error.
@@ -9873,18 +14882,43 @@ return jpeg_destroy_compress ();
9873 return 0; 14882 return 0;
9874} 14883}
9875_ACEOF 14884_ACEOF
9876if ac_fn_c_try_link "$LINENO"; then : 14885rm -f conftest.$ac_objext conftest$ac_exeext
14886if { (ac_try="$ac_link"
14887case "(($ac_try" in
14888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889 *) ac_try_echo=$ac_try;;
14890esac
14891eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14892$as_echo "$ac_try_echo") >&5
14893 (eval "$ac_link") 2>conftest.er1
14894 ac_status=$?
14895 grep -v '^ *+' conftest.er1 >conftest.err
14896 rm -f conftest.er1
14897 cat conftest.err >&5
14898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); } && {
14900 test -z "$ac_c_werror_flag" ||
14901 test ! -s conftest.err
14902 } && test -s conftest$ac_exeext && {
14903 test "$cross_compiling" = yes ||
14904 $as_test_x conftest$ac_exeext
14905 }; then
9877 ac_cv_lib_jpeg_jpeg_destroy_compress=yes 14906 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
9878else 14907else
9879 ac_cv_lib_jpeg_jpeg_destroy_compress=no 14908 $as_echo "$as_me: failed program was:" >&5
14909sed 's/^/| /' conftest.$ac_ext >&5
14910
14911 ac_cv_lib_jpeg_jpeg_destroy_compress=no
9880fi 14912fi
9881rm -f core conftest.err conftest.$ac_objext \ 14913
9882 conftest$ac_exeext conftest.$ac_ext 14914rm -rf conftest.dSYM
14915rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14916 conftest$ac_exeext conftest.$ac_ext
9883LIBS=$ac_check_lib_save_LIBS 14917LIBS=$ac_check_lib_save_LIBS
9884fi 14918fi
9885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 14919{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9886$as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; } 14920$as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
9887if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then : 14921if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9888 HAVE_JPEG=yes 14922 HAVE_JPEG=yes
9889fi 14923fi
9890 14924
@@ -9893,21 +14927,30 @@ fi
9893 14927
9894 fi 14928 fi
9895 14929
9896 if test "${HAVE_JPEG}" = "yes"; then
9897 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
9898 14930
9899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14931 if test "${HAVE_JPEG}" = "yes"; then
14932 cat >>confdefs.h <<\_ACEOF
14933#define HAVE_JPEG 1
14934_ACEOF
14935
14936 cat >conftest.$ac_ext <<_ACEOF
14937/* confdefs.h. */
14938_ACEOF
14939cat confdefs.h >>conftest.$ac_ext
14940cat >>conftest.$ac_ext <<_ACEOF
9900/* end confdefs.h. */ 14941/* end confdefs.h. */
9901#include <jpeglib.h> 14942#include <jpeglib.h>
9902 version=JPEG_LIB_VERSION 14943 version=JPEG_LIB_VERSION
9903 14944
9904_ACEOF 14945_ACEOF
9905if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14946if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9906 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then : 14947 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
9907 $as_echo "#define HAVE_JPEG 1" >>confdefs.h 14948 cat >>confdefs.h <<\_ACEOF
14949#define HAVE_JPEG 1
14950_ACEOF
9908 14951
9909else 14952else
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5 14953 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
9911$as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} 14954$as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9912 HAVE_JPEG=no 14955 HAVE_JPEG=no
9913fi 14956fi
@@ -9927,12 +14970,144 @@ if test "${HAVE_X11}" = "yes"; then
9927 if test "${with_png}" != "no"; then 14970 if test "${with_png}" != "no"; then
9928 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h 14971 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
9929 # in /usr/include/libpng. 14972 # in /usr/include/libpng.
9930 for ac_header in png.h libpng/png.h 14973
9931do : 14974
9932 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14975for ac_header in png.h libpng/png.h
9933ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14976do
9934eval as_val=\$$as_ac_Header 14977as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9935 if test "x$as_val" = x""yes; then : 14978if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14979 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14980$as_echo_n "checking for $ac_header... " >&6; }
14981if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14982 $as_echo_n "(cached) " >&6
14983fi
14984ac_res=`eval 'as_val=${'$as_ac_Header'}
14985 $as_echo "$as_val"'`
14986 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14987$as_echo "$ac_res" >&6; }
14988else
14989 # Is the header compilable?
14990{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14991$as_echo_n "checking $ac_header usability... " >&6; }
14992cat >conftest.$ac_ext <<_ACEOF
14993/* confdefs.h. */
14994_ACEOF
14995cat confdefs.h >>conftest.$ac_ext
14996cat >>conftest.$ac_ext <<_ACEOF
14997/* end confdefs.h. */
14998$ac_includes_default
14999#include <$ac_header>
15000_ACEOF
15001rm -f conftest.$ac_objext
15002if { (ac_try="$ac_compile"
15003case "(($ac_try" in
15004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15005 *) ac_try_echo=$ac_try;;
15006esac
15007eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15008$as_echo "$ac_try_echo") >&5
15009 (eval "$ac_compile") 2>conftest.er1
15010 ac_status=$?
15011 grep -v '^ *+' conftest.er1 >conftest.err
15012 rm -f conftest.er1
15013 cat conftest.err >&5
15014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); } && {
15016 test -z "$ac_c_werror_flag" ||
15017 test ! -s conftest.err
15018 } && test -s conftest.$ac_objext; then
15019 ac_header_compiler=yes
15020else
15021 $as_echo "$as_me: failed program was:" >&5
15022sed 's/^/| /' conftest.$ac_ext >&5
15023
15024 ac_header_compiler=no
15025fi
15026
15027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15028{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15029$as_echo "$ac_header_compiler" >&6; }
15030
15031# Is the header present?
15032{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15033$as_echo_n "checking $ac_header presence... " >&6; }
15034cat >conftest.$ac_ext <<_ACEOF
15035/* confdefs.h. */
15036_ACEOF
15037cat confdefs.h >>conftest.$ac_ext
15038cat >>conftest.$ac_ext <<_ACEOF
15039/* end confdefs.h. */
15040#include <$ac_header>
15041_ACEOF
15042if { (ac_try="$ac_cpp conftest.$ac_ext"
15043case "(($ac_try" in
15044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15045 *) ac_try_echo=$ac_try;;
15046esac
15047eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15048$as_echo "$ac_try_echo") >&5
15049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15050 ac_status=$?
15051 grep -v '^ *+' conftest.er1 >conftest.err
15052 rm -f conftest.er1
15053 cat conftest.err >&5
15054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); } >/dev/null && {
15056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15057 test ! -s conftest.err
15058 }; then
15059 ac_header_preproc=yes
15060else
15061 $as_echo "$as_me: failed program was:" >&5
15062sed 's/^/| /' conftest.$ac_ext >&5
15063
15064 ac_header_preproc=no
15065fi
15066
15067rm -f conftest.err conftest.$ac_ext
15068{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15069$as_echo "$ac_header_preproc" >&6; }
15070
15071# So? What about this header?
15072case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15073 yes:no: )
15074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15075$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15077$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15078 ac_header_preproc=yes
15079 ;;
15080 no:yes:* )
15081 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15082$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15084$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15086$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15088$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15090$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15092$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15093
15094 ;;
15095esac
15096{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15097$as_echo_n "checking for $ac_header... " >&6; }
15098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15099 $as_echo_n "(cached) " >&6
15100else
15101 eval "$as_ac_Header=\$ac_header_preproc"
15102fi
15103ac_res=`eval 'as_val=${'$as_ac_Header'}
15104 $as_echo "$as_val"'`
15105 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15106$as_echo "$ac_res" >&6; }
15107
15108fi
15109if test `eval 'as_val=${'$as_ac_Header'}
15110 $as_echo "$as_val"'` = yes; then
9936 cat >>confdefs.h <<_ACEOF 15111 cat >>confdefs.h <<_ACEOF
9937#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15112#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9938_ACEOF 15113_ACEOF
@@ -9942,14 +15117,18 @@ fi
9942done 15117done
9943 15118
9944 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then 15119 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5 15120 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9946$as_echo_n "checking for png_get_channels in -lpng... " >&6; } 15121$as_echo_n "checking for png_get_channels in -lpng... " >&6; }
9947if test "${ac_cv_lib_png_png_get_channels+set}" = set; then : 15122if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9948 $as_echo_n "(cached) " >&6 15123 $as_echo_n "(cached) " >&6
9949else 15124else
9950 ac_check_lib_save_LIBS=$LIBS 15125 ac_check_lib_save_LIBS=$LIBS
9951LIBS="-lpng -lz -lm $LIBS" 15126LIBS="-lpng -lz -lm $LIBS"
9952cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15127cat >conftest.$ac_ext <<_ACEOF
15128/* confdefs.h. */
15129_ACEOF
15130cat confdefs.h >>conftest.$ac_ext
15131cat >>conftest.$ac_ext <<_ACEOF
9953/* end confdefs.h. */ 15132/* end confdefs.h. */
9954 15133
9955/* Override any GCC internal prototype to avoid an error. 15134/* Override any GCC internal prototype to avoid an error.
@@ -9967,18 +15146,43 @@ return png_get_channels ();
9967 return 0; 15146 return 0;
9968} 15147}
9969_ACEOF 15148_ACEOF
9970if ac_fn_c_try_link "$LINENO"; then : 15149rm -f conftest.$ac_objext conftest$ac_exeext
15150if { (ac_try="$ac_link"
15151case "(($ac_try" in
15152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15153 *) ac_try_echo=$ac_try;;
15154esac
15155eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15156$as_echo "$ac_try_echo") >&5
15157 (eval "$ac_link") 2>conftest.er1
15158 ac_status=$?
15159 grep -v '^ *+' conftest.er1 >conftest.err
15160 rm -f conftest.er1
15161 cat conftest.err >&5
15162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); } && {
15164 test -z "$ac_c_werror_flag" ||
15165 test ! -s conftest.err
15166 } && test -s conftest$ac_exeext && {
15167 test "$cross_compiling" = yes ||
15168 $as_test_x conftest$ac_exeext
15169 }; then
9971 ac_cv_lib_png_png_get_channels=yes 15170 ac_cv_lib_png_png_get_channels=yes
9972else 15171else
9973 ac_cv_lib_png_png_get_channels=no 15172 $as_echo "$as_me: failed program was:" >&5
15173sed 's/^/| /' conftest.$ac_ext >&5
15174
15175 ac_cv_lib_png_png_get_channels=no
9974fi 15176fi
9975rm -f core conftest.err conftest.$ac_objext \ 15177
9976 conftest$ac_exeext conftest.$ac_ext 15178rm -rf conftest.dSYM
15179rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15180 conftest$ac_exeext conftest.$ac_ext
9977LIBS=$ac_check_lib_save_LIBS 15181LIBS=$ac_check_lib_save_LIBS
9978fi 15182fi
9979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5 15183{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9980$as_echo "$ac_cv_lib_png_png_get_channels" >&6; } 15184$as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
9981if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then : 15185if test $ac_cv_lib_png_png_get_channels = yes; then
9982 HAVE_PNG=yes 15186 HAVE_PNG=yes
9983fi 15187fi
9984 15188
@@ -9987,7 +15191,9 @@ fi
9987 15191
9988 if test "${HAVE_PNG}" = "yes"; then 15192 if test "${HAVE_PNG}" = "yes"; then
9989 15193
9990$as_echo "#define HAVE_PNG 1" >>confdefs.h 15194cat >>confdefs.h <<\_ACEOF
15195#define HAVE_PNG 1
15196_ACEOF
9991 15197
9992 LIBPNG="-lpng -lz -lm" 15198 LIBPNG="-lpng -lz -lm"
9993 fi 15199 fi
@@ -9999,19 +15205,149 @@ HAVE_TIFF=no
9999LIBTIFF= 15205LIBTIFF=
10000if test "${HAVE_X11}" = "yes"; then 15206if test "${HAVE_X11}" = "yes"; then
10001 if test "${with_tiff}" != "no"; then 15207 if test "${with_tiff}" != "no"; then
10002 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" 15208 if test "${ac_cv_header_tiffio_h+set}" = set; then
10003if test "x$ac_cv_header_tiffio_h" = x""yes; then : 15209 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15210$as_echo_n "checking for tiffio.h... " >&6; }
15211if test "${ac_cv_header_tiffio_h+set}" = set; then
15212 $as_echo_n "(cached) " >&6
15213fi
15214{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15215$as_echo "$ac_cv_header_tiffio_h" >&6; }
15216else
15217 # Is the header compilable?
15218{ $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15219$as_echo_n "checking tiffio.h usability... " >&6; }
15220cat >conftest.$ac_ext <<_ACEOF
15221/* confdefs.h. */
15222_ACEOF
15223cat confdefs.h >>conftest.$ac_ext
15224cat >>conftest.$ac_ext <<_ACEOF
15225/* end confdefs.h. */
15226$ac_includes_default
15227#include <tiffio.h>
15228_ACEOF
15229rm -f conftest.$ac_objext
15230if { (ac_try="$ac_compile"
15231case "(($ac_try" in
15232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233 *) ac_try_echo=$ac_try;;
15234esac
15235eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15236$as_echo "$ac_try_echo") >&5
15237 (eval "$ac_compile") 2>conftest.er1
15238 ac_status=$?
15239 grep -v '^ *+' conftest.er1 >conftest.err
15240 rm -f conftest.er1
15241 cat conftest.err >&5
15242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); } && {
15244 test -z "$ac_c_werror_flag" ||
15245 test ! -s conftest.err
15246 } && test -s conftest.$ac_objext; then
15247 ac_header_compiler=yes
15248else
15249 $as_echo "$as_me: failed program was:" >&5
15250sed 's/^/| /' conftest.$ac_ext >&5
15251
15252 ac_header_compiler=no
15253fi
15254
15255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15256{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15257$as_echo "$ac_header_compiler" >&6; }
15258
15259# Is the header present?
15260{ $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15261$as_echo_n "checking tiffio.h presence... " >&6; }
15262cat >conftest.$ac_ext <<_ACEOF
15263/* confdefs.h. */
15264_ACEOF
15265cat confdefs.h >>conftest.$ac_ext
15266cat >>conftest.$ac_ext <<_ACEOF
15267/* end confdefs.h. */
15268#include <tiffio.h>
15269_ACEOF
15270if { (ac_try="$ac_cpp conftest.$ac_ext"
15271case "(($ac_try" in
15272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15273 *) ac_try_echo=$ac_try;;
15274esac
15275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15276$as_echo "$ac_try_echo") >&5
15277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15278 ac_status=$?
15279 grep -v '^ *+' conftest.er1 >conftest.err
15280 rm -f conftest.er1
15281 cat conftest.err >&5
15282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); } >/dev/null && {
15284 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15285 test ! -s conftest.err
15286 }; then
15287 ac_header_preproc=yes
15288else
15289 $as_echo "$as_me: failed program was:" >&5
15290sed 's/^/| /' conftest.$ac_ext >&5
15291
15292 ac_header_preproc=no
15293fi
15294
15295rm -f conftest.err conftest.$ac_ext
15296{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15297$as_echo "$ac_header_preproc" >&6; }
15298
15299# So? What about this header?
15300case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15301 yes:no: )
15302 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15303$as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15304 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15305$as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15306 ac_header_preproc=yes
15307 ;;
15308 no:yes:* )
15309 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15310$as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15311 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15312$as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15313 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15314$as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15315 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15316$as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15317 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15318$as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15319 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15320$as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15321
15322 ;;
15323esac
15324{ $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15325$as_echo_n "checking for tiffio.h... " >&6; }
15326if test "${ac_cv_header_tiffio_h+set}" = set; then
15327 $as_echo_n "(cached) " >&6
15328else
15329 ac_cv_header_tiffio_h=$ac_header_preproc
15330fi
15331{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15332$as_echo "$ac_cv_header_tiffio_h" >&6; }
15333
15334fi
15335if test $ac_cv_header_tiffio_h = yes; then
10004 tifflibs="-lz -lm" 15336 tifflibs="-lz -lm"
10005 # At least one tiff package requires the jpeg library. 15337 # At least one tiff package requires the jpeg library.
10006 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi 15338 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5 15339 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
10008$as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; } 15340$as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10009if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then : 15341if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
10010 $as_echo_n "(cached) " >&6 15342 $as_echo_n "(cached) " >&6
10011else 15343else
10012 ac_check_lib_save_LIBS=$LIBS 15344 ac_check_lib_save_LIBS=$LIBS
10013LIBS="-ltiff $tifflibs $LIBS" 15345LIBS="-ltiff $tifflibs $LIBS"
10014cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15346cat >conftest.$ac_ext <<_ACEOF
15347/* confdefs.h. */
15348_ACEOF
15349cat confdefs.h >>conftest.$ac_ext
15350cat >>conftest.$ac_ext <<_ACEOF
10015/* end confdefs.h. */ 15351/* end confdefs.h. */
10016 15352
10017/* Override any GCC internal prototype to avoid an error. 15353/* Override any GCC internal prototype to avoid an error.
@@ -10029,18 +15365,43 @@ return TIFFGetVersion ();
10029 return 0; 15365 return 0;
10030} 15366}
10031_ACEOF 15367_ACEOF
10032if ac_fn_c_try_link "$LINENO"; then : 15368rm -f conftest.$ac_objext conftest$ac_exeext
15369if { (ac_try="$ac_link"
15370case "(($ac_try" in
15371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15372 *) ac_try_echo=$ac_try;;
15373esac
15374eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15375$as_echo "$ac_try_echo") >&5
15376 (eval "$ac_link") 2>conftest.er1
15377 ac_status=$?
15378 grep -v '^ *+' conftest.er1 >conftest.err
15379 rm -f conftest.er1
15380 cat conftest.err >&5
15381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); } && {
15383 test -z "$ac_c_werror_flag" ||
15384 test ! -s conftest.err
15385 } && test -s conftest$ac_exeext && {
15386 test "$cross_compiling" = yes ||
15387 $as_test_x conftest$ac_exeext
15388 }; then
10033 ac_cv_lib_tiff_TIFFGetVersion=yes 15389 ac_cv_lib_tiff_TIFFGetVersion=yes
10034else 15390else
10035 ac_cv_lib_tiff_TIFFGetVersion=no 15391 $as_echo "$as_me: failed program was:" >&5
15392sed 's/^/| /' conftest.$ac_ext >&5
15393
15394 ac_cv_lib_tiff_TIFFGetVersion=no
10036fi 15395fi
10037rm -f core conftest.err conftest.$ac_objext \ 15396
10038 conftest$ac_exeext conftest.$ac_ext 15397rm -rf conftest.dSYM
15398rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15399 conftest$ac_exeext conftest.$ac_ext
10039LIBS=$ac_check_lib_save_LIBS 15400LIBS=$ac_check_lib_save_LIBS
10040fi 15401fi
10041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 15402{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10042$as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; } 15403$as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10043if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then : 15404if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
10044 HAVE_TIFF=yes 15405 HAVE_TIFF=yes
10045fi 15406fi
10046 15407
@@ -10051,7 +15412,9 @@ fi
10051 15412
10052 if test "${HAVE_TIFF}" = "yes"; then 15413 if test "${HAVE_TIFF}" = "yes"; then
10053 15414
10054$as_echo "#define HAVE_TIFF 1" >>confdefs.h 15415cat >>confdefs.h <<\_ACEOF
15416#define HAVE_TIFF 1
15417_ACEOF
10055 15418
10056 LIBTIFF=-ltiff 15419 LIBTIFF=-ltiff
10057 fi 15420 fi
@@ -10062,18 +15425,148 @@ fi
10062HAVE_GIF=no 15425HAVE_GIF=no
10063LIBGIF= 15426LIBGIF=
10064if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then 15427if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10065 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 15428 if test "${ac_cv_header_gif_lib_h+set}" = set; then
10066if test "x$ac_cv_header_gif_lib_h" = x""yes; then : 15429 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15430$as_echo_n "checking for gif_lib.h... " >&6; }
15431if test "${ac_cv_header_gif_lib_h+set}" = set; then
15432 $as_echo_n "(cached) " >&6
15433fi
15434{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15435$as_echo "$ac_cv_header_gif_lib_h" >&6; }
15436else
15437 # Is the header compilable?
15438{ $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15439$as_echo_n "checking gif_lib.h usability... " >&6; }
15440cat >conftest.$ac_ext <<_ACEOF
15441/* confdefs.h. */
15442_ACEOF
15443cat confdefs.h >>conftest.$ac_ext
15444cat >>conftest.$ac_ext <<_ACEOF
15445/* end confdefs.h. */
15446$ac_includes_default
15447#include <gif_lib.h>
15448_ACEOF
15449rm -f conftest.$ac_objext
15450if { (ac_try="$ac_compile"
15451case "(($ac_try" in
15452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15453 *) ac_try_echo=$ac_try;;
15454esac
15455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15456$as_echo "$ac_try_echo") >&5
15457 (eval "$ac_compile") 2>conftest.er1
15458 ac_status=$?
15459 grep -v '^ *+' conftest.er1 >conftest.err
15460 rm -f conftest.er1
15461 cat conftest.err >&5
15462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); } && {
15464 test -z "$ac_c_werror_flag" ||
15465 test ! -s conftest.err
15466 } && test -s conftest.$ac_objext; then
15467 ac_header_compiler=yes
15468else
15469 $as_echo "$as_me: failed program was:" >&5
15470sed 's/^/| /' conftest.$ac_ext >&5
15471
15472 ac_header_compiler=no
15473fi
15474
15475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15476{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15477$as_echo "$ac_header_compiler" >&6; }
15478
15479# Is the header present?
15480{ $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15481$as_echo_n "checking gif_lib.h presence... " >&6; }
15482cat >conftest.$ac_ext <<_ACEOF
15483/* confdefs.h. */
15484_ACEOF
15485cat confdefs.h >>conftest.$ac_ext
15486cat >>conftest.$ac_ext <<_ACEOF
15487/* end confdefs.h. */
15488#include <gif_lib.h>
15489_ACEOF
15490if { (ac_try="$ac_cpp conftest.$ac_ext"
15491case "(($ac_try" in
15492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15493 *) ac_try_echo=$ac_try;;
15494esac
15495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15496$as_echo "$ac_try_echo") >&5
15497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15498 ac_status=$?
15499 grep -v '^ *+' conftest.er1 >conftest.err
15500 rm -f conftest.er1
15501 cat conftest.err >&5
15502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); } >/dev/null && {
15504 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15505 test ! -s conftest.err
15506 }; then
15507 ac_header_preproc=yes
15508else
15509 $as_echo "$as_me: failed program was:" >&5
15510sed 's/^/| /' conftest.$ac_ext >&5
15511
15512 ac_header_preproc=no
15513fi
15514
15515rm -f conftest.err conftest.$ac_ext
15516{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15517$as_echo "$ac_header_preproc" >&6; }
15518
15519# So? What about this header?
15520case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15521 yes:no: )
15522 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15523$as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15524 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15525$as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15526 ac_header_preproc=yes
15527 ;;
15528 no:yes:* )
15529 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15530$as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15531 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15532$as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15533 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15534$as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15535 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15536$as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15537 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15538$as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15539 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15540$as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15541
15542 ;;
15543esac
15544{ $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15545$as_echo_n "checking for gif_lib.h... " >&6; }
15546if test "${ac_cv_header_gif_lib_h+set}" = set; then
15547 $as_echo_n "(cached) " >&6
15548else
15549 ac_cv_header_gif_lib_h=$ac_header_preproc
15550fi
15551{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15552$as_echo "$ac_cv_header_gif_lib_h" >&6; }
15553
15554fi
15555if test $ac_cv_header_gif_lib_h = yes; then
10067 # EGifPutExtensionLast only exists from version libungif-4.1.0b1. 15556 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10068# Earlier versions can crash Emacs. 15557# Earlier versions can crash Emacs.
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5 15558 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
10070$as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; } 15559$as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10071if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then : 15560if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
10072 $as_echo_n "(cached) " >&6 15561 $as_echo_n "(cached) " >&6
10073else 15562else
10074 ac_check_lib_save_LIBS=$LIBS 15563 ac_check_lib_save_LIBS=$LIBS
10075LIBS="-lgif $LIBS" 15564LIBS="-lgif $LIBS"
10076cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15565cat >conftest.$ac_ext <<_ACEOF
15566/* confdefs.h. */
15567_ACEOF
15568cat confdefs.h >>conftest.$ac_ext
15569cat >>conftest.$ac_ext <<_ACEOF
10077/* end confdefs.h. */ 15570/* end confdefs.h. */
10078 15571
10079/* Override any GCC internal prototype to avoid an error. 15572/* Override any GCC internal prototype to avoid an error.
@@ -10091,18 +15584,43 @@ return EGifPutExtensionLast ();
10091 return 0; 15584 return 0;
10092} 15585}
10093_ACEOF 15586_ACEOF
10094if ac_fn_c_try_link "$LINENO"; then : 15587rm -f conftest.$ac_objext conftest$ac_exeext
15588if { (ac_try="$ac_link"
15589case "(($ac_try" in
15590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15591 *) ac_try_echo=$ac_try;;
15592esac
15593eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15594$as_echo "$ac_try_echo") >&5
15595 (eval "$ac_link") 2>conftest.er1
15596 ac_status=$?
15597 grep -v '^ *+' conftest.er1 >conftest.err
15598 rm -f conftest.er1
15599 cat conftest.err >&5
15600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); } && {
15602 test -z "$ac_c_werror_flag" ||
15603 test ! -s conftest.err
15604 } && test -s conftest$ac_exeext && {
15605 test "$cross_compiling" = yes ||
15606 $as_test_x conftest$ac_exeext
15607 }; then
10095 ac_cv_lib_gif_EGifPutExtensionLast=yes 15608 ac_cv_lib_gif_EGifPutExtensionLast=yes
10096else 15609else
10097 ac_cv_lib_gif_EGifPutExtensionLast=no 15610 $as_echo "$as_me: failed program was:" >&5
15611sed 's/^/| /' conftest.$ac_ext >&5
15612
15613 ac_cv_lib_gif_EGifPutExtensionLast=no
10098fi 15614fi
10099rm -f core conftest.err conftest.$ac_objext \ 15615
10100 conftest$ac_exeext conftest.$ac_ext 15616rm -rf conftest.dSYM
15617rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15618 conftest$ac_exeext conftest.$ac_ext
10101LIBS=$ac_check_lib_save_LIBS 15619LIBS=$ac_check_lib_save_LIBS
10102fi 15620fi
10103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5 15621{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10104$as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; } 15622$as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10105if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then : 15623if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
10106 HAVE_GIF=yes 15624 HAVE_GIF=yes
10107else 15625else
10108 HAVE_GIF=maybe 15626 HAVE_GIF=maybe
@@ -10116,14 +15634,18 @@ fi
10116 LIBGIF=-lgif 15634 LIBGIF=-lgif
10117 elif test "$HAVE_GIF" = maybe; then 15635 elif test "$HAVE_GIF" = maybe; then
10118# If gif_lib.h but no libgif, try libungif. 15636# If gif_lib.h but no libgif, try libungif.
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5 15637 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
10120$as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; } 15638$as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10121if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then : 15639if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
10122 $as_echo_n "(cached) " >&6 15640 $as_echo_n "(cached) " >&6
10123else 15641else
10124 ac_check_lib_save_LIBS=$LIBS 15642 ac_check_lib_save_LIBS=$LIBS
10125LIBS="-lungif $LIBS" 15643LIBS="-lungif $LIBS"
10126cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15644cat >conftest.$ac_ext <<_ACEOF
15645/* confdefs.h. */
15646_ACEOF
15647cat confdefs.h >>conftest.$ac_ext
15648cat >>conftest.$ac_ext <<_ACEOF
10127/* end confdefs.h. */ 15649/* end confdefs.h. */
10128 15650
10129/* Override any GCC internal prototype to avoid an error. 15651/* Override any GCC internal prototype to avoid an error.
@@ -10141,18 +15663,43 @@ return EGifPutExtensionLast ();
10141 return 0; 15663 return 0;
10142} 15664}
10143_ACEOF 15665_ACEOF
10144if ac_fn_c_try_link "$LINENO"; then : 15666rm -f conftest.$ac_objext conftest$ac_exeext
15667if { (ac_try="$ac_link"
15668case "(($ac_try" in
15669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15670 *) ac_try_echo=$ac_try;;
15671esac
15672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15673$as_echo "$ac_try_echo") >&5
15674 (eval "$ac_link") 2>conftest.er1
15675 ac_status=$?
15676 grep -v '^ *+' conftest.er1 >conftest.err
15677 rm -f conftest.er1
15678 cat conftest.err >&5
15679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); } && {
15681 test -z "$ac_c_werror_flag" ||
15682 test ! -s conftest.err
15683 } && test -s conftest$ac_exeext && {
15684 test "$cross_compiling" = yes ||
15685 $as_test_x conftest$ac_exeext
15686 }; then
10145 ac_cv_lib_ungif_EGifPutExtensionLast=yes 15687 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10146else 15688else
10147 ac_cv_lib_ungif_EGifPutExtensionLast=no 15689 $as_echo "$as_me: failed program was:" >&5
15690sed 's/^/| /' conftest.$ac_ext >&5
15691
15692 ac_cv_lib_ungif_EGifPutExtensionLast=no
10148fi 15693fi
10149rm -f core conftest.err conftest.$ac_objext \ 15694
10150 conftest$ac_exeext conftest.$ac_ext 15695rm -rf conftest.dSYM
15696rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15697 conftest$ac_exeext conftest.$ac_ext
10151LIBS=$ac_check_lib_save_LIBS 15698LIBS=$ac_check_lib_save_LIBS
10152fi 15699fi
10153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 15700{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10154$as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; } 15701$as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10155if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then : 15702if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
10156 HAVE_GIF=yes 15703 HAVE_GIF=yes
10157else 15704else
10158 HAVE_GIF=no 15705 HAVE_GIF=no
@@ -10163,7 +15710,9 @@ fi
10163 15710
10164 if test "${HAVE_GIF}" = "yes"; then 15711 if test "${HAVE_GIF}" = "yes"; then
10165 15712
10166$as_echo "#define HAVE_GIF 1" >>confdefs.h 15713cat >>confdefs.h <<\_ACEOF
15714#define HAVE_GIF 1
15715_ACEOF
10167 15716
10168 fi 15717 fi
10169fi 15718fi
@@ -10184,12 +15733,19 @@ if test "${HAVE_X11}" = "yes"; then
10184 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no" 15733 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
10185 15734
10186 if test "X${MISSING}" != X; then 15735 if test "X${MISSING}" != X; then
10187 as_fn_error "The following required libraries were not found: 15736 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15737 $MISSING
15738Maybe some development libraries/packages are missing?
15739If you don't want to link with them give
15740 $WITH_NO
15741as options to configure" >&5
15742$as_echo "$as_me: error: The following required libraries were not found:
10188 $MISSING 15743 $MISSING
10189Maybe some development libraries/packages are missing? 15744Maybe some development libraries/packages are missing?
10190If you don't want to link with them give 15745If you don't want to link with them give
10191 $WITH_NO 15746 $WITH_NO
10192as options to configure" "$LINENO" 5 15747as options to configure" >&2;}
15748 { (exit 1); exit 1; }; }
10193 fi 15749 fi
10194fi 15750fi
10195 15751
@@ -10197,16 +15753,146 @@ fi
10197HAVE_GPM=no 15753HAVE_GPM=no
10198LIBGPM= 15754LIBGPM=
10199if test "${with_gpm}" != "no"; then 15755if test "${with_gpm}" != "no"; then
10200 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default" 15756 if test "${ac_cv_header_gpm_h+set}" = set; then
10201if test "x$ac_cv_header_gpm_h" = x""yes; then : 15757 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5 15758$as_echo_n "checking for gpm.h... " >&6; }
15759if test "${ac_cv_header_gpm_h+set}" = set; then
15760 $as_echo_n "(cached) " >&6
15761fi
15762{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15763$as_echo "$ac_cv_header_gpm_h" >&6; }
15764else
15765 # Is the header compilable?
15766{ $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15767$as_echo_n "checking gpm.h usability... " >&6; }
15768cat >conftest.$ac_ext <<_ACEOF
15769/* confdefs.h. */
15770_ACEOF
15771cat confdefs.h >>conftest.$ac_ext
15772cat >>conftest.$ac_ext <<_ACEOF
15773/* end confdefs.h. */
15774$ac_includes_default
15775#include <gpm.h>
15776_ACEOF
15777rm -f conftest.$ac_objext
15778if { (ac_try="$ac_compile"
15779case "(($ac_try" in
15780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15781 *) ac_try_echo=$ac_try;;
15782esac
15783eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15784$as_echo "$ac_try_echo") >&5
15785 (eval "$ac_compile") 2>conftest.er1
15786 ac_status=$?
15787 grep -v '^ *+' conftest.er1 >conftest.err
15788 rm -f conftest.er1
15789 cat conftest.err >&5
15790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); } && {
15792 test -z "$ac_c_werror_flag" ||
15793 test ! -s conftest.err
15794 } && test -s conftest.$ac_objext; then
15795 ac_header_compiler=yes
15796else
15797 $as_echo "$as_me: failed program was:" >&5
15798sed 's/^/| /' conftest.$ac_ext >&5
15799
15800 ac_header_compiler=no
15801fi
15802
15803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15804{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15805$as_echo "$ac_header_compiler" >&6; }
15806
15807# Is the header present?
15808{ $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15809$as_echo_n "checking gpm.h presence... " >&6; }
15810cat >conftest.$ac_ext <<_ACEOF
15811/* confdefs.h. */
15812_ACEOF
15813cat confdefs.h >>conftest.$ac_ext
15814cat >>conftest.$ac_ext <<_ACEOF
15815/* end confdefs.h. */
15816#include <gpm.h>
15817_ACEOF
15818if { (ac_try="$ac_cpp conftest.$ac_ext"
15819case "(($ac_try" in
15820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15821 *) ac_try_echo=$ac_try;;
15822esac
15823eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15824$as_echo "$ac_try_echo") >&5
15825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15826 ac_status=$?
15827 grep -v '^ *+' conftest.er1 >conftest.err
15828 rm -f conftest.er1
15829 cat conftest.err >&5
15830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); } >/dev/null && {
15832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15833 test ! -s conftest.err
15834 }; then
15835 ac_header_preproc=yes
15836else
15837 $as_echo "$as_me: failed program was:" >&5
15838sed 's/^/| /' conftest.$ac_ext >&5
15839
15840 ac_header_preproc=no
15841fi
15842
15843rm -f conftest.err conftest.$ac_ext
15844{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15845$as_echo "$ac_header_preproc" >&6; }
15846
15847# So? What about this header?
15848case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15849 yes:no: )
15850 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15851$as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15852 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15853$as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15854 ac_header_preproc=yes
15855 ;;
15856 no:yes:* )
15857 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15858$as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15859 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15860$as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15861 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15862$as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15863 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15864$as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15865 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15866$as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15867 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15868$as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15869
15870 ;;
15871esac
15872{ $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15873$as_echo_n "checking for gpm.h... " >&6; }
15874if test "${ac_cv_header_gpm_h+set}" = set; then
15875 $as_echo_n "(cached) " >&6
15876else
15877 ac_cv_header_gpm_h=$ac_header_preproc
15878fi
15879{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15880$as_echo "$ac_cv_header_gpm_h" >&6; }
15881
15882fi
15883if test $ac_cv_header_gpm_h = yes; then
15884 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
10203$as_echo_n "checking for Gpm_Open in -lgpm... " >&6; } 15885$as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10204if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then : 15886if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
10205 $as_echo_n "(cached) " >&6 15887 $as_echo_n "(cached) " >&6
10206else 15888else
10207 ac_check_lib_save_LIBS=$LIBS 15889 ac_check_lib_save_LIBS=$LIBS
10208LIBS="-lgpm $LIBS" 15890LIBS="-lgpm $LIBS"
10209cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15891cat >conftest.$ac_ext <<_ACEOF
15892/* confdefs.h. */
15893_ACEOF
15894cat confdefs.h >>conftest.$ac_ext
15895cat >>conftest.$ac_ext <<_ACEOF
10210/* end confdefs.h. */ 15896/* end confdefs.h. */
10211 15897
10212/* Override any GCC internal prototype to avoid an error. 15898/* Override any GCC internal prototype to avoid an error.
@@ -10224,18 +15910,43 @@ return Gpm_Open ();
10224 return 0; 15910 return 0;
10225} 15911}
10226_ACEOF 15912_ACEOF
10227if ac_fn_c_try_link "$LINENO"; then : 15913rm -f conftest.$ac_objext conftest$ac_exeext
15914if { (ac_try="$ac_link"
15915case "(($ac_try" in
15916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15917 *) ac_try_echo=$ac_try;;
15918esac
15919eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15920$as_echo "$ac_try_echo") >&5
15921 (eval "$ac_link") 2>conftest.er1
15922 ac_status=$?
15923 grep -v '^ *+' conftest.er1 >conftest.err
15924 rm -f conftest.er1
15925 cat conftest.err >&5
15926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); } && {
15928 test -z "$ac_c_werror_flag" ||
15929 test ! -s conftest.err
15930 } && test -s conftest$ac_exeext && {
15931 test "$cross_compiling" = yes ||
15932 $as_test_x conftest$ac_exeext
15933 }; then
10228 ac_cv_lib_gpm_Gpm_Open=yes 15934 ac_cv_lib_gpm_Gpm_Open=yes
10229else 15935else
10230 ac_cv_lib_gpm_Gpm_Open=no 15936 $as_echo "$as_me: failed program was:" >&5
15937sed 's/^/| /' conftest.$ac_ext >&5
15938
15939 ac_cv_lib_gpm_Gpm_Open=no
10231fi 15940fi
10232rm -f core conftest.err conftest.$ac_objext \ 15941
10233 conftest$ac_exeext conftest.$ac_ext 15942rm -rf conftest.dSYM
15943rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15944 conftest$ac_exeext conftest.$ac_ext
10234LIBS=$ac_check_lib_save_LIBS 15945LIBS=$ac_check_lib_save_LIBS
10235fi 15946fi
10236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5 15947{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10237$as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; } 15948$as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10238if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then : 15949if test $ac_cv_lib_gpm_Gpm_Open = yes; then
10239 HAVE_GPM=yes 15950 HAVE_GPM=yes
10240fi 15951fi
10241 15952
@@ -10245,17 +15956,147 @@ fi
10245 15956
10246 if test "${HAVE_GPM}" = "yes"; then 15957 if test "${HAVE_GPM}" = "yes"; then
10247 15958
10248$as_echo "#define HAVE_GPM 1" >>confdefs.h 15959cat >>confdefs.h <<\_ACEOF
15960#define HAVE_GPM 1
15961_ACEOF
10249 15962
10250 LIBGPM=-lgpm 15963 LIBGPM=-lgpm
10251 fi 15964 fi
10252fi 15965fi
10253 15966
10254 15967
10255ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default" 15968if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
10256if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then : 15969 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15970$as_echo_n "checking for malloc/malloc.h... " >&6; }
15971if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15972 $as_echo_n "(cached) " >&6
15973fi
15974{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15975$as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15976else
15977 # Is the header compilable?
15978{ $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15979$as_echo_n "checking malloc/malloc.h usability... " >&6; }
15980cat >conftest.$ac_ext <<_ACEOF
15981/* confdefs.h. */
15982_ACEOF
15983cat confdefs.h >>conftest.$ac_ext
15984cat >>conftest.$ac_ext <<_ACEOF
15985/* end confdefs.h. */
15986$ac_includes_default
15987#include <malloc/malloc.h>
15988_ACEOF
15989rm -f conftest.$ac_objext
15990if { (ac_try="$ac_compile"
15991case "(($ac_try" in
15992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15993 *) ac_try_echo=$ac_try;;
15994esac
15995eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15996$as_echo "$ac_try_echo") >&5
15997 (eval "$ac_compile") 2>conftest.er1
15998 ac_status=$?
15999 grep -v '^ *+' conftest.er1 >conftest.err
16000 rm -f conftest.er1
16001 cat conftest.err >&5
16002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); } && {
16004 test -z "$ac_c_werror_flag" ||
16005 test ! -s conftest.err
16006 } && test -s conftest.$ac_objext; then
16007 ac_header_compiler=yes
16008else
16009 $as_echo "$as_me: failed program was:" >&5
16010sed 's/^/| /' conftest.$ac_ext >&5
16011
16012 ac_header_compiler=no
16013fi
16014
16015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16016{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16017$as_echo "$ac_header_compiler" >&6; }
16018
16019# Is the header present?
16020{ $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16021$as_echo_n "checking malloc/malloc.h presence... " >&6; }
16022cat >conftest.$ac_ext <<_ACEOF
16023/* confdefs.h. */
16024_ACEOF
16025cat confdefs.h >>conftest.$ac_ext
16026cat >>conftest.$ac_ext <<_ACEOF
16027/* end confdefs.h. */
16028#include <malloc/malloc.h>
16029_ACEOF
16030if { (ac_try="$ac_cpp conftest.$ac_ext"
16031case "(($ac_try" in
16032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16033 *) ac_try_echo=$ac_try;;
16034esac
16035eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16036$as_echo "$ac_try_echo") >&5
16037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16038 ac_status=$?
16039 grep -v '^ *+' conftest.er1 >conftest.err
16040 rm -f conftest.er1
16041 cat conftest.err >&5
16042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); } >/dev/null && {
16044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16045 test ! -s conftest.err
16046 }; then
16047 ac_header_preproc=yes
16048else
16049 $as_echo "$as_me: failed program was:" >&5
16050sed 's/^/| /' conftest.$ac_ext >&5
16051
16052 ac_header_preproc=no
16053fi
16054
16055rm -f conftest.err conftest.$ac_ext
16056{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16057$as_echo "$ac_header_preproc" >&6; }
16058
16059# So? What about this header?
16060case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16061 yes:no: )
16062 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16063$as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16064 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16065$as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16066 ac_header_preproc=yes
16067 ;;
16068 no:yes:* )
16069 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16070$as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16071 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16072$as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16073 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16074$as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16075 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16076$as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16077 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16078$as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16079 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16080$as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
10257 16081
10258$as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h 16082 ;;
16083esac
16084{ $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16085$as_echo_n "checking for malloc/malloc.h... " >&6; }
16086if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16087 $as_echo_n "(cached) " >&6
16088else
16089 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16090fi
16091{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16092$as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16093
16094fi
16095if test $ac_cv_header_malloc_malloc_h = yes; then
16096
16097cat >>confdefs.h <<\_ACEOF
16098#define HAVE_MALLOC_MALLOC_H 1
16099_ACEOF
10259 16100
10260fi 16101fi
10261 16102
@@ -10264,23 +16105,31 @@ fi
10264### Use NeXTstep API to implement GUI. 16105### Use NeXTstep API to implement GUI.
10265if test "${HAVE_NS}" = "yes"; then 16106if test "${HAVE_NS}" = "yes"; then
10266 16107
10267$as_echo "#define HAVE_NS 1" >>confdefs.h 16108cat >>confdefs.h <<\_ACEOF
16109#define HAVE_NS 1
16110_ACEOF
10268 16111
10269 if test "${NS_IMPL_COCOA}" = "yes"; then 16112 if test "${NS_IMPL_COCOA}" = "yes"; then
10270 16113
10271$as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h 16114cat >>confdefs.h <<\_ACEOF
16115#define NS_IMPL_COCOA 1
16116_ACEOF
10272 16117
10273 GNU_OBJC_CFLAGS= 16118 GNU_OBJC_CFLAGS=
10274 fi 16119 fi
10275 if test "${NS_IMPL_GNUSTEP}" = "yes"; then 16120 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
10276 16121
10277$as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h 16122cat >>confdefs.h <<\_ACEOF
16123#define NS_IMPL_GNUSTEP 1
16124_ACEOF
10278 16125
10279 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE" 16126 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
10280 fi 16127 fi
10281 if test "${NS_HAVE_NSINTEGER}" = "yes"; then 16128 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
10282 16129
10283$as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h 16130cat >>confdefs.h <<\_ACEOF
16131#define NS_HAVE_NSINTEGER 1
16132_ACEOF
10284 16133
10285 fi 16134 fi
10286 # We also have mouse menus. 16135 # We also have mouse menus.
@@ -10293,16 +16142,146 @@ fi
10293HAVE_X_SM=no 16142HAVE_X_SM=no
10294LIBXSM= 16143LIBXSM=
10295if test "${HAVE_X11}" = "yes"; then 16144if test "${HAVE_X11}" = "yes"; then
10296 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default" 16145 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10297if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then : 16146 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5 16147$as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16148if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16149 $as_echo_n "(cached) " >&6
16150fi
16151{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16152$as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16153else
16154 # Is the header compilable?
16155{ $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16156$as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16157cat >conftest.$ac_ext <<_ACEOF
16158/* confdefs.h. */
16159_ACEOF
16160cat confdefs.h >>conftest.$ac_ext
16161cat >>conftest.$ac_ext <<_ACEOF
16162/* end confdefs.h. */
16163$ac_includes_default
16164#include <X11/SM/SMlib.h>
16165_ACEOF
16166rm -f conftest.$ac_objext
16167if { (ac_try="$ac_compile"
16168case "(($ac_try" in
16169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16170 *) ac_try_echo=$ac_try;;
16171esac
16172eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16173$as_echo "$ac_try_echo") >&5
16174 (eval "$ac_compile") 2>conftest.er1
16175 ac_status=$?
16176 grep -v '^ *+' conftest.er1 >conftest.err
16177 rm -f conftest.er1
16178 cat conftest.err >&5
16179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } && {
16181 test -z "$ac_c_werror_flag" ||
16182 test ! -s conftest.err
16183 } && test -s conftest.$ac_objext; then
16184 ac_header_compiler=yes
16185else
16186 $as_echo "$as_me: failed program was:" >&5
16187sed 's/^/| /' conftest.$ac_ext >&5
16188
16189 ac_header_compiler=no
16190fi
16191
16192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16193{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16194$as_echo "$ac_header_compiler" >&6; }
16195
16196# Is the header present?
16197{ $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16198$as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16199cat >conftest.$ac_ext <<_ACEOF
16200/* confdefs.h. */
16201_ACEOF
16202cat confdefs.h >>conftest.$ac_ext
16203cat >>conftest.$ac_ext <<_ACEOF
16204/* end confdefs.h. */
16205#include <X11/SM/SMlib.h>
16206_ACEOF
16207if { (ac_try="$ac_cpp conftest.$ac_ext"
16208case "(($ac_try" in
16209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16210 *) ac_try_echo=$ac_try;;
16211esac
16212eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16213$as_echo "$ac_try_echo") >&5
16214 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16215 ac_status=$?
16216 grep -v '^ *+' conftest.er1 >conftest.err
16217 rm -f conftest.er1
16218 cat conftest.err >&5
16219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); } >/dev/null && {
16221 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16222 test ! -s conftest.err
16223 }; then
16224 ac_header_preproc=yes
16225else
16226 $as_echo "$as_me: failed program was:" >&5
16227sed 's/^/| /' conftest.$ac_ext >&5
16228
16229 ac_header_preproc=no
16230fi
16231
16232rm -f conftest.err conftest.$ac_ext
16233{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16234$as_echo "$ac_header_preproc" >&6; }
16235
16236# So? What about this header?
16237case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16238 yes:no: )
16239 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16240$as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16241 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16242$as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16243 ac_header_preproc=yes
16244 ;;
16245 no:yes:* )
16246 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16247$as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16248 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16249$as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16250 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16251$as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16252 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16253$as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16254 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16255$as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16256 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16257$as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16258
16259 ;;
16260esac
16261{ $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16262$as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16263if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16264 $as_echo_n "(cached) " >&6
16265else
16266 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16267fi
16268{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16269$as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16270
16271fi
16272if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16273 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10299$as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; } 16274$as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
10300if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then : 16275if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10301 $as_echo_n "(cached) " >&6 16276 $as_echo_n "(cached) " >&6
10302else 16277else
10303 ac_check_lib_save_LIBS=$LIBS 16278 ac_check_lib_save_LIBS=$LIBS
10304LIBS="-lSM -lICE $LIBS" 16279LIBS="-lSM -lICE $LIBS"
10305cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16280cat >conftest.$ac_ext <<_ACEOF
16281/* confdefs.h. */
16282_ACEOF
16283cat confdefs.h >>conftest.$ac_ext
16284cat >>conftest.$ac_ext <<_ACEOF
10306/* end confdefs.h. */ 16285/* end confdefs.h. */
10307 16286
10308/* Override any GCC internal prototype to avoid an error. 16287/* Override any GCC internal prototype to avoid an error.
@@ -10320,18 +16299,43 @@ return SmcOpenConnection ();
10320 return 0; 16299 return 0;
10321} 16300}
10322_ACEOF 16301_ACEOF
10323if ac_fn_c_try_link "$LINENO"; then : 16302rm -f conftest.$ac_objext conftest$ac_exeext
16303if { (ac_try="$ac_link"
16304case "(($ac_try" in
16305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16306 *) ac_try_echo=$ac_try;;
16307esac
16308eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16309$as_echo "$ac_try_echo") >&5
16310 (eval "$ac_link") 2>conftest.er1
16311 ac_status=$?
16312 grep -v '^ *+' conftest.er1 >conftest.err
16313 rm -f conftest.er1
16314 cat conftest.err >&5
16315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); } && {
16317 test -z "$ac_c_werror_flag" ||
16318 test ! -s conftest.err
16319 } && test -s conftest$ac_exeext && {
16320 test "$cross_compiling" = yes ||
16321 $as_test_x conftest$ac_exeext
16322 }; then
10324 ac_cv_lib_SM_SmcOpenConnection=yes 16323 ac_cv_lib_SM_SmcOpenConnection=yes
10325else 16324else
10326 ac_cv_lib_SM_SmcOpenConnection=no 16325 $as_echo "$as_me: failed program was:" >&5
16326sed 's/^/| /' conftest.$ac_ext >&5
16327
16328 ac_cv_lib_SM_SmcOpenConnection=no
10327fi 16329fi
10328rm -f core conftest.err conftest.$ac_objext \ 16330
10329 conftest$ac_exeext conftest.$ac_ext 16331rm -rf conftest.dSYM
16332rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16333 conftest$ac_exeext conftest.$ac_ext
10330LIBS=$ac_check_lib_save_LIBS 16334LIBS=$ac_check_lib_save_LIBS
10331fi 16335fi
10332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 16336{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10333$as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; } 16337$as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
10334if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then : 16338if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10335 HAVE_X_SM=yes 16339 HAVE_X_SM=yes
10336fi 16340fi
10337 16341
@@ -10341,7 +16345,9 @@ fi
10341 16345
10342 if test "${HAVE_X_SM}" = "yes"; then 16346 if test "${HAVE_X_SM}" = "yes"; then
10343 16347
10344$as_echo "#define HAVE_X_SM 1" >>confdefs.h 16348cat >>confdefs.h <<\_ACEOF
16349#define HAVE_X_SM 1
16350_ACEOF
10345 16351
10346 LIBXSM="-lSM -lICE" 16352 LIBXSM="-lSM -lICE"
10347 case "$LIBS" in 16353 case "$LIBS" in
@@ -10353,12 +16359,16 @@ fi
10353 16359
10354 16360
10355# If netdb.h doesn't declare h_errno, we must declare it by hand. 16361# If netdb.h doesn't declare h_errno, we must declare it by hand.
10356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5 16362{ $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10357$as_echo_n "checking whether netdb declares h_errno... " >&6; } 16363$as_echo_n "checking whether netdb declares h_errno... " >&6; }
10358if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then : 16364if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10359 $as_echo_n "(cached) " >&6 16365 $as_echo_n "(cached) " >&6
10360else 16366else
10361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16367 cat >conftest.$ac_ext <<_ACEOF
16368/* confdefs.h. */
16369_ACEOF
16370cat confdefs.h >>conftest.$ac_ext
16371cat >>conftest.$ac_ext <<_ACEOF
10362/* end confdefs.h. */ 16372/* end confdefs.h. */
10363#include <netdb.h> 16373#include <netdb.h>
10364int 16374int
@@ -10369,30 +16379,61 @@ return h_errno;
10369 return 0; 16379 return 0;
10370} 16380}
10371_ACEOF 16381_ACEOF
10372if ac_fn_c_try_link "$LINENO"; then : 16382rm -f conftest.$ac_objext conftest$ac_exeext
16383if { (ac_try="$ac_link"
16384case "(($ac_try" in
16385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16386 *) ac_try_echo=$ac_try;;
16387esac
16388eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16389$as_echo "$ac_try_echo") >&5
16390 (eval "$ac_link") 2>conftest.er1
16391 ac_status=$?
16392 grep -v '^ *+' conftest.er1 >conftest.err
16393 rm -f conftest.er1
16394 cat conftest.err >&5
16395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); } && {
16397 test -z "$ac_c_werror_flag" ||
16398 test ! -s conftest.err
16399 } && test -s conftest$ac_exeext && {
16400 test "$cross_compiling" = yes ||
16401 $as_test_x conftest$ac_exeext
16402 }; then
10373 emacs_cv_netdb_declares_h_errno=yes 16403 emacs_cv_netdb_declares_h_errno=yes
10374else 16404else
10375 emacs_cv_netdb_declares_h_errno=no 16405 $as_echo "$as_me: failed program was:" >&5
16406sed 's/^/| /' conftest.$ac_ext >&5
16407
16408 emacs_cv_netdb_declares_h_errno=no
10376fi 16409fi
10377rm -f core conftest.err conftest.$ac_objext \ 16410
10378 conftest$ac_exeext conftest.$ac_ext 16411rm -rf conftest.dSYM
16412rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16413 conftest$ac_exeext conftest.$ac_ext
10379fi 16414fi
10380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5 16415{ $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10381$as_echo "$emacs_cv_netdb_declares_h_errno" >&6; } 16416$as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
10382if test $emacs_cv_netdb_declares_h_errno = yes; then 16417if test $emacs_cv_netdb_declares_h_errno = yes; then
10383 16418
10384$as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h 16419cat >>confdefs.h <<\_ACEOF
16420#define HAVE_H_ERRNO 1
16421_ACEOF
10385 16422
10386fi 16423fi
10387 16424
10388# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 16425# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10389# for constant arguments. Useless! 16426# for constant arguments. Useless!
10390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 16427{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
10391$as_echo_n "checking for working alloca.h... " >&6; } 16428$as_echo_n "checking for working alloca.h... " >&6; }
10392if test "${ac_cv_working_alloca_h+set}" = set; then : 16429if test "${ac_cv_working_alloca_h+set}" = set; then
10393 $as_echo_n "(cached) " >&6 16430 $as_echo_n "(cached) " >&6
10394else 16431else
10395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16432 cat >conftest.$ac_ext <<_ACEOF
16433/* confdefs.h. */
16434_ACEOF
16435cat confdefs.h >>conftest.$ac_ext
16436cat >>conftest.$ac_ext <<_ACEOF
10396/* end confdefs.h. */ 16437/* end confdefs.h. */
10397#include <alloca.h> 16438#include <alloca.h>
10398int 16439int
@@ -10404,28 +16445,59 @@ char *p = (char *) alloca (2 * sizeof (int));
10404 return 0; 16445 return 0;
10405} 16446}
10406_ACEOF 16447_ACEOF
10407if ac_fn_c_try_link "$LINENO"; then : 16448rm -f conftest.$ac_objext conftest$ac_exeext
16449if { (ac_try="$ac_link"
16450case "(($ac_try" in
16451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16452 *) ac_try_echo=$ac_try;;
16453esac
16454eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16455$as_echo "$ac_try_echo") >&5
16456 (eval "$ac_link") 2>conftest.er1
16457 ac_status=$?
16458 grep -v '^ *+' conftest.er1 >conftest.err
16459 rm -f conftest.er1
16460 cat conftest.err >&5
16461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); } && {
16463 test -z "$ac_c_werror_flag" ||
16464 test ! -s conftest.err
16465 } && test -s conftest$ac_exeext && {
16466 test "$cross_compiling" = yes ||
16467 $as_test_x conftest$ac_exeext
16468 }; then
10408 ac_cv_working_alloca_h=yes 16469 ac_cv_working_alloca_h=yes
10409else 16470else
10410 ac_cv_working_alloca_h=no 16471 $as_echo "$as_me: failed program was:" >&5
16472sed 's/^/| /' conftest.$ac_ext >&5
16473
16474 ac_cv_working_alloca_h=no
10411fi 16475fi
10412rm -f core conftest.err conftest.$ac_objext \ 16476
10413 conftest$ac_exeext conftest.$ac_ext 16477rm -rf conftest.dSYM
16478rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16479 conftest$ac_exeext conftest.$ac_ext
10414fi 16480fi
10415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 16481{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10416$as_echo "$ac_cv_working_alloca_h" >&6; } 16482$as_echo "$ac_cv_working_alloca_h" >&6; }
10417if test $ac_cv_working_alloca_h = yes; then 16483if test $ac_cv_working_alloca_h = yes; then
10418 16484
10419$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 16485cat >>confdefs.h <<\_ACEOF
16486#define HAVE_ALLOCA_H 1
16487_ACEOF
10420 16488
10421fi 16489fi
10422 16490
10423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 16491{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
10424$as_echo_n "checking for alloca... " >&6; } 16492$as_echo_n "checking for alloca... " >&6; }
10425if test "${ac_cv_func_alloca_works+set}" = set; then : 16493if test "${ac_cv_func_alloca_works+set}" = set; then
10426 $as_echo_n "(cached) " >&6 16494 $as_echo_n "(cached) " >&6
10427else 16495else
10428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16496 cat >conftest.$ac_ext <<_ACEOF
16497/* confdefs.h. */
16498_ACEOF
16499cat confdefs.h >>conftest.$ac_ext
16500cat >>conftest.$ac_ext <<_ACEOF
10429/* end confdefs.h. */ 16501/* end confdefs.h. */
10430#ifdef __GNUC__ 16502#ifdef __GNUC__
10431# define alloca __builtin_alloca 16503# define alloca __builtin_alloca
@@ -10457,20 +16529,47 @@ char *p = (char *) alloca (1);
10457 return 0; 16529 return 0;
10458} 16530}
10459_ACEOF 16531_ACEOF
10460if ac_fn_c_try_link "$LINENO"; then : 16532rm -f conftest.$ac_objext conftest$ac_exeext
16533if { (ac_try="$ac_link"
16534case "(($ac_try" in
16535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536 *) ac_try_echo=$ac_try;;
16537esac
16538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16539$as_echo "$ac_try_echo") >&5
16540 (eval "$ac_link") 2>conftest.er1
16541 ac_status=$?
16542 grep -v '^ *+' conftest.er1 >conftest.err
16543 rm -f conftest.er1
16544 cat conftest.err >&5
16545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546 (exit $ac_status); } && {
16547 test -z "$ac_c_werror_flag" ||
16548 test ! -s conftest.err
16549 } && test -s conftest$ac_exeext && {
16550 test "$cross_compiling" = yes ||
16551 $as_test_x conftest$ac_exeext
16552 }; then
10461 ac_cv_func_alloca_works=yes 16553 ac_cv_func_alloca_works=yes
10462else 16554else
10463 ac_cv_func_alloca_works=no 16555 $as_echo "$as_me: failed program was:" >&5
16556sed 's/^/| /' conftest.$ac_ext >&5
16557
16558 ac_cv_func_alloca_works=no
10464fi 16559fi
10465rm -f core conftest.err conftest.$ac_objext \ 16560
10466 conftest$ac_exeext conftest.$ac_ext 16561rm -rf conftest.dSYM
16562rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16563 conftest$ac_exeext conftest.$ac_ext
10467fi 16564fi
10468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 16565{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10469$as_echo "$ac_cv_func_alloca_works" >&6; } 16566$as_echo "$ac_cv_func_alloca_works" >&6; }
10470 16567
10471if test $ac_cv_func_alloca_works = yes; then 16568if test $ac_cv_func_alloca_works = yes; then
10472 16569
10473$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 16570cat >>confdefs.h <<\_ACEOF
16571#define HAVE_ALLOCA 1
16572_ACEOF
10474 16573
10475else 16574else
10476 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 16575 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
@@ -10480,15 +16579,21 @@ else
10480 16579
10481ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 16580ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10482 16581
10483$as_echo "#define C_ALLOCA 1" >>confdefs.h 16582cat >>confdefs.h <<\_ACEOF
16583#define C_ALLOCA 1
16584_ACEOF
10484 16585
10485 16586
10486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 16587{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10487$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 16588$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10488if test "${ac_cv_os_cray+set}" = set; then : 16589if test "${ac_cv_os_cray+set}" = set; then
10489 $as_echo_n "(cached) " >&6 16590 $as_echo_n "(cached) " >&6
10490else 16591else
10491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16592 cat >conftest.$ac_ext <<_ACEOF
16593/* confdefs.h. */
16594_ACEOF
16595cat confdefs.h >>conftest.$ac_ext
16596cat >>conftest.$ac_ext <<_ACEOF
10492/* end confdefs.h. */ 16597/* end confdefs.h. */
10493#if defined CRAY && ! defined CRAY2 16598#if defined CRAY && ! defined CRAY2
10494webecray 16599webecray
@@ -10498,7 +16603,7 @@ wenotbecray
10498 16603
10499_ACEOF 16604_ACEOF
10500if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16605if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10501 $EGREP "webecray" >/dev/null 2>&1; then : 16606 $EGREP "webecray" >/dev/null 2>&1; then
10502 ac_cv_os_cray=yes 16607 ac_cv_os_cray=yes
10503else 16608else
10504 ac_cv_os_cray=no 16609 ac_cv_os_cray=no
@@ -10506,14 +16611,100 @@ fi
10506rm -f conftest* 16611rm -f conftest*
10507 16612
10508fi 16613fi
10509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 16614{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10510$as_echo "$ac_cv_os_cray" >&6; } 16615$as_echo "$ac_cv_os_cray" >&6; }
10511if test $ac_cv_os_cray = yes; then 16616if test $ac_cv_os_cray = yes; then
10512 for ac_func in _getb67 GETB67 getb67; do 16617 for ac_func in _getb67 GETB67 getb67; do
10513 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16618 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10514ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16619{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10515eval as_val=\$$as_ac_var 16620$as_echo_n "checking for $ac_func... " >&6; }
10516 if test "x$as_val" = x""yes; then : 16621if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16622 $as_echo_n "(cached) " >&6
16623else
16624 cat >conftest.$ac_ext <<_ACEOF
16625/* confdefs.h. */
16626_ACEOF
16627cat confdefs.h >>conftest.$ac_ext
16628cat >>conftest.$ac_ext <<_ACEOF
16629/* end confdefs.h. */
16630/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16632#define $ac_func innocuous_$ac_func
16633
16634/* System header to define __stub macros and hopefully few prototypes,
16635 which can conflict with char $ac_func (); below.
16636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16637 <limits.h> exists even on freestanding compilers. */
16638
16639#ifdef __STDC__
16640# include <limits.h>
16641#else
16642# include <assert.h>
16643#endif
16644
16645#undef $ac_func
16646
16647/* Override any GCC internal prototype to avoid an error.
16648 Use char because int might match the return type of a GCC
16649 builtin and then its argument prototype would still apply. */
16650#ifdef __cplusplus
16651extern "C"
16652#endif
16653char $ac_func ();
16654/* The GNU C library defines this for functions which it implements
16655 to always fail with ENOSYS. Some functions are actually named
16656 something starting with __ and the normal name is an alias. */
16657#if defined __stub_$ac_func || defined __stub___$ac_func
16658choke me
16659#endif
16660
16661int
16662main ()
16663{
16664return $ac_func ();
16665 ;
16666 return 0;
16667}
16668_ACEOF
16669rm -f conftest.$ac_objext conftest$ac_exeext
16670if { (ac_try="$ac_link"
16671case "(($ac_try" in
16672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16673 *) ac_try_echo=$ac_try;;
16674esac
16675eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16676$as_echo "$ac_try_echo") >&5
16677 (eval "$ac_link") 2>conftest.er1
16678 ac_status=$?
16679 grep -v '^ *+' conftest.er1 >conftest.err
16680 rm -f conftest.er1
16681 cat conftest.err >&5
16682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); } && {
16684 test -z "$ac_c_werror_flag" ||
16685 test ! -s conftest.err
16686 } && test -s conftest$ac_exeext && {
16687 test "$cross_compiling" = yes ||
16688 $as_test_x conftest$ac_exeext
16689 }; then
16690 eval "$as_ac_var=yes"
16691else
16692 $as_echo "$as_me: failed program was:" >&5
16693sed 's/^/| /' conftest.$ac_ext >&5
16694
16695 eval "$as_ac_var=no"
16696fi
16697
16698rm -rf conftest.dSYM
16699rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16700 conftest$ac_exeext conftest.$ac_ext
16701fi
16702ac_res=`eval 'as_val=${'$as_ac_var'}
16703 $as_echo "$as_val"'`
16704 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16705$as_echo "$ac_res" >&6; }
16706if test `eval 'as_val=${'$as_ac_var'}
16707 $as_echo "$as_val"'` = yes; then
10517 16708
10518cat >>confdefs.h <<_ACEOF 16709cat >>confdefs.h <<_ACEOF
10519#define CRAY_STACKSEG_END $ac_func 16710#define CRAY_STACKSEG_END $ac_func
@@ -10525,15 +16716,19 @@ fi
10525 done 16716 done
10526fi 16717fi
10527 16718
10528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 16719{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10529$as_echo_n "checking stack direction for C alloca... " >&6; } 16720$as_echo_n "checking stack direction for C alloca... " >&6; }
10530if test "${ac_cv_c_stack_direction+set}" = set; then : 16721if test "${ac_cv_c_stack_direction+set}" = set; then
10531 $as_echo_n "(cached) " >&6 16722 $as_echo_n "(cached) " >&6
10532else 16723else
10533 if test "$cross_compiling" = yes; then : 16724 if test "$cross_compiling" = yes; then
10534 ac_cv_c_stack_direction=0 16725 ac_cv_c_stack_direction=0
10535else 16726else
10536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16727 cat >conftest.$ac_ext <<_ACEOF
16728/* confdefs.h. */
16729_ACEOF
16730cat confdefs.h >>conftest.$ac_ext
16731cat >>conftest.$ac_ext <<_ACEOF
10537/* end confdefs.h. */ 16732/* end confdefs.h. */
10538$ac_includes_default 16733$ac_includes_default
10539int 16734int
@@ -10556,18 +16751,46 @@ main ()
10556 return find_stack_direction () < 0; 16751 return find_stack_direction () < 0;
10557} 16752}
10558_ACEOF 16753_ACEOF
10559if ac_fn_c_try_run "$LINENO"; then : 16754rm -f conftest$ac_exeext
16755if { (ac_try="$ac_link"
16756case "(($ac_try" in
16757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16758 *) ac_try_echo=$ac_try;;
16759esac
16760eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16761$as_echo "$ac_try_echo") >&5
16762 (eval "$ac_link") 2>&5
16763 ac_status=$?
16764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16766 { (case "(($ac_try" in
16767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16768 *) ac_try_echo=$ac_try;;
16769esac
16770eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16771$as_echo "$ac_try_echo") >&5
16772 (eval "$ac_try") 2>&5
16773 ac_status=$?
16774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); }; }; then
10560 ac_cv_c_stack_direction=1 16776 ac_cv_c_stack_direction=1
10561else 16777else
10562 ac_cv_c_stack_direction=-1 16778 $as_echo "$as_me: program exited with status $ac_status" >&5
16779$as_echo "$as_me: failed program was:" >&5
16780sed 's/^/| /' conftest.$ac_ext >&5
16781
16782( exit $ac_status )
16783ac_cv_c_stack_direction=-1
10563fi 16784fi
10564rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16785rm -rf conftest.dSYM
10565 conftest.$ac_objext conftest.beam conftest.$ac_ext 16786rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10566fi 16787fi
10567 16788
16789
10568fi 16790fi
10569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 16791{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10570$as_echo "$ac_cv_c_stack_direction" >&6; } 16792$as_echo "$ac_cv_c_stack_direction" >&6; }
16793
10571cat >>confdefs.h <<_ACEOF 16794cat >>confdefs.h <<_ACEOF
10572#define STACK_DIRECTION $ac_cv_c_stack_direction 16795#define STACK_DIRECTION $ac_cv_c_stack_direction
10573_ACEOF 16796_ACEOF
@@ -10577,19 +16800,26 @@ fi
10577 16800
10578 16801
10579if test x"$ac_cv_func_alloca_works" != xyes; then 16802if test x"$ac_cv_func_alloca_works" != xyes; then
10580 as_fn_error "a system implementation of alloca is required " "$LINENO" 5 16803 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16804$as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16805 { (exit 1); exit 1; }; }
10581fi 16806fi
10582 16807
10583# fmod, logb, and frexp are found in -lm on most systems. 16808# fmod, logb, and frexp are found in -lm on most systems.
10584# On HPUX 9.01, -lm does not contain logb, so check for sqrt. 16809# On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 16810
16811{ $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10586$as_echo_n "checking for sqrt in -lm... " >&6; } 16812$as_echo_n "checking for sqrt in -lm... " >&6; }
10587if test "${ac_cv_lib_m_sqrt+set}" = set; then : 16813if test "${ac_cv_lib_m_sqrt+set}" = set; then
10588 $as_echo_n "(cached) " >&6 16814 $as_echo_n "(cached) " >&6
10589else 16815else
10590 ac_check_lib_save_LIBS=$LIBS 16816 ac_check_lib_save_LIBS=$LIBS
10591LIBS="-lm $LIBS" 16817LIBS="-lm $LIBS"
10592cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16818cat >conftest.$ac_ext <<_ACEOF
16819/* confdefs.h. */
16820_ACEOF
16821cat confdefs.h >>conftest.$ac_ext
16822cat >>conftest.$ac_ext <<_ACEOF
10593/* end confdefs.h. */ 16823/* end confdefs.h. */
10594 16824
10595/* Override any GCC internal prototype to avoid an error. 16825/* Override any GCC internal prototype to avoid an error.
@@ -10607,18 +16837,43 @@ return sqrt ();
10607 return 0; 16837 return 0;
10608} 16838}
10609_ACEOF 16839_ACEOF
10610if ac_fn_c_try_link "$LINENO"; then : 16840rm -f conftest.$ac_objext conftest$ac_exeext
16841if { (ac_try="$ac_link"
16842case "(($ac_try" in
16843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16844 *) ac_try_echo=$ac_try;;
16845esac
16846eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16847$as_echo "$ac_try_echo") >&5
16848 (eval "$ac_link") 2>conftest.er1
16849 ac_status=$?
16850 grep -v '^ *+' conftest.er1 >conftest.err
16851 rm -f conftest.er1
16852 cat conftest.err >&5
16853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); } && {
16855 test -z "$ac_c_werror_flag" ||
16856 test ! -s conftest.err
16857 } && test -s conftest$ac_exeext && {
16858 test "$cross_compiling" = yes ||
16859 $as_test_x conftest$ac_exeext
16860 }; then
10611 ac_cv_lib_m_sqrt=yes 16861 ac_cv_lib_m_sqrt=yes
10612else 16862else
10613 ac_cv_lib_m_sqrt=no 16863 $as_echo "$as_me: failed program was:" >&5
16864sed 's/^/| /' conftest.$ac_ext >&5
16865
16866 ac_cv_lib_m_sqrt=no
10614fi 16867fi
10615rm -f core conftest.err conftest.$ac_objext \ 16868
10616 conftest$ac_exeext conftest.$ac_ext 16869rm -rf conftest.dSYM
16870rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16871 conftest$ac_exeext conftest.$ac_ext
10617LIBS=$ac_check_lib_save_LIBS 16872LIBS=$ac_check_lib_save_LIBS
10618fi 16873fi
10619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 16874{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10620$as_echo "$ac_cv_lib_m_sqrt" >&6; } 16875$as_echo "$ac_cv_lib_m_sqrt" >&6; }
10621if test "x$ac_cv_lib_m_sqrt" = x""yes; then : 16876if test $ac_cv_lib_m_sqrt = yes; then
10622 cat >>confdefs.h <<_ACEOF 16877 cat >>confdefs.h <<_ACEOF
10623#define HAVE_LIBM 1 16878#define HAVE_LIBM 1
10624_ACEOF 16879_ACEOF
@@ -10630,14 +16885,18 @@ fi
10630 16885
10631# Check for mail-locking functions in a "mail" library. Probably this should 16886# Check for mail-locking functions in a "mail" library. Probably this should
10632# have the same check as for liblockfile below. 16887# have the same check as for liblockfile below.
10633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5 16888{ $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10634$as_echo_n "checking for maillock in -lmail... " >&6; } 16889$as_echo_n "checking for maillock in -lmail... " >&6; }
10635if test "${ac_cv_lib_mail_maillock+set}" = set; then : 16890if test "${ac_cv_lib_mail_maillock+set}" = set; then
10636 $as_echo_n "(cached) " >&6 16891 $as_echo_n "(cached) " >&6
10637else 16892else
10638 ac_check_lib_save_LIBS=$LIBS 16893 ac_check_lib_save_LIBS=$LIBS
10639LIBS="-lmail $LIBS" 16894LIBS="-lmail $LIBS"
10640cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16895cat >conftest.$ac_ext <<_ACEOF
16896/* confdefs.h. */
16897_ACEOF
16898cat confdefs.h >>conftest.$ac_ext
16899cat >>conftest.$ac_ext <<_ACEOF
10641/* end confdefs.h. */ 16900/* end confdefs.h. */
10642 16901
10643/* Override any GCC internal prototype to avoid an error. 16902/* Override any GCC internal prototype to avoid an error.
@@ -10655,18 +16914,43 @@ return maillock ();
10655 return 0; 16914 return 0;
10656} 16915}
10657_ACEOF 16916_ACEOF
10658if ac_fn_c_try_link "$LINENO"; then : 16917rm -f conftest.$ac_objext conftest$ac_exeext
16918if { (ac_try="$ac_link"
16919case "(($ac_try" in
16920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16921 *) ac_try_echo=$ac_try;;
16922esac
16923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16924$as_echo "$ac_try_echo") >&5
16925 (eval "$ac_link") 2>conftest.er1
16926 ac_status=$?
16927 grep -v '^ *+' conftest.er1 >conftest.err
16928 rm -f conftest.er1
16929 cat conftest.err >&5
16930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); } && {
16932 test -z "$ac_c_werror_flag" ||
16933 test ! -s conftest.err
16934 } && test -s conftest$ac_exeext && {
16935 test "$cross_compiling" = yes ||
16936 $as_test_x conftest$ac_exeext
16937 }; then
10659 ac_cv_lib_mail_maillock=yes 16938 ac_cv_lib_mail_maillock=yes
10660else 16939else
10661 ac_cv_lib_mail_maillock=no 16940 $as_echo "$as_me: failed program was:" >&5
16941sed 's/^/| /' conftest.$ac_ext >&5
16942
16943 ac_cv_lib_mail_maillock=no
10662fi 16944fi
10663rm -f core conftest.err conftest.$ac_objext \ 16945
10664 conftest$ac_exeext conftest.$ac_ext 16946rm -rf conftest.dSYM
16947rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16948 conftest$ac_exeext conftest.$ac_ext
10665LIBS=$ac_check_lib_save_LIBS 16949LIBS=$ac_check_lib_save_LIBS
10666fi 16950fi
10667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5 16951{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10668$as_echo "$ac_cv_lib_mail_maillock" >&6; } 16952$as_echo "$ac_cv_lib_mail_maillock" >&6; }
10669if test "x$ac_cv_lib_mail_maillock" = x""yes; then : 16953if test $ac_cv_lib_mail_maillock = yes; then
10670 have_mail=yes 16954 have_mail=yes
10671else 16955else
10672 have_mail=no 16956 have_mail=no
@@ -10676,19 +16960,25 @@ if test $have_mail = yes; then
10676 LIBS_MAIL=-lmail 16960 LIBS_MAIL=-lmail
10677 LIBS="$LIBS_MAIL $LIBS" 16961 LIBS="$LIBS_MAIL $LIBS"
10678 16962
10679$as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h 16963cat >>confdefs.h <<\_ACEOF
16964#define HAVE_LIBMAIL 1
16965_ACEOF
10680 16966
10681else 16967else
10682 LIBS_MAIL= 16968 LIBS_MAIL=
10683fi 16969fi
10684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5 16970{ $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10685$as_echo_n "checking for maillock in -llockfile... " >&6; } 16971$as_echo_n "checking for maillock in -llockfile... " >&6; }
10686if test "${ac_cv_lib_lockfile_maillock+set}" = set; then : 16972if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10687 $as_echo_n "(cached) " >&6 16973 $as_echo_n "(cached) " >&6
10688else 16974else
10689 ac_check_lib_save_LIBS=$LIBS 16975 ac_check_lib_save_LIBS=$LIBS
10690LIBS="-llockfile $LIBS" 16976LIBS="-llockfile $LIBS"
10691cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16977cat >conftest.$ac_ext <<_ACEOF
16978/* confdefs.h. */
16979_ACEOF
16980cat confdefs.h >>conftest.$ac_ext
16981cat >>conftest.$ac_ext <<_ACEOF
10692/* end confdefs.h. */ 16982/* end confdefs.h. */
10693 16983
10694/* Override any GCC internal prototype to avoid an error. 16984/* Override any GCC internal prototype to avoid an error.
@@ -10706,18 +16996,43 @@ return maillock ();
10706 return 0; 16996 return 0;
10707} 16997}
10708_ACEOF 16998_ACEOF
10709if ac_fn_c_try_link "$LINENO"; then : 16999rm -f conftest.$ac_objext conftest$ac_exeext
17000if { (ac_try="$ac_link"
17001case "(($ac_try" in
17002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003 *) ac_try_echo=$ac_try;;
17004esac
17005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17006$as_echo "$ac_try_echo") >&5
17007 (eval "$ac_link") 2>conftest.er1
17008 ac_status=$?
17009 grep -v '^ *+' conftest.er1 >conftest.err
17010 rm -f conftest.er1
17011 cat conftest.err >&5
17012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); } && {
17014 test -z "$ac_c_werror_flag" ||
17015 test ! -s conftest.err
17016 } && test -s conftest$ac_exeext && {
17017 test "$cross_compiling" = yes ||
17018 $as_test_x conftest$ac_exeext
17019 }; then
10710 ac_cv_lib_lockfile_maillock=yes 17020 ac_cv_lib_lockfile_maillock=yes
10711else 17021else
10712 ac_cv_lib_lockfile_maillock=no 17022 $as_echo "$as_me: failed program was:" >&5
17023sed 's/^/| /' conftest.$ac_ext >&5
17024
17025 ac_cv_lib_lockfile_maillock=no
10713fi 17026fi
10714rm -f core conftest.err conftest.$ac_objext \ 17027
10715 conftest$ac_exeext conftest.$ac_ext 17028rm -rf conftest.dSYM
17029rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17030 conftest$ac_exeext conftest.$ac_ext
10716LIBS=$ac_check_lib_save_LIBS 17031LIBS=$ac_check_lib_save_LIBS
10717fi 17032fi
10718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5 17033{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10719$as_echo "$ac_cv_lib_lockfile_maillock" >&6; } 17034$as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
10720if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then : 17035if test $ac_cv_lib_lockfile_maillock = yes; then
10721 have_lockfile=yes 17036 have_lockfile=yes
10722else 17037else
10723 have_lockfile=no 17038 have_lockfile=no
@@ -10727,7 +17042,9 @@ if test $have_lockfile = yes; then
10727 LIBS_MAIL=-llockfile 17042 LIBS_MAIL=-llockfile
10728 LIBS="$LIBS_MAIL $LIBS" 17043 LIBS="$LIBS_MAIL $LIBS"
10729 17044
10730$as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h 17045cat >>confdefs.h <<\_ACEOF
17046#define HAVE_LIBLOCKFILE 1
17047_ACEOF
10731 17048
10732else 17049else
10733# If we have the shared liblockfile, assume we must use it for mail 17050# If we have the shared liblockfile, assume we must use it for mail
@@ -10735,9 +17052,9 @@ else
10735# (no liblockfile.a installed), ensure that we don't need to. 17052# (no liblockfile.a installed), ensure that we don't need to.
10736 # Extract the first word of "liblockfile.so", so it can be a program name with args. 17053 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10737set dummy liblockfile.so; ac_word=$2 17054set dummy liblockfile.so; ac_word=$2
10738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17055{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10739$as_echo_n "checking for $ac_word... " >&6; } 17056$as_echo_n "checking for $ac_word... " >&6; }
10740if test "${ac_cv_prog_liblockfile+set}" = set; then : 17057if test "${ac_cv_prog_liblockfile+set}" = set; then
10741 $as_echo_n "(cached) " >&6 17058 $as_echo_n "(cached) " >&6
10742else 17059else
10743 if test -n "$liblockfile"; then 17060 if test -n "$liblockfile"; then
@@ -10749,14 +17066,14 @@ for as_dir in $as_dummy
10749do 17066do
10750 IFS=$as_save_IFS 17067 IFS=$as_save_IFS
10751 test -z "$as_dir" && as_dir=. 17068 test -z "$as_dir" && as_dir=.
10752 for ac_exec_ext in '' $ac_executable_extensions; do 17069 for ac_exec_ext in '' $ac_executable_extensions; do
10753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10754 ac_cv_prog_liblockfile="yes" 17071 ac_cv_prog_liblockfile="yes"
10755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17072 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10756 break 2 17073 break 2
10757 fi 17074 fi
10758done 17075done
10759 done 17076done
10760IFS=$as_save_IFS 17077IFS=$as_save_IFS
10761 17078
10762 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" 17079 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
@@ -10764,37 +17081,263 @@ fi
10764fi 17081fi
10765liblockfile=$ac_cv_prog_liblockfile 17082liblockfile=$ac_cv_prog_liblockfile
10766if test -n "$liblockfile"; then 17083if test -n "$liblockfile"; then
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5 17084 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
10768$as_echo "$liblockfile" >&6; } 17085$as_echo "$liblockfile" >&6; }
10769else 17086else
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17087 { $as_echo "$as_me:$LINENO: result: no" >&5
10771$as_echo "no" >&6; } 17088$as_echo "no" >&6; }
10772fi 17089fi
10773 17090
10774 17091
10775 if test $ac_cv_prog_liblockfile = yes; then 17092 if test $ac_cv_prog_liblockfile = yes; then
10776 as_fn_error "Shared liblockfile found but can't link against it. 17093 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
10777This probably means that movemail could lose mail. 17094This probably means that movemail could lose mail.
10778There may be a \`development' package to install containing liblockfile." "$LINENO" 5 17095There may be a \`development' package to install containing liblockfile." >&5
17096$as_echo "$as_me: error: Shared liblockfile found but can't link against it.
17097This probably means that movemail could lose mail.
17098There may be a \`development' package to install containing liblockfile." >&2;}
17099 { (exit 1); exit 1; }; }
10779 fi 17100 fi
10780fi 17101fi
17102
10781for ac_func in touchlock 17103for ac_func in touchlock
10782do : 17104do
10783 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock" 17105as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10784if test "x$ac_cv_func_touchlock" = x""yes; then : 17106{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17107$as_echo_n "checking for $ac_func... " >&6; }
17108if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17109 $as_echo_n "(cached) " >&6
17110else
17111 cat >conftest.$ac_ext <<_ACEOF
17112/* confdefs.h. */
17113_ACEOF
17114cat confdefs.h >>conftest.$ac_ext
17115cat >>conftest.$ac_ext <<_ACEOF
17116/* end confdefs.h. */
17117/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17119#define $ac_func innocuous_$ac_func
17120
17121/* System header to define __stub macros and hopefully few prototypes,
17122 which can conflict with char $ac_func (); below.
17123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17124 <limits.h> exists even on freestanding compilers. */
17125
17126#ifdef __STDC__
17127# include <limits.h>
17128#else
17129# include <assert.h>
17130#endif
17131
17132#undef $ac_func
17133
17134/* Override any GCC internal prototype to avoid an error.
17135 Use char because int might match the return type of a GCC
17136 builtin and then its argument prototype would still apply. */
17137#ifdef __cplusplus
17138extern "C"
17139#endif
17140char $ac_func ();
17141/* The GNU C library defines this for functions which it implements
17142 to always fail with ENOSYS. Some functions are actually named
17143 something starting with __ and the normal name is an alias. */
17144#if defined __stub_$ac_func || defined __stub___$ac_func
17145choke me
17146#endif
17147
17148int
17149main ()
17150{
17151return $ac_func ();
17152 ;
17153 return 0;
17154}
17155_ACEOF
17156rm -f conftest.$ac_objext conftest$ac_exeext
17157if { (ac_try="$ac_link"
17158case "(($ac_try" in
17159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17160 *) ac_try_echo=$ac_try;;
17161esac
17162eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17163$as_echo "$ac_try_echo") >&5
17164 (eval "$ac_link") 2>conftest.er1
17165 ac_status=$?
17166 grep -v '^ *+' conftest.er1 >conftest.err
17167 rm -f conftest.er1
17168 cat conftest.err >&5
17169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); } && {
17171 test -z "$ac_c_werror_flag" ||
17172 test ! -s conftest.err
17173 } && test -s conftest$ac_exeext && {
17174 test "$cross_compiling" = yes ||
17175 $as_test_x conftest$ac_exeext
17176 }; then
17177 eval "$as_ac_var=yes"
17178else
17179 $as_echo "$as_me: failed program was:" >&5
17180sed 's/^/| /' conftest.$ac_ext >&5
17181
17182 eval "$as_ac_var=no"
17183fi
17184
17185rm -rf conftest.dSYM
17186rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17187 conftest$ac_exeext conftest.$ac_ext
17188fi
17189ac_res=`eval 'as_val=${'$as_ac_var'}
17190 $as_echo "$as_val"'`
17191 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17192$as_echo "$ac_res" >&6; }
17193if test `eval 'as_val=${'$as_ac_var'}
17194 $as_echo "$as_val"'` = yes; then
10785 cat >>confdefs.h <<_ACEOF 17195 cat >>confdefs.h <<_ACEOF
10786#define HAVE_TOUCHLOCK 1 17196#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10787_ACEOF 17197_ACEOF
10788 17198
10789fi 17199fi
10790done 17200done
10791 17201
17202
10792for ac_header in maillock.h 17203for ac_header in maillock.h
10793do : 17204do
10794 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default" 17205as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10795if test "x$ac_cv_header_maillock_h" = x""yes; then : 17206if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17207 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17208$as_echo_n "checking for $ac_header... " >&6; }
17209if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17210 $as_echo_n "(cached) " >&6
17211fi
17212ac_res=`eval 'as_val=${'$as_ac_Header'}
17213 $as_echo "$as_val"'`
17214 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17215$as_echo "$ac_res" >&6; }
17216else
17217 # Is the header compilable?
17218{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17219$as_echo_n "checking $ac_header usability... " >&6; }
17220cat >conftest.$ac_ext <<_ACEOF
17221/* confdefs.h. */
17222_ACEOF
17223cat confdefs.h >>conftest.$ac_ext
17224cat >>conftest.$ac_ext <<_ACEOF
17225/* end confdefs.h. */
17226$ac_includes_default
17227#include <$ac_header>
17228_ACEOF
17229rm -f conftest.$ac_objext
17230if { (ac_try="$ac_compile"
17231case "(($ac_try" in
17232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233 *) ac_try_echo=$ac_try;;
17234esac
17235eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17236$as_echo "$ac_try_echo") >&5
17237 (eval "$ac_compile") 2>conftest.er1
17238 ac_status=$?
17239 grep -v '^ *+' conftest.er1 >conftest.err
17240 rm -f conftest.er1
17241 cat conftest.err >&5
17242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); } && {
17244 test -z "$ac_c_werror_flag" ||
17245 test ! -s conftest.err
17246 } && test -s conftest.$ac_objext; then
17247 ac_header_compiler=yes
17248else
17249 $as_echo "$as_me: failed program was:" >&5
17250sed 's/^/| /' conftest.$ac_ext >&5
17251
17252 ac_header_compiler=no
17253fi
17254
17255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17256{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17257$as_echo "$ac_header_compiler" >&6; }
17258
17259# Is the header present?
17260{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17261$as_echo_n "checking $ac_header presence... " >&6; }
17262cat >conftest.$ac_ext <<_ACEOF
17263/* confdefs.h. */
17264_ACEOF
17265cat confdefs.h >>conftest.$ac_ext
17266cat >>conftest.$ac_ext <<_ACEOF
17267/* end confdefs.h. */
17268#include <$ac_header>
17269_ACEOF
17270if { (ac_try="$ac_cpp conftest.$ac_ext"
17271case "(($ac_try" in
17272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17273 *) ac_try_echo=$ac_try;;
17274esac
17275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17276$as_echo "$ac_try_echo") >&5
17277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17278 ac_status=$?
17279 grep -v '^ *+' conftest.er1 >conftest.err
17280 rm -f conftest.er1
17281 cat conftest.err >&5
17282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); } >/dev/null && {
17284 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17285 test ! -s conftest.err
17286 }; then
17287 ac_header_preproc=yes
17288else
17289 $as_echo "$as_me: failed program was:" >&5
17290sed 's/^/| /' conftest.$ac_ext >&5
17291
17292 ac_header_preproc=no
17293fi
17294
17295rm -f conftest.err conftest.$ac_ext
17296{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17297$as_echo "$ac_header_preproc" >&6; }
17298
17299# So? What about this header?
17300case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17301 yes:no: )
17302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17303$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17305$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17306 ac_header_preproc=yes
17307 ;;
17308 no:yes:* )
17309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17310$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17312$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17314$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17316$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17318$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17320$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17321
17322 ;;
17323esac
17324{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17325$as_echo_n "checking for $ac_header... " >&6; }
17326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17327 $as_echo_n "(cached) " >&6
17328else
17329 eval "$as_ac_Header=\$ac_header_preproc"
17330fi
17331ac_res=`eval 'as_val=${'$as_ac_Header'}
17332 $as_echo "$as_val"'`
17333 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17334$as_echo "$ac_res" >&6; }
17335
17336fi
17337if test `eval 'as_val=${'$as_ac_Header'}
17338 $as_echo "$as_val"'` = yes; then
10796 cat >>confdefs.h <<_ACEOF 17339 cat >>confdefs.h <<_ACEOF
10797#define HAVE_MAILLOCK_H 1 17340#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10798_ACEOF 17341_ACEOF
10799 17342
10800fi 17343fi
@@ -10803,6 +17346,77 @@ done
10803 17346
10804 17347
10805 17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
10806for ac_func in gethostname getdomainname dup2 \ 17420for ac_func in gethostname getdomainname dup2 \
10807rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \ 17421rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
10808random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \ 17422random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
@@ -10813,11 +17427,97 @@ sendto recvfrom getsockopt setsockopt getsockname getpeername \
10813gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \ 17427gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
10814memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \ 17428memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
10815cfmakeraw cfsetspeed 17429cfmakeraw cfsetspeed
10816do : 17430do
10817 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17431as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10818ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17432{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10819eval as_val=\$$as_ac_var 17433$as_echo_n "checking for $ac_func... " >&6; }
10820 if test "x$as_val" = x""yes; then : 17434if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17435 $as_echo_n "(cached) " >&6
17436else
17437 cat >conftest.$ac_ext <<_ACEOF
17438/* confdefs.h. */
17439_ACEOF
17440cat confdefs.h >>conftest.$ac_ext
17441cat >>conftest.$ac_ext <<_ACEOF
17442/* end confdefs.h. */
17443/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17445#define $ac_func innocuous_$ac_func
17446
17447/* System header to define __stub macros and hopefully few prototypes,
17448 which can conflict with char $ac_func (); below.
17449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17450 <limits.h> exists even on freestanding compilers. */
17451
17452#ifdef __STDC__
17453# include <limits.h>
17454#else
17455# include <assert.h>
17456#endif
17457
17458#undef $ac_func
17459
17460/* Override any GCC internal prototype to avoid an error.
17461 Use char because int might match the return type of a GCC
17462 builtin and then its argument prototype would still apply. */
17463#ifdef __cplusplus
17464extern "C"
17465#endif
17466char $ac_func ();
17467/* The GNU C library defines this for functions which it implements
17468 to always fail with ENOSYS. Some functions are actually named
17469 something starting with __ and the normal name is an alias. */
17470#if defined __stub_$ac_func || defined __stub___$ac_func
17471choke me
17472#endif
17473
17474int
17475main ()
17476{
17477return $ac_func ();
17478 ;
17479 return 0;
17480}
17481_ACEOF
17482rm -f conftest.$ac_objext conftest$ac_exeext
17483if { (ac_try="$ac_link"
17484case "(($ac_try" in
17485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17486 *) ac_try_echo=$ac_try;;
17487esac
17488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17489$as_echo "$ac_try_echo") >&5
17490 (eval "$ac_link") 2>conftest.er1
17491 ac_status=$?
17492 grep -v '^ *+' conftest.er1 >conftest.err
17493 rm -f conftest.er1
17494 cat conftest.err >&5
17495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); } && {
17497 test -z "$ac_c_werror_flag" ||
17498 test ! -s conftest.err
17499 } && test -s conftest$ac_exeext && {
17500 test "$cross_compiling" = yes ||
17501 $as_test_x conftest$ac_exeext
17502 }; then
17503 eval "$as_ac_var=yes"
17504else
17505 $as_echo "$as_me: failed program was:" >&5
17506sed 's/^/| /' conftest.$ac_ext >&5
17507
17508 eval "$as_ac_var=no"
17509fi
17510
17511rm -rf conftest.dSYM
17512rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17513 conftest$ac_exeext conftest.$ac_ext
17514fi
17515ac_res=`eval 'as_val=${'$as_ac_var'}
17516 $as_echo "$as_val"'`
17517 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17518$as_echo "$ac_res" >&6; }
17519if test `eval 'as_val=${'$as_ac_var'}
17520 $as_echo "$as_val"'` = yes; then
10821 cat >>confdefs.h <<_ACEOF 17521 cat >>confdefs.h <<_ACEOF
10822#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17522#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10823_ACEOF 17523_ACEOF
@@ -10826,12 +17526,294 @@ fi
10826done 17526done
10827 17527
10828 17528
17529
10829for ac_header in sys/un.h 17530for ac_header in sys/un.h
10830do : 17531do
10831 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default" 17532as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10832if test "x$ac_cv_header_sys_un_h" = x""yes; then : 17533if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17534 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17535$as_echo_n "checking for $ac_header... " >&6; }
17536if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17537 $as_echo_n "(cached) " >&6
17538fi
17539ac_res=`eval 'as_val=${'$as_ac_Header'}
17540 $as_echo "$as_val"'`
17541 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17542$as_echo "$ac_res" >&6; }
17543else
17544 # Is the header compilable?
17545{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17546$as_echo_n "checking $ac_header usability... " >&6; }
17547cat >conftest.$ac_ext <<_ACEOF
17548/* confdefs.h. */
17549_ACEOF
17550cat confdefs.h >>conftest.$ac_ext
17551cat >>conftest.$ac_ext <<_ACEOF
17552/* end confdefs.h. */
17553$ac_includes_default
17554#include <$ac_header>
17555_ACEOF
17556rm -f conftest.$ac_objext
17557if { (ac_try="$ac_compile"
17558case "(($ac_try" in
17559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17560 *) ac_try_echo=$ac_try;;
17561esac
17562eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17563$as_echo "$ac_try_echo") >&5
17564 (eval "$ac_compile") 2>conftest.er1
17565 ac_status=$?
17566 grep -v '^ *+' conftest.er1 >conftest.err
17567 rm -f conftest.er1
17568 cat conftest.err >&5
17569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); } && {
17571 test -z "$ac_c_werror_flag" ||
17572 test ! -s conftest.err
17573 } && test -s conftest.$ac_objext; then
17574 ac_header_compiler=yes
17575else
17576 $as_echo "$as_me: failed program was:" >&5
17577sed 's/^/| /' conftest.$ac_ext >&5
17578
17579 ac_header_compiler=no
17580fi
17581
17582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17583{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17584$as_echo "$ac_header_compiler" >&6; }
17585
17586# Is the header present?
17587{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17588$as_echo_n "checking $ac_header presence... " >&6; }
17589cat >conftest.$ac_ext <<_ACEOF
17590/* confdefs.h. */
17591_ACEOF
17592cat confdefs.h >>conftest.$ac_ext
17593cat >>conftest.$ac_ext <<_ACEOF
17594/* end confdefs.h. */
17595#include <$ac_header>
17596_ACEOF
17597if { (ac_try="$ac_cpp conftest.$ac_ext"
17598case "(($ac_try" in
17599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600 *) ac_try_echo=$ac_try;;
17601esac
17602eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17603$as_echo "$ac_try_echo") >&5
17604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17605 ac_status=$?
17606 grep -v '^ *+' conftest.er1 >conftest.err
17607 rm -f conftest.er1
17608 cat conftest.err >&5
17609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); } >/dev/null && {
17611 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17612 test ! -s conftest.err
17613 }; then
17614 ac_header_preproc=yes
17615else
17616 $as_echo "$as_me: failed program was:" >&5
17617sed 's/^/| /' conftest.$ac_ext >&5
17618
17619 ac_header_preproc=no
17620fi
17621
17622rm -f conftest.err conftest.$ac_ext
17623{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17624$as_echo "$ac_header_preproc" >&6; }
17625
17626# So? What about this header?
17627case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17628 yes:no: )
17629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17630$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17632$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17633 ac_header_preproc=yes
17634 ;;
17635 no:yes:* )
17636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17637$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17639$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17640 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17641$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17642 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17643$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17644 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17645$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17646 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17647$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17648
17649 ;;
17650esac
17651{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17652$as_echo_n "checking for $ac_header... " >&6; }
17653if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17654 $as_echo_n "(cached) " >&6
17655else
17656 eval "$as_ac_Header=\$ac_header_preproc"
17657fi
17658ac_res=`eval 'as_val=${'$as_ac_Header'}
17659 $as_echo "$as_val"'`
17660 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17661$as_echo "$ac_res" >&6; }
17662
17663fi
17664if test `eval 'as_val=${'$as_ac_Header'}
17665 $as_echo "$as_val"'` = yes; then
17666 cat >>confdefs.h <<_ACEOF
17667#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17668_ACEOF
17669
17670fi
17671
17672done
17673
17674
17675
17676
17677
17678
17679for ac_header in $ac_header_list
17680do
17681as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17682if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17683 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17684$as_echo_n "checking for $ac_header... " >&6; }
17685if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17686 $as_echo_n "(cached) " >&6
17687fi
17688ac_res=`eval 'as_val=${'$as_ac_Header'}
17689 $as_echo "$as_val"'`
17690 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17691$as_echo "$ac_res" >&6; }
17692else
17693 # Is the header compilable?
17694{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17695$as_echo_n "checking $ac_header usability... " >&6; }
17696cat >conftest.$ac_ext <<_ACEOF
17697/* confdefs.h. */
17698_ACEOF
17699cat confdefs.h >>conftest.$ac_ext
17700cat >>conftest.$ac_ext <<_ACEOF
17701/* end confdefs.h. */
17702$ac_includes_default
17703#include <$ac_header>
17704_ACEOF
17705rm -f conftest.$ac_objext
17706if { (ac_try="$ac_compile"
17707case "(($ac_try" in
17708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17709 *) ac_try_echo=$ac_try;;
17710esac
17711eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17712$as_echo "$ac_try_echo") >&5
17713 (eval "$ac_compile") 2>conftest.er1
17714 ac_status=$?
17715 grep -v '^ *+' conftest.er1 >conftest.err
17716 rm -f conftest.er1
17717 cat conftest.err >&5
17718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); } && {
17720 test -z "$ac_c_werror_flag" ||
17721 test ! -s conftest.err
17722 } && test -s conftest.$ac_objext; then
17723 ac_header_compiler=yes
17724else
17725 $as_echo "$as_me: failed program was:" >&5
17726sed 's/^/| /' conftest.$ac_ext >&5
17727
17728 ac_header_compiler=no
17729fi
17730
17731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17732{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17733$as_echo "$ac_header_compiler" >&6; }
17734
17735# Is the header present?
17736{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17737$as_echo_n "checking $ac_header presence... " >&6; }
17738cat >conftest.$ac_ext <<_ACEOF
17739/* confdefs.h. */
17740_ACEOF
17741cat confdefs.h >>conftest.$ac_ext
17742cat >>conftest.$ac_ext <<_ACEOF
17743/* end confdefs.h. */
17744#include <$ac_header>
17745_ACEOF
17746if { (ac_try="$ac_cpp conftest.$ac_ext"
17747case "(($ac_try" in
17748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17749 *) ac_try_echo=$ac_try;;
17750esac
17751eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17752$as_echo "$ac_try_echo") >&5
17753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17754 ac_status=$?
17755 grep -v '^ *+' conftest.er1 >conftest.err
17756 rm -f conftest.er1
17757 cat conftest.err >&5
17758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); } >/dev/null && {
17760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17761 test ! -s conftest.err
17762 }; then
17763 ac_header_preproc=yes
17764else
17765 $as_echo "$as_me: failed program was:" >&5
17766sed 's/^/| /' conftest.$ac_ext >&5
17767
17768 ac_header_preproc=no
17769fi
17770
17771rm -f conftest.err conftest.$ac_ext
17772{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17773$as_echo "$ac_header_preproc" >&6; }
17774
17775# So? What about this header?
17776case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17777 yes:no: )
17778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17779$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17781$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17782 ac_header_preproc=yes
17783 ;;
17784 no:yes:* )
17785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17786$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17788$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17790$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17792$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17793 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17794$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17795 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17796$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17797
17798 ;;
17799esac
17800{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17801$as_echo_n "checking for $ac_header... " >&6; }
17802if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17803 $as_echo_n "(cached) " >&6
17804else
17805 eval "$as_ac_Header=\$ac_header_preproc"
17806fi
17807ac_res=`eval 'as_val=${'$as_ac_Header'}
17808 $as_echo "$as_val"'`
17809 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17810$as_echo "$ac_res" >&6; }
17811
17812fi
17813if test `eval 'as_val=${'$as_ac_Header'}
17814 $as_echo "$as_val"'` = yes; then
10833 cat >>confdefs.h <<_ACEOF 17815 cat >>confdefs.h <<_ACEOF
10834#define HAVE_SYS_UN_H 1 17816#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10835_ACEOF 17817_ACEOF
10836 17818
10837fi 17819fi
@@ -10844,12 +17826,100 @@ done
10844 17826
10845 17827
10846 17828
10847 for ac_func in $ac_func_list 17829
10848do : 17830
10849 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17831for ac_func in $ac_func_list
10850ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17832do
10851eval as_val=\$$as_ac_var 17833as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10852 if test "x$as_val" = x""yes; then : 17834{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17835$as_echo_n "checking for $ac_func... " >&6; }
17836if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17837 $as_echo_n "(cached) " >&6
17838else
17839 cat >conftest.$ac_ext <<_ACEOF
17840/* confdefs.h. */
17841_ACEOF
17842cat confdefs.h >>conftest.$ac_ext
17843cat >>conftest.$ac_ext <<_ACEOF
17844/* end confdefs.h. */
17845/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17847#define $ac_func innocuous_$ac_func
17848
17849/* System header to define __stub macros and hopefully few prototypes,
17850 which can conflict with char $ac_func (); below.
17851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17852 <limits.h> exists even on freestanding compilers. */
17853
17854#ifdef __STDC__
17855# include <limits.h>
17856#else
17857# include <assert.h>
17858#endif
17859
17860#undef $ac_func
17861
17862/* Override any GCC internal prototype to avoid an error.
17863 Use char because int might match the return type of a GCC
17864 builtin and then its argument prototype would still apply. */
17865#ifdef __cplusplus
17866extern "C"
17867#endif
17868char $ac_func ();
17869/* The GNU C library defines this for functions which it implements
17870 to always fail with ENOSYS. Some functions are actually named
17871 something starting with __ and the normal name is an alias. */
17872#if defined __stub_$ac_func || defined __stub___$ac_func
17873choke me
17874#endif
17875
17876int
17877main ()
17878{
17879return $ac_func ();
17880 ;
17881 return 0;
17882}
17883_ACEOF
17884rm -f conftest.$ac_objext conftest$ac_exeext
17885if { (ac_try="$ac_link"
17886case "(($ac_try" in
17887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17888 *) ac_try_echo=$ac_try;;
17889esac
17890eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17891$as_echo "$ac_try_echo") >&5
17892 (eval "$ac_link") 2>conftest.er1
17893 ac_status=$?
17894 grep -v '^ *+' conftest.er1 >conftest.err
17895 rm -f conftest.er1
17896 cat conftest.err >&5
17897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); } && {
17899 test -z "$ac_c_werror_flag" ||
17900 test ! -s conftest.err
17901 } && test -s conftest$ac_exeext && {
17902 test "$cross_compiling" = yes ||
17903 $as_test_x conftest$ac_exeext
17904 }; then
17905 eval "$as_ac_var=yes"
17906else
17907 $as_echo "$as_me: failed program was:" >&5
17908sed 's/^/| /' conftest.$ac_ext >&5
17909
17910 eval "$as_ac_var=no"
17911fi
17912
17913rm -rf conftest.dSYM
17914rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17915 conftest$ac_exeext conftest.$ac_ext
17916fi
17917ac_res=`eval 'as_val=${'$as_ac_var'}
17918 $as_echo "$as_val"'`
17919 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17920$as_echo "$ac_res" >&6; }
17921if test `eval 'as_val=${'$as_ac_var'}
17922 $as_echo "$as_val"'` = yes; then
10853 cat >>confdefs.h <<_ACEOF 17923 cat >>confdefs.h <<_ACEOF
10854#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17924#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10855_ACEOF 17925_ACEOF
@@ -10861,15 +17931,31 @@ done
10861 17931
10862 17932
10863 17933
10864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5 17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946{ $as_echo "$as_me:$LINENO: checking for working mktime" >&5
10865$as_echo_n "checking for working mktime... " >&6; } 17947$as_echo_n "checking for working mktime... " >&6; }
10866if test "${ac_cv_func_working_mktime+set}" = set; then : 17948if test "${ac_cv_func_working_mktime+set}" = set; then
10867 $as_echo_n "(cached) " >&6 17949 $as_echo_n "(cached) " >&6
10868else 17950else
10869 if test "$cross_compiling" = yes; then : 17951 if test "$cross_compiling" = yes; then
10870 ac_cv_func_working_mktime=no 17952 ac_cv_func_working_mktime=no
10871else 17953else
10872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17954 cat >conftest.$ac_ext <<_ACEOF
17955/* confdefs.h. */
17956_ACEOF
17957cat confdefs.h >>conftest.$ac_ext
17958cat >>conftest.$ac_ext <<_ACEOF
10873/* end confdefs.h. */ 17959/* end confdefs.h. */
10874/* Test program from Paul Eggert and Tony Leneis. */ 17960/* Test program from Paul Eggert and Tony Leneis. */
10875#ifdef TIME_WITH_SYS_TIME 17961#ifdef TIME_WITH_SYS_TIME
@@ -11066,17 +18152,44 @@ main ()
11066 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); 18152 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
11067} 18153}
11068_ACEOF 18154_ACEOF
11069if ac_fn_c_try_run "$LINENO"; then : 18155rm -f conftest$ac_exeext
18156if { (ac_try="$ac_link"
18157case "(($ac_try" in
18158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18159 *) ac_try_echo=$ac_try;;
18160esac
18161eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18162$as_echo "$ac_try_echo") >&5
18163 (eval "$ac_link") 2>&5
18164 ac_status=$?
18165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18167 { (case "(($ac_try" in
18168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18169 *) ac_try_echo=$ac_try;;
18170esac
18171eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18172$as_echo "$ac_try_echo") >&5
18173 (eval "$ac_try") 2>&5
18174 ac_status=$?
18175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); }; }; then
11070 ac_cv_func_working_mktime=yes 18177 ac_cv_func_working_mktime=yes
11071else 18178else
11072 ac_cv_func_working_mktime=no 18179 $as_echo "$as_me: program exited with status $ac_status" >&5
18180$as_echo "$as_me: failed program was:" >&5
18181sed 's/^/| /' conftest.$ac_ext >&5
18182
18183( exit $ac_status )
18184ac_cv_func_working_mktime=no
11073fi 18185fi
11074rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18186rm -rf conftest.dSYM
11075 conftest.$ac_objext conftest.beam conftest.$ac_ext 18187rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11076fi 18188fi
11077 18189
18190
11078fi 18191fi
11079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5 18192{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11080$as_echo "$ac_cv_func_working_mktime" >&6; } 18193$as_echo "$ac_cv_func_working_mktime" >&6; }
11081if test $ac_cv_func_working_mktime = no; then 18194if test $ac_cv_func_working_mktime = no; then
11082 case " $LIBOBJS " in 18195 case " $LIBOBJS " in
@@ -11089,7 +18202,9 @@ fi
11089 18202
11090if test "$ac_cv_func_working_mktime" = no; then 18203if test "$ac_cv_func_working_mktime" = no; then
11091 18204
11092$as_echo "#define BROKEN_MKTIME 1" >>confdefs.h 18205cat >>confdefs.h <<\_ACEOF
18206#define BROKEN_MKTIME 1
18207_ACEOF
11093 18208
11094fi 18209fi
11095 18210
@@ -11097,13 +18212,99 @@ ac_have_func=no # yes means we've found a way to get the load average.
11097 18212
11098# Make sure getloadavg.c is where it belongs, at configure-time. 18213# Make sure getloadavg.c is where it belongs, at configure-time.
11099test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || 18214test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11100 as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5 18215 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18216$as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18217 { (exit 1); exit 1; }; }
11101 18218
11102ac_save_LIBS=$LIBS 18219ac_save_LIBS=$LIBS
11103 18220
11104# Check for getloadavg, but be sure not to touch the cache variable. 18221# Check for getloadavg, but be sure not to touch the cache variable.
11105(ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" 18222({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
11106if test "x$ac_cv_func_getloadavg" = x""yes; then : 18223$as_echo_n "checking for getloadavg... " >&6; }
18224if test "${ac_cv_func_getloadavg+set}" = set; then
18225 $as_echo_n "(cached) " >&6
18226else
18227 cat >conftest.$ac_ext <<_ACEOF
18228/* confdefs.h. */
18229_ACEOF
18230cat confdefs.h >>conftest.$ac_ext
18231cat >>conftest.$ac_ext <<_ACEOF
18232/* end confdefs.h. */
18233/* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18235#define getloadavg innocuous_getloadavg
18236
18237/* System header to define __stub macros and hopefully few prototypes,
18238 which can conflict with char getloadavg (); below.
18239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18240 <limits.h> exists even on freestanding compilers. */
18241
18242#ifdef __STDC__
18243# include <limits.h>
18244#else
18245# include <assert.h>
18246#endif
18247
18248#undef getloadavg
18249
18250/* Override any GCC internal prototype to avoid an error.
18251 Use char because int might match the return type of a GCC
18252 builtin and then its argument prototype would still apply. */
18253#ifdef __cplusplus
18254extern "C"
18255#endif
18256char getloadavg ();
18257/* The GNU C library defines this for functions which it implements
18258 to always fail with ENOSYS. Some functions are actually named
18259 something starting with __ and the normal name is an alias. */
18260#if defined __stub_getloadavg || defined __stub___getloadavg
18261choke me
18262#endif
18263
18264int
18265main ()
18266{
18267return getloadavg ();
18268 ;
18269 return 0;
18270}
18271_ACEOF
18272rm -f conftest.$ac_objext conftest$ac_exeext
18273if { (ac_try="$ac_link"
18274case "(($ac_try" in
18275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276 *) ac_try_echo=$ac_try;;
18277esac
18278eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18279$as_echo "$ac_try_echo") >&5
18280 (eval "$ac_link") 2>conftest.er1
18281 ac_status=$?
18282 grep -v '^ *+' conftest.er1 >conftest.err
18283 rm -f conftest.er1
18284 cat conftest.err >&5
18285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); } && {
18287 test -z "$ac_c_werror_flag" ||
18288 test ! -s conftest.err
18289 } && test -s conftest$ac_exeext && {
18290 test "$cross_compiling" = yes ||
18291 $as_test_x conftest$ac_exeext
18292 }; then
18293 ac_cv_func_getloadavg=yes
18294else
18295 $as_echo "$as_me: failed program was:" >&5
18296sed 's/^/| /' conftest.$ac_ext >&5
18297
18298 ac_cv_func_getloadavg=no
18299fi
18300
18301rm -rf conftest.dSYM
18302rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18303 conftest$ac_exeext conftest.$ac_ext
18304fi
18305{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18306$as_echo "$ac_cv_func_getloadavg" >&6; }
18307if test $ac_cv_func_getloadavg = yes; then
11107 exit 0 18308 exit 0
11108else 18309else
11109 exit 1 18310 exit 1
@@ -11111,12 +18312,101 @@ fi
11111) && ac_have_func=yes 18312) && ac_have_func=yes
11112 18313
11113# On HPUX9, an unprivileged user can get load averages through this function. 18314# On HPUX9, an unprivileged user can get load averages through this function.
18315
11114for ac_func in pstat_getdynamic 18316for ac_func in pstat_getdynamic
11115do : 18317do
11116 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic" 18318as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11117if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then : 18319{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18320$as_echo_n "checking for $ac_func... " >&6; }
18321if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18322 $as_echo_n "(cached) " >&6
18323else
18324 cat >conftest.$ac_ext <<_ACEOF
18325/* confdefs.h. */
18326_ACEOF
18327cat confdefs.h >>conftest.$ac_ext
18328cat >>conftest.$ac_ext <<_ACEOF
18329/* end confdefs.h. */
18330/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18332#define $ac_func innocuous_$ac_func
18333
18334/* System header to define __stub macros and hopefully few prototypes,
18335 which can conflict with char $ac_func (); below.
18336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18337 <limits.h> exists even on freestanding compilers. */
18338
18339#ifdef __STDC__
18340# include <limits.h>
18341#else
18342# include <assert.h>
18343#endif
18344
18345#undef $ac_func
18346
18347/* Override any GCC internal prototype to avoid an error.
18348 Use char because int might match the return type of a GCC
18349 builtin and then its argument prototype would still apply. */
18350#ifdef __cplusplus
18351extern "C"
18352#endif
18353char $ac_func ();
18354/* The GNU C library defines this for functions which it implements
18355 to always fail with ENOSYS. Some functions are actually named
18356 something starting with __ and the normal name is an alias. */
18357#if defined __stub_$ac_func || defined __stub___$ac_func
18358choke me
18359#endif
18360
18361int
18362main ()
18363{
18364return $ac_func ();
18365 ;
18366 return 0;
18367}
18368_ACEOF
18369rm -f conftest.$ac_objext conftest$ac_exeext
18370if { (ac_try="$ac_link"
18371case "(($ac_try" in
18372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18373 *) ac_try_echo=$ac_try;;
18374esac
18375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18376$as_echo "$ac_try_echo") >&5
18377 (eval "$ac_link") 2>conftest.er1
18378 ac_status=$?
18379 grep -v '^ *+' conftest.er1 >conftest.err
18380 rm -f conftest.er1
18381 cat conftest.err >&5
18382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); } && {
18384 test -z "$ac_c_werror_flag" ||
18385 test ! -s conftest.err
18386 } && test -s conftest$ac_exeext && {
18387 test "$cross_compiling" = yes ||
18388 $as_test_x conftest$ac_exeext
18389 }; then
18390 eval "$as_ac_var=yes"
18391else
18392 $as_echo "$as_me: failed program was:" >&5
18393sed 's/^/| /' conftest.$ac_ext >&5
18394
18395 eval "$as_ac_var=no"
18396fi
18397
18398rm -rf conftest.dSYM
18399rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18400 conftest$ac_exeext conftest.$ac_ext
18401fi
18402ac_res=`eval 'as_val=${'$as_ac_var'}
18403 $as_echo "$as_val"'`
18404 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18405$as_echo "$ac_res" >&6; }
18406if test `eval 'as_val=${'$as_ac_var'}
18407 $as_echo "$as_val"'` = yes; then
11118 cat >>confdefs.h <<_ACEOF 18408 cat >>confdefs.h <<_ACEOF
11119#define HAVE_PSTAT_GETDYNAMIC 1 18409#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11120_ACEOF 18410_ACEOF
11121 18411
11122fi 18412fi
@@ -11124,14 +18414,19 @@ done
11124 18414
11125 18415
11126# Solaris has libkstat which does not require root. 18416# Solaris has libkstat which does not require root.
11127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5 18417
18418{ $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
11128$as_echo_n "checking for kstat_open in -lkstat... " >&6; } 18419$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11129if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then : 18420if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
11130 $as_echo_n "(cached) " >&6 18421 $as_echo_n "(cached) " >&6
11131else 18422else
11132 ac_check_lib_save_LIBS=$LIBS 18423 ac_check_lib_save_LIBS=$LIBS
11133LIBS="-lkstat $LIBS" 18424LIBS="-lkstat $LIBS"
11134cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18425cat >conftest.$ac_ext <<_ACEOF
18426/* confdefs.h. */
18427_ACEOF
18428cat confdefs.h >>conftest.$ac_ext
18429cat >>conftest.$ac_ext <<_ACEOF
11135/* end confdefs.h. */ 18430/* end confdefs.h. */
11136 18431
11137/* Override any GCC internal prototype to avoid an error. 18432/* Override any GCC internal prototype to avoid an error.
@@ -11149,18 +18444,43 @@ return kstat_open ();
11149 return 0; 18444 return 0;
11150} 18445}
11151_ACEOF 18446_ACEOF
11152if ac_fn_c_try_link "$LINENO"; then : 18447rm -f conftest.$ac_objext conftest$ac_exeext
18448if { (ac_try="$ac_link"
18449case "(($ac_try" in
18450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18451 *) ac_try_echo=$ac_try;;
18452esac
18453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18454$as_echo "$ac_try_echo") >&5
18455 (eval "$ac_link") 2>conftest.er1
18456 ac_status=$?
18457 grep -v '^ *+' conftest.er1 >conftest.err
18458 rm -f conftest.er1
18459 cat conftest.err >&5
18460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); } && {
18462 test -z "$ac_c_werror_flag" ||
18463 test ! -s conftest.err
18464 } && test -s conftest$ac_exeext && {
18465 test "$cross_compiling" = yes ||
18466 $as_test_x conftest$ac_exeext
18467 }; then
11153 ac_cv_lib_kstat_kstat_open=yes 18468 ac_cv_lib_kstat_kstat_open=yes
11154else 18469else
11155 ac_cv_lib_kstat_kstat_open=no 18470 $as_echo "$as_me: failed program was:" >&5
18471sed 's/^/| /' conftest.$ac_ext >&5
18472
18473 ac_cv_lib_kstat_kstat_open=no
11156fi 18474fi
11157rm -f core conftest.err conftest.$ac_objext \ 18475
11158 conftest$ac_exeext conftest.$ac_ext 18476rm -rf conftest.dSYM
18477rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18478 conftest$ac_exeext conftest.$ac_ext
11159LIBS=$ac_check_lib_save_LIBS 18479LIBS=$ac_check_lib_save_LIBS
11160fi 18480fi
11161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5 18481{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
11162$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; } 18482$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11163if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then : 18483if test $ac_cv_lib_kstat_kstat_open = yes; then
11164 cat >>confdefs.h <<_ACEOF 18484 cat >>confdefs.h <<_ACEOF
11165#define HAVE_LIBKSTAT 1 18485#define HAVE_LIBKSTAT 1
11166_ACEOF 18486_ACEOF
@@ -11176,14 +18496,18 @@ test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
11176# to get the right answer into the cache. 18496# to get the right answer into the cache.
11177# For kstat on solaris, we need libelf to force the definition of SVR4 below. 18497# For kstat on solaris, we need libelf to force the definition of SVR4 below.
11178if test $ac_have_func = no; then 18498if test $ac_have_func = no; then
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5 18499 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
11180$as_echo_n "checking for elf_begin in -lelf... " >&6; } 18500$as_echo_n "checking for elf_begin in -lelf... " >&6; }
11181if test "${ac_cv_lib_elf_elf_begin+set}" = set; then : 18501if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
11182 $as_echo_n "(cached) " >&6 18502 $as_echo_n "(cached) " >&6
11183else 18503else
11184 ac_check_lib_save_LIBS=$LIBS 18504 ac_check_lib_save_LIBS=$LIBS
11185LIBS="-lelf $LIBS" 18505LIBS="-lelf $LIBS"
11186cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18506cat >conftest.$ac_ext <<_ACEOF
18507/* confdefs.h. */
18508_ACEOF
18509cat confdefs.h >>conftest.$ac_ext
18510cat >>conftest.$ac_ext <<_ACEOF
11187/* end confdefs.h. */ 18511/* end confdefs.h. */
11188 18512
11189/* Override any GCC internal prototype to avoid an error. 18513/* Override any GCC internal prototype to avoid an error.
@@ -11201,31 +18525,60 @@ return elf_begin ();
11201 return 0; 18525 return 0;
11202} 18526}
11203_ACEOF 18527_ACEOF
11204if ac_fn_c_try_link "$LINENO"; then : 18528rm -f conftest.$ac_objext conftest$ac_exeext
18529if { (ac_try="$ac_link"
18530case "(($ac_try" in
18531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18532 *) ac_try_echo=$ac_try;;
18533esac
18534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18535$as_echo "$ac_try_echo") >&5
18536 (eval "$ac_link") 2>conftest.er1
18537 ac_status=$?
18538 grep -v '^ *+' conftest.er1 >conftest.err
18539 rm -f conftest.er1
18540 cat conftest.err >&5
18541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); } && {
18543 test -z "$ac_c_werror_flag" ||
18544 test ! -s conftest.err
18545 } && test -s conftest$ac_exeext && {
18546 test "$cross_compiling" = yes ||
18547 $as_test_x conftest$ac_exeext
18548 }; then
11205 ac_cv_lib_elf_elf_begin=yes 18549 ac_cv_lib_elf_elf_begin=yes
11206else 18550else
11207 ac_cv_lib_elf_elf_begin=no 18551 $as_echo "$as_me: failed program was:" >&5
18552sed 's/^/| /' conftest.$ac_ext >&5
18553
18554 ac_cv_lib_elf_elf_begin=no
11208fi 18555fi
11209rm -f core conftest.err conftest.$ac_objext \ 18556
11210 conftest$ac_exeext conftest.$ac_ext 18557rm -rf conftest.dSYM
18558rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18559 conftest$ac_exeext conftest.$ac_ext
11211LIBS=$ac_check_lib_save_LIBS 18560LIBS=$ac_check_lib_save_LIBS
11212fi 18561fi
11213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5 18562{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
11214$as_echo "$ac_cv_lib_elf_elf_begin" >&6; } 18563$as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11215if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then : 18564if test $ac_cv_lib_elf_elf_begin = yes; then
11216 LIBS="-lelf $LIBS" 18565 LIBS="-lelf $LIBS"
11217fi 18566fi
11218 18567
11219fi 18568fi
11220if test $ac_have_func = no; then 18569if test $ac_have_func = no; then
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5 18570 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
11222$as_echo_n "checking for kvm_open in -lkvm... " >&6; } 18571$as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11223if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then : 18572if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
11224 $as_echo_n "(cached) " >&6 18573 $as_echo_n "(cached) " >&6
11225else 18574else
11226 ac_check_lib_save_LIBS=$LIBS 18575 ac_check_lib_save_LIBS=$LIBS
11227LIBS="-lkvm $LIBS" 18576LIBS="-lkvm $LIBS"
11228cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18577cat >conftest.$ac_ext <<_ACEOF
18578/* confdefs.h. */
18579_ACEOF
18580cat confdefs.h >>conftest.$ac_ext
18581cat >>conftest.$ac_ext <<_ACEOF
11229/* end confdefs.h. */ 18582/* end confdefs.h. */
11230 18583
11231/* Override any GCC internal prototype to avoid an error. 18584/* Override any GCC internal prototype to avoid an error.
@@ -11243,30 +18596,59 @@ return kvm_open ();
11243 return 0; 18596 return 0;
11244} 18597}
11245_ACEOF 18598_ACEOF
11246if ac_fn_c_try_link "$LINENO"; then : 18599rm -f conftest.$ac_objext conftest$ac_exeext
18600if { (ac_try="$ac_link"
18601case "(($ac_try" in
18602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18603 *) ac_try_echo=$ac_try;;
18604esac
18605eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18606$as_echo "$ac_try_echo") >&5
18607 (eval "$ac_link") 2>conftest.er1
18608 ac_status=$?
18609 grep -v '^ *+' conftest.er1 >conftest.err
18610 rm -f conftest.er1
18611 cat conftest.err >&5
18612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); } && {
18614 test -z "$ac_c_werror_flag" ||
18615 test ! -s conftest.err
18616 } && test -s conftest$ac_exeext && {
18617 test "$cross_compiling" = yes ||
18618 $as_test_x conftest$ac_exeext
18619 }; then
11247 ac_cv_lib_kvm_kvm_open=yes 18620 ac_cv_lib_kvm_kvm_open=yes
11248else 18621else
11249 ac_cv_lib_kvm_kvm_open=no 18622 $as_echo "$as_me: failed program was:" >&5
18623sed 's/^/| /' conftest.$ac_ext >&5
18624
18625 ac_cv_lib_kvm_kvm_open=no
11250fi 18626fi
11251rm -f core conftest.err conftest.$ac_objext \ 18627
11252 conftest$ac_exeext conftest.$ac_ext 18628rm -rf conftest.dSYM
18629rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18630 conftest$ac_exeext conftest.$ac_ext
11253LIBS=$ac_check_lib_save_LIBS 18631LIBS=$ac_check_lib_save_LIBS
11254fi 18632fi
11255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5 18633{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
11256$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; } 18634$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11257if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then : 18635if test $ac_cv_lib_kvm_kvm_open = yes; then
11258 LIBS="-lkvm $LIBS" 18636 LIBS="-lkvm $LIBS"
11259fi 18637fi
11260 18638
11261 # Check for the 4.4BSD definition of getloadavg. 18639 # Check for the 4.4BSD definition of getloadavg.
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5 18640 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
11263$as_echo_n "checking for getloadavg in -lutil... " >&6; } 18641$as_echo_n "checking for getloadavg in -lutil... " >&6; }
11264if test "${ac_cv_lib_util_getloadavg+set}" = set; then : 18642if test "${ac_cv_lib_util_getloadavg+set}" = set; then
11265 $as_echo_n "(cached) " >&6 18643 $as_echo_n "(cached) " >&6
11266else 18644else
11267 ac_check_lib_save_LIBS=$LIBS 18645 ac_check_lib_save_LIBS=$LIBS
11268LIBS="-lutil $LIBS" 18646LIBS="-lutil $LIBS"
11269cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18647cat >conftest.$ac_ext <<_ACEOF
18648/* confdefs.h. */
18649_ACEOF
18650cat confdefs.h >>conftest.$ac_ext
18651cat >>conftest.$ac_ext <<_ACEOF
11270/* end confdefs.h. */ 18652/* end confdefs.h. */
11271 18653
11272/* Override any GCC internal prototype to avoid an error. 18654/* Override any GCC internal prototype to avoid an error.
@@ -11284,18 +18666,43 @@ return getloadavg ();
11284 return 0; 18666 return 0;
11285} 18667}
11286_ACEOF 18668_ACEOF
11287if ac_fn_c_try_link "$LINENO"; then : 18669rm -f conftest.$ac_objext conftest$ac_exeext
18670if { (ac_try="$ac_link"
18671case "(($ac_try" in
18672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18673 *) ac_try_echo=$ac_try;;
18674esac
18675eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18676$as_echo "$ac_try_echo") >&5
18677 (eval "$ac_link") 2>conftest.er1
18678 ac_status=$?
18679 grep -v '^ *+' conftest.er1 >conftest.err
18680 rm -f conftest.er1
18681 cat conftest.err >&5
18682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); } && {
18684 test -z "$ac_c_werror_flag" ||
18685 test ! -s conftest.err
18686 } && test -s conftest$ac_exeext && {
18687 test "$cross_compiling" = yes ||
18688 $as_test_x conftest$ac_exeext
18689 }; then
11288 ac_cv_lib_util_getloadavg=yes 18690 ac_cv_lib_util_getloadavg=yes
11289else 18691else
11290 ac_cv_lib_util_getloadavg=no 18692 $as_echo "$as_me: failed program was:" >&5
18693sed 's/^/| /' conftest.$ac_ext >&5
18694
18695 ac_cv_lib_util_getloadavg=no
11291fi 18696fi
11292rm -f core conftest.err conftest.$ac_objext \ 18697
11293 conftest$ac_exeext conftest.$ac_ext 18698rm -rf conftest.dSYM
18699rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18700 conftest$ac_exeext conftest.$ac_ext
11294LIBS=$ac_check_lib_save_LIBS 18701LIBS=$ac_check_lib_save_LIBS
11295fi 18702fi
11296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5 18703{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
11297$as_echo "$ac_cv_lib_util_getloadavg" >&6; } 18704$as_echo "$ac_cv_lib_util_getloadavg" >&6; }
11298if test "x$ac_cv_lib_util_getloadavg" = x""yes; then : 18705if test $ac_cv_lib_util_getloadavg = yes; then
11299 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes 18706 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
11300fi 18707fi
11301 18708
@@ -11306,14 +18713,18 @@ if test $ac_have_func = no; then
11306 # Since it is not a standard part of AIX, it might be installed locally. 18713 # Since it is not a standard part of AIX, it might be installed locally.
11307 ac_getloadavg_LIBS=$LIBS 18714 ac_getloadavg_LIBS=$LIBS
11308 LIBS="-L/usr/local/lib $LIBS" 18715 LIBS="-L/usr/local/lib $LIBS"
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5 18716 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
11310$as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; } 18717$as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
11311if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then : 18718if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
11312 $as_echo_n "(cached) " >&6 18719 $as_echo_n "(cached) " >&6
11313else 18720else
11314 ac_check_lib_save_LIBS=$LIBS 18721 ac_check_lib_save_LIBS=$LIBS
11315LIBS="-lgetloadavg $LIBS" 18722LIBS="-lgetloadavg $LIBS"
11316cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18723cat >conftest.$ac_ext <<_ACEOF
18724/* confdefs.h. */
18725_ACEOF
18726cat confdefs.h >>conftest.$ac_ext
18727cat >>conftest.$ac_ext <<_ACEOF
11317/* end confdefs.h. */ 18728/* end confdefs.h. */
11318 18729
11319/* Override any GCC internal prototype to avoid an error. 18730/* Override any GCC internal prototype to avoid an error.
@@ -11331,18 +18742,43 @@ return getloadavg ();
11331 return 0; 18742 return 0;
11332} 18743}
11333_ACEOF 18744_ACEOF
11334if ac_fn_c_try_link "$LINENO"; then : 18745rm -f conftest.$ac_objext conftest$ac_exeext
18746if { (ac_try="$ac_link"
18747case "(($ac_try" in
18748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18749 *) ac_try_echo=$ac_try;;
18750esac
18751eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18752$as_echo "$ac_try_echo") >&5
18753 (eval "$ac_link") 2>conftest.er1
18754 ac_status=$?
18755 grep -v '^ *+' conftest.er1 >conftest.err
18756 rm -f conftest.er1
18757 cat conftest.err >&5
18758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); } && {
18760 test -z "$ac_c_werror_flag" ||
18761 test ! -s conftest.err
18762 } && test -s conftest$ac_exeext && {
18763 test "$cross_compiling" = yes ||
18764 $as_test_x conftest$ac_exeext
18765 }; then
11335 ac_cv_lib_getloadavg_getloadavg=yes 18766 ac_cv_lib_getloadavg_getloadavg=yes
11336else 18767else
11337 ac_cv_lib_getloadavg_getloadavg=no 18768 $as_echo "$as_me: failed program was:" >&5
18769sed 's/^/| /' conftest.$ac_ext >&5
18770
18771 ac_cv_lib_getloadavg_getloadavg=no
11338fi 18772fi
11339rm -f core conftest.err conftest.$ac_objext \ 18773
11340 conftest$ac_exeext conftest.$ac_ext 18774rm -rf conftest.dSYM
18775rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18776 conftest$ac_exeext conftest.$ac_ext
11341LIBS=$ac_check_lib_save_LIBS 18777LIBS=$ac_check_lib_save_LIBS
11342fi 18778fi
11343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5 18779{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11344$as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; } 18780$as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
11345if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then : 18781if test $ac_cv_lib_getloadavg_getloadavg = yes; then
11346 LIBS="-lgetloadavg $LIBS" 18782 LIBS="-lgetloadavg $LIBS"
11347else 18783else
11348 LIBS=$ac_getloadavg_LIBS 18784 LIBS=$ac_getloadavg_LIBS
@@ -11352,12 +18788,101 @@ fi
11352 18788
11353# Make sure it is really in the library, if we think we found it, 18789# Make sure it is really in the library, if we think we found it,
11354# otherwise set up the replacement function. 18790# otherwise set up the replacement function.
18791
11355for ac_func in getloadavg 18792for ac_func in getloadavg
11356do : 18793do
11357 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" 18794as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11358if test "x$ac_cv_func_getloadavg" = x""yes; then : 18795{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18796$as_echo_n "checking for $ac_func... " >&6; }
18797if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18798 $as_echo_n "(cached) " >&6
18799else
18800 cat >conftest.$ac_ext <<_ACEOF
18801/* confdefs.h. */
18802_ACEOF
18803cat confdefs.h >>conftest.$ac_ext
18804cat >>conftest.$ac_ext <<_ACEOF
18805/* end confdefs.h. */
18806/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18808#define $ac_func innocuous_$ac_func
18809
18810/* System header to define __stub macros and hopefully few prototypes,
18811 which can conflict with char $ac_func (); below.
18812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18813 <limits.h> exists even on freestanding compilers. */
18814
18815#ifdef __STDC__
18816# include <limits.h>
18817#else
18818# include <assert.h>
18819#endif
18820
18821#undef $ac_func
18822
18823/* Override any GCC internal prototype to avoid an error.
18824 Use char because int might match the return type of a GCC
18825 builtin and then its argument prototype would still apply. */
18826#ifdef __cplusplus
18827extern "C"
18828#endif
18829char $ac_func ();
18830/* The GNU C library defines this for functions which it implements
18831 to always fail with ENOSYS. Some functions are actually named
18832 something starting with __ and the normal name is an alias. */
18833#if defined __stub_$ac_func || defined __stub___$ac_func
18834choke me
18835#endif
18836
18837int
18838main ()
18839{
18840return $ac_func ();
18841 ;
18842 return 0;
18843}
18844_ACEOF
18845rm -f conftest.$ac_objext conftest$ac_exeext
18846if { (ac_try="$ac_link"
18847case "(($ac_try" in
18848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18849 *) ac_try_echo=$ac_try;;
18850esac
18851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18852$as_echo "$ac_try_echo") >&5
18853 (eval "$ac_link") 2>conftest.er1
18854 ac_status=$?
18855 grep -v '^ *+' conftest.er1 >conftest.err
18856 rm -f conftest.er1
18857 cat conftest.err >&5
18858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); } && {
18860 test -z "$ac_c_werror_flag" ||
18861 test ! -s conftest.err
18862 } && test -s conftest$ac_exeext && {
18863 test "$cross_compiling" = yes ||
18864 $as_test_x conftest$ac_exeext
18865 }; then
18866 eval "$as_ac_var=yes"
18867else
18868 $as_echo "$as_me: failed program was:" >&5
18869sed 's/^/| /' conftest.$ac_ext >&5
18870
18871 eval "$as_ac_var=no"
18872fi
18873
18874rm -rf conftest.dSYM
18875rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18876 conftest$ac_exeext conftest.$ac_ext
18877fi
18878ac_res=`eval 'as_val=${'$as_ac_var'}
18879 $as_echo "$as_val"'`
18880 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18881$as_echo "$ac_res" >&6; }
18882if test `eval 'as_val=${'$as_ac_var'}
18883 $as_echo "$as_val"'` = yes; then
11359 cat >>confdefs.h <<_ACEOF 18884 cat >>confdefs.h <<_ACEOF
11360#define HAVE_GETLOADAVG 1 18885#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11361_ACEOF 18886_ACEOF
11362 18887
11363else 18888else
@@ -11368,24 +18893,159 @@ else
11368esac 18893esac
11369 18894
11370 18895
11371$as_echo "#define C_GETLOADAVG 1" >>confdefs.h 18896cat >>confdefs.h <<\_ACEOF
18897#define C_GETLOADAVG 1
18898_ACEOF
11372 18899
11373# Figure out what our getloadavg.c needs. 18900# Figure out what our getloadavg.c needs.
11374ac_have_func=no 18901ac_have_func=no
11375ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default" 18902if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11376if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then : 18903 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18904$as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18905if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18906 $as_echo_n "(cached) " >&6
18907fi
18908{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18909$as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18910else
18911 # Is the header compilable?
18912{ $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18913$as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
18914cat >conftest.$ac_ext <<_ACEOF
18915/* confdefs.h. */
18916_ACEOF
18917cat confdefs.h >>conftest.$ac_ext
18918cat >>conftest.$ac_ext <<_ACEOF
18919/* end confdefs.h. */
18920$ac_includes_default
18921#include <sys/dg_sys_info.h>
18922_ACEOF
18923rm -f conftest.$ac_objext
18924if { (ac_try="$ac_compile"
18925case "(($ac_try" in
18926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18927 *) ac_try_echo=$ac_try;;
18928esac
18929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18930$as_echo "$ac_try_echo") >&5
18931 (eval "$ac_compile") 2>conftest.er1
18932 ac_status=$?
18933 grep -v '^ *+' conftest.er1 >conftest.err
18934 rm -f conftest.er1
18935 cat conftest.err >&5
18936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); } && {
18938 test -z "$ac_c_werror_flag" ||
18939 test ! -s conftest.err
18940 } && test -s conftest.$ac_objext; then
18941 ac_header_compiler=yes
18942else
18943 $as_echo "$as_me: failed program was:" >&5
18944sed 's/^/| /' conftest.$ac_ext >&5
18945
18946 ac_header_compiler=no
18947fi
18948
18949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18950{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18951$as_echo "$ac_header_compiler" >&6; }
18952
18953# Is the header present?
18954{ $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18955$as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
18956cat >conftest.$ac_ext <<_ACEOF
18957/* confdefs.h. */
18958_ACEOF
18959cat confdefs.h >>conftest.$ac_ext
18960cat >>conftest.$ac_ext <<_ACEOF
18961/* end confdefs.h. */
18962#include <sys/dg_sys_info.h>
18963_ACEOF
18964if { (ac_try="$ac_cpp conftest.$ac_ext"
18965case "(($ac_try" in
18966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18967 *) ac_try_echo=$ac_try;;
18968esac
18969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18970$as_echo "$ac_try_echo") >&5
18971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18972 ac_status=$?
18973 grep -v '^ *+' conftest.er1 >conftest.err
18974 rm -f conftest.er1
18975 cat conftest.err >&5
18976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977 (exit $ac_status); } >/dev/null && {
18978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18979 test ! -s conftest.err
18980 }; then
18981 ac_header_preproc=yes
18982else
18983 $as_echo "$as_me: failed program was:" >&5
18984sed 's/^/| /' conftest.$ac_ext >&5
18985
18986 ac_header_preproc=no
18987fi
18988
18989rm -f conftest.err conftest.$ac_ext
18990{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18991$as_echo "$ac_header_preproc" >&6; }
18992
18993# So? What about this header?
18994case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18995 yes:no: )
18996 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18997$as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18998 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18999$as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
19000 ac_header_preproc=yes
19001 ;;
19002 no:yes:* )
19003 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
19004$as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
19005 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
19006$as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
19007 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
19008$as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
19009 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
19010$as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
19011 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
19012$as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
19013 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
19014$as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
19015
19016 ;;
19017esac
19018{ $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19019$as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19020if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19021 $as_echo_n "(cached) " >&6
19022else
19023 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19024fi
19025{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19026$as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19027
19028fi
19029if test $ac_cv_header_sys_dg_sys_info_h = yes; then
11377 ac_have_func=yes 19030 ac_have_func=yes
11378 19031
11379$as_echo "#define DGUX 1" >>confdefs.h 19032cat >>confdefs.h <<\_ACEOF
19033#define DGUX 1
19034_ACEOF
19035
11380 19036
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5 19037{ $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
11382$as_echo_n "checking for dg_sys_info in -ldgc... " >&6; } 19038$as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11383if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then : 19039if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
11384 $as_echo_n "(cached) " >&6 19040 $as_echo_n "(cached) " >&6
11385else 19041else
11386 ac_check_lib_save_LIBS=$LIBS 19042 ac_check_lib_save_LIBS=$LIBS
11387LIBS="-ldgc $LIBS" 19043LIBS="-ldgc $LIBS"
11388cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19044cat >conftest.$ac_ext <<_ACEOF
19045/* confdefs.h. */
19046_ACEOF
19047cat confdefs.h >>conftest.$ac_ext
19048cat >>conftest.$ac_ext <<_ACEOF
11389/* end confdefs.h. */ 19049/* end confdefs.h. */
11390 19050
11391/* Override any GCC internal prototype to avoid an error. 19051/* Override any GCC internal prototype to avoid an error.
@@ -11403,18 +19063,43 @@ return dg_sys_info ();
11403 return 0; 19063 return 0;
11404} 19064}
11405_ACEOF 19065_ACEOF
11406if ac_fn_c_try_link "$LINENO"; then : 19066rm -f conftest.$ac_objext conftest$ac_exeext
19067if { (ac_try="$ac_link"
19068case "(($ac_try" in
19069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19070 *) ac_try_echo=$ac_try;;
19071esac
19072eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19073$as_echo "$ac_try_echo") >&5
19074 (eval "$ac_link") 2>conftest.er1
19075 ac_status=$?
19076 grep -v '^ *+' conftest.er1 >conftest.err
19077 rm -f conftest.er1
19078 cat conftest.err >&5
19079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); } && {
19081 test -z "$ac_c_werror_flag" ||
19082 test ! -s conftest.err
19083 } && test -s conftest$ac_exeext && {
19084 test "$cross_compiling" = yes ||
19085 $as_test_x conftest$ac_exeext
19086 }; then
11407 ac_cv_lib_dgc_dg_sys_info=yes 19087 ac_cv_lib_dgc_dg_sys_info=yes
11408else 19088else
11409 ac_cv_lib_dgc_dg_sys_info=no 19089 $as_echo "$as_me: failed program was:" >&5
19090sed 's/^/| /' conftest.$ac_ext >&5
19091
19092 ac_cv_lib_dgc_dg_sys_info=no
11410fi 19093fi
11411rm -f core conftest.err conftest.$ac_objext \ 19094
11412 conftest$ac_exeext conftest.$ac_ext 19095rm -rf conftest.dSYM
19096rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19097 conftest$ac_exeext conftest.$ac_ext
11413LIBS=$ac_check_lib_save_LIBS 19098LIBS=$ac_check_lib_save_LIBS
11414fi 19099fi
11415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5 19100{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11416$as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; } 19101$as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11417if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then : 19102if test $ac_cv_lib_dgc_dg_sys_info = yes; then
11418 cat >>confdefs.h <<_ACEOF 19103 cat >>confdefs.h <<_ACEOF
11419#define HAVE_LIBDGC 1 19104#define HAVE_LIBDGC 1
11420_ACEOF 19105_ACEOF
@@ -11427,18 +19112,230 @@ fi
11427 19112
11428 19113
11429 19114
11430ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" 19115if test "${ac_cv_header_locale_h+set}" = set; then
11431if test "x$ac_cv_header_locale_h" = x""yes; then : 19116 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19117$as_echo_n "checking for locale.h... " >&6; }
19118if test "${ac_cv_header_locale_h+set}" = set; then
19119 $as_echo_n "(cached) " >&6
19120fi
19121{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19122$as_echo "$ac_cv_header_locale_h" >&6; }
19123else
19124 # Is the header compilable?
19125{ $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19126$as_echo_n "checking locale.h usability... " >&6; }
19127cat >conftest.$ac_ext <<_ACEOF
19128/* confdefs.h. */
19129_ACEOF
19130cat confdefs.h >>conftest.$ac_ext
19131cat >>conftest.$ac_ext <<_ACEOF
19132/* end confdefs.h. */
19133$ac_includes_default
19134#include <locale.h>
19135_ACEOF
19136rm -f conftest.$ac_objext
19137if { (ac_try="$ac_compile"
19138case "(($ac_try" in
19139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140 *) ac_try_echo=$ac_try;;
19141esac
19142eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19143$as_echo "$ac_try_echo") >&5
19144 (eval "$ac_compile") 2>conftest.er1
19145 ac_status=$?
19146 grep -v '^ *+' conftest.er1 >conftest.err
19147 rm -f conftest.er1
19148 cat conftest.err >&5
19149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150 (exit $ac_status); } && {
19151 test -z "$ac_c_werror_flag" ||
19152 test ! -s conftest.err
19153 } && test -s conftest.$ac_objext; then
19154 ac_header_compiler=yes
19155else
19156 $as_echo "$as_me: failed program was:" >&5
19157sed 's/^/| /' conftest.$ac_ext >&5
19158
19159 ac_header_compiler=no
19160fi
19161
19162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19163{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19164$as_echo "$ac_header_compiler" >&6; }
19165
19166# Is the header present?
19167{ $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19168$as_echo_n "checking locale.h presence... " >&6; }
19169cat >conftest.$ac_ext <<_ACEOF
19170/* confdefs.h. */
19171_ACEOF
19172cat confdefs.h >>conftest.$ac_ext
19173cat >>conftest.$ac_ext <<_ACEOF
19174/* end confdefs.h. */
19175#include <locale.h>
19176_ACEOF
19177if { (ac_try="$ac_cpp conftest.$ac_ext"
19178case "(($ac_try" in
19179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19180 *) ac_try_echo=$ac_try;;
19181esac
19182eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19183$as_echo "$ac_try_echo") >&5
19184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19185 ac_status=$?
19186 grep -v '^ *+' conftest.er1 >conftest.err
19187 rm -f conftest.er1
19188 cat conftest.err >&5
19189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); } >/dev/null && {
19191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19192 test ! -s conftest.err
19193 }; then
19194 ac_header_preproc=yes
19195else
19196 $as_echo "$as_me: failed program was:" >&5
19197sed 's/^/| /' conftest.$ac_ext >&5
19198
19199 ac_header_preproc=no
19200fi
19201
19202rm -f conftest.err conftest.$ac_ext
19203{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19204$as_echo "$ac_header_preproc" >&6; }
19205
19206# So? What about this header?
19207case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19208 yes:no: )
19209 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19210$as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19211 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19212$as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19213 ac_header_preproc=yes
19214 ;;
19215 no:yes:* )
19216 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19217$as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19218 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19219$as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19220 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19221$as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19222 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19223$as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19224 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19225$as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19226 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19227$as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19228
19229 ;;
19230esac
19231{ $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19232$as_echo_n "checking for locale.h... " >&6; }
19233if test "${ac_cv_header_locale_h+set}" = set; then
19234 $as_echo_n "(cached) " >&6
19235else
19236 ac_cv_header_locale_h=$ac_header_preproc
19237fi
19238{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19239$as_echo "$ac_cv_header_locale_h" >&6; }
11432 19240
11433fi 19241fi
11434 19242
11435 19243
19244
11436for ac_func in setlocale 19245for ac_func in setlocale
11437do : 19246do
11438 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" 19247as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11439if test "x$ac_cv_func_setlocale" = x""yes; then : 19248{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19249$as_echo_n "checking for $ac_func... " >&6; }
19250if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19251 $as_echo_n "(cached) " >&6
19252else
19253 cat >conftest.$ac_ext <<_ACEOF
19254/* confdefs.h. */
19255_ACEOF
19256cat confdefs.h >>conftest.$ac_ext
19257cat >>conftest.$ac_ext <<_ACEOF
19258/* end confdefs.h. */
19259/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19261#define $ac_func innocuous_$ac_func
19262
19263/* System header to define __stub macros and hopefully few prototypes,
19264 which can conflict with char $ac_func (); below.
19265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19266 <limits.h> exists even on freestanding compilers. */
19267
19268#ifdef __STDC__
19269# include <limits.h>
19270#else
19271# include <assert.h>
19272#endif
19273
19274#undef $ac_func
19275
19276/* Override any GCC internal prototype to avoid an error.
19277 Use char because int might match the return type of a GCC
19278 builtin and then its argument prototype would still apply. */
19279#ifdef __cplusplus
19280extern "C"
19281#endif
19282char $ac_func ();
19283/* The GNU C library defines this for functions which it implements
19284 to always fail with ENOSYS. Some functions are actually named
19285 something starting with __ and the normal name is an alias. */
19286#if defined __stub_$ac_func || defined __stub___$ac_func
19287choke me
19288#endif
19289
19290int
19291main ()
19292{
19293return $ac_func ();
19294 ;
19295 return 0;
19296}
19297_ACEOF
19298rm -f conftest.$ac_objext conftest$ac_exeext
19299if { (ac_try="$ac_link"
19300case "(($ac_try" in
19301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19302 *) ac_try_echo=$ac_try;;
19303esac
19304eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19305$as_echo "$ac_try_echo") >&5
19306 (eval "$ac_link") 2>conftest.er1
19307 ac_status=$?
19308 grep -v '^ *+' conftest.er1 >conftest.err
19309 rm -f conftest.er1
19310 cat conftest.err >&5
19311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); } && {
19313 test -z "$ac_c_werror_flag" ||
19314 test ! -s conftest.err
19315 } && test -s conftest$ac_exeext && {
19316 test "$cross_compiling" = yes ||
19317 $as_test_x conftest$ac_exeext
19318 }; then
19319 eval "$as_ac_var=yes"
19320else
19321 $as_echo "$as_me: failed program was:" >&5
19322sed 's/^/| /' conftest.$ac_ext >&5
19323
19324 eval "$as_ac_var=no"
19325fi
19326
19327rm -rf conftest.dSYM
19328rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19329 conftest$ac_exeext conftest.$ac_ext
19330fi
19331ac_res=`eval 'as_val=${'$as_ac_var'}
19332 $as_echo "$as_val"'`
19333 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19334$as_echo "$ac_res" >&6; }
19335if test `eval 'as_val=${'$as_ac_var'}
19336 $as_echo "$as_val"'` = yes; then
11440 cat >>confdefs.h <<_ACEOF 19337 cat >>confdefs.h <<_ACEOF
11441#define HAVE_SETLOCALE 1 19338#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11442_ACEOF 19339_ACEOF
11443 19340
11444fi 19341fi
@@ -11451,19 +19348,151 @@ done
11451if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then 19348if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
11452 ac_have_func=yes 19349 ac_have_func=yes
11453 19350
11454$as_echo "#define SVR4 1" >>confdefs.h 19351cat >>confdefs.h <<\_ACEOF
19352#define SVR4 1
19353_ACEOF
11455 19354
11456fi 19355fi
11457 19356
11458if test $ac_have_func = no; then 19357if test $ac_have_func = no; then
11459 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default" 19358 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11460if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then : 19359 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19360$as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19361if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19362 $as_echo_n "(cached) " >&6
19363fi
19364{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19365$as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19366else
19367 # Is the header compilable?
19368{ $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19369$as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19370cat >conftest.$ac_ext <<_ACEOF
19371/* confdefs.h. */
19372_ACEOF
19373cat confdefs.h >>conftest.$ac_ext
19374cat >>conftest.$ac_ext <<_ACEOF
19375/* end confdefs.h. */
19376$ac_includes_default
19377#include <inq_stats/cpustats.h>
19378_ACEOF
19379rm -f conftest.$ac_objext
19380if { (ac_try="$ac_compile"
19381case "(($ac_try" in
19382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19383 *) ac_try_echo=$ac_try;;
19384esac
19385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19386$as_echo "$ac_try_echo") >&5
19387 (eval "$ac_compile") 2>conftest.er1
19388 ac_status=$?
19389 grep -v '^ *+' conftest.er1 >conftest.err
19390 rm -f conftest.er1
19391 cat conftest.err >&5
19392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393 (exit $ac_status); } && {
19394 test -z "$ac_c_werror_flag" ||
19395 test ! -s conftest.err
19396 } && test -s conftest.$ac_objext; then
19397 ac_header_compiler=yes
19398else
19399 $as_echo "$as_me: failed program was:" >&5
19400sed 's/^/| /' conftest.$ac_ext >&5
19401
19402 ac_header_compiler=no
19403fi
19404
19405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19406{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19407$as_echo "$ac_header_compiler" >&6; }
19408
19409# Is the header present?
19410{ $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19411$as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19412cat >conftest.$ac_ext <<_ACEOF
19413/* confdefs.h. */
19414_ACEOF
19415cat confdefs.h >>conftest.$ac_ext
19416cat >>conftest.$ac_ext <<_ACEOF
19417/* end confdefs.h. */
19418#include <inq_stats/cpustats.h>
19419_ACEOF
19420if { (ac_try="$ac_cpp conftest.$ac_ext"
19421case "(($ac_try" in
19422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19423 *) ac_try_echo=$ac_try;;
19424esac
19425eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19426$as_echo "$ac_try_echo") >&5
19427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19428 ac_status=$?
19429 grep -v '^ *+' conftest.er1 >conftest.err
19430 rm -f conftest.er1
19431 cat conftest.err >&5
19432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); } >/dev/null && {
19434 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19435 test ! -s conftest.err
19436 }; then
19437 ac_header_preproc=yes
19438else
19439 $as_echo "$as_me: failed program was:" >&5
19440sed 's/^/| /' conftest.$ac_ext >&5
19441
19442 ac_header_preproc=no
19443fi
19444
19445rm -f conftest.err conftest.$ac_ext
19446{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19447$as_echo "$ac_header_preproc" >&6; }
19448
19449# So? What about this header?
19450case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19451 yes:no: )
19452 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19453$as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19454 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19455$as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19456 ac_header_preproc=yes
19457 ;;
19458 no:yes:* )
19459 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19460$as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19461 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19462$as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19463 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19464$as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19465 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19466$as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19467 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19468$as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19469 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19470$as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19471
19472 ;;
19473esac
19474{ $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19475$as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19476if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19477 $as_echo_n "(cached) " >&6
19478else
19479 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19480fi
19481{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19482$as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19483
19484fi
19485if test $ac_cv_header_inq_stats_cpustats_h = yes; then
11461 ac_have_func=yes 19486 ac_have_func=yes
11462 19487
11463$as_echo "#define UMAX 1" >>confdefs.h 19488cat >>confdefs.h <<\_ACEOF
19489#define UMAX 1
19490_ACEOF
11464 19491
11465 19492
11466$as_echo "#define UMAX4_3 1" >>confdefs.h 19493cat >>confdefs.h <<\_ACEOF
19494#define UMAX4_3 1
19495_ACEOF
11467 19496
11468fi 19497fi
11469 19498
@@ -11471,9 +19500,137 @@ fi
11471fi 19500fi
11472 19501
11473if test $ac_have_func = no; then 19502if test $ac_have_func = no; then
11474 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default" 19503 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11475if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then : 19504 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11476 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h 19505$as_echo_n "checking for sys/cpustats.h... " >&6; }
19506if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19507 $as_echo_n "(cached) " >&6
19508fi
19509{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19510$as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19511else
19512 # Is the header compilable?
19513{ $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19514$as_echo_n "checking sys/cpustats.h usability... " >&6; }
19515cat >conftest.$ac_ext <<_ACEOF
19516/* confdefs.h. */
19517_ACEOF
19518cat confdefs.h >>conftest.$ac_ext
19519cat >>conftest.$ac_ext <<_ACEOF
19520/* end confdefs.h. */
19521$ac_includes_default
19522#include <sys/cpustats.h>
19523_ACEOF
19524rm -f conftest.$ac_objext
19525if { (ac_try="$ac_compile"
19526case "(($ac_try" in
19527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19528 *) ac_try_echo=$ac_try;;
19529esac
19530eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19531$as_echo "$ac_try_echo") >&5
19532 (eval "$ac_compile") 2>conftest.er1
19533 ac_status=$?
19534 grep -v '^ *+' conftest.er1 >conftest.err
19535 rm -f conftest.er1
19536 cat conftest.err >&5
19537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); } && {
19539 test -z "$ac_c_werror_flag" ||
19540 test ! -s conftest.err
19541 } && test -s conftest.$ac_objext; then
19542 ac_header_compiler=yes
19543else
19544 $as_echo "$as_me: failed program was:" >&5
19545sed 's/^/| /' conftest.$ac_ext >&5
19546
19547 ac_header_compiler=no
19548fi
19549
19550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19551{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19552$as_echo "$ac_header_compiler" >&6; }
19553
19554# Is the header present?
19555{ $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19556$as_echo_n "checking sys/cpustats.h presence... " >&6; }
19557cat >conftest.$ac_ext <<_ACEOF
19558/* confdefs.h. */
19559_ACEOF
19560cat confdefs.h >>conftest.$ac_ext
19561cat >>conftest.$ac_ext <<_ACEOF
19562/* end confdefs.h. */
19563#include <sys/cpustats.h>
19564_ACEOF
19565if { (ac_try="$ac_cpp conftest.$ac_ext"
19566case "(($ac_try" in
19567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19568 *) ac_try_echo=$ac_try;;
19569esac
19570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19571$as_echo "$ac_try_echo") >&5
19572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19573 ac_status=$?
19574 grep -v '^ *+' conftest.er1 >conftest.err
19575 rm -f conftest.er1
19576 cat conftest.err >&5
19577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); } >/dev/null && {
19579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19580 test ! -s conftest.err
19581 }; then
19582 ac_header_preproc=yes
19583else
19584 $as_echo "$as_me: failed program was:" >&5
19585sed 's/^/| /' conftest.$ac_ext >&5
19586
19587 ac_header_preproc=no
19588fi
19589
19590rm -f conftest.err conftest.$ac_ext
19591{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19592$as_echo "$ac_header_preproc" >&6; }
19593
19594# So? What about this header?
19595case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19596 yes:no: )
19597 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19598$as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19599 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19600$as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19601 ac_header_preproc=yes
19602 ;;
19603 no:yes:* )
19604 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19605$as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19606 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19607$as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19608 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19609$as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19610 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19611$as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19612 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19613$as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19614 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19615$as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19616
19617 ;;
19618esac
19619{ $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19620$as_echo_n "checking for sys/cpustats.h... " >&6; }
19621if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19622 $as_echo_n "(cached) " >&6
19623else
19624 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19625fi
19626{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19627$as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19628
19629fi
19630if test $ac_cv_header_sys_cpustats_h = yes; then
19631 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19632#define UMAX 1
19633_ACEOF
11477 19634
11478fi 19635fi
11479 19636
@@ -11481,12 +19638,145 @@ fi
11481fi 19638fi
11482 19639
11483if test $ac_have_func = no; then 19640if test $ac_have_func = no; then
11484 for ac_header in mach/mach.h 19641
11485do : 19642for ac_header in mach/mach.h
11486 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" 19643do
11487if test "x$ac_cv_header_mach_mach_h" = x""yes; then : 19644as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19646 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19647$as_echo_n "checking for $ac_header... " >&6; }
19648if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19649 $as_echo_n "(cached) " >&6
19650fi
19651ac_res=`eval 'as_val=${'$as_ac_Header'}
19652 $as_echo "$as_val"'`
19653 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19654$as_echo "$ac_res" >&6; }
19655else
19656 # Is the header compilable?
19657{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19658$as_echo_n "checking $ac_header usability... " >&6; }
19659cat >conftest.$ac_ext <<_ACEOF
19660/* confdefs.h. */
19661_ACEOF
19662cat confdefs.h >>conftest.$ac_ext
19663cat >>conftest.$ac_ext <<_ACEOF
19664/* end confdefs.h. */
19665$ac_includes_default
19666#include <$ac_header>
19667_ACEOF
19668rm -f conftest.$ac_objext
19669if { (ac_try="$ac_compile"
19670case "(($ac_try" in
19671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19672 *) ac_try_echo=$ac_try;;
19673esac
19674eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19675$as_echo "$ac_try_echo") >&5
19676 (eval "$ac_compile") 2>conftest.er1
19677 ac_status=$?
19678 grep -v '^ *+' conftest.er1 >conftest.err
19679 rm -f conftest.er1
19680 cat conftest.err >&5
19681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); } && {
19683 test -z "$ac_c_werror_flag" ||
19684 test ! -s conftest.err
19685 } && test -s conftest.$ac_objext; then
19686 ac_header_compiler=yes
19687else
19688 $as_echo "$as_me: failed program was:" >&5
19689sed 's/^/| /' conftest.$ac_ext >&5
19690
19691 ac_header_compiler=no
19692fi
19693
19694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19695{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19696$as_echo "$ac_header_compiler" >&6; }
19697
19698# Is the header present?
19699{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19700$as_echo_n "checking $ac_header presence... " >&6; }
19701cat >conftest.$ac_ext <<_ACEOF
19702/* confdefs.h. */
19703_ACEOF
19704cat confdefs.h >>conftest.$ac_ext
19705cat >>conftest.$ac_ext <<_ACEOF
19706/* end confdefs.h. */
19707#include <$ac_header>
19708_ACEOF
19709if { (ac_try="$ac_cpp conftest.$ac_ext"
19710case "(($ac_try" in
19711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712 *) ac_try_echo=$ac_try;;
19713esac
19714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19715$as_echo "$ac_try_echo") >&5
19716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19717 ac_status=$?
19718 grep -v '^ *+' conftest.er1 >conftest.err
19719 rm -f conftest.er1
19720 cat conftest.err >&5
19721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); } >/dev/null && {
19723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19724 test ! -s conftest.err
19725 }; then
19726 ac_header_preproc=yes
19727else
19728 $as_echo "$as_me: failed program was:" >&5
19729sed 's/^/| /' conftest.$ac_ext >&5
19730
19731 ac_header_preproc=no
19732fi
19733
19734rm -f conftest.err conftest.$ac_ext
19735{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19736$as_echo "$ac_header_preproc" >&6; }
19737
19738# So? What about this header?
19739case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19740 yes:no: )
19741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19742$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19744$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19745 ac_header_preproc=yes
19746 ;;
19747 no:yes:* )
19748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19749$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19751$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19752 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19753$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19754 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19755$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19756 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19757$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19758 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19759$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19760
19761 ;;
19762esac
19763{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19764$as_echo_n "checking for $ac_header... " >&6; }
19765if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19766 $as_echo_n "(cached) " >&6
19767else
19768 eval "$as_ac_Header=\$ac_header_preproc"
19769fi
19770ac_res=`eval 'as_val=${'$as_ac_Header'}
19771 $as_echo "$as_val"'`
19772 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19773$as_echo "$ac_res" >&6; }
19774
19775fi
19776if test `eval 'as_val=${'$as_ac_Header'}
19777 $as_echo "$as_val"'` = yes; then
11488 cat >>confdefs.h <<_ACEOF 19778 cat >>confdefs.h <<_ACEOF
11489#define HAVE_MACH_MACH_H 1 19779#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11490_ACEOF 19780_ACEOF
11491 19781
11492fi 19782fi
@@ -11495,23 +19785,253 @@ done
11495 19785
11496fi 19786fi
11497 19787
19788
11498for ac_header in nlist.h 19789for ac_header in nlist.h
11499do : 19790do
11500 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default" 19791as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11501if test "x$ac_cv_header_nlist_h" = x""yes; then : 19792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19793 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19794$as_echo_n "checking for $ac_header... " >&6; }
19795if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19796 $as_echo_n "(cached) " >&6
19797fi
19798ac_res=`eval 'as_val=${'$as_ac_Header'}
19799 $as_echo "$as_val"'`
19800 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19801$as_echo "$ac_res" >&6; }
19802else
19803 # Is the header compilable?
19804{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19805$as_echo_n "checking $ac_header usability... " >&6; }
19806cat >conftest.$ac_ext <<_ACEOF
19807/* confdefs.h. */
19808_ACEOF
19809cat confdefs.h >>conftest.$ac_ext
19810cat >>conftest.$ac_ext <<_ACEOF
19811/* end confdefs.h. */
19812$ac_includes_default
19813#include <$ac_header>
19814_ACEOF
19815rm -f conftest.$ac_objext
19816if { (ac_try="$ac_compile"
19817case "(($ac_try" in
19818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19819 *) ac_try_echo=$ac_try;;
19820esac
19821eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19822$as_echo "$ac_try_echo") >&5
19823 (eval "$ac_compile") 2>conftest.er1
19824 ac_status=$?
19825 grep -v '^ *+' conftest.er1 >conftest.err
19826 rm -f conftest.er1
19827 cat conftest.err >&5
19828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); } && {
19830 test -z "$ac_c_werror_flag" ||
19831 test ! -s conftest.err
19832 } && test -s conftest.$ac_objext; then
19833 ac_header_compiler=yes
19834else
19835 $as_echo "$as_me: failed program was:" >&5
19836sed 's/^/| /' conftest.$ac_ext >&5
19837
19838 ac_header_compiler=no
19839fi
19840
19841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19842{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19843$as_echo "$ac_header_compiler" >&6; }
19844
19845# Is the header present?
19846{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19847$as_echo_n "checking $ac_header presence... " >&6; }
19848cat >conftest.$ac_ext <<_ACEOF
19849/* confdefs.h. */
19850_ACEOF
19851cat confdefs.h >>conftest.$ac_ext
19852cat >>conftest.$ac_ext <<_ACEOF
19853/* end confdefs.h. */
19854#include <$ac_header>
19855_ACEOF
19856if { (ac_try="$ac_cpp conftest.$ac_ext"
19857case "(($ac_try" in
19858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19859 *) ac_try_echo=$ac_try;;
19860esac
19861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19862$as_echo "$ac_try_echo") >&5
19863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19864 ac_status=$?
19865 grep -v '^ *+' conftest.er1 >conftest.err
19866 rm -f conftest.er1
19867 cat conftest.err >&5
19868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); } >/dev/null && {
19870 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19871 test ! -s conftest.err
19872 }; then
19873 ac_header_preproc=yes
19874else
19875 $as_echo "$as_me: failed program was:" >&5
19876sed 's/^/| /' conftest.$ac_ext >&5
19877
19878 ac_header_preproc=no
19879fi
19880
19881rm -f conftest.err conftest.$ac_ext
19882{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19883$as_echo "$ac_header_preproc" >&6; }
19884
19885# So? What about this header?
19886case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19887 yes:no: )
19888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19889$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19891$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19892 ac_header_preproc=yes
19893 ;;
19894 no:yes:* )
19895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19896$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19897 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19898$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19900$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19902$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19904$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19906$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19907
19908 ;;
19909esac
19910{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19911$as_echo_n "checking for $ac_header... " >&6; }
19912if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19913 $as_echo_n "(cached) " >&6
19914else
19915 eval "$as_ac_Header=\$ac_header_preproc"
19916fi
19917ac_res=`eval 'as_val=${'$as_ac_Header'}
19918 $as_echo "$as_val"'`
19919 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19920$as_echo "$ac_res" >&6; }
19921
19922fi
19923if test `eval 'as_val=${'$as_ac_Header'}
19924 $as_echo "$as_val"'` = yes; then
11502 cat >>confdefs.h <<_ACEOF 19925 cat >>confdefs.h <<_ACEOF
11503#define HAVE_NLIST_H 1 19926#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11504_ACEOF 19927_ACEOF
11505 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h> 19928 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
11506" 19929$as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
11507if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then : 19930if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19931 $as_echo_n "(cached) " >&6
19932else
19933 cat >conftest.$ac_ext <<_ACEOF
19934/* confdefs.h. */
19935_ACEOF
19936cat confdefs.h >>conftest.$ac_ext
19937cat >>conftest.$ac_ext <<_ACEOF
19938/* end confdefs.h. */
19939#include <nlist.h>
19940
19941int
19942main ()
19943{
19944static struct nlist ac_aggr;
19945if (ac_aggr.n_un.n_name)
19946return 0;
19947 ;
19948 return 0;
19949}
19950_ACEOF
19951rm -f conftest.$ac_objext
19952if { (ac_try="$ac_compile"
19953case "(($ac_try" in
19954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19955 *) ac_try_echo=$ac_try;;
19956esac
19957eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19958$as_echo "$ac_try_echo") >&5
19959 (eval "$ac_compile") 2>conftest.er1
19960 ac_status=$?
19961 grep -v '^ *+' conftest.er1 >conftest.err
19962 rm -f conftest.er1
19963 cat conftest.err >&5
19964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); } && {
19966 test -z "$ac_c_werror_flag" ||
19967 test ! -s conftest.err
19968 } && test -s conftest.$ac_objext; then
19969 ac_cv_member_struct_nlist_n_un_n_name=yes
19970else
19971 $as_echo "$as_me: failed program was:" >&5
19972sed 's/^/| /' conftest.$ac_ext >&5
19973
19974 cat >conftest.$ac_ext <<_ACEOF
19975/* confdefs.h. */
19976_ACEOF
19977cat confdefs.h >>conftest.$ac_ext
19978cat >>conftest.$ac_ext <<_ACEOF
19979/* end confdefs.h. */
19980#include <nlist.h>
19981
19982int
19983main ()
19984{
19985static struct nlist ac_aggr;
19986if (sizeof ac_aggr.n_un.n_name)
19987return 0;
19988 ;
19989 return 0;
19990}
19991_ACEOF
19992rm -f conftest.$ac_objext
19993if { (ac_try="$ac_compile"
19994case "(($ac_try" in
19995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19997esac
19998eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19999$as_echo "$ac_try_echo") >&5
20000 (eval "$ac_compile") 2>conftest.er1
20001 ac_status=$?
20002 grep -v '^ *+' conftest.er1 >conftest.err
20003 rm -f conftest.er1
20004 cat conftest.err >&5
20005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); } && {
20007 test -z "$ac_c_werror_flag" ||
20008 test ! -s conftest.err
20009 } && test -s conftest.$ac_objext; then
20010 ac_cv_member_struct_nlist_n_un_n_name=yes
20011else
20012 $as_echo "$as_me: failed program was:" >&5
20013sed 's/^/| /' conftest.$ac_ext >&5
20014
20015 ac_cv_member_struct_nlist_n_un_n_name=no
20016fi
20017
20018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20019fi
20020
20021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20022fi
20023{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20024$as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20025if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
11508 20026
11509cat >>confdefs.h <<_ACEOF 20027cat >>confdefs.h <<_ACEOF
11510#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 20028#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11511_ACEOF 20029_ACEOF
11512 20030
11513 20031
11514$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h 20032cat >>confdefs.h <<\_ACEOF
20033#define NLIST_NAME_UNION 1
20034_ACEOF
11515 20035
11516fi 20036fi
11517 20037
@@ -11525,12 +20045,16 @@ done
11525 20045
11526 20046
11527# Some definitions of getloadavg require that the program be installed setgid. 20047# Some definitions of getloadavg require that the program be installed setgid.
11528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5 20048{ $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
11529$as_echo_n "checking whether getloadavg requires setgid... " >&6; } 20049$as_echo_n "checking whether getloadavg requires setgid... " >&6; }
11530if test "${ac_cv_func_getloadavg_setgid+set}" = set; then : 20050if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
11531 $as_echo_n "(cached) " >&6 20051 $as_echo_n "(cached) " >&6
11532else 20052else
11533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20053 cat >conftest.$ac_ext <<_ACEOF
20054/* confdefs.h. */
20055_ACEOF
20056cat confdefs.h >>conftest.$ac_ext
20057cat >>conftest.$ac_ext <<_ACEOF
11534/* end confdefs.h. */ 20058/* end confdefs.h. */
11535#include "$srcdir/$ac_config_libobj_dir/getloadavg.c" 20059#include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11536#ifdef LDAV_PRIVILEGED 20060#ifdef LDAV_PRIVILEGED
@@ -11538,7 +20062,7 @@ Yowza Am I SETGID yet
11538#endif 20062#endif
11539_ACEOF 20063_ACEOF
11540if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20064if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11541 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then : 20065 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
11542 ac_cv_func_getloadavg_setgid=yes 20066 ac_cv_func_getloadavg_setgid=yes
11543else 20067else
11544 ac_cv_func_getloadavg_setgid=no 20068 ac_cv_func_getloadavg_setgid=no
@@ -11546,21 +20070,23 @@ fi
11546rm -f conftest* 20070rm -f conftest*
11547 20071
11548fi 20072fi
11549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5 20073{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
11550$as_echo "$ac_cv_func_getloadavg_setgid" >&6; } 20074$as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
11551if test $ac_cv_func_getloadavg_setgid = yes; then 20075if test $ac_cv_func_getloadavg_setgid = yes; then
11552 NEED_SETGID=true 20076 NEED_SETGID=true
11553 20077
11554$as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h 20078cat >>confdefs.h <<\_ACEOF
20079#define GETLOADAVG_PRIVILEGED 1
20080_ACEOF
11555 20081
11556else 20082else
11557 NEED_SETGID=false 20083 NEED_SETGID=false
11558fi 20084fi
11559 20085
11560if test $ac_cv_func_getloadavg_setgid = yes; then 20086if test $ac_cv_func_getloadavg_setgid = yes; then
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5 20087 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
11562$as_echo_n "checking group of /dev/kmem... " >&6; } 20088$as_echo_n "checking group of /dev/kmem... " >&6; }
11563if test "${ac_cv_group_kmem+set}" = set; then : 20089if test "${ac_cv_group_kmem+set}" = set; then
11564 $as_echo_n "(cached) " >&6 20090 $as_echo_n "(cached) " >&6
11565else 20091else
11566 # On Solaris, /dev/kmem is a symlink. Get info on the real file. 20092 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
@@ -11573,7 +20099,7 @@ else
11573 / /s/.* //;p;'` 20099 / /s/.* //;p;'`
11574 20100
11575fi 20101fi
11576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5 20102{ $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
11577$as_echo "$ac_cv_group_kmem" >&6; } 20103$as_echo "$ac_cv_group_kmem" >&6; }
11578 KMEM_GROUP=$ac_cv_group_kmem 20104 KMEM_GROUP=$ac_cv_group_kmem
11579fi 20105fi
@@ -11586,13 +20112,17 @@ LIBS=$ac_save_LIBS
11586 20112
11587 20113
11588 20114
11589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 20115{ $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11590$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 20116$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11591if test "${ac_cv_sys_largefile_source+set}" = set; then : 20117if test "${ac_cv_sys_largefile_source+set}" = set; then
11592 $as_echo_n "(cached) " >&6 20118 $as_echo_n "(cached) " >&6
11593else 20119else
11594 while :; do 20120 while :; do
11595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20121 cat >conftest.$ac_ext <<_ACEOF
20122/* confdefs.h. */
20123_ACEOF
20124cat confdefs.h >>conftest.$ac_ext
20125cat >>conftest.$ac_ext <<_ACEOF
11596/* end confdefs.h. */ 20126/* end confdefs.h. */
11597#include <sys/types.h> /* for off_t */ 20127#include <sys/types.h> /* for off_t */
11598 #include <stdio.h> 20128 #include <stdio.h>
@@ -11605,12 +20135,43 @@ int (*fp) (FILE *, off_t, int) = fseeko;
11605 return 0; 20135 return 0;
11606} 20136}
11607_ACEOF 20137_ACEOF
11608if ac_fn_c_try_link "$LINENO"; then : 20138rm -f conftest.$ac_objext conftest$ac_exeext
20139if { (ac_try="$ac_link"
20140case "(($ac_try" in
20141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142 *) ac_try_echo=$ac_try;;
20143esac
20144eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20145$as_echo "$ac_try_echo") >&5
20146 (eval "$ac_link") 2>conftest.er1
20147 ac_status=$?
20148 grep -v '^ *+' conftest.er1 >conftest.err
20149 rm -f conftest.er1
20150 cat conftest.err >&5
20151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); } && {
20153 test -z "$ac_c_werror_flag" ||
20154 test ! -s conftest.err
20155 } && test -s conftest$ac_exeext && {
20156 test "$cross_compiling" = yes ||
20157 $as_test_x conftest$ac_exeext
20158 }; then
11609 ac_cv_sys_largefile_source=no; break 20159 ac_cv_sys_largefile_source=no; break
20160else
20161 $as_echo "$as_me: failed program was:" >&5
20162sed 's/^/| /' conftest.$ac_ext >&5
20163
20164
11610fi 20165fi
11611rm -f core conftest.err conftest.$ac_objext \ 20166
11612 conftest$ac_exeext conftest.$ac_ext 20167rm -rf conftest.dSYM
11613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20168rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20169 conftest$ac_exeext conftest.$ac_ext
20170 cat >conftest.$ac_ext <<_ACEOF
20171/* confdefs.h. */
20172_ACEOF
20173cat confdefs.h >>conftest.$ac_ext
20174cat >>conftest.$ac_ext <<_ACEOF
11614/* end confdefs.h. */ 20175/* end confdefs.h. */
11615#define _LARGEFILE_SOURCE 1 20176#define _LARGEFILE_SOURCE 1
11616#include <sys/types.h> /* for off_t */ 20177#include <sys/types.h> /* for off_t */
@@ -11624,16 +20185,43 @@ int (*fp) (FILE *, off_t, int) = fseeko;
11624 return 0; 20185 return 0;
11625} 20186}
11626_ACEOF 20187_ACEOF
11627if ac_fn_c_try_link "$LINENO"; then : 20188rm -f conftest.$ac_objext conftest$ac_exeext
20189if { (ac_try="$ac_link"
20190case "(($ac_try" in
20191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20192 *) ac_try_echo=$ac_try;;
20193esac
20194eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20195$as_echo "$ac_try_echo") >&5
20196 (eval "$ac_link") 2>conftest.er1
20197 ac_status=$?
20198 grep -v '^ *+' conftest.er1 >conftest.err
20199 rm -f conftest.er1
20200 cat conftest.err >&5
20201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); } && {
20203 test -z "$ac_c_werror_flag" ||
20204 test ! -s conftest.err
20205 } && test -s conftest$ac_exeext && {
20206 test "$cross_compiling" = yes ||
20207 $as_test_x conftest$ac_exeext
20208 }; then
11628 ac_cv_sys_largefile_source=1; break 20209 ac_cv_sys_largefile_source=1; break
20210else
20211 $as_echo "$as_me: failed program was:" >&5
20212sed 's/^/| /' conftest.$ac_ext >&5
20213
20214
11629fi 20215fi
11630rm -f core conftest.err conftest.$ac_objext \ 20216
11631 conftest$ac_exeext conftest.$ac_ext 20217rm -rf conftest.dSYM
20218rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20219 conftest$ac_exeext conftest.$ac_ext
11632 ac_cv_sys_largefile_source=unknown 20220 ac_cv_sys_largefile_source=unknown
11633 break 20221 break
11634done 20222done
11635fi 20223fi
11636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 20224{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11637$as_echo "$ac_cv_sys_largefile_source" >&6; } 20225$as_echo "$ac_cv_sys_largefile_source" >&6; }
11638case $ac_cv_sys_largefile_source in #( 20226case $ac_cv_sys_largefile_source in #(
11639 no | unknown) ;; 20227 no | unknown) ;;
@@ -11650,7 +20238,9 @@ rm -rf conftest*
11650# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 20238# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11651if test $ac_cv_sys_largefile_source != unknown; then 20239if test $ac_cv_sys_largefile_source != unknown; then
11652 20240
11653$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 20241cat >>confdefs.h <<\_ACEOF
20242#define HAVE_FSEEKO 1
20243_ACEOF
11654 20244
11655fi 20245fi
11656 20246
@@ -11678,12 +20268,145 @@ fi
11678 20268
11679 20269
11680 GETOPT_H= 20270 GETOPT_H=
11681 for ac_header in getopt.h 20271
11682do : 20272for ac_header in getopt.h
11683 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" 20273do
11684if test "x$ac_cv_header_getopt_h" = x""yes; then : 20274as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20275if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20276 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20277$as_echo_n "checking for $ac_header... " >&6; }
20278if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20279 $as_echo_n "(cached) " >&6
20280fi
20281ac_res=`eval 'as_val=${'$as_ac_Header'}
20282 $as_echo "$as_val"'`
20283 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20284$as_echo "$ac_res" >&6; }
20285else
20286 # Is the header compilable?
20287{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20288$as_echo_n "checking $ac_header usability... " >&6; }
20289cat >conftest.$ac_ext <<_ACEOF
20290/* confdefs.h. */
20291_ACEOF
20292cat confdefs.h >>conftest.$ac_ext
20293cat >>conftest.$ac_ext <<_ACEOF
20294/* end confdefs.h. */
20295$ac_includes_default
20296#include <$ac_header>
20297_ACEOF
20298rm -f conftest.$ac_objext
20299if { (ac_try="$ac_compile"
20300case "(($ac_try" in
20301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20302 *) ac_try_echo=$ac_try;;
20303esac
20304eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20305$as_echo "$ac_try_echo") >&5
20306 (eval "$ac_compile") 2>conftest.er1
20307 ac_status=$?
20308 grep -v '^ *+' conftest.er1 >conftest.err
20309 rm -f conftest.er1
20310 cat conftest.err >&5
20311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); } && {
20313 test -z "$ac_c_werror_flag" ||
20314 test ! -s conftest.err
20315 } && test -s conftest.$ac_objext; then
20316 ac_header_compiler=yes
20317else
20318 $as_echo "$as_me: failed program was:" >&5
20319sed 's/^/| /' conftest.$ac_ext >&5
20320
20321 ac_header_compiler=no
20322fi
20323
20324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20325{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20326$as_echo "$ac_header_compiler" >&6; }
20327
20328# Is the header present?
20329{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20330$as_echo_n "checking $ac_header presence... " >&6; }
20331cat >conftest.$ac_ext <<_ACEOF
20332/* confdefs.h. */
20333_ACEOF
20334cat confdefs.h >>conftest.$ac_ext
20335cat >>conftest.$ac_ext <<_ACEOF
20336/* end confdefs.h. */
20337#include <$ac_header>
20338_ACEOF
20339if { (ac_try="$ac_cpp conftest.$ac_ext"
20340case "(($ac_try" in
20341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20342 *) ac_try_echo=$ac_try;;
20343esac
20344eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20345$as_echo "$ac_try_echo") >&5
20346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20347 ac_status=$?
20348 grep -v '^ *+' conftest.er1 >conftest.err
20349 rm -f conftest.er1
20350 cat conftest.err >&5
20351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); } >/dev/null && {
20353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20354 test ! -s conftest.err
20355 }; then
20356 ac_header_preproc=yes
20357else
20358 $as_echo "$as_me: failed program was:" >&5
20359sed 's/^/| /' conftest.$ac_ext >&5
20360
20361 ac_header_preproc=no
20362fi
20363
20364rm -f conftest.err conftest.$ac_ext
20365{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20366$as_echo "$ac_header_preproc" >&6; }
20367
20368# So? What about this header?
20369case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20370 yes:no: )
20371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20372$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20374$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20375 ac_header_preproc=yes
20376 ;;
20377 no:yes:* )
20378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20379$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20381$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20383$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20385$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20387$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20389$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20390
20391 ;;
20392esac
20393{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20394$as_echo_n "checking for $ac_header... " >&6; }
20395if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20396 $as_echo_n "(cached) " >&6
20397else
20398 eval "$as_ac_Header=\$ac_header_preproc"
20399fi
20400ac_res=`eval 'as_val=${'$as_ac_Header'}
20401 $as_echo "$as_val"'`
20402 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20403$as_echo "$ac_res" >&6; }
20404
20405fi
20406if test `eval 'as_val=${'$as_ac_Header'}
20407 $as_echo "$as_val"'` = yes; then
11685 cat >>confdefs.h <<_ACEOF 20408 cat >>confdefs.h <<_ACEOF
11686#define HAVE_GETOPT_H 1 20409#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11687_ACEOF 20410_ACEOF
11688 20411
11689else 20412else
@@ -11693,12 +20416,101 @@ fi
11693done 20416done
11694 20417
11695 if test -z "$GETOPT_H"; then 20418 if test -z "$GETOPT_H"; then
11696 for ac_func in getopt_long_only 20419
11697do : 20420for ac_func in getopt_long_only
11698 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" 20421do
11699if test "x$ac_cv_func_getopt_long_only" = x""yes; then : 20422as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20423{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20424$as_echo_n "checking for $ac_func... " >&6; }
20425if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20426 $as_echo_n "(cached) " >&6
20427else
20428 cat >conftest.$ac_ext <<_ACEOF
20429/* confdefs.h. */
20430_ACEOF
20431cat confdefs.h >>conftest.$ac_ext
20432cat >>conftest.$ac_ext <<_ACEOF
20433/* end confdefs.h. */
20434/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20436#define $ac_func innocuous_$ac_func
20437
20438/* System header to define __stub macros and hopefully few prototypes,
20439 which can conflict with char $ac_func (); below.
20440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20441 <limits.h> exists even on freestanding compilers. */
20442
20443#ifdef __STDC__
20444# include <limits.h>
20445#else
20446# include <assert.h>
20447#endif
20448
20449#undef $ac_func
20450
20451/* Override any GCC internal prototype to avoid an error.
20452 Use char because int might match the return type of a GCC
20453 builtin and then its argument prototype would still apply. */
20454#ifdef __cplusplus
20455extern "C"
20456#endif
20457char $ac_func ();
20458/* The GNU C library defines this for functions which it implements
20459 to always fail with ENOSYS. Some functions are actually named
20460 something starting with __ and the normal name is an alias. */
20461#if defined __stub_$ac_func || defined __stub___$ac_func
20462choke me
20463#endif
20464
20465int
20466main ()
20467{
20468return $ac_func ();
20469 ;
20470 return 0;
20471}
20472_ACEOF
20473rm -f conftest.$ac_objext conftest$ac_exeext
20474if { (ac_try="$ac_link"
20475case "(($ac_try" in
20476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20477 *) ac_try_echo=$ac_try;;
20478esac
20479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20480$as_echo "$ac_try_echo") >&5
20481 (eval "$ac_link") 2>conftest.er1
20482 ac_status=$?
20483 grep -v '^ *+' conftest.er1 >conftest.err
20484 rm -f conftest.er1
20485 cat conftest.err >&5
20486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); } && {
20488 test -z "$ac_c_werror_flag" ||
20489 test ! -s conftest.err
20490 } && test -s conftest$ac_exeext && {
20491 test "$cross_compiling" = yes ||
20492 $as_test_x conftest$ac_exeext
20493 }; then
20494 eval "$as_ac_var=yes"
20495else
20496 $as_echo "$as_me: failed program was:" >&5
20497sed 's/^/| /' conftest.$ac_ext >&5
20498
20499 eval "$as_ac_var=no"
20500fi
20501
20502rm -rf conftest.dSYM
20503rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20504 conftest$ac_exeext conftest.$ac_ext
20505fi
20506ac_res=`eval 'as_val=${'$as_ac_var'}
20507 $as_echo "$as_val"'`
20508 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20509$as_echo "$ac_res" >&6; }
20510if test `eval 'as_val=${'$as_ac_var'}
20511 $as_echo "$as_val"'` = yes; then
11700 cat >>confdefs.h <<_ACEOF 20512 cat >>confdefs.h <<_ACEOF
11701#define HAVE_GETOPT_LONG_ONLY 1 20513#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11702_ACEOF 20514_ACEOF
11703 20515
11704else 20516else
@@ -11709,31 +20521,139 @@ done
11709 fi 20521 fi
11710 20522
11711 if test -z "$GETOPT_H"; then 20523 if test -z "$GETOPT_H"; then
11712 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h> 20524 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
11713" 20525$as_echo_n "checking whether optreset is declared... " >&6; }
11714if test "x$ac_cv_have_decl_optreset" = x""yes; then : 20526if test "${ac_cv_have_decl_optreset+set}" = set; then
20527 $as_echo_n "(cached) " >&6
20528else
20529 cat >conftest.$ac_ext <<_ACEOF
20530/* confdefs.h. */
20531_ACEOF
20532cat confdefs.h >>conftest.$ac_ext
20533cat >>conftest.$ac_ext <<_ACEOF
20534/* end confdefs.h. */
20535#include <getopt.h>
20536
20537int
20538main ()
20539{
20540#ifndef optreset
20541 (void) optreset;
20542#endif
20543
20544 ;
20545 return 0;
20546}
20547_ACEOF
20548rm -f conftest.$ac_objext
20549if { (ac_try="$ac_compile"
20550case "(($ac_try" in
20551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20552 *) ac_try_echo=$ac_try;;
20553esac
20554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20555$as_echo "$ac_try_echo") >&5
20556 (eval "$ac_compile") 2>conftest.er1
20557 ac_status=$?
20558 grep -v '^ *+' conftest.er1 >conftest.err
20559 rm -f conftest.er1
20560 cat conftest.err >&5
20561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); } && {
20563 test -z "$ac_c_werror_flag" ||
20564 test ! -s conftest.err
20565 } && test -s conftest.$ac_objext; then
20566 ac_cv_have_decl_optreset=yes
20567else
20568 $as_echo "$as_me: failed program was:" >&5
20569sed 's/^/| /' conftest.$ac_ext >&5
20570
20571 ac_cv_have_decl_optreset=no
20572fi
20573
20574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20575fi
20576{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20577$as_echo "$ac_cv_have_decl_optreset" >&6; }
20578if test $ac_cv_have_decl_optreset = yes; then
11715 GETOPT_H=getopt.h 20579 GETOPT_H=getopt.h
11716fi 20580fi
11717 20581
11718 fi 20582 fi
11719 20583
11720 if test -z "$GETOPT_H"; then 20584 if test -z "$GETOPT_H"; then
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5 20585 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
11722$as_echo_n "checking for working GNU getopt function... " >&6; } 20586$as_echo_n "checking for working GNU getopt function... " >&6; }
11723if test "${gl_cv_func_gnu_getopt+set}" = set; then : 20587if test "${gl_cv_func_gnu_getopt+set}" = set; then
11724 $as_echo_n "(cached) " >&6 20588 $as_echo_n "(cached) " >&6
11725else 20589else
11726 if test "$cross_compiling" = yes; then : 20590 if test "$cross_compiling" = yes; then
11727 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h> 20591 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
11728" 20592$as_echo_n "checking whether getopt_clip is declared... " >&6; }
11729if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then : 20593if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20594 $as_echo_n "(cached) " >&6
20595else
20596 cat >conftest.$ac_ext <<_ACEOF
20597/* confdefs.h. */
20598_ACEOF
20599cat confdefs.h >>conftest.$ac_ext
20600cat >>conftest.$ac_ext <<_ACEOF
20601/* end confdefs.h. */
20602#include <getopt.h>
20603
20604int
20605main ()
20606{
20607#ifndef getopt_clip
20608 (void) getopt_clip;
20609#endif
20610
20611 ;
20612 return 0;
20613}
20614_ACEOF
20615rm -f conftest.$ac_objext
20616if { (ac_try="$ac_compile"
20617case "(($ac_try" in
20618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20619 *) ac_try_echo=$ac_try;;
20620esac
20621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20622$as_echo "$ac_try_echo") >&5
20623 (eval "$ac_compile") 2>conftest.er1
20624 ac_status=$?
20625 grep -v '^ *+' conftest.er1 >conftest.err
20626 rm -f conftest.er1
20627 cat conftest.err >&5
20628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); } && {
20630 test -z "$ac_c_werror_flag" ||
20631 test ! -s conftest.err
20632 } && test -s conftest.$ac_objext; then
20633 ac_cv_have_decl_getopt_clip=yes
20634else
20635 $as_echo "$as_me: failed program was:" >&5
20636sed 's/^/| /' conftest.$ac_ext >&5
20637
20638 ac_cv_have_decl_getopt_clip=no
20639fi
20640
20641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20642fi
20643{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20644$as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20645if test $ac_cv_have_decl_getopt_clip = yes; then
11730 gl_cv_func_gnu_getopt=no 20646 gl_cv_func_gnu_getopt=no
11731else 20647else
11732 gl_cv_func_gnu_getopt=yes 20648 gl_cv_func_gnu_getopt=yes
11733fi 20649fi
11734 20650
11735else 20651else
11736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20652 cat >conftest.$ac_ext <<_ACEOF
20653/* confdefs.h. */
20654_ACEOF
20655cat confdefs.h >>conftest.$ac_ext
20656cat >>conftest.$ac_ext <<_ACEOF
11737/* end confdefs.h. */ 20657/* end confdefs.h. */
11738#include <getopt.h> 20658#include <getopt.h>
11739int 20659int
@@ -11750,17 +20670,44 @@ main ()
11750 return 0; 20670 return 0;
11751} 20671}
11752_ACEOF 20672_ACEOF
11753if ac_fn_c_try_run "$LINENO"; then : 20673rm -f conftest$ac_exeext
20674if { (ac_try="$ac_link"
20675case "(($ac_try" in
20676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20677 *) ac_try_echo=$ac_try;;
20678esac
20679eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20680$as_echo "$ac_try_echo") >&5
20681 (eval "$ac_link") 2>&5
20682 ac_status=$?
20683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20685 { (case "(($ac_try" in
20686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20687 *) ac_try_echo=$ac_try;;
20688esac
20689eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20690$as_echo "$ac_try_echo") >&5
20691 (eval "$ac_try") 2>&5
20692 ac_status=$?
20693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); }; }; then
11754 gl_cv_func_gnu_getopt=yes 20695 gl_cv_func_gnu_getopt=yes
11755else 20696else
11756 gl_cv_func_gnu_getopt=no 20697 $as_echo "$as_me: program exited with status $ac_status" >&5
20698$as_echo "$as_me: failed program was:" >&5
20699sed 's/^/| /' conftest.$ac_ext >&5
20700
20701( exit $ac_status )
20702gl_cv_func_gnu_getopt=no
11757fi 20703fi
11758rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20704rm -rf conftest.dSYM
11759 conftest.$ac_objext conftest.beam conftest.$ac_ext 20705rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11760fi 20706fi
11761 20707
20708
11762fi 20709fi
11763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5 20710{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
11764$as_echo "$gl_cv_func_gnu_getopt" >&6; } 20711$as_echo "$gl_cv_func_gnu_getopt" >&6; }
11765 if test "$gl_cv_func_gnu_getopt" = "no"; then 20712 if test "$gl_cv_func_gnu_getopt" = "no"; then
11766 GETOPT_H=getopt.h 20713 GETOPT_H=getopt.h
@@ -11769,12 +20716,14 @@ $as_echo "$gl_cv_func_gnu_getopt" >&6; }
11769 20716
11770 20717
11771 20718
11772 if test -n "$GETOPT_H"; then : 20719 if test -n "$GETOPT_H"; then
11773 20720
11774 20721
11775 GETOPT_H=getopt.h 20722 GETOPT_H=getopt.h
11776 20723
11777$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h 20724cat >>confdefs.h <<\_ACEOF
20725#define __GETOPT_PREFIX rpl_
20726_ACEOF
11778 20727
11779 20728
11780 20729
@@ -11785,13 +20734,18 @@ fi
11785 20734
11786 20735
11787 20736
11788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 20737
20738{ $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
11789$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } 20739$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
11790if test "${ac_cv_func_getpgrp_void+set}" = set; then : 20740if test "${ac_cv_func_getpgrp_void+set}" = set; then
11791 $as_echo_n "(cached) " >&6 20741 $as_echo_n "(cached) " >&6
11792else 20742else
11793 # Use it with a single arg. 20743 # Use it with a single arg.
11794cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20744cat >conftest.$ac_ext <<_ACEOF
20745/* confdefs.h. */
20746_ACEOF
20747cat confdefs.h >>conftest.$ac_ext
20748cat >>conftest.$ac_ext <<_ACEOF
11795/* end confdefs.h. */ 20749/* end confdefs.h. */
11796$ac_includes_default 20750$ac_includes_default
11797int 20751int
@@ -11802,41 +20756,157 @@ getpgrp (0);
11802 return 0; 20756 return 0;
11803} 20757}
11804_ACEOF 20758_ACEOF
11805if ac_fn_c_try_compile "$LINENO"; then : 20759rm -f conftest.$ac_objext
20760if { (ac_try="$ac_compile"
20761case "(($ac_try" in
20762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20763 *) ac_try_echo=$ac_try;;
20764esac
20765eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20766$as_echo "$ac_try_echo") >&5
20767 (eval "$ac_compile") 2>conftest.er1
20768 ac_status=$?
20769 grep -v '^ *+' conftest.er1 >conftest.err
20770 rm -f conftest.er1
20771 cat conftest.err >&5
20772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); } && {
20774 test -z "$ac_c_werror_flag" ||
20775 test ! -s conftest.err
20776 } && test -s conftest.$ac_objext; then
11806 ac_cv_func_getpgrp_void=no 20777 ac_cv_func_getpgrp_void=no
11807else 20778else
11808 ac_cv_func_getpgrp_void=yes 20779 $as_echo "$as_me: failed program was:" >&5
20780sed 's/^/| /' conftest.$ac_ext >&5
20781
20782 ac_cv_func_getpgrp_void=yes
11809fi 20783fi
20784
11810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11811 20786
11812fi 20787fi
11813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 20788{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
11814$as_echo "$ac_cv_func_getpgrp_void" >&6; } 20789$as_echo "$ac_cv_func_getpgrp_void" >&6; }
11815if test $ac_cv_func_getpgrp_void = yes; then 20790if test $ac_cv_func_getpgrp_void = yes; then
11816 20791
11817$as_echo "#define GETPGRP_VOID 1" >>confdefs.h 20792cat >>confdefs.h <<\_ACEOF
20793#define GETPGRP_VOID 1
20794_ACEOF
11818 20795
11819fi 20796fi
11820 20797
11821 20798
20799
11822for ac_func in strftime 20800for ac_func in strftime
11823do : 20801do
11824 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 20802as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11825if test "x$ac_cv_func_strftime" = x""yes; then : 20803{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20804$as_echo_n "checking for $ac_func... " >&6; }
20805if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20806 $as_echo_n "(cached) " >&6
20807else
20808 cat >conftest.$ac_ext <<_ACEOF
20809/* confdefs.h. */
20810_ACEOF
20811cat confdefs.h >>conftest.$ac_ext
20812cat >>conftest.$ac_ext <<_ACEOF
20813/* end confdefs.h. */
20814/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20816#define $ac_func innocuous_$ac_func
20817
20818/* System header to define __stub macros and hopefully few prototypes,
20819 which can conflict with char $ac_func (); below.
20820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20821 <limits.h> exists even on freestanding compilers. */
20822
20823#ifdef __STDC__
20824# include <limits.h>
20825#else
20826# include <assert.h>
20827#endif
20828
20829#undef $ac_func
20830
20831/* Override any GCC internal prototype to avoid an error.
20832 Use char because int might match the return type of a GCC
20833 builtin and then its argument prototype would still apply. */
20834#ifdef __cplusplus
20835extern "C"
20836#endif
20837char $ac_func ();
20838/* The GNU C library defines this for functions which it implements
20839 to always fail with ENOSYS. Some functions are actually named
20840 something starting with __ and the normal name is an alias. */
20841#if defined __stub_$ac_func || defined __stub___$ac_func
20842choke me
20843#endif
20844
20845int
20846main ()
20847{
20848return $ac_func ();
20849 ;
20850 return 0;
20851}
20852_ACEOF
20853rm -f conftest.$ac_objext conftest$ac_exeext
20854if { (ac_try="$ac_link"
20855case "(($ac_try" in
20856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20857 *) ac_try_echo=$ac_try;;
20858esac
20859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20860$as_echo "$ac_try_echo") >&5
20861 (eval "$ac_link") 2>conftest.er1
20862 ac_status=$?
20863 grep -v '^ *+' conftest.er1 >conftest.err
20864 rm -f conftest.er1
20865 cat conftest.err >&5
20866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); } && {
20868 test -z "$ac_c_werror_flag" ||
20869 test ! -s conftest.err
20870 } && test -s conftest$ac_exeext && {
20871 test "$cross_compiling" = yes ||
20872 $as_test_x conftest$ac_exeext
20873 }; then
20874 eval "$as_ac_var=yes"
20875else
20876 $as_echo "$as_me: failed program was:" >&5
20877sed 's/^/| /' conftest.$ac_ext >&5
20878
20879 eval "$as_ac_var=no"
20880fi
20881
20882rm -rf conftest.dSYM
20883rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20884 conftest$ac_exeext conftest.$ac_ext
20885fi
20886ac_res=`eval 'as_val=${'$as_ac_var'}
20887 $as_echo "$as_val"'`
20888 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20889$as_echo "$ac_res" >&6; }
20890if test `eval 'as_val=${'$as_ac_var'}
20891 $as_echo "$as_val"'` = yes; then
11826 cat >>confdefs.h <<_ACEOF 20892 cat >>confdefs.h <<_ACEOF
11827#define HAVE_STRFTIME 1 20893#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11828_ACEOF 20894_ACEOF
11829 20895
11830else 20896else
11831 # strftime is in -lintl on SCO UNIX. 20897 # strftime is in -lintl on SCO UNIX.
11832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 20898{ $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
11833$as_echo_n "checking for strftime in -lintl... " >&6; } 20899$as_echo_n "checking for strftime in -lintl... " >&6; }
11834if test "${ac_cv_lib_intl_strftime+set}" = set; then : 20900if test "${ac_cv_lib_intl_strftime+set}" = set; then
11835 $as_echo_n "(cached) " >&6 20901 $as_echo_n "(cached) " >&6
11836else 20902else
11837 ac_check_lib_save_LIBS=$LIBS 20903 ac_check_lib_save_LIBS=$LIBS
11838LIBS="-lintl $LIBS" 20904LIBS="-lintl $LIBS"
11839cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20905cat >conftest.$ac_ext <<_ACEOF
20906/* confdefs.h. */
20907_ACEOF
20908cat confdefs.h >>conftest.$ac_ext
20909cat >>conftest.$ac_ext <<_ACEOF
11840/* end confdefs.h. */ 20910/* end confdefs.h. */
11841 20911
11842/* Override any GCC internal prototype to avoid an error. 20912/* Override any GCC internal prototype to avoid an error.
@@ -11854,19 +20924,46 @@ return strftime ();
11854 return 0; 20924 return 0;
11855} 20925}
11856_ACEOF 20926_ACEOF
11857if ac_fn_c_try_link "$LINENO"; then : 20927rm -f conftest.$ac_objext conftest$ac_exeext
20928if { (ac_try="$ac_link"
20929case "(($ac_try" in
20930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20931 *) ac_try_echo=$ac_try;;
20932esac
20933eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20934$as_echo "$ac_try_echo") >&5
20935 (eval "$ac_link") 2>conftest.er1
20936 ac_status=$?
20937 grep -v '^ *+' conftest.er1 >conftest.err
20938 rm -f conftest.er1
20939 cat conftest.err >&5
20940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941 (exit $ac_status); } && {
20942 test -z "$ac_c_werror_flag" ||
20943 test ! -s conftest.err
20944 } && test -s conftest$ac_exeext && {
20945 test "$cross_compiling" = yes ||
20946 $as_test_x conftest$ac_exeext
20947 }; then
11858 ac_cv_lib_intl_strftime=yes 20948 ac_cv_lib_intl_strftime=yes
11859else 20949else
11860 ac_cv_lib_intl_strftime=no 20950 $as_echo "$as_me: failed program was:" >&5
20951sed 's/^/| /' conftest.$ac_ext >&5
20952
20953 ac_cv_lib_intl_strftime=no
11861fi 20954fi
11862rm -f core conftest.err conftest.$ac_objext \ 20955
11863 conftest$ac_exeext conftest.$ac_ext 20956rm -rf conftest.dSYM
20957rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20958 conftest$ac_exeext conftest.$ac_ext
11864LIBS=$ac_check_lib_save_LIBS 20959LIBS=$ac_check_lib_save_LIBS
11865fi 20960fi
11866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 20961{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
11867$as_echo "$ac_cv_lib_intl_strftime" >&6; } 20962$as_echo "$ac_cv_lib_intl_strftime" >&6; }
11868if test "x$ac_cv_lib_intl_strftime" = x""yes; then : 20963if test $ac_cv_lib_intl_strftime = yes; then
11869 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 20964 cat >>confdefs.h <<\_ACEOF
20965#define HAVE_STRFTIME 1
20966_ACEOF
11870 20967
11871LIBS="-lintl $LIBS" 20968LIBS="-lintl $LIBS"
11872fi 20969fi
@@ -11876,12 +20973,101 @@ done
11876 20973
11877 20974
11878# UNIX98 PTYs. 20975# UNIX98 PTYs.
20976
11879for ac_func in grantpt 20977for ac_func in grantpt
11880do : 20978do
11881 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt" 20979as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11882if test "x$ac_cv_func_grantpt" = x""yes; then : 20980{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20981$as_echo_n "checking for $ac_func... " >&6; }
20982if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20983 $as_echo_n "(cached) " >&6
20984else
20985 cat >conftest.$ac_ext <<_ACEOF
20986/* confdefs.h. */
20987_ACEOF
20988cat confdefs.h >>conftest.$ac_ext
20989cat >>conftest.$ac_ext <<_ACEOF
20990/* end confdefs.h. */
20991/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20993#define $ac_func innocuous_$ac_func
20994
20995/* System header to define __stub macros and hopefully few prototypes,
20996 which can conflict with char $ac_func (); below.
20997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20998 <limits.h> exists even on freestanding compilers. */
20999
21000#ifdef __STDC__
21001# include <limits.h>
21002#else
21003# include <assert.h>
21004#endif
21005
21006#undef $ac_func
21007
21008/* Override any GCC internal prototype to avoid an error.
21009 Use char because int might match the return type of a GCC
21010 builtin and then its argument prototype would still apply. */
21011#ifdef __cplusplus
21012extern "C"
21013#endif
21014char $ac_func ();
21015/* The GNU C library defines this for functions which it implements
21016 to always fail with ENOSYS. Some functions are actually named
21017 something starting with __ and the normal name is an alias. */
21018#if defined __stub_$ac_func || defined __stub___$ac_func
21019choke me
21020#endif
21021
21022int
21023main ()
21024{
21025return $ac_func ();
21026 ;
21027 return 0;
21028}
21029_ACEOF
21030rm -f conftest.$ac_objext conftest$ac_exeext
21031if { (ac_try="$ac_link"
21032case "(($ac_try" in
21033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21034 *) ac_try_echo=$ac_try;;
21035esac
21036eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21037$as_echo "$ac_try_echo") >&5
21038 (eval "$ac_link") 2>conftest.er1
21039 ac_status=$?
21040 grep -v '^ *+' conftest.er1 >conftest.err
21041 rm -f conftest.er1
21042 cat conftest.err >&5
21043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); } && {
21045 test -z "$ac_c_werror_flag" ||
21046 test ! -s conftest.err
21047 } && test -s conftest$ac_exeext && {
21048 test "$cross_compiling" = yes ||
21049 $as_test_x conftest$ac_exeext
21050 }; then
21051 eval "$as_ac_var=yes"
21052else
21053 $as_echo "$as_me: failed program was:" >&5
21054sed 's/^/| /' conftest.$ac_ext >&5
21055
21056 eval "$as_ac_var=no"
21057fi
21058
21059rm -rf conftest.dSYM
21060rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21061 conftest$ac_exeext conftest.$ac_ext
21062fi
21063ac_res=`eval 'as_val=${'$as_ac_var'}
21064 $as_echo "$as_val"'`
21065 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21066$as_echo "$ac_res" >&6; }
21067if test `eval 'as_val=${'$as_ac_var'}
21068 $as_echo "$as_val"'` = yes; then
11883 cat >>confdefs.h <<_ACEOF 21069 cat >>confdefs.h <<_ACEOF
11884#define HAVE_GRANTPT 1 21070#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11885_ACEOF 21071_ACEOF
11886 21072
11887fi 21073fi
@@ -11889,12 +21075,101 @@ done
11889 21075
11890 21076
11891# PTY-related GNU extensions. 21077# PTY-related GNU extensions.
21078
11892for ac_func in getpt 21079for ac_func in getpt
11893do : 21080do
11894 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt" 21081as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11895if test "x$ac_cv_func_getpt" = x""yes; then : 21082{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21083$as_echo_n "checking for $ac_func... " >&6; }
21084if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21085 $as_echo_n "(cached) " >&6
21086else
21087 cat >conftest.$ac_ext <<_ACEOF
21088/* confdefs.h. */
21089_ACEOF
21090cat confdefs.h >>conftest.$ac_ext
21091cat >>conftest.$ac_ext <<_ACEOF
21092/* end confdefs.h. */
21093/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21095#define $ac_func innocuous_$ac_func
21096
21097/* System header to define __stub macros and hopefully few prototypes,
21098 which can conflict with char $ac_func (); below.
21099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21100 <limits.h> exists even on freestanding compilers. */
21101
21102#ifdef __STDC__
21103# include <limits.h>
21104#else
21105# include <assert.h>
21106#endif
21107
21108#undef $ac_func
21109
21110/* Override any GCC internal prototype to avoid an error.
21111 Use char because int might match the return type of a GCC
21112 builtin and then its argument prototype would still apply. */
21113#ifdef __cplusplus
21114extern "C"
21115#endif
21116char $ac_func ();
21117/* The GNU C library defines this for functions which it implements
21118 to always fail with ENOSYS. Some functions are actually named
21119 something starting with __ and the normal name is an alias. */
21120#if defined __stub_$ac_func || defined __stub___$ac_func
21121choke me
21122#endif
21123
21124int
21125main ()
21126{
21127return $ac_func ();
21128 ;
21129 return 0;
21130}
21131_ACEOF
21132rm -f conftest.$ac_objext conftest$ac_exeext
21133if { (ac_try="$ac_link"
21134case "(($ac_try" in
21135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21136 *) ac_try_echo=$ac_try;;
21137esac
21138eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21139$as_echo "$ac_try_echo") >&5
21140 (eval "$ac_link") 2>conftest.er1
21141 ac_status=$?
21142 grep -v '^ *+' conftest.er1 >conftest.err
21143 rm -f conftest.er1
21144 cat conftest.err >&5
21145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); } && {
21147 test -z "$ac_c_werror_flag" ||
21148 test ! -s conftest.err
21149 } && test -s conftest$ac_exeext && {
21150 test "$cross_compiling" = yes ||
21151 $as_test_x conftest$ac_exeext
21152 }; then
21153 eval "$as_ac_var=yes"
21154else
21155 $as_echo "$as_me: failed program was:" >&5
21156sed 's/^/| /' conftest.$ac_ext >&5
21157
21158 eval "$as_ac_var=no"
21159fi
21160
21161rm -rf conftest.dSYM
21162rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21163 conftest$ac_exeext conftest.$ac_ext
21164fi
21165ac_res=`eval 'as_val=${'$as_ac_var'}
21166 $as_echo "$as_val"'`
21167 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21168$as_echo "$ac_res" >&6; }
21169if test `eval 'as_val=${'$as_ac_var'}
21170 $as_echo "$as_val"'` = yes; then
11896 cat >>confdefs.h <<_ACEOF 21171 cat >>confdefs.h <<_ACEOF
11897#define HAVE_GETPT 1 21172#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11898_ACEOF 21173_ACEOF
11899 21174
11900fi 21175fi
@@ -11907,13 +21182,17 @@ done
11907# than to expect to find it in ncurses. 21182# than to expect to find it in ncurses.
11908# Also we need tputs and frieds to be able to build at all. 21183# Also we need tputs and frieds to be able to build at all.
11909have_tputs_et_al=true 21184have_tputs_et_al=true
11910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5 21185{ $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5
11911$as_echo_n "checking for library containing tputs... " >&6; } 21186$as_echo_n "checking for library containing tputs... " >&6; }
11912if test "${ac_cv_search_tputs+set}" = set; then : 21187if test "${ac_cv_search_tputs+set}" = set; then
11913 $as_echo_n "(cached) " >&6 21188 $as_echo_n "(cached) " >&6
11914else 21189else
11915 ac_func_search_save_LIBS=$LIBS 21190 ac_func_search_save_LIBS=$LIBS
11916cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21191cat >conftest.$ac_ext <<_ACEOF
21192/* confdefs.h. */
21193_ACEOF
21194cat confdefs.h >>conftest.$ac_ext
21195cat >>conftest.$ac_ext <<_ACEOF
11917/* end confdefs.h. */ 21196/* end confdefs.h. */
11918 21197
11919/* Override any GCC internal prototype to avoid an error. 21198/* Override any GCC internal prototype to avoid an error.
@@ -11938,27 +21217,54 @@ for ac_lib in '' ncurses terminfo termcap; do
11938 ac_res=-l$ac_lib 21217 ac_res=-l$ac_lib
11939 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21218 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11940 fi 21219 fi
11941 if ac_fn_c_try_link "$LINENO"; then : 21220 rm -f conftest.$ac_objext conftest$ac_exeext
21221if { (ac_try="$ac_link"
21222case "(($ac_try" in
21223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21224 *) ac_try_echo=$ac_try;;
21225esac
21226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21227$as_echo "$ac_try_echo") >&5
21228 (eval "$ac_link") 2>conftest.er1
21229 ac_status=$?
21230 grep -v '^ *+' conftest.er1 >conftest.err
21231 rm -f conftest.er1
21232 cat conftest.err >&5
21233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); } && {
21235 test -z "$ac_c_werror_flag" ||
21236 test ! -s conftest.err
21237 } && test -s conftest$ac_exeext && {
21238 test "$cross_compiling" = yes ||
21239 $as_test_x conftest$ac_exeext
21240 }; then
11942 ac_cv_search_tputs=$ac_res 21241 ac_cv_search_tputs=$ac_res
21242else
21243 $as_echo "$as_me: failed program was:" >&5
21244sed 's/^/| /' conftest.$ac_ext >&5
21245
21246
11943fi 21247fi
11944rm -f core conftest.err conftest.$ac_objext \ 21248
11945 conftest$ac_exeext 21249rm -rf conftest.dSYM
11946 if test "${ac_cv_search_tputs+set}" = set; then : 21250rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21251 conftest$ac_exeext
21252 if test "${ac_cv_search_tputs+set}" = set; then
11947 break 21253 break
11948fi 21254fi
11949done 21255done
11950if test "${ac_cv_search_tputs+set}" = set; then : 21256if test "${ac_cv_search_tputs+set}" = set; then
11951 21257 :
11952else 21258else
11953 ac_cv_search_tputs=no 21259 ac_cv_search_tputs=no
11954fi 21260fi
11955rm conftest.$ac_ext 21261rm conftest.$ac_ext
11956LIBS=$ac_func_search_save_LIBS 21262LIBS=$ac_func_search_save_LIBS
11957fi 21263fi
11958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5 21264{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
11959$as_echo "$ac_cv_search_tputs" >&6; } 21265$as_echo "$ac_cv_search_tputs" >&6; }
11960ac_res=$ac_cv_search_tputs 21266ac_res=$ac_cv_search_tputs
11961if test "$ac_res" != no; then : 21267if test "$ac_res" != no; then
11962 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21268 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11963 21269
11964else 21270else
@@ -11966,19 +21272,29 @@ else
11966fi 21272fi
11967 21273
11968if test "$have_tputs_et_al" != true; then 21274if test "$have_tputs_et_al" != true; then
11969 as_fn_error "I couldn't find termcap functions (tputs and friends). 21275 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends).
11970Maybe some development libraries/packages are missing? Try installing 21276Maybe some development libraries/packages are missing? Try installing
11971libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5 21277libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21278$as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21279Maybe some development libraries/packages are missing? Try installing
21280libncurses-dev(el), libterminfo-dev(el) or similar." >&2;}
21281 { (exit 1); exit 1; }; }
11972fi 21282fi
11973# Must define this when any termcap library is found. 21283# Must define this when any termcap library is found.
11974 21284
11975$as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h 21285cat >>confdefs.h <<\_ACEOF
21286#define HAVE_LIBNCURSES 1
21287_ACEOF
11976 21288
11977 21289
11978# Do we have res_init, for detecting changes in /etc/resolv.conf? 21290# Do we have res_init, for detecting changes in /etc/resolv.conf?
11979 21291
11980resolv=no 21292resolv=no
11981cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21293cat >conftest.$ac_ext <<_ACEOF
21294/* confdefs.h. */
21295_ACEOF
21296cat confdefs.h >>conftest.$ac_ext
21297cat >>conftest.$ac_ext <<_ACEOF
11982/* end confdefs.h. */ 21298/* end confdefs.h. */
11983#include <netinet/in.h> 21299#include <netinet/in.h>
11984#include <arpa/nameser.h> 21300#include <arpa/nameser.h>
@@ -11991,19 +21307,48 @@ return res_init();
11991 return 0; 21307 return 0;
11992} 21308}
11993_ACEOF 21309_ACEOF
11994if ac_fn_c_try_link "$LINENO"; then : 21310rm -f conftest.$ac_objext conftest$ac_exeext
21311if { (ac_try="$ac_link"
21312case "(($ac_try" in
21313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21314 *) ac_try_echo=$ac_try;;
21315esac
21316eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21317$as_echo "$ac_try_echo") >&5
21318 (eval "$ac_link") 2>conftest.er1
21319 ac_status=$?
21320 grep -v '^ *+' conftest.er1 >conftest.err
21321 rm -f conftest.er1
21322 cat conftest.err >&5
21323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); } && {
21325 test -z "$ac_c_werror_flag" ||
21326 test ! -s conftest.err
21327 } && test -s conftest$ac_exeext && {
21328 test "$cross_compiling" = yes ||
21329 $as_test_x conftest$ac_exeext
21330 }; then
11995 have_res_init=yes 21331 have_res_init=yes
11996else 21332else
11997 have_res_init=no 21333 $as_echo "$as_me: failed program was:" >&5
21334sed 's/^/| /' conftest.$ac_ext >&5
21335
21336 have_res_init=no
11998fi 21337fi
11999rm -f core conftest.err conftest.$ac_objext \ 21338
12000 conftest$ac_exeext conftest.$ac_ext 21339rm -rf conftest.dSYM
21340rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21341 conftest$ac_exeext conftest.$ac_ext
12001if test "$have_res_init" = no; then 21342if test "$have_res_init" = no; then
12002 OLIBS="$LIBS" 21343 OLIBS="$LIBS"
12003 LIBS="$LIBS -lresolv" 21344 LIBS="$LIBS -lresolv"
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5 21345 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
12005$as_echo_n "checking for res_init with -lresolv... " >&6; } 21346$as_echo_n "checking for res_init with -lresolv... " >&6; }
12006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21347 cat >conftest.$ac_ext <<_ACEOF
21348/* confdefs.h. */
21349_ACEOF
21350cat confdefs.h >>conftest.$ac_ext
21351cat >>conftest.$ac_ext <<_ACEOF
12007/* end confdefs.h. */ 21352/* end confdefs.h. */
12008#include <netinet/in.h> 21353#include <netinet/in.h>
12009#include <arpa/nameser.h> 21354#include <arpa/nameser.h>
@@ -12016,14 +21361,39 @@ return res_init();
12016 return 0; 21361 return 0;
12017} 21362}
12018_ACEOF 21363_ACEOF
12019if ac_fn_c_try_link "$LINENO"; then : 21364rm -f conftest.$ac_objext conftest$ac_exeext
21365if { (ac_try="$ac_link"
21366case "(($ac_try" in
21367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21368 *) ac_try_echo=$ac_try;;
21369esac
21370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21371$as_echo "$ac_try_echo") >&5
21372 (eval "$ac_link") 2>conftest.er1
21373 ac_status=$?
21374 grep -v '^ *+' conftest.er1 >conftest.err
21375 rm -f conftest.er1
21376 cat conftest.err >&5
21377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); } && {
21379 test -z "$ac_c_werror_flag" ||
21380 test ! -s conftest.err
21381 } && test -s conftest$ac_exeext && {
21382 test "$cross_compiling" = yes ||
21383 $as_test_x conftest$ac_exeext
21384 }; then
12020 have_res_init=yes 21385 have_res_init=yes
12021else 21386else
12022 have_res_init=no 21387 $as_echo "$as_me: failed program was:" >&5
21388sed 's/^/| /' conftest.$ac_ext >&5
21389
21390 have_res_init=no
12023fi 21391fi
12024rm -f core conftest.err conftest.$ac_objext \ 21392
12025 conftest$ac_exeext conftest.$ac_ext 21393rm -rf conftest.dSYM
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5 21394rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21395 conftest$ac_exeext conftest.$ac_ext
21396 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
12027$as_echo "$have_res_init" >&6; } 21397$as_echo "$have_res_init" >&6; }
12028 if test "$have_res_init" = yes ; then 21398 if test "$have_res_init" = yes ; then
12029 resolv=yes 21399 resolv=yes
@@ -12033,7 +21403,9 @@ fi
12033 21403
12034if test "$have_res_init" = yes; then 21404if test "$have_res_init" = yes; then
12035 21405
12036$as_echo "#define HAVE_RES_INIT 1" >>confdefs.h 21406cat >>confdefs.h <<\_ACEOF
21407#define HAVE_RES_INIT 1
21408_ACEOF
12037 21409
12038fi 21410fi
12039 21411
@@ -12041,22 +21413,194 @@ fi
12041LIBHESIOD= 21413LIBHESIOD=
12042if test "$with_hesiod" != no ; then 21414if test "$with_hesiod" != no ; then
12043 # Don't set $LIBS here -- see comments above. FIXME which comments? 21415 # Don't set $LIBS here -- see comments above. FIXME which comments?
12044 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send" 21416 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
12045if test "x$ac_cv_func_res_send" = x""yes; then : 21417$as_echo_n "checking for res_send... " >&6; }
21418if test "${ac_cv_func_res_send+set}" = set; then
21419 $as_echo_n "(cached) " >&6
21420else
21421 cat >conftest.$ac_ext <<_ACEOF
21422/* confdefs.h. */
21423_ACEOF
21424cat confdefs.h >>conftest.$ac_ext
21425cat >>conftest.$ac_ext <<_ACEOF
21426/* end confdefs.h. */
21427/* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21429#define res_send innocuous_res_send
21430
21431/* System header to define __stub macros and hopefully few prototypes,
21432 which can conflict with char res_send (); below.
21433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21434 <limits.h> exists even on freestanding compilers. */
21435
21436#ifdef __STDC__
21437# include <limits.h>
21438#else
21439# include <assert.h>
21440#endif
12046 21441
21442#undef res_send
21443
21444/* Override any GCC internal prototype to avoid an error.
21445 Use char because int might match the return type of a GCC
21446 builtin and then its argument prototype would still apply. */
21447#ifdef __cplusplus
21448extern "C"
21449#endif
21450char res_send ();
21451/* The GNU C library defines this for functions which it implements
21452 to always fail with ENOSYS. Some functions are actually named
21453 something starting with __ and the normal name is an alias. */
21454#if defined __stub_res_send || defined __stub___res_send
21455choke me
21456#endif
21457
21458int
21459main ()
21460{
21461return res_send ();
21462 ;
21463 return 0;
21464}
21465_ACEOF
21466rm -f conftest.$ac_objext conftest$ac_exeext
21467if { (ac_try="$ac_link"
21468case "(($ac_try" in
21469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21470 *) ac_try_echo=$ac_try;;
21471esac
21472eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21473$as_echo "$ac_try_echo") >&5
21474 (eval "$ac_link") 2>conftest.er1
21475 ac_status=$?
21476 grep -v '^ *+' conftest.er1 >conftest.err
21477 rm -f conftest.er1
21478 cat conftest.err >&5
21479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); } && {
21481 test -z "$ac_c_werror_flag" ||
21482 test ! -s conftest.err
21483 } && test -s conftest$ac_exeext && {
21484 test "$cross_compiling" = yes ||
21485 $as_test_x conftest$ac_exeext
21486 }; then
21487 ac_cv_func_res_send=yes
21488else
21489 $as_echo "$as_me: failed program was:" >&5
21490sed 's/^/| /' conftest.$ac_ext >&5
21491
21492 ac_cv_func_res_send=no
21493fi
21494
21495rm -rf conftest.dSYM
21496rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21497 conftest$ac_exeext conftest.$ac_ext
21498fi
21499{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21500$as_echo "$ac_cv_func_res_send" >&6; }
21501if test $ac_cv_func_res_send = yes; then
21502 :
21503else
21504 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21505$as_echo_n "checking for __res_send... " >&6; }
21506if test "${ac_cv_func___res_send+set}" = set; then
21507 $as_echo_n "(cached) " >&6
21508else
21509 cat >conftest.$ac_ext <<_ACEOF
21510/* confdefs.h. */
21511_ACEOF
21512cat confdefs.h >>conftest.$ac_ext
21513cat >>conftest.$ac_ext <<_ACEOF
21514/* end confdefs.h. */
21515/* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21517#define __res_send innocuous___res_send
21518
21519/* System header to define __stub macros and hopefully few prototypes,
21520 which can conflict with char __res_send (); below.
21521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21522 <limits.h> exists even on freestanding compilers. */
21523
21524#ifdef __STDC__
21525# include <limits.h>
21526#else
21527# include <assert.h>
21528#endif
21529
21530#undef __res_send
21531
21532/* Override any GCC internal prototype to avoid an error.
21533 Use char because int might match the return type of a GCC
21534 builtin and then its argument prototype would still apply. */
21535#ifdef __cplusplus
21536extern "C"
21537#endif
21538char __res_send ();
21539/* The GNU C library defines this for functions which it implements
21540 to always fail with ENOSYS. Some functions are actually named
21541 something starting with __ and the normal name is an alias. */
21542#if defined __stub___res_send || defined __stub_____res_send
21543choke me
21544#endif
21545
21546int
21547main ()
21548{
21549return __res_send ();
21550 ;
21551 return 0;
21552}
21553_ACEOF
21554rm -f conftest.$ac_objext conftest$ac_exeext
21555if { (ac_try="$ac_link"
21556case "(($ac_try" in
21557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21558 *) ac_try_echo=$ac_try;;
21559esac
21560eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21561$as_echo "$ac_try_echo") >&5
21562 (eval "$ac_link") 2>conftest.er1
21563 ac_status=$?
21564 grep -v '^ *+' conftest.er1 >conftest.err
21565 rm -f conftest.er1
21566 cat conftest.err >&5
21567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568 (exit $ac_status); } && {
21569 test -z "$ac_c_werror_flag" ||
21570 test ! -s conftest.err
21571 } && test -s conftest$ac_exeext && {
21572 test "$cross_compiling" = yes ||
21573 $as_test_x conftest$ac_exeext
21574 }; then
21575 ac_cv_func___res_send=yes
12047else 21576else
12048 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send" 21577 $as_echo "$as_me: failed program was:" >&5
12049if test "x$ac_cv_func___res_send" = x""yes; then : 21578sed 's/^/| /' conftest.$ac_ext >&5
21579
21580 ac_cv_func___res_send=no
21581fi
12050 21582
21583rm -rf conftest.dSYM
21584rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21585 conftest$ac_exeext conftest.$ac_ext
21586fi
21587{ $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21588$as_echo "$ac_cv_func___res_send" >&6; }
21589if test $ac_cv_func___res_send = yes; then
21590 :
12051else 21591else
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5 21592 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
12053$as_echo_n "checking for res_send in -lresolv... " >&6; } 21593$as_echo_n "checking for res_send in -lresolv... " >&6; }
12054if test "${ac_cv_lib_resolv_res_send+set}" = set; then : 21594if test "${ac_cv_lib_resolv_res_send+set}" = set; then
12055 $as_echo_n "(cached) " >&6 21595 $as_echo_n "(cached) " >&6
12056else 21596else
12057 ac_check_lib_save_LIBS=$LIBS 21597 ac_check_lib_save_LIBS=$LIBS
12058LIBS="-lresolv $LIBS" 21598LIBS="-lresolv $LIBS"
12059cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21599cat >conftest.$ac_ext <<_ACEOF
21600/* confdefs.h. */
21601_ACEOF
21602cat confdefs.h >>conftest.$ac_ext
21603cat >>conftest.$ac_ext <<_ACEOF
12060/* end confdefs.h. */ 21604/* end confdefs.h. */
12061 21605
12062/* Override any GCC internal prototype to avoid an error. 21606/* Override any GCC internal prototype to avoid an error.
@@ -12074,28 +21618,57 @@ return res_send ();
12074 return 0; 21618 return 0;
12075} 21619}
12076_ACEOF 21620_ACEOF
12077if ac_fn_c_try_link "$LINENO"; then : 21621rm -f conftest.$ac_objext conftest$ac_exeext
21622if { (ac_try="$ac_link"
21623case "(($ac_try" in
21624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21625 *) ac_try_echo=$ac_try;;
21626esac
21627eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21628$as_echo "$ac_try_echo") >&5
21629 (eval "$ac_link") 2>conftest.er1
21630 ac_status=$?
21631 grep -v '^ *+' conftest.er1 >conftest.err
21632 rm -f conftest.er1
21633 cat conftest.err >&5
21634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); } && {
21636 test -z "$ac_c_werror_flag" ||
21637 test ! -s conftest.err
21638 } && test -s conftest$ac_exeext && {
21639 test "$cross_compiling" = yes ||
21640 $as_test_x conftest$ac_exeext
21641 }; then
12078 ac_cv_lib_resolv_res_send=yes 21642 ac_cv_lib_resolv_res_send=yes
12079else 21643else
12080 ac_cv_lib_resolv_res_send=no 21644 $as_echo "$as_me: failed program was:" >&5
21645sed 's/^/| /' conftest.$ac_ext >&5
21646
21647 ac_cv_lib_resolv_res_send=no
12081fi 21648fi
12082rm -f core conftest.err conftest.$ac_objext \ 21649
12083 conftest$ac_exeext conftest.$ac_ext 21650rm -rf conftest.dSYM
21651rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21652 conftest$ac_exeext conftest.$ac_ext
12084LIBS=$ac_check_lib_save_LIBS 21653LIBS=$ac_check_lib_save_LIBS
12085fi 21654fi
12086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5 21655{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
12087$as_echo "$ac_cv_lib_resolv_res_send" >&6; } 21656$as_echo "$ac_cv_lib_resolv_res_send" >&6; }
12088if test "x$ac_cv_lib_resolv_res_send" = x""yes; then : 21657if test $ac_cv_lib_resolv_res_send = yes; then
12089 resolv=yes 21658 resolv=yes
12090else 21659else
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5 21660 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
12092$as_echo_n "checking for __res_send in -lresolv... " >&6; } 21661$as_echo_n "checking for __res_send in -lresolv... " >&6; }
12093if test "${ac_cv_lib_resolv___res_send+set}" = set; then : 21662if test "${ac_cv_lib_resolv___res_send+set}" = set; then
12094 $as_echo_n "(cached) " >&6 21663 $as_echo_n "(cached) " >&6
12095else 21664else
12096 ac_check_lib_save_LIBS=$LIBS 21665 ac_check_lib_save_LIBS=$LIBS
12097LIBS="-lresolv $LIBS" 21666LIBS="-lresolv $LIBS"
12098cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21667cat >conftest.$ac_ext <<_ACEOF
21668/* confdefs.h. */
21669_ACEOF
21670cat confdefs.h >>conftest.$ac_ext
21671cat >>conftest.$ac_ext <<_ACEOF
12099/* end confdefs.h. */ 21672/* end confdefs.h. */
12100 21673
12101/* Override any GCC internal prototype to avoid an error. 21674/* Override any GCC internal prototype to avoid an error.
@@ -12113,18 +21686,43 @@ return __res_send ();
12113 return 0; 21686 return 0;
12114} 21687}
12115_ACEOF 21688_ACEOF
12116if ac_fn_c_try_link "$LINENO"; then : 21689rm -f conftest.$ac_objext conftest$ac_exeext
21690if { (ac_try="$ac_link"
21691case "(($ac_try" in
21692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21693 *) ac_try_echo=$ac_try;;
21694esac
21695eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21696$as_echo "$ac_try_echo") >&5
21697 (eval "$ac_link") 2>conftest.er1
21698 ac_status=$?
21699 grep -v '^ *+' conftest.er1 >conftest.err
21700 rm -f conftest.er1
21701 cat conftest.err >&5
21702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703 (exit $ac_status); } && {
21704 test -z "$ac_c_werror_flag" ||
21705 test ! -s conftest.err
21706 } && test -s conftest$ac_exeext && {
21707 test "$cross_compiling" = yes ||
21708 $as_test_x conftest$ac_exeext
21709 }; then
12117 ac_cv_lib_resolv___res_send=yes 21710 ac_cv_lib_resolv___res_send=yes
12118else 21711else
12119 ac_cv_lib_resolv___res_send=no 21712 $as_echo "$as_me: failed program was:" >&5
21713sed 's/^/| /' conftest.$ac_ext >&5
21714
21715 ac_cv_lib_resolv___res_send=no
12120fi 21716fi
12121rm -f core conftest.err conftest.$ac_objext \ 21717
12122 conftest$ac_exeext conftest.$ac_ext 21718rm -rf conftest.dSYM
21719rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21720 conftest$ac_exeext conftest.$ac_ext
12123LIBS=$ac_check_lib_save_LIBS 21721LIBS=$ac_check_lib_save_LIBS
12124fi 21722fi
12125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5 21723{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
12126$as_echo "$ac_cv_lib_resolv___res_send" >&6; } 21724$as_echo "$ac_cv_lib_resolv___res_send" >&6; }
12127if test "x$ac_cv_lib_resolv___res_send" = x""yes; then : 21725if test $ac_cv_lib_resolv___res_send = yes; then
12128 resolv=yes 21726 resolv=yes
12129fi 21727fi
12130 21728
@@ -12139,18 +21737,106 @@ fi
12139 else 21737 else
12140 RESOLVLIB= 21738 RESOLVLIB=
12141 fi 21739 fi
12142 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost" 21740 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
12143if test "x$ac_cv_func_hes_getmailhost" = x""yes; then : 21741$as_echo_n "checking for hes_getmailhost... " >&6; }
21742if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21743 $as_echo_n "(cached) " >&6
21744else
21745 cat >conftest.$ac_ext <<_ACEOF
21746/* confdefs.h. */
21747_ACEOF
21748cat confdefs.h >>conftest.$ac_ext
21749cat >>conftest.$ac_ext <<_ACEOF
21750/* end confdefs.h. */
21751/* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21753#define hes_getmailhost innocuous_hes_getmailhost
21754
21755/* System header to define __stub macros and hopefully few prototypes,
21756 which can conflict with char hes_getmailhost (); below.
21757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21758 <limits.h> exists even on freestanding compilers. */
21759
21760#ifdef __STDC__
21761# include <limits.h>
21762#else
21763# include <assert.h>
21764#endif
21765
21766#undef hes_getmailhost
21767
21768/* Override any GCC internal prototype to avoid an error.
21769 Use char because int might match the return type of a GCC
21770 builtin and then its argument prototype would still apply. */
21771#ifdef __cplusplus
21772extern "C"
21773#endif
21774char hes_getmailhost ();
21775/* The GNU C library defines this for functions which it implements
21776 to always fail with ENOSYS. Some functions are actually named
21777 something starting with __ and the normal name is an alias. */
21778#if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21779choke me
21780#endif
21781
21782int
21783main ()
21784{
21785return hes_getmailhost ();
21786 ;
21787 return 0;
21788}
21789_ACEOF
21790rm -f conftest.$ac_objext conftest$ac_exeext
21791if { (ac_try="$ac_link"
21792case "(($ac_try" in
21793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21794 *) ac_try_echo=$ac_try;;
21795esac
21796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21797$as_echo "$ac_try_echo") >&5
21798 (eval "$ac_link") 2>conftest.er1
21799 ac_status=$?
21800 grep -v '^ *+' conftest.er1 >conftest.err
21801 rm -f conftest.er1
21802 cat conftest.err >&5
21803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); } && {
21805 test -z "$ac_c_werror_flag" ||
21806 test ! -s conftest.err
21807 } && test -s conftest$ac_exeext && {
21808 test "$cross_compiling" = yes ||
21809 $as_test_x conftest$ac_exeext
21810 }; then
21811 ac_cv_func_hes_getmailhost=yes
21812else
21813 $as_echo "$as_me: failed program was:" >&5
21814sed 's/^/| /' conftest.$ac_ext >&5
12144 21815
21816 ac_cv_func_hes_getmailhost=no
21817fi
21818
21819rm -rf conftest.dSYM
21820rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21821 conftest$ac_exeext conftest.$ac_ext
21822fi
21823{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21824$as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21825if test $ac_cv_func_hes_getmailhost = yes; then
21826 :
12145else 21827else
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5 21828 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
12147$as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; } 21829$as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
12148if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then : 21830if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
12149 $as_echo_n "(cached) " >&6 21831 $as_echo_n "(cached) " >&6
12150else 21832else
12151 ac_check_lib_save_LIBS=$LIBS 21833 ac_check_lib_save_LIBS=$LIBS
12152LIBS="-lhesiod $RESOLVLIB $LIBS" 21834LIBS="-lhesiod $RESOLVLIB $LIBS"
12153cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21835cat >conftest.$ac_ext <<_ACEOF
21836/* confdefs.h. */
21837_ACEOF
21838cat confdefs.h >>conftest.$ac_ext
21839cat >>conftest.$ac_ext <<_ACEOF
12154/* end confdefs.h. */ 21840/* end confdefs.h. */
12155 21841
12156/* Override any GCC internal prototype to avoid an error. 21842/* Override any GCC internal prototype to avoid an error.
@@ -12168,18 +21854,43 @@ return hes_getmailhost ();
12168 return 0; 21854 return 0;
12169} 21855}
12170_ACEOF 21856_ACEOF
12171if ac_fn_c_try_link "$LINENO"; then : 21857rm -f conftest.$ac_objext conftest$ac_exeext
21858if { (ac_try="$ac_link"
21859case "(($ac_try" in
21860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21861 *) ac_try_echo=$ac_try;;
21862esac
21863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21864$as_echo "$ac_try_echo") >&5
21865 (eval "$ac_link") 2>conftest.er1
21866 ac_status=$?
21867 grep -v '^ *+' conftest.er1 >conftest.err
21868 rm -f conftest.er1
21869 cat conftest.err >&5
21870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); } && {
21872 test -z "$ac_c_werror_flag" ||
21873 test ! -s conftest.err
21874 } && test -s conftest$ac_exeext && {
21875 test "$cross_compiling" = yes ||
21876 $as_test_x conftest$ac_exeext
21877 }; then
12172 ac_cv_lib_hesiod_hes_getmailhost=yes 21878 ac_cv_lib_hesiod_hes_getmailhost=yes
12173else 21879else
12174 ac_cv_lib_hesiod_hes_getmailhost=no 21880 $as_echo "$as_me: failed program was:" >&5
21881sed 's/^/| /' conftest.$ac_ext >&5
21882
21883 ac_cv_lib_hesiod_hes_getmailhost=no
12175fi 21884fi
12176rm -f core conftest.err conftest.$ac_objext \ 21885
12177 conftest$ac_exeext conftest.$ac_ext 21886rm -rf conftest.dSYM
21887rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21888 conftest$ac_exeext conftest.$ac_ext
12178LIBS=$ac_check_lib_save_LIBS 21889LIBS=$ac_check_lib_save_LIBS
12179fi 21890fi
12180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 21891{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12181$as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; } 21892$as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
12182if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then : 21893if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
12183 hesiod=yes 21894 hesiod=yes
12184else 21895else
12185 : 21896 :
@@ -12190,7 +21901,9 @@ fi
12190 21901
12191 if test x"$hesiod" = xyes; then 21902 if test x"$hesiod" = xyes; then
12192 21903
12193$as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h 21904cat >>confdefs.h <<\_ACEOF
21905#define HAVE_LIBHESIOD 1
21906_ACEOF
12194 21907
12195 LIBHESIOD=-lhesiod 21908 LIBHESIOD=-lhesiod
12196 fi 21909 fi
@@ -12200,7 +21913,9 @@ fi
12200# Do we need libresolv (due to res_init or Hesiod)? 21913# Do we need libresolv (due to res_init or Hesiod)?
12201if test "$resolv" = yes ; then 21914if test "$resolv" = yes ; then
12202 21915
12203$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h 21916cat >>confdefs.h <<\_ACEOF
21917#define HAVE_LIBRESOLV 1
21918_ACEOF
12204 21919
12205 LIBRESOLV=-lresolv 21920 LIBRESOLV=-lresolv
12206else 21921else
@@ -12216,14 +21931,18 @@ DESLIB=
12216KRB4LIB= 21931KRB4LIB=
12217 21932
12218if test "${with_kerberos}" != no; then 21933if test "${with_kerberos}" != no; then
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5 21934 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
12220$as_echo_n "checking for com_err in -lcom_err... " >&6; } 21935$as_echo_n "checking for com_err in -lcom_err... " >&6; }
12221if test "${ac_cv_lib_com_err_com_err+set}" = set; then : 21936if test "${ac_cv_lib_com_err_com_err+set}" = set; then
12222 $as_echo_n "(cached) " >&6 21937 $as_echo_n "(cached) " >&6
12223else 21938else
12224 ac_check_lib_save_LIBS=$LIBS 21939 ac_check_lib_save_LIBS=$LIBS
12225LIBS="-lcom_err $LIBS" 21940LIBS="-lcom_err $LIBS"
12226cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21941cat >conftest.$ac_ext <<_ACEOF
21942/* confdefs.h. */
21943_ACEOF
21944cat confdefs.h >>conftest.$ac_ext
21945cat >>conftest.$ac_ext <<_ACEOF
12227/* end confdefs.h. */ 21946/* end confdefs.h. */
12228 21947
12229/* Override any GCC internal prototype to avoid an error. 21948/* Override any GCC internal prototype to avoid an error.
@@ -12241,18 +21960,43 @@ return com_err ();
12241 return 0; 21960 return 0;
12242} 21961}
12243_ACEOF 21962_ACEOF
12244if ac_fn_c_try_link "$LINENO"; then : 21963rm -f conftest.$ac_objext conftest$ac_exeext
21964if { (ac_try="$ac_link"
21965case "(($ac_try" in
21966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21967 *) ac_try_echo=$ac_try;;
21968esac
21969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21970$as_echo "$ac_try_echo") >&5
21971 (eval "$ac_link") 2>conftest.er1
21972 ac_status=$?
21973 grep -v '^ *+' conftest.er1 >conftest.err
21974 rm -f conftest.er1
21975 cat conftest.err >&5
21976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977 (exit $ac_status); } && {
21978 test -z "$ac_c_werror_flag" ||
21979 test ! -s conftest.err
21980 } && test -s conftest$ac_exeext && {
21981 test "$cross_compiling" = yes ||
21982 $as_test_x conftest$ac_exeext
21983 }; then
12245 ac_cv_lib_com_err_com_err=yes 21984 ac_cv_lib_com_err_com_err=yes
12246else 21985else
12247 ac_cv_lib_com_err_com_err=no 21986 $as_echo "$as_me: failed program was:" >&5
21987sed 's/^/| /' conftest.$ac_ext >&5
21988
21989 ac_cv_lib_com_err_com_err=no
12248fi 21990fi
12249rm -f core conftest.err conftest.$ac_objext \ 21991
12250 conftest$ac_exeext conftest.$ac_ext 21992rm -rf conftest.dSYM
21993rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21994 conftest$ac_exeext conftest.$ac_ext
12251LIBS=$ac_check_lib_save_LIBS 21995LIBS=$ac_check_lib_save_LIBS
12252fi 21996fi
12253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5 21997{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
12254$as_echo "$ac_cv_lib_com_err_com_err" >&6; } 21998$as_echo "$ac_cv_lib_com_err_com_err" >&6; }
12255if test "x$ac_cv_lib_com_err_com_err" = x""yes; then : 21999if test $ac_cv_lib_com_err_com_err = yes; then
12256 have_com_err=yes 22000 have_com_err=yes
12257else 22001else
12258 have_com_err=no 22002 have_com_err=no
@@ -12262,17 +22006,23 @@ fi
12262 COM_ERRLIB=-lcom_err 22006 COM_ERRLIB=-lcom_err
12263 LIBS="$COM_ERRLIB $LIBS" 22007 LIBS="$COM_ERRLIB $LIBS"
12264 22008
12265$as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h 22009cat >>confdefs.h <<\_ACEOF
22010#define HAVE_LIBCOM_ERR 1
22011_ACEOF
12266 22012
12267 fi 22013 fi
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5 22014 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12269$as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; } 22015$as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
12270if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then : 22016if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
12271 $as_echo_n "(cached) " >&6 22017 $as_echo_n "(cached) " >&6
12272else 22018else
12273 ac_check_lib_save_LIBS=$LIBS 22019 ac_check_lib_save_LIBS=$LIBS
12274LIBS="-lcrypto $LIBS" 22020LIBS="-lcrypto $LIBS"
12275cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22021cat >conftest.$ac_ext <<_ACEOF
22022/* confdefs.h. */
22023_ACEOF
22024cat confdefs.h >>conftest.$ac_ext
22025cat >>conftest.$ac_ext <<_ACEOF
12276/* end confdefs.h. */ 22026/* end confdefs.h. */
12277 22027
12278/* Override any GCC internal prototype to avoid an error. 22028/* Override any GCC internal prototype to avoid an error.
@@ -12290,18 +22040,43 @@ return mit_des_cbc_encrypt ();
12290 return 0; 22040 return 0;
12291} 22041}
12292_ACEOF 22042_ACEOF
12293if ac_fn_c_try_link "$LINENO"; then : 22043rm -f conftest.$ac_objext conftest$ac_exeext
22044if { (ac_try="$ac_link"
22045case "(($ac_try" in
22046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22047 *) ac_try_echo=$ac_try;;
22048esac
22049eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22050$as_echo "$ac_try_echo") >&5
22051 (eval "$ac_link") 2>conftest.er1
22052 ac_status=$?
22053 grep -v '^ *+' conftest.er1 >conftest.err
22054 rm -f conftest.er1
22055 cat conftest.err >&5
22056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); } && {
22058 test -z "$ac_c_werror_flag" ||
22059 test ! -s conftest.err
22060 } && test -s conftest$ac_exeext && {
22061 test "$cross_compiling" = yes ||
22062 $as_test_x conftest$ac_exeext
22063 }; then
12294 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes 22064 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
12295else 22065else
12296 ac_cv_lib_crypto_mit_des_cbc_encrypt=no 22066 $as_echo "$as_me: failed program was:" >&5
22067sed 's/^/| /' conftest.$ac_ext >&5
22068
22069 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
12297fi 22070fi
12298rm -f core conftest.err conftest.$ac_objext \ 22071
12299 conftest$ac_exeext conftest.$ac_ext 22072rm -rf conftest.dSYM
22073rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22074 conftest$ac_exeext conftest.$ac_ext
12300LIBS=$ac_check_lib_save_LIBS 22075LIBS=$ac_check_lib_save_LIBS
12301fi 22076fi
12302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 22077{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12303$as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; } 22078$as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
12304if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then : 22079if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
12305 have_crypto=yes 22080 have_crypto=yes
12306else 22081else
12307 have_crypto=no 22082 have_crypto=no
@@ -12311,17 +22086,23 @@ fi
12311 CRYPTOLIB=-lcrypto 22086 CRYPTOLIB=-lcrypto
12312 LIBS="$CRYPTOLIB $LIBS" 22087 LIBS="$CRYPTOLIB $LIBS"
12313 22088
12314$as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h 22089cat >>confdefs.h <<\_ACEOF
22090#define HAVE_LIBCRYPTO 1
22091_ACEOF
12315 22092
12316 fi 22093 fi
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 22094 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12318$as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; } 22095$as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
12319if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then : 22096if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
12320 $as_echo_n "(cached) " >&6 22097 $as_echo_n "(cached) " >&6
12321else 22098else
12322 ac_check_lib_save_LIBS=$LIBS 22099 ac_check_lib_save_LIBS=$LIBS
12323LIBS="-lk5crypto $LIBS" 22100LIBS="-lk5crypto $LIBS"
12324cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22101cat >conftest.$ac_ext <<_ACEOF
22102/* confdefs.h. */
22103_ACEOF
22104cat confdefs.h >>conftest.$ac_ext
22105cat >>conftest.$ac_ext <<_ACEOF
12325/* end confdefs.h. */ 22106/* end confdefs.h. */
12326 22107
12327/* Override any GCC internal prototype to avoid an error. 22108/* Override any GCC internal prototype to avoid an error.
@@ -12339,18 +22120,43 @@ return mit_des_cbc_encrypt ();
12339 return 0; 22120 return 0;
12340} 22121}
12341_ACEOF 22122_ACEOF
12342if ac_fn_c_try_link "$LINENO"; then : 22123rm -f conftest.$ac_objext conftest$ac_exeext
22124if { (ac_try="$ac_link"
22125case "(($ac_try" in
22126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22127 *) ac_try_echo=$ac_try;;
22128esac
22129eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22130$as_echo "$ac_try_echo") >&5
22131 (eval "$ac_link") 2>conftest.er1
22132 ac_status=$?
22133 grep -v '^ *+' conftest.er1 >conftest.err
22134 rm -f conftest.er1
22135 cat conftest.err >&5
22136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137 (exit $ac_status); } && {
22138 test -z "$ac_c_werror_flag" ||
22139 test ! -s conftest.err
22140 } && test -s conftest$ac_exeext && {
22141 test "$cross_compiling" = yes ||
22142 $as_test_x conftest$ac_exeext
22143 }; then
12343 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes 22144 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
12344else 22145else
12345 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no 22146 $as_echo "$as_me: failed program was:" >&5
22147sed 's/^/| /' conftest.$ac_ext >&5
22148
22149 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
12346fi 22150fi
12347rm -f core conftest.err conftest.$ac_objext \ 22151
12348 conftest$ac_exeext conftest.$ac_ext 22152rm -rf conftest.dSYM
22153rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22154 conftest$ac_exeext conftest.$ac_ext
12349LIBS=$ac_check_lib_save_LIBS 22155LIBS=$ac_check_lib_save_LIBS
12350fi 22156fi
12351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 22157{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12352$as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; } 22158$as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
12353if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then : 22159if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
12354 have_k5crypto=yes 22160 have_k5crypto=yes
12355else 22161else
12356 have_k5crypto=no 22162 have_k5crypto=no
@@ -12360,17 +22166,23 @@ fi
12360 CRYPTOLIB=-lk5crypto 22166 CRYPTOLIB=-lk5crypto
12361 LIBS="$CRYPTOLIB $LIBS" 22167 LIBS="$CRYPTOLIB $LIBS"
12362 22168
12363$as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h 22169cat >>confdefs.h <<\_ACEOF
22170#define HAVE_LIBK5CRYPTO 1
22171_ACEOF
12364 22172
12365 fi 22173 fi
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5 22174 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
12367$as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; } 22175$as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12368if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then : 22176if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
12369 $as_echo_n "(cached) " >&6 22177 $as_echo_n "(cached) " >&6
12370else 22178else
12371 ac_check_lib_save_LIBS=$LIBS 22179 ac_check_lib_save_LIBS=$LIBS
12372LIBS="-lkrb5 $LIBS" 22180LIBS="-lkrb5 $LIBS"
12373cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22181cat >conftest.$ac_ext <<_ACEOF
22182/* confdefs.h. */
22183_ACEOF
22184cat confdefs.h >>conftest.$ac_ext
22185cat >>conftest.$ac_ext <<_ACEOF
12374/* end confdefs.h. */ 22186/* end confdefs.h. */
12375 22187
12376/* Override any GCC internal prototype to avoid an error. 22188/* Override any GCC internal prototype to avoid an error.
@@ -12388,18 +22200,43 @@ return krb5_init_context ();
12388 return 0; 22200 return 0;
12389} 22201}
12390_ACEOF 22202_ACEOF
12391if ac_fn_c_try_link "$LINENO"; then : 22203rm -f conftest.$ac_objext conftest$ac_exeext
22204if { (ac_try="$ac_link"
22205case "(($ac_try" in
22206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22207 *) ac_try_echo=$ac_try;;
22208esac
22209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22210$as_echo "$ac_try_echo") >&5
22211 (eval "$ac_link") 2>conftest.er1
22212 ac_status=$?
22213 grep -v '^ *+' conftest.er1 >conftest.err
22214 rm -f conftest.er1
22215 cat conftest.err >&5
22216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217 (exit $ac_status); } && {
22218 test -z "$ac_c_werror_flag" ||
22219 test ! -s conftest.err
22220 } && test -s conftest$ac_exeext && {
22221 test "$cross_compiling" = yes ||
22222 $as_test_x conftest$ac_exeext
22223 }; then
12392 ac_cv_lib_krb5_krb5_init_context=yes 22224 ac_cv_lib_krb5_krb5_init_context=yes
12393else 22225else
12394 ac_cv_lib_krb5_krb5_init_context=no 22226 $as_echo "$as_me: failed program was:" >&5
22227sed 's/^/| /' conftest.$ac_ext >&5
22228
22229 ac_cv_lib_krb5_krb5_init_context=no
12395fi 22230fi
12396rm -f core conftest.err conftest.$ac_objext \ 22231
12397 conftest$ac_exeext conftest.$ac_ext 22232rm -rf conftest.dSYM
22233rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22234 conftest$ac_exeext conftest.$ac_ext
12398LIBS=$ac_check_lib_save_LIBS 22235LIBS=$ac_check_lib_save_LIBS
12399fi 22236fi
12400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5 22237{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12401$as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; } 22238$as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12402if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then : 22239if test $ac_cv_lib_krb5_krb5_init_context = yes; then
12403 have_krb5=yes 22240 have_krb5=yes
12404else 22241else
12405 have_krb5=no 22242 have_krb5=no
@@ -12409,18 +22246,24 @@ fi
12409 KRB5LIB=-lkrb5 22246 KRB5LIB=-lkrb5
12410 LIBS="$KRB5LIB $LIBS" 22247 LIBS="$KRB5LIB $LIBS"
12411 22248
12412$as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h 22249cat >>confdefs.h <<\_ACEOF
22250#define HAVE_LIBKRB5 1
22251_ACEOF
12413 22252
12414 fi 22253 fi
12415 if test "${with_kerberos5}" = no; then 22254 if test "${with_kerberos5}" = no; then
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5 22255 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
12417$as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; } 22256$as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
12418if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then : 22257if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
12419 $as_echo_n "(cached) " >&6 22258 $as_echo_n "(cached) " >&6
12420else 22259else
12421 ac_check_lib_save_LIBS=$LIBS 22260 ac_check_lib_save_LIBS=$LIBS
12422LIBS="-ldes425 $LIBS" 22261LIBS="-ldes425 $LIBS"
12423cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22262cat >conftest.$ac_ext <<_ACEOF
22263/* confdefs.h. */
22264_ACEOF
22265cat confdefs.h >>conftest.$ac_ext
22266cat >>conftest.$ac_ext <<_ACEOF
12424/* end confdefs.h. */ 22267/* end confdefs.h. */
12425 22268
12426/* Override any GCC internal prototype to avoid an error. 22269/* Override any GCC internal prototype to avoid an error.
@@ -12438,18 +22281,43 @@ return des_cbc_encrypt ();
12438 return 0; 22281 return 0;
12439} 22282}
12440_ACEOF 22283_ACEOF
12441if ac_fn_c_try_link "$LINENO"; then : 22284rm -f conftest.$ac_objext conftest$ac_exeext
22285if { (ac_try="$ac_link"
22286case "(($ac_try" in
22287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22288 *) ac_try_echo=$ac_try;;
22289esac
22290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22291$as_echo "$ac_try_echo") >&5
22292 (eval "$ac_link") 2>conftest.er1
22293 ac_status=$?
22294 grep -v '^ *+' conftest.er1 >conftest.err
22295 rm -f conftest.er1
22296 cat conftest.err >&5
22297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); } && {
22299 test -z "$ac_c_werror_flag" ||
22300 test ! -s conftest.err
22301 } && test -s conftest$ac_exeext && {
22302 test "$cross_compiling" = yes ||
22303 $as_test_x conftest$ac_exeext
22304 }; then
12442 ac_cv_lib_des425_des_cbc_encrypt=yes 22305 ac_cv_lib_des425_des_cbc_encrypt=yes
12443else 22306else
12444 ac_cv_lib_des425_des_cbc_encrypt=no 22307 $as_echo "$as_me: failed program was:" >&5
22308sed 's/^/| /' conftest.$ac_ext >&5
22309
22310 ac_cv_lib_des425_des_cbc_encrypt=no
12445fi 22311fi
12446rm -f core conftest.err conftest.$ac_objext \ 22312
12447 conftest$ac_exeext conftest.$ac_ext 22313rm -rf conftest.dSYM
22314rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22315 conftest$ac_exeext conftest.$ac_ext
12448LIBS=$ac_check_lib_save_LIBS 22316LIBS=$ac_check_lib_save_LIBS
12449fi 22317fi
12450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 22318{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
12451$as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; } 22319$as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
12452if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then : 22320if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
12453 have_des425=yes 22321 have_des425=yes
12454else 22322else
12455 have_des425=no 22323 have_des425=no
@@ -12459,17 +22327,23 @@ fi
12459 DESLIB=-ldes425 22327 DESLIB=-ldes425
12460 LIBS="$DESLIB $LIBS" 22328 LIBS="$DESLIB $LIBS"
12461 22329
12462$as_echo "#define HAVE_LIBDES425 1" >>confdefs.h 22330cat >>confdefs.h <<\_ACEOF
22331#define HAVE_LIBDES425 1
22332_ACEOF
12463 22333
12464 else 22334 else
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5 22335 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
12466$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } 22336$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
12467if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then : 22337if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
12468 $as_echo_n "(cached) " >&6 22338 $as_echo_n "(cached) " >&6
12469else 22339else
12470 ac_check_lib_save_LIBS=$LIBS 22340 ac_check_lib_save_LIBS=$LIBS
12471LIBS="-ldes $LIBS" 22341LIBS="-ldes $LIBS"
12472cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22342cat >conftest.$ac_ext <<_ACEOF
22343/* confdefs.h. */
22344_ACEOF
22345cat confdefs.h >>conftest.$ac_ext
22346cat >>conftest.$ac_ext <<_ACEOF
12473/* end confdefs.h. */ 22347/* end confdefs.h. */
12474 22348
12475/* Override any GCC internal prototype to avoid an error. 22349/* Override any GCC internal prototype to avoid an error.
@@ -12487,18 +22361,43 @@ return des_cbc_encrypt ();
12487 return 0; 22361 return 0;
12488} 22362}
12489_ACEOF 22363_ACEOF
12490if ac_fn_c_try_link "$LINENO"; then : 22364rm -f conftest.$ac_objext conftest$ac_exeext
22365if { (ac_try="$ac_link"
22366case "(($ac_try" in
22367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22368 *) ac_try_echo=$ac_try;;
22369esac
22370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22371$as_echo "$ac_try_echo") >&5
22372 (eval "$ac_link") 2>conftest.er1
22373 ac_status=$?
22374 grep -v '^ *+' conftest.er1 >conftest.err
22375 rm -f conftest.er1
22376 cat conftest.err >&5
22377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378 (exit $ac_status); } && {
22379 test -z "$ac_c_werror_flag" ||
22380 test ! -s conftest.err
22381 } && test -s conftest$ac_exeext && {
22382 test "$cross_compiling" = yes ||
22383 $as_test_x conftest$ac_exeext
22384 }; then
12491 ac_cv_lib_des_des_cbc_encrypt=yes 22385 ac_cv_lib_des_des_cbc_encrypt=yes
12492else 22386else
12493 ac_cv_lib_des_des_cbc_encrypt=no 22387 $as_echo "$as_me: failed program was:" >&5
22388sed 's/^/| /' conftest.$ac_ext >&5
22389
22390 ac_cv_lib_des_des_cbc_encrypt=no
12494fi 22391fi
12495rm -f core conftest.err conftest.$ac_objext \ 22392
12496 conftest$ac_exeext conftest.$ac_ext 22393rm -rf conftest.dSYM
22394rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22395 conftest$ac_exeext conftest.$ac_ext
12497LIBS=$ac_check_lib_save_LIBS 22396LIBS=$ac_check_lib_save_LIBS
12498fi 22397fi
12499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 22398{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
12500$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } 22399$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
12501if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then : 22400if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
12502 have_des=yes 22401 have_des=yes
12503else 22402else
12504 have_des=no 22403 have_des=no
@@ -12508,18 +22407,24 @@ fi
12508 DESLIB=-ldes 22407 DESLIB=-ldes
12509 LIBS="$DESLIB $LIBS" 22408 LIBS="$DESLIB $LIBS"
12510 22409
12511$as_echo "#define HAVE_LIBDES 1" >>confdefs.h 22410cat >>confdefs.h <<\_ACEOF
22411#define HAVE_LIBDES 1
22412_ACEOF
12512 22413
12513 fi 22414 fi
12514 fi 22415 fi
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5 22416 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
12516$as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; } 22417$as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
12517if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then : 22418if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
12518 $as_echo_n "(cached) " >&6 22419 $as_echo_n "(cached) " >&6
12519else 22420else
12520 ac_check_lib_save_LIBS=$LIBS 22421 ac_check_lib_save_LIBS=$LIBS
12521LIBS="-lkrb4 $LIBS" 22422LIBS="-lkrb4 $LIBS"
12522cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22423cat >conftest.$ac_ext <<_ACEOF
22424/* confdefs.h. */
22425_ACEOF
22426cat confdefs.h >>conftest.$ac_ext
22427cat >>conftest.$ac_ext <<_ACEOF
12523/* end confdefs.h. */ 22428/* end confdefs.h. */
12524 22429
12525/* Override any GCC internal prototype to avoid an error. 22430/* Override any GCC internal prototype to avoid an error.
@@ -12537,18 +22442,43 @@ return krb_get_cred ();
12537 return 0; 22442 return 0;
12538} 22443}
12539_ACEOF 22444_ACEOF
12540if ac_fn_c_try_link "$LINENO"; then : 22445rm -f conftest.$ac_objext conftest$ac_exeext
22446if { (ac_try="$ac_link"
22447case "(($ac_try" in
22448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22449 *) ac_try_echo=$ac_try;;
22450esac
22451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22452$as_echo "$ac_try_echo") >&5
22453 (eval "$ac_link") 2>conftest.er1
22454 ac_status=$?
22455 grep -v '^ *+' conftest.er1 >conftest.err
22456 rm -f conftest.er1
22457 cat conftest.err >&5
22458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459 (exit $ac_status); } && {
22460 test -z "$ac_c_werror_flag" ||
22461 test ! -s conftest.err
22462 } && test -s conftest$ac_exeext && {
22463 test "$cross_compiling" = yes ||
22464 $as_test_x conftest$ac_exeext
22465 }; then
12541 ac_cv_lib_krb4_krb_get_cred=yes 22466 ac_cv_lib_krb4_krb_get_cred=yes
12542else 22467else
12543 ac_cv_lib_krb4_krb_get_cred=no 22468 $as_echo "$as_me: failed program was:" >&5
22469sed 's/^/| /' conftest.$ac_ext >&5
22470
22471 ac_cv_lib_krb4_krb_get_cred=no
12544fi 22472fi
12545rm -f core conftest.err conftest.$ac_objext \ 22473
12546 conftest$ac_exeext conftest.$ac_ext 22474rm -rf conftest.dSYM
22475rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22476 conftest$ac_exeext conftest.$ac_ext
12547LIBS=$ac_check_lib_save_LIBS 22477LIBS=$ac_check_lib_save_LIBS
12548fi 22478fi
12549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5 22479{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
12550$as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; } 22480$as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
12551if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then : 22481if test $ac_cv_lib_krb4_krb_get_cred = yes; then
12552 have_krb4=yes 22482 have_krb4=yes
12553else 22483else
12554 have_krb4=no 22484 have_krb4=no
@@ -12558,17 +22488,23 @@ fi
12558 KRB4LIB=-lkrb4 22488 KRB4LIB=-lkrb4
12559 LIBS="$KRB4LIB $LIBS" 22489 LIBS="$KRB4LIB $LIBS"
12560 22490
12561$as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h 22491cat >>confdefs.h <<\_ACEOF
22492#define HAVE_LIBKRB4 1
22493_ACEOF
12562 22494
12563 else 22495 else
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5 22496 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
12565$as_echo_n "checking for krb_get_cred in -lkrb... " >&6; } 22497$as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
12566if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then : 22498if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
12567 $as_echo_n "(cached) " >&6 22499 $as_echo_n "(cached) " >&6
12568else 22500else
12569 ac_check_lib_save_LIBS=$LIBS 22501 ac_check_lib_save_LIBS=$LIBS
12570LIBS="-lkrb $LIBS" 22502LIBS="-lkrb $LIBS"
12571cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22503cat >conftest.$ac_ext <<_ACEOF
22504/* confdefs.h. */
22505_ACEOF
22506cat confdefs.h >>conftest.$ac_ext
22507cat >>conftest.$ac_ext <<_ACEOF
12572/* end confdefs.h. */ 22508/* end confdefs.h. */
12573 22509
12574/* Override any GCC internal prototype to avoid an error. 22510/* Override any GCC internal prototype to avoid an error.
@@ -12586,18 +22522,43 @@ return krb_get_cred ();
12586 return 0; 22522 return 0;
12587} 22523}
12588_ACEOF 22524_ACEOF
12589if ac_fn_c_try_link "$LINENO"; then : 22525rm -f conftest.$ac_objext conftest$ac_exeext
22526if { (ac_try="$ac_link"
22527case "(($ac_try" in
22528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22529 *) ac_try_echo=$ac_try;;
22530esac
22531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22532$as_echo "$ac_try_echo") >&5
22533 (eval "$ac_link") 2>conftest.er1
22534 ac_status=$?
22535 grep -v '^ *+' conftest.er1 >conftest.err
22536 rm -f conftest.er1
22537 cat conftest.err >&5
22538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); } && {
22540 test -z "$ac_c_werror_flag" ||
22541 test ! -s conftest.err
22542 } && test -s conftest$ac_exeext && {
22543 test "$cross_compiling" = yes ||
22544 $as_test_x conftest$ac_exeext
22545 }; then
12590 ac_cv_lib_krb_krb_get_cred=yes 22546 ac_cv_lib_krb_krb_get_cred=yes
12591else 22547else
12592 ac_cv_lib_krb_krb_get_cred=no 22548 $as_echo "$as_me: failed program was:" >&5
22549sed 's/^/| /' conftest.$ac_ext >&5
22550
22551 ac_cv_lib_krb_krb_get_cred=no
12593fi 22552fi
12594rm -f core conftest.err conftest.$ac_objext \ 22553
12595 conftest$ac_exeext conftest.$ac_ext 22554rm -rf conftest.dSYM
22555rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22556 conftest$ac_exeext conftest.$ac_ext
12596LIBS=$ac_check_lib_save_LIBS 22557LIBS=$ac_check_lib_save_LIBS
12597fi 22558fi
12598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5 22559{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
12599$as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; } 22560$as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
12600if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then : 22561if test $ac_cv_lib_krb_krb_get_cred = yes; then
12601 have_krb=yes 22562 have_krb=yes
12602else 22563else
12603 have_krb=no 22564 have_krb=no
@@ -12607,23 +22568,253 @@ fi
12607 KRB4LIB=-lkrb 22568 KRB4LIB=-lkrb
12608 LIBS="$KRB4LIB $LIBS" 22569 LIBS="$KRB4LIB $LIBS"
12609 22570
12610$as_echo "#define HAVE_LIBKRB 1" >>confdefs.h 22571cat >>confdefs.h <<\_ACEOF
22572#define HAVE_LIBKRB 1
22573_ACEOF
12611 22574
12612 fi 22575 fi
12613 fi 22576 fi
12614 fi 22577 fi
12615 22578
12616 if test "${with_kerberos5}" != no; then 22579 if test "${with_kerberos5}" != no; then
12617 for ac_header in krb5.h 22580
12618do : 22581for ac_header in krb5.h
12619 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default" 22582do
12620if test "x$ac_cv_header_krb5_h" = x""yes; then : 22583as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22584if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22585 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22586$as_echo_n "checking for $ac_header... " >&6; }
22587if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22588 $as_echo_n "(cached) " >&6
22589fi
22590ac_res=`eval 'as_val=${'$as_ac_Header'}
22591 $as_echo "$as_val"'`
22592 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22593$as_echo "$ac_res" >&6; }
22594else
22595 # Is the header compilable?
22596{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22597$as_echo_n "checking $ac_header usability... " >&6; }
22598cat >conftest.$ac_ext <<_ACEOF
22599/* confdefs.h. */
22600_ACEOF
22601cat confdefs.h >>conftest.$ac_ext
22602cat >>conftest.$ac_ext <<_ACEOF
22603/* end confdefs.h. */
22604$ac_includes_default
22605#include <$ac_header>
22606_ACEOF
22607rm -f conftest.$ac_objext
22608if { (ac_try="$ac_compile"
22609case "(($ac_try" in
22610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22611 *) ac_try_echo=$ac_try;;
22612esac
22613eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22614$as_echo "$ac_try_echo") >&5
22615 (eval "$ac_compile") 2>conftest.er1
22616 ac_status=$?
22617 grep -v '^ *+' conftest.er1 >conftest.err
22618 rm -f conftest.er1
22619 cat conftest.err >&5
22620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621 (exit $ac_status); } && {
22622 test -z "$ac_c_werror_flag" ||
22623 test ! -s conftest.err
22624 } && test -s conftest.$ac_objext; then
22625 ac_header_compiler=yes
22626else
22627 $as_echo "$as_me: failed program was:" >&5
22628sed 's/^/| /' conftest.$ac_ext >&5
22629
22630 ac_header_compiler=no
22631fi
22632
22633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22634{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22635$as_echo "$ac_header_compiler" >&6; }
22636
22637# Is the header present?
22638{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22639$as_echo_n "checking $ac_header presence... " >&6; }
22640cat >conftest.$ac_ext <<_ACEOF
22641/* confdefs.h. */
22642_ACEOF
22643cat confdefs.h >>conftest.$ac_ext
22644cat >>conftest.$ac_ext <<_ACEOF
22645/* end confdefs.h. */
22646#include <$ac_header>
22647_ACEOF
22648if { (ac_try="$ac_cpp conftest.$ac_ext"
22649case "(($ac_try" in
22650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22651 *) ac_try_echo=$ac_try;;
22652esac
22653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22654$as_echo "$ac_try_echo") >&5
22655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22656 ac_status=$?
22657 grep -v '^ *+' conftest.er1 >conftest.err
22658 rm -f conftest.er1
22659 cat conftest.err >&5
22660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661 (exit $ac_status); } >/dev/null && {
22662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22663 test ! -s conftest.err
22664 }; then
22665 ac_header_preproc=yes
22666else
22667 $as_echo "$as_me: failed program was:" >&5
22668sed 's/^/| /' conftest.$ac_ext >&5
22669
22670 ac_header_preproc=no
22671fi
22672
22673rm -f conftest.err conftest.$ac_ext
22674{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22675$as_echo "$ac_header_preproc" >&6; }
22676
22677# So? What about this header?
22678case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22679 yes:no: )
22680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22681$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22683$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22684 ac_header_preproc=yes
22685 ;;
22686 no:yes:* )
22687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22688$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22690$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22692$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22694$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22696$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22698$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22699
22700 ;;
22701esac
22702{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22703$as_echo_n "checking for $ac_header... " >&6; }
22704if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22705 $as_echo_n "(cached) " >&6
22706else
22707 eval "$as_ac_Header=\$ac_header_preproc"
22708fi
22709ac_res=`eval 'as_val=${'$as_ac_Header'}
22710 $as_echo "$as_val"'`
22711 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22712$as_echo "$ac_res" >&6; }
22713
22714fi
22715if test `eval 'as_val=${'$as_ac_Header'}
22716 $as_echo "$as_val"'` = yes; then
12621 cat >>confdefs.h <<_ACEOF 22717 cat >>confdefs.h <<_ACEOF
12622#define HAVE_KRB5_H 1 22718#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12623_ACEOF 22719_ACEOF
12624 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h> 22720 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
12625" 22721$as_echo_n "checking for krb5_error.text... " >&6; }
12626if test "x$ac_cv_member_krb5_error_text" = x""yes; then : 22722if test "${ac_cv_member_krb5_error_text+set}" = set; then
22723 $as_echo_n "(cached) " >&6
22724else
22725 cat >conftest.$ac_ext <<_ACEOF
22726/* confdefs.h. */
22727_ACEOF
22728cat confdefs.h >>conftest.$ac_ext
22729cat >>conftest.$ac_ext <<_ACEOF
22730/* end confdefs.h. */
22731#include <krb5.h>
22732
22733int
22734main ()
22735{
22736static krb5_error ac_aggr;
22737if (ac_aggr.text)
22738return 0;
22739 ;
22740 return 0;
22741}
22742_ACEOF
22743rm -f conftest.$ac_objext
22744if { (ac_try="$ac_compile"
22745case "(($ac_try" in
22746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22747 *) ac_try_echo=$ac_try;;
22748esac
22749eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22750$as_echo "$ac_try_echo") >&5
22751 (eval "$ac_compile") 2>conftest.er1
22752 ac_status=$?
22753 grep -v '^ *+' conftest.er1 >conftest.err
22754 rm -f conftest.er1
22755 cat conftest.err >&5
22756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757 (exit $ac_status); } && {
22758 test -z "$ac_c_werror_flag" ||
22759 test ! -s conftest.err
22760 } && test -s conftest.$ac_objext; then
22761 ac_cv_member_krb5_error_text=yes
22762else
22763 $as_echo "$as_me: failed program was:" >&5
22764sed 's/^/| /' conftest.$ac_ext >&5
22765
22766 cat >conftest.$ac_ext <<_ACEOF
22767/* confdefs.h. */
22768_ACEOF
22769cat confdefs.h >>conftest.$ac_ext
22770cat >>conftest.$ac_ext <<_ACEOF
22771/* end confdefs.h. */
22772#include <krb5.h>
22773
22774int
22775main ()
22776{
22777static krb5_error ac_aggr;
22778if (sizeof ac_aggr.text)
22779return 0;
22780 ;
22781 return 0;
22782}
22783_ACEOF
22784rm -f conftest.$ac_objext
22785if { (ac_try="$ac_compile"
22786case "(($ac_try" in
22787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22788 *) ac_try_echo=$ac_try;;
22789esac
22790eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22791$as_echo "$ac_try_echo") >&5
22792 (eval "$ac_compile") 2>conftest.er1
22793 ac_status=$?
22794 grep -v '^ *+' conftest.er1 >conftest.err
22795 rm -f conftest.er1
22796 cat conftest.err >&5
22797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798 (exit $ac_status); } && {
22799 test -z "$ac_c_werror_flag" ||
22800 test ! -s conftest.err
22801 } && test -s conftest.$ac_objext; then
22802 ac_cv_member_krb5_error_text=yes
22803else
22804 $as_echo "$as_me: failed program was:" >&5
22805sed 's/^/| /' conftest.$ac_ext >&5
22806
22807 ac_cv_member_krb5_error_text=no
22808fi
22809
22810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22811fi
22812
22813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22814fi
22815{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22816$as_echo "$ac_cv_member_krb5_error_text" >&6; }
22817if test $ac_cv_member_krb5_error_text = yes; then
12627 22818
12628cat >>confdefs.h <<_ACEOF 22819cat >>confdefs.h <<_ACEOF
12629#define HAVE_KRB5_ERROR_TEXT 1 22820#define HAVE_KRB5_ERROR_TEXT 1
@@ -12631,9 +22822,104 @@ _ACEOF
12631 22822
12632 22823
12633fi 22824fi
12634ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h> 22825{ $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
12635" 22826$as_echo_n "checking for krb5_error.e_text... " >&6; }
12636if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then : 22827if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22828 $as_echo_n "(cached) " >&6
22829else
22830 cat >conftest.$ac_ext <<_ACEOF
22831/* confdefs.h. */
22832_ACEOF
22833cat confdefs.h >>conftest.$ac_ext
22834cat >>conftest.$ac_ext <<_ACEOF
22835/* end confdefs.h. */
22836#include <krb5.h>
22837
22838int
22839main ()
22840{
22841static krb5_error ac_aggr;
22842if (ac_aggr.e_text)
22843return 0;
22844 ;
22845 return 0;
22846}
22847_ACEOF
22848rm -f conftest.$ac_objext
22849if { (ac_try="$ac_compile"
22850case "(($ac_try" in
22851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22852 *) ac_try_echo=$ac_try;;
22853esac
22854eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22855$as_echo "$ac_try_echo") >&5
22856 (eval "$ac_compile") 2>conftest.er1
22857 ac_status=$?
22858 grep -v '^ *+' conftest.er1 >conftest.err
22859 rm -f conftest.er1
22860 cat conftest.err >&5
22861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862 (exit $ac_status); } && {
22863 test -z "$ac_c_werror_flag" ||
22864 test ! -s conftest.err
22865 } && test -s conftest.$ac_objext; then
22866 ac_cv_member_krb5_error_e_text=yes
22867else
22868 $as_echo "$as_me: failed program was:" >&5
22869sed 's/^/| /' conftest.$ac_ext >&5
22870
22871 cat >conftest.$ac_ext <<_ACEOF
22872/* confdefs.h. */
22873_ACEOF
22874cat confdefs.h >>conftest.$ac_ext
22875cat >>conftest.$ac_ext <<_ACEOF
22876/* end confdefs.h. */
22877#include <krb5.h>
22878
22879int
22880main ()
22881{
22882static krb5_error ac_aggr;
22883if (sizeof ac_aggr.e_text)
22884return 0;
22885 ;
22886 return 0;
22887}
22888_ACEOF
22889rm -f conftest.$ac_objext
22890if { (ac_try="$ac_compile"
22891case "(($ac_try" in
22892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22893 *) ac_try_echo=$ac_try;;
22894esac
22895eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22896$as_echo "$ac_try_echo") >&5
22897 (eval "$ac_compile") 2>conftest.er1
22898 ac_status=$?
22899 grep -v '^ *+' conftest.er1 >conftest.err
22900 rm -f conftest.er1
22901 cat conftest.err >&5
22902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903 (exit $ac_status); } && {
22904 test -z "$ac_c_werror_flag" ||
22905 test ! -s conftest.err
22906 } && test -s conftest.$ac_objext; then
22907 ac_cv_member_krb5_error_e_text=yes
22908else
22909 $as_echo "$as_me: failed program was:" >&5
22910sed 's/^/| /' conftest.$ac_ext >&5
22911
22912 ac_cv_member_krb5_error_e_text=no
22913fi
22914
22915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22916fi
22917
22918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22919fi
22920{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
22921$as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22922if test $ac_cv_member_krb5_error_e_text = yes; then
12637 22923
12638cat >>confdefs.h <<_ACEOF 22924cat >>confdefs.h <<_ACEOF
12639#define HAVE_KRB5_ERROR_E_TEXT 1 22925#define HAVE_KRB5_ERROR_E_TEXT 1
@@ -12647,30 +22933,429 @@ fi
12647done 22933done
12648 22934
12649 else 22935 else
12650 for ac_header in des.h 22936
12651do : 22937for ac_header in des.h
12652 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default" 22938do
12653if test "x$ac_cv_header_des_h" = x""yes; then : 22939as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22940if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22941 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22942$as_echo_n "checking for $ac_header... " >&6; }
22943if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22944 $as_echo_n "(cached) " >&6
22945fi
22946ac_res=`eval 'as_val=${'$as_ac_Header'}
22947 $as_echo "$as_val"'`
22948 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22949$as_echo "$ac_res" >&6; }
22950else
22951 # Is the header compilable?
22952{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22953$as_echo_n "checking $ac_header usability... " >&6; }
22954cat >conftest.$ac_ext <<_ACEOF
22955/* confdefs.h. */
22956_ACEOF
22957cat confdefs.h >>conftest.$ac_ext
22958cat >>conftest.$ac_ext <<_ACEOF
22959/* end confdefs.h. */
22960$ac_includes_default
22961#include <$ac_header>
22962_ACEOF
22963rm -f conftest.$ac_objext
22964if { (ac_try="$ac_compile"
22965case "(($ac_try" in
22966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22967 *) ac_try_echo=$ac_try;;
22968esac
22969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22970$as_echo "$ac_try_echo") >&5
22971 (eval "$ac_compile") 2>conftest.er1
22972 ac_status=$?
22973 grep -v '^ *+' conftest.er1 >conftest.err
22974 rm -f conftest.er1
22975 cat conftest.err >&5
22976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); } && {
22978 test -z "$ac_c_werror_flag" ||
22979 test ! -s conftest.err
22980 } && test -s conftest.$ac_objext; then
22981 ac_header_compiler=yes
22982else
22983 $as_echo "$as_me: failed program was:" >&5
22984sed 's/^/| /' conftest.$ac_ext >&5
22985
22986 ac_header_compiler=no
22987fi
22988
22989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22990{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22991$as_echo "$ac_header_compiler" >&6; }
22992
22993# Is the header present?
22994{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22995$as_echo_n "checking $ac_header presence... " >&6; }
22996cat >conftest.$ac_ext <<_ACEOF
22997/* confdefs.h. */
22998_ACEOF
22999cat confdefs.h >>conftest.$ac_ext
23000cat >>conftest.$ac_ext <<_ACEOF
23001/* end confdefs.h. */
23002#include <$ac_header>
23003_ACEOF
23004if { (ac_try="$ac_cpp conftest.$ac_ext"
23005case "(($ac_try" in
23006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23007 *) ac_try_echo=$ac_try;;
23008esac
23009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23010$as_echo "$ac_try_echo") >&5
23011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23012 ac_status=$?
23013 grep -v '^ *+' conftest.er1 >conftest.err
23014 rm -f conftest.er1
23015 cat conftest.err >&5
23016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 (exit $ac_status); } >/dev/null && {
23018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23019 test ! -s conftest.err
23020 }; then
23021 ac_header_preproc=yes
23022else
23023 $as_echo "$as_me: failed program was:" >&5
23024sed 's/^/| /' conftest.$ac_ext >&5
23025
23026 ac_header_preproc=no
23027fi
23028
23029rm -f conftest.err conftest.$ac_ext
23030{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23031$as_echo "$ac_header_preproc" >&6; }
23032
23033# So? What about this header?
23034case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23035 yes:no: )
23036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23037$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23039$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23040 ac_header_preproc=yes
23041 ;;
23042 no:yes:* )
23043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23044$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23045 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23046$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23047 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23048$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23049 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23050$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23052$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23054$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23055
23056 ;;
23057esac
23058{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23059$as_echo_n "checking for $ac_header... " >&6; }
23060if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23061 $as_echo_n "(cached) " >&6
23062else
23063 eval "$as_ac_Header=\$ac_header_preproc"
23064fi
23065ac_res=`eval 'as_val=${'$as_ac_Header'}
23066 $as_echo "$as_val"'`
23067 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23068$as_echo "$ac_res" >&6; }
23069
23070fi
23071if test `eval 'as_val=${'$as_ac_Header'}
23072 $as_echo "$as_val"'` = yes; then
12654 cat >>confdefs.h <<_ACEOF 23073 cat >>confdefs.h <<_ACEOF
12655#define HAVE_DES_H 1 23074#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23075_ACEOF
23076
23077else
23078
23079for ac_header in kerberosIV/des.h
23080do
23081as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23082if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23083 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23084$as_echo_n "checking for $ac_header... " >&6; }
23085if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23086 $as_echo_n "(cached) " >&6
23087fi
23088ac_res=`eval 'as_val=${'$as_ac_Header'}
23089 $as_echo "$as_val"'`
23090 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23091$as_echo "$ac_res" >&6; }
23092else
23093 # Is the header compilable?
23094{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23095$as_echo_n "checking $ac_header usability... " >&6; }
23096cat >conftest.$ac_ext <<_ACEOF
23097/* confdefs.h. */
23098_ACEOF
23099cat confdefs.h >>conftest.$ac_ext
23100cat >>conftest.$ac_ext <<_ACEOF
23101/* end confdefs.h. */
23102$ac_includes_default
23103#include <$ac_header>
23104_ACEOF
23105rm -f conftest.$ac_objext
23106if { (ac_try="$ac_compile"
23107case "(($ac_try" in
23108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23109 *) ac_try_echo=$ac_try;;
23110esac
23111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23112$as_echo "$ac_try_echo") >&5
23113 (eval "$ac_compile") 2>conftest.er1
23114 ac_status=$?
23115 grep -v '^ *+' conftest.er1 >conftest.err
23116 rm -f conftest.er1
23117 cat conftest.err >&5
23118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23119 (exit $ac_status); } && {
23120 test -z "$ac_c_werror_flag" ||
23121 test ! -s conftest.err
23122 } && test -s conftest.$ac_objext; then
23123 ac_header_compiler=yes
23124else
23125 $as_echo "$as_me: failed program was:" >&5
23126sed 's/^/| /' conftest.$ac_ext >&5
23127
23128 ac_header_compiler=no
23129fi
23130
23131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23132{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23133$as_echo "$ac_header_compiler" >&6; }
23134
23135# Is the header present?
23136{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23137$as_echo_n "checking $ac_header presence... " >&6; }
23138cat >conftest.$ac_ext <<_ACEOF
23139/* confdefs.h. */
12656_ACEOF 23140_ACEOF
23141cat confdefs.h >>conftest.$ac_ext
23142cat >>conftest.$ac_ext <<_ACEOF
23143/* end confdefs.h. */
23144#include <$ac_header>
23145_ACEOF
23146if { (ac_try="$ac_cpp conftest.$ac_ext"
23147case "(($ac_try" in
23148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23149 *) ac_try_echo=$ac_try;;
23150esac
23151eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23152$as_echo "$ac_try_echo") >&5
23153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23154 ac_status=$?
23155 grep -v '^ *+' conftest.er1 >conftest.err
23156 rm -f conftest.er1
23157 cat conftest.err >&5
23158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159 (exit $ac_status); } >/dev/null && {
23160 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23161 test ! -s conftest.err
23162 }; then
23163 ac_header_preproc=yes
23164else
23165 $as_echo "$as_me: failed program was:" >&5
23166sed 's/^/| /' conftest.$ac_ext >&5
23167
23168 ac_header_preproc=no
23169fi
12657 23170
23171rm -f conftest.err conftest.$ac_ext
23172{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23173$as_echo "$ac_header_preproc" >&6; }
23174
23175# So? What about this header?
23176case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23177 yes:no: )
23178 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23179$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23180 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23181$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23182 ac_header_preproc=yes
23183 ;;
23184 no:yes:* )
23185 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23186$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23187 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23188$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23189 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23190$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23191 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23192$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23194$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23196$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23197
23198 ;;
23199esac
23200{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23201$as_echo_n "checking for $ac_header... " >&6; }
23202if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23203 $as_echo_n "(cached) " >&6
12658else 23204else
12659 for ac_header in kerberosIV/des.h 23205 eval "$as_ac_Header=\$ac_header_preproc"
12660do : 23206fi
12661 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default" 23207ac_res=`eval 'as_val=${'$as_ac_Header'}
12662if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then : 23208 $as_echo "$as_val"'`
23209 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23210$as_echo "$ac_res" >&6; }
23211
23212fi
23213if test `eval 'as_val=${'$as_ac_Header'}
23214 $as_echo "$as_val"'` = yes; then
12663 cat >>confdefs.h <<_ACEOF 23215 cat >>confdefs.h <<_ACEOF
12664#define HAVE_KERBEROSIV_DES_H 1 23216#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23217_ACEOF
23218
23219else
23220
23221for ac_header in kerberos/des.h
23222do
23223as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23224if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23225 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23226$as_echo_n "checking for $ac_header... " >&6; }
23227if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23228 $as_echo_n "(cached) " >&6
23229fi
23230ac_res=`eval 'as_val=${'$as_ac_Header'}
23231 $as_echo "$as_val"'`
23232 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23233$as_echo "$ac_res" >&6; }
23234else
23235 # Is the header compilable?
23236{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23237$as_echo_n "checking $ac_header usability... " >&6; }
23238cat >conftest.$ac_ext <<_ACEOF
23239/* confdefs.h. */
23240_ACEOF
23241cat confdefs.h >>conftest.$ac_ext
23242cat >>conftest.$ac_ext <<_ACEOF
23243/* end confdefs.h. */
23244$ac_includes_default
23245#include <$ac_header>
23246_ACEOF
23247rm -f conftest.$ac_objext
23248if { (ac_try="$ac_compile"
23249case "(($ac_try" in
23250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23251 *) ac_try_echo=$ac_try;;
23252esac
23253eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23254$as_echo "$ac_try_echo") >&5
23255 (eval "$ac_compile") 2>conftest.er1
23256 ac_status=$?
23257 grep -v '^ *+' conftest.er1 >conftest.err
23258 rm -f conftest.er1
23259 cat conftest.err >&5
23260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23261 (exit $ac_status); } && {
23262 test -z "$ac_c_werror_flag" ||
23263 test ! -s conftest.err
23264 } && test -s conftest.$ac_objext; then
23265 ac_header_compiler=yes
23266else
23267 $as_echo "$as_me: failed program was:" >&5
23268sed 's/^/| /' conftest.$ac_ext >&5
23269
23270 ac_header_compiler=no
23271fi
23272
23273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23274{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23275$as_echo "$ac_header_compiler" >&6; }
23276
23277# Is the header present?
23278{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23279$as_echo_n "checking $ac_header presence... " >&6; }
23280cat >conftest.$ac_ext <<_ACEOF
23281/* confdefs.h. */
12665_ACEOF 23282_ACEOF
23283cat confdefs.h >>conftest.$ac_ext
23284cat >>conftest.$ac_ext <<_ACEOF
23285/* end confdefs.h. */
23286#include <$ac_header>
23287_ACEOF
23288if { (ac_try="$ac_cpp conftest.$ac_ext"
23289case "(($ac_try" in
23290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23291 *) ac_try_echo=$ac_try;;
23292esac
23293eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23294$as_echo "$ac_try_echo") >&5
23295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23296 ac_status=$?
23297 grep -v '^ *+' conftest.er1 >conftest.err
23298 rm -f conftest.er1
23299 cat conftest.err >&5
23300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301 (exit $ac_status); } >/dev/null && {
23302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23303 test ! -s conftest.err
23304 }; then
23305 ac_header_preproc=yes
23306else
23307 $as_echo "$as_me: failed program was:" >&5
23308sed 's/^/| /' conftest.$ac_ext >&5
23309
23310 ac_header_preproc=no
23311fi
12666 23312
23313rm -f conftest.err conftest.$ac_ext
23314{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23315$as_echo "$ac_header_preproc" >&6; }
23316
23317# So? What about this header?
23318case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23319 yes:no: )
23320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23321$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23323$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23324 ac_header_preproc=yes
23325 ;;
23326 no:yes:* )
23327 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23328$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23330$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23332$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23334$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23336$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23338$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23339
23340 ;;
23341esac
23342{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23343$as_echo_n "checking for $ac_header... " >&6; }
23344if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23345 $as_echo_n "(cached) " >&6
12667else 23346else
12668 for ac_header in kerberos/des.h 23347 eval "$as_ac_Header=\$ac_header_preproc"
12669do : 23348fi
12670 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default" 23349ac_res=`eval 'as_val=${'$as_ac_Header'}
12671if test "x$ac_cv_header_kerberos_des_h" = x""yes; then : 23350 $as_echo "$as_val"'`
23351 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23352$as_echo "$ac_res" >&6; }
23353
23354fi
23355if test `eval 'as_val=${'$as_ac_Header'}
23356 $as_echo "$as_val"'` = yes; then
12672 cat >>confdefs.h <<_ACEOF 23357 cat >>confdefs.h <<_ACEOF
12673#define HAVE_KERBEROS_DES_H 1 23358#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12674_ACEOF 23359_ACEOF
12675 23360
12676fi 23361fi
@@ -12685,30 +23370,429 @@ fi
12685 23370
12686done 23371done
12687 23372
12688 for ac_header in krb.h 23373
12689do : 23374for ac_header in krb.h
12690 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default" 23375do
12691if test "x$ac_cv_header_krb_h" = x""yes; then : 23376as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23377if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23378 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23379$as_echo_n "checking for $ac_header... " >&6; }
23380if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23381 $as_echo_n "(cached) " >&6
23382fi
23383ac_res=`eval 'as_val=${'$as_ac_Header'}
23384 $as_echo "$as_val"'`
23385 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23386$as_echo "$ac_res" >&6; }
23387else
23388 # Is the header compilable?
23389{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23390$as_echo_n "checking $ac_header usability... " >&6; }
23391cat >conftest.$ac_ext <<_ACEOF
23392/* confdefs.h. */
23393_ACEOF
23394cat confdefs.h >>conftest.$ac_ext
23395cat >>conftest.$ac_ext <<_ACEOF
23396/* end confdefs.h. */
23397$ac_includes_default
23398#include <$ac_header>
23399_ACEOF
23400rm -f conftest.$ac_objext
23401if { (ac_try="$ac_compile"
23402case "(($ac_try" in
23403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23404 *) ac_try_echo=$ac_try;;
23405esac
23406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23407$as_echo "$ac_try_echo") >&5
23408 (eval "$ac_compile") 2>conftest.er1
23409 ac_status=$?
23410 grep -v '^ *+' conftest.er1 >conftest.err
23411 rm -f conftest.er1
23412 cat conftest.err >&5
23413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); } && {
23415 test -z "$ac_c_werror_flag" ||
23416 test ! -s conftest.err
23417 } && test -s conftest.$ac_objext; then
23418 ac_header_compiler=yes
23419else
23420 $as_echo "$as_me: failed program was:" >&5
23421sed 's/^/| /' conftest.$ac_ext >&5
23422
23423 ac_header_compiler=no
23424fi
23425
23426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23427{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23428$as_echo "$ac_header_compiler" >&6; }
23429
23430# Is the header present?
23431{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23432$as_echo_n "checking $ac_header presence... " >&6; }
23433cat >conftest.$ac_ext <<_ACEOF
23434/* confdefs.h. */
23435_ACEOF
23436cat confdefs.h >>conftest.$ac_ext
23437cat >>conftest.$ac_ext <<_ACEOF
23438/* end confdefs.h. */
23439#include <$ac_header>
23440_ACEOF
23441if { (ac_try="$ac_cpp conftest.$ac_ext"
23442case "(($ac_try" in
23443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23444 *) ac_try_echo=$ac_try;;
23445esac
23446eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23447$as_echo "$ac_try_echo") >&5
23448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23449 ac_status=$?
23450 grep -v '^ *+' conftest.er1 >conftest.err
23451 rm -f conftest.er1
23452 cat conftest.err >&5
23453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454 (exit $ac_status); } >/dev/null && {
23455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23456 test ! -s conftest.err
23457 }; then
23458 ac_header_preproc=yes
23459else
23460 $as_echo "$as_me: failed program was:" >&5
23461sed 's/^/| /' conftest.$ac_ext >&5
23462
23463 ac_header_preproc=no
23464fi
23465
23466rm -f conftest.err conftest.$ac_ext
23467{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23468$as_echo "$ac_header_preproc" >&6; }
23469
23470# So? What about this header?
23471case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23472 yes:no: )
23473 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23474$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23475 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23476$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23477 ac_header_preproc=yes
23478 ;;
23479 no:yes:* )
23480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23481$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23482 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23483$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23484 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23485$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23486 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23487$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23488 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23489$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23490 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23491$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23492
23493 ;;
23494esac
23495{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23496$as_echo_n "checking for $ac_header... " >&6; }
23497if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23498 $as_echo_n "(cached) " >&6
23499else
23500 eval "$as_ac_Header=\$ac_header_preproc"
23501fi
23502ac_res=`eval 'as_val=${'$as_ac_Header'}
23503 $as_echo "$as_val"'`
23504 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23505$as_echo "$ac_res" >&6; }
23506
23507fi
23508if test `eval 'as_val=${'$as_ac_Header'}
23509 $as_echo "$as_val"'` = yes; then
12692 cat >>confdefs.h <<_ACEOF 23510 cat >>confdefs.h <<_ACEOF
12693#define HAVE_KRB_H 1 23511#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12694_ACEOF 23512_ACEOF
12695 23513
12696else 23514else
12697 for ac_header in kerberosIV/krb.h 23515
12698do : 23516for ac_header in kerberosIV/krb.h
12699 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default" 23517do
12700if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then : 23518as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23519if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23520 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23521$as_echo_n "checking for $ac_header... " >&6; }
23522if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23523 $as_echo_n "(cached) " >&6
23524fi
23525ac_res=`eval 'as_val=${'$as_ac_Header'}
23526 $as_echo "$as_val"'`
23527 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23528$as_echo "$ac_res" >&6; }
23529else
23530 # Is the header compilable?
23531{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23532$as_echo_n "checking $ac_header usability... " >&6; }
23533cat >conftest.$ac_ext <<_ACEOF
23534/* confdefs.h. */
23535_ACEOF
23536cat confdefs.h >>conftest.$ac_ext
23537cat >>conftest.$ac_ext <<_ACEOF
23538/* end confdefs.h. */
23539$ac_includes_default
23540#include <$ac_header>
23541_ACEOF
23542rm -f conftest.$ac_objext
23543if { (ac_try="$ac_compile"
23544case "(($ac_try" in
23545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23546 *) ac_try_echo=$ac_try;;
23547esac
23548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23549$as_echo "$ac_try_echo") >&5
23550 (eval "$ac_compile") 2>conftest.er1
23551 ac_status=$?
23552 grep -v '^ *+' conftest.er1 >conftest.err
23553 rm -f conftest.er1
23554 cat conftest.err >&5
23555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23556 (exit $ac_status); } && {
23557 test -z "$ac_c_werror_flag" ||
23558 test ! -s conftest.err
23559 } && test -s conftest.$ac_objext; then
23560 ac_header_compiler=yes
23561else
23562 $as_echo "$as_me: failed program was:" >&5
23563sed 's/^/| /' conftest.$ac_ext >&5
23564
23565 ac_header_compiler=no
23566fi
23567
23568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23569{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23570$as_echo "$ac_header_compiler" >&6; }
23571
23572# Is the header present?
23573{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23574$as_echo_n "checking $ac_header presence... " >&6; }
23575cat >conftest.$ac_ext <<_ACEOF
23576/* confdefs.h. */
23577_ACEOF
23578cat confdefs.h >>conftest.$ac_ext
23579cat >>conftest.$ac_ext <<_ACEOF
23580/* end confdefs.h. */
23581#include <$ac_header>
23582_ACEOF
23583if { (ac_try="$ac_cpp conftest.$ac_ext"
23584case "(($ac_try" in
23585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23586 *) ac_try_echo=$ac_try;;
23587esac
23588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23589$as_echo "$ac_try_echo") >&5
23590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23591 ac_status=$?
23592 grep -v '^ *+' conftest.er1 >conftest.err
23593 rm -f conftest.er1
23594 cat conftest.err >&5
23595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596 (exit $ac_status); } >/dev/null && {
23597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23598 test ! -s conftest.err
23599 }; then
23600 ac_header_preproc=yes
23601else
23602 $as_echo "$as_me: failed program was:" >&5
23603sed 's/^/| /' conftest.$ac_ext >&5
23604
23605 ac_header_preproc=no
23606fi
23607
23608rm -f conftest.err conftest.$ac_ext
23609{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23610$as_echo "$ac_header_preproc" >&6; }
23611
23612# So? What about this header?
23613case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23614 yes:no: )
23615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23616$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23618$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23619 ac_header_preproc=yes
23620 ;;
23621 no:yes:* )
23622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23623$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23624 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23625$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23627$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23629$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23631$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23633$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23634
23635 ;;
23636esac
23637{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23638$as_echo_n "checking for $ac_header... " >&6; }
23639if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23640 $as_echo_n "(cached) " >&6
23641else
23642 eval "$as_ac_Header=\$ac_header_preproc"
23643fi
23644ac_res=`eval 'as_val=${'$as_ac_Header'}
23645 $as_echo "$as_val"'`
23646 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23647$as_echo "$ac_res" >&6; }
23648
23649fi
23650if test `eval 'as_val=${'$as_ac_Header'}
23651 $as_echo "$as_val"'` = yes; then
12701 cat >>confdefs.h <<_ACEOF 23652 cat >>confdefs.h <<_ACEOF
12702#define HAVE_KERBEROSIV_KRB_H 1 23653#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12703_ACEOF 23654_ACEOF
12704 23655
12705else 23656else
12706 for ac_header in kerberos/krb.h 23657
12707do : 23658for ac_header in kerberos/krb.h
12708 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default" 23659do
12709if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then : 23660as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23661if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23662 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23663$as_echo_n "checking for $ac_header... " >&6; }
23664if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23665 $as_echo_n "(cached) " >&6
23666fi
23667ac_res=`eval 'as_val=${'$as_ac_Header'}
23668 $as_echo "$as_val"'`
23669 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23670$as_echo "$ac_res" >&6; }
23671else
23672 # Is the header compilable?
23673{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23674$as_echo_n "checking $ac_header usability... " >&6; }
23675cat >conftest.$ac_ext <<_ACEOF
23676/* confdefs.h. */
23677_ACEOF
23678cat confdefs.h >>conftest.$ac_ext
23679cat >>conftest.$ac_ext <<_ACEOF
23680/* end confdefs.h. */
23681$ac_includes_default
23682#include <$ac_header>
23683_ACEOF
23684rm -f conftest.$ac_objext
23685if { (ac_try="$ac_compile"
23686case "(($ac_try" in
23687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23688 *) ac_try_echo=$ac_try;;
23689esac
23690eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23691$as_echo "$ac_try_echo") >&5
23692 (eval "$ac_compile") 2>conftest.er1
23693 ac_status=$?
23694 grep -v '^ *+' conftest.er1 >conftest.err
23695 rm -f conftest.er1
23696 cat conftest.err >&5
23697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698 (exit $ac_status); } && {
23699 test -z "$ac_c_werror_flag" ||
23700 test ! -s conftest.err
23701 } && test -s conftest.$ac_objext; then
23702 ac_header_compiler=yes
23703else
23704 $as_echo "$as_me: failed program was:" >&5
23705sed 's/^/| /' conftest.$ac_ext >&5
23706
23707 ac_header_compiler=no
23708fi
23709
23710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23711{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23712$as_echo "$ac_header_compiler" >&6; }
23713
23714# Is the header present?
23715{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23716$as_echo_n "checking $ac_header presence... " >&6; }
23717cat >conftest.$ac_ext <<_ACEOF
23718/* confdefs.h. */
23719_ACEOF
23720cat confdefs.h >>conftest.$ac_ext
23721cat >>conftest.$ac_ext <<_ACEOF
23722/* end confdefs.h. */
23723#include <$ac_header>
23724_ACEOF
23725if { (ac_try="$ac_cpp conftest.$ac_ext"
23726case "(($ac_try" in
23727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23728 *) ac_try_echo=$ac_try;;
23729esac
23730eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23731$as_echo "$ac_try_echo") >&5
23732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23733 ac_status=$?
23734 grep -v '^ *+' conftest.er1 >conftest.err
23735 rm -f conftest.er1
23736 cat conftest.err >&5
23737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23738 (exit $ac_status); } >/dev/null && {
23739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23740 test ! -s conftest.err
23741 }; then
23742 ac_header_preproc=yes
23743else
23744 $as_echo "$as_me: failed program was:" >&5
23745sed 's/^/| /' conftest.$ac_ext >&5
23746
23747 ac_header_preproc=no
23748fi
23749
23750rm -f conftest.err conftest.$ac_ext
23751{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23752$as_echo "$ac_header_preproc" >&6; }
23753
23754# So? What about this header?
23755case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23756 yes:no: )
23757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23758$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23760$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23761 ac_header_preproc=yes
23762 ;;
23763 no:yes:* )
23764 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23765$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23766 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23767$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23768 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23769$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23771$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23773$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23775$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23776
23777 ;;
23778esac
23779{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23780$as_echo_n "checking for $ac_header... " >&6; }
23781if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23782 $as_echo_n "(cached) " >&6
23783else
23784 eval "$as_ac_Header=\$ac_header_preproc"
23785fi
23786ac_res=`eval 'as_val=${'$as_ac_Header'}
23787 $as_echo "$as_val"'`
23788 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23789$as_echo "$ac_res" >&6; }
23790
23791fi
23792if test `eval 'as_val=${'$as_ac_Header'}
23793 $as_echo "$as_val"'` = yes; then
12710 cat >>confdefs.h <<_ACEOF 23794 cat >>confdefs.h <<_ACEOF
12711#define HAVE_KERBEROS_KRB_H 1 23795#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12712_ACEOF 23796_ACEOF
12713 23797
12714fi 23798fi
@@ -12724,12 +23808,145 @@ fi
12724done 23808done
12725 23809
12726 fi 23810 fi
12727 for ac_header in com_err.h 23811
12728do : 23812for ac_header in com_err.h
12729 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default" 23813do
12730if test "x$ac_cv_header_com_err_h" = x""yes; then : 23814as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23815if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23816 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23817$as_echo_n "checking for $ac_header... " >&6; }
23818if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23819 $as_echo_n "(cached) " >&6
23820fi
23821ac_res=`eval 'as_val=${'$as_ac_Header'}
23822 $as_echo "$as_val"'`
23823 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23824$as_echo "$ac_res" >&6; }
23825else
23826 # Is the header compilable?
23827{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23828$as_echo_n "checking $ac_header usability... " >&6; }
23829cat >conftest.$ac_ext <<_ACEOF
23830/* confdefs.h. */
23831_ACEOF
23832cat confdefs.h >>conftest.$ac_ext
23833cat >>conftest.$ac_ext <<_ACEOF
23834/* end confdefs.h. */
23835$ac_includes_default
23836#include <$ac_header>
23837_ACEOF
23838rm -f conftest.$ac_objext
23839if { (ac_try="$ac_compile"
23840case "(($ac_try" in
23841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23842 *) ac_try_echo=$ac_try;;
23843esac
23844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23845$as_echo "$ac_try_echo") >&5
23846 (eval "$ac_compile") 2>conftest.er1
23847 ac_status=$?
23848 grep -v '^ *+' conftest.er1 >conftest.err
23849 rm -f conftest.er1
23850 cat conftest.err >&5
23851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23852 (exit $ac_status); } && {
23853 test -z "$ac_c_werror_flag" ||
23854 test ! -s conftest.err
23855 } && test -s conftest.$ac_objext; then
23856 ac_header_compiler=yes
23857else
23858 $as_echo "$as_me: failed program was:" >&5
23859sed 's/^/| /' conftest.$ac_ext >&5
23860
23861 ac_header_compiler=no
23862fi
23863
23864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23865{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23866$as_echo "$ac_header_compiler" >&6; }
23867
23868# Is the header present?
23869{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23870$as_echo_n "checking $ac_header presence... " >&6; }
23871cat >conftest.$ac_ext <<_ACEOF
23872/* confdefs.h. */
23873_ACEOF
23874cat confdefs.h >>conftest.$ac_ext
23875cat >>conftest.$ac_ext <<_ACEOF
23876/* end confdefs.h. */
23877#include <$ac_header>
23878_ACEOF
23879if { (ac_try="$ac_cpp conftest.$ac_ext"
23880case "(($ac_try" in
23881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23882 *) ac_try_echo=$ac_try;;
23883esac
23884eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23885$as_echo "$ac_try_echo") >&5
23886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23887 ac_status=$?
23888 grep -v '^ *+' conftest.er1 >conftest.err
23889 rm -f conftest.er1
23890 cat conftest.err >&5
23891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23892 (exit $ac_status); } >/dev/null && {
23893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23894 test ! -s conftest.err
23895 }; then
23896 ac_header_preproc=yes
23897else
23898 $as_echo "$as_me: failed program was:" >&5
23899sed 's/^/| /' conftest.$ac_ext >&5
23900
23901 ac_header_preproc=no
23902fi
23903
23904rm -f conftest.err conftest.$ac_ext
23905{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23906$as_echo "$ac_header_preproc" >&6; }
23907
23908# So? What about this header?
23909case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23910 yes:no: )
23911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23912$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23913 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23914$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23915 ac_header_preproc=yes
23916 ;;
23917 no:yes:* )
23918 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23919$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23920 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23921$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23923$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23924 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23925$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23927$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23929$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23930
23931 ;;
23932esac
23933{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23934$as_echo_n "checking for $ac_header... " >&6; }
23935if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23936 $as_echo_n "(cached) " >&6
23937else
23938 eval "$as_ac_Header=\$ac_header_preproc"
23939fi
23940ac_res=`eval 'as_val=${'$as_ac_Header'}
23941 $as_echo "$as_val"'`
23942 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23943$as_echo "$ac_res" >&6; }
23944
23945fi
23946if test `eval 'as_val=${'$as_ac_Header'}
23947 $as_echo "$as_val"'` = yes; then
12731 cat >>confdefs.h <<_ACEOF 23948 cat >>confdefs.h <<_ACEOF
12732#define HAVE_COM_ERR_H 1 23949#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12733_ACEOF 23950_ACEOF
12734 23951
12735fi 23952fi
@@ -12746,14 +23963,19 @@ fi
12746 23963
12747# Solaris requires -lintl if you want strerror (which calls dgettext) 23964# Solaris requires -lintl if you want strerror (which calls dgettext)
12748# to return localized messages. 23965# to return localized messages.
12749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5 23966
23967{ $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
12750$as_echo_n "checking for dgettext in -lintl... " >&6; } 23968$as_echo_n "checking for dgettext in -lintl... " >&6; }
12751if test "${ac_cv_lib_intl_dgettext+set}" = set; then : 23969if test "${ac_cv_lib_intl_dgettext+set}" = set; then
12752 $as_echo_n "(cached) " >&6 23970 $as_echo_n "(cached) " >&6
12753else 23971else
12754 ac_check_lib_save_LIBS=$LIBS 23972 ac_check_lib_save_LIBS=$LIBS
12755LIBS="-lintl $LIBS" 23973LIBS="-lintl $LIBS"
12756cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23974cat >conftest.$ac_ext <<_ACEOF
23975/* confdefs.h. */
23976_ACEOF
23977cat confdefs.h >>conftest.$ac_ext
23978cat >>conftest.$ac_ext <<_ACEOF
12757/* end confdefs.h. */ 23979/* end confdefs.h. */
12758 23980
12759/* Override any GCC internal prototype to avoid an error. 23981/* Override any GCC internal prototype to avoid an error.
@@ -12771,18 +23993,43 @@ return dgettext ();
12771 return 0; 23993 return 0;
12772} 23994}
12773_ACEOF 23995_ACEOF
12774if ac_fn_c_try_link "$LINENO"; then : 23996rm -f conftest.$ac_objext conftest$ac_exeext
23997if { (ac_try="$ac_link"
23998case "(($ac_try" in
23999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24000 *) ac_try_echo=$ac_try;;
24001esac
24002eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24003$as_echo "$ac_try_echo") >&5
24004 (eval "$ac_link") 2>conftest.er1
24005 ac_status=$?
24006 grep -v '^ *+' conftest.er1 >conftest.err
24007 rm -f conftest.er1
24008 cat conftest.err >&5
24009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24010 (exit $ac_status); } && {
24011 test -z "$ac_c_werror_flag" ||
24012 test ! -s conftest.err
24013 } && test -s conftest$ac_exeext && {
24014 test "$cross_compiling" = yes ||
24015 $as_test_x conftest$ac_exeext
24016 }; then
12775 ac_cv_lib_intl_dgettext=yes 24017 ac_cv_lib_intl_dgettext=yes
12776else 24018else
12777 ac_cv_lib_intl_dgettext=no 24019 $as_echo "$as_me: failed program was:" >&5
24020sed 's/^/| /' conftest.$ac_ext >&5
24021
24022 ac_cv_lib_intl_dgettext=no
12778fi 24023fi
12779rm -f core conftest.err conftest.$ac_objext \ 24024
12780 conftest$ac_exeext conftest.$ac_ext 24025rm -rf conftest.dSYM
24026rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24027 conftest$ac_exeext conftest.$ac_ext
12781LIBS=$ac_check_lib_save_LIBS 24028LIBS=$ac_check_lib_save_LIBS
12782fi 24029fi
12783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5 24030{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
12784$as_echo "$ac_cv_lib_intl_dgettext" >&6; } 24031$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
12785if test "x$ac_cv_lib_intl_dgettext" = x""yes; then : 24032if test $ac_cv_lib_intl_dgettext = yes; then
12786 cat >>confdefs.h <<_ACEOF 24033 cat >>confdefs.h <<_ACEOF
12787#define HAVE_LIBINTL 1 24034#define HAVE_LIBINTL 1
12788_ACEOF 24035_ACEOF
@@ -12792,17 +24039,21 @@ _ACEOF
12792fi 24039fi
12793 24040
12794 24041
12795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5 24042{ $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
12796$as_echo_n "checking whether localtime caches TZ... " >&6; } 24043$as_echo_n "checking whether localtime caches TZ... " >&6; }
12797if test "${emacs_cv_localtime_cache+set}" = set; then : 24044if test "${emacs_cv_localtime_cache+set}" = set; then
12798 $as_echo_n "(cached) " >&6 24045 $as_echo_n "(cached) " >&6
12799else 24046else
12800 if test x$ac_cv_func_tzset = xyes; then 24047 if test x$ac_cv_func_tzset = xyes; then
12801if test "$cross_compiling" = yes; then : 24048if test "$cross_compiling" = yes; then
12802 # If we have tzset, assume the worst when cross-compiling. 24049 # If we have tzset, assume the worst when cross-compiling.
12803emacs_cv_localtime_cache=yes 24050emacs_cv_localtime_cache=yes
12804else 24051else
12805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24052 cat >conftest.$ac_ext <<_ACEOF
24053/* confdefs.h. */
24054_ACEOF
24055cat confdefs.h >>conftest.$ac_ext
24056cat >>conftest.$ac_ext <<_ACEOF
12806/* end confdefs.h. */ 24057/* end confdefs.h. */
12807#include <time.h> 24058#include <time.h>
12808extern char **environ; 24059extern char **environ;
@@ -12834,48 +24085,170 @@ main()
12834 exit (0); 24085 exit (0);
12835} 24086}
12836_ACEOF 24087_ACEOF
12837if ac_fn_c_try_run "$LINENO"; then : 24088rm -f conftest$ac_exeext
24089if { (ac_try="$ac_link"
24090case "(($ac_try" in
24091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24092 *) ac_try_echo=$ac_try;;
24093esac
24094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24095$as_echo "$ac_try_echo") >&5
24096 (eval "$ac_link") 2>&5
24097 ac_status=$?
24098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24100 { (case "(($ac_try" in
24101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24102 *) ac_try_echo=$ac_try;;
24103esac
24104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24105$as_echo "$ac_try_echo") >&5
24106 (eval "$ac_try") 2>&5
24107 ac_status=$?
24108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109 (exit $ac_status); }; }; then
12838 emacs_cv_localtime_cache=no 24110 emacs_cv_localtime_cache=no
12839else 24111else
12840 emacs_cv_localtime_cache=yes 24112 $as_echo "$as_me: program exited with status $ac_status" >&5
24113$as_echo "$as_me: failed program was:" >&5
24114sed 's/^/| /' conftest.$ac_ext >&5
24115
24116( exit $ac_status )
24117emacs_cv_localtime_cache=yes
12841fi 24118fi
12842rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24119rm -rf conftest.dSYM
12843 conftest.$ac_objext conftest.beam conftest.$ac_ext 24120rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12844fi 24121fi
12845 24122
24123
12846else 24124else
12847 # If we lack tzset, report that localtime does not cache TZ, 24125 # If we lack tzset, report that localtime does not cache TZ,
12848 # since we can't invalidate the cache if we don't have tzset. 24126 # since we can't invalidate the cache if we don't have tzset.
12849 emacs_cv_localtime_cache=no 24127 emacs_cv_localtime_cache=no
12850fi 24128fi
12851fi 24129fi
12852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5 24130{ $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
12853$as_echo "$emacs_cv_localtime_cache" >&6; } 24131$as_echo "$emacs_cv_localtime_cache" >&6; }
12854if test $emacs_cv_localtime_cache = yes; then 24132if test $emacs_cv_localtime_cache = yes; then
12855 24133
12856$as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h 24134cat >>confdefs.h <<\_ACEOF
24135#define LOCALTIME_CACHE 1
24136_ACEOF
12857 24137
12858fi 24138fi
12859 24139
12860if test "x$HAVE_TIMEVAL" = xyes; then 24140if test "x$HAVE_TIMEVAL" = xyes; then
12861 for ac_func in gettimeofday 24141
12862do : 24142for ac_func in gettimeofday
12863 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 24143do
12864if test "x$ac_cv_func_gettimeofday" = x""yes; then : 24144as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24145{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24146$as_echo_n "checking for $ac_func... " >&6; }
24147if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24148 $as_echo_n "(cached) " >&6
24149else
24150 cat >conftest.$ac_ext <<_ACEOF
24151/* confdefs.h. */
24152_ACEOF
24153cat confdefs.h >>conftest.$ac_ext
24154cat >>conftest.$ac_ext <<_ACEOF
24155/* end confdefs.h. */
24156/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24158#define $ac_func innocuous_$ac_func
24159
24160/* System header to define __stub macros and hopefully few prototypes,
24161 which can conflict with char $ac_func (); below.
24162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24163 <limits.h> exists even on freestanding compilers. */
24164
24165#ifdef __STDC__
24166# include <limits.h>
24167#else
24168# include <assert.h>
24169#endif
24170
24171#undef $ac_func
24172
24173/* Override any GCC internal prototype to avoid an error.
24174 Use char because int might match the return type of a GCC
24175 builtin and then its argument prototype would still apply. */
24176#ifdef __cplusplus
24177extern "C"
24178#endif
24179char $ac_func ();
24180/* The GNU C library defines this for functions which it implements
24181 to always fail with ENOSYS. Some functions are actually named
24182 something starting with __ and the normal name is an alias. */
24183#if defined __stub_$ac_func || defined __stub___$ac_func
24184choke me
24185#endif
24186
24187int
24188main ()
24189{
24190return $ac_func ();
24191 ;
24192 return 0;
24193}
24194_ACEOF
24195rm -f conftest.$ac_objext conftest$ac_exeext
24196if { (ac_try="$ac_link"
24197case "(($ac_try" in
24198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24199 *) ac_try_echo=$ac_try;;
24200esac
24201eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24202$as_echo "$ac_try_echo") >&5
24203 (eval "$ac_link") 2>conftest.er1
24204 ac_status=$?
24205 grep -v '^ *+' conftest.er1 >conftest.err
24206 rm -f conftest.er1
24207 cat conftest.err >&5
24208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24209 (exit $ac_status); } && {
24210 test -z "$ac_c_werror_flag" ||
24211 test ! -s conftest.err
24212 } && test -s conftest$ac_exeext && {
24213 test "$cross_compiling" = yes ||
24214 $as_test_x conftest$ac_exeext
24215 }; then
24216 eval "$as_ac_var=yes"
24217else
24218 $as_echo "$as_me: failed program was:" >&5
24219sed 's/^/| /' conftest.$ac_ext >&5
24220
24221 eval "$as_ac_var=no"
24222fi
24223
24224rm -rf conftest.dSYM
24225rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24226 conftest$ac_exeext conftest.$ac_ext
24227fi
24228ac_res=`eval 'as_val=${'$as_ac_var'}
24229 $as_echo "$as_val"'`
24230 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24231$as_echo "$ac_res" >&6; }
24232if test `eval 'as_val=${'$as_ac_var'}
24233 $as_echo "$as_val"'` = yes; then
12865 cat >>confdefs.h <<_ACEOF 24234 cat >>confdefs.h <<_ACEOF
12866#define HAVE_GETTIMEOFDAY 1 24235#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12867_ACEOF 24236_ACEOF
12868 24237
12869fi 24238fi
12870done 24239done
12871 24240
12872 if test $ac_cv_func_gettimeofday = yes; then 24241 if test $ac_cv_func_gettimeofday = yes; then
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5 24242 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
12874$as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; } 24243$as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
12875if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then : 24244if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
12876 $as_echo_n "(cached) " >&6 24245 $as_echo_n "(cached) " >&6
12877else 24246else
12878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24247 cat >conftest.$ac_ext <<_ACEOF
24248/* confdefs.h. */
24249_ACEOF
24250cat confdefs.h >>conftest.$ac_ext
24251cat >>conftest.$ac_ext <<_ACEOF
12879/* end confdefs.h. */ 24252/* end confdefs.h. */
12880 24253
12881#ifdef TIME_WITH_SYS_TIME 24254#ifdef TIME_WITH_SYS_TIME
@@ -12897,35 +24270,268 @@ struct timeval time;
12897 return 0; 24270 return 0;
12898} 24271}
12899_ACEOF 24272_ACEOF
12900if ac_fn_c_try_compile "$LINENO"; then : 24273rm -f conftest.$ac_objext
24274if { (ac_try="$ac_compile"
24275case "(($ac_try" in
24276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24277 *) ac_try_echo=$ac_try;;
24278esac
24279eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24280$as_echo "$ac_try_echo") >&5
24281 (eval "$ac_compile") 2>conftest.er1
24282 ac_status=$?
24283 grep -v '^ *+' conftest.er1 >conftest.err
24284 rm -f conftest.er1
24285 cat conftest.err >&5
24286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24287 (exit $ac_status); } && {
24288 test -z "$ac_c_werror_flag" ||
24289 test ! -s conftest.err
24290 } && test -s conftest.$ac_objext; then
12901 emacs_cv_gettimeofday_two_arguments=yes 24291 emacs_cv_gettimeofday_two_arguments=yes
12902else 24292else
12903 emacs_cv_gettimeofday_two_arguments=no 24293 $as_echo "$as_me: failed program was:" >&5
24294sed 's/^/| /' conftest.$ac_ext >&5
24295
24296 emacs_cv_gettimeofday_two_arguments=no
12904fi 24297fi
24298
12905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12906fi 24300fi
12907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5 24301{ $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
12908$as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; } 24302$as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
12909 if test $emacs_cv_gettimeofday_two_arguments = no; then 24303 if test $emacs_cv_gettimeofday_two_arguments = no; then
12910 24304
12911$as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h 24305cat >>confdefs.h <<\_ACEOF
24306#define GETTIMEOFDAY_ONE_ARGUMENT 1
24307_ACEOF
12912 24308
12913 fi 24309 fi
12914 fi 24310 fi
12915fi 24311fi
12916 24312
12917ok_so_far=yes 24313ok_so_far=yes
12918ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" 24314{ $as_echo "$as_me:$LINENO: checking for socket" >&5
12919if test "x$ac_cv_func_socket" = x""yes; then : 24315$as_echo_n "checking for socket... " >&6; }
24316if test "${ac_cv_func_socket+set}" = set; then
24317 $as_echo_n "(cached) " >&6
24318else
24319 cat >conftest.$ac_ext <<_ACEOF
24320/* confdefs.h. */
24321_ACEOF
24322cat confdefs.h >>conftest.$ac_ext
24323cat >>conftest.$ac_ext <<_ACEOF
24324/* end confdefs.h. */
24325/* Define socket to an innocuous variant, in case <limits.h> declares socket.
24326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24327#define socket innocuous_socket
24328
24329/* System header to define __stub macros and hopefully few prototypes,
24330 which can conflict with char socket (); below.
24331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24332 <limits.h> exists even on freestanding compilers. */
24333
24334#ifdef __STDC__
24335# include <limits.h>
24336#else
24337# include <assert.h>
24338#endif
24339
24340#undef socket
24341
24342/* Override any GCC internal prototype to avoid an error.
24343 Use char because int might match the return type of a GCC
24344 builtin and then its argument prototype would still apply. */
24345#ifdef __cplusplus
24346extern "C"
24347#endif
24348char socket ();
24349/* The GNU C library defines this for functions which it implements
24350 to always fail with ENOSYS. Some functions are actually named
24351 something starting with __ and the normal name is an alias. */
24352#if defined __stub_socket || defined __stub___socket
24353choke me
24354#endif
24355
24356int
24357main ()
24358{
24359return socket ();
24360 ;
24361 return 0;
24362}
24363_ACEOF
24364rm -f conftest.$ac_objext conftest$ac_exeext
24365if { (ac_try="$ac_link"
24366case "(($ac_try" in
24367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24368 *) ac_try_echo=$ac_try;;
24369esac
24370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24371$as_echo "$ac_try_echo") >&5
24372 (eval "$ac_link") 2>conftest.er1
24373 ac_status=$?
24374 grep -v '^ *+' conftest.er1 >conftest.err
24375 rm -f conftest.er1
24376 cat conftest.err >&5
24377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378 (exit $ac_status); } && {
24379 test -z "$ac_c_werror_flag" ||
24380 test ! -s conftest.err
24381 } && test -s conftest$ac_exeext && {
24382 test "$cross_compiling" = yes ||
24383 $as_test_x conftest$ac_exeext
24384 }; then
24385 ac_cv_func_socket=yes
24386else
24387 $as_echo "$as_me: failed program was:" >&5
24388sed 's/^/| /' conftest.$ac_ext >&5
24389
24390 ac_cv_func_socket=no
24391fi
12920 24392
24393rm -rf conftest.dSYM
24394rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24395 conftest$ac_exeext conftest.$ac_ext
24396fi
24397{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24398$as_echo "$ac_cv_func_socket" >&6; }
24399if test $ac_cv_func_socket = yes; then
24400 :
12921else 24401else
12922 ok_so_far=no 24402 ok_so_far=no
12923fi 24403fi
12924 24404
12925if test $ok_so_far = yes; then 24405if test $ok_so_far = yes; then
12926 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" 24406 if test "${ac_cv_header_netinet_in_h+set}" = set; then
12927if test "x$ac_cv_header_netinet_in_h" = x""yes; then : 24407 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24408$as_echo_n "checking for netinet/in.h... " >&6; }
24409if test "${ac_cv_header_netinet_in_h+set}" = set; then
24410 $as_echo_n "(cached) " >&6
24411fi
24412{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24413$as_echo "$ac_cv_header_netinet_in_h" >&6; }
24414else
24415 # Is the header compilable?
24416{ $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24417$as_echo_n "checking netinet/in.h usability... " >&6; }
24418cat >conftest.$ac_ext <<_ACEOF
24419/* confdefs.h. */
24420_ACEOF
24421cat confdefs.h >>conftest.$ac_ext
24422cat >>conftest.$ac_ext <<_ACEOF
24423/* end confdefs.h. */
24424$ac_includes_default
24425#include <netinet/in.h>
24426_ACEOF
24427rm -f conftest.$ac_objext
24428if { (ac_try="$ac_compile"
24429case "(($ac_try" in
24430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24431 *) ac_try_echo=$ac_try;;
24432esac
24433eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24434$as_echo "$ac_try_echo") >&5
24435 (eval "$ac_compile") 2>conftest.er1
24436 ac_status=$?
24437 grep -v '^ *+' conftest.er1 >conftest.err
24438 rm -f conftest.er1
24439 cat conftest.err >&5
24440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24441 (exit $ac_status); } && {
24442 test -z "$ac_c_werror_flag" ||
24443 test ! -s conftest.err
24444 } && test -s conftest.$ac_objext; then
24445 ac_header_compiler=yes
24446else
24447 $as_echo "$as_me: failed program was:" >&5
24448sed 's/^/| /' conftest.$ac_ext >&5
24449
24450 ac_header_compiler=no
24451fi
24452
24453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24454{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24455$as_echo "$ac_header_compiler" >&6; }
24456
24457# Is the header present?
24458{ $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24459$as_echo_n "checking netinet/in.h presence... " >&6; }
24460cat >conftest.$ac_ext <<_ACEOF
24461/* confdefs.h. */
24462_ACEOF
24463cat confdefs.h >>conftest.$ac_ext
24464cat >>conftest.$ac_ext <<_ACEOF
24465/* end confdefs.h. */
24466#include <netinet/in.h>
24467_ACEOF
24468if { (ac_try="$ac_cpp conftest.$ac_ext"
24469case "(($ac_try" in
24470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24471 *) ac_try_echo=$ac_try;;
24472esac
24473eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24474$as_echo "$ac_try_echo") >&5
24475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24476 ac_status=$?
24477 grep -v '^ *+' conftest.er1 >conftest.err
24478 rm -f conftest.er1
24479 cat conftest.err >&5
24480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481 (exit $ac_status); } >/dev/null && {
24482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24483 test ! -s conftest.err
24484 }; then
24485 ac_header_preproc=yes
24486else
24487 $as_echo "$as_me: failed program was:" >&5
24488sed 's/^/| /' conftest.$ac_ext >&5
24489
24490 ac_header_preproc=no
24491fi
24492
24493rm -f conftest.err conftest.$ac_ext
24494{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24495$as_echo "$ac_header_preproc" >&6; }
24496
24497# So? What about this header?
24498case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24499 yes:no: )
24500 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24501$as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24502 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24503$as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24504 ac_header_preproc=yes
24505 ;;
24506 no:yes:* )
24507 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24508$as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24509 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24510$as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24511 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24512$as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24513 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24514$as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24515 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24516$as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24517 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24518$as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24519
24520 ;;
24521esac
24522{ $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24523$as_echo_n "checking for netinet/in.h... " >&6; }
24524if test "${ac_cv_header_netinet_in_h+set}" = set; then
24525 $as_echo_n "(cached) " >&6
24526else
24527 ac_cv_header_netinet_in_h=$ac_header_preproc
24528fi
24529{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24530$as_echo "$ac_cv_header_netinet_in_h" >&6; }
12928 24531
24532fi
24533if test $ac_cv_header_netinet_in_h = yes; then
24534 :
12929else 24535else
12930 ok_so_far=no 24536 ok_so_far=no
12931fi 24537fi
@@ -12933,9 +24539,135 @@ fi
12933 24539
12934fi 24540fi
12935if test $ok_so_far = yes; then 24541if test $ok_so_far = yes; then
12936 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" 24542 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
12937if test "x$ac_cv_header_arpa_inet_h" = x""yes; then : 24543 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24544$as_echo_n "checking for arpa/inet.h... " >&6; }
24545if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24546 $as_echo_n "(cached) " >&6
24547fi
24548{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24549$as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24550else
24551 # Is the header compilable?
24552{ $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24553$as_echo_n "checking arpa/inet.h usability... " >&6; }
24554cat >conftest.$ac_ext <<_ACEOF
24555/* confdefs.h. */
24556_ACEOF
24557cat confdefs.h >>conftest.$ac_ext
24558cat >>conftest.$ac_ext <<_ACEOF
24559/* end confdefs.h. */
24560$ac_includes_default
24561#include <arpa/inet.h>
24562_ACEOF
24563rm -f conftest.$ac_objext
24564if { (ac_try="$ac_compile"
24565case "(($ac_try" in
24566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24567 *) ac_try_echo=$ac_try;;
24568esac
24569eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24570$as_echo "$ac_try_echo") >&5
24571 (eval "$ac_compile") 2>conftest.er1
24572 ac_status=$?
24573 grep -v '^ *+' conftest.er1 >conftest.err
24574 rm -f conftest.er1
24575 cat conftest.err >&5
24576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577 (exit $ac_status); } && {
24578 test -z "$ac_c_werror_flag" ||
24579 test ! -s conftest.err
24580 } && test -s conftest.$ac_objext; then
24581 ac_header_compiler=yes
24582else
24583 $as_echo "$as_me: failed program was:" >&5
24584sed 's/^/| /' conftest.$ac_ext >&5
24585
24586 ac_header_compiler=no
24587fi
24588
24589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24590{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24591$as_echo "$ac_header_compiler" >&6; }
24592
24593# Is the header present?
24594{ $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
24595$as_echo_n "checking arpa/inet.h presence... " >&6; }
24596cat >conftest.$ac_ext <<_ACEOF
24597/* confdefs.h. */
24598_ACEOF
24599cat confdefs.h >>conftest.$ac_ext
24600cat >>conftest.$ac_ext <<_ACEOF
24601/* end confdefs.h. */
24602#include <arpa/inet.h>
24603_ACEOF
24604if { (ac_try="$ac_cpp conftest.$ac_ext"
24605case "(($ac_try" in
24606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24607 *) ac_try_echo=$ac_try;;
24608esac
24609eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24610$as_echo "$ac_try_echo") >&5
24611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24612 ac_status=$?
24613 grep -v '^ *+' conftest.er1 >conftest.err
24614 rm -f conftest.er1
24615 cat conftest.err >&5
24616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617 (exit $ac_status); } >/dev/null && {
24618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24619 test ! -s conftest.err
24620 }; then
24621 ac_header_preproc=yes
24622else
24623 $as_echo "$as_me: failed program was:" >&5
24624sed 's/^/| /' conftest.$ac_ext >&5
24625
24626 ac_header_preproc=no
24627fi
24628
24629rm -f conftest.err conftest.$ac_ext
24630{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24631$as_echo "$ac_header_preproc" >&6; }
24632
24633# So? What about this header?
24634case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24635 yes:no: )
24636 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24637$as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24638 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24639$as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24640 ac_header_preproc=yes
24641 ;;
24642 no:yes:* )
24643 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24644$as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24645 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24646$as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24647 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24648$as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24649 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24650$as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24651 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24652$as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24653 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24654$as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24655
24656 ;;
24657esac
24658{ $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24659$as_echo_n "checking for arpa/inet.h... " >&6; }
24660if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24661 $as_echo_n "(cached) " >&6
24662else
24663 ac_cv_header_arpa_inet_h=$ac_header_preproc
24664fi
24665{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24666$as_echo "$ac_cv_header_arpa_inet_h" >&6; }
12938 24667
24668fi
24669if test $ac_cv_header_arpa_inet_h = yes; then
24670 :
12939else 24671else
12940 ok_so_far=no 24672 ok_so_far=no
12941fi 24673fi
@@ -12944,16 +24676,151 @@ fi
12944fi 24676fi
12945if test $ok_so_far = yes; then 24677if test $ok_so_far = yes; then
12946 24678
12947$as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h 24679cat >>confdefs.h <<\_ACEOF
24680#define HAVE_INET_SOCKETS 1
24681_ACEOF
12948 24682
12949fi 24683fi
12950 24684
24685
12951for ac_header in sys/ioctl.h 24686for ac_header in sys/ioctl.h
12952do : 24687do
12953 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 24688as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12954if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then : 24689if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24690 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24691$as_echo_n "checking for $ac_header... " >&6; }
24692if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24693 $as_echo_n "(cached) " >&6
24694fi
24695ac_res=`eval 'as_val=${'$as_ac_Header'}
24696 $as_echo "$as_val"'`
24697 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24698$as_echo "$ac_res" >&6; }
24699else
24700 # Is the header compilable?
24701{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24702$as_echo_n "checking $ac_header usability... " >&6; }
24703cat >conftest.$ac_ext <<_ACEOF
24704/* confdefs.h. */
24705_ACEOF
24706cat confdefs.h >>conftest.$ac_ext
24707cat >>conftest.$ac_ext <<_ACEOF
24708/* end confdefs.h. */
24709$ac_includes_default
24710#include <$ac_header>
24711_ACEOF
24712rm -f conftest.$ac_objext
24713if { (ac_try="$ac_compile"
24714case "(($ac_try" in
24715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24716 *) ac_try_echo=$ac_try;;
24717esac
24718eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24719$as_echo "$ac_try_echo") >&5
24720 (eval "$ac_compile") 2>conftest.er1
24721 ac_status=$?
24722 grep -v '^ *+' conftest.er1 >conftest.err
24723 rm -f conftest.er1
24724 cat conftest.err >&5
24725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726 (exit $ac_status); } && {
24727 test -z "$ac_c_werror_flag" ||
24728 test ! -s conftest.err
24729 } && test -s conftest.$ac_objext; then
24730 ac_header_compiler=yes
24731else
24732 $as_echo "$as_me: failed program was:" >&5
24733sed 's/^/| /' conftest.$ac_ext >&5
24734
24735 ac_header_compiler=no
24736fi
24737
24738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24739{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24740$as_echo "$ac_header_compiler" >&6; }
24741
24742# Is the header present?
24743{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24744$as_echo_n "checking $ac_header presence... " >&6; }
24745cat >conftest.$ac_ext <<_ACEOF
24746/* confdefs.h. */
24747_ACEOF
24748cat confdefs.h >>conftest.$ac_ext
24749cat >>conftest.$ac_ext <<_ACEOF
24750/* end confdefs.h. */
24751#include <$ac_header>
24752_ACEOF
24753if { (ac_try="$ac_cpp conftest.$ac_ext"
24754case "(($ac_try" in
24755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24756 *) ac_try_echo=$ac_try;;
24757esac
24758eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24759$as_echo "$ac_try_echo") >&5
24760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24761 ac_status=$?
24762 grep -v '^ *+' conftest.er1 >conftest.err
24763 rm -f conftest.er1
24764 cat conftest.err >&5
24765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24766 (exit $ac_status); } >/dev/null && {
24767 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24768 test ! -s conftest.err
24769 }; then
24770 ac_header_preproc=yes
24771else
24772 $as_echo "$as_me: failed program was:" >&5
24773sed 's/^/| /' conftest.$ac_ext >&5
24774
24775 ac_header_preproc=no
24776fi
24777
24778rm -f conftest.err conftest.$ac_ext
24779{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24780$as_echo "$ac_header_preproc" >&6; }
24781
24782# So? What about this header?
24783case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24784 yes:no: )
24785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24786$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24788$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24789 ac_header_preproc=yes
24790 ;;
24791 no:yes:* )
24792 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24793$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24794 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24795$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24797$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24799$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24801$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24802 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24803$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24804
24805 ;;
24806esac
24807{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24808$as_echo_n "checking for $ac_header... " >&6; }
24809if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24810 $as_echo_n "(cached) " >&6
24811else
24812 eval "$as_ac_Header=\$ac_header_preproc"
24813fi
24814ac_res=`eval 'as_val=${'$as_ac_Header'}
24815 $as_echo "$as_val"'`
24816 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24817$as_echo "$ac_res" >&6; }
24818
24819fi
24820if test `eval 'as_val=${'$as_ac_Header'}
24821 $as_echo "$as_val"'` = yes; then
12955 cat >>confdefs.h <<_ACEOF 24822 cat >>confdefs.h <<_ACEOF
12956#define HAVE_SYS_IOCTL_H 1 24823#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12957_ACEOF 24824_ACEOF
12958 24825
12959fi 24826fi
@@ -12963,26 +24830,123 @@ done
12963 24830
12964if test -f /usr/lpp/X11/bin/smt.exp; then 24831if test -f /usr/lpp/X11/bin/smt.exp; then
12965 24832
12966$as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h 24833cat >>confdefs.h <<\_ACEOF
24834#define HAVE_AIX_SMT_EXP 1
24835_ACEOF
12967 24836
12968fi 24837fi
12969 24838
12970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5 24839{ $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
12971$as_echo_n "checking whether system supports dynamic ptys... " >&6; } 24840$as_echo_n "checking whether system supports dynamic ptys... " >&6; }
12972if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then 24841if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24842 { $as_echo "$as_me:$LINENO: result: yes" >&5
12974$as_echo "yes" >&6; } 24843$as_echo "yes" >&6; }
12975 24844
12976$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h 24845cat >>confdefs.h <<\_ACEOF
24846#define HAVE_DEV_PTMX 1
24847_ACEOF
12977 24848
12978else 24849else
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24850 { $as_echo "$as_me:$LINENO: result: no" >&5
12980$as_echo "no" >&6; } 24851$as_echo "no" >&6; }
12981fi 24852fi
12982 24853
12983ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 24854{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
12984if test "x$ac_cv_type_pid_t" = x""yes; then : 24855$as_echo_n "checking for pid_t... " >&6; }
24856if test "${ac_cv_type_pid_t+set}" = set; then
24857 $as_echo_n "(cached) " >&6
24858else
24859 ac_cv_type_pid_t=no
24860cat >conftest.$ac_ext <<_ACEOF
24861/* confdefs.h. */
24862_ACEOF
24863cat confdefs.h >>conftest.$ac_ext
24864cat >>conftest.$ac_ext <<_ACEOF
24865/* end confdefs.h. */
24866$ac_includes_default
24867int
24868main ()
24869{
24870if (sizeof (pid_t))
24871 return 0;
24872 ;
24873 return 0;
24874}
24875_ACEOF
24876rm -f conftest.$ac_objext
24877if { (ac_try="$ac_compile"
24878case "(($ac_try" in
24879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24880 *) ac_try_echo=$ac_try;;
24881esac
24882eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24883$as_echo "$ac_try_echo") >&5
24884 (eval "$ac_compile") 2>conftest.er1
24885 ac_status=$?
24886 grep -v '^ *+' conftest.er1 >conftest.err
24887 rm -f conftest.er1
24888 cat conftest.err >&5
24889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890 (exit $ac_status); } && {
24891 test -z "$ac_c_werror_flag" ||
24892 test ! -s conftest.err
24893 } && test -s conftest.$ac_objext; then
24894 cat >conftest.$ac_ext <<_ACEOF
24895/* confdefs.h. */
24896_ACEOF
24897cat confdefs.h >>conftest.$ac_ext
24898cat >>conftest.$ac_ext <<_ACEOF
24899/* end confdefs.h. */
24900$ac_includes_default
24901int
24902main ()
24903{
24904if (sizeof ((pid_t)))
24905 return 0;
24906 ;
24907 return 0;
24908}
24909_ACEOF
24910rm -f conftest.$ac_objext
24911if { (ac_try="$ac_compile"
24912case "(($ac_try" in
24913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24914 *) ac_try_echo=$ac_try;;
24915esac
24916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24917$as_echo "$ac_try_echo") >&5
24918 (eval "$ac_compile") 2>conftest.er1
24919 ac_status=$?
24920 grep -v '^ *+' conftest.er1 >conftest.err
24921 rm -f conftest.er1
24922 cat conftest.err >&5
24923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924 (exit $ac_status); } && {
24925 test -z "$ac_c_werror_flag" ||
24926 test ! -s conftest.err
24927 } && test -s conftest.$ac_objext; then
24928 :
24929else
24930 $as_echo "$as_me: failed program was:" >&5
24931sed 's/^/| /' conftest.$ac_ext >&5
12985 24932
24933 ac_cv_type_pid_t=yes
24934fi
24935
24936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24937else
24938 $as_echo "$as_me: failed program was:" >&5
24939sed 's/^/| /' conftest.$ac_ext >&5
24940
24941
24942fi
24943
24944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24945fi
24946{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24947$as_echo "$ac_cv_type_pid_t" >&6; }
24948if test $ac_cv_type_pid_t = yes; then
24949 :
12986else 24950else
12987 24951
12988cat >>confdefs.h <<_ACEOF 24952cat >>confdefs.h <<_ACEOF
@@ -12991,24 +24955,245 @@ _ACEOF
12991 24955
12992fi 24956fi
12993 24957
24958
12994for ac_header in vfork.h 24959for ac_header in vfork.h
12995do : 24960do
12996 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 24961as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12997if test "x$ac_cv_header_vfork_h" = x""yes; then : 24962if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24963 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24964$as_echo_n "checking for $ac_header... " >&6; }
24965if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24966 $as_echo_n "(cached) " >&6
24967fi
24968ac_res=`eval 'as_val=${'$as_ac_Header'}
24969 $as_echo "$as_val"'`
24970 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24971$as_echo "$ac_res" >&6; }
24972else
24973 # Is the header compilable?
24974{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24975$as_echo_n "checking $ac_header usability... " >&6; }
24976cat >conftest.$ac_ext <<_ACEOF
24977/* confdefs.h. */
24978_ACEOF
24979cat confdefs.h >>conftest.$ac_ext
24980cat >>conftest.$ac_ext <<_ACEOF
24981/* end confdefs.h. */
24982$ac_includes_default
24983#include <$ac_header>
24984_ACEOF
24985rm -f conftest.$ac_objext
24986if { (ac_try="$ac_compile"
24987case "(($ac_try" in
24988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24989 *) ac_try_echo=$ac_try;;
24990esac
24991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24992$as_echo "$ac_try_echo") >&5
24993 (eval "$ac_compile") 2>conftest.er1
24994 ac_status=$?
24995 grep -v '^ *+' conftest.er1 >conftest.err
24996 rm -f conftest.er1
24997 cat conftest.err >&5
24998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999 (exit $ac_status); } && {
25000 test -z "$ac_c_werror_flag" ||
25001 test ! -s conftest.err
25002 } && test -s conftest.$ac_objext; then
25003 ac_header_compiler=yes
25004else
25005 $as_echo "$as_me: failed program was:" >&5
25006sed 's/^/| /' conftest.$ac_ext >&5
25007
25008 ac_header_compiler=no
25009fi
25010
25011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25012{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25013$as_echo "$ac_header_compiler" >&6; }
25014
25015# Is the header present?
25016{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25017$as_echo_n "checking $ac_header presence... " >&6; }
25018cat >conftest.$ac_ext <<_ACEOF
25019/* confdefs.h. */
25020_ACEOF
25021cat confdefs.h >>conftest.$ac_ext
25022cat >>conftest.$ac_ext <<_ACEOF
25023/* end confdefs.h. */
25024#include <$ac_header>
25025_ACEOF
25026if { (ac_try="$ac_cpp conftest.$ac_ext"
25027case "(($ac_try" in
25028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25029 *) ac_try_echo=$ac_try;;
25030esac
25031eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25032$as_echo "$ac_try_echo") >&5
25033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25034 ac_status=$?
25035 grep -v '^ *+' conftest.er1 >conftest.err
25036 rm -f conftest.er1
25037 cat conftest.err >&5
25038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25039 (exit $ac_status); } >/dev/null && {
25040 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25041 test ! -s conftest.err
25042 }; then
25043 ac_header_preproc=yes
25044else
25045 $as_echo "$as_me: failed program was:" >&5
25046sed 's/^/| /' conftest.$ac_ext >&5
25047
25048 ac_header_preproc=no
25049fi
25050
25051rm -f conftest.err conftest.$ac_ext
25052{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25053$as_echo "$ac_header_preproc" >&6; }
25054
25055# So? What about this header?
25056case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25057 yes:no: )
25058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25059$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25061$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25062 ac_header_preproc=yes
25063 ;;
25064 no:yes:* )
25065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25066$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25068$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25070$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25072$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25074$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25076$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25077
25078 ;;
25079esac
25080{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25081$as_echo_n "checking for $ac_header... " >&6; }
25082if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25083 $as_echo_n "(cached) " >&6
25084else
25085 eval "$as_ac_Header=\$ac_header_preproc"
25086fi
25087ac_res=`eval 'as_val=${'$as_ac_Header'}
25088 $as_echo "$as_val"'`
25089 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25090$as_echo "$ac_res" >&6; }
25091
25092fi
25093if test `eval 'as_val=${'$as_ac_Header'}
25094 $as_echo "$as_val"'` = yes; then
12998 cat >>confdefs.h <<_ACEOF 25095 cat >>confdefs.h <<_ACEOF
12999#define HAVE_VFORK_H 1 25096#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13000_ACEOF 25097_ACEOF
13001 25098
13002fi 25099fi
13003 25100
13004done 25101done
13005 25102
25103
25104
13006for ac_func in fork vfork 25105for ac_func in fork vfork
13007do : 25106do
13008 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 25107as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13009ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 25108{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13010eval as_val=\$$as_ac_var 25109$as_echo_n "checking for $ac_func... " >&6; }
13011 if test "x$as_val" = x""yes; then : 25110if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25111 $as_echo_n "(cached) " >&6
25112else
25113 cat >conftest.$ac_ext <<_ACEOF
25114/* confdefs.h. */
25115_ACEOF
25116cat confdefs.h >>conftest.$ac_ext
25117cat >>conftest.$ac_ext <<_ACEOF
25118/* end confdefs.h. */
25119/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25121#define $ac_func innocuous_$ac_func
25122
25123/* System header to define __stub macros and hopefully few prototypes,
25124 which can conflict with char $ac_func (); below.
25125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25126 <limits.h> exists even on freestanding compilers. */
25127
25128#ifdef __STDC__
25129# include <limits.h>
25130#else
25131# include <assert.h>
25132#endif
25133
25134#undef $ac_func
25135
25136/* Override any GCC internal prototype to avoid an error.
25137 Use char because int might match the return type of a GCC
25138 builtin and then its argument prototype would still apply. */
25139#ifdef __cplusplus
25140extern "C"
25141#endif
25142char $ac_func ();
25143/* The GNU C library defines this for functions which it implements
25144 to always fail with ENOSYS. Some functions are actually named
25145 something starting with __ and the normal name is an alias. */
25146#if defined __stub_$ac_func || defined __stub___$ac_func
25147choke me
25148#endif
25149
25150int
25151main ()
25152{
25153return $ac_func ();
25154 ;
25155 return 0;
25156}
25157_ACEOF
25158rm -f conftest.$ac_objext conftest$ac_exeext
25159if { (ac_try="$ac_link"
25160case "(($ac_try" in
25161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25162 *) ac_try_echo=$ac_try;;
25163esac
25164eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25165$as_echo "$ac_try_echo") >&5
25166 (eval "$ac_link") 2>conftest.er1
25167 ac_status=$?
25168 grep -v '^ *+' conftest.er1 >conftest.err
25169 rm -f conftest.er1
25170 cat conftest.err >&5
25171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172 (exit $ac_status); } && {
25173 test -z "$ac_c_werror_flag" ||
25174 test ! -s conftest.err
25175 } && test -s conftest$ac_exeext && {
25176 test "$cross_compiling" = yes ||
25177 $as_test_x conftest$ac_exeext
25178 }; then
25179 eval "$as_ac_var=yes"
25180else
25181 $as_echo "$as_me: failed program was:" >&5
25182sed 's/^/| /' conftest.$ac_ext >&5
25183
25184 eval "$as_ac_var=no"
25185fi
25186
25187rm -rf conftest.dSYM
25188rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25189 conftest$ac_exeext conftest.$ac_ext
25190fi
25191ac_res=`eval 'as_val=${'$as_ac_var'}
25192 $as_echo "$as_val"'`
25193 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25194$as_echo "$ac_res" >&6; }
25195if test `eval 'as_val=${'$as_ac_var'}
25196 $as_echo "$as_val"'` = yes; then
13012 cat >>confdefs.h <<_ACEOF 25197 cat >>confdefs.h <<_ACEOF
13013#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 25198#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13014_ACEOF 25199_ACEOF
@@ -13017,15 +25202,19 @@ fi
13017done 25202done
13018 25203
13019if test "x$ac_cv_func_fork" = xyes; then 25204if test "x$ac_cv_func_fork" = xyes; then
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 25205 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
13021$as_echo_n "checking for working fork... " >&6; } 25206$as_echo_n "checking for working fork... " >&6; }
13022if test "${ac_cv_func_fork_works+set}" = set; then : 25207if test "${ac_cv_func_fork_works+set}" = set; then
13023 $as_echo_n "(cached) " >&6 25208 $as_echo_n "(cached) " >&6
13024else 25209else
13025 if test "$cross_compiling" = yes; then : 25210 if test "$cross_compiling" = yes; then
13026 ac_cv_func_fork_works=cross 25211 ac_cv_func_fork_works=cross
13027else 25212else
13028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25213 cat >conftest.$ac_ext <<_ACEOF
25214/* confdefs.h. */
25215_ACEOF
25216cat confdefs.h >>conftest.$ac_ext
25217cat >>conftest.$ac_ext <<_ACEOF
13029/* end confdefs.h. */ 25218/* end confdefs.h. */
13030$ac_includes_default 25219$ac_includes_default
13031int 25220int
@@ -13039,17 +25228,44 @@ main ()
13039 return 0; 25228 return 0;
13040} 25229}
13041_ACEOF 25230_ACEOF
13042if ac_fn_c_try_run "$LINENO"; then : 25231rm -f conftest$ac_exeext
25232if { (ac_try="$ac_link"
25233case "(($ac_try" in
25234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25235 *) ac_try_echo=$ac_try;;
25236esac
25237eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25238$as_echo "$ac_try_echo") >&5
25239 (eval "$ac_link") 2>&5
25240 ac_status=$?
25241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25243 { (case "(($ac_try" in
25244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25245 *) ac_try_echo=$ac_try;;
25246esac
25247eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25248$as_echo "$ac_try_echo") >&5
25249 (eval "$ac_try") 2>&5
25250 ac_status=$?
25251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25252 (exit $ac_status); }; }; then
13043 ac_cv_func_fork_works=yes 25253 ac_cv_func_fork_works=yes
13044else 25254else
13045 ac_cv_func_fork_works=no 25255 $as_echo "$as_me: program exited with status $ac_status" >&5
25256$as_echo "$as_me: failed program was:" >&5
25257sed 's/^/| /' conftest.$ac_ext >&5
25258
25259( exit $ac_status )
25260ac_cv_func_fork_works=no
13046fi 25261fi
13047rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25262rm -rf conftest.dSYM
13048 conftest.$ac_objext conftest.beam conftest.$ac_ext 25263rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13049fi 25264fi
13050 25265
25266
13051fi 25267fi
13052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 25268{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
13053$as_echo "$ac_cv_func_fork_works" >&6; } 25269$as_echo "$ac_cv_func_fork_works" >&6; }
13054 25270
13055else 25271else
@@ -13065,20 +25281,24 @@ if test "x$ac_cv_func_fork_works" = xcross; then
13065 ac_cv_func_fork_works=yes 25281 ac_cv_func_fork_works=yes
13066 ;; 25282 ;;
13067 esac 25283 esac
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 25284 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13069$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 25285$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13070fi 25286fi
13071ac_cv_func_vfork_works=$ac_cv_func_vfork 25287ac_cv_func_vfork_works=$ac_cv_func_vfork
13072if test "x$ac_cv_func_vfork" = xyes; then 25288if test "x$ac_cv_func_vfork" = xyes; then
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 25289 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
13074$as_echo_n "checking for working vfork... " >&6; } 25290$as_echo_n "checking for working vfork... " >&6; }
13075if test "${ac_cv_func_vfork_works+set}" = set; then : 25291if test "${ac_cv_func_vfork_works+set}" = set; then
13076 $as_echo_n "(cached) " >&6 25292 $as_echo_n "(cached) " >&6
13077else 25293else
13078 if test "$cross_compiling" = yes; then : 25294 if test "$cross_compiling" = yes; then
13079 ac_cv_func_vfork_works=cross 25295 ac_cv_func_vfork_works=cross
13080else 25296else
13081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25297 cat >conftest.$ac_ext <<_ACEOF
25298/* confdefs.h. */
25299_ACEOF
25300cat confdefs.h >>conftest.$ac_ext
25301cat >>conftest.$ac_ext <<_ACEOF
13082/* end confdefs.h. */ 25302/* end confdefs.h. */
13083/* Thanks to Paul Eggert for this test. */ 25303/* Thanks to Paul Eggert for this test. */
13084$ac_includes_default 25304$ac_includes_default
@@ -13170,48 +25390,85 @@ main ()
13170 } 25390 }
13171} 25391}
13172_ACEOF 25392_ACEOF
13173if ac_fn_c_try_run "$LINENO"; then : 25393rm -f conftest$ac_exeext
25394if { (ac_try="$ac_link"
25395case "(($ac_try" in
25396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25397 *) ac_try_echo=$ac_try;;
25398esac
25399eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25400$as_echo "$ac_try_echo") >&5
25401 (eval "$ac_link") 2>&5
25402 ac_status=$?
25403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25405 { (case "(($ac_try" in
25406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25407 *) ac_try_echo=$ac_try;;
25408esac
25409eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25410$as_echo "$ac_try_echo") >&5
25411 (eval "$ac_try") 2>&5
25412 ac_status=$?
25413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25414 (exit $ac_status); }; }; then
13174 ac_cv_func_vfork_works=yes 25415 ac_cv_func_vfork_works=yes
13175else 25416else
13176 ac_cv_func_vfork_works=no 25417 $as_echo "$as_me: program exited with status $ac_status" >&5
25418$as_echo "$as_me: failed program was:" >&5
25419sed 's/^/| /' conftest.$ac_ext >&5
25420
25421( exit $ac_status )
25422ac_cv_func_vfork_works=no
13177fi 25423fi
13178rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25424rm -rf conftest.dSYM
13179 conftest.$ac_objext conftest.beam conftest.$ac_ext 25425rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13180fi 25426fi
13181 25427
25428
13182fi 25429fi
13183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 25430{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
13184$as_echo "$ac_cv_func_vfork_works" >&6; } 25431$as_echo "$ac_cv_func_vfork_works" >&6; }
13185 25432
13186fi; 25433fi;
13187if test "x$ac_cv_func_fork_works" = xcross; then 25434if test "x$ac_cv_func_fork_works" = xcross; then
13188 ac_cv_func_vfork_works=$ac_cv_func_vfork 25435 ac_cv_func_vfork_works=$ac_cv_func_vfork
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 25436 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13190$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 25437$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13191fi 25438fi
13192 25439
13193if test "x$ac_cv_func_vfork_works" = xyes; then 25440if test "x$ac_cv_func_vfork_works" = xyes; then
13194 25441
13195$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 25442cat >>confdefs.h <<\_ACEOF
25443#define HAVE_WORKING_VFORK 1
25444_ACEOF
13196 25445
13197else 25446else
13198 25447
13199$as_echo "#define vfork fork" >>confdefs.h 25448cat >>confdefs.h <<\_ACEOF
25449#define vfork fork
25450_ACEOF
13200 25451
13201fi 25452fi
13202if test "x$ac_cv_func_fork_works" = xyes; then 25453if test "x$ac_cv_func_fork_works" = xyes; then
13203 25454
13204$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 25455cat >>confdefs.h <<\_ACEOF
25456#define HAVE_WORKING_FORK 1
25457_ACEOF
13205 25458
13206fi 25459fi
13207 25460
13208 25461
13209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 25462{ $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13210$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 25463$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13211if test "${emacs_cv_langinfo_codeset+set}" = set; then : 25464if test "${emacs_cv_langinfo_codeset+set}" = set; then
13212 $as_echo_n "(cached) " >&6 25465 $as_echo_n "(cached) " >&6
13213else 25466else
13214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25467 cat >conftest.$ac_ext <<_ACEOF
25468/* confdefs.h. */
25469_ACEOF
25470cat confdefs.h >>conftest.$ac_ext
25471cat >>conftest.$ac_ext <<_ACEOF
13215/* end confdefs.h. */ 25472/* end confdefs.h. */
13216#include <langinfo.h> 25473#include <langinfo.h>
13217int 25474int
@@ -13222,25 +25479,145 @@ char* cs = nl_langinfo(CODESET);
13222 return 0; 25479 return 0;
13223} 25480}
13224_ACEOF 25481_ACEOF
13225if ac_fn_c_try_link "$LINENO"; then : 25482rm -f conftest.$ac_objext conftest$ac_exeext
25483if { (ac_try="$ac_link"
25484case "(($ac_try" in
25485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25486 *) ac_try_echo=$ac_try;;
25487esac
25488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25489$as_echo "$ac_try_echo") >&5
25490 (eval "$ac_link") 2>conftest.er1
25491 ac_status=$?
25492 grep -v '^ *+' conftest.er1 >conftest.err
25493 rm -f conftest.er1
25494 cat conftest.err >&5
25495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496 (exit $ac_status); } && {
25497 test -z "$ac_c_werror_flag" ||
25498 test ! -s conftest.err
25499 } && test -s conftest$ac_exeext && {
25500 test "$cross_compiling" = yes ||
25501 $as_test_x conftest$ac_exeext
25502 }; then
13226 emacs_cv_langinfo_codeset=yes 25503 emacs_cv_langinfo_codeset=yes
13227else 25504else
13228 emacs_cv_langinfo_codeset=no 25505 $as_echo "$as_me: failed program was:" >&5
25506sed 's/^/| /' conftest.$ac_ext >&5
25507
25508 emacs_cv_langinfo_codeset=no
13229fi 25509fi
13230rm -f core conftest.err conftest.$ac_objext \ 25510
13231 conftest$ac_exeext conftest.$ac_ext 25511rm -rf conftest.dSYM
25512rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25513 conftest$ac_exeext conftest.$ac_ext
13232 25514
13233fi 25515fi
13234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5 25516{ $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
13235$as_echo "$emacs_cv_langinfo_codeset" >&6; } 25517$as_echo "$emacs_cv_langinfo_codeset" >&6; }
13236if test $emacs_cv_langinfo_codeset = yes; then 25518if test $emacs_cv_langinfo_codeset = yes; then
13237 25519
13238$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 25520cat >>confdefs.h <<\_ACEOF
25521#define HAVE_LANGINFO_CODESET 1
25522_ACEOF
25523
25524fi
25525
25526{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
25527$as_echo_n "checking for size_t... " >&6; }
25528if test "${ac_cv_type_size_t+set}" = set; then
25529 $as_echo_n "(cached) " >&6
25530else
25531 ac_cv_type_size_t=no
25532cat >conftest.$ac_ext <<_ACEOF
25533/* confdefs.h. */
25534_ACEOF
25535cat confdefs.h >>conftest.$ac_ext
25536cat >>conftest.$ac_ext <<_ACEOF
25537/* end confdefs.h. */
25538$ac_includes_default
25539int
25540main ()
25541{
25542if (sizeof (size_t))
25543 return 0;
25544 ;
25545 return 0;
25546}
25547_ACEOF
25548rm -f conftest.$ac_objext
25549if { (ac_try="$ac_compile"
25550case "(($ac_try" in
25551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25552 *) ac_try_echo=$ac_try;;
25553esac
25554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25555$as_echo "$ac_try_echo") >&5
25556 (eval "$ac_compile") 2>conftest.er1
25557 ac_status=$?
25558 grep -v '^ *+' conftest.er1 >conftest.err
25559 rm -f conftest.er1
25560 cat conftest.err >&5
25561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25562 (exit $ac_status); } && {
25563 test -z "$ac_c_werror_flag" ||
25564 test ! -s conftest.err
25565 } && test -s conftest.$ac_objext; then
25566 cat >conftest.$ac_ext <<_ACEOF
25567/* confdefs.h. */
25568_ACEOF
25569cat confdefs.h >>conftest.$ac_ext
25570cat >>conftest.$ac_ext <<_ACEOF
25571/* end confdefs.h. */
25572$ac_includes_default
25573int
25574main ()
25575{
25576if (sizeof ((size_t)))
25577 return 0;
25578 ;
25579 return 0;
25580}
25581_ACEOF
25582rm -f conftest.$ac_objext
25583if { (ac_try="$ac_compile"
25584case "(($ac_try" in
25585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25586 *) ac_try_echo=$ac_try;;
25587esac
25588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25589$as_echo "$ac_try_echo") >&5
25590 (eval "$ac_compile") 2>conftest.er1
25591 ac_status=$?
25592 grep -v '^ *+' conftest.er1 >conftest.err
25593 rm -f conftest.er1
25594 cat conftest.err >&5
25595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25596 (exit $ac_status); } && {
25597 test -z "$ac_c_werror_flag" ||
25598 test ! -s conftest.err
25599 } && test -s conftest.$ac_objext; then
25600 :
25601else
25602 $as_echo "$as_me: failed program was:" >&5
25603sed 's/^/| /' conftest.$ac_ext >&5
25604
25605 ac_cv_type_size_t=yes
25606fi
25607
25608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25609else
25610 $as_echo "$as_me: failed program was:" >&5
25611sed 's/^/| /' conftest.$ac_ext >&5
25612
13239 25613
13240fi 25614fi
13241 25615
13242ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 25616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13243if test "x$ac_cv_type_size_t" = x""yes; then : 25617fi
25618{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25619$as_echo "$ac_cv_type_size_t" >&6; }
25620if test $ac_cv_type_size_t = yes; then
13244 25621
13245cat >>confdefs.h <<_ACEOF 25622cat >>confdefs.h <<_ACEOF
13246#define HAVE_SIZE_T 1 25623#define HAVE_SIZE_T 1
@@ -13250,12 +25627,16 @@ _ACEOF
13250fi 25627fi
13251 25628
13252 25629
13253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 25630{ $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
13254$as_echo_n "checking for mbstate_t... " >&6; } 25631$as_echo_n "checking for mbstate_t... " >&6; }
13255if test "${ac_cv_type_mbstate_t+set}" = set; then : 25632if test "${ac_cv_type_mbstate_t+set}" = set; then
13256 $as_echo_n "(cached) " >&6 25633 $as_echo_n "(cached) " >&6
13257else 25634else
13258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25635 cat >conftest.$ac_ext <<_ACEOF
25636/* confdefs.h. */
25637_ACEOF
25638cat confdefs.h >>conftest.$ac_ext
25639cat >>conftest.$ac_ext <<_ACEOF
13259/* end confdefs.h. */ 25640/* end confdefs.h. */
13260$ac_includes_default 25641$ac_includes_default
13261# include <wchar.h> 25642# include <wchar.h>
@@ -13267,31 +25648,60 @@ mbstate_t x; return sizeof x;
13267 return 0; 25648 return 0;
13268} 25649}
13269_ACEOF 25650_ACEOF
13270if ac_fn_c_try_compile "$LINENO"; then : 25651rm -f conftest.$ac_objext
25652if { (ac_try="$ac_compile"
25653case "(($ac_try" in
25654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25655 *) ac_try_echo=$ac_try;;
25656esac
25657eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25658$as_echo "$ac_try_echo") >&5
25659 (eval "$ac_compile") 2>conftest.er1
25660 ac_status=$?
25661 grep -v '^ *+' conftest.er1 >conftest.err
25662 rm -f conftest.er1
25663 cat conftest.err >&5
25664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25665 (exit $ac_status); } && {
25666 test -z "$ac_c_werror_flag" ||
25667 test ! -s conftest.err
25668 } && test -s conftest.$ac_objext; then
13271 ac_cv_type_mbstate_t=yes 25669 ac_cv_type_mbstate_t=yes
13272else 25670else
13273 ac_cv_type_mbstate_t=no 25671 $as_echo "$as_me: failed program was:" >&5
25672sed 's/^/| /' conftest.$ac_ext >&5
25673
25674 ac_cv_type_mbstate_t=no
13274fi 25675fi
25676
13275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13276fi 25678fi
13277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 25679{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
13278$as_echo "$ac_cv_type_mbstate_t" >&6; } 25680$as_echo "$ac_cv_type_mbstate_t" >&6; }
13279 if test $ac_cv_type_mbstate_t = yes; then 25681 if test $ac_cv_type_mbstate_t = yes; then
13280 25682
13281$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h 25683cat >>confdefs.h <<\_ACEOF
25684#define HAVE_MBSTATE_T 1
25685_ACEOF
13282 25686
13283 else 25687 else
13284 25688
13285$as_echo "#define mbstate_t int" >>confdefs.h 25689cat >>confdefs.h <<\_ACEOF
25690#define mbstate_t int
25691_ACEOF
13286 25692
13287 fi 25693 fi
13288 25694
13289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5 25695{ $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
13290$as_echo_n "checking for C restrict keyword... " >&6; } 25696$as_echo_n "checking for C restrict keyword... " >&6; }
13291if test "${emacs_cv_c_restrict+set}" = set; then : 25697if test "${emacs_cv_c_restrict+set}" = set; then
13292 $as_echo_n "(cached) " >&6 25698 $as_echo_n "(cached) " >&6
13293else 25699else
13294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25700 cat >conftest.$ac_ext <<_ACEOF
25701/* confdefs.h. */
25702_ACEOF
25703cat confdefs.h >>conftest.$ac_ext
25704cat >>conftest.$ac_ext <<_ACEOF
13295/* end confdefs.h. */ 25705/* end confdefs.h. */
13296void fred (int *restrict x); 25706void fred (int *restrict x);
13297int 25707int
@@ -13302,10 +25712,34 @@ main ()
13302 return 0; 25712 return 0;
13303} 25713}
13304_ACEOF 25714_ACEOF
13305if ac_fn_c_try_compile "$LINENO"; then : 25715rm -f conftest.$ac_objext
25716if { (ac_try="$ac_compile"
25717case "(($ac_try" in
25718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25719 *) ac_try_echo=$ac_try;;
25720esac
25721eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25722$as_echo "$ac_try_echo") >&5
25723 (eval "$ac_compile") 2>conftest.er1
25724 ac_status=$?
25725 grep -v '^ *+' conftest.er1 >conftest.err
25726 rm -f conftest.er1
25727 cat conftest.err >&5
25728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25729 (exit $ac_status); } && {
25730 test -z "$ac_c_werror_flag" ||
25731 test ! -s conftest.err
25732 } && test -s conftest.$ac_objext; then
13306 emacs_cv_c_restrict=yes 25733 emacs_cv_c_restrict=yes
13307else 25734else
13308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25735 $as_echo "$as_me: failed program was:" >&5
25736sed 's/^/| /' conftest.$ac_ext >&5
25737
25738 cat >conftest.$ac_ext <<_ACEOF
25739/* confdefs.h. */
25740_ACEOF
25741cat confdefs.h >>conftest.$ac_ext
25742cat >>conftest.$ac_ext <<_ACEOF
13309/* end confdefs.h. */ 25743/* end confdefs.h. */
13310void fred (int *__restrict x); 25744void fred (int *__restrict x);
13311int 25745int
@@ -13316,16 +25750,38 @@ main ()
13316 return 0; 25750 return 0;
13317} 25751}
13318_ACEOF 25752_ACEOF
13319if ac_fn_c_try_compile "$LINENO"; then : 25753rm -f conftest.$ac_objext
25754if { (ac_try="$ac_compile"
25755case "(($ac_try" in
25756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25757 *) ac_try_echo=$ac_try;;
25758esac
25759eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25760$as_echo "$ac_try_echo") >&5
25761 (eval "$ac_compile") 2>conftest.er1
25762 ac_status=$?
25763 grep -v '^ *+' conftest.er1 >conftest.err
25764 rm -f conftest.er1
25765 cat conftest.err >&5
25766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767 (exit $ac_status); } && {
25768 test -z "$ac_c_werror_flag" ||
25769 test ! -s conftest.err
25770 } && test -s conftest.$ac_objext; then
13320 emacs_cv_c_restrict=__restrict 25771 emacs_cv_c_restrict=__restrict
13321else 25772else
13322 emacs_cv_c_restrict=no 25773 $as_echo "$as_me: failed program was:" >&5
25774sed 's/^/| /' conftest.$ac_ext >&5
25775
25776 emacs_cv_c_restrict=no
13323fi 25777fi
25778
13324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13325fi 25780fi
25781
13326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13327fi 25783fi
13328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5 25784{ $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
13329$as_echo "$emacs_cv_c_restrict" >&6; } 25785$as_echo "$emacs_cv_c_restrict" >&6; }
13330case "$emacs_cv_c_restrict" in 25786case "$emacs_cv_c_restrict" in
13331 yes) emacs_restrict=restrict;; 25787 yes) emacs_restrict=restrict;;
@@ -13340,12 +25796,16 @@ _ACEOF
13340 25796
13341fi 25797fi
13342 25798
13343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5 25799{ $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
13344$as_echo_n "checking for C restricted array declarations... " >&6; } 25800$as_echo_n "checking for C restricted array declarations... " >&6; }
13345if test "${emacs_cv_c_restrict_arr+set}" = set; then : 25801if test "${emacs_cv_c_restrict_arr+set}" = set; then
13346 $as_echo_n "(cached) " >&6 25802 $as_echo_n "(cached) " >&6
13347else 25803else
13348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25804 cat >conftest.$ac_ext <<_ACEOF
25805/* confdefs.h. */
25806_ACEOF
25807cat confdefs.h >>conftest.$ac_ext
25808cat >>conftest.$ac_ext <<_ACEOF
13349/* end confdefs.h. */ 25809/* end confdefs.h. */
13350void fred (int x[__restrict]); 25810void fred (int x[__restrict]);
13351int 25811int
@@ -13356,18 +25816,41 @@ main ()
13356 return 0; 25816 return 0;
13357} 25817}
13358_ACEOF 25818_ACEOF
13359if ac_fn_c_try_compile "$LINENO"; then : 25819rm -f conftest.$ac_objext
25820if { (ac_try="$ac_compile"
25821case "(($ac_try" in
25822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25823 *) ac_try_echo=$ac_try;;
25824esac
25825eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25826$as_echo "$ac_try_echo") >&5
25827 (eval "$ac_compile") 2>conftest.er1
25828 ac_status=$?
25829 grep -v '^ *+' conftest.er1 >conftest.err
25830 rm -f conftest.er1
25831 cat conftest.err >&5
25832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25833 (exit $ac_status); } && {
25834 test -z "$ac_c_werror_flag" ||
25835 test ! -s conftest.err
25836 } && test -s conftest.$ac_objext; then
13360 emacs_cv_c_restrict_arr=yes 25837 emacs_cv_c_restrict_arr=yes
13361else 25838else
13362 emacs_cv_c_restrict_arr=no 25839 $as_echo "$as_me: failed program was:" >&5
25840sed 's/^/| /' conftest.$ac_ext >&5
25841
25842 emacs_cv_c_restrict_arr=no
13363fi 25843fi
25844
13364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13365fi 25846fi
13366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5 25847{ $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
13367$as_echo "$emacs_cv_c_restrict_arr" >&6; } 25848$as_echo "$emacs_cv_c_restrict_arr" >&6; }
13368if test "$emacs_cv_c_restrict_arr" = yes; then 25849if test "$emacs_cv_c_restrict_arr" = yes; then
13369 25850
13370$as_echo "#define __restrict_arr __restrict" >>confdefs.h 25851cat >>confdefs.h <<\_ACEOF
25852#define __restrict_arr __restrict
25853_ACEOF
13371 25854
13372fi 25855fi
13373 25856
@@ -13381,10 +25864,12 @@ CPPFLAGS="$REAL_CPPFLAGS"
13381version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ 25864version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
13382 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` 25865 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
13383if test x"${version}" = x; then 25866if test x"${version}" = x; then
13384 as_fn_error "can't find current emacs version in \`${srcdir}/lisp/version.el'." "$LINENO" 5 25867 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25868$as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25869 { (exit 1); exit 1; }; }
13385fi 25870fi
13386if test x"${version}" != x"$PACKAGE_VERSION"; then 25871if test x"${version}" != x"$PACKAGE_VERSION"; then
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5 25872 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
13388$as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;} 25873$as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
13389fi 25874fi
13390 25875
@@ -13478,7 +25963,9 @@ XMENU_OBJ=
13478XOBJ= 25963XOBJ=
13479if test "${HAVE_X_WINDOWS}" = "yes" ; then 25964if test "${HAVE_X_WINDOWS}" = "yes" ; then
13480 25965
13481$as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h 25966cat >>confdefs.h <<\_ACEOF
25967#define HAVE_X_WINDOWS 1
25968_ACEOF
13482 25969
13483 XMENU_OBJ=xmenu.o 25970 XMENU_OBJ=xmenu.o
13484 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o" 25971 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
@@ -13486,44 +25973,63 @@ fi
13486 25973
13487 25974
13488 25975
25976WIDGET_OBJ=
13489if test "${USE_X_TOOLKIT}" != "none" ; then 25977if test "${USE_X_TOOLKIT}" != "none" ; then
25978 WIDGET_OBJ=widget.o
13490 25979
13491$as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h 25980cat >>confdefs.h <<\_ACEOF
25981#define USE_X_TOOLKIT 1
25982_ACEOF
13492 25983
13493 if test "${USE_X_TOOLKIT}" = "LUCID"; then 25984 if test "${USE_X_TOOLKIT}" = "LUCID"; then
13494 25985
13495$as_echo "#define USE_LUCID 1" >>confdefs.h 25986cat >>confdefs.h <<\_ACEOF
25987#define USE_LUCID 1
25988_ACEOF
13496 25989
13497 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then 25990 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
13498 25991
13499$as_echo "#define USE_MOTIF 1" >>confdefs.h 25992cat >>confdefs.h <<\_ACEOF
25993#define USE_MOTIF 1
25994_ACEOF
13500 25995
13501 fi 25996 fi
13502fi 25997fi
25998
13503if test "${HAVE_X11}" = "yes" ; then 25999if test "${HAVE_X11}" = "yes" ; then
13504 26000
13505$as_echo "#define HAVE_X11 1" >>confdefs.h 26001cat >>confdefs.h <<\_ACEOF
26002#define HAVE_X11 1
26003_ACEOF
13506 26004
13507fi 26005fi
13508if test "${HAVE_MENUS}" = "yes" ; then 26006if test "${HAVE_MENUS}" = "yes" ; then
13509 26007
13510$as_echo "#define HAVE_MENUS 1" >>confdefs.h 26008cat >>confdefs.h <<\_ACEOF
26009#define HAVE_MENUS 1
26010_ACEOF
13511 26011
13512fi 26012fi
13513if test "${GNU_MALLOC}" = "yes" ; then 26013if test "${GNU_MALLOC}" = "yes" ; then
13514 26014
13515$as_echo "#define GNU_MALLOC 1" >>confdefs.h 26015cat >>confdefs.h <<\_ACEOF
26016#define GNU_MALLOC 1
26017_ACEOF
13516 26018
13517fi 26019fi
13518if test "${REL_ALLOC}" = "yes" ; then 26020if test "${REL_ALLOC}" = "yes" ; then
13519 26021
13520$as_echo "#define REL_ALLOC 1" >>confdefs.h 26022cat >>confdefs.h <<\_ACEOF
26023#define REL_ALLOC 1
26024_ACEOF
13521 26025
13522fi 26026fi
13523 26027
13524 26028
13525 26029
13526 26030
26031
26032
13527#### Report on what we decided to do. 26033#### Report on what we decided to do.
13528#### Report GTK as a toolkit, even if it doesn't use Xt. 26034#### Report GTK as a toolkit, even if it doesn't use Xt.
13529#### It makes printing result more understandable as using GTK sets 26035#### It makes printing result more understandable as using GTK sets
@@ -13625,12 +26131,16 @@ cpp_undefs="`echo $srcdir $configuration $canonical unix |
13625## from Makefile.c can correctly provide the arg `-traditional' to the 26131## from Makefile.c can correctly provide the arg `-traditional' to the
13626## C preprocessor. 26132## C preprocessor.
13627 26133
13628cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26134cat >conftest.$ac_ext <<_ACEOF
26135/* confdefs.h. */
26136_ACEOF
26137cat confdefs.h >>conftest.$ac_ext
26138cat >>conftest.$ac_ext <<_ACEOF
13629/* end confdefs.h. */ 26139/* end confdefs.h. */
13630yes..yes 26140yes..yes
13631_ACEOF 26141_ACEOF
13632if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26142if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13633 $EGREP "yes..yes" >/dev/null 2>&1; then : 26143 $EGREP "yes..yes" >/dev/null 2>&1; then
13634 CPP_NEED_TRADITIONAL=no 26144 CPP_NEED_TRADITIONAL=no
13635else 26145else
13636 CPP_NEED_TRADITIONAL=yes 26146 CPP_NEED_TRADITIONAL=yes
@@ -13669,13 +26179,13 @@ _ACEOF
13669 case $ac_val in #( 26179 case $ac_val in #(
13670 *${as_nl}*) 26180 *${as_nl}*)
13671 case $ac_var in #( 26181 case $ac_var in #(
13672 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 26182 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13673$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 26183$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13674 esac 26184 esac
13675 case $ac_var in #( 26185 case $ac_var in #(
13676 _ | IFS | as_nl) ;; #( 26186 _ | IFS | as_nl) ;; #(
13677 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 26187 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13678 *) { eval $ac_var=; unset $ac_var;} ;; 26188 *) $as_unset $ac_var ;;
13679 esac ;; 26189 esac ;;
13680 esac 26190 esac
13681 done 26191 done
@@ -13683,8 +26193,8 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13683 (set) 2>&1 | 26193 (set) 2>&1 |
13684 case $as_nl`(ac_space=' '; set) 2>&1` in #( 26194 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13685 *${as_nl}ac_space=\ *) 26195 *${as_nl}ac_space=\ *)
13686 # `set' does not quote correctly, so add quotes: double-quote 26196 # `set' does not quote correctly, so add quotes (double-quote
13687 # substitution turns \\\\ into \\, and sed turns \\ into \. 26197 # substitution turns \\\\ into \\, and sed turns \\ into \).
13688 sed -n \ 26198 sed -n \
13689 "s/'/'\\\\''/g; 26199 "s/'/'\\\\''/g;
13690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 26200 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
@@ -13707,11 +26217,11 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13707if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 26217if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13708 if test -w "$cache_file"; then 26218 if test -w "$cache_file"; then
13709 test "x$cache_file" != "x/dev/null" && 26219 test "x$cache_file" != "x/dev/null" &&
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 26220 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13711$as_echo "$as_me: updating cache $cache_file" >&6;} 26221$as_echo "$as_me: updating cache $cache_file" >&6;}
13712 cat confcache >$cache_file 26222 cat confcache >$cache_file
13713 else 26223 else
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 26224 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13715$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 26225$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13716 fi 26226 fi
13717fi 26227fi
@@ -13731,8 +26241,8 @@ for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13731 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 26241 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13732 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 26242 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13733 # will be set to the directory where LIBOBJS objects are built. 26243 # will be set to the directory where LIBOBJS objects are built.
13734 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 26244 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13735 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 26245 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13736done 26246done
13737LIBOBJS=$ac_libobjs 26247LIBOBJS=$ac_libobjs
13738 26248
@@ -13744,10 +26254,9 @@ LTLIBOBJS=$ac_ltlibobjs
13744ac_write_fail=0 26254ac_write_fail=0
13745ac_clean_files_save=$ac_clean_files 26255ac_clean_files_save=$ac_clean_files
13746ac_clean_files="$ac_clean_files $CONFIG_STATUS" 26256ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13747{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 26257{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13748$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 26258$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13749as_write_fail=0 26259cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13750cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13751#! $SHELL 26260#! $SHELL
13752# Generated by $as_me. 26261# Generated by $as_me.
13753# Run this file to recreate the current configuration. 26262# Run this file to recreate the current configuration.
@@ -13757,18 +26266,17 @@ cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13757debug=false 26266debug=false
13758ac_cs_recheck=false 26267ac_cs_recheck=false
13759ac_cs_silent=false 26268ac_cs_silent=false
13760
13761SHELL=\${CONFIG_SHELL-$SHELL} 26269SHELL=\${CONFIG_SHELL-$SHELL}
13762export SHELL 26270_ACEOF
13763_ASEOF 26271
13764cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 26272cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13765## -------------------- ## 26273## --------------------- ##
13766## M4sh Initialization. ## 26274## M4sh Initialization. ##
13767## -------------------- ## 26275## --------------------- ##
13768 26276
13769# Be more Bourne compatible 26277# Be more Bourne compatible
13770DUALCASE=1; export DUALCASE # for MKS sh 26278DUALCASE=1; export DUALCASE # for MKS sh
13771if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 26279if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13772 emulate sh 26280 emulate sh
13773 NULLCMD=: 26281 NULLCMD=:
13774 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26282 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
@@ -13776,15 +26284,23 @@ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13776 alias -g '${1+"$@"}'='"$@"' 26284 alias -g '${1+"$@"}'='"$@"'
13777 setopt NO_GLOB_SUBST 26285 setopt NO_GLOB_SUBST
13778else 26286else
13779 case `(set -o) 2>/dev/null` in #( 26287 case `(set -o) 2>/dev/null` in
13780 *posix*) : 26288 *posix*) set -o posix ;;
13781 set -o posix ;; #(
13782 *) :
13783 ;;
13784esac 26289esac
26290
13785fi 26291fi
13786 26292
13787 26293
26294
26295
26296# PATH needs CR
26297# Avoid depending upon Character Ranges.
26298as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26299as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26300as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26301as_cr_digits='0123456789'
26302as_cr_alnum=$as_cr_Letters$as_cr_digits
26303
13788as_nl=' 26304as_nl='
13789' 26305'
13790export as_nl 26306export as_nl
@@ -13792,13 +26308,7 @@ export as_nl
13792as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 26308as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13793as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 26309as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13794as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 26310as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13795# Prefer a ksh shell builtin over an external printf program on Solaris, 26311if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13796# but without wasting forks for bash or zsh.
13797if test -z "$BASH_VERSION$ZSH_VERSION" \
13798 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13799 as_echo='print -r --'
13800 as_echo_n='print -rn --'
13801elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13802 as_echo='printf %s\n' 26312 as_echo='printf %s\n'
13803 as_echo_n='printf %s' 26313 as_echo_n='printf %s'
13804else 26314else
@@ -13809,7 +26319,7 @@ else
13809 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 26319 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13810 as_echo_n_body='eval 26320 as_echo_n_body='eval
13811 arg=$1; 26321 arg=$1;
13812 case $arg in #( 26322 case $arg in
13813 *"$as_nl"*) 26323 *"$as_nl"*)
13814 expr "X$arg" : "X\\(.*\\)$as_nl"; 26324 expr "X$arg" : "X\\(.*\\)$as_nl";
13815 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 26325 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
@@ -13832,6 +26342,13 @@ if test "${PATH_SEPARATOR+set}" != set; then
13832 } 26342 }
13833fi 26343fi
13834 26344
26345# Support unset when possible.
26346if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26347 as_unset=unset
26348else
26349 as_unset=false
26350fi
26351
13835 26352
13836# IFS 26353# IFS
13837# We need space, tab and new line, in precisely that order. Quoting is 26354# We need space, tab and new line, in precisely that order. Quoting is
@@ -13841,15 +26358,15 @@ fi
13841IFS=" "" $as_nl" 26358IFS=" "" $as_nl"
13842 26359
13843# Find who we are. Look in the path if we contain no directory separator. 26360# Find who we are. Look in the path if we contain no directory separator.
13844case $0 in #(( 26361case $0 in
13845 *[\\/]* ) as_myself=$0 ;; 26362 *[\\/]* ) as_myself=$0 ;;
13846 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26363 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13847for as_dir in $PATH 26364for as_dir in $PATH
13848do 26365do
13849 IFS=$as_save_IFS 26366 IFS=$as_save_IFS
13850 test -z "$as_dir" && as_dir=. 26367 test -z "$as_dir" && as_dir=.
13851 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 26368 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13852 done 26369done
13853IFS=$as_save_IFS 26370IFS=$as_save_IFS
13854 26371
13855 ;; 26372 ;;
@@ -13861,16 +26378,12 @@ if test "x$as_myself" = x; then
13861fi 26378fi
13862if test ! -f "$as_myself"; then 26379if test ! -f "$as_myself"; then
13863 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 26380 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13864 exit 1 26381 { (exit 1); exit 1; }
13865fi 26382fi
13866 26383
13867# Unset variables that we do not need and which cause bugs (e.g. in 26384# Work around bugs in pre-3.0 UWIN ksh.
13868# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 26385for as_var in ENV MAIL MAILPATH
13869# suppresses any "Segmentation fault" message there. '((' could 26386do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13870# trigger a bug in pdksh 5.2.14.
13871for as_var in BASH_ENV ENV MAIL MAILPATH
13872do eval test x\${$as_var+set} = xset \
13873 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13874done 26387done
13875PS1='$ ' 26388PS1='$ '
13876PS2='> ' 26389PS2='> '
@@ -13882,89 +26395,7 @@ export LC_ALL
13882LANGUAGE=C 26395LANGUAGE=C
13883export LANGUAGE 26396export LANGUAGE
13884 26397
13885# CDPATH. 26398# Required to use basename.
13886(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13887
13888
13889# as_fn_error ERROR [LINENO LOG_FD]
13890# ---------------------------------
13891# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13892# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13893# script with status $?, using 1 if that was 0.
13894as_fn_error ()
13895{
13896 as_status=$?; test $as_status -eq 0 && as_status=1
13897 if test "$3"; then
13898 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13899 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13900 fi
13901 $as_echo "$as_me: error: $1" >&2
13902 as_fn_exit $as_status
13903} # as_fn_error
13904
13905
13906# as_fn_set_status STATUS
13907# -----------------------
13908# Set $? to STATUS, without forking.
13909as_fn_set_status ()
13910{
13911 return $1
13912} # as_fn_set_status
13913
13914# as_fn_exit STATUS
13915# -----------------
13916# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13917as_fn_exit ()
13918{
13919 set +e
13920 as_fn_set_status $1
13921 exit $1
13922} # as_fn_exit
13923
13924# as_fn_unset VAR
13925# ---------------
13926# Portably unset VAR.
13927as_fn_unset ()
13928{
13929 { eval $1=; unset $1;}
13930}
13931as_unset=as_fn_unset
13932# as_fn_append VAR VALUE
13933# ----------------------
13934# Append the text in VALUE to the end of the definition contained in VAR. Take
13935# advantage of any shell optimizations that allow amortized linear growth over
13936# repeated appends, instead of the typical quadratic growth present in naive
13937# implementations.
13938if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13939 eval 'as_fn_append ()
13940 {
13941 eval $1+=\$2
13942 }'
13943else
13944 as_fn_append ()
13945 {
13946 eval $1=\$$1\$2
13947 }
13948fi # as_fn_append
13949
13950# as_fn_arith ARG...
13951# ------------------
13952# Perform arithmetic evaluation on the ARGs, and store the result in the
13953# global $as_val. Take advantage of shells that can avoid forks. The arguments
13954# must be portable across $(()) and expr.
13955if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13956 eval 'as_fn_arith ()
13957 {
13958 as_val=$(( $* ))
13959 }'
13960else
13961 as_fn_arith ()
13962 {
13963 as_val=`expr "$@" || test $? -eq 1`
13964 }
13965fi # as_fn_arith
13966
13967
13968if expr a : '\(a\)' >/dev/null 2>&1 && 26399if expr a : '\(a\)' >/dev/null 2>&1 &&
13969 test "X`expr 00001 : '.*\(...\)'`" = X001; then 26400 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13970 as_expr=expr 26401 as_expr=expr
@@ -13978,12 +26409,8 @@ else
13978 as_basename=false 26409 as_basename=false
13979fi 26410fi
13980 26411
13981if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13982 as_dirname=dirname
13983else
13984 as_dirname=false
13985fi
13986 26412
26413# Name of the executable.
13987as_me=`$as_basename -- "$0" || 26414as_me=`$as_basename -- "$0" ||
13988$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 26415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13989 X"$0" : 'X\(//\)$' \| \ 26416 X"$0" : 'X\(//\)$' \| \
@@ -14003,25 +26430,76 @@ $as_echo X/"$0" |
14003 } 26430 }
14004 s/.*/./; q'` 26431 s/.*/./; q'`
14005 26432
14006# Avoid depending upon Character Ranges. 26433# CDPATH.
14007as_cr_letters='abcdefghijklmnopqrstuvwxyz' 26434$as_unset CDPATH
14008as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 26435
14009as_cr_Letters=$as_cr_letters$as_cr_LETTERS 26436
14010as_cr_digits='0123456789' 26437
14011as_cr_alnum=$as_cr_Letters$as_cr_digits 26438 as_lineno_1=$LINENO
26439 as_lineno_2=$LINENO
26440 test "x$as_lineno_1" != "x$as_lineno_2" &&
26441 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26442
26443 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26444 # uniformly replaced by the line number. The first 'sed' inserts a
26445 # line-number line after each line using $LINENO; the second 'sed'
26446 # does the real work. The second script uses 'N' to pair each
26447 # line-number line with the line containing $LINENO, and appends
26448 # trailing '-' during substitution so that $LINENO is not a special
26449 # case at line end.
26450 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26451 # scripts with optimization help from Paolo Bonzini. Blame Lee
26452 # E. McMahon (1931-1989) for sed's syntax. :-)
26453 sed -n '
26454 p
26455 /[$]LINENO/=
26456 ' <$as_myself |
26457 sed '
26458 s/[$]LINENO.*/&-/
26459 t lineno
26460 b
26461 :lineno
26462 N
26463 :loop
26464 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26465 t loop
26466 s/-\n.*//
26467 ' >$as_me.lineno &&
26468 chmod +x "$as_me.lineno" ||
26469 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26470 { (exit 1); exit 1; }; }
26471
26472 # Don't try to exec as it changes $[0], causing all sort of problems
26473 # (the dirname of $[0] is not the place where we might find the
26474 # original and so on. Autoconf is especially sensitive to this).
26475 . "./$as_me.lineno"
26476 # Exit status is that of the last command.
26477 exit
26478}
26479
26480
26481if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26482 as_dirname=dirname
26483else
26484 as_dirname=false
26485fi
14012 26486
14013ECHO_C= ECHO_N= ECHO_T= 26487ECHO_C= ECHO_N= ECHO_T=
14014case `echo -n x` in #((((( 26488case `echo -n x` in
14015-n*) 26489-n*)
14016 case `echo 'xy\c'` in 26490 case `echo 'x\c'` in
14017 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 26491 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14018 xy) ECHO_C='\c';; 26492 *) ECHO_C='\c';;
14019 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14020 ECHO_T=' ';;
14021 esac;; 26493 esac;;
14022*) 26494*)
14023 ECHO_N='-n';; 26495 ECHO_N='-n';;
14024esac 26496esac
26497if expr a : '\(a\)' >/dev/null 2>&1 &&
26498 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26499 as_expr=expr
26500else
26501 as_expr=false
26502fi
14025 26503
14026rm -f conf$$ conf$$.exe conf$$.file 26504rm -f conf$$ conf$$.exe conf$$.file
14027if test -d conf$$.dir; then 26505if test -d conf$$.dir; then
@@ -14050,56 +26528,8 @@ fi
14050rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 26528rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14051rmdir conf$$.dir 2>/dev/null 26529rmdir conf$$.dir 2>/dev/null
14052 26530
14053
14054# as_fn_mkdir_p
14055# -------------
14056# Create "$as_dir" as a directory, including parents if necessary.
14057as_fn_mkdir_p ()
14058{
14059
14060 case $as_dir in #(
14061 -*) as_dir=./$as_dir;;
14062 esac
14063 test -d "$as_dir" || eval $as_mkdir_p || {
14064 as_dirs=
14065 while :; do
14066 case $as_dir in #(
14067 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14068 *) as_qdir=$as_dir;;
14069 esac
14070 as_dirs="'$as_qdir' $as_dirs"
14071 as_dir=`$as_dirname -- "$as_dir" ||
14072$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14073 X"$as_dir" : 'X\(//\)[^/]' \| \
14074 X"$as_dir" : 'X\(//\)$' \| \
14075 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14076$as_echo X"$as_dir" |
14077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14078 s//\1/
14079 q
14080 }
14081 /^X\(\/\/\)[^/].*/{
14082 s//\1/
14083 q
14084 }
14085 /^X\(\/\/\)$/{
14086 s//\1/
14087 q
14088 }
14089 /^X\(\/\).*/{
14090 s//\1/
14091 q
14092 }
14093 s/.*/./; q'`
14094 test -d "$as_dir" && break
14095 done
14096 test -z "$as_dirs" || eval "mkdir $as_dirs"
14097 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14098
14099
14100} # as_fn_mkdir_p
14101if mkdir -p . 2>/dev/null; then 26531if mkdir -p . 2>/dev/null; then
14102 as_mkdir_p='mkdir -p "$as_dir"' 26532 as_mkdir_p=:
14103else 26533else
14104 test -d ./-p && rmdir ./-p 26534 test -d ./-p && rmdir ./-p
14105 as_mkdir_p=false 26535 as_mkdir_p=false
@@ -14118,10 +26548,10 @@ else
14118 if test -d "$1"; then 26548 if test -d "$1"; then
14119 test -d "$1/."; 26549 test -d "$1/.";
14120 else 26550 else
14121 case $1 in #( 26551 case $1 in
14122 -*)set "./$1";; 26552 -*)set "./$1";;
14123 esac; 26553 esac;
14124 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 26554 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14125 ???[sx]*):;;*)false;;esac;fi 26555 ???[sx]*):;;*)false;;esac;fi
14126 '\'' sh 26556 '\'' sh
14127 ' 26557 '
@@ -14136,19 +26566,13 @@ as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14136 26566
14137 26567
14138exec 6>&1 26568exec 6>&1
14139## ----------------------------------- ##
14140## Main body of $CONFIG_STATUS script. ##
14141## ----------------------------------- ##
14142_ASEOF
14143test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14144 26569
14145cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26570# Save the log message, to keep $[0] and so on meaningful, and to
14146# Save the log message, to keep $0 and so on meaningful, and to
14147# report actual input values of CONFIG_FILES etc. instead of their 26571# report actual input values of CONFIG_FILES etc. instead of their
14148# values after options handling. 26572# values after options handling.
14149ac_log=" 26573ac_log="
14150This file was extended by emacs $as_me 24.0.50, which was 26574This file was extended by emacs $as_me 24.0.50, which was
14151generated by GNU Autoconf 2.65. Invocation command line was 26575generated by GNU Autoconf 2.62. Invocation command line was
14152 26576
14153 CONFIG_FILES = $CONFIG_FILES 26577 CONFIG_FILES = $CONFIG_FILES
14154 CONFIG_HEADERS = $CONFIG_HEADERS 26578 CONFIG_HEADERS = $CONFIG_HEADERS
@@ -14161,15 +26585,6 @@ on `(hostname || uname -n) 2>/dev/null | sed 1q`
14161 26585
14162_ACEOF 26586_ACEOF
14163 26587
14164case $ac_config_files in *"
14165"*) set x $ac_config_files; shift; ac_config_files=$*;;
14166esac
14167
14168case $ac_config_headers in *"
14169"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14170esac
14171
14172
14173cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26588cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14174# Files that config.status was made for. 26589# Files that config.status was made for.
14175config_files="$ac_config_files" 26590config_files="$ac_config_files"
@@ -14180,22 +26595,19 @@ _ACEOF
14180 26595
14181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14182ac_cs_usage="\ 26597ac_cs_usage="\
14183\`$as_me' instantiates files and other configuration actions 26598\`$as_me' instantiates files from templates according to the
14184from templates according to the current configuration. Unless the files 26599current configuration.
14185and actions are specified as TAGs, all are instantiated by default.
14186 26600
14187Usage: $0 [OPTION]... [TAG]... 26601Usage: $0 [OPTIONS] [FILE]...
14188 26602
14189 -h, --help print this help, then exit 26603 -h, --help print this help, then exit
14190 -V, --version print version number and configuration settings, then exit 26604 -V, --version print version number and configuration settings, then exit
14191 --config print configuration, then exit 26605 -q, --quiet do not print progress messages
14192 -q, --quiet, --silent
14193 do not print progress messages
14194 -d, --debug don't remove temporary files 26606 -d, --debug don't remove temporary files
14195 --recheck update $as_me by reconfiguring in the same conditions 26607 --recheck update $as_me by reconfiguring in the same conditions
14196 --file=FILE[:TEMPLATE] 26608 --file=FILE[:TEMPLATE]
14197 instantiate the configuration file FILE 26609 instantiate the configuration file FILE
14198 --header=FILE[:TEMPLATE] 26610 --header=FILE[:TEMPLATE]
14199 instantiate the configuration header FILE 26611 instantiate the configuration header FILE
14200 26612
14201Configuration files: 26613Configuration files:
@@ -14207,17 +26619,16 @@ $config_headers
14207Configuration commands: 26619Configuration commands:
14208$config_commands 26620$config_commands
14209 26621
14210Report bugs to the package provider." 26622Report bugs to <bug-autoconf@gnu.org>."
14211 26623
14212_ACEOF 26624_ACEOF
14213cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26625cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14214ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14215ac_cs_version="\\ 26626ac_cs_version="\\
14216emacs config.status 24.0.50 26627emacs config.status 24.0.50
14217configured by $0, generated by GNU Autoconf 2.65, 26628configured by $0, generated by GNU Autoconf 2.62,
14218 with options \\"\$ac_cs_config\\" 26629 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14219 26630
14220Copyright (C) 2009 Free Software Foundation, Inc. 26631Copyright (C) 2008 Free Software Foundation, Inc.
14221This config.status script is free software; the Free Software Foundation 26632This config.status script is free software; the Free Software Foundation
14222gives unlimited permission to copy, distribute and modify it." 26633gives unlimited permission to copy, distribute and modify it."
14223 26634
@@ -14251,8 +26662,6 @@ do
14251 ac_cs_recheck=: ;; 26662 ac_cs_recheck=: ;;
14252 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 26663 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14253 $as_echo "$ac_cs_version"; exit ;; 26664 $as_echo "$ac_cs_version"; exit ;;
14254 --config | --confi | --conf | --con | --co | --c )
14255 $as_echo "$ac_cs_config"; exit ;;
14256 --debug | --debu | --deb | --de | --d | -d ) 26665 --debug | --debu | --deb | --de | --d | -d )
14257 debug=: ;; 26666 debug=: ;;
14258 --file | --fil | --fi | --f ) 26667 --file | --fil | --fi | --f )
@@ -14260,19 +26669,20 @@ do
14260 case $ac_optarg in 26669 case $ac_optarg in
14261 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 26670 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14262 esac 26671 esac
14263 as_fn_append CONFIG_FILES " '$ac_optarg'" 26672 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14264 ac_need_defaults=false;; 26673 ac_need_defaults=false;;
14265 --header | --heade | --head | --hea ) 26674 --header | --heade | --head | --hea )
14266 $ac_shift 26675 $ac_shift
14267 case $ac_optarg in 26676 case $ac_optarg in
14268 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 26677 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14269 esac 26678 esac
14270 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 26679 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14271 ac_need_defaults=false;; 26680 ac_need_defaults=false;;
14272 --he | --h) 26681 --he | --h)
14273 # Conflict between --help and --header 26682 # Conflict between --help and --header
14274 as_fn_error "ambiguous option: \`$1' 26683 { $as_echo "$as_me: error: ambiguous option: $1
14275Try \`$0 --help' for more information.";; 26684Try \`$0 --help' for more information." >&2
26685 { (exit 1); exit 1; }; };;
14276 --help | --hel | -h ) 26686 --help | --hel | -h )
14277 $as_echo "$ac_cs_usage"; exit ;; 26687 $as_echo "$ac_cs_usage"; exit ;;
14278 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 26688 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
@@ -14280,10 +26690,11 @@ Try \`$0 --help' for more information.";;
14280 ac_cs_silent=: ;; 26690 ac_cs_silent=: ;;
14281 26691
14282 # This is an error. 26692 # This is an error.
14283 -*) as_fn_error "unrecognized option: \`$1' 26693 -*) { $as_echo "$as_me: error: unrecognized option: $1
14284Try \`$0 --help' for more information." ;; 26694Try \`$0 --help' for more information." >&2
26695 { (exit 1); exit 1; }; } ;;
14285 26696
14286 *) as_fn_append ac_config_targets " $1" 26697 *) ac_config_targets="$ac_config_targets $1"
14287 ac_need_defaults=false ;; 26698 ac_need_defaults=false ;;
14288 26699
14289 esac 26700 esac
@@ -14348,7 +26759,9 @@ do
14348 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; 26759 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
14349 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 26760 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14350 26761
14351 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 26762 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26763$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26764 { (exit 1); exit 1; }; };;
14352 esac 26765 esac
14353done 26766done
14354 26767
@@ -14375,7 +26788,7 @@ $debug ||
14375 trap 'exit_status=$? 26788 trap 'exit_status=$?
14376 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 26789 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14377' 0 26790' 0
14378 trap 'as_fn_exit 1' 1 2 13 15 26791 trap '{ (exit 1); exit 1; }' 1 2 13 15
14379} 26792}
14380# Create a (secure) tmp directory for tmp files. 26793# Create a (secure) tmp directory for tmp files.
14381 26794
@@ -14386,7 +26799,11 @@ $debug ||
14386{ 26799{
14387 tmp=./conf$$-$RANDOM 26800 tmp=./conf$$-$RANDOM
14388 (umask 077 && mkdir "$tmp") 26801 (umask 077 && mkdir "$tmp")
14389} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 26802} ||
26803{
26804 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26805 { (exit 1); exit 1; }
26806}
14390 26807
14391# Set up the scripts for CONFIG_FILES section. 26808# Set up the scripts for CONFIG_FILES section.
14392# No need to generate them if there are no CONFIG_FILES. 26809# No need to generate them if there are no CONFIG_FILES.
@@ -14394,16 +26811,10 @@ $debug ||
14394if test -n "$CONFIG_FILES"; then 26811if test -n "$CONFIG_FILES"; then
14395 26812
14396 26813
14397ac_cr=`echo X | tr X '\015'` 26814ac_cr=' '
14398# On cygwin, bash can eat \r inside `` if the user requested igncr.
14399# But we know of no other shell where ac_cr would be empty at this
14400# point, so we can use a bashism as a fallback.
14401if test "x$ac_cr" = x; then
14402 eval ac_cr=\$\'\\r\'
14403fi
14404ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 26815ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14405if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 26816if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14406 ac_cs_awk_cr='\r' 26817 ac_cs_awk_cr='\\r'
14407else 26818else
14408 ac_cs_awk_cr=$ac_cr 26819 ac_cs_awk_cr=$ac_cr
14409fi 26820fi
@@ -14417,18 +26828,23 @@ _ACEOF
14417 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 26828 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14418 echo "_ACEOF" 26829 echo "_ACEOF"
14419} >conf$$subs.sh || 26830} >conf$$subs.sh ||
14420 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 26831 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26832$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26833 { (exit 1); exit 1; }; }
14421ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 26834ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14422ac_delim='%!_!# ' 26835ac_delim='%!_!# '
14423for ac_last_try in false false false false false :; do 26836for ac_last_try in false false false false false :; do
14424 . ./conf$$subs.sh || 26837 . ./conf$$subs.sh ||
14425 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 26838 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26839$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26840 { (exit 1); exit 1; }; }
14426 26841
14427 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 26842 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
14428 if test $ac_delim_n = $ac_delim_num; then
14429 break 26843 break
14430 elif $ac_last_try; then 26844 elif $ac_last_try; then
14431 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 26845 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26846$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26847 { (exit 1); exit 1; }; }
14432 else 26848 else
14433 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 26849 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14434 fi 26850 fi
@@ -14450,7 +26866,7 @@ s/'"$ac_delim"'$//
14450t delim 26866t delim
14451:nl 26867:nl
14452h 26868h
14453s/\(.\{148\}\)..*/\1/ 26869s/\(.\{148\}\).*/\1/
14454t more1 26870t more1
14455s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 26871s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14456p 26872p
@@ -14464,7 +26880,7 @@ s/.\{148\}//
14464t nl 26880t nl
14465:delim 26881:delim
14466h 26882h
14467s/\(.\{148\}\)..*/\1/ 26883s/\(.\{148\}\).*/\1/
14468t more2 26884t more2
14469s/["\\]/\\&/g; s/^/"/; s/$/"/ 26885s/["\\]/\\&/g; s/^/"/; s/$/"/
14470p 26886p
@@ -14517,7 +26933,9 @@ if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14517else 26933else
14518 cat 26934 cat
14519fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 26935fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14520 || as_fn_error "could not setup config files machinery" "$LINENO" 5 26936 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
26937$as_echo "$as_me: error: could not setup config files machinery" >&2;}
26938 { (exit 1); exit 1; }; }
14521_ACEOF 26939_ACEOF
14522 26940
14523# VPATH may cause trouble with some makes, so we remove $(srcdir), 26941# VPATH may cause trouble with some makes, so we remove $(srcdir),
@@ -14558,7 +26976,9 @@ for ac_last_try in false false :; do
14558 if test -z "$ac_t"; then 26976 if test -z "$ac_t"; then
14559 break 26977 break
14560 elif $ac_last_try; then 26978 elif $ac_last_try; then
14561 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 26979 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
26980$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
26981 { (exit 1); exit 1; }; }
14562 else 26982 else
14563 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 26983 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14564 fi 26984 fi
@@ -14624,9 +27044,9 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14624 } 27044 }
14625 split(mac1, mac2, "(") #) 27045 split(mac1, mac2, "(") #)
14626 macro = mac2[1] 27046 macro = mac2[1]
14627 prefix = substr(line, 1, index(line, defundef) - 1)
14628 if (D_is_set[macro]) { 27047 if (D_is_set[macro]) {
14629 # Preserve the white space surrounding the "#". 27048 # Preserve the white space surrounding the "#".
27049 prefix = substr(line, 1, index(line, defundef) - 1)
14630 print prefix "define", macro P[macro] D[macro] 27050 print prefix "define", macro P[macro] D[macro]
14631 next 27051 next
14632 } else { 27052 } else {
@@ -14634,7 +27054,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14634 # in the case of _POSIX_SOURCE, which is predefined and required 27054 # in the case of _POSIX_SOURCE, which is predefined and required
14635 # on some systems where configure will not decide to define it. 27055 # on some systems where configure will not decide to define it.
14636 if (defundef == "undef") { 27056 if (defundef == "undef") {
14637 print "/*", prefix defundef, macro, "*/" 27057 print "/*", line, "*/"
14638 next 27058 next
14639 } 27059 }
14640 } 27060 }
@@ -14643,7 +27063,9 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14643_ACAWK 27063_ACAWK
14644_ACEOF 27064_ACEOF
14645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27065cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14646 as_fn_error "could not setup config headers machinery" "$LINENO" 5 27066 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27067$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27068 { (exit 1); exit 1; }; }
14647fi # test -n "$CONFIG_HEADERS" 27069fi # test -n "$CONFIG_HEADERS"
14648 27070
14649 27071
@@ -14656,7 +27078,9 @@ do
14656 esac 27078 esac
14657 case $ac_mode$ac_tag in 27079 case $ac_mode$ac_tag in
14658 :[FHL]*:*);; 27080 :[FHL]*:*);;
14659 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 27081 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27082$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27083 { (exit 1); exit 1; }; };;
14660 :[FH]-) ac_tag=-:-;; 27084 :[FH]-) ac_tag=-:-;;
14661 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 27085 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14662 esac 27086 esac
@@ -14684,10 +27108,12 @@ do
14684 [\\/$]*) false;; 27108 [\\/$]*) false;;
14685 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 27109 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14686 esac || 27110 esac ||
14687 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 27111 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27112$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27113 { (exit 1); exit 1; }; };;
14688 esac 27114 esac
14689 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 27115 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14690 as_fn_append ac_file_inputs " '$ac_f'" 27116 ac_file_inputs="$ac_file_inputs '$ac_f'"
14691 done 27117 done
14692 27118
14693 # Let's still pretend it is `configure' which instantiates (i.e., don't 27119 # Let's still pretend it is `configure' which instantiates (i.e., don't
@@ -14698,7 +27124,7 @@ do
14698 `' by configure.' 27124 `' by configure.'
14699 if test x"$ac_file" != x-; then 27125 if test x"$ac_file" != x-; then
14700 configure_input="$ac_file. $configure_input" 27126 configure_input="$ac_file. $configure_input"
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 27127 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14702$as_echo "$as_me: creating $ac_file" >&6;} 27128$as_echo "$as_me: creating $ac_file" >&6;}
14703 fi 27129 fi
14704 # Neutralize special characters interpreted by sed in replacement strings. 27130 # Neutralize special characters interpreted by sed in replacement strings.
@@ -14711,7 +27137,9 @@ $as_echo "$as_me: creating $ac_file" >&6;}
14711 27137
14712 case $ac_tag in 27138 case $ac_tag in
14713 *:-:* | *:-) cat >"$tmp/stdin" \ 27139 *:-:* | *:-) cat >"$tmp/stdin" \
14714 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 27140 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27141$as_echo "$as_me: error: could not create $ac_file" >&2;}
27142 { (exit 1); exit 1; }; } ;;
14715 esac 27143 esac
14716 ;; 27144 ;;
14717 esac 27145 esac
@@ -14739,7 +27167,47 @@ $as_echo X"$ac_file" |
14739 q 27167 q
14740 } 27168 }
14741 s/.*/./; q'` 27169 s/.*/./; q'`
14742 as_dir="$ac_dir"; as_fn_mkdir_p 27170 { as_dir="$ac_dir"
27171 case $as_dir in #(
27172 -*) as_dir=./$as_dir;;
27173 esac
27174 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27175 as_dirs=
27176 while :; do
27177 case $as_dir in #(
27178 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27179 *) as_qdir=$as_dir;;
27180 esac
27181 as_dirs="'$as_qdir' $as_dirs"
27182 as_dir=`$as_dirname -- "$as_dir" ||
27183$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27184 X"$as_dir" : 'X\(//\)[^/]' \| \
27185 X"$as_dir" : 'X\(//\)$' \| \
27186 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27187$as_echo X"$as_dir" |
27188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27189 s//\1/
27190 q
27191 }
27192 /^X\(\/\/\)[^/].*/{
27193 s//\1/
27194 q
27195 }
27196 /^X\(\/\/\)$/{
27197 s//\1/
27198 q
27199 }
27200 /^X\(\/\).*/{
27201 s//\1/
27202 q
27203 }
27204 s/.*/./; q'`
27205 test -d "$as_dir" && break
27206 done
27207 test -z "$as_dirs" || eval "mkdir $as_dirs"
27208 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27209$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27210 { (exit 1); exit 1; }; }; }
14743 ac_builddir=. 27211 ac_builddir=.
14744 27212
14745case "$ac_dir" in 27213case "$ac_dir" in
@@ -14791,6 +27259,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14791# If the template does not know about datarootdir, expand it. 27259# If the template does not know about datarootdir, expand it.
14792# FIXME: This hack should be removed a few years after 2.60. 27260# FIXME: This hack should be removed a few years after 2.60.
14793ac_datarootdir_hack=; ac_datarootdir_seen= 27261ac_datarootdir_hack=; ac_datarootdir_seen=
27262
14794ac_sed_dataroot=' 27263ac_sed_dataroot='
14795/datarootdir/ { 27264/datarootdir/ {
14796 p 27265 p
@@ -14800,11 +27269,12 @@ ac_sed_dataroot='
14800/@docdir@/p 27269/@docdir@/p
14801/@infodir@/p 27270/@infodir@/p
14802/@localedir@/p 27271/@localedir@/p
14803/@mandir@/p' 27272/@mandir@/p
27273'
14804case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 27274case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14805*datarootdir*) ac_datarootdir_seen=yes;; 27275*datarootdir*) ac_datarootdir_seen=yes;;
14806*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 27276*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 27277 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14808$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 27278$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14809_ACEOF 27279_ACEOF
14810cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27280cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
@@ -14814,7 +27284,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14814 s&@infodir@&$infodir&g 27284 s&@infodir@&$infodir&g
14815 s&@localedir@&$localedir&g 27285 s&@localedir@&$localedir&g
14816 s&@mandir@&$mandir&g 27286 s&@mandir@&$mandir&g
14817 s&\\\${datarootdir}&$datarootdir&g' ;; 27287 s&\\\${datarootdir}&$datarootdir&g' ;;
14818esac 27288esac
14819_ACEOF 27289_ACEOF
14820 27290
@@ -14842,12 +27312,14 @@ s&@INSTALL@&$ac_INSTALL&;t t
14842$ac_datarootdir_hack 27312$ac_datarootdir_hack
14843" 27313"
14844eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 27314eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14845 || as_fn_error "could not create $ac_file" "$LINENO" 5 27315 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27316$as_echo "$as_me: error: could not create $ac_file" >&2;}
27317 { (exit 1); exit 1; }; }
14846 27318
14847test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 27319test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14848 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 27320 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14849 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 27321 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 27322 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14851which seems to be undefined. Please make sure it is defined." >&5 27323which seems to be undefined. Please make sure it is defined." >&5
14852$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 27324$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14853which seems to be undefined. Please make sure it is defined." >&2;} 27325which seems to be undefined. Please make sure it is defined." >&2;}
@@ -14857,7 +27329,9 @@ which seems to be undefined. Please make sure it is defined." >&2;}
14857 -) cat "$tmp/out" && rm -f "$tmp/out";; 27329 -) cat "$tmp/out" && rm -f "$tmp/out";;
14858 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 27330 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14859 esac \ 27331 esac \
14860 || as_fn_error "could not create $ac_file" "$LINENO" 5 27332 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27333$as_echo "$as_me: error: could not create $ac_file" >&2;}
27334 { (exit 1); exit 1; }; }
14861 ;; 27335 ;;
14862 :H) 27336 :H)
14863 # 27337 #
@@ -14868,23 +27342,29 @@ which seems to be undefined. Please make sure it is defined." >&2;}
14868 $as_echo "/* $configure_input */" \ 27342 $as_echo "/* $configure_input */" \
14869 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 27343 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14870 } >"$tmp/config.h" \ 27344 } >"$tmp/config.h" \
14871 || as_fn_error "could not create $ac_file" "$LINENO" 5 27345 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27346$as_echo "$as_me: error: could not create $ac_file" >&2;}
27347 { (exit 1); exit 1; }; }
14872 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 27348 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 27349 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14874$as_echo "$as_me: $ac_file is unchanged" >&6;} 27350$as_echo "$as_me: $ac_file is unchanged" >&6;}
14875 else 27351 else
14876 rm -f "$ac_file" 27352 rm -f "$ac_file"
14877 mv "$tmp/config.h" "$ac_file" \ 27353 mv "$tmp/config.h" "$ac_file" \
14878 || as_fn_error "could not create $ac_file" "$LINENO" 5 27354 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27355$as_echo "$as_me: error: could not create $ac_file" >&2;}
27356 { (exit 1); exit 1; }; }
14879 fi 27357 fi
14880 else 27358 else
14881 $as_echo "/* $configure_input */" \ 27359 $as_echo "/* $configure_input */" \
14882 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 27360 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14883 || as_fn_error "could not create -" "$LINENO" 5 27361 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27362$as_echo "$as_me: error: could not create -" >&2;}
27363 { (exit 1); exit 1; }; }
14884 fi 27364 fi
14885 ;; 27365 ;;
14886 27366
14887 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 27367 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14888$as_echo "$as_me: executing $ac_file commands" >&6;} 27368$as_echo "$as_me: executing $ac_file commands" >&6;}
14889 ;; 27369 ;;
14890 esac 27370 esac
@@ -14955,12 +27435,15 @@ fi
14955done # for ac_tag 27435done # for ac_tag
14956 27436
14957 27437
14958as_fn_exit 0 27438{ (exit 0); exit 0; }
14959_ACEOF 27439_ACEOF
27440chmod +x $CONFIG_STATUS
14960ac_clean_files=$ac_clean_files_save 27441ac_clean_files=$ac_clean_files_save
14961 27442
14962test $ac_write_fail = 0 || 27443test $ac_write_fail = 0 ||
14963 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 27444 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27445$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27446 { (exit 1); exit 1; }; }
14964 27447
14965 27448
14966# configure is writing to config.log, and then calls config.status. 27449# configure is writing to config.log, and then calls config.status.
@@ -14981,11 +27464,11 @@ if test "$no_create" != yes; then
14981 exec 5>>config.log 27464 exec 5>>config.log
14982 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 27465 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14983 # would make configure fail if this is the last instruction. 27466 # would make configure fail if this is the last instruction.
14984 $ac_cs_success || as_fn_exit $? 27467 $ac_cs_success || { (exit 1); exit 1; }
14985fi 27468fi
14986if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 27469if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 27470 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
14988$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 27471$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
14989fi 27472fi
14990 27473
14991 27474