aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2010-05-15 14:34:03 -0700
committerGlenn Morris2010-05-15 14:34:03 -0700
commit5929fbe7665a873ba101e3363a9db35f8508efda (patch)
tree250ea3ac636ed78b212ae8f4c37a9d14fe46e2ba
parent6e546d181bf5911fafac9d64c46652e34c34d62e (diff)
downloademacs-5929fbe7665a873ba101e3363a9db35f8508efda.tar.gz
emacs-5929fbe7665a873ba101e3363a9db35f8508efda.zip
Regenerate configure.
-rwxr-xr-xconfigure19164
1 files changed, 15881 insertions, 3283 deletions
diff --git a/configure b/configure
index cb03170a3a7..71b87e98d48 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.
179fi 203fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 204
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
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,188 +638,187 @@ 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
598WINDOW_SUPPORT 642PATH_SEPARATOR
599TOOLTIP_SUPPORT 643PACKAGE_NAME
600MOUSE_SUPPORT 644PACKAGE_TARNAME
601LIB_GCC 645PACKAGE_VERSION
602LD_SWITCH_SYSTEM_EXTRA 646PACKAGE_STRING
603LD_SWITCH_SYSTEM_TEMACS 647PACKAGE_BUGREPORT
604POST_ALLOC_OBJ 648exec_prefix
605PRE_ALLOC_OBJ 649prefix
606CYGWIN_OBJ 650program_transform_name
607LIBX_OTHER 651bindir
608LIBXMENU 652sbindir
609OLDXMENU 653libexecdir
610OLDXMENU_TARGET 654datarootdir
611LIBXT_OTHER 655datadir
612TOOLKIT_LIBW 656sysconfdir
613WIDGET_OBJ 657sharedstatedir
614XOBJ 658localstatedir
615XMENU_OBJ 659includedir
616OTHER_FILES 660oldincludedir
617GNU_OBJC_CFLAGS 661docdir
618GNUSTEP_SYSTEM_LIBRARIES 662infodir
619GNUSTEP_SYSTEM_HEADERS 663htmldir
620ns_appsrc 664dvidir
621ns_appresdir 665pdfdir
622ns_appbindir 666psdir
623ns_appdir 667libdir
624opsysfile 668localedir
625machfile 669mandir
626X_TOOLKIT_TYPE 670DEFS
627C_SWITCH_X_SYSTEM 671ECHO_C
628C_SWITCH_X_SITE 672ECHO_N
629LD_SWITCH_X_SITE 673ECHO_T
630unexec 674LIBS
631gameuser 675build_alias
632gamedir 676host_alias
633bitmapdir 677target_alias
634archlibdir 678MAINT
635etcdir 679build
636x_default_search_path 680build_cpu
637lisppath 681build_vendor
638locallisppath 682build_os
639lispdir 683host
640srcdir 684host_cpu
641canonical 685host_vendor
642configuration 686host_os
643version 687CC
644KRB4LIB 688CFLAGS
645DESLIB 689LDFLAGS
646KRB5LIB 690CPPFLAGS
647CRYPTOLIB 691ac_ct_CC
648COM_ERRLIB 692EXEEXT
649LIBRESOLV 693OBJEXT
650LIBHESIOD 694CPP
651TERMCAP_OBJ 695GREP
652LIBS_TERMCAP 696EGREP
653GETOPTOBJS 697INSTALL_PROGRAM
654GETOPT_H 698INSTALL_SCRIPT
655GETLOADAVG_LIBS 699INSTALL_DATA
656KMEM_GROUP 700RANLIB
657NEED_SETGID 701INSTALL_INFO
658LIBOBJS 702GZIP_PROG
659BLESSMAIL_TARGET 703MAKEINFO
660LIBS_MAIL 704LD_SWITCH_SYSTEM
661liblockfile 705C_SWITCH_MACHINE
662ALLOCA 706C_SWITCH_SYSTEM
663LIBXSM 707LIBS_SYSTEM
664LIBGPM 708CRT_DIR
665LIBGIF 709LIB_MATH
666LIBTIFF 710START_FILES
667LIBPNG 711LIBSOUND
668LIBJPEG 712PKG_CONFIG
669LIBXPM 713ALSA_CFLAGS
670FREETYPE_LIBS 714ALSA_LIBS
715CFLAGS_SOUND
716SET_MAKE
717XMKMF
718LD_SWITCH_X_SITE_AUX
719LD_SWITCH_X_SITE_AUX_RPATH
720NS_IMPL_GNUSTEP_INC
721NS_OBJ
722NS_SUPPORT
723LIB_STANDARD
724HAVE_XSERVER
725RSVG_CFLAGS
726RSVG_LIBS
727GTK_CFLAGS
728GTK_LIBS
729GTK_OBJ
730DBUS_CFLAGS
731DBUS_LIBS
732DBUS_OBJ
733GCONF_CFLAGS
734GCONF_LIBS
735LIBSELINUX_LIBS
736LIBXTR6
737LIBXMU
738FONTCONFIG_CFLAGS
739FONTCONFIG_LIBS
740XFT_CFLAGS
741XFT_LIBS
742LIBOTF_CFLAGS
743LIBOTF_LIBS
744M17N_FLT_CFLAGS
745M17N_FLT_LIBS
671FREETYPE_CFLAGS 746FREETYPE_CFLAGS
747FREETYPE_LIBS
748LIBXPM
749LIBJPEG
750LIBPNG
751LIBTIFF
752LIBGIF
753LIBGPM
754LIBXSM
755ALLOCA
756liblockfile
757LIBS_MAIL
758BLESSMAIL_TARGET
759LIBOBJS
760NEED_SETGID
761KMEM_GROUP
762GETLOADAVG_LIBS
763GETOPT_H
764GETOPTOBJS
765LIBS_TERMCAP
766TERMCAP_OBJ
767LIBHESIOD
768LIBRESOLV
769COM_ERRLIB
770CRYPTOLIB
771KRB5LIB
772DESLIB
773KRB4LIB
774version
775configuration
776canonical
777srcdir
778lispdir
779locallisppath
780lisppath
781x_default_search_path
782etcdir
783archlibdir
784bitmapdir
785gamedir
786gameuser
787unexec
788LD_SWITCH_X_SITE
789C_SWITCH_X_SITE
790C_SWITCH_X_SYSTEM
791X_TOOLKIT_TYPE
792machfile
793opsysfile
794ns_appdir
795ns_appbindir
796ns_appresdir
797ns_appsrc
798GNUSTEP_SYSTEM_HEADERS
799GNUSTEP_SYSTEM_LIBRARIES
800GNU_OBJC_CFLAGS
801OTHER_FILES
672FONT_OBJ 802FONT_OBJ
673M17N_FLT_LIBS 803XMENU_OBJ
674M17N_FLT_CFLAGS 804XOBJ
675LIBOTF_LIBS 805WIDGET_OBJ
676LIBOTF_CFLAGS 806TOOLKIT_LIBW
677XFT_LIBS 807LIBXT_OTHER
678XFT_CFLAGS 808OLDXMENU_TARGET
679FONTCONFIG_LIBS 809OLDXMENU
680FONTCONFIG_CFLAGS 810LIBXMENU
681LIBXMU 811LIBX_OTHER
682LIBXTR6 812CYGWIN_OBJ
683LIBSELINUX_LIBS 813PRE_ALLOC_OBJ
684GCONF_LIBS 814POST_ALLOC_OBJ
685GCONF_CFLAGS 815LD_SWITCH_SYSTEM_TEMACS
686DBUS_OBJ 816LD_SWITCH_SYSTEM_EXTRA
687DBUS_LIBS 817LIB_GCC
688DBUS_CFLAGS 818MOUSE_SUPPORT
689GTK_OBJ 819TOOLTIP_SUPPORT
690GTK_LIBS 820WINDOW_SUPPORT
691GTK_CFLAGS 821LTLIBOBJS'
692RSVG_LIBS
693RSVG_CFLAGS
694HAVE_XSERVER
695LIB_STANDARD
696NS_SUPPORT
697NS_OBJ
698NS_IMPL_GNUSTEP_INC
699LD_SWITCH_X_SITE_AUX_RPATH
700LD_SWITCH_X_SITE_AUX
701XMKMF
702SET_MAKE
703CFLAGS_SOUND
704ALSA_LIBS
705ALSA_CFLAGS
706PKG_CONFIG
707LIBSOUND
708START_FILES
709LIB_MATH
710CRT_DIR
711LIBS_SYSTEM
712C_SWITCH_SYSTEM
713C_SWITCH_MACHINE
714LD_SWITCH_SYSTEM
715MAKEINFO
716GZIP_PROG
717INSTALL_INFO
718RANLIB
719INSTALL_DATA
720INSTALL_SCRIPT
721INSTALL_PROGRAM
722EGREP
723GREP
724CPP
725OBJEXT
726EXEEXT
727ac_ct_CC
728CPPFLAGS
729LDFLAGS
730CFLAGS
731CC
732host_os
733host_vendor
734host_cpu
735host
736build_os
737build_vendor
738build_cpu
739build
740MAINT
741target_alias
742host_alias
743build_alias
744LIBS
745ECHO_T
746ECHO_N
747ECHO_C
748DEFS
749mandir
750localedir
751libdir
752psdir
753pdfdir
754dvidir
755htmldir
756infodir
757docdir
758oldincludedir
759includedir
760localstatedir
761sharedstatedir
762sysconfdir
763datadir
764datarootdir
765libexecdir
766sbindir
767bindir
768program_transform_name
769prefix
770exec_prefix
771PACKAGE_URL
772PACKAGE_BUGREPORT
773PACKAGE_STRING
774PACKAGE_VERSION
775PACKAGE_TARNAME
776PACKAGE_NAME
777PATH_SEPARATOR
778SHELL'
779ac_subst_files='' 822ac_subst_files=''
780ac_user_opts=' 823ac_user_opts='
781enable_option_checking 824enable_option_checking
@@ -940,7 +983,8 @@ do
940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 983 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941 # Reject names that are not valid shell variable names. 984 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error "invalid feature name: $ac_useropt" 986 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
987 { (exit 1); exit 1; }; }
944 ac_useropt_orig=$ac_useropt 988 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in 990 case $ac_user_opts in
@@ -966,7 +1010,8 @@ do
966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1010 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967 # Reject names that are not valid shell variable names. 1011 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error "invalid feature name: $ac_useropt" 1013 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1014 { (exit 1); exit 1; }; }
970 ac_useropt_orig=$ac_useropt 1015 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1016 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in 1017 case $ac_user_opts in
@@ -1170,7 +1215,8 @@ do
1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1215 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171 # Reject names that are not valid shell variable names. 1216 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error "invalid package name: $ac_useropt" 1218 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1219 { (exit 1); exit 1; }; }
1174 ac_useropt_orig=$ac_useropt 1220 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in 1222 case $ac_user_opts in
@@ -1186,7 +1232,8 @@ do
1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1232 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187 # Reject names that are not valid shell variable names. 1233 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error "invalid package name: $ac_useropt" 1235 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1236 { (exit 1); exit 1; }; }
1190 ac_useropt_orig=$ac_useropt 1237 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1238 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in 1239 case $ac_user_opts in
@@ -1216,17 +1263,17 @@ do
1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1263 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217 x_libraries=$ac_optarg ;; 1264 x_libraries=$ac_optarg ;;
1218 1265
1219 -*) as_fn_error "unrecognized option: \`$ac_option' 1266 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1220Try \`$0 --help' for more information." 1267Try \`$0 --help' for more information." >&2
1268 { (exit 1); exit 1; }; }
1221 ;; 1269 ;;
1222 1270
1223 *=*) 1271 *=*)
1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1272 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225 # Reject names that are not valid shell variable names. 1273 # Reject names that are not valid shell variable names.
1226 case $ac_envvar in #( 1274 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1227 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1275 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1228 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1276 { (exit 1); exit 1; }; }
1229 esac
1230 eval $ac_envvar=\$ac_optarg 1277 eval $ac_envvar=\$ac_optarg
1231 export $ac_envvar ;; 1278 export $ac_envvar ;;
1232 1279
@@ -1243,14 +1290,16 @@ done
1243 1290
1244if test -n "$ac_prev"; then 1291if test -n "$ac_prev"; then
1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1292 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246 as_fn_error "missing argument to $ac_option" 1293 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1294 { (exit 1); exit 1; }; }
1247fi 1295fi
1248 1296
1249if test -n "$ac_unrecognized_opts"; then 1297if test -n "$ac_unrecognized_opts"; then
1250 case $enable_option_checking in 1298 case $enable_option_checking in
1251 no) ;; 1299 no) ;;
1252 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1300 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1301 { (exit 1); exit 1; }; } ;;
1302 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254 esac 1303 esac
1255fi 1304fi
1256 1305
@@ -1272,7 +1321,8 @@ do
1272 [\\/$]* | ?:[\\/]* ) continue;; 1321 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1322 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274 esac 1323 esac
1275 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1324 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1325 { (exit 1); exit 1; }; }
1276done 1326done
1277 1327
1278# There might be people who depend on the old broken behavior: `$host' 1328# There might be people who depend on the old broken behavior: `$host'
@@ -1302,9 +1352,11 @@ test "$silent" = yes && exec 6>/dev/null
1302ac_pwd=`pwd` && test -n "$ac_pwd" && 1352ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303ac_ls_di=`ls -di .` && 1353ac_ls_di=`ls -di .` &&
1304ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1354ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305 as_fn_error "working directory cannot be determined" 1355 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1356 { (exit 1); exit 1; }; }
1306test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1357test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307 as_fn_error "pwd does not report name of working directory" 1358 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1359 { (exit 1); exit 1; }; }
1308 1360
1309 1361
1310# Find the source files, if location was not specified. 1362# Find the source files, if location was not specified.
@@ -1343,11 +1395,13 @@ else
1343fi 1395fi
1344if test ! -r "$srcdir/$ac_unique_file"; then 1396if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1397 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1398 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1399 { (exit 1); exit 1; }; }
1347fi 1400fi
1348ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1401ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349ac_abs_confdir=`( 1402ac_abs_confdir=`(
1350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1403 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1404 { (exit 1); exit 1; }; }
1351 pwd)` 1405 pwd)`
1352# When building in place, set srcdir=. 1406# When building in place, set srcdir=.
1353if test "$ac_abs_confdir" = "$ac_pwd"; then 1407if test "$ac_abs_confdir" = "$ac_pwd"; then
@@ -1527,7 +1581,7 @@ Some influential environment variables:
1527 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1581 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1528 nonstandard directory <lib dir> 1582 nonstandard directory <lib dir>
1529 LIBS libraries to pass to the linker, e.g. -l<library> 1583 LIBS libraries to pass to the linker, e.g. -l<library>
1530 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1584 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1531 you have headers in a nonstandard directory <include dir> 1585 you have headers in a nonstandard directory <include dir>
1532 CPP C preprocessor 1586 CPP C preprocessor
1533 XMKMF Path to xmkmf, Makefile generator for X Window System 1587 XMKMF Path to xmkmf, Makefile generator for X Window System
@@ -1535,7 +1589,6 @@ Some influential environment variables:
1535Use these variables to override the choices made by `configure' or to help 1589Use these variables to override the choices made by `configure' or to help
1536it to find libraries and programs with nonstandard names/locations. 1590it to find libraries and programs with nonstandard names/locations.
1537 1591
1538Report bugs to the package provider.
1539_ACEOF 1592_ACEOF
1540ac_status=$? 1593ac_status=$?
1541fi 1594fi
@@ -1599,551 +1652,21 @@ test -n "$ac_init_help" && exit $ac_status
1599if $ac_init_version; then 1652if $ac_init_version; then
1600 cat <<\_ACEOF 1653 cat <<\_ACEOF
1601emacs configure 24.0.50 1654emacs configure 24.0.50
1602generated by GNU Autoconf 2.65 1655generated by GNU Autoconf 2.62
1603 1656
1604Copyright (C) 2009 Free Software Foundation, Inc. 1657Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16582002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1605This configure script is free software; the Free Software Foundation 1659This configure script is free software; the Free Software Foundation
1606gives unlimited permission to copy, distribute and modify it. 1660gives unlimited permission to copy, distribute and modify it.
1607_ACEOF 1661_ACEOF
1608 exit 1662 exit
1609fi 1663fi
1610
1611## ------------------------ ##
1612## Autoconf initialization. ##
1613## ------------------------ ##
1614
1615# ac_fn_c_try_compile LINENO
1616# --------------------------
1617# Try to compile conftest.$ac_ext, and return whether this succeeded.
1618ac_fn_c_try_compile ()
1619{
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 rm -f conftest.$ac_objext
1622 if { { ac_try="$ac_compile"
1623case "(($ac_try" in
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1626esac
1627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628$as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_compile") 2>conftest.err
1630 ac_status=$?
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1635 fi
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } && {
1638 test -z "$ac_c_werror_flag" ||
1639 test ! -s conftest.err
1640 } && test -s conftest.$ac_objext; then :
1641 ac_retval=0
1642else
1643 $as_echo "$as_me: failed program was:" >&5
1644sed 's/^/| /' conftest.$ac_ext >&5
1645
1646 ac_retval=1
1647fi
1648 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1649 as_fn_set_status $ac_retval
1650
1651} # ac_fn_c_try_compile
1652
1653# ac_fn_c_try_link LINENO
1654# -----------------------
1655# Try to link conftest.$ac_ext, and return whether this succeeded.
1656ac_fn_c_try_link ()
1657{
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 rm -f conftest.$ac_objext conftest$ac_exeext
1660 if { { ac_try="$ac_link"
1661case "(($ac_try" in
1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663 *) ac_try_echo=$ac_try;;
1664esac
1665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666$as_echo "$ac_try_echo"; } >&5
1667 (eval "$ac_link") 2>conftest.err
1668 ac_status=$?
1669 if test -s conftest.err; then
1670 grep -v '^ *+' conftest.err >conftest.er1
1671 cat conftest.er1 >&5
1672 mv -f conftest.er1 conftest.err
1673 fi
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } && {
1676 test -z "$ac_c_werror_flag" ||
1677 test ! -s conftest.err
1678 } && test -s conftest$ac_exeext && {
1679 test "$cross_compiling" = yes ||
1680 $as_test_x conftest$ac_exeext
1681 }; then :
1682 ac_retval=0
1683else
1684 $as_echo "$as_me: failed program was:" >&5
1685sed 's/^/| /' conftest.$ac_ext >&5
1686
1687 ac_retval=1
1688fi
1689 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1690 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1691 # interfere with the next link command; also delete a directory that is
1692 # left behind by Apple's compiler. We do this before executing the actions.
1693 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1694 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1695 as_fn_set_status $ac_retval
1696
1697} # ac_fn_c_try_link
1698
1699# ac_fn_c_try_cpp LINENO
1700# ----------------------
1701# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1702ac_fn_c_try_cpp ()
1703{
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 if { { ac_try="$ac_cpp conftest.$ac_ext"
1706case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1709esac
1710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711$as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1713 ac_status=$?
1714 if test -s conftest.err; then
1715 grep -v '^ *+' conftest.err >conftest.er1
1716 cat conftest.er1 >&5
1717 mv -f conftest.er1 conftest.err
1718 fi
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } >/dev/null && {
1721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1722 test ! -s conftest.err
1723 }; then :
1724 ac_retval=0
1725else
1726 $as_echo "$as_me: failed program was:" >&5
1727sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=1
1730fi
1731 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1732 as_fn_set_status $ac_retval
1733
1734} # ac_fn_c_try_cpp
1735
1736# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1737# -------------------------------------------------------
1738# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1739# the include files in INCLUDES and setting the cache variable VAR
1740# accordingly.
1741ac_fn_c_check_header_mongrel ()
1742{
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1746$as_echo_n "checking for $2... " >&6; }
1747if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1748 $as_echo_n "(cached) " >&6
1749fi
1750eval ac_res=\$$3
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752$as_echo "$ac_res" >&6; }
1753else
1754 # Is the header compilable?
1755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1756$as_echo_n "checking $2 usability... " >&6; }
1757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758/* end confdefs.h. */
1759$4
1760#include <$2>
1761_ACEOF
1762if ac_fn_c_try_compile "$LINENO"; then :
1763 ac_header_compiler=yes
1764else
1765 ac_header_compiler=no
1766fi
1767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1769$as_echo "$ac_header_compiler" >&6; }
1770
1771# Is the header present?
1772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1773$as_echo_n "checking $2 presence... " >&6; }
1774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775/* end confdefs.h. */
1776#include <$2>
1777_ACEOF
1778if ac_fn_c_try_cpp "$LINENO"; then :
1779 ac_header_preproc=yes
1780else
1781 ac_header_preproc=no
1782fi
1783rm -f conftest.err conftest.$ac_ext
1784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1785$as_echo "$ac_header_preproc" >&6; }
1786
1787# So? What about this header?
1788case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1789 yes:no: )
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1791$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1793$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1794 ;;
1795 no:yes:* )
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1797$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1799$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1801$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1803$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1805$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1806 ;;
1807esac
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809$as_echo_n "checking for $2... " >&6; }
1810if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1811 $as_echo_n "(cached) " >&6
1812else
1813 eval "$3=\$ac_header_compiler"
1814fi
1815eval ac_res=\$$3
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817$as_echo "$ac_res" >&6; }
1818fi
1819 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1820
1821} # ac_fn_c_check_header_mongrel
1822
1823# ac_fn_c_try_run LINENO
1824# ----------------------
1825# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1826# that executables *can* be run.
1827ac_fn_c_try_run ()
1828{
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 if { { ac_try="$ac_link"
1831case "(($ac_try" in
1832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833 *) ac_try_echo=$ac_try;;
1834esac
1835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836$as_echo "$ac_try_echo"; } >&5
1837 (eval "$ac_link") 2>&5
1838 ac_status=$?
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1841 { { case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844esac
1845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846$as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_try") 2>&5
1848 ac_status=$?
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; }; }; then :
1851 ac_retval=0
1852else
1853 $as_echo "$as_me: program exited with status $ac_status" >&5
1854 $as_echo "$as_me: failed program was:" >&5
1855sed 's/^/| /' conftest.$ac_ext >&5
1856
1857 ac_retval=$ac_status
1858fi
1859 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1860 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1861 as_fn_set_status $ac_retval
1862
1863} # ac_fn_c_try_run
1864
1865# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1866# -------------------------------------------------------
1867# Tests whether HEADER exists and can be compiled using the include files in
1868# INCLUDES, setting the cache variable VAR accordingly.
1869ac_fn_c_check_header_compile ()
1870{
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873$as_echo_n "checking for $2... " >&6; }
1874if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1875 $as_echo_n "(cached) " >&6
1876else
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878/* end confdefs.h. */
1879$4
1880#include <$2>
1881_ACEOF
1882if ac_fn_c_try_compile "$LINENO"; then :
1883 eval "$3=yes"
1884else
1885 eval "$3=no"
1886fi
1887rm -f core conftest.err conftest.$ac_objext 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_compile
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_header_preproc LINENO HEADER VAR
1936# ----------------------------------------------
1937# Tests whether HEADER is present, setting the cache variable VAR accordingly.
1938ac_fn_c_check_header_preproc ()
1939{
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1942$as_echo_n "checking for $2... " >&6; }
1943if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1944 $as_echo_n "(cached) " >&6
1945else
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947/* end confdefs.h. */
1948#include <$2>
1949_ACEOF
1950if ac_fn_c_try_cpp "$LINENO"; then :
1951 eval "$3=yes"
1952else
1953 eval "$3=no"
1954fi
1955rm -f conftest.err conftest.$ac_ext
1956fi
1957eval ac_res=\$$3
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959$as_echo "$ac_res" >&6; }
1960 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1961
1962} # ac_fn_c_check_header_preproc
1963
1964# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1965# ----------------------------------------------------
1966# Tries to find if the field MEMBER exists in type AGGR, after including
1967# INCLUDES, setting cache variable VAR accordingly.
1968ac_fn_c_check_member ()
1969{
1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1972$as_echo_n "checking for $2.$3... " >&6; }
1973if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1974 $as_echo_n "(cached) " >&6
1975else
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977/* end confdefs.h. */
1978$5
1979int
1980main ()
1981{
1982static $2 ac_aggr;
1983if (ac_aggr.$3)
1984return 0;
1985 ;
1986 return 0;
1987}
1988_ACEOF
1989if ac_fn_c_try_compile "$LINENO"; then :
1990 eval "$4=yes"
1991else
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993/* end confdefs.h. */
1994$5
1995int
1996main ()
1997{
1998static $2 ac_aggr;
1999if (sizeof ac_aggr.$3)
2000return 0;
2001 ;
2002 return 0;
2003}
2004_ACEOF
2005if ac_fn_c_try_compile "$LINENO"; then :
2006 eval "$4=yes"
2007else
2008 eval "$4=no"
2009fi
2010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011fi
2012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2013fi
2014eval ac_res=\$$4
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016$as_echo "$ac_res" >&6; }
2017 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2018
2019} # ac_fn_c_check_member
2020
2021# ac_fn_c_check_func LINENO FUNC VAR
2022# ----------------------------------
2023# Tests whether FUNC exists, setting the cache variable VAR accordingly
2024ac_fn_c_check_func ()
2025{
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028$as_echo_n "checking for $2... " >&6; }
2029if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2030 $as_echo_n "(cached) " >&6
2031else
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033/* end confdefs.h. */
2034/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2036#define $2 innocuous_$2
2037
2038/* System header to define __stub macros and hopefully few prototypes,
2039 which can conflict with char $2 (); below.
2040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2041 <limits.h> exists even on freestanding compilers. */
2042
2043#ifdef __STDC__
2044# include <limits.h>
2045#else
2046# include <assert.h>
2047#endif
2048
2049#undef $2
2050
2051/* Override any GCC internal prototype to avoid an error.
2052 Use char because int might match the return type of a GCC
2053 builtin and then its argument prototype would still apply. */
2054#ifdef __cplusplus
2055extern "C"
2056#endif
2057char $2 ();
2058/* The GNU C library defines this for functions which it implements
2059 to always fail with ENOSYS. Some functions are actually named
2060 something starting with __ and the normal name is an alias. */
2061#if defined __stub_$2 || defined __stub___$2
2062choke me
2063#endif
2064
2065int
2066main ()
2067{
2068return $2 ();
2069 ;
2070 return 0;
2071}
2072_ACEOF
2073if ac_fn_c_try_link "$LINENO"; then :
2074 eval "$3=yes"
2075else
2076 eval "$3=no"
2077fi
2078rm -f core conftest.err conftest.$ac_objext \
2079 conftest$ac_exeext conftest.$ac_ext
2080fi
2081eval ac_res=\$$3
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083$as_echo "$ac_res" >&6; }
2084 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2085
2086} # ac_fn_c_check_func
2087
2088# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2089# -------------------------------------------
2090# Tests whether TYPE exists after having included INCLUDES, setting cache
2091# variable VAR accordingly.
2092ac_fn_c_check_type ()
2093{
2094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2096$as_echo_n "checking for $2... " >&6; }
2097if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2098 $as_echo_n "(cached) " >&6
2099else
2100 eval "$3=no"
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102/* end confdefs.h. */
2103$4
2104int
2105main ()
2106{
2107if (sizeof ($2))
2108 return 0;
2109 ;
2110 return 0;
2111}
2112_ACEOF
2113if ac_fn_c_try_compile "$LINENO"; then :
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115/* end confdefs.h. */
2116$4
2117int
2118main ()
2119{
2120if (sizeof (($2)))
2121 return 0;
2122 ;
2123 return 0;
2124}
2125_ACEOF
2126if ac_fn_c_try_compile "$LINENO"; then :
2127
2128else
2129 eval "$3=yes"
2130fi
2131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132fi
2133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134fi
2135eval ac_res=\$$3
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2137$as_echo "$ac_res" >&6; }
2138 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2139
2140} # ac_fn_c_check_type
2141cat >config.log <<_ACEOF 1664cat >config.log <<_ACEOF
2142This file contains any messages produced by compilers while 1665This file contains any messages produced by compilers while
2143running configure, to aid debugging if configure makes a mistake. 1666running configure, to aid debugging if configure makes a mistake.
2144 1667
2145It was created by emacs $as_me 24.0.50, which was 1668It was created by emacs $as_me 24.0.50, which was
2146generated by GNU Autoconf 2.65. Invocation command line was 1669generated by GNU Autoconf 2.62. Invocation command line was
2147 1670
2148 $ $0 $@ 1671 $ $0 $@
2149 1672
@@ -2179,8 +1702,8 @@ for as_dir in $PATH
2179do 1702do
2180 IFS=$as_save_IFS 1703 IFS=$as_save_IFS
2181 test -z "$as_dir" && as_dir=. 1704 test -z "$as_dir" && as_dir=.
2182 $as_echo "PATH: $as_dir" 1705 $as_echo "PATH: $as_dir"
2183 done 1706done
2184IFS=$as_save_IFS 1707IFS=$as_save_IFS
2185 1708
2186} >&5 1709} >&5
@@ -2217,9 +1740,9 @@ do
2217 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1740 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2218 esac 1741 esac
2219 case $ac_pass in 1742 case $ac_pass in
2220 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1743 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2221 2) 1744 2)
2222 as_fn_append ac_configure_args1 " '$ac_arg'" 1745 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2223 if test $ac_must_keep_next = true; then 1746 if test $ac_must_keep_next = true; then
2224 ac_must_keep_next=false # Got value, back to normal. 1747 ac_must_keep_next=false # Got value, back to normal.
2225 else 1748 else
@@ -2235,13 +1758,13 @@ do
2235 -* ) ac_must_keep_next=true ;; 1758 -* ) ac_must_keep_next=true ;;
2236 esac 1759 esac
2237 fi 1760 fi
2238 as_fn_append ac_configure_args " '$ac_arg'" 1761 ac_configure_args="$ac_configure_args '$ac_arg'"
2239 ;; 1762 ;;
2240 esac 1763 esac
2241 done 1764 done
2242done 1765done
2243{ ac_configure_args0=; unset ac_configure_args0;} 1766$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2244{ ac_configure_args1=; unset ac_configure_args1;} 1767$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2245 1768
2246# When interrupted or exit'd, cleanup temporary files, and complete 1769# When interrupted or exit'd, cleanup temporary files, and complete
2247# config.log. We remove comments because anyway the quotes in there 1770# config.log. We remove comments because anyway the quotes in there
@@ -2266,13 +1789,13 @@ _ASBOX
2266 case $ac_val in #( 1789 case $ac_val in #(
2267 *${as_nl}*) 1790 *${as_nl}*)
2268 case $ac_var in #( 1791 case $ac_var in #(
2269 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1792 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2270$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1793$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2271 esac 1794 esac
2272 case $ac_var in #( 1795 case $ac_var in #(
2273 _ | IFS | as_nl) ;; #( 1796 _ | IFS | as_nl) ;; #(
2274 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1797 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2275 *) { eval $ac_var=; unset $ac_var;} ;; 1798 *) $as_unset $ac_var ;;
2276 esac ;; 1799 esac ;;
2277 esac 1800 esac
2278 done 1801 done
@@ -2344,39 +1867,37 @@ _ASBOX
2344 exit $exit_status 1867 exit $exit_status
2345' 0 1868' 0
2346for ac_signal in 1 2 13 15; do 1869for ac_signal in 1 2 13 15; do
2347 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1870 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2348done 1871done
2349ac_signal=0 1872ac_signal=0
2350 1873
2351# confdefs.h avoids OS command line length limits that DEFS can exceed. 1874# confdefs.h avoids OS command line length limits that DEFS can exceed.
2352rm -f -r conftest* confdefs.h 1875rm -f -r conftest* confdefs.h
2353 1876
2354$as_echo "/* confdefs.h */" > confdefs.h
2355
2356# Predefined preprocessor variables. 1877# Predefined preprocessor variables.
2357 1878
2358cat >>confdefs.h <<_ACEOF 1879cat >>confdefs.h <<_ACEOF
2359#define PACKAGE_NAME "$PACKAGE_NAME" 1880#define PACKAGE_NAME "$PACKAGE_NAME"
2360_ACEOF 1881_ACEOF
2361 1882
1883
2362cat >>confdefs.h <<_ACEOF 1884cat >>confdefs.h <<_ACEOF
2363#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1885#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2364_ACEOF 1886_ACEOF
2365 1887
1888
2366cat >>confdefs.h <<_ACEOF 1889cat >>confdefs.h <<_ACEOF
2367#define PACKAGE_VERSION "$PACKAGE_VERSION" 1890#define PACKAGE_VERSION "$PACKAGE_VERSION"
2368_ACEOF 1891_ACEOF
2369 1892
1893
2370cat >>confdefs.h <<_ACEOF 1894cat >>confdefs.h <<_ACEOF
2371#define PACKAGE_STRING "$PACKAGE_STRING" 1895#define PACKAGE_STRING "$PACKAGE_STRING"
2372_ACEOF 1896_ACEOF
2373 1897
2374cat >>confdefs.h <<_ACEOF
2375#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2376_ACEOF
2377 1898
2378cat >>confdefs.h <<_ACEOF 1899cat >>confdefs.h <<_ACEOF
2379#define PACKAGE_URL "$PACKAGE_URL" 1900#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2380_ACEOF 1901_ACEOF
2381 1902
2382 1903
@@ -2396,8 +1917,8 @@ fi
2396for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1917for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2397do 1918do
2398 test "x$ac_site_file" = xNONE && continue 1919 test "x$ac_site_file" = xNONE && continue
2399 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1920 if test -r "$ac_site_file"; then
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1921 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2401$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1922$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2402 sed 's/^/| /' "$ac_site_file" >&5 1923 sed 's/^/| /' "$ac_site_file" >&5
2403 . "$ac_site_file" 1924 . "$ac_site_file"
@@ -2405,10 +1926,10 @@ $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2405done 1926done
2406 1927
2407if test -r "$cache_file"; then 1928if test -r "$cache_file"; then
2408 # Some versions of bash will fail to source /dev/null (special files 1929 # Some versions of bash will fail to source /dev/null (special
2409 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1930 # files actually), so we avoid doing that.
2410 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1931 if test -f "$cache_file"; then
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1932 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2412$as_echo "$as_me: loading cache $cache_file" >&6;} 1933$as_echo "$as_me: loading cache $cache_file" >&6;}
2413 case $cache_file in 1934 case $cache_file in
2414 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1935 [\\/]* | ?:[\\/]* ) . "$cache_file";;
@@ -2416,16 +1937,14 @@ $as_echo "$as_me: loading cache $cache_file" >&6;}
2416 esac 1937 esac
2417 fi 1938 fi
2418else 1939else
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 1940 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2420$as_echo "$as_me: creating cache $cache_file" >&6;} 1941$as_echo "$as_me: creating cache $cache_file" >&6;}
2421 >$cache_file 1942 >$cache_file
2422fi 1943fi
2423 1944
2424as_fn_append ac_header_list " stdlib.h" 1945ac_header_list="$ac_header_list sys/time.h"
2425as_fn_append ac_header_list " unistd.h" 1946ac_header_list="$ac_header_list unistd.h"
2426as_fn_append ac_header_list " sys/param.h" 1947ac_func_list="$ac_func_list alarm"
2427as_fn_append ac_header_list " sys/time.h"
2428as_fn_append ac_func_list " alarm"
2429# Check that the precious variables saved in the cache have kept the same 1948# Check that the precious variables saved in the cache have kept the same
2430# value. 1949# value.
2431ac_cache_corrupted=false 1950ac_cache_corrupted=false
@@ -2436,11 +1955,11 @@ for ac_var in $ac_precious_vars; do
2436 eval ac_new_val=\$ac_env_${ac_var}_value 1955 eval ac_new_val=\$ac_env_${ac_var}_value
2437 case $ac_old_set,$ac_new_set in 1956 case $ac_old_set,$ac_new_set in
2438 set,) 1957 set,)
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1958 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2440$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1959$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2441 ac_cache_corrupted=: ;; 1960 ac_cache_corrupted=: ;;
2442 ,set) 1961 ,set)
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 1962 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2444$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1963$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2445 ac_cache_corrupted=: ;; 1964 ac_cache_corrupted=: ;;
2446 ,);; 1965 ,);;
@@ -2450,17 +1969,17 @@ $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2450 ac_old_val_w=`echo x $ac_old_val` 1969 ac_old_val_w=`echo x $ac_old_val`
2451 ac_new_val_w=`echo x $ac_new_val` 1970 ac_new_val_w=`echo x $ac_new_val`
2452 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1971 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 1972 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2454$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1973$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2455 ac_cache_corrupted=: 1974 ac_cache_corrupted=:
2456 else 1975 else
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1976 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2458$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1977$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2459 eval $ac_var=\$ac_old_val 1978 eval $ac_var=\$ac_old_val
2460 fi 1979 fi
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 1980 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2462$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1981$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 1982 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2464$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1983$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2465 fi;; 1984 fi;;
2466 esac 1985 esac
@@ -2472,20 +1991,41 @@ $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2472 esac 1991 esac
2473 case " $ac_configure_args " in 1992 case " $ac_configure_args " in
2474 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1993 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2475 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 1994 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2476 esac 1995 esac
2477 fi 1996 fi
2478done 1997done
2479if $ac_cache_corrupted; then 1998if $ac_cache_corrupted; then
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1999 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2481$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2483$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2000$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2484 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2001 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2002$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2003 { (exit 1); exit 1; }; }
2485fi 2004fi
2486## -------------------- ## 2005
2487## Main body of script. ## 2006
2488## -------------------- ## 2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2489 2029
2490ac_ext=c 2030ac_ext=c
2491ac_cpp='$CPP $CPPFLAGS' 2031ac_cpp='$CPP $CPPFLAGS'
@@ -2524,33 +2064,39 @@ gameuser=games
2524 2064
2525 2065
2526# Check whether --with-pop was given. 2066# Check whether --with-pop was given.
2527if test "${with_pop+set}" = set; then : 2067if test "${with_pop+set}" = set; then
2528 withval=$with_pop; 2068 withval=$with_pop;
2529else 2069else
2530 with_pop=yes 2070 with_pop=yes
2531fi 2071fi
2532 2072
2533if test "$with_pop" = yes; then 2073if test "$with_pop" = yes; then
2534 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h 2074 cat >>confdefs.h <<\_ACEOF
2075#define MAIL_USE_POP 1
2076_ACEOF
2535 2077
2536fi 2078fi
2537 2079
2538 2080
2081
2539# Check whether --with-kerberos was given. 2082# Check whether --with-kerberos was given.
2540if test "${with_kerberos+set}" = set; then : 2083if test "${with_kerberos+set}" = set; then
2541 withval=$with_kerberos; 2084 withval=$with_kerberos;
2542else 2085else
2543 with_kerberos=no 2086 with_kerberos=no
2544fi 2087fi
2545 2088
2546if test "$with_kerberos" != no; then 2089if test "$with_kerberos" != no; then
2547 $as_echo "#define KERBEROS 1" >>confdefs.h 2090 cat >>confdefs.h <<\_ACEOF
2091#define KERBEROS 1
2092_ACEOF
2548 2093
2549fi 2094fi
2550 2095
2551 2096
2097
2552# Check whether --with-kerberos5 was given. 2098# Check whether --with-kerberos5 was given.
2553if test "${with_kerberos5+set}" = set; then : 2099if test "${with_kerberos5+set}" = set; then
2554 withval=$with_kerberos5; 2100 withval=$with_kerberos5;
2555else 2101else
2556 with_kerberos5=no 2102 with_kerberos5=no
@@ -2559,17 +2105,21 @@ fi
2559if test "${with_kerberos5}" != no; then 2105if test "${with_kerberos5}" != no; then
2560 if test "${with_kerberos}" = no; then 2106 if test "${with_kerberos}" = no; then
2561 with_kerberos=yes 2107 with_kerberos=yes
2562 $as_echo "#define KERBEROS 1" >>confdefs.h 2108 cat >>confdefs.h <<\_ACEOF
2109#define KERBEROS 1
2110_ACEOF
2563 2111
2564 fi 2112 fi
2565 2113
2566$as_echo "#define KERBEROS5 1" >>confdefs.h 2114cat >>confdefs.h <<\_ACEOF
2115#define KERBEROS5 1
2116_ACEOF
2567 2117
2568fi 2118fi
2569 2119
2570 2120
2571# Check whether --with-hesiod was given. 2121# Check whether --with-hesiod was given.
2572if test "${with_hesiod+set}" = set; then : 2122if test "${with_hesiod+set}" = set; then
2573 withval=$with_hesiod; 2123 withval=$with_hesiod;
2574else 2124else
2575 with_hesiod=no 2125 with_hesiod=no
@@ -2577,13 +2127,15 @@ fi
2577 2127
2578if test "$with_hesiod" != no; then 2128if test "$with_hesiod" != no; then
2579 2129
2580$as_echo "#define HESIOD 1" >>confdefs.h 2130cat >>confdefs.h <<\_ACEOF
2131#define HESIOD 1
2132_ACEOF
2581 2133
2582fi 2134fi
2583 2135
2584 2136
2585# Check whether --with-mmdf was given. 2137# Check whether --with-mmdf was given.
2586if test "${with_mmdf+set}" = set; then : 2138if test "${with_mmdf+set}" = set; then
2587 withval=$with_mmdf; 2139 withval=$with_mmdf;
2588else 2140else
2589 with_mmdf=no 2141 with_mmdf=no
@@ -2591,13 +2143,15 @@ fi
2591 2143
2592if test "$with_mmdf" != no; then 2144if test "$with_mmdf" != no; then
2593 2145
2594$as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h 2146cat >>confdefs.h <<\_ACEOF
2147#define MAIL_USE_MMDF 1
2148_ACEOF
2595 2149
2596fi 2150fi
2597 2151
2598 2152
2599# Check whether --with-mail-unlink was given. 2153# Check whether --with-mail-unlink was given.
2600if test "${with_mail_unlink+set}" = set; then : 2154if test "${with_mail_unlink+set}" = set; then
2601 withval=$with_mail_unlink; 2155 withval=$with_mail_unlink;
2602else 2156else
2603 with_mail_unlink=no 2157 with_mail_unlink=no
@@ -2605,13 +2159,15 @@ fi
2605 2159
2606if test "$with_mail_unlink" != no; then 2160if test "$with_mail_unlink" != no; then
2607 2161
2608$as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h 2162cat >>confdefs.h <<\_ACEOF
2163#define MAIL_UNLINK_SPOOL 1
2164_ACEOF
2609 2165
2610fi 2166fi
2611 2167
2612 2168
2613# Check whether --with-mailhost was given. 2169# Check whether --with-mailhost was given.
2614if test "${with_mailhost+set}" = set; then : 2170if test "${with_mailhost+set}" = set; then
2615 withval=$with_mailhost; 2171 withval=$with_mailhost;
2616cat >>confdefs.h <<_ACEOF 2172cat >>confdefs.h <<_ACEOF
2617#define MAILHOST "$withval" 2173#define MAILHOST "$withval"
@@ -2622,7 +2178,7 @@ fi
2622 2178
2623 2179
2624# Check whether --with-sound was given. 2180# Check whether --with-sound was given.
2625if test "${with_sound+set}" = set; then : 2181if test "${with_sound+set}" = set; then
2626 withval=$with_sound; 2182 withval=$with_sound;
2627else 2183else
2628 with_sound=yes 2184 with_sound=yes
@@ -2631,7 +2187,7 @@ fi
2631 2187
2632 2188
2633# Check whether --with-sync-input was given. 2189# Check whether --with-sync-input was given.
2634if test "${with_sync_input+set}" = set; then : 2190if test "${with_sync_input+set}" = set; then
2635 withval=$with_sync_input; 2191 withval=$with_sync_input;
2636else 2192else
2637 with_sync_input=yes 2193 with_sync_input=yes
@@ -2639,13 +2195,15 @@ fi
2639 2195
2640if test "$with_sync_input" = yes; then 2196if test "$with_sync_input" = yes; then
2641 2197
2642$as_echo "#define SYNC_INPUT 1" >>confdefs.h 2198cat >>confdefs.h <<\_ACEOF
2199#define SYNC_INPUT 1
2200_ACEOF
2643 2201
2644fi 2202fi
2645 2203
2646 2204
2647# Check whether --with-x-toolkit was given. 2205# Check whether --with-x-toolkit was given.
2648if test "${with_x_toolkit+set}" = set; then : 2206if test "${with_x_toolkit+set}" = set; then
2649 withval=$with_x_toolkit; case "${withval}" in 2207 withval=$with_x_toolkit; case "${withval}" in
2650 y | ye | yes ) val=gtk ;; 2208 y | ye | yes ) val=gtk ;;
2651 n | no ) val=no ;; 2209 n | no ) val=no ;;
@@ -2654,9 +2212,13 @@ if test "${with_x_toolkit+set}" = set; then :
2654 m | mo | mot | moti | motif ) val=motif ;; 2212 m | mo | mot | moti | motif ) val=motif ;;
2655 g | gt | gtk ) val=gtk ;; 2213 g | gt | gtk ) val=gtk ;;
2656 * ) 2214 * )
2657as_fn_error "\`--with-x-toolkit=$withval' is invalid; 2215{ { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2658this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. 2216this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2659\`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5 2217\`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2218$as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2219this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2220\`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2221 { (exit 1); exit 1; }; }
2660 ;; 2222 ;;
2661 esac 2223 esac
2662 with_x_toolkit=$val 2224 with_x_toolkit=$val
@@ -2666,7 +2228,7 @@ fi
2666 2228
2667 2229
2668# Check whether --with-xpm was given. 2230# Check whether --with-xpm was given.
2669if test "${with_xpm+set}" = set; then : 2231if test "${with_xpm+set}" = set; then
2670 withval=$with_xpm; 2232 withval=$with_xpm;
2671else 2233else
2672 with_xpm=yes 2234 with_xpm=yes
@@ -2674,7 +2236,7 @@ fi
2674 2236
2675 2237
2676# Check whether --with-jpeg was given. 2238# Check whether --with-jpeg was given.
2677if test "${with_jpeg+set}" = set; then : 2239if test "${with_jpeg+set}" = set; then
2678 withval=$with_jpeg; 2240 withval=$with_jpeg;
2679else 2241else
2680 with_jpeg=yes 2242 with_jpeg=yes
@@ -2682,7 +2244,7 @@ fi
2682 2244
2683 2245
2684# Check whether --with-tiff was given. 2246# Check whether --with-tiff was given.
2685if test "${with_tiff+set}" = set; then : 2247if test "${with_tiff+set}" = set; then
2686 withval=$with_tiff; 2248 withval=$with_tiff;
2687else 2249else
2688 with_tiff=yes 2250 with_tiff=yes
@@ -2690,7 +2252,7 @@ fi
2690 2252
2691 2253
2692# Check whether --with-gif was given. 2254# Check whether --with-gif was given.
2693if test "${with_gif+set}" = set; then : 2255if test "${with_gif+set}" = set; then
2694 withval=$with_gif; 2256 withval=$with_gif;
2695else 2257else
2696 with_gif=yes 2258 with_gif=yes
@@ -2698,7 +2260,7 @@ fi
2698 2260
2699 2261
2700# Check whether --with-png was given. 2262# Check whether --with-png was given.
2701if test "${with_png+set}" = set; then : 2263if test "${with_png+set}" = set; then
2702 withval=$with_png; 2264 withval=$with_png;
2703else 2265else
2704 with_png=yes 2266 with_png=yes
@@ -2706,7 +2268,7 @@ fi
2706 2268
2707 2269
2708# Check whether --with-rsvg was given. 2270# Check whether --with-rsvg was given.
2709if test "${with_rsvg+set}" = set; then : 2271if test "${with_rsvg+set}" = set; then
2710 withval=$with_rsvg; 2272 withval=$with_rsvg;
2711else 2273else
2712 with_rsvg=yes 2274 with_rsvg=yes
@@ -2715,7 +2277,7 @@ fi
2715 2277
2716 2278
2717# Check whether --with-xft was given. 2279# Check whether --with-xft was given.
2718if test "${with_xft+set}" = set; then : 2280if test "${with_xft+set}" = set; then
2719 withval=$with_xft; 2281 withval=$with_xft;
2720else 2282else
2721 with_xft=yes 2283 with_xft=yes
@@ -2723,7 +2285,7 @@ fi
2723 2285
2724 2286
2725# Check whether --with-libotf was given. 2287# Check whether --with-libotf was given.
2726if test "${with_libotf+set}" = set; then : 2288if test "${with_libotf+set}" = set; then
2727 withval=$with_libotf; 2289 withval=$with_libotf;
2728else 2290else
2729 with_libotf=yes 2291 with_libotf=yes
@@ -2731,7 +2293,7 @@ fi
2731 2293
2732 2294
2733# Check whether --with-m17n-flt was given. 2295# Check whether --with-m17n-flt was given.
2734if test "${with_m17n_flt+set}" = set; then : 2296if test "${with_m17n_flt+set}" = set; then
2735 withval=$with_m17n_flt; 2297 withval=$with_m17n_flt;
2736else 2298else
2737 with_m17n_flt=yes 2299 with_m17n_flt=yes
@@ -2740,7 +2302,7 @@ fi
2740 2302
2741 2303
2742# Check whether --with-toolkit-scroll-bars was given. 2304# Check whether --with-toolkit-scroll-bars was given.
2743if test "${with_toolkit_scroll_bars+set}" = set; then : 2305if test "${with_toolkit_scroll_bars+set}" = set; then
2744 withval=$with_toolkit_scroll_bars; 2306 withval=$with_toolkit_scroll_bars;
2745else 2307else
2746 with_toolkit_scroll_bars=yes 2308 with_toolkit_scroll_bars=yes
@@ -2748,7 +2310,7 @@ fi
2748 2310
2749 2311
2750# Check whether --with-xaw3d was given. 2312# Check whether --with-xaw3d was given.
2751if test "${with_xaw3d+set}" = set; then : 2313if test "${with_xaw3d+set}" = set; then
2752 withval=$with_xaw3d; 2314 withval=$with_xaw3d;
2753else 2315else
2754 with_xaw3d=yes 2316 with_xaw3d=yes
@@ -2756,7 +2318,7 @@ fi
2756 2318
2757 2319
2758# Check whether --with-xim was given. 2320# Check whether --with-xim was given.
2759if test "${with_xim+set}" = set; then : 2321if test "${with_xim+set}" = set; then
2760 withval=$with_xim; 2322 withval=$with_xim;
2761else 2323else
2762 with_xim=yes 2324 with_xim=yes
@@ -2764,7 +2326,7 @@ fi
2764 2326
2765 2327
2766# Check whether --with-ns was given. 2328# Check whether --with-ns was given.
2767if test "${with_ns+set}" = set; then : 2329if test "${with_ns+set}" = set; then
2768 withval=$with_ns; 2330 withval=$with_ns;
2769else 2331else
2770 with_ns=no 2332 with_ns=no
@@ -2773,7 +2335,7 @@ fi
2773 2335
2774 2336
2775# Check whether --with-gpm was given. 2337# Check whether --with-gpm was given.
2776if test "${with_gpm+set}" = set; then : 2338if test "${with_gpm+set}" = set; then
2777 withval=$with_gpm; 2339 withval=$with_gpm;
2778else 2340else
2779 with_gpm=yes 2341 with_gpm=yes
@@ -2781,7 +2343,7 @@ fi
2781 2343
2782 2344
2783# Check whether --with-dbus was given. 2345# Check whether --with-dbus was given.
2784if test "${with_dbus+set}" = set; then : 2346if test "${with_dbus+set}" = set; then
2785 withval=$with_dbus; 2347 withval=$with_dbus;
2786else 2348else
2787 with_dbus=yes 2349 with_dbus=yes
@@ -2789,7 +2351,7 @@ fi
2789 2351
2790 2352
2791# Check whether --with-gconf was given. 2353# Check whether --with-gconf was given.
2792if test "${with_gconf+set}" = set; then : 2354if test "${with_gconf+set}" = set; then
2793 withval=$with_gconf; 2355 withval=$with_gconf;
2794else 2356else
2795 with_gconf=yes 2357 with_gconf=yes
@@ -2797,7 +2359,7 @@ fi
2797 2359
2798 2360
2799# Check whether --with-selinux was given. 2361# Check whether --with-selinux was given.
2800if test "${with_selinux+set}" = set; then : 2362if test "${with_selinux+set}" = set; then
2801 withval=$with_selinux; 2363 withval=$with_selinux;
2802else 2364else
2803 with_selinux=yes 2365 with_selinux=yes
@@ -2808,7 +2370,7 @@ fi
2808## a suitable makeinfo, and can live without the manuals. 2370## a suitable makeinfo, and can live without the manuals.
2809 2371
2810# Check whether --with-makeinfo was given. 2372# Check whether --with-makeinfo was given.
2811if test "${with_makeinfo+set}" = set; then : 2373if test "${with_makeinfo+set}" = set; then
2812 withval=$with_makeinfo; 2374 withval=$with_makeinfo;
2813else 2375else
2814 with_makeinfo=yes 2376 with_makeinfo=yes
@@ -2817,23 +2379,29 @@ fi
2817 2379
2818 2380
2819# Check whether --with-gtk was given. 2381# Check whether --with-gtk was given.
2820if test "${with_gtk+set}" = set; then : 2382if test "${with_gtk+set}" = set; then
2821 withval=$with_gtk; as_fn_error "--with-gtk has been removed. Use --with-x-toolkit to 2383 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2822specify a toolkit." "$LINENO" 5 2384specify a toolkit." >&5
2385$as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2386specify a toolkit." >&2;}
2387 { (exit 1); exit 1; }; }
2823fi 2388fi
2824 2389
2825 2390
2826 2391
2827# Check whether --with-gcc was given. 2392# Check whether --with-gcc was given.
2828if test "${with_gcc+set}" = set; then : 2393if test "${with_gcc+set}" = set; then
2829 withval=$with_gcc; as_fn_error "--with-gcc has been removed. Set the \`CC' environment 2394 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2830variable to specify a compiler." "$LINENO" 5 2395variable to specify a compiler." >&5
2396$as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2397variable to specify a compiler." >&2;}
2398 { (exit 1); exit 1; }; }
2831fi 2399fi
2832 2400
2833 2401
2834 2402
2835# Check whether --with-pkg-config-prog was given. 2403# Check whether --with-pkg-config-prog was given.
2836if test "${with_pkg_config_prog+set}" = set; then : 2404if test "${with_pkg_config_prog+set}" = set; then
2837 withval=$with_pkg_config_prog; 2405 withval=$with_pkg_config_prog;
2838fi 2406fi
2839 2407
@@ -2846,7 +2414,7 @@ fi
2846CRT_DIR= 2414CRT_DIR=
2847 2415
2848# Check whether --with-crt-dir was given. 2416# Check whether --with-crt-dir was given.
2849if test "${with_crt_dir+set}" = set; then : 2417if test "${with_crt_dir+set}" = set; then
2850 withval=$with_crt_dir; 2418 withval=$with_crt_dir;
2851fi 2419fi
2852 2420
@@ -2854,7 +2422,7 @@ CRT_DIR="${with_crt_dir}"
2854 2422
2855 2423
2856# Check whether --with-gnustep-conf was given. 2424# Check whether --with-gnustep-conf was given.
2857if test "${with_gnustep_conf+set}" = set; then : 2425if test "${with_gnustep_conf+set}" = set; then
2858 withval=$with_gnustep_conf; 2426 withval=$with_gnustep_conf;
2859fi 2427fi
2860 2428
@@ -2864,7 +2432,7 @@ test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2864 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf 2432 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2865 2433
2866# Check whether --enable-ns-self-contained was given. 2434# Check whether --enable-ns-self-contained was given.
2867if test "${enable_ns_self_contained+set}" = set; then : 2435if test "${enable_ns_self_contained+set}" = set; then
2868 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval 2436 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2869else 2437else
2870 EN_NS_SELF_CONTAINED=yes 2438 EN_NS_SELF_CONTAINED=yes
@@ -2872,7 +2440,7 @@ fi
2872 2440
2873 2441
2874# Check whether --enable-asserts was given. 2442# Check whether --enable-asserts was given.
2875if test "${enable_asserts+set}" = set; then : 2443if test "${enable_asserts+set}" = set; then
2876 enableval=$enable_asserts; USE_XASSERTS=$enableval 2444 enableval=$enable_asserts; USE_XASSERTS=$enableval
2877else 2445else
2878 USE_XASSERTS=no 2446 USE_XASSERTS=no
@@ -2880,7 +2448,7 @@ fi
2880 2448
2881 2449
2882# Check whether --enable-maintainer-mode was given. 2450# Check whether --enable-maintainer-mode was given.
2883if test "${enable_maintainer_mode+set}" = set; then : 2451if test "${enable_maintainer_mode+set}" = set; then
2884 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2452 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2885else 2453else
2886 USE_MAINTAINER_MODE=no 2454 USE_MAINTAINER_MODE=no
@@ -2894,7 +2462,7 @@ fi
2894 2462
2895 2463
2896# Check whether --enable-locallisppath was given. 2464# Check whether --enable-locallisppath was given.
2897if test "${enable_locallisppath+set}" = set; then : 2465if test "${enable_locallisppath+set}" = set; then
2898 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then 2466 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2899 locallisppath= 2467 locallisppath=
2900elif test "${enableval}" != "yes"; then 2468elif test "${enableval}" != "yes"; then
@@ -2904,7 +2472,7 @@ fi
2904 2472
2905 2473
2906# Check whether --enable-checking was given. 2474# Check whether --enable-checking was given.
2907if test "${enable_checking+set}" = set; then : 2475if test "${enable_checking+set}" = set; then
2908 enableval=$enable_checking; ac_checking_flags="${enableval}" 2476 enableval=$enable_checking; ac_checking_flags="${enableval}"
2909fi 2477fi
2910 2478
@@ -2932,44 +2500,58 @@ do
2932 stringfreelist) ac_gc_check_string_free_list=1 ;; 2500 stringfreelist) ac_gc_check_string_free_list=1 ;;
2933 xmallocoverrun) ac_xmalloc_overrun=1 ;; 2501 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2934 conslist) ac_gc_check_cons_list=1 ;; 2502 conslist) ac_gc_check_cons_list=1 ;;
2935 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;; 2503 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2504$as_echo "$as_me: error: unknown check category $check" >&2;}
2505 { (exit 1); exit 1; }; } ;;
2936 esac 2506 esac
2937done 2507done
2938IFS="$ac_save_IFS" 2508IFS="$ac_save_IFS"
2939 2509
2940if test x$ac_enable_checking != x ; then 2510if test x$ac_enable_checking != x ; then
2941 2511
2942$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h 2512cat >>confdefs.h <<\_ACEOF
2513#define ENABLE_CHECKING 1
2514_ACEOF
2943 2515
2944fi 2516fi
2945if test x$ac_gc_check_stringbytes != x ; then 2517if test x$ac_gc_check_stringbytes != x ; then
2946 2518
2947$as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h 2519cat >>confdefs.h <<\_ACEOF
2520#define GC_CHECK_STRING_BYTES 1
2521_ACEOF
2948 2522
2949fi 2523fi
2950if test x$ac_gc_check_stringoverrun != x ; then 2524if test x$ac_gc_check_stringoverrun != x ; then
2951 2525
2952$as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h 2526cat >>confdefs.h <<\_ACEOF
2527#define GC_CHECK_STRING_OVERRUN 1
2528_ACEOF
2953 2529
2954fi 2530fi
2955if test x$ac_gc_check_string_free_list != x ; then 2531if test x$ac_gc_check_string_free_list != x ; then
2956 2532
2957$as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h 2533cat >>confdefs.h <<\_ACEOF
2534#define GC_CHECK_STRING_FREE_LIST 1
2535_ACEOF
2958 2536
2959fi 2537fi
2960if test x$ac_xmalloc_overrun != x ; then 2538if test x$ac_xmalloc_overrun != x ; then
2961 2539
2962$as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h 2540cat >>confdefs.h <<\_ACEOF
2541#define XMALLOC_OVERRUN_CHECK 1
2542_ACEOF
2963 2543
2964fi 2544fi
2965if test x$ac_gc_check_cons_list != x ; then 2545if test x$ac_gc_check_cons_list != x ; then
2966 2546
2967$as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h 2547cat >>confdefs.h <<\_ACEOF
2548#define GC_CHECK_CONS_LIST 1
2549_ACEOF
2968 2550
2969fi 2551fi
2970 2552
2971# Check whether --enable-profiling was given. 2553# Check whether --enable-profiling was given.
2972if test "${enable_profiling+set}" = set; then : 2554if test "${enable_profiling+set}" = set; then
2973 enableval=$enable_profiling; ac_enable_profiling="${enableval}" 2555 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2974fi 2556fi
2975 2557
@@ -2982,7 +2564,7 @@ else
2982fi 2564fi
2983 2565
2984# Check whether --enable-autodepend was given. 2566# Check whether --enable-autodepend was given.
2985if test "${enable_autodepend+set}" = set; then : 2567if test "${enable_autodepend+set}" = set; then
2986 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}" 2568 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2987else 2569else
2988 ac_enable_autodepend=yes 2570 ac_enable_autodepend=yes
@@ -3016,7 +2598,7 @@ esac
3016#### Check if the source directory already has a configured system in it. 2598#### Check if the source directory already has a configured system in it.
3017if test `pwd` != `(cd ${srcdir} && pwd)` \ 2599if test `pwd` != `(cd ${srcdir} && pwd)` \
3018 && test -f "${srcdir}/src/config.h" ; then 2600 && test -f "${srcdir}/src/config.h" ; then
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used 2601 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
3020 as a build directory right now; it has been configured in its own 2602 as a build directory right now; it has been configured in its own
3021 right. To configure in another directory as well, you MUST 2603 right. To configure in another directory as well, you MUST
3022 use GNU make. If you do not have GNU make, then you must 2604 use GNU make. If you do not have GNU make, then you must
@@ -3037,16 +2619,24 @@ fi
3037 2619
3038ac_aux_dir= 2620ac_aux_dir=
3039for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2621for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3040 for ac_t in install-sh install.sh shtool; do 2622 if test -f "$ac_dir/install-sh"; then
3041 if test -f "$ac_dir/$ac_t"; then 2623 ac_aux_dir=$ac_dir
3042 ac_aux_dir=$ac_dir 2624 ac_install_sh="$ac_aux_dir/install-sh -c"
3043 ac_install_sh="$ac_aux_dir/$ac_t -c" 2625 break
3044 break 2 2626 elif test -f "$ac_dir/install.sh"; then
3045 fi 2627 ac_aux_dir=$ac_dir
3046 done 2628 ac_install_sh="$ac_aux_dir/install.sh -c"
2629 break
2630 elif test -f "$ac_dir/shtool"; then
2631 ac_aux_dir=$ac_dir
2632 ac_install_sh="$ac_aux_dir/shtool install -c"
2633 break
2634 fi
3047done 2635done
3048if test -z "$ac_aux_dir"; then 2636if test -z "$ac_aux_dir"; then
3049 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2637 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2638$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2639 { (exit 1); exit 1; }; }
3050fi 2640fi
3051 2641
3052# These three variables are undocumented and unsupported, 2642# These three variables are undocumented and unsupported,
@@ -3060,27 +2650,35 @@ ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3060 2650
3061# Make sure we can run config.sub. 2651# Make sure we can run config.sub.
3062$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2652$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3063 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2653 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2654$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2655 { (exit 1); exit 1; }; }
3064 2656
3065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2657{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3066$as_echo_n "checking build system type... " >&6; } 2658$as_echo_n "checking build system type... " >&6; }
3067if test "${ac_cv_build+set}" = set; then : 2659if test "${ac_cv_build+set}" = set; then
3068 $as_echo_n "(cached) " >&6 2660 $as_echo_n "(cached) " >&6
3069else 2661else
3070 ac_build_alias=$build_alias 2662 ac_build_alias=$build_alias
3071test "x$ac_build_alias" = x && 2663test "x$ac_build_alias" = x &&
3072 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2664 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3073test "x$ac_build_alias" = x && 2665test "x$ac_build_alias" = x &&
3074 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2666 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2667$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2668 { (exit 1); exit 1; }; }
3075ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2669ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3076 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2670 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2671$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2672 { (exit 1); exit 1; }; }
3077 2673
3078fi 2674fi
3079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2675{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3080$as_echo "$ac_cv_build" >&6; } 2676$as_echo "$ac_cv_build" >&6; }
3081case $ac_cv_build in 2677case $ac_cv_build in
3082*-*-*) ;; 2678*-*-*) ;;
3083*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2679*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2680$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2681 { (exit 1); exit 1; }; };;
3084esac 2682esac
3085build=$ac_cv_build 2683build=$ac_cv_build
3086ac_save_IFS=$IFS; IFS='-' 2684ac_save_IFS=$IFS; IFS='-'
@@ -3096,24 +2694,28 @@ IFS=$ac_save_IFS
3096case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2694case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3097 2695
3098 2696
3099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2697{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3100$as_echo_n "checking host system type... " >&6; } 2698$as_echo_n "checking host system type... " >&6; }
3101if test "${ac_cv_host+set}" = set; then : 2699if test "${ac_cv_host+set}" = set; then
3102 $as_echo_n "(cached) " >&6 2700 $as_echo_n "(cached) " >&6
3103else 2701else
3104 if test "x$host_alias" = x; then 2702 if test "x$host_alias" = x; then
3105 ac_cv_host=$ac_cv_build 2703 ac_cv_host=$ac_cv_build
3106else 2704else
3107 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2705 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3108 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2706 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2707$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2708 { (exit 1); exit 1; }; }
3109fi 2709fi
3110 2710
3111fi 2711fi
3112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2712{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3113$as_echo "$ac_cv_host" >&6; } 2713$as_echo "$ac_cv_host" >&6; }
3114case $ac_cv_host in 2714case $ac_cv_host in
3115*-*-*) ;; 2715*-*-*) ;;
3116*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2716*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2717$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2718 { (exit 1); exit 1; }; };;
3117esac 2719esac
3118host=$ac_cv_host 2720host=$ac_cv_host
3119ac_save_IFS=$IFS; IFS='-' 2721ac_save_IFS=$IFS; IFS='-'
@@ -3412,8 +3014,11 @@ fi
3412 3014
3413 3015
3414if test $unported = yes; then 3016if test $unported = yes; then
3415 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems. 3017 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3416Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5 3018Check \`etc/MACHINES' for recognized configuration names." >&5
3019$as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3020Check \`etc/MACHINES' for recognized configuration names." >&2;}
3021 { (exit 1); exit 1; }; }
3417fi 3022fi
3418 3023
3419machfile="m/${machine}.h" 3024machfile="m/${machine}.h"
@@ -3434,9 +3039,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
3434if test -n "$ac_tool_prefix"; then 3039if test -n "$ac_tool_prefix"; then
3435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3040 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3436set dummy ${ac_tool_prefix}gcc; ac_word=$2 3041set dummy ${ac_tool_prefix}gcc; ac_word=$2
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3042{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3438$as_echo_n "checking for $ac_word... " >&6; } 3043$as_echo_n "checking for $ac_word... " >&6; }
3439if test "${ac_cv_prog_CC+set}" = set; then : 3044if test "${ac_cv_prog_CC+set}" = set; then
3440 $as_echo_n "(cached) " >&6 3045 $as_echo_n "(cached) " >&6
3441else 3046else
3442 if test -n "$CC"; then 3047 if test -n "$CC"; then
@@ -3447,24 +3052,24 @@ for as_dir in $PATH
3447do 3052do
3448 IFS=$as_save_IFS 3053 IFS=$as_save_IFS
3449 test -z "$as_dir" && as_dir=. 3054 test -z "$as_dir" && as_dir=.
3450 for ac_exec_ext in '' $ac_executable_extensions; do 3055 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3452 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3057 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3058 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3454 break 2 3059 break 2
3455 fi 3060 fi
3456done 3061done
3457 done 3062done
3458IFS=$as_save_IFS 3063IFS=$as_save_IFS
3459 3064
3460fi 3065fi
3461fi 3066fi
3462CC=$ac_cv_prog_CC 3067CC=$ac_cv_prog_CC
3463if test -n "$CC"; then 3068if test -n "$CC"; then
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3069 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3465$as_echo "$CC" >&6; } 3070$as_echo "$CC" >&6; }
3466else 3071else
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3072 { $as_echo "$as_me:$LINENO: result: no" >&5
3468$as_echo "no" >&6; } 3073$as_echo "no" >&6; }
3469fi 3074fi
3470 3075
@@ -3474,9 +3079,9 @@ if test -z "$ac_cv_prog_CC"; then
3474 ac_ct_CC=$CC 3079 ac_ct_CC=$CC
3475 # Extract the first word of "gcc", so it can be a program name with args. 3080 # Extract the first word of "gcc", so it can be a program name with args.
3476set dummy gcc; ac_word=$2 3081set dummy gcc; ac_word=$2
3477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3082{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3478$as_echo_n "checking for $ac_word... " >&6; } 3083$as_echo_n "checking for $ac_word... " >&6; }
3479if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3084if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3480 $as_echo_n "(cached) " >&6 3085 $as_echo_n "(cached) " >&6
3481else 3086else
3482 if test -n "$ac_ct_CC"; then 3087 if test -n "$ac_ct_CC"; then
@@ -3487,24 +3092,24 @@ for as_dir in $PATH
3487do 3092do
3488 IFS=$as_save_IFS 3093 IFS=$as_save_IFS
3489 test -z "$as_dir" && as_dir=. 3094 test -z "$as_dir" && as_dir=.
3490 for ac_exec_ext in '' $ac_executable_extensions; do 3095 for ac_exec_ext in '' $ac_executable_extensions; do
3491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3492 ac_cv_prog_ac_ct_CC="gcc" 3097 ac_cv_prog_ac_ct_CC="gcc"
3493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3098 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3494 break 2 3099 break 2
3495 fi 3100 fi
3496done 3101done
3497 done 3102done
3498IFS=$as_save_IFS 3103IFS=$as_save_IFS
3499 3104
3500fi 3105fi
3501fi 3106fi
3502ac_ct_CC=$ac_cv_prog_ac_ct_CC 3107ac_ct_CC=$ac_cv_prog_ac_ct_CC
3503if test -n "$ac_ct_CC"; then 3108if test -n "$ac_ct_CC"; then
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3109 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3505$as_echo "$ac_ct_CC" >&6; } 3110$as_echo "$ac_ct_CC" >&6; }
3506else 3111else
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3112 { $as_echo "$as_me:$LINENO: result: no" >&5
3508$as_echo "no" >&6; } 3113$as_echo "no" >&6; }
3509fi 3114fi
3510 3115
@@ -3513,8 +3118,12 @@ fi
3513 else 3118 else
3514 case $cross_compiling:$ac_tool_warned in 3119 case $cross_compiling:$ac_tool_warned in
3515yes:) 3120yes:)
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3121{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3517$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3122whose name does not start with the host triplet. If you think this
3123configuration is useful to you, please write to autoconf@gnu.org." >&5
3124$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3125whose name does not start with the host triplet. If you think this
3126configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3518ac_tool_warned=yes ;; 3127ac_tool_warned=yes ;;
3519esac 3128esac
3520 CC=$ac_ct_CC 3129 CC=$ac_ct_CC
@@ -3527,9 +3136,9 @@ if test -z "$CC"; then
3527 if test -n "$ac_tool_prefix"; then 3136 if test -n "$ac_tool_prefix"; then
3528 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3137 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3529set dummy ${ac_tool_prefix}cc; ac_word=$2 3138set dummy ${ac_tool_prefix}cc; ac_word=$2
3530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3139{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3531$as_echo_n "checking for $ac_word... " >&6; } 3140$as_echo_n "checking for $ac_word... " >&6; }
3532if test "${ac_cv_prog_CC+set}" = set; then : 3141if test "${ac_cv_prog_CC+set}" = set; then
3533 $as_echo_n "(cached) " >&6 3142 $as_echo_n "(cached) " >&6
3534else 3143else
3535 if test -n "$CC"; then 3144 if test -n "$CC"; then
@@ -3540,24 +3149,24 @@ for as_dir in $PATH
3540do 3149do
3541 IFS=$as_save_IFS 3150 IFS=$as_save_IFS
3542 test -z "$as_dir" && as_dir=. 3151 test -z "$as_dir" && as_dir=.
3543 for ac_exec_ext in '' $ac_executable_extensions; do 3152 for ac_exec_ext in '' $ac_executable_extensions; do
3544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3545 ac_cv_prog_CC="${ac_tool_prefix}cc" 3154 ac_cv_prog_CC="${ac_tool_prefix}cc"
3546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3155 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3547 break 2 3156 break 2
3548 fi 3157 fi
3549done 3158done
3550 done 3159done
3551IFS=$as_save_IFS 3160IFS=$as_save_IFS
3552 3161
3553fi 3162fi
3554fi 3163fi
3555CC=$ac_cv_prog_CC 3164CC=$ac_cv_prog_CC
3556if test -n "$CC"; then 3165if test -n "$CC"; then
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3166 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3558$as_echo "$CC" >&6; } 3167$as_echo "$CC" >&6; }
3559else 3168else
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3169 { $as_echo "$as_me:$LINENO: result: no" >&5
3561$as_echo "no" >&6; } 3170$as_echo "no" >&6; }
3562fi 3171fi
3563 3172
@@ -3567,9 +3176,9 @@ fi
3567if test -z "$CC"; then 3176if test -z "$CC"; then
3568 # Extract the first word of "cc", so it can be a program name with args. 3177 # Extract the first word of "cc", so it can be a program name with args.
3569set dummy cc; ac_word=$2 3178set dummy cc; ac_word=$2
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3179{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3571$as_echo_n "checking for $ac_word... " >&6; } 3180$as_echo_n "checking for $ac_word... " >&6; }
3572if test "${ac_cv_prog_CC+set}" = set; then : 3181if test "${ac_cv_prog_CC+set}" = set; then
3573 $as_echo_n "(cached) " >&6 3182 $as_echo_n "(cached) " >&6
3574else 3183else
3575 if test -n "$CC"; then 3184 if test -n "$CC"; then
@@ -3581,18 +3190,18 @@ for as_dir in $PATH
3581do 3190do
3582 IFS=$as_save_IFS 3191 IFS=$as_save_IFS
3583 test -z "$as_dir" && as_dir=. 3192 test -z "$as_dir" && as_dir=.
3584 for ac_exec_ext in '' $ac_executable_extensions; do 3193 for ac_exec_ext in '' $ac_executable_extensions; do
3585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3586 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3195 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3587 ac_prog_rejected=yes 3196 ac_prog_rejected=yes
3588 continue 3197 continue
3589 fi 3198 fi
3590 ac_cv_prog_CC="cc" 3199 ac_cv_prog_CC="cc"
3591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3200 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3592 break 2 3201 break 2
3593 fi 3202 fi
3594done 3203done
3595 done 3204done
3596IFS=$as_save_IFS 3205IFS=$as_save_IFS
3597 3206
3598if test $ac_prog_rejected = yes; then 3207if test $ac_prog_rejected = yes; then
@@ -3611,10 +3220,10 @@ fi
3611fi 3220fi
3612CC=$ac_cv_prog_CC 3221CC=$ac_cv_prog_CC
3613if test -n "$CC"; then 3222if test -n "$CC"; then
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3223 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3615$as_echo "$CC" >&6; } 3224$as_echo "$CC" >&6; }
3616else 3225else
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3226 { $as_echo "$as_me:$LINENO: result: no" >&5
3618$as_echo "no" >&6; } 3227$as_echo "no" >&6; }
3619fi 3228fi
3620 3229
@@ -3626,9 +3235,9 @@ if test -z "$CC"; then
3626 do 3235 do
3627 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3236 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3628set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3237set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3238{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3630$as_echo_n "checking for $ac_word... " >&6; } 3239$as_echo_n "checking for $ac_word... " >&6; }
3631if test "${ac_cv_prog_CC+set}" = set; then : 3240if test "${ac_cv_prog_CC+set}" = set; then
3632 $as_echo_n "(cached) " >&6 3241 $as_echo_n "(cached) " >&6
3633else 3242else
3634 if test -n "$CC"; then 3243 if test -n "$CC"; then
@@ -3639,24 +3248,24 @@ for as_dir in $PATH
3639do 3248do
3640 IFS=$as_save_IFS 3249 IFS=$as_save_IFS
3641 test -z "$as_dir" && as_dir=. 3250 test -z "$as_dir" && as_dir=.
3642 for ac_exec_ext in '' $ac_executable_extensions; do 3251 for ac_exec_ext in '' $ac_executable_extensions; do
3643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3644 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3253 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3254 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3646 break 2 3255 break 2
3647 fi 3256 fi
3648done 3257done
3649 done 3258done
3650IFS=$as_save_IFS 3259IFS=$as_save_IFS
3651 3260
3652fi 3261fi
3653fi 3262fi
3654CC=$ac_cv_prog_CC 3263CC=$ac_cv_prog_CC
3655if test -n "$CC"; then 3264if test -n "$CC"; then
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3265 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3657$as_echo "$CC" >&6; } 3266$as_echo "$CC" >&6; }
3658else 3267else
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3268 { $as_echo "$as_me:$LINENO: result: no" >&5
3660$as_echo "no" >&6; } 3269$as_echo "no" >&6; }
3661fi 3270fi
3662 3271
@@ -3670,9 +3279,9 @@ if test -z "$CC"; then
3670do 3279do
3671 # Extract the first word of "$ac_prog", so it can be a program name with args. 3280 # Extract the first word of "$ac_prog", so it can be a program name with args.
3672set dummy $ac_prog; ac_word=$2 3281set dummy $ac_prog; ac_word=$2
3673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3282{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3674$as_echo_n "checking for $ac_word... " >&6; } 3283$as_echo_n "checking for $ac_word... " >&6; }
3675if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3284if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3676 $as_echo_n "(cached) " >&6 3285 $as_echo_n "(cached) " >&6
3677else 3286else
3678 if test -n "$ac_ct_CC"; then 3287 if test -n "$ac_ct_CC"; then
@@ -3683,24 +3292,24 @@ for as_dir in $PATH
3683do 3292do
3684 IFS=$as_save_IFS 3293 IFS=$as_save_IFS
3685 test -z "$as_dir" && as_dir=. 3294 test -z "$as_dir" && as_dir=.
3686 for ac_exec_ext in '' $ac_executable_extensions; do 3295 for ac_exec_ext in '' $ac_executable_extensions; do
3687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3688 ac_cv_prog_ac_ct_CC="$ac_prog" 3297 ac_cv_prog_ac_ct_CC="$ac_prog"
3689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3298 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3690 break 2 3299 break 2
3691 fi 3300 fi
3692done 3301done
3693 done 3302done
3694IFS=$as_save_IFS 3303IFS=$as_save_IFS
3695 3304
3696fi 3305fi
3697fi 3306fi
3698ac_ct_CC=$ac_cv_prog_ac_ct_CC 3307ac_ct_CC=$ac_cv_prog_ac_ct_CC
3699if test -n "$ac_ct_CC"; then 3308if test -n "$ac_ct_CC"; then
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3309 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3701$as_echo "$ac_ct_CC" >&6; } 3310$as_echo "$ac_ct_CC" >&6; }
3702else 3311else
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3312 { $as_echo "$as_me:$LINENO: result: no" >&5
3704$as_echo "no" >&6; } 3313$as_echo "no" >&6; }
3705fi 3314fi
3706 3315
@@ -3713,8 +3322,12 @@ done
3713 else 3322 else
3714 case $cross_compiling:$ac_tool_warned in 3323 case $cross_compiling:$ac_tool_warned in
3715yes:) 3324yes:)
3716{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3325{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3717$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3326whose name does not start with the host triplet. If you think this
3327configuration is useful to you, please write to autoconf@gnu.org." >&5
3328$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3329whose name does not start with the host triplet. If you think this
3330configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3718ac_tool_warned=yes ;; 3331ac_tool_warned=yes ;;
3719esac 3332esac
3720 CC=$ac_ct_CC 3333 CC=$ac_ct_CC
@@ -3724,37 +3337,55 @@ fi
3724fi 3337fi
3725 3338
3726 3339
3727test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3340test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3728$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3341See \`config.log' for more details." >&5
3729as_fn_error "no acceptable C compiler found in \$PATH 3342$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3730See \`config.log' for more details." "$LINENO" 5; } 3343See \`config.log' for more details." >&2;}
3344 { (exit 1); exit 1; }; }
3731 3345
3732# Provide some information about the compiler. 3346# Provide some information about the compiler.
3733$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3347$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3734set X $ac_compile 3348set X $ac_compile
3735ac_compiler=$2 3349ac_compiler=$2
3736for ac_option in --version -v -V -qversion; do 3350{ (ac_try="$ac_compiler --version >&5"
3737 { { ac_try="$ac_compiler $ac_option >&5"
3738case "(($ac_try" in 3351case "(($ac_try" in
3739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3740 *) ac_try_echo=$ac_try;; 3353 *) ac_try_echo=$ac_try;;
3741esac 3354esac
3742eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3355eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3743$as_echo "$ac_try_echo"; } >&5 3356$as_echo "$ac_try_echo") >&5
3744 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3357 (eval "$ac_compiler --version >&5") 2>&5
3745 ac_status=$? 3358 ac_status=$?
3746 if test -s conftest.err; then 3359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 sed '10a\ 3360 (exit $ac_status); }
3748... rest of stderr output deleted ... 3361{ (ac_try="$ac_compiler -v >&5"
3749 10q' conftest.err >conftest.er1 3362case "(($ac_try" in
3750 cat conftest.er1 >&5 3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751 fi 3364 *) ac_try_echo=$ac_try;;
3752 rm -f conftest.er1 conftest.err 3365esac
3753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3754 test $ac_status = 0; } 3367$as_echo "$ac_try_echo") >&5
3755done 3368 (eval "$ac_compiler -v >&5") 2>&5
3369 ac_status=$?
3370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }
3372{ (ac_try="$ac_compiler -V >&5"
3373case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376esac
3377eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3378$as_echo "$ac_try_echo") >&5
3379 (eval "$ac_compiler -V >&5") 2>&5
3380 ac_status=$?
3381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }
3756 3383
3757cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3384cat >conftest.$ac_ext <<_ACEOF
3385/* confdefs.h. */
3386_ACEOF
3387cat confdefs.h >>conftest.$ac_ext
3388cat >>conftest.$ac_ext <<_ACEOF
3758/* end confdefs.h. */ 3389/* end confdefs.h. */
3759 3390
3760int 3391int
@@ -3770,8 +3401,8 @@ ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3770# Try to create an executable without -o first, disregard a.out. 3401# Try to create an executable without -o first, disregard a.out.
3771# It will help us diagnose broken compilers, and finding out an intuition 3402# It will help us diagnose broken compilers, and finding out an intuition
3772# of exeext. 3403# of exeext.
3773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3404{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3774$as_echo_n "checking whether the C compiler works... " >&6; } 3405$as_echo_n "checking for C compiler default output file name... " >&6; }
3775ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3406ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3776 3407
3777# The possible output files: 3408# The possible output files:
@@ -3787,17 +3418,17 @@ do
3787done 3418done
3788rm -f $ac_rmfiles 3419rm -f $ac_rmfiles
3789 3420
3790if { { ac_try="$ac_link_default" 3421if { (ac_try="$ac_link_default"
3791case "(($ac_try" in 3422case "(($ac_try" in
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;; 3424 *) ac_try_echo=$ac_try;;
3794esac 3425esac
3795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3426eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3796$as_echo "$ac_try_echo"; } >&5 3427$as_echo "$ac_try_echo") >&5
3797 (eval "$ac_link_default") 2>&5 3428 (eval "$ac_link_default") 2>&5
3798 ac_status=$? 3429 ac_status=$?
3799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 test $ac_status = 0; }; then : 3431 (exit $ac_status); }; then
3801 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3432 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3802# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3433# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3803# in a Makefile. We should not override ac_cv_exeext if it was cached, 3434# in a Makefile. We should not override ac_cv_exeext if it was cached,
@@ -3814,7 +3445,7 @@ do
3814 # certainly right. 3445 # certainly right.
3815 break;; 3446 break;;
3816 *.* ) 3447 *.* )
3817 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3448 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3818 then :; else 3449 then :; else
3819 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3450 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3820 fi 3451 fi
@@ -3833,42 +3464,80 @@ test "$ac_cv_exeext" = no && ac_cv_exeext=
3833else 3464else
3834 ac_file='' 3465 ac_file=''
3835fi 3466fi
3836if test -z "$ac_file"; then : 3467
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3468{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3838$as_echo "no" >&6; } 3469$as_echo "$ac_file" >&6; }
3839$as_echo "$as_me: failed program was:" >&5 3470if test -z "$ac_file"; then
3471 $as_echo "$as_me: failed program was:" >&5
3840sed 's/^/| /' conftest.$ac_ext >&5 3472sed 's/^/| /' conftest.$ac_ext >&5
3841 3473
3842{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3474{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3843$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3475See \`config.log' for more details." >&5
3844{ as_fn_set_status 77 3476$as_echo "$as_me: error: C compiler cannot create executables
3845as_fn_error "C compiler cannot create executables 3477See \`config.log' for more details." >&2;}
3846See \`config.log' for more details." "$LINENO" 5; }; } 3478 { (exit 77); exit 77; }; }
3847else
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3849$as_echo "yes" >&6; }
3850fi 3479fi
3851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3480
3852$as_echo_n "checking for C compiler default output file name... " >&6; }
3853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3854$as_echo "$ac_file" >&6; }
3855ac_exeext=$ac_cv_exeext 3481ac_exeext=$ac_cv_exeext
3856 3482
3483# Check that the compiler produces executables we can run. If not, either
3484# the compiler is broken, or we cross compile.
3485{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3486$as_echo_n "checking whether the C compiler works... " >&6; }
3487# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3488# If not cross compiling, check that we can run a simple program.
3489if test "$cross_compiling" != yes; then
3490 if { ac_try='./$ac_file'
3491 { (case "(($ac_try" in
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3494esac
3495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3496$as_echo "$ac_try_echo") >&5
3497 (eval "$ac_try") 2>&5
3498 ac_status=$?
3499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; }; then
3501 cross_compiling=no
3502 else
3503 if test "$cross_compiling" = maybe; then
3504 cross_compiling=yes
3505 else
3506 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3507If you meant to cross compile, use \`--host'.
3508See \`config.log' for more details." >&5
3509$as_echo "$as_me: error: cannot run C compiled programs.
3510If you meant to cross compile, use \`--host'.
3511See \`config.log' for more details." >&2;}
3512 { (exit 1); exit 1; }; }
3513 fi
3514 fi
3515fi
3516{ $as_echo "$as_me:$LINENO: result: yes" >&5
3517$as_echo "yes" >&6; }
3518
3857rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3519rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3858ac_clean_files=$ac_clean_files_save 3520ac_clean_files=$ac_clean_files_save
3859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3521# Check that the compiler produces executables we can run. If not, either
3522# the compiler is broken, or we cross compile.
3523{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3524$as_echo_n "checking whether we are cross compiling... " >&6; }
3525{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3526$as_echo "$cross_compiling" >&6; }
3527
3528{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3860$as_echo_n "checking for suffix of executables... " >&6; } 3529$as_echo_n "checking for suffix of executables... " >&6; }
3861if { { ac_try="$ac_link" 3530if { (ac_try="$ac_link"
3862case "(($ac_try" in 3531case "(($ac_try" in
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;; 3533 *) ac_try_echo=$ac_try;;
3865esac 3534esac
3866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3867$as_echo "$ac_try_echo"; } >&5 3536$as_echo "$ac_try_echo") >&5
3868 (eval "$ac_link") 2>&5 3537 (eval "$ac_link") 2>&5
3869 ac_status=$? 3538 ac_status=$?
3870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 test $ac_status = 0; }; then : 3540 (exit $ac_status); }; then
3872 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3541 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3873# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3542# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3874# work properly (i.e., refer to `conftest.exe'), while it won't with 3543# work properly (i.e., refer to `conftest.exe'), while it won't with
@@ -3883,83 +3552,30 @@ for ac_file in conftest.exe conftest conftest.*; do
3883 esac 3552 esac
3884done 3553done
3885else 3554else
3886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3555 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3887$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3556See \`config.log' for more details." >&5
3888as_fn_error "cannot compute suffix of executables: cannot compile and link 3557$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3889See \`config.log' for more details." "$LINENO" 5; } 3558See \`config.log' for more details." >&2;}
3559 { (exit 1); exit 1; }; }
3890fi 3560fi
3891rm -f conftest conftest$ac_cv_exeext 3561
3892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3562rm -f conftest$ac_cv_exeext
3563{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3893$as_echo "$ac_cv_exeext" >&6; } 3564$as_echo "$ac_cv_exeext" >&6; }
3894 3565
3895rm -f conftest.$ac_ext 3566rm -f conftest.$ac_ext
3896EXEEXT=$ac_cv_exeext 3567EXEEXT=$ac_cv_exeext
3897ac_exeext=$EXEEXT 3568ac_exeext=$EXEEXT
3898cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3569{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3899/* end confdefs.h. */
3900#include <stdio.h>
3901int
3902main ()
3903{
3904FILE *f = fopen ("conftest.out", "w");
3905 return ferror (f) || fclose (f) != 0;
3906
3907 ;
3908 return 0;
3909}
3910_ACEOF
3911ac_clean_files="$ac_clean_files conftest.out"
3912# Check that the compiler produces executables we can run. If not, either
3913# the compiler is broken, or we cross compile.
3914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3915$as_echo_n "checking whether we are cross compiling... " >&6; }
3916if test "$cross_compiling" != yes; then
3917 { { ac_try="$ac_link"
3918case "(($ac_try" in
3919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920 *) ac_try_echo=$ac_try;;
3921esac
3922eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3923$as_echo "$ac_try_echo"; } >&5
3924 (eval "$ac_link") 2>&5
3925 ac_status=$?
3926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927 test $ac_status = 0; }
3928 if { ac_try='./conftest$ac_cv_exeext'
3929 { { case "(($ac_try" in
3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3932esac
3933eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3934$as_echo "$ac_try_echo"; } >&5
3935 (eval "$ac_try") 2>&5
3936 ac_status=$?
3937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3938 test $ac_status = 0; }; }; then
3939 cross_compiling=no
3940 else
3941 if test "$cross_compiling" = maybe; then
3942 cross_compiling=yes
3943 else
3944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3945$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3946as_fn_error "cannot run C compiled programs.
3947If you meant to cross compile, use \`--host'.
3948See \`config.log' for more details." "$LINENO" 5; }
3949 fi
3950 fi
3951fi
3952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3953$as_echo "$cross_compiling" >&6; }
3954
3955rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3956ac_clean_files=$ac_clean_files_save
3957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3958$as_echo_n "checking for suffix of object files... " >&6; } 3570$as_echo_n "checking for suffix of object files... " >&6; }
3959if test "${ac_cv_objext+set}" = set; then : 3571if test "${ac_cv_objext+set}" = set; then
3960 $as_echo_n "(cached) " >&6 3572 $as_echo_n "(cached) " >&6
3961else 3573else
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3574 cat >conftest.$ac_ext <<_ACEOF
3575/* confdefs.h. */
3576_ACEOF
3577cat confdefs.h >>conftest.$ac_ext
3578cat >>conftest.$ac_ext <<_ACEOF
3963/* end confdefs.h. */ 3579/* end confdefs.h. */
3964 3580
3965int 3581int
@@ -3971,17 +3587,17 @@ main ()
3971} 3587}
3972_ACEOF 3588_ACEOF
3973rm -f conftest.o conftest.obj 3589rm -f conftest.o conftest.obj
3974if { { ac_try="$ac_compile" 3590if { (ac_try="$ac_compile"
3975case "(($ac_try" in 3591case "(($ac_try" in
3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977 *) ac_try_echo=$ac_try;; 3593 *) ac_try_echo=$ac_try;;
3978esac 3594esac
3979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3595eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3980$as_echo "$ac_try_echo"; } >&5 3596$as_echo "$ac_try_echo") >&5
3981 (eval "$ac_compile") 2>&5 3597 (eval "$ac_compile") 2>&5
3982 ac_status=$? 3598 ac_status=$?
3983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 test $ac_status = 0; }; then : 3600 (exit $ac_status); }; then
3985 for ac_file in conftest.o conftest.obj conftest.*; do 3601 for ac_file in conftest.o conftest.obj conftest.*; do
3986 test -f "$ac_file" || continue; 3602 test -f "$ac_file" || continue;
3987 case $ac_file in 3603 case $ac_file in
@@ -3994,23 +3610,29 @@ else
3994 $as_echo "$as_me: failed program was:" >&5 3610 $as_echo "$as_me: failed program was:" >&5
3995sed 's/^/| /' conftest.$ac_ext >&5 3611sed 's/^/| /' conftest.$ac_ext >&5
3996 3612
3997{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3613{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3614See \`config.log' for more details." >&5
3999as_fn_error "cannot compute suffix of object files: cannot compile 3615$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
4000See \`config.log' for more details." "$LINENO" 5; } 3616See \`config.log' for more details." >&2;}
3617 { (exit 1); exit 1; }; }
4001fi 3618fi
3619
4002rm -f conftest.$ac_cv_objext conftest.$ac_ext 3620rm -f conftest.$ac_cv_objext conftest.$ac_ext
4003fi 3621fi
4004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3622{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4005$as_echo "$ac_cv_objext" >&6; } 3623$as_echo "$ac_cv_objext" >&6; }
4006OBJEXT=$ac_cv_objext 3624OBJEXT=$ac_cv_objext
4007ac_objext=$OBJEXT 3625ac_objext=$OBJEXT
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3626{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4009$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3627$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4010if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3628if test "${ac_cv_c_compiler_gnu+set}" = set; then
4011 $as_echo_n "(cached) " >&6 3629 $as_echo_n "(cached) " >&6
4012else 3630else
4013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3631 cat >conftest.$ac_ext <<_ACEOF
3632/* confdefs.h. */
3633_ACEOF
3634cat confdefs.h >>conftest.$ac_ext
3635cat >>conftest.$ac_ext <<_ACEOF
4014/* end confdefs.h. */ 3636/* end confdefs.h. */
4015 3637
4016int 3638int
@@ -4024,16 +3646,37 @@ main ()
4024 return 0; 3646 return 0;
4025} 3647}
4026_ACEOF 3648_ACEOF
4027if ac_fn_c_try_compile "$LINENO"; then : 3649rm -f conftest.$ac_objext
3650if { (ac_try="$ac_compile"
3651case "(($ac_try" in
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3654esac
3655eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3656$as_echo "$ac_try_echo") >&5
3657 (eval "$ac_compile") 2>conftest.er1
3658 ac_status=$?
3659 grep -v '^ *+' conftest.er1 >conftest.err
3660 rm -f conftest.er1
3661 cat conftest.err >&5
3662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } && {
3664 test -z "$ac_c_werror_flag" ||
3665 test ! -s conftest.err
3666 } && test -s conftest.$ac_objext; then
4028 ac_compiler_gnu=yes 3667 ac_compiler_gnu=yes
4029else 3668else
4030 ac_compiler_gnu=no 3669 $as_echo "$as_me: failed program was:" >&5
3670sed 's/^/| /' conftest.$ac_ext >&5
3671
3672 ac_compiler_gnu=no
4031fi 3673fi
3674
4032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4033ac_cv_c_compiler_gnu=$ac_compiler_gnu 3676ac_cv_c_compiler_gnu=$ac_compiler_gnu
4034 3677
4035fi 3678fi
4036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3679{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4037$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3680$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4038if test $ac_compiler_gnu = yes; then 3681if test $ac_compiler_gnu = yes; then
4039 GCC=yes 3682 GCC=yes
@@ -4042,16 +3685,20 @@ else
4042fi 3685fi
4043ac_test_CFLAGS=${CFLAGS+set} 3686ac_test_CFLAGS=${CFLAGS+set}
4044ac_save_CFLAGS=$CFLAGS 3687ac_save_CFLAGS=$CFLAGS
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3688{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4046$as_echo_n "checking whether $CC accepts -g... " >&6; } 3689$as_echo_n "checking whether $CC accepts -g... " >&6; }
4047if test "${ac_cv_prog_cc_g+set}" = set; then : 3690if test "${ac_cv_prog_cc_g+set}" = set; then
4048 $as_echo_n "(cached) " >&6 3691 $as_echo_n "(cached) " >&6
4049else 3692else
4050 ac_save_c_werror_flag=$ac_c_werror_flag 3693 ac_save_c_werror_flag=$ac_c_werror_flag
4051 ac_c_werror_flag=yes 3694 ac_c_werror_flag=yes
4052 ac_cv_prog_cc_g=no 3695 ac_cv_prog_cc_g=no
4053 CFLAGS="-g" 3696 CFLAGS="-g"
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3697 cat >conftest.$ac_ext <<_ACEOF
3698/* confdefs.h. */
3699_ACEOF
3700cat confdefs.h >>conftest.$ac_ext
3701cat >>conftest.$ac_ext <<_ACEOF
4055/* end confdefs.h. */ 3702/* end confdefs.h. */
4056 3703
4057int 3704int
@@ -4062,11 +3709,35 @@ main ()
4062 return 0; 3709 return 0;
4063} 3710}
4064_ACEOF 3711_ACEOF
4065if ac_fn_c_try_compile "$LINENO"; then : 3712rm -f conftest.$ac_objext
3713if { (ac_try="$ac_compile"
3714case "(($ac_try" in
3715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716 *) ac_try_echo=$ac_try;;
3717esac
3718eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3719$as_echo "$ac_try_echo") >&5
3720 (eval "$ac_compile") 2>conftest.er1
3721 ac_status=$?
3722 grep -v '^ *+' conftest.er1 >conftest.err
3723 rm -f conftest.er1
3724 cat conftest.err >&5
3725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); } && {
3727 test -z "$ac_c_werror_flag" ||
3728 test ! -s conftest.err
3729 } && test -s conftest.$ac_objext; then
4066 ac_cv_prog_cc_g=yes 3730 ac_cv_prog_cc_g=yes
4067else 3731else
4068 CFLAGS="" 3732 $as_echo "$as_me: failed program was:" >&5
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3733sed 's/^/| /' conftest.$ac_ext >&5
3734
3735 CFLAGS=""
3736 cat >conftest.$ac_ext <<_ACEOF
3737/* confdefs.h. */
3738_ACEOF
3739cat confdefs.h >>conftest.$ac_ext
3740cat >>conftest.$ac_ext <<_ACEOF
4070/* end confdefs.h. */ 3741/* end confdefs.h. */
4071 3742
4072int 3743int
@@ -4077,12 +3748,36 @@ main ()
4077 return 0; 3748 return 0;
4078} 3749}
4079_ACEOF 3750_ACEOF
4080if ac_fn_c_try_compile "$LINENO"; then : 3751rm -f conftest.$ac_objext
4081 3752if { (ac_try="$ac_compile"
3753case "(($ac_try" in
3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3756esac
3757eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3758$as_echo "$ac_try_echo") >&5
3759 (eval "$ac_compile") 2>conftest.er1
3760 ac_status=$?
3761 grep -v '^ *+' conftest.er1 >conftest.err
3762 rm -f conftest.er1
3763 cat conftest.err >&5
3764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); } && {
3766 test -z "$ac_c_werror_flag" ||
3767 test ! -s conftest.err
3768 } && test -s conftest.$ac_objext; then
3769 :
4082else 3770else
4083 ac_c_werror_flag=$ac_save_c_werror_flag 3771 $as_echo "$as_me: failed program was:" >&5
3772sed 's/^/| /' conftest.$ac_ext >&5
3773
3774 ac_c_werror_flag=$ac_save_c_werror_flag
4084 CFLAGS="-g" 3775 CFLAGS="-g"
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3776 cat >conftest.$ac_ext <<_ACEOF
3777/* confdefs.h. */
3778_ACEOF
3779cat confdefs.h >>conftest.$ac_ext
3780cat >>conftest.$ac_ext <<_ACEOF
4086/* end confdefs.h. */ 3781/* end confdefs.h. */
4087 3782
4088int 3783int
@@ -4093,17 +3788,42 @@ main ()
4093 return 0; 3788 return 0;
4094} 3789}
4095_ACEOF 3790_ACEOF
4096if ac_fn_c_try_compile "$LINENO"; then : 3791rm -f conftest.$ac_objext
3792if { (ac_try="$ac_compile"
3793case "(($ac_try" in
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3796esac
3797eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3798$as_echo "$ac_try_echo") >&5
3799 (eval "$ac_compile") 2>conftest.er1
3800 ac_status=$?
3801 grep -v '^ *+' conftest.er1 >conftest.err
3802 rm -f conftest.er1
3803 cat conftest.err >&5
3804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); } && {
3806 test -z "$ac_c_werror_flag" ||
3807 test ! -s conftest.err
3808 } && test -s conftest.$ac_objext; then
4097 ac_cv_prog_cc_g=yes 3809 ac_cv_prog_cc_g=yes
3810else
3811 $as_echo "$as_me: failed program was:" >&5
3812sed 's/^/| /' conftest.$ac_ext >&5
3813
3814
4098fi 3815fi
3816
4099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4100fi 3818fi
3819
4101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102fi 3821fi
3822
4103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104 ac_c_werror_flag=$ac_save_c_werror_flag 3824 ac_c_werror_flag=$ac_save_c_werror_flag
4105fi 3825fi
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3826{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4107$as_echo "$ac_cv_prog_cc_g" >&6; } 3827$as_echo "$ac_cv_prog_cc_g" >&6; }
4108if test "$ac_test_CFLAGS" = set; then 3828if test "$ac_test_CFLAGS" = set; then
4109 CFLAGS=$ac_save_CFLAGS 3829 CFLAGS=$ac_save_CFLAGS
@@ -4120,14 +3840,18 @@ else
4120 CFLAGS= 3840 CFLAGS=
4121 fi 3841 fi
4122fi 3842fi
4123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3843{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4124$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3844$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4125if test "${ac_cv_prog_cc_c89+set}" = set; then : 3845if test "${ac_cv_prog_cc_c89+set}" = set; then
4126 $as_echo_n "(cached) " >&6 3846 $as_echo_n "(cached) " >&6
4127else 3847else
4128 ac_cv_prog_cc_c89=no 3848 ac_cv_prog_cc_c89=no
4129ac_save_CC=$CC 3849ac_save_CC=$CC
4130cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3850cat >conftest.$ac_ext <<_ACEOF
3851/* confdefs.h. */
3852_ACEOF
3853cat confdefs.h >>conftest.$ac_ext
3854cat >>conftest.$ac_ext <<_ACEOF
4131/* end confdefs.h. */ 3855/* end confdefs.h. */
4132#include <stdarg.h> 3856#include <stdarg.h>
4133#include <stdio.h> 3857#include <stdio.h>
@@ -4184,9 +3908,32 @@ for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4184 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3908 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4185do 3909do
4186 CC="$ac_save_CC $ac_arg" 3910 CC="$ac_save_CC $ac_arg"
4187 if ac_fn_c_try_compile "$LINENO"; then : 3911 rm -f conftest.$ac_objext
3912if { (ac_try="$ac_compile"
3913case "(($ac_try" in
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3916esac
3917eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3918$as_echo "$ac_try_echo") >&5
3919 (eval "$ac_compile") 2>conftest.er1
3920 ac_status=$?
3921 grep -v '^ *+' conftest.er1 >conftest.err
3922 rm -f conftest.er1
3923 cat conftest.err >&5
3924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } && {
3926 test -z "$ac_c_werror_flag" ||
3927 test ! -s conftest.err
3928 } && test -s conftest.$ac_objext; then
4188 ac_cv_prog_cc_c89=$ac_arg 3929 ac_cv_prog_cc_c89=$ac_arg
3930else
3931 $as_echo "$as_me: failed program was:" >&5
3932sed 's/^/| /' conftest.$ac_ext >&5
3933
3934
4189fi 3935fi
3936
4190rm -f core conftest.err conftest.$ac_objext 3937rm -f core conftest.err conftest.$ac_objext
4191 test "x$ac_cv_prog_cc_c89" != "xno" && break 3938 test "x$ac_cv_prog_cc_c89" != "xno" && break
4192done 3939done
@@ -4197,19 +3944,17 @@ fi
4197# AC_CACHE_VAL 3944# AC_CACHE_VAL
4198case "x$ac_cv_prog_cc_c89" in 3945case "x$ac_cv_prog_cc_c89" in
4199 x) 3946 x)
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3947 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4201$as_echo "none needed" >&6; } ;; 3948$as_echo "none needed" >&6; } ;;
4202 xno) 3949 xno)
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3950 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4204$as_echo "unsupported" >&6; } ;; 3951$as_echo "unsupported" >&6; } ;;
4205 *) 3952 *)
4206 CC="$CC $ac_cv_prog_cc_c89" 3953 CC="$CC $ac_cv_prog_cc_c89"
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3954 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4208$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3955$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4209esac 3956esac
4210if test "x$ac_cv_prog_cc_c89" != xno; then :
4211 3957
4212fi
4213 3958
4214ac_ext=c 3959ac_ext=c
4215ac_cpp='$CPP $CPPFLAGS' 3960ac_cpp='$CPP $CPPFLAGS'
@@ -4227,13 +3972,17 @@ fi
4227## using a Sun compiler, which needs -Xs to prevent whitespace. 3972## using a Sun compiler, which needs -Xs to prevent whitespace.
4228if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \ 3973if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4229 test x"$CPP" = x; then 3974 test x"$CPP" = x; then
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5 3975 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
4231$as_echo_n "checking whether we are using a Sun C compiler... " >&6; } 3976$as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4232 3977
4233if test "${emacs_cv_sunpro_c+set}" = set; then : 3978if test "${emacs_cv_sunpro_c+set}" = set; then
4234 $as_echo_n "(cached) " >&6 3979 $as_echo_n "(cached) " >&6
4235else 3980else
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3981 cat >conftest.$ac_ext <<_ACEOF
3982/* confdefs.h. */
3983_ACEOF
3984cat confdefs.h >>conftest.$ac_ext
3985cat >>conftest.$ac_ext <<_ACEOF
4237/* end confdefs.h. */ 3986/* end confdefs.h. */
4238 3987
4239int 3988int
@@ -4247,16 +3996,41 @@ fail;
4247 return 0; 3996 return 0;
4248} 3997}
4249_ACEOF 3998_ACEOF
4250if ac_fn_c_try_link "$LINENO"; then : 3999rm -f conftest.$ac_objext conftest$ac_exeext
4000if { (ac_try="$ac_link"
4001case "(($ac_try" in
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4004esac
4005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4006$as_echo "$ac_try_echo") >&5
4007 (eval "$ac_link") 2>conftest.er1
4008 ac_status=$?
4009 grep -v '^ *+' conftest.er1 >conftest.err
4010 rm -f conftest.er1
4011 cat conftest.err >&5
4012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); } && {
4014 test -z "$ac_c_werror_flag" ||
4015 test ! -s conftest.err
4016 } && test -s conftest$ac_exeext && {
4017 test "$cross_compiling" = yes ||
4018 $as_test_x conftest$ac_exeext
4019 }; then
4251 emacs_cv_sunpro_c=yes 4020 emacs_cv_sunpro_c=yes
4252else 4021else
4253 emacs_cv_sunpro_c=no 4022 $as_echo "$as_me: failed program was:" >&5
4023sed 's/^/| /' conftest.$ac_ext >&5
4024
4025 emacs_cv_sunpro_c=no
4254fi 4026fi
4255rm -f core conftest.err conftest.$ac_objext \ 4027
4256 conftest$ac_exeext conftest.$ac_ext 4028rm -rf conftest.dSYM
4029rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4030 conftest$ac_exeext conftest.$ac_ext
4257fi 4031fi
4258 4032
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5 4033 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4260$as_echo "$emacs_cv_sunpro_c" >&6; } 4034$as_echo "$emacs_cv_sunpro_c" >&6; }
4261 4035
4262 if test x"$emacs_cv_sunpro_c" = xyes; then 4036 if test x"$emacs_cv_sunpro_c" = xyes; then
@@ -4296,14 +4070,14 @@ ac_cpp='$CPP $CPPFLAGS'
4296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298ac_compiler_gnu=$ac_cv_c_compiler_gnu 4072ac_compiler_gnu=$ac_cv_c_compiler_gnu
4299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4073{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4300$as_echo_n "checking how to run the C preprocessor... " >&6; } 4074$as_echo_n "checking how to run the C preprocessor... " >&6; }
4301# On Suns, sometimes $CPP names a directory. 4075# On Suns, sometimes $CPP names a directory.
4302if test -n "$CPP" && test -d "$CPP"; then 4076if test -n "$CPP" && test -d "$CPP"; then
4303 CPP= 4077 CPP=
4304fi 4078fi
4305if test -z "$CPP"; then 4079if test -z "$CPP"; then
4306 if test "${ac_cv_prog_CPP+set}" = set; then : 4080 if test "${ac_cv_prog_CPP+set}" = set; then
4307 $as_echo_n "(cached) " >&6 4081 $as_echo_n "(cached) " >&6
4308else 4082else
4309 # Double quotes because CPP needs to be expanded 4083 # Double quotes because CPP needs to be expanded
@@ -4318,7 +4092,11 @@ do
4318 # <limits.h> exists even on freestanding compilers. 4092 # <limits.h> exists even on freestanding compilers.
4319 # On the NeXT, cc -E runs the code through the compiler's parser, 4093 # On the NeXT, cc -E runs the code through the compiler's parser,
4320 # not just through cpp. "Syntax error" is here to catch this case. 4094 # not just through cpp. "Syntax error" is here to catch this case.
4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4095 cat >conftest.$ac_ext <<_ACEOF
4096/* confdefs.h. */
4097_ACEOF
4098cat confdefs.h >>conftest.$ac_ext
4099cat >>conftest.$ac_ext <<_ACEOF
4322/* end confdefs.h. */ 4100/* end confdefs.h. */
4323#ifdef __STDC__ 4101#ifdef __STDC__
4324# include <limits.h> 4102# include <limits.h>
@@ -4327,34 +4105,78 @@ do
4327#endif 4105#endif
4328 Syntax error 4106 Syntax error
4329_ACEOF 4107_ACEOF
4330if ac_fn_c_try_cpp "$LINENO"; then : 4108if { (ac_try="$ac_cpp conftest.$ac_ext"
4331 4109case "(($ac_try" in
4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4112esac
4113eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4114$as_echo "$ac_try_echo") >&5
4115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4116 ac_status=$?
4117 grep -v '^ *+' conftest.er1 >conftest.err
4118 rm -f conftest.er1
4119 cat conftest.err >&5
4120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); } >/dev/null && {
4122 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4123 test ! -s conftest.err
4124 }; then
4125 :
4332else 4126else
4127 $as_echo "$as_me: failed program was:" >&5
4128sed 's/^/| /' conftest.$ac_ext >&5
4129
4333 # Broken: fails on valid input. 4130 # Broken: fails on valid input.
4334continue 4131continue
4335fi 4132fi
4133
4336rm -f conftest.err conftest.$ac_ext 4134rm -f conftest.err conftest.$ac_ext
4337 4135
4338 # OK, works on sane cases. Now check whether nonexistent headers 4136 # OK, works on sane cases. Now check whether nonexistent headers
4339 # can be detected and how. 4137 # can be detected and how.
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4138 cat >conftest.$ac_ext <<_ACEOF
4139/* confdefs.h. */
4140_ACEOF
4141cat confdefs.h >>conftest.$ac_ext
4142cat >>conftest.$ac_ext <<_ACEOF
4341/* end confdefs.h. */ 4143/* end confdefs.h. */
4342#include <ac_nonexistent.h> 4144#include <ac_nonexistent.h>
4343_ACEOF 4145_ACEOF
4344if ac_fn_c_try_cpp "$LINENO"; then : 4146if { (ac_try="$ac_cpp conftest.$ac_ext"
4147case "(($ac_try" in
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4150esac
4151eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4152$as_echo "$ac_try_echo") >&5
4153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4154 ac_status=$?
4155 grep -v '^ *+' conftest.er1 >conftest.err
4156 rm -f conftest.er1
4157 cat conftest.err >&5
4158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); } >/dev/null && {
4160 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4161 test ! -s conftest.err
4162 }; then
4345 # Broken: success on invalid input. 4163 # Broken: success on invalid input.
4346continue 4164continue
4347else 4165else
4166 $as_echo "$as_me: failed program was:" >&5
4167sed 's/^/| /' conftest.$ac_ext >&5
4168
4348 # Passes both tests. 4169 # Passes both tests.
4349ac_preproc_ok=: 4170ac_preproc_ok=:
4350break 4171break
4351fi 4172fi
4173
4352rm -f conftest.err conftest.$ac_ext 4174rm -f conftest.err conftest.$ac_ext
4353 4175
4354done 4176done
4355# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4177# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4356rm -f conftest.err conftest.$ac_ext 4178rm -f conftest.err conftest.$ac_ext
4357if $ac_preproc_ok; then : 4179if $ac_preproc_ok; then
4358 break 4180 break
4359fi 4181fi
4360 4182
@@ -4366,7 +4188,7 @@ fi
4366else 4188else
4367 ac_cv_prog_CPP=$CPP 4189 ac_cv_prog_CPP=$CPP
4368fi 4190fi
4369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4191{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4370$as_echo "$CPP" >&6; } 4192$as_echo "$CPP" >&6; }
4371ac_preproc_ok=false 4193ac_preproc_ok=false
4372for ac_c_preproc_warn_flag in '' yes 4194for ac_c_preproc_warn_flag in '' yes
@@ -4377,7 +4199,11 @@ do
4377 # <limits.h> exists even on freestanding compilers. 4199 # <limits.h> exists even on freestanding compilers.
4378 # On the NeXT, cc -E runs the code through the compiler's parser, 4200 # On the NeXT, cc -E runs the code through the compiler's parser,
4379 # not just through cpp. "Syntax error" is here to catch this case. 4201 # not just through cpp. "Syntax error" is here to catch this case.
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4202 cat >conftest.$ac_ext <<_ACEOF
4203/* confdefs.h. */
4204_ACEOF
4205cat confdefs.h >>conftest.$ac_ext
4206cat >>conftest.$ac_ext <<_ACEOF
4381/* end confdefs.h. */ 4207/* end confdefs.h. */
4382#ifdef __STDC__ 4208#ifdef __STDC__
4383# include <limits.h> 4209# include <limits.h>
@@ -4386,40 +4212,85 @@ do
4386#endif 4212#endif
4387 Syntax error 4213 Syntax error
4388_ACEOF 4214_ACEOF
4389if ac_fn_c_try_cpp "$LINENO"; then : 4215if { (ac_try="$ac_cpp conftest.$ac_ext"
4390 4216case "(($ac_try" in
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4219esac
4220eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4221$as_echo "$ac_try_echo") >&5
4222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4223 ac_status=$?
4224 grep -v '^ *+' conftest.er1 >conftest.err
4225 rm -f conftest.er1
4226 cat conftest.err >&5
4227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } >/dev/null && {
4229 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4230 test ! -s conftest.err
4231 }; then
4232 :
4391else 4233else
4234 $as_echo "$as_me: failed program was:" >&5
4235sed 's/^/| /' conftest.$ac_ext >&5
4236
4392 # Broken: fails on valid input. 4237 # Broken: fails on valid input.
4393continue 4238continue
4394fi 4239fi
4240
4395rm -f conftest.err conftest.$ac_ext 4241rm -f conftest.err conftest.$ac_ext
4396 4242
4397 # OK, works on sane cases. Now check whether nonexistent headers 4243 # OK, works on sane cases. Now check whether nonexistent headers
4398 # can be detected and how. 4244 # can be detected and how.
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4245 cat >conftest.$ac_ext <<_ACEOF
4246/* confdefs.h. */
4247_ACEOF
4248cat confdefs.h >>conftest.$ac_ext
4249cat >>conftest.$ac_ext <<_ACEOF
4400/* end confdefs.h. */ 4250/* end confdefs.h. */
4401#include <ac_nonexistent.h> 4251#include <ac_nonexistent.h>
4402_ACEOF 4252_ACEOF
4403if ac_fn_c_try_cpp "$LINENO"; then : 4253if { (ac_try="$ac_cpp conftest.$ac_ext"
4254case "(($ac_try" in
4255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256 *) ac_try_echo=$ac_try;;
4257esac
4258eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4259$as_echo "$ac_try_echo") >&5
4260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4261 ac_status=$?
4262 grep -v '^ *+' conftest.er1 >conftest.err
4263 rm -f conftest.er1
4264 cat conftest.err >&5
4265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); } >/dev/null && {
4267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4268 test ! -s conftest.err
4269 }; then
4404 # Broken: success on invalid input. 4270 # Broken: success on invalid input.
4405continue 4271continue
4406else 4272else
4273 $as_echo "$as_me: failed program was:" >&5
4274sed 's/^/| /' conftest.$ac_ext >&5
4275
4407 # Passes both tests. 4276 # Passes both tests.
4408ac_preproc_ok=: 4277ac_preproc_ok=:
4409break 4278break
4410fi 4279fi
4280
4411rm -f conftest.err conftest.$ac_ext 4281rm -f conftest.err conftest.$ac_ext
4412 4282
4413done 4283done
4414# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4284# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4415rm -f conftest.err conftest.$ac_ext 4285rm -f conftest.err conftest.$ac_ext
4416if $ac_preproc_ok; then : 4286if $ac_preproc_ok; then
4417 4287 :
4418else 4288else
4419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4289 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4290See \`config.log' for more details." >&5
4421as_fn_error "C preprocessor \"$CPP\" fails sanity check 4291$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4422See \`config.log' for more details." "$LINENO" 5; } 4292See \`config.log' for more details." >&2;}
4293 { (exit 1); exit 1; }; }
4423fi 4294fi
4424 4295
4425ac_ext=c 4296ac_ext=c
@@ -4429,9 +4300,9 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
4429ac_compiler_gnu=$ac_cv_c_compiler_gnu 4300ac_compiler_gnu=$ac_cv_c_compiler_gnu
4430 4301
4431 4302
4432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4303{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4433$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4304$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4434if test "${ac_cv_path_GREP+set}" = set; then : 4305if test "${ac_cv_path_GREP+set}" = set; then
4435 $as_echo_n "(cached) " >&6 4306 $as_echo_n "(cached) " >&6
4436else 4307else
4437 if test -z "$GREP"; then 4308 if test -z "$GREP"; then
@@ -4442,7 +4313,7 @@ for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4442do 4313do
4443 IFS=$as_save_IFS 4314 IFS=$as_save_IFS
4444 test -z "$as_dir" && as_dir=. 4315 test -z "$as_dir" && as_dir=.
4445 for ac_prog in grep ggrep; do 4316 for ac_prog in grep ggrep; do
4446 for ac_exec_ext in '' $ac_executable_extensions; do 4317 for ac_exec_ext in '' $ac_executable_extensions; do
4447 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4318 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4448 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4319 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
@@ -4462,7 +4333,7 @@ case `"$ac_path_GREP" --version 2>&1` in
4462 $as_echo 'GREP' >> "conftest.nl" 4333 $as_echo 'GREP' >> "conftest.nl"
4463 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4334 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4464 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4335 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4465 as_fn_arith $ac_count + 1 && ac_count=$as_val 4336 ac_count=`expr $ac_count + 1`
4466 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4337 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4467 # Best one so far, save it but keep looking for a better one 4338 # Best one so far, save it but keep looking for a better one
4468 ac_cv_path_GREP="$ac_path_GREP" 4339 ac_cv_path_GREP="$ac_path_GREP"
@@ -4477,24 +4348,26 @@ esac
4477 $ac_path_GREP_found && break 3 4348 $ac_path_GREP_found && break 3
4478 done 4349 done
4479 done 4350 done
4480 done 4351done
4481IFS=$as_save_IFS 4352IFS=$as_save_IFS
4482 if test -z "$ac_cv_path_GREP"; then 4353 if test -z "$ac_cv_path_GREP"; then
4483 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4354 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4355$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4356 { (exit 1); exit 1; }; }
4484 fi 4357 fi
4485else 4358else
4486 ac_cv_path_GREP=$GREP 4359 ac_cv_path_GREP=$GREP
4487fi 4360fi
4488 4361
4489fi 4362fi
4490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4363{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4491$as_echo "$ac_cv_path_GREP" >&6; } 4364$as_echo "$ac_cv_path_GREP" >&6; }
4492 GREP="$ac_cv_path_GREP" 4365 GREP="$ac_cv_path_GREP"
4493 4366
4494 4367
4495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4368{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4496$as_echo_n "checking for egrep... " >&6; } 4369$as_echo_n "checking for egrep... " >&6; }
4497if test "${ac_cv_path_EGREP+set}" = set; then : 4370if test "${ac_cv_path_EGREP+set}" = set; then
4498 $as_echo_n "(cached) " >&6 4371 $as_echo_n "(cached) " >&6
4499else 4372else
4500 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4373 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
@@ -4508,7 +4381,7 @@ for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4508do 4381do
4509 IFS=$as_save_IFS 4382 IFS=$as_save_IFS
4510 test -z "$as_dir" && as_dir=. 4383 test -z "$as_dir" && as_dir=.
4511 for ac_prog in egrep; do 4384 for ac_prog in egrep; do
4512 for ac_exec_ext in '' $ac_executable_extensions; do 4385 for ac_exec_ext in '' $ac_executable_extensions; do
4513 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4386 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4514 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4387 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
@@ -4528,7 +4401,7 @@ case `"$ac_path_EGREP" --version 2>&1` in
4528 $as_echo 'EGREP' >> "conftest.nl" 4401 $as_echo 'EGREP' >> "conftest.nl"
4529 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4402 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4530 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4403 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4531 as_fn_arith $ac_count + 1 && ac_count=$as_val 4404 ac_count=`expr $ac_count + 1`
4532 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4405 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4533 # Best one so far, save it but keep looking for a better one 4406 # Best one so far, save it but keep looking for a better one
4534 ac_cv_path_EGREP="$ac_path_EGREP" 4407 ac_cv_path_EGREP="$ac_path_EGREP"
@@ -4543,10 +4416,12 @@ esac
4543 $ac_path_EGREP_found && break 3 4416 $ac_path_EGREP_found && break 3
4544 done 4417 done
4545 done 4418 done
4546 done 4419done
4547IFS=$as_save_IFS 4420IFS=$as_save_IFS
4548 if test -z "$ac_cv_path_EGREP"; then 4421 if test -z "$ac_cv_path_EGREP"; then
4549 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4422 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4423$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4424 { (exit 1); exit 1; }; }
4550 fi 4425 fi
4551else 4426else
4552 ac_cv_path_EGREP=$EGREP 4427 ac_cv_path_EGREP=$EGREP
@@ -4554,17 +4429,21 @@ fi
4554 4429
4555 fi 4430 fi
4556fi 4431fi
4557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4432{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4558$as_echo "$ac_cv_path_EGREP" >&6; } 4433$as_echo "$ac_cv_path_EGREP" >&6; }
4559 EGREP="$ac_cv_path_EGREP" 4434 EGREP="$ac_cv_path_EGREP"
4560 4435
4561 4436
4562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4437{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4563$as_echo_n "checking for ANSI C header files... " >&6; } 4438$as_echo_n "checking for ANSI C header files... " >&6; }
4564if test "${ac_cv_header_stdc+set}" = set; then : 4439if test "${ac_cv_header_stdc+set}" = set; then
4565 $as_echo_n "(cached) " >&6 4440 $as_echo_n "(cached) " >&6
4566else 4441else
4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4442 cat >conftest.$ac_ext <<_ACEOF
4443/* confdefs.h. */
4444_ACEOF
4445cat confdefs.h >>conftest.$ac_ext
4446cat >>conftest.$ac_ext <<_ACEOF
4568/* end confdefs.h. */ 4447/* end confdefs.h. */
4569#include <stdlib.h> 4448#include <stdlib.h>
4570#include <stdarg.h> 4449#include <stdarg.h>
@@ -4579,23 +4458,48 @@ main ()
4579 return 0; 4458 return 0;
4580} 4459}
4581_ACEOF 4460_ACEOF
4582if ac_fn_c_try_compile "$LINENO"; then : 4461rm -f conftest.$ac_objext
4462if { (ac_try="$ac_compile"
4463case "(($ac_try" in
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4466esac
4467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4468$as_echo "$ac_try_echo") >&5
4469 (eval "$ac_compile") 2>conftest.er1
4470 ac_status=$?
4471 grep -v '^ *+' conftest.er1 >conftest.err
4472 rm -f conftest.er1
4473 cat conftest.err >&5
4474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); } && {
4476 test -z "$ac_c_werror_flag" ||
4477 test ! -s conftest.err
4478 } && test -s conftest.$ac_objext; then
4583 ac_cv_header_stdc=yes 4479 ac_cv_header_stdc=yes
4584else 4480else
4585 ac_cv_header_stdc=no 4481 $as_echo "$as_me: failed program was:" >&5
4482sed 's/^/| /' conftest.$ac_ext >&5
4483
4484 ac_cv_header_stdc=no
4586fi 4485fi
4486
4587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4588 4488
4589if test $ac_cv_header_stdc = yes; then 4489if test $ac_cv_header_stdc = yes; then
4590 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4490 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4491 cat >conftest.$ac_ext <<_ACEOF
4492/* confdefs.h. */
4493_ACEOF
4494cat confdefs.h >>conftest.$ac_ext
4495cat >>conftest.$ac_ext <<_ACEOF
4592/* end confdefs.h. */ 4496/* end confdefs.h. */
4593#include <string.h> 4497#include <string.h>
4594 4498
4595_ACEOF 4499_ACEOF
4596if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4500if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4597 $EGREP "memchr" >/dev/null 2>&1; then : 4501 $EGREP "memchr" >/dev/null 2>&1; then
4598 4502 :
4599else 4503else
4600 ac_cv_header_stdc=no 4504 ac_cv_header_stdc=no
4601fi 4505fi
@@ -4605,14 +4509,18 @@ fi
4605 4509
4606if test $ac_cv_header_stdc = yes; then 4510if test $ac_cv_header_stdc = yes; then
4607 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4511 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4512 cat >conftest.$ac_ext <<_ACEOF
4513/* confdefs.h. */
4514_ACEOF
4515cat confdefs.h >>conftest.$ac_ext
4516cat >>conftest.$ac_ext <<_ACEOF
4609/* end confdefs.h. */ 4517/* end confdefs.h. */
4610#include <stdlib.h> 4518#include <stdlib.h>
4611 4519
4612_ACEOF 4520_ACEOF
4613if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4521if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4614 $EGREP "free" >/dev/null 2>&1; then : 4522 $EGREP "free" >/dev/null 2>&1; then
4615 4523 :
4616else 4524else
4617 ac_cv_header_stdc=no 4525 ac_cv_header_stdc=no
4618fi 4526fi
@@ -4622,10 +4530,14 @@ fi
4622 4530
4623if test $ac_cv_header_stdc = yes; then 4531if test $ac_cv_header_stdc = yes; then
4624 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4532 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4625 if test "$cross_compiling" = yes; then : 4533 if test "$cross_compiling" = yes; then
4626 : 4534 :
4627else 4535else
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4536 cat >conftest.$ac_ext <<_ACEOF
4537/* confdefs.h. */
4538_ACEOF
4539cat confdefs.h >>conftest.$ac_ext
4540cat >>conftest.$ac_ext <<_ACEOF
4629/* end confdefs.h. */ 4541/* end confdefs.h. */
4630#include <ctype.h> 4542#include <ctype.h>
4631#include <stdlib.h> 4543#include <stdlib.h>
@@ -4652,34 +4564,117 @@ main ()
4652 return 0; 4564 return 0;
4653} 4565}
4654_ACEOF 4566_ACEOF
4655if ac_fn_c_try_run "$LINENO"; then : 4567rm -f conftest$ac_exeext
4656 4568if { (ac_try="$ac_link"
4569case "(($ac_try" in
4570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571 *) ac_try_echo=$ac_try;;
4572esac
4573eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4574$as_echo "$ac_try_echo") >&5
4575 (eval "$ac_link") 2>&5
4576 ac_status=$?
4577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4579 { (case "(($ac_try" in
4580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581 *) ac_try_echo=$ac_try;;
4582esac
4583eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4584$as_echo "$ac_try_echo") >&5
4585 (eval "$ac_try") 2>&5
4586 ac_status=$?
4587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); }; }; then
4589 :
4657else 4590else
4658 ac_cv_header_stdc=no 4591 $as_echo "$as_me: program exited with status $ac_status" >&5
4592$as_echo "$as_me: failed program was:" >&5
4593sed 's/^/| /' conftest.$ac_ext >&5
4594
4595( exit $ac_status )
4596ac_cv_header_stdc=no
4659fi 4597fi
4660rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4598rm -rf conftest.dSYM
4661 conftest.$ac_objext conftest.beam conftest.$ac_ext 4599rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4662fi 4600fi
4663 4601
4602
4664fi 4603fi
4665fi 4604fi
4666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4605{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4667$as_echo "$ac_cv_header_stdc" >&6; } 4606$as_echo "$ac_cv_header_stdc" >&6; }
4668if test $ac_cv_header_stdc = yes; then 4607if test $ac_cv_header_stdc = yes; then
4669 4608
4670$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4609cat >>confdefs.h <<\_ACEOF
4610#define STDC_HEADERS 1
4611_ACEOF
4671 4612
4672fi 4613fi
4673 4614
4674# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4615# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4616
4617
4618
4619
4620
4621
4622
4623
4624
4675for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4625for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4676 inttypes.h stdint.h unistd.h 4626 inttypes.h stdint.h unistd.h
4677do : 4627do
4678 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4628as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4679ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4629{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4680" 4630$as_echo_n "checking for $ac_header... " >&6; }
4681eval as_val=\$$as_ac_Header 4631if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4682 if test "x$as_val" = x""yes; then : 4632 $as_echo_n "(cached) " >&6
4633else
4634 cat >conftest.$ac_ext <<_ACEOF
4635/* confdefs.h. */
4636_ACEOF
4637cat confdefs.h >>conftest.$ac_ext
4638cat >>conftest.$ac_ext <<_ACEOF
4639/* end confdefs.h. */
4640$ac_includes_default
4641
4642#include <$ac_header>
4643_ACEOF
4644rm -f conftest.$ac_objext
4645if { (ac_try="$ac_compile"
4646case "(($ac_try" in
4647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4648 *) ac_try_echo=$ac_try;;
4649esac
4650eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4651$as_echo "$ac_try_echo") >&5
4652 (eval "$ac_compile") 2>conftest.er1
4653 ac_status=$?
4654 grep -v '^ *+' conftest.er1 >conftest.err
4655 rm -f conftest.er1
4656 cat conftest.err >&5
4657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); } && {
4659 test -z "$ac_c_werror_flag" ||
4660 test ! -s conftest.err
4661 } && test -s conftest.$ac_objext; then
4662 eval "$as_ac_Header=yes"
4663else
4664 $as_echo "$as_me: failed program was:" >&5
4665sed 's/^/| /' conftest.$ac_ext >&5
4666
4667 eval "$as_ac_Header=no"
4668fi
4669
4670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4671fi
4672ac_res=`eval 'as_val=${'$as_ac_Header'}
4673 $as_echo "$as_val"'`
4674 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4675$as_echo "$ac_res" >&6; }
4676if test `eval 'as_val=${'$as_ac_Header'}
4677 $as_echo "$as_val"'` = yes; then
4683 cat >>confdefs.h <<_ACEOF 4678 cat >>confdefs.h <<_ACEOF
4684#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4679#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4685_ACEOF 4680_ACEOF
@@ -4690,8 +4685,134 @@ done
4690 4685
4691 4686
4692 4687
4693 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4688 if test "${ac_cv_header_minix_config_h+set}" = set; then
4694if test "x$ac_cv_header_minix_config_h" = x""yes; then : 4689 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4690$as_echo_n "checking for minix/config.h... " >&6; }
4691if test "${ac_cv_header_minix_config_h+set}" = set; then
4692 $as_echo_n "(cached) " >&6
4693fi
4694{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4695$as_echo "$ac_cv_header_minix_config_h" >&6; }
4696else
4697 # Is the header compilable?
4698{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4699$as_echo_n "checking minix/config.h usability... " >&6; }
4700cat >conftest.$ac_ext <<_ACEOF
4701/* confdefs.h. */
4702_ACEOF
4703cat confdefs.h >>conftest.$ac_ext
4704cat >>conftest.$ac_ext <<_ACEOF
4705/* end confdefs.h. */
4706$ac_includes_default
4707#include <minix/config.h>
4708_ACEOF
4709rm -f conftest.$ac_objext
4710if { (ac_try="$ac_compile"
4711case "(($ac_try" in
4712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4713 *) ac_try_echo=$ac_try;;
4714esac
4715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4716$as_echo "$ac_try_echo") >&5
4717 (eval "$ac_compile") 2>conftest.er1
4718 ac_status=$?
4719 grep -v '^ *+' conftest.er1 >conftest.err
4720 rm -f conftest.er1
4721 cat conftest.err >&5
4722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } && {
4724 test -z "$ac_c_werror_flag" ||
4725 test ! -s conftest.err
4726 } && test -s conftest.$ac_objext; then
4727 ac_header_compiler=yes
4728else
4729 $as_echo "$as_me: failed program was:" >&5
4730sed 's/^/| /' conftest.$ac_ext >&5
4731
4732 ac_header_compiler=no
4733fi
4734
4735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4737$as_echo "$ac_header_compiler" >&6; }
4738
4739# Is the header present?
4740{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4741$as_echo_n "checking minix/config.h presence... " >&6; }
4742cat >conftest.$ac_ext <<_ACEOF
4743/* confdefs.h. */
4744_ACEOF
4745cat confdefs.h >>conftest.$ac_ext
4746cat >>conftest.$ac_ext <<_ACEOF
4747/* end confdefs.h. */
4748#include <minix/config.h>
4749_ACEOF
4750if { (ac_try="$ac_cpp conftest.$ac_ext"
4751case "(($ac_try" in
4752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753 *) ac_try_echo=$ac_try;;
4754esac
4755eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4756$as_echo "$ac_try_echo") >&5
4757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4758 ac_status=$?
4759 grep -v '^ *+' conftest.er1 >conftest.err
4760 rm -f conftest.er1
4761 cat conftest.err >&5
4762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } >/dev/null && {
4764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4765 test ! -s conftest.err
4766 }; then
4767 ac_header_preproc=yes
4768else
4769 $as_echo "$as_me: failed program was:" >&5
4770sed 's/^/| /' conftest.$ac_ext >&5
4771
4772 ac_header_preproc=no
4773fi
4774
4775rm -f conftest.err conftest.$ac_ext
4776{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4777$as_echo "$ac_header_preproc" >&6; }
4778
4779# So? What about this header?
4780case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4781 yes:no: )
4782 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4783$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4784 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4785$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4786 ac_header_preproc=yes
4787 ;;
4788 no:yes:* )
4789 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4790$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4791 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4792$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4793 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4794$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4795 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4796$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4797 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4798$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4799 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4800$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4801
4802 ;;
4803esac
4804{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4805$as_echo_n "checking for minix/config.h... " >&6; }
4806if test "${ac_cv_header_minix_config_h+set}" = set; then
4807 $as_echo_n "(cached) " >&6
4808else
4809 ac_cv_header_minix_config_h=$ac_header_preproc
4810fi
4811{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4812$as_echo "$ac_cv_header_minix_config_h" >&6; }
4813
4814fi
4815if test $ac_cv_header_minix_config_h = yes; then
4695 MINIX=yes 4816 MINIX=yes
4696else 4817else
4697 MINIX= 4818 MINIX=
@@ -4700,23 +4821,34 @@ fi
4700 4821
4701 if test "$MINIX" = yes; then 4822 if test "$MINIX" = yes; then
4702 4823
4703$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4824cat >>confdefs.h <<\_ACEOF
4825#define _POSIX_SOURCE 1
4826_ACEOF
4704 4827
4705 4828
4706$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4829cat >>confdefs.h <<\_ACEOF
4830#define _POSIX_1_SOURCE 2
4831_ACEOF
4707 4832
4708 4833
4709$as_echo "#define _MINIX 1" >>confdefs.h 4834cat >>confdefs.h <<\_ACEOF
4835#define _MINIX 1
4836_ACEOF
4710 4837
4711 fi 4838 fi
4712 4839
4713 4840
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4841
4842 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4715$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4843$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4716if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 4844if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4717 $as_echo_n "(cached) " >&6 4845 $as_echo_n "(cached) " >&6
4718else 4846else
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4847 cat >conftest.$ac_ext <<_ACEOF
4848/* confdefs.h. */
4849_ACEOF
4850cat confdefs.h >>conftest.$ac_ext
4851cat >>conftest.$ac_ext <<_ACEOF
4720/* end confdefs.h. */ 4852/* end confdefs.h. */
4721 4853
4722# define __EXTENSIONS__ 1 4854# define __EXTENSIONS__ 1
@@ -4729,34 +4861,69 @@ main ()
4729 return 0; 4861 return 0;
4730} 4862}
4731_ACEOF 4863_ACEOF
4732if ac_fn_c_try_compile "$LINENO"; then : 4864rm -f conftest.$ac_objext
4865if { (ac_try="$ac_compile"
4866case "(($ac_try" in
4867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868 *) ac_try_echo=$ac_try;;
4869esac
4870eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4871$as_echo "$ac_try_echo") >&5
4872 (eval "$ac_compile") 2>conftest.er1
4873 ac_status=$?
4874 grep -v '^ *+' conftest.er1 >conftest.err
4875 rm -f conftest.er1
4876 cat conftest.err >&5
4877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); } && {
4879 test -z "$ac_c_werror_flag" ||
4880 test ! -s conftest.err
4881 } && test -s conftest.$ac_objext; then
4733 ac_cv_safe_to_define___extensions__=yes 4882 ac_cv_safe_to_define___extensions__=yes
4734else 4883else
4735 ac_cv_safe_to_define___extensions__=no 4884 $as_echo "$as_me: failed program was:" >&5
4885sed 's/^/| /' conftest.$ac_ext >&5
4886
4887 ac_cv_safe_to_define___extensions__=no
4736fi 4888fi
4889
4737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738fi 4891fi
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4892{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4740$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4893$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4741 test $ac_cv_safe_to_define___extensions__ = yes && 4894 test $ac_cv_safe_to_define___extensions__ = yes &&
4742 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4895 cat >>confdefs.h <<\_ACEOF
4896#define __EXTENSIONS__ 1
4897_ACEOF
4743 4898
4744 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4899 cat >>confdefs.h <<\_ACEOF
4900#define _ALL_SOURCE 1
4901_ACEOF
4745 4902
4746 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4903 cat >>confdefs.h <<\_ACEOF
4904#define _GNU_SOURCE 1
4905_ACEOF
4747 4906
4748 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4907 cat >>confdefs.h <<\_ACEOF
4908#define _POSIX_PTHREAD_SEMANTICS 1
4909_ACEOF
4749 4910
4750 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4911 cat >>confdefs.h <<\_ACEOF
4912#define _TANDEM_SOURCE 1
4913_ACEOF
4751 4914
4752 4915
4753 4916
4754### Use -Wno-pointer-sign if the compiler supports it 4917### Use -Wno-pointer-sign if the compiler supports it
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5 4918{ $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4756$as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; } 4919$as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4757SAVE_CFLAGS="$CFLAGS" 4920SAVE_CFLAGS="$CFLAGS"
4758CFLAGS="$CFLAGS -Wno-pointer-sign" 4921CFLAGS="$CFLAGS -Wno-pointer-sign"
4759cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4922cat >conftest.$ac_ext <<_ACEOF
4923/* confdefs.h. */
4924_ACEOF
4925cat confdefs.h >>conftest.$ac_ext
4926cat >>conftest.$ac_ext <<_ACEOF
4760/* end confdefs.h. */ 4927/* end confdefs.h. */
4761 4928
4762int 4929int
@@ -4767,27 +4934,52 @@ main ()
4767 return 0; 4934 return 0;
4768} 4935}
4769_ACEOF 4936_ACEOF
4770if ac_fn_c_try_compile "$LINENO"; then : 4937rm -f conftest.$ac_objext
4938if { (ac_try="$ac_compile"
4939case "(($ac_try" in
4940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4941 *) ac_try_echo=$ac_try;;
4942esac
4943eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4944$as_echo "$ac_try_echo") >&5
4945 (eval "$ac_compile") 2>conftest.er1
4946 ac_status=$?
4947 grep -v '^ *+' conftest.er1 >conftest.err
4948 rm -f conftest.er1
4949 cat conftest.err >&5
4950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } && {
4952 test -z "$ac_c_werror_flag" ||
4953 test ! -s conftest.err
4954 } && test -s conftest.$ac_objext; then
4771 has_option=yes 4955 has_option=yes
4772else 4956else
4773 has_option=no 4957 $as_echo "$as_me: failed program was:" >&5
4958sed 's/^/| /' conftest.$ac_ext >&5
4959
4960 has_option=no
4774fi 4961fi
4962
4775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4776if test $has_option = yes; then 4964if test $has_option = yes; then
4777 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH" 4965 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4778fi 4966fi
4779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 4967{ $as_echo "$as_me:$LINENO: result: $has_option" >&5
4780$as_echo "$has_option" >&6; } 4968$as_echo "$has_option" >&6; }
4781CFLAGS="$SAVE_CFLAGS" 4969CFLAGS="$SAVE_CFLAGS"
4782unset has_option 4970unset has_option
4783unset SAVE_CFLAGS 4971unset SAVE_CFLAGS
4784 4972
4785### Use -Wdeclaration-after-statement if the compiler supports it 4973### Use -Wdeclaration-after-statement if the compiler supports it
4786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5 4974{ $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4787$as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; } 4975$as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4788SAVE_CFLAGS="$CFLAGS" 4976SAVE_CFLAGS="$CFLAGS"
4789CFLAGS="$CFLAGS -Wdeclaration-after-statement" 4977CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4790cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4978cat >conftest.$ac_ext <<_ACEOF
4979/* confdefs.h. */
4980_ACEOF
4981cat confdefs.h >>conftest.$ac_ext
4982cat >>conftest.$ac_ext <<_ACEOF
4791/* end confdefs.h. */ 4983/* end confdefs.h. */
4792 4984
4793int 4985int
@@ -4798,16 +4990,37 @@ main ()
4798 return 0; 4990 return 0;
4799} 4991}
4800_ACEOF 4992_ACEOF
4801if ac_fn_c_try_compile "$LINENO"; then : 4993rm -f conftest.$ac_objext
4994if { (ac_try="$ac_compile"
4995case "(($ac_try" in
4996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4997 *) ac_try_echo=$ac_try;;
4998esac
4999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5000$as_echo "$ac_try_echo") >&5
5001 (eval "$ac_compile") 2>conftest.er1
5002 ac_status=$?
5003 grep -v '^ *+' conftest.er1 >conftest.err
5004 rm -f conftest.er1
5005 cat conftest.err >&5
5006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); } && {
5008 test -z "$ac_c_werror_flag" ||
5009 test ! -s conftest.err
5010 } && test -s conftest.$ac_objext; then
4802 has_option=yes 5011 has_option=yes
4803else 5012else
4804 has_option=no 5013 $as_echo "$as_me: failed program was:" >&5
5014sed 's/^/| /' conftest.$ac_ext >&5
5015
5016 has_option=no
4805fi 5017fi
5018
4806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807if test $has_option = yes; then 5020if test $has_option = yes; then
4808 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH" 5021 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4809fi 5022fi
4810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 5023{ $as_echo "$as_me:$LINENO: result: $has_option" >&5
4811$as_echo "$has_option" >&6; } 5024$as_echo "$has_option" >&6; }
4812CFLAGS="$SAVE_CFLAGS" 5025CFLAGS="$SAVE_CFLAGS"
4813unset has_option 5026unset has_option
@@ -4820,14 +5033,14 @@ ac_cpp='$CPP $CPPFLAGS'
4820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4822ac_compiler_gnu=$ac_cv_c_compiler_gnu 5035ac_compiler_gnu=$ac_cv_c_compiler_gnu
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5036{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4824$as_echo_n "checking how to run the C preprocessor... " >&6; } 5037$as_echo_n "checking how to run the C preprocessor... " >&6; }
4825# On Suns, sometimes $CPP names a directory. 5038# On Suns, sometimes $CPP names a directory.
4826if test -n "$CPP" && test -d "$CPP"; then 5039if test -n "$CPP" && test -d "$CPP"; then
4827 CPP= 5040 CPP=
4828fi 5041fi
4829if test -z "$CPP"; then 5042if test -z "$CPP"; then
4830 if test "${ac_cv_prog_CPP+set}" = set; then : 5043 if test "${ac_cv_prog_CPP+set}" = set; then
4831 $as_echo_n "(cached) " >&6 5044 $as_echo_n "(cached) " >&6
4832else 5045else
4833 # Double quotes because CPP needs to be expanded 5046 # Double quotes because CPP needs to be expanded
@@ -4842,7 +5055,11 @@ do
4842 # <limits.h> exists even on freestanding compilers. 5055 # <limits.h> exists even on freestanding compilers.
4843 # On the NeXT, cc -E runs the code through the compiler's parser, 5056 # On the NeXT, cc -E runs the code through the compiler's parser,
4844 # not just through cpp. "Syntax error" is here to catch this case. 5057 # not just through cpp. "Syntax error" is here to catch this case.
4845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5058 cat >conftest.$ac_ext <<_ACEOF
5059/* confdefs.h. */
5060_ACEOF
5061cat confdefs.h >>conftest.$ac_ext
5062cat >>conftest.$ac_ext <<_ACEOF
4846/* end confdefs.h. */ 5063/* end confdefs.h. */
4847#ifdef __STDC__ 5064#ifdef __STDC__
4848# include <limits.h> 5065# include <limits.h>
@@ -4851,34 +5068,78 @@ do
4851#endif 5068#endif
4852 Syntax error 5069 Syntax error
4853_ACEOF 5070_ACEOF
4854if ac_fn_c_try_cpp "$LINENO"; then : 5071if { (ac_try="$ac_cpp conftest.$ac_ext"
4855 5072case "(($ac_try" in
5073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5074 *) ac_try_echo=$ac_try;;
5075esac
5076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5077$as_echo "$ac_try_echo") >&5
5078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5079 ac_status=$?
5080 grep -v '^ *+' conftest.er1 >conftest.err
5081 rm -f conftest.er1
5082 cat conftest.err >&5
5083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); } >/dev/null && {
5085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5086 test ! -s conftest.err
5087 }; then
5088 :
4856else 5089else
5090 $as_echo "$as_me: failed program was:" >&5
5091sed 's/^/| /' conftest.$ac_ext >&5
5092
4857 # Broken: fails on valid input. 5093 # Broken: fails on valid input.
4858continue 5094continue
4859fi 5095fi
5096
4860rm -f conftest.err conftest.$ac_ext 5097rm -f conftest.err conftest.$ac_ext
4861 5098
4862 # OK, works on sane cases. Now check whether nonexistent headers 5099 # OK, works on sane cases. Now check whether nonexistent headers
4863 # can be detected and how. 5100 # can be detected and how.
4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5101 cat >conftest.$ac_ext <<_ACEOF
5102/* confdefs.h. */
5103_ACEOF
5104cat confdefs.h >>conftest.$ac_ext
5105cat >>conftest.$ac_ext <<_ACEOF
4865/* end confdefs.h. */ 5106/* end confdefs.h. */
4866#include <ac_nonexistent.h> 5107#include <ac_nonexistent.h>
4867_ACEOF 5108_ACEOF
4868if ac_fn_c_try_cpp "$LINENO"; then : 5109if { (ac_try="$ac_cpp conftest.$ac_ext"
5110case "(($ac_try" in
5111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5112 *) ac_try_echo=$ac_try;;
5113esac
5114eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5115$as_echo "$ac_try_echo") >&5
5116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5117 ac_status=$?
5118 grep -v '^ *+' conftest.er1 >conftest.err
5119 rm -f conftest.er1
5120 cat conftest.err >&5
5121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } >/dev/null && {
5123 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5124 test ! -s conftest.err
5125 }; then
4869 # Broken: success on invalid input. 5126 # Broken: success on invalid input.
4870continue 5127continue
4871else 5128else
5129 $as_echo "$as_me: failed program was:" >&5
5130sed 's/^/| /' conftest.$ac_ext >&5
5131
4872 # Passes both tests. 5132 # Passes both tests.
4873ac_preproc_ok=: 5133ac_preproc_ok=:
4874break 5134break
4875fi 5135fi
5136
4876rm -f conftest.err conftest.$ac_ext 5137rm -f conftest.err conftest.$ac_ext
4877 5138
4878done 5139done
4879# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5140# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4880rm -f conftest.err conftest.$ac_ext 5141rm -f conftest.err conftest.$ac_ext
4881if $ac_preproc_ok; then : 5142if $ac_preproc_ok; then
4882 break 5143 break
4883fi 5144fi
4884 5145
@@ -4890,7 +5151,7 @@ fi
4890else 5151else
4891 ac_cv_prog_CPP=$CPP 5152 ac_cv_prog_CPP=$CPP
4892fi 5153fi
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5154{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4894$as_echo "$CPP" >&6; } 5155$as_echo "$CPP" >&6; }
4895ac_preproc_ok=false 5156ac_preproc_ok=false
4896for ac_c_preproc_warn_flag in '' yes 5157for ac_c_preproc_warn_flag in '' yes
@@ -4901,7 +5162,11 @@ do
4901 # <limits.h> exists even on freestanding compilers. 5162 # <limits.h> exists even on freestanding compilers.
4902 # On the NeXT, cc -E runs the code through the compiler's parser, 5163 # On the NeXT, cc -E runs the code through the compiler's parser,
4903 # not just through cpp. "Syntax error" is here to catch this case. 5164 # not just through cpp. "Syntax error" is here to catch this case.
4904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5165 cat >conftest.$ac_ext <<_ACEOF
5166/* confdefs.h. */
5167_ACEOF
5168cat confdefs.h >>conftest.$ac_ext
5169cat >>conftest.$ac_ext <<_ACEOF
4905/* end confdefs.h. */ 5170/* end confdefs.h. */
4906#ifdef __STDC__ 5171#ifdef __STDC__
4907# include <limits.h> 5172# include <limits.h>
@@ -4910,40 +5175,85 @@ do
4910#endif 5175#endif
4911 Syntax error 5176 Syntax error
4912_ACEOF 5177_ACEOF
4913if ac_fn_c_try_cpp "$LINENO"; then : 5178if { (ac_try="$ac_cpp conftest.$ac_ext"
4914 5179case "(($ac_try" in
5180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5181 *) ac_try_echo=$ac_try;;
5182esac
5183eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5184$as_echo "$ac_try_echo") >&5
5185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5186 ac_status=$?
5187 grep -v '^ *+' conftest.er1 >conftest.err
5188 rm -f conftest.er1
5189 cat conftest.err >&5
5190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } >/dev/null && {
5192 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5193 test ! -s conftest.err
5194 }; then
5195 :
4915else 5196else
5197 $as_echo "$as_me: failed program was:" >&5
5198sed 's/^/| /' conftest.$ac_ext >&5
5199
4916 # Broken: fails on valid input. 5200 # Broken: fails on valid input.
4917continue 5201continue
4918fi 5202fi
5203
4919rm -f conftest.err conftest.$ac_ext 5204rm -f conftest.err conftest.$ac_ext
4920 5205
4921 # OK, works on sane cases. Now check whether nonexistent headers 5206 # OK, works on sane cases. Now check whether nonexistent headers
4922 # can be detected and how. 5207 # can be detected and how.
4923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5208 cat >conftest.$ac_ext <<_ACEOF
5209/* confdefs.h. */
5210_ACEOF
5211cat confdefs.h >>conftest.$ac_ext
5212cat >>conftest.$ac_ext <<_ACEOF
4924/* end confdefs.h. */ 5213/* end confdefs.h. */
4925#include <ac_nonexistent.h> 5214#include <ac_nonexistent.h>
4926_ACEOF 5215_ACEOF
4927if ac_fn_c_try_cpp "$LINENO"; then : 5216if { (ac_try="$ac_cpp conftest.$ac_ext"
5217case "(($ac_try" in
5218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5219 *) ac_try_echo=$ac_try;;
5220esac
5221eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5222$as_echo "$ac_try_echo") >&5
5223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5224 ac_status=$?
5225 grep -v '^ *+' conftest.er1 >conftest.err
5226 rm -f conftest.er1
5227 cat conftest.err >&5
5228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); } >/dev/null && {
5230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5231 test ! -s conftest.err
5232 }; then
4928 # Broken: success on invalid input. 5233 # Broken: success on invalid input.
4929continue 5234continue
4930else 5235else
5236 $as_echo "$as_me: failed program was:" >&5
5237sed 's/^/| /' conftest.$ac_ext >&5
5238
4931 # Passes both tests. 5239 # Passes both tests.
4932ac_preproc_ok=: 5240ac_preproc_ok=:
4933break 5241break
4934fi 5242fi
5243
4935rm -f conftest.err conftest.$ac_ext 5244rm -f conftest.err conftest.$ac_ext
4936 5245
4937done 5246done
4938# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5247# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4939rm -f conftest.err conftest.$ac_ext 5248rm -f conftest.err conftest.$ac_ext
4940if $ac_preproc_ok; then : 5249if $ac_preproc_ok; then
4941 5250 :
4942else 5251else
4943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5252 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4944$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5253See \`config.log' for more details." >&5
4945as_fn_error "C preprocessor \"$CPP\" fails sanity check 5254$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4946See \`config.log' for more details." "$LINENO" 5; } 5255See \`config.log' for more details." >&2;}
5256 { (exit 1); exit 1; }; }
4947fi 5257fi
4948 5258
4949ac_ext=c 5259ac_ext=c
@@ -4966,10 +5276,10 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
4966# OS/2's system install, which has a completely different semantic 5276# OS/2's system install, which has a completely different semantic
4967# ./install, which can be erroneously created by make from ./install.sh. 5277# ./install, which can be erroneously created by make from ./install.sh.
4968# Reject install programs that cannot install multiple files. 5278# Reject install programs that cannot install multiple files.
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 5279{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4970$as_echo_n "checking for a BSD-compatible install... " >&6; } 5280$as_echo_n "checking for a BSD-compatible install... " >&6; }
4971if test -z "$INSTALL"; then 5281if test -z "$INSTALL"; then
4972if test "${ac_cv_path_install+set}" = set; then : 5282if test "${ac_cv_path_install+set}" = set; then
4973 $as_echo_n "(cached) " >&6 5283 $as_echo_n "(cached) " >&6
4974else 5284else
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
@@ -4977,11 +5287,11 @@ for as_dir in $PATH
4977do 5287do
4978 IFS=$as_save_IFS 5288 IFS=$as_save_IFS
4979 test -z "$as_dir" && as_dir=. 5289 test -z "$as_dir" && as_dir=.
4980 # Account for people who put trailing slashes in PATH elements. 5290 # Account for people who put trailing slashes in PATH elements.
4981case $as_dir/ in #(( 5291case $as_dir/ in
4982 ./ | .// | /[cC]/* | \ 5292 ./ | .// | /cC/* | \
4983 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 5293 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4984 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 5294 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4985 /usr/ucb/* ) ;; 5295 /usr/ucb/* ) ;;
4986 *) 5296 *)
4987 # OSF1 and SCO ODT 3.0 have their own names for install. 5297 # OSF1 and SCO ODT 3.0 have their own names for install.
@@ -5018,7 +5328,7 @@ case $as_dir/ in #((
5018 ;; 5328 ;;
5019esac 5329esac
5020 5330
5021 done 5331done
5022IFS=$as_save_IFS 5332IFS=$as_save_IFS
5023 5333
5024rm -rf conftest.one conftest.two conftest.dir 5334rm -rf conftest.one conftest.two conftest.dir
@@ -5034,7 +5344,7 @@ fi
5034 INSTALL=$ac_install_sh 5344 INSTALL=$ac_install_sh
5035 fi 5345 fi
5036fi 5346fi
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 5347{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5038$as_echo "$INSTALL" >&6; } 5348$as_echo "$INSTALL" >&6; }
5039 5349
5040# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 5350# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
@@ -5049,9 +5359,9 @@ if test "x$RANLIB" = x; then
5049 if test -n "$ac_tool_prefix"; then 5359 if test -n "$ac_tool_prefix"; then
5050 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5360 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5051set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5361set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5362{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5053$as_echo_n "checking for $ac_word... " >&6; } 5363$as_echo_n "checking for $ac_word... " >&6; }
5054if test "${ac_cv_prog_RANLIB+set}" = set; then : 5364if test "${ac_cv_prog_RANLIB+set}" = set; then
5055 $as_echo_n "(cached) " >&6 5365 $as_echo_n "(cached) " >&6
5056else 5366else
5057 if test -n "$RANLIB"; then 5367 if test -n "$RANLIB"; then
@@ -5062,24 +5372,24 @@ for as_dir in $PATH
5062do 5372do
5063 IFS=$as_save_IFS 5373 IFS=$as_save_IFS
5064 test -z "$as_dir" && as_dir=. 5374 test -z "$as_dir" && as_dir=.
5065 for ac_exec_ext in '' $ac_executable_extensions; do 5375 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5067 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5377 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5378 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 break 2 5379 break 2
5070 fi 5380 fi
5071done 5381done
5072 done 5382done
5073IFS=$as_save_IFS 5383IFS=$as_save_IFS
5074 5384
5075fi 5385fi
5076fi 5386fi
5077RANLIB=$ac_cv_prog_RANLIB 5387RANLIB=$ac_cv_prog_RANLIB
5078if test -n "$RANLIB"; then 5388if test -n "$RANLIB"; then
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5389 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5080$as_echo "$RANLIB" >&6; } 5390$as_echo "$RANLIB" >&6; }
5081else 5391else
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5392 { $as_echo "$as_me:$LINENO: result: no" >&5
5083$as_echo "no" >&6; } 5393$as_echo "no" >&6; }
5084fi 5394fi
5085 5395
@@ -5089,9 +5399,9 @@ if test -z "$ac_cv_prog_RANLIB"; then
5089 ac_ct_RANLIB=$RANLIB 5399 ac_ct_RANLIB=$RANLIB
5090 # Extract the first word of "ranlib", so it can be a program name with args. 5400 # Extract the first word of "ranlib", so it can be a program name with args.
5091set dummy ranlib; ac_word=$2 5401set dummy ranlib; ac_word=$2
5092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5402{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5093$as_echo_n "checking for $ac_word... " >&6; } 5403$as_echo_n "checking for $ac_word... " >&6; }
5094if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5404if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5095 $as_echo_n "(cached) " >&6 5405 $as_echo_n "(cached) " >&6
5096else 5406else
5097 if test -n "$ac_ct_RANLIB"; then 5407 if test -n "$ac_ct_RANLIB"; then
@@ -5102,24 +5412,24 @@ for as_dir in $PATH
5102do 5412do
5103 IFS=$as_save_IFS 5413 IFS=$as_save_IFS
5104 test -z "$as_dir" && as_dir=. 5414 test -z "$as_dir" && as_dir=.
5105 for ac_exec_ext in '' $ac_executable_extensions; do 5415 for ac_exec_ext in '' $ac_executable_extensions; do
5106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5107 ac_cv_prog_ac_ct_RANLIB="ranlib" 5417 ac_cv_prog_ac_ct_RANLIB="ranlib"
5108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5418 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5109 break 2 5419 break 2
5110 fi 5420 fi
5111done 5421done
5112 done 5422done
5113IFS=$as_save_IFS 5423IFS=$as_save_IFS
5114 5424
5115fi 5425fi
5116fi 5426fi
5117ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5427ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5118if test -n "$ac_ct_RANLIB"; then 5428if test -n "$ac_ct_RANLIB"; then
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5429 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5120$as_echo "$ac_ct_RANLIB" >&6; } 5430$as_echo "$ac_ct_RANLIB" >&6; }
5121else 5431else
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5432 { $as_echo "$as_me:$LINENO: result: no" >&5
5123$as_echo "no" >&6; } 5433$as_echo "no" >&6; }
5124fi 5434fi
5125 5435
@@ -5128,8 +5438,12 @@ fi
5128 else 5438 else
5129 case $cross_compiling:$ac_tool_warned in 5439 case $cross_compiling:$ac_tool_warned in
5130yes:) 5440yes:)
5131{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5441{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5132$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5442whose name does not start with the host triplet. If you think this
5443configuration is useful to you, please write to autoconf@gnu.org." >&5
5444$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5445whose name does not start with the host triplet. If you think this
5446configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5133ac_tool_warned=yes ;; 5447ac_tool_warned=yes ;;
5134esac 5448esac
5135 RANLIB=$ac_ct_RANLIB 5449 RANLIB=$ac_ct_RANLIB
@@ -5145,10 +5459,59 @@ fi
5145## explicit --build to `configure', but if everything else than the kernel 5459## explicit --build to `configure', but if everything else than the kernel
5146## is running in i386 mode, we can help them out. 5460## is running in i386 mode, we can help them out.
5147if test "$machine" = "amdx86-64"; then 5461if test "$machine" = "amdx86-64"; then
5148 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default" 5462 { $as_echo "$as_me:$LINENO: checking whether i386 is declared" >&5
5149if test "x$ac_cv_have_decl_i386" = x""yes; then : 5463$as_echo_n "checking whether i386 is declared... " >&6; }
5464if test "${ac_cv_have_decl_i386+set}" = set; then
5465 $as_echo_n "(cached) " >&6
5466else
5467 cat >conftest.$ac_ext <<_ACEOF
5468/* confdefs.h. */
5469_ACEOF
5470cat confdefs.h >>conftest.$ac_ext
5471cat >>conftest.$ac_ext <<_ACEOF
5472/* end confdefs.h. */
5473$ac_includes_default
5474int
5475main ()
5476{
5477#ifndef i386
5478 (void) i386;
5479#endif
5150 5480
5481 ;
5482 return 0;
5483}
5484_ACEOF
5485rm -f conftest.$ac_objext
5486if { (ac_try="$ac_compile"
5487case "(($ac_try" in
5488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5489 *) ac_try_echo=$ac_try;;
5490esac
5491eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5492$as_echo "$ac_try_echo") >&5
5493 (eval "$ac_compile") 2>conftest.er1
5494 ac_status=$?
5495 grep -v '^ *+' conftest.er1 >conftest.err
5496 rm -f conftest.er1
5497 cat conftest.err >&5
5498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } && {
5500 test -z "$ac_c_werror_flag" ||
5501 test ! -s conftest.err
5502 } && test -s conftest.$ac_objext; then
5503 ac_cv_have_decl_i386=yes
5504else
5505 $as_echo "$as_me: failed program was:" >&5
5506sed 's/^/| /' conftest.$ac_ext >&5
5507
5508 ac_cv_have_decl_i386=no
5509fi
5510
5511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5151fi 5512fi
5513{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_i386" >&5
5514$as_echo "$ac_cv_have_decl_i386" >&6; }
5152 5515
5153 if test "$ac_cv_have_decl_i386" = "yes"; then 5516 if test "$ac_cv_have_decl_i386" = "yes"; then
5154 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'` 5517 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
@@ -5159,9 +5522,9 @@ fi
5159 5522
5160# Extract the first word of "install-info", so it can be a program name with args. 5523# Extract the first word of "install-info", so it can be a program name with args.
5161set dummy install-info; ac_word=$2 5524set dummy install-info; ac_word=$2
5162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5525{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5163$as_echo_n "checking for $ac_word... " >&6; } 5526$as_echo_n "checking for $ac_word... " >&6; }
5164if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : 5527if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5165 $as_echo_n "(cached) " >&6 5528 $as_echo_n "(cached) " >&6
5166else 5529else
5167 case $INSTALL_INFO in 5530 case $INSTALL_INFO in
@@ -5174,14 +5537,14 @@ for as_dir in $PATH
5174do 5537do
5175 IFS=$as_save_IFS 5538 IFS=$as_save_IFS
5176 test -z "$as_dir" && as_dir=. 5539 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do 5540 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5179 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" 5542 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5543 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 break 2 5544 break 2
5182 fi 5545 fi
5183done 5546done
5184 done 5547done
5185IFS=$as_save_IFS 5548IFS=$as_save_IFS
5186 5549
5187 ;; 5550 ;;
@@ -5189,19 +5552,19 @@ esac
5189fi 5552fi
5190INSTALL_INFO=$ac_cv_path_INSTALL_INFO 5553INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5191if test -n "$INSTALL_INFO"; then 5554if test -n "$INSTALL_INFO"; then
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 5555 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5193$as_echo "$INSTALL_INFO" >&6; } 5556$as_echo "$INSTALL_INFO" >&6; }
5194else 5557else
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5558 { $as_echo "$as_me:$LINENO: result: no" >&5
5196$as_echo "no" >&6; } 5559$as_echo "no" >&6; }
5197fi 5560fi
5198 5561
5199 5562
5200# Extract the first word of "install-info", so it can be a program name with args. 5563# Extract the first word of "install-info", so it can be a program name with args.
5201set dummy install-info; ac_word=$2 5564set dummy install-info; ac_word=$2
5202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5565{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5203$as_echo_n "checking for $ac_word... " >&6; } 5566$as_echo_n "checking for $ac_word... " >&6; }
5204if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : 5567if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5205 $as_echo_n "(cached) " >&6 5568 $as_echo_n "(cached) " >&6
5206else 5569else
5207 case $INSTALL_INFO in 5570 case $INSTALL_INFO in
@@ -5214,14 +5577,14 @@ for as_dir in /usr/sbin
5214do 5577do
5215 IFS=$as_save_IFS 5578 IFS=$as_save_IFS
5216 test -z "$as_dir" && as_dir=. 5579 test -z "$as_dir" && as_dir=.
5217 for ac_exec_ext in '' $ac_executable_extensions; do 5580 for ac_exec_ext in '' $ac_executable_extensions; do
5218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5219 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" 5582 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5583 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5221 break 2 5584 break 2
5222 fi 5585 fi
5223done 5586done
5224 done 5587done
5225IFS=$as_save_IFS 5588IFS=$as_save_IFS
5226 5589
5227 ;; 5590 ;;
@@ -5229,19 +5592,19 @@ esac
5229fi 5592fi
5230INSTALL_INFO=$ac_cv_path_INSTALL_INFO 5593INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5231if test -n "$INSTALL_INFO"; then 5594if test -n "$INSTALL_INFO"; then
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 5595 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5233$as_echo "$INSTALL_INFO" >&6; } 5596$as_echo "$INSTALL_INFO" >&6; }
5234else 5597else
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5598 { $as_echo "$as_me:$LINENO: result: no" >&5
5236$as_echo "no" >&6; } 5599$as_echo "no" >&6; }
5237fi 5600fi
5238 5601
5239 5602
5240# Extract the first word of "install-info", so it can be a program name with args. 5603# Extract the first word of "install-info", so it can be a program name with args.
5241set dummy install-info; ac_word=$2 5604set dummy install-info; ac_word=$2
5242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5605{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5243$as_echo_n "checking for $ac_word... " >&6; } 5606$as_echo_n "checking for $ac_word... " >&6; }
5244if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : 5607if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5245 $as_echo_n "(cached) " >&6 5608 $as_echo_n "(cached) " >&6
5246else 5609else
5247 case $INSTALL_INFO in 5610 case $INSTALL_INFO in
@@ -5254,14 +5617,14 @@ for as_dir in /sbin
5254do 5617do
5255 IFS=$as_save_IFS 5618 IFS=$as_save_IFS
5256 test -z "$as_dir" && as_dir=. 5619 test -z "$as_dir" && as_dir=.
5257 for ac_exec_ext in '' $ac_executable_extensions; do 5620 for ac_exec_ext in '' $ac_executable_extensions; do
5258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5259 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" 5622 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5623 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 break 2 5624 break 2
5262 fi 5625 fi
5263done 5626done
5264 done 5627done
5265IFS=$as_save_IFS 5628IFS=$as_save_IFS
5266 5629
5267 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":" 5630 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
@@ -5270,19 +5633,19 @@ esac
5270fi 5633fi
5271INSTALL_INFO=$ac_cv_path_INSTALL_INFO 5634INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5272if test -n "$INSTALL_INFO"; then 5635if test -n "$INSTALL_INFO"; then
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 5636 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5274$as_echo "$INSTALL_INFO" >&6; } 5637$as_echo "$INSTALL_INFO" >&6; }
5275else 5638else
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5639 { $as_echo "$as_me:$LINENO: result: no" >&5
5277$as_echo "no" >&6; } 5640$as_echo "no" >&6; }
5278fi 5641fi
5279 5642
5280 5643
5281# Extract the first word of "gzip", so it can be a program name with args. 5644# Extract the first word of "gzip", so it can be a program name with args.
5282set dummy gzip; ac_word=$2 5645set dummy gzip; ac_word=$2
5283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5646{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5284$as_echo_n "checking for $ac_word... " >&6; } 5647$as_echo_n "checking for $ac_word... " >&6; }
5285if test "${ac_cv_path_GZIP_PROG+set}" = set; then : 5648if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5286 $as_echo_n "(cached) " >&6 5649 $as_echo_n "(cached) " >&6
5287else 5650else
5288 case $GZIP_PROG in 5651 case $GZIP_PROG in
@@ -5295,14 +5658,14 @@ for as_dir in $PATH
5295do 5658do
5296 IFS=$as_save_IFS 5659 IFS=$as_save_IFS
5297 test -z "$as_dir" && as_dir=. 5660 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do 5661 for ac_exec_ext in '' $ac_executable_extensions; do
5299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5300 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext" 5663 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5664 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 break 2 5665 break 2
5303 fi 5666 fi
5304done 5667done
5305 done 5668done
5306IFS=$as_save_IFS 5669IFS=$as_save_IFS
5307 5670
5308 ;; 5671 ;;
@@ -5310,10 +5673,10 @@ esac
5310fi 5673fi
5311GZIP_PROG=$ac_cv_path_GZIP_PROG 5674GZIP_PROG=$ac_cv_path_GZIP_PROG
5312if test -n "$GZIP_PROG"; then 5675if test -n "$GZIP_PROG"; then
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5 5676 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5314$as_echo "$GZIP_PROG" >&6; } 5677$as_echo "$GZIP_PROG" >&6; }
5315else 5678else
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5679 { $as_echo "$as_me:$LINENO: result: no" >&5
5317$as_echo "no" >&6; } 5680$as_echo "no" >&6; }
5318fi 5681fi
5319 5682
@@ -5323,9 +5686,9 @@ fi
5323## Need makeinfo >= 4.6 (?) to build the manuals. 5686## Need makeinfo >= 4.6 (?) to build the manuals.
5324# Extract the first word of "makeinfo", so it can be a program name with args. 5687# Extract the first word of "makeinfo", so it can be a program name with args.
5325set dummy makeinfo; ac_word=$2 5688set dummy makeinfo; ac_word=$2
5326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5689{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5327$as_echo_n "checking for $ac_word... " >&6; } 5690$as_echo_n "checking for $ac_word... " >&6; }
5328if test "${ac_cv_path_MAKEINFO+set}" = set; then : 5691if test "${ac_cv_path_MAKEINFO+set}" = set; then
5329 $as_echo_n "(cached) " >&6 5692 $as_echo_n "(cached) " >&6
5330else 5693else
5331 case $MAKEINFO in 5694 case $MAKEINFO in
@@ -5338,14 +5701,14 @@ for as_dir in $PATH
5338do 5701do
5339 IFS=$as_save_IFS 5702 IFS=$as_save_IFS
5340 test -z "$as_dir" && as_dir=. 5703 test -z "$as_dir" && as_dir=.
5341 for ac_exec_ext in '' $ac_executable_extensions; do 5704 for ac_exec_ext in '' $ac_executable_extensions; do
5342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5343 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext" 5706 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5707 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5345 break 2 5708 break 2
5346 fi 5709 fi
5347done 5710done
5348 done 5711done
5349IFS=$as_save_IFS 5712IFS=$as_save_IFS
5350 5713
5351 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no" 5714 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
@@ -5354,10 +5717,10 @@ esac
5354fi 5717fi
5355MAKEINFO=$ac_cv_path_MAKEINFO 5718MAKEINFO=$ac_cv_path_MAKEINFO
5356if test -n "$MAKEINFO"; then 5719if test -n "$MAKEINFO"; then
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 5720 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5358$as_echo "$MAKEINFO" >&6; } 5721$as_echo "$MAKEINFO" >&6; }
5359else 5722else
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5723 { $as_echo "$as_me:$LINENO: result: no" >&5
5361$as_echo "no" >&6; } 5724$as_echo "no" >&6; }
5362fi 5725fi
5363 5726
@@ -5380,10 +5743,15 @@ if test "$MAKEINFO" = "no"; then
5380 if test "x${with_makeinfo}" = "xno"; then 5743 if test "x${with_makeinfo}" = "xno"; then
5381 MAKEINFO=off 5744 MAKEINFO=off
5382 elif test ! -e $srcdir/info/emacs; then 5745 elif test ! -e $srcdir/info/emacs; then
5383 as_fn_error "You do not seem to have makeinfo >= 4.6, and your 5746 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5747source tree does not seem to have pre-built manuals in the \`info' directory.
5748Either install a suitable version of makeinfo, or re-run configure
5749with the \`--without-makeinfo' option to build without the manuals. " >&5
5750$as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5384source tree does not seem to have pre-built manuals in the \`info' directory. 5751source tree does not seem to have pre-built manuals in the \`info' directory.
5385Either install a suitable version of makeinfo, or re-run configure 5752Either install a suitable version of makeinfo, or re-run configure
5386with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5 5753with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5754 { (exit 1); exit 1; }; }
5387 fi 5755 fi
5388fi 5756fi
5389 5757
@@ -5406,26 +5774,50 @@ else
5406 LDFLAGS="$LDFLAGS -znocombreloc" 5774 LDFLAGS="$LDFLAGS -znocombreloc"
5407fi 5775fi
5408 5776
5409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5 5777{ $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5410$as_echo_n "checking for -znocombreloc... " >&6; } 5778$as_echo_n "checking for -znocombreloc... " >&6; }
5411cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5779cat >conftest.$ac_ext <<_ACEOF
5412/* end confdefs.h. */
5413main(){return 0;} 5780main(){return 0;}
5414_ACEOF 5781_ACEOF
5415if ac_fn_c_try_link "$LINENO"; then : 5782rm -f conftest.$ac_objext conftest$ac_exeext
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5783if { (ac_try="$ac_link"
5784case "(($ac_try" in
5785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786 *) ac_try_echo=$ac_try;;
5787esac
5788eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5789$as_echo "$ac_try_echo") >&5
5790 (eval "$ac_link") 2>conftest.er1
5791 ac_status=$?
5792 grep -v '^ *+' conftest.er1 >conftest.err
5793 rm -f conftest.er1
5794 cat conftest.err >&5
5795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } && {
5797 test -z "$ac_c_werror_flag" ||
5798 test ! -s conftest.err
5799 } && test -s conftest$ac_exeext && {
5800 test "$cross_compiling" = yes ||
5801 $as_test_x conftest$ac_exeext
5802 }; then
5803 { $as_echo "$as_me:$LINENO: result: yes" >&5
5417$as_echo "yes" >&6; } 5804$as_echo "yes" >&6; }
5418else 5805else
5419 LDFLAGS=$late_LDFLAGS 5806 $as_echo "$as_me: failed program was:" >&5
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5807sed 's/^/| /' conftest.$ac_ext >&5
5808
5809 LDFLAGS=$late_LDFLAGS
5810 { $as_echo "$as_me:$LINENO: result: no" >&5
5421$as_echo "no" >&6; } 5811$as_echo "no" >&6; }
5422fi 5812fi
5423rm -f core conftest.err conftest.$ac_objext \ 5813
5424 conftest$ac_exeext conftest.$ac_ext 5814rm -rf conftest.dSYM
5815rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5816 conftest$ac_exeext conftest.$ac_ext
5425 5817
5426#### Extract some information from the operating system and machine files. 5818#### Extract some information from the operating system and machine files.
5427 5819
5428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the machine- and system-dependent files to find out 5820{ $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5429 - which libraries the lib-src programs will want, and 5821 - which libraries the lib-src programs will want, and
5430 - whether the GNU malloc routines are usable..." >&5 5822 - whether the GNU malloc routines are usable..." >&5
5431$as_echo "$as_me: checking the machine- and system-dependent files to find out 5823$as_echo "$as_me: checking the machine- and system-dependent files to find out
@@ -5562,10 +5954,59 @@ esac
5562 5954
5563C_SWITCH_MACHINE= 5955C_SWITCH_MACHINE=
5564if test "$machine" = "alpha"; then 5956if test "$machine" = "alpha"; then
5565 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default" 5957 { $as_echo "$as_me:$LINENO: checking whether __ELF__ is declared" >&5
5566if test "x$ac_cv_have_decl___ELF__" = x""yes; then : 5958$as_echo_n "checking whether __ELF__ is declared... " >&6; }
5959if test "${ac_cv_have_decl___ELF__+set}" = set; then
5960 $as_echo_n "(cached) " >&6
5961else
5962 cat >conftest.$ac_ext <<_ACEOF
5963/* confdefs.h. */
5964_ACEOF
5965cat confdefs.h >>conftest.$ac_ext
5966cat >>conftest.$ac_ext <<_ACEOF
5967/* end confdefs.h. */
5968$ac_includes_default
5969int
5970main ()
5971{
5972#ifndef __ELF__
5973 (void) __ELF__;
5974#endif
5567 5975
5976 ;
5977 return 0;
5978}
5979_ACEOF
5980rm -f conftest.$ac_objext
5981if { (ac_try="$ac_compile"
5982case "(($ac_try" in
5983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5984 *) ac_try_echo=$ac_try;;
5985esac
5986eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5987$as_echo "$ac_try_echo") >&5
5988 (eval "$ac_compile") 2>conftest.er1
5989 ac_status=$?
5990 grep -v '^ *+' conftest.er1 >conftest.err
5991 rm -f conftest.er1
5992 cat conftest.err >&5
5993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } && {
5995 test -z "$ac_c_werror_flag" ||
5996 test ! -s conftest.err
5997 } && test -s conftest.$ac_objext; then
5998 ac_cv_have_decl___ELF__=yes
5999else
6000 $as_echo "$as_me: failed program was:" >&5
6001sed 's/^/| /' conftest.$ac_ext >&5
6002
6003 ac_cv_have_decl___ELF__=no
6004fi
6005
6006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568fi 6007fi
6008{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___ELF__" >&5
6009$as_echo "$ac_cv_have_decl___ELF__" >&6; }
5569 6010
5570 if test "$ac_cv_have_decl___ELF__" = "yes"; then 6011 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5571 ## With ELF, make sure that all common symbols get allocated to in the 6012 ## With ELF, make sure that all common symbols get allocated to in the
@@ -5576,7 +6017,9 @@ fi
5576 if test "x$GCC" = "xyes"; then 6017 if test "x$GCC" = "xyes"; then
5577 C_SWITCH_MACHINE="-fno-common" 6018 C_SWITCH_MACHINE="-fno-common"
5578 else 6019 else
5579 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5 6020 { { $as_echo "$as_me:$LINENO: error: What gives? Fix me if DEC Unix supports ELF now." >&5
6021$as_echo "$as_me: error: What gives? Fix me if DEC Unix supports ELF now." >&2;}
6022 { (exit 1); exit 1; }; }
5580 fi 6023 fi
5581 fi 6024 fi
5582fi 6025fi
@@ -5622,15 +6065,15 @@ fi
5622 6065
5623 6066
5624# Check whether --enable-largefile was given. 6067# Check whether --enable-largefile was given.
5625if test "${enable_largefile+set}" = set; then : 6068if test "${enable_largefile+set}" = set; then
5626 enableval=$enable_largefile; 6069 enableval=$enable_largefile;
5627fi 6070fi
5628 6071
5629if test "$enable_largefile" != no; then 6072if test "$enable_largefile" != no; then
5630 6073
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 6074 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5632$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 6075$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5633if test "${ac_cv_sys_largefile_CC+set}" = set; then : 6076if test "${ac_cv_sys_largefile_CC+set}" = set; then
5634 $as_echo_n "(cached) " >&6 6077 $as_echo_n "(cached) " >&6
5635else 6078else
5636 ac_cv_sys_largefile_CC=no 6079 ac_cv_sys_largefile_CC=no
@@ -5639,7 +6082,11 @@ else
5639 while :; do 6082 while :; do
5640 # IRIX 6.2 and later do not support large files by default, 6083 # IRIX 6.2 and later do not support large files by default,
5641 # so use the C compiler's -n32 option if that helps. 6084 # so use the C compiler's -n32 option if that helps.
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6085 cat >conftest.$ac_ext <<_ACEOF
6086/* confdefs.h. */
6087_ACEOF
6088cat confdefs.h >>conftest.$ac_ext
6089cat >>conftest.$ac_ext <<_ACEOF
5643/* end confdefs.h. */ 6090/* end confdefs.h. */
5644#include <sys/types.h> 6091#include <sys/types.h>
5645 /* Check that off_t can represent 2**63 - 1 correctly. 6092 /* Check that off_t can represent 2**63 - 1 correctly.
@@ -5658,14 +6105,60 @@ main ()
5658 return 0; 6105 return 0;
5659} 6106}
5660_ACEOF 6107_ACEOF
5661 if ac_fn_c_try_compile "$LINENO"; then : 6108 rm -f conftest.$ac_objext
6109if { (ac_try="$ac_compile"
6110case "(($ac_try" in
6111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6112 *) ac_try_echo=$ac_try;;
6113esac
6114eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6115$as_echo "$ac_try_echo") >&5
6116 (eval "$ac_compile") 2>conftest.er1
6117 ac_status=$?
6118 grep -v '^ *+' conftest.er1 >conftest.err
6119 rm -f conftest.er1
6120 cat conftest.err >&5
6121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } && {
6123 test -z "$ac_c_werror_flag" ||
6124 test ! -s conftest.err
6125 } && test -s conftest.$ac_objext; then
5662 break 6126 break
6127else
6128 $as_echo "$as_me: failed program was:" >&5
6129sed 's/^/| /' conftest.$ac_ext >&5
6130
6131
5663fi 6132fi
6133
5664rm -f core conftest.err conftest.$ac_objext 6134rm -f core conftest.err conftest.$ac_objext
5665 CC="$CC -n32" 6135 CC="$CC -n32"
5666 if ac_fn_c_try_compile "$LINENO"; then : 6136 rm -f conftest.$ac_objext
6137if { (ac_try="$ac_compile"
6138case "(($ac_try" in
6139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140 *) ac_try_echo=$ac_try;;
6141esac
6142eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6143$as_echo "$ac_try_echo") >&5
6144 (eval "$ac_compile") 2>conftest.er1
6145 ac_status=$?
6146 grep -v '^ *+' conftest.er1 >conftest.err
6147 rm -f conftest.er1
6148 cat conftest.err >&5
6149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } && {
6151 test -z "$ac_c_werror_flag" ||
6152 test ! -s conftest.err
6153 } && test -s conftest.$ac_objext; then
5667 ac_cv_sys_largefile_CC=' -n32'; break 6154 ac_cv_sys_largefile_CC=' -n32'; break
6155else
6156 $as_echo "$as_me: failed program was:" >&5
6157sed 's/^/| /' conftest.$ac_ext >&5
6158
6159
5668fi 6160fi
6161
5669rm -f core conftest.err conftest.$ac_objext 6162rm -f core conftest.err conftest.$ac_objext
5670 break 6163 break
5671 done 6164 done
@@ -5673,19 +6166,23 @@ rm -f core conftest.err conftest.$ac_objext
5673 rm -f conftest.$ac_ext 6166 rm -f conftest.$ac_ext
5674 fi 6167 fi
5675fi 6168fi
5676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 6169{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5677$as_echo "$ac_cv_sys_largefile_CC" >&6; } 6170$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5678 if test "$ac_cv_sys_largefile_CC" != no; then 6171 if test "$ac_cv_sys_largefile_CC" != no; then
5679 CC=$CC$ac_cv_sys_largefile_CC 6172 CC=$CC$ac_cv_sys_largefile_CC
5680 fi 6173 fi
5681 6174
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 6175 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5683$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 6176$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5684if test "${ac_cv_sys_file_offset_bits+set}" = set; then : 6177if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5685 $as_echo_n "(cached) " >&6 6178 $as_echo_n "(cached) " >&6
5686else 6179else
5687 while :; do 6180 while :; do
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6181 cat >conftest.$ac_ext <<_ACEOF
6182/* confdefs.h. */
6183_ACEOF
6184cat confdefs.h >>conftest.$ac_ext
6185cat >>conftest.$ac_ext <<_ACEOF
5689/* end confdefs.h. */ 6186/* end confdefs.h. */
5690#include <sys/types.h> 6187#include <sys/types.h>
5691 /* Check that off_t can represent 2**63 - 1 correctly. 6188 /* Check that off_t can represent 2**63 - 1 correctly.
@@ -5704,11 +6201,38 @@ main ()
5704 return 0; 6201 return 0;
5705} 6202}
5706_ACEOF 6203_ACEOF
5707if ac_fn_c_try_compile "$LINENO"; then : 6204rm -f conftest.$ac_objext
6205if { (ac_try="$ac_compile"
6206case "(($ac_try" in
6207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208 *) ac_try_echo=$ac_try;;
6209esac
6210eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6211$as_echo "$ac_try_echo") >&5
6212 (eval "$ac_compile") 2>conftest.er1
6213 ac_status=$?
6214 grep -v '^ *+' conftest.er1 >conftest.err
6215 rm -f conftest.er1
6216 cat conftest.err >&5
6217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } && {
6219 test -z "$ac_c_werror_flag" ||
6220 test ! -s conftest.err
6221 } && test -s conftest.$ac_objext; then
5708 ac_cv_sys_file_offset_bits=no; break 6222 ac_cv_sys_file_offset_bits=no; break
6223else
6224 $as_echo "$as_me: failed program was:" >&5
6225sed 's/^/| /' conftest.$ac_ext >&5
6226
6227
5709fi 6228fi
6229
5710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6231 cat >conftest.$ac_ext <<_ACEOF
6232/* confdefs.h. */
6233_ACEOF
6234cat confdefs.h >>conftest.$ac_ext
6235cat >>conftest.$ac_ext <<_ACEOF
5712/* end confdefs.h. */ 6236/* end confdefs.h. */
5713#define _FILE_OFFSET_BITS 64 6237#define _FILE_OFFSET_BITS 64
5714#include <sys/types.h> 6238#include <sys/types.h>
@@ -5728,15 +6252,38 @@ main ()
5728 return 0; 6252 return 0;
5729} 6253}
5730_ACEOF 6254_ACEOF
5731if ac_fn_c_try_compile "$LINENO"; then : 6255rm -f conftest.$ac_objext
6256if { (ac_try="$ac_compile"
6257case "(($ac_try" in
6258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259 *) ac_try_echo=$ac_try;;
6260esac
6261eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6262$as_echo "$ac_try_echo") >&5
6263 (eval "$ac_compile") 2>conftest.er1
6264 ac_status=$?
6265 grep -v '^ *+' conftest.er1 >conftest.err
6266 rm -f conftest.er1
6267 cat conftest.err >&5
6268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); } && {
6270 test -z "$ac_c_werror_flag" ||
6271 test ! -s conftest.err
6272 } && test -s conftest.$ac_objext; then
5732 ac_cv_sys_file_offset_bits=64; break 6273 ac_cv_sys_file_offset_bits=64; break
6274else
6275 $as_echo "$as_me: failed program was:" >&5
6276sed 's/^/| /' conftest.$ac_ext >&5
6277
6278
5733fi 6279fi
6280
5734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5735 ac_cv_sys_file_offset_bits=unknown 6282 ac_cv_sys_file_offset_bits=unknown
5736 break 6283 break
5737done 6284done
5738fi 6285fi
5739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 6286{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5740$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 6287$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5741case $ac_cv_sys_file_offset_bits in #( 6288case $ac_cv_sys_file_offset_bits in #(
5742 no | unknown) ;; 6289 no | unknown) ;;
@@ -5748,13 +6295,17 @@ _ACEOF
5748esac 6295esac
5749rm -rf conftest* 6296rm -rf conftest*
5750 if test $ac_cv_sys_file_offset_bits = unknown; then 6297 if test $ac_cv_sys_file_offset_bits = unknown; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 6298 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5752$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 6299$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5753if test "${ac_cv_sys_large_files+set}" = set; then : 6300if test "${ac_cv_sys_large_files+set}" = set; then
5754 $as_echo_n "(cached) " >&6 6301 $as_echo_n "(cached) " >&6
5755else 6302else
5756 while :; do 6303 while :; do
5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6304 cat >conftest.$ac_ext <<_ACEOF
6305/* confdefs.h. */
6306_ACEOF
6307cat confdefs.h >>conftest.$ac_ext
6308cat >>conftest.$ac_ext <<_ACEOF
5758/* end confdefs.h. */ 6309/* end confdefs.h. */
5759#include <sys/types.h> 6310#include <sys/types.h>
5760 /* Check that off_t can represent 2**63 - 1 correctly. 6311 /* Check that off_t can represent 2**63 - 1 correctly.
@@ -5773,11 +6324,38 @@ main ()
5773 return 0; 6324 return 0;
5774} 6325}
5775_ACEOF 6326_ACEOF
5776if ac_fn_c_try_compile "$LINENO"; then : 6327rm -f conftest.$ac_objext
6328if { (ac_try="$ac_compile"
6329case "(($ac_try" in
6330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6331 *) ac_try_echo=$ac_try;;
6332esac
6333eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6334$as_echo "$ac_try_echo") >&5
6335 (eval "$ac_compile") 2>conftest.er1
6336 ac_status=$?
6337 grep -v '^ *+' conftest.er1 >conftest.err
6338 rm -f conftest.er1
6339 cat conftest.err >&5
6340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } && {
6342 test -z "$ac_c_werror_flag" ||
6343 test ! -s conftest.err
6344 } && test -s conftest.$ac_objext; then
5777 ac_cv_sys_large_files=no; break 6345 ac_cv_sys_large_files=no; break
6346else
6347 $as_echo "$as_me: failed program was:" >&5
6348sed 's/^/| /' conftest.$ac_ext >&5
6349
6350
5778fi 6351fi
6352
5779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6354 cat >conftest.$ac_ext <<_ACEOF
6355/* confdefs.h. */
6356_ACEOF
6357cat confdefs.h >>conftest.$ac_ext
6358cat >>conftest.$ac_ext <<_ACEOF
5781/* end confdefs.h. */ 6359/* end confdefs.h. */
5782#define _LARGE_FILES 1 6360#define _LARGE_FILES 1
5783#include <sys/types.h> 6361#include <sys/types.h>
@@ -5797,15 +6375,38 @@ main ()
5797 return 0; 6375 return 0;
5798} 6376}
5799_ACEOF 6377_ACEOF
5800if ac_fn_c_try_compile "$LINENO"; then : 6378rm -f conftest.$ac_objext
6379if { (ac_try="$ac_compile"
6380case "(($ac_try" in
6381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382 *) ac_try_echo=$ac_try;;
6383esac
6384eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6385$as_echo "$ac_try_echo") >&5
6386 (eval "$ac_compile") 2>conftest.er1
6387 ac_status=$?
6388 grep -v '^ *+' conftest.er1 >conftest.err
6389 rm -f conftest.er1
6390 cat conftest.err >&5
6391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } && {
6393 test -z "$ac_c_werror_flag" ||
6394 test ! -s conftest.err
6395 } && test -s conftest.$ac_objext; then
5801 ac_cv_sys_large_files=1; break 6396 ac_cv_sys_large_files=1; break
6397else
6398 $as_echo "$as_me: failed program was:" >&5
6399sed 's/^/| /' conftest.$ac_ext >&5
6400
6401
5802fi 6402fi
6403
5803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5804 ac_cv_sys_large_files=unknown 6405 ac_cv_sys_large_files=unknown
5805 break 6406 break
5806done 6407done
5807fi 6408fi
5808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 6409{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5809$as_echo "$ac_cv_sys_large_files" >&6; } 6410$as_echo "$ac_cv_sys_large_files" >&6; }
5810case $ac_cv_sys_large_files in #( 6411case $ac_cv_sys_large_files in #(
5811 no | unknown) ;; 6412 no | unknown) ;;
@@ -5851,7 +6452,9 @@ else
5851 ## Some platforms don't use any of these files, so it is not 6452 ## Some platforms don't use any of these files, so it is not
5852 ## appropriate to put this test outside the if block. 6453 ## appropriate to put this test outside the if block.
5853 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \ 6454 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5854 as_fn_error "crt*.o not found in specified location." "$LINENO" 5 6455 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6456$as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6457 { (exit 1); exit 1; }; }
5855 6458
5856fi 6459fi
5857 6460
@@ -5902,12 +6505,145 @@ esac
5902 6505
5903if test "${with_sound}" != "no"; then 6506if test "${with_sound}" != "no"; then
5904 # Sound support for GNU/Linux and the free BSDs. 6507 # Sound support for GNU/Linux and the free BSDs.
5905 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h 6508
5906do : 6509
5907 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6510
5908ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6511for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5909eval as_val=\$$as_ac_Header 6512do
5910 if test "x$as_val" = x""yes; then : 6513as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6514if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6515 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6516$as_echo_n "checking for $ac_header... " >&6; }
6517if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6518 $as_echo_n "(cached) " >&6
6519fi
6520ac_res=`eval 'as_val=${'$as_ac_Header'}
6521 $as_echo "$as_val"'`
6522 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6523$as_echo "$ac_res" >&6; }
6524else
6525 # Is the header compilable?
6526{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6527$as_echo_n "checking $ac_header usability... " >&6; }
6528cat >conftest.$ac_ext <<_ACEOF
6529/* confdefs.h. */
6530_ACEOF
6531cat confdefs.h >>conftest.$ac_ext
6532cat >>conftest.$ac_ext <<_ACEOF
6533/* end confdefs.h. */
6534$ac_includes_default
6535#include <$ac_header>
6536_ACEOF
6537rm -f conftest.$ac_objext
6538if { (ac_try="$ac_compile"
6539case "(($ac_try" in
6540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6541 *) ac_try_echo=$ac_try;;
6542esac
6543eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6544$as_echo "$ac_try_echo") >&5
6545 (eval "$ac_compile") 2>conftest.er1
6546 ac_status=$?
6547 grep -v '^ *+' conftest.er1 >conftest.err
6548 rm -f conftest.er1
6549 cat conftest.err >&5
6550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); } && {
6552 test -z "$ac_c_werror_flag" ||
6553 test ! -s conftest.err
6554 } && test -s conftest.$ac_objext; then
6555 ac_header_compiler=yes
6556else
6557 $as_echo "$as_me: failed program was:" >&5
6558sed 's/^/| /' conftest.$ac_ext >&5
6559
6560 ac_header_compiler=no
6561fi
6562
6563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6565$as_echo "$ac_header_compiler" >&6; }
6566
6567# Is the header present?
6568{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6569$as_echo_n "checking $ac_header presence... " >&6; }
6570cat >conftest.$ac_ext <<_ACEOF
6571/* confdefs.h. */
6572_ACEOF
6573cat confdefs.h >>conftest.$ac_ext
6574cat >>conftest.$ac_ext <<_ACEOF
6575/* end confdefs.h. */
6576#include <$ac_header>
6577_ACEOF
6578if { (ac_try="$ac_cpp conftest.$ac_ext"
6579case "(($ac_try" in
6580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581 *) ac_try_echo=$ac_try;;
6582esac
6583eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6584$as_echo "$ac_try_echo") >&5
6585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6586 ac_status=$?
6587 grep -v '^ *+' conftest.er1 >conftest.err
6588 rm -f conftest.er1
6589 cat conftest.err >&5
6590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } >/dev/null && {
6592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6593 test ! -s conftest.err
6594 }; then
6595 ac_header_preproc=yes
6596else
6597 $as_echo "$as_me: failed program was:" >&5
6598sed 's/^/| /' conftest.$ac_ext >&5
6599
6600 ac_header_preproc=no
6601fi
6602
6603rm -f conftest.err conftest.$ac_ext
6604{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6605$as_echo "$ac_header_preproc" >&6; }
6606
6607# So? What about this header?
6608case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6609 yes:no: )
6610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6611$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6613$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6614 ac_header_preproc=yes
6615 ;;
6616 no:yes:* )
6617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6618$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6620$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6622$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6624$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6626$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6628$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6629
6630 ;;
6631esac
6632{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6633$as_echo_n "checking for $ac_header... " >&6; }
6634if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6635 $as_echo_n "(cached) " >&6
6636else
6637 eval "$as_ac_Header=\$ac_header_preproc"
6638fi
6639ac_res=`eval 'as_val=${'$as_ac_Header'}
6640 $as_echo "$as_val"'`
6641 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6642$as_echo "$ac_res" >&6; }
6643
6644fi
6645if test `eval 'as_val=${'$as_ac_Header'}
6646 $as_echo "$as_val"'` = yes; then
5911 cat >>confdefs.h <<_ACEOF 6647 cat >>confdefs.h <<_ACEOF
5912#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6648#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5913_ACEOF 6649_ACEOF
@@ -5917,14 +6653,18 @@ fi
5917done 6653done
5918 6654
5919 # Emulation library used on NetBSD. 6655 # Emulation library used on NetBSD.
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5 6656 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5921$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; } 6657$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5922if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then : 6658if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5923 $as_echo_n "(cached) " >&6 6659 $as_echo_n "(cached) " >&6
5924else 6660else
5925 ac_check_lib_save_LIBS=$LIBS 6661 ac_check_lib_save_LIBS=$LIBS
5926LIBS="-lossaudio $LIBS" 6662LIBS="-lossaudio $LIBS"
5927cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6663cat >conftest.$ac_ext <<_ACEOF
6664/* confdefs.h. */
6665_ACEOF
6666cat confdefs.h >>conftest.$ac_ext
6667cat >>conftest.$ac_ext <<_ACEOF
5928/* end confdefs.h. */ 6668/* end confdefs.h. */
5929 6669
5930/* Override any GCC internal prototype to avoid an error. 6670/* Override any GCC internal prototype to avoid an error.
@@ -5942,18 +6682,43 @@ return _oss_ioctl ();
5942 return 0; 6682 return 0;
5943} 6683}
5944_ACEOF 6684_ACEOF
5945if ac_fn_c_try_link "$LINENO"; then : 6685rm -f conftest.$ac_objext conftest$ac_exeext
6686if { (ac_try="$ac_link"
6687case "(($ac_try" in
6688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6689 *) ac_try_echo=$ac_try;;
6690esac
6691eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6692$as_echo "$ac_try_echo") >&5
6693 (eval "$ac_link") 2>conftest.er1
6694 ac_status=$?
6695 grep -v '^ *+' conftest.er1 >conftest.err
6696 rm -f conftest.er1
6697 cat conftest.err >&5
6698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } && {
6700 test -z "$ac_c_werror_flag" ||
6701 test ! -s conftest.err
6702 } && test -s conftest$ac_exeext && {
6703 test "$cross_compiling" = yes ||
6704 $as_test_x conftest$ac_exeext
6705 }; then
5946 ac_cv_lib_ossaudio__oss_ioctl=yes 6706 ac_cv_lib_ossaudio__oss_ioctl=yes
5947else 6707else
5948 ac_cv_lib_ossaudio__oss_ioctl=no 6708 $as_echo "$as_me: failed program was:" >&5
6709sed 's/^/| /' conftest.$ac_ext >&5
6710
6711 ac_cv_lib_ossaudio__oss_ioctl=no
5949fi 6712fi
5950rm -f core conftest.err conftest.$ac_objext \ 6713
5951 conftest$ac_exeext conftest.$ac_ext 6714rm -rf conftest.dSYM
6715rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6716 conftest$ac_exeext conftest.$ac_ext
5952LIBS=$ac_check_lib_save_LIBS 6717LIBS=$ac_check_lib_save_LIBS
5953fi 6718fi
5954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 6719{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5955$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; } 6720$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5956if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then : 6721if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5957 LIBSOUND=-lossaudio 6722 LIBSOUND=-lossaudio
5958else 6723else
5959 LIBSOUND= 6724 LIBSOUND=
@@ -5968,9 +6733,9 @@ fi
5968 6733
5969 # Extract the first word of "pkg-config", so it can be a program name with args. 6734 # Extract the first word of "pkg-config", so it can be a program name with args.
5970set dummy pkg-config; ac_word=$2 6735set dummy pkg-config; ac_word=$2
5971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6736{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5972$as_echo_n "checking for $ac_word... " >&6; } 6737$as_echo_n "checking for $ac_word... " >&6; }
5973if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 6738if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5974 $as_echo_n "(cached) " >&6 6739 $as_echo_n "(cached) " >&6
5975else 6740else
5976 case $PKG_CONFIG in 6741 case $PKG_CONFIG in
@@ -5983,14 +6748,14 @@ for as_dir in $PATH
5983do 6748do
5984 IFS=$as_save_IFS 6749 IFS=$as_save_IFS
5985 test -z "$as_dir" && as_dir=. 6750 test -z "$as_dir" && as_dir=.
5986 for ac_exec_ext in '' $ac_executable_extensions; do 6751 for ac_exec_ext in '' $ac_executable_extensions; do
5987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5988 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 6753 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6754 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5990 break 2 6755 break 2
5991 fi 6756 fi
5992done 6757done
5993 done 6758done
5994IFS=$as_save_IFS 6759IFS=$as_save_IFS
5995 6760
5996 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 6761 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -5999,10 +6764,10 @@ esac
5999fi 6764fi
6000PKG_CONFIG=$ac_cv_path_PKG_CONFIG 6765PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6001if test -n "$PKG_CONFIG"; then 6766if test -n "$PKG_CONFIG"; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 6767 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6003$as_echo "$PKG_CONFIG" >&6; } 6768$as_echo "$PKG_CONFIG" >&6; }
6004else 6769else
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6770 { $as_echo "$as_me:$LINENO: result: no" >&5
6006$as_echo "no" >&6; } 6771$as_echo "no" >&6; }
6007fi 6772fi
6008 6773
@@ -6013,27 +6778,27 @@ fi
6013 else 6778 else
6014 PKG_CONFIG_MIN_VERSION=0.9.0 6779 PKG_CONFIG_MIN_VERSION=0.9.0
6015 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 6780 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5 6781 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6017$as_echo_n "checking for $ALSA_MODULES... " >&6; } 6782$as_echo_n "checking for $ALSA_MODULES... " >&6; }
6018 6783
6019 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then 6784 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6785 { $as_echo "$as_me:$LINENO: result: yes" >&5
6021$as_echo "yes" >&6; } 6786$as_echo "yes" >&6; }
6022 succeeded=yes 6787 succeeded=yes
6023 6788
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5 6789 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6025$as_echo_n "checking ALSA_CFLAGS... " >&6; } 6790$as_echo_n "checking ALSA_CFLAGS... " >&6; }
6026 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'` 6791 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5 6792 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6028$as_echo "$ALSA_CFLAGS" >&6; } 6793$as_echo "$ALSA_CFLAGS" >&6; }
6029 6794
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5 6795 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6031$as_echo_n "checking ALSA_LIBS... " >&6; } 6796$as_echo_n "checking ALSA_LIBS... " >&6; }
6032 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'` 6797 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5 6798 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6034$as_echo "$ALSA_LIBS" >&6; } 6799$as_echo "$ALSA_LIBS" >&6; }
6035 else 6800 else
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6801 { $as_echo "$as_me:$LINENO: result: no" >&5
6037$as_echo "no" >&6; } 6802$as_echo "no" >&6; }
6038 ALSA_CFLAGS="" 6803 ALSA_CFLAGS=""
6039 ALSA_LIBS="" 6804 ALSA_LIBS=""
@@ -6062,7 +6827,11 @@ $as_echo "no" >&6; }
6062 SAVE_LDFLAGS="$LDFLAGS" 6827 SAVE_LDFLAGS="$LDFLAGS"
6063 CFLAGS="$ALSA_CFLAGS $CFLAGS" 6828 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6064 LDFLAGS="$ALSA_LIBS $LDFLAGS" 6829 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6830 cat >conftest.$ac_ext <<_ACEOF
6831/* confdefs.h. */
6832_ACEOF
6833cat confdefs.h >>conftest.$ac_ext
6834cat >>conftest.$ac_ext <<_ACEOF
6066/* end confdefs.h. */ 6835/* end confdefs.h. */
6067#include <asoundlib.h> 6836#include <asoundlib.h>
6068int 6837int
@@ -6073,14 +6842,39 @@ snd_lib_error_set_handler (0);
6073 return 0; 6842 return 0;
6074} 6843}
6075_ACEOF 6844_ACEOF
6076if ac_fn_c_try_compile "$LINENO"; then : 6845rm -f conftest.$ac_objext
6846if { (ac_try="$ac_compile"
6847case "(($ac_try" in
6848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6849 *) ac_try_echo=$ac_try;;
6850esac
6851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6852$as_echo "$ac_try_echo") >&5
6853 (eval "$ac_compile") 2>conftest.er1
6854 ac_status=$?
6855 grep -v '^ *+' conftest.er1 >conftest.err
6856 rm -f conftest.er1
6857 cat conftest.err >&5
6858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); } && {
6860 test -z "$ac_c_werror_flag" ||
6861 test ! -s conftest.err
6862 } && test -s conftest.$ac_objext; then
6077 emacs_alsa_normal=yes 6863 emacs_alsa_normal=yes
6078else 6864else
6079 emacs_alsa_normal=no 6865 $as_echo "$as_me: failed program was:" >&5
6866sed 's/^/| /' conftest.$ac_ext >&5
6867
6868 emacs_alsa_normal=no
6080fi 6869fi
6870
6081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6082 if test "$emacs_alsa_normal" != yes; then 6872 if test "$emacs_alsa_normal" != yes; then
6083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6873 cat >conftest.$ac_ext <<_ACEOF
6874/* confdefs.h. */
6875_ACEOF
6876cat confdefs.h >>conftest.$ac_ext
6877cat >>conftest.$ac_ext <<_ACEOF
6084/* end confdefs.h. */ 6878/* end confdefs.h. */
6085#include <alsa/asoundlib.h> 6879#include <alsa/asoundlib.h>
6086int 6880int
@@ -6091,14 +6885,37 @@ snd_lib_error_set_handler (0);
6091 return 0; 6885 return 0;
6092} 6886}
6093_ACEOF 6887_ACEOF
6094if ac_fn_c_try_compile "$LINENO"; then : 6888rm -f conftest.$ac_objext
6889if { (ac_try="$ac_compile"
6890case "(($ac_try" in
6891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6892 *) ac_try_echo=$ac_try;;
6893esac
6894eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6895$as_echo "$ac_try_echo") >&5
6896 (eval "$ac_compile") 2>conftest.er1
6897 ac_status=$?
6898 grep -v '^ *+' conftest.er1 >conftest.err
6899 rm -f conftest.er1
6900 cat conftest.err >&5
6901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } && {
6903 test -z "$ac_c_werror_flag" ||
6904 test ! -s conftest.err
6905 } && test -s conftest.$ac_objext; then
6095 emacs_alsa_subdir=yes 6906 emacs_alsa_subdir=yes
6096else 6907else
6097 emacs_alsa_subdir=no 6908 $as_echo "$as_me: failed program was:" >&5
6909sed 's/^/| /' conftest.$ac_ext >&5
6910
6911 emacs_alsa_subdir=no
6098fi 6912fi
6913
6099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6100 if test "$emacs_alsa_subdir" != yes; then 6915 if test "$emacs_alsa_subdir" != yes; then
6101 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5 6916 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6917$as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6918 { (exit 1); exit 1; }; }
6102 fi 6919 fi
6103 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" 6920 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6104 fi 6921 fi
@@ -6108,22 +6925,179 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6108 LIBSOUND="$LIBSOUND $ALSA_LIBS" 6925 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6109 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS" 6926 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6110 6927
6111$as_echo "#define HAVE_ALSA 1" >>confdefs.h 6928cat >>confdefs.h <<\_ACEOF
6929#define HAVE_ALSA 1
6930_ACEOF
6112 6931
6113 fi 6932 fi
6114 6933
6115fi 6934fi
6116 6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6117for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ 6961for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6118 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ 6962 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6119 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ 6963 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6120 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \ 6964 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6121 sys/utsname.h pwd.h utmp.h 6965 sys/utsname.h pwd.h utmp.h
6122do : 6966do
6123 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6967as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6124ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6968if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6125eval as_val=\$$as_ac_Header 6969 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6126 if test "x$as_val" = x""yes; then : 6970$as_echo_n "checking for $ac_header... " >&6; }
6971if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6972 $as_echo_n "(cached) " >&6
6973fi
6974ac_res=`eval 'as_val=${'$as_ac_Header'}
6975 $as_echo "$as_val"'`
6976 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6977$as_echo "$ac_res" >&6; }
6978else
6979 # Is the header compilable?
6980{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6981$as_echo_n "checking $ac_header usability... " >&6; }
6982cat >conftest.$ac_ext <<_ACEOF
6983/* confdefs.h. */
6984_ACEOF
6985cat confdefs.h >>conftest.$ac_ext
6986cat >>conftest.$ac_ext <<_ACEOF
6987/* end confdefs.h. */
6988$ac_includes_default
6989#include <$ac_header>
6990_ACEOF
6991rm -f conftest.$ac_objext
6992if { (ac_try="$ac_compile"
6993case "(($ac_try" in
6994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6995 *) ac_try_echo=$ac_try;;
6996esac
6997eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6998$as_echo "$ac_try_echo") >&5
6999 (eval "$ac_compile") 2>conftest.er1
7000 ac_status=$?
7001 grep -v '^ *+' conftest.er1 >conftest.err
7002 rm -f conftest.er1
7003 cat conftest.err >&5
7004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); } && {
7006 test -z "$ac_c_werror_flag" ||
7007 test ! -s conftest.err
7008 } && test -s conftest.$ac_objext; then
7009 ac_header_compiler=yes
7010else
7011 $as_echo "$as_me: failed program was:" >&5
7012sed 's/^/| /' conftest.$ac_ext >&5
7013
7014 ac_header_compiler=no
7015fi
7016
7017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7018{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7019$as_echo "$ac_header_compiler" >&6; }
7020
7021# Is the header present?
7022{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7023$as_echo_n "checking $ac_header presence... " >&6; }
7024cat >conftest.$ac_ext <<_ACEOF
7025/* confdefs.h. */
7026_ACEOF
7027cat confdefs.h >>conftest.$ac_ext
7028cat >>conftest.$ac_ext <<_ACEOF
7029/* end confdefs.h. */
7030#include <$ac_header>
7031_ACEOF
7032if { (ac_try="$ac_cpp conftest.$ac_ext"
7033case "(($ac_try" in
7034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7035 *) ac_try_echo=$ac_try;;
7036esac
7037eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7038$as_echo "$ac_try_echo") >&5
7039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7040 ac_status=$?
7041 grep -v '^ *+' conftest.er1 >conftest.err
7042 rm -f conftest.er1
7043 cat conftest.err >&5
7044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); } >/dev/null && {
7046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7047 test ! -s conftest.err
7048 }; then
7049 ac_header_preproc=yes
7050else
7051 $as_echo "$as_me: failed program was:" >&5
7052sed 's/^/| /' conftest.$ac_ext >&5
7053
7054 ac_header_preproc=no
7055fi
7056
7057rm -f conftest.err conftest.$ac_ext
7058{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7059$as_echo "$ac_header_preproc" >&6; }
7060
7061# So? What about this header?
7062case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7063 yes:no: )
7064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7065$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7067$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7068 ac_header_preproc=yes
7069 ;;
7070 no:yes:* )
7071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7072$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7074$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7076$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7077 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7078$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7079 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7080$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7081 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7082$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7083
7084 ;;
7085esac
7086{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7087$as_echo_n "checking for $ac_header... " >&6; }
7088if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7089 $as_echo_n "(cached) " >&6
7090else
7091 eval "$as_ac_Header=\$ac_header_preproc"
7092fi
7093ac_res=`eval 'as_val=${'$as_ac_Header'}
7094 $as_echo "$as_val"'`
7095 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7096$as_echo "$ac_res" >&6; }
7097
7098fi
7099if test `eval 'as_val=${'$as_ac_Header'}
7100 $as_echo "$as_val"'` = yes; then
6127 cat >>confdefs.h <<_ACEOF 7101 cat >>confdefs.h <<_ACEOF
6128#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7102#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6129_ACEOF 7103_ACEOF
@@ -6133,9 +7107,13 @@ fi
6133done 7107done
6134 7108
6135 7109
6136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5 7110{ $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6137$as_echo_n "checking if personality LINUX32 can be set... " >&6; } 7111$as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6138cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7112cat >conftest.$ac_ext <<_ACEOF
7113/* confdefs.h. */
7114_ACEOF
7115cat confdefs.h >>conftest.$ac_ext
7116cat >>conftest.$ac_ext <<_ACEOF
6139/* end confdefs.h. */ 7117/* end confdefs.h. */
6140#include <sys/personality.h> 7118#include <sys/personality.h>
6141int 7119int
@@ -6146,39 +7124,112 @@ personality (PER_LINUX32)
6146 return 0; 7124 return 0;
6147} 7125}
6148_ACEOF 7126_ACEOF
6149if ac_fn_c_try_compile "$LINENO"; then : 7127rm -f conftest.$ac_objext
7128if { (ac_try="$ac_compile"
7129case "(($ac_try" in
7130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7131 *) ac_try_echo=$ac_try;;
7132esac
7133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7134$as_echo "$ac_try_echo") >&5
7135 (eval "$ac_compile") 2>conftest.er1
7136 ac_status=$?
7137 grep -v '^ *+' conftest.er1 >conftest.err
7138 rm -f conftest.er1
7139 cat conftest.err >&5
7140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); } && {
7142 test -z "$ac_c_werror_flag" ||
7143 test ! -s conftest.err
7144 } && test -s conftest.$ac_objext; then
6150 emacs_cv_personality_linux32=yes 7145 emacs_cv_personality_linux32=yes
6151else 7146else
6152 emacs_cv_personality_linux32=no 7147 $as_echo "$as_me: failed program was:" >&5
7148sed 's/^/| /' conftest.$ac_ext >&5
7149
7150 emacs_cv_personality_linux32=no
6153fi 7151fi
7152
6154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5 7154{ $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6156$as_echo "$emacs_cv_personality_linux32" >&6; } 7155$as_echo "$emacs_cv_personality_linux32" >&6; }
6157 7156
6158if test $emacs_cv_personality_linux32 = yes; then 7157if test $emacs_cv_personality_linux32 = yes; then
6159 7158
6160$as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h 7159cat >>confdefs.h <<\_ACEOF
7160#define HAVE_PERSONALITY_LINUX32 1
7161_ACEOF
6161 7162
6162fi 7163fi
6163 7164
7165
6164for ac_header in term.h 7166for ac_header in term.h
6165do : 7167do
6166 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h" 7168as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6167if test "x$ac_cv_header_term_h" = x""yes; then : 7169{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7170$as_echo_n "checking for $ac_header... " >&6; }
7171if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7172 $as_echo_n "(cached) " >&6
7173else
7174 cat >conftest.$ac_ext <<_ACEOF
7175/* confdefs.h. */
7176_ACEOF
7177cat confdefs.h >>conftest.$ac_ext
7178cat >>conftest.$ac_ext <<_ACEOF
7179/* end confdefs.h. */
7180#include <$ac_header>
7181_ACEOF
7182if { (ac_try="$ac_cpp conftest.$ac_ext"
7183case "(($ac_try" in
7184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7185 *) ac_try_echo=$ac_try;;
7186esac
7187eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7188$as_echo "$ac_try_echo") >&5
7189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7190 ac_status=$?
7191 grep -v '^ *+' conftest.er1 >conftest.err
7192 rm -f conftest.er1
7193 cat conftest.err >&5
7194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); } >/dev/null && {
7196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7197 test ! -s conftest.err
7198 }; then
7199 eval "$as_ac_Header=yes"
7200else
7201 $as_echo "$as_me: failed program was:" >&5
7202sed 's/^/| /' conftest.$ac_ext >&5
7203
7204 eval "$as_ac_Header=no"
7205fi
7206
7207rm -f conftest.err conftest.$ac_ext
7208fi
7209ac_res=`eval 'as_val=${'$as_ac_Header'}
7210 $as_echo "$as_val"'`
7211 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7212$as_echo "$ac_res" >&6; }
7213if test `eval 'as_val=${'$as_ac_Header'}
7214 $as_echo "$as_val"'` = yes; then
6168 cat >>confdefs.h <<_ACEOF 7215 cat >>confdefs.h <<_ACEOF
6169#define HAVE_TERM_H 1 7216#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6170_ACEOF 7217_ACEOF
6171 7218
6172fi 7219fi
6173 7220
6174done 7221done
6175 7222
6176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7223{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6177$as_echo_n "checking for ANSI C header files... " >&6; } 7224$as_echo_n "checking for ANSI C header files... " >&6; }
6178if test "${ac_cv_header_stdc+set}" = set; then : 7225if test "${ac_cv_header_stdc+set}" = set; then
6179 $as_echo_n "(cached) " >&6 7226 $as_echo_n "(cached) " >&6
6180else 7227else
6181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7228 cat >conftest.$ac_ext <<_ACEOF
7229/* confdefs.h. */
7230_ACEOF
7231cat confdefs.h >>conftest.$ac_ext
7232cat >>conftest.$ac_ext <<_ACEOF
6182/* end confdefs.h. */ 7233/* end confdefs.h. */
6183#include <stdlib.h> 7234#include <stdlib.h>
6184#include <stdarg.h> 7235#include <stdarg.h>
@@ -6193,23 +7244,48 @@ main ()
6193 return 0; 7244 return 0;
6194} 7245}
6195_ACEOF 7246_ACEOF
6196if ac_fn_c_try_compile "$LINENO"; then : 7247rm -f conftest.$ac_objext
7248if { (ac_try="$ac_compile"
7249case "(($ac_try" in
7250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7251 *) ac_try_echo=$ac_try;;
7252esac
7253eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7254$as_echo "$ac_try_echo") >&5
7255 (eval "$ac_compile") 2>conftest.er1
7256 ac_status=$?
7257 grep -v '^ *+' conftest.er1 >conftest.err
7258 rm -f conftest.er1
7259 cat conftest.err >&5
7260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); } && {
7262 test -z "$ac_c_werror_flag" ||
7263 test ! -s conftest.err
7264 } && test -s conftest.$ac_objext; then
6197 ac_cv_header_stdc=yes 7265 ac_cv_header_stdc=yes
6198else 7266else
6199 ac_cv_header_stdc=no 7267 $as_echo "$as_me: failed program was:" >&5
7268sed 's/^/| /' conftest.$ac_ext >&5
7269
7270 ac_cv_header_stdc=no
6200fi 7271fi
7272
6201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6202 7274
6203if test $ac_cv_header_stdc = yes; then 7275if test $ac_cv_header_stdc = yes; then
6204 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7276 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7277 cat >conftest.$ac_ext <<_ACEOF
7278/* confdefs.h. */
7279_ACEOF
7280cat confdefs.h >>conftest.$ac_ext
7281cat >>conftest.$ac_ext <<_ACEOF
6206/* end confdefs.h. */ 7282/* end confdefs.h. */
6207#include <string.h> 7283#include <string.h>
6208 7284
6209_ACEOF 7285_ACEOF
6210if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7286if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6211 $EGREP "memchr" >/dev/null 2>&1; then : 7287 $EGREP "memchr" >/dev/null 2>&1; then
6212 7288 :
6213else 7289else
6214 ac_cv_header_stdc=no 7290 ac_cv_header_stdc=no
6215fi 7291fi
@@ -6219,14 +7295,18 @@ fi
6219 7295
6220if test $ac_cv_header_stdc = yes; then 7296if test $ac_cv_header_stdc = yes; then
6221 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7297 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7298 cat >conftest.$ac_ext <<_ACEOF
7299/* confdefs.h. */
7300_ACEOF
7301cat confdefs.h >>conftest.$ac_ext
7302cat >>conftest.$ac_ext <<_ACEOF
6223/* end confdefs.h. */ 7303/* end confdefs.h. */
6224#include <stdlib.h> 7304#include <stdlib.h>
6225 7305
6226_ACEOF 7306_ACEOF
6227if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7307if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6228 $EGREP "free" >/dev/null 2>&1; then : 7308 $EGREP "free" >/dev/null 2>&1; then
6229 7309 :
6230else 7310else
6231 ac_cv_header_stdc=no 7311 ac_cv_header_stdc=no
6232fi 7312fi
@@ -6236,10 +7316,14 @@ fi
6236 7316
6237if test $ac_cv_header_stdc = yes; then 7317if test $ac_cv_header_stdc = yes; then
6238 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7318 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6239 if test "$cross_compiling" = yes; then : 7319 if test "$cross_compiling" = yes; then
6240 : 7320 :
6241else 7321else
6242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7322 cat >conftest.$ac_ext <<_ACEOF
7323/* confdefs.h. */
7324_ACEOF
7325cat confdefs.h >>conftest.$ac_ext
7326cat >>conftest.$ac_ext <<_ACEOF
6243/* end confdefs.h. */ 7327/* end confdefs.h. */
6244#include <ctype.h> 7328#include <ctype.h>
6245#include <stdlib.h> 7329#include <stdlib.h>
@@ -6266,31 +7350,64 @@ main ()
6266 return 0; 7350 return 0;
6267} 7351}
6268_ACEOF 7352_ACEOF
6269if ac_fn_c_try_run "$LINENO"; then : 7353rm -f conftest$ac_exeext
6270 7354if { (ac_try="$ac_link"
7355case "(($ac_try" in
7356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7357 *) ac_try_echo=$ac_try;;
7358esac
7359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7360$as_echo "$ac_try_echo") >&5
7361 (eval "$ac_link") 2>&5
7362 ac_status=$?
7363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7365 { (case "(($ac_try" in
7366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7367 *) ac_try_echo=$ac_try;;
7368esac
7369eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7370$as_echo "$ac_try_echo") >&5
7371 (eval "$ac_try") 2>&5
7372 ac_status=$?
7373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); }; }; then
7375 :
6271else 7376else
6272 ac_cv_header_stdc=no 7377 $as_echo "$as_me: program exited with status $ac_status" >&5
7378$as_echo "$as_me: failed program was:" >&5
7379sed 's/^/| /' conftest.$ac_ext >&5
7380
7381( exit $ac_status )
7382ac_cv_header_stdc=no
6273fi 7383fi
6274rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7384rm -rf conftest.dSYM
6275 conftest.$ac_objext conftest.beam conftest.$ac_ext 7385rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6276fi 7386fi
6277 7387
7388
6278fi 7389fi
6279fi 7390fi
6280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7391{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6281$as_echo "$ac_cv_header_stdc" >&6; } 7392$as_echo "$ac_cv_header_stdc" >&6; }
6282if test $ac_cv_header_stdc = yes; then 7393if test $ac_cv_header_stdc = yes; then
6283 7394
6284$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7395cat >>confdefs.h <<\_ACEOF
7396#define STDC_HEADERS 1
7397_ACEOF
6285 7398
6286fi 7399fi
6287 7400
6288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 7401{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6289$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 7402$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6290if test "${ac_cv_header_time+set}" = set; then : 7403if test "${ac_cv_header_time+set}" = set; then
6291 $as_echo_n "(cached) " >&6 7404 $as_echo_n "(cached) " >&6
6292else 7405else
6293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7406 cat >conftest.$ac_ext <<_ACEOF
7407/* confdefs.h. */
7408_ACEOF
7409cat confdefs.h >>conftest.$ac_ext
7410cat >>conftest.$ac_ext <<_ACEOF
6294/* end confdefs.h. */ 7411/* end confdefs.h. */
6295#include <sys/types.h> 7412#include <sys/types.h>
6296#include <sys/time.h> 7413#include <sys/time.h>
@@ -6305,57 +7422,202 @@ return 0;
6305 return 0; 7422 return 0;
6306} 7423}
6307_ACEOF 7424_ACEOF
6308if ac_fn_c_try_compile "$LINENO"; then : 7425rm -f conftest.$ac_objext
7426if { (ac_try="$ac_compile"
7427case "(($ac_try" in
7428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7429 *) ac_try_echo=$ac_try;;
7430esac
7431eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7432$as_echo "$ac_try_echo") >&5
7433 (eval "$ac_compile") 2>conftest.er1
7434 ac_status=$?
7435 grep -v '^ *+' conftest.er1 >conftest.err
7436 rm -f conftest.er1
7437 cat conftest.err >&5
7438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); } && {
7440 test -z "$ac_c_werror_flag" ||
7441 test ! -s conftest.err
7442 } && test -s conftest.$ac_objext; then
6309 ac_cv_header_time=yes 7443 ac_cv_header_time=yes
6310else 7444else
6311 ac_cv_header_time=no 7445 $as_echo "$as_me: failed program was:" >&5
7446sed 's/^/| /' conftest.$ac_ext >&5
7447
7448 ac_cv_header_time=no
6312fi 7449fi
7450
6313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6314fi 7452fi
6315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 7453{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6316$as_echo "$ac_cv_header_time" >&6; } 7454$as_echo "$ac_cv_header_time" >&6; }
6317if test $ac_cv_header_time = yes; then 7455if test $ac_cv_header_time = yes; then
6318 7456
6319$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 7457cat >>confdefs.h <<\_ACEOF
7458#define TIME_WITH_SYS_TIME 1
7459_ACEOF
6320 7460
6321fi 7461fi
6322 7462
6323ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default" 7463{ $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6324if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then : 7464$as_echo_n "checking whether sys_siglist is declared... " >&6; }
6325 ac_have_decl=1 7465if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7466 $as_echo_n "(cached) " >&6
6326else 7467else
6327 ac_have_decl=0 7468 cat >conftest.$ac_ext <<_ACEOF
7469/* confdefs.h. */
7470_ACEOF
7471cat confdefs.h >>conftest.$ac_ext
7472cat >>conftest.$ac_ext <<_ACEOF
7473/* end confdefs.h. */
7474$ac_includes_default
7475int
7476main ()
7477{
7478#ifndef sys_siglist
7479 (void) sys_siglist;
7480#endif
7481
7482 ;
7483 return 0;
7484}
7485_ACEOF
7486rm -f conftest.$ac_objext
7487if { (ac_try="$ac_compile"
7488case "(($ac_try" in
7489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7490 *) ac_try_echo=$ac_try;;
7491esac
7492eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7493$as_echo "$ac_try_echo") >&5
7494 (eval "$ac_compile") 2>conftest.er1
7495 ac_status=$?
7496 grep -v '^ *+' conftest.er1 >conftest.err
7497 rm -f conftest.er1
7498 cat conftest.err >&5
7499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } && {
7501 test -z "$ac_c_werror_flag" ||
7502 test ! -s conftest.err
7503 } && test -s conftest.$ac_objext; then
7504 ac_cv_have_decl_sys_siglist=yes
7505else
7506 $as_echo "$as_me: failed program was:" >&5
7507sed 's/^/| /' conftest.$ac_ext >&5
7508
7509 ac_cv_have_decl_sys_siglist=no
7510fi
7511
7512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6328fi 7513fi
7514{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7515$as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7516if test $ac_cv_have_decl_sys_siglist = yes; then
6329 7517
6330cat >>confdefs.h <<_ACEOF 7518cat >>confdefs.h <<_ACEOF
6331#define HAVE_DECL_SYS_SIGLIST $ac_have_decl 7519#define HAVE_DECL_SYS_SIGLIST 1
6332_ACEOF 7520_ACEOF
6333 7521
7522
7523else
7524 cat >>confdefs.h <<_ACEOF
7525#define HAVE_DECL_SYS_SIGLIST 0
7526_ACEOF
7527
7528
7529fi
7530
7531
6334if test $ac_cv_have_decl_sys_siglist != yes; then 7532if test $ac_cv_have_decl_sys_siglist != yes; then
6335 # For Tru64, at least: 7533 # For Tru64, at least:
6336 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default" 7534 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6337if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then : 7535$as_echo_n "checking whether __sys_siglist is declared... " >&6; }
6338 ac_have_decl=1 7536if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7537 $as_echo_n "(cached) " >&6
7538else
7539 cat >conftest.$ac_ext <<_ACEOF
7540/* confdefs.h. */
7541_ACEOF
7542cat confdefs.h >>conftest.$ac_ext
7543cat >>conftest.$ac_ext <<_ACEOF
7544/* end confdefs.h. */
7545$ac_includes_default
7546int
7547main ()
7548{
7549#ifndef __sys_siglist
7550 (void) __sys_siglist;
7551#endif
7552
7553 ;
7554 return 0;
7555}
7556_ACEOF
7557rm -f conftest.$ac_objext
7558if { (ac_try="$ac_compile"
7559case "(($ac_try" in
7560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7561 *) ac_try_echo=$ac_try;;
7562esac
7563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7564$as_echo "$ac_try_echo") >&5
7565 (eval "$ac_compile") 2>conftest.er1
7566 ac_status=$?
7567 grep -v '^ *+' conftest.er1 >conftest.err
7568 rm -f conftest.er1
7569 cat conftest.err >&5
7570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } && {
7572 test -z "$ac_c_werror_flag" ||
7573 test ! -s conftest.err
7574 } && test -s conftest.$ac_objext; then
7575 ac_cv_have_decl___sys_siglist=yes
6339else 7576else
6340 ac_have_decl=0 7577 $as_echo "$as_me: failed program was:" >&5
7578sed 's/^/| /' conftest.$ac_ext >&5
7579
7580 ac_cv_have_decl___sys_siglist=no
7581fi
7582
7583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6341fi 7584fi
7585{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7586$as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7587if test $ac_cv_have_decl___sys_siglist = yes; then
6342 7588
6343cat >>confdefs.h <<_ACEOF 7589cat >>confdefs.h <<_ACEOF
6344#define HAVE_DECL___SYS_SIGLIST $ac_have_decl 7590#define HAVE_DECL___SYS_SIGLIST 1
6345_ACEOF 7591_ACEOF
6346 7592
7593
7594else
7595 cat >>confdefs.h <<_ACEOF
7596#define HAVE_DECL___SYS_SIGLIST 0
7597_ACEOF
7598
7599
7600fi
7601
7602
6347 if test $ac_cv_have_decl___sys_siglist = yes; then 7603 if test $ac_cv_have_decl___sys_siglist = yes; then
6348 7604
6349$as_echo "#define sys_siglist __sys_siglist" >>confdefs.h 7605cat >>confdefs.h <<\_ACEOF
7606#define sys_siglist __sys_siglist
7607_ACEOF
6350 7608
6351 fi 7609 fi
6352fi 7610fi
6353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 7611{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6354$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 7612$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6355if test "${ac_cv_header_sys_wait_h+set}" = set; then : 7613if test "${ac_cv_header_sys_wait_h+set}" = set; then
6356 $as_echo_n "(cached) " >&6 7614 $as_echo_n "(cached) " >&6
6357else 7615else
6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7616 cat >conftest.$ac_ext <<_ACEOF
7617/* confdefs.h. */
7618_ACEOF
7619cat confdefs.h >>conftest.$ac_ext
7620cat >>conftest.$ac_ext <<_ACEOF
6359/* end confdefs.h. */ 7621/* end confdefs.h. */
6360#include <sys/types.h> 7622#include <sys/types.h>
6361#include <sys/wait.h> 7623#include <sys/wait.h>
@@ -6376,28 +7638,55 @@ main ()
6376 return 0; 7638 return 0;
6377} 7639}
6378_ACEOF 7640_ACEOF
6379if ac_fn_c_try_compile "$LINENO"; then : 7641rm -f conftest.$ac_objext
7642if { (ac_try="$ac_compile"
7643case "(($ac_try" in
7644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7645 *) ac_try_echo=$ac_try;;
7646esac
7647eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7648$as_echo "$ac_try_echo") >&5
7649 (eval "$ac_compile") 2>conftest.er1
7650 ac_status=$?
7651 grep -v '^ *+' conftest.er1 >conftest.err
7652 rm -f conftest.er1
7653 cat conftest.err >&5
7654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } && {
7656 test -z "$ac_c_werror_flag" ||
7657 test ! -s conftest.err
7658 } && test -s conftest.$ac_objext; then
6380 ac_cv_header_sys_wait_h=yes 7659 ac_cv_header_sys_wait_h=yes
6381else 7660else
6382 ac_cv_header_sys_wait_h=no 7661 $as_echo "$as_me: failed program was:" >&5
7662sed 's/^/| /' conftest.$ac_ext >&5
7663
7664 ac_cv_header_sys_wait_h=no
6383fi 7665fi
7666
6384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6385fi 7668fi
6386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 7669{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6387$as_echo "$ac_cv_header_sys_wait_h" >&6; } 7670$as_echo "$ac_cv_header_sys_wait_h" >&6; }
6388if test $ac_cv_header_sys_wait_h = yes; then 7671if test $ac_cv_header_sys_wait_h = yes; then
6389 7672
6390$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 7673cat >>confdefs.h <<\_ACEOF
7674#define HAVE_SYS_WAIT_H 1
7675_ACEOF
6391 7676
6392fi 7677fi
6393 7678
6394 7679
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5 7680{ $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6396$as_echo_n "checking for struct utimbuf... " >&6; } 7681$as_echo_n "checking for struct utimbuf... " >&6; }
6397if test "${emacs_cv_struct_utimbuf+set}" = set; then : 7682if test "${emacs_cv_struct_utimbuf+set}" = set; then
6398 $as_echo_n "(cached) " >&6 7683 $as_echo_n "(cached) " >&6
6399else 7684else
6400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7685 cat >conftest.$ac_ext <<_ACEOF
7686/* confdefs.h. */
7687_ACEOF
7688cat confdefs.h >>conftest.$ac_ext
7689cat >>conftest.$ac_ext <<_ACEOF
6401/* end confdefs.h. */ 7690/* end confdefs.h. */
6402#ifdef TIME_WITH_SYS_TIME 7691#ifdef TIME_WITH_SYS_TIME
6403#include <sys/time.h> 7692#include <sys/time.h>
@@ -6420,27 +7709,54 @@ static struct utimbuf x; x.actime = x.modtime;
6420 return 0; 7709 return 0;
6421} 7710}
6422_ACEOF 7711_ACEOF
6423if ac_fn_c_try_compile "$LINENO"; then : 7712rm -f conftest.$ac_objext
7713if { (ac_try="$ac_compile"
7714case "(($ac_try" in
7715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7716 *) ac_try_echo=$ac_try;;
7717esac
7718eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7719$as_echo "$ac_try_echo") >&5
7720 (eval "$ac_compile") 2>conftest.er1
7721 ac_status=$?
7722 grep -v '^ *+' conftest.er1 >conftest.err
7723 rm -f conftest.er1
7724 cat conftest.err >&5
7725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); } && {
7727 test -z "$ac_c_werror_flag" ||
7728 test ! -s conftest.err
7729 } && test -s conftest.$ac_objext; then
6424 emacs_cv_struct_utimbuf=yes 7730 emacs_cv_struct_utimbuf=yes
6425else 7731else
6426 emacs_cv_struct_utimbuf=no 7732 $as_echo "$as_me: failed program was:" >&5
7733sed 's/^/| /' conftest.$ac_ext >&5
7734
7735 emacs_cv_struct_utimbuf=no
6427fi 7736fi
7737
6428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429fi 7739fi
6430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5 7740{ $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6431$as_echo "$emacs_cv_struct_utimbuf" >&6; } 7741$as_echo "$emacs_cv_struct_utimbuf" >&6; }
6432if test $emacs_cv_struct_utimbuf = yes; then 7742if test $emacs_cv_struct_utimbuf = yes; then
6433 7743
6434$as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h 7744cat >>confdefs.h <<\_ACEOF
7745#define HAVE_STRUCT_UTIMBUF 1
7746_ACEOF
6435 7747
6436fi 7748fi
6437 7749
6438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 7750{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6439$as_echo_n "checking return type of signal handlers... " >&6; } 7751$as_echo_n "checking return type of signal handlers... " >&6; }
6440if test "${ac_cv_type_signal+set}" = set; then : 7752if test "${ac_cv_type_signal+set}" = set; then
6441 $as_echo_n "(cached) " >&6 7753 $as_echo_n "(cached) " >&6
6442else 7754else
6443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7755 cat >conftest.$ac_ext <<_ACEOF
7756/* confdefs.h. */
7757_ACEOF
7758cat confdefs.h >>conftest.$ac_ext
7759cat >>conftest.$ac_ext <<_ACEOF
6444/* end confdefs.h. */ 7760/* end confdefs.h. */
6445#include <sys/types.h> 7761#include <sys/types.h>
6446#include <signal.h> 7762#include <signal.h>
@@ -6453,14 +7769,35 @@ return *(signal (0, 0)) (0) == 1;
6453 return 0; 7769 return 0;
6454} 7770}
6455_ACEOF 7771_ACEOF
6456if ac_fn_c_try_compile "$LINENO"; then : 7772rm -f conftest.$ac_objext
7773if { (ac_try="$ac_compile"
7774case "(($ac_try" in
7775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7776 *) ac_try_echo=$ac_try;;
7777esac
7778eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7779$as_echo "$ac_try_echo") >&5
7780 (eval "$ac_compile") 2>conftest.er1
7781 ac_status=$?
7782 grep -v '^ *+' conftest.er1 >conftest.err
7783 rm -f conftest.er1
7784 cat conftest.err >&5
7785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); } && {
7787 test -z "$ac_c_werror_flag" ||
7788 test ! -s conftest.err
7789 } && test -s conftest.$ac_objext; then
6457 ac_cv_type_signal=int 7790 ac_cv_type_signal=int
6458else 7791else
6459 ac_cv_type_signal=void 7792 $as_echo "$as_me: failed program was:" >&5
7793sed 's/^/| /' conftest.$ac_ext >&5
7794
7795 ac_cv_type_signal=void
6460fi 7796fi
7797
6461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6462fi 7799fi
6463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 7800{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6464$as_echo "$ac_cv_type_signal" >&6; } 7801$as_echo "$ac_cv_type_signal" >&6; }
6465 7802
6466cat >>confdefs.h <<_ACEOF 7803cat >>confdefs.h <<_ACEOF
@@ -6469,12 +7806,16 @@ _ACEOF
6469 7806
6470 7807
6471 7808
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5 7809{ $as_echo "$as_me:$LINENO: checking for speed_t" >&5
6473$as_echo_n "checking for speed_t... " >&6; } 7810$as_echo_n "checking for speed_t... " >&6; }
6474if test "${emacs_cv_speed_t+set}" = set; then : 7811if test "${emacs_cv_speed_t+set}" = set; then
6475 $as_echo_n "(cached) " >&6 7812 $as_echo_n "(cached) " >&6
6476else 7813else
6477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7814 cat >conftest.$ac_ext <<_ACEOF
7815/* confdefs.h. */
7816_ACEOF
7817cat confdefs.h >>conftest.$ac_ext
7818cat >>conftest.$ac_ext <<_ACEOF
6478/* end confdefs.h. */ 7819/* end confdefs.h. */
6479#include <termios.h> 7820#include <termios.h>
6480int 7821int
@@ -6485,27 +7826,54 @@ speed_t x = 1;
6485 return 0; 7826 return 0;
6486} 7827}
6487_ACEOF 7828_ACEOF
6488if ac_fn_c_try_compile "$LINENO"; then : 7829rm -f conftest.$ac_objext
7830if { (ac_try="$ac_compile"
7831case "(($ac_try" in
7832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833 *) ac_try_echo=$ac_try;;
7834esac
7835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7836$as_echo "$ac_try_echo") >&5
7837 (eval "$ac_compile") 2>conftest.er1
7838 ac_status=$?
7839 grep -v '^ *+' conftest.er1 >conftest.err
7840 rm -f conftest.er1
7841 cat conftest.err >&5
7842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); } && {
7844 test -z "$ac_c_werror_flag" ||
7845 test ! -s conftest.err
7846 } && test -s conftest.$ac_objext; then
6489 emacs_cv_speed_t=yes 7847 emacs_cv_speed_t=yes
6490else 7848else
6491 emacs_cv_speed_t=no 7849 $as_echo "$as_me: failed program was:" >&5
7850sed 's/^/| /' conftest.$ac_ext >&5
7851
7852 emacs_cv_speed_t=no
6492fi 7853fi
7854
6493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6494fi 7856fi
6495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5 7857{ $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6496$as_echo "$emacs_cv_speed_t" >&6; } 7858$as_echo "$emacs_cv_speed_t" >&6; }
6497if test $emacs_cv_speed_t = yes; then 7859if test $emacs_cv_speed_t = yes; then
6498 7860
6499$as_echo "#define HAVE_SPEED_T 1" >>confdefs.h 7861cat >>confdefs.h <<\_ACEOF
7862#define HAVE_SPEED_T 1
7863_ACEOF
6500 7864
6501fi 7865fi
6502 7866
6503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 7867{ $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
6504$as_echo_n "checking for struct timeval... " >&6; } 7868$as_echo_n "checking for struct timeval... " >&6; }
6505if test "${emacs_cv_struct_timeval+set}" = set; then : 7869if test "${emacs_cv_struct_timeval+set}" = set; then
6506 $as_echo_n "(cached) " >&6 7870 $as_echo_n "(cached) " >&6
6507else 7871else
6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7872 cat >conftest.$ac_ext <<_ACEOF
7873/* confdefs.h. */
7874_ACEOF
7875cat confdefs.h >>conftest.$ac_ext
7876cat >>conftest.$ac_ext <<_ACEOF
6509/* end confdefs.h. */ 7877/* end confdefs.h. */
6510#ifdef TIME_WITH_SYS_TIME 7878#ifdef TIME_WITH_SYS_TIME
6511#include <sys/time.h> 7879#include <sys/time.h>
@@ -6525,28 +7893,55 @@ static struct timeval x; x.tv_sec = x.tv_usec;
6525 return 0; 7893 return 0;
6526} 7894}
6527_ACEOF 7895_ACEOF
6528if ac_fn_c_try_compile "$LINENO"; then : 7896rm -f conftest.$ac_objext
7897if { (ac_try="$ac_compile"
7898case "(($ac_try" in
7899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7900 *) ac_try_echo=$ac_try;;
7901esac
7902eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7903$as_echo "$ac_try_echo") >&5
7904 (eval "$ac_compile") 2>conftest.er1
7905 ac_status=$?
7906 grep -v '^ *+' conftest.er1 >conftest.err
7907 rm -f conftest.er1
7908 cat conftest.err >&5
7909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); } && {
7911 test -z "$ac_c_werror_flag" ||
7912 test ! -s conftest.err
7913 } && test -s conftest.$ac_objext; then
6529 emacs_cv_struct_timeval=yes 7914 emacs_cv_struct_timeval=yes
6530else 7915else
6531 emacs_cv_struct_timeval=no 7916 $as_echo "$as_me: failed program was:" >&5
7917sed 's/^/| /' conftest.$ac_ext >&5
7918
7919 emacs_cv_struct_timeval=no
6532fi 7920fi
7921
6533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6534fi 7923fi
6535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5 7924{ $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6536$as_echo "$emacs_cv_struct_timeval" >&6; } 7925$as_echo "$emacs_cv_struct_timeval" >&6; }
6537HAVE_TIMEVAL=$emacs_cv_struct_timeval 7926HAVE_TIMEVAL=$emacs_cv_struct_timeval
6538if test $emacs_cv_struct_timeval = yes; then 7927if test $emacs_cv_struct_timeval = yes; then
6539 7928
6540$as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h 7929cat >>confdefs.h <<\_ACEOF
7930#define HAVE_TIMEVAL 1
7931_ACEOF
6541 7932
6542fi 7933fi
6543 7934
6544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5 7935{ $as_echo "$as_me:$LINENO: checking for struct exception" >&5
6545$as_echo_n "checking for struct exception... " >&6; } 7936$as_echo_n "checking for struct exception... " >&6; }
6546if test "${emacs_cv_struct_exception+set}" = set; then : 7937if test "${emacs_cv_struct_exception+set}" = set; then
6547 $as_echo_n "(cached) " >&6 7938 $as_echo_n "(cached) " >&6
6548else 7939else
6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7940 cat >conftest.$ac_ext <<_ACEOF
7941/* confdefs.h. */
7942_ACEOF
7943cat confdefs.h >>conftest.$ac_ext
7944cat >>conftest.$ac_ext <<_ACEOF
6550/* end confdefs.h. */ 7945/* end confdefs.h. */
6551#include <math.h> 7946#include <math.h>
6552int 7947int
@@ -6557,44 +7952,248 @@ static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6557 return 0; 7952 return 0;
6558} 7953}
6559_ACEOF 7954_ACEOF
6560if ac_fn_c_try_compile "$LINENO"; then : 7955rm -f conftest.$ac_objext
7956if { (ac_try="$ac_compile"
7957case "(($ac_try" in
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7960esac
7961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7962$as_echo "$ac_try_echo") >&5
7963 (eval "$ac_compile") 2>conftest.er1
7964 ac_status=$?
7965 grep -v '^ *+' conftest.er1 >conftest.err
7966 rm -f conftest.er1
7967 cat conftest.err >&5
7968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); } && {
7970 test -z "$ac_c_werror_flag" ||
7971 test ! -s conftest.err
7972 } && test -s conftest.$ac_objext; then
6561 emacs_cv_struct_exception=yes 7973 emacs_cv_struct_exception=yes
6562else 7974else
6563 emacs_cv_struct_exception=no 7975 $as_echo "$as_me: failed program was:" >&5
7976sed 's/^/| /' conftest.$ac_ext >&5
7977
7978 emacs_cv_struct_exception=no
6564fi 7979fi
7980
6565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6566fi 7982fi
6567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5 7983{ $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6568$as_echo "$emacs_cv_struct_exception" >&6; } 7984$as_echo "$emacs_cv_struct_exception" >&6; }
6569HAVE_EXCEPTION=$emacs_cv_struct_exception 7985HAVE_EXCEPTION=$emacs_cv_struct_exception
6570if test $emacs_cv_struct_exception != yes; then 7986if test $emacs_cv_struct_exception != yes; then
6571 7987
6572$as_echo "#define NO_MATHERR 1" >>confdefs.h 7988cat >>confdefs.h <<\_ACEOF
7989#define NO_MATHERR 1
7990_ACEOF
6573 7991
6574fi 7992fi
6575 7993
7994
6576for ac_header in sys/socket.h 7995for ac_header in sys/socket.h
6577do : 7996do
6578 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 7997as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6579if test "x$ac_cv_header_sys_socket_h" = x""yes; then : 7998if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7999 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8000$as_echo_n "checking for $ac_header... " >&6; }
8001if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8002 $as_echo_n "(cached) " >&6
8003fi
8004ac_res=`eval 'as_val=${'$as_ac_Header'}
8005 $as_echo "$as_val"'`
8006 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8007$as_echo "$ac_res" >&6; }
8008else
8009 # Is the header compilable?
8010{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8011$as_echo_n "checking $ac_header usability... " >&6; }
8012cat >conftest.$ac_ext <<_ACEOF
8013/* confdefs.h. */
8014_ACEOF
8015cat confdefs.h >>conftest.$ac_ext
8016cat >>conftest.$ac_ext <<_ACEOF
8017/* end confdefs.h. */
8018$ac_includes_default
8019#include <$ac_header>
8020_ACEOF
8021rm -f conftest.$ac_objext
8022if { (ac_try="$ac_compile"
8023case "(($ac_try" in
8024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8025 *) ac_try_echo=$ac_try;;
8026esac
8027eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8028$as_echo "$ac_try_echo") >&5
8029 (eval "$ac_compile") 2>conftest.er1
8030 ac_status=$?
8031 grep -v '^ *+' conftest.er1 >conftest.err
8032 rm -f conftest.er1
8033 cat conftest.err >&5
8034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); } && {
8036 test -z "$ac_c_werror_flag" ||
8037 test ! -s conftest.err
8038 } && test -s conftest.$ac_objext; then
8039 ac_header_compiler=yes
8040else
8041 $as_echo "$as_me: failed program was:" >&5
8042sed 's/^/| /' conftest.$ac_ext >&5
8043
8044 ac_header_compiler=no
8045fi
8046
8047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8048{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8049$as_echo "$ac_header_compiler" >&6; }
8050
8051# Is the header present?
8052{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8053$as_echo_n "checking $ac_header presence... " >&6; }
8054cat >conftest.$ac_ext <<_ACEOF
8055/* confdefs.h. */
8056_ACEOF
8057cat confdefs.h >>conftest.$ac_ext
8058cat >>conftest.$ac_ext <<_ACEOF
8059/* end confdefs.h. */
8060#include <$ac_header>
8061_ACEOF
8062if { (ac_try="$ac_cpp conftest.$ac_ext"
8063case "(($ac_try" in
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8066esac
8067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8068$as_echo "$ac_try_echo") >&5
8069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8070 ac_status=$?
8071 grep -v '^ *+' conftest.er1 >conftest.err
8072 rm -f conftest.er1
8073 cat conftest.err >&5
8074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } >/dev/null && {
8076 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8077 test ! -s conftest.err
8078 }; then
8079 ac_header_preproc=yes
8080else
8081 $as_echo "$as_me: failed program was:" >&5
8082sed 's/^/| /' conftest.$ac_ext >&5
8083
8084 ac_header_preproc=no
8085fi
8086
8087rm -f conftest.err conftest.$ac_ext
8088{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8089$as_echo "$ac_header_preproc" >&6; }
8090
8091# So? What about this header?
8092case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8093 yes:no: )
8094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8095$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8097$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8098 ac_header_preproc=yes
8099 ;;
8100 no:yes:* )
8101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8102$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8104$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8106$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8108$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8109 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8110$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8111 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8112$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8113
8114 ;;
8115esac
8116{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8117$as_echo_n "checking for $ac_header... " >&6; }
8118if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8119 $as_echo_n "(cached) " >&6
8120else
8121 eval "$as_ac_Header=\$ac_header_preproc"
8122fi
8123ac_res=`eval 'as_val=${'$as_ac_Header'}
8124 $as_echo "$as_val"'`
8125 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8126$as_echo "$ac_res" >&6; }
8127
8128fi
8129if test `eval 'as_val=${'$as_ac_Header'}
8130 $as_echo "$as_val"'` = yes; then
6580 cat >>confdefs.h <<_ACEOF 8131 cat >>confdefs.h <<_ACEOF
6581#define HAVE_SYS_SOCKET_H 1 8132#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6582_ACEOF 8133_ACEOF
6583 8134
6584fi 8135fi
6585 8136
6586done 8137done
6587 8138
8139
6588for ac_header in net/if.h 8140for ac_header in net/if.h
6589do : 8141do
6590 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default 8142as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8143{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8144$as_echo_n "checking for $ac_header... " >&6; }
8145if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8146 $as_echo_n "(cached) " >&6
8147else
8148 cat >conftest.$ac_ext <<_ACEOF
8149/* confdefs.h. */
8150_ACEOF
8151cat confdefs.h >>conftest.$ac_ext
8152cat >>conftest.$ac_ext <<_ACEOF
8153/* end confdefs.h. */
8154$ac_includes_default
6591#if HAVE_SYS_SOCKET_H 8155#if HAVE_SYS_SOCKET_H
6592#include <sys/socket.h> 8156#include <sys/socket.h>
6593#endif 8157#endif
6594" 8158
6595if test "x$ac_cv_header_net_if_h" = x""yes; then : 8159#include <$ac_header>
8160_ACEOF
8161rm -f conftest.$ac_objext
8162if { (ac_try="$ac_compile"
8163case "(($ac_try" in
8164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8165 *) ac_try_echo=$ac_try;;
8166esac
8167eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8168$as_echo "$ac_try_echo") >&5
8169 (eval "$ac_compile") 2>conftest.er1
8170 ac_status=$?
8171 grep -v '^ *+' conftest.er1 >conftest.err
8172 rm -f conftest.er1
8173 cat conftest.err >&5
8174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } && {
8176 test -z "$ac_c_werror_flag" ||
8177 test ! -s conftest.err
8178 } && test -s conftest.$ac_objext; then
8179 eval "$as_ac_Header=yes"
8180else
8181 $as_echo "$as_me: failed program was:" >&5
8182sed 's/^/| /' conftest.$ac_ext >&5
8183
8184 eval "$as_ac_Header=no"
8185fi
8186
8187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8188fi
8189ac_res=`eval 'as_val=${'$as_ac_Header'}
8190 $as_echo "$as_val"'`
8191 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8192$as_echo "$ac_res" >&6; }
8193if test `eval 'as_val=${'$as_ac_Header'}
8194 $as_echo "$as_val"'` = yes; then
6596 cat >>confdefs.h <<_ACEOF 8195 cat >>confdefs.h <<_ACEOF
6597#define HAVE_NET_IF_H 1 8196#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6598_ACEOF 8197_ACEOF
6599 8198
6600fi 8199fi
@@ -6602,12 +8201,16 @@ fi
6602done 8201done
6603 8202
6604 8203
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 8204{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6606$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 8205$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6607if test "${ac_cv_struct_tm+set}" = set; then : 8206if test "${ac_cv_struct_tm+set}" = set; then
6608 $as_echo_n "(cached) " >&6 8207 $as_echo_n "(cached) " >&6
6609else 8208else
6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8209 cat >conftest.$ac_ext <<_ACEOF
8210/* confdefs.h. */
8211_ACEOF
8212cat confdefs.h >>conftest.$ac_ext
8213cat >>conftest.$ac_ext <<_ACEOF
6611/* end confdefs.h. */ 8214/* end confdefs.h. */
6612#include <sys/types.h> 8215#include <sys/types.h>
6613#include <time.h> 8216#include <time.h>
@@ -6622,26 +8225,146 @@ struct tm tm;
6622 return 0; 8225 return 0;
6623} 8226}
6624_ACEOF 8227_ACEOF
6625if ac_fn_c_try_compile "$LINENO"; then : 8228rm -f conftest.$ac_objext
8229if { (ac_try="$ac_compile"
8230case "(($ac_try" in
8231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8232 *) ac_try_echo=$ac_try;;
8233esac
8234eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8235$as_echo "$ac_try_echo") >&5
8236 (eval "$ac_compile") 2>conftest.er1
8237 ac_status=$?
8238 grep -v '^ *+' conftest.er1 >conftest.err
8239 rm -f conftest.er1
8240 cat conftest.err >&5
8241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } && {
8243 test -z "$ac_c_werror_flag" ||
8244 test ! -s conftest.err
8245 } && test -s conftest.$ac_objext; then
6626 ac_cv_struct_tm=time.h 8246 ac_cv_struct_tm=time.h
6627else 8247else
6628 ac_cv_struct_tm=sys/time.h 8248 $as_echo "$as_me: failed program was:" >&5
8249sed 's/^/| /' conftest.$ac_ext >&5
8250
8251 ac_cv_struct_tm=sys/time.h
6629fi 8252fi
8253
6630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6631fi 8255fi
6632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 8256{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6633$as_echo "$ac_cv_struct_tm" >&6; } 8257$as_echo "$ac_cv_struct_tm" >&6; }
6634if test $ac_cv_struct_tm = sys/time.h; then 8258if test $ac_cv_struct_tm = sys/time.h; then
6635 8259
6636$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 8260cat >>confdefs.h <<\_ACEOF
8261#define TM_IN_SYS_TIME 1
8262_ACEOF
6637 8263
6638fi 8264fi
6639 8265
6640ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 8266{ $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8267$as_echo_n "checking for struct tm.tm_zone... " >&6; }
8268if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8269 $as_echo_n "(cached) " >&6
8270else
8271 cat >conftest.$ac_ext <<_ACEOF
8272/* confdefs.h. */
8273_ACEOF
8274cat confdefs.h >>conftest.$ac_ext
8275cat >>conftest.$ac_ext <<_ACEOF
8276/* end confdefs.h. */
8277#include <sys/types.h>
6641#include <$ac_cv_struct_tm> 8278#include <$ac_cv_struct_tm>
6642 8279
6643" 8280
6644if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then : 8281int
8282main ()
8283{
8284static struct tm ac_aggr;
8285if (ac_aggr.tm_zone)
8286return 0;
8287 ;
8288 return 0;
8289}
8290_ACEOF
8291rm -f conftest.$ac_objext
8292if { (ac_try="$ac_compile"
8293case "(($ac_try" in
8294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8295 *) ac_try_echo=$ac_try;;
8296esac
8297eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8298$as_echo "$ac_try_echo") >&5
8299 (eval "$ac_compile") 2>conftest.er1
8300 ac_status=$?
8301 grep -v '^ *+' conftest.er1 >conftest.err
8302 rm -f conftest.er1
8303 cat conftest.err >&5
8304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); } && {
8306 test -z "$ac_c_werror_flag" ||
8307 test ! -s conftest.err
8308 } && test -s conftest.$ac_objext; then
8309 ac_cv_member_struct_tm_tm_zone=yes
8310else
8311 $as_echo "$as_me: failed program was:" >&5
8312sed 's/^/| /' conftest.$ac_ext >&5
8313
8314 cat >conftest.$ac_ext <<_ACEOF
8315/* confdefs.h. */
8316_ACEOF
8317cat confdefs.h >>conftest.$ac_ext
8318cat >>conftest.$ac_ext <<_ACEOF
8319/* end confdefs.h. */
8320#include <sys/types.h>
8321#include <$ac_cv_struct_tm>
8322
8323
8324int
8325main ()
8326{
8327static struct tm ac_aggr;
8328if (sizeof ac_aggr.tm_zone)
8329return 0;
8330 ;
8331 return 0;
8332}
8333_ACEOF
8334rm -f conftest.$ac_objext
8335if { (ac_try="$ac_compile"
8336case "(($ac_try" in
8337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8338 *) ac_try_echo=$ac_try;;
8339esac
8340eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8341$as_echo "$ac_try_echo") >&5
8342 (eval "$ac_compile") 2>conftest.er1
8343 ac_status=$?
8344 grep -v '^ *+' conftest.er1 >conftest.err
8345 rm -f conftest.er1
8346 cat conftest.err >&5
8347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); } && {
8349 test -z "$ac_c_werror_flag" ||
8350 test ! -s conftest.err
8351 } && test -s conftest.$ac_objext; then
8352 ac_cv_member_struct_tm_tm_zone=yes
8353else
8354 $as_echo "$as_me: failed program was:" >&5
8355sed 's/^/| /' conftest.$ac_ext >&5
8356
8357 ac_cv_member_struct_tm_tm_zone=no
8358fi
8359
8360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8361fi
8362
8363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8364fi
8365{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8366$as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8367if test $ac_cv_member_struct_tm_tm_zone = yes; then
6645 8368
6646cat >>confdefs.h <<_ACEOF 8369cat >>confdefs.h <<_ACEOF
6647#define HAVE_STRUCT_TM_TM_ZONE 1 8370#define HAVE_STRUCT_TM_TM_ZONE 1
@@ -6652,27 +8375,91 @@ fi
6652 8375
6653if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 8376if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6654 8377
6655$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 8378cat >>confdefs.h <<\_ACEOF
8379#define HAVE_TM_ZONE 1
8380_ACEOF
6656 8381
6657else 8382else
6658 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 8383 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6659" 8384$as_echo_n "checking whether tzname is declared... " >&6; }
6660if test "x$ac_cv_have_decl_tzname" = x""yes; then : 8385if test "${ac_cv_have_decl_tzname+set}" = set; then
6661 ac_have_decl=1 8386 $as_echo_n "(cached) " >&6
6662else 8387else
6663 ac_have_decl=0 8388 cat >conftest.$ac_ext <<_ACEOF
8389/* confdefs.h. */
8390_ACEOF
8391cat confdefs.h >>conftest.$ac_ext
8392cat >>conftest.$ac_ext <<_ACEOF
8393/* end confdefs.h. */
8394#include <time.h>
8395
8396int
8397main ()
8398{
8399#ifndef tzname
8400 (void) tzname;
8401#endif
8402
8403 ;
8404 return 0;
8405}
8406_ACEOF
8407rm -f conftest.$ac_objext
8408if { (ac_try="$ac_compile"
8409case "(($ac_try" in
8410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411 *) ac_try_echo=$ac_try;;
8412esac
8413eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8414$as_echo "$ac_try_echo") >&5
8415 (eval "$ac_compile") 2>conftest.er1
8416 ac_status=$?
8417 grep -v '^ *+' conftest.er1 >conftest.err
8418 rm -f conftest.er1
8419 cat conftest.err >&5
8420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); } && {
8422 test -z "$ac_c_werror_flag" ||
8423 test ! -s conftest.err
8424 } && test -s conftest.$ac_objext; then
8425 ac_cv_have_decl_tzname=yes
8426else
8427 $as_echo "$as_me: failed program was:" >&5
8428sed 's/^/| /' conftest.$ac_ext >&5
8429
8430 ac_cv_have_decl_tzname=no
6664fi 8431fi
6665 8432
8433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8434fi
8435{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8436$as_echo "$ac_cv_have_decl_tzname" >&6; }
8437if test $ac_cv_have_decl_tzname = yes; then
8438
6666cat >>confdefs.h <<_ACEOF 8439cat >>confdefs.h <<_ACEOF
6667#define HAVE_DECL_TZNAME $ac_have_decl 8440#define HAVE_DECL_TZNAME 1
8441_ACEOF
8442
8443
8444else
8445 cat >>confdefs.h <<_ACEOF
8446#define HAVE_DECL_TZNAME 0
6668_ACEOF 8447_ACEOF
6669 8448
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 8449
8450fi
8451
8452
8453 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
6671$as_echo_n "checking for tzname... " >&6; } 8454$as_echo_n "checking for tzname... " >&6; }
6672if test "${ac_cv_var_tzname+set}" = set; then : 8455if test "${ac_cv_var_tzname+set}" = set; then
6673 $as_echo_n "(cached) " >&6 8456 $as_echo_n "(cached) " >&6
6674else 8457else
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8458 cat >conftest.$ac_ext <<_ACEOF
8459/* confdefs.h. */
8460_ACEOF
8461cat confdefs.h >>conftest.$ac_ext
8462cat >>conftest.$ac_ext <<_ACEOF
6676/* end confdefs.h. */ 8463/* end confdefs.h. */
6677#include <time.h> 8464#include <time.h>
6678#if !HAVE_DECL_TZNAME 8465#if !HAVE_DECL_TZNAME
@@ -6687,40 +8474,265 @@ return tzname[0][0];
6687 return 0; 8474 return 0;
6688} 8475}
6689_ACEOF 8476_ACEOF
6690if ac_fn_c_try_link "$LINENO"; then : 8477rm -f conftest.$ac_objext conftest$ac_exeext
8478if { (ac_try="$ac_link"
8479case "(($ac_try" in
8480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481 *) ac_try_echo=$ac_try;;
8482esac
8483eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8484$as_echo "$ac_try_echo") >&5
8485 (eval "$ac_link") 2>conftest.er1
8486 ac_status=$?
8487 grep -v '^ *+' conftest.er1 >conftest.err
8488 rm -f conftest.er1
8489 cat conftest.err >&5
8490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } && {
8492 test -z "$ac_c_werror_flag" ||
8493 test ! -s conftest.err
8494 } && test -s conftest$ac_exeext && {
8495 test "$cross_compiling" = yes ||
8496 $as_test_x conftest$ac_exeext
8497 }; then
6691 ac_cv_var_tzname=yes 8498 ac_cv_var_tzname=yes
6692else 8499else
6693 ac_cv_var_tzname=no 8500 $as_echo "$as_me: failed program was:" >&5
8501sed 's/^/| /' conftest.$ac_ext >&5
8502
8503 ac_cv_var_tzname=no
6694fi 8504fi
6695rm -f core conftest.err conftest.$ac_objext \ 8505
6696 conftest$ac_exeext conftest.$ac_ext 8506rm -rf conftest.dSYM
8507rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8508 conftest$ac_exeext conftest.$ac_ext
6697fi 8509fi
6698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 8510{ $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6699$as_echo "$ac_cv_var_tzname" >&6; } 8511$as_echo "$ac_cv_var_tzname" >&6; }
6700 if test $ac_cv_var_tzname = yes; then 8512 if test $ac_cv_var_tzname = yes; then
6701 8513
6702$as_echo "#define HAVE_TZNAME 1" >>confdefs.h 8514cat >>confdefs.h <<\_ACEOF
8515#define HAVE_TZNAME 1
8516_ACEOF
6703 8517
6704 fi 8518 fi
6705fi 8519fi
6706 8520
6707ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h> 8521{ $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6708" 8522$as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
6709if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then : 8523if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8524 $as_echo_n "(cached) " >&6
8525else
8526 cat >conftest.$ac_ext <<_ACEOF
8527/* confdefs.h. */
8528_ACEOF
8529cat confdefs.h >>conftest.$ac_ext
8530cat >>conftest.$ac_ext <<_ACEOF
8531/* end confdefs.h. */
8532#include <time.h>
8533
8534int
8535main ()
8536{
8537static struct tm ac_aggr;
8538if (ac_aggr.tm_gmtoff)
8539return 0;
8540 ;
8541 return 0;
8542}
8543_ACEOF
8544rm -f conftest.$ac_objext
8545if { (ac_try="$ac_compile"
8546case "(($ac_try" in
8547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8548 *) ac_try_echo=$ac_try;;
8549esac
8550eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8551$as_echo "$ac_try_echo") >&5
8552 (eval "$ac_compile") 2>conftest.er1
8553 ac_status=$?
8554 grep -v '^ *+' conftest.er1 >conftest.err
8555 rm -f conftest.er1
8556 cat conftest.err >&5
8557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } && {
8559 test -z "$ac_c_werror_flag" ||
8560 test ! -s conftest.err
8561 } && test -s conftest.$ac_objext; then
8562 ac_cv_member_struct_tm_tm_gmtoff=yes
8563else
8564 $as_echo "$as_me: failed program was:" >&5
8565sed 's/^/| /' conftest.$ac_ext >&5
6710 8566
6711$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h 8567 cat >conftest.$ac_ext <<_ACEOF
8568/* confdefs.h. */
8569_ACEOF
8570cat confdefs.h >>conftest.$ac_ext
8571cat >>conftest.$ac_ext <<_ACEOF
8572/* end confdefs.h. */
8573#include <time.h>
6712 8574
8575int
8576main ()
8577{
8578static struct tm ac_aggr;
8579if (sizeof ac_aggr.tm_gmtoff)
8580return 0;
8581 ;
8582 return 0;
8583}
8584_ACEOF
8585rm -f conftest.$ac_objext
8586if { (ac_try="$ac_compile"
8587case "(($ac_try" in
8588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589 *) ac_try_echo=$ac_try;;
8590esac
8591eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8592$as_echo "$ac_try_echo") >&5
8593 (eval "$ac_compile") 2>conftest.er1
8594 ac_status=$?
8595 grep -v '^ *+' conftest.er1 >conftest.err
8596 rm -f conftest.er1
8597 cat conftest.err >&5
8598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } && {
8600 test -z "$ac_c_werror_flag" ||
8601 test ! -s conftest.err
8602 } && test -s conftest.$ac_objext; then
8603 ac_cv_member_struct_tm_tm_gmtoff=yes
8604else
8605 $as_echo "$as_me: failed program was:" >&5
8606sed 's/^/| /' conftest.$ac_ext >&5
8607
8608 ac_cv_member_struct_tm_tm_gmtoff=no
6713fi 8609fi
6714 8610
6715ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default 8611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8612fi
8613
8614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8615fi
8616{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8617$as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8618if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8619
8620cat >>confdefs.h <<\_ACEOF
8621#define HAVE_TM_GMTOFF 1
8622_ACEOF
8623
8624fi
8625
8626{ $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8627$as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8628if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8629 $as_echo_n "(cached) " >&6
8630else
8631 cat >conftest.$ac_ext <<_ACEOF
8632/* confdefs.h. */
8633_ACEOF
8634cat confdefs.h >>conftest.$ac_ext
8635cat >>conftest.$ac_ext <<_ACEOF
8636/* end confdefs.h. */
8637$ac_includes_default
6716#if HAVE_SYS_SOCKET_H 8638#if HAVE_SYS_SOCKET_H
6717#include <sys/socket.h> 8639#include <sys/socket.h>
6718#endif 8640#endif
6719#if HAVE_NET_IF_H 8641#if HAVE_NET_IF_H
6720#include <net/if.h> 8642#include <net/if.h>
6721#endif 8643#endif
6722" 8644
6723if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then : 8645int
8646main ()
8647{
8648static struct ifreq ac_aggr;
8649if (ac_aggr.ifr_flags)
8650return 0;
8651 ;
8652 return 0;
8653}
8654_ACEOF
8655rm -f conftest.$ac_objext
8656if { (ac_try="$ac_compile"
8657case "(($ac_try" in
8658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8659 *) ac_try_echo=$ac_try;;
8660esac
8661eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8662$as_echo "$ac_try_echo") >&5
8663 (eval "$ac_compile") 2>conftest.er1
8664 ac_status=$?
8665 grep -v '^ *+' conftest.er1 >conftest.err
8666 rm -f conftest.er1
8667 cat conftest.err >&5
8668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } && {
8670 test -z "$ac_c_werror_flag" ||
8671 test ! -s conftest.err
8672 } && test -s conftest.$ac_objext; then
8673 ac_cv_member_struct_ifreq_ifr_flags=yes
8674else
8675 $as_echo "$as_me: failed program was:" >&5
8676sed 's/^/| /' conftest.$ac_ext >&5
8677
8678 cat >conftest.$ac_ext <<_ACEOF
8679/* confdefs.h. */
8680_ACEOF
8681cat confdefs.h >>conftest.$ac_ext
8682cat >>conftest.$ac_ext <<_ACEOF
8683/* end confdefs.h. */
8684$ac_includes_default
8685#if HAVE_SYS_SOCKET_H
8686#include <sys/socket.h>
8687#endif
8688#if HAVE_NET_IF_H
8689#include <net/if.h>
8690#endif
8691
8692int
8693main ()
8694{
8695static struct ifreq ac_aggr;
8696if (sizeof ac_aggr.ifr_flags)
8697return 0;
8698 ;
8699 return 0;
8700}
8701_ACEOF
8702rm -f conftest.$ac_objext
8703if { (ac_try="$ac_compile"
8704case "(($ac_try" in
8705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706 *) ac_try_echo=$ac_try;;
8707esac
8708eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8709$as_echo "$ac_try_echo") >&5
8710 (eval "$ac_compile") 2>conftest.er1
8711 ac_status=$?
8712 grep -v '^ *+' conftest.er1 >conftest.err
8713 rm -f conftest.er1
8714 cat conftest.err >&5
8715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); } && {
8717 test -z "$ac_c_werror_flag" ||
8718 test ! -s conftest.err
8719 } && test -s conftest.$ac_objext; then
8720 ac_cv_member_struct_ifreq_ifr_flags=yes
8721else
8722 $as_echo "$as_me: failed program was:" >&5
8723sed 's/^/| /' conftest.$ac_ext >&5
8724
8725 ac_cv_member_struct_ifreq_ifr_flags=no
8726fi
8727
8728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8729fi
8730
8731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8732fi
8733{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8734$as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8735if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
6724 8736
6725cat >>confdefs.h <<_ACEOF 8737cat >>confdefs.h <<_ACEOF
6726#define HAVE_STRUCT_IFREQ_IFR_FLAGS 1 8738#define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
@@ -6728,15 +8740,116 @@ _ACEOF
6728 8740
6729 8741
6730fi 8742fi
6731ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default 8743{ $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8744$as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8745if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8746 $as_echo_n "(cached) " >&6
8747else
8748 cat >conftest.$ac_ext <<_ACEOF
8749/* confdefs.h. */
8750_ACEOF
8751cat confdefs.h >>conftest.$ac_ext
8752cat >>conftest.$ac_ext <<_ACEOF
8753/* end confdefs.h. */
8754$ac_includes_default
8755#if HAVE_SYS_SOCKET_H
8756#include <sys/socket.h>
8757#endif
8758#if HAVE_NET_IF_H
8759#include <net/if.h>
8760#endif
8761
8762int
8763main ()
8764{
8765static struct ifreq ac_aggr;
8766if (ac_aggr.ifr_hwaddr)
8767return 0;
8768 ;
8769 return 0;
8770}
8771_ACEOF
8772rm -f conftest.$ac_objext
8773if { (ac_try="$ac_compile"
8774case "(($ac_try" in
8775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8776 *) ac_try_echo=$ac_try;;
8777esac
8778eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8779$as_echo "$ac_try_echo") >&5
8780 (eval "$ac_compile") 2>conftest.er1
8781 ac_status=$?
8782 grep -v '^ *+' conftest.er1 >conftest.err
8783 rm -f conftest.er1
8784 cat conftest.err >&5
8785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); } && {
8787 test -z "$ac_c_werror_flag" ||
8788 test ! -s conftest.err
8789 } && test -s conftest.$ac_objext; then
8790 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8791else
8792 $as_echo "$as_me: failed program was:" >&5
8793sed 's/^/| /' conftest.$ac_ext >&5
8794
8795 cat >conftest.$ac_ext <<_ACEOF
8796/* confdefs.h. */
8797_ACEOF
8798cat confdefs.h >>conftest.$ac_ext
8799cat >>conftest.$ac_ext <<_ACEOF
8800/* end confdefs.h. */
8801$ac_includes_default
6732#if HAVE_SYS_SOCKET_H 8802#if HAVE_SYS_SOCKET_H
6733#include <sys/socket.h> 8803#include <sys/socket.h>
6734#endif 8804#endif
6735#if HAVE_NET_IF_H 8805#if HAVE_NET_IF_H
6736#include <net/if.h> 8806#include <net/if.h>
6737#endif 8807#endif
6738" 8808
6739if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then : 8809int
8810main ()
8811{
8812static struct ifreq ac_aggr;
8813if (sizeof ac_aggr.ifr_hwaddr)
8814return 0;
8815 ;
8816 return 0;
8817}
8818_ACEOF
8819rm -f conftest.$ac_objext
8820if { (ac_try="$ac_compile"
8821case "(($ac_try" in
8822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8823 *) ac_try_echo=$ac_try;;
8824esac
8825eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8826$as_echo "$ac_try_echo") >&5
8827 (eval "$ac_compile") 2>conftest.er1
8828 ac_status=$?
8829 grep -v '^ *+' conftest.er1 >conftest.err
8830 rm -f conftest.er1
8831 cat conftest.err >&5
8832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); } && {
8834 test -z "$ac_c_werror_flag" ||
8835 test ! -s conftest.err
8836 } && test -s conftest.$ac_objext; then
8837 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8838else
8839 $as_echo "$as_me: failed program was:" >&5
8840sed 's/^/| /' conftest.$ac_ext >&5
8841
8842 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8843fi
8844
8845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8846fi
8847
8848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8849fi
8850{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8851$as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8852if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
6740 8853
6741cat >>confdefs.h <<_ACEOF 8854cat >>confdefs.h <<_ACEOF
6742#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 8855#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
@@ -6744,15 +8857,116 @@ _ACEOF
6744 8857
6745 8858
6746fi 8859fi
6747ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default 8860{ $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8861$as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8862if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8863 $as_echo_n "(cached) " >&6
8864else
8865 cat >conftest.$ac_ext <<_ACEOF
8866/* confdefs.h. */
8867_ACEOF
8868cat confdefs.h >>conftest.$ac_ext
8869cat >>conftest.$ac_ext <<_ACEOF
8870/* end confdefs.h. */
8871$ac_includes_default
6748#if HAVE_SYS_SOCKET_H 8872#if HAVE_SYS_SOCKET_H
6749#include <sys/socket.h> 8873#include <sys/socket.h>
6750#endif 8874#endif
6751#if HAVE_NET_IF_H 8875#if HAVE_NET_IF_H
6752#include <net/if.h> 8876#include <net/if.h>
6753#endif 8877#endif
6754" 8878
6755if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then : 8879int
8880main ()
8881{
8882static struct ifreq ac_aggr;
8883if (ac_aggr.ifr_netmask)
8884return 0;
8885 ;
8886 return 0;
8887}
8888_ACEOF
8889rm -f conftest.$ac_objext
8890if { (ac_try="$ac_compile"
8891case "(($ac_try" in
8892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8893 *) ac_try_echo=$ac_try;;
8894esac
8895eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8896$as_echo "$ac_try_echo") >&5
8897 (eval "$ac_compile") 2>conftest.er1
8898 ac_status=$?
8899 grep -v '^ *+' conftest.er1 >conftest.err
8900 rm -f conftest.er1
8901 cat conftest.err >&5
8902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); } && {
8904 test -z "$ac_c_werror_flag" ||
8905 test ! -s conftest.err
8906 } && test -s conftest.$ac_objext; then
8907 ac_cv_member_struct_ifreq_ifr_netmask=yes
8908else
8909 $as_echo "$as_me: failed program was:" >&5
8910sed 's/^/| /' conftest.$ac_ext >&5
8911
8912 cat >conftest.$ac_ext <<_ACEOF
8913/* confdefs.h. */
8914_ACEOF
8915cat confdefs.h >>conftest.$ac_ext
8916cat >>conftest.$ac_ext <<_ACEOF
8917/* end confdefs.h. */
8918$ac_includes_default
8919#if HAVE_SYS_SOCKET_H
8920#include <sys/socket.h>
8921#endif
8922#if HAVE_NET_IF_H
8923#include <net/if.h>
8924#endif
8925
8926int
8927main ()
8928{
8929static struct ifreq ac_aggr;
8930if (sizeof ac_aggr.ifr_netmask)
8931return 0;
8932 ;
8933 return 0;
8934}
8935_ACEOF
8936rm -f conftest.$ac_objext
8937if { (ac_try="$ac_compile"
8938case "(($ac_try" in
8939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940 *) ac_try_echo=$ac_try;;
8941esac
8942eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8943$as_echo "$ac_try_echo") >&5
8944 (eval "$ac_compile") 2>conftest.er1
8945 ac_status=$?
8946 grep -v '^ *+' conftest.er1 >conftest.err
8947 rm -f conftest.er1
8948 cat conftest.err >&5
8949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } && {
8951 test -z "$ac_c_werror_flag" ||
8952 test ! -s conftest.err
8953 } && test -s conftest.$ac_objext; then
8954 ac_cv_member_struct_ifreq_ifr_netmask=yes
8955else
8956 $as_echo "$as_me: failed program was:" >&5
8957sed 's/^/| /' conftest.$ac_ext >&5
8958
8959 ac_cv_member_struct_ifreq_ifr_netmask=no
8960fi
8961
8962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8963fi
8964
8965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8966fi
8967{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8968$as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8969if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
6756 8970
6757cat >>confdefs.h <<_ACEOF 8971cat >>confdefs.h <<_ACEOF
6758#define HAVE_STRUCT_IFREQ_IFR_NETMASK 1 8972#define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
@@ -6760,15 +8974,116 @@ _ACEOF
6760 8974
6761 8975
6762fi 8976fi
6763ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default 8977{ $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8978$as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8979if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8980 $as_echo_n "(cached) " >&6
8981else
8982 cat >conftest.$ac_ext <<_ACEOF
8983/* confdefs.h. */
8984_ACEOF
8985cat confdefs.h >>conftest.$ac_ext
8986cat >>conftest.$ac_ext <<_ACEOF
8987/* end confdefs.h. */
8988$ac_includes_default
6764#if HAVE_SYS_SOCKET_H 8989#if HAVE_SYS_SOCKET_H
6765#include <sys/socket.h> 8990#include <sys/socket.h>
6766#endif 8991#endif
6767#if HAVE_NET_IF_H 8992#if HAVE_NET_IF_H
6768#include <net/if.h> 8993#include <net/if.h>
6769#endif 8994#endif
6770" 8995
6771if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then : 8996int
8997main ()
8998{
8999static struct ifreq ac_aggr;
9000if (ac_aggr.ifr_broadaddr)
9001return 0;
9002 ;
9003 return 0;
9004}
9005_ACEOF
9006rm -f conftest.$ac_objext
9007if { (ac_try="$ac_compile"
9008case "(($ac_try" in
9009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010 *) ac_try_echo=$ac_try;;
9011esac
9012eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9013$as_echo "$ac_try_echo") >&5
9014 (eval "$ac_compile") 2>conftest.er1
9015 ac_status=$?
9016 grep -v '^ *+' conftest.er1 >conftest.err
9017 rm -f conftest.er1
9018 cat conftest.err >&5
9019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); } && {
9021 test -z "$ac_c_werror_flag" ||
9022 test ! -s conftest.err
9023 } && test -s conftest.$ac_objext; then
9024 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9025else
9026 $as_echo "$as_me: failed program was:" >&5
9027sed 's/^/| /' conftest.$ac_ext >&5
9028
9029 cat >conftest.$ac_ext <<_ACEOF
9030/* confdefs.h. */
9031_ACEOF
9032cat confdefs.h >>conftest.$ac_ext
9033cat >>conftest.$ac_ext <<_ACEOF
9034/* end confdefs.h. */
9035$ac_includes_default
9036#if HAVE_SYS_SOCKET_H
9037#include <sys/socket.h>
9038#endif
9039#if HAVE_NET_IF_H
9040#include <net/if.h>
9041#endif
9042
9043int
9044main ()
9045{
9046static struct ifreq ac_aggr;
9047if (sizeof ac_aggr.ifr_broadaddr)
9048return 0;
9049 ;
9050 return 0;
9051}
9052_ACEOF
9053rm -f conftest.$ac_objext
9054if { (ac_try="$ac_compile"
9055case "(($ac_try" in
9056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9057 *) ac_try_echo=$ac_try;;
9058esac
9059eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9060$as_echo "$ac_try_echo") >&5
9061 (eval "$ac_compile") 2>conftest.er1
9062 ac_status=$?
9063 grep -v '^ *+' conftest.er1 >conftest.err
9064 rm -f conftest.er1
9065 cat conftest.err >&5
9066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } && {
9068 test -z "$ac_c_werror_flag" ||
9069 test ! -s conftest.err
9070 } && test -s conftest.$ac_objext; then
9071 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9072else
9073 $as_echo "$as_me: failed program was:" >&5
9074sed 's/^/| /' conftest.$ac_ext >&5
9075
9076 ac_cv_member_struct_ifreq_ifr_broadaddr=no
9077fi
9078
9079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9080fi
9081
9082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9083fi
9084{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
9085$as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
9086if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
6772 9087
6773cat >>confdefs.h <<_ACEOF 9088cat >>confdefs.h <<_ACEOF
6774#define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1 9089#define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
@@ -6776,15 +9091,116 @@ _ACEOF
6776 9091
6777 9092
6778fi 9093fi
6779ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default 9094{ $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
9095$as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
9096if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
9097 $as_echo_n "(cached) " >&6
9098else
9099 cat >conftest.$ac_ext <<_ACEOF
9100/* confdefs.h. */
9101_ACEOF
9102cat confdefs.h >>conftest.$ac_ext
9103cat >>conftest.$ac_ext <<_ACEOF
9104/* end confdefs.h. */
9105$ac_includes_default
6780#if HAVE_SYS_SOCKET_H 9106#if HAVE_SYS_SOCKET_H
6781#include <sys/socket.h> 9107#include <sys/socket.h>
6782#endif 9108#endif
6783#if HAVE_NET_IF_H 9109#if HAVE_NET_IF_H
6784#include <net/if.h> 9110#include <net/if.h>
6785#endif 9111#endif
6786" 9112
6787if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then : 9113int
9114main ()
9115{
9116static struct ifreq ac_aggr;
9117if (ac_aggr.ifr_addr)
9118return 0;
9119 ;
9120 return 0;
9121}
9122_ACEOF
9123rm -f conftest.$ac_objext
9124if { (ac_try="$ac_compile"
9125case "(($ac_try" in
9126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9127 *) ac_try_echo=$ac_try;;
9128esac
9129eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9130$as_echo "$ac_try_echo") >&5
9131 (eval "$ac_compile") 2>conftest.er1
9132 ac_status=$?
9133 grep -v '^ *+' conftest.er1 >conftest.err
9134 rm -f conftest.er1
9135 cat conftest.err >&5
9136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); } && {
9138 test -z "$ac_c_werror_flag" ||
9139 test ! -s conftest.err
9140 } && test -s conftest.$ac_objext; then
9141 ac_cv_member_struct_ifreq_ifr_addr=yes
9142else
9143 $as_echo "$as_me: failed program was:" >&5
9144sed 's/^/| /' conftest.$ac_ext >&5
9145
9146 cat >conftest.$ac_ext <<_ACEOF
9147/* confdefs.h. */
9148_ACEOF
9149cat confdefs.h >>conftest.$ac_ext
9150cat >>conftest.$ac_ext <<_ACEOF
9151/* end confdefs.h. */
9152$ac_includes_default
9153#if HAVE_SYS_SOCKET_H
9154#include <sys/socket.h>
9155#endif
9156#if HAVE_NET_IF_H
9157#include <net/if.h>
9158#endif
9159
9160int
9161main ()
9162{
9163static struct ifreq ac_aggr;
9164if (sizeof ac_aggr.ifr_addr)
9165return 0;
9166 ;
9167 return 0;
9168}
9169_ACEOF
9170rm -f conftest.$ac_objext
9171if { (ac_try="$ac_compile"
9172case "(($ac_try" in
9173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9174 *) ac_try_echo=$ac_try;;
9175esac
9176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9177$as_echo "$ac_try_echo") >&5
9178 (eval "$ac_compile") 2>conftest.er1
9179 ac_status=$?
9180 grep -v '^ *+' conftest.er1 >conftest.err
9181 rm -f conftest.er1
9182 cat conftest.err >&5
9183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); } && {
9185 test -z "$ac_c_werror_flag" ||
9186 test ! -s conftest.err
9187 } && test -s conftest.$ac_objext; then
9188 ac_cv_member_struct_ifreq_ifr_addr=yes
9189else
9190 $as_echo "$as_me: failed program was:" >&5
9191sed 's/^/| /' conftest.$ac_ext >&5
9192
9193 ac_cv_member_struct_ifreq_ifr_addr=no
9194fi
9195
9196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9197fi
9198
9199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9200fi
9201{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9202$as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9203if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
6788 9204
6789cat >>confdefs.h <<_ACEOF 9205cat >>confdefs.h <<_ACEOF
6790#define HAVE_STRUCT_IFREQ_IFR_ADDR 1 9206#define HAVE_STRUCT_IFREQ_IFR_ADDR 1
@@ -6795,28 +9211,36 @@ fi
6795 9211
6796 9212
6797 9213
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5 9214{ $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
6799$as_echo_n "checking for function prototypes... " >&6; } 9215$as_echo_n "checking for function prototypes... " >&6; }
6800if test "$ac_cv_prog_cc_c89" != no; then 9216if test "$ac_cv_prog_cc_c89" != no; then
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9217 { $as_echo "$as_me:$LINENO: result: yes" >&5
6802$as_echo "yes" >&6; } 9218$as_echo "yes" >&6; }
6803 9219
6804$as_echo "#define PROTOTYPES 1" >>confdefs.h 9220cat >>confdefs.h <<\_ACEOF
9221#define PROTOTYPES 1
9222_ACEOF
6805 9223
6806 9224
6807$as_echo "#define __PROTOTYPES 1" >>confdefs.h 9225cat >>confdefs.h <<\_ACEOF
9226#define __PROTOTYPES 1
9227_ACEOF
6808 9228
6809else 9229else
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9230 { $as_echo "$as_me:$LINENO: result: no" >&5
6811$as_echo "no" >&6; } 9231$as_echo "no" >&6; }
6812fi 9232fi
6813 9233
6814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 9234{ $as_echo "$as_me:$LINENO: checking for working volatile" >&5
6815$as_echo_n "checking for working volatile... " >&6; } 9235$as_echo_n "checking for working volatile... " >&6; }
6816if test "${ac_cv_c_volatile+set}" = set; then : 9236if test "${ac_cv_c_volatile+set}" = set; then
6817 $as_echo_n "(cached) " >&6 9237 $as_echo_n "(cached) " >&6
6818else 9238else
6819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9239 cat >conftest.$ac_ext <<_ACEOF
9240/* confdefs.h. */
9241_ACEOF
9242cat confdefs.h >>conftest.$ac_ext
9243cat >>conftest.$ac_ext <<_ACEOF
6820/* end confdefs.h. */ 9244/* end confdefs.h. */
6821 9245
6822int 9246int
@@ -6830,27 +9254,54 @@ return !x && !y;
6830 return 0; 9254 return 0;
6831} 9255}
6832_ACEOF 9256_ACEOF
6833if ac_fn_c_try_compile "$LINENO"; then : 9257rm -f conftest.$ac_objext
9258if { (ac_try="$ac_compile"
9259case "(($ac_try" in
9260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9261 *) ac_try_echo=$ac_try;;
9262esac
9263eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9264$as_echo "$ac_try_echo") >&5
9265 (eval "$ac_compile") 2>conftest.er1
9266 ac_status=$?
9267 grep -v '^ *+' conftest.er1 >conftest.err
9268 rm -f conftest.er1
9269 cat conftest.err >&5
9270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } && {
9272 test -z "$ac_c_werror_flag" ||
9273 test ! -s conftest.err
9274 } && test -s conftest.$ac_objext; then
6834 ac_cv_c_volatile=yes 9275 ac_cv_c_volatile=yes
6835else 9276else
6836 ac_cv_c_volatile=no 9277 $as_echo "$as_me: failed program was:" >&5
9278sed 's/^/| /' conftest.$ac_ext >&5
9279
9280 ac_cv_c_volatile=no
6837fi 9281fi
9282
6838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6839fi 9284fi
6840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 9285{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6841$as_echo "$ac_cv_c_volatile" >&6; } 9286$as_echo "$ac_cv_c_volatile" >&6; }
6842if test $ac_cv_c_volatile = no; then 9287if test $ac_cv_c_volatile = no; then
6843 9288
6844$as_echo "#define volatile /**/" >>confdefs.h 9289cat >>confdefs.h <<\_ACEOF
9290#define volatile /**/
9291_ACEOF
6845 9292
6846fi 9293fi
6847 9294
6848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 9295{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6849$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 9296$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6850if test "${ac_cv_c_const+set}" = set; then : 9297if test "${ac_cv_c_const+set}" = set; then
6851 $as_echo_n "(cached) " >&6 9298 $as_echo_n "(cached) " >&6
6852else 9299else
6853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9300 cat >conftest.$ac_ext <<_ACEOF
9301/* confdefs.h. */
9302_ACEOF
9303cat confdefs.h >>conftest.$ac_ext
9304cat >>conftest.$ac_ext <<_ACEOF
6854/* end confdefs.h. */ 9305/* end confdefs.h. */
6855 9306
6856int 9307int
@@ -6910,27 +9361,54 @@ main ()
6910 return 0; 9361 return 0;
6911} 9362}
6912_ACEOF 9363_ACEOF
6913if ac_fn_c_try_compile "$LINENO"; then : 9364rm -f conftest.$ac_objext
9365if { (ac_try="$ac_compile"
9366case "(($ac_try" in
9367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9368 *) ac_try_echo=$ac_try;;
9369esac
9370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9371$as_echo "$ac_try_echo") >&5
9372 (eval "$ac_compile") 2>conftest.er1
9373 ac_status=$?
9374 grep -v '^ *+' conftest.er1 >conftest.err
9375 rm -f conftest.er1
9376 cat conftest.err >&5
9377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } && {
9379 test -z "$ac_c_werror_flag" ||
9380 test ! -s conftest.err
9381 } && test -s conftest.$ac_objext; then
6914 ac_cv_c_const=yes 9382 ac_cv_c_const=yes
6915else 9383else
6916 ac_cv_c_const=no 9384 $as_echo "$as_me: failed program was:" >&5
9385sed 's/^/| /' conftest.$ac_ext >&5
9386
9387 ac_cv_c_const=no
6917fi 9388fi
9389
6918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6919fi 9391fi
6920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 9392{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6921$as_echo "$ac_cv_c_const" >&6; } 9393$as_echo "$ac_cv_c_const" >&6; }
6922if test $ac_cv_c_const = no; then 9394if test $ac_cv_c_const = no; then
6923 9395
6924$as_echo "#define const /**/" >>confdefs.h 9396cat >>confdefs.h <<\_ACEOF
9397#define const /**/
9398_ACEOF
6925 9399
6926fi 9400fi
6927 9401
6928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5 9402{ $as_echo "$as_me:$LINENO: checking for void * support" >&5
6929$as_echo_n "checking for void * support... " >&6; } 9403$as_echo_n "checking for void * support... " >&6; }
6930if test "${emacs_cv_void_star+set}" = set; then : 9404if test "${emacs_cv_void_star+set}" = set; then
6931 $as_echo_n "(cached) " >&6 9405 $as_echo_n "(cached) " >&6
6932else 9406else
6933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9407 cat >conftest.$ac_ext <<_ACEOF
9408/* confdefs.h. */
9409_ACEOF
9410cat confdefs.h >>conftest.$ac_ext
9411cat >>conftest.$ac_ext <<_ACEOF
6934/* end confdefs.h. */ 9412/* end confdefs.h. */
6935 9413
6936int 9414int
@@ -6941,31 +9419,57 @@ void * foo;
6941 return 0; 9419 return 0;
6942} 9420}
6943_ACEOF 9421_ACEOF
6944if ac_fn_c_try_compile "$LINENO"; then : 9422rm -f conftest.$ac_objext
9423if { (ac_try="$ac_compile"
9424case "(($ac_try" in
9425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9426 *) ac_try_echo=$ac_try;;
9427esac
9428eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9429$as_echo "$ac_try_echo") >&5
9430 (eval "$ac_compile") 2>conftest.er1
9431 ac_status=$?
9432 grep -v '^ *+' conftest.er1 >conftest.err
9433 rm -f conftest.er1
9434 cat conftest.err >&5
9435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); } && {
9437 test -z "$ac_c_werror_flag" ||
9438 test ! -s conftest.err
9439 } && test -s conftest.$ac_objext; then
6945 emacs_cv_void_star=yes 9440 emacs_cv_void_star=yes
6946else 9441else
6947 emacs_cv_void_star=no 9442 $as_echo "$as_me: failed program was:" >&5
9443sed 's/^/| /' conftest.$ac_ext >&5
9444
9445 emacs_cv_void_star=no
6948fi 9446fi
9447
6949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6950fi 9449fi
6951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5 9450{ $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6952$as_echo "$emacs_cv_void_star" >&6; } 9451$as_echo "$emacs_cv_void_star" >&6; }
6953if test $emacs_cv_void_star = yes; then 9452if test $emacs_cv_void_star = yes; then
6954 $as_echo "#define POINTER_TYPE void" >>confdefs.h 9453 cat >>confdefs.h <<\_ACEOF
9454#define POINTER_TYPE void
9455_ACEOF
6955 9456
6956else 9457else
6957 $as_echo "#define POINTER_TYPE char" >>confdefs.h 9458 cat >>confdefs.h <<\_ACEOF
9459#define POINTER_TYPE char
9460_ACEOF
6958 9461
6959fi 9462fi
6960 9463
6961 9464
6962 9465
6963 9466
6964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 9467
9468{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6965$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 9469$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6966set x ${MAKE-make} 9470set x ${MAKE-make}
6967ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 9471ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6968if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 9472if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6969 $as_echo_n "(cached) " >&6 9473 $as_echo_n "(cached) " >&6
6970else 9474else
6971 cat >conftest.make <<\_ACEOF 9475 cat >conftest.make <<\_ACEOF
@@ -6983,18 +9487,18 @@ esac
6983rm -f conftest.make 9487rm -f conftest.make
6984fi 9488fi
6985if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 9489if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9490 { $as_echo "$as_me:$LINENO: result: yes" >&5
6987$as_echo "yes" >&6; } 9491$as_echo "yes" >&6; }
6988 SET_MAKE= 9492 SET_MAKE=
6989else 9493else
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9494 { $as_echo "$as_me:$LINENO: result: no" >&5
6991$as_echo "no" >&6; } 9495$as_echo "no" >&6; }
6992 SET_MAKE="MAKE=${MAKE-make}" 9496 SET_MAKE="MAKE=${MAKE-make}"
6993fi 9497fi
6994 9498
6995 9499
6996if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then 9500if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5 9501 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
6998$as_echo_n "checking whether we are using GNU Make... " >&6; } 9502$as_echo_n "checking whether we are using GNU Make... " >&6; }
6999 HAVE_GNU_MAKE=no 9503 HAVE_GNU_MAKE=no
7000 testval=`make --version 2>/dev/null | grep 'GNU Make'` 9504 testval=`make --version 2>/dev/null | grep 'GNU Make'`
@@ -7003,14 +9507,18 @@ $as_echo_n "checking whether we are using GNU Make... " >&6; }
7003 else 9507 else
7004 ac_enable_autodepend=no 9508 ac_enable_autodepend=no
7005 fi 9509 fi
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5 9510 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
7007$as_echo "$HAVE_GNU_MAKE" >&6; } 9511$as_echo "$HAVE_GNU_MAKE" >&6; }
7008 if test $HAVE_GNU_MAKE = yes; then 9512 if test $HAVE_GNU_MAKE = yes; then
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5 9513 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
7010$as_echo_n "checking whether gcc understands -MMD -MF... " >&6; } 9514$as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7011 SAVE_CFLAGS="$CFLAGS" 9515 SAVE_CFLAGS="$CFLAGS"
7012 CFLAGS="$CFLAGS -MMD -MF deps.d" 9516 CFLAGS="$CFLAGS -MMD -MF deps.d"
7013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9517 cat >conftest.$ac_ext <<_ACEOF
9518/* confdefs.h. */
9519_ACEOF
9520cat confdefs.h >>conftest.$ac_ext
9521cat >>conftest.$ac_ext <<_ACEOF
7014/* end confdefs.h. */ 9522/* end confdefs.h. */
7015 9523
7016int 9524int
@@ -7021,28 +9529,51 @@ main ()
7021 return 0; 9529 return 0;
7022} 9530}
7023_ACEOF 9531_ACEOF
7024if ac_fn_c_try_compile "$LINENO"; then : 9532rm -f conftest.$ac_objext
7025 9533if { (ac_try="$ac_compile"
9534case "(($ac_try" in
9535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9536 *) ac_try_echo=$ac_try;;
9537esac
9538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9539$as_echo "$ac_try_echo") >&5
9540 (eval "$ac_compile") 2>conftest.er1
9541 ac_status=$?
9542 grep -v '^ *+' conftest.er1 >conftest.err
9543 rm -f conftest.er1
9544 cat conftest.err >&5
9545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } && {
9547 test -z "$ac_c_werror_flag" ||
9548 test ! -s conftest.err
9549 } && test -s conftest.$ac_objext; then
9550 :
7026else 9551else
7027 ac_enable_autodepend=no 9552 $as_echo "$as_me: failed program was:" >&5
9553sed 's/^/| /' conftest.$ac_ext >&5
9554
9555 ac_enable_autodepend=no
7028fi 9556fi
9557
7029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7030 CFLAGS="$SAVE_CFLAGS" 9559 CFLAGS="$SAVE_CFLAGS"
7031 test -f deps.d || ac_enable_autodepend=no 9560 test -f deps.d || ac_enable_autodepend=no
7032 rm -rf deps.d 9561 rm -rf deps.d
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5 9562 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
7034$as_echo "$ac_enable_autodepend" >&6; } 9563$as_echo "$ac_enable_autodepend" >&6; }
7035 fi 9564 fi
7036 if test $ac_enable_autodepend = yes; then 9565 if test $ac_enable_autodepend = yes; then
7037 9566
7038$as_echo "#define AUTO_DEPEND 1" >>confdefs.h 9567cat >>confdefs.h <<\_ACEOF
9568#define AUTO_DEPEND 1
9569_ACEOF
7039 9570
7040 fi 9571 fi
7041fi 9572fi
7042 9573
7043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5 9574{ $as_echo "$as_me:$LINENO: checking for long file names" >&5
7044$as_echo_n "checking for long file names... " >&6; } 9575$as_echo_n "checking for long file names... " >&6; }
7045if test "${ac_cv_sys_long_file_names+set}" = set; then : 9576if test "${ac_cv_sys_long_file_names+set}" = set; then
7046 $as_echo_n "(cached) " >&6 9577 $as_echo_n "(cached) " >&6
7047else 9578else
7048 ac_cv_sys_long_file_names=yes 9579 ac_cv_sys_long_file_names=yes
@@ -7072,23 +9603,25 @@ for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib
7072 test $ac_cv_sys_long_file_names = no && break 9603 test $ac_cv_sys_long_file_names = no && break
7073done 9604done
7074fi 9605fi
7075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5 9606{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7076$as_echo "$ac_cv_sys_long_file_names" >&6; } 9607$as_echo "$ac_cv_sys_long_file_names" >&6; }
7077if test $ac_cv_sys_long_file_names = yes; then 9608if test $ac_cv_sys_long_file_names = yes; then
7078 9609
7079$as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h 9610cat >>confdefs.h <<\_ACEOF
9611#define HAVE_LONG_FILE_NAMES 1
9612_ACEOF
7080 9613
7081fi 9614fi
7082 9615
7083 9616
7084#### Choose a window system. 9617#### Choose a window system.
7085 9618
7086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 9619{ $as_echo "$as_me:$LINENO: checking for X" >&5
7087$as_echo_n "checking for X... " >&6; } 9620$as_echo_n "checking for X... " >&6; }
7088 9621
7089 9622
7090# Check whether --with-x was given. 9623# Check whether --with-x was given.
7091if test "${with_x+set}" = set; then : 9624if test "${with_x+set}" = set; then
7092 withval=$with_x; 9625 withval=$with_x;
7093fi 9626fi
7094 9627
@@ -7098,8 +9631,10 @@ if test "x$with_x" = xno; then
7098 have_x=disabled 9631 have_x=disabled
7099else 9632else
7100 case $x_includes,$x_libraries in #( 9633 case $x_includes,$x_libraries in #(
7101 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #( 9634 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
7102 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : 9635$as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9636 { (exit 1); exit 1; }; };; #(
9637 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
7103 $as_echo_n "(cached) " >&6 9638 $as_echo_n "(cached) " >&6
7104else 9639else
7105 # One or both of the vars are not set, and there is no cached value. 9640 # One or both of the vars are not set, and there is no cached value.
@@ -7135,7 +9670,7 @@ _ACEOF
7135 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 9670 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7136 esac 9671 esac
7137 case $ac_im_usrlibdir in 9672 case $ac_im_usrlibdir in
7138 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 9673 /usr/lib | /lib) ;;
7139 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 9674 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7140 esac 9675 esac
7141 fi 9676 fi
@@ -7147,25 +9682,21 @@ fi
7147# Check X11 before X11Rn because it is often a symlink to the current release. 9682# Check X11 before X11Rn because it is often a symlink to the current release.
7148ac_x_header_dirs=' 9683ac_x_header_dirs='
7149/usr/X11/include 9684/usr/X11/include
7150/usr/X11R7/include
7151/usr/X11R6/include 9685/usr/X11R6/include
7152/usr/X11R5/include 9686/usr/X11R5/include
7153/usr/X11R4/include 9687/usr/X11R4/include
7154 9688
7155/usr/include/X11 9689/usr/include/X11
7156/usr/include/X11R7
7157/usr/include/X11R6 9690/usr/include/X11R6
7158/usr/include/X11R5 9691/usr/include/X11R5
7159/usr/include/X11R4 9692/usr/include/X11R4
7160 9693
7161/usr/local/X11/include 9694/usr/local/X11/include
7162/usr/local/X11R7/include
7163/usr/local/X11R6/include 9695/usr/local/X11R6/include
7164/usr/local/X11R5/include 9696/usr/local/X11R5/include
7165/usr/local/X11R4/include 9697/usr/local/X11R4/include
7166 9698
7167/usr/local/include/X11 9699/usr/local/include/X11
7168/usr/local/include/X11R7
7169/usr/local/include/X11R6 9700/usr/local/include/X11R6
7170/usr/local/include/X11R5 9701/usr/local/include/X11R5
7171/usr/local/include/X11R4 9702/usr/local/include/X11R4
@@ -7187,14 +9718,37 @@ ac_x_header_dirs='
7187if test "$ac_x_includes" = no; then 9718if test "$ac_x_includes" = no; then
7188 # Guess where to find include files, by looking for Xlib.h. 9719 # Guess where to find include files, by looking for Xlib.h.
7189 # First, try using that file with no special directory specified. 9720 # First, try using that file with no special directory specified.
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9721 cat >conftest.$ac_ext <<_ACEOF
9722/* confdefs.h. */
9723_ACEOF
9724cat confdefs.h >>conftest.$ac_ext
9725cat >>conftest.$ac_ext <<_ACEOF
7191/* end confdefs.h. */ 9726/* end confdefs.h. */
7192#include <X11/Xlib.h> 9727#include <X11/Xlib.h>
7193_ACEOF 9728_ACEOF
7194if ac_fn_c_try_cpp "$LINENO"; then : 9729if { (ac_try="$ac_cpp conftest.$ac_ext"
9730case "(($ac_try" in
9731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9732 *) ac_try_echo=$ac_try;;
9733esac
9734eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9735$as_echo "$ac_try_echo") >&5
9736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9737 ac_status=$?
9738 grep -v '^ *+' conftest.er1 >conftest.err
9739 rm -f conftest.er1
9740 cat conftest.err >&5
9741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } >/dev/null && {
9743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9744 test ! -s conftest.err
9745 }; then
7195 # We can compile using X headers with no special include directory. 9746 # We can compile using X headers with no special include directory.
7196ac_x_includes= 9747ac_x_includes=
7197else 9748else
9749 $as_echo "$as_me: failed program was:" >&5
9750sed 's/^/| /' conftest.$ac_ext >&5
9751
7198 for ac_dir in $ac_x_header_dirs; do 9752 for ac_dir in $ac_x_header_dirs; do
7199 if test -r "$ac_dir/X11/Xlib.h"; then 9753 if test -r "$ac_dir/X11/Xlib.h"; then
7200 ac_x_includes=$ac_dir 9754 ac_x_includes=$ac_dir
@@ -7202,6 +9756,7 @@ else
7202 fi 9756 fi
7203done 9757done
7204fi 9758fi
9759
7205rm -f conftest.err conftest.$ac_ext 9760rm -f conftest.err conftest.$ac_ext
7206fi # $ac_x_includes = no 9761fi # $ac_x_includes = no
7207 9762
@@ -7211,7 +9766,11 @@ if test "$ac_x_libraries" = no; then
7211 # Don't add to $LIBS permanently. 9766 # Don't add to $LIBS permanently.
7212 ac_save_LIBS=$LIBS 9767 ac_save_LIBS=$LIBS
7213 LIBS="-lX11 $LIBS" 9768 LIBS="-lX11 $LIBS"
7214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9769 cat >conftest.$ac_ext <<_ACEOF
9770/* confdefs.h. */
9771_ACEOF
9772cat confdefs.h >>conftest.$ac_ext
9773cat >>conftest.$ac_ext <<_ACEOF
7215/* end confdefs.h. */ 9774/* end confdefs.h. */
7216#include <X11/Xlib.h> 9775#include <X11/Xlib.h>
7217int 9776int
@@ -7222,12 +9781,35 @@ XrmInitialize ()
7222 return 0; 9781 return 0;
7223} 9782}
7224_ACEOF 9783_ACEOF
7225if ac_fn_c_try_link "$LINENO"; then : 9784rm -f conftest.$ac_objext conftest$ac_exeext
9785if { (ac_try="$ac_link"
9786case "(($ac_try" in
9787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788 *) ac_try_echo=$ac_try;;
9789esac
9790eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9791$as_echo "$ac_try_echo") >&5
9792 (eval "$ac_link") 2>conftest.er1
9793 ac_status=$?
9794 grep -v '^ *+' conftest.er1 >conftest.err
9795 rm -f conftest.er1
9796 cat conftest.err >&5
9797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } && {
9799 test -z "$ac_c_werror_flag" ||
9800 test ! -s conftest.err
9801 } && test -s conftest$ac_exeext && {
9802 test "$cross_compiling" = yes ||
9803 $as_test_x conftest$ac_exeext
9804 }; then
7226 LIBS=$ac_save_LIBS 9805 LIBS=$ac_save_LIBS
7227# We can link X programs with no special library path. 9806# We can link X programs with no special library path.
7228ac_x_libraries= 9807ac_x_libraries=
7229else 9808else
7230 LIBS=$ac_save_LIBS 9809 $as_echo "$as_me: failed program was:" >&5
9810sed 's/^/| /' conftest.$ac_ext >&5
9811
9812 LIBS=$ac_save_LIBS
7231for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 9813for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7232do 9814do
7233 # Don't even attempt the hair of trying to link an X program! 9815 # Don't even attempt the hair of trying to link an X program!
@@ -7239,8 +9821,10 @@ do
7239 done 9821 done
7240done 9822done
7241fi 9823fi
7242rm -f core conftest.err conftest.$ac_objext \ 9824
7243 conftest$ac_exeext conftest.$ac_ext 9825rm -rf conftest.dSYM
9826rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9827 conftest$ac_exeext conftest.$ac_ext
7244fi # $ac_x_libraries = no 9828fi # $ac_x_libraries = no
7245 9829
7246case $ac_x_includes,$ac_x_libraries in #( 9830case $ac_x_includes,$ac_x_libraries in #(
@@ -7261,7 +9845,7 @@ fi
7261fi # $with_x != no 9845fi # $with_x != no
7262 9846
7263if test "$have_x" != yes; then 9847if test "$have_x" != yes; then
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 9848 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
7265$as_echo "$have_x" >&6; } 9849$as_echo "$have_x" >&6; }
7266 no_x=yes 9850 no_x=yes
7267else 9851else
@@ -7272,7 +9856,7 @@ else
7272 ac_cv_have_x="have_x=yes\ 9856 ac_cv_have_x="have_x=yes\
7273 ac_x_includes='$x_includes'\ 9857 ac_x_includes='$x_includes'\
7274 ac_x_libraries='$x_libraries'" 9858 ac_x_libraries='$x_libraries'"
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 9859 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7276$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 9860$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7277fi 9861fi
7278 9862
@@ -7382,17 +9966,150 @@ shared=no
7382 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}" 9966 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
7383 LIB_STANDARD= 9967 LIB_STANDARD=
7384 fi 9968 fi
7385 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default" 9969 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
7386if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then : 9970 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9971$as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9972if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9973 $as_echo_n "(cached) " >&6
9974fi
9975{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9976$as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9977else
9978 # Is the header compilable?
9979{ $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9980$as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9981cat >conftest.$ac_ext <<_ACEOF
9982/* confdefs.h. */
9983_ACEOF
9984cat confdefs.h >>conftest.$ac_ext
9985cat >>conftest.$ac_ext <<_ACEOF
9986/* end confdefs.h. */
9987$ac_includes_default
9988#include <AppKit/AppKit.h>
9989_ACEOF
9990rm -f conftest.$ac_objext
9991if { (ac_try="$ac_compile"
9992case "(($ac_try" in
9993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994 *) ac_try_echo=$ac_try;;
9995esac
9996eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9997$as_echo "$ac_try_echo") >&5
9998 (eval "$ac_compile") 2>conftest.er1
9999 ac_status=$?
10000 grep -v '^ *+' conftest.er1 >conftest.err
10001 rm -f conftest.er1
10002 cat conftest.err >&5
10003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); } && {
10005 test -z "$ac_c_werror_flag" ||
10006 test ! -s conftest.err
10007 } && test -s conftest.$ac_objext; then
10008 ac_header_compiler=yes
10009else
10010 $as_echo "$as_me: failed program was:" >&5
10011sed 's/^/| /' conftest.$ac_ext >&5
10012
10013 ac_header_compiler=no
10014fi
10015
10016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10017{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10018$as_echo "$ac_header_compiler" >&6; }
10019
10020# Is the header present?
10021{ $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
10022$as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
10023cat >conftest.$ac_ext <<_ACEOF
10024/* confdefs.h. */
10025_ACEOF
10026cat confdefs.h >>conftest.$ac_ext
10027cat >>conftest.$ac_ext <<_ACEOF
10028/* end confdefs.h. */
10029#include <AppKit/AppKit.h>
10030_ACEOF
10031if { (ac_try="$ac_cpp conftest.$ac_ext"
10032case "(($ac_try" in
10033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10034 *) ac_try_echo=$ac_try;;
10035esac
10036eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10037$as_echo "$ac_try_echo") >&5
10038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10039 ac_status=$?
10040 grep -v '^ *+' conftest.er1 >conftest.err
10041 rm -f conftest.er1
10042 cat conftest.err >&5
10043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); } >/dev/null && {
10045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10046 test ! -s conftest.err
10047 }; then
10048 ac_header_preproc=yes
10049else
10050 $as_echo "$as_me: failed program was:" >&5
10051sed 's/^/| /' conftest.$ac_ext >&5
10052
10053 ac_header_preproc=no
10054fi
10055
10056rm -f conftest.err conftest.$ac_ext
10057{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10058$as_echo "$ac_header_preproc" >&6; }
10059
10060# So? What about this header?
10061case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10062 yes:no: )
10063 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
10064$as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10065 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
10066$as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
10067 ac_header_preproc=yes
10068 ;;
10069 no:yes:* )
10070 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
10071$as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
10072 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
10073$as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
10074 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
10075$as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
10076 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
10077$as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
10078 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
10079$as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
10080 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
10081$as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
10082
10083 ;;
10084esac
10085{ $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
10086$as_echo_n "checking for AppKit/AppKit.h... " >&6; }
10087if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
10088 $as_echo_n "(cached) " >&6
10089else
10090 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
10091fi
10092{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
10093$as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
10094
10095fi
10096if test $ac_cv_header_AppKit_AppKit_h = yes; then
7387 HAVE_NS=yes 10097 HAVE_NS=yes
7388else 10098else
7389 as_fn_error "\`--with-ns' was specified, but the include 10099 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
7390 files are missing or cannot be compiled." "$LINENO" 5 10100 files are missing or cannot be compiled." >&5
10101$as_echo "$as_me: error: \`--with-ns' was specified, but the include
10102 files are missing or cannot be compiled." >&2;}
10103 { (exit 1); exit 1; }; }
7391fi 10104fi
7392 10105
7393 10106
7394 NS_HAVE_NSINTEGER=yes 10107 NS_HAVE_NSINTEGER=yes
7395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10108 cat >conftest.$ac_ext <<_ACEOF
10109/* confdefs.h. */
10110_ACEOF
10111cat confdefs.h >>conftest.$ac_ext
10112cat >>conftest.$ac_ext <<_ACEOF
7396/* end confdefs.h. */ 10113/* end confdefs.h. */
7397#include <Foundation/NSObjCRuntime.h> 10114#include <Foundation/NSObjCRuntime.h>
7398int 10115int
@@ -7403,11 +10120,32 @@ NSInteger i;
7403 return 0; 10120 return 0;
7404} 10121}
7405_ACEOF 10122_ACEOF
7406if ac_fn_c_try_compile "$LINENO"; then : 10123rm -f conftest.$ac_objext
10124if { (ac_try="$ac_compile"
10125case "(($ac_try" in
10126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127 *) ac_try_echo=$ac_try;;
10128esac
10129eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10130$as_echo "$ac_try_echo") >&5
10131 (eval "$ac_compile") 2>conftest.er1
10132 ac_status=$?
10133 grep -v '^ *+' conftest.er1 >conftest.err
10134 rm -f conftest.er1
10135 cat conftest.err >&5
10136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); } && {
10138 test -z "$ac_c_werror_flag" ||
10139 test ! -s conftest.err
10140 } && test -s conftest.$ac_objext; then
7407 ns_have_nsinteger=yes 10141 ns_have_nsinteger=yes
7408else 10142else
7409 ns_have_nsinteger=no 10143 $as_echo "$as_me: failed program was:" >&5
10144sed 's/^/| /' conftest.$ac_ext >&5
10145
10146 ns_have_nsinteger=no
7410fi 10147fi
10148
7411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7412 if test $ns_have_nsinteger = no; then 10150 if test $ns_have_nsinteger = no; then
7413 NS_HAVE_NSINTEGER=no 10151 NS_HAVE_NSINTEGER=no
@@ -7458,9 +10196,9 @@ esac
7458if test "$window_system" = none && test "X$with_x" != "Xno"; then 10196if test "$window_system" = none && test "X$with_x" != "Xno"; then
7459 # Extract the first word of "X", so it can be a program name with args. 10197 # Extract the first word of "X", so it can be a program name with args.
7460set dummy X; ac_word=$2 10198set dummy X; ac_word=$2
7461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10199{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7462$as_echo_n "checking for $ac_word... " >&6; } 10200$as_echo_n "checking for $ac_word... " >&6; }
7463if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then : 10201if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
7464 $as_echo_n "(cached) " >&6 10202 $as_echo_n "(cached) " >&6
7465else 10203else
7466 if test -n "$HAVE_XSERVER"; then 10204 if test -n "$HAVE_XSERVER"; then
@@ -7471,14 +10209,14 @@ for as_dir in $PATH
7471do 10209do
7472 IFS=$as_save_IFS 10210 IFS=$as_save_IFS
7473 test -z "$as_dir" && as_dir=. 10211 test -z "$as_dir" && as_dir=.
7474 for ac_exec_ext in '' $ac_executable_extensions; do 10212 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7476 ac_cv_prog_HAVE_XSERVER="true" 10214 ac_cv_prog_HAVE_XSERVER="true"
7477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10215 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 break 2 10216 break 2
7479 fi 10217 fi
7480done 10218done
7481 done 10219done
7482IFS=$as_save_IFS 10220IFS=$as_save_IFS
7483 10221
7484 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false" 10222 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
@@ -7486,10 +10224,10 @@ fi
7486fi 10224fi
7487HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER 10225HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7488if test -n "$HAVE_XSERVER"; then 10226if test -n "$HAVE_XSERVER"; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5 10227 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
7490$as_echo "$HAVE_XSERVER" >&6; } 10228$as_echo "$HAVE_XSERVER" >&6; }
7491else 10229else
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10230 { $as_echo "$as_me:$LINENO: result: no" >&5
7493$as_echo "no" >&6; } 10231$as_echo "no" >&6; }
7494fi 10232fi
7495 10233
@@ -7497,14 +10235,23 @@ fi
7497 if test "$HAVE_XSERVER" = true || 10235 if test "$HAVE_XSERVER" = true ||
7498 test -n "$DISPLAY" || 10236 test -n "$DISPLAY" ||
7499 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then 10237 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7500 as_fn_error "You seem to be running X, but no X development libraries 10238 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
10239were found. You should install the relevant development files for X
10240and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10241sure you have development files for image handling, i.e.
10242tiff, gif, jpeg, png and xpm.
10243If you are sure you want Emacs compiled without X window support, pass
10244 --without-x
10245to configure." >&5
10246$as_echo "$as_me: error: You seem to be running X, but no X development libraries
7501were found. You should install the relevant development files for X 10247were found. You should install the relevant development files for X
7502and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make 10248and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7503sure you have development files for image handling, i.e. 10249sure you have development files for image handling, i.e.
7504tiff, gif, jpeg, png and xpm. 10250tiff, gif, jpeg, png and xpm.
7505If you are sure you want Emacs compiled without X window support, pass 10251If you are sure you want Emacs compiled without X window support, pass
7506 --without-x 10252 --without-x
7507to configure." "$LINENO" 5 10253to configure." >&2;}
10254 { (exit 1); exit 1; }; }
7508 fi 10255 fi
7509fi 10256fi
7510 10257
@@ -7518,26 +10265,198 @@ esac
7518# Assume not, until told otherwise. 10265# Assume not, until told otherwise.
7519GNU_MALLOC=yes 10266GNU_MALLOC=yes
7520doug_lea_malloc=yes 10267doug_lea_malloc=yes
7521ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state" 10268{ $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
7522if test "x$ac_cv_func_malloc_get_state" = x""yes; then : 10269$as_echo_n "checking for malloc_get_state... " >&6; }
10270if test "${ac_cv_func_malloc_get_state+set}" = set; then
10271 $as_echo_n "(cached) " >&6
10272else
10273 cat >conftest.$ac_ext <<_ACEOF
10274/* confdefs.h. */
10275_ACEOF
10276cat confdefs.h >>conftest.$ac_ext
10277cat >>conftest.$ac_ext <<_ACEOF
10278/* end confdefs.h. */
10279/* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10281#define malloc_get_state innocuous_malloc_get_state
10282
10283/* System header to define __stub macros and hopefully few prototypes,
10284 which can conflict with char malloc_get_state (); below.
10285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10286 <limits.h> exists even on freestanding compilers. */
7523 10287
10288#ifdef __STDC__
10289# include <limits.h>
10290#else
10291# include <assert.h>
10292#endif
10293
10294#undef malloc_get_state
10295
10296/* Override any GCC internal prototype to avoid an error.
10297 Use char because int might match the return type of a GCC
10298 builtin and then its argument prototype would still apply. */
10299#ifdef __cplusplus
10300extern "C"
10301#endif
10302char malloc_get_state ();
10303/* The GNU C library defines this for functions which it implements
10304 to always fail with ENOSYS. Some functions are actually named
10305 something starting with __ and the normal name is an alias. */
10306#if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10307choke me
10308#endif
10309
10310int
10311main ()
10312{
10313return malloc_get_state ();
10314 ;
10315 return 0;
10316}
10317_ACEOF
10318rm -f conftest.$ac_objext conftest$ac_exeext
10319if { (ac_try="$ac_link"
10320case "(($ac_try" in
10321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10322 *) ac_try_echo=$ac_try;;
10323esac
10324eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10325$as_echo "$ac_try_echo") >&5
10326 (eval "$ac_link") 2>conftest.er1
10327 ac_status=$?
10328 grep -v '^ *+' conftest.er1 >conftest.err
10329 rm -f conftest.er1
10330 cat conftest.err >&5
10331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } && {
10333 test -z "$ac_c_werror_flag" ||
10334 test ! -s conftest.err
10335 } && test -s conftest$ac_exeext && {
10336 test "$cross_compiling" = yes ||
10337 $as_test_x conftest$ac_exeext
10338 }; then
10339 ac_cv_func_malloc_get_state=yes
10340else
10341 $as_echo "$as_me: failed program was:" >&5
10342sed 's/^/| /' conftest.$ac_ext >&5
10343
10344 ac_cv_func_malloc_get_state=no
10345fi
10346
10347rm -rf conftest.dSYM
10348rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10349 conftest$ac_exeext conftest.$ac_ext
10350fi
10351{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10352$as_echo "$ac_cv_func_malloc_get_state" >&6; }
10353if test $ac_cv_func_malloc_get_state = yes; then
10354 :
7524else 10355else
7525 doug_lea_malloc=no 10356 doug_lea_malloc=no
7526fi 10357fi
7527 10358
7528ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state" 10359{ $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
7529if test "x$ac_cv_func_malloc_set_state" = x""yes; then : 10360$as_echo_n "checking for malloc_set_state... " >&6; }
10361if test "${ac_cv_func_malloc_set_state+set}" = set; then
10362 $as_echo_n "(cached) " >&6
10363else
10364 cat >conftest.$ac_ext <<_ACEOF
10365/* confdefs.h. */
10366_ACEOF
10367cat confdefs.h >>conftest.$ac_ext
10368cat >>conftest.$ac_ext <<_ACEOF
10369/* end confdefs.h. */
10370/* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10372#define malloc_set_state innocuous_malloc_set_state
10373
10374/* System header to define __stub macros and hopefully few prototypes,
10375 which can conflict with char malloc_set_state (); below.
10376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10377 <limits.h> exists even on freestanding compilers. */
10378
10379#ifdef __STDC__
10380# include <limits.h>
10381#else
10382# include <assert.h>
10383#endif
10384
10385#undef malloc_set_state
7530 10386
10387/* Override any GCC internal prototype to avoid an error.
10388 Use char because int might match the return type of a GCC
10389 builtin and then its argument prototype would still apply. */
10390#ifdef __cplusplus
10391extern "C"
10392#endif
10393char malloc_set_state ();
10394/* The GNU C library defines this for functions which it implements
10395 to always fail with ENOSYS. Some functions are actually named
10396 something starting with __ and the normal name is an alias. */
10397#if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10398choke me
10399#endif
10400
10401int
10402main ()
10403{
10404return malloc_set_state ();
10405 ;
10406 return 0;
10407}
10408_ACEOF
10409rm -f conftest.$ac_objext conftest$ac_exeext
10410if { (ac_try="$ac_link"
10411case "(($ac_try" in
10412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413 *) ac_try_echo=$ac_try;;
10414esac
10415eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10416$as_echo "$ac_try_echo") >&5
10417 (eval "$ac_link") 2>conftest.er1
10418 ac_status=$?
10419 grep -v '^ *+' conftest.er1 >conftest.err
10420 rm -f conftest.er1
10421 cat conftest.err >&5
10422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } && {
10424 test -z "$ac_c_werror_flag" ||
10425 test ! -s conftest.err
10426 } && test -s conftest$ac_exeext && {
10427 test "$cross_compiling" = yes ||
10428 $as_test_x conftest$ac_exeext
10429 }; then
10430 ac_cv_func_malloc_set_state=yes
10431else
10432 $as_echo "$as_me: failed program was:" >&5
10433sed 's/^/| /' conftest.$ac_ext >&5
10434
10435 ac_cv_func_malloc_set_state=no
10436fi
10437
10438rm -rf conftest.dSYM
10439rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10440 conftest$ac_exeext conftest.$ac_ext
10441fi
10442{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10443$as_echo "$ac_cv_func_malloc_set_state" >&6; }
10444if test $ac_cv_func_malloc_set_state = yes; then
10445 :
7531else 10446else
7532 doug_lea_malloc=no 10447 doug_lea_malloc=no
7533fi 10448fi
7534 10449
7535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5 10450{ $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7536$as_echo_n "checking whether __after_morecore_hook exists... " >&6; } 10451$as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7537if test "${emacs_cv_var___after_morecore_hook+set}" = set; then : 10452if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7538 $as_echo_n "(cached) " >&6 10453 $as_echo_n "(cached) " >&6
7539else 10454else
7540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10455 cat >conftest.$ac_ext <<_ACEOF
10456/* confdefs.h. */
10457_ACEOF
10458cat confdefs.h >>conftest.$ac_ext
10459cat >>conftest.$ac_ext <<_ACEOF
7541/* end confdefs.h. */ 10460/* end confdefs.h. */
7542extern void (* __after_morecore_hook)(); 10461extern void (* __after_morecore_hook)();
7543int 10462int
@@ -7548,15 +10467,40 @@ __after_morecore_hook = 0
7548 return 0; 10467 return 0;
7549} 10468}
7550_ACEOF 10469_ACEOF
7551if ac_fn_c_try_link "$LINENO"; then : 10470rm -f conftest.$ac_objext conftest$ac_exeext
10471if { (ac_try="$ac_link"
10472case "(($ac_try" in
10473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10474 *) ac_try_echo=$ac_try;;
10475esac
10476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10477$as_echo "$ac_try_echo") >&5
10478 (eval "$ac_link") 2>conftest.er1
10479 ac_status=$?
10480 grep -v '^ *+' conftest.er1 >conftest.err
10481 rm -f conftest.er1
10482 cat conftest.err >&5
10483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); } && {
10485 test -z "$ac_c_werror_flag" ||
10486 test ! -s conftest.err
10487 } && test -s conftest$ac_exeext && {
10488 test "$cross_compiling" = yes ||
10489 $as_test_x conftest$ac_exeext
10490 }; then
7552 emacs_cv_var___after_morecore_hook=yes 10491 emacs_cv_var___after_morecore_hook=yes
7553else 10492else
7554 emacs_cv_var___after_morecore_hook=no 10493 $as_echo "$as_me: failed program was:" >&5
10494sed 's/^/| /' conftest.$ac_ext >&5
10495
10496 emacs_cv_var___after_morecore_hook=no
7555fi 10497fi
7556rm -f core conftest.err conftest.$ac_objext \ 10498
7557 conftest$ac_exeext conftest.$ac_ext 10499rm -rf conftest.dSYM
10500rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10501 conftest$ac_exeext conftest.$ac_ext
7558fi 10502fi
7559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5 10503{ $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7560$as_echo "$emacs_cv_var___after_morecore_hook" >&6; } 10504$as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7561if test $emacs_cv_var___after_morecore_hook = no; then 10505if test $emacs_cv_var___after_morecore_hook = no; then
7562 doug_lea_malloc=no 10506 doug_lea_malloc=no
@@ -7572,7 +10516,9 @@ if test "$doug_lea_malloc" = "yes" ; then
7572 (Using Doug Lea's new malloc from the GNU C Library.)" 10516 (Using Doug Lea's new malloc from the GNU C Library.)"
7573 fi 10517 fi
7574 10518
7575$as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h 10519cat >>confdefs.h <<\_ACEOF
10520#define DOUG_LEA_MALLOC 1
10521_ACEOF
7576 10522
7577fi 10523fi
7578 10524
@@ -7583,14 +10529,142 @@ fi
7583 10529
7584 10530
7585 10531
10532for ac_header in stdlib.h unistd.h
10533do
10534as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10535if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10536 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10537$as_echo_n "checking for $ac_header... " >&6; }
10538if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10539 $as_echo_n "(cached) " >&6
10540fi
10541ac_res=`eval 'as_val=${'$as_ac_Header'}
10542 $as_echo "$as_val"'`
10543 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10544$as_echo "$ac_res" >&6; }
10545else
10546 # Is the header compilable?
10547{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10548$as_echo_n "checking $ac_header usability... " >&6; }
10549cat >conftest.$ac_ext <<_ACEOF
10550/* confdefs.h. */
10551_ACEOF
10552cat confdefs.h >>conftest.$ac_ext
10553cat >>conftest.$ac_ext <<_ACEOF
10554/* end confdefs.h. */
10555$ac_includes_default
10556#include <$ac_header>
10557_ACEOF
10558rm -f conftest.$ac_objext
10559if { (ac_try="$ac_compile"
10560case "(($ac_try" in
10561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562 *) ac_try_echo=$ac_try;;
10563esac
10564eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10565$as_echo "$ac_try_echo") >&5
10566 (eval "$ac_compile") 2>conftest.er1
10567 ac_status=$?
10568 grep -v '^ *+' conftest.er1 >conftest.err
10569 rm -f conftest.er1
10570 cat conftest.err >&5
10571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); } && {
10573 test -z "$ac_c_werror_flag" ||
10574 test ! -s conftest.err
10575 } && test -s conftest.$ac_objext; then
10576 ac_header_compiler=yes
10577else
10578 $as_echo "$as_me: failed program was:" >&5
10579sed 's/^/| /' conftest.$ac_ext >&5
10580
10581 ac_header_compiler=no
10582fi
10583
10584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10585{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10586$as_echo "$ac_header_compiler" >&6; }
10587
10588# Is the header present?
10589{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10590$as_echo_n "checking $ac_header presence... " >&6; }
10591cat >conftest.$ac_ext <<_ACEOF
10592/* confdefs.h. */
10593_ACEOF
10594cat confdefs.h >>conftest.$ac_ext
10595cat >>conftest.$ac_ext <<_ACEOF
10596/* end confdefs.h. */
10597#include <$ac_header>
10598_ACEOF
10599if { (ac_try="$ac_cpp conftest.$ac_ext"
10600case "(($ac_try" in
10601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10602 *) ac_try_echo=$ac_try;;
10603esac
10604eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10605$as_echo "$ac_try_echo") >&5
10606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10607 ac_status=$?
10608 grep -v '^ *+' conftest.er1 >conftest.err
10609 rm -f conftest.er1
10610 cat conftest.err >&5
10611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); } >/dev/null && {
10613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10614 test ! -s conftest.err
10615 }; then
10616 ac_header_preproc=yes
10617else
10618 $as_echo "$as_me: failed program was:" >&5
10619sed 's/^/| /' conftest.$ac_ext >&5
10620
10621 ac_header_preproc=no
10622fi
10623
10624rm -f conftest.err conftest.$ac_ext
10625{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10626$as_echo "$ac_header_preproc" >&6; }
7586 10627
7587 for ac_header in $ac_header_list 10628# So? What about this header?
7588do : 10629case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7589 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10630 yes:no: )
7590ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 10631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7591" 10632$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7592eval as_val=\$$as_ac_Header 10633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7593 if test "x$as_val" = x""yes; then : 10634$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10635 ac_header_preproc=yes
10636 ;;
10637 no:yes:* )
10638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10639$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10640 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10641$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10642 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10643$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10644 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10645$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10646 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10647$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10649$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10650
10651 ;;
10652esac
10653{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10654$as_echo_n "checking for $ac_header... " >&6; }
10655if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10656 $as_echo_n "(cached) " >&6
10657else
10658 eval "$as_ac_Header=\$ac_header_preproc"
10659fi
10660ac_res=`eval 'as_val=${'$as_ac_Header'}
10661 $as_echo "$as_val"'`
10662 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10663$as_echo "$ac_res" >&6; }
10664
10665fi
10666if test `eval 'as_val=${'$as_ac_Header'}
10667 $as_echo "$as_val"'` = yes; then
7594 cat >>confdefs.h <<_ACEOF 10668 cat >>confdefs.h <<_ACEOF
7595#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10669#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7596_ACEOF 10670_ACEOF
@@ -7600,32 +10674,118 @@ fi
7600done 10674done
7601 10675
7602 10676
10677for ac_func in getpagesize
10678do
10679as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10680{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10681$as_echo_n "checking for $ac_func... " >&6; }
10682if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10683 $as_echo_n "(cached) " >&6
10684else
10685 cat >conftest.$ac_ext <<_ACEOF
10686/* confdefs.h. */
10687_ACEOF
10688cat confdefs.h >>conftest.$ac_ext
10689cat >>conftest.$ac_ext <<_ACEOF
10690/* end confdefs.h. */
10691/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10693#define $ac_func innocuous_$ac_func
10694
10695/* System header to define __stub macros and hopefully few prototypes,
10696 which can conflict with char $ac_func (); below.
10697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10698 <limits.h> exists even on freestanding compilers. */
7603 10699
10700#ifdef __STDC__
10701# include <limits.h>
10702#else
10703# include <assert.h>
10704#endif
7604 10705
10706#undef $ac_func
7605 10707
10708/* Override any GCC internal prototype to avoid an error.
10709 Use char because int might match the return type of a GCC
10710 builtin and then its argument prototype would still apply. */
10711#ifdef __cplusplus
10712extern "C"
10713#endif
10714char $ac_func ();
10715/* The GNU C library defines this for functions which it implements
10716 to always fail with ENOSYS. Some functions are actually named
10717 something starting with __ and the normal name is an alias. */
10718#if defined __stub_$ac_func || defined __stub___$ac_func
10719choke me
10720#endif
7606 10721
10722int
10723main ()
10724{
10725return $ac_func ();
10726 ;
10727 return 0;
10728}
10729_ACEOF
10730rm -f conftest.$ac_objext conftest$ac_exeext
10731if { (ac_try="$ac_link"
10732case "(($ac_try" in
10733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10734 *) ac_try_echo=$ac_try;;
10735esac
10736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10737$as_echo "$ac_try_echo") >&5
10738 (eval "$ac_link") 2>conftest.er1
10739 ac_status=$?
10740 grep -v '^ *+' conftest.er1 >conftest.err
10741 rm -f conftest.er1
10742 cat conftest.err >&5
10743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); } && {
10745 test -z "$ac_c_werror_flag" ||
10746 test ! -s conftest.err
10747 } && test -s conftest$ac_exeext && {
10748 test "$cross_compiling" = yes ||
10749 $as_test_x conftest$ac_exeext
10750 }; then
10751 eval "$as_ac_var=yes"
10752else
10753 $as_echo "$as_me: failed program was:" >&5
10754sed 's/^/| /' conftest.$ac_ext >&5
7607 10755
10756 eval "$as_ac_var=no"
10757fi
7608 10758
7609for ac_func in getpagesize 10759rm -rf conftest.dSYM
7610do : 10760rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7611 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 10761 conftest$ac_exeext conftest.$ac_ext
7612if test "x$ac_cv_func_getpagesize" = x""yes; then : 10762fi
10763ac_res=`eval 'as_val=${'$as_ac_var'}
10764 $as_echo "$as_val"'`
10765 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10766$as_echo "$ac_res" >&6; }
10767if test `eval 'as_val=${'$as_ac_var'}
10768 $as_echo "$as_val"'` = yes; then
7613 cat >>confdefs.h <<_ACEOF 10769 cat >>confdefs.h <<_ACEOF
7614#define HAVE_GETPAGESIZE 1 10770#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7615_ACEOF 10771_ACEOF
7616 10772
7617fi 10773fi
7618done 10774done
7619 10775
7620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 10776{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
7621$as_echo_n "checking for working mmap... " >&6; } 10777$as_echo_n "checking for working mmap... " >&6; }
7622if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : 10778if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7623 $as_echo_n "(cached) " >&6 10779 $as_echo_n "(cached) " >&6
7624else 10780else
7625 if test "$cross_compiling" = yes; then : 10781 if test "$cross_compiling" = yes; then
7626 ac_cv_func_mmap_fixed_mapped=no 10782 ac_cv_func_mmap_fixed_mapped=no
7627else 10783else
7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10784 cat >conftest.$ac_ext <<_ACEOF
10785/* confdefs.h. */
10786_ACEOF
10787cat confdefs.h >>conftest.$ac_ext
10788cat >>conftest.$ac_ext <<_ACEOF
7629/* end confdefs.h. */ 10789/* end confdefs.h. */
7630$ac_includes_default 10790$ac_includes_default
7631/* malloc might have been renamed as rpl_malloc. */ 10791/* malloc might have been renamed as rpl_malloc. */
@@ -7662,6 +10822,11 @@ char *malloc ();
7662 10822
7663/* This mess was copied from the GNU getpagesize.h. */ 10823/* This mess was copied from the GNU getpagesize.h. */
7664#ifndef HAVE_GETPAGESIZE 10824#ifndef HAVE_GETPAGESIZE
10825/* Assume that all systems that can run configure have sys/param.h. */
10826# ifndef HAVE_SYS_PARAM_H
10827# define HAVE_SYS_PARAM_H 1
10828# endif
10829
7665# ifdef _SC_PAGESIZE 10830# ifdef _SC_PAGESIZE
7666# define getpagesize() sysconf(_SC_PAGESIZE) 10831# define getpagesize() sysconf(_SC_PAGESIZE)
7667# else /* no _SC_PAGESIZE */ 10832# else /* no _SC_PAGESIZE */
@@ -7696,9 +10861,8 @@ int
7696main () 10861main ()
7697{ 10862{
7698 char *data, *data2, *data3; 10863 char *data, *data2, *data3;
7699 const char *cdata2;
7700 int i, pagesize; 10864 int i, pagesize;
7701 int fd, fd2; 10865 int fd;
7702 10866
7703 pagesize = getpagesize (); 10867 pagesize = getpagesize ();
7704 10868
@@ -7711,41 +10875,27 @@ main ()
7711 umask (0); 10875 umask (0);
7712 fd = creat ("conftest.mmap", 0600); 10876 fd = creat ("conftest.mmap", 0600);
7713 if (fd < 0) 10877 if (fd < 0)
7714 return 2; 10878 return 1;
7715 if (write (fd, data, pagesize) != pagesize) 10879 if (write (fd, data, pagesize) != pagesize)
7716 return 3; 10880 return 1;
7717 close (fd); 10881 close (fd);
7718 10882
7719 /* Next, check that the tail of a page is zero-filled. File must have
7720 non-zero length, otherwise we risk SIGBUS for entire page. */
7721 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7722 if (fd2 < 0)
7723 return 4;
7724 cdata2 = "";
7725 if (write (fd2, cdata2, 1) != 1)
7726 return 5;
7727 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7728 if (data2 == MAP_FAILED)
7729 return 6;
7730 for (i = 0; i < pagesize; ++i)
7731 if (*(data2 + i))
7732 return 7;
7733 close (fd2);
7734 if (munmap (data2, pagesize))
7735 return 8;
7736
7737 /* Next, try to mmap the file at a fixed address which already has 10883 /* Next, try to mmap the file at a fixed address which already has
7738 something else allocated at it. If we can, also make sure that 10884 something else allocated at it. If we can, also make sure that
7739 we see the same garbage. */ 10885 we see the same garbage. */
7740 fd = open ("conftest.mmap", O_RDWR); 10886 fd = open ("conftest.mmap", O_RDWR);
7741 if (fd < 0) 10887 if (fd < 0)
7742 return 9; 10888 return 1;
10889 data2 = (char *) malloc (2 * pagesize);
10890 if (!data2)
10891 return 1;
10892 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7743 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 10893 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7744 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 10894 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7745 return 10; 10895 return 1;
7746 for (i = 0; i < pagesize; ++i) 10896 for (i = 0; i < pagesize; ++i)
7747 if (*(data + i) != *(data2 + i)) 10897 if (*(data + i) != *(data2 + i))
7748 return 11; 10898 return 1;
7749 10899
7750 /* Finally, make sure that changes to the mapped area do not 10900 /* Finally, make sure that changes to the mapped area do not
7751 percolate back to the file as seen by read(). (This is a bug on 10901 percolate back to the file as seen by read(). (This is a bug on
@@ -7754,34 +10904,63 @@ main ()
7754 *(data2 + i) = *(data2 + i) + 1; 10904 *(data2 + i) = *(data2 + i) + 1;
7755 data3 = (char *) malloc (pagesize); 10905 data3 = (char *) malloc (pagesize);
7756 if (!data3) 10906 if (!data3)
7757 return 12; 10907 return 1;
7758 if (read (fd, data3, pagesize) != pagesize) 10908 if (read (fd, data3, pagesize) != pagesize)
7759 return 13; 10909 return 1;
7760 for (i = 0; i < pagesize; ++i) 10910 for (i = 0; i < pagesize; ++i)
7761 if (*(data + i) != *(data3 + i)) 10911 if (*(data + i) != *(data3 + i))
7762 return 14; 10912 return 1;
7763 close (fd); 10913 close (fd);
7764 return 0; 10914 return 0;
7765} 10915}
7766_ACEOF 10916_ACEOF
7767if ac_fn_c_try_run "$LINENO"; then : 10917rm -f conftest$ac_exeext
10918if { (ac_try="$ac_link"
10919case "(($ac_try" in
10920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10921 *) ac_try_echo=$ac_try;;
10922esac
10923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10924$as_echo "$ac_try_echo") >&5
10925 (eval "$ac_link") 2>&5
10926 ac_status=$?
10927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10929 { (case "(($ac_try" in
10930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931 *) ac_try_echo=$ac_try;;
10932esac
10933eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10934$as_echo "$ac_try_echo") >&5
10935 (eval "$ac_try") 2>&5
10936 ac_status=$?
10937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); }; }; then
7768 ac_cv_func_mmap_fixed_mapped=yes 10939 ac_cv_func_mmap_fixed_mapped=yes
7769else 10940else
7770 ac_cv_func_mmap_fixed_mapped=no 10941 $as_echo "$as_me: program exited with status $ac_status" >&5
10942$as_echo "$as_me: failed program was:" >&5
10943sed 's/^/| /' conftest.$ac_ext >&5
10944
10945( exit $ac_status )
10946ac_cv_func_mmap_fixed_mapped=no
7771fi 10947fi
7772rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10948rm -rf conftest.dSYM
7773 conftest.$ac_objext conftest.beam conftest.$ac_ext 10949rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7774fi 10950fi
7775 10951
10952
7776fi 10953fi
7777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 10954{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7778$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 10955$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7779if test $ac_cv_func_mmap_fixed_mapped = yes; then 10956if test $ac_cv_func_mmap_fixed_mapped = yes; then
7780 10957
7781$as_echo "#define HAVE_MMAP 1" >>confdefs.h 10958cat >>confdefs.h <<\_ACEOF
10959#define HAVE_MMAP 1
10960_ACEOF
7782 10961
7783fi 10962fi
7784rm -f conftest.mmap conftest.txt 10963rm -f conftest.mmap
7785 10964
7786if test $use_mmap_for_buffers = yes; then 10965if test $use_mmap_for_buffers = yes; then
7787 REL_ALLOC=no 10966 REL_ALLOC=no
@@ -7789,14 +10968,19 @@ fi
7789 10968
7790LIBS="$LIBS_SYSTEM $LIBS" 10969LIBS="$LIBS_SYSTEM $LIBS"
7791 10970
7792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 10971
10972{ $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7793$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 10973$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7794if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : 10974if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7795 $as_echo_n "(cached) " >&6 10975 $as_echo_n "(cached) " >&6
7796else 10976else
7797 ac_check_lib_save_LIBS=$LIBS 10977 ac_check_lib_save_LIBS=$LIBS
7798LIBS="-ldnet $LIBS" 10978LIBS="-ldnet $LIBS"
7799cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10979cat >conftest.$ac_ext <<_ACEOF
10980/* confdefs.h. */
10981_ACEOF
10982cat confdefs.h >>conftest.$ac_ext
10983cat >>conftest.$ac_ext <<_ACEOF
7800/* end confdefs.h. */ 10984/* end confdefs.h. */
7801 10985
7802/* Override any GCC internal prototype to avoid an error. 10986/* Override any GCC internal prototype to avoid an error.
@@ -7814,18 +10998,43 @@ return dnet_ntoa ();
7814 return 0; 10998 return 0;
7815} 10999}
7816_ACEOF 11000_ACEOF
7817if ac_fn_c_try_link "$LINENO"; then : 11001rm -f conftest.$ac_objext conftest$ac_exeext
11002if { (ac_try="$ac_link"
11003case "(($ac_try" in
11004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11005 *) ac_try_echo=$ac_try;;
11006esac
11007eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11008$as_echo "$ac_try_echo") >&5
11009 (eval "$ac_link") 2>conftest.er1
11010 ac_status=$?
11011 grep -v '^ *+' conftest.er1 >conftest.err
11012 rm -f conftest.er1
11013 cat conftest.err >&5
11014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } && {
11016 test -z "$ac_c_werror_flag" ||
11017 test ! -s conftest.err
11018 } && test -s conftest$ac_exeext && {
11019 test "$cross_compiling" = yes ||
11020 $as_test_x conftest$ac_exeext
11021 }; then
7818 ac_cv_lib_dnet_dnet_ntoa=yes 11022 ac_cv_lib_dnet_dnet_ntoa=yes
7819else 11023else
7820 ac_cv_lib_dnet_dnet_ntoa=no 11024 $as_echo "$as_me: failed program was:" >&5
11025sed 's/^/| /' conftest.$ac_ext >&5
11026
11027 ac_cv_lib_dnet_dnet_ntoa=no
7821fi 11028fi
7822rm -f core conftest.err conftest.$ac_objext \ 11029
7823 conftest$ac_exeext conftest.$ac_ext 11030rm -rf conftest.dSYM
11031rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11032 conftest$ac_exeext conftest.$ac_ext
7824LIBS=$ac_check_lib_save_LIBS 11033LIBS=$ac_check_lib_save_LIBS
7825fi 11034fi
7826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 11035{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7827$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 11036$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7828if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : 11037if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7829 cat >>confdefs.h <<_ACEOF 11038 cat >>confdefs.h <<_ACEOF
7830#define HAVE_LIBDNET 1 11039#define HAVE_LIBDNET 1
7831_ACEOF 11040_ACEOF
@@ -7835,14 +11044,18 @@ _ACEOF
7835fi 11044fi
7836 11045
7837 11046
7838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5 11047{ $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7839$as_echo_n "checking for main in -lXbsd... " >&6; } 11048$as_echo_n "checking for main in -lXbsd... " >&6; }
7840if test "${ac_cv_lib_Xbsd_main+set}" = set; then : 11049if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7841 $as_echo_n "(cached) " >&6 11050 $as_echo_n "(cached) " >&6
7842else 11051else
7843 ac_check_lib_save_LIBS=$LIBS 11052 ac_check_lib_save_LIBS=$LIBS
7844LIBS="-lXbsd $LIBS" 11053LIBS="-lXbsd $LIBS"
7845cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11054cat >conftest.$ac_ext <<_ACEOF
11055/* confdefs.h. */
11056_ACEOF
11057cat confdefs.h >>conftest.$ac_ext
11058cat >>conftest.$ac_ext <<_ACEOF
7846/* end confdefs.h. */ 11059/* end confdefs.h. */
7847 11060
7848 11061
@@ -7854,30 +11067,60 @@ return main ();
7854 return 0; 11067 return 0;
7855} 11068}
7856_ACEOF 11069_ACEOF
7857if ac_fn_c_try_link "$LINENO"; then : 11070rm -f conftest.$ac_objext conftest$ac_exeext
11071if { (ac_try="$ac_link"
11072case "(($ac_try" in
11073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074 *) ac_try_echo=$ac_try;;
11075esac
11076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11077$as_echo "$ac_try_echo") >&5
11078 (eval "$ac_link") 2>conftest.er1
11079 ac_status=$?
11080 grep -v '^ *+' conftest.er1 >conftest.err
11081 rm -f conftest.er1
11082 cat conftest.err >&5
11083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); } && {
11085 test -z "$ac_c_werror_flag" ||
11086 test ! -s conftest.err
11087 } && test -s conftest$ac_exeext && {
11088 test "$cross_compiling" = yes ||
11089 $as_test_x conftest$ac_exeext
11090 }; then
7858 ac_cv_lib_Xbsd_main=yes 11091 ac_cv_lib_Xbsd_main=yes
7859else 11092else
7860 ac_cv_lib_Xbsd_main=no 11093 $as_echo "$as_me: failed program was:" >&5
11094sed 's/^/| /' conftest.$ac_ext >&5
11095
11096 ac_cv_lib_Xbsd_main=no
7861fi 11097fi
7862rm -f core conftest.err conftest.$ac_objext \ 11098
7863 conftest$ac_exeext conftest.$ac_ext 11099rm -rf conftest.dSYM
11100rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11101 conftest$ac_exeext conftest.$ac_ext
7864LIBS=$ac_check_lib_save_LIBS 11102LIBS=$ac_check_lib_save_LIBS
7865fi 11103fi
7866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5 11104{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7867$as_echo "$ac_cv_lib_Xbsd_main" >&6; } 11105$as_echo "$ac_cv_lib_Xbsd_main" >&6; }
7868if test "x$ac_cv_lib_Xbsd_main" = x""yes; then : 11106if test $ac_cv_lib_Xbsd_main = yes; then
7869 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" 11107 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7870fi 11108fi
7871 11109
7872 11110
7873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5 11111
11112{ $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7874$as_echo_n "checking for cma_open in -lpthreads... " >&6; } 11113$as_echo_n "checking for cma_open in -lpthreads... " >&6; }
7875if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then : 11114if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7876 $as_echo_n "(cached) " >&6 11115 $as_echo_n "(cached) " >&6
7877else 11116else
7878 ac_check_lib_save_LIBS=$LIBS 11117 ac_check_lib_save_LIBS=$LIBS
7879LIBS="-lpthreads $LIBS" 11118LIBS="-lpthreads $LIBS"
7880cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11119cat >conftest.$ac_ext <<_ACEOF
11120/* confdefs.h. */
11121_ACEOF
11122cat confdefs.h >>conftest.$ac_ext
11123cat >>conftest.$ac_ext <<_ACEOF
7881/* end confdefs.h. */ 11124/* end confdefs.h. */
7882 11125
7883/* Override any GCC internal prototype to avoid an error. 11126/* Override any GCC internal prototype to avoid an error.
@@ -7895,18 +11138,43 @@ return cma_open ();
7895 return 0; 11138 return 0;
7896} 11139}
7897_ACEOF 11140_ACEOF
7898if ac_fn_c_try_link "$LINENO"; then : 11141rm -f conftest.$ac_objext conftest$ac_exeext
11142if { (ac_try="$ac_link"
11143case "(($ac_try" in
11144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11145 *) ac_try_echo=$ac_try;;
11146esac
11147eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11148$as_echo "$ac_try_echo") >&5
11149 (eval "$ac_link") 2>conftest.er1
11150 ac_status=$?
11151 grep -v '^ *+' conftest.er1 >conftest.err
11152 rm -f conftest.er1
11153 cat conftest.err >&5
11154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); } && {
11156 test -z "$ac_c_werror_flag" ||
11157 test ! -s conftest.err
11158 } && test -s conftest$ac_exeext && {
11159 test "$cross_compiling" = yes ||
11160 $as_test_x conftest$ac_exeext
11161 }; then
7899 ac_cv_lib_pthreads_cma_open=yes 11162 ac_cv_lib_pthreads_cma_open=yes
7900else 11163else
7901 ac_cv_lib_pthreads_cma_open=no 11164 $as_echo "$as_me: failed program was:" >&5
11165sed 's/^/| /' conftest.$ac_ext >&5
11166
11167 ac_cv_lib_pthreads_cma_open=no
7902fi 11168fi
7903rm -f core conftest.err conftest.$ac_objext \ 11169
7904 conftest$ac_exeext conftest.$ac_ext 11170rm -rf conftest.dSYM
11171rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11172 conftest$ac_exeext conftest.$ac_ext
7905LIBS=$ac_check_lib_save_LIBS 11173LIBS=$ac_check_lib_save_LIBS
7906fi 11174fi
7907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5 11175{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7908$as_echo "$ac_cv_lib_pthreads_cma_open" >&6; } 11176$as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
7909if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then : 11177if test $ac_cv_lib_pthreads_cma_open = yes; then
7910 cat >>confdefs.h <<_ACEOF 11178 cat >>confdefs.h <<_ACEOF
7911#define HAVE_LIBPTHREADS 1 11179#define HAVE_LIBPTHREADS 1
7912_ACEOF 11180_ACEOF
@@ -7931,9 +11199,9 @@ test "$opsys" = "aix4-2" && \
7931 11199
7932case ${host_os} in 11200case ${host_os} in
7933aix*) 11201aix*)
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5 11202 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
7935$as_echo_n "checking for -bbigtoc option... " >&6; } 11203$as_echo_n "checking for -bbigtoc option... " >&6; }
7936if test "${gdb_cv_bigtoc+set}" = set; then : 11204if test "${gdb_cv_bigtoc+set}" = set; then
7937 $as_echo_n "(cached) " >&6 11205 $as_echo_n "(cached) " >&6
7938else 11206else
7939 11207
@@ -7943,7 +11211,11 @@ else
7943 esac 11211 esac
7944 11212
7945 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc 11213 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
7946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11214 cat >conftest.$ac_ext <<_ACEOF
11215/* confdefs.h. */
11216_ACEOF
11217cat confdefs.h >>conftest.$ac_ext
11218cat >>conftest.$ac_ext <<_ACEOF
7947/* end confdefs.h. */ 11219/* end confdefs.h. */
7948 11220
7949int 11221int
@@ -7954,16 +11226,41 @@ int i;
7954 return 0; 11226 return 0;
7955} 11227}
7956_ACEOF 11228_ACEOF
7957if ac_fn_c_try_link "$LINENO"; then : 11229rm -f conftest.$ac_objext conftest$ac_exeext
7958 11230if { (ac_try="$ac_link"
11231case "(($ac_try" in
11232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11233 *) ac_try_echo=$ac_try;;
11234esac
11235eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11236$as_echo "$ac_try_echo") >&5
11237 (eval "$ac_link") 2>conftest.er1
11238 ac_status=$?
11239 grep -v '^ *+' conftest.er1 >conftest.err
11240 rm -f conftest.er1
11241 cat conftest.err >&5
11242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); } && {
11244 test -z "$ac_c_werror_flag" ||
11245 test ! -s conftest.err
11246 } && test -s conftest$ac_exeext && {
11247 test "$cross_compiling" = yes ||
11248 $as_test_x conftest$ac_exeext
11249 }; then
11250 :
7959else 11251else
7960 gdb_cv_bigtoc= 11252 $as_echo "$as_me: failed program was:" >&5
11253sed 's/^/| /' conftest.$ac_ext >&5
11254
11255 gdb_cv_bigtoc=
7961fi 11256fi
7962rm -f core conftest.err conftest.$ac_objext \ 11257
7963 conftest$ac_exeext conftest.$ac_ext 11258rm -rf conftest.dSYM
11259rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11260 conftest$ac_exeext conftest.$ac_ext
7964 11261
7965fi 11262fi
7966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5 11263{ $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
7967$as_echo "$gdb_cv_bigtoc" >&6; } 11264$as_echo "$gdb_cv_bigtoc" >&6; }
7968 ;; 11265 ;;
7969esac 11266esac
@@ -7991,9 +11288,13 @@ if test "${HAVE_X11}" = "yes"; then
7991 fi 11288 fi
7992 11289
7993 if test "${opsys}" = "gnu-linux"; then 11290 if test "${opsys}" = "gnu-linux"; then
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5 11291 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7995$as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; } 11292$as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
7996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11293 cat >conftest.$ac_ext <<_ACEOF
11294/* confdefs.h. */
11295_ACEOF
11296cat confdefs.h >>conftest.$ac_ext
11297cat >>conftest.$ac_ext <<_ACEOF
7997/* end confdefs.h. */ 11298/* end confdefs.h. */
7998 11299
7999int 11300int
@@ -8004,13 +11305,38 @@ XOpenDisplay ("foo");
8004 return 0; 11305 return 0;
8005} 11306}
8006_ACEOF 11307_ACEOF
8007if ac_fn_c_try_link "$LINENO"; then : 11308rm -f conftest.$ac_objext conftest$ac_exeext
11309if { (ac_try="$ac_link"
11310case "(($ac_try" in
11311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11312 *) ac_try_echo=$ac_try;;
11313esac
11314eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11315$as_echo "$ac_try_echo") >&5
11316 (eval "$ac_link") 2>conftest.er1
11317 ac_status=$?
11318 grep -v '^ *+' conftest.er1 >conftest.err
11319 rm -f conftest.er1
11320 cat conftest.err >&5
11321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } && {
11323 test -z "$ac_c_werror_flag" ||
11324 test ! -s conftest.err
11325 } && test -s conftest$ac_exeext && {
11326 test "$cross_compiling" = yes ||
11327 $as_test_x conftest$ac_exeext
11328 }; then
8008 xlinux_first_failure=no 11329 xlinux_first_failure=no
8009else 11330else
8010 xlinux_first_failure=yes 11331 $as_echo "$as_me: failed program was:" >&5
11332sed 's/^/| /' conftest.$ac_ext >&5
11333
11334 xlinux_first_failure=yes
8011fi 11335fi
8012rm -f core conftest.err conftest.$ac_objext \ 11336
8013 conftest$ac_exeext conftest.$ac_ext 11337rm -rf conftest.dSYM
11338rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11339 conftest$ac_exeext conftest.$ac_ext
8014 if test "${xlinux_first_failure}" = "yes"; then 11340 if test "${xlinux_first_failure}" = "yes"; then
8015 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" 11341 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
8016 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" 11342 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
@@ -8020,7 +11346,11 @@ rm -f core conftest.err conftest.$ac_objext \
8020 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" 11346 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
8021 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" 11347 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
8022 LIBS="$LIBS -b i486-linuxaout" 11348 LIBS="$LIBS -b i486-linuxaout"
8023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11349 cat >conftest.$ac_ext <<_ACEOF
11350/* confdefs.h. */
11351_ACEOF
11352cat confdefs.h >>conftest.$ac_ext
11353cat >>conftest.$ac_ext <<_ACEOF
8024/* end confdefs.h. */ 11354/* end confdefs.h. */
8025 11355
8026int 11356int
@@ -8031,13 +11361,38 @@ XOpenDisplay ("foo");
8031 return 0; 11361 return 0;
8032} 11362}
8033_ACEOF 11363_ACEOF
8034if 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
8035 xlinux_second_failure=no 11385 xlinux_second_failure=no
8036else 11386else
8037 xlinux_second_failure=yes 11387 $as_echo "$as_me: failed program was:" >&5
11388sed 's/^/| /' conftest.$ac_ext >&5
11389
11390 xlinux_second_failure=yes
8038fi 11391fi
8039rm -f core conftest.err conftest.$ac_objext \ 11392
8040 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
8041 if test "${xlinux_second_failure}" = "yes"; then 11396 if test "${xlinux_second_failure}" = "yes"; then
8042 # If we get the same failure with -b, there is no use adding -b. 11397 # If we get the same failure with -b, there is no use adding -b.
8043 # So take it out. This plays safe. 11398 # So take it out. This plays safe.
@@ -8045,23 +11400,27 @@ rm -f core conftest.err conftest.$ac_objext \
8045 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" 11400 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
8046 CPPFLAGS="$OLD_CPPFLAGS" 11401 CPPFLAGS="$OLD_CPPFLAGS"
8047 LIBS="$OLD_LIBS" 11402 LIBS="$OLD_LIBS"
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11403 { $as_echo "$as_me:$LINENO: result: no" >&5
8049$as_echo "no" >&6; } 11404$as_echo "no" >&6; }
8050 else 11405 else
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11406 { $as_echo "$as_me:$LINENO: result: yes" >&5
8052$as_echo "yes" >&6; } 11407$as_echo "yes" >&6; }
8053 fi 11408 fi
8054 else 11409 else
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11410 { $as_echo "$as_me:$LINENO: result: no" >&5
8056$as_echo "no" >&6; } 11411$as_echo "no" >&6; }
8057 fi 11412 fi
8058 fi 11413 fi
8059 11414
8060 # Reportedly, some broken Solaris systems have XKBlib.h but are missing 11415 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8061 # header files included from there. 11416 # header files included from there.
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5 11417 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
8063$as_echo_n "checking for Xkb... " >&6; } 11418$as_echo_n "checking for Xkb... " >&6; }
8064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11419 cat >conftest.$ac_ext <<_ACEOF
11420/* confdefs.h. */
11421_ACEOF
11422cat confdefs.h >>conftest.$ac_ext
11423cat >>conftest.$ac_ext <<_ACEOF
8065/* end confdefs.h. */ 11424/* end confdefs.h. */
8066#include <X11/Xlib.h> 11425#include <X11/Xlib.h>
8067#include <X11/XKBlib.h> 11426#include <X11/XKBlib.h>
@@ -8073,28 +11432,145 @@ XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8073 return 0; 11432 return 0;
8074} 11433}
8075_ACEOF 11434_ACEOF
8076if ac_fn_c_try_link "$LINENO"; then : 11435rm -f conftest.$ac_objext conftest$ac_exeext
11436if { (ac_try="$ac_link"
11437case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11440esac
11441eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11442$as_echo "$ac_try_echo") >&5
11443 (eval "$ac_link") 2>conftest.er1
11444 ac_status=$?
11445 grep -v '^ *+' conftest.er1 >conftest.err
11446 rm -f conftest.er1
11447 cat conftest.err >&5
11448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); } && {
11450 test -z "$ac_c_werror_flag" ||
11451 test ! -s conftest.err
11452 } && test -s conftest$ac_exeext && {
11453 test "$cross_compiling" = yes ||
11454 $as_test_x conftest$ac_exeext
11455 }; then
8077 emacs_xkb=yes 11456 emacs_xkb=yes
8078else 11457else
8079 emacs_xkb=no 11458 $as_echo "$as_me: failed program was:" >&5
11459sed 's/^/| /' conftest.$ac_ext >&5
11460
11461 emacs_xkb=no
8080fi 11462fi
8081rm -f core conftest.err conftest.$ac_objext \ 11463
8082 conftest$ac_exeext conftest.$ac_ext 11464rm -rf conftest.dSYM
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5 11465rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11466 conftest$ac_exeext conftest.$ac_ext
11467 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
8084$as_echo "$emacs_xkb" >&6; } 11468$as_echo "$emacs_xkb" >&6; }
8085 if test $emacs_xkb = yes; then 11469 if test $emacs_xkb = yes; then
8086 11470
8087$as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h 11471cat >>confdefs.h <<\_ACEOF
11472#define HAVE_XKBGETKEYBOARD 1
11473_ACEOF
8088 11474
8089 fi 11475 fi
8090 11476
8091 for ac_func in XrmSetDatabase XScreenResourceString \ 11477
11478
11479
11480
11481for ac_func in XrmSetDatabase XScreenResourceString \
8092XScreenNumberOfScreen XSetWMProtocols 11482XScreenNumberOfScreen XSetWMProtocols
8093do : 11483do
8094 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11484as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8095ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11485{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8096eval as_val=\$$as_ac_var 11486$as_echo_n "checking for $ac_func... " >&6; }
8097 if test "x$as_val" = x""yes; then : 11487if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11488 $as_echo_n "(cached) " >&6
11489else
11490 cat >conftest.$ac_ext <<_ACEOF
11491/* confdefs.h. */
11492_ACEOF
11493cat confdefs.h >>conftest.$ac_ext
11494cat >>conftest.$ac_ext <<_ACEOF
11495/* end confdefs.h. */
11496/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11498#define $ac_func innocuous_$ac_func
11499
11500/* System header to define __stub macros and hopefully few prototypes,
11501 which can conflict with char $ac_func (); below.
11502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11503 <limits.h> exists even on freestanding compilers. */
11504
11505#ifdef __STDC__
11506# include <limits.h>
11507#else
11508# include <assert.h>
11509#endif
11510
11511#undef $ac_func
11512
11513/* Override any GCC internal prototype to avoid an error.
11514 Use char because int might match the return type of a GCC
11515 builtin and then its argument prototype would still apply. */
11516#ifdef __cplusplus
11517extern "C"
11518#endif
11519char $ac_func ();
11520/* The GNU C library defines this for functions which it implements
11521 to always fail with ENOSYS. Some functions are actually named
11522 something starting with __ and the normal name is an alias. */
11523#if defined __stub_$ac_func || defined __stub___$ac_func
11524choke me
11525#endif
11526
11527int
11528main ()
11529{
11530return $ac_func ();
11531 ;
11532 return 0;
11533}
11534_ACEOF
11535rm -f conftest.$ac_objext conftest$ac_exeext
11536if { (ac_try="$ac_link"
11537case "(($ac_try" in
11538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11539 *) ac_try_echo=$ac_try;;
11540esac
11541eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11542$as_echo "$ac_try_echo") >&5
11543 (eval "$ac_link") 2>conftest.er1
11544 ac_status=$?
11545 grep -v '^ *+' conftest.er1 >conftest.err
11546 rm -f conftest.er1
11547 cat conftest.err >&5
11548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); } && {
11550 test -z "$ac_c_werror_flag" ||
11551 test ! -s conftest.err
11552 } && test -s conftest$ac_exeext && {
11553 test "$cross_compiling" = yes ||
11554 $as_test_x conftest$ac_exeext
11555 }; then
11556 eval "$as_ac_var=yes"
11557else
11558 $as_echo "$as_me: failed program was:" >&5
11559sed 's/^/| /' conftest.$ac_ext >&5
11560
11561 eval "$as_ac_var=no"
11562fi
11563
11564rm -rf conftest.dSYM
11565rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11566 conftest$ac_exeext conftest.$ac_ext
11567fi
11568ac_res=`eval 'as_val=${'$as_ac_var'}
11569 $as_echo "$as_val"'`
11570 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11571$as_echo "$ac_res" >&6; }
11572if test `eval 'as_val=${'$as_ac_var'}
11573 $as_echo "$as_val"'` = yes; then
8098 cat >>confdefs.h <<_ACEOF 11574 cat >>confdefs.h <<_ACEOF
8099#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11575#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8100_ACEOF 11576_ACEOF
@@ -8105,12 +11581,16 @@ done
8105fi 11581fi
8106 11582
8107if test "${window_system}" = "x11"; then 11583if test "${window_system}" = "x11"; then
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5 11584 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
8109$as_echo_n "checking X11 version 6... " >&6; } 11585$as_echo_n "checking X11 version 6... " >&6; }
8110 if test "${emacs_cv_x11_version_6+set}" = set; then : 11586 if test "${emacs_cv_x11_version_6+set}" = set; then
8111 $as_echo_n "(cached) " >&6 11587 $as_echo_n "(cached) " >&6
8112else 11588else
8113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11589 cat >conftest.$ac_ext <<_ACEOF
11590/* confdefs.h. */
11591_ACEOF
11592cat confdefs.h >>conftest.$ac_ext
11593cat >>conftest.$ac_ext <<_ACEOF
8114/* end confdefs.h. */ 11594/* end confdefs.h. */
8115#include <X11/Xlib.h> 11595#include <X11/Xlib.h>
8116int 11596int
@@ -8124,23 +11604,50 @@ fail;
8124 return 0; 11604 return 0;
8125} 11605}
8126_ACEOF 11606_ACEOF
8127if ac_fn_c_try_link "$LINENO"; then : 11607rm -f conftest.$ac_objext conftest$ac_exeext
11608if { (ac_try="$ac_link"
11609case "(($ac_try" in
11610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611 *) ac_try_echo=$ac_try;;
11612esac
11613eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11614$as_echo "$ac_try_echo") >&5
11615 (eval "$ac_link") 2>conftest.er1
11616 ac_status=$?
11617 grep -v '^ *+' conftest.er1 >conftest.err
11618 rm -f conftest.er1
11619 cat conftest.err >&5
11620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); } && {
11622 test -z "$ac_c_werror_flag" ||
11623 test ! -s conftest.err
11624 } && test -s conftest$ac_exeext && {
11625 test "$cross_compiling" = yes ||
11626 $as_test_x conftest$ac_exeext
11627 }; then
8128 emacs_cv_x11_version_6=yes 11628 emacs_cv_x11_version_6=yes
8129else 11629else
8130 emacs_cv_x11_version_6=no 11630 $as_echo "$as_me: failed program was:" >&5
11631sed 's/^/| /' conftest.$ac_ext >&5
11632
11633 emacs_cv_x11_version_6=no
8131fi 11634fi
8132rm -f core conftest.err conftest.$ac_objext \ 11635
8133 conftest$ac_exeext conftest.$ac_ext 11636rm -rf conftest.dSYM
11637rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11638 conftest$ac_exeext conftest.$ac_ext
8134fi 11639fi
8135 11640
8136 if test $emacs_cv_x11_version_6 = yes; then 11641 if test $emacs_cv_x11_version_6 = yes; then
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5 11642 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
8138$as_echo "6 or newer" >&6; } 11643$as_echo "6 or newer" >&6; }
8139 11644
8140$as_echo "#define HAVE_X11R6 1" >>confdefs.h 11645cat >>confdefs.h <<\_ACEOF
11646#define HAVE_X11R6 1
11647_ACEOF
8141 11648
8142 else 11649 else
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5 11650 { $as_echo "$as_me:$LINENO: result: before 6" >&5
8144$as_echo "before 6" >&6; } 11651$as_echo "before 6" >&6; }
8145 fi 11652 fi
8146fi 11653fi
@@ -8158,9 +11665,9 @@ if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
8158 11665
8159 # Extract the first word of "pkg-config", so it can be a program name with args. 11666 # Extract the first word of "pkg-config", so it can be a program name with args.
8160set dummy pkg-config; ac_word=$2 11667set dummy pkg-config; ac_word=$2
8161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11668{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8162$as_echo_n "checking for $ac_word... " >&6; } 11669$as_echo_n "checking for $ac_word... " >&6; }
8163if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 11670if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8164 $as_echo_n "(cached) " >&6 11671 $as_echo_n "(cached) " >&6
8165else 11672else
8166 case $PKG_CONFIG in 11673 case $PKG_CONFIG in
@@ -8173,14 +11680,14 @@ for as_dir in $PATH
8173do 11680do
8174 IFS=$as_save_IFS 11681 IFS=$as_save_IFS
8175 test -z "$as_dir" && as_dir=. 11682 test -z "$as_dir" && as_dir=.
8176 for ac_exec_ext in '' $ac_executable_extensions; do 11683 for ac_exec_ext in '' $ac_executable_extensions; do
8177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8178 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11685 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11686 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8180 break 2 11687 break 2
8181 fi 11688 fi
8182done 11689done
8183 done 11690done
8184IFS=$as_save_IFS 11691IFS=$as_save_IFS
8185 11692
8186 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 11693 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -8189,10 +11696,10 @@ esac
8189fi 11696fi
8190PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11697PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8191if test -n "$PKG_CONFIG"; then 11698if test -n "$PKG_CONFIG"; then
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11699 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8193$as_echo "$PKG_CONFIG" >&6; } 11700$as_echo "$PKG_CONFIG" >&6; }
8194else 11701else
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11702 { $as_echo "$as_me:$LINENO: result: no" >&5
8196$as_echo "no" >&6; } 11703$as_echo "no" >&6; }
8197fi 11704fi
8198 11705
@@ -8203,27 +11710,27 @@ fi
8203 else 11710 else
8204 PKG_CONFIG_MIN_VERSION=0.9.0 11711 PKG_CONFIG_MIN_VERSION=0.9.0
8205 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 11712 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5 11713 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
8207$as_echo_n "checking for $RSVG_MODULE... " >&6; } 11714$as_echo_n "checking for $RSVG_MODULE... " >&6; }
8208 11715
8209 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then 11716 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11717 { $as_echo "$as_me:$LINENO: result: yes" >&5
8211$as_echo "yes" >&6; } 11718$as_echo "yes" >&6; }
8212 succeeded=yes 11719 succeeded=yes
8213 11720
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5 11721 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
8215$as_echo_n "checking RSVG_CFLAGS... " >&6; } 11722$as_echo_n "checking RSVG_CFLAGS... " >&6; }
8216 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'` 11723 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5 11724 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
8218$as_echo "$RSVG_CFLAGS" >&6; } 11725$as_echo "$RSVG_CFLAGS" >&6; }
8219 11726
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5 11727 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
8221$as_echo_n "checking RSVG_LIBS... " >&6; } 11728$as_echo_n "checking RSVG_LIBS... " >&6; }
8222 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'` 11729 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5 11730 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
8224$as_echo "$RSVG_LIBS" >&6; } 11731$as_echo "$RSVG_LIBS" >&6; }
8225 else 11732 else
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11733 { $as_echo "$as_me:$LINENO: result: no" >&5
8227$as_echo "no" >&6; } 11734$as_echo "no" >&6; }
8228 RSVG_CFLAGS="" 11735 RSVG_CFLAGS=""
8229 RSVG_LIBS="" 11736 RSVG_LIBS=""
@@ -8253,7 +11760,9 @@ $as_echo "no" >&6; }
8253 if test ".${RSVG_CFLAGS}" != "."; then 11760 if test ".${RSVG_CFLAGS}" != "."; then
8254 HAVE_RSVG=yes 11761 HAVE_RSVG=yes
8255 11762
8256$as_echo "#define HAVE_RSVG 1" >>confdefs.h 11763cat >>confdefs.h <<\_ACEOF
11764#define HAVE_RSVG 1
11765_ACEOF
8257 11766
8258 CFLAGS="$CFLAGS $RSVG_CFLAGS" 11767 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8259 LIBS="$RSVG_LIBS $LIBS" 11768 LIBS="$RSVG_LIBS $LIBS"
@@ -8273,9 +11782,9 @@ if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8273 11782
8274 # Extract the first word of "pkg-config", so it can be a program name with args. 11783 # Extract the first word of "pkg-config", so it can be a program name with args.
8275set dummy pkg-config; ac_word=$2 11784set dummy pkg-config; ac_word=$2
8276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11785{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8277$as_echo_n "checking for $ac_word... " >&6; } 11786$as_echo_n "checking for $ac_word... " >&6; }
8278if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 11787if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8279 $as_echo_n "(cached) " >&6 11788 $as_echo_n "(cached) " >&6
8280else 11789else
8281 case $PKG_CONFIG in 11790 case $PKG_CONFIG in
@@ -8288,14 +11797,14 @@ for as_dir in $PATH
8288do 11797do
8289 IFS=$as_save_IFS 11798 IFS=$as_save_IFS
8290 test -z "$as_dir" && as_dir=. 11799 test -z "$as_dir" && as_dir=.
8291 for ac_exec_ext in '' $ac_executable_extensions; do 11800 for ac_exec_ext in '' $ac_executable_extensions; do
8292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8293 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11802 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11803 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8295 break 2 11804 break 2
8296 fi 11805 fi
8297done 11806done
8298 done 11807done
8299IFS=$as_save_IFS 11808IFS=$as_save_IFS
8300 11809
8301 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 11810 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -8304,10 +11813,10 @@ esac
8304fi 11813fi
8305PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11814PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8306if test -n "$PKG_CONFIG"; then 11815if test -n "$PKG_CONFIG"; then
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11816 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8308$as_echo "$PKG_CONFIG" >&6; } 11817$as_echo "$PKG_CONFIG" >&6; }
8309else 11818else
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11819 { $as_echo "$as_me:$LINENO: result: no" >&5
8311$as_echo "no" >&6; } 11820$as_echo "no" >&6; }
8312fi 11821fi
8313 11822
@@ -8318,27 +11827,27 @@ fi
8318 else 11827 else
8319 PKG_CONFIG_MIN_VERSION=0.9.0 11828 PKG_CONFIG_MIN_VERSION=0.9.0
8320 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 11829 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5 11830 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8322$as_echo_n "checking for $GTK_MODULES... " >&6; } 11831$as_echo_n "checking for $GTK_MODULES... " >&6; }
8323 11832
8324 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then 11833 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11834 { $as_echo "$as_me:$LINENO: result: yes" >&5
8326$as_echo "yes" >&6; } 11835$as_echo "yes" >&6; }
8327 succeeded=yes 11836 succeeded=yes
8328 11837
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5 11838 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8330$as_echo_n "checking GTK_CFLAGS... " >&6; } 11839$as_echo_n "checking GTK_CFLAGS... " >&6; }
8331 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'` 11840 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5 11841 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8333$as_echo "$GTK_CFLAGS" >&6; } 11842$as_echo "$GTK_CFLAGS" >&6; }
8334 11843
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5 11844 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8336$as_echo_n "checking GTK_LIBS... " >&6; } 11845$as_echo_n "checking GTK_LIBS... " >&6; }
8337 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'` 11846 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5 11847 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8339$as_echo "$GTK_LIBS" >&6; } 11848$as_echo "$GTK_LIBS" >&6; }
8340 else 11849 else
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11850 { $as_echo "$as_me:$LINENO: result: no" >&5
8342$as_echo "no" >&6; } 11851$as_echo "no" >&6; }
8343 GTK_CFLAGS="" 11852 GTK_CFLAGS=""
8344 GTK_LIBS="" 11853 GTK_LIBS=""
@@ -8363,7 +11872,9 @@ $as_echo "no" >&6; }
8363 fi 11872 fi
8364 11873
8365 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then 11874 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8366 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5 11875 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11876$as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11877 { (exit 1); exit 1; }; }
8367 fi 11878 fi
8368fi 11879fi
8369 11880
@@ -8377,12 +11888,101 @@ if test x"$pkg_check_gtk" = xyes; then
8377 CFLAGS="$CFLAGS $GTK_CFLAGS" 11888 CFLAGS="$CFLAGS $GTK_CFLAGS"
8378 LIBS="$GTK_LIBS $LIBS" 11889 LIBS="$GTK_LIBS $LIBS"
8379 GTK_COMPILES=no 11890 GTK_COMPILES=no
8380 for ac_func in gtk_main 11891
8381do : 11892for ac_func in gtk_main
8382 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main" 11893do
8383if test "x$ac_cv_func_gtk_main" = x""yes; then : 11894as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11895{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11896$as_echo_n "checking for $ac_func... " >&6; }
11897if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11898 $as_echo_n "(cached) " >&6
11899else
11900 cat >conftest.$ac_ext <<_ACEOF
11901/* confdefs.h. */
11902_ACEOF
11903cat confdefs.h >>conftest.$ac_ext
11904cat >>conftest.$ac_ext <<_ACEOF
11905/* end confdefs.h. */
11906/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11908#define $ac_func innocuous_$ac_func
11909
11910/* System header to define __stub macros and hopefully few prototypes,
11911 which can conflict with char $ac_func (); below.
11912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11913 <limits.h> exists even on freestanding compilers. */
11914
11915#ifdef __STDC__
11916# include <limits.h>
11917#else
11918# include <assert.h>
11919#endif
11920
11921#undef $ac_func
11922
11923/* Override any GCC internal prototype to avoid an error.
11924 Use char because int might match the return type of a GCC
11925 builtin and then its argument prototype would still apply. */
11926#ifdef __cplusplus
11927extern "C"
11928#endif
11929char $ac_func ();
11930/* The GNU C library defines this for functions which it implements
11931 to always fail with ENOSYS. Some functions are actually named
11932 something starting with __ and the normal name is an alias. */
11933#if defined __stub_$ac_func || defined __stub___$ac_func
11934choke me
11935#endif
11936
11937int
11938main ()
11939{
11940return $ac_func ();
11941 ;
11942 return 0;
11943}
11944_ACEOF
11945rm -f conftest.$ac_objext conftest$ac_exeext
11946if { (ac_try="$ac_link"
11947case "(($ac_try" in
11948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949 *) ac_try_echo=$ac_try;;
11950esac
11951eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11952$as_echo "$ac_try_echo") >&5
11953 (eval "$ac_link") 2>conftest.er1
11954 ac_status=$?
11955 grep -v '^ *+' conftest.er1 >conftest.err
11956 rm -f conftest.er1
11957 cat conftest.err >&5
11958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); } && {
11960 test -z "$ac_c_werror_flag" ||
11961 test ! -s conftest.err
11962 } && test -s conftest$ac_exeext && {
11963 test "$cross_compiling" = yes ||
11964 $as_test_x conftest$ac_exeext
11965 }; then
11966 eval "$as_ac_var=yes"
11967else
11968 $as_echo "$as_me: failed program was:" >&5
11969sed 's/^/| /' conftest.$ac_ext >&5
11970
11971 eval "$as_ac_var=no"
11972fi
11973
11974rm -rf conftest.dSYM
11975rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11976 conftest$ac_exeext conftest.$ac_ext
11977fi
11978ac_res=`eval 'as_val=${'$as_ac_var'}
11979 $as_echo "$as_val"'`
11980 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11981$as_echo "$ac_res" >&6; }
11982if test `eval 'as_val=${'$as_ac_var'}
11983 $as_echo "$as_val"'` = yes; then
8384 cat >>confdefs.h <<_ACEOF 11984 cat >>confdefs.h <<_ACEOF
8385#define HAVE_GTK_MAIN 1 11985#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8386_ACEOF 11986_ACEOF
8387 GTK_COMPILES=yes 11987 GTK_COMPILES=yes
8388fi 11988fi
@@ -8390,19 +11990,23 @@ done
8390 11990
8391 if test "${GTK_COMPILES}" != "yes"; then 11991 if test "${GTK_COMPILES}" != "yes"; then
8392 if test "$USE_X_TOOLKIT" != "maybe"; then 11992 if test "$USE_X_TOOLKIT" != "maybe"; then
8393 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5; 11993 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11994$as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11995 { (exit 1); exit 1; }; };
8394 fi 11996 fi
8395 else 11997 else
8396 HAVE_GTK=yes 11998 HAVE_GTK=yes
8397 11999
8398$as_echo "#define USE_GTK 1" >>confdefs.h 12000cat >>confdefs.h <<\_ACEOF
12001#define USE_GTK 1
12002_ACEOF
8399 12003
8400 GTK_OBJ=gtkutil.o 12004 GTK_OBJ=gtkutil.o
8401 USE_X_TOOLKIT=none 12005 USE_X_TOOLKIT=none
8402 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then 12006 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
8403 : 12007 :
8404 else 12008 else
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with 12009 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
8406 closing open displays. This is no problem if you just use 12010 closing open displays. This is no problem if you just use
8407 one display, but if you use more than one and close one of them 12011 one display, but if you use more than one and close one of them
8408 Emacs may crash." >&5 12012 Emacs may crash." >&5
@@ -8425,12 +12029,101 @@ if test "${HAVE_GTK}" = "yes"; then
8425 fi 12029 fi
8426 12030
8427 HAVE_GTK_MULTIDISPLAY=no 12031 HAVE_GTK_MULTIDISPLAY=no
8428 for ac_func in gdk_display_open 12032
8429do : 12033for ac_func in gdk_display_open
8430 ac_fn_c_check_func "$LINENO" "gdk_display_open" "ac_cv_func_gdk_display_open" 12034do
8431if test "x$ac_cv_func_gdk_display_open" = x""yes; then : 12035as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12036{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12037$as_echo_n "checking for $ac_func... " >&6; }
12038if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12039 $as_echo_n "(cached) " >&6
12040else
12041 cat >conftest.$ac_ext <<_ACEOF
12042/* confdefs.h. */
12043_ACEOF
12044cat confdefs.h >>conftest.$ac_ext
12045cat >>conftest.$ac_ext <<_ACEOF
12046/* end confdefs.h. */
12047/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12049#define $ac_func innocuous_$ac_func
12050
12051/* System header to define __stub macros and hopefully few prototypes,
12052 which can conflict with char $ac_func (); below.
12053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12054 <limits.h> exists even on freestanding compilers. */
12055
12056#ifdef __STDC__
12057# include <limits.h>
12058#else
12059# include <assert.h>
12060#endif
12061
12062#undef $ac_func
12063
12064/* Override any GCC internal prototype to avoid an error.
12065 Use char because int might match the return type of a GCC
12066 builtin and then its argument prototype would still apply. */
12067#ifdef __cplusplus
12068extern "C"
12069#endif
12070char $ac_func ();
12071/* The GNU C library defines this for functions which it implements
12072 to always fail with ENOSYS. Some functions are actually named
12073 something starting with __ and the normal name is an alias. */
12074#if defined __stub_$ac_func || defined __stub___$ac_func
12075choke me
12076#endif
12077
12078int
12079main ()
12080{
12081return $ac_func ();
12082 ;
12083 return 0;
12084}
12085_ACEOF
12086rm -f conftest.$ac_objext conftest$ac_exeext
12087if { (ac_try="$ac_link"
12088case "(($ac_try" in
12089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12090 *) ac_try_echo=$ac_try;;
12091esac
12092eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12093$as_echo "$ac_try_echo") >&5
12094 (eval "$ac_link") 2>conftest.er1
12095 ac_status=$?
12096 grep -v '^ *+' conftest.er1 >conftest.err
12097 rm -f conftest.er1
12098 cat conftest.err >&5
12099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); } && {
12101 test -z "$ac_c_werror_flag" ||
12102 test ! -s conftest.err
12103 } && test -s conftest$ac_exeext && {
12104 test "$cross_compiling" = yes ||
12105 $as_test_x conftest$ac_exeext
12106 }; then
12107 eval "$as_ac_var=yes"
12108else
12109 $as_echo "$as_me: failed program was:" >&5
12110sed 's/^/| /' conftest.$ac_ext >&5
12111
12112 eval "$as_ac_var=no"
12113fi
12114
12115rm -rf conftest.dSYM
12116rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12117 conftest$ac_exeext conftest.$ac_ext
12118fi
12119ac_res=`eval 'as_val=${'$as_ac_var'}
12120 $as_echo "$as_val"'`
12121 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12122$as_echo "$ac_res" >&6; }
12123if test `eval 'as_val=${'$as_ac_var'}
12124 $as_echo "$as_val"'` = yes; then
8432 cat >>confdefs.h <<_ACEOF 12125 cat >>confdefs.h <<_ACEOF
8433#define HAVE_GDK_DISPLAY_OPEN 1 12126#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8434_ACEOF 12127_ACEOF
8435 HAVE_GTK_MULTIDISPLAY=yes 12128 HAVE_GTK_MULTIDISPLAY=yes
8436fi 12129fi
@@ -8438,27 +12131,170 @@ done
8438 12131
8439 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then 12132 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
8440 12133
8441$as_echo "#define HAVE_GTK_MULTIDISPLAY 1" >>confdefs.h 12134cat >>confdefs.h <<\_ACEOF
12135#define HAVE_GTK_MULTIDISPLAY 1
12136_ACEOF
8442 12137
8443 fi 12138 fi
8444 12139
8445 HAVE_GTK_FILE_SELECTION=no 12140 HAVE_GTK_FILE_SELECTION=no
8446 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default 12141 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
12142$as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
12143if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
12144 $as_echo_n "(cached) " >&6
12145else
12146 cat >conftest.$ac_ext <<_ACEOF
12147/* confdefs.h. */
12148_ACEOF
12149cat confdefs.h >>conftest.$ac_ext
12150cat >>conftest.$ac_ext <<_ACEOF
12151/* end confdefs.h. */
12152$ac_includes_default
8447#include <gtk/gtk.h> 12153#include <gtk/gtk.h>
8448" 12154
8449if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then : 12155int
12156main ()
12157{
12158#ifndef GTK_TYPE_FILE_SELECTION
12159 (void) GTK_TYPE_FILE_SELECTION;
12160#endif
12161
12162 ;
12163 return 0;
12164}
12165_ACEOF
12166rm -f conftest.$ac_objext
12167if { (ac_try="$ac_compile"
12168case "(($ac_try" in
12169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12170 *) ac_try_echo=$ac_try;;
12171esac
12172eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12173$as_echo "$ac_try_echo") >&5
12174 (eval "$ac_compile") 2>conftest.er1
12175 ac_status=$?
12176 grep -v '^ *+' conftest.er1 >conftest.err
12177 rm -f conftest.er1
12178 cat conftest.err >&5
12179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); } && {
12181 test -z "$ac_c_werror_flag" ||
12182 test ! -s conftest.err
12183 } && test -s conftest.$ac_objext; then
12184 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12185else
12186 $as_echo "$as_me: failed program was:" >&5
12187sed 's/^/| /' conftest.$ac_ext >&5
12188
12189 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12190fi
12191
12192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12193fi
12194{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12195$as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12196if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
8450 HAVE_GTK_FILE_SELECTION=yes 12197 HAVE_GTK_FILE_SELECTION=yes
8451else 12198else
8452 HAVE_GTK_FILE_SELECTION=no 12199 HAVE_GTK_FILE_SELECTION=no
8453fi 12200fi
8454 12201
8455 if test "$HAVE_GTK_FILE_SELECTION" = yes; then 12202 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
8456 for ac_func in gtk_file_selection_new 12203
8457do : 12204for ac_func in gtk_file_selection_new
8458 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new" 12205do
8459if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then : 12206as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12207{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12208$as_echo_n "checking for $ac_func... " >&6; }
12209if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12210 $as_echo_n "(cached) " >&6
12211else
12212 cat >conftest.$ac_ext <<_ACEOF
12213/* confdefs.h. */
12214_ACEOF
12215cat confdefs.h >>conftest.$ac_ext
12216cat >>conftest.$ac_ext <<_ACEOF
12217/* end confdefs.h. */
12218/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12220#define $ac_func innocuous_$ac_func
12221
12222/* System header to define __stub macros and hopefully few prototypes,
12223 which can conflict with char $ac_func (); below.
12224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12225 <limits.h> exists even on freestanding compilers. */
12226
12227#ifdef __STDC__
12228# include <limits.h>
12229#else
12230# include <assert.h>
12231#endif
12232
12233#undef $ac_func
12234
12235/* Override any GCC internal prototype to avoid an error.
12236 Use char because int might match the return type of a GCC
12237 builtin and then its argument prototype would still apply. */
12238#ifdef __cplusplus
12239extern "C"
12240#endif
12241char $ac_func ();
12242/* The GNU C library defines this for functions which it implements
12243 to always fail with ENOSYS. Some functions are actually named
12244 something starting with __ and the normal name is an alias. */
12245#if defined __stub_$ac_func || defined __stub___$ac_func
12246choke me
12247#endif
12248
12249int
12250main ()
12251{
12252return $ac_func ();
12253 ;
12254 return 0;
12255}
12256_ACEOF
12257rm -f conftest.$ac_objext conftest$ac_exeext
12258if { (ac_try="$ac_link"
12259case "(($ac_try" in
12260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12261 *) ac_try_echo=$ac_try;;
12262esac
12263eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12264$as_echo "$ac_try_echo") >&5
12265 (eval "$ac_link") 2>conftest.er1
12266 ac_status=$?
12267 grep -v '^ *+' conftest.er1 >conftest.err
12268 rm -f conftest.er1
12269 cat conftest.err >&5
12270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } && {
12272 test -z "$ac_c_werror_flag" ||
12273 test ! -s conftest.err
12274 } && test -s conftest$ac_exeext && {
12275 test "$cross_compiling" = yes ||
12276 $as_test_x conftest$ac_exeext
12277 }; then
12278 eval "$as_ac_var=yes"
12279else
12280 $as_echo "$as_me: failed program was:" >&5
12281sed 's/^/| /' conftest.$ac_ext >&5
12282
12283 eval "$as_ac_var=no"
12284fi
12285
12286rm -rf conftest.dSYM
12287rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12288 conftest$ac_exeext conftest.$ac_ext
12289fi
12290ac_res=`eval 'as_val=${'$as_ac_var'}
12291 $as_echo "$as_val"'`
12292 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12293$as_echo "$ac_res" >&6; }
12294if test `eval 'as_val=${'$as_ac_var'}
12295 $as_echo "$as_val"'` = yes; then
8460 cat >>confdefs.h <<_ACEOF 12296 cat >>confdefs.h <<_ACEOF
8461#define HAVE_GTK_FILE_SELECTION_NEW 1 12297#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8462_ACEOF 12298_ACEOF
8463 HAVE_GTK_FILE_SELECTION=yes 12299 HAVE_GTK_FILE_SELECTION=yes
8464else 12300else
@@ -8469,22 +12305,163 @@ done
8469 fi 12305 fi
8470 12306
8471 HAVE_GTK_FILE_CHOOSER=no 12307 HAVE_GTK_FILE_CHOOSER=no
8472 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_CHOOSER" "ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" "$ac_includes_default 12308 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12309$as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12310if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12311 $as_echo_n "(cached) " >&6
12312else
12313 cat >conftest.$ac_ext <<_ACEOF
12314/* confdefs.h. */
12315_ACEOF
12316cat confdefs.h >>conftest.$ac_ext
12317cat >>conftest.$ac_ext <<_ACEOF
12318/* end confdefs.h. */
12319$ac_includes_default
8473#include <gtk/gtk.h> 12320#include <gtk/gtk.h>
8474" 12321
8475if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x""yes; then : 12322int
12323main ()
12324{
12325#ifndef GTK_TYPE_FILE_CHOOSER
12326 (void) GTK_TYPE_FILE_CHOOSER;
12327#endif
12328
12329 ;
12330 return 0;
12331}
12332_ACEOF
12333rm -f conftest.$ac_objext
12334if { (ac_try="$ac_compile"
12335case "(($ac_try" in
12336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337 *) ac_try_echo=$ac_try;;
12338esac
12339eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12340$as_echo "$ac_try_echo") >&5
12341 (eval "$ac_compile") 2>conftest.er1
12342 ac_status=$?
12343 grep -v '^ *+' conftest.er1 >conftest.err
12344 rm -f conftest.er1
12345 cat conftest.err >&5
12346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); } && {
12348 test -z "$ac_c_werror_flag" ||
12349 test ! -s conftest.err
12350 } && test -s conftest.$ac_objext; then
12351 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12352else
12353 $as_echo "$as_me: failed program was:" >&5
12354sed 's/^/| /' conftest.$ac_ext >&5
12355
12356 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12357fi
12358
12359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12360fi
12361{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12362$as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12363if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
8476 HAVE_GTK_FILE_CHOOSER=yes 12364 HAVE_GTK_FILE_CHOOSER=yes
8477else 12365else
8478 HAVE_GTK_FILE_CHOOSER=no 12366 HAVE_GTK_FILE_CHOOSER=no
8479fi 12367fi
8480 12368
8481 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then 12369 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8482 for ac_func in gtk_file_chooser_dialog_new 12370
8483do : 12371for ac_func in gtk_file_chooser_dialog_new
8484 ac_fn_c_check_func "$LINENO" "gtk_file_chooser_dialog_new" "ac_cv_func_gtk_file_chooser_dialog_new" 12372do
8485if test "x$ac_cv_func_gtk_file_chooser_dialog_new" = x""yes; then : 12373as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12374{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12375$as_echo_n "checking for $ac_func... " >&6; }
12376if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12377 $as_echo_n "(cached) " >&6
12378else
12379 cat >conftest.$ac_ext <<_ACEOF
12380/* confdefs.h. */
12381_ACEOF
12382cat confdefs.h >>conftest.$ac_ext
12383cat >>conftest.$ac_ext <<_ACEOF
12384/* end confdefs.h. */
12385/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12387#define $ac_func innocuous_$ac_func
12388
12389/* System header to define __stub macros and hopefully few prototypes,
12390 which can conflict with char $ac_func (); below.
12391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12392 <limits.h> exists even on freestanding compilers. */
12393
12394#ifdef __STDC__
12395# include <limits.h>
12396#else
12397# include <assert.h>
12398#endif
12399
12400#undef $ac_func
12401
12402/* Override any GCC internal prototype to avoid an error.
12403 Use char because int might match the return type of a GCC
12404 builtin and then its argument prototype would still apply. */
12405#ifdef __cplusplus
12406extern "C"
12407#endif
12408char $ac_func ();
12409/* The GNU C library defines this for functions which it implements
12410 to always fail with ENOSYS. Some functions are actually named
12411 something starting with __ and the normal name is an alias. */
12412#if defined __stub_$ac_func || defined __stub___$ac_func
12413choke me
12414#endif
12415
12416int
12417main ()
12418{
12419return $ac_func ();
12420 ;
12421 return 0;
12422}
12423_ACEOF
12424rm -f conftest.$ac_objext conftest$ac_exeext
12425if { (ac_try="$ac_link"
12426case "(($ac_try" in
12427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428 *) ac_try_echo=$ac_try;;
12429esac
12430eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12431$as_echo "$ac_try_echo") >&5
12432 (eval "$ac_link") 2>conftest.er1
12433 ac_status=$?
12434 grep -v '^ *+' conftest.er1 >conftest.err
12435 rm -f conftest.er1
12436 cat conftest.err >&5
12437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); } && {
12439 test -z "$ac_c_werror_flag" ||
12440 test ! -s conftest.err
12441 } && test -s conftest$ac_exeext && {
12442 test "$cross_compiling" = yes ||
12443 $as_test_x conftest$ac_exeext
12444 }; then
12445 eval "$as_ac_var=yes"
12446else
12447 $as_echo "$as_me: failed program was:" >&5
12448sed 's/^/| /' conftest.$ac_ext >&5
12449
12450 eval "$as_ac_var=no"
12451fi
12452
12453rm -rf conftest.dSYM
12454rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12455 conftest$ac_exeext conftest.$ac_ext
12456fi
12457ac_res=`eval 'as_val=${'$as_ac_var'}
12458 $as_echo "$as_val"'`
12459 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12460$as_echo "$ac_res" >&6; }
12461if test `eval 'as_val=${'$as_ac_var'}
12462 $as_echo "$as_val"'` = yes; then
8486 cat >>confdefs.h <<_ACEOF 12463 cat >>confdefs.h <<_ACEOF
8487#define HAVE_GTK_FILE_CHOOSER_DIALOG_NEW 1 12464#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8488_ACEOF 12465_ACEOF
8489 HAVE_GTK_FILE_CHOOSER=yes 12466 HAVE_GTK_FILE_CHOOSER=yes
8490else 12467else
@@ -8497,18 +12474,153 @@ done
8497 if test "$HAVE_GTK_FILE_SELECTION" = yes \ 12474 if test "$HAVE_GTK_FILE_SELECTION" = yes \
8498 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then 12475 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8499 12476
8500$as_echo "#define HAVE_GTK_FILE_BOTH 1" >>confdefs.h 12477cat >>confdefs.h <<\_ACEOF
12478#define HAVE_GTK_FILE_BOTH 1
12479_ACEOF
8501 12480
8502 fi 12481 fi
8503 12482
8504 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then 12483 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8505 HAVE_GTK_AND_PTHREAD=no 12484 HAVE_GTK_AND_PTHREAD=no
8506 for ac_header in pthread.h 12485
8507do : 12486for ac_header in pthread.h
8508 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 12487do
8509if test "x$ac_cv_header_pthread_h" = x""yes; then : 12488as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12489if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12490 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12491$as_echo_n "checking for $ac_header... " >&6; }
12492if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12493 $as_echo_n "(cached) " >&6
12494fi
12495ac_res=`eval 'as_val=${'$as_ac_Header'}
12496 $as_echo "$as_val"'`
12497 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12498$as_echo "$ac_res" >&6; }
12499else
12500 # Is the header compilable?
12501{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12502$as_echo_n "checking $ac_header usability... " >&6; }
12503cat >conftest.$ac_ext <<_ACEOF
12504/* confdefs.h. */
12505_ACEOF
12506cat confdefs.h >>conftest.$ac_ext
12507cat >>conftest.$ac_ext <<_ACEOF
12508/* end confdefs.h. */
12509$ac_includes_default
12510#include <$ac_header>
12511_ACEOF
12512rm -f conftest.$ac_objext
12513if { (ac_try="$ac_compile"
12514case "(($ac_try" in
12515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516 *) ac_try_echo=$ac_try;;
12517esac
12518eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12519$as_echo "$ac_try_echo") >&5
12520 (eval "$ac_compile") 2>conftest.er1
12521 ac_status=$?
12522 grep -v '^ *+' conftest.er1 >conftest.err
12523 rm -f conftest.er1
12524 cat conftest.err >&5
12525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); } && {
12527 test -z "$ac_c_werror_flag" ||
12528 test ! -s conftest.err
12529 } && test -s conftest.$ac_objext; then
12530 ac_header_compiler=yes
12531else
12532 $as_echo "$as_me: failed program was:" >&5
12533sed 's/^/| /' conftest.$ac_ext >&5
12534
12535 ac_header_compiler=no
12536fi
12537
12538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12539{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12540$as_echo "$ac_header_compiler" >&6; }
12541
12542# Is the header present?
12543{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12544$as_echo_n "checking $ac_header presence... " >&6; }
12545cat >conftest.$ac_ext <<_ACEOF
12546/* confdefs.h. */
12547_ACEOF
12548cat confdefs.h >>conftest.$ac_ext
12549cat >>conftest.$ac_ext <<_ACEOF
12550/* end confdefs.h. */
12551#include <$ac_header>
12552_ACEOF
12553if { (ac_try="$ac_cpp conftest.$ac_ext"
12554case "(($ac_try" in
12555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12556 *) ac_try_echo=$ac_try;;
12557esac
12558eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12559$as_echo "$ac_try_echo") >&5
12560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12561 ac_status=$?
12562 grep -v '^ *+' conftest.er1 >conftest.err
12563 rm -f conftest.er1
12564 cat conftest.err >&5
12565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); } >/dev/null && {
12567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12568 test ! -s conftest.err
12569 }; then
12570 ac_header_preproc=yes
12571else
12572 $as_echo "$as_me: failed program was:" >&5
12573sed 's/^/| /' conftest.$ac_ext >&5
12574
12575 ac_header_preproc=no
12576fi
12577
12578rm -f conftest.err conftest.$ac_ext
12579{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12580$as_echo "$ac_header_preproc" >&6; }
12581
12582# So? What about this header?
12583case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12584 yes:no: )
12585 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12586$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12587 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12588$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12589 ac_header_preproc=yes
12590 ;;
12591 no:yes:* )
12592 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12593$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12594 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12595$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12596 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12597$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12599$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12601$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12603$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12604
12605 ;;
12606esac
12607{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12608$as_echo_n "checking for $ac_header... " >&6; }
12609if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12610 $as_echo_n "(cached) " >&6
12611else
12612 eval "$as_ac_Header=\$ac_header_preproc"
12613fi
12614ac_res=`eval 'as_val=${'$as_ac_Header'}
12615 $as_echo "$as_val"'`
12616 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12617$as_echo "$ac_res" >&6; }
12618
12619fi
12620if test `eval 'as_val=${'$as_ac_Header'}
12621 $as_echo "$as_val"'` = yes; then
8510 cat >>confdefs.h <<_ACEOF 12622 cat >>confdefs.h <<_ACEOF
8511#define HAVE_PTHREAD_H 1 12623#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8512_ACEOF 12624_ACEOF
8513 12625
8514fi 12626fi
@@ -8516,14 +12628,18 @@ fi
8516done 12628done
8517 12629
8518 if test "$ac_cv_header_pthread_h"; then 12630 if test "$ac_cv_header_pthread_h"; then
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5 12631 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
8520$as_echo_n "checking for pthread_self in -lpthread... " >&6; } 12632$as_echo_n "checking for pthread_self in -lpthread... " >&6; }
8521if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then : 12633if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
8522 $as_echo_n "(cached) " >&6 12634 $as_echo_n "(cached) " >&6
8523else 12635else
8524 ac_check_lib_save_LIBS=$LIBS 12636 ac_check_lib_save_LIBS=$LIBS
8525LIBS="-lpthread $LIBS" 12637LIBS="-lpthread $LIBS"
8526cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12638cat >conftest.$ac_ext <<_ACEOF
12639/* confdefs.h. */
12640_ACEOF
12641cat confdefs.h >>conftest.$ac_ext
12642cat >>conftest.$ac_ext <<_ACEOF
8527/* end confdefs.h. */ 12643/* end confdefs.h. */
8528 12644
8529/* Override any GCC internal prototype to avoid an error. 12645/* Override any GCC internal prototype to avoid an error.
@@ -8541,18 +12657,43 @@ return pthread_self ();
8541 return 0; 12657 return 0;
8542} 12658}
8543_ACEOF 12659_ACEOF
8544if ac_fn_c_try_link "$LINENO"; then : 12660rm -f conftest.$ac_objext conftest$ac_exeext
12661if { (ac_try="$ac_link"
12662case "(($ac_try" in
12663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12664 *) ac_try_echo=$ac_try;;
12665esac
12666eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12667$as_echo "$ac_try_echo") >&5
12668 (eval "$ac_link") 2>conftest.er1
12669 ac_status=$?
12670 grep -v '^ *+' conftest.er1 >conftest.err
12671 rm -f conftest.er1
12672 cat conftest.err >&5
12673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } && {
12675 test -z "$ac_c_werror_flag" ||
12676 test ! -s conftest.err
12677 } && test -s conftest$ac_exeext && {
12678 test "$cross_compiling" = yes ||
12679 $as_test_x conftest$ac_exeext
12680 }; then
8545 ac_cv_lib_pthread_pthread_self=yes 12681 ac_cv_lib_pthread_pthread_self=yes
8546else 12682else
8547 ac_cv_lib_pthread_pthread_self=no 12683 $as_echo "$as_me: failed program was:" >&5
12684sed 's/^/| /' conftest.$ac_ext >&5
12685
12686 ac_cv_lib_pthread_pthread_self=no
8548fi 12687fi
8549rm -f core conftest.err conftest.$ac_objext \ 12688
8550 conftest$ac_exeext conftest.$ac_ext 12689rm -rf conftest.dSYM
12690rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12691 conftest$ac_exeext conftest.$ac_ext
8551LIBS=$ac_check_lib_save_LIBS 12692LIBS=$ac_check_lib_save_LIBS
8552fi 12693fi
8553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5 12694{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
8554$as_echo "$ac_cv_lib_pthread_pthread_self" >&6; } 12695$as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
8555if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then : 12696if test $ac_cv_lib_pthread_pthread_self = yes; then
8556 HAVE_GTK_AND_PTHREAD=yes 12697 HAVE_GTK_AND_PTHREAD=yes
8557fi 12698fi
8558 12699
@@ -8563,7 +12704,9 @@ fi
8563 *) GTK_LIBS="$GTK_LIBS -lpthread" ;; 12704 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
8564 esac 12705 esac
8565 12706
8566$as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h 12707cat >>confdefs.h <<\_ACEOF
12708#define HAVE_GTK_AND_PTHREAD 1
12709_ACEOF
8567 12710
8568 fi 12711 fi
8569 fi 12712 fi
@@ -8577,9 +12720,9 @@ if test "${with_dbus}" = "yes"; then
8577 12720
8578 # Extract the first word of "pkg-config", so it can be a program name with args. 12721 # Extract the first word of "pkg-config", so it can be a program name with args.
8579set dummy pkg-config; ac_word=$2 12722set dummy pkg-config; ac_word=$2
8580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12723{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8581$as_echo_n "checking for $ac_word... " >&6; } 12724$as_echo_n "checking for $ac_word... " >&6; }
8582if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 12725if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8583 $as_echo_n "(cached) " >&6 12726 $as_echo_n "(cached) " >&6
8584else 12727else
8585 case $PKG_CONFIG in 12728 case $PKG_CONFIG in
@@ -8592,14 +12735,14 @@ for as_dir in $PATH
8592do 12735do
8593 IFS=$as_save_IFS 12736 IFS=$as_save_IFS
8594 test -z "$as_dir" && as_dir=. 12737 test -z "$as_dir" && as_dir=.
8595 for ac_exec_ext in '' $ac_executable_extensions; do 12738 for ac_exec_ext in '' $ac_executable_extensions; do
8596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8597 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12740 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12741 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8599 break 2 12742 break 2
8600 fi 12743 fi
8601done 12744done
8602 done 12745done
8603IFS=$as_save_IFS 12746IFS=$as_save_IFS
8604 12747
8605 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 12748 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -8608,10 +12751,10 @@ esac
8608fi 12751fi
8609PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12752PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8610if test -n "$PKG_CONFIG"; then 12753if test -n "$PKG_CONFIG"; then
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12754 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8612$as_echo "$PKG_CONFIG" >&6; } 12755$as_echo "$PKG_CONFIG" >&6; }
8613else 12756else
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12757 { $as_echo "$as_me:$LINENO: result: no" >&5
8615$as_echo "no" >&6; } 12758$as_echo "no" >&6; }
8616fi 12759fi
8617 12760
@@ -8622,27 +12765,27 @@ fi
8622 else 12765 else
8623 PKG_CONFIG_MIN_VERSION=0.9.0 12766 PKG_CONFIG_MIN_VERSION=0.9.0
8624 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 12767 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5 12768 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
8626$as_echo_n "checking for dbus-1 >= 1.0... " >&6; } 12769$as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
8627 12770
8628 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then 12771 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12772 { $as_echo "$as_me:$LINENO: result: yes" >&5
8630$as_echo "yes" >&6; } 12773$as_echo "yes" >&6; }
8631 succeeded=yes 12774 succeeded=yes
8632 12775
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5 12776 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
8634$as_echo_n "checking DBUS_CFLAGS... " >&6; } 12777$as_echo_n "checking DBUS_CFLAGS... " >&6; }
8635 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` 12778 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5 12779 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
8637$as_echo "$DBUS_CFLAGS" >&6; } 12780$as_echo "$DBUS_CFLAGS" >&6; }
8638 12781
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5 12782 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
8640$as_echo_n "checking DBUS_LIBS... " >&6; } 12783$as_echo_n "checking DBUS_LIBS... " >&6; }
8641 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` 12784 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5 12785 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
8643$as_echo "$DBUS_LIBS" >&6; } 12786$as_echo "$DBUS_LIBS" >&6; }
8644 else 12787 else
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12788 { $as_echo "$as_me:$LINENO: result: no" >&5
8646$as_echo "no" >&6; } 12789$as_echo "no" >&6; }
8647 DBUS_CFLAGS="" 12790 DBUS_CFLAGS=""
8648 DBUS_LIBS="" 12791 DBUS_LIBS=""
@@ -8669,14 +12812,105 @@ $as_echo "no" >&6; }
8669 if test "$HAVE_DBUS" = yes; then 12812 if test "$HAVE_DBUS" = yes; then
8670 LIBS="$LIBS $DBUS_LIBS" 12813 LIBS="$LIBS $DBUS_LIBS"
8671 12814
8672$as_echo "#define HAVE_DBUS 1" >>confdefs.h 12815cat >>confdefs.h <<\_ACEOF
12816#define HAVE_DBUS 1
12817_ACEOF
12818
12819
12820for ac_func in dbus_watch_get_unix_fd
12821do
12822as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12823{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12824$as_echo_n "checking for $ac_func... " >&6; }
12825if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12826 $as_echo_n "(cached) " >&6
12827else
12828 cat >conftest.$ac_ext <<_ACEOF
12829/* confdefs.h. */
12830_ACEOF
12831cat confdefs.h >>conftest.$ac_ext
12832cat >>conftest.$ac_ext <<_ACEOF
12833/* end confdefs.h. */
12834/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12836#define $ac_func innocuous_$ac_func
12837
12838/* System header to define __stub macros and hopefully few prototypes,
12839 which can conflict with char $ac_func (); below.
12840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12841 <limits.h> exists even on freestanding compilers. */
12842
12843#ifdef __STDC__
12844# include <limits.h>
12845#else
12846# include <assert.h>
12847#endif
12848
12849#undef $ac_func
8673 12850
8674 for ac_func in dbus_watch_get_unix_fd 12851/* Override any GCC internal prototype to avoid an error.
8675do : 12852 Use char because int might match the return type of a GCC
8676 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd" 12853 builtin and then its argument prototype would still apply. */
8677if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then : 12854#ifdef __cplusplus
12855extern "C"
12856#endif
12857char $ac_func ();
12858/* The GNU C library defines this for functions which it implements
12859 to always fail with ENOSYS. Some functions are actually named
12860 something starting with __ and the normal name is an alias. */
12861#if defined __stub_$ac_func || defined __stub___$ac_func
12862choke me
12863#endif
12864
12865int
12866main ()
12867{
12868return $ac_func ();
12869 ;
12870 return 0;
12871}
12872_ACEOF
12873rm -f conftest.$ac_objext conftest$ac_exeext
12874if { (ac_try="$ac_link"
12875case "(($ac_try" in
12876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12877 *) ac_try_echo=$ac_try;;
12878esac
12879eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12880$as_echo "$ac_try_echo") >&5
12881 (eval "$ac_link") 2>conftest.er1
12882 ac_status=$?
12883 grep -v '^ *+' conftest.er1 >conftest.err
12884 rm -f conftest.er1
12885 cat conftest.err >&5
12886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); } && {
12888 test -z "$ac_c_werror_flag" ||
12889 test ! -s conftest.err
12890 } && test -s conftest$ac_exeext && {
12891 test "$cross_compiling" = yes ||
12892 $as_test_x conftest$ac_exeext
12893 }; then
12894 eval "$as_ac_var=yes"
12895else
12896 $as_echo "$as_me: failed program was:" >&5
12897sed 's/^/| /' conftest.$ac_ext >&5
12898
12899 eval "$as_ac_var=no"
12900fi
12901
12902rm -rf conftest.dSYM
12903rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12904 conftest$ac_exeext conftest.$ac_ext
12905fi
12906ac_res=`eval 'as_val=${'$as_ac_var'}
12907 $as_echo "$as_val"'`
12908 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12909$as_echo "$ac_res" >&6; }
12910if test `eval 'as_val=${'$as_ac_var'}
12911 $as_echo "$as_val"'` = yes; then
8678 cat >>confdefs.h <<_ACEOF 12912 cat >>confdefs.h <<_ACEOF
8679#define HAVE_DBUS_WATCH_GET_UNIX_FD 1 12913#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8680_ACEOF 12914_ACEOF
8681 12915
8682fi 12916fi
@@ -8694,9 +12928,9 @@ if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
8694 12928
8695 # Extract the first word of "pkg-config", so it can be a program name with args. 12929 # Extract the first word of "pkg-config", so it can be a program name with args.
8696set dummy pkg-config; ac_word=$2 12930set dummy pkg-config; ac_word=$2
8697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12931{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8698$as_echo_n "checking for $ac_word... " >&6; } 12932$as_echo_n "checking for $ac_word... " >&6; }
8699if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 12933if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8700 $as_echo_n "(cached) " >&6 12934 $as_echo_n "(cached) " >&6
8701else 12935else
8702 case $PKG_CONFIG in 12936 case $PKG_CONFIG in
@@ -8709,14 +12943,14 @@ for as_dir in $PATH
8709do 12943do
8710 IFS=$as_save_IFS 12944 IFS=$as_save_IFS
8711 test -z "$as_dir" && as_dir=. 12945 test -z "$as_dir" && as_dir=.
8712 for ac_exec_ext in '' $ac_executable_extensions; do 12946 for ac_exec_ext in '' $ac_executable_extensions; do
8713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8714 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12948 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12949 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8716 break 2 12950 break 2
8717 fi 12951 fi
8718done 12952done
8719 done 12953done
8720IFS=$as_save_IFS 12954IFS=$as_save_IFS
8721 12955
8722 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 12956 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -8725,10 +12959,10 @@ esac
8725fi 12959fi
8726PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12960PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8727if test -n "$PKG_CONFIG"; then 12961if test -n "$PKG_CONFIG"; then
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12962 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8729$as_echo "$PKG_CONFIG" >&6; } 12963$as_echo "$PKG_CONFIG" >&6; }
8730else 12964else
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12965 { $as_echo "$as_me:$LINENO: result: no" >&5
8732$as_echo "no" >&6; } 12966$as_echo "no" >&6; }
8733fi 12967fi
8734 12968
@@ -8739,27 +12973,27 @@ fi
8739 else 12973 else
8740 PKG_CONFIG_MIN_VERSION=0.9.0 12974 PKG_CONFIG_MIN_VERSION=0.9.0
8741 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 12975 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5 12976 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
8743$as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; } 12977$as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
8744 12978
8745 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then 12979 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12980 { $as_echo "$as_me:$LINENO: result: yes" >&5
8747$as_echo "yes" >&6; } 12981$as_echo "yes" >&6; }
8748 succeeded=yes 12982 succeeded=yes
8749 12983
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5 12984 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
8751$as_echo_n "checking GCONF_CFLAGS... " >&6; } 12985$as_echo_n "checking GCONF_CFLAGS... " >&6; }
8752 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` 12986 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5 12987 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
8754$as_echo "$GCONF_CFLAGS" >&6; } 12988$as_echo "$GCONF_CFLAGS" >&6; }
8755 12989
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5 12990 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
8757$as_echo_n "checking GCONF_LIBS... " >&6; } 12991$as_echo_n "checking GCONF_LIBS... " >&6; }
8758 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` 12992 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5 12993 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
8760$as_echo "$GCONF_LIBS" >&6; } 12994$as_echo "$GCONF_LIBS" >&6; }
8761 else 12995 else
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12996 { $as_echo "$as_me:$LINENO: result: no" >&5
8763$as_echo "no" >&6; } 12997$as_echo "no" >&6; }
8764 GCONF_CFLAGS="" 12998 GCONF_CFLAGS=""
8765 GCONF_LIBS="" 12999 GCONF_LIBS=""
@@ -8785,7 +13019,9 @@ $as_echo "no" >&6; }
8785 13019
8786 if test "$HAVE_GCONF" = yes; then 13020 if test "$HAVE_GCONF" = yes; then
8787 13021
8788$as_echo "#define HAVE_GCONF 1" >>confdefs.h 13022cat >>confdefs.h <<\_ACEOF
13023#define HAVE_GCONF 1
13024_ACEOF
8789 13025
8790 fi 13026 fi
8791fi 13027fi
@@ -8793,14 +13029,18 @@ fi
8793HAVE_LIBSELINUX=no 13029HAVE_LIBSELINUX=no
8794LIBSELINUX_LIBS= 13030LIBSELINUX_LIBS=
8795if test "${with_selinux}" = "yes"; then 13031if test "${with_selinux}" = "yes"; then
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5 13032 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
8797$as_echo_n "checking for lgetfilecon in -lselinux... " >&6; } 13033$as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
8798if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then : 13034if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
8799 $as_echo_n "(cached) " >&6 13035 $as_echo_n "(cached) " >&6
8800else 13036else
8801 ac_check_lib_save_LIBS=$LIBS 13037 ac_check_lib_save_LIBS=$LIBS
8802LIBS="-lselinux $LIBS" 13038LIBS="-lselinux $LIBS"
8803cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13039cat >conftest.$ac_ext <<_ACEOF
13040/* confdefs.h. */
13041_ACEOF
13042cat confdefs.h >>conftest.$ac_ext
13043cat >>conftest.$ac_ext <<_ACEOF
8804/* end confdefs.h. */ 13044/* end confdefs.h. */
8805 13045
8806/* Override any GCC internal prototype to avoid an error. 13046/* Override any GCC internal prototype to avoid an error.
@@ -8818,18 +13058,43 @@ return lgetfilecon ();
8818 return 0; 13058 return 0;
8819} 13059}
8820_ACEOF 13060_ACEOF
8821if ac_fn_c_try_link "$LINENO"; then : 13061rm -f conftest.$ac_objext conftest$ac_exeext
13062if { (ac_try="$ac_link"
13063case "(($ac_try" in
13064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13065 *) ac_try_echo=$ac_try;;
13066esac
13067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13068$as_echo "$ac_try_echo") >&5
13069 (eval "$ac_link") 2>conftest.er1
13070 ac_status=$?
13071 grep -v '^ *+' conftest.er1 >conftest.err
13072 rm -f conftest.er1
13073 cat conftest.err >&5
13074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); } && {
13076 test -z "$ac_c_werror_flag" ||
13077 test ! -s conftest.err
13078 } && test -s conftest$ac_exeext && {
13079 test "$cross_compiling" = yes ||
13080 $as_test_x conftest$ac_exeext
13081 }; then
8822 ac_cv_lib_selinux_lgetfilecon=yes 13082 ac_cv_lib_selinux_lgetfilecon=yes
8823else 13083else
8824 ac_cv_lib_selinux_lgetfilecon=no 13084 $as_echo "$as_me: failed program was:" >&5
13085sed 's/^/| /' conftest.$ac_ext >&5
13086
13087 ac_cv_lib_selinux_lgetfilecon=no
8825fi 13088fi
8826rm -f core conftest.err conftest.$ac_objext \ 13089
8827 conftest$ac_exeext conftest.$ac_ext 13090rm -rf conftest.dSYM
13091rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13092 conftest$ac_exeext conftest.$ac_ext
8828LIBS=$ac_check_lib_save_LIBS 13093LIBS=$ac_check_lib_save_LIBS
8829fi 13094fi
8830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5 13095{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
8831$as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; } 13096$as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
8832if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then : 13097if test $ac_cv_lib_selinux_lgetfilecon = yes; then
8833 HAVE_LIBSELINUX=yes 13098 HAVE_LIBSELINUX=yes
8834else 13099else
8835 HAVE_LIBSELINUX=no 13100 HAVE_LIBSELINUX=no
@@ -8837,7 +13102,9 @@ fi
8837 13102
8838 if test "$HAVE_LIBSELINUX" = yes; then 13103 if test "$HAVE_LIBSELINUX" = yes; then
8839 13104
8840$as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h 13105cat >>confdefs.h <<\_ACEOF
13106#define HAVE_LIBSELINUX 1
13107_ACEOF
8841 13108
8842 LIBSELINUX_LIBS=-lselinux 13109 LIBSELINUX_LIBS=-lselinux
8843 fi 13110 fi
@@ -8848,12 +13115,16 @@ HAVE_XAW3D=no
8848LUCID_LIBW= 13115LUCID_LIBW=
8849if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then 13116if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
8850 if test "$with_xaw3d" != no; then 13117 if test "$with_xaw3d" != no; then
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5 13118 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
8852$as_echo_n "checking for xaw3d... " >&6; } 13119$as_echo_n "checking for xaw3d... " >&6; }
8853 if test "${emacs_cv_xaw3d+set}" = set; then : 13120 if test "${emacs_cv_xaw3d+set}" = set; then
8854 $as_echo_n "(cached) " >&6 13121 $as_echo_n "(cached) " >&6
8855else 13122else
8856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13123 cat >conftest.$ac_ext <<_ACEOF
13124/* confdefs.h. */
13125_ACEOF
13126cat confdefs.h >>conftest.$ac_ext
13127cat >>conftest.$ac_ext <<_ACEOF
8857/* end confdefs.h. */ 13128/* end confdefs.h. */
8858 13129
8859#include <X11/Intrinsic.h> 13130#include <X11/Intrinsic.h>
@@ -8866,36 +13137,67 @@ main ()
8866 return 0; 13137 return 0;
8867} 13138}
8868_ACEOF 13139_ACEOF
8869if ac_fn_c_try_link "$LINENO"; then : 13140rm -f conftest.$ac_objext conftest$ac_exeext
13141if { (ac_try="$ac_link"
13142case "(($ac_try" in
13143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144 *) ac_try_echo=$ac_try;;
13145esac
13146eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13147$as_echo "$ac_try_echo") >&5
13148 (eval "$ac_link") 2>conftest.er1
13149 ac_status=$?
13150 grep -v '^ *+' conftest.er1 >conftest.err
13151 rm -f conftest.er1
13152 cat conftest.err >&5
13153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); } && {
13155 test -z "$ac_c_werror_flag" ||
13156 test ! -s conftest.err
13157 } && test -s conftest$ac_exeext && {
13158 test "$cross_compiling" = yes ||
13159 $as_test_x conftest$ac_exeext
13160 }; then
8870 emacs_cv_xaw3d=yes 13161 emacs_cv_xaw3d=yes
8871else 13162else
8872 emacs_cv_xaw3d=no 13163 $as_echo "$as_me: failed program was:" >&5
13164sed 's/^/| /' conftest.$ac_ext >&5
13165
13166 emacs_cv_xaw3d=no
8873fi 13167fi
8874rm -f core conftest.err conftest.$ac_objext \ 13168
8875 conftest$ac_exeext conftest.$ac_ext 13169rm -rf conftest.dSYM
13170rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13171 conftest$ac_exeext conftest.$ac_ext
8876fi 13172fi
8877 13173
8878 else 13174 else
8879 emacs_cv_xaw3d=no 13175 emacs_cv_xaw3d=no
8880 fi 13176 fi
8881 if test $emacs_cv_xaw3d = yes; then 13177 if test $emacs_cv_xaw3d = yes; then
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5 13178 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
8883$as_echo "yes; using Lucid toolkit" >&6; } 13179$as_echo "yes; using Lucid toolkit" >&6; }
8884 USE_X_TOOLKIT=LUCID 13180 USE_X_TOOLKIT=LUCID
8885 HAVE_XAW3D=yes 13181 HAVE_XAW3D=yes
8886 LUCID_LIBW=-lXaw3d 13182 LUCID_LIBW=-lXaw3d
8887 13183
8888$as_echo "#define HAVE_XAW3D 1" >>confdefs.h 13184cat >>confdefs.h <<\_ACEOF
13185#define HAVE_XAW3D 1
13186_ACEOF
8889 13187
8890 else 13188 else
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13189 { $as_echo "$as_me:$LINENO: result: no" >&5
8892$as_echo "no" >&6; } 13190$as_echo "no" >&6; }
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5 13191 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
8894$as_echo_n "checking for libXaw... " >&6; } 13192$as_echo_n "checking for libXaw... " >&6; }
8895 if test "${emacs_cv_xaw+set}" = set; then : 13193 if test "${emacs_cv_xaw+set}" = set; then
8896 $as_echo_n "(cached) " >&6 13194 $as_echo_n "(cached) " >&6
8897else 13195else
8898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13196 cat >conftest.$ac_ext <<_ACEOF
13197/* confdefs.h. */
13198_ACEOF
13199cat confdefs.h >>conftest.$ac_ext
13200cat >>conftest.$ac_ext <<_ACEOF
8899/* end confdefs.h. */ 13201/* end confdefs.h. */
8900 13202
8901#include <X11/Intrinsic.h> 13203#include <X11/Intrinsic.h>
@@ -8908,24 +13210,51 @@ main ()
8908 return 0; 13210 return 0;
8909} 13211}
8910_ACEOF 13212_ACEOF
8911if 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
8912 emacs_cv_xaw=yes 13234 emacs_cv_xaw=yes
8913else 13235else
8914 emacs_cv_xaw=no 13236 $as_echo "$as_me: failed program was:" >&5
13237sed 's/^/| /' conftest.$ac_ext >&5
13238
13239 emacs_cv_xaw=no
8915fi 13240fi
8916rm -f core conftest.err conftest.$ac_objext \ 13241
8917 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
8918fi 13245fi
8919 13246
8920 if test $emacs_cv_xaw = yes; then 13247 if test $emacs_cv_xaw = yes; then
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5 13248 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
8922$as_echo "yes; using Lucid toolkit" >&6; } 13249$as_echo "yes; using Lucid toolkit" >&6; }
8923 USE_X_TOOLKIT=LUCID 13250 USE_X_TOOLKIT=LUCID
8924 LUCID_LIBW=-lXaw 13251 LUCID_LIBW=-lXaw
8925 elif test x"${USE_X_TOOLKIT}" = xLUCID; then 13252 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
8926 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5 13253 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
13254$as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
13255 { (exit 1); exit 1; }; }
8927 else 13256 else
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5 13257 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
8929$as_echo "no; do not use toolkit by default" >&6; } 13258$as_echo "no; do not use toolkit by default" >&6; }
8930 USE_X_TOOLKIT=none 13259 USE_X_TOOLKIT=none
8931 fi 13260 fi
@@ -8936,12 +13265,16 @@ X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8936 13265
8937LIBXTR6= 13266LIBXTR6=
8938if test "${USE_X_TOOLKIT}" != "none"; then 13267if test "${USE_X_TOOLKIT}" != "none"; then
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5 13268 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8940$as_echo_n "checking X11 toolkit version... " >&6; } 13269$as_echo_n "checking X11 toolkit version... " >&6; }
8941 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then : 13270 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8942 $as_echo_n "(cached) " >&6 13271 $as_echo_n "(cached) " >&6
8943else 13272else
8944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13273 cat >conftest.$ac_ext <<_ACEOF
13274/* confdefs.h. */
13275_ACEOF
13276cat confdefs.h >>conftest.$ac_ext
13277cat >>conftest.$ac_ext <<_ACEOF
8945/* end confdefs.h. */ 13278/* end confdefs.h. */
8946#include <X11/Intrinsic.h> 13279#include <X11/Intrinsic.h>
8947int 13280int
@@ -8955,21 +13288,48 @@ fail;
8955 return 0; 13288 return 0;
8956} 13289}
8957_ACEOF 13290_ACEOF
8958if ac_fn_c_try_link "$LINENO"; then : 13291rm -f conftest.$ac_objext conftest$ac_exeext
13292if { (ac_try="$ac_link"
13293case "(($ac_try" in
13294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295 *) ac_try_echo=$ac_try;;
13296esac
13297eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13298$as_echo "$ac_try_echo") >&5
13299 (eval "$ac_link") 2>conftest.er1
13300 ac_status=$?
13301 grep -v '^ *+' conftest.er1 >conftest.err
13302 rm -f conftest.er1
13303 cat conftest.err >&5
13304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); } && {
13306 test -z "$ac_c_werror_flag" ||
13307 test ! -s conftest.err
13308 } && test -s conftest$ac_exeext && {
13309 test "$cross_compiling" = yes ||
13310 $as_test_x conftest$ac_exeext
13311 }; then
8959 emacs_cv_x11_toolkit_version_6=yes 13312 emacs_cv_x11_toolkit_version_6=yes
8960else 13313else
8961 emacs_cv_x11_toolkit_version_6=no 13314 $as_echo "$as_me: failed program was:" >&5
13315sed 's/^/| /' conftest.$ac_ext >&5
13316
13317 emacs_cv_x11_toolkit_version_6=no
8962fi 13318fi
8963rm -f core conftest.err conftest.$ac_objext \ 13319
8964 conftest$ac_exeext conftest.$ac_ext 13320rm -rf conftest.dSYM
13321rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13322 conftest$ac_exeext conftest.$ac_ext
8965fi 13323fi
8966 13324
8967 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 13325 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8968 if test $emacs_cv_x11_toolkit_version_6 = yes; then 13326 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5 13327 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
8970$as_echo "6 or newer" >&6; } 13328$as_echo "6 or newer" >&6; }
8971 13329
8972$as_echo "#define HAVE_X11XTR6 1" >>confdefs.h 13330cat >>confdefs.h <<\_ACEOF
13331#define HAVE_X11XTR6 1
13332_ACEOF
8973 13333
8974 LIBXTR6="-lSM -lICE" 13334 LIBXTR6="-lSM -lICE"
8975 case "$opsys" in 13335 case "$opsys" in
@@ -8977,7 +13337,7 @@ $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
8977 unixware) LIBXTR6="$LIBXTR6 -lw" ;; 13337 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
8978 esac 13338 esac
8979 else 13339 else
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5 13340 { $as_echo "$as_me:$LINENO: result: before 6" >&5
8981$as_echo "before 6" >&6; } 13341$as_echo "before 6" >&6; }
8982 fi 13342 fi
8983 13343
@@ -8987,14 +13347,19 @@ $as_echo "before 6" >&6; }
8987 else 13347 else
8988 LIBS="-lXt $LIBS" 13348 LIBS="-lXt $LIBS"
8989 fi 13349 fi
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5 13350
13351{ $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8991$as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; } 13352$as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
8992if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then : 13353if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8993 $as_echo_n "(cached) " >&6 13354 $as_echo_n "(cached) " >&6
8994else 13355else
8995 ac_check_lib_save_LIBS=$LIBS 13356 ac_check_lib_save_LIBS=$LIBS
8996LIBS="-lXmu $LIBS" 13357LIBS="-lXmu $LIBS"
8997cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13358cat >conftest.$ac_ext <<_ACEOF
13359/* confdefs.h. */
13360_ACEOF
13361cat confdefs.h >>conftest.$ac_ext
13362cat >>conftest.$ac_ext <<_ACEOF
8998/* end confdefs.h. */ 13363/* end confdefs.h. */
8999 13364
9000/* Override any GCC internal prototype to avoid an error. 13365/* Override any GCC internal prototype to avoid an error.
@@ -9012,18 +13377,43 @@ return XmuConvertStandardSelection ();
9012 return 0; 13377 return 0;
9013} 13378}
9014_ACEOF 13379_ACEOF
9015if ac_fn_c_try_link "$LINENO"; then : 13380rm -f conftest.$ac_objext conftest$ac_exeext
13381if { (ac_try="$ac_link"
13382case "(($ac_try" in
13383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13384 *) ac_try_echo=$ac_try;;
13385esac
13386eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13387$as_echo "$ac_try_echo") >&5
13388 (eval "$ac_link") 2>conftest.er1
13389 ac_status=$?
13390 grep -v '^ *+' conftest.er1 >conftest.err
13391 rm -f conftest.er1
13392 cat conftest.err >&5
13393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); } && {
13395 test -z "$ac_c_werror_flag" ||
13396 test ! -s conftest.err
13397 } && test -s conftest$ac_exeext && {
13398 test "$cross_compiling" = yes ||
13399 $as_test_x conftest$ac_exeext
13400 }; then
9016 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes 13401 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
9017else 13402else
9018 ac_cv_lib_Xmu_XmuConvertStandardSelection=no 13403 $as_echo "$as_me: failed program was:" >&5
13404sed 's/^/| /' conftest.$ac_ext >&5
13405
13406 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
9019fi 13407fi
9020rm -f core conftest.err conftest.$ac_objext \ 13408
9021 conftest$ac_exeext conftest.$ac_ext 13409rm -rf conftest.dSYM
13410rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13411 conftest$ac_exeext conftest.$ac_ext
9022LIBS=$ac_check_lib_save_LIBS 13412LIBS=$ac_check_lib_save_LIBS
9023fi 13413fi
9024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 13414{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9025$as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; } 13415$as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9026if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then : 13416if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
9027 cat >>confdefs.h <<_ACEOF 13417 cat >>confdefs.h <<_ACEOF
9028#define HAVE_LIBXMU 1 13418#define HAVE_LIBXMU 1
9029_ACEOF 13419_ACEOF
@@ -9048,14 +13438,19 @@ esac
9048# On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. 13438# On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9049if test "${HAVE_X11}" = "yes"; then 13439if test "${HAVE_X11}" = "yes"; then
9050 if test "${USE_X_TOOLKIT}" != "none"; then 13440 if test "${USE_X_TOOLKIT}" != "none"; then
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 13441
13442{ $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9052$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } 13443$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9053if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then : 13444if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9054 $as_echo_n "(cached) " >&6 13445 $as_echo_n "(cached) " >&6
9055else 13446else
9056 ac_check_lib_save_LIBS=$LIBS 13447 ac_check_lib_save_LIBS=$LIBS
9057LIBS="-lXext $LIBS" 13448LIBS="-lXext $LIBS"
9058cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13449cat >conftest.$ac_ext <<_ACEOF
13450/* confdefs.h. */
13451_ACEOF
13452cat confdefs.h >>conftest.$ac_ext
13453cat >>conftest.$ac_ext <<_ACEOF
9059/* end confdefs.h. */ 13454/* end confdefs.h. */
9060 13455
9061/* Override any GCC internal prototype to avoid an error. 13456/* Override any GCC internal prototype to avoid an error.
@@ -9073,18 +13468,43 @@ return XShapeQueryExtension ();
9073 return 0; 13468 return 0;
9074} 13469}
9075_ACEOF 13470_ACEOF
9076if ac_fn_c_try_link "$LINENO"; then : 13471rm -f conftest.$ac_objext conftest$ac_exeext
13472if { (ac_try="$ac_link"
13473case "(($ac_try" in
13474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13475 *) ac_try_echo=$ac_try;;
13476esac
13477eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13478$as_echo "$ac_try_echo") >&5
13479 (eval "$ac_link") 2>conftest.er1
13480 ac_status=$?
13481 grep -v '^ *+' conftest.er1 >conftest.err
13482 rm -f conftest.er1
13483 cat conftest.err >&5
13484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); } && {
13486 test -z "$ac_c_werror_flag" ||
13487 test ! -s conftest.err
13488 } && test -s conftest$ac_exeext && {
13489 test "$cross_compiling" = yes ||
13490 $as_test_x conftest$ac_exeext
13491 }; then
9077 ac_cv_lib_Xext_XShapeQueryExtension=yes 13492 ac_cv_lib_Xext_XShapeQueryExtension=yes
9078else 13493else
9079 ac_cv_lib_Xext_XShapeQueryExtension=no 13494 $as_echo "$as_me: failed program was:" >&5
13495sed 's/^/| /' conftest.$ac_ext >&5
13496
13497 ac_cv_lib_Xext_XShapeQueryExtension=no
9080fi 13498fi
9081rm -f core conftest.err conftest.$ac_objext \ 13499
9082 conftest$ac_exeext conftest.$ac_ext 13500rm -rf conftest.dSYM
13501rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13502 conftest$ac_exeext conftest.$ac_ext
9083LIBS=$ac_check_lib_save_LIBS 13503LIBS=$ac_check_lib_save_LIBS
9084fi 13504fi
9085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 13505{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9086$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } 13506$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9087if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then : 13507if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9088 cat >>confdefs.h <<_ACEOF 13508 cat >>confdefs.h <<_ACEOF
9089#define HAVE_LIBXEXT 1 13509#define HAVE_LIBXEXT 1
9090_ACEOF 13510_ACEOF
@@ -9098,12 +13518,16 @@ fi
9098 13518
9099LIBXP= 13519LIBXP=
9100if test "${USE_X_TOOLKIT}" = "MOTIF"; then 13520if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5 13521 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
9102$as_echo_n "checking for Motif version 2.1... " >&6; } 13522$as_echo_n "checking for Motif version 2.1... " >&6; }
9103if test "${emacs_cv_motif_version_2_1+set}" = set; then : 13523if test "${emacs_cv_motif_version_2_1+set}" = set; then
9104 $as_echo_n "(cached) " >&6 13524 $as_echo_n "(cached) " >&6
9105else 13525else
9106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13526 cat >conftest.$ac_ext <<_ACEOF
13527/* confdefs.h. */
13528_ACEOF
13529cat confdefs.h >>conftest.$ac_ext
13530cat >>conftest.$ac_ext <<_ACEOF
9107/* end confdefs.h. */ 13531/* end confdefs.h. */
9108#include <Xm/Xm.h> 13532#include <Xm/Xm.h>
9109int 13533int
@@ -9118,24 +13542,49 @@ Motif version prior to 2.1.
9118 return 0; 13542 return 0;
9119} 13543}
9120_ACEOF 13544_ACEOF
9121if ac_fn_c_try_compile "$LINENO"; then : 13545rm -f conftest.$ac_objext
13546if { (ac_try="$ac_compile"
13547case "(($ac_try" in
13548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549 *) ac_try_echo=$ac_try;;
13550esac
13551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13552$as_echo "$ac_try_echo") >&5
13553 (eval "$ac_compile") 2>conftest.er1
13554 ac_status=$?
13555 grep -v '^ *+' conftest.er1 >conftest.err
13556 rm -f conftest.er1
13557 cat conftest.err >&5
13558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } && {
13560 test -z "$ac_c_werror_flag" ||
13561 test ! -s conftest.err
13562 } && test -s conftest.$ac_objext; then
9122 emacs_cv_motif_version_2_1=yes 13563 emacs_cv_motif_version_2_1=yes
9123else 13564else
9124 emacs_cv_motif_version_2_1=no 13565 $as_echo "$as_me: failed program was:" >&5
13566sed 's/^/| /' conftest.$ac_ext >&5
13567
13568 emacs_cv_motif_version_2_1=no
9125fi 13569fi
13570
9126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9127fi 13572fi
9128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5 13573{ $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
9129$as_echo "$emacs_cv_motif_version_2_1" >&6; } 13574$as_echo "$emacs_cv_motif_version_2_1" >&6; }
9130 if test $emacs_cv_motif_version_2_1 = yes; then 13575 if test $emacs_cv_motif_version_2_1 = yes; then
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5 13576 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
9132$as_echo_n "checking for XpCreateContext in -lXp... " >&6; } 13577$as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9133if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then : 13578if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
9134 $as_echo_n "(cached) " >&6 13579 $as_echo_n "(cached) " >&6
9135else 13580else
9136 ac_check_lib_save_LIBS=$LIBS 13581 ac_check_lib_save_LIBS=$LIBS
9137LIBS="-lXp $LIBS" 13582LIBS="-lXp $LIBS"
9138cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13583cat >conftest.$ac_ext <<_ACEOF
13584/* confdefs.h. */
13585_ACEOF
13586cat confdefs.h >>conftest.$ac_ext
13587cat >>conftest.$ac_ext <<_ACEOF
9139/* end confdefs.h. */ 13588/* end confdefs.h. */
9140 13589
9141/* Override any GCC internal prototype to avoid an error. 13590/* Override any GCC internal prototype to avoid an error.
@@ -9153,25 +13602,50 @@ return XpCreateContext ();
9153 return 0; 13602 return 0;
9154} 13603}
9155_ACEOF 13604_ACEOF
9156if ac_fn_c_try_link "$LINENO"; then : 13605rm -f conftest.$ac_objext conftest$ac_exeext
13606if { (ac_try="$ac_link"
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_link") 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_exeext && {
13623 test "$cross_compiling" = yes ||
13624 $as_test_x conftest$ac_exeext
13625 }; then
9157 ac_cv_lib_Xp_XpCreateContext=yes 13626 ac_cv_lib_Xp_XpCreateContext=yes
9158else 13627else
9159 ac_cv_lib_Xp_XpCreateContext=no 13628 $as_echo "$as_me: failed program was:" >&5
13629sed 's/^/| /' conftest.$ac_ext >&5
13630
13631 ac_cv_lib_Xp_XpCreateContext=no
9160fi 13632fi
9161rm -f core conftest.err conftest.$ac_objext \ 13633
9162 conftest$ac_exeext conftest.$ac_ext 13634rm -rf conftest.dSYM
13635rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13636 conftest$ac_exeext conftest.$ac_ext
9163LIBS=$ac_check_lib_save_LIBS 13637LIBS=$ac_check_lib_save_LIBS
9164fi 13638fi
9165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5 13639{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9166$as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; } 13640$as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9167if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then : 13641if test $ac_cv_lib_Xp_XpCreateContext = yes; then
9168 LIBXP=-lXp 13642 LIBXP=-lXp
9169fi 13643fi
9170 13644
9171 else 13645 else
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5 13646 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
9173$as_echo_n "checking for LessTif where some systems put it... " >&6; } 13647$as_echo_n "checking for LessTif where some systems put it... " >&6; }
9174if test "${emacs_cv_lesstif+set}" = set; then : 13648if test "${emacs_cv_lesstif+set}" = set; then
9175 $as_echo_n "(cached) " >&6 13649 $as_echo_n "(cached) " >&6
9176else 13650else
9177 # We put this in CFLAGS temporarily to precede other -I options 13651 # We put this in CFLAGS temporarily to precede other -I options
@@ -9181,7 +13655,11 @@ else
9181 OLD_CFLAGS=$CFLAGS 13655 OLD_CFLAGS=$CFLAGS
9182 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" 13656 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9183 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" 13657 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13658 cat >conftest.$ac_ext <<_ACEOF
13659/* confdefs.h. */
13660_ACEOF
13661cat confdefs.h >>conftest.$ac_ext
13662cat >>conftest.$ac_ext <<_ACEOF
9185/* end confdefs.h. */ 13663/* end confdefs.h. */
9186#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h> 13664#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9187int 13665int
@@ -9192,14 +13670,35 @@ int x = 5;
9192 return 0; 13670 return 0;
9193} 13671}
9194_ACEOF 13672_ACEOF
9195if ac_fn_c_try_compile "$LINENO"; then : 13673rm -f conftest.$ac_objext
13674if { (ac_try="$ac_compile"
13675case "(($ac_try" in
13676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677 *) ac_try_echo=$ac_try;;
13678esac
13679eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13680$as_echo "$ac_try_echo") >&5
13681 (eval "$ac_compile") 2>conftest.er1
13682 ac_status=$?
13683 grep -v '^ *+' conftest.er1 >conftest.err
13684 rm -f conftest.er1
13685 cat conftest.err >&5
13686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); } && {
13688 test -z "$ac_c_werror_flag" ||
13689 test ! -s conftest.err
13690 } && test -s conftest.$ac_objext; then
9196 emacs_cv_lesstif=yes 13691 emacs_cv_lesstif=yes
9197else 13692else
9198 emacs_cv_lesstif=no 13693 $as_echo "$as_me: failed program was:" >&5
13694sed 's/^/| /' conftest.$ac_ext >&5
13695
13696 emacs_cv_lesstif=no
9199fi 13697fi
13698
9200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9201fi 13700fi
9202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5 13701{ $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
9203$as_echo "$emacs_cv_lesstif" >&6; } 13702$as_echo "$emacs_cv_lesstif" >&6; }
9204 if test $emacs_cv_lesstif = yes; then 13703 if test $emacs_cv_lesstif = yes; then
9205 # Make sure this -I option remains in CPPFLAGS after it is set 13704 # Make sure this -I option remains in CPPFLAGS after it is set
@@ -9217,31 +13716,44 @@ $as_echo "$emacs_cv_lesstif" >&6; }
9217fi 13716fi
9218 13717
9219 13718
13719
9220USE_TOOLKIT_SCROLL_BARS=no 13720USE_TOOLKIT_SCROLL_BARS=no
9221if test "${with_toolkit_scroll_bars}" != "no"; then 13721if test "${with_toolkit_scroll_bars}" != "no"; then
9222 if test "${USE_X_TOOLKIT}" != "none"; then 13722 if test "${USE_X_TOOLKIT}" != "none"; then
9223 if test "${USE_X_TOOLKIT}" = "MOTIF"; then 13723 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9224 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h 13724 cat >>confdefs.h <<\_ACEOF
13725#define USE_TOOLKIT_SCROLL_BARS 1
13726_ACEOF
9225 13727
9226 HAVE_XAW3D=no 13728 HAVE_XAW3D=no
9227 USE_TOOLKIT_SCROLL_BARS=yes 13729 USE_TOOLKIT_SCROLL_BARS=yes
9228 elif test "${HAVE_XAW3D}" = "yes"; then 13730 elif test "${HAVE_XAW3D}" = "yes"; then
9229 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h 13731 cat >>confdefs.h <<\_ACEOF
13732#define USE_TOOLKIT_SCROLL_BARS 1
13733_ACEOF
9230 13734
9231 USE_TOOLKIT_SCROLL_BARS=yes 13735 USE_TOOLKIT_SCROLL_BARS=yes
9232 fi 13736 fi
9233 elif test "${HAVE_GTK}" = "yes"; then 13737 elif test "${HAVE_GTK}" = "yes"; then
9234 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h 13738 cat >>confdefs.h <<\_ACEOF
13739#define USE_TOOLKIT_SCROLL_BARS 1
13740_ACEOF
9235 13741
9236 USE_TOOLKIT_SCROLL_BARS=yes 13742 USE_TOOLKIT_SCROLL_BARS=yes
9237 elif test "${HAVE_NS}" = "yes"; then 13743 elif test "${HAVE_NS}" = "yes"; then
9238 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h 13744 cat >>confdefs.h <<\_ACEOF
13745#define USE_TOOLKIT_SCROLL_BARS 1
13746_ACEOF
9239 13747
9240 USE_TOOLKIT_SCROLL_BARS=yes 13748 USE_TOOLKIT_SCROLL_BARS=yes
9241 fi 13749 fi
9242fi 13750fi
9243 13751
9244cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13752cat >conftest.$ac_ext <<_ACEOF
13753/* confdefs.h. */
13754_ACEOF
13755cat confdefs.h >>conftest.$ac_ext
13756cat >>conftest.$ac_ext <<_ACEOF
9245/* end confdefs.h. */ 13757/* end confdefs.h. */
9246 13758
9247 #include <X11/Xlib.h> 13759 #include <X11/Xlib.h>
@@ -9254,20 +13766,45 @@ XIMProc callback;
9254 return 0; 13766 return 0;
9255} 13767}
9256_ACEOF 13768_ACEOF
9257if ac_fn_c_try_compile "$LINENO"; then : 13769rm -f conftest.$ac_objext
13770if { (ac_try="$ac_compile"
13771case "(($ac_try" in
13772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13773 *) ac_try_echo=$ac_try;;
13774esac
13775eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13776$as_echo "$ac_try_echo") >&5
13777 (eval "$ac_compile") 2>conftest.er1
13778 ac_status=$?
13779 grep -v '^ *+' conftest.er1 >conftest.err
13780 rm -f conftest.er1
13781 cat conftest.err >&5
13782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); } && {
13784 test -z "$ac_c_werror_flag" ||
13785 test ! -s conftest.err
13786 } && test -s conftest.$ac_objext; then
9258 HAVE_XIM=yes 13787 HAVE_XIM=yes
9259 13788
9260$as_echo "#define HAVE_XIM 1" >>confdefs.h 13789cat >>confdefs.h <<\_ACEOF
13790#define HAVE_XIM 1
13791_ACEOF
9261 13792
9262else 13793else
9263 HAVE_XIM=no 13794 $as_echo "$as_me: failed program was:" >&5
13795sed 's/^/| /' conftest.$ac_ext >&5
13796
13797 HAVE_XIM=no
9264fi 13798fi
13799
9265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9266 13801
9267 13802
9268if test "${with_xim}" != "no"; then 13803if test "${with_xim}" != "no"; then
9269 13804
9270$as_echo "#define USE_XIM 1" >>confdefs.h 13805cat >>confdefs.h <<\_ACEOF
13806#define USE_XIM 1
13807_ACEOF
9271 13808
9272fi 13809fi
9273 13810
@@ -9277,7 +13814,11 @@ if test "${HAVE_XIM}" != "no"; then
9277 if test "$GCC" = yes; then 13814 if test "$GCC" = yes; then
9278 CFLAGS="$CFLAGS --pedantic-errors" 13815 CFLAGS="$CFLAGS --pedantic-errors"
9279 fi 13816 fi
9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13817 cat >conftest.$ac_ext <<_ACEOF
13818/* confdefs.h. */
13819_ACEOF
13820cat confdefs.h >>conftest.$ac_ext
13821cat >>conftest.$ac_ext <<_ACEOF
9281/* end confdefs.h. */ 13822/* end confdefs.h. */
9282 13823
9283#include <X11/Xlib.h> 13824#include <X11/Xlib.h>
@@ -9303,15 +13844,43 @@ extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9303 return 0; 13844 return 0;
9304} 13845}
9305_ACEOF 13846_ACEOF
9306if ac_fn_c_try_compile "$LINENO"; then : 13847rm -f conftest.$ac_objext
13848if { (ac_try="$ac_compile"
13849case "(($ac_try" in
13850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13851 *) ac_try_echo=$ac_try;;
13852esac
13853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13854$as_echo "$ac_try_echo") >&5
13855 (eval "$ac_compile") 2>conftest.er1
13856 ac_status=$?
13857 grep -v '^ *+' conftest.er1 >conftest.err
13858 rm -f conftest.er1
13859 cat conftest.err >&5
13860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); } && {
13862 test -z "$ac_c_werror_flag" ||
13863 test ! -s conftest.err
13864 } && test -s conftest.$ac_objext; then
9307 emacs_cv_arg6_star=yes 13865 emacs_cv_arg6_star=yes
13866else
13867 $as_echo "$as_me: failed program was:" >&5
13868sed 's/^/| /' conftest.$ac_ext >&5
13869
13870
9308fi 13871fi
13872
9309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9310 if test "$emacs_cv_arg6_star" = yes; then 13874
9311 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h 13875 if test "$emacs_cv_arg6_star" = yes; then
13876 cat >>confdefs.h <<\_ACEOF
13877#define XRegisterIMInstantiateCallback_arg6 XPointer*
13878_ACEOF
9312 13879
9313 else 13880 else
9314 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h 13881 cat >>confdefs.h <<\_ACEOF
13882#define XRegisterIMInstantiateCallback_arg6 XPointer
13883_ACEOF
9315 13884
9316 fi 13885 fi
9317 CFLAGS=$late_CFLAGS 13886 CFLAGS=$late_CFLAGS
@@ -9328,9 +13897,9 @@ if test "${HAVE_X11}" = "yes"; then
9328 13897
9329 # Extract the first word of "pkg-config", so it can be a program name with args. 13898 # Extract the first word of "pkg-config", so it can be a program name with args.
9330set dummy pkg-config; ac_word=$2 13899set dummy pkg-config; ac_word=$2
9331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13900{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9332$as_echo_n "checking for $ac_word... " >&6; } 13901$as_echo_n "checking for $ac_word... " >&6; }
9333if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 13902if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9334 $as_echo_n "(cached) " >&6 13903 $as_echo_n "(cached) " >&6
9335else 13904else
9336 case $PKG_CONFIG in 13905 case $PKG_CONFIG in
@@ -9343,14 +13912,14 @@ for as_dir in $PATH
9343do 13912do
9344 IFS=$as_save_IFS 13913 IFS=$as_save_IFS
9345 test -z "$as_dir" && as_dir=. 13914 test -z "$as_dir" && as_dir=.
9346 for ac_exec_ext in '' $ac_executable_extensions; do 13915 for ac_exec_ext in '' $ac_executable_extensions; do
9347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9348 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13917 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13918 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9350 break 2 13919 break 2
9351 fi 13920 fi
9352done 13921done
9353 done 13922done
9354IFS=$as_save_IFS 13923IFS=$as_save_IFS
9355 13924
9356 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 13925 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -9359,10 +13928,10 @@ esac
9359fi 13928fi
9360PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13929PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9361if test -n "$PKG_CONFIG"; then 13930if test -n "$PKG_CONFIG"; then
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13931 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9363$as_echo "$PKG_CONFIG" >&6; } 13932$as_echo "$PKG_CONFIG" >&6; }
9364else 13933else
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13934 { $as_echo "$as_me:$LINENO: result: no" >&5
9366$as_echo "no" >&6; } 13935$as_echo "no" >&6; }
9367fi 13936fi
9368 13937
@@ -9373,27 +13942,27 @@ fi
9373 else 13942 else
9374 PKG_CONFIG_MIN_VERSION=0.9.0 13943 PKG_CONFIG_MIN_VERSION=0.9.0
9375 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 13944 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5 13945 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
9377$as_echo_n "checking for fontconfig >= 2.2.0... " >&6; } 13946$as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9378 13947
9379 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then 13948 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13949 { $as_echo "$as_me:$LINENO: result: yes" >&5
9381$as_echo "yes" >&6; } 13950$as_echo "yes" >&6; }
9382 succeeded=yes 13951 succeeded=yes
9383 13952
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5 13953 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
9385$as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; } 13954$as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9386 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` 13955 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5 13956 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
9388$as_echo "$FONTCONFIG_CFLAGS" >&6; } 13957$as_echo "$FONTCONFIG_CFLAGS" >&6; }
9389 13958
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5 13959 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
9391$as_echo_n "checking FONTCONFIG_LIBS... " >&6; } 13960$as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9392 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` 13961 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5 13962 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
9394$as_echo "$FONTCONFIG_LIBS" >&6; } 13963$as_echo "$FONTCONFIG_LIBS" >&6; }
9395 else 13964 else
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13965 { $as_echo "$as_me:$LINENO: result: no" >&5
9397$as_echo "no" >&6; } 13966$as_echo "no" >&6; }
9398 FONTCONFIG_CFLAGS="" 13967 FONTCONFIG_CFLAGS=""
9399 FONTCONFIG_LIBS="" 13968 FONTCONFIG_LIBS=""
@@ -9430,9 +13999,9 @@ $as_echo "no" >&6; }
9430 13999
9431 # Extract the first word of "pkg-config", so it can be a program name with args. 14000 # Extract the first word of "pkg-config", so it can be a program name with args.
9432set dummy pkg-config; ac_word=$2 14001set dummy pkg-config; ac_word=$2
9433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14002{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9434$as_echo_n "checking for $ac_word... " >&6; } 14003$as_echo_n "checking for $ac_word... " >&6; }
9435if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 14004if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9436 $as_echo_n "(cached) " >&6 14005 $as_echo_n "(cached) " >&6
9437else 14006else
9438 case $PKG_CONFIG in 14007 case $PKG_CONFIG in
@@ -9445,14 +14014,14 @@ for as_dir in $PATH
9445do 14014do
9446 IFS=$as_save_IFS 14015 IFS=$as_save_IFS
9447 test -z "$as_dir" && as_dir=. 14016 test -z "$as_dir" && as_dir=.
9448 for ac_exec_ext in '' $ac_executable_extensions; do 14017 for ac_exec_ext in '' $ac_executable_extensions; do
9449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9450 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14019 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14020 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9452 break 2 14021 break 2
9453 fi 14022 fi
9454done 14023done
9455 done 14024done
9456IFS=$as_save_IFS 14025IFS=$as_save_IFS
9457 14026
9458 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 14027 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -9461,10 +14030,10 @@ esac
9461fi 14030fi
9462PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14031PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9463if test -n "$PKG_CONFIG"; then 14032if test -n "$PKG_CONFIG"; then
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14033 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9465$as_echo "$PKG_CONFIG" >&6; } 14034$as_echo "$PKG_CONFIG" >&6; }
9466else 14035else
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14036 { $as_echo "$as_me:$LINENO: result: no" >&5
9468$as_echo "no" >&6; } 14037$as_echo "no" >&6; }
9469fi 14038fi
9470 14039
@@ -9475,27 +14044,27 @@ fi
9475 else 14044 else
9476 PKG_CONFIG_MIN_VERSION=0.9.0 14045 PKG_CONFIG_MIN_VERSION=0.9.0
9477 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 14046 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5 14047 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
9479$as_echo_n "checking for xft >= 0.13.0... " >&6; } 14048$as_echo_n "checking for xft >= 0.13.0... " >&6; }
9480 14049
9481 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then 14050 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14051 { $as_echo "$as_me:$LINENO: result: yes" >&5
9483$as_echo "yes" >&6; } 14052$as_echo "yes" >&6; }
9484 succeeded=yes 14053 succeeded=yes
9485 14054
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5 14055 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
9487$as_echo_n "checking XFT_CFLAGS... " >&6; } 14056$as_echo_n "checking XFT_CFLAGS... " >&6; }
9488 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'` 14057 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5 14058 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
9490$as_echo "$XFT_CFLAGS" >&6; } 14059$as_echo "$XFT_CFLAGS" >&6; }
9491 14060
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5 14061 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
9493$as_echo_n "checking XFT_LIBS... " >&6; } 14062$as_echo_n "checking XFT_LIBS... " >&6; }
9494 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'` 14063 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5 14064 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
9496$as_echo "$XFT_LIBS" >&6; } 14065$as_echo "$XFT_LIBS" >&6; }
9497 else 14066 else
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14067 { $as_echo "$as_me:$LINENO: result: no" >&5
9499$as_echo "no" >&6; } 14068$as_echo "no" >&6; }
9500 XFT_CFLAGS="" 14069 XFT_CFLAGS=""
9501 XFT_LIBS="" 14070 XFT_LIBS=""
@@ -9522,14 +14091,18 @@ $as_echo "no" >&6; }
9522 ## Because xftfont.c uses XRenderQueryExtension, we also 14091 ## Because xftfont.c uses XRenderQueryExtension, we also
9523 ## need to link to -lXrender. 14092 ## need to link to -lXrender.
9524 HAVE_XRENDER=no 14093 HAVE_XRENDER=no
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5 14094 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
9526$as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; } 14095$as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
9527if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then : 14096if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
9528 $as_echo_n "(cached) " >&6 14097 $as_echo_n "(cached) " >&6
9529else 14098else
9530 ac_check_lib_save_LIBS=$LIBS 14099 ac_check_lib_save_LIBS=$LIBS
9531LIBS="-lXrender $LIBS" 14100LIBS="-lXrender $LIBS"
9532cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14101cat >conftest.$ac_ext <<_ACEOF
14102/* confdefs.h. */
14103_ACEOF
14104cat confdefs.h >>conftest.$ac_ext
14105cat >>conftest.$ac_ext <<_ACEOF
9533/* end confdefs.h. */ 14106/* end confdefs.h. */
9534 14107
9535/* Override any GCC internal prototype to avoid an error. 14108/* Override any GCC internal prototype to avoid an error.
@@ -9547,18 +14120,43 @@ return XRenderQueryExtension ();
9547 return 0; 14120 return 0;
9548} 14121}
9549_ACEOF 14122_ACEOF
9550if ac_fn_c_try_link "$LINENO"; then : 14123rm -f conftest.$ac_objext conftest$ac_exeext
14124if { (ac_try="$ac_link"
14125case "(($ac_try" in
14126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127 *) ac_try_echo=$ac_try;;
14128esac
14129eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14130$as_echo "$ac_try_echo") >&5
14131 (eval "$ac_link") 2>conftest.er1
14132 ac_status=$?
14133 grep -v '^ *+' conftest.er1 >conftest.err
14134 rm -f conftest.er1
14135 cat conftest.err >&5
14136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } && {
14138 test -z "$ac_c_werror_flag" ||
14139 test ! -s conftest.err
14140 } && test -s conftest$ac_exeext && {
14141 test "$cross_compiling" = yes ||
14142 $as_test_x conftest$ac_exeext
14143 }; then
9551 ac_cv_lib_Xrender_XRenderQueryExtension=yes 14144 ac_cv_lib_Xrender_XRenderQueryExtension=yes
9552else 14145else
9553 ac_cv_lib_Xrender_XRenderQueryExtension=no 14146 $as_echo "$as_me: failed program was:" >&5
14147sed 's/^/| /' conftest.$ac_ext >&5
14148
14149 ac_cv_lib_Xrender_XRenderQueryExtension=no
9554fi 14150fi
9555rm -f core conftest.err conftest.$ac_objext \ 14151
9556 conftest$ac_exeext conftest.$ac_ext 14152rm -rf conftest.dSYM
14153rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14154 conftest$ac_exeext conftest.$ac_ext
9557LIBS=$ac_check_lib_save_LIBS 14155LIBS=$ac_check_lib_save_LIBS
9558fi 14156fi
9559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5 14157{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
9560$as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; } 14158$as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
9561if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then : 14159if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
9562 HAVE_XRENDER=yes 14160 HAVE_XRENDER=yes
9563fi 14161fi
9564 14162
@@ -9570,16 +14168,146 @@ fi
9570 CFLAGS="$CFLAGS $XFT_CFLAGS" 14168 CFLAGS="$CFLAGS $XFT_CFLAGS"
9571 XFT_LIBS="-lXrender $XFT_LIBS" 14169 XFT_LIBS="-lXrender $XFT_LIBS"
9572 LIBS="$XFT_LIBS $LIBS" 14170 LIBS="$XFT_LIBS $LIBS"
9573 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default" 14171 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
9574if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then : 14172 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5 14173$as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14174if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14175 $as_echo_n "(cached) " >&6
14176fi
14177{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14178$as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14179else
14180 # Is the header compilable?
14181{ $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
14182$as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
14183cat >conftest.$ac_ext <<_ACEOF
14184/* confdefs.h. */
14185_ACEOF
14186cat confdefs.h >>conftest.$ac_ext
14187cat >>conftest.$ac_ext <<_ACEOF
14188/* end confdefs.h. */
14189$ac_includes_default
14190#include <X11/Xft/Xft.h>
14191_ACEOF
14192rm -f conftest.$ac_objext
14193if { (ac_try="$ac_compile"
14194case "(($ac_try" in
14195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196 *) ac_try_echo=$ac_try;;
14197esac
14198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14199$as_echo "$ac_try_echo") >&5
14200 (eval "$ac_compile") 2>conftest.er1
14201 ac_status=$?
14202 grep -v '^ *+' conftest.er1 >conftest.err
14203 rm -f conftest.er1
14204 cat conftest.err >&5
14205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } && {
14207 test -z "$ac_c_werror_flag" ||
14208 test ! -s conftest.err
14209 } && test -s conftest.$ac_objext; then
14210 ac_header_compiler=yes
14211else
14212 $as_echo "$as_me: failed program was:" >&5
14213sed 's/^/| /' conftest.$ac_ext >&5
14214
14215 ac_header_compiler=no
14216fi
14217
14218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14219{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14220$as_echo "$ac_header_compiler" >&6; }
14221
14222# Is the header present?
14223{ $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
14224$as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
14225cat >conftest.$ac_ext <<_ACEOF
14226/* confdefs.h. */
14227_ACEOF
14228cat confdefs.h >>conftest.$ac_ext
14229cat >>conftest.$ac_ext <<_ACEOF
14230/* end confdefs.h. */
14231#include <X11/Xft/Xft.h>
14232_ACEOF
14233if { (ac_try="$ac_cpp conftest.$ac_ext"
14234case "(($ac_try" in
14235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14236 *) ac_try_echo=$ac_try;;
14237esac
14238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14239$as_echo "$ac_try_echo") >&5
14240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14241 ac_status=$?
14242 grep -v '^ *+' conftest.er1 >conftest.err
14243 rm -f conftest.er1
14244 cat conftest.err >&5
14245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); } >/dev/null && {
14247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14248 test ! -s conftest.err
14249 }; then
14250 ac_header_preproc=yes
14251else
14252 $as_echo "$as_me: failed program was:" >&5
14253sed 's/^/| /' conftest.$ac_ext >&5
14254
14255 ac_header_preproc=no
14256fi
14257
14258rm -f conftest.err conftest.$ac_ext
14259{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14260$as_echo "$ac_header_preproc" >&6; }
14261
14262# So? What about this header?
14263case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14264 yes:no: )
14265 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14266$as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14267 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14268$as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14269 ac_header_preproc=yes
14270 ;;
14271 no:yes:* )
14272 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14273$as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14274 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14275$as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14276 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14277$as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14278 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14279$as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14280 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14281$as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14282 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14283$as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14284
14285 ;;
14286esac
14287{ $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14288$as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14289if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14290 $as_echo_n "(cached) " >&6
14291else
14292 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14293fi
14294{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14295$as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14296
14297fi
14298if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14299 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
9576$as_echo_n "checking for XftFontOpen in -lXft... " >&6; } 14300$as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
9577if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then : 14301if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
9578 $as_echo_n "(cached) " >&6 14302 $as_echo_n "(cached) " >&6
9579else 14303else
9580 ac_check_lib_save_LIBS=$LIBS 14304 ac_check_lib_save_LIBS=$LIBS
9581LIBS="-lXft $XFT_LIBS $LIBS" 14305LIBS="-lXft $XFT_LIBS $LIBS"
9582cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14306cat >conftest.$ac_ext <<_ACEOF
14307/* confdefs.h. */
14308_ACEOF
14309cat confdefs.h >>conftest.$ac_ext
14310cat >>conftest.$ac_ext <<_ACEOF
9583/* end confdefs.h. */ 14311/* end confdefs.h. */
9584 14312
9585/* Override any GCC internal prototype to avoid an error. 14313/* Override any GCC internal prototype to avoid an error.
@@ -9597,18 +14325,43 @@ return XftFontOpen ();
9597 return 0; 14325 return 0;
9598} 14326}
9599_ACEOF 14327_ACEOF
9600if ac_fn_c_try_link "$LINENO"; then : 14328rm -f conftest.$ac_objext conftest$ac_exeext
14329if { (ac_try="$ac_link"
14330case "(($ac_try" in
14331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332 *) ac_try_echo=$ac_try;;
14333esac
14334eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14335$as_echo "$ac_try_echo") >&5
14336 (eval "$ac_link") 2>conftest.er1
14337 ac_status=$?
14338 grep -v '^ *+' conftest.er1 >conftest.err
14339 rm -f conftest.er1
14340 cat conftest.err >&5
14341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); } && {
14343 test -z "$ac_c_werror_flag" ||
14344 test ! -s conftest.err
14345 } && test -s conftest$ac_exeext && {
14346 test "$cross_compiling" = yes ||
14347 $as_test_x conftest$ac_exeext
14348 }; then
9601 ac_cv_lib_Xft_XftFontOpen=yes 14349 ac_cv_lib_Xft_XftFontOpen=yes
9602else 14350else
9603 ac_cv_lib_Xft_XftFontOpen=no 14351 $as_echo "$as_me: failed program was:" >&5
14352sed 's/^/| /' conftest.$ac_ext >&5
14353
14354 ac_cv_lib_Xft_XftFontOpen=no
9604fi 14355fi
9605rm -f core conftest.err conftest.$ac_objext \ 14356
9606 conftest$ac_exeext conftest.$ac_ext 14357rm -rf conftest.dSYM
14358rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14359 conftest$ac_exeext conftest.$ac_ext
9607LIBS=$ac_check_lib_save_LIBS 14360LIBS=$ac_check_lib_save_LIBS
9608fi 14361fi
9609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5 14362{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
9610$as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; } 14363$as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
9611if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then : 14364if test $ac_cv_lib_Xft_XftFontOpen = yes; then
9612 HAVE_XFT=yes 14365 HAVE_XFT=yes
9613fi 14366fi
9614 14367
@@ -9618,7 +14371,9 @@ fi
9618 14371
9619 if test "${HAVE_XFT}" = "yes"; then 14372 if test "${HAVE_XFT}" = "yes"; then
9620 14373
9621$as_echo "#define HAVE_XFT 1" >>confdefs.h 14374cat >>confdefs.h <<\_ACEOF
14375#define HAVE_XFT 1
14376_ACEOF
9622 14377
9623 14378
9624 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS" 14379 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
@@ -9647,7 +14402,9 @@ $as_echo "#define HAVE_XFT 1" >>confdefs.h
9647 HAVE_LIBOTF=no 14402 HAVE_LIBOTF=no
9648 if test "${HAVE_FREETYPE}" = "yes"; then 14403 if test "${HAVE_FREETYPE}" = "yes"; then
9649 14404
9650$as_echo "#define HAVE_FREETYPE 1" >>confdefs.h 14405cat >>confdefs.h <<\_ACEOF
14406#define HAVE_FREETYPE 1
14407_ACEOF
9651 14408
9652 if test "${with_libotf}" != "no"; then 14409 if test "${with_libotf}" != "no"; then
9653 14410
@@ -9655,9 +14412,9 @@ $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
9655 14412
9656 # Extract the first word of "pkg-config", so it can be a program name with args. 14413 # Extract the first word of "pkg-config", so it can be a program name with args.
9657set dummy pkg-config; ac_word=$2 14414set dummy pkg-config; ac_word=$2
9658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14415{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9659$as_echo_n "checking for $ac_word... " >&6; } 14416$as_echo_n "checking for $ac_word... " >&6; }
9660if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 14417if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9661 $as_echo_n "(cached) " >&6 14418 $as_echo_n "(cached) " >&6
9662else 14419else
9663 case $PKG_CONFIG in 14420 case $PKG_CONFIG in
@@ -9670,14 +14427,14 @@ for as_dir in $PATH
9670do 14427do
9671 IFS=$as_save_IFS 14428 IFS=$as_save_IFS
9672 test -z "$as_dir" && as_dir=. 14429 test -z "$as_dir" && as_dir=.
9673 for ac_exec_ext in '' $ac_executable_extensions; do 14430 for ac_exec_ext in '' $ac_executable_extensions; do
9674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9675 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14432 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14433 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9677 break 2 14434 break 2
9678 fi 14435 fi
9679done 14436done
9680 done 14437done
9681IFS=$as_save_IFS 14438IFS=$as_save_IFS
9682 14439
9683 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 14440 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -9686,10 +14443,10 @@ esac
9686fi 14443fi
9687PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14444PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9688if test -n "$PKG_CONFIG"; then 14445if test -n "$PKG_CONFIG"; then
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14446 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9690$as_echo "$PKG_CONFIG" >&6; } 14447$as_echo "$PKG_CONFIG" >&6; }
9691else 14448else
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14449 { $as_echo "$as_me:$LINENO: result: no" >&5
9693$as_echo "no" >&6; } 14450$as_echo "no" >&6; }
9694fi 14451fi
9695 14452
@@ -9700,27 +14457,27 @@ fi
9700 else 14457 else
9701 PKG_CONFIG_MIN_VERSION=0.9.0 14458 PKG_CONFIG_MIN_VERSION=0.9.0
9702 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 14459 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5 14460 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
9704$as_echo_n "checking for libotf... " >&6; } 14461$as_echo_n "checking for libotf... " >&6; }
9705 14462
9706 if $PKG_CONFIG --exists "libotf" 2>&5; then 14463 if $PKG_CONFIG --exists "libotf" 2>&5; then
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14464 { $as_echo "$as_me:$LINENO: result: yes" >&5
9708$as_echo "yes" >&6; } 14465$as_echo "yes" >&6; }
9709 succeeded=yes 14466 succeeded=yes
9710 14467
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5 14468 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
9712$as_echo_n "checking LIBOTF_CFLAGS... " >&6; } 14469$as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
9713 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'` 14470 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5 14471 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
9715$as_echo "$LIBOTF_CFLAGS" >&6; } 14472$as_echo "$LIBOTF_CFLAGS" >&6; }
9716 14473
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5 14474 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
9718$as_echo_n "checking LIBOTF_LIBS... " >&6; } 14475$as_echo_n "checking LIBOTF_LIBS... " >&6; }
9719 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'` 14476 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5 14477 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
9721$as_echo "$LIBOTF_LIBS" >&6; } 14478$as_echo "$LIBOTF_LIBS" >&6; }
9722 else 14479 else
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14480 { $as_echo "$as_me:$LINENO: result: no" >&5
9724$as_echo "no" >&6; } 14481$as_echo "no" >&6; }
9725 LIBOTF_CFLAGS="" 14482 LIBOTF_CFLAGS=""
9726 LIBOTF_LIBS="" 14483 LIBOTF_LIBS=""
@@ -9746,16 +14503,22 @@ $as_echo "no" >&6; }
9746 14503
9747 if test "$HAVE_LIBOTF" = "yes"; then 14504 if test "$HAVE_LIBOTF" = "yes"; then
9748 14505
9749$as_echo "#define HAVE_LIBOTF 1" >>confdefs.h 14506cat >>confdefs.h <<\_ACEOF
14507#define HAVE_LIBOTF 1
14508_ACEOF
9750 14509
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5 14510 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
9752$as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; } 14511$as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
9753if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then : 14512if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
9754 $as_echo_n "(cached) " >&6 14513 $as_echo_n "(cached) " >&6
9755else 14514else
9756 ac_check_lib_save_LIBS=$LIBS 14515 ac_check_lib_save_LIBS=$LIBS
9757LIBS="-lotf $LIBS" 14516LIBS="-lotf $LIBS"
9758cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14517cat >conftest.$ac_ext <<_ACEOF
14518/* confdefs.h. */
14519_ACEOF
14520cat confdefs.h >>conftest.$ac_ext
14521cat >>conftest.$ac_ext <<_ACEOF
9759/* end confdefs.h. */ 14522/* end confdefs.h. */
9760 14523
9761/* Override any GCC internal prototype to avoid an error. 14524/* Override any GCC internal prototype to avoid an error.
@@ -9773,18 +14536,43 @@ return OTF_get_variation_glyphs ();
9773 return 0; 14536 return 0;
9774} 14537}
9775_ACEOF 14538_ACEOF
9776if ac_fn_c_try_link "$LINENO"; then : 14539rm -f conftest.$ac_objext conftest$ac_exeext
14540if { (ac_try="$ac_link"
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_link") 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); } && {
14554 test -z "$ac_c_werror_flag" ||
14555 test ! -s conftest.err
14556 } && test -s conftest$ac_exeext && {
14557 test "$cross_compiling" = yes ||
14558 $as_test_x conftest$ac_exeext
14559 }; then
9777 ac_cv_lib_otf_OTF_get_variation_glyphs=yes 14560 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
9778else 14561else
9779 ac_cv_lib_otf_OTF_get_variation_glyphs=no 14562 $as_echo "$as_me: failed program was:" >&5
14563sed 's/^/| /' conftest.$ac_ext >&5
14564
14565 ac_cv_lib_otf_OTF_get_variation_glyphs=no
9780fi 14566fi
9781rm -f core conftest.err conftest.$ac_objext \ 14567
9782 conftest$ac_exeext conftest.$ac_ext 14568rm -rf conftest.dSYM
14569rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14570 conftest$ac_exeext conftest.$ac_ext
9783LIBS=$ac_check_lib_save_LIBS 14571LIBS=$ac_check_lib_save_LIBS
9784fi 14572fi
9785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5 14573{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
9786$as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; } 14574$as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
9787if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then : 14575if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
9788 HAVE_OTF_GET_VARIATION_GLYPHS=yes 14576 HAVE_OTF_GET_VARIATION_GLYPHS=yes
9789else 14577else
9790 HAVE_OTF_GET_VARIATION_GLYPHS=no 14578 HAVE_OTF_GET_VARIATION_GLYPHS=no
@@ -9792,7 +14580,9 @@ fi
9792 14580
9793 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then 14581 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
9794 14582
9795$as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h 14583cat >>confdefs.h <<\_ACEOF
14584#define HAVE_OTF_GET_VARIATION_GLYPHS 1
14585_ACEOF
9796 14586
9797 fi 14587 fi
9798 fi 14588 fi
@@ -9807,9 +14597,9 @@ $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
9807 14597
9808 # Extract the first word of "pkg-config", so it can be a program name with args. 14598 # Extract the first word of "pkg-config", so it can be a program name with args.
9809set dummy pkg-config; ac_word=$2 14599set dummy pkg-config; ac_word=$2
9810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14600{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9811$as_echo_n "checking for $ac_word... " >&6; } 14601$as_echo_n "checking for $ac_word... " >&6; }
9812if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 14602if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9813 $as_echo_n "(cached) " >&6 14603 $as_echo_n "(cached) " >&6
9814else 14604else
9815 case $PKG_CONFIG in 14605 case $PKG_CONFIG in
@@ -9822,14 +14612,14 @@ for as_dir in $PATH
9822do 14612do
9823 IFS=$as_save_IFS 14613 IFS=$as_save_IFS
9824 test -z "$as_dir" && as_dir=. 14614 test -z "$as_dir" && as_dir=.
9825 for ac_exec_ext in '' $ac_executable_extensions; do 14615 for ac_exec_ext in '' $ac_executable_extensions; do
9826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9827 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14617 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14618 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9829 break 2 14619 break 2
9830 fi 14620 fi
9831done 14621done
9832 done 14622done
9833IFS=$as_save_IFS 14623IFS=$as_save_IFS
9834 14624
9835 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 14625 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -9838,10 +14628,10 @@ esac
9838fi 14628fi
9839PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14629PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9840if test -n "$PKG_CONFIG"; then 14630if test -n "$PKG_CONFIG"; then
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14631 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9842$as_echo "$PKG_CONFIG" >&6; } 14632$as_echo "$PKG_CONFIG" >&6; }
9843else 14633else
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14634 { $as_echo "$as_me:$LINENO: result: no" >&5
9845$as_echo "no" >&6; } 14635$as_echo "no" >&6; }
9846fi 14636fi
9847 14637
@@ -9852,27 +14642,27 @@ fi
9852 else 14642 else
9853 PKG_CONFIG_MIN_VERSION=0.9.0 14643 PKG_CONFIG_MIN_VERSION=0.9.0
9854 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 14644 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5 14645 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
9856$as_echo_n "checking for m17n-flt... " >&6; } 14646$as_echo_n "checking for m17n-flt... " >&6; }
9857 14647
9858 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then 14648 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14649 { $as_echo "$as_me:$LINENO: result: yes" >&5
9860$as_echo "yes" >&6; } 14650$as_echo "yes" >&6; }
9861 succeeded=yes 14651 succeeded=yes
9862 14652
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5 14653 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
9864$as_echo_n "checking M17N_FLT_CFLAGS... " >&6; } 14654$as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
9865 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'` 14655 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5 14656 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
9867$as_echo "$M17N_FLT_CFLAGS" >&6; } 14657$as_echo "$M17N_FLT_CFLAGS" >&6; }
9868 14658
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5 14659 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
9870$as_echo_n "checking M17N_FLT_LIBS... " >&6; } 14660$as_echo_n "checking M17N_FLT_LIBS... " >&6; }
9871 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'` 14661 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5 14662 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
9873$as_echo "$M17N_FLT_LIBS" >&6; } 14663$as_echo "$M17N_FLT_LIBS" >&6; }
9874 else 14664 else
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14665 { $as_echo "$as_me:$LINENO: result: no" >&5
9876$as_echo "no" >&6; } 14666$as_echo "no" >&6; }
9877 M17N_FLT_CFLAGS="" 14667 M17N_FLT_CFLAGS=""
9878 M17N_FLT_LIBS="" 14668 M17N_FLT_LIBS=""
@@ -9898,7 +14688,9 @@ $as_echo "no" >&6; }
9898 14688
9899 if test "$HAVE_M17N_FLT" = "yes"; then 14689 if test "$HAVE_M17N_FLT" = "yes"; then
9900 14690
9901$as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h 14691cat >>confdefs.h <<\_ACEOF
14692#define HAVE_M17N_FLT 1
14693_ACEOF
9902 14694
9903 fi 14695 fi
9904 fi 14696 fi
@@ -9910,14 +14702,6 @@ else
9910 HAVE_M17N_FLT=no 14702 HAVE_M17N_FLT=no
9911fi 14703fi
9912 14704
9913FONT_OBJ=xfont.o
9914if test "$HAVE_XFT" = "yes"; then
9915 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
9916elif test "$HAVE_FREETYPE" = "yes"; then
9917 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
9918fi
9919
9920
9921### End of font-backend (under X11) section. 14705### End of font-backend (under X11) section.
9922 14706
9923 14707
@@ -9934,16 +14718,146 @@ HAVE_XPM=no
9934LIBXPM= 14718LIBXPM=
9935if test "${HAVE_X11}" = "yes"; then 14719if test "${HAVE_X11}" = "yes"; then
9936 if test "${with_xpm}" != "no"; then 14720 if test "${with_xpm}" != "no"; then
9937 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default" 14721 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9938if test "x$ac_cv_header_X11_xpm_h" = x""yes; then : 14722 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5 14723$as_echo_n "checking for X11/xpm.h... " >&6; }
14724if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14725 $as_echo_n "(cached) " >&6
14726fi
14727{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14728$as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14729else
14730 # Is the header compilable?
14731{ $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14732$as_echo_n "checking X11/xpm.h usability... " >&6; }
14733cat >conftest.$ac_ext <<_ACEOF
14734/* confdefs.h. */
14735_ACEOF
14736cat confdefs.h >>conftest.$ac_ext
14737cat >>conftest.$ac_ext <<_ACEOF
14738/* end confdefs.h. */
14739$ac_includes_default
14740#include <X11/xpm.h>
14741_ACEOF
14742rm -f conftest.$ac_objext
14743if { (ac_try="$ac_compile"
14744case "(($ac_try" in
14745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14746 *) ac_try_echo=$ac_try;;
14747esac
14748eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14749$as_echo "$ac_try_echo") >&5
14750 (eval "$ac_compile") 2>conftest.er1
14751 ac_status=$?
14752 grep -v '^ *+' conftest.er1 >conftest.err
14753 rm -f conftest.er1
14754 cat conftest.err >&5
14755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); } && {
14757 test -z "$ac_c_werror_flag" ||
14758 test ! -s conftest.err
14759 } && test -s conftest.$ac_objext; then
14760 ac_header_compiler=yes
14761else
14762 $as_echo "$as_me: failed program was:" >&5
14763sed 's/^/| /' conftest.$ac_ext >&5
14764
14765 ac_header_compiler=no
14766fi
14767
14768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14769{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14770$as_echo "$ac_header_compiler" >&6; }
14771
14772# Is the header present?
14773{ $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14774$as_echo_n "checking X11/xpm.h presence... " >&6; }
14775cat >conftest.$ac_ext <<_ACEOF
14776/* confdefs.h. */
14777_ACEOF
14778cat confdefs.h >>conftest.$ac_ext
14779cat >>conftest.$ac_ext <<_ACEOF
14780/* end confdefs.h. */
14781#include <X11/xpm.h>
14782_ACEOF
14783if { (ac_try="$ac_cpp conftest.$ac_ext"
14784case "(($ac_try" in
14785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14786 *) ac_try_echo=$ac_try;;
14787esac
14788eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14789$as_echo "$ac_try_echo") >&5
14790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14791 ac_status=$?
14792 grep -v '^ *+' conftest.er1 >conftest.err
14793 rm -f conftest.er1
14794 cat conftest.err >&5
14795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); } >/dev/null && {
14797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14798 test ! -s conftest.err
14799 }; then
14800 ac_header_preproc=yes
14801else
14802 $as_echo "$as_me: failed program was:" >&5
14803sed 's/^/| /' conftest.$ac_ext >&5
14804
14805 ac_header_preproc=no
14806fi
14807
14808rm -f conftest.err conftest.$ac_ext
14809{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14810$as_echo "$ac_header_preproc" >&6; }
14811
14812# So? What about this header?
14813case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14814 yes:no: )
14815 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14816$as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14817 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14818$as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14819 ac_header_preproc=yes
14820 ;;
14821 no:yes:* )
14822 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14823$as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14824 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14825$as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14826 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14827$as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14828 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14829$as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14830 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14831$as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14832 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14833$as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14834
14835 ;;
14836esac
14837{ $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14838$as_echo_n "checking for X11/xpm.h... " >&6; }
14839if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14840 $as_echo_n "(cached) " >&6
14841else
14842 ac_cv_header_X11_xpm_h=$ac_header_preproc
14843fi
14844{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14845$as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14846
14847fi
14848if test $ac_cv_header_X11_xpm_h = yes; then
14849 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
9940$as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; } 14850$as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
9941if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then : 14851if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
9942 $as_echo_n "(cached) " >&6 14852 $as_echo_n "(cached) " >&6
9943else 14853else
9944 ac_check_lib_save_LIBS=$LIBS 14854 ac_check_lib_save_LIBS=$LIBS
9945LIBS="-lXpm -lX11 $LIBS" 14855LIBS="-lXpm -lX11 $LIBS"
9946cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14856cat >conftest.$ac_ext <<_ACEOF
14857/* confdefs.h. */
14858_ACEOF
14859cat confdefs.h >>conftest.$ac_ext
14860cat >>conftest.$ac_ext <<_ACEOF
9947/* end confdefs.h. */ 14861/* end confdefs.h. */
9948 14862
9949/* Override any GCC internal prototype to avoid an error. 14863/* Override any GCC internal prototype to avoid an error.
@@ -9961,18 +14875,43 @@ return XpmReadFileToPixmap ();
9961 return 0; 14875 return 0;
9962} 14876}
9963_ACEOF 14877_ACEOF
9964if ac_fn_c_try_link "$LINENO"; then : 14878rm -f conftest.$ac_objext conftest$ac_exeext
14879if { (ac_try="$ac_link"
14880case "(($ac_try" in
14881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14883esac
14884eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14885$as_echo "$ac_try_echo") >&5
14886 (eval "$ac_link") 2>conftest.er1
14887 ac_status=$?
14888 grep -v '^ *+' conftest.er1 >conftest.err
14889 rm -f conftest.er1
14890 cat conftest.err >&5
14891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); } && {
14893 test -z "$ac_c_werror_flag" ||
14894 test ! -s conftest.err
14895 } && test -s conftest$ac_exeext && {
14896 test "$cross_compiling" = yes ||
14897 $as_test_x conftest$ac_exeext
14898 }; then
9965 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes 14899 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9966else 14900else
9967 ac_cv_lib_Xpm_XpmReadFileToPixmap=no 14901 $as_echo "$as_me: failed program was:" >&5
14902sed 's/^/| /' conftest.$ac_ext >&5
14903
14904 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
9968fi 14905fi
9969rm -f core conftest.err conftest.$ac_objext \ 14906
9970 conftest$ac_exeext conftest.$ac_ext 14907rm -rf conftest.dSYM
14908rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14909 conftest$ac_exeext conftest.$ac_ext
9971LIBS=$ac_check_lib_save_LIBS 14910LIBS=$ac_check_lib_save_LIBS
9972fi 14911fi
9973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 14912{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9974$as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; } 14913$as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
9975if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then : 14914if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9976 HAVE_XPM=yes 14915 HAVE_XPM=yes
9977fi 14916fi
9978 14917
@@ -9980,9 +14919,13 @@ fi
9980 14919
9981 14920
9982 if test "${HAVE_XPM}" = "yes"; then 14921 if test "${HAVE_XPM}" = "yes"; then
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5 14922 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9984$as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; } 14923$as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
9985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14924 cat >conftest.$ac_ext <<_ACEOF
14925/* confdefs.h. */
14926_ACEOF
14927cat confdefs.h >>conftest.$ac_ext
14928cat >>conftest.$ac_ext <<_ACEOF
9986/* end confdefs.h. */ 14929/* end confdefs.h. */
9987#include "X11/xpm.h" 14930#include "X11/xpm.h"
9988#ifndef XpmReturnAllocPixels 14931#ifndef XpmReturnAllocPixels
@@ -9991,7 +14934,7 @@ no_return_alloc_pixels
9991 14934
9992_ACEOF 14935_ACEOF
9993if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14936if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9994 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then : 14937 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
9995 HAVE_XPM=no 14938 HAVE_XPM=no
9996else 14939else
9997 HAVE_XPM=yes 14940 HAVE_XPM=yes
@@ -10000,10 +14943,10 @@ rm -f conftest*
10000 14943
10001 14944
10002 if test "${HAVE_XPM}" = "yes"; then 14945 if test "${HAVE_XPM}" = "yes"; then
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14946 { $as_echo "$as_me:$LINENO: result: yes" >&5
10004$as_echo "yes" >&6; } 14947$as_echo "yes" >&6; }
10005 else 14948 else
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14949 { $as_echo "$as_me:$LINENO: result: no" >&5
10007$as_echo "no" >&6; } 14950$as_echo "no" >&6; }
10008 fi 14951 fi
10009 fi 14952 fi
@@ -10011,7 +14954,9 @@ $as_echo "no" >&6; }
10011 14954
10012 if test "${HAVE_XPM}" = "yes"; then 14955 if test "${HAVE_XPM}" = "yes"; then
10013 14956
10014$as_echo "#define HAVE_XPM 1" >>confdefs.h 14957cat >>confdefs.h <<\_ACEOF
14958#define HAVE_XPM 1
14959_ACEOF
10015 14960
10016 LIBXPM=-lXpm 14961 LIBXPM=-lXpm
10017 fi 14962 fi
@@ -10023,16 +14968,146 @@ HAVE_JPEG=no
10023LIBJPEG= 14968LIBJPEG=
10024if test "${HAVE_X11}" = "yes"; then 14969if test "${HAVE_X11}" = "yes"; then
10025 if test "${with_jpeg}" != "no"; then 14970 if test "${with_jpeg}" != "no"; then
10026 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default" 14971 if test "${ac_cv_header_jerror_h+set}" = set; then
10027if test "x$ac_cv_header_jerror_h" = x""yes; then : 14972 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5 14973$as_echo_n "checking for jerror.h... " >&6; }
14974if test "${ac_cv_header_jerror_h+set}" = set; then
14975 $as_echo_n "(cached) " >&6
14976fi
14977{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14978$as_echo "$ac_cv_header_jerror_h" >&6; }
14979else
14980 # Is the header compilable?
14981{ $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14982$as_echo_n "checking jerror.h usability... " >&6; }
14983cat >conftest.$ac_ext <<_ACEOF
14984/* confdefs.h. */
14985_ACEOF
14986cat confdefs.h >>conftest.$ac_ext
14987cat >>conftest.$ac_ext <<_ACEOF
14988/* end confdefs.h. */
14989$ac_includes_default
14990#include <jerror.h>
14991_ACEOF
14992rm -f conftest.$ac_objext
14993if { (ac_try="$ac_compile"
14994case "(($ac_try" in
14995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14996 *) ac_try_echo=$ac_try;;
14997esac
14998eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14999$as_echo "$ac_try_echo") >&5
15000 (eval "$ac_compile") 2>conftest.er1
15001 ac_status=$?
15002 grep -v '^ *+' conftest.er1 >conftest.err
15003 rm -f conftest.er1
15004 cat conftest.err >&5
15005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); } && {
15007 test -z "$ac_c_werror_flag" ||
15008 test ! -s conftest.err
15009 } && test -s conftest.$ac_objext; then
15010 ac_header_compiler=yes
15011else
15012 $as_echo "$as_me: failed program was:" >&5
15013sed 's/^/| /' conftest.$ac_ext >&5
15014
15015 ac_header_compiler=no
15016fi
15017
15018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15019{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15020$as_echo "$ac_header_compiler" >&6; }
15021
15022# Is the header present?
15023{ $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
15024$as_echo_n "checking jerror.h presence... " >&6; }
15025cat >conftest.$ac_ext <<_ACEOF
15026/* confdefs.h. */
15027_ACEOF
15028cat confdefs.h >>conftest.$ac_ext
15029cat >>conftest.$ac_ext <<_ACEOF
15030/* end confdefs.h. */
15031#include <jerror.h>
15032_ACEOF
15033if { (ac_try="$ac_cpp conftest.$ac_ext"
15034case "(($ac_try" in
15035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15036 *) ac_try_echo=$ac_try;;
15037esac
15038eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15039$as_echo "$ac_try_echo") >&5
15040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15041 ac_status=$?
15042 grep -v '^ *+' conftest.er1 >conftest.err
15043 rm -f conftest.er1
15044 cat conftest.err >&5
15045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); } >/dev/null && {
15047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15048 test ! -s conftest.err
15049 }; then
15050 ac_header_preproc=yes
15051else
15052 $as_echo "$as_me: failed program was:" >&5
15053sed 's/^/| /' conftest.$ac_ext >&5
15054
15055 ac_header_preproc=no
15056fi
15057
15058rm -f conftest.err conftest.$ac_ext
15059{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15060$as_echo "$ac_header_preproc" >&6; }
15061
15062# So? What about this header?
15063case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15064 yes:no: )
15065 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
15066$as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15067 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
15068$as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
15069 ac_header_preproc=yes
15070 ;;
15071 no:yes:* )
15072 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
15073$as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
15074 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
15075$as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
15076 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
15077$as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
15078 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
15079$as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
15080 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
15081$as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
15082 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
15083$as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
15084
15085 ;;
15086esac
15087{ $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
15088$as_echo_n "checking for jerror.h... " >&6; }
15089if test "${ac_cv_header_jerror_h+set}" = set; then
15090 $as_echo_n "(cached) " >&6
15091else
15092 ac_cv_header_jerror_h=$ac_header_preproc
15093fi
15094{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
15095$as_echo "$ac_cv_header_jerror_h" >&6; }
15096
15097fi
15098if test $ac_cv_header_jerror_h = yes; then
15099 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
10029$as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; } 15100$as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10030if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then : 15101if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
10031 $as_echo_n "(cached) " >&6 15102 $as_echo_n "(cached) " >&6
10032else 15103else
10033 ac_check_lib_save_LIBS=$LIBS 15104 ac_check_lib_save_LIBS=$LIBS
10034LIBS="-ljpeg $LIBS" 15105LIBS="-ljpeg $LIBS"
10035cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15106cat >conftest.$ac_ext <<_ACEOF
15107/* confdefs.h. */
15108_ACEOF
15109cat confdefs.h >>conftest.$ac_ext
15110cat >>conftest.$ac_ext <<_ACEOF
10036/* end confdefs.h. */ 15111/* end confdefs.h. */
10037 15112
10038/* Override any GCC internal prototype to avoid an error. 15113/* Override any GCC internal prototype to avoid an error.
@@ -10050,18 +15125,43 @@ return jpeg_destroy_compress ();
10050 return 0; 15125 return 0;
10051} 15126}
10052_ACEOF 15127_ACEOF
10053if ac_fn_c_try_link "$LINENO"; then : 15128rm -f conftest.$ac_objext conftest$ac_exeext
15129if { (ac_try="$ac_link"
15130case "(($ac_try" in
15131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15132 *) ac_try_echo=$ac_try;;
15133esac
15134eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15135$as_echo "$ac_try_echo") >&5
15136 (eval "$ac_link") 2>conftest.er1
15137 ac_status=$?
15138 grep -v '^ *+' conftest.er1 >conftest.err
15139 rm -f conftest.er1
15140 cat conftest.err >&5
15141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); } && {
15143 test -z "$ac_c_werror_flag" ||
15144 test ! -s conftest.err
15145 } && test -s conftest$ac_exeext && {
15146 test "$cross_compiling" = yes ||
15147 $as_test_x conftest$ac_exeext
15148 }; then
10054 ac_cv_lib_jpeg_jpeg_destroy_compress=yes 15149 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
10055else 15150else
10056 ac_cv_lib_jpeg_jpeg_destroy_compress=no 15151 $as_echo "$as_me: failed program was:" >&5
15152sed 's/^/| /' conftest.$ac_ext >&5
15153
15154 ac_cv_lib_jpeg_jpeg_destroy_compress=no
10057fi 15155fi
10058rm -f core conftest.err conftest.$ac_objext \ 15156
10059 conftest$ac_exeext conftest.$ac_ext 15157rm -rf conftest.dSYM
15158rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15159 conftest$ac_exeext conftest.$ac_ext
10060LIBS=$ac_check_lib_save_LIBS 15160LIBS=$ac_check_lib_save_LIBS
10061fi 15161fi
10062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 15162{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10063$as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; } 15163$as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10064if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then : 15164if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
10065 HAVE_JPEG=yes 15165 HAVE_JPEG=yes
10066fi 15166fi
10067 15167
@@ -10070,21 +15170,30 @@ fi
10070 15170
10071 fi 15171 fi
10072 15172
10073 if test "${HAVE_JPEG}" = "yes"; then
10074 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10075 15173
10076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15174 if test "${HAVE_JPEG}" = "yes"; then
15175 cat >>confdefs.h <<\_ACEOF
15176#define HAVE_JPEG 1
15177_ACEOF
15178
15179 cat >conftest.$ac_ext <<_ACEOF
15180/* confdefs.h. */
15181_ACEOF
15182cat confdefs.h >>conftest.$ac_ext
15183cat >>conftest.$ac_ext <<_ACEOF
10077/* end confdefs.h. */ 15184/* end confdefs.h. */
10078#include <jpeglib.h> 15185#include <jpeglib.h>
10079 version=JPEG_LIB_VERSION 15186 version=JPEG_LIB_VERSION
10080 15187
10081_ACEOF 15188_ACEOF
10082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15189if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10083 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then : 15190 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
10084 $as_echo "#define HAVE_JPEG 1" >>confdefs.h 15191 cat >>confdefs.h <<\_ACEOF
15192#define HAVE_JPEG 1
15193_ACEOF
10085 15194
10086else 15195else
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5 15196 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
10088$as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} 15197$as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10089 HAVE_JPEG=no 15198 HAVE_JPEG=no
10090fi 15199fi
@@ -10104,12 +15213,144 @@ if test "${HAVE_X11}" = "yes"; then
10104 if test "${with_png}" != "no"; then 15213 if test "${with_png}" != "no"; then
10105 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h 15214 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10106 # in /usr/include/libpng. 15215 # in /usr/include/libpng.
10107 for ac_header in png.h libpng/png.h 15216
10108do : 15217
10109 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15218for ac_header in png.h libpng/png.h
10110ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15219do
10111eval as_val=\$$as_ac_Header 15220as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10112 if test "x$as_val" = x""yes; then : 15221if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15222 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15223$as_echo_n "checking for $ac_header... " >&6; }
15224if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15225 $as_echo_n "(cached) " >&6
15226fi
15227ac_res=`eval 'as_val=${'$as_ac_Header'}
15228 $as_echo "$as_val"'`
15229 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15230$as_echo "$ac_res" >&6; }
15231else
15232 # Is the header compilable?
15233{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15234$as_echo_n "checking $ac_header usability... " >&6; }
15235cat >conftest.$ac_ext <<_ACEOF
15236/* confdefs.h. */
15237_ACEOF
15238cat confdefs.h >>conftest.$ac_ext
15239cat >>conftest.$ac_ext <<_ACEOF
15240/* end confdefs.h. */
15241$ac_includes_default
15242#include <$ac_header>
15243_ACEOF
15244rm -f conftest.$ac_objext
15245if { (ac_try="$ac_compile"
15246case "(($ac_try" in
15247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15248 *) ac_try_echo=$ac_try;;
15249esac
15250eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15251$as_echo "$ac_try_echo") >&5
15252 (eval "$ac_compile") 2>conftest.er1
15253 ac_status=$?
15254 grep -v '^ *+' conftest.er1 >conftest.err
15255 rm -f conftest.er1
15256 cat conftest.err >&5
15257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); } && {
15259 test -z "$ac_c_werror_flag" ||
15260 test ! -s conftest.err
15261 } && test -s conftest.$ac_objext; then
15262 ac_header_compiler=yes
15263else
15264 $as_echo "$as_me: failed program was:" >&5
15265sed 's/^/| /' conftest.$ac_ext >&5
15266
15267 ac_header_compiler=no
15268fi
15269
15270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15271{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15272$as_echo "$ac_header_compiler" >&6; }
15273
15274# Is the header present?
15275{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15276$as_echo_n "checking $ac_header presence... " >&6; }
15277cat >conftest.$ac_ext <<_ACEOF
15278/* confdefs.h. */
15279_ACEOF
15280cat confdefs.h >>conftest.$ac_ext
15281cat >>conftest.$ac_ext <<_ACEOF
15282/* end confdefs.h. */
15283#include <$ac_header>
15284_ACEOF
15285if { (ac_try="$ac_cpp conftest.$ac_ext"
15286case "(($ac_try" in
15287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15288 *) ac_try_echo=$ac_try;;
15289esac
15290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15291$as_echo "$ac_try_echo") >&5
15292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15293 ac_status=$?
15294 grep -v '^ *+' conftest.er1 >conftest.err
15295 rm -f conftest.er1
15296 cat conftest.err >&5
15297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); } >/dev/null && {
15299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15300 test ! -s conftest.err
15301 }; then
15302 ac_header_preproc=yes
15303else
15304 $as_echo "$as_me: failed program was:" >&5
15305sed 's/^/| /' conftest.$ac_ext >&5
15306
15307 ac_header_preproc=no
15308fi
15309
15310rm -f conftest.err conftest.$ac_ext
15311{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15312$as_echo "$ac_header_preproc" >&6; }
15313
15314# So? What about this header?
15315case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15316 yes:no: )
15317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15318$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15320$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15321 ac_header_preproc=yes
15322 ;;
15323 no:yes:* )
15324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15325$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15327$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15329$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15331$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15333$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15335$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15336
15337 ;;
15338esac
15339{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15340$as_echo_n "checking for $ac_header... " >&6; }
15341if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15342 $as_echo_n "(cached) " >&6
15343else
15344 eval "$as_ac_Header=\$ac_header_preproc"
15345fi
15346ac_res=`eval 'as_val=${'$as_ac_Header'}
15347 $as_echo "$as_val"'`
15348 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15349$as_echo "$ac_res" >&6; }
15350
15351fi
15352if test `eval 'as_val=${'$as_ac_Header'}
15353 $as_echo "$as_val"'` = yes; then
10113 cat >>confdefs.h <<_ACEOF 15354 cat >>confdefs.h <<_ACEOF
10114#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15355#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10115_ACEOF 15356_ACEOF
@@ -10119,14 +15360,18 @@ fi
10119done 15360done
10120 15361
10121 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then 15362 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5 15363 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
10123$as_echo_n "checking for png_get_channels in -lpng... " >&6; } 15364$as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10124if test "${ac_cv_lib_png_png_get_channels+set}" = set; then : 15365if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
10125 $as_echo_n "(cached) " >&6 15366 $as_echo_n "(cached) " >&6
10126else 15367else
10127 ac_check_lib_save_LIBS=$LIBS 15368 ac_check_lib_save_LIBS=$LIBS
10128LIBS="-lpng -lz -lm $LIBS" 15369LIBS="-lpng -lz -lm $LIBS"
10129cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15370cat >conftest.$ac_ext <<_ACEOF
15371/* confdefs.h. */
15372_ACEOF
15373cat confdefs.h >>conftest.$ac_ext
15374cat >>conftest.$ac_ext <<_ACEOF
10130/* end confdefs.h. */ 15375/* end confdefs.h. */
10131 15376
10132/* Override any GCC internal prototype to avoid an error. 15377/* Override any GCC internal prototype to avoid an error.
@@ -10144,18 +15389,43 @@ return png_get_channels ();
10144 return 0; 15389 return 0;
10145} 15390}
10146_ACEOF 15391_ACEOF
10147if ac_fn_c_try_link "$LINENO"; then : 15392rm -f conftest.$ac_objext conftest$ac_exeext
15393if { (ac_try="$ac_link"
15394case "(($ac_try" in
15395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15396 *) ac_try_echo=$ac_try;;
15397esac
15398eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15399$as_echo "$ac_try_echo") >&5
15400 (eval "$ac_link") 2>conftest.er1
15401 ac_status=$?
15402 grep -v '^ *+' conftest.er1 >conftest.err
15403 rm -f conftest.er1
15404 cat conftest.err >&5
15405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); } && {
15407 test -z "$ac_c_werror_flag" ||
15408 test ! -s conftest.err
15409 } && test -s conftest$ac_exeext && {
15410 test "$cross_compiling" = yes ||
15411 $as_test_x conftest$ac_exeext
15412 }; then
10148 ac_cv_lib_png_png_get_channels=yes 15413 ac_cv_lib_png_png_get_channels=yes
10149else 15414else
10150 ac_cv_lib_png_png_get_channels=no 15415 $as_echo "$as_me: failed program was:" >&5
15416sed 's/^/| /' conftest.$ac_ext >&5
15417
15418 ac_cv_lib_png_png_get_channels=no
10151fi 15419fi
10152rm -f core conftest.err conftest.$ac_objext \ 15420
10153 conftest$ac_exeext conftest.$ac_ext 15421rm -rf conftest.dSYM
15422rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15423 conftest$ac_exeext conftest.$ac_ext
10154LIBS=$ac_check_lib_save_LIBS 15424LIBS=$ac_check_lib_save_LIBS
10155fi 15425fi
10156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5 15426{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
10157$as_echo "$ac_cv_lib_png_png_get_channels" >&6; } 15427$as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10158if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then : 15428if test $ac_cv_lib_png_png_get_channels = yes; then
10159 HAVE_PNG=yes 15429 HAVE_PNG=yes
10160fi 15430fi
10161 15431
@@ -10164,7 +15434,9 @@ fi
10164 15434
10165 if test "${HAVE_PNG}" = "yes"; then 15435 if test "${HAVE_PNG}" = "yes"; then
10166 15436
10167$as_echo "#define HAVE_PNG 1" >>confdefs.h 15437cat >>confdefs.h <<\_ACEOF
15438#define HAVE_PNG 1
15439_ACEOF
10168 15440
10169 LIBPNG="-lpng -lz -lm" 15441 LIBPNG="-lpng -lz -lm"
10170 fi 15442 fi
@@ -10176,19 +15448,149 @@ HAVE_TIFF=no
10176LIBTIFF= 15448LIBTIFF=
10177if test "${HAVE_X11}" = "yes"; then 15449if test "${HAVE_X11}" = "yes"; then
10178 if test "${with_tiff}" != "no"; then 15450 if test "${with_tiff}" != "no"; then
10179 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" 15451 if test "${ac_cv_header_tiffio_h+set}" = set; then
10180if test "x$ac_cv_header_tiffio_h" = x""yes; then : 15452 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15453$as_echo_n "checking for tiffio.h... " >&6; }
15454if test "${ac_cv_header_tiffio_h+set}" = set; then
15455 $as_echo_n "(cached) " >&6
15456fi
15457{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15458$as_echo "$ac_cv_header_tiffio_h" >&6; }
15459else
15460 # Is the header compilable?
15461{ $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15462$as_echo_n "checking tiffio.h usability... " >&6; }
15463cat >conftest.$ac_ext <<_ACEOF
15464/* confdefs.h. */
15465_ACEOF
15466cat confdefs.h >>conftest.$ac_ext
15467cat >>conftest.$ac_ext <<_ACEOF
15468/* end confdefs.h. */
15469$ac_includes_default
15470#include <tiffio.h>
15471_ACEOF
15472rm -f conftest.$ac_objext
15473if { (ac_try="$ac_compile"
15474case "(($ac_try" in
15475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15476 *) ac_try_echo=$ac_try;;
15477esac
15478eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15479$as_echo "$ac_try_echo") >&5
15480 (eval "$ac_compile") 2>conftest.er1
15481 ac_status=$?
15482 grep -v '^ *+' conftest.er1 >conftest.err
15483 rm -f conftest.er1
15484 cat conftest.err >&5
15485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); } && {
15487 test -z "$ac_c_werror_flag" ||
15488 test ! -s conftest.err
15489 } && test -s conftest.$ac_objext; then
15490 ac_header_compiler=yes
15491else
15492 $as_echo "$as_me: failed program was:" >&5
15493sed 's/^/| /' conftest.$ac_ext >&5
15494
15495 ac_header_compiler=no
15496fi
15497
15498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15499{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15500$as_echo "$ac_header_compiler" >&6; }
15501
15502# Is the header present?
15503{ $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15504$as_echo_n "checking tiffio.h presence... " >&6; }
15505cat >conftest.$ac_ext <<_ACEOF
15506/* confdefs.h. */
15507_ACEOF
15508cat confdefs.h >>conftest.$ac_ext
15509cat >>conftest.$ac_ext <<_ACEOF
15510/* end confdefs.h. */
15511#include <tiffio.h>
15512_ACEOF
15513if { (ac_try="$ac_cpp conftest.$ac_ext"
15514case "(($ac_try" in
15515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15516 *) ac_try_echo=$ac_try;;
15517esac
15518eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15519$as_echo "$ac_try_echo") >&5
15520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15521 ac_status=$?
15522 grep -v '^ *+' conftest.er1 >conftest.err
15523 rm -f conftest.er1
15524 cat conftest.err >&5
15525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); } >/dev/null && {
15527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15528 test ! -s conftest.err
15529 }; then
15530 ac_header_preproc=yes
15531else
15532 $as_echo "$as_me: failed program was:" >&5
15533sed 's/^/| /' conftest.$ac_ext >&5
15534
15535 ac_header_preproc=no
15536fi
15537
15538rm -f conftest.err conftest.$ac_ext
15539{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15540$as_echo "$ac_header_preproc" >&6; }
15541
15542# So? What about this header?
15543case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15544 yes:no: )
15545 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15546$as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15547 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15548$as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15549 ac_header_preproc=yes
15550 ;;
15551 no:yes:* )
15552 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15553$as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15554 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15555$as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15556 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15557$as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15558 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15559$as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15560 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15561$as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15562 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15563$as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15564
15565 ;;
15566esac
15567{ $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15568$as_echo_n "checking for tiffio.h... " >&6; }
15569if test "${ac_cv_header_tiffio_h+set}" = set; then
15570 $as_echo_n "(cached) " >&6
15571else
15572 ac_cv_header_tiffio_h=$ac_header_preproc
15573fi
15574{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15575$as_echo "$ac_cv_header_tiffio_h" >&6; }
15576
15577fi
15578if test $ac_cv_header_tiffio_h = yes; then
10181 tifflibs="-lz -lm" 15579 tifflibs="-lz -lm"
10182 # At least one tiff package requires the jpeg library. 15580 # At least one tiff package requires the jpeg library.
10183 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi 15581 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5 15582 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
10185$as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; } 15583$as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10186if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then : 15584if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
10187 $as_echo_n "(cached) " >&6 15585 $as_echo_n "(cached) " >&6
10188else 15586else
10189 ac_check_lib_save_LIBS=$LIBS 15587 ac_check_lib_save_LIBS=$LIBS
10190LIBS="-ltiff $tifflibs $LIBS" 15588LIBS="-ltiff $tifflibs $LIBS"
10191cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15589cat >conftest.$ac_ext <<_ACEOF
15590/* confdefs.h. */
15591_ACEOF
15592cat confdefs.h >>conftest.$ac_ext
15593cat >>conftest.$ac_ext <<_ACEOF
10192/* end confdefs.h. */ 15594/* end confdefs.h. */
10193 15595
10194/* Override any GCC internal prototype to avoid an error. 15596/* Override any GCC internal prototype to avoid an error.
@@ -10206,18 +15608,43 @@ return TIFFGetVersion ();
10206 return 0; 15608 return 0;
10207} 15609}
10208_ACEOF 15610_ACEOF
10209if ac_fn_c_try_link "$LINENO"; then : 15611rm -f conftest.$ac_objext conftest$ac_exeext
15612if { (ac_try="$ac_link"
15613case "(($ac_try" in
15614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15615 *) ac_try_echo=$ac_try;;
15616esac
15617eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15618$as_echo "$ac_try_echo") >&5
15619 (eval "$ac_link") 2>conftest.er1
15620 ac_status=$?
15621 grep -v '^ *+' conftest.er1 >conftest.err
15622 rm -f conftest.er1
15623 cat conftest.err >&5
15624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); } && {
15626 test -z "$ac_c_werror_flag" ||
15627 test ! -s conftest.err
15628 } && test -s conftest$ac_exeext && {
15629 test "$cross_compiling" = yes ||
15630 $as_test_x conftest$ac_exeext
15631 }; then
10210 ac_cv_lib_tiff_TIFFGetVersion=yes 15632 ac_cv_lib_tiff_TIFFGetVersion=yes
10211else 15633else
10212 ac_cv_lib_tiff_TIFFGetVersion=no 15634 $as_echo "$as_me: failed program was:" >&5
15635sed 's/^/| /' conftest.$ac_ext >&5
15636
15637 ac_cv_lib_tiff_TIFFGetVersion=no
10213fi 15638fi
10214rm -f core conftest.err conftest.$ac_objext \ 15639
10215 conftest$ac_exeext conftest.$ac_ext 15640rm -rf conftest.dSYM
15641rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15642 conftest$ac_exeext conftest.$ac_ext
10216LIBS=$ac_check_lib_save_LIBS 15643LIBS=$ac_check_lib_save_LIBS
10217fi 15644fi
10218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 15645{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10219$as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; } 15646$as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10220if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then : 15647if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
10221 HAVE_TIFF=yes 15648 HAVE_TIFF=yes
10222fi 15649fi
10223 15650
@@ -10228,7 +15655,9 @@ fi
10228 15655
10229 if test "${HAVE_TIFF}" = "yes"; then 15656 if test "${HAVE_TIFF}" = "yes"; then
10230 15657
10231$as_echo "#define HAVE_TIFF 1" >>confdefs.h 15658cat >>confdefs.h <<\_ACEOF
15659#define HAVE_TIFF 1
15660_ACEOF
10232 15661
10233 LIBTIFF=-ltiff 15662 LIBTIFF=-ltiff
10234 fi 15663 fi
@@ -10239,18 +15668,148 @@ fi
10239HAVE_GIF=no 15668HAVE_GIF=no
10240LIBGIF= 15669LIBGIF=
10241if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then 15670if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10242 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 15671 if test "${ac_cv_header_gif_lib_h+set}" = set; then
10243if test "x$ac_cv_header_gif_lib_h" = x""yes; then : 15672 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15673$as_echo_n "checking for gif_lib.h... " >&6; }
15674if test "${ac_cv_header_gif_lib_h+set}" = set; then
15675 $as_echo_n "(cached) " >&6
15676fi
15677{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15678$as_echo "$ac_cv_header_gif_lib_h" >&6; }
15679else
15680 # Is the header compilable?
15681{ $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15682$as_echo_n "checking gif_lib.h usability... " >&6; }
15683cat >conftest.$ac_ext <<_ACEOF
15684/* confdefs.h. */
15685_ACEOF
15686cat confdefs.h >>conftest.$ac_ext
15687cat >>conftest.$ac_ext <<_ACEOF
15688/* end confdefs.h. */
15689$ac_includes_default
15690#include <gif_lib.h>
15691_ACEOF
15692rm -f conftest.$ac_objext
15693if { (ac_try="$ac_compile"
15694case "(($ac_try" in
15695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15696 *) ac_try_echo=$ac_try;;
15697esac
15698eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15699$as_echo "$ac_try_echo") >&5
15700 (eval "$ac_compile") 2>conftest.er1
15701 ac_status=$?
15702 grep -v '^ *+' conftest.er1 >conftest.err
15703 rm -f conftest.er1
15704 cat conftest.err >&5
15705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); } && {
15707 test -z "$ac_c_werror_flag" ||
15708 test ! -s conftest.err
15709 } && test -s conftest.$ac_objext; then
15710 ac_header_compiler=yes
15711else
15712 $as_echo "$as_me: failed program was:" >&5
15713sed 's/^/| /' conftest.$ac_ext >&5
15714
15715 ac_header_compiler=no
15716fi
15717
15718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15719{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15720$as_echo "$ac_header_compiler" >&6; }
15721
15722# Is the header present?
15723{ $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15724$as_echo_n "checking gif_lib.h presence... " >&6; }
15725cat >conftest.$ac_ext <<_ACEOF
15726/* confdefs.h. */
15727_ACEOF
15728cat confdefs.h >>conftest.$ac_ext
15729cat >>conftest.$ac_ext <<_ACEOF
15730/* end confdefs.h. */
15731#include <gif_lib.h>
15732_ACEOF
15733if { (ac_try="$ac_cpp conftest.$ac_ext"
15734case "(($ac_try" in
15735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15736 *) ac_try_echo=$ac_try;;
15737esac
15738eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15739$as_echo "$ac_try_echo") >&5
15740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15741 ac_status=$?
15742 grep -v '^ *+' conftest.er1 >conftest.err
15743 rm -f conftest.er1
15744 cat conftest.err >&5
15745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); } >/dev/null && {
15747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15748 test ! -s conftest.err
15749 }; then
15750 ac_header_preproc=yes
15751else
15752 $as_echo "$as_me: failed program was:" >&5
15753sed 's/^/| /' conftest.$ac_ext >&5
15754
15755 ac_header_preproc=no
15756fi
15757
15758rm -f conftest.err conftest.$ac_ext
15759{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15760$as_echo "$ac_header_preproc" >&6; }
15761
15762# So? What about this header?
15763case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15764 yes:no: )
15765 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15766$as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15767 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15768$as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15769 ac_header_preproc=yes
15770 ;;
15771 no:yes:* )
15772 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15773$as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15774 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15775$as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15776 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15777$as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15778 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15779$as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15780 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15781$as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15782 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15783$as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15784
15785 ;;
15786esac
15787{ $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15788$as_echo_n "checking for gif_lib.h... " >&6; }
15789if test "${ac_cv_header_gif_lib_h+set}" = set; then
15790 $as_echo_n "(cached) " >&6
15791else
15792 ac_cv_header_gif_lib_h=$ac_header_preproc
15793fi
15794{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15795$as_echo "$ac_cv_header_gif_lib_h" >&6; }
15796
15797fi
15798if test $ac_cv_header_gif_lib_h = yes; then
10244 # EGifPutExtensionLast only exists from version libungif-4.1.0b1. 15799 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10245# Earlier versions can crash Emacs. 15800# Earlier versions can crash Emacs.
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5 15801 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
10247$as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; } 15802$as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10248if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then : 15803if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
10249 $as_echo_n "(cached) " >&6 15804 $as_echo_n "(cached) " >&6
10250else 15805else
10251 ac_check_lib_save_LIBS=$LIBS 15806 ac_check_lib_save_LIBS=$LIBS
10252LIBS="-lgif $LIBS" 15807LIBS="-lgif $LIBS"
10253cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15808cat >conftest.$ac_ext <<_ACEOF
15809/* confdefs.h. */
15810_ACEOF
15811cat confdefs.h >>conftest.$ac_ext
15812cat >>conftest.$ac_ext <<_ACEOF
10254/* end confdefs.h. */ 15813/* end confdefs.h. */
10255 15814
10256/* Override any GCC internal prototype to avoid an error. 15815/* Override any GCC internal prototype to avoid an error.
@@ -10268,18 +15827,43 @@ return EGifPutExtensionLast ();
10268 return 0; 15827 return 0;
10269} 15828}
10270_ACEOF 15829_ACEOF
10271if ac_fn_c_try_link "$LINENO"; then : 15830rm -f conftest.$ac_objext conftest$ac_exeext
15831if { (ac_try="$ac_link"
15832case "(($ac_try" in
15833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15834 *) ac_try_echo=$ac_try;;
15835esac
15836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15837$as_echo "$ac_try_echo") >&5
15838 (eval "$ac_link") 2>conftest.er1
15839 ac_status=$?
15840 grep -v '^ *+' conftest.er1 >conftest.err
15841 rm -f conftest.er1
15842 cat conftest.err >&5
15843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); } && {
15845 test -z "$ac_c_werror_flag" ||
15846 test ! -s conftest.err
15847 } && test -s conftest$ac_exeext && {
15848 test "$cross_compiling" = yes ||
15849 $as_test_x conftest$ac_exeext
15850 }; then
10272 ac_cv_lib_gif_EGifPutExtensionLast=yes 15851 ac_cv_lib_gif_EGifPutExtensionLast=yes
10273else 15852else
10274 ac_cv_lib_gif_EGifPutExtensionLast=no 15853 $as_echo "$as_me: failed program was:" >&5
15854sed 's/^/| /' conftest.$ac_ext >&5
15855
15856 ac_cv_lib_gif_EGifPutExtensionLast=no
10275fi 15857fi
10276rm -f core conftest.err conftest.$ac_objext \ 15858
10277 conftest$ac_exeext conftest.$ac_ext 15859rm -rf conftest.dSYM
15860rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15861 conftest$ac_exeext conftest.$ac_ext
10278LIBS=$ac_check_lib_save_LIBS 15862LIBS=$ac_check_lib_save_LIBS
10279fi 15863fi
10280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5 15864{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10281$as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; } 15865$as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10282if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then : 15866if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
10283 HAVE_GIF=yes 15867 HAVE_GIF=yes
10284else 15868else
10285 HAVE_GIF=maybe 15869 HAVE_GIF=maybe
@@ -10293,14 +15877,18 @@ fi
10293 LIBGIF=-lgif 15877 LIBGIF=-lgif
10294 elif test "$HAVE_GIF" = maybe; then 15878 elif test "$HAVE_GIF" = maybe; then
10295# If gif_lib.h but no libgif, try libungif. 15879# If gif_lib.h but no libgif, try libungif.
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5 15880 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
10297$as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; } 15881$as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10298if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then : 15882if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
10299 $as_echo_n "(cached) " >&6 15883 $as_echo_n "(cached) " >&6
10300else 15884else
10301 ac_check_lib_save_LIBS=$LIBS 15885 ac_check_lib_save_LIBS=$LIBS
10302LIBS="-lungif $LIBS" 15886LIBS="-lungif $LIBS"
10303cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15887cat >conftest.$ac_ext <<_ACEOF
15888/* confdefs.h. */
15889_ACEOF
15890cat confdefs.h >>conftest.$ac_ext
15891cat >>conftest.$ac_ext <<_ACEOF
10304/* end confdefs.h. */ 15892/* end confdefs.h. */
10305 15893
10306/* Override any GCC internal prototype to avoid an error. 15894/* Override any GCC internal prototype to avoid an error.
@@ -10318,18 +15906,43 @@ return EGifPutExtensionLast ();
10318 return 0; 15906 return 0;
10319} 15907}
10320_ACEOF 15908_ACEOF
10321if ac_fn_c_try_link "$LINENO"; then : 15909rm -f conftest.$ac_objext conftest$ac_exeext
15910if { (ac_try="$ac_link"
15911case "(($ac_try" in
15912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15913 *) ac_try_echo=$ac_try;;
15914esac
15915eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15916$as_echo "$ac_try_echo") >&5
15917 (eval "$ac_link") 2>conftest.er1
15918 ac_status=$?
15919 grep -v '^ *+' conftest.er1 >conftest.err
15920 rm -f conftest.er1
15921 cat conftest.err >&5
15922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 (exit $ac_status); } && {
15924 test -z "$ac_c_werror_flag" ||
15925 test ! -s conftest.err
15926 } && test -s conftest$ac_exeext && {
15927 test "$cross_compiling" = yes ||
15928 $as_test_x conftest$ac_exeext
15929 }; then
10322 ac_cv_lib_ungif_EGifPutExtensionLast=yes 15930 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10323else 15931else
10324 ac_cv_lib_ungif_EGifPutExtensionLast=no 15932 $as_echo "$as_me: failed program was:" >&5
15933sed 's/^/| /' conftest.$ac_ext >&5
15934
15935 ac_cv_lib_ungif_EGifPutExtensionLast=no
10325fi 15936fi
10326rm -f core conftest.err conftest.$ac_objext \ 15937
10327 conftest$ac_exeext conftest.$ac_ext 15938rm -rf conftest.dSYM
15939rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15940 conftest$ac_exeext conftest.$ac_ext
10328LIBS=$ac_check_lib_save_LIBS 15941LIBS=$ac_check_lib_save_LIBS
10329fi 15942fi
10330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 15943{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10331$as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; } 15944$as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10332if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then : 15945if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
10333 HAVE_GIF=yes 15946 HAVE_GIF=yes
10334else 15947else
10335 HAVE_GIF=no 15948 HAVE_GIF=no
@@ -10340,7 +15953,9 @@ fi
10340 15953
10341 if test "${HAVE_GIF}" = "yes"; then 15954 if test "${HAVE_GIF}" = "yes"; then
10342 15955
10343$as_echo "#define HAVE_GIF 1" >>confdefs.h 15956cat >>confdefs.h <<\_ACEOF
15957#define HAVE_GIF 1
15958_ACEOF
10344 15959
10345 fi 15960 fi
10346fi 15961fi
@@ -10361,12 +15976,19 @@ if test "${HAVE_X11}" = "yes"; then
10361 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no" 15976 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
10362 15977
10363 if test "X${MISSING}" != X; then 15978 if test "X${MISSING}" != X; then
10364 as_fn_error "The following required libraries were not found: 15979 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15980 $MISSING
15981Maybe some development libraries/packages are missing?
15982If you don't want to link with them give
15983 $WITH_NO
15984as options to configure" >&5
15985$as_echo "$as_me: error: The following required libraries were not found:
10365 $MISSING 15986 $MISSING
10366Maybe some development libraries/packages are missing? 15987Maybe some development libraries/packages are missing?
10367If you don't want to link with them give 15988If you don't want to link with them give
10368 $WITH_NO 15989 $WITH_NO
10369as options to configure" "$LINENO" 5 15990as options to configure" >&2;}
15991 { (exit 1); exit 1; }; }
10370 fi 15992 fi
10371fi 15993fi
10372 15994
@@ -10375,16 +15997,146 @@ HAVE_GPM=no
10375LIBGPM= 15997LIBGPM=
10376MOUSE_SUPPORT= 15998MOUSE_SUPPORT=
10377if test "${with_gpm}" != "no"; then 15999if test "${with_gpm}" != "no"; then
10378 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default" 16000 if test "${ac_cv_header_gpm_h+set}" = set; then
10379if test "x$ac_cv_header_gpm_h" = x""yes; then : 16001 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5 16002$as_echo_n "checking for gpm.h... " >&6; }
16003if test "${ac_cv_header_gpm_h+set}" = set; then
16004 $as_echo_n "(cached) " >&6
16005fi
16006{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16007$as_echo "$ac_cv_header_gpm_h" >&6; }
16008else
16009 # Is the header compilable?
16010{ $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
16011$as_echo_n "checking gpm.h usability... " >&6; }
16012cat >conftest.$ac_ext <<_ACEOF
16013/* confdefs.h. */
16014_ACEOF
16015cat confdefs.h >>conftest.$ac_ext
16016cat >>conftest.$ac_ext <<_ACEOF
16017/* end confdefs.h. */
16018$ac_includes_default
16019#include <gpm.h>
16020_ACEOF
16021rm -f conftest.$ac_objext
16022if { (ac_try="$ac_compile"
16023case "(($ac_try" in
16024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16025 *) ac_try_echo=$ac_try;;
16026esac
16027eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16028$as_echo "$ac_try_echo") >&5
16029 (eval "$ac_compile") 2>conftest.er1
16030 ac_status=$?
16031 grep -v '^ *+' conftest.er1 >conftest.err
16032 rm -f conftest.er1
16033 cat conftest.err >&5
16034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); } && {
16036 test -z "$ac_c_werror_flag" ||
16037 test ! -s conftest.err
16038 } && test -s conftest.$ac_objext; then
16039 ac_header_compiler=yes
16040else
16041 $as_echo "$as_me: failed program was:" >&5
16042sed 's/^/| /' conftest.$ac_ext >&5
16043
16044 ac_header_compiler=no
16045fi
16046
16047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16048{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16049$as_echo "$ac_header_compiler" >&6; }
16050
16051# Is the header present?
16052{ $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
16053$as_echo_n "checking gpm.h presence... " >&6; }
16054cat >conftest.$ac_ext <<_ACEOF
16055/* confdefs.h. */
16056_ACEOF
16057cat confdefs.h >>conftest.$ac_ext
16058cat >>conftest.$ac_ext <<_ACEOF
16059/* end confdefs.h. */
16060#include <gpm.h>
16061_ACEOF
16062if { (ac_try="$ac_cpp conftest.$ac_ext"
16063case "(($ac_try" in
16064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16065 *) ac_try_echo=$ac_try;;
16066esac
16067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16068$as_echo "$ac_try_echo") >&5
16069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16070 ac_status=$?
16071 grep -v '^ *+' conftest.er1 >conftest.err
16072 rm -f conftest.er1
16073 cat conftest.err >&5
16074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); } >/dev/null && {
16076 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16077 test ! -s conftest.err
16078 }; then
16079 ac_header_preproc=yes
16080else
16081 $as_echo "$as_me: failed program was:" >&5
16082sed 's/^/| /' conftest.$ac_ext >&5
16083
16084 ac_header_preproc=no
16085fi
16086
16087rm -f conftest.err conftest.$ac_ext
16088{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16089$as_echo "$ac_header_preproc" >&6; }
16090
16091# So? What about this header?
16092case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16093 yes:no: )
16094 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
16095$as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16096 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
16097$as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
16098 ac_header_preproc=yes
16099 ;;
16100 no:yes:* )
16101 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
16102$as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
16103 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
16104$as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
16105 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
16106$as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
16107 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
16108$as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
16109 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
16110$as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
16111 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
16112$as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
16113
16114 ;;
16115esac
16116{ $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16117$as_echo_n "checking for gpm.h... " >&6; }
16118if test "${ac_cv_header_gpm_h+set}" = set; then
16119 $as_echo_n "(cached) " >&6
16120else
16121 ac_cv_header_gpm_h=$ac_header_preproc
16122fi
16123{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16124$as_echo "$ac_cv_header_gpm_h" >&6; }
16125
16126fi
16127if test $ac_cv_header_gpm_h = yes; then
16128 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
10381$as_echo_n "checking for Gpm_Open in -lgpm... " >&6; } 16129$as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10382if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then : 16130if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
10383 $as_echo_n "(cached) " >&6 16131 $as_echo_n "(cached) " >&6
10384else 16132else
10385 ac_check_lib_save_LIBS=$LIBS 16133 ac_check_lib_save_LIBS=$LIBS
10386LIBS="-lgpm $LIBS" 16134LIBS="-lgpm $LIBS"
10387cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16135cat >conftest.$ac_ext <<_ACEOF
16136/* confdefs.h. */
16137_ACEOF
16138cat confdefs.h >>conftest.$ac_ext
16139cat >>conftest.$ac_ext <<_ACEOF
10388/* end confdefs.h. */ 16140/* end confdefs.h. */
10389 16141
10390/* Override any GCC internal prototype to avoid an error. 16142/* Override any GCC internal prototype to avoid an error.
@@ -10402,18 +16154,43 @@ return Gpm_Open ();
10402 return 0; 16154 return 0;
10403} 16155}
10404_ACEOF 16156_ACEOF
10405if ac_fn_c_try_link "$LINENO"; then : 16157rm -f conftest.$ac_objext conftest$ac_exeext
16158if { (ac_try="$ac_link"
16159case "(($ac_try" in
16160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161 *) ac_try_echo=$ac_try;;
16162esac
16163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16164$as_echo "$ac_try_echo") >&5
16165 (eval "$ac_link") 2>conftest.er1
16166 ac_status=$?
16167 grep -v '^ *+' conftest.er1 >conftest.err
16168 rm -f conftest.er1
16169 cat conftest.err >&5
16170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); } && {
16172 test -z "$ac_c_werror_flag" ||
16173 test ! -s conftest.err
16174 } && test -s conftest$ac_exeext && {
16175 test "$cross_compiling" = yes ||
16176 $as_test_x conftest$ac_exeext
16177 }; then
10406 ac_cv_lib_gpm_Gpm_Open=yes 16178 ac_cv_lib_gpm_Gpm_Open=yes
10407else 16179else
10408 ac_cv_lib_gpm_Gpm_Open=no 16180 $as_echo "$as_me: failed program was:" >&5
16181sed 's/^/| /' conftest.$ac_ext >&5
16182
16183 ac_cv_lib_gpm_Gpm_Open=no
10409fi 16184fi
10410rm -f core conftest.err conftest.$ac_objext \ 16185
10411 conftest$ac_exeext conftest.$ac_ext 16186rm -rf conftest.dSYM
16187rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16188 conftest$ac_exeext conftest.$ac_ext
10412LIBS=$ac_check_lib_save_LIBS 16189LIBS=$ac_check_lib_save_LIBS
10413fi 16190fi
10414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5 16191{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10415$as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; } 16192$as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10416if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then : 16193if test $ac_cv_lib_gpm_Gpm_Open = yes; then
10417 HAVE_GPM=yes 16194 HAVE_GPM=yes
10418fi 16195fi
10419 16196
@@ -10423,7 +16200,9 @@ fi
10423 16200
10424 if test "${HAVE_GPM}" = "yes"; then 16201 if test "${HAVE_GPM}" = "yes"; then
10425 16202
10426$as_echo "#define HAVE_GPM 1" >>confdefs.h 16203cat >>confdefs.h <<\_ACEOF
16204#define HAVE_GPM 1
16205_ACEOF
10427 16206
10428 LIBGPM=-lgpm 16207 LIBGPM=-lgpm
10429 ## May be reset below. 16208 ## May be reset below.
@@ -10432,10 +16211,138 @@ $as_echo "#define HAVE_GPM 1" >>confdefs.h
10432fi 16211fi
10433 16212
10434 16213
10435ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default" 16214if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
10436if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then : 16215 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16216$as_echo_n "checking for malloc/malloc.h... " >&6; }
16217if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16218 $as_echo_n "(cached) " >&6
16219fi
16220{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16221$as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16222else
16223 # Is the header compilable?
16224{ $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
16225$as_echo_n "checking malloc/malloc.h usability... " >&6; }
16226cat >conftest.$ac_ext <<_ACEOF
16227/* confdefs.h. */
16228_ACEOF
16229cat confdefs.h >>conftest.$ac_ext
16230cat >>conftest.$ac_ext <<_ACEOF
16231/* end confdefs.h. */
16232$ac_includes_default
16233#include <malloc/malloc.h>
16234_ACEOF
16235rm -f conftest.$ac_objext
16236if { (ac_try="$ac_compile"
16237case "(($ac_try" in
16238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16239 *) ac_try_echo=$ac_try;;
16240esac
16241eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16242$as_echo "$ac_try_echo") >&5
16243 (eval "$ac_compile") 2>conftest.er1
16244 ac_status=$?
16245 grep -v '^ *+' conftest.er1 >conftest.err
16246 rm -f conftest.er1
16247 cat conftest.err >&5
16248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); } && {
16250 test -z "$ac_c_werror_flag" ||
16251 test ! -s conftest.err
16252 } && test -s conftest.$ac_objext; then
16253 ac_header_compiler=yes
16254else
16255 $as_echo "$as_me: failed program was:" >&5
16256sed 's/^/| /' conftest.$ac_ext >&5
16257
16258 ac_header_compiler=no
16259fi
16260
16261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16262{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16263$as_echo "$ac_header_compiler" >&6; }
16264
16265# Is the header present?
16266{ $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16267$as_echo_n "checking malloc/malloc.h presence... " >&6; }
16268cat >conftest.$ac_ext <<_ACEOF
16269/* confdefs.h. */
16270_ACEOF
16271cat confdefs.h >>conftest.$ac_ext
16272cat >>conftest.$ac_ext <<_ACEOF
16273/* end confdefs.h. */
16274#include <malloc/malloc.h>
16275_ACEOF
16276if { (ac_try="$ac_cpp conftest.$ac_ext"
16277case "(($ac_try" in
16278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16279 *) ac_try_echo=$ac_try;;
16280esac
16281eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16282$as_echo "$ac_try_echo") >&5
16283 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16284 ac_status=$?
16285 grep -v '^ *+' conftest.er1 >conftest.err
16286 rm -f conftest.er1
16287 cat conftest.err >&5
16288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); } >/dev/null && {
16290 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16291 test ! -s conftest.err
16292 }; then
16293 ac_header_preproc=yes
16294else
16295 $as_echo "$as_me: failed program was:" >&5
16296sed 's/^/| /' conftest.$ac_ext >&5
16297
16298 ac_header_preproc=no
16299fi
16300
16301rm -f conftest.err conftest.$ac_ext
16302{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16303$as_echo "$ac_header_preproc" >&6; }
16304
16305# So? What about this header?
16306case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16307 yes:no: )
16308 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16309$as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16310 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16311$as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16312 ac_header_preproc=yes
16313 ;;
16314 no:yes:* )
16315 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16316$as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16317 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16318$as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16319 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16320$as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16321 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16322$as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16323 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16324$as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16325 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16326$as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16327
16328 ;;
16329esac
16330{ $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16331$as_echo_n "checking for malloc/malloc.h... " >&6; }
16332if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16333 $as_echo_n "(cached) " >&6
16334else
16335 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16336fi
16337{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16338$as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
10437 16339
10438$as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h 16340fi
16341if test $ac_cv_header_malloc_malloc_h = yes; then
16342
16343cat >>confdefs.h <<\_ACEOF
16344#define HAVE_MALLOC_MALLOC_H 1
16345_ACEOF
10439 16346
10440fi 16347fi
10441 16348
@@ -10445,17 +16352,23 @@ C_SWITCH_X_SYSTEM=
10445### Use NeXTstep API to implement GUI. 16352### Use NeXTstep API to implement GUI.
10446if test "${HAVE_NS}" = "yes"; then 16353if test "${HAVE_NS}" = "yes"; then
10447 16354
10448$as_echo "#define HAVE_NS 1" >>confdefs.h 16355cat >>confdefs.h <<\_ACEOF
16356#define HAVE_NS 1
16357_ACEOF
10449 16358
10450 if test "${NS_IMPL_COCOA}" = "yes"; then 16359 if test "${NS_IMPL_COCOA}" = "yes"; then
10451 16360
10452$as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h 16361cat >>confdefs.h <<\_ACEOF
16362#define NS_IMPL_COCOA 1
16363_ACEOF
10453 16364
10454 GNU_OBJC_CFLAGS= 16365 GNU_OBJC_CFLAGS=
10455 fi 16366 fi
10456 if test "${NS_IMPL_GNUSTEP}" = "yes"; then 16367 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
10457 16368
10458$as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h 16369cat >>confdefs.h <<\_ACEOF
16370#define NS_IMPL_GNUSTEP 1
16371_ACEOF
10459 16372
10460 # See also .m.o rule in Makefile.in */ 16373 # See also .m.o rule in Makefile.in */
10461 # FIXME: are all these flags really needed? Document here why. */ 16374 # FIXME: are all these flags really needed? Document here why. */
@@ -10464,7 +16377,9 @@ $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
10464 fi 16377 fi
10465 if test "${NS_HAVE_NSINTEGER}" = "yes"; then 16378 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
10466 16379
10467$as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h 16380cat >>confdefs.h <<\_ACEOF
16381#define NS_HAVE_NSINTEGER 1
16382_ACEOF
10468 16383
10469 fi 16384 fi
10470 # We also have mouse menus. 16385 # We also have mouse menus.
@@ -10477,16 +16392,146 @@ fi
10477HAVE_X_SM=no 16392HAVE_X_SM=no
10478LIBXSM= 16393LIBXSM=
10479if test "${HAVE_X11}" = "yes"; then 16394if test "${HAVE_X11}" = "yes"; then
10480 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default" 16395 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10481if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then : 16396 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5 16397$as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16398if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16399 $as_echo_n "(cached) " >&6
16400fi
16401{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16402$as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16403else
16404 # Is the header compilable?
16405{ $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16406$as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16407cat >conftest.$ac_ext <<_ACEOF
16408/* confdefs.h. */
16409_ACEOF
16410cat confdefs.h >>conftest.$ac_ext
16411cat >>conftest.$ac_ext <<_ACEOF
16412/* end confdefs.h. */
16413$ac_includes_default
16414#include <X11/SM/SMlib.h>
16415_ACEOF
16416rm -f conftest.$ac_objext
16417if { (ac_try="$ac_compile"
16418case "(($ac_try" in
16419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16420 *) ac_try_echo=$ac_try;;
16421esac
16422eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16423$as_echo "$ac_try_echo") >&5
16424 (eval "$ac_compile") 2>conftest.er1
16425 ac_status=$?
16426 grep -v '^ *+' conftest.er1 >conftest.err
16427 rm -f conftest.er1
16428 cat conftest.err >&5
16429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); } && {
16431 test -z "$ac_c_werror_flag" ||
16432 test ! -s conftest.err
16433 } && test -s conftest.$ac_objext; then
16434 ac_header_compiler=yes
16435else
16436 $as_echo "$as_me: failed program was:" >&5
16437sed 's/^/| /' conftest.$ac_ext >&5
16438
16439 ac_header_compiler=no
16440fi
16441
16442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16443{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16444$as_echo "$ac_header_compiler" >&6; }
16445
16446# Is the header present?
16447{ $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16448$as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16449cat >conftest.$ac_ext <<_ACEOF
16450/* confdefs.h. */
16451_ACEOF
16452cat confdefs.h >>conftest.$ac_ext
16453cat >>conftest.$ac_ext <<_ACEOF
16454/* end confdefs.h. */
16455#include <X11/SM/SMlib.h>
16456_ACEOF
16457if { (ac_try="$ac_cpp conftest.$ac_ext"
16458case "(($ac_try" in
16459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16460 *) ac_try_echo=$ac_try;;
16461esac
16462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16463$as_echo "$ac_try_echo") >&5
16464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16465 ac_status=$?
16466 grep -v '^ *+' conftest.er1 >conftest.err
16467 rm -f conftest.er1
16468 cat conftest.err >&5
16469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); } >/dev/null && {
16471 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16472 test ! -s conftest.err
16473 }; then
16474 ac_header_preproc=yes
16475else
16476 $as_echo "$as_me: failed program was:" >&5
16477sed 's/^/| /' conftest.$ac_ext >&5
16478
16479 ac_header_preproc=no
16480fi
16481
16482rm -f conftest.err conftest.$ac_ext
16483{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16484$as_echo "$ac_header_preproc" >&6; }
16485
16486# So? What about this header?
16487case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16488 yes:no: )
16489 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16490$as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16491 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16492$as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16493 ac_header_preproc=yes
16494 ;;
16495 no:yes:* )
16496 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16497$as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16498 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16499$as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16500 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16501$as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16502 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16503$as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16504 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16505$as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16506 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16507$as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16508
16509 ;;
16510esac
16511{ $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16512$as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16513if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16514 $as_echo_n "(cached) " >&6
16515else
16516 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16517fi
16518{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16519$as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16520
16521fi
16522if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16523 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10483$as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; } 16524$as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
10484if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then : 16525if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10485 $as_echo_n "(cached) " >&6 16526 $as_echo_n "(cached) " >&6
10486else 16527else
10487 ac_check_lib_save_LIBS=$LIBS 16528 ac_check_lib_save_LIBS=$LIBS
10488LIBS="-lSM -lICE $LIBS" 16529LIBS="-lSM -lICE $LIBS"
10489cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16530cat >conftest.$ac_ext <<_ACEOF
16531/* confdefs.h. */
16532_ACEOF
16533cat confdefs.h >>conftest.$ac_ext
16534cat >>conftest.$ac_ext <<_ACEOF
10490/* end confdefs.h. */ 16535/* end confdefs.h. */
10491 16536
10492/* Override any GCC internal prototype to avoid an error. 16537/* Override any GCC internal prototype to avoid an error.
@@ -10504,18 +16549,43 @@ return SmcOpenConnection ();
10504 return 0; 16549 return 0;
10505} 16550}
10506_ACEOF 16551_ACEOF
10507if ac_fn_c_try_link "$LINENO"; then : 16552rm -f conftest.$ac_objext conftest$ac_exeext
16553if { (ac_try="$ac_link"
16554case "(($ac_try" in
16555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16556 *) ac_try_echo=$ac_try;;
16557esac
16558eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16559$as_echo "$ac_try_echo") >&5
16560 (eval "$ac_link") 2>conftest.er1
16561 ac_status=$?
16562 grep -v '^ *+' conftest.er1 >conftest.err
16563 rm -f conftest.er1
16564 cat conftest.err >&5
16565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); } && {
16567 test -z "$ac_c_werror_flag" ||
16568 test ! -s conftest.err
16569 } && test -s conftest$ac_exeext && {
16570 test "$cross_compiling" = yes ||
16571 $as_test_x conftest$ac_exeext
16572 }; then
10508 ac_cv_lib_SM_SmcOpenConnection=yes 16573 ac_cv_lib_SM_SmcOpenConnection=yes
10509else 16574else
10510 ac_cv_lib_SM_SmcOpenConnection=no 16575 $as_echo "$as_me: failed program was:" >&5
16576sed 's/^/| /' conftest.$ac_ext >&5
16577
16578 ac_cv_lib_SM_SmcOpenConnection=no
10511fi 16579fi
10512rm -f core conftest.err conftest.$ac_objext \ 16580
10513 conftest$ac_exeext conftest.$ac_ext 16581rm -rf conftest.dSYM
16582rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16583 conftest$ac_exeext conftest.$ac_ext
10514LIBS=$ac_check_lib_save_LIBS 16584LIBS=$ac_check_lib_save_LIBS
10515fi 16585fi
10516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 16586{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10517$as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; } 16587$as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
10518if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then : 16588if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10519 HAVE_X_SM=yes 16589 HAVE_X_SM=yes
10520fi 16590fi
10521 16591
@@ -10525,7 +16595,9 @@ fi
10525 16595
10526 if test "${HAVE_X_SM}" = "yes"; then 16596 if test "${HAVE_X_SM}" = "yes"; then
10527 16597
10528$as_echo "#define HAVE_X_SM 1" >>confdefs.h 16598cat >>confdefs.h <<\_ACEOF
16599#define HAVE_X_SM 1
16600_ACEOF
10529 16601
10530 LIBXSM="-lSM -lICE" 16602 LIBXSM="-lSM -lICE"
10531 case "$LIBS" in 16603 case "$LIBS" in
@@ -10537,12 +16609,16 @@ fi
10537 16609
10538 16610
10539# If netdb.h doesn't declare h_errno, we must declare it by hand. 16611# If netdb.h doesn't declare h_errno, we must declare it by hand.
10540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5 16612{ $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10541$as_echo_n "checking whether netdb declares h_errno... " >&6; } 16613$as_echo_n "checking whether netdb declares h_errno... " >&6; }
10542if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then : 16614if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10543 $as_echo_n "(cached) " >&6 16615 $as_echo_n "(cached) " >&6
10544else 16616else
10545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16617 cat >conftest.$ac_ext <<_ACEOF
16618/* confdefs.h. */
16619_ACEOF
16620cat confdefs.h >>conftest.$ac_ext
16621cat >>conftest.$ac_ext <<_ACEOF
10546/* end confdefs.h. */ 16622/* end confdefs.h. */
10547#include <netdb.h> 16623#include <netdb.h>
10548int 16624int
@@ -10553,30 +16629,61 @@ return h_errno;
10553 return 0; 16629 return 0;
10554} 16630}
10555_ACEOF 16631_ACEOF
10556if ac_fn_c_try_link "$LINENO"; then : 16632rm -f conftest.$ac_objext conftest$ac_exeext
16633if { (ac_try="$ac_link"
16634case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16637esac
16638eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16639$as_echo "$ac_try_echo") >&5
16640 (eval "$ac_link") 2>conftest.er1
16641 ac_status=$?
16642 grep -v '^ *+' conftest.er1 >conftest.err
16643 rm -f conftest.er1
16644 cat conftest.err >&5
16645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } && {
16647 test -z "$ac_c_werror_flag" ||
16648 test ! -s conftest.err
16649 } && test -s conftest$ac_exeext && {
16650 test "$cross_compiling" = yes ||
16651 $as_test_x conftest$ac_exeext
16652 }; then
10557 emacs_cv_netdb_declares_h_errno=yes 16653 emacs_cv_netdb_declares_h_errno=yes
10558else 16654else
10559 emacs_cv_netdb_declares_h_errno=no 16655 $as_echo "$as_me: failed program was:" >&5
16656sed 's/^/| /' conftest.$ac_ext >&5
16657
16658 emacs_cv_netdb_declares_h_errno=no
10560fi 16659fi
10561rm -f core conftest.err conftest.$ac_objext \ 16660
10562 conftest$ac_exeext conftest.$ac_ext 16661rm -rf conftest.dSYM
16662rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16663 conftest$ac_exeext conftest.$ac_ext
10563fi 16664fi
10564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5 16665{ $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10565$as_echo "$emacs_cv_netdb_declares_h_errno" >&6; } 16666$as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
10566if test $emacs_cv_netdb_declares_h_errno = yes; then 16667if test $emacs_cv_netdb_declares_h_errno = yes; then
10567 16668
10568$as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h 16669cat >>confdefs.h <<\_ACEOF
16670#define HAVE_H_ERRNO 1
16671_ACEOF
10569 16672
10570fi 16673fi
10571 16674
10572# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 16675# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10573# for constant arguments. Useless! 16676# for constant arguments. Useless!
10574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 16677{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
10575$as_echo_n "checking for working alloca.h... " >&6; } 16678$as_echo_n "checking for working alloca.h... " >&6; }
10576if test "${ac_cv_working_alloca_h+set}" = set; then : 16679if test "${ac_cv_working_alloca_h+set}" = set; then
10577 $as_echo_n "(cached) " >&6 16680 $as_echo_n "(cached) " >&6
10578else 16681else
10579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16682 cat >conftest.$ac_ext <<_ACEOF
16683/* confdefs.h. */
16684_ACEOF
16685cat confdefs.h >>conftest.$ac_ext
16686cat >>conftest.$ac_ext <<_ACEOF
10580/* end confdefs.h. */ 16687/* end confdefs.h. */
10581#include <alloca.h> 16688#include <alloca.h>
10582int 16689int
@@ -10588,28 +16695,59 @@ char *p = (char *) alloca (2 * sizeof (int));
10588 return 0; 16695 return 0;
10589} 16696}
10590_ACEOF 16697_ACEOF
10591if ac_fn_c_try_link "$LINENO"; then : 16698rm -f conftest.$ac_objext conftest$ac_exeext
16699if { (ac_try="$ac_link"
16700case "(($ac_try" in
16701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16702 *) ac_try_echo=$ac_try;;
16703esac
16704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16705$as_echo "$ac_try_echo") >&5
16706 (eval "$ac_link") 2>conftest.er1
16707 ac_status=$?
16708 grep -v '^ *+' conftest.er1 >conftest.err
16709 rm -f conftest.er1
16710 cat conftest.err >&5
16711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); } && {
16713 test -z "$ac_c_werror_flag" ||
16714 test ! -s conftest.err
16715 } && test -s conftest$ac_exeext && {
16716 test "$cross_compiling" = yes ||
16717 $as_test_x conftest$ac_exeext
16718 }; then
10592 ac_cv_working_alloca_h=yes 16719 ac_cv_working_alloca_h=yes
10593else 16720else
10594 ac_cv_working_alloca_h=no 16721 $as_echo "$as_me: failed program was:" >&5
16722sed 's/^/| /' conftest.$ac_ext >&5
16723
16724 ac_cv_working_alloca_h=no
10595fi 16725fi
10596rm -f core conftest.err conftest.$ac_objext \ 16726
10597 conftest$ac_exeext conftest.$ac_ext 16727rm -rf conftest.dSYM
16728rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16729 conftest$ac_exeext conftest.$ac_ext
10598fi 16730fi
10599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 16731{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10600$as_echo "$ac_cv_working_alloca_h" >&6; } 16732$as_echo "$ac_cv_working_alloca_h" >&6; }
10601if test $ac_cv_working_alloca_h = yes; then 16733if test $ac_cv_working_alloca_h = yes; then
10602 16734
10603$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 16735cat >>confdefs.h <<\_ACEOF
16736#define HAVE_ALLOCA_H 1
16737_ACEOF
10604 16738
10605fi 16739fi
10606 16740
10607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 16741{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
10608$as_echo_n "checking for alloca... " >&6; } 16742$as_echo_n "checking for alloca... " >&6; }
10609if test "${ac_cv_func_alloca_works+set}" = set; then : 16743if test "${ac_cv_func_alloca_works+set}" = set; then
10610 $as_echo_n "(cached) " >&6 16744 $as_echo_n "(cached) " >&6
10611else 16745else
10612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16746 cat >conftest.$ac_ext <<_ACEOF
16747/* confdefs.h. */
16748_ACEOF
16749cat confdefs.h >>conftest.$ac_ext
16750cat >>conftest.$ac_ext <<_ACEOF
10613/* end confdefs.h. */ 16751/* end confdefs.h. */
10614#ifdef __GNUC__ 16752#ifdef __GNUC__
10615# define alloca __builtin_alloca 16753# define alloca __builtin_alloca
@@ -10641,20 +16779,47 @@ char *p = (char *) alloca (1);
10641 return 0; 16779 return 0;
10642} 16780}
10643_ACEOF 16781_ACEOF
10644if ac_fn_c_try_link "$LINENO"; then : 16782rm -f conftest.$ac_objext conftest$ac_exeext
16783if { (ac_try="$ac_link"
16784case "(($ac_try" in
16785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16786 *) ac_try_echo=$ac_try;;
16787esac
16788eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16789$as_echo "$ac_try_echo") >&5
16790 (eval "$ac_link") 2>conftest.er1
16791 ac_status=$?
16792 grep -v '^ *+' conftest.er1 >conftest.err
16793 rm -f conftest.er1
16794 cat conftest.err >&5
16795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); } && {
16797 test -z "$ac_c_werror_flag" ||
16798 test ! -s conftest.err
16799 } && test -s conftest$ac_exeext && {
16800 test "$cross_compiling" = yes ||
16801 $as_test_x conftest$ac_exeext
16802 }; then
10645 ac_cv_func_alloca_works=yes 16803 ac_cv_func_alloca_works=yes
10646else 16804else
10647 ac_cv_func_alloca_works=no 16805 $as_echo "$as_me: failed program was:" >&5
16806sed 's/^/| /' conftest.$ac_ext >&5
16807
16808 ac_cv_func_alloca_works=no
10648fi 16809fi
10649rm -f core conftest.err conftest.$ac_objext \ 16810
10650 conftest$ac_exeext conftest.$ac_ext 16811rm -rf conftest.dSYM
16812rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16813 conftest$ac_exeext conftest.$ac_ext
10651fi 16814fi
10652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 16815{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10653$as_echo "$ac_cv_func_alloca_works" >&6; } 16816$as_echo "$ac_cv_func_alloca_works" >&6; }
10654 16817
10655if test $ac_cv_func_alloca_works = yes; then 16818if test $ac_cv_func_alloca_works = yes; then
10656 16819
10657$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 16820cat >>confdefs.h <<\_ACEOF
16821#define HAVE_ALLOCA 1
16822_ACEOF
10658 16823
10659else 16824else
10660 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 16825 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
@@ -10664,15 +16829,21 @@ else
10664 16829
10665ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 16830ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10666 16831
10667$as_echo "#define C_ALLOCA 1" >>confdefs.h 16832cat >>confdefs.h <<\_ACEOF
16833#define C_ALLOCA 1
16834_ACEOF
10668 16835
10669 16836
10670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 16837{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10671$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 16838$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10672if test "${ac_cv_os_cray+set}" = set; then : 16839if test "${ac_cv_os_cray+set}" = set; then
10673 $as_echo_n "(cached) " >&6 16840 $as_echo_n "(cached) " >&6
10674else 16841else
10675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16842 cat >conftest.$ac_ext <<_ACEOF
16843/* confdefs.h. */
16844_ACEOF
16845cat confdefs.h >>conftest.$ac_ext
16846cat >>conftest.$ac_ext <<_ACEOF
10676/* end confdefs.h. */ 16847/* end confdefs.h. */
10677#if defined CRAY && ! defined CRAY2 16848#if defined CRAY && ! defined CRAY2
10678webecray 16849webecray
@@ -10682,7 +16853,7 @@ wenotbecray
10682 16853
10683_ACEOF 16854_ACEOF
10684if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16855if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10685 $EGREP "webecray" >/dev/null 2>&1; then : 16856 $EGREP "webecray" >/dev/null 2>&1; then
10686 ac_cv_os_cray=yes 16857 ac_cv_os_cray=yes
10687else 16858else
10688 ac_cv_os_cray=no 16859 ac_cv_os_cray=no
@@ -10690,14 +16861,100 @@ fi
10690rm -f conftest* 16861rm -f conftest*
10691 16862
10692fi 16863fi
10693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 16864{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10694$as_echo "$ac_cv_os_cray" >&6; } 16865$as_echo "$ac_cv_os_cray" >&6; }
10695if test $ac_cv_os_cray = yes; then 16866if test $ac_cv_os_cray = yes; then
10696 for ac_func in _getb67 GETB67 getb67; do 16867 for ac_func in _getb67 GETB67 getb67; do
10697 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16868 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10698ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16869{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10699eval as_val=\$$as_ac_var 16870$as_echo_n "checking for $ac_func... " >&6; }
10700 if test "x$as_val" = x""yes; then : 16871if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16872 $as_echo_n "(cached) " >&6
16873else
16874 cat >conftest.$ac_ext <<_ACEOF
16875/* confdefs.h. */
16876_ACEOF
16877cat confdefs.h >>conftest.$ac_ext
16878cat >>conftest.$ac_ext <<_ACEOF
16879/* end confdefs.h. */
16880/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16882#define $ac_func innocuous_$ac_func
16883
16884/* System header to define __stub macros and hopefully few prototypes,
16885 which can conflict with char $ac_func (); below.
16886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16887 <limits.h> exists even on freestanding compilers. */
16888
16889#ifdef __STDC__
16890# include <limits.h>
16891#else
16892# include <assert.h>
16893#endif
16894
16895#undef $ac_func
16896
16897/* Override any GCC internal prototype to avoid an error.
16898 Use char because int might match the return type of a GCC
16899 builtin and then its argument prototype would still apply. */
16900#ifdef __cplusplus
16901extern "C"
16902#endif
16903char $ac_func ();
16904/* The GNU C library defines this for functions which it implements
16905 to always fail with ENOSYS. Some functions are actually named
16906 something starting with __ and the normal name is an alias. */
16907#if defined __stub_$ac_func || defined __stub___$ac_func
16908choke me
16909#endif
16910
16911int
16912main ()
16913{
16914return $ac_func ();
16915 ;
16916 return 0;
16917}
16918_ACEOF
16919rm -f conftest.$ac_objext conftest$ac_exeext
16920if { (ac_try="$ac_link"
16921case "(($ac_try" in
16922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923 *) ac_try_echo=$ac_try;;
16924esac
16925eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16926$as_echo "$ac_try_echo") >&5
16927 (eval "$ac_link") 2>conftest.er1
16928 ac_status=$?
16929 grep -v '^ *+' conftest.er1 >conftest.err
16930 rm -f conftest.er1
16931 cat conftest.err >&5
16932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); } && {
16934 test -z "$ac_c_werror_flag" ||
16935 test ! -s conftest.err
16936 } && test -s conftest$ac_exeext && {
16937 test "$cross_compiling" = yes ||
16938 $as_test_x conftest$ac_exeext
16939 }; then
16940 eval "$as_ac_var=yes"
16941else
16942 $as_echo "$as_me: failed program was:" >&5
16943sed 's/^/| /' conftest.$ac_ext >&5
16944
16945 eval "$as_ac_var=no"
16946fi
16947
16948rm -rf conftest.dSYM
16949rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16950 conftest$ac_exeext conftest.$ac_ext
16951fi
16952ac_res=`eval 'as_val=${'$as_ac_var'}
16953 $as_echo "$as_val"'`
16954 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16955$as_echo "$ac_res" >&6; }
16956if test `eval 'as_val=${'$as_ac_var'}
16957 $as_echo "$as_val"'` = yes; then
10701 16958
10702cat >>confdefs.h <<_ACEOF 16959cat >>confdefs.h <<_ACEOF
10703#define CRAY_STACKSEG_END $ac_func 16960#define CRAY_STACKSEG_END $ac_func
@@ -10709,15 +16966,19 @@ fi
10709 done 16966 done
10710fi 16967fi
10711 16968
10712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 16969{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10713$as_echo_n "checking stack direction for C alloca... " >&6; } 16970$as_echo_n "checking stack direction for C alloca... " >&6; }
10714if test "${ac_cv_c_stack_direction+set}" = set; then : 16971if test "${ac_cv_c_stack_direction+set}" = set; then
10715 $as_echo_n "(cached) " >&6 16972 $as_echo_n "(cached) " >&6
10716else 16973else
10717 if test "$cross_compiling" = yes; then : 16974 if test "$cross_compiling" = yes; then
10718 ac_cv_c_stack_direction=0 16975 ac_cv_c_stack_direction=0
10719else 16976else
10720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16977 cat >conftest.$ac_ext <<_ACEOF
16978/* confdefs.h. */
16979_ACEOF
16980cat confdefs.h >>conftest.$ac_ext
16981cat >>conftest.$ac_ext <<_ACEOF
10721/* end confdefs.h. */ 16982/* end confdefs.h. */
10722$ac_includes_default 16983$ac_includes_default
10723int 16984int
@@ -10740,18 +17001,46 @@ main ()
10740 return find_stack_direction () < 0; 17001 return find_stack_direction () < 0;
10741} 17002}
10742_ACEOF 17003_ACEOF
10743if ac_fn_c_try_run "$LINENO"; then : 17004rm -f conftest$ac_exeext
17005if { (ac_try="$ac_link"
17006case "(($ac_try" in
17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008 *) ac_try_echo=$ac_try;;
17009esac
17010eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17011$as_echo "$ac_try_echo") >&5
17012 (eval "$ac_link") 2>&5
17013 ac_status=$?
17014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17016 { (case "(($ac_try" in
17017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17018 *) ac_try_echo=$ac_try;;
17019esac
17020eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17021$as_echo "$ac_try_echo") >&5
17022 (eval "$ac_try") 2>&5
17023 ac_status=$?
17024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; }; then
10744 ac_cv_c_stack_direction=1 17026 ac_cv_c_stack_direction=1
10745else 17027else
10746 ac_cv_c_stack_direction=-1 17028 $as_echo "$as_me: program exited with status $ac_status" >&5
17029$as_echo "$as_me: failed program was:" >&5
17030sed 's/^/| /' conftest.$ac_ext >&5
17031
17032( exit $ac_status )
17033ac_cv_c_stack_direction=-1
10747fi 17034fi
10748rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17035rm -rf conftest.dSYM
10749 conftest.$ac_objext conftest.beam conftest.$ac_ext 17036rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10750fi 17037fi
10751 17038
17039
10752fi 17040fi
10753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 17041{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10754$as_echo "$ac_cv_c_stack_direction" >&6; } 17042$as_echo "$ac_cv_c_stack_direction" >&6; }
17043
10755cat >>confdefs.h <<_ACEOF 17044cat >>confdefs.h <<_ACEOF
10756#define STACK_DIRECTION $ac_cv_c_stack_direction 17045#define STACK_DIRECTION $ac_cv_c_stack_direction
10757_ACEOF 17046_ACEOF
@@ -10761,19 +17050,26 @@ fi
10761 17050
10762 17051
10763if test x"$ac_cv_func_alloca_works" != xyes; then 17052if test x"$ac_cv_func_alloca_works" != xyes; then
10764 as_fn_error "a system implementation of alloca is required " "$LINENO" 5 17053 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
17054$as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
17055 { (exit 1); exit 1; }; }
10765fi 17056fi
10766 17057
10767# fmod, logb, and frexp are found in -lm on most systems. 17058# fmod, logb, and frexp are found in -lm on most systems.
10768# On HPUX 9.01, -lm does not contain logb, so check for sqrt. 17059# On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 17060
17061{ $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10770$as_echo_n "checking for sqrt in -lm... " >&6; } 17062$as_echo_n "checking for sqrt in -lm... " >&6; }
10771if test "${ac_cv_lib_m_sqrt+set}" = set; then : 17063if test "${ac_cv_lib_m_sqrt+set}" = set; then
10772 $as_echo_n "(cached) " >&6 17064 $as_echo_n "(cached) " >&6
10773else 17065else
10774 ac_check_lib_save_LIBS=$LIBS 17066 ac_check_lib_save_LIBS=$LIBS
10775LIBS="-lm $LIBS" 17067LIBS="-lm $LIBS"
10776cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17068cat >conftest.$ac_ext <<_ACEOF
17069/* confdefs.h. */
17070_ACEOF
17071cat confdefs.h >>conftest.$ac_ext
17072cat >>conftest.$ac_ext <<_ACEOF
10777/* end confdefs.h. */ 17073/* end confdefs.h. */
10778 17074
10779/* Override any GCC internal prototype to avoid an error. 17075/* Override any GCC internal prototype to avoid an error.
@@ -10791,18 +17087,43 @@ return sqrt ();
10791 return 0; 17087 return 0;
10792} 17088}
10793_ACEOF 17089_ACEOF
10794if ac_fn_c_try_link "$LINENO"; then : 17090rm -f conftest.$ac_objext conftest$ac_exeext
17091if { (ac_try="$ac_link"
17092case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17095esac
17096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17097$as_echo "$ac_try_echo") >&5
17098 (eval "$ac_link") 2>conftest.er1
17099 ac_status=$?
17100 grep -v '^ *+' conftest.er1 >conftest.err
17101 rm -f conftest.er1
17102 cat conftest.err >&5
17103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); } && {
17105 test -z "$ac_c_werror_flag" ||
17106 test ! -s conftest.err
17107 } && test -s conftest$ac_exeext && {
17108 test "$cross_compiling" = yes ||
17109 $as_test_x conftest$ac_exeext
17110 }; then
10795 ac_cv_lib_m_sqrt=yes 17111 ac_cv_lib_m_sqrt=yes
10796else 17112else
10797 ac_cv_lib_m_sqrt=no 17113 $as_echo "$as_me: failed program was:" >&5
17114sed 's/^/| /' conftest.$ac_ext >&5
17115
17116 ac_cv_lib_m_sqrt=no
10798fi 17117fi
10799rm -f core conftest.err conftest.$ac_objext \ 17118
10800 conftest$ac_exeext conftest.$ac_ext 17119rm -rf conftest.dSYM
17120rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17121 conftest$ac_exeext conftest.$ac_ext
10801LIBS=$ac_check_lib_save_LIBS 17122LIBS=$ac_check_lib_save_LIBS
10802fi 17123fi
10803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 17124{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10804$as_echo "$ac_cv_lib_m_sqrt" >&6; } 17125$as_echo "$ac_cv_lib_m_sqrt" >&6; }
10805if test "x$ac_cv_lib_m_sqrt" = x""yes; then : 17126if test $ac_cv_lib_m_sqrt = yes; then
10806 cat >>confdefs.h <<_ACEOF 17127 cat >>confdefs.h <<_ACEOF
10807#define HAVE_LIBM 1 17128#define HAVE_LIBM 1
10808_ACEOF 17129_ACEOF
@@ -10814,14 +17135,18 @@ fi
10814 17135
10815# Check for mail-locking functions in a "mail" library. Probably this should 17136# Check for mail-locking functions in a "mail" library. Probably this should
10816# have the same check as for liblockfile below. 17137# have the same check as for liblockfile below.
10817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5 17138{ $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10818$as_echo_n "checking for maillock in -lmail... " >&6; } 17139$as_echo_n "checking for maillock in -lmail... " >&6; }
10819if test "${ac_cv_lib_mail_maillock+set}" = set; then : 17140if test "${ac_cv_lib_mail_maillock+set}" = set; then
10820 $as_echo_n "(cached) " >&6 17141 $as_echo_n "(cached) " >&6
10821else 17142else
10822 ac_check_lib_save_LIBS=$LIBS 17143 ac_check_lib_save_LIBS=$LIBS
10823LIBS="-lmail $LIBS" 17144LIBS="-lmail $LIBS"
10824cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17145cat >conftest.$ac_ext <<_ACEOF
17146/* confdefs.h. */
17147_ACEOF
17148cat confdefs.h >>conftest.$ac_ext
17149cat >>conftest.$ac_ext <<_ACEOF
10825/* end confdefs.h. */ 17150/* end confdefs.h. */
10826 17151
10827/* Override any GCC internal prototype to avoid an error. 17152/* Override any GCC internal prototype to avoid an error.
@@ -10839,18 +17164,43 @@ return maillock ();
10839 return 0; 17164 return 0;
10840} 17165}
10841_ACEOF 17166_ACEOF
10842if ac_fn_c_try_link "$LINENO"; then : 17167rm -f conftest.$ac_objext conftest$ac_exeext
17168if { (ac_try="$ac_link"
17169case "(($ac_try" in
17170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17171 *) ac_try_echo=$ac_try;;
17172esac
17173eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17174$as_echo "$ac_try_echo") >&5
17175 (eval "$ac_link") 2>conftest.er1
17176 ac_status=$?
17177 grep -v '^ *+' conftest.er1 >conftest.err
17178 rm -f conftest.er1
17179 cat conftest.err >&5
17180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); } && {
17182 test -z "$ac_c_werror_flag" ||
17183 test ! -s conftest.err
17184 } && test -s conftest$ac_exeext && {
17185 test "$cross_compiling" = yes ||
17186 $as_test_x conftest$ac_exeext
17187 }; then
10843 ac_cv_lib_mail_maillock=yes 17188 ac_cv_lib_mail_maillock=yes
10844else 17189else
10845 ac_cv_lib_mail_maillock=no 17190 $as_echo "$as_me: failed program was:" >&5
17191sed 's/^/| /' conftest.$ac_ext >&5
17192
17193 ac_cv_lib_mail_maillock=no
10846fi 17194fi
10847rm -f core conftest.err conftest.$ac_objext \ 17195
10848 conftest$ac_exeext conftest.$ac_ext 17196rm -rf conftest.dSYM
17197rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17198 conftest$ac_exeext conftest.$ac_ext
10849LIBS=$ac_check_lib_save_LIBS 17199LIBS=$ac_check_lib_save_LIBS
10850fi 17200fi
10851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5 17201{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10852$as_echo "$ac_cv_lib_mail_maillock" >&6; } 17202$as_echo "$ac_cv_lib_mail_maillock" >&6; }
10853if test "x$ac_cv_lib_mail_maillock" = x""yes; then : 17203if test $ac_cv_lib_mail_maillock = yes; then
10854 have_mail=yes 17204 have_mail=yes
10855else 17205else
10856 have_mail=no 17206 have_mail=no
@@ -10860,19 +17210,25 @@ if test $have_mail = yes; then
10860 LIBS_MAIL=-lmail 17210 LIBS_MAIL=-lmail
10861 LIBS="$LIBS_MAIL $LIBS" 17211 LIBS="$LIBS_MAIL $LIBS"
10862 17212
10863$as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h 17213cat >>confdefs.h <<\_ACEOF
17214#define HAVE_LIBMAIL 1
17215_ACEOF
10864 17216
10865else 17217else
10866 LIBS_MAIL= 17218 LIBS_MAIL=
10867fi 17219fi
10868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5 17220{ $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10869$as_echo_n "checking for maillock in -llockfile... " >&6; } 17221$as_echo_n "checking for maillock in -llockfile... " >&6; }
10870if test "${ac_cv_lib_lockfile_maillock+set}" = set; then : 17222if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10871 $as_echo_n "(cached) " >&6 17223 $as_echo_n "(cached) " >&6
10872else 17224else
10873 ac_check_lib_save_LIBS=$LIBS 17225 ac_check_lib_save_LIBS=$LIBS
10874LIBS="-llockfile $LIBS" 17226LIBS="-llockfile $LIBS"
10875cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17227cat >conftest.$ac_ext <<_ACEOF
17228/* confdefs.h. */
17229_ACEOF
17230cat confdefs.h >>conftest.$ac_ext
17231cat >>conftest.$ac_ext <<_ACEOF
10876/* end confdefs.h. */ 17232/* end confdefs.h. */
10877 17233
10878/* Override any GCC internal prototype to avoid an error. 17234/* Override any GCC internal prototype to avoid an error.
@@ -10890,18 +17246,43 @@ return maillock ();
10890 return 0; 17246 return 0;
10891} 17247}
10892_ACEOF 17248_ACEOF
10893if ac_fn_c_try_link "$LINENO"; then : 17249rm -f conftest.$ac_objext conftest$ac_exeext
17250if { (ac_try="$ac_link"
17251case "(($ac_try" in
17252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17253 *) ac_try_echo=$ac_try;;
17254esac
17255eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17256$as_echo "$ac_try_echo") >&5
17257 (eval "$ac_link") 2>conftest.er1
17258 ac_status=$?
17259 grep -v '^ *+' conftest.er1 >conftest.err
17260 rm -f conftest.er1
17261 cat conftest.err >&5
17262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); } && {
17264 test -z "$ac_c_werror_flag" ||
17265 test ! -s conftest.err
17266 } && test -s conftest$ac_exeext && {
17267 test "$cross_compiling" = yes ||
17268 $as_test_x conftest$ac_exeext
17269 }; then
10894 ac_cv_lib_lockfile_maillock=yes 17270 ac_cv_lib_lockfile_maillock=yes
10895else 17271else
10896 ac_cv_lib_lockfile_maillock=no 17272 $as_echo "$as_me: failed program was:" >&5
17273sed 's/^/| /' conftest.$ac_ext >&5
17274
17275 ac_cv_lib_lockfile_maillock=no
10897fi 17276fi
10898rm -f core conftest.err conftest.$ac_objext \ 17277
10899 conftest$ac_exeext conftest.$ac_ext 17278rm -rf conftest.dSYM
17279rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17280 conftest$ac_exeext conftest.$ac_ext
10900LIBS=$ac_check_lib_save_LIBS 17281LIBS=$ac_check_lib_save_LIBS
10901fi 17282fi
10902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5 17283{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10903$as_echo "$ac_cv_lib_lockfile_maillock" >&6; } 17284$as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
10904if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then : 17285if test $ac_cv_lib_lockfile_maillock = yes; then
10905 have_lockfile=yes 17286 have_lockfile=yes
10906else 17287else
10907 have_lockfile=no 17288 have_lockfile=no
@@ -10911,7 +17292,9 @@ if test $have_lockfile = yes; then
10911 LIBS_MAIL=-llockfile 17292 LIBS_MAIL=-llockfile
10912 LIBS="$LIBS_MAIL $LIBS" 17293 LIBS="$LIBS_MAIL $LIBS"
10913 17294
10914$as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h 17295cat >>confdefs.h <<\_ACEOF
17296#define HAVE_LIBLOCKFILE 1
17297_ACEOF
10915 17298
10916else 17299else
10917# If we have the shared liblockfile, assume we must use it for mail 17300# If we have the shared liblockfile, assume we must use it for mail
@@ -10919,9 +17302,9 @@ else
10919# (no liblockfile.a installed), ensure that we don't need to. 17302# (no liblockfile.a installed), ensure that we don't need to.
10920 # Extract the first word of "liblockfile.so", so it can be a program name with args. 17303 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10921set dummy liblockfile.so; ac_word=$2 17304set dummy liblockfile.so; ac_word=$2
10922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17305{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10923$as_echo_n "checking for $ac_word... " >&6; } 17306$as_echo_n "checking for $ac_word... " >&6; }
10924if test "${ac_cv_prog_liblockfile+set}" = set; then : 17307if test "${ac_cv_prog_liblockfile+set}" = set; then
10925 $as_echo_n "(cached) " >&6 17308 $as_echo_n "(cached) " >&6
10926else 17309else
10927 if test -n "$liblockfile"; then 17310 if test -n "$liblockfile"; then
@@ -10933,14 +17316,14 @@ for as_dir in $as_dummy
10933do 17316do
10934 IFS=$as_save_IFS 17317 IFS=$as_save_IFS
10935 test -z "$as_dir" && as_dir=. 17318 test -z "$as_dir" && as_dir=.
10936 for ac_exec_ext in '' $ac_executable_extensions; do 17319 for ac_exec_ext in '' $ac_executable_extensions; do
10937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10938 ac_cv_prog_liblockfile="yes" 17321 ac_cv_prog_liblockfile="yes"
10939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17322 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10940 break 2 17323 break 2
10941 fi 17324 fi
10942done 17325done
10943 done 17326done
10944IFS=$as_save_IFS 17327IFS=$as_save_IFS
10945 17328
10946 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" 17329 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
@@ -10948,37 +17331,263 @@ fi
10948fi 17331fi
10949liblockfile=$ac_cv_prog_liblockfile 17332liblockfile=$ac_cv_prog_liblockfile
10950if test -n "$liblockfile"; then 17333if test -n "$liblockfile"; then
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5 17334 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
10952$as_echo "$liblockfile" >&6; } 17335$as_echo "$liblockfile" >&6; }
10953else 17336else
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17337 { $as_echo "$as_me:$LINENO: result: no" >&5
10955$as_echo "no" >&6; } 17338$as_echo "no" >&6; }
10956fi 17339fi
10957 17340
10958 17341
10959 if test $ac_cv_prog_liblockfile = yes; then 17342 if test $ac_cv_prog_liblockfile = yes; then
10960 as_fn_error "Shared liblockfile found but can't link against it. 17343 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
10961This probably means that movemail could lose mail. 17344This probably means that movemail could lose mail.
10962There may be a \`development' package to install containing liblockfile." "$LINENO" 5 17345There may be a \`development' package to install containing liblockfile." >&5
17346$as_echo "$as_me: error: Shared liblockfile found but can't link against it.
17347This probably means that movemail could lose mail.
17348There may be a \`development' package to install containing liblockfile." >&2;}
17349 { (exit 1); exit 1; }; }
10963 fi 17350 fi
10964fi 17351fi
17352
10965for ac_func in touchlock 17353for ac_func in touchlock
10966do : 17354do
10967 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock" 17355as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10968if test "x$ac_cv_func_touchlock" = x""yes; then : 17356{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17357$as_echo_n "checking for $ac_func... " >&6; }
17358if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17359 $as_echo_n "(cached) " >&6
17360else
17361 cat >conftest.$ac_ext <<_ACEOF
17362/* confdefs.h. */
17363_ACEOF
17364cat confdefs.h >>conftest.$ac_ext
17365cat >>conftest.$ac_ext <<_ACEOF
17366/* end confdefs.h. */
17367/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17369#define $ac_func innocuous_$ac_func
17370
17371/* System header to define __stub macros and hopefully few prototypes,
17372 which can conflict with char $ac_func (); below.
17373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17374 <limits.h> exists even on freestanding compilers. */
17375
17376#ifdef __STDC__
17377# include <limits.h>
17378#else
17379# include <assert.h>
17380#endif
17381
17382#undef $ac_func
17383
17384/* Override any GCC internal prototype to avoid an error.
17385 Use char because int might match the return type of a GCC
17386 builtin and then its argument prototype would still apply. */
17387#ifdef __cplusplus
17388extern "C"
17389#endif
17390char $ac_func ();
17391/* The GNU C library defines this for functions which it implements
17392 to always fail with ENOSYS. Some functions are actually named
17393 something starting with __ and the normal name is an alias. */
17394#if defined __stub_$ac_func || defined __stub___$ac_func
17395choke me
17396#endif
17397
17398int
17399main ()
17400{
17401return $ac_func ();
17402 ;
17403 return 0;
17404}
17405_ACEOF
17406rm -f conftest.$ac_objext conftest$ac_exeext
17407if { (ac_try="$ac_link"
17408case "(($ac_try" in
17409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17410 *) ac_try_echo=$ac_try;;
17411esac
17412eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17413$as_echo "$ac_try_echo") >&5
17414 (eval "$ac_link") 2>conftest.er1
17415 ac_status=$?
17416 grep -v '^ *+' conftest.er1 >conftest.err
17417 rm -f conftest.er1
17418 cat conftest.err >&5
17419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); } && {
17421 test -z "$ac_c_werror_flag" ||
17422 test ! -s conftest.err
17423 } && test -s conftest$ac_exeext && {
17424 test "$cross_compiling" = yes ||
17425 $as_test_x conftest$ac_exeext
17426 }; then
17427 eval "$as_ac_var=yes"
17428else
17429 $as_echo "$as_me: failed program was:" >&5
17430sed 's/^/| /' conftest.$ac_ext >&5
17431
17432 eval "$as_ac_var=no"
17433fi
17434
17435rm -rf conftest.dSYM
17436rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17437 conftest$ac_exeext conftest.$ac_ext
17438fi
17439ac_res=`eval 'as_val=${'$as_ac_var'}
17440 $as_echo "$as_val"'`
17441 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17442$as_echo "$ac_res" >&6; }
17443if test `eval 'as_val=${'$as_ac_var'}
17444 $as_echo "$as_val"'` = yes; then
10969 cat >>confdefs.h <<_ACEOF 17445 cat >>confdefs.h <<_ACEOF
10970#define HAVE_TOUCHLOCK 1 17446#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10971_ACEOF 17447_ACEOF
10972 17448
10973fi 17449fi
10974done 17450done
10975 17451
17452
10976for ac_header in maillock.h 17453for ac_header in maillock.h
10977do : 17454do
10978 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default" 17455as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10979if test "x$ac_cv_header_maillock_h" = x""yes; then : 17456if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17457 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17458$as_echo_n "checking for $ac_header... " >&6; }
17459if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17460 $as_echo_n "(cached) " >&6
17461fi
17462ac_res=`eval 'as_val=${'$as_ac_Header'}
17463 $as_echo "$as_val"'`
17464 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17465$as_echo "$ac_res" >&6; }
17466else
17467 # Is the header compilable?
17468{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17469$as_echo_n "checking $ac_header usability... " >&6; }
17470cat >conftest.$ac_ext <<_ACEOF
17471/* confdefs.h. */
17472_ACEOF
17473cat confdefs.h >>conftest.$ac_ext
17474cat >>conftest.$ac_ext <<_ACEOF
17475/* end confdefs.h. */
17476$ac_includes_default
17477#include <$ac_header>
17478_ACEOF
17479rm -f conftest.$ac_objext
17480if { (ac_try="$ac_compile"
17481case "(($ac_try" in
17482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17483 *) ac_try_echo=$ac_try;;
17484esac
17485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17486$as_echo "$ac_try_echo") >&5
17487 (eval "$ac_compile") 2>conftest.er1
17488 ac_status=$?
17489 grep -v '^ *+' conftest.er1 >conftest.err
17490 rm -f conftest.er1
17491 cat conftest.err >&5
17492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); } && {
17494 test -z "$ac_c_werror_flag" ||
17495 test ! -s conftest.err
17496 } && test -s conftest.$ac_objext; then
17497 ac_header_compiler=yes
17498else
17499 $as_echo "$as_me: failed program was:" >&5
17500sed 's/^/| /' conftest.$ac_ext >&5
17501
17502 ac_header_compiler=no
17503fi
17504
17505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17506{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17507$as_echo "$ac_header_compiler" >&6; }
17508
17509# Is the header present?
17510{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17511$as_echo_n "checking $ac_header presence... " >&6; }
17512cat >conftest.$ac_ext <<_ACEOF
17513/* confdefs.h. */
17514_ACEOF
17515cat confdefs.h >>conftest.$ac_ext
17516cat >>conftest.$ac_ext <<_ACEOF
17517/* end confdefs.h. */
17518#include <$ac_header>
17519_ACEOF
17520if { (ac_try="$ac_cpp conftest.$ac_ext"
17521case "(($ac_try" in
17522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17523 *) ac_try_echo=$ac_try;;
17524esac
17525eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17526$as_echo "$ac_try_echo") >&5
17527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17528 ac_status=$?
17529 grep -v '^ *+' conftest.er1 >conftest.err
17530 rm -f conftest.er1
17531 cat conftest.err >&5
17532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } >/dev/null && {
17534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17535 test ! -s conftest.err
17536 }; then
17537 ac_header_preproc=yes
17538else
17539 $as_echo "$as_me: failed program was:" >&5
17540sed 's/^/| /' conftest.$ac_ext >&5
17541
17542 ac_header_preproc=no
17543fi
17544
17545rm -f conftest.err conftest.$ac_ext
17546{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17547$as_echo "$ac_header_preproc" >&6; }
17548
17549# So? What about this header?
17550case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17551 yes:no: )
17552 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17553$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17554 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17555$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17556 ac_header_preproc=yes
17557 ;;
17558 no:yes:* )
17559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17560$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17562$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17564$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17566$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17567 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17568$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17569 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17570$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17571
17572 ;;
17573esac
17574{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17575$as_echo_n "checking for $ac_header... " >&6; }
17576if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17577 $as_echo_n "(cached) " >&6
17578else
17579 eval "$as_ac_Header=\$ac_header_preproc"
17580fi
17581ac_res=`eval 'as_val=${'$as_ac_Header'}
17582 $as_echo "$as_val"'`
17583 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17584$as_echo "$ac_res" >&6; }
17585
17586fi
17587if test `eval 'as_val=${'$as_ac_Header'}
17588 $as_echo "$as_val"'` = yes; then
10980 cat >>confdefs.h <<_ACEOF 17589 cat >>confdefs.h <<_ACEOF
10981#define HAVE_MAILLOCK_H 1 17590#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10982_ACEOF 17591_ACEOF
10983 17592
10984fi 17593fi
@@ -11021,11 +17630,15 @@ esac
11021BLESSMAIL_TARGET= 17630BLESSMAIL_TARGET=
11022case "$mail_lock" in 17631case "$mail_lock" in
11023 flock) 17632 flock)
11024$as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h 17633cat >>confdefs.h <<\_ACEOF
17634#define MAIL_USE_FLOCK 1
17635_ACEOF
11025 ;; 17636 ;;
11026 17637
11027 lockf) 17638 lockf)
11028$as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h 17639cat >>confdefs.h <<\_ACEOF
17640#define MAIL_USE_LOCKF 1
17641_ACEOF
11029 ;; 17642 ;;
11030 17643
11031 *) BLESSMAIL_TARGET="need-blessmail" ;; 17644 *) BLESSMAIL_TARGET="need-blessmail" ;;
@@ -11033,6 +17646,79 @@ esac
11033 17646
11034 17647
11035 17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
11036for ac_func in gethostname getdomainname dup2 \ 17722for ac_func in gethostname getdomainname dup2 \
11037rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \ 17723rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
11038random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \ 17724random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
@@ -11043,11 +17729,97 @@ sendto recvfrom getsockopt setsockopt getsockname getpeername \
11043gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \ 17729gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
11044memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \ 17730memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11045cfmakeraw cfsetspeed isnan copysign 17731cfmakeraw cfsetspeed isnan copysign
11046do : 17732do
11047 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17733as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11048ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17734{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11049eval as_val=\$$as_ac_var 17735$as_echo_n "checking for $ac_func... " >&6; }
11050 if test "x$as_val" = x""yes; then : 17736if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17737 $as_echo_n "(cached) " >&6
17738else
17739 cat >conftest.$ac_ext <<_ACEOF
17740/* confdefs.h. */
17741_ACEOF
17742cat confdefs.h >>conftest.$ac_ext
17743cat >>conftest.$ac_ext <<_ACEOF
17744/* end confdefs.h. */
17745/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17747#define $ac_func innocuous_$ac_func
17748
17749/* System header to define __stub macros and hopefully few prototypes,
17750 which can conflict with char $ac_func (); below.
17751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17752 <limits.h> exists even on freestanding compilers. */
17753
17754#ifdef __STDC__
17755# include <limits.h>
17756#else
17757# include <assert.h>
17758#endif
17759
17760#undef $ac_func
17761
17762/* Override any GCC internal prototype to avoid an error.
17763 Use char because int might match the return type of a GCC
17764 builtin and then its argument prototype would still apply. */
17765#ifdef __cplusplus
17766extern "C"
17767#endif
17768char $ac_func ();
17769/* The GNU C library defines this for functions which it implements
17770 to always fail with ENOSYS. Some functions are actually named
17771 something starting with __ and the normal name is an alias. */
17772#if defined __stub_$ac_func || defined __stub___$ac_func
17773choke me
17774#endif
17775
17776int
17777main ()
17778{
17779return $ac_func ();
17780 ;
17781 return 0;
17782}
17783_ACEOF
17784rm -f conftest.$ac_objext conftest$ac_exeext
17785if { (ac_try="$ac_link"
17786case "(($ac_try" in
17787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17788 *) ac_try_echo=$ac_try;;
17789esac
17790eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17791$as_echo "$ac_try_echo") >&5
17792 (eval "$ac_link") 2>conftest.er1
17793 ac_status=$?
17794 grep -v '^ *+' conftest.er1 >conftest.err
17795 rm -f conftest.er1
17796 cat conftest.err >&5
17797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); } && {
17799 test -z "$ac_c_werror_flag" ||
17800 test ! -s conftest.err
17801 } && test -s conftest$ac_exeext && {
17802 test "$cross_compiling" = yes ||
17803 $as_test_x conftest$ac_exeext
17804 }; then
17805 eval "$as_ac_var=yes"
17806else
17807 $as_echo "$as_me: failed program was:" >&5
17808sed 's/^/| /' conftest.$ac_ext >&5
17809
17810 eval "$as_ac_var=no"
17811fi
17812
17813rm -rf conftest.dSYM
17814rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17815 conftest$ac_exeext conftest.$ac_ext
17816fi
17817ac_res=`eval 'as_val=${'$as_ac_var'}
17818 $as_echo "$as_val"'`
17819 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17820$as_echo "$ac_res" >&6; }
17821if test `eval 'as_val=${'$as_ac_var'}
17822 $as_echo "$as_val"'` = yes; then
11051 cat >>confdefs.h <<_ACEOF 17823 cat >>confdefs.h <<_ACEOF
11052#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17824#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11053_ACEOF 17825_ACEOF
@@ -11056,12 +17828,145 @@ fi
11056done 17828done
11057 17829
11058 17830
17831
11059for ac_header in sys/un.h 17832for ac_header in sys/un.h
11060do : 17833do
11061 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default" 17834as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11062if test "x$ac_cv_header_sys_un_h" = x""yes; then : 17835if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17836 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17837$as_echo_n "checking for $ac_header... " >&6; }
17838if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17839 $as_echo_n "(cached) " >&6
17840fi
17841ac_res=`eval 'as_val=${'$as_ac_Header'}
17842 $as_echo "$as_val"'`
17843 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17844$as_echo "$ac_res" >&6; }
17845else
17846 # Is the header compilable?
17847{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17848$as_echo_n "checking $ac_header usability... " >&6; }
17849cat >conftest.$ac_ext <<_ACEOF
17850/* confdefs.h. */
17851_ACEOF
17852cat confdefs.h >>conftest.$ac_ext
17853cat >>conftest.$ac_ext <<_ACEOF
17854/* end confdefs.h. */
17855$ac_includes_default
17856#include <$ac_header>
17857_ACEOF
17858rm -f conftest.$ac_objext
17859if { (ac_try="$ac_compile"
17860case "(($ac_try" in
17861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862 *) ac_try_echo=$ac_try;;
17863esac
17864eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17865$as_echo "$ac_try_echo") >&5
17866 (eval "$ac_compile") 2>conftest.er1
17867 ac_status=$?
17868 grep -v '^ *+' conftest.er1 >conftest.err
17869 rm -f conftest.er1
17870 cat conftest.err >&5
17871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); } && {
17873 test -z "$ac_c_werror_flag" ||
17874 test ! -s conftest.err
17875 } && test -s conftest.$ac_objext; then
17876 ac_header_compiler=yes
17877else
17878 $as_echo "$as_me: failed program was:" >&5
17879sed 's/^/| /' conftest.$ac_ext >&5
17880
17881 ac_header_compiler=no
17882fi
17883
17884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17885{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17886$as_echo "$ac_header_compiler" >&6; }
17887
17888# Is the header present?
17889{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17890$as_echo_n "checking $ac_header presence... " >&6; }
17891cat >conftest.$ac_ext <<_ACEOF
17892/* confdefs.h. */
17893_ACEOF
17894cat confdefs.h >>conftest.$ac_ext
17895cat >>conftest.$ac_ext <<_ACEOF
17896/* end confdefs.h. */
17897#include <$ac_header>
17898_ACEOF
17899if { (ac_try="$ac_cpp conftest.$ac_ext"
17900case "(($ac_try" in
17901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17902 *) ac_try_echo=$ac_try;;
17903esac
17904eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17905$as_echo "$ac_try_echo") >&5
17906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17907 ac_status=$?
17908 grep -v '^ *+' conftest.er1 >conftest.err
17909 rm -f conftest.er1
17910 cat conftest.err >&5
17911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); } >/dev/null && {
17913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17914 test ! -s conftest.err
17915 }; then
17916 ac_header_preproc=yes
17917else
17918 $as_echo "$as_me: failed program was:" >&5
17919sed 's/^/| /' conftest.$ac_ext >&5
17920
17921 ac_header_preproc=no
17922fi
17923
17924rm -f conftest.err conftest.$ac_ext
17925{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17926$as_echo "$ac_header_preproc" >&6; }
17927
17928# So? What about this header?
17929case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17930 yes:no: )
17931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17932$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17934$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17935 ac_header_preproc=yes
17936 ;;
17937 no:yes:* )
17938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17939$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17941$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17943$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17944 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17945$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17946 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17947$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17948 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17949$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17950
17951 ;;
17952esac
17953{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17954$as_echo_n "checking for $ac_header... " >&6; }
17955if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17956 $as_echo_n "(cached) " >&6
17957else
17958 eval "$as_ac_Header=\$ac_header_preproc"
17959fi
17960ac_res=`eval 'as_val=${'$as_ac_Header'}
17961 $as_echo "$as_val"'`
17962 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17963$as_echo "$ac_res" >&6; }
17964
17965fi
17966if test `eval 'as_val=${'$as_ac_Header'}
17967 $as_echo "$as_val"'` = yes; then
11063 cat >>confdefs.h <<_ACEOF 17968 cat >>confdefs.h <<_ACEOF
11064#define HAVE_SYS_UN_H 1 17969#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11065_ACEOF 17970_ACEOF
11066 17971
11067fi 17972fi
@@ -11073,13 +17978,250 @@ done
11073 17978
11074 17979
11075 17980
17981for ac_header in $ac_header_list
17982do
17983as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17984if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17985 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17986$as_echo_n "checking for $ac_header... " >&6; }
17987if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17988 $as_echo_n "(cached) " >&6
17989fi
17990ac_res=`eval 'as_val=${'$as_ac_Header'}
17991 $as_echo "$as_val"'`
17992 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17993$as_echo "$ac_res" >&6; }
17994else
17995 # Is the header compilable?
17996{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17997$as_echo_n "checking $ac_header usability... " >&6; }
17998cat >conftest.$ac_ext <<_ACEOF
17999/* confdefs.h. */
18000_ACEOF
18001cat confdefs.h >>conftest.$ac_ext
18002cat >>conftest.$ac_ext <<_ACEOF
18003/* end confdefs.h. */
18004$ac_includes_default
18005#include <$ac_header>
18006_ACEOF
18007rm -f conftest.$ac_objext
18008if { (ac_try="$ac_compile"
18009case "(($ac_try" in
18010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18011 *) ac_try_echo=$ac_try;;
18012esac
18013eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18014$as_echo "$ac_try_echo") >&5
18015 (eval "$ac_compile") 2>conftest.er1
18016 ac_status=$?
18017 grep -v '^ *+' conftest.er1 >conftest.err
18018 rm -f conftest.er1
18019 cat conftest.err >&5
18020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); } && {
18022 test -z "$ac_c_werror_flag" ||
18023 test ! -s conftest.err
18024 } && test -s conftest.$ac_objext; then
18025 ac_header_compiler=yes
18026else
18027 $as_echo "$as_me: failed program was:" >&5
18028sed 's/^/| /' conftest.$ac_ext >&5
18029
18030 ac_header_compiler=no
18031fi
18032
18033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18034{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18035$as_echo "$ac_header_compiler" >&6; }
18036
18037# Is the header present?
18038{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18039$as_echo_n "checking $ac_header presence... " >&6; }
18040cat >conftest.$ac_ext <<_ACEOF
18041/* confdefs.h. */
18042_ACEOF
18043cat confdefs.h >>conftest.$ac_ext
18044cat >>conftest.$ac_ext <<_ACEOF
18045/* end confdefs.h. */
18046#include <$ac_header>
18047_ACEOF
18048if { (ac_try="$ac_cpp conftest.$ac_ext"
18049case "(($ac_try" in
18050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18051 *) ac_try_echo=$ac_try;;
18052esac
18053eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18054$as_echo "$ac_try_echo") >&5
18055 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18056 ac_status=$?
18057 grep -v '^ *+' conftest.er1 >conftest.err
18058 rm -f conftest.er1
18059 cat conftest.err >&5
18060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); } >/dev/null && {
18062 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18063 test ! -s conftest.err
18064 }; then
18065 ac_header_preproc=yes
18066else
18067 $as_echo "$as_me: failed program was:" >&5
18068sed 's/^/| /' conftest.$ac_ext >&5
18069
18070 ac_header_preproc=no
18071fi
18072
18073rm -f conftest.err conftest.$ac_ext
18074{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18075$as_echo "$ac_header_preproc" >&6; }
18076
18077# So? What about this header?
18078case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18079 yes:no: )
18080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18081$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18083$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18084 ac_header_preproc=yes
18085 ;;
18086 no:yes:* )
18087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18088$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18090$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18092$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18094$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18096$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18098$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18099
18100 ;;
18101esac
18102{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18103$as_echo_n "checking for $ac_header... " >&6; }
18104if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18105 $as_echo_n "(cached) " >&6
18106else
18107 eval "$as_ac_Header=\$ac_header_preproc"
18108fi
18109ac_res=`eval 'as_val=${'$as_ac_Header'}
18110 $as_echo "$as_val"'`
18111 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18112$as_echo "$ac_res" >&6; }
11076 18113
11077 for ac_func in $ac_func_list 18114fi
11078do : 18115if test `eval 'as_val=${'$as_ac_Header'}
11079 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18116 $as_echo "$as_val"'` = yes; then
11080ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18117 cat >>confdefs.h <<_ACEOF
11081eval as_val=\$$as_ac_var 18118#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11082 if test "x$as_val" = x""yes; then : 18119_ACEOF
18120
18121fi
18122
18123done
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133for ac_func in $ac_func_list
18134do
18135as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18136{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18137$as_echo_n "checking for $ac_func... " >&6; }
18138if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18139 $as_echo_n "(cached) " >&6
18140else
18141 cat >conftest.$ac_ext <<_ACEOF
18142/* confdefs.h. */
18143_ACEOF
18144cat confdefs.h >>conftest.$ac_ext
18145cat >>conftest.$ac_ext <<_ACEOF
18146/* end confdefs.h. */
18147/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18149#define $ac_func innocuous_$ac_func
18150
18151/* System header to define __stub macros and hopefully few prototypes,
18152 which can conflict with char $ac_func (); below.
18153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18154 <limits.h> exists even on freestanding compilers. */
18155
18156#ifdef __STDC__
18157# include <limits.h>
18158#else
18159# include <assert.h>
18160#endif
18161
18162#undef $ac_func
18163
18164/* Override any GCC internal prototype to avoid an error.
18165 Use char because int might match the return type of a GCC
18166 builtin and then its argument prototype would still apply. */
18167#ifdef __cplusplus
18168extern "C"
18169#endif
18170char $ac_func ();
18171/* The GNU C library defines this for functions which it implements
18172 to always fail with ENOSYS. Some functions are actually named
18173 something starting with __ and the normal name is an alias. */
18174#if defined __stub_$ac_func || defined __stub___$ac_func
18175choke me
18176#endif
18177
18178int
18179main ()
18180{
18181return $ac_func ();
18182 ;
18183 return 0;
18184}
18185_ACEOF
18186rm -f conftest.$ac_objext conftest$ac_exeext
18187if { (ac_try="$ac_link"
18188case "(($ac_try" in
18189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18190 *) ac_try_echo=$ac_try;;
18191esac
18192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18193$as_echo "$ac_try_echo") >&5
18194 (eval "$ac_link") 2>conftest.er1
18195 ac_status=$?
18196 grep -v '^ *+' conftest.er1 >conftest.err
18197 rm -f conftest.er1
18198 cat conftest.err >&5
18199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); } && {
18201 test -z "$ac_c_werror_flag" ||
18202 test ! -s conftest.err
18203 } && test -s conftest$ac_exeext && {
18204 test "$cross_compiling" = yes ||
18205 $as_test_x conftest$ac_exeext
18206 }; then
18207 eval "$as_ac_var=yes"
18208else
18209 $as_echo "$as_me: failed program was:" >&5
18210sed 's/^/| /' conftest.$ac_ext >&5
18211
18212 eval "$as_ac_var=no"
18213fi
18214
18215rm -rf conftest.dSYM
18216rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18217 conftest$ac_exeext conftest.$ac_ext
18218fi
18219ac_res=`eval 'as_val=${'$as_ac_var'}
18220 $as_echo "$as_val"'`
18221 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18222$as_echo "$ac_res" >&6; }
18223if test `eval 'as_val=${'$as_ac_var'}
18224 $as_echo "$as_val"'` = yes; then
11083 cat >>confdefs.h <<_ACEOF 18225 cat >>confdefs.h <<_ACEOF
11084#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18226#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11085_ACEOF 18227_ACEOF
@@ -11091,15 +18233,31 @@ done
11091 18233
11092 18234
11093 18235
11094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5 18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248{ $as_echo "$as_me:$LINENO: checking for working mktime" >&5
11095$as_echo_n "checking for working mktime... " >&6; } 18249$as_echo_n "checking for working mktime... " >&6; }
11096if test "${ac_cv_func_working_mktime+set}" = set; then : 18250if test "${ac_cv_func_working_mktime+set}" = set; then
11097 $as_echo_n "(cached) " >&6 18251 $as_echo_n "(cached) " >&6
11098else 18252else
11099 if test "$cross_compiling" = yes; then : 18253 if test "$cross_compiling" = yes; then
11100 ac_cv_func_working_mktime=no 18254 ac_cv_func_working_mktime=no
11101else 18255else
11102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18256 cat >conftest.$ac_ext <<_ACEOF
18257/* confdefs.h. */
18258_ACEOF
18259cat confdefs.h >>conftest.$ac_ext
18260cat >>conftest.$ac_ext <<_ACEOF
11103/* end confdefs.h. */ 18261/* end confdefs.h. */
11104/* Test program from Paul Eggert and Tony Leneis. */ 18262/* Test program from Paul Eggert and Tony Leneis. */
11105#ifdef TIME_WITH_SYS_TIME 18263#ifdef TIME_WITH_SYS_TIME
@@ -11296,17 +18454,44 @@ main ()
11296 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); 18454 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
11297} 18455}
11298_ACEOF 18456_ACEOF
11299if ac_fn_c_try_run "$LINENO"; then : 18457rm -f conftest$ac_exeext
18458if { (ac_try="$ac_link"
18459case "(($ac_try" in
18460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18461 *) ac_try_echo=$ac_try;;
18462esac
18463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18464$as_echo "$ac_try_echo") >&5
18465 (eval "$ac_link") 2>&5
18466 ac_status=$?
18467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18469 { (case "(($ac_try" in
18470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18471 *) ac_try_echo=$ac_try;;
18472esac
18473eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18474$as_echo "$ac_try_echo") >&5
18475 (eval "$ac_try") 2>&5
18476 ac_status=$?
18477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); }; }; then
11300 ac_cv_func_working_mktime=yes 18479 ac_cv_func_working_mktime=yes
11301else 18480else
11302 ac_cv_func_working_mktime=no 18481 $as_echo "$as_me: program exited with status $ac_status" >&5
18482$as_echo "$as_me: failed program was:" >&5
18483sed 's/^/| /' conftest.$ac_ext >&5
18484
18485( exit $ac_status )
18486ac_cv_func_working_mktime=no
11303fi 18487fi
11304rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18488rm -rf conftest.dSYM
11305 conftest.$ac_objext conftest.beam conftest.$ac_ext 18489rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11306fi 18490fi
11307 18491
18492
11308fi 18493fi
11309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5 18494{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11310$as_echo "$ac_cv_func_working_mktime" >&6; } 18495$as_echo "$ac_cv_func_working_mktime" >&6; }
11311if test $ac_cv_func_working_mktime = no; then 18496if test $ac_cv_func_working_mktime = no; then
11312 case " $LIBOBJS " in 18497 case " $LIBOBJS " in
@@ -11319,7 +18504,9 @@ fi
11319 18504
11320if test "$ac_cv_func_working_mktime" = no; then 18505if test "$ac_cv_func_working_mktime" = no; then
11321 18506
11322$as_echo "#define BROKEN_MKTIME 1" >>confdefs.h 18507cat >>confdefs.h <<\_ACEOF
18508#define BROKEN_MKTIME 1
18509_ACEOF
11323 18510
11324fi 18511fi
11325 18512
@@ -11327,13 +18514,99 @@ ac_have_func=no # yes means we've found a way to get the load average.
11327 18514
11328# Make sure getloadavg.c is where it belongs, at configure-time. 18515# Make sure getloadavg.c is where it belongs, at configure-time.
11329test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || 18516test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11330 as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5 18517 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18518$as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18519 { (exit 1); exit 1; }; }
11331 18520
11332ac_save_LIBS=$LIBS 18521ac_save_LIBS=$LIBS
11333 18522
11334# Check for getloadavg, but be sure not to touch the cache variable. 18523# Check for getloadavg, but be sure not to touch the cache variable.
11335(ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" 18524({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
11336if test "x$ac_cv_func_getloadavg" = x""yes; then : 18525$as_echo_n "checking for getloadavg... " >&6; }
18526if test "${ac_cv_func_getloadavg+set}" = set; then
18527 $as_echo_n "(cached) " >&6
18528else
18529 cat >conftest.$ac_ext <<_ACEOF
18530/* confdefs.h. */
18531_ACEOF
18532cat confdefs.h >>conftest.$ac_ext
18533cat >>conftest.$ac_ext <<_ACEOF
18534/* end confdefs.h. */
18535/* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18537#define getloadavg innocuous_getloadavg
18538
18539/* System header to define __stub macros and hopefully few prototypes,
18540 which can conflict with char getloadavg (); below.
18541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18542 <limits.h> exists even on freestanding compilers. */
18543
18544#ifdef __STDC__
18545# include <limits.h>
18546#else
18547# include <assert.h>
18548#endif
18549
18550#undef getloadavg
18551
18552/* Override any GCC internal prototype to avoid an error.
18553 Use char because int might match the return type of a GCC
18554 builtin and then its argument prototype would still apply. */
18555#ifdef __cplusplus
18556extern "C"
18557#endif
18558char getloadavg ();
18559/* The GNU C library defines this for functions which it implements
18560 to always fail with ENOSYS. Some functions are actually named
18561 something starting with __ and the normal name is an alias. */
18562#if defined __stub_getloadavg || defined __stub___getloadavg
18563choke me
18564#endif
18565
18566int
18567main ()
18568{
18569return getloadavg ();
18570 ;
18571 return 0;
18572}
18573_ACEOF
18574rm -f conftest.$ac_objext conftest$ac_exeext
18575if { (ac_try="$ac_link"
18576case "(($ac_try" in
18577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18578 *) ac_try_echo=$ac_try;;
18579esac
18580eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18581$as_echo "$ac_try_echo") >&5
18582 (eval "$ac_link") 2>conftest.er1
18583 ac_status=$?
18584 grep -v '^ *+' conftest.er1 >conftest.err
18585 rm -f conftest.er1
18586 cat conftest.err >&5
18587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); } && {
18589 test -z "$ac_c_werror_flag" ||
18590 test ! -s conftest.err
18591 } && test -s conftest$ac_exeext && {
18592 test "$cross_compiling" = yes ||
18593 $as_test_x conftest$ac_exeext
18594 }; then
18595 ac_cv_func_getloadavg=yes
18596else
18597 $as_echo "$as_me: failed program was:" >&5
18598sed 's/^/| /' conftest.$ac_ext >&5
18599
18600 ac_cv_func_getloadavg=no
18601fi
18602
18603rm -rf conftest.dSYM
18604rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18605 conftest$ac_exeext conftest.$ac_ext
18606fi
18607{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18608$as_echo "$ac_cv_func_getloadavg" >&6; }
18609if test $ac_cv_func_getloadavg = yes; then
11337 exit 0 18610 exit 0
11338else 18611else
11339 exit 1 18612 exit 1
@@ -11341,12 +18614,101 @@ fi
11341) && ac_have_func=yes 18614) && ac_have_func=yes
11342 18615
11343# On HPUX9, an unprivileged user can get load averages through this function. 18616# On HPUX9, an unprivileged user can get load averages through this function.
18617
11344for ac_func in pstat_getdynamic 18618for ac_func in pstat_getdynamic
11345do : 18619do
11346 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic" 18620as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11347if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then : 18621{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18622$as_echo_n "checking for $ac_func... " >&6; }
18623if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18624 $as_echo_n "(cached) " >&6
18625else
18626 cat >conftest.$ac_ext <<_ACEOF
18627/* confdefs.h. */
18628_ACEOF
18629cat confdefs.h >>conftest.$ac_ext
18630cat >>conftest.$ac_ext <<_ACEOF
18631/* end confdefs.h. */
18632/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18634#define $ac_func innocuous_$ac_func
18635
18636/* System header to define __stub macros and hopefully few prototypes,
18637 which can conflict with char $ac_func (); below.
18638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18639 <limits.h> exists even on freestanding compilers. */
18640
18641#ifdef __STDC__
18642# include <limits.h>
18643#else
18644# include <assert.h>
18645#endif
18646
18647#undef $ac_func
18648
18649/* Override any GCC internal prototype to avoid an error.
18650 Use char because int might match the return type of a GCC
18651 builtin and then its argument prototype would still apply. */
18652#ifdef __cplusplus
18653extern "C"
18654#endif
18655char $ac_func ();
18656/* The GNU C library defines this for functions which it implements
18657 to always fail with ENOSYS. Some functions are actually named
18658 something starting with __ and the normal name is an alias. */
18659#if defined __stub_$ac_func || defined __stub___$ac_func
18660choke me
18661#endif
18662
18663int
18664main ()
18665{
18666return $ac_func ();
18667 ;
18668 return 0;
18669}
18670_ACEOF
18671rm -f conftest.$ac_objext conftest$ac_exeext
18672if { (ac_try="$ac_link"
18673case "(($ac_try" in
18674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675 *) ac_try_echo=$ac_try;;
18676esac
18677eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18678$as_echo "$ac_try_echo") >&5
18679 (eval "$ac_link") 2>conftest.er1
18680 ac_status=$?
18681 grep -v '^ *+' conftest.er1 >conftest.err
18682 rm -f conftest.er1
18683 cat conftest.err >&5
18684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); } && {
18686 test -z "$ac_c_werror_flag" ||
18687 test ! -s conftest.err
18688 } && test -s conftest$ac_exeext && {
18689 test "$cross_compiling" = yes ||
18690 $as_test_x conftest$ac_exeext
18691 }; then
18692 eval "$as_ac_var=yes"
18693else
18694 $as_echo "$as_me: failed program was:" >&5
18695sed 's/^/| /' conftest.$ac_ext >&5
18696
18697 eval "$as_ac_var=no"
18698fi
18699
18700rm -rf conftest.dSYM
18701rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18702 conftest$ac_exeext conftest.$ac_ext
18703fi
18704ac_res=`eval 'as_val=${'$as_ac_var'}
18705 $as_echo "$as_val"'`
18706 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18707$as_echo "$ac_res" >&6; }
18708if test `eval 'as_val=${'$as_ac_var'}
18709 $as_echo "$as_val"'` = yes; then
11348 cat >>confdefs.h <<_ACEOF 18710 cat >>confdefs.h <<_ACEOF
11349#define HAVE_PSTAT_GETDYNAMIC 1 18711#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11350_ACEOF 18712_ACEOF
11351 18713
11352fi 18714fi
@@ -11354,14 +18716,19 @@ done
11354 18716
11355 18717
11356# Solaris has libkstat which does not require root. 18718# Solaris has libkstat which does not require root.
11357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5 18719
18720{ $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
11358$as_echo_n "checking for kstat_open in -lkstat... " >&6; } 18721$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11359if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then : 18722if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
11360 $as_echo_n "(cached) " >&6 18723 $as_echo_n "(cached) " >&6
11361else 18724else
11362 ac_check_lib_save_LIBS=$LIBS 18725 ac_check_lib_save_LIBS=$LIBS
11363LIBS="-lkstat $LIBS" 18726LIBS="-lkstat $LIBS"
11364cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18727cat >conftest.$ac_ext <<_ACEOF
18728/* confdefs.h. */
18729_ACEOF
18730cat confdefs.h >>conftest.$ac_ext
18731cat >>conftest.$ac_ext <<_ACEOF
11365/* end confdefs.h. */ 18732/* end confdefs.h. */
11366 18733
11367/* Override any GCC internal prototype to avoid an error. 18734/* Override any GCC internal prototype to avoid an error.
@@ -11379,18 +18746,43 @@ return kstat_open ();
11379 return 0; 18746 return 0;
11380} 18747}
11381_ACEOF 18748_ACEOF
11382if ac_fn_c_try_link "$LINENO"; then : 18749rm -f conftest.$ac_objext conftest$ac_exeext
18750if { (ac_try="$ac_link"
18751case "(($ac_try" in
18752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18753 *) ac_try_echo=$ac_try;;
18754esac
18755eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18756$as_echo "$ac_try_echo") >&5
18757 (eval "$ac_link") 2>conftest.er1
18758 ac_status=$?
18759 grep -v '^ *+' conftest.er1 >conftest.err
18760 rm -f conftest.er1
18761 cat conftest.err >&5
18762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); } && {
18764 test -z "$ac_c_werror_flag" ||
18765 test ! -s conftest.err
18766 } && test -s conftest$ac_exeext && {
18767 test "$cross_compiling" = yes ||
18768 $as_test_x conftest$ac_exeext
18769 }; then
11383 ac_cv_lib_kstat_kstat_open=yes 18770 ac_cv_lib_kstat_kstat_open=yes
11384else 18771else
11385 ac_cv_lib_kstat_kstat_open=no 18772 $as_echo "$as_me: failed program was:" >&5
18773sed 's/^/| /' conftest.$ac_ext >&5
18774
18775 ac_cv_lib_kstat_kstat_open=no
11386fi 18776fi
11387rm -f core conftest.err conftest.$ac_objext \ 18777
11388 conftest$ac_exeext conftest.$ac_ext 18778rm -rf conftest.dSYM
18779rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18780 conftest$ac_exeext conftest.$ac_ext
11389LIBS=$ac_check_lib_save_LIBS 18781LIBS=$ac_check_lib_save_LIBS
11390fi 18782fi
11391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5 18783{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
11392$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; } 18784$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11393if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then : 18785if test $ac_cv_lib_kstat_kstat_open = yes; then
11394 cat >>confdefs.h <<_ACEOF 18786 cat >>confdefs.h <<_ACEOF
11395#define HAVE_LIBKSTAT 1 18787#define HAVE_LIBKSTAT 1
11396_ACEOF 18788_ACEOF
@@ -11406,14 +18798,18 @@ test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
11406# to get the right answer into the cache. 18798# to get the right answer into the cache.
11407# For kstat on solaris, we need libelf to force the definition of SVR4 below. 18799# For kstat on solaris, we need libelf to force the definition of SVR4 below.
11408if test $ac_have_func = no; then 18800if test $ac_have_func = no; then
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5 18801 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
11410$as_echo_n "checking for elf_begin in -lelf... " >&6; } 18802$as_echo_n "checking for elf_begin in -lelf... " >&6; }
11411if test "${ac_cv_lib_elf_elf_begin+set}" = set; then : 18803if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
11412 $as_echo_n "(cached) " >&6 18804 $as_echo_n "(cached) " >&6
11413else 18805else
11414 ac_check_lib_save_LIBS=$LIBS 18806 ac_check_lib_save_LIBS=$LIBS
11415LIBS="-lelf $LIBS" 18807LIBS="-lelf $LIBS"
11416cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18808cat >conftest.$ac_ext <<_ACEOF
18809/* confdefs.h. */
18810_ACEOF
18811cat confdefs.h >>conftest.$ac_ext
18812cat >>conftest.$ac_ext <<_ACEOF
11417/* end confdefs.h. */ 18813/* end confdefs.h. */
11418 18814
11419/* Override any GCC internal prototype to avoid an error. 18815/* Override any GCC internal prototype to avoid an error.
@@ -11431,31 +18827,60 @@ return elf_begin ();
11431 return 0; 18827 return 0;
11432} 18828}
11433_ACEOF 18829_ACEOF
11434if ac_fn_c_try_link "$LINENO"; then : 18830rm -f conftest.$ac_objext conftest$ac_exeext
18831if { (ac_try="$ac_link"
18832case "(($ac_try" in
18833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18834 *) ac_try_echo=$ac_try;;
18835esac
18836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18837$as_echo "$ac_try_echo") >&5
18838 (eval "$ac_link") 2>conftest.er1
18839 ac_status=$?
18840 grep -v '^ *+' conftest.er1 >conftest.err
18841 rm -f conftest.er1
18842 cat conftest.err >&5
18843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); } && {
18845 test -z "$ac_c_werror_flag" ||
18846 test ! -s conftest.err
18847 } && test -s conftest$ac_exeext && {
18848 test "$cross_compiling" = yes ||
18849 $as_test_x conftest$ac_exeext
18850 }; then
11435 ac_cv_lib_elf_elf_begin=yes 18851 ac_cv_lib_elf_elf_begin=yes
11436else 18852else
11437 ac_cv_lib_elf_elf_begin=no 18853 $as_echo "$as_me: failed program was:" >&5
18854sed 's/^/| /' conftest.$ac_ext >&5
18855
18856 ac_cv_lib_elf_elf_begin=no
11438fi 18857fi
11439rm -f core conftest.err conftest.$ac_objext \ 18858
11440 conftest$ac_exeext conftest.$ac_ext 18859rm -rf conftest.dSYM
18860rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18861 conftest$ac_exeext conftest.$ac_ext
11441LIBS=$ac_check_lib_save_LIBS 18862LIBS=$ac_check_lib_save_LIBS
11442fi 18863fi
11443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5 18864{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
11444$as_echo "$ac_cv_lib_elf_elf_begin" >&6; } 18865$as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11445if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then : 18866if test $ac_cv_lib_elf_elf_begin = yes; then
11446 LIBS="-lelf $LIBS" 18867 LIBS="-lelf $LIBS"
11447fi 18868fi
11448 18869
11449fi 18870fi
11450if test $ac_have_func = no; then 18871if test $ac_have_func = no; then
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5 18872 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
11452$as_echo_n "checking for kvm_open in -lkvm... " >&6; } 18873$as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11453if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then : 18874if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
11454 $as_echo_n "(cached) " >&6 18875 $as_echo_n "(cached) " >&6
11455else 18876else
11456 ac_check_lib_save_LIBS=$LIBS 18877 ac_check_lib_save_LIBS=$LIBS
11457LIBS="-lkvm $LIBS" 18878LIBS="-lkvm $LIBS"
11458cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18879cat >conftest.$ac_ext <<_ACEOF
18880/* confdefs.h. */
18881_ACEOF
18882cat confdefs.h >>conftest.$ac_ext
18883cat >>conftest.$ac_ext <<_ACEOF
11459/* end confdefs.h. */ 18884/* end confdefs.h. */
11460 18885
11461/* Override any GCC internal prototype to avoid an error. 18886/* Override any GCC internal prototype to avoid an error.
@@ -11473,30 +18898,59 @@ return kvm_open ();
11473 return 0; 18898 return 0;
11474} 18899}
11475_ACEOF 18900_ACEOF
11476if ac_fn_c_try_link "$LINENO"; then : 18901rm -f conftest.$ac_objext conftest$ac_exeext
18902if { (ac_try="$ac_link"
18903case "(($ac_try" in
18904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18905 *) ac_try_echo=$ac_try;;
18906esac
18907eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18908$as_echo "$ac_try_echo") >&5
18909 (eval "$ac_link") 2>conftest.er1
18910 ac_status=$?
18911 grep -v '^ *+' conftest.er1 >conftest.err
18912 rm -f conftest.er1
18913 cat conftest.err >&5
18914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915 (exit $ac_status); } && {
18916 test -z "$ac_c_werror_flag" ||
18917 test ! -s conftest.err
18918 } && test -s conftest$ac_exeext && {
18919 test "$cross_compiling" = yes ||
18920 $as_test_x conftest$ac_exeext
18921 }; then
11477 ac_cv_lib_kvm_kvm_open=yes 18922 ac_cv_lib_kvm_kvm_open=yes
11478else 18923else
11479 ac_cv_lib_kvm_kvm_open=no 18924 $as_echo "$as_me: failed program was:" >&5
18925sed 's/^/| /' conftest.$ac_ext >&5
18926
18927 ac_cv_lib_kvm_kvm_open=no
11480fi 18928fi
11481rm -f core conftest.err conftest.$ac_objext \ 18929
11482 conftest$ac_exeext conftest.$ac_ext 18930rm -rf conftest.dSYM
18931rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18932 conftest$ac_exeext conftest.$ac_ext
11483LIBS=$ac_check_lib_save_LIBS 18933LIBS=$ac_check_lib_save_LIBS
11484fi 18934fi
11485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5 18935{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
11486$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; } 18936$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11487if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then : 18937if test $ac_cv_lib_kvm_kvm_open = yes; then
11488 LIBS="-lkvm $LIBS" 18938 LIBS="-lkvm $LIBS"
11489fi 18939fi
11490 18940
11491 # Check for the 4.4BSD definition of getloadavg. 18941 # Check for the 4.4BSD definition of getloadavg.
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5 18942 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
11493$as_echo_n "checking for getloadavg in -lutil... " >&6; } 18943$as_echo_n "checking for getloadavg in -lutil... " >&6; }
11494if test "${ac_cv_lib_util_getloadavg+set}" = set; then : 18944if test "${ac_cv_lib_util_getloadavg+set}" = set; then
11495 $as_echo_n "(cached) " >&6 18945 $as_echo_n "(cached) " >&6
11496else 18946else
11497 ac_check_lib_save_LIBS=$LIBS 18947 ac_check_lib_save_LIBS=$LIBS
11498LIBS="-lutil $LIBS" 18948LIBS="-lutil $LIBS"
11499cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18949cat >conftest.$ac_ext <<_ACEOF
18950/* confdefs.h. */
18951_ACEOF
18952cat confdefs.h >>conftest.$ac_ext
18953cat >>conftest.$ac_ext <<_ACEOF
11500/* end confdefs.h. */ 18954/* end confdefs.h. */
11501 18955
11502/* Override any GCC internal prototype to avoid an error. 18956/* Override any GCC internal prototype to avoid an error.
@@ -11514,18 +18968,43 @@ return getloadavg ();
11514 return 0; 18968 return 0;
11515} 18969}
11516_ACEOF 18970_ACEOF
11517if ac_fn_c_try_link "$LINENO"; then : 18971rm -f conftest.$ac_objext conftest$ac_exeext
18972if { (ac_try="$ac_link"
18973case "(($ac_try" in
18974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18975 *) ac_try_echo=$ac_try;;
18976esac
18977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18978$as_echo "$ac_try_echo") >&5
18979 (eval "$ac_link") 2>conftest.er1
18980 ac_status=$?
18981 grep -v '^ *+' conftest.er1 >conftest.err
18982 rm -f conftest.er1
18983 cat conftest.err >&5
18984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); } && {
18986 test -z "$ac_c_werror_flag" ||
18987 test ! -s conftest.err
18988 } && test -s conftest$ac_exeext && {
18989 test "$cross_compiling" = yes ||
18990 $as_test_x conftest$ac_exeext
18991 }; then
11518 ac_cv_lib_util_getloadavg=yes 18992 ac_cv_lib_util_getloadavg=yes
11519else 18993else
11520 ac_cv_lib_util_getloadavg=no 18994 $as_echo "$as_me: failed program was:" >&5
18995sed 's/^/| /' conftest.$ac_ext >&5
18996
18997 ac_cv_lib_util_getloadavg=no
11521fi 18998fi
11522rm -f core conftest.err conftest.$ac_objext \ 18999
11523 conftest$ac_exeext conftest.$ac_ext 19000rm -rf conftest.dSYM
19001rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19002 conftest$ac_exeext conftest.$ac_ext
11524LIBS=$ac_check_lib_save_LIBS 19003LIBS=$ac_check_lib_save_LIBS
11525fi 19004fi
11526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5 19005{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
11527$as_echo "$ac_cv_lib_util_getloadavg" >&6; } 19006$as_echo "$ac_cv_lib_util_getloadavg" >&6; }
11528if test "x$ac_cv_lib_util_getloadavg" = x""yes; then : 19007if test $ac_cv_lib_util_getloadavg = yes; then
11529 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes 19008 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
11530fi 19009fi
11531 19010
@@ -11536,14 +19015,18 @@ if test $ac_have_func = no; then
11536 # Since it is not a standard part of AIX, it might be installed locally. 19015 # Since it is not a standard part of AIX, it might be installed locally.
11537 ac_getloadavg_LIBS=$LIBS 19016 ac_getloadavg_LIBS=$LIBS
11538 LIBS="-L/usr/local/lib $LIBS" 19017 LIBS="-L/usr/local/lib $LIBS"
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5 19018 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
11540$as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; } 19019$as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
11541if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then : 19020if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
11542 $as_echo_n "(cached) " >&6 19021 $as_echo_n "(cached) " >&6
11543else 19022else
11544 ac_check_lib_save_LIBS=$LIBS 19023 ac_check_lib_save_LIBS=$LIBS
11545LIBS="-lgetloadavg $LIBS" 19024LIBS="-lgetloadavg $LIBS"
11546cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19025cat >conftest.$ac_ext <<_ACEOF
19026/* confdefs.h. */
19027_ACEOF
19028cat confdefs.h >>conftest.$ac_ext
19029cat >>conftest.$ac_ext <<_ACEOF
11547/* end confdefs.h. */ 19030/* end confdefs.h. */
11548 19031
11549/* Override any GCC internal prototype to avoid an error. 19032/* Override any GCC internal prototype to avoid an error.
@@ -11561,18 +19044,43 @@ return getloadavg ();
11561 return 0; 19044 return 0;
11562} 19045}
11563_ACEOF 19046_ACEOF
11564if ac_fn_c_try_link "$LINENO"; then : 19047rm -f conftest.$ac_objext conftest$ac_exeext
19048if { (ac_try="$ac_link"
19049case "(($ac_try" in
19050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19051 *) ac_try_echo=$ac_try;;
19052esac
19053eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19054$as_echo "$ac_try_echo") >&5
19055 (eval "$ac_link") 2>conftest.er1
19056 ac_status=$?
19057 grep -v '^ *+' conftest.er1 >conftest.err
19058 rm -f conftest.er1
19059 cat conftest.err >&5
19060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); } && {
19062 test -z "$ac_c_werror_flag" ||
19063 test ! -s conftest.err
19064 } && test -s conftest$ac_exeext && {
19065 test "$cross_compiling" = yes ||
19066 $as_test_x conftest$ac_exeext
19067 }; then
11565 ac_cv_lib_getloadavg_getloadavg=yes 19068 ac_cv_lib_getloadavg_getloadavg=yes
11566else 19069else
11567 ac_cv_lib_getloadavg_getloadavg=no 19070 $as_echo "$as_me: failed program was:" >&5
19071sed 's/^/| /' conftest.$ac_ext >&5
19072
19073 ac_cv_lib_getloadavg_getloadavg=no
11568fi 19074fi
11569rm -f core conftest.err conftest.$ac_objext \ 19075
11570 conftest$ac_exeext conftest.$ac_ext 19076rm -rf conftest.dSYM
19077rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19078 conftest$ac_exeext conftest.$ac_ext
11571LIBS=$ac_check_lib_save_LIBS 19079LIBS=$ac_check_lib_save_LIBS
11572fi 19080fi
11573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5 19081{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11574$as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; } 19082$as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
11575if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then : 19083if test $ac_cv_lib_getloadavg_getloadavg = yes; then
11576 LIBS="-lgetloadavg $LIBS" 19084 LIBS="-lgetloadavg $LIBS"
11577else 19085else
11578 LIBS=$ac_getloadavg_LIBS 19086 LIBS=$ac_getloadavg_LIBS
@@ -11582,12 +19090,101 @@ fi
11582 19090
11583# Make sure it is really in the library, if we think we found it, 19091# Make sure it is really in the library, if we think we found it,
11584# otherwise set up the replacement function. 19092# otherwise set up the replacement function.
19093
11585for ac_func in getloadavg 19094for ac_func in getloadavg
11586do : 19095do
11587 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" 19096as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11588if test "x$ac_cv_func_getloadavg" = x""yes; then : 19097{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19098$as_echo_n "checking for $ac_func... " >&6; }
19099if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19100 $as_echo_n "(cached) " >&6
19101else
19102 cat >conftest.$ac_ext <<_ACEOF
19103/* confdefs.h. */
19104_ACEOF
19105cat confdefs.h >>conftest.$ac_ext
19106cat >>conftest.$ac_ext <<_ACEOF
19107/* end confdefs.h. */
19108/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19110#define $ac_func innocuous_$ac_func
19111
19112/* System header to define __stub macros and hopefully few prototypes,
19113 which can conflict with char $ac_func (); below.
19114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19115 <limits.h> exists even on freestanding compilers. */
19116
19117#ifdef __STDC__
19118# include <limits.h>
19119#else
19120# include <assert.h>
19121#endif
19122
19123#undef $ac_func
19124
19125/* Override any GCC internal prototype to avoid an error.
19126 Use char because int might match the return type of a GCC
19127 builtin and then its argument prototype would still apply. */
19128#ifdef __cplusplus
19129extern "C"
19130#endif
19131char $ac_func ();
19132/* The GNU C library defines this for functions which it implements
19133 to always fail with ENOSYS. Some functions are actually named
19134 something starting with __ and the normal name is an alias. */
19135#if defined __stub_$ac_func || defined __stub___$ac_func
19136choke me
19137#endif
19138
19139int
19140main ()
19141{
19142return $ac_func ();
19143 ;
19144 return 0;
19145}
19146_ACEOF
19147rm -f conftest.$ac_objext conftest$ac_exeext
19148if { (ac_try="$ac_link"
19149case "(($ac_try" in
19150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19151 *) ac_try_echo=$ac_try;;
19152esac
19153eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19154$as_echo "$ac_try_echo") >&5
19155 (eval "$ac_link") 2>conftest.er1
19156 ac_status=$?
19157 grep -v '^ *+' conftest.er1 >conftest.err
19158 rm -f conftest.er1
19159 cat conftest.err >&5
19160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); } && {
19162 test -z "$ac_c_werror_flag" ||
19163 test ! -s conftest.err
19164 } && test -s conftest$ac_exeext && {
19165 test "$cross_compiling" = yes ||
19166 $as_test_x conftest$ac_exeext
19167 }; then
19168 eval "$as_ac_var=yes"
19169else
19170 $as_echo "$as_me: failed program was:" >&5
19171sed 's/^/| /' conftest.$ac_ext >&5
19172
19173 eval "$as_ac_var=no"
19174fi
19175
19176rm -rf conftest.dSYM
19177rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19178 conftest$ac_exeext conftest.$ac_ext
19179fi
19180ac_res=`eval 'as_val=${'$as_ac_var'}
19181 $as_echo "$as_val"'`
19182 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19183$as_echo "$ac_res" >&6; }
19184if test `eval 'as_val=${'$as_ac_var'}
19185 $as_echo "$as_val"'` = yes; then
11589 cat >>confdefs.h <<_ACEOF 19186 cat >>confdefs.h <<_ACEOF
11590#define HAVE_GETLOADAVG 1 19187#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11591_ACEOF 19188_ACEOF
11592 19189
11593else 19190else
@@ -11598,24 +19195,159 @@ else
11598esac 19195esac
11599 19196
11600 19197
11601$as_echo "#define C_GETLOADAVG 1" >>confdefs.h 19198cat >>confdefs.h <<\_ACEOF
19199#define C_GETLOADAVG 1
19200_ACEOF
11602 19201
11603# Figure out what our getloadavg.c needs. 19202# Figure out what our getloadavg.c needs.
11604ac_have_func=no 19203ac_have_func=no
11605ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default" 19204if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11606if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then : 19205 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19206$as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19207if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19208 $as_echo_n "(cached) " >&6
19209fi
19210{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19211$as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19212else
19213 # Is the header compilable?
19214{ $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
19215$as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
19216cat >conftest.$ac_ext <<_ACEOF
19217/* confdefs.h. */
19218_ACEOF
19219cat confdefs.h >>conftest.$ac_ext
19220cat >>conftest.$ac_ext <<_ACEOF
19221/* end confdefs.h. */
19222$ac_includes_default
19223#include <sys/dg_sys_info.h>
19224_ACEOF
19225rm -f conftest.$ac_objext
19226if { (ac_try="$ac_compile"
19227case "(($ac_try" in
19228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19229 *) ac_try_echo=$ac_try;;
19230esac
19231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19232$as_echo "$ac_try_echo") >&5
19233 (eval "$ac_compile") 2>conftest.er1
19234 ac_status=$?
19235 grep -v '^ *+' conftest.er1 >conftest.err
19236 rm -f conftest.er1
19237 cat conftest.err >&5
19238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); } && {
19240 test -z "$ac_c_werror_flag" ||
19241 test ! -s conftest.err
19242 } && test -s conftest.$ac_objext; then
19243 ac_header_compiler=yes
19244else
19245 $as_echo "$as_me: failed program was:" >&5
19246sed 's/^/| /' conftest.$ac_ext >&5
19247
19248 ac_header_compiler=no
19249fi
19250
19251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19252{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19253$as_echo "$ac_header_compiler" >&6; }
19254
19255# Is the header present?
19256{ $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
19257$as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
19258cat >conftest.$ac_ext <<_ACEOF
19259/* confdefs.h. */
19260_ACEOF
19261cat confdefs.h >>conftest.$ac_ext
19262cat >>conftest.$ac_ext <<_ACEOF
19263/* end confdefs.h. */
19264#include <sys/dg_sys_info.h>
19265_ACEOF
19266if { (ac_try="$ac_cpp conftest.$ac_ext"
19267case "(($ac_try" in
19268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19269 *) ac_try_echo=$ac_try;;
19270esac
19271eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19272$as_echo "$ac_try_echo") >&5
19273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19274 ac_status=$?
19275 grep -v '^ *+' conftest.er1 >conftest.err
19276 rm -f conftest.er1
19277 cat conftest.err >&5
19278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); } >/dev/null && {
19280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19281 test ! -s conftest.err
19282 }; then
19283 ac_header_preproc=yes
19284else
19285 $as_echo "$as_me: failed program was:" >&5
19286sed 's/^/| /' conftest.$ac_ext >&5
19287
19288 ac_header_preproc=no
19289fi
19290
19291rm -f conftest.err conftest.$ac_ext
19292{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19293$as_echo "$ac_header_preproc" >&6; }
19294
19295# So? What about this header?
19296case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19297 yes:no: )
19298 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
19299$as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19300 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
19301$as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
19302 ac_header_preproc=yes
19303 ;;
19304 no:yes:* )
19305 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
19306$as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
19307 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
19308$as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
19309 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
19310$as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
19311 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
19312$as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
19313 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
19314$as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
19315 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
19316$as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
19317
19318 ;;
19319esac
19320{ $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19321$as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19322if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19323 $as_echo_n "(cached) " >&6
19324else
19325 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19326fi
19327{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19328$as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19329
19330fi
19331if test $ac_cv_header_sys_dg_sys_info_h = yes; then
11607 ac_have_func=yes 19332 ac_have_func=yes
11608 19333
11609$as_echo "#define DGUX 1" >>confdefs.h 19334cat >>confdefs.h <<\_ACEOF
19335#define DGUX 1
19336_ACEOF
19337
11610 19338
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5 19339{ $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
11612$as_echo_n "checking for dg_sys_info in -ldgc... " >&6; } 19340$as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11613if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then : 19341if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
11614 $as_echo_n "(cached) " >&6 19342 $as_echo_n "(cached) " >&6
11615else 19343else
11616 ac_check_lib_save_LIBS=$LIBS 19344 ac_check_lib_save_LIBS=$LIBS
11617LIBS="-ldgc $LIBS" 19345LIBS="-ldgc $LIBS"
11618cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19346cat >conftest.$ac_ext <<_ACEOF
19347/* confdefs.h. */
19348_ACEOF
19349cat confdefs.h >>conftest.$ac_ext
19350cat >>conftest.$ac_ext <<_ACEOF
11619/* end confdefs.h. */ 19351/* end confdefs.h. */
11620 19352
11621/* Override any GCC internal prototype to avoid an error. 19353/* Override any GCC internal prototype to avoid an error.
@@ -11633,18 +19365,43 @@ return dg_sys_info ();
11633 return 0; 19365 return 0;
11634} 19366}
11635_ACEOF 19367_ACEOF
11636if ac_fn_c_try_link "$LINENO"; then : 19368rm -f conftest.$ac_objext conftest$ac_exeext
19369if { (ac_try="$ac_link"
19370case "(($ac_try" in
19371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19372 *) ac_try_echo=$ac_try;;
19373esac
19374eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19375$as_echo "$ac_try_echo") >&5
19376 (eval "$ac_link") 2>conftest.er1
19377 ac_status=$?
19378 grep -v '^ *+' conftest.er1 >conftest.err
19379 rm -f conftest.er1
19380 cat conftest.err >&5
19381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); } && {
19383 test -z "$ac_c_werror_flag" ||
19384 test ! -s conftest.err
19385 } && test -s conftest$ac_exeext && {
19386 test "$cross_compiling" = yes ||
19387 $as_test_x conftest$ac_exeext
19388 }; then
11637 ac_cv_lib_dgc_dg_sys_info=yes 19389 ac_cv_lib_dgc_dg_sys_info=yes
11638else 19390else
11639 ac_cv_lib_dgc_dg_sys_info=no 19391 $as_echo "$as_me: failed program was:" >&5
19392sed 's/^/| /' conftest.$ac_ext >&5
19393
19394 ac_cv_lib_dgc_dg_sys_info=no
11640fi 19395fi
11641rm -f core conftest.err conftest.$ac_objext \ 19396
11642 conftest$ac_exeext conftest.$ac_ext 19397rm -rf conftest.dSYM
19398rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19399 conftest$ac_exeext conftest.$ac_ext
11643LIBS=$ac_check_lib_save_LIBS 19400LIBS=$ac_check_lib_save_LIBS
11644fi 19401fi
11645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5 19402{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11646$as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; } 19403$as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11647if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then : 19404if test $ac_cv_lib_dgc_dg_sys_info = yes; then
11648 cat >>confdefs.h <<_ACEOF 19405 cat >>confdefs.h <<_ACEOF
11649#define HAVE_LIBDGC 1 19406#define HAVE_LIBDGC 1
11650_ACEOF 19407_ACEOF
@@ -11657,18 +19414,230 @@ fi
11657 19414
11658 19415
11659 19416
11660ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" 19417if test "${ac_cv_header_locale_h+set}" = set; then
11661if test "x$ac_cv_header_locale_h" = x""yes; then : 19418 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19419$as_echo_n "checking for locale.h... " >&6; }
19420if test "${ac_cv_header_locale_h+set}" = set; then
19421 $as_echo_n "(cached) " >&6
19422fi
19423{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19424$as_echo "$ac_cv_header_locale_h" >&6; }
19425else
19426 # Is the header compilable?
19427{ $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19428$as_echo_n "checking locale.h usability... " >&6; }
19429cat >conftest.$ac_ext <<_ACEOF
19430/* confdefs.h. */
19431_ACEOF
19432cat confdefs.h >>conftest.$ac_ext
19433cat >>conftest.$ac_ext <<_ACEOF
19434/* end confdefs.h. */
19435$ac_includes_default
19436#include <locale.h>
19437_ACEOF
19438rm -f conftest.$ac_objext
19439if { (ac_try="$ac_compile"
19440case "(($ac_try" in
19441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19442 *) ac_try_echo=$ac_try;;
19443esac
19444eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19445$as_echo "$ac_try_echo") >&5
19446 (eval "$ac_compile") 2>conftest.er1
19447 ac_status=$?
19448 grep -v '^ *+' conftest.er1 >conftest.err
19449 rm -f conftest.er1
19450 cat conftest.err >&5
19451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } && {
19453 test -z "$ac_c_werror_flag" ||
19454 test ! -s conftest.err
19455 } && test -s conftest.$ac_objext; then
19456 ac_header_compiler=yes
19457else
19458 $as_echo "$as_me: failed program was:" >&5
19459sed 's/^/| /' conftest.$ac_ext >&5
19460
19461 ac_header_compiler=no
19462fi
19463
19464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19465{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19466$as_echo "$ac_header_compiler" >&6; }
19467
19468# Is the header present?
19469{ $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19470$as_echo_n "checking locale.h presence... " >&6; }
19471cat >conftest.$ac_ext <<_ACEOF
19472/* confdefs.h. */
19473_ACEOF
19474cat confdefs.h >>conftest.$ac_ext
19475cat >>conftest.$ac_ext <<_ACEOF
19476/* end confdefs.h. */
19477#include <locale.h>
19478_ACEOF
19479if { (ac_try="$ac_cpp conftest.$ac_ext"
19480case "(($ac_try" in
19481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19482 *) ac_try_echo=$ac_try;;
19483esac
19484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19485$as_echo "$ac_try_echo") >&5
19486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19487 ac_status=$?
19488 grep -v '^ *+' conftest.er1 >conftest.err
19489 rm -f conftest.er1
19490 cat conftest.err >&5
19491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); } >/dev/null && {
19493 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19494 test ! -s conftest.err
19495 }; then
19496 ac_header_preproc=yes
19497else
19498 $as_echo "$as_me: failed program was:" >&5
19499sed 's/^/| /' conftest.$ac_ext >&5
19500
19501 ac_header_preproc=no
19502fi
19503
19504rm -f conftest.err conftest.$ac_ext
19505{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19506$as_echo "$ac_header_preproc" >&6; }
19507
19508# So? What about this header?
19509case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19510 yes:no: )
19511 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19512$as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19513 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19514$as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19515 ac_header_preproc=yes
19516 ;;
19517 no:yes:* )
19518 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19519$as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19520 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19521$as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19522 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19523$as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19524 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19525$as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19526 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19527$as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19528 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19529$as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19530
19531 ;;
19532esac
19533{ $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19534$as_echo_n "checking for locale.h... " >&6; }
19535if test "${ac_cv_header_locale_h+set}" = set; then
19536 $as_echo_n "(cached) " >&6
19537else
19538 ac_cv_header_locale_h=$ac_header_preproc
19539fi
19540{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19541$as_echo "$ac_cv_header_locale_h" >&6; }
11662 19542
11663fi 19543fi
11664 19544
11665 19545
19546
11666for ac_func in setlocale 19547for ac_func in setlocale
11667do : 19548do
11668 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" 19549as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11669if test "x$ac_cv_func_setlocale" = x""yes; then : 19550{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19551$as_echo_n "checking for $ac_func... " >&6; }
19552if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19553 $as_echo_n "(cached) " >&6
19554else
19555 cat >conftest.$ac_ext <<_ACEOF
19556/* confdefs.h. */
19557_ACEOF
19558cat confdefs.h >>conftest.$ac_ext
19559cat >>conftest.$ac_ext <<_ACEOF
19560/* end confdefs.h. */
19561/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19563#define $ac_func innocuous_$ac_func
19564
19565/* System header to define __stub macros and hopefully few prototypes,
19566 which can conflict with char $ac_func (); below.
19567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19568 <limits.h> exists even on freestanding compilers. */
19569
19570#ifdef __STDC__
19571# include <limits.h>
19572#else
19573# include <assert.h>
19574#endif
19575
19576#undef $ac_func
19577
19578/* Override any GCC internal prototype to avoid an error.
19579 Use char because int might match the return type of a GCC
19580 builtin and then its argument prototype would still apply. */
19581#ifdef __cplusplus
19582extern "C"
19583#endif
19584char $ac_func ();
19585/* The GNU C library defines this for functions which it implements
19586 to always fail with ENOSYS. Some functions are actually named
19587 something starting with __ and the normal name is an alias. */
19588#if defined __stub_$ac_func || defined __stub___$ac_func
19589choke me
19590#endif
19591
19592int
19593main ()
19594{
19595return $ac_func ();
19596 ;
19597 return 0;
19598}
19599_ACEOF
19600rm -f conftest.$ac_objext conftest$ac_exeext
19601if { (ac_try="$ac_link"
19602case "(($ac_try" in
19603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19604 *) ac_try_echo=$ac_try;;
19605esac
19606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19607$as_echo "$ac_try_echo") >&5
19608 (eval "$ac_link") 2>conftest.er1
19609 ac_status=$?
19610 grep -v '^ *+' conftest.er1 >conftest.err
19611 rm -f conftest.er1
19612 cat conftest.err >&5
19613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); } && {
19615 test -z "$ac_c_werror_flag" ||
19616 test ! -s conftest.err
19617 } && test -s conftest$ac_exeext && {
19618 test "$cross_compiling" = yes ||
19619 $as_test_x conftest$ac_exeext
19620 }; then
19621 eval "$as_ac_var=yes"
19622else
19623 $as_echo "$as_me: failed program was:" >&5
19624sed 's/^/| /' conftest.$ac_ext >&5
19625
19626 eval "$as_ac_var=no"
19627fi
19628
19629rm -rf conftest.dSYM
19630rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19631 conftest$ac_exeext conftest.$ac_ext
19632fi
19633ac_res=`eval 'as_val=${'$as_ac_var'}
19634 $as_echo "$as_val"'`
19635 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19636$as_echo "$ac_res" >&6; }
19637if test `eval 'as_val=${'$as_ac_var'}
19638 $as_echo "$as_val"'` = yes; then
11670 cat >>confdefs.h <<_ACEOF 19639 cat >>confdefs.h <<_ACEOF
11671#define HAVE_SETLOCALE 1 19640#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11672_ACEOF 19641_ACEOF
11673 19642
11674fi 19643fi
@@ -11681,19 +19650,151 @@ done
11681if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then 19650if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
11682 ac_have_func=yes 19651 ac_have_func=yes
11683 19652
11684$as_echo "#define SVR4 1" >>confdefs.h 19653cat >>confdefs.h <<\_ACEOF
19654#define SVR4 1
19655_ACEOF
11685 19656
11686fi 19657fi
11687 19658
11688if test $ac_have_func = no; then 19659if test $ac_have_func = no; then
11689 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default" 19660 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11690if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then : 19661 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19662$as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19663if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19664 $as_echo_n "(cached) " >&6
19665fi
19666{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19667$as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19668else
19669 # Is the header compilable?
19670{ $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19671$as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19672cat >conftest.$ac_ext <<_ACEOF
19673/* confdefs.h. */
19674_ACEOF
19675cat confdefs.h >>conftest.$ac_ext
19676cat >>conftest.$ac_ext <<_ACEOF
19677/* end confdefs.h. */
19678$ac_includes_default
19679#include <inq_stats/cpustats.h>
19680_ACEOF
19681rm -f conftest.$ac_objext
19682if { (ac_try="$ac_compile"
19683case "(($ac_try" in
19684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19685 *) ac_try_echo=$ac_try;;
19686esac
19687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19688$as_echo "$ac_try_echo") >&5
19689 (eval "$ac_compile") 2>conftest.er1
19690 ac_status=$?
19691 grep -v '^ *+' conftest.er1 >conftest.err
19692 rm -f conftest.er1
19693 cat conftest.err >&5
19694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } && {
19696 test -z "$ac_c_werror_flag" ||
19697 test ! -s conftest.err
19698 } && test -s conftest.$ac_objext; then
19699 ac_header_compiler=yes
19700else
19701 $as_echo "$as_me: failed program was:" >&5
19702sed 's/^/| /' conftest.$ac_ext >&5
19703
19704 ac_header_compiler=no
19705fi
19706
19707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19708{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19709$as_echo "$ac_header_compiler" >&6; }
19710
19711# Is the header present?
19712{ $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19713$as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19714cat >conftest.$ac_ext <<_ACEOF
19715/* confdefs.h. */
19716_ACEOF
19717cat confdefs.h >>conftest.$ac_ext
19718cat >>conftest.$ac_ext <<_ACEOF
19719/* end confdefs.h. */
19720#include <inq_stats/cpustats.h>
19721_ACEOF
19722if { (ac_try="$ac_cpp conftest.$ac_ext"
19723case "(($ac_try" in
19724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725 *) ac_try_echo=$ac_try;;
19726esac
19727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19728$as_echo "$ac_try_echo") >&5
19729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19730 ac_status=$?
19731 grep -v '^ *+' conftest.er1 >conftest.err
19732 rm -f conftest.er1
19733 cat conftest.err >&5
19734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); } >/dev/null && {
19736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19737 test ! -s conftest.err
19738 }; then
19739 ac_header_preproc=yes
19740else
19741 $as_echo "$as_me: failed program was:" >&5
19742sed 's/^/| /' conftest.$ac_ext >&5
19743
19744 ac_header_preproc=no
19745fi
19746
19747rm -f conftest.err conftest.$ac_ext
19748{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19749$as_echo "$ac_header_preproc" >&6; }
19750
19751# So? What about this header?
19752case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19753 yes:no: )
19754 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19755$as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19756 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19757$as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19758 ac_header_preproc=yes
19759 ;;
19760 no:yes:* )
19761 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19762$as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19763 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19764$as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19765 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19766$as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19767 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19768$as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19769 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19770$as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19771 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19772$as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19773
19774 ;;
19775esac
19776{ $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19777$as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19778if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19779 $as_echo_n "(cached) " >&6
19780else
19781 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19782fi
19783{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19784$as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19785
19786fi
19787if test $ac_cv_header_inq_stats_cpustats_h = yes; then
11691 ac_have_func=yes 19788 ac_have_func=yes
11692 19789
11693$as_echo "#define UMAX 1" >>confdefs.h 19790cat >>confdefs.h <<\_ACEOF
19791#define UMAX 1
19792_ACEOF
11694 19793
11695 19794
11696$as_echo "#define UMAX4_3 1" >>confdefs.h 19795cat >>confdefs.h <<\_ACEOF
19796#define UMAX4_3 1
19797_ACEOF
11697 19798
11698fi 19799fi
11699 19800
@@ -11701,9 +19802,137 @@ fi
11701fi 19802fi
11702 19803
11703if test $ac_have_func = no; then 19804if test $ac_have_func = no; then
11704 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default" 19805 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11705if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then : 19806 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11706 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h 19807$as_echo_n "checking for sys/cpustats.h... " >&6; }
19808if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19809 $as_echo_n "(cached) " >&6
19810fi
19811{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19812$as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19813else
19814 # Is the header compilable?
19815{ $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19816$as_echo_n "checking sys/cpustats.h usability... " >&6; }
19817cat >conftest.$ac_ext <<_ACEOF
19818/* confdefs.h. */
19819_ACEOF
19820cat confdefs.h >>conftest.$ac_ext
19821cat >>conftest.$ac_ext <<_ACEOF
19822/* end confdefs.h. */
19823$ac_includes_default
19824#include <sys/cpustats.h>
19825_ACEOF
19826rm -f conftest.$ac_objext
19827if { (ac_try="$ac_compile"
19828case "(($ac_try" in
19829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19830 *) ac_try_echo=$ac_try;;
19831esac
19832eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19833$as_echo "$ac_try_echo") >&5
19834 (eval "$ac_compile") 2>conftest.er1
19835 ac_status=$?
19836 grep -v '^ *+' conftest.er1 >conftest.err
19837 rm -f conftest.er1
19838 cat conftest.err >&5
19839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); } && {
19841 test -z "$ac_c_werror_flag" ||
19842 test ! -s conftest.err
19843 } && test -s conftest.$ac_objext; then
19844 ac_header_compiler=yes
19845else
19846 $as_echo "$as_me: failed program was:" >&5
19847sed 's/^/| /' conftest.$ac_ext >&5
19848
19849 ac_header_compiler=no
19850fi
19851
19852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19853{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19854$as_echo "$ac_header_compiler" >&6; }
19855
19856# Is the header present?
19857{ $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19858$as_echo_n "checking sys/cpustats.h presence... " >&6; }
19859cat >conftest.$ac_ext <<_ACEOF
19860/* confdefs.h. */
19861_ACEOF
19862cat confdefs.h >>conftest.$ac_ext
19863cat >>conftest.$ac_ext <<_ACEOF
19864/* end confdefs.h. */
19865#include <sys/cpustats.h>
19866_ACEOF
19867if { (ac_try="$ac_cpp conftest.$ac_ext"
19868case "(($ac_try" in
19869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870 *) ac_try_echo=$ac_try;;
19871esac
19872eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19873$as_echo "$ac_try_echo") >&5
19874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19875 ac_status=$?
19876 grep -v '^ *+' conftest.er1 >conftest.err
19877 rm -f conftest.er1
19878 cat conftest.err >&5
19879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); } >/dev/null && {
19881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19882 test ! -s conftest.err
19883 }; then
19884 ac_header_preproc=yes
19885else
19886 $as_echo "$as_me: failed program was:" >&5
19887sed 's/^/| /' conftest.$ac_ext >&5
19888
19889 ac_header_preproc=no
19890fi
19891
19892rm -f conftest.err conftest.$ac_ext
19893{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19894$as_echo "$ac_header_preproc" >&6; }
19895
19896# So? What about this header?
19897case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19898 yes:no: )
19899 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19900$as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19901 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19902$as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19903 ac_header_preproc=yes
19904 ;;
19905 no:yes:* )
19906 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19907$as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19908 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19909$as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19910 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19911$as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19912 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19913$as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19914 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19915$as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19916 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19917$as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19918
19919 ;;
19920esac
19921{ $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19922$as_echo_n "checking for sys/cpustats.h... " >&6; }
19923if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19924 $as_echo_n "(cached) " >&6
19925else
19926 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19927fi
19928{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19929$as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19930
19931fi
19932if test $ac_cv_header_sys_cpustats_h = yes; then
19933 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19934#define UMAX 1
19935_ACEOF
11707 19936
11708fi 19937fi
11709 19938
@@ -11711,12 +19940,145 @@ fi
11711fi 19940fi
11712 19941
11713if test $ac_have_func = no; then 19942if test $ac_have_func = no; then
11714 for ac_header in mach/mach.h 19943
11715do : 19944for ac_header in mach/mach.h
11716 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" 19945do
11717if test "x$ac_cv_header_mach_mach_h" = x""yes; then : 19946as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19947if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19948 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19949$as_echo_n "checking for $ac_header... " >&6; }
19950if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19951 $as_echo_n "(cached) " >&6
19952fi
19953ac_res=`eval 'as_val=${'$as_ac_Header'}
19954 $as_echo "$as_val"'`
19955 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19956$as_echo "$ac_res" >&6; }
19957else
19958 # Is the header compilable?
19959{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19960$as_echo_n "checking $ac_header usability... " >&6; }
19961cat >conftest.$ac_ext <<_ACEOF
19962/* confdefs.h. */
19963_ACEOF
19964cat confdefs.h >>conftest.$ac_ext
19965cat >>conftest.$ac_ext <<_ACEOF
19966/* end confdefs.h. */
19967$ac_includes_default
19968#include <$ac_header>
19969_ACEOF
19970rm -f conftest.$ac_objext
19971if { (ac_try="$ac_compile"
19972case "(($ac_try" in
19973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19974 *) ac_try_echo=$ac_try;;
19975esac
19976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19977$as_echo "$ac_try_echo") >&5
19978 (eval "$ac_compile") 2>conftest.er1
19979 ac_status=$?
19980 grep -v '^ *+' conftest.er1 >conftest.err
19981 rm -f conftest.er1
19982 cat conftest.err >&5
19983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); } && {
19985 test -z "$ac_c_werror_flag" ||
19986 test ! -s conftest.err
19987 } && test -s conftest.$ac_objext; then
19988 ac_header_compiler=yes
19989else
19990 $as_echo "$as_me: failed program was:" >&5
19991sed 's/^/| /' conftest.$ac_ext >&5
19992
19993 ac_header_compiler=no
19994fi
19995
19996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19997{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19998$as_echo "$ac_header_compiler" >&6; }
19999
20000# Is the header present?
20001{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20002$as_echo_n "checking $ac_header presence... " >&6; }
20003cat >conftest.$ac_ext <<_ACEOF
20004/* confdefs.h. */
20005_ACEOF
20006cat confdefs.h >>conftest.$ac_ext
20007cat >>conftest.$ac_ext <<_ACEOF
20008/* end confdefs.h. */
20009#include <$ac_header>
20010_ACEOF
20011if { (ac_try="$ac_cpp conftest.$ac_ext"
20012case "(($ac_try" in
20013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20014 *) ac_try_echo=$ac_try;;
20015esac
20016eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20017$as_echo "$ac_try_echo") >&5
20018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20019 ac_status=$?
20020 grep -v '^ *+' conftest.er1 >conftest.err
20021 rm -f conftest.er1
20022 cat conftest.err >&5
20023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); } >/dev/null && {
20025 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20026 test ! -s conftest.err
20027 }; then
20028 ac_header_preproc=yes
20029else
20030 $as_echo "$as_me: failed program was:" >&5
20031sed 's/^/| /' conftest.$ac_ext >&5
20032
20033 ac_header_preproc=no
20034fi
20035
20036rm -f conftest.err conftest.$ac_ext
20037{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20038$as_echo "$ac_header_preproc" >&6; }
20039
20040# So? What about this header?
20041case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20042 yes:no: )
20043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20044$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20045 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20046$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20047 ac_header_preproc=yes
20048 ;;
20049 no:yes:* )
20050 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20051$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20053$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20055$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20057$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20059$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20061$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20062
20063 ;;
20064esac
20065{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20066$as_echo_n "checking for $ac_header... " >&6; }
20067if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20068 $as_echo_n "(cached) " >&6
20069else
20070 eval "$as_ac_Header=\$ac_header_preproc"
20071fi
20072ac_res=`eval 'as_val=${'$as_ac_Header'}
20073 $as_echo "$as_val"'`
20074 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20075$as_echo "$ac_res" >&6; }
20076
20077fi
20078if test `eval 'as_val=${'$as_ac_Header'}
20079 $as_echo "$as_val"'` = yes; then
11718 cat >>confdefs.h <<_ACEOF 20080 cat >>confdefs.h <<_ACEOF
11719#define HAVE_MACH_MACH_H 1 20081#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11720_ACEOF 20082_ACEOF
11721 20083
11722fi 20084fi
@@ -11725,23 +20087,253 @@ done
11725 20087
11726fi 20088fi
11727 20089
20090
11728for ac_header in nlist.h 20091for ac_header in nlist.h
11729do : 20092do
11730 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default" 20093as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11731if test "x$ac_cv_header_nlist_h" = x""yes; then : 20094if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20095 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20096$as_echo_n "checking for $ac_header... " >&6; }
20097if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20098 $as_echo_n "(cached) " >&6
20099fi
20100ac_res=`eval 'as_val=${'$as_ac_Header'}
20101 $as_echo "$as_val"'`
20102 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20103$as_echo "$ac_res" >&6; }
20104else
20105 # Is the header compilable?
20106{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20107$as_echo_n "checking $ac_header usability... " >&6; }
20108cat >conftest.$ac_ext <<_ACEOF
20109/* confdefs.h. */
20110_ACEOF
20111cat confdefs.h >>conftest.$ac_ext
20112cat >>conftest.$ac_ext <<_ACEOF
20113/* end confdefs.h. */
20114$ac_includes_default
20115#include <$ac_header>
20116_ACEOF
20117rm -f conftest.$ac_objext
20118if { (ac_try="$ac_compile"
20119case "(($ac_try" in
20120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20121 *) ac_try_echo=$ac_try;;
20122esac
20123eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20124$as_echo "$ac_try_echo") >&5
20125 (eval "$ac_compile") 2>conftest.er1
20126 ac_status=$?
20127 grep -v '^ *+' conftest.er1 >conftest.err
20128 rm -f conftest.er1
20129 cat conftest.err >&5
20130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); } && {
20132 test -z "$ac_c_werror_flag" ||
20133 test ! -s conftest.err
20134 } && test -s conftest.$ac_objext; then
20135 ac_header_compiler=yes
20136else
20137 $as_echo "$as_me: failed program was:" >&5
20138sed 's/^/| /' conftest.$ac_ext >&5
20139
20140 ac_header_compiler=no
20141fi
20142
20143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20144{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20145$as_echo "$ac_header_compiler" >&6; }
20146
20147# Is the header present?
20148{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20149$as_echo_n "checking $ac_header presence... " >&6; }
20150cat >conftest.$ac_ext <<_ACEOF
20151/* confdefs.h. */
20152_ACEOF
20153cat confdefs.h >>conftest.$ac_ext
20154cat >>conftest.$ac_ext <<_ACEOF
20155/* end confdefs.h. */
20156#include <$ac_header>
20157_ACEOF
20158if { (ac_try="$ac_cpp conftest.$ac_ext"
20159case "(($ac_try" in
20160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20161 *) ac_try_echo=$ac_try;;
20162esac
20163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20164$as_echo "$ac_try_echo") >&5
20165 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20166 ac_status=$?
20167 grep -v '^ *+' conftest.er1 >conftest.err
20168 rm -f conftest.er1
20169 cat conftest.err >&5
20170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); } >/dev/null && {
20172 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20173 test ! -s conftest.err
20174 }; then
20175 ac_header_preproc=yes
20176else
20177 $as_echo "$as_me: failed program was:" >&5
20178sed 's/^/| /' conftest.$ac_ext >&5
20179
20180 ac_header_preproc=no
20181fi
20182
20183rm -f conftest.err conftest.$ac_ext
20184{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20185$as_echo "$ac_header_preproc" >&6; }
20186
20187# So? What about this header?
20188case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20189 yes:no: )
20190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20191$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20193$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20194 ac_header_preproc=yes
20195 ;;
20196 no:yes:* )
20197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20198$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20200$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20202$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20204$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20206$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20208$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20209
20210 ;;
20211esac
20212{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20213$as_echo_n "checking for $ac_header... " >&6; }
20214if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20215 $as_echo_n "(cached) " >&6
20216else
20217 eval "$as_ac_Header=\$ac_header_preproc"
20218fi
20219ac_res=`eval 'as_val=${'$as_ac_Header'}
20220 $as_echo "$as_val"'`
20221 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20222$as_echo "$ac_res" >&6; }
20223
20224fi
20225if test `eval 'as_val=${'$as_ac_Header'}
20226 $as_echo "$as_val"'` = yes; then
11732 cat >>confdefs.h <<_ACEOF 20227 cat >>confdefs.h <<_ACEOF
11733#define HAVE_NLIST_H 1 20228#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11734_ACEOF 20229_ACEOF
11735 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h> 20230 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
11736" 20231$as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
11737if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then : 20232if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20233 $as_echo_n "(cached) " >&6
20234else
20235 cat >conftest.$ac_ext <<_ACEOF
20236/* confdefs.h. */
20237_ACEOF
20238cat confdefs.h >>conftest.$ac_ext
20239cat >>conftest.$ac_ext <<_ACEOF
20240/* end confdefs.h. */
20241#include <nlist.h>
20242
20243int
20244main ()
20245{
20246static struct nlist ac_aggr;
20247if (ac_aggr.n_un.n_name)
20248return 0;
20249 ;
20250 return 0;
20251}
20252_ACEOF
20253rm -f conftest.$ac_objext
20254if { (ac_try="$ac_compile"
20255case "(($ac_try" in
20256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20257 *) ac_try_echo=$ac_try;;
20258esac
20259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20260$as_echo "$ac_try_echo") >&5
20261 (eval "$ac_compile") 2>conftest.er1
20262 ac_status=$?
20263 grep -v '^ *+' conftest.er1 >conftest.err
20264 rm -f conftest.er1
20265 cat conftest.err >&5
20266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); } && {
20268 test -z "$ac_c_werror_flag" ||
20269 test ! -s conftest.err
20270 } && test -s conftest.$ac_objext; then
20271 ac_cv_member_struct_nlist_n_un_n_name=yes
20272else
20273 $as_echo "$as_me: failed program was:" >&5
20274sed 's/^/| /' conftest.$ac_ext >&5
20275
20276 cat >conftest.$ac_ext <<_ACEOF
20277/* confdefs.h. */
20278_ACEOF
20279cat confdefs.h >>conftest.$ac_ext
20280cat >>conftest.$ac_ext <<_ACEOF
20281/* end confdefs.h. */
20282#include <nlist.h>
20283
20284int
20285main ()
20286{
20287static struct nlist ac_aggr;
20288if (sizeof ac_aggr.n_un.n_name)
20289return 0;
20290 ;
20291 return 0;
20292}
20293_ACEOF
20294rm -f conftest.$ac_objext
20295if { (ac_try="$ac_compile"
20296case "(($ac_try" in
20297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20298 *) ac_try_echo=$ac_try;;
20299esac
20300eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20301$as_echo "$ac_try_echo") >&5
20302 (eval "$ac_compile") 2>conftest.er1
20303 ac_status=$?
20304 grep -v '^ *+' conftest.er1 >conftest.err
20305 rm -f conftest.er1
20306 cat conftest.err >&5
20307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } && {
20309 test -z "$ac_c_werror_flag" ||
20310 test ! -s conftest.err
20311 } && test -s conftest.$ac_objext; then
20312 ac_cv_member_struct_nlist_n_un_n_name=yes
20313else
20314 $as_echo "$as_me: failed program was:" >&5
20315sed 's/^/| /' conftest.$ac_ext >&5
20316
20317 ac_cv_member_struct_nlist_n_un_n_name=no
20318fi
20319
20320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20321fi
20322
20323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20324fi
20325{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20326$as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20327if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
11738 20328
11739cat >>confdefs.h <<_ACEOF 20329cat >>confdefs.h <<_ACEOF
11740#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 20330#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11741_ACEOF 20331_ACEOF
11742 20332
11743 20333
11744$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h 20334cat >>confdefs.h <<\_ACEOF
20335#define NLIST_NAME_UNION 1
20336_ACEOF
11745 20337
11746fi 20338fi
11747 20339
@@ -11755,12 +20347,16 @@ done
11755 20347
11756 20348
11757# Some definitions of getloadavg require that the program be installed setgid. 20349# Some definitions of getloadavg require that the program be installed setgid.
11758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5 20350{ $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
11759$as_echo_n "checking whether getloadavg requires setgid... " >&6; } 20351$as_echo_n "checking whether getloadavg requires setgid... " >&6; }
11760if test "${ac_cv_func_getloadavg_setgid+set}" = set; then : 20352if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
11761 $as_echo_n "(cached) " >&6 20353 $as_echo_n "(cached) " >&6
11762else 20354else
11763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20355 cat >conftest.$ac_ext <<_ACEOF
20356/* confdefs.h. */
20357_ACEOF
20358cat confdefs.h >>conftest.$ac_ext
20359cat >>conftest.$ac_ext <<_ACEOF
11764/* end confdefs.h. */ 20360/* end confdefs.h. */
11765#include "$srcdir/$ac_config_libobj_dir/getloadavg.c" 20361#include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11766#ifdef LDAV_PRIVILEGED 20362#ifdef LDAV_PRIVILEGED
@@ -11768,7 +20364,7 @@ Yowza Am I SETGID yet
11768#endif 20364#endif
11769_ACEOF 20365_ACEOF
11770if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20366if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11771 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then : 20367 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
11772 ac_cv_func_getloadavg_setgid=yes 20368 ac_cv_func_getloadavg_setgid=yes
11773else 20369else
11774 ac_cv_func_getloadavg_setgid=no 20370 ac_cv_func_getloadavg_setgid=no
@@ -11776,21 +20372,23 @@ fi
11776rm -f conftest* 20372rm -f conftest*
11777 20373
11778fi 20374fi
11779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5 20375{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
11780$as_echo "$ac_cv_func_getloadavg_setgid" >&6; } 20376$as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
11781if test $ac_cv_func_getloadavg_setgid = yes; then 20377if test $ac_cv_func_getloadavg_setgid = yes; then
11782 NEED_SETGID=true 20378 NEED_SETGID=true
11783 20379
11784$as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h 20380cat >>confdefs.h <<\_ACEOF
20381#define GETLOADAVG_PRIVILEGED 1
20382_ACEOF
11785 20383
11786else 20384else
11787 NEED_SETGID=false 20385 NEED_SETGID=false
11788fi 20386fi
11789 20387
11790if test $ac_cv_func_getloadavg_setgid = yes; then 20388if test $ac_cv_func_getloadavg_setgid = yes; then
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5 20389 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
11792$as_echo_n "checking group of /dev/kmem... " >&6; } 20390$as_echo_n "checking group of /dev/kmem... " >&6; }
11793if test "${ac_cv_group_kmem+set}" = set; then : 20391if test "${ac_cv_group_kmem+set}" = set; then
11794 $as_echo_n "(cached) " >&6 20392 $as_echo_n "(cached) " >&6
11795else 20393else
11796 # On Solaris, /dev/kmem is a symlink. Get info on the real file. 20394 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
@@ -11803,7 +20401,7 @@ else
11803 / /s/.* //;p;'` 20401 / /s/.* //;p;'`
11804 20402
11805fi 20403fi
11806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5 20404{ $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
11807$as_echo "$ac_cv_group_kmem" >&6; } 20405$as_echo "$ac_cv_group_kmem" >&6; }
11808 KMEM_GROUP=$ac_cv_group_kmem 20406 KMEM_GROUP=$ac_cv_group_kmem
11809fi 20407fi
@@ -11816,13 +20414,17 @@ LIBS=$ac_save_LIBS
11816 20414
11817 20415
11818 20416
11819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 20417{ $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11820$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 20418$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11821if test "${ac_cv_sys_largefile_source+set}" = set; then : 20419if test "${ac_cv_sys_largefile_source+set}" = set; then
11822 $as_echo_n "(cached) " >&6 20420 $as_echo_n "(cached) " >&6
11823else 20421else
11824 while :; do 20422 while :; do
11825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20423 cat >conftest.$ac_ext <<_ACEOF
20424/* confdefs.h. */
20425_ACEOF
20426cat confdefs.h >>conftest.$ac_ext
20427cat >>conftest.$ac_ext <<_ACEOF
11826/* end confdefs.h. */ 20428/* end confdefs.h. */
11827#include <sys/types.h> /* for off_t */ 20429#include <sys/types.h> /* for off_t */
11828 #include <stdio.h> 20430 #include <stdio.h>
@@ -11835,12 +20437,43 @@ int (*fp) (FILE *, off_t, int) = fseeko;
11835 return 0; 20437 return 0;
11836} 20438}
11837_ACEOF 20439_ACEOF
11838if ac_fn_c_try_link "$LINENO"; then : 20440rm -f conftest.$ac_objext conftest$ac_exeext
20441if { (ac_try="$ac_link"
20442case "(($ac_try" in
20443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20444 *) ac_try_echo=$ac_try;;
20445esac
20446eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20447$as_echo "$ac_try_echo") >&5
20448 (eval "$ac_link") 2>conftest.er1
20449 ac_status=$?
20450 grep -v '^ *+' conftest.er1 >conftest.err
20451 rm -f conftest.er1
20452 cat conftest.err >&5
20453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); } && {
20455 test -z "$ac_c_werror_flag" ||
20456 test ! -s conftest.err
20457 } && test -s conftest$ac_exeext && {
20458 test "$cross_compiling" = yes ||
20459 $as_test_x conftest$ac_exeext
20460 }; then
11839 ac_cv_sys_largefile_source=no; break 20461 ac_cv_sys_largefile_source=no; break
20462else
20463 $as_echo "$as_me: failed program was:" >&5
20464sed 's/^/| /' conftest.$ac_ext >&5
20465
20466
11840fi 20467fi
11841rm -f core conftest.err conftest.$ac_objext \ 20468
11842 conftest$ac_exeext conftest.$ac_ext 20469rm -rf conftest.dSYM
11843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20470rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20471 conftest$ac_exeext conftest.$ac_ext
20472 cat >conftest.$ac_ext <<_ACEOF
20473/* confdefs.h. */
20474_ACEOF
20475cat confdefs.h >>conftest.$ac_ext
20476cat >>conftest.$ac_ext <<_ACEOF
11844/* end confdefs.h. */ 20477/* end confdefs.h. */
11845#define _LARGEFILE_SOURCE 1 20478#define _LARGEFILE_SOURCE 1
11846#include <sys/types.h> /* for off_t */ 20479#include <sys/types.h> /* for off_t */
@@ -11854,16 +20487,43 @@ int (*fp) (FILE *, off_t, int) = fseeko;
11854 return 0; 20487 return 0;
11855} 20488}
11856_ACEOF 20489_ACEOF
11857if ac_fn_c_try_link "$LINENO"; then : 20490rm -f conftest.$ac_objext conftest$ac_exeext
20491if { (ac_try="$ac_link"
20492case "(($ac_try" in
20493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494 *) ac_try_echo=$ac_try;;
20495esac
20496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20497$as_echo "$ac_try_echo") >&5
20498 (eval "$ac_link") 2>conftest.er1
20499 ac_status=$?
20500 grep -v '^ *+' conftest.er1 >conftest.err
20501 rm -f conftest.er1
20502 cat conftest.err >&5
20503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); } && {
20505 test -z "$ac_c_werror_flag" ||
20506 test ! -s conftest.err
20507 } && test -s conftest$ac_exeext && {
20508 test "$cross_compiling" = yes ||
20509 $as_test_x conftest$ac_exeext
20510 }; then
11858 ac_cv_sys_largefile_source=1; break 20511 ac_cv_sys_largefile_source=1; break
20512else
20513 $as_echo "$as_me: failed program was:" >&5
20514sed 's/^/| /' conftest.$ac_ext >&5
20515
20516
11859fi 20517fi
11860rm -f core conftest.err conftest.$ac_objext \ 20518
11861 conftest$ac_exeext conftest.$ac_ext 20519rm -rf conftest.dSYM
20520rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20521 conftest$ac_exeext conftest.$ac_ext
11862 ac_cv_sys_largefile_source=unknown 20522 ac_cv_sys_largefile_source=unknown
11863 break 20523 break
11864done 20524done
11865fi 20525fi
11866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 20526{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11867$as_echo "$ac_cv_sys_largefile_source" >&6; } 20527$as_echo "$ac_cv_sys_largefile_source" >&6; }
11868case $ac_cv_sys_largefile_source in #( 20528case $ac_cv_sys_largefile_source in #(
11869 no | unknown) ;; 20529 no | unknown) ;;
@@ -11880,7 +20540,9 @@ rm -rf conftest*
11880# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 20540# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11881if test $ac_cv_sys_largefile_source != unknown; then 20541if test $ac_cv_sys_largefile_source != unknown; then
11882 20542
11883$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 20543cat >>confdefs.h <<\_ACEOF
20544#define HAVE_FSEEKO 1
20545_ACEOF
11884 20546
11885fi 20547fi
11886 20548
@@ -11908,12 +20570,145 @@ fi
11908 20570
11909 20571
11910 GETOPT_H= 20572 GETOPT_H=
11911 for ac_header in getopt.h 20573
11912do : 20574for ac_header in getopt.h
11913 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" 20575do
11914if test "x$ac_cv_header_getopt_h" = x""yes; then : 20576as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20577if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20578 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20579$as_echo_n "checking for $ac_header... " >&6; }
20580if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20581 $as_echo_n "(cached) " >&6
20582fi
20583ac_res=`eval 'as_val=${'$as_ac_Header'}
20584 $as_echo "$as_val"'`
20585 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20586$as_echo "$ac_res" >&6; }
20587else
20588 # Is the header compilable?
20589{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20590$as_echo_n "checking $ac_header usability... " >&6; }
20591cat >conftest.$ac_ext <<_ACEOF
20592/* confdefs.h. */
20593_ACEOF
20594cat confdefs.h >>conftest.$ac_ext
20595cat >>conftest.$ac_ext <<_ACEOF
20596/* end confdefs.h. */
20597$ac_includes_default
20598#include <$ac_header>
20599_ACEOF
20600rm -f conftest.$ac_objext
20601if { (ac_try="$ac_compile"
20602case "(($ac_try" in
20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604 *) ac_try_echo=$ac_try;;
20605esac
20606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20607$as_echo "$ac_try_echo") >&5
20608 (eval "$ac_compile") 2>conftest.er1
20609 ac_status=$?
20610 grep -v '^ *+' conftest.er1 >conftest.err
20611 rm -f conftest.er1
20612 cat conftest.err >&5
20613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); } && {
20615 test -z "$ac_c_werror_flag" ||
20616 test ! -s conftest.err
20617 } && test -s conftest.$ac_objext; then
20618 ac_header_compiler=yes
20619else
20620 $as_echo "$as_me: failed program was:" >&5
20621sed 's/^/| /' conftest.$ac_ext >&5
20622
20623 ac_header_compiler=no
20624fi
20625
20626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20627{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20628$as_echo "$ac_header_compiler" >&6; }
20629
20630# Is the header present?
20631{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20632$as_echo_n "checking $ac_header presence... " >&6; }
20633cat >conftest.$ac_ext <<_ACEOF
20634/* confdefs.h. */
20635_ACEOF
20636cat confdefs.h >>conftest.$ac_ext
20637cat >>conftest.$ac_ext <<_ACEOF
20638/* end confdefs.h. */
20639#include <$ac_header>
20640_ACEOF
20641if { (ac_try="$ac_cpp conftest.$ac_ext"
20642case "(($ac_try" in
20643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20644 *) ac_try_echo=$ac_try;;
20645esac
20646eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20647$as_echo "$ac_try_echo") >&5
20648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20649 ac_status=$?
20650 grep -v '^ *+' conftest.er1 >conftest.err
20651 rm -f conftest.er1
20652 cat conftest.err >&5
20653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); } >/dev/null && {
20655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20656 test ! -s conftest.err
20657 }; then
20658 ac_header_preproc=yes
20659else
20660 $as_echo "$as_me: failed program was:" >&5
20661sed 's/^/| /' conftest.$ac_ext >&5
20662
20663 ac_header_preproc=no
20664fi
20665
20666rm -f conftest.err conftest.$ac_ext
20667{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20668$as_echo "$ac_header_preproc" >&6; }
20669
20670# So? What about this header?
20671case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20672 yes:no: )
20673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20674$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20675 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20676$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20677 ac_header_preproc=yes
20678 ;;
20679 no:yes:* )
20680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20681$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20683$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20685$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20687$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20689$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20691$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20692
20693 ;;
20694esac
20695{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20696$as_echo_n "checking for $ac_header... " >&6; }
20697if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20698 $as_echo_n "(cached) " >&6
20699else
20700 eval "$as_ac_Header=\$ac_header_preproc"
20701fi
20702ac_res=`eval 'as_val=${'$as_ac_Header'}
20703 $as_echo "$as_val"'`
20704 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20705$as_echo "$ac_res" >&6; }
20706
20707fi
20708if test `eval 'as_val=${'$as_ac_Header'}
20709 $as_echo "$as_val"'` = yes; then
11915 cat >>confdefs.h <<_ACEOF 20710 cat >>confdefs.h <<_ACEOF
11916#define HAVE_GETOPT_H 1 20711#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11917_ACEOF 20712_ACEOF
11918 20713
11919else 20714else
@@ -11923,12 +20718,101 @@ fi
11923done 20718done
11924 20719
11925 if test -z "$GETOPT_H"; then 20720 if test -z "$GETOPT_H"; then
11926 for ac_func in getopt_long_only 20721
11927do : 20722for ac_func in getopt_long_only
11928 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" 20723do
11929if test "x$ac_cv_func_getopt_long_only" = x""yes; then : 20724as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20725{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20726$as_echo_n "checking for $ac_func... " >&6; }
20727if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20728 $as_echo_n "(cached) " >&6
20729else
20730 cat >conftest.$ac_ext <<_ACEOF
20731/* confdefs.h. */
20732_ACEOF
20733cat confdefs.h >>conftest.$ac_ext
20734cat >>conftest.$ac_ext <<_ACEOF
20735/* end confdefs.h. */
20736/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20738#define $ac_func innocuous_$ac_func
20739
20740/* System header to define __stub macros and hopefully few prototypes,
20741 which can conflict with char $ac_func (); below.
20742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20743 <limits.h> exists even on freestanding compilers. */
20744
20745#ifdef __STDC__
20746# include <limits.h>
20747#else
20748# include <assert.h>
20749#endif
20750
20751#undef $ac_func
20752
20753/* Override any GCC internal prototype to avoid an error.
20754 Use char because int might match the return type of a GCC
20755 builtin and then its argument prototype would still apply. */
20756#ifdef __cplusplus
20757extern "C"
20758#endif
20759char $ac_func ();
20760/* The GNU C library defines this for functions which it implements
20761 to always fail with ENOSYS. Some functions are actually named
20762 something starting with __ and the normal name is an alias. */
20763#if defined __stub_$ac_func || defined __stub___$ac_func
20764choke me
20765#endif
20766
20767int
20768main ()
20769{
20770return $ac_func ();
20771 ;
20772 return 0;
20773}
20774_ACEOF
20775rm -f conftest.$ac_objext conftest$ac_exeext
20776if { (ac_try="$ac_link"
20777case "(($ac_try" in
20778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779 *) ac_try_echo=$ac_try;;
20780esac
20781eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20782$as_echo "$ac_try_echo") >&5
20783 (eval "$ac_link") 2>conftest.er1
20784 ac_status=$?
20785 grep -v '^ *+' conftest.er1 >conftest.err
20786 rm -f conftest.er1
20787 cat conftest.err >&5
20788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789 (exit $ac_status); } && {
20790 test -z "$ac_c_werror_flag" ||
20791 test ! -s conftest.err
20792 } && test -s conftest$ac_exeext && {
20793 test "$cross_compiling" = yes ||
20794 $as_test_x conftest$ac_exeext
20795 }; then
20796 eval "$as_ac_var=yes"
20797else
20798 $as_echo "$as_me: failed program was:" >&5
20799sed 's/^/| /' conftest.$ac_ext >&5
20800
20801 eval "$as_ac_var=no"
20802fi
20803
20804rm -rf conftest.dSYM
20805rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20806 conftest$ac_exeext conftest.$ac_ext
20807fi
20808ac_res=`eval 'as_val=${'$as_ac_var'}
20809 $as_echo "$as_val"'`
20810 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20811$as_echo "$ac_res" >&6; }
20812if test `eval 'as_val=${'$as_ac_var'}
20813 $as_echo "$as_val"'` = yes; then
11930 cat >>confdefs.h <<_ACEOF 20814 cat >>confdefs.h <<_ACEOF
11931#define HAVE_GETOPT_LONG_ONLY 1 20815#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11932_ACEOF 20816_ACEOF
11933 20817
11934else 20818else
@@ -11939,31 +20823,139 @@ done
11939 fi 20823 fi
11940 20824
11941 if test -z "$GETOPT_H"; then 20825 if test -z "$GETOPT_H"; then
11942 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h> 20826 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
11943" 20827$as_echo_n "checking whether optreset is declared... " >&6; }
11944if test "x$ac_cv_have_decl_optreset" = x""yes; then : 20828if test "${ac_cv_have_decl_optreset+set}" = set; then
20829 $as_echo_n "(cached) " >&6
20830else
20831 cat >conftest.$ac_ext <<_ACEOF
20832/* confdefs.h. */
20833_ACEOF
20834cat confdefs.h >>conftest.$ac_ext
20835cat >>conftest.$ac_ext <<_ACEOF
20836/* end confdefs.h. */
20837#include <getopt.h>
20838
20839int
20840main ()
20841{
20842#ifndef optreset
20843 (void) optreset;
20844#endif
20845
20846 ;
20847 return 0;
20848}
20849_ACEOF
20850rm -f conftest.$ac_objext
20851if { (ac_try="$ac_compile"
20852case "(($ac_try" in
20853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854 *) ac_try_echo=$ac_try;;
20855esac
20856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20857$as_echo "$ac_try_echo") >&5
20858 (eval "$ac_compile") 2>conftest.er1
20859 ac_status=$?
20860 grep -v '^ *+' conftest.er1 >conftest.err
20861 rm -f conftest.er1
20862 cat conftest.err >&5
20863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864 (exit $ac_status); } && {
20865 test -z "$ac_c_werror_flag" ||
20866 test ! -s conftest.err
20867 } && test -s conftest.$ac_objext; then
20868 ac_cv_have_decl_optreset=yes
20869else
20870 $as_echo "$as_me: failed program was:" >&5
20871sed 's/^/| /' conftest.$ac_ext >&5
20872
20873 ac_cv_have_decl_optreset=no
20874fi
20875
20876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20877fi
20878{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20879$as_echo "$ac_cv_have_decl_optreset" >&6; }
20880if test $ac_cv_have_decl_optreset = yes; then
11945 GETOPT_H=getopt.h 20881 GETOPT_H=getopt.h
11946fi 20882fi
11947 20883
11948 fi 20884 fi
11949 20885
11950 if test -z "$GETOPT_H"; then 20886 if test -z "$GETOPT_H"; then
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5 20887 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
11952$as_echo_n "checking for working GNU getopt function... " >&6; } 20888$as_echo_n "checking for working GNU getopt function... " >&6; }
11953if test "${gl_cv_func_gnu_getopt+set}" = set; then : 20889if test "${gl_cv_func_gnu_getopt+set}" = set; then
11954 $as_echo_n "(cached) " >&6 20890 $as_echo_n "(cached) " >&6
11955else 20891else
11956 if test "$cross_compiling" = yes; then : 20892 if test "$cross_compiling" = yes; then
11957 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h> 20893 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
11958" 20894$as_echo_n "checking whether getopt_clip is declared... " >&6; }
11959if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then : 20895if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20896 $as_echo_n "(cached) " >&6
20897else
20898 cat >conftest.$ac_ext <<_ACEOF
20899/* confdefs.h. */
20900_ACEOF
20901cat confdefs.h >>conftest.$ac_ext
20902cat >>conftest.$ac_ext <<_ACEOF
20903/* end confdefs.h. */
20904#include <getopt.h>
20905
20906int
20907main ()
20908{
20909#ifndef getopt_clip
20910 (void) getopt_clip;
20911#endif
20912
20913 ;
20914 return 0;
20915}
20916_ACEOF
20917rm -f conftest.$ac_objext
20918if { (ac_try="$ac_compile"
20919case "(($ac_try" in
20920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20921 *) ac_try_echo=$ac_try;;
20922esac
20923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20924$as_echo "$ac_try_echo") >&5
20925 (eval "$ac_compile") 2>conftest.er1
20926 ac_status=$?
20927 grep -v '^ *+' conftest.er1 >conftest.err
20928 rm -f conftest.er1
20929 cat conftest.err >&5
20930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931 (exit $ac_status); } && {
20932 test -z "$ac_c_werror_flag" ||
20933 test ! -s conftest.err
20934 } && test -s conftest.$ac_objext; then
20935 ac_cv_have_decl_getopt_clip=yes
20936else
20937 $as_echo "$as_me: failed program was:" >&5
20938sed 's/^/| /' conftest.$ac_ext >&5
20939
20940 ac_cv_have_decl_getopt_clip=no
20941fi
20942
20943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20944fi
20945{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20946$as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20947if test $ac_cv_have_decl_getopt_clip = yes; then
11960 gl_cv_func_gnu_getopt=no 20948 gl_cv_func_gnu_getopt=no
11961else 20949else
11962 gl_cv_func_gnu_getopt=yes 20950 gl_cv_func_gnu_getopt=yes
11963fi 20951fi
11964 20952
11965else 20953else
11966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20954 cat >conftest.$ac_ext <<_ACEOF
20955/* confdefs.h. */
20956_ACEOF
20957cat confdefs.h >>conftest.$ac_ext
20958cat >>conftest.$ac_ext <<_ACEOF
11967/* end confdefs.h. */ 20959/* end confdefs.h. */
11968#include <getopt.h> 20960#include <getopt.h>
11969int 20961int
@@ -11980,17 +20972,44 @@ main ()
11980 return 0; 20972 return 0;
11981} 20973}
11982_ACEOF 20974_ACEOF
11983if ac_fn_c_try_run "$LINENO"; then : 20975rm -f conftest$ac_exeext
20976if { (ac_try="$ac_link"
20977case "(($ac_try" in
20978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979 *) ac_try_echo=$ac_try;;
20980esac
20981eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20982$as_echo "$ac_try_echo") >&5
20983 (eval "$ac_link") 2>&5
20984 ac_status=$?
20985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20987 { (case "(($ac_try" in
20988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20989 *) ac_try_echo=$ac_try;;
20990esac
20991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20992$as_echo "$ac_try_echo") >&5
20993 (eval "$ac_try") 2>&5
20994 ac_status=$?
20995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); }; }; then
11984 gl_cv_func_gnu_getopt=yes 20997 gl_cv_func_gnu_getopt=yes
11985else 20998else
11986 gl_cv_func_gnu_getopt=no 20999 $as_echo "$as_me: program exited with status $ac_status" >&5
21000$as_echo "$as_me: failed program was:" >&5
21001sed 's/^/| /' conftest.$ac_ext >&5
21002
21003( exit $ac_status )
21004gl_cv_func_gnu_getopt=no
11987fi 21005fi
11988rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21006rm -rf conftest.dSYM
11989 conftest.$ac_objext conftest.beam conftest.$ac_ext 21007rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11990fi 21008fi
11991 21009
21010
11992fi 21011fi
11993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5 21012{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
11994$as_echo "$gl_cv_func_gnu_getopt" >&6; } 21013$as_echo "$gl_cv_func_gnu_getopt" >&6; }
11995 if test "$gl_cv_func_gnu_getopt" = "no"; then 21014 if test "$gl_cv_func_gnu_getopt" = "no"; then
11996 GETOPT_H=getopt.h 21015 GETOPT_H=getopt.h
@@ -11999,12 +21018,14 @@ $as_echo "$gl_cv_func_gnu_getopt" >&6; }
11999 21018
12000 21019
12001 21020
12002 if test -n "$GETOPT_H"; then : 21021 if test -n "$GETOPT_H"; then
12003 21022
12004 21023
12005 GETOPT_H=getopt.h 21024 GETOPT_H=getopt.h
12006 21025
12007$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h 21026cat >>confdefs.h <<\_ACEOF
21027#define __GETOPT_PREFIX rpl_
21028_ACEOF
12008 21029
12009 21030
12010 21031
@@ -12015,13 +21036,18 @@ fi
12015 21036
12016 21037
12017 21038
12018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 21039
21040{ $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
12019$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } 21041$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12020if test "${ac_cv_func_getpgrp_void+set}" = set; then : 21042if test "${ac_cv_func_getpgrp_void+set}" = set; then
12021 $as_echo_n "(cached) " >&6 21043 $as_echo_n "(cached) " >&6
12022else 21044else
12023 # Use it with a single arg. 21045 # Use it with a single arg.
12024cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21046cat >conftest.$ac_ext <<_ACEOF
21047/* confdefs.h. */
21048_ACEOF
21049cat confdefs.h >>conftest.$ac_ext
21050cat >>conftest.$ac_ext <<_ACEOF
12025/* end confdefs.h. */ 21051/* end confdefs.h. */
12026$ac_includes_default 21052$ac_includes_default
12027int 21053int
@@ -12032,41 +21058,157 @@ getpgrp (0);
12032 return 0; 21058 return 0;
12033} 21059}
12034_ACEOF 21060_ACEOF
12035if ac_fn_c_try_compile "$LINENO"; then : 21061rm -f conftest.$ac_objext
21062if { (ac_try="$ac_compile"
21063case "(($ac_try" in
21064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21065 *) ac_try_echo=$ac_try;;
21066esac
21067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21068$as_echo "$ac_try_echo") >&5
21069 (eval "$ac_compile") 2>conftest.er1
21070 ac_status=$?
21071 grep -v '^ *+' conftest.er1 >conftest.err
21072 rm -f conftest.er1
21073 cat conftest.err >&5
21074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); } && {
21076 test -z "$ac_c_werror_flag" ||
21077 test ! -s conftest.err
21078 } && test -s conftest.$ac_objext; then
12036 ac_cv_func_getpgrp_void=no 21079 ac_cv_func_getpgrp_void=no
12037else 21080else
12038 ac_cv_func_getpgrp_void=yes 21081 $as_echo "$as_me: failed program was:" >&5
21082sed 's/^/| /' conftest.$ac_ext >&5
21083
21084 ac_cv_func_getpgrp_void=yes
12039fi 21085fi
21086
12040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12041 21088
12042fi 21089fi
12043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 21090{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
12044$as_echo "$ac_cv_func_getpgrp_void" >&6; } 21091$as_echo "$ac_cv_func_getpgrp_void" >&6; }
12045if test $ac_cv_func_getpgrp_void = yes; then 21092if test $ac_cv_func_getpgrp_void = yes; then
12046 21093
12047$as_echo "#define GETPGRP_VOID 1" >>confdefs.h 21094cat >>confdefs.h <<\_ACEOF
21095#define GETPGRP_VOID 1
21096_ACEOF
12048 21097
12049fi 21098fi
12050 21099
12051 21100
21101
12052for ac_func in strftime 21102for ac_func in strftime
12053do : 21103do
12054 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 21104as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12055if test "x$ac_cv_func_strftime" = x""yes; then : 21105{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21106$as_echo_n "checking for $ac_func... " >&6; }
21107if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21108 $as_echo_n "(cached) " >&6
21109else
21110 cat >conftest.$ac_ext <<_ACEOF
21111/* confdefs.h. */
21112_ACEOF
21113cat confdefs.h >>conftest.$ac_ext
21114cat >>conftest.$ac_ext <<_ACEOF
21115/* end confdefs.h. */
21116/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21118#define $ac_func innocuous_$ac_func
21119
21120/* System header to define __stub macros and hopefully few prototypes,
21121 which can conflict with char $ac_func (); below.
21122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21123 <limits.h> exists even on freestanding compilers. */
21124
21125#ifdef __STDC__
21126# include <limits.h>
21127#else
21128# include <assert.h>
21129#endif
21130
21131#undef $ac_func
21132
21133/* Override any GCC internal prototype to avoid an error.
21134 Use char because int might match the return type of a GCC
21135 builtin and then its argument prototype would still apply. */
21136#ifdef __cplusplus
21137extern "C"
21138#endif
21139char $ac_func ();
21140/* The GNU C library defines this for functions which it implements
21141 to always fail with ENOSYS. Some functions are actually named
21142 something starting with __ and the normal name is an alias. */
21143#if defined __stub_$ac_func || defined __stub___$ac_func
21144choke me
21145#endif
21146
21147int
21148main ()
21149{
21150return $ac_func ();
21151 ;
21152 return 0;
21153}
21154_ACEOF
21155rm -f conftest.$ac_objext conftest$ac_exeext
21156if { (ac_try="$ac_link"
21157case "(($ac_try" in
21158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21159 *) ac_try_echo=$ac_try;;
21160esac
21161eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21162$as_echo "$ac_try_echo") >&5
21163 (eval "$ac_link") 2>conftest.er1
21164 ac_status=$?
21165 grep -v '^ *+' conftest.er1 >conftest.err
21166 rm -f conftest.er1
21167 cat conftest.err >&5
21168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169 (exit $ac_status); } && {
21170 test -z "$ac_c_werror_flag" ||
21171 test ! -s conftest.err
21172 } && test -s conftest$ac_exeext && {
21173 test "$cross_compiling" = yes ||
21174 $as_test_x conftest$ac_exeext
21175 }; then
21176 eval "$as_ac_var=yes"
21177else
21178 $as_echo "$as_me: failed program was:" >&5
21179sed 's/^/| /' conftest.$ac_ext >&5
21180
21181 eval "$as_ac_var=no"
21182fi
21183
21184rm -rf conftest.dSYM
21185rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21186 conftest$ac_exeext conftest.$ac_ext
21187fi
21188ac_res=`eval 'as_val=${'$as_ac_var'}
21189 $as_echo "$as_val"'`
21190 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21191$as_echo "$ac_res" >&6; }
21192if test `eval 'as_val=${'$as_ac_var'}
21193 $as_echo "$as_val"'` = yes; then
12056 cat >>confdefs.h <<_ACEOF 21194 cat >>confdefs.h <<_ACEOF
12057#define HAVE_STRFTIME 1 21195#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12058_ACEOF 21196_ACEOF
12059 21197
12060else 21198else
12061 # strftime is in -lintl on SCO UNIX. 21199 # strftime is in -lintl on SCO UNIX.
12062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 21200{ $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
12063$as_echo_n "checking for strftime in -lintl... " >&6; } 21201$as_echo_n "checking for strftime in -lintl... " >&6; }
12064if test "${ac_cv_lib_intl_strftime+set}" = set; then : 21202if test "${ac_cv_lib_intl_strftime+set}" = set; then
12065 $as_echo_n "(cached) " >&6 21203 $as_echo_n "(cached) " >&6
12066else 21204else
12067 ac_check_lib_save_LIBS=$LIBS 21205 ac_check_lib_save_LIBS=$LIBS
12068LIBS="-lintl $LIBS" 21206LIBS="-lintl $LIBS"
12069cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21207cat >conftest.$ac_ext <<_ACEOF
21208/* confdefs.h. */
21209_ACEOF
21210cat confdefs.h >>conftest.$ac_ext
21211cat >>conftest.$ac_ext <<_ACEOF
12070/* end confdefs.h. */ 21212/* end confdefs.h. */
12071 21213
12072/* Override any GCC internal prototype to avoid an error. 21214/* Override any GCC internal prototype to avoid an error.
@@ -12084,19 +21226,46 @@ return strftime ();
12084 return 0; 21226 return 0;
12085} 21227}
12086_ACEOF 21228_ACEOF
12087if ac_fn_c_try_link "$LINENO"; then : 21229rm -f conftest.$ac_objext conftest$ac_exeext
21230if { (ac_try="$ac_link"
21231case "(($ac_try" in
21232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21233 *) ac_try_echo=$ac_try;;
21234esac
21235eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21236$as_echo "$ac_try_echo") >&5
21237 (eval "$ac_link") 2>conftest.er1
21238 ac_status=$?
21239 grep -v '^ *+' conftest.er1 >conftest.err
21240 rm -f conftest.er1
21241 cat conftest.err >&5
21242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); } && {
21244 test -z "$ac_c_werror_flag" ||
21245 test ! -s conftest.err
21246 } && test -s conftest$ac_exeext && {
21247 test "$cross_compiling" = yes ||
21248 $as_test_x conftest$ac_exeext
21249 }; then
12088 ac_cv_lib_intl_strftime=yes 21250 ac_cv_lib_intl_strftime=yes
12089else 21251else
12090 ac_cv_lib_intl_strftime=no 21252 $as_echo "$as_me: failed program was:" >&5
21253sed 's/^/| /' conftest.$ac_ext >&5
21254
21255 ac_cv_lib_intl_strftime=no
12091fi 21256fi
12092rm -f core conftest.err conftest.$ac_objext \ 21257
12093 conftest$ac_exeext conftest.$ac_ext 21258rm -rf conftest.dSYM
21259rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21260 conftest$ac_exeext conftest.$ac_ext
12094LIBS=$ac_check_lib_save_LIBS 21261LIBS=$ac_check_lib_save_LIBS
12095fi 21262fi
12096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 21263{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
12097$as_echo "$ac_cv_lib_intl_strftime" >&6; } 21264$as_echo "$ac_cv_lib_intl_strftime" >&6; }
12098if test "x$ac_cv_lib_intl_strftime" = x""yes; then : 21265if test $ac_cv_lib_intl_strftime = yes; then
12099 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 21266 cat >>confdefs.h <<\_ACEOF
21267#define HAVE_STRFTIME 1
21268_ACEOF
12100 21269
12101LIBS="-lintl $LIBS" 21270LIBS="-lintl $LIBS"
12102fi 21271fi
@@ -12106,12 +21275,101 @@ done
12106 21275
12107 21276
12108# UNIX98 PTYs. 21277# UNIX98 PTYs.
21278
12109for ac_func in grantpt 21279for ac_func in grantpt
12110do : 21280do
12111 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt" 21281as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12112if test "x$ac_cv_func_grantpt" = x""yes; then : 21282{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21283$as_echo_n "checking for $ac_func... " >&6; }
21284if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21285 $as_echo_n "(cached) " >&6
21286else
21287 cat >conftest.$ac_ext <<_ACEOF
21288/* confdefs.h. */
21289_ACEOF
21290cat confdefs.h >>conftest.$ac_ext
21291cat >>conftest.$ac_ext <<_ACEOF
21292/* end confdefs.h. */
21293/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21295#define $ac_func innocuous_$ac_func
21296
21297/* System header to define __stub macros and hopefully few prototypes,
21298 which can conflict with char $ac_func (); below.
21299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21300 <limits.h> exists even on freestanding compilers. */
21301
21302#ifdef __STDC__
21303# include <limits.h>
21304#else
21305# include <assert.h>
21306#endif
21307
21308#undef $ac_func
21309
21310/* Override any GCC internal prototype to avoid an error.
21311 Use char because int might match the return type of a GCC
21312 builtin and then its argument prototype would still apply. */
21313#ifdef __cplusplus
21314extern "C"
21315#endif
21316char $ac_func ();
21317/* The GNU C library defines this for functions which it implements
21318 to always fail with ENOSYS. Some functions are actually named
21319 something starting with __ and the normal name is an alias. */
21320#if defined __stub_$ac_func || defined __stub___$ac_func
21321choke me
21322#endif
21323
21324int
21325main ()
21326{
21327return $ac_func ();
21328 ;
21329 return 0;
21330}
21331_ACEOF
21332rm -f conftest.$ac_objext conftest$ac_exeext
21333if { (ac_try="$ac_link"
21334case "(($ac_try" in
21335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21336 *) ac_try_echo=$ac_try;;
21337esac
21338eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21339$as_echo "$ac_try_echo") >&5
21340 (eval "$ac_link") 2>conftest.er1
21341 ac_status=$?
21342 grep -v '^ *+' conftest.er1 >conftest.err
21343 rm -f conftest.er1
21344 cat conftest.err >&5
21345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); } && {
21347 test -z "$ac_c_werror_flag" ||
21348 test ! -s conftest.err
21349 } && test -s conftest$ac_exeext && {
21350 test "$cross_compiling" = yes ||
21351 $as_test_x conftest$ac_exeext
21352 }; then
21353 eval "$as_ac_var=yes"
21354else
21355 $as_echo "$as_me: failed program was:" >&5
21356sed 's/^/| /' conftest.$ac_ext >&5
21357
21358 eval "$as_ac_var=no"
21359fi
21360
21361rm -rf conftest.dSYM
21362rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21363 conftest$ac_exeext conftest.$ac_ext
21364fi
21365ac_res=`eval 'as_val=${'$as_ac_var'}
21366 $as_echo "$as_val"'`
21367 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21368$as_echo "$ac_res" >&6; }
21369if test `eval 'as_val=${'$as_ac_var'}
21370 $as_echo "$as_val"'` = yes; then
12113 cat >>confdefs.h <<_ACEOF 21371 cat >>confdefs.h <<_ACEOF
12114#define HAVE_GRANTPT 1 21372#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12115_ACEOF 21373_ACEOF
12116 21374
12117fi 21375fi
@@ -12119,12 +21377,101 @@ done
12119 21377
12120 21378
12121# PTY-related GNU extensions. 21379# PTY-related GNU extensions.
21380
12122for ac_func in getpt 21381for ac_func in getpt
12123do : 21382do
12124 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt" 21383as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12125if test "x$ac_cv_func_getpt" = x""yes; then : 21384{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21385$as_echo_n "checking for $ac_func... " >&6; }
21386if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21387 $as_echo_n "(cached) " >&6
21388else
21389 cat >conftest.$ac_ext <<_ACEOF
21390/* confdefs.h. */
21391_ACEOF
21392cat confdefs.h >>conftest.$ac_ext
21393cat >>conftest.$ac_ext <<_ACEOF
21394/* end confdefs.h. */
21395/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21397#define $ac_func innocuous_$ac_func
21398
21399/* System header to define __stub macros and hopefully few prototypes,
21400 which can conflict with char $ac_func (); below.
21401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21402 <limits.h> exists even on freestanding compilers. */
21403
21404#ifdef __STDC__
21405# include <limits.h>
21406#else
21407# include <assert.h>
21408#endif
21409
21410#undef $ac_func
21411
21412/* Override any GCC internal prototype to avoid an error.
21413 Use char because int might match the return type of a GCC
21414 builtin and then its argument prototype would still apply. */
21415#ifdef __cplusplus
21416extern "C"
21417#endif
21418char $ac_func ();
21419/* The GNU C library defines this for functions which it implements
21420 to always fail with ENOSYS. Some functions are actually named
21421 something starting with __ and the normal name is an alias. */
21422#if defined __stub_$ac_func || defined __stub___$ac_func
21423choke me
21424#endif
21425
21426int
21427main ()
21428{
21429return $ac_func ();
21430 ;
21431 return 0;
21432}
21433_ACEOF
21434rm -f conftest.$ac_objext conftest$ac_exeext
21435if { (ac_try="$ac_link"
21436case "(($ac_try" in
21437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21438 *) ac_try_echo=$ac_try;;
21439esac
21440eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21441$as_echo "$ac_try_echo") >&5
21442 (eval "$ac_link") 2>conftest.er1
21443 ac_status=$?
21444 grep -v '^ *+' conftest.er1 >conftest.err
21445 rm -f conftest.er1
21446 cat conftest.err >&5
21447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); } && {
21449 test -z "$ac_c_werror_flag" ||
21450 test ! -s conftest.err
21451 } && test -s conftest$ac_exeext && {
21452 test "$cross_compiling" = yes ||
21453 $as_test_x conftest$ac_exeext
21454 }; then
21455 eval "$as_ac_var=yes"
21456else
21457 $as_echo "$as_me: failed program was:" >&5
21458sed 's/^/| /' conftest.$ac_ext >&5
21459
21460 eval "$as_ac_var=no"
21461fi
21462
21463rm -rf conftest.dSYM
21464rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21465 conftest$ac_exeext conftest.$ac_ext
21466fi
21467ac_res=`eval 'as_val=${'$as_ac_var'}
21468 $as_echo "$as_val"'`
21469 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21470$as_echo "$ac_res" >&6; }
21471if test `eval 'as_val=${'$as_ac_var'}
21472 $as_echo "$as_val"'` = yes; then
12126 cat >>confdefs.h <<_ACEOF 21473 cat >>confdefs.h <<_ACEOF
12127#define HAVE_GETPT 1 21474#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12128_ACEOF 21475_ACEOF
12129 21476
12130fi 21477fi
@@ -12137,13 +21484,17 @@ done
12137# than to expect to find it in ncurses. 21484# than to expect to find it in ncurses.
12138# Also we need tputs and friends to be able to build at all. 21485# Also we need tputs and friends to be able to build at all.
12139have_tputs_et_al=true 21486have_tputs_et_al=true
12140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5 21487{ $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5
12141$as_echo_n "checking for library containing tputs... " >&6; } 21488$as_echo_n "checking for library containing tputs... " >&6; }
12142if test "${ac_cv_search_tputs+set}" = set; then : 21489if test "${ac_cv_search_tputs+set}" = set; then
12143 $as_echo_n "(cached) " >&6 21490 $as_echo_n "(cached) " >&6
12144else 21491else
12145 ac_func_search_save_LIBS=$LIBS 21492 ac_func_search_save_LIBS=$LIBS
12146cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21493cat >conftest.$ac_ext <<_ACEOF
21494/* confdefs.h. */
21495_ACEOF
21496cat confdefs.h >>conftest.$ac_ext
21497cat >>conftest.$ac_ext <<_ACEOF
12147/* end confdefs.h. */ 21498/* end confdefs.h. */
12148 21499
12149/* Override any GCC internal prototype to avoid an error. 21500/* Override any GCC internal prototype to avoid an error.
@@ -12168,27 +21519,54 @@ for ac_lib in '' ncurses terminfo termcap; do
12168 ac_res=-l$ac_lib 21519 ac_res=-l$ac_lib
12169 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21520 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12170 fi 21521 fi
12171 if ac_fn_c_try_link "$LINENO"; then : 21522 rm -f conftest.$ac_objext conftest$ac_exeext
21523if { (ac_try="$ac_link"
21524case "(($ac_try" in
21525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21526 *) ac_try_echo=$ac_try;;
21527esac
21528eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21529$as_echo "$ac_try_echo") >&5
21530 (eval "$ac_link") 2>conftest.er1
21531 ac_status=$?
21532 grep -v '^ *+' conftest.er1 >conftest.err
21533 rm -f conftest.er1
21534 cat conftest.err >&5
21535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); } && {
21537 test -z "$ac_c_werror_flag" ||
21538 test ! -s conftest.err
21539 } && test -s conftest$ac_exeext && {
21540 test "$cross_compiling" = yes ||
21541 $as_test_x conftest$ac_exeext
21542 }; then
12172 ac_cv_search_tputs=$ac_res 21543 ac_cv_search_tputs=$ac_res
21544else
21545 $as_echo "$as_me: failed program was:" >&5
21546sed 's/^/| /' conftest.$ac_ext >&5
21547
21548
12173fi 21549fi
12174rm -f core conftest.err conftest.$ac_objext \ 21550
12175 conftest$ac_exeext 21551rm -rf conftest.dSYM
12176 if test "${ac_cv_search_tputs+set}" = set; then : 21552rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21553 conftest$ac_exeext
21554 if test "${ac_cv_search_tputs+set}" = set; then
12177 break 21555 break
12178fi 21556fi
12179done 21557done
12180if test "${ac_cv_search_tputs+set}" = set; then : 21558if test "${ac_cv_search_tputs+set}" = set; then
12181 21559 :
12182else 21560else
12183 ac_cv_search_tputs=no 21561 ac_cv_search_tputs=no
12184fi 21562fi
12185rm conftest.$ac_ext 21563rm conftest.$ac_ext
12186LIBS=$ac_func_search_save_LIBS 21564LIBS=$ac_func_search_save_LIBS
12187fi 21565fi
12188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5 21566{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
12189$as_echo "$ac_cv_search_tputs" >&6; } 21567$as_echo "$ac_cv_search_tputs" >&6; }
12190ac_res=$ac_cv_search_tputs 21568ac_res=$ac_cv_search_tputs
12191if test "$ac_res" != no; then : 21569if test "$ac_res" != no; then
12192 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21570 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12193 21571
12194else 21572else
@@ -12196,13 +21574,19 @@ else
12196fi 21574fi
12197 21575
12198if test "$have_tputs_et_al" != true; then 21576if test "$have_tputs_et_al" != true; then
12199 as_fn_error "I couldn't find termcap functions (tputs and friends). 21577 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends).
12200Maybe some development libraries/packages are missing? Try installing 21578Maybe some development libraries/packages are missing? Try installing
12201libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5 21579libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21580$as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21581Maybe some development libraries/packages are missing? Try installing
21582libncurses-dev(el), libterminfo-dev(el) or similar." >&2;}
21583 { (exit 1); exit 1; }; }
12202fi 21584fi
12203# Must define this when any termcap library is found. 21585# Must define this when any termcap library is found.
12204 21586
12205$as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h 21587cat >>confdefs.h <<\_ACEOF
21588#define HAVE_LIBNCURSES 1
21589_ACEOF
12206 21590
12207## FIXME This was the cpp logic, but I am not sure it is right. 21591## FIXME This was the cpp logic, but I am not sure it is right.
12208## The above test has not necessarily found libncurses. 21592## The above test has not necessarily found libncurses.
@@ -12234,12 +21618,16 @@ case "$opsys" in
12234 ;; 21618 ;;
12235 21619
12236 freebsd) 21620 freebsd)
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5 21621 { $as_echo "$as_me:$LINENO: checking whether FreeBSD is new enough to use terminfo" >&5
12238$as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; } 21622$as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
12239 if test "${emacs_cv_freebsd_terminfo+set}" = set; then : 21623 if test "${emacs_cv_freebsd_terminfo+set}" = set; then
12240 $as_echo_n "(cached) " >&6 21624 $as_echo_n "(cached) " >&6
12241else 21625else
12242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21626 cat >conftest.$ac_ext <<_ACEOF
21627/* confdefs.h. */
21628_ACEOF
21629cat confdefs.h >>conftest.$ac_ext
21630cat >>conftest.$ac_ext <<_ACEOF
12243/* end confdefs.h. */ 21631/* end confdefs.h. */
12244#include <osreldate.h> 21632#include <osreldate.h>
12245int 21633int
@@ -12253,17 +21641,42 @@ fail;
12253 return 0; 21641 return 0;
12254} 21642}
12255_ACEOF 21643_ACEOF
12256if ac_fn_c_try_link "$LINENO"; then : 21644rm -f conftest.$ac_objext conftest$ac_exeext
21645if { (ac_try="$ac_link"
21646case "(($ac_try" in
21647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21648 *) ac_try_echo=$ac_try;;
21649esac
21650eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21651$as_echo "$ac_try_echo") >&5
21652 (eval "$ac_link") 2>conftest.er1
21653 ac_status=$?
21654 grep -v '^ *+' conftest.er1 >conftest.err
21655 rm -f conftest.er1
21656 cat conftest.err >&5
21657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658 (exit $ac_status); } && {
21659 test -z "$ac_c_werror_flag" ||
21660 test ! -s conftest.err
21661 } && test -s conftest$ac_exeext && {
21662 test "$cross_compiling" = yes ||
21663 $as_test_x conftest$ac_exeext
21664 }; then
12257 emacs_cv_freebsd_terminfo=yes 21665 emacs_cv_freebsd_terminfo=yes
12258else 21666else
12259 emacs_cv_freebsd_terminfo=no 21667 $as_echo "$as_me: failed program was:" >&5
21668sed 's/^/| /' conftest.$ac_ext >&5
21669
21670 emacs_cv_freebsd_terminfo=no
12260fi 21671fi
12261rm -f core conftest.err conftest.$ac_objext \ 21672
12262 conftest$ac_exeext conftest.$ac_ext 21673rm -rf conftest.dSYM
21674rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21675 conftest$ac_exeext conftest.$ac_ext
12263fi 21676fi
12264 21677
12265 21678
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5 21679 { $as_echo "$as_me:$LINENO: result: $emacs_cv_freebsd_terminfo" >&5
12267$as_echo "$emacs_cv_freebsd_terminfo" >&6; } 21680$as_echo "$emacs_cv_freebsd_terminfo" >&6; }
12268 21681
12269 if test $emacs_cv_freebsd_terminfo = yes; then 21682 if test $emacs_cv_freebsd_terminfo = yes; then
@@ -12291,7 +21704,9 @@ esac
12291TERMCAP_OBJ=tparam.o 21704TERMCAP_OBJ=tparam.o
12292if test $TERMINFO = yes; then 21705if test $TERMINFO = yes; then
12293 21706
12294$as_echo "#define TERMINFO 1" >>confdefs.h 21707cat >>confdefs.h <<\_ACEOF
21708#define TERMINFO 1
21709_ACEOF
12295 21710
12296 21711
12297 ## Default used to be -ltermcap. Add a case above if need something else. 21712 ## Default used to be -ltermcap. Add a case above if need something else.
@@ -12305,7 +21720,11 @@ fi
12305 21720
12306# Do we have res_init, for detecting changes in /etc/resolv.conf? 21721# Do we have res_init, for detecting changes in /etc/resolv.conf?
12307resolv=no 21722resolv=no
12308cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21723cat >conftest.$ac_ext <<_ACEOF
21724/* confdefs.h. */
21725_ACEOF
21726cat confdefs.h >>conftest.$ac_ext
21727cat >>conftest.$ac_ext <<_ACEOF
12309/* end confdefs.h. */ 21728/* end confdefs.h. */
12310#include <netinet/in.h> 21729#include <netinet/in.h>
12311#include <arpa/nameser.h> 21730#include <arpa/nameser.h>
@@ -12318,19 +21737,48 @@ return res_init();
12318 return 0; 21737 return 0;
12319} 21738}
12320_ACEOF 21739_ACEOF
12321if ac_fn_c_try_link "$LINENO"; then : 21740rm -f conftest.$ac_objext conftest$ac_exeext
21741if { (ac_try="$ac_link"
21742case "(($ac_try" in
21743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21744 *) ac_try_echo=$ac_try;;
21745esac
21746eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21747$as_echo "$ac_try_echo") >&5
21748 (eval "$ac_link") 2>conftest.er1
21749 ac_status=$?
21750 grep -v '^ *+' conftest.er1 >conftest.err
21751 rm -f conftest.er1
21752 cat conftest.err >&5
21753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); } && {
21755 test -z "$ac_c_werror_flag" ||
21756 test ! -s conftest.err
21757 } && test -s conftest$ac_exeext && {
21758 test "$cross_compiling" = yes ||
21759 $as_test_x conftest$ac_exeext
21760 }; then
12322 have_res_init=yes 21761 have_res_init=yes
12323else 21762else
12324 have_res_init=no 21763 $as_echo "$as_me: failed program was:" >&5
21764sed 's/^/| /' conftest.$ac_ext >&5
21765
21766 have_res_init=no
12325fi 21767fi
12326rm -f core conftest.err conftest.$ac_objext \ 21768
12327 conftest$ac_exeext conftest.$ac_ext 21769rm -rf conftest.dSYM
21770rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21771 conftest$ac_exeext conftest.$ac_ext
12328if test "$have_res_init" = no; then 21772if test "$have_res_init" = no; then
12329 OLIBS="$LIBS" 21773 OLIBS="$LIBS"
12330 LIBS="$LIBS -lresolv" 21774 LIBS="$LIBS -lresolv"
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5 21775 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
12332$as_echo_n "checking for res_init with -lresolv... " >&6; } 21776$as_echo_n "checking for res_init with -lresolv... " >&6; }
12333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21777 cat >conftest.$ac_ext <<_ACEOF
21778/* confdefs.h. */
21779_ACEOF
21780cat confdefs.h >>conftest.$ac_ext
21781cat >>conftest.$ac_ext <<_ACEOF
12334/* end confdefs.h. */ 21782/* end confdefs.h. */
12335#include <netinet/in.h> 21783#include <netinet/in.h>
12336#include <arpa/nameser.h> 21784#include <arpa/nameser.h>
@@ -12343,14 +21791,39 @@ return res_init();
12343 return 0; 21791 return 0;
12344} 21792}
12345_ACEOF 21793_ACEOF
12346if ac_fn_c_try_link "$LINENO"; then : 21794rm -f conftest.$ac_objext conftest$ac_exeext
21795if { (ac_try="$ac_link"
21796case "(($ac_try" in
21797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21798 *) ac_try_echo=$ac_try;;
21799esac
21800eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21801$as_echo "$ac_try_echo") >&5
21802 (eval "$ac_link") 2>conftest.er1
21803 ac_status=$?
21804 grep -v '^ *+' conftest.er1 >conftest.err
21805 rm -f conftest.er1
21806 cat conftest.err >&5
21807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808 (exit $ac_status); } && {
21809 test -z "$ac_c_werror_flag" ||
21810 test ! -s conftest.err
21811 } && test -s conftest$ac_exeext && {
21812 test "$cross_compiling" = yes ||
21813 $as_test_x conftest$ac_exeext
21814 }; then
12347 have_res_init=yes 21815 have_res_init=yes
12348else 21816else
12349 have_res_init=no 21817 $as_echo "$as_me: failed program was:" >&5
21818sed 's/^/| /' conftest.$ac_ext >&5
21819
21820 have_res_init=no
12350fi 21821fi
12351rm -f core conftest.err conftest.$ac_objext \ 21822
12352 conftest$ac_exeext conftest.$ac_ext 21823rm -rf conftest.dSYM
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5 21824rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21825 conftest$ac_exeext conftest.$ac_ext
21826 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
12354$as_echo "$have_res_init" >&6; } 21827$as_echo "$have_res_init" >&6; }
12355 if test "$have_res_init" = yes ; then 21828 if test "$have_res_init" = yes ; then
12356 resolv=yes 21829 resolv=yes
@@ -12360,7 +21833,9 @@ fi
12360 21833
12361if test "$have_res_init" = yes; then 21834if test "$have_res_init" = yes; then
12362 21835
12363$as_echo "#define HAVE_RES_INIT 1" >>confdefs.h 21836cat >>confdefs.h <<\_ACEOF
21837#define HAVE_RES_INIT 1
21838_ACEOF
12364 21839
12365fi 21840fi
12366 21841
@@ -12368,22 +21843,194 @@ fi
12368LIBHESIOD= 21843LIBHESIOD=
12369if test "$with_hesiod" != no ; then 21844if test "$with_hesiod" != no ; then
12370 # Don't set $LIBS here -- see comments above. FIXME which comments? 21845 # Don't set $LIBS here -- see comments above. FIXME which comments?
12371 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send" 21846 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
12372if test "x$ac_cv_func_res_send" = x""yes; then : 21847$as_echo_n "checking for res_send... " >&6; }
21848if test "${ac_cv_func_res_send+set}" = set; then
21849 $as_echo_n "(cached) " >&6
21850else
21851 cat >conftest.$ac_ext <<_ACEOF
21852/* confdefs.h. */
21853_ACEOF
21854cat confdefs.h >>conftest.$ac_ext
21855cat >>conftest.$ac_ext <<_ACEOF
21856/* end confdefs.h. */
21857/* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21859#define res_send innocuous_res_send
12373 21860
21861/* System header to define __stub macros and hopefully few prototypes,
21862 which can conflict with char res_send (); below.
21863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21864 <limits.h> exists even on freestanding compilers. */
21865
21866#ifdef __STDC__
21867# include <limits.h>
21868#else
21869# include <assert.h>
21870#endif
21871
21872#undef res_send
21873
21874/* Override any GCC internal prototype to avoid an error.
21875 Use char because int might match the return type of a GCC
21876 builtin and then its argument prototype would still apply. */
21877#ifdef __cplusplus
21878extern "C"
21879#endif
21880char res_send ();
21881/* The GNU C library defines this for functions which it implements
21882 to always fail with ENOSYS. Some functions are actually named
21883 something starting with __ and the normal name is an alias. */
21884#if defined __stub_res_send || defined __stub___res_send
21885choke me
21886#endif
21887
21888int
21889main ()
21890{
21891return res_send ();
21892 ;
21893 return 0;
21894}
21895_ACEOF
21896rm -f conftest.$ac_objext conftest$ac_exeext
21897if { (ac_try="$ac_link"
21898case "(($ac_try" in
21899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21900 *) ac_try_echo=$ac_try;;
21901esac
21902eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21903$as_echo "$ac_try_echo") >&5
21904 (eval "$ac_link") 2>conftest.er1
21905 ac_status=$?
21906 grep -v '^ *+' conftest.er1 >conftest.err
21907 rm -f conftest.er1
21908 cat conftest.err >&5
21909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910 (exit $ac_status); } && {
21911 test -z "$ac_c_werror_flag" ||
21912 test ! -s conftest.err
21913 } && test -s conftest$ac_exeext && {
21914 test "$cross_compiling" = yes ||
21915 $as_test_x conftest$ac_exeext
21916 }; then
21917 ac_cv_func_res_send=yes
21918else
21919 $as_echo "$as_me: failed program was:" >&5
21920sed 's/^/| /' conftest.$ac_ext >&5
21921
21922 ac_cv_func_res_send=no
21923fi
21924
21925rm -rf conftest.dSYM
21926rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21927 conftest$ac_exeext conftest.$ac_ext
21928fi
21929{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21930$as_echo "$ac_cv_func_res_send" >&6; }
21931if test $ac_cv_func_res_send = yes; then
21932 :
21933else
21934 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21935$as_echo_n "checking for __res_send... " >&6; }
21936if test "${ac_cv_func___res_send+set}" = set; then
21937 $as_echo_n "(cached) " >&6
21938else
21939 cat >conftest.$ac_ext <<_ACEOF
21940/* confdefs.h. */
21941_ACEOF
21942cat confdefs.h >>conftest.$ac_ext
21943cat >>conftest.$ac_ext <<_ACEOF
21944/* end confdefs.h. */
21945/* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21947#define __res_send innocuous___res_send
21948
21949/* System header to define __stub macros and hopefully few prototypes,
21950 which can conflict with char __res_send (); below.
21951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21952 <limits.h> exists even on freestanding compilers. */
21953
21954#ifdef __STDC__
21955# include <limits.h>
21956#else
21957# include <assert.h>
21958#endif
21959
21960#undef __res_send
21961
21962/* Override any GCC internal prototype to avoid an error.
21963 Use char because int might match the return type of a GCC
21964 builtin and then its argument prototype would still apply. */
21965#ifdef __cplusplus
21966extern "C"
21967#endif
21968char __res_send ();
21969/* The GNU C library defines this for functions which it implements
21970 to always fail with ENOSYS. Some functions are actually named
21971 something starting with __ and the normal name is an alias. */
21972#if defined __stub___res_send || defined __stub_____res_send
21973choke me
21974#endif
21975
21976int
21977main ()
21978{
21979return __res_send ();
21980 ;
21981 return 0;
21982}
21983_ACEOF
21984rm -f conftest.$ac_objext conftest$ac_exeext
21985if { (ac_try="$ac_link"
21986case "(($ac_try" in
21987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21988 *) ac_try_echo=$ac_try;;
21989esac
21990eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21991$as_echo "$ac_try_echo") >&5
21992 (eval "$ac_link") 2>conftest.er1
21993 ac_status=$?
21994 grep -v '^ *+' conftest.er1 >conftest.err
21995 rm -f conftest.er1
21996 cat conftest.err >&5
21997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998 (exit $ac_status); } && {
21999 test -z "$ac_c_werror_flag" ||
22000 test ! -s conftest.err
22001 } && test -s conftest$ac_exeext && {
22002 test "$cross_compiling" = yes ||
22003 $as_test_x conftest$ac_exeext
22004 }; then
22005 ac_cv_func___res_send=yes
12374else 22006else
12375 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send" 22007 $as_echo "$as_me: failed program was:" >&5
12376if test "x$ac_cv_func___res_send" = x""yes; then : 22008sed 's/^/| /' conftest.$ac_ext >&5
22009
22010 ac_cv_func___res_send=no
22011fi
12377 22012
22013rm -rf conftest.dSYM
22014rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22015 conftest$ac_exeext conftest.$ac_ext
22016fi
22017{ $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
22018$as_echo "$ac_cv_func___res_send" >&6; }
22019if test $ac_cv_func___res_send = yes; then
22020 :
12378else 22021else
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5 22022 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
12380$as_echo_n "checking for res_send in -lresolv... " >&6; } 22023$as_echo_n "checking for res_send in -lresolv... " >&6; }
12381if test "${ac_cv_lib_resolv_res_send+set}" = set; then : 22024if test "${ac_cv_lib_resolv_res_send+set}" = set; then
12382 $as_echo_n "(cached) " >&6 22025 $as_echo_n "(cached) " >&6
12383else 22026else
12384 ac_check_lib_save_LIBS=$LIBS 22027 ac_check_lib_save_LIBS=$LIBS
12385LIBS="-lresolv $LIBS" 22028LIBS="-lresolv $LIBS"
12386cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22029cat >conftest.$ac_ext <<_ACEOF
22030/* confdefs.h. */
22031_ACEOF
22032cat confdefs.h >>conftest.$ac_ext
22033cat >>conftest.$ac_ext <<_ACEOF
12387/* end confdefs.h. */ 22034/* end confdefs.h. */
12388 22035
12389/* Override any GCC internal prototype to avoid an error. 22036/* Override any GCC internal prototype to avoid an error.
@@ -12401,28 +22048,57 @@ return res_send ();
12401 return 0; 22048 return 0;
12402} 22049}
12403_ACEOF 22050_ACEOF
12404if ac_fn_c_try_link "$LINENO"; then : 22051rm -f conftest.$ac_objext conftest$ac_exeext
22052if { (ac_try="$ac_link"
22053case "(($ac_try" in
22054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22055 *) ac_try_echo=$ac_try;;
22056esac
22057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22058$as_echo "$ac_try_echo") >&5
22059 (eval "$ac_link") 2>conftest.er1
22060 ac_status=$?
22061 grep -v '^ *+' conftest.er1 >conftest.err
22062 rm -f conftest.er1
22063 cat conftest.err >&5
22064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065 (exit $ac_status); } && {
22066 test -z "$ac_c_werror_flag" ||
22067 test ! -s conftest.err
22068 } && test -s conftest$ac_exeext && {
22069 test "$cross_compiling" = yes ||
22070 $as_test_x conftest$ac_exeext
22071 }; then
12405 ac_cv_lib_resolv_res_send=yes 22072 ac_cv_lib_resolv_res_send=yes
12406else 22073else
12407 ac_cv_lib_resolv_res_send=no 22074 $as_echo "$as_me: failed program was:" >&5
22075sed 's/^/| /' conftest.$ac_ext >&5
22076
22077 ac_cv_lib_resolv_res_send=no
12408fi 22078fi
12409rm -f core conftest.err conftest.$ac_objext \ 22079
12410 conftest$ac_exeext conftest.$ac_ext 22080rm -rf conftest.dSYM
22081rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22082 conftest$ac_exeext conftest.$ac_ext
12411LIBS=$ac_check_lib_save_LIBS 22083LIBS=$ac_check_lib_save_LIBS
12412fi 22084fi
12413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5 22085{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
12414$as_echo "$ac_cv_lib_resolv_res_send" >&6; } 22086$as_echo "$ac_cv_lib_resolv_res_send" >&6; }
12415if test "x$ac_cv_lib_resolv_res_send" = x""yes; then : 22087if test $ac_cv_lib_resolv_res_send = yes; then
12416 resolv=yes 22088 resolv=yes
12417else 22089else
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5 22090 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
12419$as_echo_n "checking for __res_send in -lresolv... " >&6; } 22091$as_echo_n "checking for __res_send in -lresolv... " >&6; }
12420if test "${ac_cv_lib_resolv___res_send+set}" = set; then : 22092if test "${ac_cv_lib_resolv___res_send+set}" = set; then
12421 $as_echo_n "(cached) " >&6 22093 $as_echo_n "(cached) " >&6
12422else 22094else
12423 ac_check_lib_save_LIBS=$LIBS 22095 ac_check_lib_save_LIBS=$LIBS
12424LIBS="-lresolv $LIBS" 22096LIBS="-lresolv $LIBS"
12425cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22097cat >conftest.$ac_ext <<_ACEOF
22098/* confdefs.h. */
22099_ACEOF
22100cat confdefs.h >>conftest.$ac_ext
22101cat >>conftest.$ac_ext <<_ACEOF
12426/* end confdefs.h. */ 22102/* end confdefs.h. */
12427 22103
12428/* Override any GCC internal prototype to avoid an error. 22104/* Override any GCC internal prototype to avoid an error.
@@ -12440,18 +22116,43 @@ return __res_send ();
12440 return 0; 22116 return 0;
12441} 22117}
12442_ACEOF 22118_ACEOF
12443if ac_fn_c_try_link "$LINENO"; then : 22119rm -f conftest.$ac_objext conftest$ac_exeext
22120if { (ac_try="$ac_link"
22121case "(($ac_try" in
22122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22123 *) ac_try_echo=$ac_try;;
22124esac
22125eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22126$as_echo "$ac_try_echo") >&5
22127 (eval "$ac_link") 2>conftest.er1
22128 ac_status=$?
22129 grep -v '^ *+' conftest.er1 >conftest.err
22130 rm -f conftest.er1
22131 cat conftest.err >&5
22132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 (exit $ac_status); } && {
22134 test -z "$ac_c_werror_flag" ||
22135 test ! -s conftest.err
22136 } && test -s conftest$ac_exeext && {
22137 test "$cross_compiling" = yes ||
22138 $as_test_x conftest$ac_exeext
22139 }; then
12444 ac_cv_lib_resolv___res_send=yes 22140 ac_cv_lib_resolv___res_send=yes
12445else 22141else
12446 ac_cv_lib_resolv___res_send=no 22142 $as_echo "$as_me: failed program was:" >&5
22143sed 's/^/| /' conftest.$ac_ext >&5
22144
22145 ac_cv_lib_resolv___res_send=no
12447fi 22146fi
12448rm -f core conftest.err conftest.$ac_objext \ 22147
12449 conftest$ac_exeext conftest.$ac_ext 22148rm -rf conftest.dSYM
22149rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22150 conftest$ac_exeext conftest.$ac_ext
12450LIBS=$ac_check_lib_save_LIBS 22151LIBS=$ac_check_lib_save_LIBS
12451fi 22152fi
12452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5 22153{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
12453$as_echo "$ac_cv_lib_resolv___res_send" >&6; } 22154$as_echo "$ac_cv_lib_resolv___res_send" >&6; }
12454if test "x$ac_cv_lib_resolv___res_send" = x""yes; then : 22155if test $ac_cv_lib_resolv___res_send = yes; then
12455 resolv=yes 22156 resolv=yes
12456fi 22157fi
12457 22158
@@ -12466,18 +22167,106 @@ fi
12466 else 22167 else
12467 RESOLVLIB= 22168 RESOLVLIB=
12468 fi 22169 fi
12469 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost" 22170 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
12470if test "x$ac_cv_func_hes_getmailhost" = x""yes; then : 22171$as_echo_n "checking for hes_getmailhost... " >&6; }
22172if test "${ac_cv_func_hes_getmailhost+set}" = set; then
22173 $as_echo_n "(cached) " >&6
22174else
22175 cat >conftest.$ac_ext <<_ACEOF
22176/* confdefs.h. */
22177_ACEOF
22178cat confdefs.h >>conftest.$ac_ext
22179cat >>conftest.$ac_ext <<_ACEOF
22180/* end confdefs.h. */
22181/* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
22182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22183#define hes_getmailhost innocuous_hes_getmailhost
12471 22184
22185/* System header to define __stub macros and hopefully few prototypes,
22186 which can conflict with char hes_getmailhost (); below.
22187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22188 <limits.h> exists even on freestanding compilers. */
22189
22190#ifdef __STDC__
22191# include <limits.h>
22192#else
22193# include <assert.h>
22194#endif
22195
22196#undef hes_getmailhost
22197
22198/* Override any GCC internal prototype to avoid an error.
22199 Use char because int might match the return type of a GCC
22200 builtin and then its argument prototype would still apply. */
22201#ifdef __cplusplus
22202extern "C"
22203#endif
22204char hes_getmailhost ();
22205/* The GNU C library defines this for functions which it implements
22206 to always fail with ENOSYS. Some functions are actually named
22207 something starting with __ and the normal name is an alias. */
22208#if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
22209choke me
22210#endif
22211
22212int
22213main ()
22214{
22215return hes_getmailhost ();
22216 ;
22217 return 0;
22218}
22219_ACEOF
22220rm -f conftest.$ac_objext conftest$ac_exeext
22221if { (ac_try="$ac_link"
22222case "(($ac_try" in
22223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22224 *) ac_try_echo=$ac_try;;
22225esac
22226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22227$as_echo "$ac_try_echo") >&5
22228 (eval "$ac_link") 2>conftest.er1
22229 ac_status=$?
22230 grep -v '^ *+' conftest.er1 >conftest.err
22231 rm -f conftest.er1
22232 cat conftest.err >&5
22233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234 (exit $ac_status); } && {
22235 test -z "$ac_c_werror_flag" ||
22236 test ! -s conftest.err
22237 } && test -s conftest$ac_exeext && {
22238 test "$cross_compiling" = yes ||
22239 $as_test_x conftest$ac_exeext
22240 }; then
22241 ac_cv_func_hes_getmailhost=yes
22242else
22243 $as_echo "$as_me: failed program was:" >&5
22244sed 's/^/| /' conftest.$ac_ext >&5
22245
22246 ac_cv_func_hes_getmailhost=no
22247fi
22248
22249rm -rf conftest.dSYM
22250rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22251 conftest$ac_exeext conftest.$ac_ext
22252fi
22253{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
22254$as_echo "$ac_cv_func_hes_getmailhost" >&6; }
22255if test $ac_cv_func_hes_getmailhost = yes; then
22256 :
12472else 22257else
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5 22258 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
12474$as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; } 22259$as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
12475if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then : 22260if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
12476 $as_echo_n "(cached) " >&6 22261 $as_echo_n "(cached) " >&6
12477else 22262else
12478 ac_check_lib_save_LIBS=$LIBS 22263 ac_check_lib_save_LIBS=$LIBS
12479LIBS="-lhesiod $RESOLVLIB $LIBS" 22264LIBS="-lhesiod $RESOLVLIB $LIBS"
12480cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22265cat >conftest.$ac_ext <<_ACEOF
22266/* confdefs.h. */
22267_ACEOF
22268cat confdefs.h >>conftest.$ac_ext
22269cat >>conftest.$ac_ext <<_ACEOF
12481/* end confdefs.h. */ 22270/* end confdefs.h. */
12482 22271
12483/* Override any GCC internal prototype to avoid an error. 22272/* Override any GCC internal prototype to avoid an error.
@@ -12495,18 +22284,43 @@ return hes_getmailhost ();
12495 return 0; 22284 return 0;
12496} 22285}
12497_ACEOF 22286_ACEOF
12498if ac_fn_c_try_link "$LINENO"; then : 22287rm -f conftest.$ac_objext conftest$ac_exeext
22288if { (ac_try="$ac_link"
22289case "(($ac_try" in
22290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22291 *) ac_try_echo=$ac_try;;
22292esac
22293eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22294$as_echo "$ac_try_echo") >&5
22295 (eval "$ac_link") 2>conftest.er1
22296 ac_status=$?
22297 grep -v '^ *+' conftest.er1 >conftest.err
22298 rm -f conftest.er1
22299 cat conftest.err >&5
22300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); } && {
22302 test -z "$ac_c_werror_flag" ||
22303 test ! -s conftest.err
22304 } && test -s conftest$ac_exeext && {
22305 test "$cross_compiling" = yes ||
22306 $as_test_x conftest$ac_exeext
22307 }; then
12499 ac_cv_lib_hesiod_hes_getmailhost=yes 22308 ac_cv_lib_hesiod_hes_getmailhost=yes
12500else 22309else
12501 ac_cv_lib_hesiod_hes_getmailhost=no 22310 $as_echo "$as_me: failed program was:" >&5
22311sed 's/^/| /' conftest.$ac_ext >&5
22312
22313 ac_cv_lib_hesiod_hes_getmailhost=no
12502fi 22314fi
12503rm -f core conftest.err conftest.$ac_objext \ 22315
12504 conftest$ac_exeext conftest.$ac_ext 22316rm -rf conftest.dSYM
22317rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22318 conftest$ac_exeext conftest.$ac_ext
12505LIBS=$ac_check_lib_save_LIBS 22319LIBS=$ac_check_lib_save_LIBS
12506fi 22320fi
12507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 22321{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12508$as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; } 22322$as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
12509if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then : 22323if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
12510 hesiod=yes 22324 hesiod=yes
12511else 22325else
12512 : 22326 :
@@ -12517,7 +22331,9 @@ fi
12517 22331
12518 if test x"$hesiod" = xyes; then 22332 if test x"$hesiod" = xyes; then
12519 22333
12520$as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h 22334cat >>confdefs.h <<\_ACEOF
22335#define HAVE_LIBHESIOD 1
22336_ACEOF
12521 22337
12522 LIBHESIOD=-lhesiod 22338 LIBHESIOD=-lhesiod
12523 fi 22339 fi
@@ -12527,7 +22343,9 @@ fi
12527# Do we need libresolv (due to res_init or Hesiod)? 22343# Do we need libresolv (due to res_init or Hesiod)?
12528if test "$resolv" = yes ; then 22344if test "$resolv" = yes ; then
12529 22345
12530$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h 22346cat >>confdefs.h <<\_ACEOF
22347#define HAVE_LIBRESOLV 1
22348_ACEOF
12531 22349
12532 LIBRESOLV=-lresolv 22350 LIBRESOLV=-lresolv
12533else 22351else
@@ -12543,14 +22361,18 @@ DESLIB=
12543KRB4LIB= 22361KRB4LIB=
12544 22362
12545if test "${with_kerberos}" != no; then 22363if test "${with_kerberos}" != no; then
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5 22364 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
12547$as_echo_n "checking for com_err in -lcom_err... " >&6; } 22365$as_echo_n "checking for com_err in -lcom_err... " >&6; }
12548if test "${ac_cv_lib_com_err_com_err+set}" = set; then : 22366if test "${ac_cv_lib_com_err_com_err+set}" = set; then
12549 $as_echo_n "(cached) " >&6 22367 $as_echo_n "(cached) " >&6
12550else 22368else
12551 ac_check_lib_save_LIBS=$LIBS 22369 ac_check_lib_save_LIBS=$LIBS
12552LIBS="-lcom_err $LIBS" 22370LIBS="-lcom_err $LIBS"
12553cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22371cat >conftest.$ac_ext <<_ACEOF
22372/* confdefs.h. */
22373_ACEOF
22374cat confdefs.h >>conftest.$ac_ext
22375cat >>conftest.$ac_ext <<_ACEOF
12554/* end confdefs.h. */ 22376/* end confdefs.h. */
12555 22377
12556/* Override any GCC internal prototype to avoid an error. 22378/* Override any GCC internal prototype to avoid an error.
@@ -12568,18 +22390,43 @@ return com_err ();
12568 return 0; 22390 return 0;
12569} 22391}
12570_ACEOF 22392_ACEOF
12571if ac_fn_c_try_link "$LINENO"; then : 22393rm -f conftest.$ac_objext conftest$ac_exeext
22394if { (ac_try="$ac_link"
22395case "(($ac_try" in
22396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22397 *) ac_try_echo=$ac_try;;
22398esac
22399eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22400$as_echo "$ac_try_echo") >&5
22401 (eval "$ac_link") 2>conftest.er1
22402 ac_status=$?
22403 grep -v '^ *+' conftest.er1 >conftest.err
22404 rm -f conftest.er1
22405 cat conftest.err >&5
22406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407 (exit $ac_status); } && {
22408 test -z "$ac_c_werror_flag" ||
22409 test ! -s conftest.err
22410 } && test -s conftest$ac_exeext && {
22411 test "$cross_compiling" = yes ||
22412 $as_test_x conftest$ac_exeext
22413 }; then
12572 ac_cv_lib_com_err_com_err=yes 22414 ac_cv_lib_com_err_com_err=yes
12573else 22415else
12574 ac_cv_lib_com_err_com_err=no 22416 $as_echo "$as_me: failed program was:" >&5
22417sed 's/^/| /' conftest.$ac_ext >&5
22418
22419 ac_cv_lib_com_err_com_err=no
12575fi 22420fi
12576rm -f core conftest.err conftest.$ac_objext \ 22421
12577 conftest$ac_exeext conftest.$ac_ext 22422rm -rf conftest.dSYM
22423rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22424 conftest$ac_exeext conftest.$ac_ext
12578LIBS=$ac_check_lib_save_LIBS 22425LIBS=$ac_check_lib_save_LIBS
12579fi 22426fi
12580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5 22427{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
12581$as_echo "$ac_cv_lib_com_err_com_err" >&6; } 22428$as_echo "$ac_cv_lib_com_err_com_err" >&6; }
12582if test "x$ac_cv_lib_com_err_com_err" = x""yes; then : 22429if test $ac_cv_lib_com_err_com_err = yes; then
12583 have_com_err=yes 22430 have_com_err=yes
12584else 22431else
12585 have_com_err=no 22432 have_com_err=no
@@ -12589,17 +22436,23 @@ fi
12589 COM_ERRLIB=-lcom_err 22436 COM_ERRLIB=-lcom_err
12590 LIBS="$COM_ERRLIB $LIBS" 22437 LIBS="$COM_ERRLIB $LIBS"
12591 22438
12592$as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h 22439cat >>confdefs.h <<\_ACEOF
22440#define HAVE_LIBCOM_ERR 1
22441_ACEOF
12593 22442
12594 fi 22443 fi
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5 22444 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12596$as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; } 22445$as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
12597if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then : 22446if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
12598 $as_echo_n "(cached) " >&6 22447 $as_echo_n "(cached) " >&6
12599else 22448else
12600 ac_check_lib_save_LIBS=$LIBS 22449 ac_check_lib_save_LIBS=$LIBS
12601LIBS="-lcrypto $LIBS" 22450LIBS="-lcrypto $LIBS"
12602cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22451cat >conftest.$ac_ext <<_ACEOF
22452/* confdefs.h. */
22453_ACEOF
22454cat confdefs.h >>conftest.$ac_ext
22455cat >>conftest.$ac_ext <<_ACEOF
12603/* end confdefs.h. */ 22456/* end confdefs.h. */
12604 22457
12605/* Override any GCC internal prototype to avoid an error. 22458/* Override any GCC internal prototype to avoid an error.
@@ -12617,18 +22470,43 @@ return mit_des_cbc_encrypt ();
12617 return 0; 22470 return 0;
12618} 22471}
12619_ACEOF 22472_ACEOF
12620if ac_fn_c_try_link "$LINENO"; then : 22473rm -f conftest.$ac_objext conftest$ac_exeext
22474if { (ac_try="$ac_link"
22475case "(($ac_try" in
22476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22477 *) ac_try_echo=$ac_try;;
22478esac
22479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22480$as_echo "$ac_try_echo") >&5
22481 (eval "$ac_link") 2>conftest.er1
22482 ac_status=$?
22483 grep -v '^ *+' conftest.er1 >conftest.err
22484 rm -f conftest.er1
22485 cat conftest.err >&5
22486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487 (exit $ac_status); } && {
22488 test -z "$ac_c_werror_flag" ||
22489 test ! -s conftest.err
22490 } && test -s conftest$ac_exeext && {
22491 test "$cross_compiling" = yes ||
22492 $as_test_x conftest$ac_exeext
22493 }; then
12621 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes 22494 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
12622else 22495else
12623 ac_cv_lib_crypto_mit_des_cbc_encrypt=no 22496 $as_echo "$as_me: failed program was:" >&5
22497sed 's/^/| /' conftest.$ac_ext >&5
22498
22499 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
12624fi 22500fi
12625rm -f core conftest.err conftest.$ac_objext \ 22501
12626 conftest$ac_exeext conftest.$ac_ext 22502rm -rf conftest.dSYM
22503rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22504 conftest$ac_exeext conftest.$ac_ext
12627LIBS=$ac_check_lib_save_LIBS 22505LIBS=$ac_check_lib_save_LIBS
12628fi 22506fi
12629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 22507{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12630$as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; } 22508$as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
12631if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then : 22509if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
12632 have_crypto=yes 22510 have_crypto=yes
12633else 22511else
12634 have_crypto=no 22512 have_crypto=no
@@ -12638,17 +22516,23 @@ fi
12638 CRYPTOLIB=-lcrypto 22516 CRYPTOLIB=-lcrypto
12639 LIBS="$CRYPTOLIB $LIBS" 22517 LIBS="$CRYPTOLIB $LIBS"
12640 22518
12641$as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h 22519cat >>confdefs.h <<\_ACEOF
22520#define HAVE_LIBCRYPTO 1
22521_ACEOF
12642 22522
12643 fi 22523 fi
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 22524 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12645$as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; } 22525$as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
12646if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then : 22526if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
12647 $as_echo_n "(cached) " >&6 22527 $as_echo_n "(cached) " >&6
12648else 22528else
12649 ac_check_lib_save_LIBS=$LIBS 22529 ac_check_lib_save_LIBS=$LIBS
12650LIBS="-lk5crypto $LIBS" 22530LIBS="-lk5crypto $LIBS"
12651cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22531cat >conftest.$ac_ext <<_ACEOF
22532/* confdefs.h. */
22533_ACEOF
22534cat confdefs.h >>conftest.$ac_ext
22535cat >>conftest.$ac_ext <<_ACEOF
12652/* end confdefs.h. */ 22536/* end confdefs.h. */
12653 22537
12654/* Override any GCC internal prototype to avoid an error. 22538/* Override any GCC internal prototype to avoid an error.
@@ -12666,18 +22550,43 @@ return mit_des_cbc_encrypt ();
12666 return 0; 22550 return 0;
12667} 22551}
12668_ACEOF 22552_ACEOF
12669if ac_fn_c_try_link "$LINENO"; then : 22553rm -f conftest.$ac_objext conftest$ac_exeext
22554if { (ac_try="$ac_link"
22555case "(($ac_try" in
22556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22557 *) ac_try_echo=$ac_try;;
22558esac
22559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22560$as_echo "$ac_try_echo") >&5
22561 (eval "$ac_link") 2>conftest.er1
22562 ac_status=$?
22563 grep -v '^ *+' conftest.er1 >conftest.err
22564 rm -f conftest.er1
22565 cat conftest.err >&5
22566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); } && {
22568 test -z "$ac_c_werror_flag" ||
22569 test ! -s conftest.err
22570 } && test -s conftest$ac_exeext && {
22571 test "$cross_compiling" = yes ||
22572 $as_test_x conftest$ac_exeext
22573 }; then
12670 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes 22574 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
12671else 22575else
12672 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no 22576 $as_echo "$as_me: failed program was:" >&5
22577sed 's/^/| /' conftest.$ac_ext >&5
22578
22579 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
12673fi 22580fi
12674rm -f core conftest.err conftest.$ac_objext \ 22581
12675 conftest$ac_exeext conftest.$ac_ext 22582rm -rf conftest.dSYM
22583rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22584 conftest$ac_exeext conftest.$ac_ext
12676LIBS=$ac_check_lib_save_LIBS 22585LIBS=$ac_check_lib_save_LIBS
12677fi 22586fi
12678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 22587{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12679$as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; } 22588$as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
12680if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then : 22589if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
12681 have_k5crypto=yes 22590 have_k5crypto=yes
12682else 22591else
12683 have_k5crypto=no 22592 have_k5crypto=no
@@ -12687,17 +22596,23 @@ fi
12687 CRYPTOLIB=-lk5crypto 22596 CRYPTOLIB=-lk5crypto
12688 LIBS="$CRYPTOLIB $LIBS" 22597 LIBS="$CRYPTOLIB $LIBS"
12689 22598
12690$as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h 22599cat >>confdefs.h <<\_ACEOF
22600#define HAVE_LIBK5CRYPTO 1
22601_ACEOF
12691 22602
12692 fi 22603 fi
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5 22604 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
12694$as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; } 22605$as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12695if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then : 22606if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
12696 $as_echo_n "(cached) " >&6 22607 $as_echo_n "(cached) " >&6
12697else 22608else
12698 ac_check_lib_save_LIBS=$LIBS 22609 ac_check_lib_save_LIBS=$LIBS
12699LIBS="-lkrb5 $LIBS" 22610LIBS="-lkrb5 $LIBS"
12700cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22611cat >conftest.$ac_ext <<_ACEOF
22612/* confdefs.h. */
22613_ACEOF
22614cat confdefs.h >>conftest.$ac_ext
22615cat >>conftest.$ac_ext <<_ACEOF
12701/* end confdefs.h. */ 22616/* end confdefs.h. */
12702 22617
12703/* Override any GCC internal prototype to avoid an error. 22618/* Override any GCC internal prototype to avoid an error.
@@ -12715,18 +22630,43 @@ return krb5_init_context ();
12715 return 0; 22630 return 0;
12716} 22631}
12717_ACEOF 22632_ACEOF
12718if ac_fn_c_try_link "$LINENO"; then : 22633rm -f conftest.$ac_objext conftest$ac_exeext
22634if { (ac_try="$ac_link"
22635case "(($ac_try" in
22636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22637 *) ac_try_echo=$ac_try;;
22638esac
22639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22640$as_echo "$ac_try_echo") >&5
22641 (eval "$ac_link") 2>conftest.er1
22642 ac_status=$?
22643 grep -v '^ *+' conftest.er1 >conftest.err
22644 rm -f conftest.er1
22645 cat conftest.err >&5
22646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22647 (exit $ac_status); } && {
22648 test -z "$ac_c_werror_flag" ||
22649 test ! -s conftest.err
22650 } && test -s conftest$ac_exeext && {
22651 test "$cross_compiling" = yes ||
22652 $as_test_x conftest$ac_exeext
22653 }; then
12719 ac_cv_lib_krb5_krb5_init_context=yes 22654 ac_cv_lib_krb5_krb5_init_context=yes
12720else 22655else
12721 ac_cv_lib_krb5_krb5_init_context=no 22656 $as_echo "$as_me: failed program was:" >&5
22657sed 's/^/| /' conftest.$ac_ext >&5
22658
22659 ac_cv_lib_krb5_krb5_init_context=no
12722fi 22660fi
12723rm -f core conftest.err conftest.$ac_objext \ 22661
12724 conftest$ac_exeext conftest.$ac_ext 22662rm -rf conftest.dSYM
22663rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22664 conftest$ac_exeext conftest.$ac_ext
12725LIBS=$ac_check_lib_save_LIBS 22665LIBS=$ac_check_lib_save_LIBS
12726fi 22666fi
12727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5 22667{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12728$as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; } 22668$as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12729if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then : 22669if test $ac_cv_lib_krb5_krb5_init_context = yes; then
12730 have_krb5=yes 22670 have_krb5=yes
12731else 22671else
12732 have_krb5=no 22672 have_krb5=no
@@ -12736,18 +22676,24 @@ fi
12736 KRB5LIB=-lkrb5 22676 KRB5LIB=-lkrb5
12737 LIBS="$KRB5LIB $LIBS" 22677 LIBS="$KRB5LIB $LIBS"
12738 22678
12739$as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h 22679cat >>confdefs.h <<\_ACEOF
22680#define HAVE_LIBKRB5 1
22681_ACEOF
12740 22682
12741 fi 22683 fi
12742 if test "${with_kerberos5}" = no; then 22684 if test "${with_kerberos5}" = no; then
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5 22685 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
12744$as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; } 22686$as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
12745if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then : 22687if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
12746 $as_echo_n "(cached) " >&6 22688 $as_echo_n "(cached) " >&6
12747else 22689else
12748 ac_check_lib_save_LIBS=$LIBS 22690 ac_check_lib_save_LIBS=$LIBS
12749LIBS="-ldes425 $LIBS" 22691LIBS="-ldes425 $LIBS"
12750cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22692cat >conftest.$ac_ext <<_ACEOF
22693/* confdefs.h. */
22694_ACEOF
22695cat confdefs.h >>conftest.$ac_ext
22696cat >>conftest.$ac_ext <<_ACEOF
12751/* end confdefs.h. */ 22697/* end confdefs.h. */
12752 22698
12753/* Override any GCC internal prototype to avoid an error. 22699/* Override any GCC internal prototype to avoid an error.
@@ -12765,18 +22711,43 @@ return des_cbc_encrypt ();
12765 return 0; 22711 return 0;
12766} 22712}
12767_ACEOF 22713_ACEOF
12768if ac_fn_c_try_link "$LINENO"; then : 22714rm -f conftest.$ac_objext conftest$ac_exeext
22715if { (ac_try="$ac_link"
22716case "(($ac_try" in
22717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22718 *) ac_try_echo=$ac_try;;
22719esac
22720eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22721$as_echo "$ac_try_echo") >&5
22722 (eval "$ac_link") 2>conftest.er1
22723 ac_status=$?
22724 grep -v '^ *+' conftest.er1 >conftest.err
22725 rm -f conftest.er1
22726 cat conftest.err >&5
22727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22728 (exit $ac_status); } && {
22729 test -z "$ac_c_werror_flag" ||
22730 test ! -s conftest.err
22731 } && test -s conftest$ac_exeext && {
22732 test "$cross_compiling" = yes ||
22733 $as_test_x conftest$ac_exeext
22734 }; then
12769 ac_cv_lib_des425_des_cbc_encrypt=yes 22735 ac_cv_lib_des425_des_cbc_encrypt=yes
12770else 22736else
12771 ac_cv_lib_des425_des_cbc_encrypt=no 22737 $as_echo "$as_me: failed program was:" >&5
22738sed 's/^/| /' conftest.$ac_ext >&5
22739
22740 ac_cv_lib_des425_des_cbc_encrypt=no
12772fi 22741fi
12773rm -f core conftest.err conftest.$ac_objext \ 22742
12774 conftest$ac_exeext conftest.$ac_ext 22743rm -rf conftest.dSYM
22744rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22745 conftest$ac_exeext conftest.$ac_ext
12775LIBS=$ac_check_lib_save_LIBS 22746LIBS=$ac_check_lib_save_LIBS
12776fi 22747fi
12777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 22748{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
12778$as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; } 22749$as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
12779if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then : 22750if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
12780 have_des425=yes 22751 have_des425=yes
12781else 22752else
12782 have_des425=no 22753 have_des425=no
@@ -12786,17 +22757,23 @@ fi
12786 DESLIB=-ldes425 22757 DESLIB=-ldes425
12787 LIBS="$DESLIB $LIBS" 22758 LIBS="$DESLIB $LIBS"
12788 22759
12789$as_echo "#define HAVE_LIBDES425 1" >>confdefs.h 22760cat >>confdefs.h <<\_ACEOF
22761#define HAVE_LIBDES425 1
22762_ACEOF
12790 22763
12791 else 22764 else
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5 22765 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
12793$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } 22766$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
12794if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then : 22767if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
12795 $as_echo_n "(cached) " >&6 22768 $as_echo_n "(cached) " >&6
12796else 22769else
12797 ac_check_lib_save_LIBS=$LIBS 22770 ac_check_lib_save_LIBS=$LIBS
12798LIBS="-ldes $LIBS" 22771LIBS="-ldes $LIBS"
12799cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22772cat >conftest.$ac_ext <<_ACEOF
22773/* confdefs.h. */
22774_ACEOF
22775cat confdefs.h >>conftest.$ac_ext
22776cat >>conftest.$ac_ext <<_ACEOF
12800/* end confdefs.h. */ 22777/* end confdefs.h. */
12801 22778
12802/* Override any GCC internal prototype to avoid an error. 22779/* Override any GCC internal prototype to avoid an error.
@@ -12814,18 +22791,43 @@ return des_cbc_encrypt ();
12814 return 0; 22791 return 0;
12815} 22792}
12816_ACEOF 22793_ACEOF
12817if ac_fn_c_try_link "$LINENO"; then : 22794rm -f conftest.$ac_objext conftest$ac_exeext
22795if { (ac_try="$ac_link"
22796case "(($ac_try" in
22797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22798 *) ac_try_echo=$ac_try;;
22799esac
22800eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22801$as_echo "$ac_try_echo") >&5
22802 (eval "$ac_link") 2>conftest.er1
22803 ac_status=$?
22804 grep -v '^ *+' conftest.er1 >conftest.err
22805 rm -f conftest.er1
22806 cat conftest.err >&5
22807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22808 (exit $ac_status); } && {
22809 test -z "$ac_c_werror_flag" ||
22810 test ! -s conftest.err
22811 } && test -s conftest$ac_exeext && {
22812 test "$cross_compiling" = yes ||
22813 $as_test_x conftest$ac_exeext
22814 }; then
12818 ac_cv_lib_des_des_cbc_encrypt=yes 22815 ac_cv_lib_des_des_cbc_encrypt=yes
12819else 22816else
12820 ac_cv_lib_des_des_cbc_encrypt=no 22817 $as_echo "$as_me: failed program was:" >&5
22818sed 's/^/| /' conftest.$ac_ext >&5
22819
22820 ac_cv_lib_des_des_cbc_encrypt=no
12821fi 22821fi
12822rm -f core conftest.err conftest.$ac_objext \ 22822
12823 conftest$ac_exeext conftest.$ac_ext 22823rm -rf conftest.dSYM
22824rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22825 conftest$ac_exeext conftest.$ac_ext
12824LIBS=$ac_check_lib_save_LIBS 22826LIBS=$ac_check_lib_save_LIBS
12825fi 22827fi
12826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 22828{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
12827$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } 22829$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
12828if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then : 22830if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
12829 have_des=yes 22831 have_des=yes
12830else 22832else
12831 have_des=no 22833 have_des=no
@@ -12835,18 +22837,24 @@ fi
12835 DESLIB=-ldes 22837 DESLIB=-ldes
12836 LIBS="$DESLIB $LIBS" 22838 LIBS="$DESLIB $LIBS"
12837 22839
12838$as_echo "#define HAVE_LIBDES 1" >>confdefs.h 22840cat >>confdefs.h <<\_ACEOF
22841#define HAVE_LIBDES 1
22842_ACEOF
12839 22843
12840 fi 22844 fi
12841 fi 22845 fi
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5 22846 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
12843$as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; } 22847$as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
12844if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then : 22848if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
12845 $as_echo_n "(cached) " >&6 22849 $as_echo_n "(cached) " >&6
12846else 22850else
12847 ac_check_lib_save_LIBS=$LIBS 22851 ac_check_lib_save_LIBS=$LIBS
12848LIBS="-lkrb4 $LIBS" 22852LIBS="-lkrb4 $LIBS"
12849cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22853cat >conftest.$ac_ext <<_ACEOF
22854/* confdefs.h. */
22855_ACEOF
22856cat confdefs.h >>conftest.$ac_ext
22857cat >>conftest.$ac_ext <<_ACEOF
12850/* end confdefs.h. */ 22858/* end confdefs.h. */
12851 22859
12852/* Override any GCC internal prototype to avoid an error. 22860/* Override any GCC internal prototype to avoid an error.
@@ -12864,18 +22872,43 @@ return krb_get_cred ();
12864 return 0; 22872 return 0;
12865} 22873}
12866_ACEOF 22874_ACEOF
12867if ac_fn_c_try_link "$LINENO"; then : 22875rm -f conftest.$ac_objext conftest$ac_exeext
22876if { (ac_try="$ac_link"
22877case "(($ac_try" in
22878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22879 *) ac_try_echo=$ac_try;;
22880esac
22881eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22882$as_echo "$ac_try_echo") >&5
22883 (eval "$ac_link") 2>conftest.er1
22884 ac_status=$?
22885 grep -v '^ *+' conftest.er1 >conftest.err
22886 rm -f conftest.er1
22887 cat conftest.err >&5
22888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889 (exit $ac_status); } && {
22890 test -z "$ac_c_werror_flag" ||
22891 test ! -s conftest.err
22892 } && test -s conftest$ac_exeext && {
22893 test "$cross_compiling" = yes ||
22894 $as_test_x conftest$ac_exeext
22895 }; then
12868 ac_cv_lib_krb4_krb_get_cred=yes 22896 ac_cv_lib_krb4_krb_get_cred=yes
12869else 22897else
12870 ac_cv_lib_krb4_krb_get_cred=no 22898 $as_echo "$as_me: failed program was:" >&5
22899sed 's/^/| /' conftest.$ac_ext >&5
22900
22901 ac_cv_lib_krb4_krb_get_cred=no
12871fi 22902fi
12872rm -f core conftest.err conftest.$ac_objext \ 22903
12873 conftest$ac_exeext conftest.$ac_ext 22904rm -rf conftest.dSYM
22905rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22906 conftest$ac_exeext conftest.$ac_ext
12874LIBS=$ac_check_lib_save_LIBS 22907LIBS=$ac_check_lib_save_LIBS
12875fi 22908fi
12876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5 22909{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
12877$as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; } 22910$as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
12878if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then : 22911if test $ac_cv_lib_krb4_krb_get_cred = yes; then
12879 have_krb4=yes 22912 have_krb4=yes
12880else 22913else
12881 have_krb4=no 22914 have_krb4=no
@@ -12885,17 +22918,23 @@ fi
12885 KRB4LIB=-lkrb4 22918 KRB4LIB=-lkrb4
12886 LIBS="$KRB4LIB $LIBS" 22919 LIBS="$KRB4LIB $LIBS"
12887 22920
12888$as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h 22921cat >>confdefs.h <<\_ACEOF
22922#define HAVE_LIBKRB4 1
22923_ACEOF
12889 22924
12890 else 22925 else
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5 22926 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
12892$as_echo_n "checking for krb_get_cred in -lkrb... " >&6; } 22927$as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
12893if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then : 22928if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
12894 $as_echo_n "(cached) " >&6 22929 $as_echo_n "(cached) " >&6
12895else 22930else
12896 ac_check_lib_save_LIBS=$LIBS 22931 ac_check_lib_save_LIBS=$LIBS
12897LIBS="-lkrb $LIBS" 22932LIBS="-lkrb $LIBS"
12898cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22933cat >conftest.$ac_ext <<_ACEOF
22934/* confdefs.h. */
22935_ACEOF
22936cat confdefs.h >>conftest.$ac_ext
22937cat >>conftest.$ac_ext <<_ACEOF
12899/* end confdefs.h. */ 22938/* end confdefs.h. */
12900 22939
12901/* Override any GCC internal prototype to avoid an error. 22940/* Override any GCC internal prototype to avoid an error.
@@ -12913,18 +22952,43 @@ return krb_get_cred ();
12913 return 0; 22952 return 0;
12914} 22953}
12915_ACEOF 22954_ACEOF
12916if ac_fn_c_try_link "$LINENO"; then : 22955rm -f conftest.$ac_objext conftest$ac_exeext
22956if { (ac_try="$ac_link"
22957case "(($ac_try" in
22958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22959 *) ac_try_echo=$ac_try;;
22960esac
22961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22962$as_echo "$ac_try_echo") >&5
22963 (eval "$ac_link") 2>conftest.er1
22964 ac_status=$?
22965 grep -v '^ *+' conftest.er1 >conftest.err
22966 rm -f conftest.er1
22967 cat conftest.err >&5
22968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969 (exit $ac_status); } && {
22970 test -z "$ac_c_werror_flag" ||
22971 test ! -s conftest.err
22972 } && test -s conftest$ac_exeext && {
22973 test "$cross_compiling" = yes ||
22974 $as_test_x conftest$ac_exeext
22975 }; then
12917 ac_cv_lib_krb_krb_get_cred=yes 22976 ac_cv_lib_krb_krb_get_cred=yes
12918else 22977else
12919 ac_cv_lib_krb_krb_get_cred=no 22978 $as_echo "$as_me: failed program was:" >&5
22979sed 's/^/| /' conftest.$ac_ext >&5
22980
22981 ac_cv_lib_krb_krb_get_cred=no
12920fi 22982fi
12921rm -f core conftest.err conftest.$ac_objext \ 22983
12922 conftest$ac_exeext conftest.$ac_ext 22984rm -rf conftest.dSYM
22985rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22986 conftest$ac_exeext conftest.$ac_ext
12923LIBS=$ac_check_lib_save_LIBS 22987LIBS=$ac_check_lib_save_LIBS
12924fi 22988fi
12925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5 22989{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
12926$as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; } 22990$as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
12927if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then : 22991if test $ac_cv_lib_krb_krb_get_cred = yes; then
12928 have_krb=yes 22992 have_krb=yes
12929else 22993else
12930 have_krb=no 22994 have_krb=no
@@ -12934,23 +22998,253 @@ fi
12934 KRB4LIB=-lkrb 22998 KRB4LIB=-lkrb
12935 LIBS="$KRB4LIB $LIBS" 22999 LIBS="$KRB4LIB $LIBS"
12936 23000
12937$as_echo "#define HAVE_LIBKRB 1" >>confdefs.h 23001cat >>confdefs.h <<\_ACEOF
23002#define HAVE_LIBKRB 1
23003_ACEOF
12938 23004
12939 fi 23005 fi
12940 fi 23006 fi
12941 fi 23007 fi
12942 23008
12943 if test "${with_kerberos5}" != no; then 23009 if test "${with_kerberos5}" != no; then
12944 for ac_header in krb5.h 23010
12945do : 23011for ac_header in krb5.h
12946 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default" 23012do
12947if test "x$ac_cv_header_krb5_h" = x""yes; then : 23013as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23014if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23015 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23016$as_echo_n "checking for $ac_header... " >&6; }
23017if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23018 $as_echo_n "(cached) " >&6
23019fi
23020ac_res=`eval 'as_val=${'$as_ac_Header'}
23021 $as_echo "$as_val"'`
23022 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23023$as_echo "$ac_res" >&6; }
23024else
23025 # Is the header compilable?
23026{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23027$as_echo_n "checking $ac_header usability... " >&6; }
23028cat >conftest.$ac_ext <<_ACEOF
23029/* confdefs.h. */
23030_ACEOF
23031cat confdefs.h >>conftest.$ac_ext
23032cat >>conftest.$ac_ext <<_ACEOF
23033/* end confdefs.h. */
23034$ac_includes_default
23035#include <$ac_header>
23036_ACEOF
23037rm -f conftest.$ac_objext
23038if { (ac_try="$ac_compile"
23039case "(($ac_try" in
23040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23041 *) ac_try_echo=$ac_try;;
23042esac
23043eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23044$as_echo "$ac_try_echo") >&5
23045 (eval "$ac_compile") 2>conftest.er1
23046 ac_status=$?
23047 grep -v '^ *+' conftest.er1 >conftest.err
23048 rm -f conftest.er1
23049 cat conftest.err >&5
23050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); } && {
23052 test -z "$ac_c_werror_flag" ||
23053 test ! -s conftest.err
23054 } && test -s conftest.$ac_objext; then
23055 ac_header_compiler=yes
23056else
23057 $as_echo "$as_me: failed program was:" >&5
23058sed 's/^/| /' conftest.$ac_ext >&5
23059
23060 ac_header_compiler=no
23061fi
23062
23063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23064{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23065$as_echo "$ac_header_compiler" >&6; }
23066
23067# Is the header present?
23068{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23069$as_echo_n "checking $ac_header presence... " >&6; }
23070cat >conftest.$ac_ext <<_ACEOF
23071/* confdefs.h. */
23072_ACEOF
23073cat confdefs.h >>conftest.$ac_ext
23074cat >>conftest.$ac_ext <<_ACEOF
23075/* end confdefs.h. */
23076#include <$ac_header>
23077_ACEOF
23078if { (ac_try="$ac_cpp conftest.$ac_ext"
23079case "(($ac_try" in
23080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23081 *) ac_try_echo=$ac_try;;
23082esac
23083eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23084$as_echo "$ac_try_echo") >&5
23085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23086 ac_status=$?
23087 grep -v '^ *+' conftest.er1 >conftest.err
23088 rm -f conftest.er1
23089 cat conftest.err >&5
23090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23091 (exit $ac_status); } >/dev/null && {
23092 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23093 test ! -s conftest.err
23094 }; then
23095 ac_header_preproc=yes
23096else
23097 $as_echo "$as_me: failed program was:" >&5
23098sed 's/^/| /' conftest.$ac_ext >&5
23099
23100 ac_header_preproc=no
23101fi
23102
23103rm -f conftest.err conftest.$ac_ext
23104{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23105$as_echo "$ac_header_preproc" >&6; }
23106
23107# So? What about this header?
23108case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23109 yes:no: )
23110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23111$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23113$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23114 ac_header_preproc=yes
23115 ;;
23116 no:yes:* )
23117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23118$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23120$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23122$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23124$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23126$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23127 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23128$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23129
23130 ;;
23131esac
23132{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23133$as_echo_n "checking for $ac_header... " >&6; }
23134if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23135 $as_echo_n "(cached) " >&6
23136else
23137 eval "$as_ac_Header=\$ac_header_preproc"
23138fi
23139ac_res=`eval 'as_val=${'$as_ac_Header'}
23140 $as_echo "$as_val"'`
23141 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23142$as_echo "$ac_res" >&6; }
23143
23144fi
23145if test `eval 'as_val=${'$as_ac_Header'}
23146 $as_echo "$as_val"'` = yes; then
12948 cat >>confdefs.h <<_ACEOF 23147 cat >>confdefs.h <<_ACEOF
12949#define HAVE_KRB5_H 1 23148#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12950_ACEOF 23149_ACEOF
12951 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h> 23150 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
12952" 23151$as_echo_n "checking for krb5_error.text... " >&6; }
12953if test "x$ac_cv_member_krb5_error_text" = x""yes; then : 23152if test "${ac_cv_member_krb5_error_text+set}" = set; then
23153 $as_echo_n "(cached) " >&6
23154else
23155 cat >conftest.$ac_ext <<_ACEOF
23156/* confdefs.h. */
23157_ACEOF
23158cat confdefs.h >>conftest.$ac_ext
23159cat >>conftest.$ac_ext <<_ACEOF
23160/* end confdefs.h. */
23161#include <krb5.h>
23162
23163int
23164main ()
23165{
23166static krb5_error ac_aggr;
23167if (ac_aggr.text)
23168return 0;
23169 ;
23170 return 0;
23171}
23172_ACEOF
23173rm -f conftest.$ac_objext
23174if { (ac_try="$ac_compile"
23175case "(($ac_try" in
23176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23177 *) ac_try_echo=$ac_try;;
23178esac
23179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23180$as_echo "$ac_try_echo") >&5
23181 (eval "$ac_compile") 2>conftest.er1
23182 ac_status=$?
23183 grep -v '^ *+' conftest.er1 >conftest.err
23184 rm -f conftest.er1
23185 cat conftest.err >&5
23186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23187 (exit $ac_status); } && {
23188 test -z "$ac_c_werror_flag" ||
23189 test ! -s conftest.err
23190 } && test -s conftest.$ac_objext; then
23191 ac_cv_member_krb5_error_text=yes
23192else
23193 $as_echo "$as_me: failed program was:" >&5
23194sed 's/^/| /' conftest.$ac_ext >&5
23195
23196 cat >conftest.$ac_ext <<_ACEOF
23197/* confdefs.h. */
23198_ACEOF
23199cat confdefs.h >>conftest.$ac_ext
23200cat >>conftest.$ac_ext <<_ACEOF
23201/* end confdefs.h. */
23202#include <krb5.h>
23203
23204int
23205main ()
23206{
23207static krb5_error ac_aggr;
23208if (sizeof ac_aggr.text)
23209return 0;
23210 ;
23211 return 0;
23212}
23213_ACEOF
23214rm -f conftest.$ac_objext
23215if { (ac_try="$ac_compile"
23216case "(($ac_try" in
23217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23218 *) ac_try_echo=$ac_try;;
23219esac
23220eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23221$as_echo "$ac_try_echo") >&5
23222 (eval "$ac_compile") 2>conftest.er1
23223 ac_status=$?
23224 grep -v '^ *+' conftest.er1 >conftest.err
23225 rm -f conftest.er1
23226 cat conftest.err >&5
23227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228 (exit $ac_status); } && {
23229 test -z "$ac_c_werror_flag" ||
23230 test ! -s conftest.err
23231 } && test -s conftest.$ac_objext; then
23232 ac_cv_member_krb5_error_text=yes
23233else
23234 $as_echo "$as_me: failed program was:" >&5
23235sed 's/^/| /' conftest.$ac_ext >&5
23236
23237 ac_cv_member_krb5_error_text=no
23238fi
23239
23240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23241fi
23242
23243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23244fi
23245{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
23246$as_echo "$ac_cv_member_krb5_error_text" >&6; }
23247if test $ac_cv_member_krb5_error_text = yes; then
12954 23248
12955cat >>confdefs.h <<_ACEOF 23249cat >>confdefs.h <<_ACEOF
12956#define HAVE_KRB5_ERROR_TEXT 1 23250#define HAVE_KRB5_ERROR_TEXT 1
@@ -12958,9 +23252,104 @@ _ACEOF
12958 23252
12959 23253
12960fi 23254fi
12961ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h> 23255{ $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
12962" 23256$as_echo_n "checking for krb5_error.e_text... " >&6; }
12963if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then : 23257if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
23258 $as_echo_n "(cached) " >&6
23259else
23260 cat >conftest.$ac_ext <<_ACEOF
23261/* confdefs.h. */
23262_ACEOF
23263cat confdefs.h >>conftest.$ac_ext
23264cat >>conftest.$ac_ext <<_ACEOF
23265/* end confdefs.h. */
23266#include <krb5.h>
23267
23268int
23269main ()
23270{
23271static krb5_error ac_aggr;
23272if (ac_aggr.e_text)
23273return 0;
23274 ;
23275 return 0;
23276}
23277_ACEOF
23278rm -f conftest.$ac_objext
23279if { (ac_try="$ac_compile"
23280case "(($ac_try" in
23281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23282 *) ac_try_echo=$ac_try;;
23283esac
23284eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23285$as_echo "$ac_try_echo") >&5
23286 (eval "$ac_compile") 2>conftest.er1
23287 ac_status=$?
23288 grep -v '^ *+' conftest.er1 >conftest.err
23289 rm -f conftest.er1
23290 cat conftest.err >&5
23291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23292 (exit $ac_status); } && {
23293 test -z "$ac_c_werror_flag" ||
23294 test ! -s conftest.err
23295 } && test -s conftest.$ac_objext; then
23296 ac_cv_member_krb5_error_e_text=yes
23297else
23298 $as_echo "$as_me: failed program was:" >&5
23299sed 's/^/| /' conftest.$ac_ext >&5
23300
23301 cat >conftest.$ac_ext <<_ACEOF
23302/* confdefs.h. */
23303_ACEOF
23304cat confdefs.h >>conftest.$ac_ext
23305cat >>conftest.$ac_ext <<_ACEOF
23306/* end confdefs.h. */
23307#include <krb5.h>
23308
23309int
23310main ()
23311{
23312static krb5_error ac_aggr;
23313if (sizeof ac_aggr.e_text)
23314return 0;
23315 ;
23316 return 0;
23317}
23318_ACEOF
23319rm -f conftest.$ac_objext
23320if { (ac_try="$ac_compile"
23321case "(($ac_try" in
23322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23323 *) ac_try_echo=$ac_try;;
23324esac
23325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23326$as_echo "$ac_try_echo") >&5
23327 (eval "$ac_compile") 2>conftest.er1
23328 ac_status=$?
23329 grep -v '^ *+' conftest.er1 >conftest.err
23330 rm -f conftest.er1
23331 cat conftest.err >&5
23332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); } && {
23334 test -z "$ac_c_werror_flag" ||
23335 test ! -s conftest.err
23336 } && test -s conftest.$ac_objext; then
23337 ac_cv_member_krb5_error_e_text=yes
23338else
23339 $as_echo "$as_me: failed program was:" >&5
23340sed 's/^/| /' conftest.$ac_ext >&5
23341
23342 ac_cv_member_krb5_error_e_text=no
23343fi
23344
23345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23346fi
23347
23348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23349fi
23350{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
23351$as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
23352if test $ac_cv_member_krb5_error_e_text = yes; then
12964 23353
12965cat >>confdefs.h <<_ACEOF 23354cat >>confdefs.h <<_ACEOF
12966#define HAVE_KRB5_ERROR_E_TEXT 1 23355#define HAVE_KRB5_ERROR_E_TEXT 1
@@ -12974,30 +23363,429 @@ fi
12974done 23363done
12975 23364
12976 else 23365 else
12977 for ac_header in des.h 23366
12978do : 23367for ac_header in des.h
12979 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default" 23368do
12980if test "x$ac_cv_header_des_h" = x""yes; then : 23369as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23370if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23371 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23372$as_echo_n "checking for $ac_header... " >&6; }
23373if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23374 $as_echo_n "(cached) " >&6
23375fi
23376ac_res=`eval 'as_val=${'$as_ac_Header'}
23377 $as_echo "$as_val"'`
23378 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23379$as_echo "$ac_res" >&6; }
23380else
23381 # Is the header compilable?
23382{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23383$as_echo_n "checking $ac_header usability... " >&6; }
23384cat >conftest.$ac_ext <<_ACEOF
23385/* confdefs.h. */
23386_ACEOF
23387cat confdefs.h >>conftest.$ac_ext
23388cat >>conftest.$ac_ext <<_ACEOF
23389/* end confdefs.h. */
23390$ac_includes_default
23391#include <$ac_header>
23392_ACEOF
23393rm -f conftest.$ac_objext
23394if { (ac_try="$ac_compile"
23395case "(($ac_try" in
23396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23397 *) ac_try_echo=$ac_try;;
23398esac
23399eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23400$as_echo "$ac_try_echo") >&5
23401 (eval "$ac_compile") 2>conftest.er1
23402 ac_status=$?
23403 grep -v '^ *+' conftest.er1 >conftest.err
23404 rm -f conftest.er1
23405 cat conftest.err >&5
23406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23407 (exit $ac_status); } && {
23408 test -z "$ac_c_werror_flag" ||
23409 test ! -s conftest.err
23410 } && test -s conftest.$ac_objext; then
23411 ac_header_compiler=yes
23412else
23413 $as_echo "$as_me: failed program was:" >&5
23414sed 's/^/| /' conftest.$ac_ext >&5
23415
23416 ac_header_compiler=no
23417fi
23418
23419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23420{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23421$as_echo "$ac_header_compiler" >&6; }
23422
23423# Is the header present?
23424{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23425$as_echo_n "checking $ac_header presence... " >&6; }
23426cat >conftest.$ac_ext <<_ACEOF
23427/* confdefs.h. */
23428_ACEOF
23429cat confdefs.h >>conftest.$ac_ext
23430cat >>conftest.$ac_ext <<_ACEOF
23431/* end confdefs.h. */
23432#include <$ac_header>
23433_ACEOF
23434if { (ac_try="$ac_cpp conftest.$ac_ext"
23435case "(($ac_try" in
23436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23437 *) ac_try_echo=$ac_try;;
23438esac
23439eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23440$as_echo "$ac_try_echo") >&5
23441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23442 ac_status=$?
23443 grep -v '^ *+' conftest.er1 >conftest.err
23444 rm -f conftest.er1
23445 cat conftest.err >&5
23446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447 (exit $ac_status); } >/dev/null && {
23448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23449 test ! -s conftest.err
23450 }; then
23451 ac_header_preproc=yes
23452else
23453 $as_echo "$as_me: failed program was:" >&5
23454sed 's/^/| /' conftest.$ac_ext >&5
23455
23456 ac_header_preproc=no
23457fi
23458
23459rm -f conftest.err conftest.$ac_ext
23460{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23461$as_echo "$ac_header_preproc" >&6; }
23462
23463# So? What about this header?
23464case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23465 yes:no: )
23466 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23467$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23469$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23470 ac_header_preproc=yes
23471 ;;
23472 no:yes:* )
23473 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23474$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23475 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23476$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23477 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23478$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23479 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23480$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23482$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23483 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23484$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23485
23486 ;;
23487esac
23488{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23489$as_echo_n "checking for $ac_header... " >&6; }
23490if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23491 $as_echo_n "(cached) " >&6
23492else
23493 eval "$as_ac_Header=\$ac_header_preproc"
23494fi
23495ac_res=`eval 'as_val=${'$as_ac_Header'}
23496 $as_echo "$as_val"'`
23497 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23498$as_echo "$ac_res" >&6; }
23499
23500fi
23501if test `eval 'as_val=${'$as_ac_Header'}
23502 $as_echo "$as_val"'` = yes; then
12981 cat >>confdefs.h <<_ACEOF 23503 cat >>confdefs.h <<_ACEOF
12982#define HAVE_DES_H 1 23504#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23505_ACEOF
23506
23507else
23508
23509for ac_header in kerberosIV/des.h
23510do
23511as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23512if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23513 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23514$as_echo_n "checking for $ac_header... " >&6; }
23515if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23516 $as_echo_n "(cached) " >&6
23517fi
23518ac_res=`eval 'as_val=${'$as_ac_Header'}
23519 $as_echo "$as_val"'`
23520 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23521$as_echo "$ac_res" >&6; }
23522else
23523 # Is the header compilable?
23524{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23525$as_echo_n "checking $ac_header usability... " >&6; }
23526cat >conftest.$ac_ext <<_ACEOF
23527/* confdefs.h. */
23528_ACEOF
23529cat confdefs.h >>conftest.$ac_ext
23530cat >>conftest.$ac_ext <<_ACEOF
23531/* end confdefs.h. */
23532$ac_includes_default
23533#include <$ac_header>
23534_ACEOF
23535rm -f conftest.$ac_objext
23536if { (ac_try="$ac_compile"
23537case "(($ac_try" in
23538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23539 *) ac_try_echo=$ac_try;;
23540esac
23541eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23542$as_echo "$ac_try_echo") >&5
23543 (eval "$ac_compile") 2>conftest.er1
23544 ac_status=$?
23545 grep -v '^ *+' conftest.er1 >conftest.err
23546 rm -f conftest.er1
23547 cat conftest.err >&5
23548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549 (exit $ac_status); } && {
23550 test -z "$ac_c_werror_flag" ||
23551 test ! -s conftest.err
23552 } && test -s conftest.$ac_objext; then
23553 ac_header_compiler=yes
23554else
23555 $as_echo "$as_me: failed program was:" >&5
23556sed 's/^/| /' conftest.$ac_ext >&5
23557
23558 ac_header_compiler=no
23559fi
23560
23561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23562{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23563$as_echo "$ac_header_compiler" >&6; }
23564
23565# Is the header present?
23566{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23567$as_echo_n "checking $ac_header presence... " >&6; }
23568cat >conftest.$ac_ext <<_ACEOF
23569/* confdefs.h. */
23570_ACEOF
23571cat confdefs.h >>conftest.$ac_ext
23572cat >>conftest.$ac_ext <<_ACEOF
23573/* end confdefs.h. */
23574#include <$ac_header>
12983_ACEOF 23575_ACEOF
23576if { (ac_try="$ac_cpp conftest.$ac_ext"
23577case "(($ac_try" in
23578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23579 *) ac_try_echo=$ac_try;;
23580esac
23581eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23582$as_echo "$ac_try_echo") >&5
23583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23584 ac_status=$?
23585 grep -v '^ *+' conftest.er1 >conftest.err
23586 rm -f conftest.er1
23587 cat conftest.err >&5
23588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589 (exit $ac_status); } >/dev/null && {
23590 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23591 test ! -s conftest.err
23592 }; then
23593 ac_header_preproc=yes
23594else
23595 $as_echo "$as_me: failed program was:" >&5
23596sed 's/^/| /' conftest.$ac_ext >&5
23597
23598 ac_header_preproc=no
23599fi
12984 23600
23601rm -f conftest.err conftest.$ac_ext
23602{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23603$as_echo "$ac_header_preproc" >&6; }
23604
23605# So? What about this header?
23606case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23607 yes:no: )
23608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23609$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23611$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23612 ac_header_preproc=yes
23613 ;;
23614 no:yes:* )
23615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23616$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23618$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23620$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23622$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23624$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23626$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23627
23628 ;;
23629esac
23630{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23631$as_echo_n "checking for $ac_header... " >&6; }
23632if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23633 $as_echo_n "(cached) " >&6
12985else 23634else
12986 for ac_header in kerberosIV/des.h 23635 eval "$as_ac_Header=\$ac_header_preproc"
12987do : 23636fi
12988 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default" 23637ac_res=`eval 'as_val=${'$as_ac_Header'}
12989if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then : 23638 $as_echo "$as_val"'`
23639 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23640$as_echo "$ac_res" >&6; }
23641
23642fi
23643if test `eval 'as_val=${'$as_ac_Header'}
23644 $as_echo "$as_val"'` = yes; then
12990 cat >>confdefs.h <<_ACEOF 23645 cat >>confdefs.h <<_ACEOF
12991#define HAVE_KERBEROSIV_DES_H 1 23646#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23647_ACEOF
23648
23649else
23650
23651for ac_header in kerberos/des.h
23652do
23653as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23654if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23655 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23656$as_echo_n "checking for $ac_header... " >&6; }
23657if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23658 $as_echo_n "(cached) " >&6
23659fi
23660ac_res=`eval 'as_val=${'$as_ac_Header'}
23661 $as_echo "$as_val"'`
23662 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23663$as_echo "$ac_res" >&6; }
23664else
23665 # Is the header compilable?
23666{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23667$as_echo_n "checking $ac_header usability... " >&6; }
23668cat >conftest.$ac_ext <<_ACEOF
23669/* confdefs.h. */
23670_ACEOF
23671cat confdefs.h >>conftest.$ac_ext
23672cat >>conftest.$ac_ext <<_ACEOF
23673/* end confdefs.h. */
23674$ac_includes_default
23675#include <$ac_header>
23676_ACEOF
23677rm -f conftest.$ac_objext
23678if { (ac_try="$ac_compile"
23679case "(($ac_try" in
23680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23681 *) ac_try_echo=$ac_try;;
23682esac
23683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23684$as_echo "$ac_try_echo") >&5
23685 (eval "$ac_compile") 2>conftest.er1
23686 ac_status=$?
23687 grep -v '^ *+' conftest.er1 >conftest.err
23688 rm -f conftest.er1
23689 cat conftest.err >&5
23690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23691 (exit $ac_status); } && {
23692 test -z "$ac_c_werror_flag" ||
23693 test ! -s conftest.err
23694 } && test -s conftest.$ac_objext; then
23695 ac_header_compiler=yes
23696else
23697 $as_echo "$as_me: failed program was:" >&5
23698sed 's/^/| /' conftest.$ac_ext >&5
23699
23700 ac_header_compiler=no
23701fi
23702
23703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23704{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23705$as_echo "$ac_header_compiler" >&6; }
23706
23707# Is the header present?
23708{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23709$as_echo_n "checking $ac_header presence... " >&6; }
23710cat >conftest.$ac_ext <<_ACEOF
23711/* confdefs.h. */
23712_ACEOF
23713cat confdefs.h >>conftest.$ac_ext
23714cat >>conftest.$ac_ext <<_ACEOF
23715/* end confdefs.h. */
23716#include <$ac_header>
12992_ACEOF 23717_ACEOF
23718if { (ac_try="$ac_cpp conftest.$ac_ext"
23719case "(($ac_try" in
23720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23721 *) ac_try_echo=$ac_try;;
23722esac
23723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23724$as_echo "$ac_try_echo") >&5
23725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23726 ac_status=$?
23727 grep -v '^ *+' conftest.er1 >conftest.err
23728 rm -f conftest.er1
23729 cat conftest.err >&5
23730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23731 (exit $ac_status); } >/dev/null && {
23732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23733 test ! -s conftest.err
23734 }; then
23735 ac_header_preproc=yes
23736else
23737 $as_echo "$as_me: failed program was:" >&5
23738sed 's/^/| /' conftest.$ac_ext >&5
23739
23740 ac_header_preproc=no
23741fi
23742
23743rm -f conftest.err conftest.$ac_ext
23744{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23745$as_echo "$ac_header_preproc" >&6; }
12993 23746
23747# So? What about this header?
23748case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23749 yes:no: )
23750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23751$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23752 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23753$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23754 ac_header_preproc=yes
23755 ;;
23756 no:yes:* )
23757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23758$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23760$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23762$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23764$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23766$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23768$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23769
23770 ;;
23771esac
23772{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23773$as_echo_n "checking for $ac_header... " >&6; }
23774if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23775 $as_echo_n "(cached) " >&6
12994else 23776else
12995 for ac_header in kerberos/des.h 23777 eval "$as_ac_Header=\$ac_header_preproc"
12996do : 23778fi
12997 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default" 23779ac_res=`eval 'as_val=${'$as_ac_Header'}
12998if test "x$ac_cv_header_kerberos_des_h" = x""yes; then : 23780 $as_echo "$as_val"'`
23781 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23782$as_echo "$ac_res" >&6; }
23783
23784fi
23785if test `eval 'as_val=${'$as_ac_Header'}
23786 $as_echo "$as_val"'` = yes; then
12999 cat >>confdefs.h <<_ACEOF 23787 cat >>confdefs.h <<_ACEOF
13000#define HAVE_KERBEROS_DES_H 1 23788#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13001_ACEOF 23789_ACEOF
13002 23790
13003fi 23791fi
@@ -13012,30 +23800,429 @@ fi
13012 23800
13013done 23801done
13014 23802
13015 for ac_header in krb.h 23803
13016do : 23804for ac_header in krb.h
13017 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default" 23805do
13018if test "x$ac_cv_header_krb_h" = x""yes; then : 23806as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23807if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23808 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23809$as_echo_n "checking for $ac_header... " >&6; }
23810if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23811 $as_echo_n "(cached) " >&6
23812fi
23813ac_res=`eval 'as_val=${'$as_ac_Header'}
23814 $as_echo "$as_val"'`
23815 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23816$as_echo "$ac_res" >&6; }
23817else
23818 # Is the header compilable?
23819{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23820$as_echo_n "checking $ac_header usability... " >&6; }
23821cat >conftest.$ac_ext <<_ACEOF
23822/* confdefs.h. */
23823_ACEOF
23824cat confdefs.h >>conftest.$ac_ext
23825cat >>conftest.$ac_ext <<_ACEOF
23826/* end confdefs.h. */
23827$ac_includes_default
23828#include <$ac_header>
23829_ACEOF
23830rm -f conftest.$ac_objext
23831if { (ac_try="$ac_compile"
23832case "(($ac_try" in
23833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23834 *) ac_try_echo=$ac_try;;
23835esac
23836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23837$as_echo "$ac_try_echo") >&5
23838 (eval "$ac_compile") 2>conftest.er1
23839 ac_status=$?
23840 grep -v '^ *+' conftest.er1 >conftest.err
23841 rm -f conftest.er1
23842 cat conftest.err >&5
23843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23844 (exit $ac_status); } && {
23845 test -z "$ac_c_werror_flag" ||
23846 test ! -s conftest.err
23847 } && test -s conftest.$ac_objext; then
23848 ac_header_compiler=yes
23849else
23850 $as_echo "$as_me: failed program was:" >&5
23851sed 's/^/| /' conftest.$ac_ext >&5
23852
23853 ac_header_compiler=no
23854fi
23855
23856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23857{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23858$as_echo "$ac_header_compiler" >&6; }
23859
23860# Is the header present?
23861{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23862$as_echo_n "checking $ac_header presence... " >&6; }
23863cat >conftest.$ac_ext <<_ACEOF
23864/* confdefs.h. */
23865_ACEOF
23866cat confdefs.h >>conftest.$ac_ext
23867cat >>conftest.$ac_ext <<_ACEOF
23868/* end confdefs.h. */
23869#include <$ac_header>
23870_ACEOF
23871if { (ac_try="$ac_cpp conftest.$ac_ext"
23872case "(($ac_try" in
23873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23874 *) ac_try_echo=$ac_try;;
23875esac
23876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23877$as_echo "$ac_try_echo") >&5
23878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23879 ac_status=$?
23880 grep -v '^ *+' conftest.er1 >conftest.err
23881 rm -f conftest.er1
23882 cat conftest.err >&5
23883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884 (exit $ac_status); } >/dev/null && {
23885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23886 test ! -s conftest.err
23887 }; then
23888 ac_header_preproc=yes
23889else
23890 $as_echo "$as_me: failed program was:" >&5
23891sed 's/^/| /' conftest.$ac_ext >&5
23892
23893 ac_header_preproc=no
23894fi
23895
23896rm -f conftest.err conftest.$ac_ext
23897{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23898$as_echo "$ac_header_preproc" >&6; }
23899
23900# So? What about this header?
23901case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23902 yes:no: )
23903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23904$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23906$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23907 ac_header_preproc=yes
23908 ;;
23909 no:yes:* )
23910 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23911$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23912 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23913$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23914 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23915$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23916 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23917$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23918 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23919$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23920 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23921$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23922
23923 ;;
23924esac
23925{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23926$as_echo_n "checking for $ac_header... " >&6; }
23927if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23928 $as_echo_n "(cached) " >&6
23929else
23930 eval "$as_ac_Header=\$ac_header_preproc"
23931fi
23932ac_res=`eval 'as_val=${'$as_ac_Header'}
23933 $as_echo "$as_val"'`
23934 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23935$as_echo "$ac_res" >&6; }
23936
23937fi
23938if test `eval 'as_val=${'$as_ac_Header'}
23939 $as_echo "$as_val"'` = yes; then
13019 cat >>confdefs.h <<_ACEOF 23940 cat >>confdefs.h <<_ACEOF
13020#define HAVE_KRB_H 1 23941#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13021_ACEOF 23942_ACEOF
13022 23943
13023else 23944else
13024 for ac_header in kerberosIV/krb.h 23945
13025do : 23946for ac_header in kerberosIV/krb.h
13026 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default" 23947do
13027if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then : 23948as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23950 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23951$as_echo_n "checking for $ac_header... " >&6; }
23952if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23953 $as_echo_n "(cached) " >&6
23954fi
23955ac_res=`eval 'as_val=${'$as_ac_Header'}
23956 $as_echo "$as_val"'`
23957 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23958$as_echo "$ac_res" >&6; }
23959else
23960 # Is the header compilable?
23961{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23962$as_echo_n "checking $ac_header usability... " >&6; }
23963cat >conftest.$ac_ext <<_ACEOF
23964/* confdefs.h. */
23965_ACEOF
23966cat confdefs.h >>conftest.$ac_ext
23967cat >>conftest.$ac_ext <<_ACEOF
23968/* end confdefs.h. */
23969$ac_includes_default
23970#include <$ac_header>
23971_ACEOF
23972rm -f conftest.$ac_objext
23973if { (ac_try="$ac_compile"
23974case "(($ac_try" in
23975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23976 *) ac_try_echo=$ac_try;;
23977esac
23978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23979$as_echo "$ac_try_echo") >&5
23980 (eval "$ac_compile") 2>conftest.er1
23981 ac_status=$?
23982 grep -v '^ *+' conftest.er1 >conftest.err
23983 rm -f conftest.er1
23984 cat conftest.err >&5
23985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23986 (exit $ac_status); } && {
23987 test -z "$ac_c_werror_flag" ||
23988 test ! -s conftest.err
23989 } && test -s conftest.$ac_objext; then
23990 ac_header_compiler=yes
23991else
23992 $as_echo "$as_me: failed program was:" >&5
23993sed 's/^/| /' conftest.$ac_ext >&5
23994
23995 ac_header_compiler=no
23996fi
23997
23998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23999{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24000$as_echo "$ac_header_compiler" >&6; }
24001
24002# Is the header present?
24003{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24004$as_echo_n "checking $ac_header presence... " >&6; }
24005cat >conftest.$ac_ext <<_ACEOF
24006/* confdefs.h. */
24007_ACEOF
24008cat confdefs.h >>conftest.$ac_ext
24009cat >>conftest.$ac_ext <<_ACEOF
24010/* end confdefs.h. */
24011#include <$ac_header>
24012_ACEOF
24013if { (ac_try="$ac_cpp conftest.$ac_ext"
24014case "(($ac_try" in
24015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24016 *) ac_try_echo=$ac_try;;
24017esac
24018eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24019$as_echo "$ac_try_echo") >&5
24020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24021 ac_status=$?
24022 grep -v '^ *+' conftest.er1 >conftest.err
24023 rm -f conftest.er1
24024 cat conftest.err >&5
24025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026 (exit $ac_status); } >/dev/null && {
24027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24028 test ! -s conftest.err
24029 }; then
24030 ac_header_preproc=yes
24031else
24032 $as_echo "$as_me: failed program was:" >&5
24033sed 's/^/| /' conftest.$ac_ext >&5
24034
24035 ac_header_preproc=no
24036fi
24037
24038rm -f conftest.err conftest.$ac_ext
24039{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24040$as_echo "$ac_header_preproc" >&6; }
24041
24042# So? What about this header?
24043case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24044 yes:no: )
24045 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24046$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24047 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24048$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24049 ac_header_preproc=yes
24050 ;;
24051 no:yes:* )
24052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24053$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24055$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24057$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24059$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24061$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24063$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24064
24065 ;;
24066esac
24067{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24068$as_echo_n "checking for $ac_header... " >&6; }
24069if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24070 $as_echo_n "(cached) " >&6
24071else
24072 eval "$as_ac_Header=\$ac_header_preproc"
24073fi
24074ac_res=`eval 'as_val=${'$as_ac_Header'}
24075 $as_echo "$as_val"'`
24076 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24077$as_echo "$ac_res" >&6; }
24078
24079fi
24080if test `eval 'as_val=${'$as_ac_Header'}
24081 $as_echo "$as_val"'` = yes; then
13028 cat >>confdefs.h <<_ACEOF 24082 cat >>confdefs.h <<_ACEOF
13029#define HAVE_KERBEROSIV_KRB_H 1 24083#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13030_ACEOF 24084_ACEOF
13031 24085
13032else 24086else
13033 for ac_header in kerberos/krb.h 24087
13034do : 24088for ac_header in kerberos/krb.h
13035 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default" 24089do
13036if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then : 24090as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24091if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24092 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24093$as_echo_n "checking for $ac_header... " >&6; }
24094if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24095 $as_echo_n "(cached) " >&6
24096fi
24097ac_res=`eval 'as_val=${'$as_ac_Header'}
24098 $as_echo "$as_val"'`
24099 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24100$as_echo "$ac_res" >&6; }
24101else
24102 # Is the header compilable?
24103{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24104$as_echo_n "checking $ac_header usability... " >&6; }
24105cat >conftest.$ac_ext <<_ACEOF
24106/* confdefs.h. */
24107_ACEOF
24108cat confdefs.h >>conftest.$ac_ext
24109cat >>conftest.$ac_ext <<_ACEOF
24110/* end confdefs.h. */
24111$ac_includes_default
24112#include <$ac_header>
24113_ACEOF
24114rm -f conftest.$ac_objext
24115if { (ac_try="$ac_compile"
24116case "(($ac_try" in
24117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24118 *) ac_try_echo=$ac_try;;
24119esac
24120eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24121$as_echo "$ac_try_echo") >&5
24122 (eval "$ac_compile") 2>conftest.er1
24123 ac_status=$?
24124 grep -v '^ *+' conftest.er1 >conftest.err
24125 rm -f conftest.er1
24126 cat conftest.err >&5
24127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24128 (exit $ac_status); } && {
24129 test -z "$ac_c_werror_flag" ||
24130 test ! -s conftest.err
24131 } && test -s conftest.$ac_objext; then
24132 ac_header_compiler=yes
24133else
24134 $as_echo "$as_me: failed program was:" >&5
24135sed 's/^/| /' conftest.$ac_ext >&5
24136
24137 ac_header_compiler=no
24138fi
24139
24140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24141{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24142$as_echo "$ac_header_compiler" >&6; }
24143
24144# Is the header present?
24145{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24146$as_echo_n "checking $ac_header presence... " >&6; }
24147cat >conftest.$ac_ext <<_ACEOF
24148/* confdefs.h. */
24149_ACEOF
24150cat confdefs.h >>conftest.$ac_ext
24151cat >>conftest.$ac_ext <<_ACEOF
24152/* end confdefs.h. */
24153#include <$ac_header>
24154_ACEOF
24155if { (ac_try="$ac_cpp conftest.$ac_ext"
24156case "(($ac_try" in
24157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24158 *) ac_try_echo=$ac_try;;
24159esac
24160eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24161$as_echo "$ac_try_echo") >&5
24162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24163 ac_status=$?
24164 grep -v '^ *+' conftest.er1 >conftest.err
24165 rm -f conftest.er1
24166 cat conftest.err >&5
24167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24168 (exit $ac_status); } >/dev/null && {
24169 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24170 test ! -s conftest.err
24171 }; then
24172 ac_header_preproc=yes
24173else
24174 $as_echo "$as_me: failed program was:" >&5
24175sed 's/^/| /' conftest.$ac_ext >&5
24176
24177 ac_header_preproc=no
24178fi
24179
24180rm -f conftest.err conftest.$ac_ext
24181{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24182$as_echo "$ac_header_preproc" >&6; }
24183
24184# So? What about this header?
24185case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24186 yes:no: )
24187 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24188$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24189 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24190$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24191 ac_header_preproc=yes
24192 ;;
24193 no:yes:* )
24194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24195$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24196 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24197$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24199$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24201$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24203$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24205$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24206
24207 ;;
24208esac
24209{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24210$as_echo_n "checking for $ac_header... " >&6; }
24211if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24212 $as_echo_n "(cached) " >&6
24213else
24214 eval "$as_ac_Header=\$ac_header_preproc"
24215fi
24216ac_res=`eval 'as_val=${'$as_ac_Header'}
24217 $as_echo "$as_val"'`
24218 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24219$as_echo "$ac_res" >&6; }
24220
24221fi
24222if test `eval 'as_val=${'$as_ac_Header'}
24223 $as_echo "$as_val"'` = yes; then
13037 cat >>confdefs.h <<_ACEOF 24224 cat >>confdefs.h <<_ACEOF
13038#define HAVE_KERBEROS_KRB_H 1 24225#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13039_ACEOF 24226_ACEOF
13040 24227
13041fi 24228fi
@@ -13051,12 +24238,145 @@ fi
13051done 24238done
13052 24239
13053 fi 24240 fi
13054 for ac_header in com_err.h 24241
13055do : 24242for ac_header in com_err.h
13056 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default" 24243do
13057if test "x$ac_cv_header_com_err_h" = x""yes; then : 24244as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24245if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24246 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24247$as_echo_n "checking for $ac_header... " >&6; }
24248if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24249 $as_echo_n "(cached) " >&6
24250fi
24251ac_res=`eval 'as_val=${'$as_ac_Header'}
24252 $as_echo "$as_val"'`
24253 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24254$as_echo "$ac_res" >&6; }
24255else
24256 # Is the header compilable?
24257{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24258$as_echo_n "checking $ac_header usability... " >&6; }
24259cat >conftest.$ac_ext <<_ACEOF
24260/* confdefs.h. */
24261_ACEOF
24262cat confdefs.h >>conftest.$ac_ext
24263cat >>conftest.$ac_ext <<_ACEOF
24264/* end confdefs.h. */
24265$ac_includes_default
24266#include <$ac_header>
24267_ACEOF
24268rm -f conftest.$ac_objext
24269if { (ac_try="$ac_compile"
24270case "(($ac_try" in
24271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24272 *) ac_try_echo=$ac_try;;
24273esac
24274eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24275$as_echo "$ac_try_echo") >&5
24276 (eval "$ac_compile") 2>conftest.er1
24277 ac_status=$?
24278 grep -v '^ *+' conftest.er1 >conftest.err
24279 rm -f conftest.er1
24280 cat conftest.err >&5
24281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24282 (exit $ac_status); } && {
24283 test -z "$ac_c_werror_flag" ||
24284 test ! -s conftest.err
24285 } && test -s conftest.$ac_objext; then
24286 ac_header_compiler=yes
24287else
24288 $as_echo "$as_me: failed program was:" >&5
24289sed 's/^/| /' conftest.$ac_ext >&5
24290
24291 ac_header_compiler=no
24292fi
24293
24294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24295{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24296$as_echo "$ac_header_compiler" >&6; }
24297
24298# Is the header present?
24299{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24300$as_echo_n "checking $ac_header presence... " >&6; }
24301cat >conftest.$ac_ext <<_ACEOF
24302/* confdefs.h. */
24303_ACEOF
24304cat confdefs.h >>conftest.$ac_ext
24305cat >>conftest.$ac_ext <<_ACEOF
24306/* end confdefs.h. */
24307#include <$ac_header>
24308_ACEOF
24309if { (ac_try="$ac_cpp conftest.$ac_ext"
24310case "(($ac_try" in
24311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24312 *) ac_try_echo=$ac_try;;
24313esac
24314eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24315$as_echo "$ac_try_echo") >&5
24316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24317 ac_status=$?
24318 grep -v '^ *+' conftest.er1 >conftest.err
24319 rm -f conftest.er1
24320 cat conftest.err >&5
24321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24322 (exit $ac_status); } >/dev/null && {
24323 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24324 test ! -s conftest.err
24325 }; then
24326 ac_header_preproc=yes
24327else
24328 $as_echo "$as_me: failed program was:" >&5
24329sed 's/^/| /' conftest.$ac_ext >&5
24330
24331 ac_header_preproc=no
24332fi
24333
24334rm -f conftest.err conftest.$ac_ext
24335{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24336$as_echo "$ac_header_preproc" >&6; }
24337
24338# So? What about this header?
24339case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24340 yes:no: )
24341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24342$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24344$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24345 ac_header_preproc=yes
24346 ;;
24347 no:yes:* )
24348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24349$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24351$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24353$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24355$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24357$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24359$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24360
24361 ;;
24362esac
24363{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24364$as_echo_n "checking for $ac_header... " >&6; }
24365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24366 $as_echo_n "(cached) " >&6
24367else
24368 eval "$as_ac_Header=\$ac_header_preproc"
24369fi
24370ac_res=`eval 'as_val=${'$as_ac_Header'}
24371 $as_echo "$as_val"'`
24372 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24373$as_echo "$ac_res" >&6; }
24374
24375fi
24376if test `eval 'as_val=${'$as_ac_Header'}
24377 $as_echo "$as_val"'` = yes; then
13058 cat >>confdefs.h <<_ACEOF 24378 cat >>confdefs.h <<_ACEOF
13059#define HAVE_COM_ERR_H 1 24379#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13060_ACEOF 24380_ACEOF
13061 24381
13062fi 24382fi
@@ -13073,14 +24393,19 @@ fi
13073 24393
13074# Solaris requires -lintl if you want strerror (which calls dgettext) 24394# Solaris requires -lintl if you want strerror (which calls dgettext)
13075# to return localized messages. 24395# to return localized messages.
13076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5 24396
24397{ $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
13077$as_echo_n "checking for dgettext in -lintl... " >&6; } 24398$as_echo_n "checking for dgettext in -lintl... " >&6; }
13078if test "${ac_cv_lib_intl_dgettext+set}" = set; then : 24399if test "${ac_cv_lib_intl_dgettext+set}" = set; then
13079 $as_echo_n "(cached) " >&6 24400 $as_echo_n "(cached) " >&6
13080else 24401else
13081 ac_check_lib_save_LIBS=$LIBS 24402 ac_check_lib_save_LIBS=$LIBS
13082LIBS="-lintl $LIBS" 24403LIBS="-lintl $LIBS"
13083cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24404cat >conftest.$ac_ext <<_ACEOF
24405/* confdefs.h. */
24406_ACEOF
24407cat confdefs.h >>conftest.$ac_ext
24408cat >>conftest.$ac_ext <<_ACEOF
13084/* end confdefs.h. */ 24409/* end confdefs.h. */
13085 24410
13086/* Override any GCC internal prototype to avoid an error. 24411/* Override any GCC internal prototype to avoid an error.
@@ -13098,18 +24423,43 @@ return dgettext ();
13098 return 0; 24423 return 0;
13099} 24424}
13100_ACEOF 24425_ACEOF
13101if ac_fn_c_try_link "$LINENO"; then : 24426rm -f conftest.$ac_objext conftest$ac_exeext
24427if { (ac_try="$ac_link"
24428case "(($ac_try" in
24429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24430 *) ac_try_echo=$ac_try;;
24431esac
24432eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24433$as_echo "$ac_try_echo") >&5
24434 (eval "$ac_link") 2>conftest.er1
24435 ac_status=$?
24436 grep -v '^ *+' conftest.er1 >conftest.err
24437 rm -f conftest.er1
24438 cat conftest.err >&5
24439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440 (exit $ac_status); } && {
24441 test -z "$ac_c_werror_flag" ||
24442 test ! -s conftest.err
24443 } && test -s conftest$ac_exeext && {
24444 test "$cross_compiling" = yes ||
24445 $as_test_x conftest$ac_exeext
24446 }; then
13102 ac_cv_lib_intl_dgettext=yes 24447 ac_cv_lib_intl_dgettext=yes
13103else 24448else
13104 ac_cv_lib_intl_dgettext=no 24449 $as_echo "$as_me: failed program was:" >&5
24450sed 's/^/| /' conftest.$ac_ext >&5
24451
24452 ac_cv_lib_intl_dgettext=no
13105fi 24453fi
13106rm -f core conftest.err conftest.$ac_objext \ 24454
13107 conftest$ac_exeext conftest.$ac_ext 24455rm -rf conftest.dSYM
24456rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24457 conftest$ac_exeext conftest.$ac_ext
13108LIBS=$ac_check_lib_save_LIBS 24458LIBS=$ac_check_lib_save_LIBS
13109fi 24459fi
13110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5 24460{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
13111$as_echo "$ac_cv_lib_intl_dgettext" >&6; } 24461$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13112if test "x$ac_cv_lib_intl_dgettext" = x""yes; then : 24462if test $ac_cv_lib_intl_dgettext = yes; then
13113 cat >>confdefs.h <<_ACEOF 24463 cat >>confdefs.h <<_ACEOF
13114#define HAVE_LIBINTL 1 24464#define HAVE_LIBINTL 1
13115_ACEOF 24465_ACEOF
@@ -13119,17 +24469,21 @@ _ACEOF
13119fi 24469fi
13120 24470
13121 24471
13122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5 24472{ $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
13123$as_echo_n "checking whether localtime caches TZ... " >&6; } 24473$as_echo_n "checking whether localtime caches TZ... " >&6; }
13124if test "${emacs_cv_localtime_cache+set}" = set; then : 24474if test "${emacs_cv_localtime_cache+set}" = set; then
13125 $as_echo_n "(cached) " >&6 24475 $as_echo_n "(cached) " >&6
13126else 24476else
13127 if test x$ac_cv_func_tzset = xyes; then 24477 if test x$ac_cv_func_tzset = xyes; then
13128if test "$cross_compiling" = yes; then : 24478if test "$cross_compiling" = yes; then
13129 # If we have tzset, assume the worst when cross-compiling. 24479 # If we have tzset, assume the worst when cross-compiling.
13130emacs_cv_localtime_cache=yes 24480emacs_cv_localtime_cache=yes
13131else 24481else
13132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24482 cat >conftest.$ac_ext <<_ACEOF
24483/* confdefs.h. */
24484_ACEOF
24485cat confdefs.h >>conftest.$ac_ext
24486cat >>conftest.$ac_ext <<_ACEOF
13133/* end confdefs.h. */ 24487/* end confdefs.h. */
13134#include <time.h> 24488#include <time.h>
13135extern char **environ; 24489extern char **environ;
@@ -13161,48 +24515,170 @@ main()
13161 exit (0); 24515 exit (0);
13162} 24516}
13163_ACEOF 24517_ACEOF
13164if ac_fn_c_try_run "$LINENO"; then : 24518rm -f conftest$ac_exeext
24519if { (ac_try="$ac_link"
24520case "(($ac_try" in
24521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24522 *) ac_try_echo=$ac_try;;
24523esac
24524eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24525$as_echo "$ac_try_echo") >&5
24526 (eval "$ac_link") 2>&5
24527 ac_status=$?
24528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24530 { (case "(($ac_try" in
24531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24532 *) ac_try_echo=$ac_try;;
24533esac
24534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24535$as_echo "$ac_try_echo") >&5
24536 (eval "$ac_try") 2>&5
24537 ac_status=$?
24538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24539 (exit $ac_status); }; }; then
13165 emacs_cv_localtime_cache=no 24540 emacs_cv_localtime_cache=no
13166else 24541else
13167 emacs_cv_localtime_cache=yes 24542 $as_echo "$as_me: program exited with status $ac_status" >&5
24543$as_echo "$as_me: failed program was:" >&5
24544sed 's/^/| /' conftest.$ac_ext >&5
24545
24546( exit $ac_status )
24547emacs_cv_localtime_cache=yes
13168fi 24548fi
13169rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24549rm -rf conftest.dSYM
13170 conftest.$ac_objext conftest.beam conftest.$ac_ext 24550rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13171fi 24551fi
13172 24552
24553
13173else 24554else
13174 # If we lack tzset, report that localtime does not cache TZ, 24555 # If we lack tzset, report that localtime does not cache TZ,
13175 # since we can't invalidate the cache if we don't have tzset. 24556 # since we can't invalidate the cache if we don't have tzset.
13176 emacs_cv_localtime_cache=no 24557 emacs_cv_localtime_cache=no
13177fi 24558fi
13178fi 24559fi
13179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5 24560{ $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
13180$as_echo "$emacs_cv_localtime_cache" >&6; } 24561$as_echo "$emacs_cv_localtime_cache" >&6; }
13181if test $emacs_cv_localtime_cache = yes; then 24562if test $emacs_cv_localtime_cache = yes; then
13182 24563
13183$as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h 24564cat >>confdefs.h <<\_ACEOF
24565#define LOCALTIME_CACHE 1
24566_ACEOF
13184 24567
13185fi 24568fi
13186 24569
13187if test "x$HAVE_TIMEVAL" = xyes; then 24570if test "x$HAVE_TIMEVAL" = xyes; then
13188 for ac_func in gettimeofday 24571
13189do : 24572for ac_func in gettimeofday
13190 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 24573do
13191if test "x$ac_cv_func_gettimeofday" = x""yes; then : 24574as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24575{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24576$as_echo_n "checking for $ac_func... " >&6; }
24577if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24578 $as_echo_n "(cached) " >&6
24579else
24580 cat >conftest.$ac_ext <<_ACEOF
24581/* confdefs.h. */
24582_ACEOF
24583cat confdefs.h >>conftest.$ac_ext
24584cat >>conftest.$ac_ext <<_ACEOF
24585/* end confdefs.h. */
24586/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24588#define $ac_func innocuous_$ac_func
24589
24590/* System header to define __stub macros and hopefully few prototypes,
24591 which can conflict with char $ac_func (); below.
24592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24593 <limits.h> exists even on freestanding compilers. */
24594
24595#ifdef __STDC__
24596# include <limits.h>
24597#else
24598# include <assert.h>
24599#endif
24600
24601#undef $ac_func
24602
24603/* Override any GCC internal prototype to avoid an error.
24604 Use char because int might match the return type of a GCC
24605 builtin and then its argument prototype would still apply. */
24606#ifdef __cplusplus
24607extern "C"
24608#endif
24609char $ac_func ();
24610/* The GNU C library defines this for functions which it implements
24611 to always fail with ENOSYS. Some functions are actually named
24612 something starting with __ and the normal name is an alias. */
24613#if defined __stub_$ac_func || defined __stub___$ac_func
24614choke me
24615#endif
24616
24617int
24618main ()
24619{
24620return $ac_func ();
24621 ;
24622 return 0;
24623}
24624_ACEOF
24625rm -f conftest.$ac_objext conftest$ac_exeext
24626if { (ac_try="$ac_link"
24627case "(($ac_try" in
24628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24629 *) ac_try_echo=$ac_try;;
24630esac
24631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24632$as_echo "$ac_try_echo") >&5
24633 (eval "$ac_link") 2>conftest.er1
24634 ac_status=$?
24635 grep -v '^ *+' conftest.er1 >conftest.err
24636 rm -f conftest.er1
24637 cat conftest.err >&5
24638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639 (exit $ac_status); } && {
24640 test -z "$ac_c_werror_flag" ||
24641 test ! -s conftest.err
24642 } && test -s conftest$ac_exeext && {
24643 test "$cross_compiling" = yes ||
24644 $as_test_x conftest$ac_exeext
24645 }; then
24646 eval "$as_ac_var=yes"
24647else
24648 $as_echo "$as_me: failed program was:" >&5
24649sed 's/^/| /' conftest.$ac_ext >&5
24650
24651 eval "$as_ac_var=no"
24652fi
24653
24654rm -rf conftest.dSYM
24655rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24656 conftest$ac_exeext conftest.$ac_ext
24657fi
24658ac_res=`eval 'as_val=${'$as_ac_var'}
24659 $as_echo "$as_val"'`
24660 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24661$as_echo "$ac_res" >&6; }
24662if test `eval 'as_val=${'$as_ac_var'}
24663 $as_echo "$as_val"'` = yes; then
13192 cat >>confdefs.h <<_ACEOF 24664 cat >>confdefs.h <<_ACEOF
13193#define HAVE_GETTIMEOFDAY 1 24665#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13194_ACEOF 24666_ACEOF
13195 24667
13196fi 24668fi
13197done 24669done
13198 24670
13199 if test $ac_cv_func_gettimeofday = yes; then 24671 if test $ac_cv_func_gettimeofday = yes; then
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5 24672 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
13201$as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; } 24673$as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
13202if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then : 24674if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
13203 $as_echo_n "(cached) " >&6 24675 $as_echo_n "(cached) " >&6
13204else 24676else
13205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24677 cat >conftest.$ac_ext <<_ACEOF
24678/* confdefs.h. */
24679_ACEOF
24680cat confdefs.h >>conftest.$ac_ext
24681cat >>conftest.$ac_ext <<_ACEOF
13206/* end confdefs.h. */ 24682/* end confdefs.h. */
13207 24683
13208#ifdef TIME_WITH_SYS_TIME 24684#ifdef TIME_WITH_SYS_TIME
@@ -13224,35 +24700,268 @@ struct timeval time;
13224 return 0; 24700 return 0;
13225} 24701}
13226_ACEOF 24702_ACEOF
13227if ac_fn_c_try_compile "$LINENO"; then : 24703rm -f conftest.$ac_objext
24704if { (ac_try="$ac_compile"
24705case "(($ac_try" in
24706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24707 *) ac_try_echo=$ac_try;;
24708esac
24709eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24710$as_echo "$ac_try_echo") >&5
24711 (eval "$ac_compile") 2>conftest.er1
24712 ac_status=$?
24713 grep -v '^ *+' conftest.er1 >conftest.err
24714 rm -f conftest.er1
24715 cat conftest.err >&5
24716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24717 (exit $ac_status); } && {
24718 test -z "$ac_c_werror_flag" ||
24719 test ! -s conftest.err
24720 } && test -s conftest.$ac_objext; then
13228 emacs_cv_gettimeofday_two_arguments=yes 24721 emacs_cv_gettimeofday_two_arguments=yes
13229else 24722else
13230 emacs_cv_gettimeofday_two_arguments=no 24723 $as_echo "$as_me: failed program was:" >&5
24724sed 's/^/| /' conftest.$ac_ext >&5
24725
24726 emacs_cv_gettimeofday_two_arguments=no
13231fi 24727fi
24728
13232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13233fi 24730fi
13234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5 24731{ $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
13235$as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; } 24732$as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
13236 if test $emacs_cv_gettimeofday_two_arguments = no; then 24733 if test $emacs_cv_gettimeofday_two_arguments = no; then
13237 24734
13238$as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h 24735cat >>confdefs.h <<\_ACEOF
24736#define GETTIMEOFDAY_ONE_ARGUMENT 1
24737_ACEOF
13239 24738
13240 fi 24739 fi
13241 fi 24740 fi
13242fi 24741fi
13243 24742
13244ok_so_far=yes 24743ok_so_far=yes
13245ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" 24744{ $as_echo "$as_me:$LINENO: checking for socket" >&5
13246if test "x$ac_cv_func_socket" = x""yes; then : 24745$as_echo_n "checking for socket... " >&6; }
24746if test "${ac_cv_func_socket+set}" = set; then
24747 $as_echo_n "(cached) " >&6
24748else
24749 cat >conftest.$ac_ext <<_ACEOF
24750/* confdefs.h. */
24751_ACEOF
24752cat confdefs.h >>conftest.$ac_ext
24753cat >>conftest.$ac_ext <<_ACEOF
24754/* end confdefs.h. */
24755/* Define socket to an innocuous variant, in case <limits.h> declares socket.
24756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24757#define socket innocuous_socket
24758
24759/* System header to define __stub macros and hopefully few prototypes,
24760 which can conflict with char socket (); below.
24761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24762 <limits.h> exists even on freestanding compilers. */
24763
24764#ifdef __STDC__
24765# include <limits.h>
24766#else
24767# include <assert.h>
24768#endif
24769
24770#undef socket
24771
24772/* Override any GCC internal prototype to avoid an error.
24773 Use char because int might match the return type of a GCC
24774 builtin and then its argument prototype would still apply. */
24775#ifdef __cplusplus
24776extern "C"
24777#endif
24778char socket ();
24779/* The GNU C library defines this for functions which it implements
24780 to always fail with ENOSYS. Some functions are actually named
24781 something starting with __ and the normal name is an alias. */
24782#if defined __stub_socket || defined __stub___socket
24783choke me
24784#endif
24785
24786int
24787main ()
24788{
24789return socket ();
24790 ;
24791 return 0;
24792}
24793_ACEOF
24794rm -f conftest.$ac_objext conftest$ac_exeext
24795if { (ac_try="$ac_link"
24796case "(($ac_try" in
24797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24798 *) ac_try_echo=$ac_try;;
24799esac
24800eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24801$as_echo "$ac_try_echo") >&5
24802 (eval "$ac_link") 2>conftest.er1
24803 ac_status=$?
24804 grep -v '^ *+' conftest.er1 >conftest.err
24805 rm -f conftest.er1
24806 cat conftest.err >&5
24807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808 (exit $ac_status); } && {
24809 test -z "$ac_c_werror_flag" ||
24810 test ! -s conftest.err
24811 } && test -s conftest$ac_exeext && {
24812 test "$cross_compiling" = yes ||
24813 $as_test_x conftest$ac_exeext
24814 }; then
24815 ac_cv_func_socket=yes
24816else
24817 $as_echo "$as_me: failed program was:" >&5
24818sed 's/^/| /' conftest.$ac_ext >&5
13247 24819
24820 ac_cv_func_socket=no
24821fi
24822
24823rm -rf conftest.dSYM
24824rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24825 conftest$ac_exeext conftest.$ac_ext
24826fi
24827{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24828$as_echo "$ac_cv_func_socket" >&6; }
24829if test $ac_cv_func_socket = yes; then
24830 :
13248else 24831else
13249 ok_so_far=no 24832 ok_so_far=no
13250fi 24833fi
13251 24834
13252if test $ok_so_far = yes; then 24835if test $ok_so_far = yes; then
13253 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" 24836 if test "${ac_cv_header_netinet_in_h+set}" = set; then
13254if test "x$ac_cv_header_netinet_in_h" = x""yes; then : 24837 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24838$as_echo_n "checking for netinet/in.h... " >&6; }
24839if test "${ac_cv_header_netinet_in_h+set}" = set; then
24840 $as_echo_n "(cached) " >&6
24841fi
24842{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24843$as_echo "$ac_cv_header_netinet_in_h" >&6; }
24844else
24845 # Is the header compilable?
24846{ $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24847$as_echo_n "checking netinet/in.h usability... " >&6; }
24848cat >conftest.$ac_ext <<_ACEOF
24849/* confdefs.h. */
24850_ACEOF
24851cat confdefs.h >>conftest.$ac_ext
24852cat >>conftest.$ac_ext <<_ACEOF
24853/* end confdefs.h. */
24854$ac_includes_default
24855#include <netinet/in.h>
24856_ACEOF
24857rm -f conftest.$ac_objext
24858if { (ac_try="$ac_compile"
24859case "(($ac_try" in
24860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24861 *) ac_try_echo=$ac_try;;
24862esac
24863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24864$as_echo "$ac_try_echo") >&5
24865 (eval "$ac_compile") 2>conftest.er1
24866 ac_status=$?
24867 grep -v '^ *+' conftest.er1 >conftest.err
24868 rm -f conftest.er1
24869 cat conftest.err >&5
24870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24871 (exit $ac_status); } && {
24872 test -z "$ac_c_werror_flag" ||
24873 test ! -s conftest.err
24874 } && test -s conftest.$ac_objext; then
24875 ac_header_compiler=yes
24876else
24877 $as_echo "$as_me: failed program was:" >&5
24878sed 's/^/| /' conftest.$ac_ext >&5
24879
24880 ac_header_compiler=no
24881fi
24882
24883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24884{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24885$as_echo "$ac_header_compiler" >&6; }
13255 24886
24887# Is the header present?
24888{ $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24889$as_echo_n "checking netinet/in.h presence... " >&6; }
24890cat >conftest.$ac_ext <<_ACEOF
24891/* confdefs.h. */
24892_ACEOF
24893cat confdefs.h >>conftest.$ac_ext
24894cat >>conftest.$ac_ext <<_ACEOF
24895/* end confdefs.h. */
24896#include <netinet/in.h>
24897_ACEOF
24898if { (ac_try="$ac_cpp conftest.$ac_ext"
24899case "(($ac_try" in
24900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24901 *) ac_try_echo=$ac_try;;
24902esac
24903eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24904$as_echo "$ac_try_echo") >&5
24905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24906 ac_status=$?
24907 grep -v '^ *+' conftest.er1 >conftest.err
24908 rm -f conftest.er1
24909 cat conftest.err >&5
24910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24911 (exit $ac_status); } >/dev/null && {
24912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24913 test ! -s conftest.err
24914 }; then
24915 ac_header_preproc=yes
24916else
24917 $as_echo "$as_me: failed program was:" >&5
24918sed 's/^/| /' conftest.$ac_ext >&5
24919
24920 ac_header_preproc=no
24921fi
24922
24923rm -f conftest.err conftest.$ac_ext
24924{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24925$as_echo "$ac_header_preproc" >&6; }
24926
24927# So? What about this header?
24928case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24929 yes:no: )
24930 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24931$as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24932 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24933$as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24934 ac_header_preproc=yes
24935 ;;
24936 no:yes:* )
24937 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24938$as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24939 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24940$as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24941 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24942$as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24943 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24944$as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24945 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24946$as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24947 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24948$as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24949
24950 ;;
24951esac
24952{ $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24953$as_echo_n "checking for netinet/in.h... " >&6; }
24954if test "${ac_cv_header_netinet_in_h+set}" = set; then
24955 $as_echo_n "(cached) " >&6
24956else
24957 ac_cv_header_netinet_in_h=$ac_header_preproc
24958fi
24959{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24960$as_echo "$ac_cv_header_netinet_in_h" >&6; }
24961
24962fi
24963if test $ac_cv_header_netinet_in_h = yes; then
24964 :
13256else 24965else
13257 ok_so_far=no 24966 ok_so_far=no
13258fi 24967fi
@@ -13260,9 +24969,135 @@ fi
13260 24969
13261fi 24970fi
13262if test $ok_so_far = yes; then 24971if test $ok_so_far = yes; then
13263 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" 24972 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
13264if test "x$ac_cv_header_arpa_inet_h" = x""yes; then : 24973 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24974$as_echo_n "checking for arpa/inet.h... " >&6; }
24975if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24976 $as_echo_n "(cached) " >&6
24977fi
24978{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24979$as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24980else
24981 # Is the header compilable?
24982{ $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24983$as_echo_n "checking arpa/inet.h usability... " >&6; }
24984cat >conftest.$ac_ext <<_ACEOF
24985/* confdefs.h. */
24986_ACEOF
24987cat confdefs.h >>conftest.$ac_ext
24988cat >>conftest.$ac_ext <<_ACEOF
24989/* end confdefs.h. */
24990$ac_includes_default
24991#include <arpa/inet.h>
24992_ACEOF
24993rm -f conftest.$ac_objext
24994if { (ac_try="$ac_compile"
24995case "(($ac_try" in
24996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24997 *) ac_try_echo=$ac_try;;
24998esac
24999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25000$as_echo "$ac_try_echo") >&5
25001 (eval "$ac_compile") 2>conftest.er1
25002 ac_status=$?
25003 grep -v '^ *+' conftest.er1 >conftest.err
25004 rm -f conftest.er1
25005 cat conftest.err >&5
25006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25007 (exit $ac_status); } && {
25008 test -z "$ac_c_werror_flag" ||
25009 test ! -s conftest.err
25010 } && test -s conftest.$ac_objext; then
25011 ac_header_compiler=yes
25012else
25013 $as_echo "$as_me: failed program was:" >&5
25014sed 's/^/| /' conftest.$ac_ext >&5
25015
25016 ac_header_compiler=no
25017fi
13265 25018
25019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25020{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25021$as_echo "$ac_header_compiler" >&6; }
25022
25023# Is the header present?
25024{ $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
25025$as_echo_n "checking arpa/inet.h presence... " >&6; }
25026cat >conftest.$ac_ext <<_ACEOF
25027/* confdefs.h. */
25028_ACEOF
25029cat confdefs.h >>conftest.$ac_ext
25030cat >>conftest.$ac_ext <<_ACEOF
25031/* end confdefs.h. */
25032#include <arpa/inet.h>
25033_ACEOF
25034if { (ac_try="$ac_cpp conftest.$ac_ext"
25035case "(($ac_try" in
25036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25037 *) ac_try_echo=$ac_try;;
25038esac
25039eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25040$as_echo "$ac_try_echo") >&5
25041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25042 ac_status=$?
25043 grep -v '^ *+' conftest.er1 >conftest.err
25044 rm -f conftest.er1
25045 cat conftest.err >&5
25046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25047 (exit $ac_status); } >/dev/null && {
25048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25049 test ! -s conftest.err
25050 }; then
25051 ac_header_preproc=yes
25052else
25053 $as_echo "$as_me: failed program was:" >&5
25054sed 's/^/| /' conftest.$ac_ext >&5
25055
25056 ac_header_preproc=no
25057fi
25058
25059rm -f conftest.err conftest.$ac_ext
25060{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25061$as_echo "$ac_header_preproc" >&6; }
25062
25063# So? What about this header?
25064case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25065 yes:no: )
25066 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
25067$as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25068 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
25069$as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
25070 ac_header_preproc=yes
25071 ;;
25072 no:yes:* )
25073 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
25074$as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
25075 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
25076$as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
25077 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
25078$as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
25079 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
25080$as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
25081 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
25082$as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
25083 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
25084$as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
25085
25086 ;;
25087esac
25088{ $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
25089$as_echo_n "checking for arpa/inet.h... " >&6; }
25090if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25091 $as_echo_n "(cached) " >&6
25092else
25093 ac_cv_header_arpa_inet_h=$ac_header_preproc
25094fi
25095{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
25096$as_echo "$ac_cv_header_arpa_inet_h" >&6; }
25097
25098fi
25099if test $ac_cv_header_arpa_inet_h = yes; then
25100 :
13266else 25101else
13267 ok_so_far=no 25102 ok_so_far=no
13268fi 25103fi
@@ -13271,16 +25106,151 @@ fi
13271fi 25106fi
13272if test $ok_so_far = yes; then 25107if test $ok_so_far = yes; then
13273 25108
13274$as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h 25109cat >>confdefs.h <<\_ACEOF
25110#define HAVE_INET_SOCKETS 1
25111_ACEOF
13275 25112
13276fi 25113fi
13277 25114
25115
13278for ac_header in sys/ioctl.h 25116for ac_header in sys/ioctl.h
13279do : 25117do
13280 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 25118as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13281if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then : 25119if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25120 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25121$as_echo_n "checking for $ac_header... " >&6; }
25122if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25123 $as_echo_n "(cached) " >&6
25124fi
25125ac_res=`eval 'as_val=${'$as_ac_Header'}
25126 $as_echo "$as_val"'`
25127 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25128$as_echo "$ac_res" >&6; }
25129else
25130 # Is the header compilable?
25131{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25132$as_echo_n "checking $ac_header usability... " >&6; }
25133cat >conftest.$ac_ext <<_ACEOF
25134/* confdefs.h. */
25135_ACEOF
25136cat confdefs.h >>conftest.$ac_ext
25137cat >>conftest.$ac_ext <<_ACEOF
25138/* end confdefs.h. */
25139$ac_includes_default
25140#include <$ac_header>
25141_ACEOF
25142rm -f conftest.$ac_objext
25143if { (ac_try="$ac_compile"
25144case "(($ac_try" in
25145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25146 *) ac_try_echo=$ac_try;;
25147esac
25148eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25149$as_echo "$ac_try_echo") >&5
25150 (eval "$ac_compile") 2>conftest.er1
25151 ac_status=$?
25152 grep -v '^ *+' conftest.er1 >conftest.err
25153 rm -f conftest.er1
25154 cat conftest.err >&5
25155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25156 (exit $ac_status); } && {
25157 test -z "$ac_c_werror_flag" ||
25158 test ! -s conftest.err
25159 } && test -s conftest.$ac_objext; then
25160 ac_header_compiler=yes
25161else
25162 $as_echo "$as_me: failed program was:" >&5
25163sed 's/^/| /' conftest.$ac_ext >&5
25164
25165 ac_header_compiler=no
25166fi
25167
25168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25169{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25170$as_echo "$ac_header_compiler" >&6; }
25171
25172# Is the header present?
25173{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25174$as_echo_n "checking $ac_header presence... " >&6; }
25175cat >conftest.$ac_ext <<_ACEOF
25176/* confdefs.h. */
25177_ACEOF
25178cat confdefs.h >>conftest.$ac_ext
25179cat >>conftest.$ac_ext <<_ACEOF
25180/* end confdefs.h. */
25181#include <$ac_header>
25182_ACEOF
25183if { (ac_try="$ac_cpp conftest.$ac_ext"
25184case "(($ac_try" in
25185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25186 *) ac_try_echo=$ac_try;;
25187esac
25188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25189$as_echo "$ac_try_echo") >&5
25190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25191 ac_status=$?
25192 grep -v '^ *+' conftest.er1 >conftest.err
25193 rm -f conftest.er1
25194 cat conftest.err >&5
25195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196 (exit $ac_status); } >/dev/null && {
25197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25198 test ! -s conftest.err
25199 }; then
25200 ac_header_preproc=yes
25201else
25202 $as_echo "$as_me: failed program was:" >&5
25203sed 's/^/| /' conftest.$ac_ext >&5
25204
25205 ac_header_preproc=no
25206fi
25207
25208rm -f conftest.err conftest.$ac_ext
25209{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25210$as_echo "$ac_header_preproc" >&6; }
25211
25212# So? What about this header?
25213case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25214 yes:no: )
25215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25216$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25218$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25219 ac_header_preproc=yes
25220 ;;
25221 no:yes:* )
25222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25223$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25225$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25227$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25229$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25231$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25233$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25234
25235 ;;
25236esac
25237{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25238$as_echo_n "checking for $ac_header... " >&6; }
25239if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25240 $as_echo_n "(cached) " >&6
25241else
25242 eval "$as_ac_Header=\$ac_header_preproc"
25243fi
25244ac_res=`eval 'as_val=${'$as_ac_Header'}
25245 $as_echo "$as_val"'`
25246 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25247$as_echo "$ac_res" >&6; }
25248
25249fi
25250if test `eval 'as_val=${'$as_ac_Header'}
25251 $as_echo "$as_val"'` = yes; then
13282 cat >>confdefs.h <<_ACEOF 25252 cat >>confdefs.h <<_ACEOF
13283#define HAVE_SYS_IOCTL_H 1 25253#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13284_ACEOF 25254_ACEOF
13285 25255
13286fi 25256fi
@@ -13290,26 +25260,123 @@ done
13290 25260
13291if test -f /usr/lpp/X11/bin/smt.exp; then 25261if test -f /usr/lpp/X11/bin/smt.exp; then
13292 25262
13293$as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h 25263cat >>confdefs.h <<\_ACEOF
25264#define HAVE_AIX_SMT_EXP 1
25265_ACEOF
13294 25266
13295fi 25267fi
13296 25268
13297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5 25269{ $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
13298$as_echo_n "checking whether system supports dynamic ptys... " >&6; } 25270$as_echo_n "checking whether system supports dynamic ptys... " >&6; }
13299if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then 25271if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25272 { $as_echo "$as_me:$LINENO: result: yes" >&5
13301$as_echo "yes" >&6; } 25273$as_echo "yes" >&6; }
13302 25274
13303$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h 25275cat >>confdefs.h <<\_ACEOF
25276#define HAVE_DEV_PTMX 1
25277_ACEOF
13304 25278
13305else 25279else
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25280 { $as_echo "$as_me:$LINENO: result: no" >&5
13307$as_echo "no" >&6; } 25281$as_echo "no" >&6; }
13308fi 25282fi
13309 25283
13310ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 25284{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
13311if test "x$ac_cv_type_pid_t" = x""yes; then : 25285$as_echo_n "checking for pid_t... " >&6; }
25286if test "${ac_cv_type_pid_t+set}" = set; then
25287 $as_echo_n "(cached) " >&6
25288else
25289 ac_cv_type_pid_t=no
25290cat >conftest.$ac_ext <<_ACEOF
25291/* confdefs.h. */
25292_ACEOF
25293cat confdefs.h >>conftest.$ac_ext
25294cat >>conftest.$ac_ext <<_ACEOF
25295/* end confdefs.h. */
25296$ac_includes_default
25297int
25298main ()
25299{
25300if (sizeof (pid_t))
25301 return 0;
25302 ;
25303 return 0;
25304}
25305_ACEOF
25306rm -f conftest.$ac_objext
25307if { (ac_try="$ac_compile"
25308case "(($ac_try" in
25309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25310 *) ac_try_echo=$ac_try;;
25311esac
25312eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25313$as_echo "$ac_try_echo") >&5
25314 (eval "$ac_compile") 2>conftest.er1
25315 ac_status=$?
25316 grep -v '^ *+' conftest.er1 >conftest.err
25317 rm -f conftest.er1
25318 cat conftest.err >&5
25319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25320 (exit $ac_status); } && {
25321 test -z "$ac_c_werror_flag" ||
25322 test ! -s conftest.err
25323 } && test -s conftest.$ac_objext; then
25324 cat >conftest.$ac_ext <<_ACEOF
25325/* confdefs.h. */
25326_ACEOF
25327cat confdefs.h >>conftest.$ac_ext
25328cat >>conftest.$ac_ext <<_ACEOF
25329/* end confdefs.h. */
25330$ac_includes_default
25331int
25332main ()
25333{
25334if (sizeof ((pid_t)))
25335 return 0;
25336 ;
25337 return 0;
25338}
25339_ACEOF
25340rm -f conftest.$ac_objext
25341if { (ac_try="$ac_compile"
25342case "(($ac_try" in
25343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25344 *) ac_try_echo=$ac_try;;
25345esac
25346eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25347$as_echo "$ac_try_echo") >&5
25348 (eval "$ac_compile") 2>conftest.er1
25349 ac_status=$?
25350 grep -v '^ *+' conftest.er1 >conftest.err
25351 rm -f conftest.er1
25352 cat conftest.err >&5
25353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354 (exit $ac_status); } && {
25355 test -z "$ac_c_werror_flag" ||
25356 test ! -s conftest.err
25357 } && test -s conftest.$ac_objext; then
25358 :
25359else
25360 $as_echo "$as_me: failed program was:" >&5
25361sed 's/^/| /' conftest.$ac_ext >&5
25362
25363 ac_cv_type_pid_t=yes
25364fi
25365
25366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25367else
25368 $as_echo "$as_me: failed program was:" >&5
25369sed 's/^/| /' conftest.$ac_ext >&5
25370
25371
25372fi
13312 25373
25374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25375fi
25376{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25377$as_echo "$ac_cv_type_pid_t" >&6; }
25378if test $ac_cv_type_pid_t = yes; then
25379 :
13313else 25380else
13314 25381
13315cat >>confdefs.h <<_ACEOF 25382cat >>confdefs.h <<_ACEOF
@@ -13318,24 +25385,245 @@ _ACEOF
13318 25385
13319fi 25386fi
13320 25387
25388
13321for ac_header in vfork.h 25389for ac_header in vfork.h
13322do : 25390do
13323 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 25391as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13324if test "x$ac_cv_header_vfork_h" = x""yes; then : 25392if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25393 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25394$as_echo_n "checking for $ac_header... " >&6; }
25395if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25396 $as_echo_n "(cached) " >&6
25397fi
25398ac_res=`eval 'as_val=${'$as_ac_Header'}
25399 $as_echo "$as_val"'`
25400 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25401$as_echo "$ac_res" >&6; }
25402else
25403 # Is the header compilable?
25404{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25405$as_echo_n "checking $ac_header usability... " >&6; }
25406cat >conftest.$ac_ext <<_ACEOF
25407/* confdefs.h. */
25408_ACEOF
25409cat confdefs.h >>conftest.$ac_ext
25410cat >>conftest.$ac_ext <<_ACEOF
25411/* end confdefs.h. */
25412$ac_includes_default
25413#include <$ac_header>
25414_ACEOF
25415rm -f conftest.$ac_objext
25416if { (ac_try="$ac_compile"
25417case "(($ac_try" in
25418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25419 *) ac_try_echo=$ac_try;;
25420esac
25421eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25422$as_echo "$ac_try_echo") >&5
25423 (eval "$ac_compile") 2>conftest.er1
25424 ac_status=$?
25425 grep -v '^ *+' conftest.er1 >conftest.err
25426 rm -f conftest.er1
25427 cat conftest.err >&5
25428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25429 (exit $ac_status); } && {
25430 test -z "$ac_c_werror_flag" ||
25431 test ! -s conftest.err
25432 } && test -s conftest.$ac_objext; then
25433 ac_header_compiler=yes
25434else
25435 $as_echo "$as_me: failed program was:" >&5
25436sed 's/^/| /' conftest.$ac_ext >&5
25437
25438 ac_header_compiler=no
25439fi
25440
25441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25442{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25443$as_echo "$ac_header_compiler" >&6; }
25444
25445# Is the header present?
25446{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25447$as_echo_n "checking $ac_header presence... " >&6; }
25448cat >conftest.$ac_ext <<_ACEOF
25449/* confdefs.h. */
25450_ACEOF
25451cat confdefs.h >>conftest.$ac_ext
25452cat >>conftest.$ac_ext <<_ACEOF
25453/* end confdefs.h. */
25454#include <$ac_header>
25455_ACEOF
25456if { (ac_try="$ac_cpp conftest.$ac_ext"
25457case "(($ac_try" in
25458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25459 *) ac_try_echo=$ac_try;;
25460esac
25461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25462$as_echo "$ac_try_echo") >&5
25463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25464 ac_status=$?
25465 grep -v '^ *+' conftest.er1 >conftest.err
25466 rm -f conftest.er1
25467 cat conftest.err >&5
25468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469 (exit $ac_status); } >/dev/null && {
25470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25471 test ! -s conftest.err
25472 }; then
25473 ac_header_preproc=yes
25474else
25475 $as_echo "$as_me: failed program was:" >&5
25476sed 's/^/| /' conftest.$ac_ext >&5
25477
25478 ac_header_preproc=no
25479fi
25480
25481rm -f conftest.err conftest.$ac_ext
25482{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25483$as_echo "$ac_header_preproc" >&6; }
25484
25485# So? What about this header?
25486case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25487 yes:no: )
25488 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25489$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25490 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25491$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25492 ac_header_preproc=yes
25493 ;;
25494 no:yes:* )
25495 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25496$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25497 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25498$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25499 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25500$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25501 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25502$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25503 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25504$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25505 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25506$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25507
25508 ;;
25509esac
25510{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25511$as_echo_n "checking for $ac_header... " >&6; }
25512if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25513 $as_echo_n "(cached) " >&6
25514else
25515 eval "$as_ac_Header=\$ac_header_preproc"
25516fi
25517ac_res=`eval 'as_val=${'$as_ac_Header'}
25518 $as_echo "$as_val"'`
25519 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25520$as_echo "$ac_res" >&6; }
25521
25522fi
25523if test `eval 'as_val=${'$as_ac_Header'}
25524 $as_echo "$as_val"'` = yes; then
13325 cat >>confdefs.h <<_ACEOF 25525 cat >>confdefs.h <<_ACEOF
13326#define HAVE_VFORK_H 1 25526#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13327_ACEOF 25527_ACEOF
13328 25528
13329fi 25529fi
13330 25530
13331done 25531done
13332 25532
25533
25534
13333for ac_func in fork vfork 25535for ac_func in fork vfork
13334do : 25536do
13335 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 25537as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13336ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 25538{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13337eval as_val=\$$as_ac_var 25539$as_echo_n "checking for $ac_func... " >&6; }
13338 if test "x$as_val" = x""yes; then : 25540if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25541 $as_echo_n "(cached) " >&6
25542else
25543 cat >conftest.$ac_ext <<_ACEOF
25544/* confdefs.h. */
25545_ACEOF
25546cat confdefs.h >>conftest.$ac_ext
25547cat >>conftest.$ac_ext <<_ACEOF
25548/* end confdefs.h. */
25549/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25551#define $ac_func innocuous_$ac_func
25552
25553/* System header to define __stub macros and hopefully few prototypes,
25554 which can conflict with char $ac_func (); below.
25555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25556 <limits.h> exists even on freestanding compilers. */
25557
25558#ifdef __STDC__
25559# include <limits.h>
25560#else
25561# include <assert.h>
25562#endif
25563
25564#undef $ac_func
25565
25566/* Override any GCC internal prototype to avoid an error.
25567 Use char because int might match the return type of a GCC
25568 builtin and then its argument prototype would still apply. */
25569#ifdef __cplusplus
25570extern "C"
25571#endif
25572char $ac_func ();
25573/* The GNU C library defines this for functions which it implements
25574 to always fail with ENOSYS. Some functions are actually named
25575 something starting with __ and the normal name is an alias. */
25576#if defined __stub_$ac_func || defined __stub___$ac_func
25577choke me
25578#endif
25579
25580int
25581main ()
25582{
25583return $ac_func ();
25584 ;
25585 return 0;
25586}
25587_ACEOF
25588rm -f conftest.$ac_objext conftest$ac_exeext
25589if { (ac_try="$ac_link"
25590case "(($ac_try" in
25591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25592 *) ac_try_echo=$ac_try;;
25593esac
25594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25595$as_echo "$ac_try_echo") >&5
25596 (eval "$ac_link") 2>conftest.er1
25597 ac_status=$?
25598 grep -v '^ *+' conftest.er1 >conftest.err
25599 rm -f conftest.er1
25600 cat conftest.err >&5
25601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25602 (exit $ac_status); } && {
25603 test -z "$ac_c_werror_flag" ||
25604 test ! -s conftest.err
25605 } && test -s conftest$ac_exeext && {
25606 test "$cross_compiling" = yes ||
25607 $as_test_x conftest$ac_exeext
25608 }; then
25609 eval "$as_ac_var=yes"
25610else
25611 $as_echo "$as_me: failed program was:" >&5
25612sed 's/^/| /' conftest.$ac_ext >&5
25613
25614 eval "$as_ac_var=no"
25615fi
25616
25617rm -rf conftest.dSYM
25618rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25619 conftest$ac_exeext conftest.$ac_ext
25620fi
25621ac_res=`eval 'as_val=${'$as_ac_var'}
25622 $as_echo "$as_val"'`
25623 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25624$as_echo "$ac_res" >&6; }
25625if test `eval 'as_val=${'$as_ac_var'}
25626 $as_echo "$as_val"'` = yes; then
13339 cat >>confdefs.h <<_ACEOF 25627 cat >>confdefs.h <<_ACEOF
13340#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 25628#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13341_ACEOF 25629_ACEOF
@@ -13344,15 +25632,19 @@ fi
13344done 25632done
13345 25633
13346if test "x$ac_cv_func_fork" = xyes; then 25634if test "x$ac_cv_func_fork" = xyes; then
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 25635 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
13348$as_echo_n "checking for working fork... " >&6; } 25636$as_echo_n "checking for working fork... " >&6; }
13349if test "${ac_cv_func_fork_works+set}" = set; then : 25637if test "${ac_cv_func_fork_works+set}" = set; then
13350 $as_echo_n "(cached) " >&6 25638 $as_echo_n "(cached) " >&6
13351else 25639else
13352 if test "$cross_compiling" = yes; then : 25640 if test "$cross_compiling" = yes; then
13353 ac_cv_func_fork_works=cross 25641 ac_cv_func_fork_works=cross
13354else 25642else
13355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25643 cat >conftest.$ac_ext <<_ACEOF
25644/* confdefs.h. */
25645_ACEOF
25646cat confdefs.h >>conftest.$ac_ext
25647cat >>conftest.$ac_ext <<_ACEOF
13356/* end confdefs.h. */ 25648/* end confdefs.h. */
13357$ac_includes_default 25649$ac_includes_default
13358int 25650int
@@ -13366,17 +25658,44 @@ main ()
13366 return 0; 25658 return 0;
13367} 25659}
13368_ACEOF 25660_ACEOF
13369if ac_fn_c_try_run "$LINENO"; then : 25661rm -f conftest$ac_exeext
25662if { (ac_try="$ac_link"
25663case "(($ac_try" in
25664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25665 *) ac_try_echo=$ac_try;;
25666esac
25667eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25668$as_echo "$ac_try_echo") >&5
25669 (eval "$ac_link") 2>&5
25670 ac_status=$?
25671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25673 { (case "(($ac_try" in
25674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25675 *) ac_try_echo=$ac_try;;
25676esac
25677eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25678$as_echo "$ac_try_echo") >&5
25679 (eval "$ac_try") 2>&5
25680 ac_status=$?
25681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25682 (exit $ac_status); }; }; then
13370 ac_cv_func_fork_works=yes 25683 ac_cv_func_fork_works=yes
13371else 25684else
13372 ac_cv_func_fork_works=no 25685 $as_echo "$as_me: program exited with status $ac_status" >&5
25686$as_echo "$as_me: failed program was:" >&5
25687sed 's/^/| /' conftest.$ac_ext >&5
25688
25689( exit $ac_status )
25690ac_cv_func_fork_works=no
13373fi 25691fi
13374rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25692rm -rf conftest.dSYM
13375 conftest.$ac_objext conftest.beam conftest.$ac_ext 25693rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13376fi 25694fi
13377 25695
25696
13378fi 25697fi
13379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 25698{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
13380$as_echo "$ac_cv_func_fork_works" >&6; } 25699$as_echo "$ac_cv_func_fork_works" >&6; }
13381 25700
13382else 25701else
@@ -13392,20 +25711,24 @@ if test "x$ac_cv_func_fork_works" = xcross; then
13392 ac_cv_func_fork_works=yes 25711 ac_cv_func_fork_works=yes
13393 ;; 25712 ;;
13394 esac 25713 esac
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 25714 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13396$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 25715$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13397fi 25716fi
13398ac_cv_func_vfork_works=$ac_cv_func_vfork 25717ac_cv_func_vfork_works=$ac_cv_func_vfork
13399if test "x$ac_cv_func_vfork" = xyes; then 25718if test "x$ac_cv_func_vfork" = xyes; then
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 25719 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
13401$as_echo_n "checking for working vfork... " >&6; } 25720$as_echo_n "checking for working vfork... " >&6; }
13402if test "${ac_cv_func_vfork_works+set}" = set; then : 25721if test "${ac_cv_func_vfork_works+set}" = set; then
13403 $as_echo_n "(cached) " >&6 25722 $as_echo_n "(cached) " >&6
13404else 25723else
13405 if test "$cross_compiling" = yes; then : 25724 if test "$cross_compiling" = yes; then
13406 ac_cv_func_vfork_works=cross 25725 ac_cv_func_vfork_works=cross
13407else 25726else
13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25727 cat >conftest.$ac_ext <<_ACEOF
25728/* confdefs.h. */
25729_ACEOF
25730cat confdefs.h >>conftest.$ac_ext
25731cat >>conftest.$ac_ext <<_ACEOF
13409/* end confdefs.h. */ 25732/* end confdefs.h. */
13410/* Thanks to Paul Eggert for this test. */ 25733/* Thanks to Paul Eggert for this test. */
13411$ac_includes_default 25734$ac_includes_default
@@ -13497,48 +25820,85 @@ main ()
13497 } 25820 }
13498} 25821}
13499_ACEOF 25822_ACEOF
13500if ac_fn_c_try_run "$LINENO"; then : 25823rm -f conftest$ac_exeext
25824if { (ac_try="$ac_link"
25825case "(($ac_try" in
25826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25827 *) ac_try_echo=$ac_try;;
25828esac
25829eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25830$as_echo "$ac_try_echo") >&5
25831 (eval "$ac_link") 2>&5
25832 ac_status=$?
25833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25835 { (case "(($ac_try" in
25836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25837 *) ac_try_echo=$ac_try;;
25838esac
25839eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25840$as_echo "$ac_try_echo") >&5
25841 (eval "$ac_try") 2>&5
25842 ac_status=$?
25843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25844 (exit $ac_status); }; }; then
13501 ac_cv_func_vfork_works=yes 25845 ac_cv_func_vfork_works=yes
13502else 25846else
13503 ac_cv_func_vfork_works=no 25847 $as_echo "$as_me: program exited with status $ac_status" >&5
25848$as_echo "$as_me: failed program was:" >&5
25849sed 's/^/| /' conftest.$ac_ext >&5
25850
25851( exit $ac_status )
25852ac_cv_func_vfork_works=no
13504fi 25853fi
13505rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25854rm -rf conftest.dSYM
13506 conftest.$ac_objext conftest.beam conftest.$ac_ext 25855rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13507fi 25856fi
13508 25857
25858
13509fi 25859fi
13510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 25860{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
13511$as_echo "$ac_cv_func_vfork_works" >&6; } 25861$as_echo "$ac_cv_func_vfork_works" >&6; }
13512 25862
13513fi; 25863fi;
13514if test "x$ac_cv_func_fork_works" = xcross; then 25864if test "x$ac_cv_func_fork_works" = xcross; then
13515 ac_cv_func_vfork_works=$ac_cv_func_vfork 25865 ac_cv_func_vfork_works=$ac_cv_func_vfork
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 25866 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13517$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 25867$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13518fi 25868fi
13519 25869
13520if test "x$ac_cv_func_vfork_works" = xyes; then 25870if test "x$ac_cv_func_vfork_works" = xyes; then
13521 25871
13522$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 25872cat >>confdefs.h <<\_ACEOF
25873#define HAVE_WORKING_VFORK 1
25874_ACEOF
13523 25875
13524else 25876else
13525 25877
13526$as_echo "#define vfork fork" >>confdefs.h 25878cat >>confdefs.h <<\_ACEOF
25879#define vfork fork
25880_ACEOF
13527 25881
13528fi 25882fi
13529if test "x$ac_cv_func_fork_works" = xyes; then 25883if test "x$ac_cv_func_fork_works" = xyes; then
13530 25884
13531$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 25885cat >>confdefs.h <<\_ACEOF
25886#define HAVE_WORKING_FORK 1
25887_ACEOF
13532 25888
13533fi 25889fi
13534 25890
13535 25891
13536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 25892{ $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13537$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 25893$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13538if test "${emacs_cv_langinfo_codeset+set}" = set; then : 25894if test "${emacs_cv_langinfo_codeset+set}" = set; then
13539 $as_echo_n "(cached) " >&6 25895 $as_echo_n "(cached) " >&6
13540else 25896else
13541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25897 cat >conftest.$ac_ext <<_ACEOF
25898/* confdefs.h. */
25899_ACEOF
25900cat confdefs.h >>conftest.$ac_ext
25901cat >>conftest.$ac_ext <<_ACEOF
13542/* end confdefs.h. */ 25902/* end confdefs.h. */
13543#include <langinfo.h> 25903#include <langinfo.h>
13544int 25904int
@@ -13549,25 +25909,145 @@ char* cs = nl_langinfo(CODESET);
13549 return 0; 25909 return 0;
13550} 25910}
13551_ACEOF 25911_ACEOF
13552if ac_fn_c_try_link "$LINENO"; then : 25912rm -f conftest.$ac_objext conftest$ac_exeext
25913if { (ac_try="$ac_link"
25914case "(($ac_try" in
25915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25916 *) ac_try_echo=$ac_try;;
25917esac
25918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25919$as_echo "$ac_try_echo") >&5
25920 (eval "$ac_link") 2>conftest.er1
25921 ac_status=$?
25922 grep -v '^ *+' conftest.er1 >conftest.err
25923 rm -f conftest.er1
25924 cat conftest.err >&5
25925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25926 (exit $ac_status); } && {
25927 test -z "$ac_c_werror_flag" ||
25928 test ! -s conftest.err
25929 } && test -s conftest$ac_exeext && {
25930 test "$cross_compiling" = yes ||
25931 $as_test_x conftest$ac_exeext
25932 }; then
13553 emacs_cv_langinfo_codeset=yes 25933 emacs_cv_langinfo_codeset=yes
13554else 25934else
13555 emacs_cv_langinfo_codeset=no 25935 $as_echo "$as_me: failed program was:" >&5
25936sed 's/^/| /' conftest.$ac_ext >&5
25937
25938 emacs_cv_langinfo_codeset=no
13556fi 25939fi
13557rm -f core conftest.err conftest.$ac_objext \ 25940
13558 conftest$ac_exeext conftest.$ac_ext 25941rm -rf conftest.dSYM
25942rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25943 conftest$ac_exeext conftest.$ac_ext
13559 25944
13560fi 25945fi
13561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5 25946{ $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
13562$as_echo "$emacs_cv_langinfo_codeset" >&6; } 25947$as_echo "$emacs_cv_langinfo_codeset" >&6; }
13563if test $emacs_cv_langinfo_codeset = yes; then 25948if test $emacs_cv_langinfo_codeset = yes; then
13564 25949
13565$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 25950cat >>confdefs.h <<\_ACEOF
25951#define HAVE_LANGINFO_CODESET 1
25952_ACEOF
25953
25954fi
25955
25956{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
25957$as_echo_n "checking for size_t... " >&6; }
25958if test "${ac_cv_type_size_t+set}" = set; then
25959 $as_echo_n "(cached) " >&6
25960else
25961 ac_cv_type_size_t=no
25962cat >conftest.$ac_ext <<_ACEOF
25963/* confdefs.h. */
25964_ACEOF
25965cat confdefs.h >>conftest.$ac_ext
25966cat >>conftest.$ac_ext <<_ACEOF
25967/* end confdefs.h. */
25968$ac_includes_default
25969int
25970main ()
25971{
25972if (sizeof (size_t))
25973 return 0;
25974 ;
25975 return 0;
25976}
25977_ACEOF
25978rm -f conftest.$ac_objext
25979if { (ac_try="$ac_compile"
25980case "(($ac_try" in
25981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25982 *) ac_try_echo=$ac_try;;
25983esac
25984eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25985$as_echo "$ac_try_echo") >&5
25986 (eval "$ac_compile") 2>conftest.er1
25987 ac_status=$?
25988 grep -v '^ *+' conftest.er1 >conftest.err
25989 rm -f conftest.er1
25990 cat conftest.err >&5
25991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25992 (exit $ac_status); } && {
25993 test -z "$ac_c_werror_flag" ||
25994 test ! -s conftest.err
25995 } && test -s conftest.$ac_objext; then
25996 cat >conftest.$ac_ext <<_ACEOF
25997/* confdefs.h. */
25998_ACEOF
25999cat confdefs.h >>conftest.$ac_ext
26000cat >>conftest.$ac_ext <<_ACEOF
26001/* end confdefs.h. */
26002$ac_includes_default
26003int
26004main ()
26005{
26006if (sizeof ((size_t)))
26007 return 0;
26008 ;
26009 return 0;
26010}
26011_ACEOF
26012rm -f conftest.$ac_objext
26013if { (ac_try="$ac_compile"
26014case "(($ac_try" in
26015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26016 *) ac_try_echo=$ac_try;;
26017esac
26018eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26019$as_echo "$ac_try_echo") >&5
26020 (eval "$ac_compile") 2>conftest.er1
26021 ac_status=$?
26022 grep -v '^ *+' conftest.er1 >conftest.err
26023 rm -f conftest.er1
26024 cat conftest.err >&5
26025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26026 (exit $ac_status); } && {
26027 test -z "$ac_c_werror_flag" ||
26028 test ! -s conftest.err
26029 } && test -s conftest.$ac_objext; then
26030 :
26031else
26032 $as_echo "$as_me: failed program was:" >&5
26033sed 's/^/| /' conftest.$ac_ext >&5
26034
26035 ac_cv_type_size_t=yes
26036fi
26037
26038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26039else
26040 $as_echo "$as_me: failed program was:" >&5
26041sed 's/^/| /' conftest.$ac_ext >&5
26042
13566 26043
13567fi 26044fi
13568 26045
13569ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 26046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13570if test "x$ac_cv_type_size_t" = x""yes; then : 26047fi
26048{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26049$as_echo "$ac_cv_type_size_t" >&6; }
26050if test $ac_cv_type_size_t = yes; then
13571 26051
13572cat >>confdefs.h <<_ACEOF 26052cat >>confdefs.h <<_ACEOF
13573#define HAVE_SIZE_T 1 26053#define HAVE_SIZE_T 1
@@ -13577,12 +26057,16 @@ _ACEOF
13577fi 26057fi
13578 26058
13579 26059
13580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 26060{ $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
13581$as_echo_n "checking for mbstate_t... " >&6; } 26061$as_echo_n "checking for mbstate_t... " >&6; }
13582if test "${ac_cv_type_mbstate_t+set}" = set; then : 26062if test "${ac_cv_type_mbstate_t+set}" = set; then
13583 $as_echo_n "(cached) " >&6 26063 $as_echo_n "(cached) " >&6
13584else 26064else
13585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26065 cat >conftest.$ac_ext <<_ACEOF
26066/* confdefs.h. */
26067_ACEOF
26068cat confdefs.h >>conftest.$ac_ext
26069cat >>conftest.$ac_ext <<_ACEOF
13586/* end confdefs.h. */ 26070/* end confdefs.h. */
13587$ac_includes_default 26071$ac_includes_default
13588# include <wchar.h> 26072# include <wchar.h>
@@ -13594,31 +26078,60 @@ mbstate_t x; return sizeof x;
13594 return 0; 26078 return 0;
13595} 26079}
13596_ACEOF 26080_ACEOF
13597if ac_fn_c_try_compile "$LINENO"; then : 26081rm -f conftest.$ac_objext
26082if { (ac_try="$ac_compile"
26083case "(($ac_try" in
26084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26085 *) ac_try_echo=$ac_try;;
26086esac
26087eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26088$as_echo "$ac_try_echo") >&5
26089 (eval "$ac_compile") 2>conftest.er1
26090 ac_status=$?
26091 grep -v '^ *+' conftest.er1 >conftest.err
26092 rm -f conftest.er1
26093 cat conftest.err >&5
26094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095 (exit $ac_status); } && {
26096 test -z "$ac_c_werror_flag" ||
26097 test ! -s conftest.err
26098 } && test -s conftest.$ac_objext; then
13598 ac_cv_type_mbstate_t=yes 26099 ac_cv_type_mbstate_t=yes
13599else 26100else
13600 ac_cv_type_mbstate_t=no 26101 $as_echo "$as_me: failed program was:" >&5
26102sed 's/^/| /' conftest.$ac_ext >&5
26103
26104 ac_cv_type_mbstate_t=no
13601fi 26105fi
26106
13602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13603fi 26108fi
13604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 26109{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
13605$as_echo "$ac_cv_type_mbstate_t" >&6; } 26110$as_echo "$ac_cv_type_mbstate_t" >&6; }
13606 if test $ac_cv_type_mbstate_t = yes; then 26111 if test $ac_cv_type_mbstate_t = yes; then
13607 26112
13608$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h 26113cat >>confdefs.h <<\_ACEOF
26114#define HAVE_MBSTATE_T 1
26115_ACEOF
13609 26116
13610 else 26117 else
13611 26118
13612$as_echo "#define mbstate_t int" >>confdefs.h 26119cat >>confdefs.h <<\_ACEOF
26120#define mbstate_t int
26121_ACEOF
13613 26122
13614 fi 26123 fi
13615 26124
13616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5 26125{ $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
13617$as_echo_n "checking for C restrict keyword... " >&6; } 26126$as_echo_n "checking for C restrict keyword... " >&6; }
13618if test "${emacs_cv_c_restrict+set}" = set; then : 26127if test "${emacs_cv_c_restrict+set}" = set; then
13619 $as_echo_n "(cached) " >&6 26128 $as_echo_n "(cached) " >&6
13620else 26129else
13621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26130 cat >conftest.$ac_ext <<_ACEOF
26131/* confdefs.h. */
26132_ACEOF
26133cat confdefs.h >>conftest.$ac_ext
26134cat >>conftest.$ac_ext <<_ACEOF
13622/* end confdefs.h. */ 26135/* end confdefs.h. */
13623void fred (int *restrict x); 26136void fred (int *restrict x);
13624int 26137int
@@ -13629,10 +26142,34 @@ main ()
13629 return 0; 26142 return 0;
13630} 26143}
13631_ACEOF 26144_ACEOF
13632if ac_fn_c_try_compile "$LINENO"; then : 26145rm -f conftest.$ac_objext
26146if { (ac_try="$ac_compile"
26147case "(($ac_try" in
26148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26149 *) ac_try_echo=$ac_try;;
26150esac
26151eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26152$as_echo "$ac_try_echo") >&5
26153 (eval "$ac_compile") 2>conftest.er1
26154 ac_status=$?
26155 grep -v '^ *+' conftest.er1 >conftest.err
26156 rm -f conftest.er1
26157 cat conftest.err >&5
26158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26159 (exit $ac_status); } && {
26160 test -z "$ac_c_werror_flag" ||
26161 test ! -s conftest.err
26162 } && test -s conftest.$ac_objext; then
13633 emacs_cv_c_restrict=yes 26163 emacs_cv_c_restrict=yes
13634else 26164else
13635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26165 $as_echo "$as_me: failed program was:" >&5
26166sed 's/^/| /' conftest.$ac_ext >&5
26167
26168 cat >conftest.$ac_ext <<_ACEOF
26169/* confdefs.h. */
26170_ACEOF
26171cat confdefs.h >>conftest.$ac_ext
26172cat >>conftest.$ac_ext <<_ACEOF
13636/* end confdefs.h. */ 26173/* end confdefs.h. */
13637void fred (int *__restrict x); 26174void fred (int *__restrict x);
13638int 26175int
@@ -13643,16 +26180,38 @@ main ()
13643 return 0; 26180 return 0;
13644} 26181}
13645_ACEOF 26182_ACEOF
13646if ac_fn_c_try_compile "$LINENO"; then : 26183rm -f conftest.$ac_objext
26184if { (ac_try="$ac_compile"
26185case "(($ac_try" in
26186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26187 *) ac_try_echo=$ac_try;;
26188esac
26189eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26190$as_echo "$ac_try_echo") >&5
26191 (eval "$ac_compile") 2>conftest.er1
26192 ac_status=$?
26193 grep -v '^ *+' conftest.er1 >conftest.err
26194 rm -f conftest.er1
26195 cat conftest.err >&5
26196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26197 (exit $ac_status); } && {
26198 test -z "$ac_c_werror_flag" ||
26199 test ! -s conftest.err
26200 } && test -s conftest.$ac_objext; then
13647 emacs_cv_c_restrict=__restrict 26201 emacs_cv_c_restrict=__restrict
13648else 26202else
13649 emacs_cv_c_restrict=no 26203 $as_echo "$as_me: failed program was:" >&5
26204sed 's/^/| /' conftest.$ac_ext >&5
26205
26206 emacs_cv_c_restrict=no
13650fi 26207fi
26208
13651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13652fi 26210fi
26211
13653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13654fi 26213fi
13655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5 26214{ $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
13656$as_echo "$emacs_cv_c_restrict" >&6; } 26215$as_echo "$emacs_cv_c_restrict" >&6; }
13657case "$emacs_cv_c_restrict" in 26216case "$emacs_cv_c_restrict" in
13658 yes) emacs_restrict=restrict;; 26217 yes) emacs_restrict=restrict;;
@@ -13667,12 +26226,16 @@ _ACEOF
13667 26226
13668fi 26227fi
13669 26228
13670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5 26229{ $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
13671$as_echo_n "checking for C restricted array declarations... " >&6; } 26230$as_echo_n "checking for C restricted array declarations... " >&6; }
13672if test "${emacs_cv_c_restrict_arr+set}" = set; then : 26231if test "${emacs_cv_c_restrict_arr+set}" = set; then
13673 $as_echo_n "(cached) " >&6 26232 $as_echo_n "(cached) " >&6
13674else 26233else
13675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26234 cat >conftest.$ac_ext <<_ACEOF
26235/* confdefs.h. */
26236_ACEOF
26237cat confdefs.h >>conftest.$ac_ext
26238cat >>conftest.$ac_ext <<_ACEOF
13676/* end confdefs.h. */ 26239/* end confdefs.h. */
13677void fred (int x[__restrict]); 26240void fred (int x[__restrict]);
13678int 26241int
@@ -13683,18 +26246,41 @@ main ()
13683 return 0; 26246 return 0;
13684} 26247}
13685_ACEOF 26248_ACEOF
13686if ac_fn_c_try_compile "$LINENO"; then : 26249rm -f conftest.$ac_objext
26250if { (ac_try="$ac_compile"
26251case "(($ac_try" in
26252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26253 *) ac_try_echo=$ac_try;;
26254esac
26255eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26256$as_echo "$ac_try_echo") >&5
26257 (eval "$ac_compile") 2>conftest.er1
26258 ac_status=$?
26259 grep -v '^ *+' conftest.er1 >conftest.err
26260 rm -f conftest.er1
26261 cat conftest.err >&5
26262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26263 (exit $ac_status); } && {
26264 test -z "$ac_c_werror_flag" ||
26265 test ! -s conftest.err
26266 } && test -s conftest.$ac_objext; then
13687 emacs_cv_c_restrict_arr=yes 26267 emacs_cv_c_restrict_arr=yes
13688else 26268else
13689 emacs_cv_c_restrict_arr=no 26269 $as_echo "$as_me: failed program was:" >&5
26270sed 's/^/| /' conftest.$ac_ext >&5
26271
26272 emacs_cv_c_restrict_arr=no
13690fi 26273fi
26274
13691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13692fi 26276fi
13693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5 26277{ $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
13694$as_echo "$emacs_cv_c_restrict_arr" >&6; } 26278$as_echo "$emacs_cv_c_restrict_arr" >&6; }
13695if test "$emacs_cv_c_restrict_arr" = yes; then 26279if test "$emacs_cv_c_restrict_arr" = yes; then
13696 26280
13697$as_echo "#define __restrict_arr __restrict" >>confdefs.h 26281cat >>confdefs.h <<\_ACEOF
26282#define __restrict_arr __restrict
26283_ACEOF
13698 26284
13699fi 26285fi
13700 26286
@@ -13709,17 +26295,21 @@ if test "x$GCC" = xyes \
13709 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \ 26295 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
13710 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \ 26296 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
13711 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then 26297 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
13712 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5 26298 { { $as_echo "$as_me:$LINENO: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&5
26299$as_echo "$as_me: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&2;}
26300 { (exit 1); exit 1; }; }
13713fi 26301fi
13714 26302
13715#### Find out which version of Emacs this is. 26303#### Find out which version of Emacs this is.
13716version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \ 26304version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
13717 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` 26305 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
13718if test x"${version}" = x; then 26306if test x"${version}" = x; then
13719 as_fn_error "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5 26307 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/src/emacs.c'." >&5
26308$as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/src/emacs.c'." >&2;}
26309 { (exit 1); exit 1; }; }
13720fi 26310fi
13721if test x"${version}" != x"$PACKAGE_VERSION"; then 26311if test x"${version}" != x"$PACKAGE_VERSION"; then
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5 26312 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
13723$as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;} 26313$as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
13724fi 26314fi
13725 26315
@@ -13793,30 +26383,47 @@ _ACEOF
13793 26383
13794XMENU_OBJ= 26384XMENU_OBJ=
13795XOBJ= 26385XOBJ=
26386FONT_OBJ=
13796if test "${HAVE_X_WINDOWS}" = "yes" ; then 26387if test "${HAVE_X_WINDOWS}" = "yes" ; then
13797 26388
13798$as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h 26389cat >>confdefs.h <<\_ACEOF
26390#define HAVE_X_WINDOWS 1
26391_ACEOF
13799 26392
13800 XMENU_OBJ=xmenu.o 26393 XMENU_OBJ=xmenu.o
13801 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o" 26394 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
26395 FONT_OBJ=xfont.o
26396 if test "$HAVE_XFT" = "yes"; then
26397 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
26398 elif test "$HAVE_FREETYPE" = "yes"; then
26399 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
26400 fi
26401
13802fi 26402fi
13803 26403
13804 26404
13805 26405
26406
13806WIDGET_OBJ= 26407WIDGET_OBJ=
13807MOTIF_LIBW= 26408MOTIF_LIBW=
13808if test "${USE_X_TOOLKIT}" != "none" ; then 26409if test "${USE_X_TOOLKIT}" != "none" ; then
13809 WIDGET_OBJ=widget.o 26410 WIDGET_OBJ=widget.o
13810 26411
13811$as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h 26412cat >>confdefs.h <<\_ACEOF
26413#define USE_X_TOOLKIT 1
26414_ACEOF
13812 26415
13813 if test "${USE_X_TOOLKIT}" = "LUCID"; then 26416 if test "${USE_X_TOOLKIT}" = "LUCID"; then
13814 26417
13815$as_echo "#define USE_LUCID 1" >>confdefs.h 26418cat >>confdefs.h <<\_ACEOF
26419#define USE_LUCID 1
26420_ACEOF
13816 26421
13817 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then 26422 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
13818 26423
13819$as_echo "#define USE_MOTIF 1" >>confdefs.h 26424cat >>confdefs.h <<\_ACEOF
26425#define USE_MOTIF 1
26426_ACEOF
13820 26427
13821 MOTIF_LIBW=-lXm 26428 MOTIF_LIBW=-lXm
13822 case "$opsys" in 26429 case "$opsys" in
@@ -13864,7 +26471,9 @@ fi
13864## otherwise, use our own copy. 26471## otherwise, use our own copy.
13865if test "${HAVE_X11}" = "yes" ; then 26472if test "${HAVE_X11}" = "yes" ; then
13866 26473
13867$as_echo "#define HAVE_X11 1" >>confdefs.h 26474cat >>confdefs.h <<\_ACEOF
26475#define HAVE_X11 1
26476_ACEOF
13868 26477
13869 26478
13870 if test "$USE_X_TOOLKIT" = "none"; then 26479 if test "$USE_X_TOOLKIT" = "none"; then
@@ -13891,17 +26500,23 @@ fi
13891 26500
13892if test "${HAVE_MENUS}" = "yes" ; then 26501if test "${HAVE_MENUS}" = "yes" ; then
13893 26502
13894$as_echo "#define HAVE_MENUS 1" >>confdefs.h 26503cat >>confdefs.h <<\_ACEOF
26504#define HAVE_MENUS 1
26505_ACEOF
13895 26506
13896fi 26507fi
13897if test "${GNU_MALLOC}" = "yes" ; then 26508if test "${GNU_MALLOC}" = "yes" ; then
13898 26509
13899$as_echo "#define GNU_MALLOC 1" >>confdefs.h 26510cat >>confdefs.h <<\_ACEOF
26511#define GNU_MALLOC 1
26512_ACEOF
13900 26513
13901fi 26514fi
13902if test "${REL_ALLOC}" = "yes" ; then 26515if test "${REL_ALLOC}" = "yes" ; then
13903 26516
13904$as_echo "#define REL_ALLOC 1" >>confdefs.h 26517cat >>confdefs.h <<\_ACEOF
26518#define REL_ALLOC 1
26519_ACEOF
13905 26520
13906fi 26521fi
13907 26522
@@ -13994,10 +26609,14 @@ WINDOW_SUPPORT=
13994## If we're using X11/GNUstep, define some consequences. 26609## If we're using X11/GNUstep, define some consequences.
13995if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then 26610if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
13996 26611
13997$as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h 26612cat >>confdefs.h <<\_ACEOF
26613#define HAVE_WINDOW_SYSTEM 1
26614_ACEOF
13998 26615
13999 26616
14000$as_echo "#define HAVE_MOUSE 1" >>confdefs.h 26617cat >>confdefs.h <<\_ACEOF
26618#define HAVE_MOUSE 1
26619_ACEOF
14001 26620
14002 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)" 26621 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
14003 TOOLTIP_SUPPORT="\${lispsource}mouse.elc" 26622 TOOLTIP_SUPPORT="\${lispsource}mouse.elc"
@@ -14014,6 +26633,8 @@ fi
14014 26633
14015 26634
14016 26635
26636
26637
14017#### Report on what we decided to do. 26638#### Report on what we decided to do.
14018#### Report GTK as a toolkit, even if it doesn't use Xt. 26639#### Report GTK as a toolkit, even if it doesn't use Xt.
14019#### It makes printing result more understandable as using GTK sets 26640#### It makes printing result more understandable as using GTK sets
@@ -14118,12 +26739,16 @@ cpp_undefs="`echo $srcdir $configuration $canonical unix mktime register X11 |
14118## from Makefile.c can correctly provide the arg `-traditional' to the 26739## from Makefile.c can correctly provide the arg `-traditional' to the
14119## C preprocessor. 26740## C preprocessor.
14120 26741
14121cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26742cat >conftest.$ac_ext <<_ACEOF
26743/* confdefs.h. */
26744_ACEOF
26745cat confdefs.h >>conftest.$ac_ext
26746cat >>conftest.$ac_ext <<_ACEOF
14122/* end confdefs.h. */ 26747/* end confdefs.h. */
14123yes..yes 26748yes..yes
14124_ACEOF 26749_ACEOF
14125if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26750if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14126 $EGREP "yes..yes" >/dev/null 2>&1; then : 26751 $EGREP "yes..yes" >/dev/null 2>&1; then
14127 CPP_NEED_TRADITIONAL=no 26752 CPP_NEED_TRADITIONAL=no
14128else 26753else
14129 CPP_NEED_TRADITIONAL=yes 26754 CPP_NEED_TRADITIONAL=yes
@@ -14162,13 +26787,13 @@ _ACEOF
14162 case $ac_val in #( 26787 case $ac_val in #(
14163 *${as_nl}*) 26788 *${as_nl}*)
14164 case $ac_var in #( 26789 case $ac_var in #(
14165 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 26790 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14166$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 26791$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14167 esac 26792 esac
14168 case $ac_var in #( 26793 case $ac_var in #(
14169 _ | IFS | as_nl) ;; #( 26794 _ | IFS | as_nl) ;; #(
14170 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 26795 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14171 *) { eval $ac_var=; unset $ac_var;} ;; 26796 *) $as_unset $ac_var ;;
14172 esac ;; 26797 esac ;;
14173 esac 26798 esac
14174 done 26799 done
@@ -14176,8 +26801,8 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14176 (set) 2>&1 | 26801 (set) 2>&1 |
14177 case $as_nl`(ac_space=' '; set) 2>&1` in #( 26802 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14178 *${as_nl}ac_space=\ *) 26803 *${as_nl}ac_space=\ *)
14179 # `set' does not quote correctly, so add quotes: double-quote 26804 # `set' does not quote correctly, so add quotes (double-quote
14180 # substitution turns \\\\ into \\, and sed turns \\ into \. 26805 # substitution turns \\\\ into \\, and sed turns \\ into \).
14181 sed -n \ 26806 sed -n \
14182 "s/'/'\\\\''/g; 26807 "s/'/'\\\\''/g;
14183 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 26808 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
@@ -14200,11 +26825,11 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14200if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 26825if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14201 if test -w "$cache_file"; then 26826 if test -w "$cache_file"; then
14202 test "x$cache_file" != "x/dev/null" && 26827 test "x$cache_file" != "x/dev/null" &&
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 26828 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
14204$as_echo "$as_me: updating cache $cache_file" >&6;} 26829$as_echo "$as_me: updating cache $cache_file" >&6;}
14205 cat confcache >$cache_file 26830 cat confcache >$cache_file
14206 else 26831 else
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 26832 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14208$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 26833$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14209 fi 26834 fi
14210fi 26835fi
@@ -14224,8 +26849,8 @@ for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14224 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 26849 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14225 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 26850 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14226 # will be set to the directory where LIBOBJS objects are built. 26851 # will be set to the directory where LIBOBJS objects are built.
14227 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 26852 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14228 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 26853 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14229done 26854done
14230LIBOBJS=$ac_libobjs 26855LIBOBJS=$ac_libobjs
14231 26856
@@ -14237,10 +26862,9 @@ LTLIBOBJS=$ac_ltlibobjs
14237ac_write_fail=0 26862ac_write_fail=0
14238ac_clean_files_save=$ac_clean_files 26863ac_clean_files_save=$ac_clean_files
14239ac_clean_files="$ac_clean_files $CONFIG_STATUS" 26864ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14240{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 26865{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14241$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 26866$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14242as_write_fail=0 26867cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14243cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14244#! $SHELL 26868#! $SHELL
14245# Generated by $as_me. 26869# Generated by $as_me.
14246# Run this file to recreate the current configuration. 26870# Run this file to recreate the current configuration.
@@ -14250,18 +26874,17 @@ cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14250debug=false 26874debug=false
14251ac_cs_recheck=false 26875ac_cs_recheck=false
14252ac_cs_silent=false 26876ac_cs_silent=false
14253
14254SHELL=\${CONFIG_SHELL-$SHELL} 26877SHELL=\${CONFIG_SHELL-$SHELL}
14255export SHELL 26878_ACEOF
14256_ASEOF 26879
14257cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 26880cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14258## -------------------- ## 26881## --------------------- ##
14259## M4sh Initialization. ## 26882## M4sh Initialization. ##
14260## -------------------- ## 26883## --------------------- ##
14261 26884
14262# Be more Bourne compatible 26885# Be more Bourne compatible
14263DUALCASE=1; export DUALCASE # for MKS sh 26886DUALCASE=1; export DUALCASE # for MKS sh
14264if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 26887if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14265 emulate sh 26888 emulate sh
14266 NULLCMD=: 26889 NULLCMD=:
14267 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26890 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
@@ -14269,15 +26892,23 @@ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14269 alias -g '${1+"$@"}'='"$@"' 26892 alias -g '${1+"$@"}'='"$@"'
14270 setopt NO_GLOB_SUBST 26893 setopt NO_GLOB_SUBST
14271else 26894else
14272 case `(set -o) 2>/dev/null` in #( 26895 case `(set -o) 2>/dev/null` in
14273 *posix*) : 26896 *posix*) set -o posix ;;
14274 set -o posix ;; #(
14275 *) :
14276 ;;
14277esac 26897esac
26898
14278fi 26899fi
14279 26900
14280 26901
26902
26903
26904# PATH needs CR
26905# Avoid depending upon Character Ranges.
26906as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26907as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26908as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26909as_cr_digits='0123456789'
26910as_cr_alnum=$as_cr_Letters$as_cr_digits
26911
14281as_nl=' 26912as_nl='
14282' 26913'
14283export as_nl 26914export as_nl
@@ -14285,13 +26916,7 @@ export as_nl
14285as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 26916as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14286as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 26917as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14287as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 26918as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14288# Prefer a ksh shell builtin over an external printf program on Solaris, 26919if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14289# but without wasting forks for bash or zsh.
14290if test -z "$BASH_VERSION$ZSH_VERSION" \
14291 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14292 as_echo='print -r --'
14293 as_echo_n='print -rn --'
14294elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14295 as_echo='printf %s\n' 26920 as_echo='printf %s\n'
14296 as_echo_n='printf %s' 26921 as_echo_n='printf %s'
14297else 26922else
@@ -14302,7 +26927,7 @@ else
14302 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 26927 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14303 as_echo_n_body='eval 26928 as_echo_n_body='eval
14304 arg=$1; 26929 arg=$1;
14305 case $arg in #( 26930 case $arg in
14306 *"$as_nl"*) 26931 *"$as_nl"*)
14307 expr "X$arg" : "X\\(.*\\)$as_nl"; 26932 expr "X$arg" : "X\\(.*\\)$as_nl";
14308 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 26933 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
@@ -14325,6 +26950,13 @@ if test "${PATH_SEPARATOR+set}" != set; then
14325 } 26950 }
14326fi 26951fi
14327 26952
26953# Support unset when possible.
26954if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26955 as_unset=unset
26956else
26957 as_unset=false
26958fi
26959
14328 26960
14329# IFS 26961# IFS
14330# We need space, tab and new line, in precisely that order. Quoting is 26962# We need space, tab and new line, in precisely that order. Quoting is
@@ -14334,15 +26966,15 @@ fi
14334IFS=" "" $as_nl" 26966IFS=" "" $as_nl"
14335 26967
14336# Find who we are. Look in the path if we contain no directory separator. 26968# Find who we are. Look in the path if we contain no directory separator.
14337case $0 in #(( 26969case $0 in
14338 *[\\/]* ) as_myself=$0 ;; 26970 *[\\/]* ) as_myself=$0 ;;
14339 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26971 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14340for as_dir in $PATH 26972for as_dir in $PATH
14341do 26973do
14342 IFS=$as_save_IFS 26974 IFS=$as_save_IFS
14343 test -z "$as_dir" && as_dir=. 26975 test -z "$as_dir" && as_dir=.
14344 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 26976 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14345 done 26977done
14346IFS=$as_save_IFS 26978IFS=$as_save_IFS
14347 26979
14348 ;; 26980 ;;
@@ -14354,16 +26986,12 @@ if test "x$as_myself" = x; then
14354fi 26986fi
14355if test ! -f "$as_myself"; then 26987if test ! -f "$as_myself"; then
14356 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 26988 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14357 exit 1 26989 { (exit 1); exit 1; }
14358fi 26990fi
14359 26991
14360# Unset variables that we do not need and which cause bugs (e.g. in 26992# Work around bugs in pre-3.0 UWIN ksh.
14361# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 26993for as_var in ENV MAIL MAILPATH
14362# suppresses any "Segmentation fault" message there. '((' could 26994do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14363# trigger a bug in pdksh 5.2.14.
14364for as_var in BASH_ENV ENV MAIL MAILPATH
14365do eval test x\${$as_var+set} = xset \
14366 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14367done 26995done
14368PS1='$ ' 26996PS1='$ '
14369PS2='> ' 26997PS2='> '
@@ -14375,89 +27003,7 @@ export LC_ALL
14375LANGUAGE=C 27003LANGUAGE=C
14376export LANGUAGE 27004export LANGUAGE
14377 27005
14378# CDPATH. 27006# Required to use basename.
14379(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14380
14381
14382# as_fn_error ERROR [LINENO LOG_FD]
14383# ---------------------------------
14384# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14385# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14386# script with status $?, using 1 if that was 0.
14387as_fn_error ()
14388{
14389 as_status=$?; test $as_status -eq 0 && as_status=1
14390 if test "$3"; then
14391 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14392 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14393 fi
14394 $as_echo "$as_me: error: $1" >&2
14395 as_fn_exit $as_status
14396} # as_fn_error
14397
14398
14399# as_fn_set_status STATUS
14400# -----------------------
14401# Set $? to STATUS, without forking.
14402as_fn_set_status ()
14403{
14404 return $1
14405} # as_fn_set_status
14406
14407# as_fn_exit STATUS
14408# -----------------
14409# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14410as_fn_exit ()
14411{
14412 set +e
14413 as_fn_set_status $1
14414 exit $1
14415} # as_fn_exit
14416
14417# as_fn_unset VAR
14418# ---------------
14419# Portably unset VAR.
14420as_fn_unset ()
14421{
14422 { eval $1=; unset $1;}
14423}
14424as_unset=as_fn_unset
14425# as_fn_append VAR VALUE
14426# ----------------------
14427# Append the text in VALUE to the end of the definition contained in VAR. Take
14428# advantage of any shell optimizations that allow amortized linear growth over
14429# repeated appends, instead of the typical quadratic growth present in naive
14430# implementations.
14431if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14432 eval 'as_fn_append ()
14433 {
14434 eval $1+=\$2
14435 }'
14436else
14437 as_fn_append ()
14438 {
14439 eval $1=\$$1\$2
14440 }
14441fi # as_fn_append
14442
14443# as_fn_arith ARG...
14444# ------------------
14445# Perform arithmetic evaluation on the ARGs, and store the result in the
14446# global $as_val. Take advantage of shells that can avoid forks. The arguments
14447# must be portable across $(()) and expr.
14448if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14449 eval 'as_fn_arith ()
14450 {
14451 as_val=$(( $* ))
14452 }'
14453else
14454 as_fn_arith ()
14455 {
14456 as_val=`expr "$@" || test $? -eq 1`
14457 }
14458fi # as_fn_arith
14459
14460
14461if expr a : '\(a\)' >/dev/null 2>&1 && 27007if expr a : '\(a\)' >/dev/null 2>&1 &&
14462 test "X`expr 00001 : '.*\(...\)'`" = X001; then 27008 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14463 as_expr=expr 27009 as_expr=expr
@@ -14471,12 +27017,8 @@ else
14471 as_basename=false 27017 as_basename=false
14472fi 27018fi
14473 27019
14474if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14475 as_dirname=dirname
14476else
14477 as_dirname=false
14478fi
14479 27020
27021# Name of the executable.
14480as_me=`$as_basename -- "$0" || 27022as_me=`$as_basename -- "$0" ||
14481$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 27023$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14482 X"$0" : 'X\(//\)$' \| \ 27024 X"$0" : 'X\(//\)$' \| \
@@ -14496,25 +27038,76 @@ $as_echo X/"$0" |
14496 } 27038 }
14497 s/.*/./; q'` 27039 s/.*/./; q'`
14498 27040
14499# Avoid depending upon Character Ranges. 27041# CDPATH.
14500as_cr_letters='abcdefghijklmnopqrstuvwxyz' 27042$as_unset CDPATH
14501as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 27043
14502as_cr_Letters=$as_cr_letters$as_cr_LETTERS 27044
14503as_cr_digits='0123456789' 27045
14504as_cr_alnum=$as_cr_Letters$as_cr_digits 27046 as_lineno_1=$LINENO
27047 as_lineno_2=$LINENO
27048 test "x$as_lineno_1" != "x$as_lineno_2" &&
27049 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27050
27051 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27052 # uniformly replaced by the line number. The first 'sed' inserts a
27053 # line-number line after each line using $LINENO; the second 'sed'
27054 # does the real work. The second script uses 'N' to pair each
27055 # line-number line with the line containing $LINENO, and appends
27056 # trailing '-' during substitution so that $LINENO is not a special
27057 # case at line end.
27058 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27059 # scripts with optimization help from Paolo Bonzini. Blame Lee
27060 # E. McMahon (1931-1989) for sed's syntax. :-)
27061 sed -n '
27062 p
27063 /[$]LINENO/=
27064 ' <$as_myself |
27065 sed '
27066 s/[$]LINENO.*/&-/
27067 t lineno
27068 b
27069 :lineno
27070 N
27071 :loop
27072 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27073 t loop
27074 s/-\n.*//
27075 ' >$as_me.lineno &&
27076 chmod +x "$as_me.lineno" ||
27077 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27078 { (exit 1); exit 1; }; }
27079
27080 # Don't try to exec as it changes $[0], causing all sort of problems
27081 # (the dirname of $[0] is not the place where we might find the
27082 # original and so on. Autoconf is especially sensitive to this).
27083 . "./$as_me.lineno"
27084 # Exit status is that of the last command.
27085 exit
27086}
27087
27088
27089if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27090 as_dirname=dirname
27091else
27092 as_dirname=false
27093fi
14505 27094
14506ECHO_C= ECHO_N= ECHO_T= 27095ECHO_C= ECHO_N= ECHO_T=
14507case `echo -n x` in #((((( 27096case `echo -n x` in
14508-n*) 27097-n*)
14509 case `echo 'xy\c'` in 27098 case `echo 'x\c'` in
14510 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 27099 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14511 xy) ECHO_C='\c';; 27100 *) ECHO_C='\c';;
14512 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14513 ECHO_T=' ';;
14514 esac;; 27101 esac;;
14515*) 27102*)
14516 ECHO_N='-n';; 27103 ECHO_N='-n';;
14517esac 27104esac
27105if expr a : '\(a\)' >/dev/null 2>&1 &&
27106 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27107 as_expr=expr
27108else
27109 as_expr=false
27110fi
14518 27111
14519rm -f conf$$ conf$$.exe conf$$.file 27112rm -f conf$$ conf$$.exe conf$$.file
14520if test -d conf$$.dir; then 27113if test -d conf$$.dir; then
@@ -14543,56 +27136,8 @@ fi
14543rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 27136rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14544rmdir conf$$.dir 2>/dev/null 27137rmdir conf$$.dir 2>/dev/null
14545 27138
14546
14547# as_fn_mkdir_p
14548# -------------
14549# Create "$as_dir" as a directory, including parents if necessary.
14550as_fn_mkdir_p ()
14551{
14552
14553 case $as_dir in #(
14554 -*) as_dir=./$as_dir;;
14555 esac
14556 test -d "$as_dir" || eval $as_mkdir_p || {
14557 as_dirs=
14558 while :; do
14559 case $as_dir in #(
14560 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14561 *) as_qdir=$as_dir;;
14562 esac
14563 as_dirs="'$as_qdir' $as_dirs"
14564 as_dir=`$as_dirname -- "$as_dir" ||
14565$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14566 X"$as_dir" : 'X\(//\)[^/]' \| \
14567 X"$as_dir" : 'X\(//\)$' \| \
14568 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14569$as_echo X"$as_dir" |
14570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14571 s//\1/
14572 q
14573 }
14574 /^X\(\/\/\)[^/].*/{
14575 s//\1/
14576 q
14577 }
14578 /^X\(\/\/\)$/{
14579 s//\1/
14580 q
14581 }
14582 /^X\(\/\).*/{
14583 s//\1/
14584 q
14585 }
14586 s/.*/./; q'`
14587 test -d "$as_dir" && break
14588 done
14589 test -z "$as_dirs" || eval "mkdir $as_dirs"
14590 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14591
14592
14593} # as_fn_mkdir_p
14594if mkdir -p . 2>/dev/null; then 27139if mkdir -p . 2>/dev/null; then
14595 as_mkdir_p='mkdir -p "$as_dir"' 27140 as_mkdir_p=:
14596else 27141else
14597 test -d ./-p && rmdir ./-p 27142 test -d ./-p && rmdir ./-p
14598 as_mkdir_p=false 27143 as_mkdir_p=false
@@ -14611,10 +27156,10 @@ else
14611 if test -d "$1"; then 27156 if test -d "$1"; then
14612 test -d "$1/."; 27157 test -d "$1/.";
14613 else 27158 else
14614 case $1 in #( 27159 case $1 in
14615 -*)set "./$1";; 27160 -*)set "./$1";;
14616 esac; 27161 esac;
14617 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 27162 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14618 ???[sx]*):;;*)false;;esac;fi 27163 ???[sx]*):;;*)false;;esac;fi
14619 '\'' sh 27164 '\'' sh
14620 ' 27165 '
@@ -14629,19 +27174,13 @@ as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14629 27174
14630 27175
14631exec 6>&1 27176exec 6>&1
14632## ----------------------------------- ##
14633## Main body of $CONFIG_STATUS script. ##
14634## ----------------------------------- ##
14635_ASEOF
14636test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14637 27177
14638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27178# Save the log message, to keep $[0] and so on meaningful, and to
14639# Save the log message, to keep $0 and so on meaningful, and to
14640# report actual input values of CONFIG_FILES etc. instead of their 27179# report actual input values of CONFIG_FILES etc. instead of their
14641# values after options handling. 27180# values after options handling.
14642ac_log=" 27181ac_log="
14643This file was extended by emacs $as_me 24.0.50, which was 27182This file was extended by emacs $as_me 24.0.50, which was
14644generated by GNU Autoconf 2.65. Invocation command line was 27183generated by GNU Autoconf 2.62. Invocation command line was
14645 27184
14646 CONFIG_FILES = $CONFIG_FILES 27185 CONFIG_FILES = $CONFIG_FILES
14647 CONFIG_HEADERS = $CONFIG_HEADERS 27186 CONFIG_HEADERS = $CONFIG_HEADERS
@@ -14654,15 +27193,6 @@ on `(hostname || uname -n) 2>/dev/null | sed 1q`
14654 27193
14655_ACEOF 27194_ACEOF
14656 27195
14657case $ac_config_files in *"
14658"*) set x $ac_config_files; shift; ac_config_files=$*;;
14659esac
14660
14661case $ac_config_headers in *"
14662"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14663esac
14664
14665
14666cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27196cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14667# Files that config.status was made for. 27197# Files that config.status was made for.
14668config_files="$ac_config_files" 27198config_files="$ac_config_files"
@@ -14673,22 +27203,19 @@ _ACEOF
14673 27203
14674cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14675ac_cs_usage="\ 27205ac_cs_usage="\
14676\`$as_me' instantiates files and other configuration actions 27206\`$as_me' instantiates files from templates according to the
14677from templates according to the current configuration. Unless the files 27207current configuration.
14678and actions are specified as TAGs, all are instantiated by default.
14679 27208
14680Usage: $0 [OPTION]... [TAG]... 27209Usage: $0 [OPTIONS] [FILE]...
14681 27210
14682 -h, --help print this help, then exit 27211 -h, --help print this help, then exit
14683 -V, --version print version number and configuration settings, then exit 27212 -V, --version print version number and configuration settings, then exit
14684 --config print configuration, then exit 27213 -q, --quiet do not print progress messages
14685 -q, --quiet, --silent
14686 do not print progress messages
14687 -d, --debug don't remove temporary files 27214 -d, --debug don't remove temporary files
14688 --recheck update $as_me by reconfiguring in the same conditions 27215 --recheck update $as_me by reconfiguring in the same conditions
14689 --file=FILE[:TEMPLATE] 27216 --file=FILE[:TEMPLATE]
14690 instantiate the configuration file FILE 27217 instantiate the configuration file FILE
14691 --header=FILE[:TEMPLATE] 27218 --header=FILE[:TEMPLATE]
14692 instantiate the configuration header FILE 27219 instantiate the configuration header FILE
14693 27220
14694Configuration files: 27221Configuration files:
@@ -14700,17 +27227,16 @@ $config_headers
14700Configuration commands: 27227Configuration commands:
14701$config_commands 27228$config_commands
14702 27229
14703Report bugs to the package provider." 27230Report bugs to <bug-autoconf@gnu.org>."
14704 27231
14705_ACEOF 27232_ACEOF
14706cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27233cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14707ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14708ac_cs_version="\\ 27234ac_cs_version="\\
14709emacs config.status 24.0.50 27235emacs config.status 24.0.50
14710configured by $0, generated by GNU Autoconf 2.65, 27236configured by $0, generated by GNU Autoconf 2.62,
14711 with options \\"\$ac_cs_config\\" 27237 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14712 27238
14713Copyright (C) 2009 Free Software Foundation, Inc. 27239Copyright (C) 2008 Free Software Foundation, Inc.
14714This config.status script is free software; the Free Software Foundation 27240This config.status script is free software; the Free Software Foundation
14715gives unlimited permission to copy, distribute and modify it." 27241gives unlimited permission to copy, distribute and modify it."
14716 27242
@@ -14744,8 +27270,6 @@ do
14744 ac_cs_recheck=: ;; 27270 ac_cs_recheck=: ;;
14745 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 27271 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14746 $as_echo "$ac_cs_version"; exit ;; 27272 $as_echo "$ac_cs_version"; exit ;;
14747 --config | --confi | --conf | --con | --co | --c )
14748 $as_echo "$ac_cs_config"; exit ;;
14749 --debug | --debu | --deb | --de | --d | -d ) 27273 --debug | --debu | --deb | --de | --d | -d )
14750 debug=: ;; 27274 debug=: ;;
14751 --file | --fil | --fi | --f ) 27275 --file | --fil | --fi | --f )
@@ -14753,19 +27277,20 @@ do
14753 case $ac_optarg in 27277 case $ac_optarg in
14754 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 27278 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14755 esac 27279 esac
14756 as_fn_append CONFIG_FILES " '$ac_optarg'" 27280 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14757 ac_need_defaults=false;; 27281 ac_need_defaults=false;;
14758 --header | --heade | --head | --hea ) 27282 --header | --heade | --head | --hea )
14759 $ac_shift 27283 $ac_shift
14760 case $ac_optarg in 27284 case $ac_optarg in
14761 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 27285 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14762 esac 27286 esac
14763 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 27287 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14764 ac_need_defaults=false;; 27288 ac_need_defaults=false;;
14765 --he | --h) 27289 --he | --h)
14766 # Conflict between --help and --header 27290 # Conflict between --help and --header
14767 as_fn_error "ambiguous option: \`$1' 27291 { $as_echo "$as_me: error: ambiguous option: $1
14768Try \`$0 --help' for more information.";; 27292Try \`$0 --help' for more information." >&2
27293 { (exit 1); exit 1; }; };;
14769 --help | --hel | -h ) 27294 --help | --hel | -h )
14770 $as_echo "$ac_cs_usage"; exit ;; 27295 $as_echo "$ac_cs_usage"; exit ;;
14771 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 27296 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
@@ -14773,10 +27298,11 @@ Try \`$0 --help' for more information.";;
14773 ac_cs_silent=: ;; 27298 ac_cs_silent=: ;;
14774 27299
14775 # This is an error. 27300 # This is an error.
14776 -*) as_fn_error "unrecognized option: \`$1' 27301 -*) { $as_echo "$as_me: error: unrecognized option: $1
14777Try \`$0 --help' for more information." ;; 27302Try \`$0 --help' for more information." >&2
27303 { (exit 1); exit 1; }; } ;;
14778 27304
14779 *) as_fn_append ac_config_targets " $1" 27305 *) ac_config_targets="$ac_config_targets $1"
14780 ac_need_defaults=false ;; 27306 ac_need_defaults=false ;;
14781 27307
14782 esac 27308 esac
@@ -14841,7 +27367,9 @@ do
14841 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; 27367 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
14842 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 27368 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14843 27369
14844 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 27370 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27371$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27372 { (exit 1); exit 1; }; };;
14845 esac 27373 esac
14846done 27374done
14847 27375
@@ -14868,7 +27396,7 @@ $debug ||
14868 trap 'exit_status=$? 27396 trap 'exit_status=$?
14869 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 27397 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14870' 0 27398' 0
14871 trap 'as_fn_exit 1' 1 2 13 15 27399 trap '{ (exit 1); exit 1; }' 1 2 13 15
14872} 27400}
14873# Create a (secure) tmp directory for tmp files. 27401# Create a (secure) tmp directory for tmp files.
14874 27402
@@ -14879,7 +27407,11 @@ $debug ||
14879{ 27407{
14880 tmp=./conf$$-$RANDOM 27408 tmp=./conf$$-$RANDOM
14881 (umask 077 && mkdir "$tmp") 27409 (umask 077 && mkdir "$tmp")
14882} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 27410} ||
27411{
27412 $as_echo "$as_me: cannot create a temporary directory in ." >&2
27413 { (exit 1); exit 1; }
27414}
14883 27415
14884# Set up the scripts for CONFIG_FILES section. 27416# Set up the scripts for CONFIG_FILES section.
14885# No need to generate them if there are no CONFIG_FILES. 27417# No need to generate them if there are no CONFIG_FILES.
@@ -14887,16 +27419,10 @@ $debug ||
14887if test -n "$CONFIG_FILES"; then 27419if test -n "$CONFIG_FILES"; then
14888 27420
14889 27421
14890ac_cr=`echo X | tr X '\015'` 27422ac_cr=' '
14891# On cygwin, bash can eat \r inside `` if the user requested igncr.
14892# But we know of no other shell where ac_cr would be empty at this
14893# point, so we can use a bashism as a fallback.
14894if test "x$ac_cr" = x; then
14895 eval ac_cr=\$\'\\r\'
14896fi
14897ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 27423ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14898if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 27424if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14899 ac_cs_awk_cr='\r' 27425 ac_cs_awk_cr='\\r'
14900else 27426else
14901 ac_cs_awk_cr=$ac_cr 27427 ac_cs_awk_cr=$ac_cr
14902fi 27428fi
@@ -14910,18 +27436,23 @@ _ACEOF
14910 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 27436 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14911 echo "_ACEOF" 27437 echo "_ACEOF"
14912} >conf$$subs.sh || 27438} >conf$$subs.sh ||
14913 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 27439 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27440$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27441 { (exit 1); exit 1; }; }
14914ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 27442ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14915ac_delim='%!_!# ' 27443ac_delim='%!_!# '
14916for ac_last_try in false false false false false :; do 27444for ac_last_try in false false false false false :; do
14917 . ./conf$$subs.sh || 27445 . ./conf$$subs.sh ||
14918 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 27446 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27447$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27448 { (exit 1); exit 1; }; }
14919 27449
14920 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 27450 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
14921 if test $ac_delim_n = $ac_delim_num; then
14922 break 27451 break
14923 elif $ac_last_try; then 27452 elif $ac_last_try; then
14924 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 27453 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27454$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27455 { (exit 1); exit 1; }; }
14925 else 27456 else
14926 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 27457 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14927 fi 27458 fi
@@ -14943,7 +27474,7 @@ s/'"$ac_delim"'$//
14943t delim 27474t delim
14944:nl 27475:nl
14945h 27476h
14946s/\(.\{148\}\)..*/\1/ 27477s/\(.\{148\}\).*/\1/
14947t more1 27478t more1
14948s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 27479s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14949p 27480p
@@ -14957,7 +27488,7 @@ s/.\{148\}//
14957t nl 27488t nl
14958:delim 27489:delim
14959h 27490h
14960s/\(.\{148\}\)..*/\1/ 27491s/\(.\{148\}\).*/\1/
14961t more2 27492t more2
14962s/["\\]/\\&/g; s/^/"/; s/$/"/ 27493s/["\\]/\\&/g; s/^/"/; s/$/"/
14963p 27494p
@@ -15010,7 +27541,9 @@ if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15010else 27541else
15011 cat 27542 cat
15012fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 27543fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15013 || as_fn_error "could not setup config files machinery" "$LINENO" 5 27544 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
27545$as_echo "$as_me: error: could not setup config files machinery" >&2;}
27546 { (exit 1); exit 1; }; }
15014_ACEOF 27547_ACEOF
15015 27548
15016# VPATH may cause trouble with some makes, so we remove $(srcdir), 27549# VPATH may cause trouble with some makes, so we remove $(srcdir),
@@ -15051,7 +27584,9 @@ for ac_last_try in false false :; do
15051 if test -z "$ac_t"; then 27584 if test -z "$ac_t"; then
15052 break 27585 break
15053 elif $ac_last_try; then 27586 elif $ac_last_try; then
15054 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 27587 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
27588$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
27589 { (exit 1); exit 1; }; }
15055 else 27590 else
15056 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 27591 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15057 fi 27592 fi
@@ -15117,9 +27652,9 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15117 } 27652 }
15118 split(mac1, mac2, "(") #) 27653 split(mac1, mac2, "(") #)
15119 macro = mac2[1] 27654 macro = mac2[1]
15120 prefix = substr(line, 1, index(line, defundef) - 1)
15121 if (D_is_set[macro]) { 27655 if (D_is_set[macro]) {
15122 # Preserve the white space surrounding the "#". 27656 # Preserve the white space surrounding the "#".
27657 prefix = substr(line, 1, index(line, defundef) - 1)
15123 print prefix "define", macro P[macro] D[macro] 27658 print prefix "define", macro P[macro] D[macro]
15124 next 27659 next
15125 } else { 27660 } else {
@@ -15127,7 +27662,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15127 # in the case of _POSIX_SOURCE, which is predefined and required 27662 # in the case of _POSIX_SOURCE, which is predefined and required
15128 # on some systems where configure will not decide to define it. 27663 # on some systems where configure will not decide to define it.
15129 if (defundef == "undef") { 27664 if (defundef == "undef") {
15130 print "/*", prefix defundef, macro, "*/" 27665 print "/*", line, "*/"
15131 next 27666 next
15132 } 27667 }
15133 } 27668 }
@@ -15136,7 +27671,9 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15136_ACAWK 27671_ACAWK
15137_ACEOF 27672_ACEOF
15138cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27673cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15139 as_fn_error "could not setup config headers machinery" "$LINENO" 5 27674 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27675$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27676 { (exit 1); exit 1; }; }
15140fi # test -n "$CONFIG_HEADERS" 27677fi # test -n "$CONFIG_HEADERS"
15141 27678
15142 27679
@@ -15149,7 +27686,9 @@ do
15149 esac 27686 esac
15150 case $ac_mode$ac_tag in 27687 case $ac_mode$ac_tag in
15151 :[FHL]*:*);; 27688 :[FHL]*:*);;
15152 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 27689 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27690$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27691 { (exit 1); exit 1; }; };;
15153 :[FH]-) ac_tag=-:-;; 27692 :[FH]-) ac_tag=-:-;;
15154 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 27693 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15155 esac 27694 esac
@@ -15177,10 +27716,12 @@ do
15177 [\\/$]*) false;; 27716 [\\/$]*) false;;
15178 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 27717 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15179 esac || 27718 esac ||
15180 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 27719 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27720$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27721 { (exit 1); exit 1; }; };;
15181 esac 27722 esac
15182 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 27723 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15183 as_fn_append ac_file_inputs " '$ac_f'" 27724 ac_file_inputs="$ac_file_inputs '$ac_f'"
15184 done 27725 done
15185 27726
15186 # Let's still pretend it is `configure' which instantiates (i.e., don't 27727 # Let's still pretend it is `configure' which instantiates (i.e., don't
@@ -15191,7 +27732,7 @@ do
15191 `' by configure.' 27732 `' by configure.'
15192 if test x"$ac_file" != x-; then 27733 if test x"$ac_file" != x-; then
15193 configure_input="$ac_file. $configure_input" 27734 configure_input="$ac_file. $configure_input"
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 27735 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
15195$as_echo "$as_me: creating $ac_file" >&6;} 27736$as_echo "$as_me: creating $ac_file" >&6;}
15196 fi 27737 fi
15197 # Neutralize special characters interpreted by sed in replacement strings. 27738 # Neutralize special characters interpreted by sed in replacement strings.
@@ -15204,7 +27745,9 @@ $as_echo "$as_me: creating $ac_file" >&6;}
15204 27745
15205 case $ac_tag in 27746 case $ac_tag in
15206 *:-:* | *:-) cat >"$tmp/stdin" \ 27747 *:-:* | *:-) cat >"$tmp/stdin" \
15207 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 27748 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27749$as_echo "$as_me: error: could not create $ac_file" >&2;}
27750 { (exit 1); exit 1; }; } ;;
15208 esac 27751 esac
15209 ;; 27752 ;;
15210 esac 27753 esac
@@ -15232,7 +27775,47 @@ $as_echo X"$ac_file" |
15232 q 27775 q
15233 } 27776 }
15234 s/.*/./; q'` 27777 s/.*/./; q'`
15235 as_dir="$ac_dir"; as_fn_mkdir_p 27778 { as_dir="$ac_dir"
27779 case $as_dir in #(
27780 -*) as_dir=./$as_dir;;
27781 esac
27782 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27783 as_dirs=
27784 while :; do
27785 case $as_dir in #(
27786 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27787 *) as_qdir=$as_dir;;
27788 esac
27789 as_dirs="'$as_qdir' $as_dirs"
27790 as_dir=`$as_dirname -- "$as_dir" ||
27791$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27792 X"$as_dir" : 'X\(//\)[^/]' \| \
27793 X"$as_dir" : 'X\(//\)$' \| \
27794 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27795$as_echo X"$as_dir" |
27796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27797 s//\1/
27798 q
27799 }
27800 /^X\(\/\/\)[^/].*/{
27801 s//\1/
27802 q
27803 }
27804 /^X\(\/\/\)$/{
27805 s//\1/
27806 q
27807 }
27808 /^X\(\/\).*/{
27809 s//\1/
27810 q
27811 }
27812 s/.*/./; q'`
27813 test -d "$as_dir" && break
27814 done
27815 test -z "$as_dirs" || eval "mkdir $as_dirs"
27816 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27817$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27818 { (exit 1); exit 1; }; }; }
15236 ac_builddir=. 27819 ac_builddir=.
15237 27820
15238case "$ac_dir" in 27821case "$ac_dir" in
@@ -15284,6 +27867,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15284# If the template does not know about datarootdir, expand it. 27867# If the template does not know about datarootdir, expand it.
15285# FIXME: This hack should be removed a few years after 2.60. 27868# FIXME: This hack should be removed a few years after 2.60.
15286ac_datarootdir_hack=; ac_datarootdir_seen= 27869ac_datarootdir_hack=; ac_datarootdir_seen=
27870
15287ac_sed_dataroot=' 27871ac_sed_dataroot='
15288/datarootdir/ { 27872/datarootdir/ {
15289 p 27873 p
@@ -15293,11 +27877,12 @@ ac_sed_dataroot='
15293/@docdir@/p 27877/@docdir@/p
15294/@infodir@/p 27878/@infodir@/p
15295/@localedir@/p 27879/@localedir@/p
15296/@mandir@/p' 27880/@mandir@/p
27881'
15297case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 27882case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15298*datarootdir*) ac_datarootdir_seen=yes;; 27883*datarootdir*) ac_datarootdir_seen=yes;;
15299*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 27884*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 27885 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15301$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 27886$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15302_ACEOF 27887_ACEOF
15303cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27888cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
@@ -15307,7 +27892,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15307 s&@infodir@&$infodir&g 27892 s&@infodir@&$infodir&g
15308 s&@localedir@&$localedir&g 27893 s&@localedir@&$localedir&g
15309 s&@mandir@&$mandir&g 27894 s&@mandir@&$mandir&g
15310 s&\\\${datarootdir}&$datarootdir&g' ;; 27895 s&\\\${datarootdir}&$datarootdir&g' ;;
15311esac 27896esac
15312_ACEOF 27897_ACEOF
15313 27898
@@ -15335,12 +27920,14 @@ s&@INSTALL@&$ac_INSTALL&;t t
15335$ac_datarootdir_hack 27920$ac_datarootdir_hack
15336" 27921"
15337eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 27922eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15338 || as_fn_error "could not create $ac_file" "$LINENO" 5 27923 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27924$as_echo "$as_me: error: could not create $ac_file" >&2;}
27925 { (exit 1); exit 1; }; }
15339 27926
15340test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 27927test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15341 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 27928 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15342 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 27929 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 27930 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15344which seems to be undefined. Please make sure it is defined." >&5 27931which seems to be undefined. Please make sure it is defined." >&5
15345$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 27932$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15346which seems to be undefined. Please make sure it is defined." >&2;} 27933which seems to be undefined. Please make sure it is defined." >&2;}
@@ -15350,7 +27937,9 @@ which seems to be undefined. Please make sure it is defined." >&2;}
15350 -) cat "$tmp/out" && rm -f "$tmp/out";; 27937 -) cat "$tmp/out" && rm -f "$tmp/out";;
15351 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 27938 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15352 esac \ 27939 esac \
15353 || as_fn_error "could not create $ac_file" "$LINENO" 5 27940 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27941$as_echo "$as_me: error: could not create $ac_file" >&2;}
27942 { (exit 1); exit 1; }; }
15354 ;; 27943 ;;
15355 :H) 27944 :H)
15356 # 27945 #
@@ -15361,23 +27950,29 @@ which seems to be undefined. Please make sure it is defined." >&2;}
15361 $as_echo "/* $configure_input */" \ 27950 $as_echo "/* $configure_input */" \
15362 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 27951 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15363 } >"$tmp/config.h" \ 27952 } >"$tmp/config.h" \
15364 || as_fn_error "could not create $ac_file" "$LINENO" 5 27953 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27954$as_echo "$as_me: error: could not create $ac_file" >&2;}
27955 { (exit 1); exit 1; }; }
15365 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 27956 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 27957 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15367$as_echo "$as_me: $ac_file is unchanged" >&6;} 27958$as_echo "$as_me: $ac_file is unchanged" >&6;}
15368 else 27959 else
15369 rm -f "$ac_file" 27960 rm -f "$ac_file"
15370 mv "$tmp/config.h" "$ac_file" \ 27961 mv "$tmp/config.h" "$ac_file" \
15371 || as_fn_error "could not create $ac_file" "$LINENO" 5 27962 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27963$as_echo "$as_me: error: could not create $ac_file" >&2;}
27964 { (exit 1); exit 1; }; }
15372 fi 27965 fi
15373 else 27966 else
15374 $as_echo "/* $configure_input */" \ 27967 $as_echo "/* $configure_input */" \
15375 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 27968 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15376 || as_fn_error "could not create -" "$LINENO" 5 27969 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27970$as_echo "$as_me: error: could not create -" >&2;}
27971 { (exit 1); exit 1; }; }
15377 fi 27972 fi
15378 ;; 27973 ;;
15379 27974
15380 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 27975 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
15381$as_echo "$as_me: executing $ac_file commands" >&6;} 27976$as_echo "$as_me: executing $ac_file commands" >&6;}
15382 ;; 27977 ;;
15383 esac 27978 esac
@@ -15432,12 +28027,15 @@ fi
15432done # for ac_tag 28027done # for ac_tag
15433 28028
15434 28029
15435as_fn_exit 0 28030{ (exit 0); exit 0; }
15436_ACEOF 28031_ACEOF
28032chmod +x $CONFIG_STATUS
15437ac_clean_files=$ac_clean_files_save 28033ac_clean_files=$ac_clean_files_save
15438 28034
15439test $ac_write_fail = 0 || 28035test $ac_write_fail = 0 ||
15440 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 28036 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
28037$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
28038 { (exit 1); exit 1; }; }
15441 28039
15442 28040
15443# configure is writing to config.log, and then calls config.status. 28041# configure is writing to config.log, and then calls config.status.
@@ -15458,11 +28056,11 @@ if test "$no_create" != yes; then
15458 exec 5>>config.log 28056 exec 5>>config.log
15459 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 28057 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15460 # would make configure fail if this is the last instruction. 28058 # would make configure fail if this is the last instruction.
15461 $ac_cs_success || as_fn_exit $? 28059 $ac_cs_success || { (exit 1); exit 1; }
15462fi 28060fi
15463if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 28061if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 28062 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
15465$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 28063$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
15466fi 28064fi
15467 28065
15468 28066