aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfigure18933
-rw-r--r--src/config.in68
2 files changed, 15729 insertions, 3272 deletions
diff --git a/configure b/configure
index 90ee24fdb5c..d963346e812 100755
--- a/configure
+++ b/configure
@@ -1,22 +1,18 @@
1#! /bin/sh 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles. 2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for emacs 24.0.50. 3# Generated by GNU Autoconf 2.62 for emacs 24.0.50.
4#
5# 4#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
8# Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation 7# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it. 8# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ## 9## --------------------- ##
14## M4sh Initialization. ## 10## M4sh Initialization. ##
15## -------------------- ## 11## --------------------- ##
16 12
17# Be more Bourne compatible 13# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh 14DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 emulate sh 16 emulate sh
21 NULLCMD=: 17 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
@@ -24,15 +20,23 @@ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 alias -g '${1+"$@"}'='"$@"' 20 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST 21 setopt NO_GLOB_SUBST
26else 22else
27 case `(set -o) 2>/dev/null` in #( 23 case `(set -o) 2>/dev/null` in
28 *posix*) : 24 *posix*) set -o posix ;;
29 set -o posix ;; #(
30 *) :
31 ;;
32esac 25esac
26
33fi 27fi
34 28
35 29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
36as_nl=' 40as_nl='
37' 41'
38export as_nl 42export as_nl
@@ -40,13 +44,7 @@ export as_nl
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris, 47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n' 48 as_echo='printf %s\n'
51 as_echo_n='printf %s' 49 as_echo_n='printf %s'
52else 50else
@@ -57,7 +55,7 @@ else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval 56 as_echo_n_body='eval
59 arg=$1; 57 arg=$1;
60 case $arg in #( 58 case $arg in
61 *"$as_nl"*) 59 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl"; 60 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
@@ -80,6 +78,13 @@ if test "${PATH_SEPARATOR+set}" != set; then
80 } 78 }
81fi 79fi
82 80
81# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84else
85 as_unset=false
86fi
87
83 88
84# IFS 89# IFS
85# We need space, tab and new line, in precisely that order. Quoting is 90# We need space, tab and new line, in precisely that order. Quoting is
@@ -89,15 +94,15 @@ fi
89IFS=" "" $as_nl" 94IFS=" "" $as_nl"
90 95
91# Find who we are. Look in the path if we contain no directory separator. 96# Find who we are. Look in the path if we contain no directory separator.
92case $0 in #(( 97case $0 in
93 *[\\/]* ) as_myself=$0 ;; 98 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH 100for as_dir in $PATH
96do 101do
97 IFS=$as_save_IFS 102 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=. 103 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done 105done
101IFS=$as_save_IFS 106IFS=$as_save_IFS
102 107
103 ;; 108 ;;
@@ -109,16 +114,12 @@ if test "x$as_myself" = x; then
109fi 114fi
110if test ! -f "$as_myself"; then 115if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1 117 { (exit 1); exit 1; }
113fi 118fi
114 119
115# Unset variables that we do not need and which cause bugs (e.g. in 120# Work around bugs in pre-3.0 UWIN ksh.
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 121for as_var in ENV MAIL MAILPATH
117# suppresses any "Segmentation fault" message there. '((' could 122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done 123done
123PS1='$ ' 124PS1='$ '
124PS2='> ' 125PS2='> '
@@ -130,299 +131,330 @@ export LC_ALL
130LANGUAGE=C 131LANGUAGE=C
131export LANGUAGE 132export LANGUAGE
132 133
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138else
139 as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
150as_me=`$as_basename -- "$0" ||
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154$as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
133# CDPATH. 169# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 170$as_unset CDPATH
171
135 172
136if test "x$CONFIG_SHELL" = x; then 173if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 174 if (eval ":") 2>/dev/null; then
138 emulate sh 175 as_have_required=yes
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else 176else
145 case \`(set -o) 2>/dev/null\` in #( 177 as_have_required=no
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi 178fi
152" 179
153 as_required="as_fn_return () { (exit \$1); } 180 if test $as_have_required = yes && (eval ":
154as_fn_success () { as_fn_return 0; } 181(as_func_return () {
155as_fn_failure () { as_fn_return 1; } 182 (exit \$1)
156as_fn_ret_success () { return 0; } 183}
157as_fn_ret_failure () { return 1; } 184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
158 196
159exitcode=0 197exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; } 198if as_func_success; then
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 199 :
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else 200else
178 as_have_required=no 201 exitcode=1
202 echo as_func_success failed.
203fi
204
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
179fi 208fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 209
210if as_func_ret_success; then
211 :
182else 212else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 213 exitcode=1
184as_found=false 214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237 :
238else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do 242do
187 IFS=$as_save_IFS 243 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=. 244 test -z "$as_dir" && as_dir=.
189 as_found=: 245 case $as_dir in
190 case $as_dir in #(
191 /*) 246 /*)
192 for as_base in sh bash ksh sh5; do 247 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks. 248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200fi
201fi
202 done;; 249 done;;
203 esac 250 esac
204 as_found=false
205done 251done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS 252IFS=$as_save_IFS
211 253
212 254
213 if test "x$CONFIG_SHELL" != x; then : 255 for as_shell in $as_candidate_shells $SHELL; do
214 # We cannot yet assume a decent shell, so we have to provide a 256 # Try only shells that exist, to save several forks.
215 # neutralization value for shells without unset; and this also 257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216 # works around shells that cannot unset nonexistent variables. 258 { ("$as_shell") 2> /dev/null <<\_ASEOF
217 BASH_ENV=/dev/null 259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
218 ENV=/dev/null 260 emulate sh
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 261 NULLCMD=:
220 export CONFIG_SHELL 262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 263 # is contrary to our usage. Disable this feature.
222fi 264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
223 270
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235 fi
236 exit 1
237fi
238fi 271fi
272
273
274:
275_ASEOF
276}; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
239fi 292fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245 293
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254 { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257 294
258# as_fn_set_status STATUS 295:
259# ----------------------- 296(as_func_return () {
260# Set $? to STATUS, without forking. 297 (exit $1)
261as_fn_set_status () 298}
262{ 299as_func_success () {
263 return $1 300 as_func_return 0
264} # as_fn_set_status 301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
265 311
266# as_fn_exit STATUS 312exitcode=0
267# ----------------- 313if as_func_success; then
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 314 :
269as_fn_exit () 315else
270{ 316 exitcode=1
271 set +e 317 echo as_func_success failed.
272 as_fn_set_status $1 318fi
273 exit $1
274} # as_fn_exit
275 319
276# as_fn_mkdir_p 320if as_func_failure; then
277# ------------- 321 exitcode=1
278# Create "$as_dir" as a directory, including parents if necessary. 322 echo as_func_failure succeeded.
279as_fn_mkdir_p () 323fi
280{
281 324
282 case $as_dir in #( 325if as_func_ret_success; then
283 -*) as_dir=./$as_dir;; 326 :
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334else 327else
335 as_fn_append () 328 exitcode=1
336 { 329 echo as_func_ret_success failed.
337 eval $1=\$$1\$2 330fi
338 } 331
339fi # as_fn_append 332if as_func_ret_failure; then
340 333 exitcode=1
341# as_fn_arith ARG... 334 echo as_func_ret_failure succeeded.
342# ------------------ 335fi
343# Perform arithmetic evaluation on the ARGs, and store the result in the 336
344# global $as_val. Take advantage of shells that can avoid forks. The arguments 337if ( set x; as_func_ret_success y && test x = "$1" ); then
345# must be portable across $(()) and expr. 338 :
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351else 339else
352 as_fn_arith () 340 exitcode=1
353 { 341 echo positional parameters were not saved.
354 as_val=`expr "$@" || test $? -eq 1` 342fi
355 }
356fi # as_fn_arith
357 343
344test $exitcode = 0) || { (exit 1); exit 1; }
358 345
359# as_fn_error ERROR [LINENO LOG_FD] 346(
360# --------------------------------- 347 as_lineno_1=$LINENO
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 348 as_lineno_2=$LINENO
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 349 test "x$as_lineno_1" != "x$as_lineno_2" &&
363# script with status $?, using 1 if that was 0. 350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
364as_fn_error ()
365{
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373} # as_fn_error
374 351
375if expr a : '\(a\)' >/dev/null 2>&1 && 352_ASEOF
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then 353}; then
377 as_expr=expr 354 break
355fi
356
357fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
378else 404else
379 as_expr=false 405 exitcode=1
406 echo as_func_success failed.
380fi 407fi
381 408
382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 409if as_func_failure; then
383 as_basename=basename 410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
384else 416else
385 as_basename=false 417 exitcode=1
418 echo as_func_ret_success failed.
386fi 419fi
387 420
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 421if as_func_ret_failure; then
389 as_dirname=dirname 422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
390else 428else
391 as_dirname=false 429 exitcode=1
430 echo positional parameters were not saved.
392fi 431fi
393 432
394as_me=`$as_basename -- "$0" || 433test \$exitcode = 0") || {
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 434 echo No shell found that supports shell functions.
396 X"$0" : 'X\(//\)$' \| \ 435 echo Please tell bug-autoconf@gnu.org about your system,
397 X"$0" : 'X\(/\)' \| . 2>/dev/null || 436 echo including any error possibly output before this message.
398$as_echo X/"$0" | 437 echo This can help us improve future autoconf versions.
399 sed '/^.*\/\([^/][^/]*\)\/*$/{ 438 echo Configuration will now proceed without shell functions.
400 s//\1/ 439}
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412 440
413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
419 441
420 442
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO 443 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO 444 as_lineno_2=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 445 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n ' 458 sed -n '
427 p 459 p
428 /[$]LINENO/= 460 /[$]LINENO/=
@@ -439,7 +471,8 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
439 s/-\n.*// 471 s/-\n.*//
440 ' >$as_me.lineno && 472 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" || 473 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
443 476
444 # Don't try to exec as it changes $[0], causing all sort of problems 477 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the 478 # (the dirname of $[0] is not the place where we might find the
@@ -449,18 +482,29 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
449 exit 482 exit
450} 483}
451 484
485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
452ECHO_C= ECHO_N= ECHO_T= 492ECHO_C= ECHO_N= ECHO_T=
453case `echo -n x` in #((((( 493case `echo -n x` in
454-n*) 494-n*)
455 case `echo 'xy\c'` in 495 case `echo 'x\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';; 497 *) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;; 498 esac;;
461*) 499*)
462 ECHO_N='-n';; 500 ECHO_N='-n';;
463esac 501esac
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505else
506 as_expr=false
507fi
464 508
465rm -f conf$$ conf$$.exe conf$$.file 509rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then 510if test -d conf$$.dir; then
@@ -490,7 +534,7 @@ rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null 534rmdir conf$$.dir 2>/dev/null
491 535
492if mkdir -p . 2>/dev/null; then 536if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"' 537 as_mkdir_p=:
494else 538else
495 test -d ./-p && rmdir ./-p 539 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false 540 as_mkdir_p=false
@@ -509,10 +553,10 @@ else
509 if test -d "$1"; then 553 if test -d "$1"; then
510 test -d "$1/."; 554 test -d "$1/.";
511 else 555 else
512 case $1 in #( 556 case $1 in
513 -*)set "./$1";; 557 -*)set "./$1";;
514 esac; 558 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
516 ???[sx]*):;;*)false;;esac;fi 560 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh 561 '\'' sh
518 ' 562 '
@@ -526,8 +570,8 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 571
528 572
529test -n "$DJDIR" || exec 7<&0 </dev/null 573
530exec 6>&1 574exec 7<&0 </dev/null 6>&1
531 575
532# Name of the host. 576# Name of the host.
533# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 577# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
@@ -545,6 +589,7 @@ cross_compiling=no
545subdirs= 589subdirs=
546MFLAGS= 590MFLAGS=
547MAKEFLAGS= 591MAKEFLAGS=
592SHELL=${CONFIG_SHELL-/bin/sh}
548 593
549# Identity of this package. 594# Identity of this package.
550PACKAGE_NAME='emacs' 595PACKAGE_NAME='emacs'
@@ -552,7 +597,6 @@ PACKAGE_TARNAME='emacs'
552PACKAGE_VERSION='24.0.50' 597PACKAGE_VERSION='24.0.50'
553PACKAGE_STRING='emacs 24.0.50' 598PACKAGE_STRING='emacs 24.0.50'
554PACKAGE_BUGREPORT='' 599PACKAGE_BUGREPORT=''
555PACKAGE_URL=''
556 600
557ac_unique_file="src/lisp.h" 601ac_unique_file="src/lisp.h"
558# Factoring default headers for most tests. 602# Factoring default headers for most tests.
@@ -594,163 +638,163 @@ 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
598WIDGET_OBJ
599XOBJ
600XMENU_OBJ
601OTHER_FILES
602LIB_SRC_EXTRA_INSTALLABLES
603GNU_OBJC_CFLAGS
604GNUSTEP_SYSTEM_LIBRARIES
605GNUSTEP_SYSTEM_HEADERS
606GNUSTEP_MAKEFILES
607ns_appsrc
608ns_appresdir
609ns_appbindir
610ns_appdir
611opsysfile
612machfile
613X_TOOLKIT_TYPE
614C_SWITCH_X_SITE
615LD_SWITCH_X_SITE_AUX
616LD_SWITCH_X_SITE
617unexec
618c_switch_machine
619c_switch_system
620gameuser
621gamedir
622bitmapdir
623archlibdir
624etcdir
625x_default_search_path
626lisppath
627locallisppath
628lispdir
629srcdir
630canonical
631configuration
632version
633KRB4LIB
634DESLIB
635KRB5LIB
636CRYPTOLIB
637COM_ERRLIB
638LIBRESOLV
639LIBHESIOD
640GETOPTOBJS
641GETOPT_H
642GETLOADAVG_LIBS
643KMEM_GROUP
644NEED_SETGID
645LIBOBJS
646LIBS_MAIL
647liblockfile
648ALLOCA
649LIBXSM
650LIBGPM
651LIBGIF
652LIBTIFF
653LIBPNG
654LIBJPEG
655LIBXPM
656FREETYPE_LIBS
657FREETYPE_CFLAGS
658M17N_FLT_LIBS
659M17N_FLT_CFLAGS
660LIBOTF_LIBS
661LIBOTF_CFLAGS
662XFT_LIBS
663XFT_CFLAGS
664FONTCONFIG_LIBS
665FONTCONFIG_CFLAGS
666LIBXP
667LUCID_LIBW
668LIBSELINUX_LIBS
669GCONF_LIBS
670GCONF_CFLAGS
671DBUS_OBJ
672DBUS_LIBS
673DBUS_CFLAGS
674GTK_OBJ
675GTK_LIBS
676GTK_CFLAGS
677RSVG_LIBS
678RSVG_CFLAGS
679HAVE_XSERVER
680XMKMF
681SET_MAKE
682CFLAGS_SOUND
683ALSA_LIBS
684ALSA_CFLAGS
685PKG_CONFIG
686LIBSOUND
687CRT_DIR
688LIB_MATH
689MAKEINFO
690GZIP_PROG
691INSTALL_INFO
692RANLIB
693INSTALL_DATA
694INSTALL_SCRIPT
695INSTALL_PROGRAM
696LN_S
697EGREP
698GREP
699CPP
700OBJEXT
701EXEEXT
702ac_ct_CC
703CPPFLAGS
704LDFLAGS
705CFLAGS
706CC
707host_os
708host_vendor
709host_cpu
710host
711build_os
712build_vendor
713build_cpu
714build
715MAINT
716target_alias
717host_alias
718build_alias
719LIBS
720ECHO_T
721ECHO_N
722ECHO_C
723DEFS
724mandir
725localedir
726libdir
727psdir
728pdfdir
729dvidir
730htmldir
731infodir
732docdir
733oldincludedir
734includedir
735localstatedir
736sharedstatedir
737sysconfdir
738datadir
739datarootdir
740libexecdir
741sbindir
742bindir
743program_transform_name
744prefix
745exec_prefix
746PACKAGE_URL
747PACKAGE_BUGREPORT
748PACKAGE_STRING
749PACKAGE_VERSION
750PACKAGE_TARNAME
751PACKAGE_NAME
752PATH_SEPARATOR 642PATH_SEPARATOR
753SHELL' 643PACKAGE_NAME
644PACKAGE_TARNAME
645PACKAGE_VERSION
646PACKAGE_STRING
647PACKAGE_BUGREPORT
648exec_prefix
649prefix
650program_transform_name
651bindir
652sbindir
653libexecdir
654datarootdir
655datadir
656sysconfdir
657sharedstatedir
658localstatedir
659includedir
660oldincludedir
661docdir
662infodir
663htmldir
664dvidir
665pdfdir
666psdir
667libdir
668localedir
669mandir
670DEFS
671ECHO_C
672ECHO_N
673ECHO_T
674LIBS
675build_alias
676host_alias
677target_alias
678MAINT
679build
680build_cpu
681build_vendor
682build_os
683host
684host_cpu
685host_vendor
686host_os
687CC
688CFLAGS
689LDFLAGS
690CPPFLAGS
691ac_ct_CC
692EXEEXT
693OBJEXT
694CPP
695GREP
696EGREP
697LN_S
698INSTALL_PROGRAM
699INSTALL_SCRIPT
700INSTALL_DATA
701RANLIB
702INSTALL_INFO
703GZIP_PROG
704MAKEINFO
705LIB_MATH
706CRT_DIR
707LIBSOUND
708PKG_CONFIG
709ALSA_CFLAGS
710ALSA_LIBS
711CFLAGS_SOUND
712SET_MAKE
713XMKMF
714HAVE_XSERVER
715RSVG_CFLAGS
716RSVG_LIBS
717GTK_CFLAGS
718GTK_LIBS
719GTK_OBJ
720DBUS_CFLAGS
721DBUS_LIBS
722DBUS_OBJ
723GCONF_CFLAGS
724GCONF_LIBS
725LIBSELINUX_LIBS
726LUCID_LIBW
727LIBXP
728FONTCONFIG_CFLAGS
729FONTCONFIG_LIBS
730XFT_CFLAGS
731XFT_LIBS
732LIBOTF_CFLAGS
733LIBOTF_LIBS
734M17N_FLT_CFLAGS
735M17N_FLT_LIBS
736FREETYPE_CFLAGS
737FREETYPE_LIBS
738LIBXPM
739LIBJPEG
740LIBPNG
741LIBTIFF
742LIBGIF
743LIBGPM
744LIBXSM
745ALLOCA
746liblockfile
747LIBS_MAIL
748LIBOBJS
749NEED_SETGID
750KMEM_GROUP
751GETLOADAVG_LIBS
752GETOPT_H
753GETOPTOBJS
754LIBHESIOD
755LIBRESOLV
756COM_ERRLIB
757CRYPTOLIB
758KRB5LIB
759DESLIB
760KRB4LIB
761version
762configuration
763canonical
764srcdir
765lispdir
766locallisppath
767lisppath
768x_default_search_path
769etcdir
770archlibdir
771bitmapdir
772gamedir
773gameuser
774c_switch_system
775c_switch_machine
776unexec
777LD_SWITCH_X_SITE
778LD_SWITCH_X_SITE_AUX
779C_SWITCH_X_SITE
780C_SWITCH_X_SYSTEM
781X_TOOLKIT_TYPE
782machfile
783opsysfile
784ns_appdir
785ns_appbindir
786ns_appresdir
787ns_appsrc
788GNUSTEP_MAKEFILES
789GNUSTEP_SYSTEM_HEADERS
790GNUSTEP_SYSTEM_LIBRARIES
791GNU_OBJC_CFLAGS
792LIB_SRC_EXTRA_INSTALLABLES
793OTHER_FILES
794XMENU_OBJ
795XOBJ
796WIDGET_OBJ
797LTLIBOBJS'
754ac_subst_files='' 798ac_subst_files=''
755ac_user_opts=' 799ac_user_opts='
756enable_option_checking 800enable_option_checking
@@ -915,7 +959,8 @@ do
915 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 959 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
916 # Reject names that are not valid shell variable names. 960 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 as_fn_error "invalid feature name: $ac_useropt" 962 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
963 { (exit 1); exit 1; }; }
919 ac_useropt_orig=$ac_useropt 964 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in 966 case $ac_user_opts in
@@ -941,7 +986,8 @@ do
941 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 986 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942 # Reject names that are not valid shell variable names. 987 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error "invalid feature name: $ac_useropt" 989 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
990 { (exit 1); exit 1; }; }
945 ac_useropt_orig=$ac_useropt 991 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in 993 case $ac_user_opts in
@@ -1145,7 +1191,8 @@ do
1145 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1191 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1146 # Reject names that are not valid shell variable names. 1192 # Reject names that are not valid shell variable names.
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148 as_fn_error "invalid package name: $ac_useropt" 1194 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1195 { (exit 1); exit 1; }; }
1149 ac_useropt_orig=$ac_useropt 1196 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in 1198 case $ac_user_opts in
@@ -1161,7 +1208,8 @@ do
1161 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1208 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1162 # Reject names that are not valid shell variable names. 1209 # Reject names that are not valid shell variable names.
1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164 as_fn_error "invalid package name: $ac_useropt" 1211 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1212 { (exit 1); exit 1; }; }
1165 ac_useropt_orig=$ac_useropt 1213 ac_useropt_orig=$ac_useropt
1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in 1215 case $ac_user_opts in
@@ -1191,17 +1239,17 @@ do
1191 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1239 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1192 x_libraries=$ac_optarg ;; 1240 x_libraries=$ac_optarg ;;
1193 1241
1194 -*) as_fn_error "unrecognized option: \`$ac_option' 1242 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1195Try \`$0 --help' for more information." 1243Try \`$0 --help' for more information." >&2
1244 { (exit 1); exit 1; }; }
1196 ;; 1245 ;;
1197 1246
1198 *=*) 1247 *=*)
1199 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1200 # Reject names that are not valid shell variable names. 1249 # Reject names that are not valid shell variable names.
1201 case $ac_envvar in #( 1250 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1202 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1251 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1203 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1252 { (exit 1); exit 1; }; }
1204 esac
1205 eval $ac_envvar=\$ac_optarg 1253 eval $ac_envvar=\$ac_optarg
1206 export $ac_envvar ;; 1254 export $ac_envvar ;;
1207 1255
@@ -1218,14 +1266,16 @@ done
1218 1266
1219if test -n "$ac_prev"; then 1267if test -n "$ac_prev"; then
1220 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1268 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1221 as_fn_error "missing argument to $ac_option" 1269 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1270 { (exit 1); exit 1; }; }
1222fi 1271fi
1223 1272
1224if test -n "$ac_unrecognized_opts"; then 1273if test -n "$ac_unrecognized_opts"; then
1225 case $enable_option_checking in 1274 case $enable_option_checking in
1226 no) ;; 1275 no) ;;
1227 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1276 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1228 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1277 { (exit 1); exit 1; }; } ;;
1278 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1229 esac 1279 esac
1230fi 1280fi
1231 1281
@@ -1247,7 +1297,8 @@ do
1247 [\\/$]* | ?:[\\/]* ) continue;; 1297 [\\/$]* | ?:[\\/]* ) continue;;
1248 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1298 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1249 esac 1299 esac
1250 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1300 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1301 { (exit 1); exit 1; }; }
1251done 1302done
1252 1303
1253# There might be people who depend on the old broken behavior: `$host' 1304# There might be people who depend on the old broken behavior: `$host'
@@ -1277,9 +1328,11 @@ test "$silent" = yes && exec 6>/dev/null
1277ac_pwd=`pwd` && test -n "$ac_pwd" && 1328ac_pwd=`pwd` && test -n "$ac_pwd" &&
1278ac_ls_di=`ls -di .` && 1329ac_ls_di=`ls -di .` &&
1279ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1330ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1280 as_fn_error "working directory cannot be determined" 1331 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1332 { (exit 1); exit 1; }; }
1281test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1333test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1282 as_fn_error "pwd does not report name of working directory" 1334 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1335 { (exit 1); exit 1; }; }
1283 1336
1284 1337
1285# Find the source files, if location was not specified. 1338# Find the source files, if location was not specified.
@@ -1318,11 +1371,13 @@ else
1318fi 1371fi
1319if test ! -r "$srcdir/$ac_unique_file"; then 1372if test ! -r "$srcdir/$ac_unique_file"; then
1320 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1373 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1321 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1374 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1375 { (exit 1); exit 1; }; }
1322fi 1376fi
1323ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1377ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1324ac_abs_confdir=`( 1378ac_abs_confdir=`(
1325 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1379 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1380 { (exit 1); exit 1; }; }
1326 pwd)` 1381 pwd)`
1327# When building in place, set srcdir=. 1382# When building in place, set srcdir=.
1328if test "$ac_abs_confdir" = "$ac_pwd"; then 1383if test "$ac_abs_confdir" = "$ac_pwd"; then
@@ -1502,7 +1557,7 @@ Some influential environment variables:
1502 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1557 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1503 nonstandard directory <lib dir> 1558 nonstandard directory <lib dir>
1504 LIBS libraries to pass to the linker, e.g. -l<library> 1559 LIBS libraries to pass to the linker, e.g. -l<library>
1505 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1560 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1506 you have headers in a nonstandard directory <include dir> 1561 you have headers in a nonstandard directory <include dir>
1507 CPP C preprocessor 1562 CPP C preprocessor
1508 XMKMF Path to xmkmf, Makefile generator for X Window System 1563 XMKMF Path to xmkmf, Makefile generator for X Window System
@@ -1510,7 +1565,6 @@ Some influential environment variables:
1510Use these variables to override the choices made by `configure' or to help 1565Use these variables to override the choices made by `configure' or to help
1511it to find libraries and programs with nonstandard names/locations. 1566it to find libraries and programs with nonstandard names/locations.
1512 1567
1513Report bugs to the package provider.
1514_ACEOF 1568_ACEOF
1515ac_status=$? 1569ac_status=$?
1516fi 1570fi
@@ -1574,551 +1628,21 @@ test -n "$ac_init_help" && exit $ac_status
1574if $ac_init_version; then 1628if $ac_init_version; then
1575 cat <<\_ACEOF 1629 cat <<\_ACEOF
1576emacs configure 24.0.50 1630emacs configure 24.0.50
1577generated by GNU Autoconf 2.65 1631generated by GNU Autoconf 2.62
1578 1632
1579Copyright (C) 2009 Free Software Foundation, Inc. 1633Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16342002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1580This configure script is free software; the Free Software Foundation 1635This configure script is free software; the Free Software Foundation
1581gives unlimited permission to copy, distribute and modify it. 1636gives unlimited permission to copy, distribute and modify it.
1582_ACEOF 1637_ACEOF
1583 exit 1638 exit
1584fi 1639fi
1585
1586## ------------------------ ##
1587## Autoconf initialization. ##
1588## ------------------------ ##
1589
1590# ac_fn_c_try_compile LINENO
1591# --------------------------
1592# Try to compile conftest.$ac_ext, and return whether this succeeded.
1593ac_fn_c_try_compile ()
1594{
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext
1597 if { { ac_try="$ac_compile"
1598case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601esac
1602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603$as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_compile") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1610 fi
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest.$ac_objext; then :
1616 ac_retval=0
1617else
1618 $as_echo "$as_me: failed program was:" >&5
1619sed 's/^/| /' conftest.$ac_ext >&5
1620
1621 ac_retval=1
1622fi
1623 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1624 as_fn_set_status $ac_retval
1625
1626} # ac_fn_c_try_compile
1627
1628# ac_fn_c_try_link LINENO
1629# -----------------------
1630# Try to link conftest.$ac_ext, and return whether this succeeded.
1631ac_fn_c_try_link ()
1632{
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 rm -f conftest.$ac_objext conftest$ac_exeext
1635 if { { ac_try="$ac_link"
1636case "(($ac_try" in
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1639esac
1640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641$as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_link") 2>conftest.err
1643 ac_status=$?
1644 if test -s conftest.err; then
1645 grep -v '^ *+' conftest.err >conftest.er1
1646 cat conftest.er1 >&5
1647 mv -f conftest.er1 conftest.err
1648 fi
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } && {
1651 test -z "$ac_c_werror_flag" ||
1652 test ! -s conftest.err
1653 } && test -s conftest$ac_exeext && {
1654 test "$cross_compiling" = yes ||
1655 $as_test_x conftest$ac_exeext
1656 }; then :
1657 ac_retval=0
1658else
1659 $as_echo "$as_me: failed program was:" >&5
1660sed 's/^/| /' conftest.$ac_ext >&5
1661
1662 ac_retval=1
1663fi
1664 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1665 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1666 # interfere with the next link command; also delete a directory that is
1667 # left behind by Apple's compiler. We do this before executing the actions.
1668 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1669 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1670 as_fn_set_status $ac_retval
1671
1672} # ac_fn_c_try_link
1673
1674# ac_fn_c_try_cpp LINENO
1675# ----------------------
1676# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1677ac_fn_c_try_cpp ()
1678{
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if { { ac_try="$ac_cpp conftest.$ac_ext"
1681case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684esac
1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686$as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1693 fi
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } >/dev/null && {
1696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 }; then :
1699 ac_retval=0
1700else
1701 $as_echo "$as_me: failed program was:" >&5
1702sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=1
1705fi
1706 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1707 as_fn_set_status $ac_retval
1708
1709} # ac_fn_c_try_cpp
1710
1711# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1712# -------------------------------------------------------
1713# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1714# the include files in INCLUDES and setting the cache variable VAR
1715# accordingly.
1716ac_fn_c_check_header_mongrel ()
1717{
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721$as_echo_n "checking for $2... " >&6; }
1722if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1723 $as_echo_n "(cached) " >&6
1724fi
1725eval ac_res=\$$3
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727$as_echo "$ac_res" >&6; }
1728else
1729 # Is the header compilable?
1730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1731$as_echo_n "checking $2 usability... " >&6; }
1732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733/* end confdefs.h. */
1734$4
1735#include <$2>
1736_ACEOF
1737if ac_fn_c_try_compile "$LINENO"; then :
1738 ac_header_compiler=yes
1739else
1740 ac_header_compiler=no
1741fi
1742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1744$as_echo "$ac_header_compiler" >&6; }
1745
1746# Is the header present?
1747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1748$as_echo_n "checking $2 presence... " >&6; }
1749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750/* end confdefs.h. */
1751#include <$2>
1752_ACEOF
1753if ac_fn_c_try_cpp "$LINENO"; then :
1754 ac_header_preproc=yes
1755else
1756 ac_header_preproc=no
1757fi
1758rm -f conftest.err conftest.$ac_ext
1759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1760$as_echo "$ac_header_preproc" >&6; }
1761
1762# So? What about this header?
1763case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1764 yes:no: )
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1766$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1768$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1769 ;;
1770 no:yes:* )
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1772$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1774$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1776$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1778$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1780$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1781 ;;
1782esac
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784$as_echo_n "checking for $2... " >&6; }
1785if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1786 $as_echo_n "(cached) " >&6
1787else
1788 eval "$3=\$ac_header_compiler"
1789fi
1790eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792$as_echo "$ac_res" >&6; }
1793fi
1794 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1795
1796} # ac_fn_c_check_header_mongrel
1797
1798# ac_fn_c_try_run LINENO
1799# ----------------------
1800# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1801# that executables *can* be run.
1802ac_fn_c_try_run ()
1803{
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 if { { ac_try="$ac_link"
1806case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809esac
1810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811$as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_link") 2>&5
1813 ac_status=$?
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1816 { { case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819esac
1820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821$as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_try") 2>&5
1823 ac_status=$?
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; }; }; then :
1826 ac_retval=0
1827else
1828 $as_echo "$as_me: program exited with status $ac_status" >&5
1829 $as_echo "$as_me: failed program was:" >&5
1830sed 's/^/| /' conftest.$ac_ext >&5
1831
1832 ac_retval=$ac_status
1833fi
1834 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836 as_fn_set_status $ac_retval
1837
1838} # ac_fn_c_try_run
1839
1840# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1841# -------------------------------------------------------
1842# Tests whether HEADER exists and can be compiled using the include files in
1843# INCLUDES, setting the cache variable VAR accordingly.
1844ac_fn_c_check_header_compile ()
1845{
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848$as_echo_n "checking for $2... " >&6; }
1849if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1850 $as_echo_n "(cached) " >&6
1851else
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853/* end confdefs.h. */
1854$4
1855#include <$2>
1856_ACEOF
1857if ac_fn_c_try_compile "$LINENO"; then :
1858 eval "$3=yes"
1859else
1860 eval "$3=no"
1861fi
1862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1863fi
1864eval ac_res=\$$3
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866$as_echo "$ac_res" >&6; }
1867 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1868
1869} # ac_fn_c_check_header_compile
1870
1871# ac_fn_c_check_header_preproc LINENO HEADER VAR
1872# ----------------------------------------------
1873# Tests whether HEADER is present, setting the cache variable VAR accordingly.
1874ac_fn_c_check_header_preproc ()
1875{
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878$as_echo_n "checking for $2... " >&6; }
1879if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1880 $as_echo_n "(cached) " >&6
1881else
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883/* end confdefs.h. */
1884#include <$2>
1885_ACEOF
1886if ac_fn_c_try_cpp "$LINENO"; then :
1887 eval "$3=yes"
1888else
1889 eval "$3=no"
1890fi
1891rm -f conftest.err conftest.$ac_ext
1892fi
1893eval ac_res=\$$3
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895$as_echo "$ac_res" >&6; }
1896 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1897
1898} # ac_fn_c_check_header_preproc
1899
1900# ac_fn_c_check_decl LINENO SYMBOL VAR
1901# ------------------------------------
1902# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1903ac_fn_c_check_decl ()
1904{
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1907$as_echo_n "checking whether $2 is declared... " >&6; }
1908if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1909 $as_echo_n "(cached) " >&6
1910else
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912/* end confdefs.h. */
1913$4
1914int
1915main ()
1916{
1917#ifndef $2
1918 (void) $2;
1919#endif
1920
1921 ;
1922 return 0;
1923}
1924_ACEOF
1925if ac_fn_c_try_compile "$LINENO"; then :
1926 eval "$3=yes"
1927else
1928 eval "$3=no"
1929fi
1930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1931fi
1932eval ac_res=\$$3
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934$as_echo "$ac_res" >&6; }
1935 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1936
1937} # ac_fn_c_check_decl
1938
1939# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1940# ----------------------------------------------------
1941# Tries to find if the field MEMBER exists in type AGGR, after including
1942# INCLUDES, setting cache variable VAR accordingly.
1943ac_fn_c_check_member ()
1944{
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1947$as_echo_n "checking for $2.$3... " >&6; }
1948if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1949 $as_echo_n "(cached) " >&6
1950else
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952/* end confdefs.h. */
1953$5
1954int
1955main ()
1956{
1957static $2 ac_aggr;
1958if (ac_aggr.$3)
1959return 0;
1960 ;
1961 return 0;
1962}
1963_ACEOF
1964if ac_fn_c_try_compile "$LINENO"; then :
1965 eval "$4=yes"
1966else
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968/* end confdefs.h. */
1969$5
1970int
1971main ()
1972{
1973static $2 ac_aggr;
1974if (sizeof ac_aggr.$3)
1975return 0;
1976 ;
1977 return 0;
1978}
1979_ACEOF
1980if ac_fn_c_try_compile "$LINENO"; then :
1981 eval "$4=yes"
1982else
1983 eval "$4=no"
1984fi
1985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986fi
1987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988fi
1989eval ac_res=\$$4
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991$as_echo "$ac_res" >&6; }
1992 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1993
1994} # ac_fn_c_check_member
1995
1996# ac_fn_c_check_func LINENO FUNC VAR
1997# ----------------------------------
1998# Tests whether FUNC exists, setting the cache variable VAR accordingly
1999ac_fn_c_check_func ()
2000{
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003$as_echo_n "checking for $2... " >&6; }
2004if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2005 $as_echo_n "(cached) " >&6
2006else
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008/* end confdefs.h. */
2009/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2011#define $2 innocuous_$2
2012
2013/* System header to define __stub macros and hopefully few prototypes,
2014 which can conflict with char $2 (); below.
2015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2016 <limits.h> exists even on freestanding compilers. */
2017
2018#ifdef __STDC__
2019# include <limits.h>
2020#else
2021# include <assert.h>
2022#endif
2023
2024#undef $2
2025
2026/* Override any GCC internal prototype to avoid an error.
2027 Use char because int might match the return type of a GCC
2028 builtin and then its argument prototype would still apply. */
2029#ifdef __cplusplus
2030extern "C"
2031#endif
2032char $2 ();
2033/* The GNU C library defines this for functions which it implements
2034 to always fail with ENOSYS. Some functions are actually named
2035 something starting with __ and the normal name is an alias. */
2036#if defined __stub_$2 || defined __stub___$2
2037choke me
2038#endif
2039
2040int
2041main ()
2042{
2043return $2 ();
2044 ;
2045 return 0;
2046}
2047_ACEOF
2048if ac_fn_c_try_link "$LINENO"; then :
2049 eval "$3=yes"
2050else
2051 eval "$3=no"
2052fi
2053rm -f core conftest.err conftest.$ac_objext \
2054 conftest$ac_exeext conftest.$ac_ext
2055fi
2056eval ac_res=\$$3
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058$as_echo "$ac_res" >&6; }
2059 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2060
2061} # ac_fn_c_check_func
2062
2063# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2064# -------------------------------------------
2065# Tests whether TYPE exists after having included INCLUDES, setting cache
2066# variable VAR accordingly.
2067ac_fn_c_check_type ()
2068{
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2071$as_echo_n "checking for $2... " >&6; }
2072if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2073 $as_echo_n "(cached) " >&6
2074else
2075 eval "$3=no"
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077/* end confdefs.h. */
2078$4
2079int
2080main ()
2081{
2082if (sizeof ($2))
2083 return 0;
2084 ;
2085 return 0;
2086}
2087_ACEOF
2088if ac_fn_c_try_compile "$LINENO"; then :
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090/* end confdefs.h. */
2091$4
2092int
2093main ()
2094{
2095if (sizeof (($2)))
2096 return 0;
2097 ;
2098 return 0;
2099}
2100_ACEOF
2101if ac_fn_c_try_compile "$LINENO"; then :
2102
2103else
2104 eval "$3=yes"
2105fi
2106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107fi
2108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109fi
2110eval ac_res=\$$3
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2112$as_echo "$ac_res" >&6; }
2113 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2114
2115} # ac_fn_c_check_type
2116cat >config.log <<_ACEOF 1640cat >config.log <<_ACEOF
2117This file contains any messages produced by compilers while 1641This file contains any messages produced by compilers while
2118running configure, to aid debugging if configure makes a mistake. 1642running configure, to aid debugging if configure makes a mistake.
2119 1643
2120It was created by emacs $as_me 24.0.50, which was 1644It was created by emacs $as_me 24.0.50, which was
2121generated by GNU Autoconf 2.65. Invocation command line was 1645generated by GNU Autoconf 2.62. Invocation command line was
2122 1646
2123 $ $0 $@ 1647 $ $0 $@
2124 1648
@@ -2154,8 +1678,8 @@ for as_dir in $PATH
2154do 1678do
2155 IFS=$as_save_IFS 1679 IFS=$as_save_IFS
2156 test -z "$as_dir" && as_dir=. 1680 test -z "$as_dir" && as_dir=.
2157 $as_echo "PATH: $as_dir" 1681 $as_echo "PATH: $as_dir"
2158 done 1682done
2159IFS=$as_save_IFS 1683IFS=$as_save_IFS
2160 1684
2161} >&5 1685} >&5
@@ -2192,9 +1716,9 @@ do
2192 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1716 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2193 esac 1717 esac
2194 case $ac_pass in 1718 case $ac_pass in
2195 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1719 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2196 2) 1720 2)
2197 as_fn_append ac_configure_args1 " '$ac_arg'" 1721 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2198 if test $ac_must_keep_next = true; then 1722 if test $ac_must_keep_next = true; then
2199 ac_must_keep_next=false # Got value, back to normal. 1723 ac_must_keep_next=false # Got value, back to normal.
2200 else 1724 else
@@ -2210,13 +1734,13 @@ do
2210 -* ) ac_must_keep_next=true ;; 1734 -* ) ac_must_keep_next=true ;;
2211 esac 1735 esac
2212 fi 1736 fi
2213 as_fn_append ac_configure_args " '$ac_arg'" 1737 ac_configure_args="$ac_configure_args '$ac_arg'"
2214 ;; 1738 ;;
2215 esac 1739 esac
2216 done 1740 done
2217done 1741done
2218{ ac_configure_args0=; unset ac_configure_args0;} 1742$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2219{ ac_configure_args1=; unset ac_configure_args1;} 1743$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2220 1744
2221# When interrupted or exit'd, cleanup temporary files, and complete 1745# When interrupted or exit'd, cleanup temporary files, and complete
2222# config.log. We remove comments because anyway the quotes in there 1746# config.log. We remove comments because anyway the quotes in there
@@ -2241,13 +1765,13 @@ _ASBOX
2241 case $ac_val in #( 1765 case $ac_val in #(
2242 *${as_nl}*) 1766 *${as_nl}*)
2243 case $ac_var in #( 1767 case $ac_var in #(
2244 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1768 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2245$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1769$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2246 esac 1770 esac
2247 case $ac_var in #( 1771 case $ac_var in #(
2248 _ | IFS | as_nl) ;; #( 1772 _ | IFS | as_nl) ;; #(
2249 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1773 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2250 *) { eval $ac_var=; unset $ac_var;} ;; 1774 *) $as_unset $ac_var ;;
2251 esac ;; 1775 esac ;;
2252 esac 1776 esac
2253 done 1777 done
@@ -2319,39 +1843,37 @@ _ASBOX
2319 exit $exit_status 1843 exit $exit_status
2320' 0 1844' 0
2321for ac_signal in 1 2 13 15; do 1845for ac_signal in 1 2 13 15; do
2322 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1846 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2323done 1847done
2324ac_signal=0 1848ac_signal=0
2325 1849
2326# confdefs.h avoids OS command line length limits that DEFS can exceed. 1850# confdefs.h avoids OS command line length limits that DEFS can exceed.
2327rm -f -r conftest* confdefs.h 1851rm -f -r conftest* confdefs.h
2328 1852
2329$as_echo "/* confdefs.h */" > confdefs.h
2330
2331# Predefined preprocessor variables. 1853# Predefined preprocessor variables.
2332 1854
2333cat >>confdefs.h <<_ACEOF 1855cat >>confdefs.h <<_ACEOF
2334#define PACKAGE_NAME "$PACKAGE_NAME" 1856#define PACKAGE_NAME "$PACKAGE_NAME"
2335_ACEOF 1857_ACEOF
2336 1858
1859
2337cat >>confdefs.h <<_ACEOF 1860cat >>confdefs.h <<_ACEOF
2338#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1861#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2339_ACEOF 1862_ACEOF
2340 1863
1864
2341cat >>confdefs.h <<_ACEOF 1865cat >>confdefs.h <<_ACEOF
2342#define PACKAGE_VERSION "$PACKAGE_VERSION" 1866#define PACKAGE_VERSION "$PACKAGE_VERSION"
2343_ACEOF 1867_ACEOF
2344 1868
1869
2345cat >>confdefs.h <<_ACEOF 1870cat >>confdefs.h <<_ACEOF
2346#define PACKAGE_STRING "$PACKAGE_STRING" 1871#define PACKAGE_STRING "$PACKAGE_STRING"
2347_ACEOF 1872_ACEOF
2348 1873
2349cat >>confdefs.h <<_ACEOF
2350#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2351_ACEOF
2352 1874
2353cat >>confdefs.h <<_ACEOF 1875cat >>confdefs.h <<_ACEOF
2354#define PACKAGE_URL "$PACKAGE_URL" 1876#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2355_ACEOF 1877_ACEOF
2356 1878
2357 1879
@@ -2371,8 +1893,8 @@ fi
2371for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1893for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2372do 1894do
2373 test "x$ac_site_file" = xNONE && continue 1895 test "x$ac_site_file" = xNONE && continue
2374 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1896 if test -r "$ac_site_file"; then
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1897 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2376$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1898$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2377 sed 's/^/| /' "$ac_site_file" >&5 1899 sed 's/^/| /' "$ac_site_file" >&5
2378 . "$ac_site_file" 1900 . "$ac_site_file"
@@ -2380,10 +1902,10 @@ $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2380done 1902done
2381 1903
2382if test -r "$cache_file"; then 1904if test -r "$cache_file"; then
2383 # Some versions of bash will fail to source /dev/null (special files 1905 # Some versions of bash will fail to source /dev/null (special
2384 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1906 # files actually), so we avoid doing that.
2385 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1907 if test -f "$cache_file"; then
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1908 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2387$as_echo "$as_me: loading cache $cache_file" >&6;} 1909$as_echo "$as_me: loading cache $cache_file" >&6;}
2388 case $cache_file in 1910 case $cache_file in
2389 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1911 [\\/]* | ?:[\\/]* ) . "$cache_file";;
@@ -2391,16 +1913,14 @@ $as_echo "$as_me: loading cache $cache_file" >&6;}
2391 esac 1913 esac
2392 fi 1914 fi
2393else 1915else
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 1916 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2395$as_echo "$as_me: creating cache $cache_file" >&6;} 1917$as_echo "$as_me: creating cache $cache_file" >&6;}
2396 >$cache_file 1918 >$cache_file
2397fi 1919fi
2398 1920
2399as_fn_append ac_header_list " stdlib.h" 1921ac_header_list="$ac_header_list sys/time.h"
2400as_fn_append ac_header_list " unistd.h" 1922ac_header_list="$ac_header_list unistd.h"
2401as_fn_append ac_header_list " sys/param.h" 1923ac_func_list="$ac_func_list alarm"
2402as_fn_append ac_header_list " sys/time.h"
2403as_fn_append ac_func_list " alarm"
2404# Check that the precious variables saved in the cache have kept the same 1924# Check that the precious variables saved in the cache have kept the same
2405# value. 1925# value.
2406ac_cache_corrupted=false 1926ac_cache_corrupted=false
@@ -2411,11 +1931,11 @@ for ac_var in $ac_precious_vars; do
2411 eval ac_new_val=\$ac_env_${ac_var}_value 1931 eval ac_new_val=\$ac_env_${ac_var}_value
2412 case $ac_old_set,$ac_new_set in 1932 case $ac_old_set,$ac_new_set in
2413 set,) 1933 set,)
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1934 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2415$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1935$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2416 ac_cache_corrupted=: ;; 1936 ac_cache_corrupted=: ;;
2417 ,set) 1937 ,set)
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 1938 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2419$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1939$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2420 ac_cache_corrupted=: ;; 1940 ac_cache_corrupted=: ;;
2421 ,);; 1941 ,);;
@@ -2425,17 +1945,17 @@ $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2425 ac_old_val_w=`echo x $ac_old_val` 1945 ac_old_val_w=`echo x $ac_old_val`
2426 ac_new_val_w=`echo x $ac_new_val` 1946 ac_new_val_w=`echo x $ac_new_val`
2427 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1947 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 1948 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2429$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1949$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2430 ac_cache_corrupted=: 1950 ac_cache_corrupted=:
2431 else 1951 else
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1952 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2433$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1953$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2434 eval $ac_var=\$ac_old_val 1954 eval $ac_var=\$ac_old_val
2435 fi 1955 fi
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 1956 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2437$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1957$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 1958 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2439$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1959$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2440 fi;; 1960 fi;;
2441 esac 1961 esac
@@ -2447,20 +1967,41 @@ $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2447 esac 1967 esac
2448 case " $ac_configure_args " in 1968 case " $ac_configure_args " in
2449 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1969 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2450 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 1970 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2451 esac 1971 esac
2452 fi 1972 fi
2453done 1973done
2454if $ac_cache_corrupted; then 1974if $ac_cache_corrupted; then
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1975 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2458$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1976$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2459 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 1977 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1978$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1979 { (exit 1); exit 1; }; }
2460fi 1980fi
2461## -------------------- ## 1981
2462## Main body of script. ## 1982
2463## -------------------- ## 1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2464 2005
2465ac_ext=c 2006ac_ext=c
2466ac_cpp='$CPP $CPPFLAGS' 2007ac_cpp='$CPP $CPPFLAGS'
@@ -2499,33 +2040,39 @@ gameuser=games
2499 2040
2500 2041
2501# Check whether --with-pop was given. 2042# Check whether --with-pop was given.
2502if test "${with_pop+set}" = set; then : 2043if test "${with_pop+set}" = set; then
2503 withval=$with_pop; 2044 withval=$with_pop;
2504else 2045else
2505 with_pop=yes 2046 with_pop=yes
2506fi 2047fi
2507 2048
2508if test "$with_pop" = yes; then 2049if test "$with_pop" = yes; then
2509 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h 2050 cat >>confdefs.h <<\_ACEOF
2051#define MAIL_USE_POP 1
2052_ACEOF
2510 2053
2511fi 2054fi
2512 2055
2513 2056
2057
2514# Check whether --with-kerberos was given. 2058# Check whether --with-kerberos was given.
2515if test "${with_kerberos+set}" = set; then : 2059if test "${with_kerberos+set}" = set; then
2516 withval=$with_kerberos; 2060 withval=$with_kerberos;
2517else 2061else
2518 with_kerberos=no 2062 with_kerberos=no
2519fi 2063fi
2520 2064
2521if test "$with_kerberos" != no; then 2065if test "$with_kerberos" != no; then
2522 $as_echo "#define KERBEROS 1" >>confdefs.h 2066 cat >>confdefs.h <<\_ACEOF
2067#define KERBEROS 1
2068_ACEOF
2523 2069
2524fi 2070fi
2525 2071
2526 2072
2073
2527# Check whether --with-kerberos5 was given. 2074# Check whether --with-kerberos5 was given.
2528if test "${with_kerberos5+set}" = set; then : 2075if test "${with_kerberos5+set}" = set; then
2529 withval=$with_kerberos5; 2076 withval=$with_kerberos5;
2530else 2077else
2531 with_kerberos5=no 2078 with_kerberos5=no
@@ -2534,17 +2081,21 @@ fi
2534if test "${with_kerberos5}" != no; then 2081if test "${with_kerberos5}" != no; then
2535 if test "${with_kerberos}" = no; then 2082 if test "${with_kerberos}" = no; then
2536 with_kerberos=yes 2083 with_kerberos=yes
2537 $as_echo "#define KERBEROS 1" >>confdefs.h 2084 cat >>confdefs.h <<\_ACEOF
2085#define KERBEROS 1
2086_ACEOF
2538 2087
2539 fi 2088 fi
2540 2089
2541$as_echo "#define KERBEROS5 1" >>confdefs.h 2090cat >>confdefs.h <<\_ACEOF
2091#define KERBEROS5 1
2092_ACEOF
2542 2093
2543fi 2094fi
2544 2095
2545 2096
2546# Check whether --with-hesiod was given. 2097# Check whether --with-hesiod was given.
2547if test "${with_hesiod+set}" = set; then : 2098if test "${with_hesiod+set}" = set; then
2548 withval=$with_hesiod; 2099 withval=$with_hesiod;
2549else 2100else
2550 with_hesiod=no 2101 with_hesiod=no
@@ -2552,13 +2103,15 @@ fi
2552 2103
2553if test "$with_hesiod" != no; then 2104if test "$with_hesiod" != no; then
2554 2105
2555$as_echo "#define HESIOD 1" >>confdefs.h 2106cat >>confdefs.h <<\_ACEOF
2107#define HESIOD 1
2108_ACEOF
2556 2109
2557fi 2110fi
2558 2111
2559 2112
2560# Check whether --with-mmdf was given. 2113# Check whether --with-mmdf was given.
2561if test "${with_mmdf+set}" = set; then : 2114if test "${with_mmdf+set}" = set; then
2562 withval=$with_mmdf; 2115 withval=$with_mmdf;
2563else 2116else
2564 with_mmdf=no 2117 with_mmdf=no
@@ -2566,13 +2119,15 @@ fi
2566 2119
2567if test "$with_mmdf" != no; then 2120if test "$with_mmdf" != no; then
2568 2121
2569$as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h 2122cat >>confdefs.h <<\_ACEOF
2123#define MAIL_USE_MMDF 1
2124_ACEOF
2570 2125
2571fi 2126fi
2572 2127
2573 2128
2574# Check whether --with-mail-unlink was given. 2129# Check whether --with-mail-unlink was given.
2575if test "${with_mail_unlink+set}" = set; then : 2130if test "${with_mail_unlink+set}" = set; then
2576 withval=$with_mail_unlink; 2131 withval=$with_mail_unlink;
2577else 2132else
2578 with_mail_unlink=no 2133 with_mail_unlink=no
@@ -2580,13 +2135,15 @@ fi
2580 2135
2581if test "$with_mail_unlink" != no; then 2136if test "$with_mail_unlink" != no; then
2582 2137
2583$as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h 2138cat >>confdefs.h <<\_ACEOF
2139#define MAIL_UNLINK_SPOOL 1
2140_ACEOF
2584 2141
2585fi 2142fi
2586 2143
2587 2144
2588# Check whether --with-mailhost was given. 2145# Check whether --with-mailhost was given.
2589if test "${with_mailhost+set}" = set; then : 2146if test "${with_mailhost+set}" = set; then
2590 withval=$with_mailhost; 2147 withval=$with_mailhost;
2591cat >>confdefs.h <<_ACEOF 2148cat >>confdefs.h <<_ACEOF
2592#define MAILHOST "$withval" 2149#define MAILHOST "$withval"
@@ -2597,7 +2154,7 @@ fi
2597 2154
2598 2155
2599# Check whether --with-sound was given. 2156# Check whether --with-sound was given.
2600if test "${with_sound+set}" = set; then : 2157if test "${with_sound+set}" = set; then
2601 withval=$with_sound; 2158 withval=$with_sound;
2602else 2159else
2603 with_sound=yes 2160 with_sound=yes
@@ -2606,7 +2163,7 @@ fi
2606 2163
2607 2164
2608# Check whether --with-sync-input was given. 2165# Check whether --with-sync-input was given.
2609if test "${with_sync_input+set}" = set; then : 2166if test "${with_sync_input+set}" = set; then
2610 withval=$with_sync_input; 2167 withval=$with_sync_input;
2611else 2168else
2612 with_sync_input=yes 2169 with_sync_input=yes
@@ -2614,13 +2171,15 @@ fi
2614 2171
2615if test "$with_sync_input" = yes; then 2172if test "$with_sync_input" = yes; then
2616 2173
2617$as_echo "#define SYNC_INPUT 1" >>confdefs.h 2174cat >>confdefs.h <<\_ACEOF
2175#define SYNC_INPUT 1
2176_ACEOF
2618 2177
2619fi 2178fi
2620 2179
2621 2180
2622# Check whether --with-x-toolkit was given. 2181# Check whether --with-x-toolkit was given.
2623if test "${with_x_toolkit+set}" = set; then : 2182if test "${with_x_toolkit+set}" = set; then
2624 withval=$with_x_toolkit; case "${withval}" in 2183 withval=$with_x_toolkit; case "${withval}" in
2625 y | ye | yes ) val=gtk ;; 2184 y | ye | yes ) val=gtk ;;
2626 n | no ) val=no ;; 2185 n | no ) val=no ;;
@@ -2629,9 +2188,13 @@ if test "${with_x_toolkit+set}" = set; then :
2629 m | mo | mot | moti | motif ) val=motif ;; 2188 m | mo | mot | moti | motif ) val=motif ;;
2630 g | gt | gtk ) val=gtk ;; 2189 g | gt | gtk ) val=gtk ;;
2631 * ) 2190 * )
2632as_fn_error "\`--with-x-toolkit=$withval' is invalid; 2191{ { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2192this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2193\`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2194$as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2633this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. 2195this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2634\`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5 2196\`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2197 { (exit 1); exit 1; }; }
2635 ;; 2198 ;;
2636 esac 2199 esac
2637 with_x_toolkit=$val 2200 with_x_toolkit=$val
@@ -2641,7 +2204,7 @@ fi
2641 2204
2642 2205
2643# Check whether --with-xpm was given. 2206# Check whether --with-xpm was given.
2644if test "${with_xpm+set}" = set; then : 2207if test "${with_xpm+set}" = set; then
2645 withval=$with_xpm; 2208 withval=$with_xpm;
2646else 2209else
2647 with_xpm=yes 2210 with_xpm=yes
@@ -2649,7 +2212,7 @@ fi
2649 2212
2650 2213
2651# Check whether --with-jpeg was given. 2214# Check whether --with-jpeg was given.
2652if test "${with_jpeg+set}" = set; then : 2215if test "${with_jpeg+set}" = set; then
2653 withval=$with_jpeg; 2216 withval=$with_jpeg;
2654else 2217else
2655 with_jpeg=yes 2218 with_jpeg=yes
@@ -2657,7 +2220,7 @@ fi
2657 2220
2658 2221
2659# Check whether --with-tiff was given. 2222# Check whether --with-tiff was given.
2660if test "${with_tiff+set}" = set; then : 2223if test "${with_tiff+set}" = set; then
2661 withval=$with_tiff; 2224 withval=$with_tiff;
2662else 2225else
2663 with_tiff=yes 2226 with_tiff=yes
@@ -2665,7 +2228,7 @@ fi
2665 2228
2666 2229
2667# Check whether --with-gif was given. 2230# Check whether --with-gif was given.
2668if test "${with_gif+set}" = set; then : 2231if test "${with_gif+set}" = set; then
2669 withval=$with_gif; 2232 withval=$with_gif;
2670else 2233else
2671 with_gif=yes 2234 with_gif=yes
@@ -2673,7 +2236,7 @@ fi
2673 2236
2674 2237
2675# Check whether --with-png was given. 2238# Check whether --with-png was given.
2676if test "${with_png+set}" = set; then : 2239if test "${with_png+set}" = set; then
2677 withval=$with_png; 2240 withval=$with_png;
2678else 2241else
2679 with_png=yes 2242 with_png=yes
@@ -2681,7 +2244,7 @@ fi
2681 2244
2682 2245
2683# Check whether --with-rsvg was given. 2246# Check whether --with-rsvg was given.
2684if test "${with_rsvg+set}" = set; then : 2247if test "${with_rsvg+set}" = set; then
2685 withval=$with_rsvg; 2248 withval=$with_rsvg;
2686else 2249else
2687 with_rsvg=yes 2250 with_rsvg=yes
@@ -2690,7 +2253,7 @@ fi
2690 2253
2691 2254
2692# Check whether --with-xft was given. 2255# Check whether --with-xft was given.
2693if test "${with_xft+set}" = set; then : 2256if test "${with_xft+set}" = set; then
2694 withval=$with_xft; 2257 withval=$with_xft;
2695else 2258else
2696 with_xft=yes 2259 with_xft=yes
@@ -2698,7 +2261,7 @@ fi
2698 2261
2699 2262
2700# Check whether --with-libotf was given. 2263# Check whether --with-libotf was given.
2701if test "${with_libotf+set}" = set; then : 2264if test "${with_libotf+set}" = set; then
2702 withval=$with_libotf; 2265 withval=$with_libotf;
2703else 2266else
2704 with_libotf=yes 2267 with_libotf=yes
@@ -2706,7 +2269,7 @@ fi
2706 2269
2707 2270
2708# Check whether --with-m17n-flt was given. 2271# Check whether --with-m17n-flt was given.
2709if test "${with_m17n_flt+set}" = set; then : 2272if test "${with_m17n_flt+set}" = set; then
2710 withval=$with_m17n_flt; 2273 withval=$with_m17n_flt;
2711else 2274else
2712 with_m17n_flt=yes 2275 with_m17n_flt=yes
@@ -2715,7 +2278,7 @@ fi
2715 2278
2716 2279
2717# Check whether --with-toolkit-scroll-bars was given. 2280# Check whether --with-toolkit-scroll-bars was given.
2718if test "${with_toolkit_scroll_bars+set}" = set; then : 2281if test "${with_toolkit_scroll_bars+set}" = set; then
2719 withval=$with_toolkit_scroll_bars; 2282 withval=$with_toolkit_scroll_bars;
2720else 2283else
2721 with_toolkit_scroll_bars=yes 2284 with_toolkit_scroll_bars=yes
@@ -2723,7 +2286,7 @@ fi
2723 2286
2724 2287
2725# Check whether --with-xaw3d was given. 2288# Check whether --with-xaw3d was given.
2726if test "${with_xaw3d+set}" = set; then : 2289if test "${with_xaw3d+set}" = set; then
2727 withval=$with_xaw3d; 2290 withval=$with_xaw3d;
2728else 2291else
2729 with_xaw3d=yes 2292 with_xaw3d=yes
@@ -2731,7 +2294,7 @@ fi
2731 2294
2732 2295
2733# Check whether --with-xim was given. 2296# Check whether --with-xim was given.
2734if test "${with_xim+set}" = set; then : 2297if test "${with_xim+set}" = set; then
2735 withval=$with_xim; 2298 withval=$with_xim;
2736else 2299else
2737 with_xim=yes 2300 with_xim=yes
@@ -2739,7 +2302,7 @@ fi
2739 2302
2740 2303
2741# Check whether --with-ns was given. 2304# Check whether --with-ns was given.
2742if test "${with_ns+set}" = set; then : 2305if test "${with_ns+set}" = set; then
2743 withval=$with_ns; 2306 withval=$with_ns;
2744else 2307else
2745 with_ns=no 2308 with_ns=no
@@ -2748,7 +2311,7 @@ fi
2748 2311
2749 2312
2750# Check whether --with-gpm was given. 2313# Check whether --with-gpm was given.
2751if test "${with_gpm+set}" = set; then : 2314if test "${with_gpm+set}" = set; then
2752 withval=$with_gpm; 2315 withval=$with_gpm;
2753else 2316else
2754 with_gpm=yes 2317 with_gpm=yes
@@ -2756,7 +2319,7 @@ fi
2756 2319
2757 2320
2758# Check whether --with-dbus was given. 2321# Check whether --with-dbus was given.
2759if test "${with_dbus+set}" = set; then : 2322if test "${with_dbus+set}" = set; then
2760 withval=$with_dbus; 2323 withval=$with_dbus;
2761else 2324else
2762 with_dbus=yes 2325 with_dbus=yes
@@ -2764,7 +2327,7 @@ fi
2764 2327
2765 2328
2766# Check whether --with-gconf was given. 2329# Check whether --with-gconf was given.
2767if test "${with_gconf+set}" = set; then : 2330if test "${with_gconf+set}" = set; then
2768 withval=$with_gconf; 2331 withval=$with_gconf;
2769else 2332else
2770 with_gconf=yes 2333 with_gconf=yes
@@ -2772,7 +2335,7 @@ fi
2772 2335
2773 2336
2774# Check whether --with-selinux was given. 2337# Check whether --with-selinux was given.
2775if test "${with_selinux+set}" = set; then : 2338if test "${with_selinux+set}" = set; then
2776 withval=$with_selinux; 2339 withval=$with_selinux;
2777else 2340else
2778 with_selinux=yes 2341 with_selinux=yes
@@ -2783,7 +2346,7 @@ fi
2783## a suitable makeinfo, and can live without the manuals. 2346## a suitable makeinfo, and can live without the manuals.
2784 2347
2785# Check whether --with-makeinfo was given. 2348# Check whether --with-makeinfo was given.
2786if test "${with_makeinfo+set}" = set; then : 2349if test "${with_makeinfo+set}" = set; then
2787 withval=$with_makeinfo; 2350 withval=$with_makeinfo;
2788else 2351else
2789 with_makeinfo=yes 2352 with_makeinfo=yes
@@ -2792,23 +2355,29 @@ fi
2792 2355
2793 2356
2794# Check whether --with-gtk was given. 2357# Check whether --with-gtk was given.
2795if test "${with_gtk+set}" = set; then : 2358if test "${with_gtk+set}" = set; then
2796 withval=$with_gtk; as_fn_error "--with-gtk has been removed. Use --with-x-toolkit to 2359 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2797specify a toolkit." "$LINENO" 5 2360specify a toolkit." >&5
2361$as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2362specify a toolkit." >&2;}
2363 { (exit 1); exit 1; }; }
2798fi 2364fi
2799 2365
2800 2366
2801 2367
2802# Check whether --with-gcc was given. 2368# Check whether --with-gcc was given.
2803if test "${with_gcc+set}" = set; then : 2369if test "${with_gcc+set}" = set; then
2804 withval=$with_gcc; as_fn_error "--with-gcc has been removed. Set the \`CC' environment 2370 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2805variable to specify a compiler." "$LINENO" 5 2371variable to specify a compiler." >&5
2372$as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2373variable to specify a compiler." >&2;}
2374 { (exit 1); exit 1; }; }
2806fi 2375fi
2807 2376
2808 2377
2809 2378
2810# Check whether --with-pkg-config-prog was given. 2379# Check whether --with-pkg-config-prog was given.
2811if test "${with_pkg_config_prog+set}" = set; then : 2380if test "${with_pkg_config_prog+set}" = set; then
2812 withval=$with_pkg_config_prog; 2381 withval=$with_pkg_config_prog;
2813fi 2382fi
2814 2383
@@ -2821,7 +2390,7 @@ fi
2821CRT_DIR= 2390CRT_DIR=
2822 2391
2823# Check whether --with-crt-dir was given. 2392# Check whether --with-crt-dir was given.
2824if test "${with_crt_dir+set}" = set; then : 2393if test "${with_crt_dir+set}" = set; then
2825 withval=$with_crt_dir; 2394 withval=$with_crt_dir;
2826fi 2395fi
2827 2396
@@ -2829,7 +2398,7 @@ CRT_DIR="${with_crt_dir}"
2829 2398
2830 2399
2831# Check whether --with-gnustep-conf was given. 2400# Check whether --with-gnustep-conf was given.
2832if test "${with_gnustep_conf+set}" = set; then : 2401if test "${with_gnustep_conf+set}" = set; then
2833 withval=$with_gnustep_conf; 2402 withval=$with_gnustep_conf;
2834fi 2403fi
2835 2404
@@ -2839,7 +2408,7 @@ test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2839 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf 2408 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2840 2409
2841# Check whether --enable-ns-self-contained was given. 2410# Check whether --enable-ns-self-contained was given.
2842if test "${enable_ns_self_contained+set}" = set; then : 2411if test "${enable_ns_self_contained+set}" = set; then
2843 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval 2412 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2844else 2413else
2845 EN_NS_SELF_CONTAINED=yes 2414 EN_NS_SELF_CONTAINED=yes
@@ -2847,7 +2416,7 @@ fi
2847 2416
2848 2417
2849# Check whether --enable-asserts was given. 2418# Check whether --enable-asserts was given.
2850if test "${enable_asserts+set}" = set; then : 2419if test "${enable_asserts+set}" = set; then
2851 enableval=$enable_asserts; USE_XASSERTS=$enableval 2420 enableval=$enable_asserts; USE_XASSERTS=$enableval
2852else 2421else
2853 USE_XASSERTS=no 2422 USE_XASSERTS=no
@@ -2855,7 +2424,7 @@ fi
2855 2424
2856 2425
2857# Check whether --enable-maintainer-mode was given. 2426# Check whether --enable-maintainer-mode was given.
2858if test "${enable_maintainer_mode+set}" = set; then : 2427if test "${enable_maintainer_mode+set}" = set; then
2859 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2428 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2860else 2429else
2861 USE_MAINTAINER_MODE=no 2430 USE_MAINTAINER_MODE=no
@@ -2869,7 +2438,7 @@ fi
2869 2438
2870 2439
2871# Check whether --enable-locallisppath was given. 2440# Check whether --enable-locallisppath was given.
2872if test "${enable_locallisppath+set}" = set; then : 2441if test "${enable_locallisppath+set}" = set; then
2873 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then 2442 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2874 locallisppath= 2443 locallisppath=
2875elif test "${enableval}" != "yes"; then 2444elif test "${enableval}" != "yes"; then
@@ -2879,7 +2448,7 @@ fi
2879 2448
2880 2449
2881# Check whether --enable-checking was given. 2450# Check whether --enable-checking was given.
2882if test "${enable_checking+set}" = set; then : 2451if test "${enable_checking+set}" = set; then
2883 enableval=$enable_checking; ac_checking_flags="${enableval}" 2452 enableval=$enable_checking; ac_checking_flags="${enableval}"
2884fi 2453fi
2885 2454
@@ -2907,44 +2476,58 @@ do
2907 stringfreelist) ac_gc_check_string_free_list=1 ;; 2476 stringfreelist) ac_gc_check_string_free_list=1 ;;
2908 xmallocoverrun) ac_xmalloc_overrun=1 ;; 2477 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2909 conslist) ac_gc_check_cons_list=1 ;; 2478 conslist) ac_gc_check_cons_list=1 ;;
2910 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;; 2479 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2480$as_echo "$as_me: error: unknown check category $check" >&2;}
2481 { (exit 1); exit 1; }; } ;;
2911 esac 2482 esac
2912done 2483done
2913IFS="$ac_save_IFS" 2484IFS="$ac_save_IFS"
2914 2485
2915if test x$ac_enable_checking != x ; then 2486if test x$ac_enable_checking != x ; then
2916 2487
2917$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h 2488cat >>confdefs.h <<\_ACEOF
2489#define ENABLE_CHECKING 1
2490_ACEOF
2918 2491
2919fi 2492fi
2920if test x$ac_gc_check_stringbytes != x ; then 2493if test x$ac_gc_check_stringbytes != x ; then
2921 2494
2922$as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h 2495cat >>confdefs.h <<\_ACEOF
2496#define GC_CHECK_STRING_BYTES 1
2497_ACEOF
2923 2498
2924fi 2499fi
2925if test x$ac_gc_check_stringoverrun != x ; then 2500if test x$ac_gc_check_stringoverrun != x ; then
2926 2501
2927$as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h 2502cat >>confdefs.h <<\_ACEOF
2503#define GC_CHECK_STRING_OVERRUN 1
2504_ACEOF
2928 2505
2929fi 2506fi
2930if test x$ac_gc_check_string_free_list != x ; then 2507if test x$ac_gc_check_string_free_list != x ; then
2931 2508
2932$as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h 2509cat >>confdefs.h <<\_ACEOF
2510#define GC_CHECK_STRING_FREE_LIST 1
2511_ACEOF
2933 2512
2934fi 2513fi
2935if test x$ac_xmalloc_overrun != x ; then 2514if test x$ac_xmalloc_overrun != x ; then
2936 2515
2937$as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h 2516cat >>confdefs.h <<\_ACEOF
2517#define XMALLOC_OVERRUN_CHECK 1
2518_ACEOF
2938 2519
2939fi 2520fi
2940if test x$ac_gc_check_cons_list != x ; then 2521if test x$ac_gc_check_cons_list != x ; then
2941 2522
2942$as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h 2523cat >>confdefs.h <<\_ACEOF
2524#define GC_CHECK_CONS_LIST 1
2525_ACEOF
2943 2526
2944fi 2527fi
2945 2528
2946# Check whether --enable-profiling was given. 2529# Check whether --enable-profiling was given.
2947if test "${enable_profiling+set}" = set; then : 2530if test "${enable_profiling+set}" = set; then
2948 enableval=$enable_profiling; ac_enable_profiling="${enableval}" 2531 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2949fi 2532fi
2950 2533
@@ -2957,7 +2540,7 @@ else
2957fi 2540fi
2958 2541
2959# Check whether --enable-autodepend was given. 2542# Check whether --enable-autodepend was given.
2960if test "${enable_autodepend+set}" = set; then : 2543if test "${enable_autodepend+set}" = set; then
2961 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}" 2544 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2962else 2545else
2963 ac_enable_autodepend=yes 2546 ac_enable_autodepend=yes
@@ -2991,7 +2574,7 @@ esac
2991#### Check if the source directory already has a configured system in it. 2574#### Check if the source directory already has a configured system in it.
2992if test `pwd` != `(cd ${srcdir} && pwd)` \ 2575if test `pwd` != `(cd ${srcdir} && pwd)` \
2993 && test -f "${srcdir}/src/config.h" ; then 2576 && test -f "${srcdir}/src/config.h" ; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used 2577 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2995 as a build directory right now; it has been configured in its own 2578 as a build directory right now; it has been configured in its own
2996 right. To configure in another directory as well, you MUST 2579 right. To configure in another directory as well, you MUST
2997 use GNU make. If you do not have GNU make, then you must 2580 use GNU make. If you do not have GNU make, then you must
@@ -3012,16 +2595,24 @@ fi
3012 2595
3013ac_aux_dir= 2596ac_aux_dir=
3014for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2597for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3015 for ac_t in install-sh install.sh shtool; do 2598 if test -f "$ac_dir/install-sh"; then
3016 if test -f "$ac_dir/$ac_t"; then 2599 ac_aux_dir=$ac_dir
3017 ac_aux_dir=$ac_dir 2600 ac_install_sh="$ac_aux_dir/install-sh -c"
3018 ac_install_sh="$ac_aux_dir/$ac_t -c" 2601 break
3019 break 2 2602 elif test -f "$ac_dir/install.sh"; then
3020 fi 2603 ac_aux_dir=$ac_dir
3021 done 2604 ac_install_sh="$ac_aux_dir/install.sh -c"
2605 break
2606 elif test -f "$ac_dir/shtool"; then
2607 ac_aux_dir=$ac_dir
2608 ac_install_sh="$ac_aux_dir/shtool install -c"
2609 break
2610 fi
3022done 2611done
3023if test -z "$ac_aux_dir"; then 2612if test -z "$ac_aux_dir"; then
3024 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2613 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2614$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2615 { (exit 1); exit 1; }; }
3025fi 2616fi
3026 2617
3027# These three variables are undocumented and unsupported, 2618# These three variables are undocumented and unsupported,
@@ -3035,27 +2626,35 @@ ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3035 2626
3036# Make sure we can run config.sub. 2627# Make sure we can run config.sub.
3037$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2628$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3038 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2629 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2630$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2631 { (exit 1); exit 1; }; }
3039 2632
3040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2633{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3041$as_echo_n "checking build system type... " >&6; } 2634$as_echo_n "checking build system type... " >&6; }
3042if test "${ac_cv_build+set}" = set; then : 2635if test "${ac_cv_build+set}" = set; then
3043 $as_echo_n "(cached) " >&6 2636 $as_echo_n "(cached) " >&6
3044else 2637else
3045 ac_build_alias=$build_alias 2638 ac_build_alias=$build_alias
3046test "x$ac_build_alias" = x && 2639test "x$ac_build_alias" = x &&
3047 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2640 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3048test "x$ac_build_alias" = x && 2641test "x$ac_build_alias" = x &&
3049 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2642 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2643$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2644 { (exit 1); exit 1; }; }
3050ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2645ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3051 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2646 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2647$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2648 { (exit 1); exit 1; }; }
3052 2649
3053fi 2650fi
3054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2651{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3055$as_echo "$ac_cv_build" >&6; } 2652$as_echo "$ac_cv_build" >&6; }
3056case $ac_cv_build in 2653case $ac_cv_build in
3057*-*-*) ;; 2654*-*-*) ;;
3058*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2655*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2656$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2657 { (exit 1); exit 1; }; };;
3059esac 2658esac
3060build=$ac_cv_build 2659build=$ac_cv_build
3061ac_save_IFS=$IFS; IFS='-' 2660ac_save_IFS=$IFS; IFS='-'
@@ -3071,24 +2670,28 @@ IFS=$ac_save_IFS
3071case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2670case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3072 2671
3073 2672
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2673{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3075$as_echo_n "checking host system type... " >&6; } 2674$as_echo_n "checking host system type... " >&6; }
3076if test "${ac_cv_host+set}" = set; then : 2675if test "${ac_cv_host+set}" = set; then
3077 $as_echo_n "(cached) " >&6 2676 $as_echo_n "(cached) " >&6
3078else 2677else
3079 if test "x$host_alias" = x; then 2678 if test "x$host_alias" = x; then
3080 ac_cv_host=$ac_cv_build 2679 ac_cv_host=$ac_cv_build
3081else 2680else
3082 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2681 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3083 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2682 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2683$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2684 { (exit 1); exit 1; }; }
3084fi 2685fi
3085 2686
3086fi 2687fi
3087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2688{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3088$as_echo "$ac_cv_host" >&6; } 2689$as_echo "$ac_cv_host" >&6; }
3089case $ac_cv_host in 2690case $ac_cv_host in
3090*-*-*) ;; 2691*-*-*) ;;
3091*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2692*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2693$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2694 { (exit 1); exit 1; }; };;
3092esac 2695esac
3093host=$ac_cv_host 2696host=$ac_cv_host
3094ac_save_IFS=$IFS; IFS='-' 2697ac_save_IFS=$IFS; IFS='-'
@@ -3168,7 +2771,9 @@ case "${canonical}" in
3168 opsys=netbsd 2771 opsys=netbsd
3169 if test -f /usr/lib/crti.o; then 2772 if test -f /usr/lib/crti.o; then
3170 2773
3171$as_echo "#define HAVE_CRTIN /**/" >>confdefs.h 2774cat >>confdefs.h <<\_ACEOF
2775#define HAVE_CRTIN /**/
2776_ACEOF
3172 2777
3173 fi 2778 fi
3174 2779
@@ -3393,8 +2998,11 @@ fi
3393 2998
3394 2999
3395if test $unported = yes; then 3000if test $unported = yes; then
3396 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems. 3001 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3397Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5 3002Check \`etc/MACHINES' for recognized configuration names." >&5
3003$as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3004Check \`etc/MACHINES' for recognized configuration names." >&2;}
3005 { (exit 1); exit 1; }; }
3398fi 3006fi
3399 3007
3400machfile="m/${machine}.h" 3008machfile="m/${machine}.h"
@@ -3415,9 +3023,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
3415if test -n "$ac_tool_prefix"; then 3023if test -n "$ac_tool_prefix"; then
3416 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3024 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3417set dummy ${ac_tool_prefix}gcc; ac_word=$2 3025set dummy ${ac_tool_prefix}gcc; ac_word=$2
3418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3026{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3419$as_echo_n "checking for $ac_word... " >&6; } 3027$as_echo_n "checking for $ac_word... " >&6; }
3420if test "${ac_cv_prog_CC+set}" = set; then : 3028if test "${ac_cv_prog_CC+set}" = set; then
3421 $as_echo_n "(cached) " >&6 3029 $as_echo_n "(cached) " >&6
3422else 3030else
3423 if test -n "$CC"; then 3031 if test -n "$CC"; then
@@ -3428,24 +3036,24 @@ for as_dir in $PATH
3428do 3036do
3429 IFS=$as_save_IFS 3037 IFS=$as_save_IFS
3430 test -z "$as_dir" && as_dir=. 3038 test -z "$as_dir" && as_dir=.
3431 for ac_exec_ext in '' $ac_executable_extensions; do 3039 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3433 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3041 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3042 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 break 2 3043 break 2
3436 fi 3044 fi
3437done 3045done
3438 done 3046done
3439IFS=$as_save_IFS 3047IFS=$as_save_IFS
3440 3048
3441fi 3049fi
3442fi 3050fi
3443CC=$ac_cv_prog_CC 3051CC=$ac_cv_prog_CC
3444if test -n "$CC"; then 3052if test -n "$CC"; then
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3053 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3446$as_echo "$CC" >&6; } 3054$as_echo "$CC" >&6; }
3447else 3055else
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3056 { $as_echo "$as_me:$LINENO: result: no" >&5
3449$as_echo "no" >&6; } 3057$as_echo "no" >&6; }
3450fi 3058fi
3451 3059
@@ -3455,9 +3063,9 @@ if test -z "$ac_cv_prog_CC"; then
3455 ac_ct_CC=$CC 3063 ac_ct_CC=$CC
3456 # Extract the first word of "gcc", so it can be a program name with args. 3064 # Extract the first word of "gcc", so it can be a program name with args.
3457set dummy gcc; ac_word=$2 3065set dummy gcc; ac_word=$2
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3066{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3459$as_echo_n "checking for $ac_word... " >&6; } 3067$as_echo_n "checking for $ac_word... " >&6; }
3460if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3068if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3461 $as_echo_n "(cached) " >&6 3069 $as_echo_n "(cached) " >&6
3462else 3070else
3463 if test -n "$ac_ct_CC"; then 3071 if test -n "$ac_ct_CC"; then
@@ -3468,24 +3076,24 @@ for as_dir in $PATH
3468do 3076do
3469 IFS=$as_save_IFS 3077 IFS=$as_save_IFS
3470 test -z "$as_dir" && as_dir=. 3078 test -z "$as_dir" && as_dir=.
3471 for ac_exec_ext in '' $ac_executable_extensions; do 3079 for ac_exec_ext in '' $ac_executable_extensions; do
3472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3473 ac_cv_prog_ac_ct_CC="gcc" 3081 ac_cv_prog_ac_ct_CC="gcc"
3474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3082 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3475 break 2 3083 break 2
3476 fi 3084 fi
3477done 3085done
3478 done 3086done
3479IFS=$as_save_IFS 3087IFS=$as_save_IFS
3480 3088
3481fi 3089fi
3482fi 3090fi
3483ac_ct_CC=$ac_cv_prog_ac_ct_CC 3091ac_ct_CC=$ac_cv_prog_ac_ct_CC
3484if test -n "$ac_ct_CC"; then 3092if test -n "$ac_ct_CC"; then
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3093 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3486$as_echo "$ac_ct_CC" >&6; } 3094$as_echo "$ac_ct_CC" >&6; }
3487else 3095else
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3096 { $as_echo "$as_me:$LINENO: result: no" >&5
3489$as_echo "no" >&6; } 3097$as_echo "no" >&6; }
3490fi 3098fi
3491 3099
@@ -3494,8 +3102,12 @@ fi
3494 else 3102 else
3495 case $cross_compiling:$ac_tool_warned in 3103 case $cross_compiling:$ac_tool_warned in
3496yes:) 3104yes:)
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3105{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3498$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3106whose name does not start with the host triplet. If you think this
3107configuration is useful to you, please write to autoconf@gnu.org." >&5
3108$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3109whose name does not start with the host triplet. If you think this
3110configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3499ac_tool_warned=yes ;; 3111ac_tool_warned=yes ;;
3500esac 3112esac
3501 CC=$ac_ct_CC 3113 CC=$ac_ct_CC
@@ -3508,9 +3120,9 @@ if test -z "$CC"; then
3508 if test -n "$ac_tool_prefix"; then 3120 if test -n "$ac_tool_prefix"; then
3509 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3121 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3510set dummy ${ac_tool_prefix}cc; ac_word=$2 3122set dummy ${ac_tool_prefix}cc; ac_word=$2
3511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3123{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3512$as_echo_n "checking for $ac_word... " >&6; } 3124$as_echo_n "checking for $ac_word... " >&6; }
3513if test "${ac_cv_prog_CC+set}" = set; then : 3125if test "${ac_cv_prog_CC+set}" = set; then
3514 $as_echo_n "(cached) " >&6 3126 $as_echo_n "(cached) " >&6
3515else 3127else
3516 if test -n "$CC"; then 3128 if test -n "$CC"; then
@@ -3521,24 +3133,24 @@ for as_dir in $PATH
3521do 3133do
3522 IFS=$as_save_IFS 3134 IFS=$as_save_IFS
3523 test -z "$as_dir" && as_dir=. 3135 test -z "$as_dir" && as_dir=.
3524 for ac_exec_ext in '' $ac_executable_extensions; do 3136 for ac_exec_ext in '' $ac_executable_extensions; do
3525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3526 ac_cv_prog_CC="${ac_tool_prefix}cc" 3138 ac_cv_prog_CC="${ac_tool_prefix}cc"
3527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3139 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3528 break 2 3140 break 2
3529 fi 3141 fi
3530done 3142done
3531 done 3143done
3532IFS=$as_save_IFS 3144IFS=$as_save_IFS
3533 3145
3534fi 3146fi
3535fi 3147fi
3536CC=$ac_cv_prog_CC 3148CC=$ac_cv_prog_CC
3537if test -n "$CC"; then 3149if test -n "$CC"; then
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3150 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3539$as_echo "$CC" >&6; } 3151$as_echo "$CC" >&6; }
3540else 3152else
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3153 { $as_echo "$as_me:$LINENO: result: no" >&5
3542$as_echo "no" >&6; } 3154$as_echo "no" >&6; }
3543fi 3155fi
3544 3156
@@ -3548,9 +3160,9 @@ fi
3548if test -z "$CC"; then 3160if test -z "$CC"; then
3549 # Extract the first word of "cc", so it can be a program name with args. 3161 # Extract the first word of "cc", so it can be a program name with args.
3550set dummy cc; ac_word=$2 3162set dummy cc; ac_word=$2
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3163{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3552$as_echo_n "checking for $ac_word... " >&6; } 3164$as_echo_n "checking for $ac_word... " >&6; }
3553if test "${ac_cv_prog_CC+set}" = set; then : 3165if test "${ac_cv_prog_CC+set}" = set; then
3554 $as_echo_n "(cached) " >&6 3166 $as_echo_n "(cached) " >&6
3555else 3167else
3556 if test -n "$CC"; then 3168 if test -n "$CC"; then
@@ -3562,18 +3174,18 @@ for as_dir in $PATH
3562do 3174do
3563 IFS=$as_save_IFS 3175 IFS=$as_save_IFS
3564 test -z "$as_dir" && as_dir=. 3176 test -z "$as_dir" && as_dir=.
3565 for ac_exec_ext in '' $ac_executable_extensions; do 3177 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3567 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3179 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3568 ac_prog_rejected=yes 3180 ac_prog_rejected=yes
3569 continue 3181 continue
3570 fi 3182 fi
3571 ac_cv_prog_CC="cc" 3183 ac_cv_prog_CC="cc"
3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3184 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 break 2 3185 break 2
3574 fi 3186 fi
3575done 3187done
3576 done 3188done
3577IFS=$as_save_IFS 3189IFS=$as_save_IFS
3578 3190
3579if test $ac_prog_rejected = yes; then 3191if test $ac_prog_rejected = yes; then
@@ -3592,10 +3204,10 @@ fi
3592fi 3204fi
3593CC=$ac_cv_prog_CC 3205CC=$ac_cv_prog_CC
3594if test -n "$CC"; then 3206if test -n "$CC"; then
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3207 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3596$as_echo "$CC" >&6; } 3208$as_echo "$CC" >&6; }
3597else 3209else
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3210 { $as_echo "$as_me:$LINENO: result: no" >&5
3599$as_echo "no" >&6; } 3211$as_echo "no" >&6; }
3600fi 3212fi
3601 3213
@@ -3607,9 +3219,9 @@ if test -z "$CC"; then
3607 do 3219 do
3608 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3609set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3221set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3222{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3611$as_echo_n "checking for $ac_word... " >&6; } 3223$as_echo_n "checking for $ac_word... " >&6; }
3612if test "${ac_cv_prog_CC+set}" = set; then : 3224if test "${ac_cv_prog_CC+set}" = set; then
3613 $as_echo_n "(cached) " >&6 3225 $as_echo_n "(cached) " >&6
3614else 3226else
3615 if test -n "$CC"; then 3227 if test -n "$CC"; then
@@ -3620,24 +3232,24 @@ for as_dir in $PATH
3620do 3232do
3621 IFS=$as_save_IFS 3233 IFS=$as_save_IFS
3622 test -z "$as_dir" && as_dir=. 3234 test -z "$as_dir" && as_dir=.
3623 for ac_exec_ext in '' $ac_executable_extensions; do 3235 for ac_exec_ext in '' $ac_executable_extensions; do
3624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3625 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3237 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3238 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3627 break 2 3239 break 2
3628 fi 3240 fi
3629done 3241done
3630 done 3242done
3631IFS=$as_save_IFS 3243IFS=$as_save_IFS
3632 3244
3633fi 3245fi
3634fi 3246fi
3635CC=$ac_cv_prog_CC 3247CC=$ac_cv_prog_CC
3636if test -n "$CC"; then 3248if test -n "$CC"; then
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3249 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3638$as_echo "$CC" >&6; } 3250$as_echo "$CC" >&6; }
3639else 3251else
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3252 { $as_echo "$as_me:$LINENO: result: no" >&5
3641$as_echo "no" >&6; } 3253$as_echo "no" >&6; }
3642fi 3254fi
3643 3255
@@ -3651,9 +3263,9 @@ if test -z "$CC"; then
3651do 3263do
3652 # Extract the first word of "$ac_prog", so it can be a program name with args. 3264 # Extract the first word of "$ac_prog", so it can be a program name with args.
3653set dummy $ac_prog; ac_word=$2 3265set dummy $ac_prog; ac_word=$2
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3266{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3655$as_echo_n "checking for $ac_word... " >&6; } 3267$as_echo_n "checking for $ac_word... " >&6; }
3656if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3268if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3657 $as_echo_n "(cached) " >&6 3269 $as_echo_n "(cached) " >&6
3658else 3270else
3659 if test -n "$ac_ct_CC"; then 3271 if test -n "$ac_ct_CC"; then
@@ -3664,24 +3276,24 @@ for as_dir in $PATH
3664do 3276do
3665 IFS=$as_save_IFS 3277 IFS=$as_save_IFS
3666 test -z "$as_dir" && as_dir=. 3278 test -z "$as_dir" && as_dir=.
3667 for ac_exec_ext in '' $ac_executable_extensions; do 3279 for ac_exec_ext in '' $ac_executable_extensions; do
3668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3669 ac_cv_prog_ac_ct_CC="$ac_prog" 3281 ac_cv_prog_ac_ct_CC="$ac_prog"
3670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3282 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3671 break 2 3283 break 2
3672 fi 3284 fi
3673done 3285done
3674 done 3286done
3675IFS=$as_save_IFS 3287IFS=$as_save_IFS
3676 3288
3677fi 3289fi
3678fi 3290fi
3679ac_ct_CC=$ac_cv_prog_ac_ct_CC 3291ac_ct_CC=$ac_cv_prog_ac_ct_CC
3680if test -n "$ac_ct_CC"; then 3292if test -n "$ac_ct_CC"; then
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3293 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3682$as_echo "$ac_ct_CC" >&6; } 3294$as_echo "$ac_ct_CC" >&6; }
3683else 3295else
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3296 { $as_echo "$as_me:$LINENO: result: no" >&5
3685$as_echo "no" >&6; } 3297$as_echo "no" >&6; }
3686fi 3298fi
3687 3299
@@ -3694,8 +3306,12 @@ done
3694 else 3306 else
3695 case $cross_compiling:$ac_tool_warned in 3307 case $cross_compiling:$ac_tool_warned in
3696yes:) 3308yes:)
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3309{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3698$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3310whose name does not start with the host triplet. If you think this
3311configuration is useful to you, please write to autoconf@gnu.org." >&5
3312$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3313whose name does not start with the host triplet. If you think this
3314configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3699ac_tool_warned=yes ;; 3315ac_tool_warned=yes ;;
3700esac 3316esac
3701 CC=$ac_ct_CC 3317 CC=$ac_ct_CC
@@ -3705,37 +3321,55 @@ fi
3705fi 3321fi
3706 3322
3707 3323
3708test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3324test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3709$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3325See \`config.log' for more details." >&5
3710as_fn_error "no acceptable C compiler found in \$PATH 3326$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3711See \`config.log' for more details." "$LINENO" 5; } 3327See \`config.log' for more details." >&2;}
3328 { (exit 1); exit 1; }; }
3712 3329
3713# Provide some information about the compiler. 3330# Provide some information about the compiler.
3714$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3331$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3715set X $ac_compile 3332set X $ac_compile
3716ac_compiler=$2 3333ac_compiler=$2
3717for ac_option in --version -v -V -qversion; do 3334{ (ac_try="$ac_compiler --version >&5"
3718 { { ac_try="$ac_compiler $ac_option >&5"
3719case "(($ac_try" in 3335case "(($ac_try" in
3720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;; 3337 *) ac_try_echo=$ac_try;;
3722esac 3338esac
3723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3339eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3724$as_echo "$ac_try_echo"; } >&5 3340$as_echo "$ac_try_echo") >&5
3725 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3341 (eval "$ac_compiler --version >&5") 2>&5
3726 ac_status=$? 3342 ac_status=$?
3727 if test -s conftest.err; then 3343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 sed '10a\ 3344 (exit $ac_status); }
3729... rest of stderr output deleted ... 3345{ (ac_try="$ac_compiler -v >&5"
3730 10q' conftest.err >conftest.er1 3346case "(($ac_try" in
3731 cat conftest.er1 >&5 3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732 fi 3348 *) ac_try_echo=$ac_try;;
3733 rm -f conftest.er1 conftest.err 3349esac
3734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3350eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3735 test $ac_status = 0; } 3351$as_echo "$ac_try_echo") >&5
3736done 3352 (eval "$ac_compiler -v >&5") 2>&5
3353 ac_status=$?
3354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }
3356{ (ac_try="$ac_compiler -V >&5"
3357case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3360esac
3361eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3362$as_echo "$ac_try_echo") >&5
3363 (eval "$ac_compiler -V >&5") 2>&5
3364 ac_status=$?
3365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }
3737 3367
3738cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3368cat >conftest.$ac_ext <<_ACEOF
3369/* confdefs.h. */
3370_ACEOF
3371cat confdefs.h >>conftest.$ac_ext
3372cat >>conftest.$ac_ext <<_ACEOF
3739/* end confdefs.h. */ 3373/* end confdefs.h. */
3740 3374
3741int 3375int
@@ -3751,8 +3385,8 @@ ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3751# Try to create an executable without -o first, disregard a.out. 3385# Try to create an executable without -o first, disregard a.out.
3752# It will help us diagnose broken compilers, and finding out an intuition 3386# It will help us diagnose broken compilers, and finding out an intuition
3753# of exeext. 3387# of exeext.
3754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3388{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3755$as_echo_n "checking whether the C compiler works... " >&6; } 3389$as_echo_n "checking for C compiler default output file name... " >&6; }
3756ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3390ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3757 3391
3758# The possible output files: 3392# The possible output files:
@@ -3768,17 +3402,17 @@ do
3768done 3402done
3769rm -f $ac_rmfiles 3403rm -f $ac_rmfiles
3770 3404
3771if { { ac_try="$ac_link_default" 3405if { (ac_try="$ac_link_default"
3772case "(($ac_try" in 3406case "(($ac_try" in
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;; 3408 *) ac_try_echo=$ac_try;;
3775esac 3409esac
3776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3410eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3777$as_echo "$ac_try_echo"; } >&5 3411$as_echo "$ac_try_echo") >&5
3778 (eval "$ac_link_default") 2>&5 3412 (eval "$ac_link_default") 2>&5
3779 ac_status=$? 3413 ac_status=$?
3780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 test $ac_status = 0; }; then : 3415 (exit $ac_status); }; then
3782 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3416 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3783# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3417# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3784# in a Makefile. We should not override ac_cv_exeext if it was cached, 3418# in a Makefile. We should not override ac_cv_exeext if it was cached,
@@ -3795,7 +3429,7 @@ do
3795 # certainly right. 3429 # certainly right.
3796 break;; 3430 break;;
3797 *.* ) 3431 *.* )
3798 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3432 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3799 then :; else 3433 then :; else
3800 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3434 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3801 fi 3435 fi
@@ -3814,42 +3448,80 @@ test "$ac_cv_exeext" = no && ac_cv_exeext=
3814else 3448else
3815 ac_file='' 3449 ac_file=''
3816fi 3450fi
3817if test -z "$ac_file"; then : 3451
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3452{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3819$as_echo "no" >&6; } 3453$as_echo "$ac_file" >&6; }
3820$as_echo "$as_me: failed program was:" >&5 3454if test -z "$ac_file"; then
3455 $as_echo "$as_me: failed program was:" >&5
3821sed 's/^/| /' conftest.$ac_ext >&5 3456sed 's/^/| /' conftest.$ac_ext >&5
3822 3457
3823{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3458{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3824$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3459See \`config.log' for more details." >&5
3825{ as_fn_set_status 77 3460$as_echo "$as_me: error: C compiler cannot create executables
3826as_fn_error "C compiler cannot create executables 3461See \`config.log' for more details." >&2;}
3827See \`config.log' for more details." "$LINENO" 5; }; } 3462 { (exit 77); exit 77; }; }
3828else
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3830$as_echo "yes" >&6; }
3831fi 3463fi
3832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3464
3833$as_echo_n "checking for C compiler default output file name... " >&6; }
3834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3835$as_echo "$ac_file" >&6; }
3836ac_exeext=$ac_cv_exeext 3465ac_exeext=$ac_cv_exeext
3837 3466
3467# Check that the compiler produces executables we can run. If not, either
3468# the compiler is broken, or we cross compile.
3469{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3470$as_echo_n "checking whether the C compiler works... " >&6; }
3471# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3472# If not cross compiling, check that we can run a simple program.
3473if test "$cross_compiling" != yes; then
3474 if { ac_try='./$ac_file'
3475 { (case "(($ac_try" in
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3478esac
3479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3480$as_echo "$ac_try_echo") >&5
3481 (eval "$ac_try") 2>&5
3482 ac_status=$?
3483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); }; }; then
3485 cross_compiling=no
3486 else
3487 if test "$cross_compiling" = maybe; then
3488 cross_compiling=yes
3489 else
3490 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3491If you meant to cross compile, use \`--host'.
3492See \`config.log' for more details." >&5
3493$as_echo "$as_me: error: cannot run C compiled programs.
3494If you meant to cross compile, use \`--host'.
3495See \`config.log' for more details." >&2;}
3496 { (exit 1); exit 1; }; }
3497 fi
3498 fi
3499fi
3500{ $as_echo "$as_me:$LINENO: result: yes" >&5
3501$as_echo "yes" >&6; }
3502
3838rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3503rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3839ac_clean_files=$ac_clean_files_save 3504ac_clean_files=$ac_clean_files_save
3840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3505# Check that the compiler produces executables we can run. If not, either
3506# the compiler is broken, or we cross compile.
3507{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3508$as_echo_n "checking whether we are cross compiling... " >&6; }
3509{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3510$as_echo "$cross_compiling" >&6; }
3511
3512{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3841$as_echo_n "checking for suffix of executables... " >&6; } 3513$as_echo_n "checking for suffix of executables... " >&6; }
3842if { { ac_try="$ac_link" 3514if { (ac_try="$ac_link"
3843case "(($ac_try" in 3515case "(($ac_try" in
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;; 3517 *) ac_try_echo=$ac_try;;
3846esac 3518esac
3847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3848$as_echo "$ac_try_echo"; } >&5 3520$as_echo "$ac_try_echo") >&5
3849 (eval "$ac_link") 2>&5 3521 (eval "$ac_link") 2>&5
3850 ac_status=$? 3522 ac_status=$?
3851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 test $ac_status = 0; }; then : 3524 (exit $ac_status); }; then
3853 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3525 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3854# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3526# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3855# work properly (i.e., refer to `conftest.exe'), while it won't with 3527# work properly (i.e., refer to `conftest.exe'), while it won't with
@@ -3864,83 +3536,30 @@ for ac_file in conftest.exe conftest conftest.*; do
3864 esac 3536 esac
3865done 3537done
3866else 3538else
3867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3539 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3868$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3540See \`config.log' for more details." >&5
3869as_fn_error "cannot compute suffix of executables: cannot compile and link 3541$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3870See \`config.log' for more details." "$LINENO" 5; } 3542See \`config.log' for more details." >&2;}
3543 { (exit 1); exit 1; }; }
3871fi 3544fi
3872rm -f conftest conftest$ac_cv_exeext 3545
3873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3546rm -f conftest$ac_cv_exeext
3547{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3874$as_echo "$ac_cv_exeext" >&6; } 3548$as_echo "$ac_cv_exeext" >&6; }
3875 3549
3876rm -f conftest.$ac_ext 3550rm -f conftest.$ac_ext
3877EXEEXT=$ac_cv_exeext 3551EXEEXT=$ac_cv_exeext
3878ac_exeext=$EXEEXT 3552ac_exeext=$EXEEXT
3879cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3553{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3880/* end confdefs.h. */
3881#include <stdio.h>
3882int
3883main ()
3884{
3885FILE *f = fopen ("conftest.out", "w");
3886 return ferror (f) || fclose (f) != 0;
3887
3888 ;
3889 return 0;
3890}
3891_ACEOF
3892ac_clean_files="$ac_clean_files conftest.out"
3893# Check that the compiler produces executables we can run. If not, either
3894# the compiler is broken, or we cross compile.
3895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3896$as_echo_n "checking whether we are cross compiling... " >&6; }
3897if test "$cross_compiling" != yes; then
3898 { { ac_try="$ac_link"
3899case "(($ac_try" in
3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3902esac
3903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3904$as_echo "$ac_try_echo"; } >&5
3905 (eval "$ac_link") 2>&5
3906 ac_status=$?
3907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3908 test $ac_status = 0; }
3909 if { ac_try='./conftest$ac_cv_exeext'
3910 { { case "(($ac_try" in
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3913esac
3914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3915$as_echo "$ac_try_echo"; } >&5
3916 (eval "$ac_try") 2>&5
3917 ac_status=$?
3918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3919 test $ac_status = 0; }; }; then
3920 cross_compiling=no
3921 else
3922 if test "$cross_compiling" = maybe; then
3923 cross_compiling=yes
3924 else
3925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927as_fn_error "cannot run C compiled programs.
3928If you meant to cross compile, use \`--host'.
3929See \`config.log' for more details." "$LINENO" 5; }
3930 fi
3931 fi
3932fi
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3934$as_echo "$cross_compiling" >&6; }
3935
3936rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3937ac_clean_files=$ac_clean_files_save
3938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3939$as_echo_n "checking for suffix of object files... " >&6; } 3554$as_echo_n "checking for suffix of object files... " >&6; }
3940if test "${ac_cv_objext+set}" = set; then : 3555if test "${ac_cv_objext+set}" = set; then
3941 $as_echo_n "(cached) " >&6 3556 $as_echo_n "(cached) " >&6
3942else 3557else
3943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3558 cat >conftest.$ac_ext <<_ACEOF
3559/* confdefs.h. */
3560_ACEOF
3561cat confdefs.h >>conftest.$ac_ext
3562cat >>conftest.$ac_ext <<_ACEOF
3944/* end confdefs.h. */ 3563/* end confdefs.h. */
3945 3564
3946int 3565int
@@ -3952,17 +3571,17 @@ main ()
3952} 3571}
3953_ACEOF 3572_ACEOF
3954rm -f conftest.o conftest.obj 3573rm -f conftest.o conftest.obj
3955if { { ac_try="$ac_compile" 3574if { (ac_try="$ac_compile"
3956case "(($ac_try" in 3575case "(($ac_try" in
3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;; 3577 *) ac_try_echo=$ac_try;;
3959esac 3578esac
3960eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3579eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3961$as_echo "$ac_try_echo"; } >&5 3580$as_echo "$ac_try_echo") >&5
3962 (eval "$ac_compile") 2>&5 3581 (eval "$ac_compile") 2>&5
3963 ac_status=$? 3582 ac_status=$?
3964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 test $ac_status = 0; }; then : 3584 (exit $ac_status); }; then
3966 for ac_file in conftest.o conftest.obj conftest.*; do 3585 for ac_file in conftest.o conftest.obj conftest.*; do
3967 test -f "$ac_file" || continue; 3586 test -f "$ac_file" || continue;
3968 case $ac_file in 3587 case $ac_file in
@@ -3975,23 +3594,29 @@ else
3975 $as_echo "$as_me: failed program was:" >&5 3594 $as_echo "$as_me: failed program was:" >&5
3976sed 's/^/| /' conftest.$ac_ext >&5 3595sed 's/^/| /' conftest.$ac_ext >&5
3977 3596
3978{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3597{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3979$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3598See \`config.log' for more details." >&5
3980as_fn_error "cannot compute suffix of object files: cannot compile 3599$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3981See \`config.log' for more details." "$LINENO" 5; } 3600See \`config.log' for more details." >&2;}
3601 { (exit 1); exit 1; }; }
3982fi 3602fi
3603
3983rm -f conftest.$ac_cv_objext conftest.$ac_ext 3604rm -f conftest.$ac_cv_objext conftest.$ac_ext
3984fi 3605fi
3985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3606{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3986$as_echo "$ac_cv_objext" >&6; } 3607$as_echo "$ac_cv_objext" >&6; }
3987OBJEXT=$ac_cv_objext 3608OBJEXT=$ac_cv_objext
3988ac_objext=$OBJEXT 3609ac_objext=$OBJEXT
3989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3610{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3990$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3611$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3991if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3612if test "${ac_cv_c_compiler_gnu+set}" = set; then
3992 $as_echo_n "(cached) " >&6 3613 $as_echo_n "(cached) " >&6
3993else 3614else
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3615 cat >conftest.$ac_ext <<_ACEOF
3616/* confdefs.h. */
3617_ACEOF
3618cat confdefs.h >>conftest.$ac_ext
3619cat >>conftest.$ac_ext <<_ACEOF
3995/* end confdefs.h. */ 3620/* end confdefs.h. */
3996 3621
3997int 3622int
@@ -4005,16 +3630,37 @@ main ()
4005 return 0; 3630 return 0;
4006} 3631}
4007_ACEOF 3632_ACEOF
4008if ac_fn_c_try_compile "$LINENO"; then : 3633rm -f conftest.$ac_objext
3634if { (ac_try="$ac_compile"
3635case "(($ac_try" in
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3638esac
3639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3640$as_echo "$ac_try_echo") >&5
3641 (eval "$ac_compile") 2>conftest.er1
3642 ac_status=$?
3643 grep -v '^ *+' conftest.er1 >conftest.err
3644 rm -f conftest.er1
3645 cat conftest.err >&5
3646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); } && {
3648 test -z "$ac_c_werror_flag" ||
3649 test ! -s conftest.err
3650 } && test -s conftest.$ac_objext; then
4009 ac_compiler_gnu=yes 3651 ac_compiler_gnu=yes
4010else 3652else
4011 ac_compiler_gnu=no 3653 $as_echo "$as_me: failed program was:" >&5
3654sed 's/^/| /' conftest.$ac_ext >&5
3655
3656 ac_compiler_gnu=no
4012fi 3657fi
3658
4013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014ac_cv_c_compiler_gnu=$ac_compiler_gnu 3660ac_cv_c_compiler_gnu=$ac_compiler_gnu
4015 3661
4016fi 3662fi
4017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3663{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4018$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3664$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4019if test $ac_compiler_gnu = yes; then 3665if test $ac_compiler_gnu = yes; then
4020 GCC=yes 3666 GCC=yes
@@ -4023,16 +3669,20 @@ else
4023fi 3669fi
4024ac_test_CFLAGS=${CFLAGS+set} 3670ac_test_CFLAGS=${CFLAGS+set}
4025ac_save_CFLAGS=$CFLAGS 3671ac_save_CFLAGS=$CFLAGS
4026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3672{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4027$as_echo_n "checking whether $CC accepts -g... " >&6; } 3673$as_echo_n "checking whether $CC accepts -g... " >&6; }
4028if test "${ac_cv_prog_cc_g+set}" = set; then : 3674if test "${ac_cv_prog_cc_g+set}" = set; then
4029 $as_echo_n "(cached) " >&6 3675 $as_echo_n "(cached) " >&6
4030else 3676else
4031 ac_save_c_werror_flag=$ac_c_werror_flag 3677 ac_save_c_werror_flag=$ac_c_werror_flag
4032 ac_c_werror_flag=yes 3678 ac_c_werror_flag=yes
4033 ac_cv_prog_cc_g=no 3679 ac_cv_prog_cc_g=no
4034 CFLAGS="-g" 3680 CFLAGS="-g"
4035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3681 cat >conftest.$ac_ext <<_ACEOF
3682/* confdefs.h. */
3683_ACEOF
3684cat confdefs.h >>conftest.$ac_ext
3685cat >>conftest.$ac_ext <<_ACEOF
4036/* end confdefs.h. */ 3686/* end confdefs.h. */
4037 3687
4038int 3688int
@@ -4043,11 +3693,35 @@ main ()
4043 return 0; 3693 return 0;
4044} 3694}
4045_ACEOF 3695_ACEOF
4046if ac_fn_c_try_compile "$LINENO"; then : 3696rm -f conftest.$ac_objext
3697if { (ac_try="$ac_compile"
3698case "(($ac_try" in
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3701esac
3702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3703$as_echo "$ac_try_echo") >&5
3704 (eval "$ac_compile") 2>conftest.er1
3705 ac_status=$?
3706 grep -v '^ *+' conftest.er1 >conftest.err
3707 rm -f conftest.er1
3708 cat conftest.err >&5
3709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } && {
3711 test -z "$ac_c_werror_flag" ||
3712 test ! -s conftest.err
3713 } && test -s conftest.$ac_objext; then
4047 ac_cv_prog_cc_g=yes 3714 ac_cv_prog_cc_g=yes
4048else 3715else
4049 CFLAGS="" 3716 $as_echo "$as_me: failed program was:" >&5
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3717sed 's/^/| /' conftest.$ac_ext >&5
3718
3719 CFLAGS=""
3720 cat >conftest.$ac_ext <<_ACEOF
3721/* confdefs.h. */
3722_ACEOF
3723cat confdefs.h >>conftest.$ac_ext
3724cat >>conftest.$ac_ext <<_ACEOF
4051/* end confdefs.h. */ 3725/* end confdefs.h. */
4052 3726
4053int 3727int
@@ -4058,12 +3732,36 @@ main ()
4058 return 0; 3732 return 0;
4059} 3733}
4060_ACEOF 3734_ACEOF
4061if ac_fn_c_try_compile "$LINENO"; then : 3735rm -f conftest.$ac_objext
4062 3736if { (ac_try="$ac_compile"
3737case "(($ac_try" in
3738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3739 *) ac_try_echo=$ac_try;;
3740esac
3741eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3742$as_echo "$ac_try_echo") >&5
3743 (eval "$ac_compile") 2>conftest.er1
3744 ac_status=$?
3745 grep -v '^ *+' conftest.er1 >conftest.err
3746 rm -f conftest.er1
3747 cat conftest.err >&5
3748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); } && {
3750 test -z "$ac_c_werror_flag" ||
3751 test ! -s conftest.err
3752 } && test -s conftest.$ac_objext; then
3753 :
4063else 3754else
4064 ac_c_werror_flag=$ac_save_c_werror_flag 3755 $as_echo "$as_me: failed program was:" >&5
3756sed 's/^/| /' conftest.$ac_ext >&5
3757
3758 ac_c_werror_flag=$ac_save_c_werror_flag
4065 CFLAGS="-g" 3759 CFLAGS="-g"
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3760 cat >conftest.$ac_ext <<_ACEOF
3761/* confdefs.h. */
3762_ACEOF
3763cat confdefs.h >>conftest.$ac_ext
3764cat >>conftest.$ac_ext <<_ACEOF
4067/* end confdefs.h. */ 3765/* end confdefs.h. */
4068 3766
4069int 3767int
@@ -4074,17 +3772,42 @@ main ()
4074 return 0; 3772 return 0;
4075} 3773}
4076_ACEOF 3774_ACEOF
4077if ac_fn_c_try_compile "$LINENO"; then : 3775rm -f conftest.$ac_objext
3776if { (ac_try="$ac_compile"
3777case "(($ac_try" in
3778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3779 *) ac_try_echo=$ac_try;;
3780esac
3781eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3782$as_echo "$ac_try_echo") >&5
3783 (eval "$ac_compile") 2>conftest.er1
3784 ac_status=$?
3785 grep -v '^ *+' conftest.er1 >conftest.err
3786 rm -f conftest.er1
3787 cat conftest.err >&5
3788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); } && {
3790 test -z "$ac_c_werror_flag" ||
3791 test ! -s conftest.err
3792 } && test -s conftest.$ac_objext; then
4078 ac_cv_prog_cc_g=yes 3793 ac_cv_prog_cc_g=yes
3794else
3795 $as_echo "$as_me: failed program was:" >&5
3796sed 's/^/| /' conftest.$ac_ext >&5
3797
3798
4079fi 3799fi
3800
4080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4081fi 3802fi
3803
4082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4083fi 3805fi
3806
4084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085 ac_c_werror_flag=$ac_save_c_werror_flag 3808 ac_c_werror_flag=$ac_save_c_werror_flag
4086fi 3809fi
4087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3810{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4088$as_echo "$ac_cv_prog_cc_g" >&6; } 3811$as_echo "$ac_cv_prog_cc_g" >&6; }
4089if test "$ac_test_CFLAGS" = set; then 3812if test "$ac_test_CFLAGS" = set; then
4090 CFLAGS=$ac_save_CFLAGS 3813 CFLAGS=$ac_save_CFLAGS
@@ -4101,14 +3824,18 @@ else
4101 CFLAGS= 3824 CFLAGS=
4102 fi 3825 fi
4103fi 3826fi
4104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3827{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4105$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3828$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4106if test "${ac_cv_prog_cc_c89+set}" = set; then : 3829if test "${ac_cv_prog_cc_c89+set}" = set; then
4107 $as_echo_n "(cached) " >&6 3830 $as_echo_n "(cached) " >&6
4108else 3831else
4109 ac_cv_prog_cc_c89=no 3832 ac_cv_prog_cc_c89=no
4110ac_save_CC=$CC 3833ac_save_CC=$CC
4111cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3834cat >conftest.$ac_ext <<_ACEOF
3835/* confdefs.h. */
3836_ACEOF
3837cat confdefs.h >>conftest.$ac_ext
3838cat >>conftest.$ac_ext <<_ACEOF
4112/* end confdefs.h. */ 3839/* end confdefs.h. */
4113#include <stdarg.h> 3840#include <stdarg.h>
4114#include <stdio.h> 3841#include <stdio.h>
@@ -4165,9 +3892,32 @@ for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4165 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3892 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4166do 3893do
4167 CC="$ac_save_CC $ac_arg" 3894 CC="$ac_save_CC $ac_arg"
4168 if ac_fn_c_try_compile "$LINENO"; then : 3895 rm -f conftest.$ac_objext
3896if { (ac_try="$ac_compile"
3897case "(($ac_try" in
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3900esac
3901eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3902$as_echo "$ac_try_echo") >&5
3903 (eval "$ac_compile") 2>conftest.er1
3904 ac_status=$?
3905 grep -v '^ *+' conftest.er1 >conftest.err
3906 rm -f conftest.er1
3907 cat conftest.err >&5
3908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); } && {
3910 test -z "$ac_c_werror_flag" ||
3911 test ! -s conftest.err
3912 } && test -s conftest.$ac_objext; then
4169 ac_cv_prog_cc_c89=$ac_arg 3913 ac_cv_prog_cc_c89=$ac_arg
3914else
3915 $as_echo "$as_me: failed program was:" >&5
3916sed 's/^/| /' conftest.$ac_ext >&5
3917
3918
4170fi 3919fi
3920
4171rm -f core conftest.err conftest.$ac_objext 3921rm -f core conftest.err conftest.$ac_objext
4172 test "x$ac_cv_prog_cc_c89" != "xno" && break 3922 test "x$ac_cv_prog_cc_c89" != "xno" && break
4173done 3923done
@@ -4178,19 +3928,17 @@ fi
4178# AC_CACHE_VAL 3928# AC_CACHE_VAL
4179case "x$ac_cv_prog_cc_c89" in 3929case "x$ac_cv_prog_cc_c89" in
4180 x) 3930 x)
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3931 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4182$as_echo "none needed" >&6; } ;; 3932$as_echo "none needed" >&6; } ;;
4183 xno) 3933 xno)
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3934 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4185$as_echo "unsupported" >&6; } ;; 3935$as_echo "unsupported" >&6; } ;;
4186 *) 3936 *)
4187 CC="$CC $ac_cv_prog_cc_c89" 3937 CC="$CC $ac_cv_prog_cc_c89"
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3938 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4189$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3939$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4190esac 3940esac
4191if test "x$ac_cv_prog_cc_c89" != xno; then :
4192 3941
4193fi
4194 3942
4195ac_ext=c 3943ac_ext=c
4196ac_cpp='$CPP $CPPFLAGS' 3944ac_cpp='$CPP $CPPFLAGS'
@@ -4208,13 +3956,17 @@ fi
4208## using a Sun compiler, which needs -Xs to prevent whitespace. 3956## using a Sun compiler, which needs -Xs to prevent whitespace.
4209if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \ 3957if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4210 test x"$CPP" = x; then 3958 test x"$CPP" = x; then
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5 3959 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
4212$as_echo_n "checking whether we are using a Sun C compiler... " >&6; } 3960$as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4213 3961
4214if test "${emacs_cv_sunpro_c+set}" = set; then : 3962if test "${emacs_cv_sunpro_c+set}" = set; then
4215 $as_echo_n "(cached) " >&6 3963 $as_echo_n "(cached) " >&6
4216else 3964else
4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3965 cat >conftest.$ac_ext <<_ACEOF
3966/* confdefs.h. */
3967_ACEOF
3968cat confdefs.h >>conftest.$ac_ext
3969cat >>conftest.$ac_ext <<_ACEOF
4218/* end confdefs.h. */ 3970/* end confdefs.h. */
4219 3971
4220int 3972int
@@ -4228,16 +3980,41 @@ fail;
4228 return 0; 3980 return 0;
4229} 3981}
4230_ACEOF 3982_ACEOF
4231if ac_fn_c_try_link "$LINENO"; then : 3983rm -f conftest.$ac_objext conftest$ac_exeext
3984if { (ac_try="$ac_link"
3985case "(($ac_try" in
3986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987 *) ac_try_echo=$ac_try;;
3988esac
3989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3990$as_echo "$ac_try_echo") >&5
3991 (eval "$ac_link") 2>conftest.er1
3992 ac_status=$?
3993 grep -v '^ *+' conftest.er1 >conftest.err
3994 rm -f conftest.er1
3995 cat conftest.err >&5
3996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); } && {
3998 test -z "$ac_c_werror_flag" ||
3999 test ! -s conftest.err
4000 } && test -s conftest$ac_exeext && {
4001 test "$cross_compiling" = yes ||
4002 $as_test_x conftest$ac_exeext
4003 }; then
4232 emacs_cv_sunpro_c=yes 4004 emacs_cv_sunpro_c=yes
4233else 4005else
4234 emacs_cv_sunpro_c=no 4006 $as_echo "$as_me: failed program was:" >&5
4007sed 's/^/| /' conftest.$ac_ext >&5
4008
4009 emacs_cv_sunpro_c=no
4235fi 4010fi
4236rm -f core conftest.err conftest.$ac_objext \ 4011
4237 conftest$ac_exeext conftest.$ac_ext 4012rm -rf conftest.dSYM
4013rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4014 conftest$ac_exeext conftest.$ac_ext
4238fi 4015fi
4239 4016
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5 4017 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4241$as_echo "$emacs_cv_sunpro_c" >&6; } 4018$as_echo "$emacs_cv_sunpro_c" >&6; }
4242 4019
4243 if test x"$emacs_cv_sunpro_c" = xyes; then 4020 if test x"$emacs_cv_sunpro_c" = xyes; then
@@ -4277,14 +4054,14 @@ ac_cpp='$CPP $CPPFLAGS'
4277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4279ac_compiler_gnu=$ac_cv_c_compiler_gnu 4056ac_compiler_gnu=$ac_cv_c_compiler_gnu
4280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4057{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4281$as_echo_n "checking how to run the C preprocessor... " >&6; } 4058$as_echo_n "checking how to run the C preprocessor... " >&6; }
4282# On Suns, sometimes $CPP names a directory. 4059# On Suns, sometimes $CPP names a directory.
4283if test -n "$CPP" && test -d "$CPP"; then 4060if test -n "$CPP" && test -d "$CPP"; then
4284 CPP= 4061 CPP=
4285fi 4062fi
4286if test -z "$CPP"; then 4063if test -z "$CPP"; then
4287 if test "${ac_cv_prog_CPP+set}" = set; then : 4064 if test "${ac_cv_prog_CPP+set}" = set; then
4288 $as_echo_n "(cached) " >&6 4065 $as_echo_n "(cached) " >&6
4289else 4066else
4290 # Double quotes because CPP needs to be expanded 4067 # Double quotes because CPP needs to be expanded
@@ -4299,7 +4076,11 @@ do
4299 # <limits.h> exists even on freestanding compilers. 4076 # <limits.h> exists even on freestanding compilers.
4300 # On the NeXT, cc -E runs the code through the compiler's parser, 4077 # On the NeXT, cc -E runs the code through the compiler's parser,
4301 # not just through cpp. "Syntax error" is here to catch this case. 4078 # not just through cpp. "Syntax error" is here to catch this case.
4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4079 cat >conftest.$ac_ext <<_ACEOF
4080/* confdefs.h. */
4081_ACEOF
4082cat confdefs.h >>conftest.$ac_ext
4083cat >>conftest.$ac_ext <<_ACEOF
4303/* end confdefs.h. */ 4084/* end confdefs.h. */
4304#ifdef __STDC__ 4085#ifdef __STDC__
4305# include <limits.h> 4086# include <limits.h>
@@ -4308,34 +4089,78 @@ do
4308#endif 4089#endif
4309 Syntax error 4090 Syntax error
4310_ACEOF 4091_ACEOF
4311if ac_fn_c_try_cpp "$LINENO"; then : 4092if { (ac_try="$ac_cpp conftest.$ac_ext"
4312 4093case "(($ac_try" in
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;;
4096esac
4097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4098$as_echo "$ac_try_echo") >&5
4099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4100 ac_status=$?
4101 grep -v '^ *+' conftest.er1 >conftest.err
4102 rm -f conftest.er1
4103 cat conftest.err >&5
4104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); } >/dev/null && {
4106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4107 test ! -s conftest.err
4108 }; then
4109 :
4313else 4110else
4111 $as_echo "$as_me: failed program was:" >&5
4112sed 's/^/| /' conftest.$ac_ext >&5
4113
4314 # Broken: fails on valid input. 4114 # Broken: fails on valid input.
4315continue 4115continue
4316fi 4116fi
4117
4317rm -f conftest.err conftest.$ac_ext 4118rm -f conftest.err conftest.$ac_ext
4318 4119
4319 # OK, works on sane cases. Now check whether nonexistent headers 4120 # OK, works on sane cases. Now check whether nonexistent headers
4320 # can be detected and how. 4121 # can be detected and how.
4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4122 cat >conftest.$ac_ext <<_ACEOF
4123/* confdefs.h. */
4124_ACEOF
4125cat confdefs.h >>conftest.$ac_ext
4126cat >>conftest.$ac_ext <<_ACEOF
4322/* end confdefs.h. */ 4127/* end confdefs.h. */
4323#include <ac_nonexistent.h> 4128#include <ac_nonexistent.h>
4324_ACEOF 4129_ACEOF
4325if ac_fn_c_try_cpp "$LINENO"; then : 4130if { (ac_try="$ac_cpp conftest.$ac_ext"
4131case "(($ac_try" in
4132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133 *) ac_try_echo=$ac_try;;
4134esac
4135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4136$as_echo "$ac_try_echo") >&5
4137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4138 ac_status=$?
4139 grep -v '^ *+' conftest.er1 >conftest.err
4140 rm -f conftest.er1
4141 cat conftest.err >&5
4142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } >/dev/null && {
4144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4145 test ! -s conftest.err
4146 }; then
4326 # Broken: success on invalid input. 4147 # Broken: success on invalid input.
4327continue 4148continue
4328else 4149else
4150 $as_echo "$as_me: failed program was:" >&5
4151sed 's/^/| /' conftest.$ac_ext >&5
4152
4329 # Passes both tests. 4153 # Passes both tests.
4330ac_preproc_ok=: 4154ac_preproc_ok=:
4331break 4155break
4332fi 4156fi
4157
4333rm -f conftest.err conftest.$ac_ext 4158rm -f conftest.err conftest.$ac_ext
4334 4159
4335done 4160done
4336# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4161# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4337rm -f conftest.err conftest.$ac_ext 4162rm -f conftest.err conftest.$ac_ext
4338if $ac_preproc_ok; then : 4163if $ac_preproc_ok; then
4339 break 4164 break
4340fi 4165fi
4341 4166
@@ -4347,7 +4172,7 @@ fi
4347else 4172else
4348 ac_cv_prog_CPP=$CPP 4173 ac_cv_prog_CPP=$CPP
4349fi 4174fi
4350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4175{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4351$as_echo "$CPP" >&6; } 4176$as_echo "$CPP" >&6; }
4352ac_preproc_ok=false 4177ac_preproc_ok=false
4353for ac_c_preproc_warn_flag in '' yes 4178for ac_c_preproc_warn_flag in '' yes
@@ -4358,7 +4183,11 @@ do
4358 # <limits.h> exists even on freestanding compilers. 4183 # <limits.h> exists even on freestanding compilers.
4359 # On the NeXT, cc -E runs the code through the compiler's parser, 4184 # On the NeXT, cc -E runs the code through the compiler's parser,
4360 # not just through cpp. "Syntax error" is here to catch this case. 4185 # not just through cpp. "Syntax error" is here to catch this case.
4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4186 cat >conftest.$ac_ext <<_ACEOF
4187/* confdefs.h. */
4188_ACEOF
4189cat confdefs.h >>conftest.$ac_ext
4190cat >>conftest.$ac_ext <<_ACEOF
4362/* end confdefs.h. */ 4191/* end confdefs.h. */
4363#ifdef __STDC__ 4192#ifdef __STDC__
4364# include <limits.h> 4193# include <limits.h>
@@ -4367,40 +4196,85 @@ do
4367#endif 4196#endif
4368 Syntax error 4197 Syntax error
4369_ACEOF 4198_ACEOF
4370if ac_fn_c_try_cpp "$LINENO"; then : 4199if { (ac_try="$ac_cpp conftest.$ac_ext"
4371 4200case "(($ac_try" in
4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4203esac
4204eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4205$as_echo "$ac_try_echo") >&5
4206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4207 ac_status=$?
4208 grep -v '^ *+' conftest.er1 >conftest.err
4209 rm -f conftest.er1
4210 cat conftest.err >&5
4211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); } >/dev/null && {
4213 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4214 test ! -s conftest.err
4215 }; then
4216 :
4372else 4217else
4218 $as_echo "$as_me: failed program was:" >&5
4219sed 's/^/| /' conftest.$ac_ext >&5
4220
4373 # Broken: fails on valid input. 4221 # Broken: fails on valid input.
4374continue 4222continue
4375fi 4223fi
4224
4376rm -f conftest.err conftest.$ac_ext 4225rm -f conftest.err conftest.$ac_ext
4377 4226
4378 # OK, works on sane cases. Now check whether nonexistent headers 4227 # OK, works on sane cases. Now check whether nonexistent headers
4379 # can be detected and how. 4228 # can be detected and how.
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4229 cat >conftest.$ac_ext <<_ACEOF
4230/* confdefs.h. */
4231_ACEOF
4232cat confdefs.h >>conftest.$ac_ext
4233cat >>conftest.$ac_ext <<_ACEOF
4381/* end confdefs.h. */ 4234/* end confdefs.h. */
4382#include <ac_nonexistent.h> 4235#include <ac_nonexistent.h>
4383_ACEOF 4236_ACEOF
4384if ac_fn_c_try_cpp "$LINENO"; then : 4237if { (ac_try="$ac_cpp conftest.$ac_ext"
4238case "(($ac_try" in
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4241esac
4242eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4243$as_echo "$ac_try_echo") >&5
4244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4245 ac_status=$?
4246 grep -v '^ *+' conftest.er1 >conftest.err
4247 rm -f conftest.er1
4248 cat conftest.err >&5
4249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } >/dev/null && {
4251 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4252 test ! -s conftest.err
4253 }; then
4385 # Broken: success on invalid input. 4254 # Broken: success on invalid input.
4386continue 4255continue
4387else 4256else
4257 $as_echo "$as_me: failed program was:" >&5
4258sed 's/^/| /' conftest.$ac_ext >&5
4259
4388 # Passes both tests. 4260 # Passes both tests.
4389ac_preproc_ok=: 4261ac_preproc_ok=:
4390break 4262break
4391fi 4263fi
4264
4392rm -f conftest.err conftest.$ac_ext 4265rm -f conftest.err conftest.$ac_ext
4393 4266
4394done 4267done
4395# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4268# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4396rm -f conftest.err conftest.$ac_ext 4269rm -f conftest.err conftest.$ac_ext
4397if $ac_preproc_ok; then : 4270if $ac_preproc_ok; then
4398 4271 :
4399else 4272else
4400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4273 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4401$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4274See \`config.log' for more details." >&5
4402as_fn_error "C preprocessor \"$CPP\" fails sanity check 4275$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4403See \`config.log' for more details." "$LINENO" 5; } 4276See \`config.log' for more details." >&2;}
4277 { (exit 1); exit 1; }; }
4404fi 4278fi
4405 4279
4406ac_ext=c 4280ac_ext=c
@@ -4410,9 +4284,9 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
4410ac_compiler_gnu=$ac_cv_c_compiler_gnu 4284ac_compiler_gnu=$ac_cv_c_compiler_gnu
4411 4285
4412 4286
4413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4287{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4414$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4288$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4415if test "${ac_cv_path_GREP+set}" = set; then : 4289if test "${ac_cv_path_GREP+set}" = set; then
4416 $as_echo_n "(cached) " >&6 4290 $as_echo_n "(cached) " >&6
4417else 4291else
4418 if test -z "$GREP"; then 4292 if test -z "$GREP"; then
@@ -4423,7 +4297,7 @@ for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4423do 4297do
4424 IFS=$as_save_IFS 4298 IFS=$as_save_IFS
4425 test -z "$as_dir" && as_dir=. 4299 test -z "$as_dir" && as_dir=.
4426 for ac_prog in grep ggrep; do 4300 for ac_prog in grep ggrep; do
4427 for ac_exec_ext in '' $ac_executable_extensions; do 4301 for ac_exec_ext in '' $ac_executable_extensions; do
4428 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4302 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4429 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4303 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
@@ -4443,7 +4317,7 @@ case `"$ac_path_GREP" --version 2>&1` in
4443 $as_echo 'GREP' >> "conftest.nl" 4317 $as_echo 'GREP' >> "conftest.nl"
4444 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4318 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4445 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4319 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4446 as_fn_arith $ac_count + 1 && ac_count=$as_val 4320 ac_count=`expr $ac_count + 1`
4447 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4321 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4448 # Best one so far, save it but keep looking for a better one 4322 # Best one so far, save it but keep looking for a better one
4449 ac_cv_path_GREP="$ac_path_GREP" 4323 ac_cv_path_GREP="$ac_path_GREP"
@@ -4458,24 +4332,26 @@ esac
4458 $ac_path_GREP_found && break 3 4332 $ac_path_GREP_found && break 3
4459 done 4333 done
4460 done 4334 done
4461 done 4335done
4462IFS=$as_save_IFS 4336IFS=$as_save_IFS
4463 if test -z "$ac_cv_path_GREP"; then 4337 if test -z "$ac_cv_path_GREP"; then
4464 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4338 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4339$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4340 { (exit 1); exit 1; }; }
4465 fi 4341 fi
4466else 4342else
4467 ac_cv_path_GREP=$GREP 4343 ac_cv_path_GREP=$GREP
4468fi 4344fi
4469 4345
4470fi 4346fi
4471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4347{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4472$as_echo "$ac_cv_path_GREP" >&6; } 4348$as_echo "$ac_cv_path_GREP" >&6; }
4473 GREP="$ac_cv_path_GREP" 4349 GREP="$ac_cv_path_GREP"
4474 4350
4475 4351
4476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4352{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4477$as_echo_n "checking for egrep... " >&6; } 4353$as_echo_n "checking for egrep... " >&6; }
4478if test "${ac_cv_path_EGREP+set}" = set; then : 4354if test "${ac_cv_path_EGREP+set}" = set; then
4479 $as_echo_n "(cached) " >&6 4355 $as_echo_n "(cached) " >&6
4480else 4356else
4481 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4357 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
@@ -4489,7 +4365,7 @@ for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4489do 4365do
4490 IFS=$as_save_IFS 4366 IFS=$as_save_IFS
4491 test -z "$as_dir" && as_dir=. 4367 test -z "$as_dir" && as_dir=.
4492 for ac_prog in egrep; do 4368 for ac_prog in egrep; do
4493 for ac_exec_ext in '' $ac_executable_extensions; do 4369 for ac_exec_ext in '' $ac_executable_extensions; do
4494 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4370 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4495 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4371 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
@@ -4509,7 +4385,7 @@ case `"$ac_path_EGREP" --version 2>&1` in
4509 $as_echo 'EGREP' >> "conftest.nl" 4385 $as_echo 'EGREP' >> "conftest.nl"
4510 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4386 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4511 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4387 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4512 as_fn_arith $ac_count + 1 && ac_count=$as_val 4388 ac_count=`expr $ac_count + 1`
4513 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4389 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4514 # Best one so far, save it but keep looking for a better one 4390 # Best one so far, save it but keep looking for a better one
4515 ac_cv_path_EGREP="$ac_path_EGREP" 4391 ac_cv_path_EGREP="$ac_path_EGREP"
@@ -4524,10 +4400,12 @@ esac
4524 $ac_path_EGREP_found && break 3 4400 $ac_path_EGREP_found && break 3
4525 done 4401 done
4526 done 4402 done
4527 done 4403done
4528IFS=$as_save_IFS 4404IFS=$as_save_IFS
4529 if test -z "$ac_cv_path_EGREP"; then 4405 if test -z "$ac_cv_path_EGREP"; then
4530 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4406 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4407$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4408 { (exit 1); exit 1; }; }
4531 fi 4409 fi
4532else 4410else
4533 ac_cv_path_EGREP=$EGREP 4411 ac_cv_path_EGREP=$EGREP
@@ -4535,17 +4413,21 @@ fi
4535 4413
4536 fi 4414 fi
4537fi 4415fi
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4416{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4539$as_echo "$ac_cv_path_EGREP" >&6; } 4417$as_echo "$ac_cv_path_EGREP" >&6; }
4540 EGREP="$ac_cv_path_EGREP" 4418 EGREP="$ac_cv_path_EGREP"
4541 4419
4542 4420
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4421{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4544$as_echo_n "checking for ANSI C header files... " >&6; } 4422$as_echo_n "checking for ANSI C header files... " >&6; }
4545if test "${ac_cv_header_stdc+set}" = set; then : 4423if test "${ac_cv_header_stdc+set}" = set; then
4546 $as_echo_n "(cached) " >&6 4424 $as_echo_n "(cached) " >&6
4547else 4425else
4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4426 cat >conftest.$ac_ext <<_ACEOF
4427/* confdefs.h. */
4428_ACEOF
4429cat confdefs.h >>conftest.$ac_ext
4430cat >>conftest.$ac_ext <<_ACEOF
4549/* end confdefs.h. */ 4431/* end confdefs.h. */
4550#include <stdlib.h> 4432#include <stdlib.h>
4551#include <stdarg.h> 4433#include <stdarg.h>
@@ -4560,23 +4442,48 @@ main ()
4560 return 0; 4442 return 0;
4561} 4443}
4562_ACEOF 4444_ACEOF
4563if ac_fn_c_try_compile "$LINENO"; then : 4445rm -f conftest.$ac_objext
4446if { (ac_try="$ac_compile"
4447case "(($ac_try" in
4448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449 *) ac_try_echo=$ac_try;;
4450esac
4451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4452$as_echo "$ac_try_echo") >&5
4453 (eval "$ac_compile") 2>conftest.er1
4454 ac_status=$?
4455 grep -v '^ *+' conftest.er1 >conftest.err
4456 rm -f conftest.er1
4457 cat conftest.err >&5
4458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); } && {
4460 test -z "$ac_c_werror_flag" ||
4461 test ! -s conftest.err
4462 } && test -s conftest.$ac_objext; then
4564 ac_cv_header_stdc=yes 4463 ac_cv_header_stdc=yes
4565else 4464else
4566 ac_cv_header_stdc=no 4465 $as_echo "$as_me: failed program was:" >&5
4466sed 's/^/| /' conftest.$ac_ext >&5
4467
4468 ac_cv_header_stdc=no
4567fi 4469fi
4470
4568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4569 4472
4570if test $ac_cv_header_stdc = yes; then 4473if test $ac_cv_header_stdc = yes; then
4571 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4474 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4475 cat >conftest.$ac_ext <<_ACEOF
4476/* confdefs.h. */
4477_ACEOF
4478cat confdefs.h >>conftest.$ac_ext
4479cat >>conftest.$ac_ext <<_ACEOF
4573/* end confdefs.h. */ 4480/* end confdefs.h. */
4574#include <string.h> 4481#include <string.h>
4575 4482
4576_ACEOF 4483_ACEOF
4577if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4484if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4578 $EGREP "memchr" >/dev/null 2>&1; then : 4485 $EGREP "memchr" >/dev/null 2>&1; then
4579 4486 :
4580else 4487else
4581 ac_cv_header_stdc=no 4488 ac_cv_header_stdc=no
4582fi 4489fi
@@ -4586,14 +4493,18 @@ fi
4586 4493
4587if test $ac_cv_header_stdc = yes; then 4494if test $ac_cv_header_stdc = yes; then
4588 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4495 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4496 cat >conftest.$ac_ext <<_ACEOF
4497/* confdefs.h. */
4498_ACEOF
4499cat confdefs.h >>conftest.$ac_ext
4500cat >>conftest.$ac_ext <<_ACEOF
4590/* end confdefs.h. */ 4501/* end confdefs.h. */
4591#include <stdlib.h> 4502#include <stdlib.h>
4592 4503
4593_ACEOF 4504_ACEOF
4594if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4505if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4595 $EGREP "free" >/dev/null 2>&1; then : 4506 $EGREP "free" >/dev/null 2>&1; then
4596 4507 :
4597else 4508else
4598 ac_cv_header_stdc=no 4509 ac_cv_header_stdc=no
4599fi 4510fi
@@ -4603,10 +4514,14 @@ fi
4603 4514
4604if test $ac_cv_header_stdc = yes; then 4515if test $ac_cv_header_stdc = yes; then
4605 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4516 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4606 if test "$cross_compiling" = yes; then : 4517 if test "$cross_compiling" = yes; then
4607 : 4518 :
4608else 4519else
4609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4520 cat >conftest.$ac_ext <<_ACEOF
4521/* confdefs.h. */
4522_ACEOF
4523cat confdefs.h >>conftest.$ac_ext
4524cat >>conftest.$ac_ext <<_ACEOF
4610/* end confdefs.h. */ 4525/* end confdefs.h. */
4611#include <ctype.h> 4526#include <ctype.h>
4612#include <stdlib.h> 4527#include <stdlib.h>
@@ -4633,34 +4548,117 @@ main ()
4633 return 0; 4548 return 0;
4634} 4549}
4635_ACEOF 4550_ACEOF
4636if ac_fn_c_try_run "$LINENO"; then : 4551rm -f conftest$ac_exeext
4637 4552if { (ac_try="$ac_link"
4553case "(($ac_try" in
4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4556esac
4557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4558$as_echo "$ac_try_echo") >&5
4559 (eval "$ac_link") 2>&5
4560 ac_status=$?
4561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4563 { (case "(($ac_try" in
4564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565 *) ac_try_echo=$ac_try;;
4566esac
4567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4568$as_echo "$ac_try_echo") >&5
4569 (eval "$ac_try") 2>&5
4570 ac_status=$?
4571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; }; then
4573 :
4638else 4574else
4639 ac_cv_header_stdc=no 4575 $as_echo "$as_me: program exited with status $ac_status" >&5
4576$as_echo "$as_me: failed program was:" >&5
4577sed 's/^/| /' conftest.$ac_ext >&5
4578
4579( exit $ac_status )
4580ac_cv_header_stdc=no
4640fi 4581fi
4641rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4582rm -rf conftest.dSYM
4642 conftest.$ac_objext conftest.beam conftest.$ac_ext 4583rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4643fi 4584fi
4644 4585
4586
4645fi 4587fi
4646fi 4588fi
4647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4589{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4648$as_echo "$ac_cv_header_stdc" >&6; } 4590$as_echo "$ac_cv_header_stdc" >&6; }
4649if test $ac_cv_header_stdc = yes; then 4591if test $ac_cv_header_stdc = yes; then
4650 4592
4651$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4593cat >>confdefs.h <<\_ACEOF
4594#define STDC_HEADERS 1
4595_ACEOF
4652 4596
4653fi 4597fi
4654 4598
4655# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4599# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4600
4601
4602
4603
4604
4605
4606
4607
4608
4656for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4609for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4657 inttypes.h stdint.h unistd.h 4610 inttypes.h stdint.h unistd.h
4658do : 4611do
4659 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4612as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4660ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4613{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4661" 4614$as_echo_n "checking for $ac_header... " >&6; }
4662eval as_val=\$$as_ac_Header 4615if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4663 if test "x$as_val" = x""yes; then : 4616 $as_echo_n "(cached) " >&6
4617else
4618 cat >conftest.$ac_ext <<_ACEOF
4619/* confdefs.h. */
4620_ACEOF
4621cat confdefs.h >>conftest.$ac_ext
4622cat >>conftest.$ac_ext <<_ACEOF
4623/* end confdefs.h. */
4624$ac_includes_default
4625
4626#include <$ac_header>
4627_ACEOF
4628rm -f conftest.$ac_objext
4629if { (ac_try="$ac_compile"
4630case "(($ac_try" in
4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632 *) ac_try_echo=$ac_try;;
4633esac
4634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4635$as_echo "$ac_try_echo") >&5
4636 (eval "$ac_compile") 2>conftest.er1
4637 ac_status=$?
4638 grep -v '^ *+' conftest.er1 >conftest.err
4639 rm -f conftest.er1
4640 cat conftest.err >&5
4641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); } && {
4643 test -z "$ac_c_werror_flag" ||
4644 test ! -s conftest.err
4645 } && test -s conftest.$ac_objext; then
4646 eval "$as_ac_Header=yes"
4647else
4648 $as_echo "$as_me: failed program was:" >&5
4649sed 's/^/| /' conftest.$ac_ext >&5
4650
4651 eval "$as_ac_Header=no"
4652fi
4653
4654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4655fi
4656ac_res=`eval 'as_val=${'$as_ac_Header'}
4657 $as_echo "$as_val"'`
4658 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4659$as_echo "$ac_res" >&6; }
4660if test `eval 'as_val=${'$as_ac_Header'}
4661 $as_echo "$as_val"'` = yes; then
4664 cat >>confdefs.h <<_ACEOF 4662 cat >>confdefs.h <<_ACEOF
4665#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4663#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4666_ACEOF 4664_ACEOF
@@ -4671,8 +4669,134 @@ done
4671 4669
4672 4670
4673 4671
4674 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4672 if test "${ac_cv_header_minix_config_h+set}" = set; then
4675if test "x$ac_cv_header_minix_config_h" = x""yes; then : 4673 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4674$as_echo_n "checking for minix/config.h... " >&6; }
4675if test "${ac_cv_header_minix_config_h+set}" = set; then
4676 $as_echo_n "(cached) " >&6
4677fi
4678{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4679$as_echo "$ac_cv_header_minix_config_h" >&6; }
4680else
4681 # Is the header compilable?
4682{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4683$as_echo_n "checking minix/config.h usability... " >&6; }
4684cat >conftest.$ac_ext <<_ACEOF
4685/* confdefs.h. */
4686_ACEOF
4687cat confdefs.h >>conftest.$ac_ext
4688cat >>conftest.$ac_ext <<_ACEOF
4689/* end confdefs.h. */
4690$ac_includes_default
4691#include <minix/config.h>
4692_ACEOF
4693rm -f conftest.$ac_objext
4694if { (ac_try="$ac_compile"
4695case "(($ac_try" in
4696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4697 *) ac_try_echo=$ac_try;;
4698esac
4699eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4700$as_echo "$ac_try_echo") >&5
4701 (eval "$ac_compile") 2>conftest.er1
4702 ac_status=$?
4703 grep -v '^ *+' conftest.er1 >conftest.err
4704 rm -f conftest.er1
4705 cat conftest.err >&5
4706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } && {
4708 test -z "$ac_c_werror_flag" ||
4709 test ! -s conftest.err
4710 } && test -s conftest.$ac_objext; then
4711 ac_header_compiler=yes
4712else
4713 $as_echo "$as_me: failed program was:" >&5
4714sed 's/^/| /' conftest.$ac_ext >&5
4715
4716 ac_header_compiler=no
4717fi
4718
4719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4721$as_echo "$ac_header_compiler" >&6; }
4722
4723# Is the header present?
4724{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4725$as_echo_n "checking minix/config.h presence... " >&6; }
4726cat >conftest.$ac_ext <<_ACEOF
4727/* confdefs.h. */
4728_ACEOF
4729cat confdefs.h >>conftest.$ac_ext
4730cat >>conftest.$ac_ext <<_ACEOF
4731/* end confdefs.h. */
4732#include <minix/config.h>
4733_ACEOF
4734if { (ac_try="$ac_cpp conftest.$ac_ext"
4735case "(($ac_try" in
4736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4737 *) ac_try_echo=$ac_try;;
4738esac
4739eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4740$as_echo "$ac_try_echo") >&5
4741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4742 ac_status=$?
4743 grep -v '^ *+' conftest.er1 >conftest.err
4744 rm -f conftest.er1
4745 cat conftest.err >&5
4746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); } >/dev/null && {
4748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4749 test ! -s conftest.err
4750 }; then
4751 ac_header_preproc=yes
4752else
4753 $as_echo "$as_me: failed program was:" >&5
4754sed 's/^/| /' conftest.$ac_ext >&5
4755
4756 ac_header_preproc=no
4757fi
4758
4759rm -f conftest.err conftest.$ac_ext
4760{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4761$as_echo "$ac_header_preproc" >&6; }
4762
4763# So? What about this header?
4764case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4765 yes:no: )
4766 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4767$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4768 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4769$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4770 ac_header_preproc=yes
4771 ;;
4772 no:yes:* )
4773 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4774$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4775 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4776$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4777 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4778$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4779 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4780$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4781 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4782$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4783 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4784$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4785
4786 ;;
4787esac
4788{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4789$as_echo_n "checking for minix/config.h... " >&6; }
4790if test "${ac_cv_header_minix_config_h+set}" = set; then
4791 $as_echo_n "(cached) " >&6
4792else
4793 ac_cv_header_minix_config_h=$ac_header_preproc
4794fi
4795{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4796$as_echo "$ac_cv_header_minix_config_h" >&6; }
4797
4798fi
4799if test $ac_cv_header_minix_config_h = yes; then
4676 MINIX=yes 4800 MINIX=yes
4677else 4801else
4678 MINIX= 4802 MINIX=
@@ -4681,23 +4805,34 @@ fi
4681 4805
4682 if test "$MINIX" = yes; then 4806 if test "$MINIX" = yes; then
4683 4807
4684$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4808cat >>confdefs.h <<\_ACEOF
4809#define _POSIX_SOURCE 1
4810_ACEOF
4685 4811
4686 4812
4687$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4813cat >>confdefs.h <<\_ACEOF
4814#define _POSIX_1_SOURCE 2
4815_ACEOF
4688 4816
4689 4817
4690$as_echo "#define _MINIX 1" >>confdefs.h 4818cat >>confdefs.h <<\_ACEOF
4819#define _MINIX 1
4820_ACEOF
4691 4821
4692 fi 4822 fi
4693 4823
4694 4824
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4825
4826 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4696$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4827$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4697if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 4828if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4698 $as_echo_n "(cached) " >&6 4829 $as_echo_n "(cached) " >&6
4699else 4830else
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4831 cat >conftest.$ac_ext <<_ACEOF
4832/* confdefs.h. */
4833_ACEOF
4834cat confdefs.h >>conftest.$ac_ext
4835cat >>conftest.$ac_ext <<_ACEOF
4701/* end confdefs.h. */ 4836/* end confdefs.h. */
4702 4837
4703# define __EXTENSIONS__ 1 4838# define __EXTENSIONS__ 1
@@ -4710,34 +4845,69 @@ main ()
4710 return 0; 4845 return 0;
4711} 4846}
4712_ACEOF 4847_ACEOF
4713if ac_fn_c_try_compile "$LINENO"; then : 4848rm -f conftest.$ac_objext
4849if { (ac_try="$ac_compile"
4850case "(($ac_try" in
4851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4852 *) ac_try_echo=$ac_try;;
4853esac
4854eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4855$as_echo "$ac_try_echo") >&5
4856 (eval "$ac_compile") 2>conftest.er1
4857 ac_status=$?
4858 grep -v '^ *+' conftest.er1 >conftest.err
4859 rm -f conftest.er1
4860 cat conftest.err >&5
4861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } && {
4863 test -z "$ac_c_werror_flag" ||
4864 test ! -s conftest.err
4865 } && test -s conftest.$ac_objext; then
4714 ac_cv_safe_to_define___extensions__=yes 4866 ac_cv_safe_to_define___extensions__=yes
4715else 4867else
4716 ac_cv_safe_to_define___extensions__=no 4868 $as_echo "$as_me: failed program was:" >&5
4869sed 's/^/| /' conftest.$ac_ext >&5
4870
4871 ac_cv_safe_to_define___extensions__=no
4717fi 4872fi
4873
4718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4719fi 4875fi
4720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4876{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4721$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4877$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4722 test $ac_cv_safe_to_define___extensions__ = yes && 4878 test $ac_cv_safe_to_define___extensions__ = yes &&
4723 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4879 cat >>confdefs.h <<\_ACEOF
4880#define __EXTENSIONS__ 1
4881_ACEOF
4724 4882
4725 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4883 cat >>confdefs.h <<\_ACEOF
4884#define _ALL_SOURCE 1
4885_ACEOF
4726 4886
4727 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4887 cat >>confdefs.h <<\_ACEOF
4888#define _GNU_SOURCE 1
4889_ACEOF
4728 4890
4729 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4891 cat >>confdefs.h <<\_ACEOF
4892#define _POSIX_PTHREAD_SEMANTICS 1
4893_ACEOF
4730 4894
4731 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4895 cat >>confdefs.h <<\_ACEOF
4896#define _TANDEM_SOURCE 1
4897_ACEOF
4732 4898
4733 4899
4734 4900
4735### Use -Wno-pointer-sign if the compiler supports it 4901### Use -Wno-pointer-sign if the compiler supports it
4736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5 4902{ $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4737$as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; } 4903$as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4738SAVE_CFLAGS="$CFLAGS" 4904SAVE_CFLAGS="$CFLAGS"
4739CFLAGS="$CFLAGS -Wno-pointer-sign" 4905CFLAGS="$CFLAGS -Wno-pointer-sign"
4740cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4906cat >conftest.$ac_ext <<_ACEOF
4907/* confdefs.h. */
4908_ACEOF
4909cat confdefs.h >>conftest.$ac_ext
4910cat >>conftest.$ac_ext <<_ACEOF
4741/* end confdefs.h. */ 4911/* end confdefs.h. */
4742 4912
4743int 4913int
@@ -4748,27 +4918,52 @@ main ()
4748 return 0; 4918 return 0;
4749} 4919}
4750_ACEOF 4920_ACEOF
4751if ac_fn_c_try_compile "$LINENO"; then : 4921rm -f conftest.$ac_objext
4922if { (ac_try="$ac_compile"
4923case "(($ac_try" in
4924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4925 *) ac_try_echo=$ac_try;;
4926esac
4927eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4928$as_echo "$ac_try_echo") >&5
4929 (eval "$ac_compile") 2>conftest.er1
4930 ac_status=$?
4931 grep -v '^ *+' conftest.er1 >conftest.err
4932 rm -f conftest.er1
4933 cat conftest.err >&5
4934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); } && {
4936 test -z "$ac_c_werror_flag" ||
4937 test ! -s conftest.err
4938 } && test -s conftest.$ac_objext; then
4752 has_option=yes 4939 has_option=yes
4753else 4940else
4754 has_option=no 4941 $as_echo "$as_me: failed program was:" >&5
4942sed 's/^/| /' conftest.$ac_ext >&5
4943
4944 has_option=no
4755fi 4945fi
4946
4756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757if test $has_option = yes; then 4948if test $has_option = yes; then
4758 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH" 4949 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4759fi 4950fi
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 4951{ $as_echo "$as_me:$LINENO: result: $has_option" >&5
4761$as_echo "$has_option" >&6; } 4952$as_echo "$has_option" >&6; }
4762CFLAGS="$SAVE_CFLAGS" 4953CFLAGS="$SAVE_CFLAGS"
4763unset has_option 4954unset has_option
4764unset SAVE_CFLAGS 4955unset SAVE_CFLAGS
4765 4956
4766### Use -Wdeclaration-after-statement if the compiler supports it 4957### Use -Wdeclaration-after-statement if the compiler supports it
4767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5 4958{ $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4768$as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; } 4959$as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4769SAVE_CFLAGS="$CFLAGS" 4960SAVE_CFLAGS="$CFLAGS"
4770CFLAGS="$CFLAGS -Wdeclaration-after-statement" 4961CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4771cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4962cat >conftest.$ac_ext <<_ACEOF
4963/* confdefs.h. */
4964_ACEOF
4965cat confdefs.h >>conftest.$ac_ext
4966cat >>conftest.$ac_ext <<_ACEOF
4772/* end confdefs.h. */ 4967/* end confdefs.h. */
4773 4968
4774int 4969int
@@ -4779,16 +4974,37 @@ main ()
4779 return 0; 4974 return 0;
4780} 4975}
4781_ACEOF 4976_ACEOF
4782if ac_fn_c_try_compile "$LINENO"; then : 4977rm -f conftest.$ac_objext
4978if { (ac_try="$ac_compile"
4979case "(($ac_try" in
4980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4981 *) ac_try_echo=$ac_try;;
4982esac
4983eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4984$as_echo "$ac_try_echo") >&5
4985 (eval "$ac_compile") 2>conftest.er1
4986 ac_status=$?
4987 grep -v '^ *+' conftest.er1 >conftest.err
4988 rm -f conftest.er1
4989 cat conftest.err >&5
4990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); } && {
4992 test -z "$ac_c_werror_flag" ||
4993 test ! -s conftest.err
4994 } && test -s conftest.$ac_objext; then
4783 has_option=yes 4995 has_option=yes
4784else 4996else
4785 has_option=no 4997 $as_echo "$as_me: failed program was:" >&5
4998sed 's/^/| /' conftest.$ac_ext >&5
4999
5000 has_option=no
4786fi 5001fi
5002
4787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4788if test $has_option = yes; then 5004if test $has_option = yes; then
4789 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH" 5005 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4790fi 5006fi
4791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 5007{ $as_echo "$as_me:$LINENO: result: $has_option" >&5
4792$as_echo "$has_option" >&6; } 5008$as_echo "$has_option" >&6; }
4793CFLAGS="$SAVE_CFLAGS" 5009CFLAGS="$SAVE_CFLAGS"
4794unset has_option 5010unset has_option
@@ -4796,14 +5012,14 @@ unset SAVE_CFLAGS
4796 5012
4797#### Some other nice autoconf tests. 5013#### Some other nice autoconf tests.
4798 5014
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5015{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4800$as_echo_n "checking whether ln -s works... " >&6; } 5016$as_echo_n "checking whether ln -s works... " >&6; }
4801LN_S=$as_ln_s 5017LN_S=$as_ln_s
4802if test "$LN_S" = "ln -s"; then 5018if test "$LN_S" = "ln -s"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5019 { $as_echo "$as_me:$LINENO: result: yes" >&5
4804$as_echo "yes" >&6; } 5020$as_echo "yes" >&6; }
4805else 5021else
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5022 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4807$as_echo "no, using $LN_S" >&6; } 5023$as_echo "no, using $LN_S" >&6; }
4808fi 5024fi
4809 5025
@@ -4812,14 +5028,14 @@ ac_cpp='$CPP $CPPFLAGS'
4812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4814ac_compiler_gnu=$ac_cv_c_compiler_gnu 5030ac_compiler_gnu=$ac_cv_c_compiler_gnu
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5031{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4816$as_echo_n "checking how to run the C preprocessor... " >&6; } 5032$as_echo_n "checking how to run the C preprocessor... " >&6; }
4817# On Suns, sometimes $CPP names a directory. 5033# On Suns, sometimes $CPP names a directory.
4818if test -n "$CPP" && test -d "$CPP"; then 5034if test -n "$CPP" && test -d "$CPP"; then
4819 CPP= 5035 CPP=
4820fi 5036fi
4821if test -z "$CPP"; then 5037if test -z "$CPP"; then
4822 if test "${ac_cv_prog_CPP+set}" = set; then : 5038 if test "${ac_cv_prog_CPP+set}" = set; then
4823 $as_echo_n "(cached) " >&6 5039 $as_echo_n "(cached) " >&6
4824else 5040else
4825 # Double quotes because CPP needs to be expanded 5041 # Double quotes because CPP needs to be expanded
@@ -4834,7 +5050,11 @@ do
4834 # <limits.h> exists even on freestanding compilers. 5050 # <limits.h> exists even on freestanding compilers.
4835 # On the NeXT, cc -E runs the code through the compiler's parser, 5051 # On the NeXT, cc -E runs the code through the compiler's parser,
4836 # not just through cpp. "Syntax error" is here to catch this case. 5052 # not just through cpp. "Syntax error" is here to catch this case.
4837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5053 cat >conftest.$ac_ext <<_ACEOF
5054/* confdefs.h. */
5055_ACEOF
5056cat confdefs.h >>conftest.$ac_ext
5057cat >>conftest.$ac_ext <<_ACEOF
4838/* end confdefs.h. */ 5058/* end confdefs.h. */
4839#ifdef __STDC__ 5059#ifdef __STDC__
4840# include <limits.h> 5060# include <limits.h>
@@ -4843,34 +5063,78 @@ do
4843#endif 5063#endif
4844 Syntax error 5064 Syntax error
4845_ACEOF 5065_ACEOF
4846if ac_fn_c_try_cpp "$LINENO"; then : 5066if { (ac_try="$ac_cpp conftest.$ac_ext"
4847 5067case "(($ac_try" in
5068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5069 *) ac_try_echo=$ac_try;;
5070esac
5071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5072$as_echo "$ac_try_echo") >&5
5073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5074 ac_status=$?
5075 grep -v '^ *+' conftest.er1 >conftest.err
5076 rm -f conftest.er1
5077 cat conftest.err >&5
5078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } >/dev/null && {
5080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5081 test ! -s conftest.err
5082 }; then
5083 :
4848else 5084else
5085 $as_echo "$as_me: failed program was:" >&5
5086sed 's/^/| /' conftest.$ac_ext >&5
5087
4849 # Broken: fails on valid input. 5088 # Broken: fails on valid input.
4850continue 5089continue
4851fi 5090fi
5091
4852rm -f conftest.err conftest.$ac_ext 5092rm -f conftest.err conftest.$ac_ext
4853 5093
4854 # OK, works on sane cases. Now check whether nonexistent headers 5094 # OK, works on sane cases. Now check whether nonexistent headers
4855 # can be detected and how. 5095 # can be detected and how.
4856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5096 cat >conftest.$ac_ext <<_ACEOF
5097/* confdefs.h. */
5098_ACEOF
5099cat confdefs.h >>conftest.$ac_ext
5100cat >>conftest.$ac_ext <<_ACEOF
4857/* end confdefs.h. */ 5101/* end confdefs.h. */
4858#include <ac_nonexistent.h> 5102#include <ac_nonexistent.h>
4859_ACEOF 5103_ACEOF
4860if ac_fn_c_try_cpp "$LINENO"; then : 5104if { (ac_try="$ac_cpp conftest.$ac_ext"
5105case "(($ac_try" in
5106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5107 *) ac_try_echo=$ac_try;;
5108esac
5109eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5110$as_echo "$ac_try_echo") >&5
5111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5112 ac_status=$?
5113 grep -v '^ *+' conftest.er1 >conftest.err
5114 rm -f conftest.er1
5115 cat conftest.err >&5
5116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } >/dev/null && {
5118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5119 test ! -s conftest.err
5120 }; then
4861 # Broken: success on invalid input. 5121 # Broken: success on invalid input.
4862continue 5122continue
4863else 5123else
5124 $as_echo "$as_me: failed program was:" >&5
5125sed 's/^/| /' conftest.$ac_ext >&5
5126
4864 # Passes both tests. 5127 # Passes both tests.
4865ac_preproc_ok=: 5128ac_preproc_ok=:
4866break 5129break
4867fi 5130fi
5131
4868rm -f conftest.err conftest.$ac_ext 5132rm -f conftest.err conftest.$ac_ext
4869 5133
4870done 5134done
4871# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5135# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4872rm -f conftest.err conftest.$ac_ext 5136rm -f conftest.err conftest.$ac_ext
4873if $ac_preproc_ok; then : 5137if $ac_preproc_ok; then
4874 break 5138 break
4875fi 5139fi
4876 5140
@@ -4882,7 +5146,7 @@ fi
4882else 5146else
4883 ac_cv_prog_CPP=$CPP 5147 ac_cv_prog_CPP=$CPP
4884fi 5148fi
4885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5149{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4886$as_echo "$CPP" >&6; } 5150$as_echo "$CPP" >&6; }
4887ac_preproc_ok=false 5151ac_preproc_ok=false
4888for ac_c_preproc_warn_flag in '' yes 5152for ac_c_preproc_warn_flag in '' yes
@@ -4893,7 +5157,11 @@ do
4893 # <limits.h> exists even on freestanding compilers. 5157 # <limits.h> exists even on freestanding compilers.
4894 # On the NeXT, cc -E runs the code through the compiler's parser, 5158 # On the NeXT, cc -E runs the code through the compiler's parser,
4895 # not just through cpp. "Syntax error" is here to catch this case. 5159 # not just through cpp. "Syntax error" is here to catch this case.
4896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5160 cat >conftest.$ac_ext <<_ACEOF
5161/* confdefs.h. */
5162_ACEOF
5163cat confdefs.h >>conftest.$ac_ext
5164cat >>conftest.$ac_ext <<_ACEOF
4897/* end confdefs.h. */ 5165/* end confdefs.h. */
4898#ifdef __STDC__ 5166#ifdef __STDC__
4899# include <limits.h> 5167# include <limits.h>
@@ -4902,40 +5170,85 @@ do
4902#endif 5170#endif
4903 Syntax error 5171 Syntax error
4904_ACEOF 5172_ACEOF
4905if ac_fn_c_try_cpp "$LINENO"; then : 5173if { (ac_try="$ac_cpp conftest.$ac_ext"
4906 5174case "(($ac_try" in
5175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5176 *) ac_try_echo=$ac_try;;
5177esac
5178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5179$as_echo "$ac_try_echo") >&5
5180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5181 ac_status=$?
5182 grep -v '^ *+' conftest.er1 >conftest.err
5183 rm -f conftest.er1
5184 cat conftest.err >&5
5185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); } >/dev/null && {
5187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5188 test ! -s conftest.err
5189 }; then
5190 :
4907else 5191else
5192 $as_echo "$as_me: failed program was:" >&5
5193sed 's/^/| /' conftest.$ac_ext >&5
5194
4908 # Broken: fails on valid input. 5195 # Broken: fails on valid input.
4909continue 5196continue
4910fi 5197fi
5198
4911rm -f conftest.err conftest.$ac_ext 5199rm -f conftest.err conftest.$ac_ext
4912 5200
4913 # OK, works on sane cases. Now check whether nonexistent headers 5201 # OK, works on sane cases. Now check whether nonexistent headers
4914 # can be detected and how. 5202 # can be detected and how.
4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5203 cat >conftest.$ac_ext <<_ACEOF
5204/* confdefs.h. */
5205_ACEOF
5206cat confdefs.h >>conftest.$ac_ext
5207cat >>conftest.$ac_ext <<_ACEOF
4916/* end confdefs.h. */ 5208/* end confdefs.h. */
4917#include <ac_nonexistent.h> 5209#include <ac_nonexistent.h>
4918_ACEOF 5210_ACEOF
4919if ac_fn_c_try_cpp "$LINENO"; then : 5211if { (ac_try="$ac_cpp conftest.$ac_ext"
5212case "(($ac_try" in
5213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5214 *) ac_try_echo=$ac_try;;
5215esac
5216eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5217$as_echo "$ac_try_echo") >&5
5218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5219 ac_status=$?
5220 grep -v '^ *+' conftest.er1 >conftest.err
5221 rm -f conftest.er1
5222 cat conftest.err >&5
5223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } >/dev/null && {
5225 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5226 test ! -s conftest.err
5227 }; then
4920 # Broken: success on invalid input. 5228 # Broken: success on invalid input.
4921continue 5229continue
4922else 5230else
5231 $as_echo "$as_me: failed program was:" >&5
5232sed 's/^/| /' conftest.$ac_ext >&5
5233
4923 # Passes both tests. 5234 # Passes both tests.
4924ac_preproc_ok=: 5235ac_preproc_ok=:
4925break 5236break
4926fi 5237fi
5238
4927rm -f conftest.err conftest.$ac_ext 5239rm -f conftest.err conftest.$ac_ext
4928 5240
4929done 5241done
4930# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5242# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4931rm -f conftest.err conftest.$ac_ext 5243rm -f conftest.err conftest.$ac_ext
4932if $ac_preproc_ok; then : 5244if $ac_preproc_ok; then
4933 5245 :
4934else 5246else
4935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5247 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4936$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5248See \`config.log' for more details." >&5
4937as_fn_error "C preprocessor \"$CPP\" fails sanity check 5249$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4938See \`config.log' for more details." "$LINENO" 5; } 5250See \`config.log' for more details." >&2;}
5251 { (exit 1); exit 1; }; }
4939fi 5252fi
4940 5253
4941ac_ext=c 5254ac_ext=c
@@ -4958,10 +5271,10 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
4958# OS/2's system install, which has a completely different semantic 5271# OS/2's system install, which has a completely different semantic
4959# ./install, which can be erroneously created by make from ./install.sh. 5272# ./install, which can be erroneously created by make from ./install.sh.
4960# Reject install programs that cannot install multiple files. 5273# Reject install programs that cannot install multiple files.
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 5274{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4962$as_echo_n "checking for a BSD-compatible install... " >&6; } 5275$as_echo_n "checking for a BSD-compatible install... " >&6; }
4963if test -z "$INSTALL"; then 5276if test -z "$INSTALL"; then
4964if test "${ac_cv_path_install+set}" = set; then : 5277if test "${ac_cv_path_install+set}" = set; then
4965 $as_echo_n "(cached) " >&6 5278 $as_echo_n "(cached) " >&6
4966else 5279else
4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
@@ -4969,11 +5282,11 @@ for as_dir in $PATH
4969do 5282do
4970 IFS=$as_save_IFS 5283 IFS=$as_save_IFS
4971 test -z "$as_dir" && as_dir=. 5284 test -z "$as_dir" && as_dir=.
4972 # Account for people who put trailing slashes in PATH elements. 5285 # Account for people who put trailing slashes in PATH elements.
4973case $as_dir/ in #(( 5286case $as_dir/ in
4974 ./ | .// | /[cC]/* | \ 5287 ./ | .// | /cC/* | \
4975 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 5288 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4976 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 5289 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4977 /usr/ucb/* ) ;; 5290 /usr/ucb/* ) ;;
4978 *) 5291 *)
4979 # OSF1 and SCO ODT 3.0 have their own names for install. 5292 # OSF1 and SCO ODT 3.0 have their own names for install.
@@ -5010,7 +5323,7 @@ case $as_dir/ in #((
5010 ;; 5323 ;;
5011esac 5324esac
5012 5325
5013 done 5326done
5014IFS=$as_save_IFS 5327IFS=$as_save_IFS
5015 5328
5016rm -rf conftest.one conftest.two conftest.dir 5329rm -rf conftest.one conftest.two conftest.dir
@@ -5026,7 +5339,7 @@ fi
5026 INSTALL=$ac_install_sh 5339 INSTALL=$ac_install_sh
5027 fi 5340 fi
5028fi 5341fi
5029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 5342{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5030$as_echo "$INSTALL" >&6; } 5343$as_echo "$INSTALL" >&6; }
5031 5344
5032# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 5345# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
@@ -5041,9 +5354,9 @@ if test "x$RANLIB" = x; then
5041 if test -n "$ac_tool_prefix"; then 5354 if test -n "$ac_tool_prefix"; then
5042 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5355 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5043set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5356set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5357{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5045$as_echo_n "checking for $ac_word... " >&6; } 5358$as_echo_n "checking for $ac_word... " >&6; }
5046if test "${ac_cv_prog_RANLIB+set}" = set; then : 5359if test "${ac_cv_prog_RANLIB+set}" = set; then
5047 $as_echo_n "(cached) " >&6 5360 $as_echo_n "(cached) " >&6
5048else 5361else
5049 if test -n "$RANLIB"; then 5362 if test -n "$RANLIB"; then
@@ -5054,24 +5367,24 @@ for as_dir in $PATH
5054do 5367do
5055 IFS=$as_save_IFS 5368 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=. 5369 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do 5370 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5372 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5373 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 break 2 5374 break 2
5062 fi 5375 fi
5063done 5376done
5064 done 5377done
5065IFS=$as_save_IFS 5378IFS=$as_save_IFS
5066 5379
5067fi 5380fi
5068fi 5381fi
5069RANLIB=$ac_cv_prog_RANLIB 5382RANLIB=$ac_cv_prog_RANLIB
5070if test -n "$RANLIB"; then 5383if test -n "$RANLIB"; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5384 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5072$as_echo "$RANLIB" >&6; } 5385$as_echo "$RANLIB" >&6; }
5073else 5386else
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5387 { $as_echo "$as_me:$LINENO: result: no" >&5
5075$as_echo "no" >&6; } 5388$as_echo "no" >&6; }
5076fi 5389fi
5077 5390
@@ -5081,9 +5394,9 @@ if test -z "$ac_cv_prog_RANLIB"; then
5081 ac_ct_RANLIB=$RANLIB 5394 ac_ct_RANLIB=$RANLIB
5082 # Extract the first word of "ranlib", so it can be a program name with args. 5395 # Extract the first word of "ranlib", so it can be a program name with args.
5083set dummy ranlib; ac_word=$2 5396set dummy ranlib; ac_word=$2
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5397{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5085$as_echo_n "checking for $ac_word... " >&6; } 5398$as_echo_n "checking for $ac_word... " >&6; }
5086if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5399if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5087 $as_echo_n "(cached) " >&6 5400 $as_echo_n "(cached) " >&6
5088else 5401else
5089 if test -n "$ac_ct_RANLIB"; then 5402 if test -n "$ac_ct_RANLIB"; then
@@ -5094,24 +5407,24 @@ for as_dir in $PATH
5094do 5407do
5095 IFS=$as_save_IFS 5408 IFS=$as_save_IFS
5096 test -z "$as_dir" && as_dir=. 5409 test -z "$as_dir" && as_dir=.
5097 for ac_exec_ext in '' $ac_executable_extensions; do 5410 for ac_exec_ext in '' $ac_executable_extensions; do
5098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5099 ac_cv_prog_ac_ct_RANLIB="ranlib" 5412 ac_cv_prog_ac_ct_RANLIB="ranlib"
5100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5101 break 2 5414 break 2
5102 fi 5415 fi
5103done 5416done
5104 done 5417done
5105IFS=$as_save_IFS 5418IFS=$as_save_IFS
5106 5419
5107fi 5420fi
5108fi 5421fi
5109ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5422ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5110if test -n "$ac_ct_RANLIB"; then 5423if test -n "$ac_ct_RANLIB"; then
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5424 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5112$as_echo "$ac_ct_RANLIB" >&6; } 5425$as_echo "$ac_ct_RANLIB" >&6; }
5113else 5426else
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5427 { $as_echo "$as_me:$LINENO: result: no" >&5
5115$as_echo "no" >&6; } 5428$as_echo "no" >&6; }
5116fi 5429fi
5117 5430
@@ -5120,8 +5433,12 @@ fi
5120 else 5433 else
5121 case $cross_compiling:$ac_tool_warned in 5434 case $cross_compiling:$ac_tool_warned in
5122yes:) 5435yes:)
5123{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5436{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5124$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5437whose name does not start with the host triplet. If you think this
5438configuration is useful to you, please write to autoconf@gnu.org." >&5
5439$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5440whose name does not start with the host triplet. If you think this
5441configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5125ac_tool_warned=yes ;; 5442ac_tool_warned=yes ;;
5126esac 5443esac
5127 RANLIB=$ac_ct_RANLIB 5444 RANLIB=$ac_ct_RANLIB
@@ -5133,9 +5450,9 @@ fi
5133fi 5450fi
5134# Extract the first word of "install-info", so it can be a program name with args. 5451# Extract the first word of "install-info", so it can be a program name with args.
5135set dummy install-info; ac_word=$2 5452set dummy install-info; ac_word=$2
5136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5453{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5137$as_echo_n "checking for $ac_word... " >&6; } 5454$as_echo_n "checking for $ac_word... " >&6; }
5138if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : 5455if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5139 $as_echo_n "(cached) " >&6 5456 $as_echo_n "(cached) " >&6
5140else 5457else
5141 case $INSTALL_INFO in 5458 case $INSTALL_INFO in
@@ -5148,14 +5465,14 @@ for as_dir in $PATH
5148do 5465do
5149 IFS=$as_save_IFS 5466 IFS=$as_save_IFS
5150 test -z "$as_dir" && as_dir=. 5467 test -z "$as_dir" && as_dir=.
5151 for ac_exec_ext in '' $ac_executable_extensions; do 5468 for ac_exec_ext in '' $ac_executable_extensions; do
5152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5153 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" 5470 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5471 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5155 break 2 5472 break 2
5156 fi 5473 fi
5157done 5474done
5158 done 5475done
5159IFS=$as_save_IFS 5476IFS=$as_save_IFS
5160 5477
5161 ;; 5478 ;;
@@ -5163,19 +5480,19 @@ esac
5163fi 5480fi
5164INSTALL_INFO=$ac_cv_path_INSTALL_INFO 5481INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5165if test -n "$INSTALL_INFO"; then 5482if test -n "$INSTALL_INFO"; then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 5483 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5167$as_echo "$INSTALL_INFO" >&6; } 5484$as_echo "$INSTALL_INFO" >&6; }
5168else 5485else
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5486 { $as_echo "$as_me:$LINENO: result: no" >&5
5170$as_echo "no" >&6; } 5487$as_echo "no" >&6; }
5171fi 5488fi
5172 5489
5173 5490
5174# Extract the first word of "install-info", so it can be a program name with args. 5491# Extract the first word of "install-info", so it can be a program name with args.
5175set dummy install-info; ac_word=$2 5492set dummy install-info; ac_word=$2
5176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5493{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5177$as_echo_n "checking for $ac_word... " >&6; } 5494$as_echo_n "checking for $ac_word... " >&6; }
5178if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : 5495if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5179 $as_echo_n "(cached) " >&6 5496 $as_echo_n "(cached) " >&6
5180else 5497else
5181 case $INSTALL_INFO in 5498 case $INSTALL_INFO in
@@ -5188,14 +5505,14 @@ for as_dir in /usr/sbin
5188do 5505do
5189 IFS=$as_save_IFS 5506 IFS=$as_save_IFS
5190 test -z "$as_dir" && as_dir=. 5507 test -z "$as_dir" && as_dir=.
5191 for ac_exec_ext in '' $ac_executable_extensions; do 5508 for ac_exec_ext in '' $ac_executable_extensions; do
5192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" 5510 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5511 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 break 2 5512 break 2
5196 fi 5513 fi
5197done 5514done
5198 done 5515done
5199IFS=$as_save_IFS 5516IFS=$as_save_IFS
5200 5517
5201 ;; 5518 ;;
@@ -5203,19 +5520,19 @@ esac
5203fi 5520fi
5204INSTALL_INFO=$ac_cv_path_INSTALL_INFO 5521INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5205if test -n "$INSTALL_INFO"; then 5522if test -n "$INSTALL_INFO"; then
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 5523 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5207$as_echo "$INSTALL_INFO" >&6; } 5524$as_echo "$INSTALL_INFO" >&6; }
5208else 5525else
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5526 { $as_echo "$as_me:$LINENO: result: no" >&5
5210$as_echo "no" >&6; } 5527$as_echo "no" >&6; }
5211fi 5528fi
5212 5529
5213 5530
5214# Extract the first word of "install-info", so it can be a program name with args. 5531# Extract the first word of "install-info", so it can be a program name with args.
5215set dummy install-info; ac_word=$2 5532set dummy install-info; ac_word=$2
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5533{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5217$as_echo_n "checking for $ac_word... " >&6; } 5534$as_echo_n "checking for $ac_word... " >&6; }
5218if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : 5535if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5219 $as_echo_n "(cached) " >&6 5536 $as_echo_n "(cached) " >&6
5220else 5537else
5221 case $INSTALL_INFO in 5538 case $INSTALL_INFO in
@@ -5228,14 +5545,14 @@ for as_dir in /sbin
5228do 5545do
5229 IFS=$as_save_IFS 5546 IFS=$as_save_IFS
5230 test -z "$as_dir" && as_dir=. 5547 test -z "$as_dir" && as_dir=.
5231 for ac_exec_ext in '' $ac_executable_extensions; do 5548 for ac_exec_ext in '' $ac_executable_extensions; do
5232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5233 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" 5550 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5551 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5235 break 2 5552 break 2
5236 fi 5553 fi
5237done 5554done
5238 done 5555done
5239IFS=$as_save_IFS 5556IFS=$as_save_IFS
5240 5557
5241 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":" 5558 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
@@ -5244,19 +5561,19 @@ esac
5244fi 5561fi
5245INSTALL_INFO=$ac_cv_path_INSTALL_INFO 5562INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5246if test -n "$INSTALL_INFO"; then 5563if test -n "$INSTALL_INFO"; then
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 5564 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5248$as_echo "$INSTALL_INFO" >&6; } 5565$as_echo "$INSTALL_INFO" >&6; }
5249else 5566else
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5567 { $as_echo "$as_me:$LINENO: result: no" >&5
5251$as_echo "no" >&6; } 5568$as_echo "no" >&6; }
5252fi 5569fi
5253 5570
5254 5571
5255# Extract the first word of "gzip", so it can be a program name with args. 5572# Extract the first word of "gzip", so it can be a program name with args.
5256set dummy gzip; ac_word=$2 5573set dummy gzip; ac_word=$2
5257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5574{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5258$as_echo_n "checking for $ac_word... " >&6; } 5575$as_echo_n "checking for $ac_word... " >&6; }
5259if test "${ac_cv_path_GZIP_PROG+set}" = set; then : 5576if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5260 $as_echo_n "(cached) " >&6 5577 $as_echo_n "(cached) " >&6
5261else 5578else
5262 case $GZIP_PROG in 5579 case $GZIP_PROG in
@@ -5269,14 +5586,14 @@ for as_dir in $PATH
5269do 5586do
5270 IFS=$as_save_IFS 5587 IFS=$as_save_IFS
5271 test -z "$as_dir" && as_dir=. 5588 test -z "$as_dir" && as_dir=.
5272 for ac_exec_ext in '' $ac_executable_extensions; do 5589 for ac_exec_ext in '' $ac_executable_extensions; do
5273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5274 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext" 5591 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5592 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5276 break 2 5593 break 2
5277 fi 5594 fi
5278done 5595done
5279 done 5596done
5280IFS=$as_save_IFS 5597IFS=$as_save_IFS
5281 5598
5282 ;; 5599 ;;
@@ -5284,10 +5601,10 @@ esac
5284fi 5601fi
5285GZIP_PROG=$ac_cv_path_GZIP_PROG 5602GZIP_PROG=$ac_cv_path_GZIP_PROG
5286if test -n "$GZIP_PROG"; then 5603if test -n "$GZIP_PROG"; then
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5 5604 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5288$as_echo "$GZIP_PROG" >&6; } 5605$as_echo "$GZIP_PROG" >&6; }
5289else 5606else
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5607 { $as_echo "$as_me:$LINENO: result: no" >&5
5291$as_echo "no" >&6; } 5608$as_echo "no" >&6; }
5292fi 5609fi
5293 5610
@@ -5297,9 +5614,9 @@ fi
5297## Need makeinfo >= 4.6 (?) to build the manuals. 5614## Need makeinfo >= 4.6 (?) to build the manuals.
5298# Extract the first word of "makeinfo", so it can be a program name with args. 5615# Extract the first word of "makeinfo", so it can be a program name with args.
5299set dummy makeinfo; ac_word=$2 5616set dummy makeinfo; ac_word=$2
5300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5617{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5301$as_echo_n "checking for $ac_word... " >&6; } 5618$as_echo_n "checking for $ac_word... " >&6; }
5302if test "${ac_cv_path_MAKEINFO+set}" = set; then : 5619if test "${ac_cv_path_MAKEINFO+set}" = set; then
5303 $as_echo_n "(cached) " >&6 5620 $as_echo_n "(cached) " >&6
5304else 5621else
5305 case $MAKEINFO in 5622 case $MAKEINFO in
@@ -5312,14 +5629,14 @@ for as_dir in $PATH
5312do 5629do
5313 IFS=$as_save_IFS 5630 IFS=$as_save_IFS
5314 test -z "$as_dir" && as_dir=. 5631 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do 5632 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5317 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext" 5634 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5635 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 break 2 5636 break 2
5320 fi 5637 fi
5321done 5638done
5322 done 5639done
5323IFS=$as_save_IFS 5640IFS=$as_save_IFS
5324 5641
5325 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no" 5642 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
@@ -5328,10 +5645,10 @@ esac
5328fi 5645fi
5329MAKEINFO=$ac_cv_path_MAKEINFO 5646MAKEINFO=$ac_cv_path_MAKEINFO
5330if test -n "$MAKEINFO"; then 5647if test -n "$MAKEINFO"; then
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 5648 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5332$as_echo "$MAKEINFO" >&6; } 5649$as_echo "$MAKEINFO" >&6; }
5333else 5650else
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5651 { $as_echo "$as_me:$LINENO: result: no" >&5
5335$as_echo "no" >&6; } 5652$as_echo "no" >&6; }
5336fi 5653fi
5337 5654
@@ -5354,10 +5671,15 @@ if test "$MAKEINFO" = "no"; then
5354 if test "x${with_makeinfo}" = "xno"; then 5671 if test "x${with_makeinfo}" = "xno"; then
5355 MAKEINFO=off 5672 MAKEINFO=off
5356 elif test ! -e $srcdir/info/emacs; then 5673 elif test ! -e $srcdir/info/emacs; then
5357 as_fn_error "You do not seem to have makeinfo >= 4.6, and your 5674 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5675source tree does not seem to have pre-built manuals in the \`info' directory.
5676Either install a suitable version of makeinfo, or re-run configure
5677with the \`--without-makeinfo' option to build without the manuals. " >&5
5678$as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5358source tree does not seem to have pre-built manuals in the \`info' directory. 5679source tree does not seem to have pre-built manuals in the \`info' directory.
5359Either install a suitable version of makeinfo, or re-run configure 5680Either install a suitable version of makeinfo, or re-run configure
5360with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5 5681with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5682 { (exit 1); exit 1; }; }
5361 fi 5683 fi
5362fi 5684fi
5363 5685
@@ -5380,22 +5702,46 @@ else
5380 LDFLAGS="$LDFLAGS -znocombreloc" 5702 LDFLAGS="$LDFLAGS -znocombreloc"
5381fi 5703fi
5382 5704
5383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5 5705{ $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5384$as_echo_n "checking for -znocombreloc... " >&6; } 5706$as_echo_n "checking for -znocombreloc... " >&6; }
5385cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5707cat >conftest.$ac_ext <<_ACEOF
5386/* end confdefs.h. */
5387main(){return 0;} 5708main(){return 0;}
5388_ACEOF 5709_ACEOF
5389if ac_fn_c_try_link "$LINENO"; then : 5710rm -f conftest.$ac_objext conftest$ac_exeext
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5711if { (ac_try="$ac_link"
5712case "(($ac_try" in
5713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5714 *) ac_try_echo=$ac_try;;
5715esac
5716eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5717$as_echo "$ac_try_echo") >&5
5718 (eval "$ac_link") 2>conftest.er1
5719 ac_status=$?
5720 grep -v '^ *+' conftest.er1 >conftest.err
5721 rm -f conftest.er1
5722 cat conftest.err >&5
5723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); } && {
5725 test -z "$ac_c_werror_flag" ||
5726 test ! -s conftest.err
5727 } && test -s conftest$ac_exeext && {
5728 test "$cross_compiling" = yes ||
5729 $as_test_x conftest$ac_exeext
5730 }; then
5731 { $as_echo "$as_me:$LINENO: result: yes" >&5
5391$as_echo "yes" >&6; } 5732$as_echo "yes" >&6; }
5392else 5733else
5393 LDFLAGS=$late_LDFLAGS 5734 $as_echo "$as_me: failed program was:" >&5
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5735sed 's/^/| /' conftest.$ac_ext >&5
5736
5737 LDFLAGS=$late_LDFLAGS
5738 { $as_echo "$as_me:$LINENO: result: no" >&5
5395$as_echo "no" >&6; } 5739$as_echo "no" >&6; }
5396fi 5740fi
5397rm -f core conftest.err conftest.$ac_objext \ 5741
5398 conftest$ac_exeext conftest.$ac_ext 5742rm -rf conftest.dSYM
5743rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5744 conftest$ac_exeext conftest.$ac_ext
5399 5745
5400LIB_MATH=-lm 5746LIB_MATH=-lm
5401 5747
@@ -5413,7 +5759,7 @@ esac
5413 5759
5414#### Extract some information from the operating system and machine files. 5760#### Extract some information from the operating system and machine files.
5415 5761
5416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the machine- and system-dependent files to find out 5762{ $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5417 - which libraries the lib-src programs will want, and 5763 - which libraries the lib-src programs will want, and
5418 - whether the GNU malloc routines are usable..." >&5 5764 - whether the GNU malloc routines are usable..." >&5
5419$as_echo "$as_me: checking the machine- and system-dependent files to find out 5765$as_echo "$as_me: checking the machine- and system-dependent files to find out
@@ -5543,15 +5889,15 @@ fi
5543 5889
5544 5890
5545# Check whether --enable-largefile was given. 5891# Check whether --enable-largefile was given.
5546if test "${enable_largefile+set}" = set; then : 5892if test "${enable_largefile+set}" = set; then
5547 enableval=$enable_largefile; 5893 enableval=$enable_largefile;
5548fi 5894fi
5549 5895
5550if test "$enable_largefile" != no; then 5896if test "$enable_largefile" != no; then
5551 5897
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 5898 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5553$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 5899$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5554if test "${ac_cv_sys_largefile_CC+set}" = set; then : 5900if test "${ac_cv_sys_largefile_CC+set}" = set; then
5555 $as_echo_n "(cached) " >&6 5901 $as_echo_n "(cached) " >&6
5556else 5902else
5557 ac_cv_sys_largefile_CC=no 5903 ac_cv_sys_largefile_CC=no
@@ -5560,7 +5906,11 @@ else
5560 while :; do 5906 while :; do
5561 # IRIX 6.2 and later do not support large files by default, 5907 # IRIX 6.2 and later do not support large files by default,
5562 # so use the C compiler's -n32 option if that helps. 5908 # so use the C compiler's -n32 option if that helps.
5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5909 cat >conftest.$ac_ext <<_ACEOF
5910/* confdefs.h. */
5911_ACEOF
5912cat confdefs.h >>conftest.$ac_ext
5913cat >>conftest.$ac_ext <<_ACEOF
5564/* end confdefs.h. */ 5914/* end confdefs.h. */
5565#include <sys/types.h> 5915#include <sys/types.h>
5566 /* Check that off_t can represent 2**63 - 1 correctly. 5916 /* Check that off_t can represent 2**63 - 1 correctly.
@@ -5579,14 +5929,60 @@ main ()
5579 return 0; 5929 return 0;
5580} 5930}
5581_ACEOF 5931_ACEOF
5582 if ac_fn_c_try_compile "$LINENO"; then : 5932 rm -f conftest.$ac_objext
5933if { (ac_try="$ac_compile"
5934case "(($ac_try" in
5935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5937esac
5938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5939$as_echo "$ac_try_echo") >&5
5940 (eval "$ac_compile") 2>conftest.er1
5941 ac_status=$?
5942 grep -v '^ *+' conftest.er1 >conftest.err
5943 rm -f conftest.er1
5944 cat conftest.err >&5
5945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } && {
5947 test -z "$ac_c_werror_flag" ||
5948 test ! -s conftest.err
5949 } && test -s conftest.$ac_objext; then
5583 break 5950 break
5951else
5952 $as_echo "$as_me: failed program was:" >&5
5953sed 's/^/| /' conftest.$ac_ext >&5
5954
5955
5584fi 5956fi
5957
5585rm -f core conftest.err conftest.$ac_objext 5958rm -f core conftest.err conftest.$ac_objext
5586 CC="$CC -n32" 5959 CC="$CC -n32"
5587 if ac_fn_c_try_compile "$LINENO"; then : 5960 rm -f conftest.$ac_objext
5961if { (ac_try="$ac_compile"
5962case "(($ac_try" in
5963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5965esac
5966eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5967$as_echo "$ac_try_echo") >&5
5968 (eval "$ac_compile") 2>conftest.er1
5969 ac_status=$?
5970 grep -v '^ *+' conftest.er1 >conftest.err
5971 rm -f conftest.er1
5972 cat conftest.err >&5
5973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } && {
5975 test -z "$ac_c_werror_flag" ||
5976 test ! -s conftest.err
5977 } && test -s conftest.$ac_objext; then
5588 ac_cv_sys_largefile_CC=' -n32'; break 5978 ac_cv_sys_largefile_CC=' -n32'; break
5979else
5980 $as_echo "$as_me: failed program was:" >&5
5981sed 's/^/| /' conftest.$ac_ext >&5
5982
5983
5589fi 5984fi
5985
5590rm -f core conftest.err conftest.$ac_objext 5986rm -f core conftest.err conftest.$ac_objext
5591 break 5987 break
5592 done 5988 done
@@ -5594,19 +5990,23 @@ rm -f core conftest.err conftest.$ac_objext
5594 rm -f conftest.$ac_ext 5990 rm -f conftest.$ac_ext
5595 fi 5991 fi
5596fi 5992fi
5597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 5993{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5598$as_echo "$ac_cv_sys_largefile_CC" >&6; } 5994$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5599 if test "$ac_cv_sys_largefile_CC" != no; then 5995 if test "$ac_cv_sys_largefile_CC" != no; then
5600 CC=$CC$ac_cv_sys_largefile_CC 5996 CC=$CC$ac_cv_sys_largefile_CC
5601 fi 5997 fi
5602 5998
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 5999 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5604$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 6000$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5605if test "${ac_cv_sys_file_offset_bits+set}" = set; then : 6001if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5606 $as_echo_n "(cached) " >&6 6002 $as_echo_n "(cached) " >&6
5607else 6003else
5608 while :; do 6004 while :; do
5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6005 cat >conftest.$ac_ext <<_ACEOF
6006/* confdefs.h. */
6007_ACEOF
6008cat confdefs.h >>conftest.$ac_ext
6009cat >>conftest.$ac_ext <<_ACEOF
5610/* end confdefs.h. */ 6010/* end confdefs.h. */
5611#include <sys/types.h> 6011#include <sys/types.h>
5612 /* Check that off_t can represent 2**63 - 1 correctly. 6012 /* Check that off_t can represent 2**63 - 1 correctly.
@@ -5625,11 +6025,38 @@ main ()
5625 return 0; 6025 return 0;
5626} 6026}
5627_ACEOF 6027_ACEOF
5628if ac_fn_c_try_compile "$LINENO"; then : 6028rm -f conftest.$ac_objext
6029if { (ac_try="$ac_compile"
6030case "(($ac_try" in
6031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6032 *) ac_try_echo=$ac_try;;
6033esac
6034eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6035$as_echo "$ac_try_echo") >&5
6036 (eval "$ac_compile") 2>conftest.er1
6037 ac_status=$?
6038 grep -v '^ *+' conftest.er1 >conftest.err
6039 rm -f conftest.er1
6040 cat conftest.err >&5
6041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); } && {
6043 test -z "$ac_c_werror_flag" ||
6044 test ! -s conftest.err
6045 } && test -s conftest.$ac_objext; then
5629 ac_cv_sys_file_offset_bits=no; break 6046 ac_cv_sys_file_offset_bits=no; break
6047else
6048 $as_echo "$as_me: failed program was:" >&5
6049sed 's/^/| /' conftest.$ac_ext >&5
6050
6051
5630fi 6052fi
6053
5631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6055 cat >conftest.$ac_ext <<_ACEOF
6056/* confdefs.h. */
6057_ACEOF
6058cat confdefs.h >>conftest.$ac_ext
6059cat >>conftest.$ac_ext <<_ACEOF
5633/* end confdefs.h. */ 6060/* end confdefs.h. */
5634#define _FILE_OFFSET_BITS 64 6061#define _FILE_OFFSET_BITS 64
5635#include <sys/types.h> 6062#include <sys/types.h>
@@ -5649,15 +6076,38 @@ main ()
5649 return 0; 6076 return 0;
5650} 6077}
5651_ACEOF 6078_ACEOF
5652if ac_fn_c_try_compile "$LINENO"; then : 6079rm -f conftest.$ac_objext
6080if { (ac_try="$ac_compile"
6081case "(($ac_try" in
6082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6083 *) ac_try_echo=$ac_try;;
6084esac
6085eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6086$as_echo "$ac_try_echo") >&5
6087 (eval "$ac_compile") 2>conftest.er1
6088 ac_status=$?
6089 grep -v '^ *+' conftest.er1 >conftest.err
6090 rm -f conftest.er1
6091 cat conftest.err >&5
6092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); } && {
6094 test -z "$ac_c_werror_flag" ||
6095 test ! -s conftest.err
6096 } && test -s conftest.$ac_objext; then
5653 ac_cv_sys_file_offset_bits=64; break 6097 ac_cv_sys_file_offset_bits=64; break
6098else
6099 $as_echo "$as_me: failed program was:" >&5
6100sed 's/^/| /' conftest.$ac_ext >&5
6101
6102
5654fi 6103fi
6104
5655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656 ac_cv_sys_file_offset_bits=unknown 6106 ac_cv_sys_file_offset_bits=unknown
5657 break 6107 break
5658done 6108done
5659fi 6109fi
5660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 6110{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5661$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 6111$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5662case $ac_cv_sys_file_offset_bits in #( 6112case $ac_cv_sys_file_offset_bits in #(
5663 no | unknown) ;; 6113 no | unknown) ;;
@@ -5669,13 +6119,17 @@ _ACEOF
5669esac 6119esac
5670rm -rf conftest* 6120rm -rf conftest*
5671 if test $ac_cv_sys_file_offset_bits = unknown; then 6121 if test $ac_cv_sys_file_offset_bits = unknown; then
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 6122 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5673$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 6123$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5674if test "${ac_cv_sys_large_files+set}" = set; then : 6124if test "${ac_cv_sys_large_files+set}" = set; then
5675 $as_echo_n "(cached) " >&6 6125 $as_echo_n "(cached) " >&6
5676else 6126else
5677 while :; do 6127 while :; do
5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6128 cat >conftest.$ac_ext <<_ACEOF
6129/* confdefs.h. */
6130_ACEOF
6131cat confdefs.h >>conftest.$ac_ext
6132cat >>conftest.$ac_ext <<_ACEOF
5679/* end confdefs.h. */ 6133/* end confdefs.h. */
5680#include <sys/types.h> 6134#include <sys/types.h>
5681 /* Check that off_t can represent 2**63 - 1 correctly. 6135 /* Check that off_t can represent 2**63 - 1 correctly.
@@ -5694,11 +6148,38 @@ main ()
5694 return 0; 6148 return 0;
5695} 6149}
5696_ACEOF 6150_ACEOF
5697if ac_fn_c_try_compile "$LINENO"; then : 6151rm -f conftest.$ac_objext
6152if { (ac_try="$ac_compile"
6153case "(($ac_try" in
6154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155 *) ac_try_echo=$ac_try;;
6156esac
6157eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6158$as_echo "$ac_try_echo") >&5
6159 (eval "$ac_compile") 2>conftest.er1
6160 ac_status=$?
6161 grep -v '^ *+' conftest.er1 >conftest.err
6162 rm -f conftest.er1
6163 cat conftest.err >&5
6164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } && {
6166 test -z "$ac_c_werror_flag" ||
6167 test ! -s conftest.err
6168 } && test -s conftest.$ac_objext; then
5698 ac_cv_sys_large_files=no; break 6169 ac_cv_sys_large_files=no; break
6170else
6171 $as_echo "$as_me: failed program was:" >&5
6172sed 's/^/| /' conftest.$ac_ext >&5
6173
6174
5699fi 6175fi
6176
5700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6178 cat >conftest.$ac_ext <<_ACEOF
6179/* confdefs.h. */
6180_ACEOF
6181cat confdefs.h >>conftest.$ac_ext
6182cat >>conftest.$ac_ext <<_ACEOF
5702/* end confdefs.h. */ 6183/* end confdefs.h. */
5703#define _LARGE_FILES 1 6184#define _LARGE_FILES 1
5704#include <sys/types.h> 6185#include <sys/types.h>
@@ -5718,15 +6199,38 @@ main ()
5718 return 0; 6199 return 0;
5719} 6200}
5720_ACEOF 6201_ACEOF
5721if ac_fn_c_try_compile "$LINENO"; then : 6202rm -f conftest.$ac_objext
6203if { (ac_try="$ac_compile"
6204case "(($ac_try" in
6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206 *) ac_try_echo=$ac_try;;
6207esac
6208eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6209$as_echo "$ac_try_echo") >&5
6210 (eval "$ac_compile") 2>conftest.er1
6211 ac_status=$?
6212 grep -v '^ *+' conftest.er1 >conftest.err
6213 rm -f conftest.er1
6214 cat conftest.err >&5
6215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); } && {
6217 test -z "$ac_c_werror_flag" ||
6218 test ! -s conftest.err
6219 } && test -s conftest.$ac_objext; then
5722 ac_cv_sys_large_files=1; break 6220 ac_cv_sys_large_files=1; break
6221else
6222 $as_echo "$as_me: failed program was:" >&5
6223sed 's/^/| /' conftest.$ac_ext >&5
6224
6225
5723fi 6226fi
6227
5724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5725 ac_cv_sys_large_files=unknown 6229 ac_cv_sys_large_files=unknown
5726 break 6230 break
5727done 6231done
5728fi 6232fi
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 6233{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5730$as_echo "$ac_cv_sys_large_files" >&6; } 6234$as_echo "$ac_cv_sys_large_files" >&6; }
5731case $ac_cv_sys_large_files in #( 6235case $ac_cv_sys_large_files in #(
5732 no | unknown) ;; 6236 no | unknown) ;;
@@ -5772,7 +6276,9 @@ else
5772 ## Some platforms don't use any of these files, so it is not 6276 ## Some platforms don't use any of these files, so it is not
5773 ## appropriate to put this test outside the if block. 6277 ## appropriate to put this test outside the if block.
5774 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \ 6278 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5775 as_fn_error "crt*.o not found in specified location." "$LINENO" 5 6279 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6280$as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6281 { (exit 1); exit 1; }; }
5776 6282
5777fi 6283fi
5778 6284
@@ -5784,12 +6290,145 @@ fi
5784 6290
5785if test "${with_sound}" != "no"; then 6291if test "${with_sound}" != "no"; then
5786 # Sound support for GNU/Linux and the free BSDs. 6292 # Sound support for GNU/Linux and the free BSDs.
5787 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h 6293
5788do : 6294
5789 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6295
5790ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6296for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5791eval as_val=\$$as_ac_Header 6297do
5792 if test "x$as_val" = x""yes; then : 6298as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6299if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6300 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6301$as_echo_n "checking for $ac_header... " >&6; }
6302if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6303 $as_echo_n "(cached) " >&6
6304fi
6305ac_res=`eval 'as_val=${'$as_ac_Header'}
6306 $as_echo "$as_val"'`
6307 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6308$as_echo "$ac_res" >&6; }
6309else
6310 # Is the header compilable?
6311{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6312$as_echo_n "checking $ac_header usability... " >&6; }
6313cat >conftest.$ac_ext <<_ACEOF
6314/* confdefs.h. */
6315_ACEOF
6316cat confdefs.h >>conftest.$ac_ext
6317cat >>conftest.$ac_ext <<_ACEOF
6318/* end confdefs.h. */
6319$ac_includes_default
6320#include <$ac_header>
6321_ACEOF
6322rm -f conftest.$ac_objext
6323if { (ac_try="$ac_compile"
6324case "(($ac_try" in
6325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326 *) ac_try_echo=$ac_try;;
6327esac
6328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6329$as_echo "$ac_try_echo") >&5
6330 (eval "$ac_compile") 2>conftest.er1
6331 ac_status=$?
6332 grep -v '^ *+' conftest.er1 >conftest.err
6333 rm -f conftest.er1
6334 cat conftest.err >&5
6335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); } && {
6337 test -z "$ac_c_werror_flag" ||
6338 test ! -s conftest.err
6339 } && test -s conftest.$ac_objext; then
6340 ac_header_compiler=yes
6341else
6342 $as_echo "$as_me: failed program was:" >&5
6343sed 's/^/| /' conftest.$ac_ext >&5
6344
6345 ac_header_compiler=no
6346fi
6347
6348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6349{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6350$as_echo "$ac_header_compiler" >&6; }
6351
6352# Is the header present?
6353{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6354$as_echo_n "checking $ac_header presence... " >&6; }
6355cat >conftest.$ac_ext <<_ACEOF
6356/* confdefs.h. */
6357_ACEOF
6358cat confdefs.h >>conftest.$ac_ext
6359cat >>conftest.$ac_ext <<_ACEOF
6360/* end confdefs.h. */
6361#include <$ac_header>
6362_ACEOF
6363if { (ac_try="$ac_cpp conftest.$ac_ext"
6364case "(($ac_try" in
6365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6366 *) ac_try_echo=$ac_try;;
6367esac
6368eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6369$as_echo "$ac_try_echo") >&5
6370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6371 ac_status=$?
6372 grep -v '^ *+' conftest.er1 >conftest.err
6373 rm -f conftest.er1
6374 cat conftest.err >&5
6375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); } >/dev/null && {
6377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6378 test ! -s conftest.err
6379 }; then
6380 ac_header_preproc=yes
6381else
6382 $as_echo "$as_me: failed program was:" >&5
6383sed 's/^/| /' conftest.$ac_ext >&5
6384
6385 ac_header_preproc=no
6386fi
6387
6388rm -f conftest.err conftest.$ac_ext
6389{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6390$as_echo "$ac_header_preproc" >&6; }
6391
6392# So? What about this header?
6393case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6394 yes:no: )
6395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6396$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6397 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6398$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6399 ac_header_preproc=yes
6400 ;;
6401 no:yes:* )
6402 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6403$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6405$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6407$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6409$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6411$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6412 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6413$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6414
6415 ;;
6416esac
6417{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6418$as_echo_n "checking for $ac_header... " >&6; }
6419if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6420 $as_echo_n "(cached) " >&6
6421else
6422 eval "$as_ac_Header=\$ac_header_preproc"
6423fi
6424ac_res=`eval 'as_val=${'$as_ac_Header'}
6425 $as_echo "$as_val"'`
6426 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6427$as_echo "$ac_res" >&6; }
6428
6429fi
6430if test `eval 'as_val=${'$as_ac_Header'}
6431 $as_echo "$as_val"'` = yes; then
5793 cat >>confdefs.h <<_ACEOF 6432 cat >>confdefs.h <<_ACEOF
5794#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6433#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5795_ACEOF 6434_ACEOF
@@ -5799,14 +6438,18 @@ fi
5799done 6438done
5800 6439
5801 # Emulation library used on NetBSD. 6440 # Emulation library used on NetBSD.
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5 6441 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5803$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; } 6442$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5804if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then : 6443if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5805 $as_echo_n "(cached) " >&6 6444 $as_echo_n "(cached) " >&6
5806else 6445else
5807 ac_check_lib_save_LIBS=$LIBS 6446 ac_check_lib_save_LIBS=$LIBS
5808LIBS="-lossaudio $LIBS" 6447LIBS="-lossaudio $LIBS"
5809cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6448cat >conftest.$ac_ext <<_ACEOF
6449/* confdefs.h. */
6450_ACEOF
6451cat confdefs.h >>conftest.$ac_ext
6452cat >>conftest.$ac_ext <<_ACEOF
5810/* end confdefs.h. */ 6453/* end confdefs.h. */
5811 6454
5812/* Override any GCC internal prototype to avoid an error. 6455/* Override any GCC internal prototype to avoid an error.
@@ -5824,18 +6467,43 @@ return _oss_ioctl ();
5824 return 0; 6467 return 0;
5825} 6468}
5826_ACEOF 6469_ACEOF
5827if ac_fn_c_try_link "$LINENO"; then : 6470rm -f conftest.$ac_objext conftest$ac_exeext
6471if { (ac_try="$ac_link"
6472case "(($ac_try" in
6473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6474 *) ac_try_echo=$ac_try;;
6475esac
6476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6477$as_echo "$ac_try_echo") >&5
6478 (eval "$ac_link") 2>conftest.er1
6479 ac_status=$?
6480 grep -v '^ *+' conftest.er1 >conftest.err
6481 rm -f conftest.er1
6482 cat conftest.err >&5
6483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } && {
6485 test -z "$ac_c_werror_flag" ||
6486 test ! -s conftest.err
6487 } && test -s conftest$ac_exeext && {
6488 test "$cross_compiling" = yes ||
6489 $as_test_x conftest$ac_exeext
6490 }; then
5828 ac_cv_lib_ossaudio__oss_ioctl=yes 6491 ac_cv_lib_ossaudio__oss_ioctl=yes
5829else 6492else
5830 ac_cv_lib_ossaudio__oss_ioctl=no 6493 $as_echo "$as_me: failed program was:" >&5
6494sed 's/^/| /' conftest.$ac_ext >&5
6495
6496 ac_cv_lib_ossaudio__oss_ioctl=no
5831fi 6497fi
5832rm -f core conftest.err conftest.$ac_objext \ 6498
5833 conftest$ac_exeext conftest.$ac_ext 6499rm -rf conftest.dSYM
6500rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6501 conftest$ac_exeext conftest.$ac_ext
5834LIBS=$ac_check_lib_save_LIBS 6502LIBS=$ac_check_lib_save_LIBS
5835fi 6503fi
5836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 6504{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5837$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; } 6505$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5838if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then : 6506if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5839 LIBSOUND=-lossaudio 6507 LIBSOUND=-lossaudio
5840else 6508else
5841 LIBSOUND= 6509 LIBSOUND=
@@ -5850,9 +6518,9 @@ fi
5850 6518
5851 # Extract the first word of "pkg-config", so it can be a program name with args. 6519 # Extract the first word of "pkg-config", so it can be a program name with args.
5852set dummy pkg-config; ac_word=$2 6520set dummy pkg-config; ac_word=$2
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6521{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5854$as_echo_n "checking for $ac_word... " >&6; } 6522$as_echo_n "checking for $ac_word... " >&6; }
5855if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 6523if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5856 $as_echo_n "(cached) " >&6 6524 $as_echo_n "(cached) " >&6
5857else 6525else
5858 case $PKG_CONFIG in 6526 case $PKG_CONFIG in
@@ -5865,14 +6533,14 @@ for as_dir in $PATH
5865do 6533do
5866 IFS=$as_save_IFS 6534 IFS=$as_save_IFS
5867 test -z "$as_dir" && as_dir=. 6535 test -z "$as_dir" && as_dir=.
5868 for ac_exec_ext in '' $ac_executable_extensions; do 6536 for ac_exec_ext in '' $ac_executable_extensions; do
5869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5870 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 6538 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6539 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 break 2 6540 break 2
5873 fi 6541 fi
5874done 6542done
5875 done 6543done
5876IFS=$as_save_IFS 6544IFS=$as_save_IFS
5877 6545
5878 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 6546 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -5881,10 +6549,10 @@ esac
5881fi 6549fi
5882PKG_CONFIG=$ac_cv_path_PKG_CONFIG 6550PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5883if test -n "$PKG_CONFIG"; then 6551if test -n "$PKG_CONFIG"; then
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 6552 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5885$as_echo "$PKG_CONFIG" >&6; } 6553$as_echo "$PKG_CONFIG" >&6; }
5886else 6554else
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6555 { $as_echo "$as_me:$LINENO: result: no" >&5
5888$as_echo "no" >&6; } 6556$as_echo "no" >&6; }
5889fi 6557fi
5890 6558
@@ -5895,27 +6563,27 @@ fi
5895 else 6563 else
5896 PKG_CONFIG_MIN_VERSION=0.9.0 6564 PKG_CONFIG_MIN_VERSION=0.9.0
5897 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 6565 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5 6566 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
5899$as_echo_n "checking for $ALSA_MODULES... " >&6; } 6567$as_echo_n "checking for $ALSA_MODULES... " >&6; }
5900 6568
5901 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then 6569 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6570 { $as_echo "$as_me:$LINENO: result: yes" >&5
5903$as_echo "yes" >&6; } 6571$as_echo "yes" >&6; }
5904 succeeded=yes 6572 succeeded=yes
5905 6573
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5 6574 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
5907$as_echo_n "checking ALSA_CFLAGS... " >&6; } 6575$as_echo_n "checking ALSA_CFLAGS... " >&6; }
5908 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'` 6576 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5 6577 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
5910$as_echo "$ALSA_CFLAGS" >&6; } 6578$as_echo "$ALSA_CFLAGS" >&6; }
5911 6579
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5 6580 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
5913$as_echo_n "checking ALSA_LIBS... " >&6; } 6581$as_echo_n "checking ALSA_LIBS... " >&6; }
5914 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'` 6582 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5 6583 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
5916$as_echo "$ALSA_LIBS" >&6; } 6584$as_echo "$ALSA_LIBS" >&6; }
5917 else 6585 else
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6586 { $as_echo "$as_me:$LINENO: result: no" >&5
5919$as_echo "no" >&6; } 6587$as_echo "no" >&6; }
5920 ALSA_CFLAGS="" 6588 ALSA_CFLAGS=""
5921 ALSA_LIBS="" 6589 ALSA_LIBS=""
@@ -5944,7 +6612,11 @@ $as_echo "no" >&6; }
5944 SAVE_LDFLAGS="$LDFLAGS" 6612 SAVE_LDFLAGS="$LDFLAGS"
5945 CFLAGS="$ALSA_CFLAGS $CFLAGS" 6613 CFLAGS="$ALSA_CFLAGS $CFLAGS"
5946 LDFLAGS="$ALSA_LIBS $LDFLAGS" 6614 LDFLAGS="$ALSA_LIBS $LDFLAGS"
5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6615 cat >conftest.$ac_ext <<_ACEOF
6616/* confdefs.h. */
6617_ACEOF
6618cat confdefs.h >>conftest.$ac_ext
6619cat >>conftest.$ac_ext <<_ACEOF
5948/* end confdefs.h. */ 6620/* end confdefs.h. */
5949#include <asoundlib.h> 6621#include <asoundlib.h>
5950int 6622int
@@ -5955,14 +6627,39 @@ snd_lib_error_set_handler (0);
5955 return 0; 6627 return 0;
5956} 6628}
5957_ACEOF 6629_ACEOF
5958if ac_fn_c_try_compile "$LINENO"; then : 6630rm -f conftest.$ac_objext
6631if { (ac_try="$ac_compile"
6632case "(($ac_try" in
6633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6634 *) ac_try_echo=$ac_try;;
6635esac
6636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6637$as_echo "$ac_try_echo") >&5
6638 (eval "$ac_compile") 2>conftest.er1
6639 ac_status=$?
6640 grep -v '^ *+' conftest.er1 >conftest.err
6641 rm -f conftest.er1
6642 cat conftest.err >&5
6643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); } && {
6645 test -z "$ac_c_werror_flag" ||
6646 test ! -s conftest.err
6647 } && test -s conftest.$ac_objext; then
5959 emacs_alsa_normal=yes 6648 emacs_alsa_normal=yes
5960else 6649else
5961 emacs_alsa_normal=no 6650 $as_echo "$as_me: failed program was:" >&5
6651sed 's/^/| /' conftest.$ac_ext >&5
6652
6653 emacs_alsa_normal=no
5962fi 6654fi
6655
5963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964 if test "$emacs_alsa_normal" != yes; then 6657 if test "$emacs_alsa_normal" != yes; then
5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6658 cat >conftest.$ac_ext <<_ACEOF
6659/* confdefs.h. */
6660_ACEOF
6661cat confdefs.h >>conftest.$ac_ext
6662cat >>conftest.$ac_ext <<_ACEOF
5966/* end confdefs.h. */ 6663/* end confdefs.h. */
5967#include <alsa/asoundlib.h> 6664#include <alsa/asoundlib.h>
5968int 6665int
@@ -5973,14 +6670,37 @@ snd_lib_error_set_handler (0);
5973 return 0; 6670 return 0;
5974} 6671}
5975_ACEOF 6672_ACEOF
5976if ac_fn_c_try_compile "$LINENO"; then : 6673rm -f conftest.$ac_objext
6674if { (ac_try="$ac_compile"
6675case "(($ac_try" in
6676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6677 *) ac_try_echo=$ac_try;;
6678esac
6679eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6680$as_echo "$ac_try_echo") >&5
6681 (eval "$ac_compile") 2>conftest.er1
6682 ac_status=$?
6683 grep -v '^ *+' conftest.er1 >conftest.err
6684 rm -f conftest.er1
6685 cat conftest.err >&5
6686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); } && {
6688 test -z "$ac_c_werror_flag" ||
6689 test ! -s conftest.err
6690 } && test -s conftest.$ac_objext; then
5977 emacs_alsa_subdir=yes 6691 emacs_alsa_subdir=yes
5978else 6692else
5979 emacs_alsa_subdir=no 6693 $as_echo "$as_me: failed program was:" >&5
6694sed 's/^/| /' conftest.$ac_ext >&5
6695
6696 emacs_alsa_subdir=no
5980fi 6697fi
6698
5981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5982 if test "$emacs_alsa_subdir" != yes; then 6700 if test "$emacs_alsa_subdir" != yes; then
5983 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5 6701 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6702$as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6703 { (exit 1); exit 1; }; }
5984 fi 6704 fi
5985 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" 6705 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
5986 fi 6706 fi
@@ -5990,22 +6710,179 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5990 LIBSOUND="$LIBSOUND $ALSA_LIBS" 6710 LIBSOUND="$LIBSOUND $ALSA_LIBS"
5991 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS" 6711 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
5992 6712
5993$as_echo "#define HAVE_ALSA 1" >>confdefs.h 6713cat >>confdefs.h <<\_ACEOF
6714#define HAVE_ALSA 1
6715_ACEOF
5994 6716
5995 fi 6717 fi
5996 6718
5997fi 6719fi
5998 6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
5999for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ 6746for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6000 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ 6747 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6001 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ 6748 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6002 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \ 6749 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6003 sys/utsname.h pwd.h utmp.h 6750 sys/utsname.h pwd.h utmp.h
6004do : 6751do
6005 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6752as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6006ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6753if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6007eval as_val=\$$as_ac_Header 6754 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6008 if test "x$as_val" = x""yes; then : 6755$as_echo_n "checking for $ac_header... " >&6; }
6756if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6757 $as_echo_n "(cached) " >&6
6758fi
6759ac_res=`eval 'as_val=${'$as_ac_Header'}
6760 $as_echo "$as_val"'`
6761 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6762$as_echo "$ac_res" >&6; }
6763else
6764 # Is the header compilable?
6765{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6766$as_echo_n "checking $ac_header usability... " >&6; }
6767cat >conftest.$ac_ext <<_ACEOF
6768/* confdefs.h. */
6769_ACEOF
6770cat confdefs.h >>conftest.$ac_ext
6771cat >>conftest.$ac_ext <<_ACEOF
6772/* end confdefs.h. */
6773$ac_includes_default
6774#include <$ac_header>
6775_ACEOF
6776rm -f conftest.$ac_objext
6777if { (ac_try="$ac_compile"
6778case "(($ac_try" in
6779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6780 *) ac_try_echo=$ac_try;;
6781esac
6782eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6783$as_echo "$ac_try_echo") >&5
6784 (eval "$ac_compile") 2>conftest.er1
6785 ac_status=$?
6786 grep -v '^ *+' conftest.er1 >conftest.err
6787 rm -f conftest.er1
6788 cat conftest.err >&5
6789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); } && {
6791 test -z "$ac_c_werror_flag" ||
6792 test ! -s conftest.err
6793 } && test -s conftest.$ac_objext; then
6794 ac_header_compiler=yes
6795else
6796 $as_echo "$as_me: failed program was:" >&5
6797sed 's/^/| /' conftest.$ac_ext >&5
6798
6799 ac_header_compiler=no
6800fi
6801
6802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6803{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6804$as_echo "$ac_header_compiler" >&6; }
6805
6806# Is the header present?
6807{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6808$as_echo_n "checking $ac_header presence... " >&6; }
6809cat >conftest.$ac_ext <<_ACEOF
6810/* confdefs.h. */
6811_ACEOF
6812cat confdefs.h >>conftest.$ac_ext
6813cat >>conftest.$ac_ext <<_ACEOF
6814/* end confdefs.h. */
6815#include <$ac_header>
6816_ACEOF
6817if { (ac_try="$ac_cpp conftest.$ac_ext"
6818case "(($ac_try" in
6819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6820 *) ac_try_echo=$ac_try;;
6821esac
6822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6823$as_echo "$ac_try_echo") >&5
6824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6825 ac_status=$?
6826 grep -v '^ *+' conftest.er1 >conftest.err
6827 rm -f conftest.er1
6828 cat conftest.err >&5
6829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } >/dev/null && {
6831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6832 test ! -s conftest.err
6833 }; then
6834 ac_header_preproc=yes
6835else
6836 $as_echo "$as_me: failed program was:" >&5
6837sed 's/^/| /' conftest.$ac_ext >&5
6838
6839 ac_header_preproc=no
6840fi
6841
6842rm -f conftest.err conftest.$ac_ext
6843{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6844$as_echo "$ac_header_preproc" >&6; }
6845
6846# So? What about this header?
6847case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6848 yes:no: )
6849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6850$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6852$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6853 ac_header_preproc=yes
6854 ;;
6855 no:yes:* )
6856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6857$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6859$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6861$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6863$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6865$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6867$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6868
6869 ;;
6870esac
6871{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6872$as_echo_n "checking for $ac_header... " >&6; }
6873if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6874 $as_echo_n "(cached) " >&6
6875else
6876 eval "$as_ac_Header=\$ac_header_preproc"
6877fi
6878ac_res=`eval 'as_val=${'$as_ac_Header'}
6879 $as_echo "$as_val"'`
6880 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6881$as_echo "$ac_res" >&6; }
6882
6883fi
6884if test `eval 'as_val=${'$as_ac_Header'}
6885 $as_echo "$as_val"'` = yes; then
6009 cat >>confdefs.h <<_ACEOF 6886 cat >>confdefs.h <<_ACEOF
6010#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6887#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6011_ACEOF 6888_ACEOF
@@ -6015,9 +6892,13 @@ fi
6015done 6892done
6016 6893
6017 6894
6018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5 6895{ $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6019$as_echo_n "checking if personality LINUX32 can be set... " >&6; } 6896$as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6020cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6897cat >conftest.$ac_ext <<_ACEOF
6898/* confdefs.h. */
6899_ACEOF
6900cat confdefs.h >>conftest.$ac_ext
6901cat >>conftest.$ac_ext <<_ACEOF
6021/* end confdefs.h. */ 6902/* end confdefs.h. */
6022#include <sys/personality.h> 6903#include <sys/personality.h>
6023int 6904int
@@ -6028,39 +6909,112 @@ personality (PER_LINUX32)
6028 return 0; 6909 return 0;
6029} 6910}
6030_ACEOF 6911_ACEOF
6031if ac_fn_c_try_compile "$LINENO"; then : 6912rm -f conftest.$ac_objext
6913if { (ac_try="$ac_compile"
6914case "(($ac_try" in
6915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6916 *) ac_try_echo=$ac_try;;
6917esac
6918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6919$as_echo "$ac_try_echo") >&5
6920 (eval "$ac_compile") 2>conftest.er1
6921 ac_status=$?
6922 grep -v '^ *+' conftest.er1 >conftest.err
6923 rm -f conftest.er1
6924 cat conftest.err >&5
6925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); } && {
6927 test -z "$ac_c_werror_flag" ||
6928 test ! -s conftest.err
6929 } && test -s conftest.$ac_objext; then
6032 emacs_cv_personality_linux32=yes 6930 emacs_cv_personality_linux32=yes
6033else 6931else
6034 emacs_cv_personality_linux32=no 6932 $as_echo "$as_me: failed program was:" >&5
6933sed 's/^/| /' conftest.$ac_ext >&5
6934
6935 emacs_cv_personality_linux32=no
6035fi 6936fi
6937
6036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5 6939{ $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6038$as_echo "$emacs_cv_personality_linux32" >&6; } 6940$as_echo "$emacs_cv_personality_linux32" >&6; }
6039 6941
6040if test $emacs_cv_personality_linux32 = yes; then 6942if test $emacs_cv_personality_linux32 = yes; then
6041 6943
6042$as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h 6944cat >>confdefs.h <<\_ACEOF
6945#define HAVE_PERSONALITY_LINUX32 1
6946_ACEOF
6043 6947
6044fi 6948fi
6045 6949
6950
6046for ac_header in term.h 6951for ac_header in term.h
6047do : 6952do
6048 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h" 6953as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6049if test "x$ac_cv_header_term_h" = x""yes; then : 6954{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6955$as_echo_n "checking for $ac_header... " >&6; }
6956if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6957 $as_echo_n "(cached) " >&6
6958else
6959 cat >conftest.$ac_ext <<_ACEOF
6960/* confdefs.h. */
6961_ACEOF
6962cat confdefs.h >>conftest.$ac_ext
6963cat >>conftest.$ac_ext <<_ACEOF
6964/* end confdefs.h. */
6965#include <$ac_header>
6966_ACEOF
6967if { (ac_try="$ac_cpp conftest.$ac_ext"
6968case "(($ac_try" in
6969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6970 *) ac_try_echo=$ac_try;;
6971esac
6972eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6973$as_echo "$ac_try_echo") >&5
6974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6975 ac_status=$?
6976 grep -v '^ *+' conftest.er1 >conftest.err
6977 rm -f conftest.er1
6978 cat conftest.err >&5
6979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); } >/dev/null && {
6981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6982 test ! -s conftest.err
6983 }; then
6984 eval "$as_ac_Header=yes"
6985else
6986 $as_echo "$as_me: failed program was:" >&5
6987sed 's/^/| /' conftest.$ac_ext >&5
6988
6989 eval "$as_ac_Header=no"
6990fi
6991
6992rm -f conftest.err conftest.$ac_ext
6993fi
6994ac_res=`eval 'as_val=${'$as_ac_Header'}
6995 $as_echo "$as_val"'`
6996 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6997$as_echo "$ac_res" >&6; }
6998if test `eval 'as_val=${'$as_ac_Header'}
6999 $as_echo "$as_val"'` = yes; then
6050 cat >>confdefs.h <<_ACEOF 7000 cat >>confdefs.h <<_ACEOF
6051#define HAVE_TERM_H 1 7001#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6052_ACEOF 7002_ACEOF
6053 7003
6054fi 7004fi
6055 7005
6056done 7006done
6057 7007
6058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7008{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6059$as_echo_n "checking for ANSI C header files... " >&6; } 7009$as_echo_n "checking for ANSI C header files... " >&6; }
6060if test "${ac_cv_header_stdc+set}" = set; then : 7010if test "${ac_cv_header_stdc+set}" = set; then
6061 $as_echo_n "(cached) " >&6 7011 $as_echo_n "(cached) " >&6
6062else 7012else
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7013 cat >conftest.$ac_ext <<_ACEOF
7014/* confdefs.h. */
7015_ACEOF
7016cat confdefs.h >>conftest.$ac_ext
7017cat >>conftest.$ac_ext <<_ACEOF
6064/* end confdefs.h. */ 7018/* end confdefs.h. */
6065#include <stdlib.h> 7019#include <stdlib.h>
6066#include <stdarg.h> 7020#include <stdarg.h>
@@ -6075,23 +7029,48 @@ main ()
6075 return 0; 7029 return 0;
6076} 7030}
6077_ACEOF 7031_ACEOF
6078if ac_fn_c_try_compile "$LINENO"; then : 7032rm -f conftest.$ac_objext
7033if { (ac_try="$ac_compile"
7034case "(($ac_try" in
7035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7036 *) ac_try_echo=$ac_try;;
7037esac
7038eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7039$as_echo "$ac_try_echo") >&5
7040 (eval "$ac_compile") 2>conftest.er1
7041 ac_status=$?
7042 grep -v '^ *+' conftest.er1 >conftest.err
7043 rm -f conftest.er1
7044 cat conftest.err >&5
7045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); } && {
7047 test -z "$ac_c_werror_flag" ||
7048 test ! -s conftest.err
7049 } && test -s conftest.$ac_objext; then
6079 ac_cv_header_stdc=yes 7050 ac_cv_header_stdc=yes
6080else 7051else
6081 ac_cv_header_stdc=no 7052 $as_echo "$as_me: failed program was:" >&5
7053sed 's/^/| /' conftest.$ac_ext >&5
7054
7055 ac_cv_header_stdc=no
6082fi 7056fi
7057
6083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6084 7059
6085if test $ac_cv_header_stdc = yes; then 7060if test $ac_cv_header_stdc = yes; then
6086 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7061 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7062 cat >conftest.$ac_ext <<_ACEOF
7063/* confdefs.h. */
7064_ACEOF
7065cat confdefs.h >>conftest.$ac_ext
7066cat >>conftest.$ac_ext <<_ACEOF
6088/* end confdefs.h. */ 7067/* end confdefs.h. */
6089#include <string.h> 7068#include <string.h>
6090 7069
6091_ACEOF 7070_ACEOF
6092if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7071if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6093 $EGREP "memchr" >/dev/null 2>&1; then : 7072 $EGREP "memchr" >/dev/null 2>&1; then
6094 7073 :
6095else 7074else
6096 ac_cv_header_stdc=no 7075 ac_cv_header_stdc=no
6097fi 7076fi
@@ -6101,14 +7080,18 @@ fi
6101 7080
6102if test $ac_cv_header_stdc = yes; then 7081if test $ac_cv_header_stdc = yes; then
6103 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7082 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7083 cat >conftest.$ac_ext <<_ACEOF
7084/* confdefs.h. */
7085_ACEOF
7086cat confdefs.h >>conftest.$ac_ext
7087cat >>conftest.$ac_ext <<_ACEOF
6105/* end confdefs.h. */ 7088/* end confdefs.h. */
6106#include <stdlib.h> 7089#include <stdlib.h>
6107 7090
6108_ACEOF 7091_ACEOF
6109if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7092if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6110 $EGREP "free" >/dev/null 2>&1; then : 7093 $EGREP "free" >/dev/null 2>&1; then
6111 7094 :
6112else 7095else
6113 ac_cv_header_stdc=no 7096 ac_cv_header_stdc=no
6114fi 7097fi
@@ -6118,10 +7101,14 @@ fi
6118 7101
6119if test $ac_cv_header_stdc = yes; then 7102if test $ac_cv_header_stdc = yes; then
6120 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7103 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6121 if test "$cross_compiling" = yes; then : 7104 if test "$cross_compiling" = yes; then
6122 : 7105 :
6123else 7106else
6124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7107 cat >conftest.$ac_ext <<_ACEOF
7108/* confdefs.h. */
7109_ACEOF
7110cat confdefs.h >>conftest.$ac_ext
7111cat >>conftest.$ac_ext <<_ACEOF
6125/* end confdefs.h. */ 7112/* end confdefs.h. */
6126#include <ctype.h> 7113#include <ctype.h>
6127#include <stdlib.h> 7114#include <stdlib.h>
@@ -6148,31 +7135,64 @@ main ()
6148 return 0; 7135 return 0;
6149} 7136}
6150_ACEOF 7137_ACEOF
6151if ac_fn_c_try_run "$LINENO"; then : 7138rm -f conftest$ac_exeext
6152 7139if { (ac_try="$ac_link"
7140case "(($ac_try" in
7141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7142 *) ac_try_echo=$ac_try;;
7143esac
7144eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7145$as_echo "$ac_try_echo") >&5
7146 (eval "$ac_link") 2>&5
7147 ac_status=$?
7148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7150 { (case "(($ac_try" in
7151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7152 *) ac_try_echo=$ac_try;;
7153esac
7154eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7155$as_echo "$ac_try_echo") >&5
7156 (eval "$ac_try") 2>&5
7157 ac_status=$?
7158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); }; }; then
7160 :
6153else 7161else
6154 ac_cv_header_stdc=no 7162 $as_echo "$as_me: program exited with status $ac_status" >&5
7163$as_echo "$as_me: failed program was:" >&5
7164sed 's/^/| /' conftest.$ac_ext >&5
7165
7166( exit $ac_status )
7167ac_cv_header_stdc=no
6155fi 7168fi
6156rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7169rm -rf conftest.dSYM
6157 conftest.$ac_objext conftest.beam conftest.$ac_ext 7170rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6158fi 7171fi
6159 7172
7173
6160fi 7174fi
6161fi 7175fi
6162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7176{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6163$as_echo "$ac_cv_header_stdc" >&6; } 7177$as_echo "$ac_cv_header_stdc" >&6; }
6164if test $ac_cv_header_stdc = yes; then 7178if test $ac_cv_header_stdc = yes; then
6165 7179
6166$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7180cat >>confdefs.h <<\_ACEOF
7181#define STDC_HEADERS 1
7182_ACEOF
6167 7183
6168fi 7184fi
6169 7185
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 7186{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6171$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 7187$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6172if test "${ac_cv_header_time+set}" = set; then : 7188if test "${ac_cv_header_time+set}" = set; then
6173 $as_echo_n "(cached) " >&6 7189 $as_echo_n "(cached) " >&6
6174else 7190else
6175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7191 cat >conftest.$ac_ext <<_ACEOF
7192/* confdefs.h. */
7193_ACEOF
7194cat confdefs.h >>conftest.$ac_ext
7195cat >>conftest.$ac_ext <<_ACEOF
6176/* end confdefs.h. */ 7196/* end confdefs.h. */
6177#include <sys/types.h> 7197#include <sys/types.h>
6178#include <sys/time.h> 7198#include <sys/time.h>
@@ -6187,57 +7207,202 @@ return 0;
6187 return 0; 7207 return 0;
6188} 7208}
6189_ACEOF 7209_ACEOF
6190if ac_fn_c_try_compile "$LINENO"; then : 7210rm -f conftest.$ac_objext
7211if { (ac_try="$ac_compile"
7212case "(($ac_try" in
7213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7214 *) ac_try_echo=$ac_try;;
7215esac
7216eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7217$as_echo "$ac_try_echo") >&5
7218 (eval "$ac_compile") 2>conftest.er1
7219 ac_status=$?
7220 grep -v '^ *+' conftest.er1 >conftest.err
7221 rm -f conftest.er1
7222 cat conftest.err >&5
7223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } && {
7225 test -z "$ac_c_werror_flag" ||
7226 test ! -s conftest.err
7227 } && test -s conftest.$ac_objext; then
6191 ac_cv_header_time=yes 7228 ac_cv_header_time=yes
6192else 7229else
6193 ac_cv_header_time=no 7230 $as_echo "$as_me: failed program was:" >&5
7231sed 's/^/| /' conftest.$ac_ext >&5
7232
7233 ac_cv_header_time=no
6194fi 7234fi
7235
6195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6196fi 7237fi
6197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 7238{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6198$as_echo "$ac_cv_header_time" >&6; } 7239$as_echo "$ac_cv_header_time" >&6; }
6199if test $ac_cv_header_time = yes; then 7240if test $ac_cv_header_time = yes; then
6200 7241
6201$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 7242cat >>confdefs.h <<\_ACEOF
7243#define TIME_WITH_SYS_TIME 1
7244_ACEOF
6202 7245
6203fi 7246fi
6204 7247
6205ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default" 7248{ $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6206if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then : 7249$as_echo_n "checking whether sys_siglist is declared... " >&6; }
6207 ac_have_decl=1 7250if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7251 $as_echo_n "(cached) " >&6
6208else 7252else
6209 ac_have_decl=0 7253 cat >conftest.$ac_ext <<_ACEOF
7254/* confdefs.h. */
7255_ACEOF
7256cat confdefs.h >>conftest.$ac_ext
7257cat >>conftest.$ac_ext <<_ACEOF
7258/* end confdefs.h. */
7259$ac_includes_default
7260int
7261main ()
7262{
7263#ifndef sys_siglist
7264 (void) sys_siglist;
7265#endif
7266
7267 ;
7268 return 0;
7269}
7270_ACEOF
7271rm -f conftest.$ac_objext
7272if { (ac_try="$ac_compile"
7273case "(($ac_try" in
7274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7275 *) ac_try_echo=$ac_try;;
7276esac
7277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7278$as_echo "$ac_try_echo") >&5
7279 (eval "$ac_compile") 2>conftest.er1
7280 ac_status=$?
7281 grep -v '^ *+' conftest.er1 >conftest.err
7282 rm -f conftest.er1
7283 cat conftest.err >&5
7284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); } && {
7286 test -z "$ac_c_werror_flag" ||
7287 test ! -s conftest.err
7288 } && test -s conftest.$ac_objext; then
7289 ac_cv_have_decl_sys_siglist=yes
7290else
7291 $as_echo "$as_me: failed program was:" >&5
7292sed 's/^/| /' conftest.$ac_ext >&5
7293
7294 ac_cv_have_decl_sys_siglist=no
7295fi
7296
7297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6210fi 7298fi
7299{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7300$as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7301if test $ac_cv_have_decl_sys_siglist = yes; then
6211 7302
6212cat >>confdefs.h <<_ACEOF 7303cat >>confdefs.h <<_ACEOF
6213#define HAVE_DECL_SYS_SIGLIST $ac_have_decl 7304#define HAVE_DECL_SYS_SIGLIST 1
7305_ACEOF
7306
7307
7308else
7309 cat >>confdefs.h <<_ACEOF
7310#define HAVE_DECL_SYS_SIGLIST 0
6214_ACEOF 7311_ACEOF
6215 7312
7313
7314fi
7315
7316
6216if test $ac_cv_have_decl_sys_siglist != yes; then 7317if test $ac_cv_have_decl_sys_siglist != yes; then
6217 # For Tru64, at least: 7318 # For Tru64, at least:
6218 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default" 7319 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6219if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then : 7320$as_echo_n "checking whether __sys_siglist is declared... " >&6; }
6220 ac_have_decl=1 7321if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7322 $as_echo_n "(cached) " >&6
7323else
7324 cat >conftest.$ac_ext <<_ACEOF
7325/* confdefs.h. */
7326_ACEOF
7327cat confdefs.h >>conftest.$ac_ext
7328cat >>conftest.$ac_ext <<_ACEOF
7329/* end confdefs.h. */
7330$ac_includes_default
7331int
7332main ()
7333{
7334#ifndef __sys_siglist
7335 (void) __sys_siglist;
7336#endif
7337
7338 ;
7339 return 0;
7340}
7341_ACEOF
7342rm -f conftest.$ac_objext
7343if { (ac_try="$ac_compile"
7344case "(($ac_try" in
7345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7346 *) ac_try_echo=$ac_try;;
7347esac
7348eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7349$as_echo "$ac_try_echo") >&5
7350 (eval "$ac_compile") 2>conftest.er1
7351 ac_status=$?
7352 grep -v '^ *+' conftest.er1 >conftest.err
7353 rm -f conftest.er1
7354 cat conftest.err >&5
7355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } && {
7357 test -z "$ac_c_werror_flag" ||
7358 test ! -s conftest.err
7359 } && test -s conftest.$ac_objext; then
7360 ac_cv_have_decl___sys_siglist=yes
6221else 7361else
6222 ac_have_decl=0 7362 $as_echo "$as_me: failed program was:" >&5
7363sed 's/^/| /' conftest.$ac_ext >&5
7364
7365 ac_cv_have_decl___sys_siglist=no
7366fi
7367
7368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6223fi 7369fi
7370{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7371$as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7372if test $ac_cv_have_decl___sys_siglist = yes; then
6224 7373
6225cat >>confdefs.h <<_ACEOF 7374cat >>confdefs.h <<_ACEOF
6226#define HAVE_DECL___SYS_SIGLIST $ac_have_decl 7375#define HAVE_DECL___SYS_SIGLIST 1
7376_ACEOF
7377
7378
7379else
7380 cat >>confdefs.h <<_ACEOF
7381#define HAVE_DECL___SYS_SIGLIST 0
6227_ACEOF 7382_ACEOF
6228 7383
7384
7385fi
7386
7387
6229 if test $ac_cv_have_decl___sys_siglist = yes; then 7388 if test $ac_cv_have_decl___sys_siglist = yes; then
6230 7389
6231$as_echo "#define sys_siglist __sys_siglist" >>confdefs.h 7390cat >>confdefs.h <<\_ACEOF
7391#define sys_siglist __sys_siglist
7392_ACEOF
6232 7393
6233 fi 7394 fi
6234fi 7395fi
6235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 7396{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6236$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 7397$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6237if test "${ac_cv_header_sys_wait_h+set}" = set; then : 7398if test "${ac_cv_header_sys_wait_h+set}" = set; then
6238 $as_echo_n "(cached) " >&6 7399 $as_echo_n "(cached) " >&6
6239else 7400else
6240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7401 cat >conftest.$ac_ext <<_ACEOF
7402/* confdefs.h. */
7403_ACEOF
7404cat confdefs.h >>conftest.$ac_ext
7405cat >>conftest.$ac_ext <<_ACEOF
6241/* end confdefs.h. */ 7406/* end confdefs.h. */
6242#include <sys/types.h> 7407#include <sys/types.h>
6243#include <sys/wait.h> 7408#include <sys/wait.h>
@@ -6258,28 +7423,55 @@ main ()
6258 return 0; 7423 return 0;
6259} 7424}
6260_ACEOF 7425_ACEOF
6261if ac_fn_c_try_compile "$LINENO"; then : 7426rm -f conftest.$ac_objext
7427if { (ac_try="$ac_compile"
7428case "(($ac_try" in
7429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7430 *) ac_try_echo=$ac_try;;
7431esac
7432eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7433$as_echo "$ac_try_echo") >&5
7434 (eval "$ac_compile") 2>conftest.er1
7435 ac_status=$?
7436 grep -v '^ *+' conftest.er1 >conftest.err
7437 rm -f conftest.er1
7438 cat conftest.err >&5
7439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); } && {
7441 test -z "$ac_c_werror_flag" ||
7442 test ! -s conftest.err
7443 } && test -s conftest.$ac_objext; then
6262 ac_cv_header_sys_wait_h=yes 7444 ac_cv_header_sys_wait_h=yes
6263else 7445else
6264 ac_cv_header_sys_wait_h=no 7446 $as_echo "$as_me: failed program was:" >&5
7447sed 's/^/| /' conftest.$ac_ext >&5
7448
7449 ac_cv_header_sys_wait_h=no
6265fi 7450fi
7451
6266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6267fi 7453fi
6268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 7454{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6269$as_echo "$ac_cv_header_sys_wait_h" >&6; } 7455$as_echo "$ac_cv_header_sys_wait_h" >&6; }
6270if test $ac_cv_header_sys_wait_h = yes; then 7456if test $ac_cv_header_sys_wait_h = yes; then
6271 7457
6272$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 7458cat >>confdefs.h <<\_ACEOF
7459#define HAVE_SYS_WAIT_H 1
7460_ACEOF
6273 7461
6274fi 7462fi
6275 7463
6276 7464
6277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5 7465{ $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6278$as_echo_n "checking for struct utimbuf... " >&6; } 7466$as_echo_n "checking for struct utimbuf... " >&6; }
6279if test "${emacs_cv_struct_utimbuf+set}" = set; then : 7467if test "${emacs_cv_struct_utimbuf+set}" = set; then
6280 $as_echo_n "(cached) " >&6 7468 $as_echo_n "(cached) " >&6
6281else 7469else
6282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7470 cat >conftest.$ac_ext <<_ACEOF
7471/* confdefs.h. */
7472_ACEOF
7473cat confdefs.h >>conftest.$ac_ext
7474cat >>conftest.$ac_ext <<_ACEOF
6283/* end confdefs.h. */ 7475/* end confdefs.h. */
6284#ifdef TIME_WITH_SYS_TIME 7476#ifdef TIME_WITH_SYS_TIME
6285#include <sys/time.h> 7477#include <sys/time.h>
@@ -6302,27 +7494,54 @@ static struct utimbuf x; x.actime = x.modtime;
6302 return 0; 7494 return 0;
6303} 7495}
6304_ACEOF 7496_ACEOF
6305if ac_fn_c_try_compile "$LINENO"; then : 7497rm -f conftest.$ac_objext
7498if { (ac_try="$ac_compile"
7499case "(($ac_try" in
7500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7501 *) ac_try_echo=$ac_try;;
7502esac
7503eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7504$as_echo "$ac_try_echo") >&5
7505 (eval "$ac_compile") 2>conftest.er1
7506 ac_status=$?
7507 grep -v '^ *+' conftest.er1 >conftest.err
7508 rm -f conftest.er1
7509 cat conftest.err >&5
7510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); } && {
7512 test -z "$ac_c_werror_flag" ||
7513 test ! -s conftest.err
7514 } && test -s conftest.$ac_objext; then
6306 emacs_cv_struct_utimbuf=yes 7515 emacs_cv_struct_utimbuf=yes
6307else 7516else
6308 emacs_cv_struct_utimbuf=no 7517 $as_echo "$as_me: failed program was:" >&5
7518sed 's/^/| /' conftest.$ac_ext >&5
7519
7520 emacs_cv_struct_utimbuf=no
6309fi 7521fi
7522
6310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6311fi 7524fi
6312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5 7525{ $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6313$as_echo "$emacs_cv_struct_utimbuf" >&6; } 7526$as_echo "$emacs_cv_struct_utimbuf" >&6; }
6314if test $emacs_cv_struct_utimbuf = yes; then 7527if test $emacs_cv_struct_utimbuf = yes; then
6315 7528
6316$as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h 7529cat >>confdefs.h <<\_ACEOF
7530#define HAVE_STRUCT_UTIMBUF 1
7531_ACEOF
6317 7532
6318fi 7533fi
6319 7534
6320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 7535{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6321$as_echo_n "checking return type of signal handlers... " >&6; } 7536$as_echo_n "checking return type of signal handlers... " >&6; }
6322if test "${ac_cv_type_signal+set}" = set; then : 7537if test "${ac_cv_type_signal+set}" = set; then
6323 $as_echo_n "(cached) " >&6 7538 $as_echo_n "(cached) " >&6
6324else 7539else
6325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7540 cat >conftest.$ac_ext <<_ACEOF
7541/* confdefs.h. */
7542_ACEOF
7543cat confdefs.h >>conftest.$ac_ext
7544cat >>conftest.$ac_ext <<_ACEOF
6326/* end confdefs.h. */ 7545/* end confdefs.h. */
6327#include <sys/types.h> 7546#include <sys/types.h>
6328#include <signal.h> 7547#include <signal.h>
@@ -6335,14 +7554,35 @@ return *(signal (0, 0)) (0) == 1;
6335 return 0; 7554 return 0;
6336} 7555}
6337_ACEOF 7556_ACEOF
6338if ac_fn_c_try_compile "$LINENO"; then : 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
6339 ac_cv_type_signal=int 7575 ac_cv_type_signal=int
6340else 7576else
6341 ac_cv_type_signal=void 7577 $as_echo "$as_me: failed program was:" >&5
7578sed 's/^/| /' conftest.$ac_ext >&5
7579
7580 ac_cv_type_signal=void
6342fi 7581fi
7582
6343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6344fi 7584fi
6345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 7585{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6346$as_echo "$ac_cv_type_signal" >&6; } 7586$as_echo "$ac_cv_type_signal" >&6; }
6347 7587
6348cat >>confdefs.h <<_ACEOF 7588cat >>confdefs.h <<_ACEOF
@@ -6351,12 +7591,16 @@ _ACEOF
6351 7591
6352 7592
6353 7593
6354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5 7594{ $as_echo "$as_me:$LINENO: checking for speed_t" >&5
6355$as_echo_n "checking for speed_t... " >&6; } 7595$as_echo_n "checking for speed_t... " >&6; }
6356if test "${emacs_cv_speed_t+set}" = set; then : 7596if test "${emacs_cv_speed_t+set}" = set; then
6357 $as_echo_n "(cached) " >&6 7597 $as_echo_n "(cached) " >&6
6358else 7598else
6359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7599 cat >conftest.$ac_ext <<_ACEOF
7600/* confdefs.h. */
7601_ACEOF
7602cat confdefs.h >>conftest.$ac_ext
7603cat >>conftest.$ac_ext <<_ACEOF
6360/* end confdefs.h. */ 7604/* end confdefs.h. */
6361#include <termios.h> 7605#include <termios.h>
6362int 7606int
@@ -6367,27 +7611,54 @@ speed_t x = 1;
6367 return 0; 7611 return 0;
6368} 7612}
6369_ACEOF 7613_ACEOF
6370if ac_fn_c_try_compile "$LINENO"; then : 7614rm -f conftest.$ac_objext
7615if { (ac_try="$ac_compile"
7616case "(($ac_try" in
7617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7618 *) ac_try_echo=$ac_try;;
7619esac
7620eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7621$as_echo "$ac_try_echo") >&5
7622 (eval "$ac_compile") 2>conftest.er1
7623 ac_status=$?
7624 grep -v '^ *+' conftest.er1 >conftest.err
7625 rm -f conftest.er1
7626 cat conftest.err >&5
7627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } && {
7629 test -z "$ac_c_werror_flag" ||
7630 test ! -s conftest.err
7631 } && test -s conftest.$ac_objext; then
6371 emacs_cv_speed_t=yes 7632 emacs_cv_speed_t=yes
6372else 7633else
6373 emacs_cv_speed_t=no 7634 $as_echo "$as_me: failed program was:" >&5
7635sed 's/^/| /' conftest.$ac_ext >&5
7636
7637 emacs_cv_speed_t=no
6374fi 7638fi
7639
6375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6376fi 7641fi
6377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5 7642{ $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6378$as_echo "$emacs_cv_speed_t" >&6; } 7643$as_echo "$emacs_cv_speed_t" >&6; }
6379if test $emacs_cv_speed_t = yes; then 7644if test $emacs_cv_speed_t = yes; then
6380 7645
6381$as_echo "#define HAVE_SPEED_T 1" >>confdefs.h 7646cat >>confdefs.h <<\_ACEOF
7647#define HAVE_SPEED_T 1
7648_ACEOF
6382 7649
6383fi 7650fi
6384 7651
6385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 7652{ $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
6386$as_echo_n "checking for struct timeval... " >&6; } 7653$as_echo_n "checking for struct timeval... " >&6; }
6387if test "${emacs_cv_struct_timeval+set}" = set; then : 7654if test "${emacs_cv_struct_timeval+set}" = set; then
6388 $as_echo_n "(cached) " >&6 7655 $as_echo_n "(cached) " >&6
6389else 7656else
6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7657 cat >conftest.$ac_ext <<_ACEOF
7658/* confdefs.h. */
7659_ACEOF
7660cat confdefs.h >>conftest.$ac_ext
7661cat >>conftest.$ac_ext <<_ACEOF
6391/* end confdefs.h. */ 7662/* end confdefs.h. */
6392#ifdef TIME_WITH_SYS_TIME 7663#ifdef TIME_WITH_SYS_TIME
6393#include <sys/time.h> 7664#include <sys/time.h>
@@ -6407,28 +7678,55 @@ static struct timeval x; x.tv_sec = x.tv_usec;
6407 return 0; 7678 return 0;
6408} 7679}
6409_ACEOF 7680_ACEOF
6410if ac_fn_c_try_compile "$LINENO"; then : 7681rm -f conftest.$ac_objext
7682if { (ac_try="$ac_compile"
7683case "(($ac_try" in
7684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7685 *) ac_try_echo=$ac_try;;
7686esac
7687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7688$as_echo "$ac_try_echo") >&5
7689 (eval "$ac_compile") 2>conftest.er1
7690 ac_status=$?
7691 grep -v '^ *+' conftest.er1 >conftest.err
7692 rm -f conftest.er1
7693 cat conftest.err >&5
7694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); } && {
7696 test -z "$ac_c_werror_flag" ||
7697 test ! -s conftest.err
7698 } && test -s conftest.$ac_objext; then
6411 emacs_cv_struct_timeval=yes 7699 emacs_cv_struct_timeval=yes
6412else 7700else
6413 emacs_cv_struct_timeval=no 7701 $as_echo "$as_me: failed program was:" >&5
7702sed 's/^/| /' conftest.$ac_ext >&5
7703
7704 emacs_cv_struct_timeval=no
6414fi 7705fi
7706
6415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6416fi 7708fi
6417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5 7709{ $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6418$as_echo "$emacs_cv_struct_timeval" >&6; } 7710$as_echo "$emacs_cv_struct_timeval" >&6; }
6419HAVE_TIMEVAL=$emacs_cv_struct_timeval 7711HAVE_TIMEVAL=$emacs_cv_struct_timeval
6420if test $emacs_cv_struct_timeval = yes; then 7712if test $emacs_cv_struct_timeval = yes; then
6421 7713
6422$as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h 7714cat >>confdefs.h <<\_ACEOF
7715#define HAVE_TIMEVAL 1
7716_ACEOF
6423 7717
6424fi 7718fi
6425 7719
6426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5 7720{ $as_echo "$as_me:$LINENO: checking for struct exception" >&5
6427$as_echo_n "checking for struct exception... " >&6; } 7721$as_echo_n "checking for struct exception... " >&6; }
6428if test "${emacs_cv_struct_exception+set}" = set; then : 7722if test "${emacs_cv_struct_exception+set}" = set; then
6429 $as_echo_n "(cached) " >&6 7723 $as_echo_n "(cached) " >&6
6430else 7724else
6431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7725 cat >conftest.$ac_ext <<_ACEOF
7726/* confdefs.h. */
7727_ACEOF
7728cat confdefs.h >>conftest.$ac_ext
7729cat >>conftest.$ac_ext <<_ACEOF
6432/* end confdefs.h. */ 7730/* end confdefs.h. */
6433#include <math.h> 7731#include <math.h>
6434int 7732int
@@ -6439,44 +7737,248 @@ static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6439 return 0; 7737 return 0;
6440} 7738}
6441_ACEOF 7739_ACEOF
6442if ac_fn_c_try_compile "$LINENO"; then : 7740rm -f conftest.$ac_objext
7741if { (ac_try="$ac_compile"
7742case "(($ac_try" in
7743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7744 *) ac_try_echo=$ac_try;;
7745esac
7746eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7747$as_echo "$ac_try_echo") >&5
7748 (eval "$ac_compile") 2>conftest.er1
7749 ac_status=$?
7750 grep -v '^ *+' conftest.er1 >conftest.err
7751 rm -f conftest.er1
7752 cat conftest.err >&5
7753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); } && {
7755 test -z "$ac_c_werror_flag" ||
7756 test ! -s conftest.err
7757 } && test -s conftest.$ac_objext; then
6443 emacs_cv_struct_exception=yes 7758 emacs_cv_struct_exception=yes
6444else 7759else
6445 emacs_cv_struct_exception=no 7760 $as_echo "$as_me: failed program was:" >&5
7761sed 's/^/| /' conftest.$ac_ext >&5
7762
7763 emacs_cv_struct_exception=no
6446fi 7764fi
7765
6447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6448fi 7767fi
6449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5 7768{ $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6450$as_echo "$emacs_cv_struct_exception" >&6; } 7769$as_echo "$emacs_cv_struct_exception" >&6; }
6451HAVE_EXCEPTION=$emacs_cv_struct_exception 7770HAVE_EXCEPTION=$emacs_cv_struct_exception
6452if test $emacs_cv_struct_exception != yes; then 7771if test $emacs_cv_struct_exception != yes; then
6453 7772
6454$as_echo "#define NO_MATHERR 1" >>confdefs.h 7773cat >>confdefs.h <<\_ACEOF
7774#define NO_MATHERR 1
7775_ACEOF
6455 7776
6456fi 7777fi
6457 7778
7779
6458for ac_header in sys/socket.h 7780for ac_header in sys/socket.h
6459do : 7781do
6460 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 7782as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6461if test "x$ac_cv_header_sys_socket_h" = x""yes; then : 7783if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7784 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7785$as_echo_n "checking for $ac_header... " >&6; }
7786if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7787 $as_echo_n "(cached) " >&6
7788fi
7789ac_res=`eval 'as_val=${'$as_ac_Header'}
7790 $as_echo "$as_val"'`
7791 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7792$as_echo "$ac_res" >&6; }
7793else
7794 # Is the header compilable?
7795{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7796$as_echo_n "checking $ac_header usability... " >&6; }
7797cat >conftest.$ac_ext <<_ACEOF
7798/* confdefs.h. */
7799_ACEOF
7800cat confdefs.h >>conftest.$ac_ext
7801cat >>conftest.$ac_ext <<_ACEOF
7802/* end confdefs.h. */
7803$ac_includes_default
7804#include <$ac_header>
7805_ACEOF
7806rm -f conftest.$ac_objext
7807if { (ac_try="$ac_compile"
7808case "(($ac_try" in
7809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7810 *) ac_try_echo=$ac_try;;
7811esac
7812eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7813$as_echo "$ac_try_echo") >&5
7814 (eval "$ac_compile") 2>conftest.er1
7815 ac_status=$?
7816 grep -v '^ *+' conftest.er1 >conftest.err
7817 rm -f conftest.er1
7818 cat conftest.err >&5
7819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); } && {
7821 test -z "$ac_c_werror_flag" ||
7822 test ! -s conftest.err
7823 } && test -s conftest.$ac_objext; then
7824 ac_header_compiler=yes
7825else
7826 $as_echo "$as_me: failed program was:" >&5
7827sed 's/^/| /' conftest.$ac_ext >&5
7828
7829 ac_header_compiler=no
7830fi
7831
7832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7833{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7834$as_echo "$ac_header_compiler" >&6; }
7835
7836# Is the header present?
7837{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7838$as_echo_n "checking $ac_header presence... " >&6; }
7839cat >conftest.$ac_ext <<_ACEOF
7840/* confdefs.h. */
7841_ACEOF
7842cat confdefs.h >>conftest.$ac_ext
7843cat >>conftest.$ac_ext <<_ACEOF
7844/* end confdefs.h. */
7845#include <$ac_header>
7846_ACEOF
7847if { (ac_try="$ac_cpp conftest.$ac_ext"
7848case "(($ac_try" in
7849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7850 *) ac_try_echo=$ac_try;;
7851esac
7852eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7853$as_echo "$ac_try_echo") >&5
7854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7855 ac_status=$?
7856 grep -v '^ *+' conftest.er1 >conftest.err
7857 rm -f conftest.er1
7858 cat conftest.err >&5
7859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } >/dev/null && {
7861 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7862 test ! -s conftest.err
7863 }; then
7864 ac_header_preproc=yes
7865else
7866 $as_echo "$as_me: failed program was:" >&5
7867sed 's/^/| /' conftest.$ac_ext >&5
7868
7869 ac_header_preproc=no
7870fi
7871
7872rm -f conftest.err conftest.$ac_ext
7873{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7874$as_echo "$ac_header_preproc" >&6; }
7875
7876# So? What about this header?
7877case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7878 yes:no: )
7879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7880$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7881 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7882$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7883 ac_header_preproc=yes
7884 ;;
7885 no:yes:* )
7886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7887$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7889$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7891$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7892 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7893$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7895$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7897$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7898
7899 ;;
7900esac
7901{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7902$as_echo_n "checking for $ac_header... " >&6; }
7903if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7904 $as_echo_n "(cached) " >&6
7905else
7906 eval "$as_ac_Header=\$ac_header_preproc"
7907fi
7908ac_res=`eval 'as_val=${'$as_ac_Header'}
7909 $as_echo "$as_val"'`
7910 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7911$as_echo "$ac_res" >&6; }
7912
7913fi
7914if test `eval 'as_val=${'$as_ac_Header'}
7915 $as_echo "$as_val"'` = yes; then
6462 cat >>confdefs.h <<_ACEOF 7916 cat >>confdefs.h <<_ACEOF
6463#define HAVE_SYS_SOCKET_H 1 7917#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6464_ACEOF 7918_ACEOF
6465 7919
6466fi 7920fi
6467 7921
6468done 7922done
6469 7923
7924
6470for ac_header in net/if.h 7925for ac_header in net/if.h
6471do : 7926do
6472 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default 7927as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7928{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7929$as_echo_n "checking for $ac_header... " >&6; }
7930if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7931 $as_echo_n "(cached) " >&6
7932else
7933 cat >conftest.$ac_ext <<_ACEOF
7934/* confdefs.h. */
7935_ACEOF
7936cat confdefs.h >>conftest.$ac_ext
7937cat >>conftest.$ac_ext <<_ACEOF
7938/* end confdefs.h. */
7939$ac_includes_default
6473#if HAVE_SYS_SOCKET_H 7940#if HAVE_SYS_SOCKET_H
6474#include <sys/socket.h> 7941#include <sys/socket.h>
6475#endif 7942#endif
6476" 7943
6477if test "x$ac_cv_header_net_if_h" = x""yes; then : 7944#include <$ac_header>
7945_ACEOF
7946rm -f conftest.$ac_objext
7947if { (ac_try="$ac_compile"
7948case "(($ac_try" in
7949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950 *) ac_try_echo=$ac_try;;
7951esac
7952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7953$as_echo "$ac_try_echo") >&5
7954 (eval "$ac_compile") 2>conftest.er1
7955 ac_status=$?
7956 grep -v '^ *+' conftest.er1 >conftest.err
7957 rm -f conftest.er1
7958 cat conftest.err >&5
7959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); } && {
7961 test -z "$ac_c_werror_flag" ||
7962 test ! -s conftest.err
7963 } && test -s conftest.$ac_objext; then
7964 eval "$as_ac_Header=yes"
7965else
7966 $as_echo "$as_me: failed program was:" >&5
7967sed 's/^/| /' conftest.$ac_ext >&5
7968
7969 eval "$as_ac_Header=no"
7970fi
7971
7972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7973fi
7974ac_res=`eval 'as_val=${'$as_ac_Header'}
7975 $as_echo "$as_val"'`
7976 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7977$as_echo "$ac_res" >&6; }
7978if test `eval 'as_val=${'$as_ac_Header'}
7979 $as_echo "$as_val"'` = yes; then
6478 cat >>confdefs.h <<_ACEOF 7980 cat >>confdefs.h <<_ACEOF
6479#define HAVE_NET_IF_H 1 7981#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6480_ACEOF 7982_ACEOF
6481 7983
6482fi 7984fi
@@ -6484,12 +7986,16 @@ fi
6484done 7986done
6485 7987
6486 7988
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 7989{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6488$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 7990$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6489if test "${ac_cv_struct_tm+set}" = set; then : 7991if test "${ac_cv_struct_tm+set}" = set; then
6490 $as_echo_n "(cached) " >&6 7992 $as_echo_n "(cached) " >&6
6491else 7993else
6492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7994 cat >conftest.$ac_ext <<_ACEOF
7995/* confdefs.h. */
7996_ACEOF
7997cat confdefs.h >>conftest.$ac_ext
7998cat >>conftest.$ac_ext <<_ACEOF
6493/* end confdefs.h. */ 7999/* end confdefs.h. */
6494#include <sys/types.h> 8000#include <sys/types.h>
6495#include <time.h> 8001#include <time.h>
@@ -6504,26 +8010,146 @@ struct tm tm;
6504 return 0; 8010 return 0;
6505} 8011}
6506_ACEOF 8012_ACEOF
6507if ac_fn_c_try_compile "$LINENO"; then : 8013rm -f conftest.$ac_objext
8014if { (ac_try="$ac_compile"
8015case "(($ac_try" in
8016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8017 *) ac_try_echo=$ac_try;;
8018esac
8019eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8020$as_echo "$ac_try_echo") >&5
8021 (eval "$ac_compile") 2>conftest.er1
8022 ac_status=$?
8023 grep -v '^ *+' conftest.er1 >conftest.err
8024 rm -f conftest.er1
8025 cat conftest.err >&5
8026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } && {
8028 test -z "$ac_c_werror_flag" ||
8029 test ! -s conftest.err
8030 } && test -s conftest.$ac_objext; then
6508 ac_cv_struct_tm=time.h 8031 ac_cv_struct_tm=time.h
6509else 8032else
6510 ac_cv_struct_tm=sys/time.h 8033 $as_echo "$as_me: failed program was:" >&5
8034sed 's/^/| /' conftest.$ac_ext >&5
8035
8036 ac_cv_struct_tm=sys/time.h
6511fi 8037fi
8038
6512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6513fi 8040fi
6514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 8041{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6515$as_echo "$ac_cv_struct_tm" >&6; } 8042$as_echo "$ac_cv_struct_tm" >&6; }
6516if test $ac_cv_struct_tm = sys/time.h; then 8043if test $ac_cv_struct_tm = sys/time.h; then
6517 8044
6518$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 8045cat >>confdefs.h <<\_ACEOF
8046#define TM_IN_SYS_TIME 1
8047_ACEOF
6519 8048
6520fi 8049fi
6521 8050
6522ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 8051{ $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8052$as_echo_n "checking for struct tm.tm_zone... " >&6; }
8053if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8054 $as_echo_n "(cached) " >&6
8055else
8056 cat >conftest.$ac_ext <<_ACEOF
8057/* confdefs.h. */
8058_ACEOF
8059cat confdefs.h >>conftest.$ac_ext
8060cat >>conftest.$ac_ext <<_ACEOF
8061/* end confdefs.h. */
8062#include <sys/types.h>
6523#include <$ac_cv_struct_tm> 8063#include <$ac_cv_struct_tm>
6524 8064
6525" 8065
6526if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then : 8066int
8067main ()
8068{
8069static struct tm ac_aggr;
8070if (ac_aggr.tm_zone)
8071return 0;
8072 ;
8073 return 0;
8074}
8075_ACEOF
8076rm -f conftest.$ac_objext
8077if { (ac_try="$ac_compile"
8078case "(($ac_try" in
8079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8080 *) ac_try_echo=$ac_try;;
8081esac
8082eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8083$as_echo "$ac_try_echo") >&5
8084 (eval "$ac_compile") 2>conftest.er1
8085 ac_status=$?
8086 grep -v '^ *+' conftest.er1 >conftest.err
8087 rm -f conftest.er1
8088 cat conftest.err >&5
8089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); } && {
8091 test -z "$ac_c_werror_flag" ||
8092 test ! -s conftest.err
8093 } && test -s conftest.$ac_objext; then
8094 ac_cv_member_struct_tm_tm_zone=yes
8095else
8096 $as_echo "$as_me: failed program was:" >&5
8097sed 's/^/| /' conftest.$ac_ext >&5
8098
8099 cat >conftest.$ac_ext <<_ACEOF
8100/* confdefs.h. */
8101_ACEOF
8102cat confdefs.h >>conftest.$ac_ext
8103cat >>conftest.$ac_ext <<_ACEOF
8104/* end confdefs.h. */
8105#include <sys/types.h>
8106#include <$ac_cv_struct_tm>
8107
8108
8109int
8110main ()
8111{
8112static struct tm ac_aggr;
8113if (sizeof ac_aggr.tm_zone)
8114return 0;
8115 ;
8116 return 0;
8117}
8118_ACEOF
8119rm -f conftest.$ac_objext
8120if { (ac_try="$ac_compile"
8121case "(($ac_try" in
8122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123 *) ac_try_echo=$ac_try;;
8124esac
8125eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8126$as_echo "$ac_try_echo") >&5
8127 (eval "$ac_compile") 2>conftest.er1
8128 ac_status=$?
8129 grep -v '^ *+' conftest.er1 >conftest.err
8130 rm -f conftest.er1
8131 cat conftest.err >&5
8132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); } && {
8134 test -z "$ac_c_werror_flag" ||
8135 test ! -s conftest.err
8136 } && test -s conftest.$ac_objext; then
8137 ac_cv_member_struct_tm_tm_zone=yes
8138else
8139 $as_echo "$as_me: failed program was:" >&5
8140sed 's/^/| /' conftest.$ac_ext >&5
8141
8142 ac_cv_member_struct_tm_tm_zone=no
8143fi
8144
8145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8146fi
8147
8148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8149fi
8150{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8151$as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8152if test $ac_cv_member_struct_tm_tm_zone = yes; then
6527 8153
6528cat >>confdefs.h <<_ACEOF 8154cat >>confdefs.h <<_ACEOF
6529#define HAVE_STRUCT_TM_TM_ZONE 1 8155#define HAVE_STRUCT_TM_TM_ZONE 1
@@ -6534,27 +8160,91 @@ fi
6534 8160
6535if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 8161if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6536 8162
6537$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 8163cat >>confdefs.h <<\_ACEOF
8164#define HAVE_TM_ZONE 1
8165_ACEOF
6538 8166
6539else 8167else
6540 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 8168 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6541" 8169$as_echo_n "checking whether tzname is declared... " >&6; }
6542if test "x$ac_cv_have_decl_tzname" = x""yes; then : 8170if test "${ac_cv_have_decl_tzname+set}" = set; then
6543 ac_have_decl=1 8171 $as_echo_n "(cached) " >&6
6544else 8172else
6545 ac_have_decl=0 8173 cat >conftest.$ac_ext <<_ACEOF
8174/* confdefs.h. */
8175_ACEOF
8176cat confdefs.h >>conftest.$ac_ext
8177cat >>conftest.$ac_ext <<_ACEOF
8178/* end confdefs.h. */
8179#include <time.h>
8180
8181int
8182main ()
8183{
8184#ifndef tzname
8185 (void) tzname;
8186#endif
8187
8188 ;
8189 return 0;
8190}
8191_ACEOF
8192rm -f conftest.$ac_objext
8193if { (ac_try="$ac_compile"
8194case "(($ac_try" in
8195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196 *) ac_try_echo=$ac_try;;
8197esac
8198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8199$as_echo "$ac_try_echo") >&5
8200 (eval "$ac_compile") 2>conftest.er1
8201 ac_status=$?
8202 grep -v '^ *+' conftest.er1 >conftest.err
8203 rm -f conftest.er1
8204 cat conftest.err >&5
8205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } && {
8207 test -z "$ac_c_werror_flag" ||
8208 test ! -s conftest.err
8209 } && test -s conftest.$ac_objext; then
8210 ac_cv_have_decl_tzname=yes
8211else
8212 $as_echo "$as_me: failed program was:" >&5
8213sed 's/^/| /' conftest.$ac_ext >&5
8214
8215 ac_cv_have_decl_tzname=no
6546fi 8216fi
6547 8217
8218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8219fi
8220{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8221$as_echo "$ac_cv_have_decl_tzname" >&6; }
8222if test $ac_cv_have_decl_tzname = yes; then
8223
6548cat >>confdefs.h <<_ACEOF 8224cat >>confdefs.h <<_ACEOF
6549#define HAVE_DECL_TZNAME $ac_have_decl 8225#define HAVE_DECL_TZNAME 1
8226_ACEOF
8227
8228
8229else
8230 cat >>confdefs.h <<_ACEOF
8231#define HAVE_DECL_TZNAME 0
6550_ACEOF 8232_ACEOF
6551 8233
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 8234
8235fi
8236
8237
8238 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
6553$as_echo_n "checking for tzname... " >&6; } 8239$as_echo_n "checking for tzname... " >&6; }
6554if test "${ac_cv_var_tzname+set}" = set; then : 8240if test "${ac_cv_var_tzname+set}" = set; then
6555 $as_echo_n "(cached) " >&6 8241 $as_echo_n "(cached) " >&6
6556else 8242else
6557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8243 cat >conftest.$ac_ext <<_ACEOF
8244/* confdefs.h. */
8245_ACEOF
8246cat confdefs.h >>conftest.$ac_ext
8247cat >>conftest.$ac_ext <<_ACEOF
6558/* end confdefs.h. */ 8248/* end confdefs.h. */
6559#include <time.h> 8249#include <time.h>
6560#if !HAVE_DECL_TZNAME 8250#if !HAVE_DECL_TZNAME
@@ -6569,40 +8259,265 @@ return tzname[0][0];
6569 return 0; 8259 return 0;
6570} 8260}
6571_ACEOF 8261_ACEOF
6572if ac_fn_c_try_link "$LINENO"; then : 8262rm -f conftest.$ac_objext conftest$ac_exeext
8263if { (ac_try="$ac_link"
8264case "(($ac_try" in
8265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266 *) ac_try_echo=$ac_try;;
8267esac
8268eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8269$as_echo "$ac_try_echo") >&5
8270 (eval "$ac_link") 2>conftest.er1
8271 ac_status=$?
8272 grep -v '^ *+' conftest.er1 >conftest.err
8273 rm -f conftest.er1
8274 cat conftest.err >&5
8275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); } && {
8277 test -z "$ac_c_werror_flag" ||
8278 test ! -s conftest.err
8279 } && test -s conftest$ac_exeext && {
8280 test "$cross_compiling" = yes ||
8281 $as_test_x conftest$ac_exeext
8282 }; then
6573 ac_cv_var_tzname=yes 8283 ac_cv_var_tzname=yes
6574else 8284else
6575 ac_cv_var_tzname=no 8285 $as_echo "$as_me: failed program was:" >&5
8286sed 's/^/| /' conftest.$ac_ext >&5
8287
8288 ac_cv_var_tzname=no
6576fi 8289fi
6577rm -f core conftest.err conftest.$ac_objext \ 8290
6578 conftest$ac_exeext conftest.$ac_ext 8291rm -rf conftest.dSYM
8292rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8293 conftest$ac_exeext conftest.$ac_ext
6579fi 8294fi
6580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 8295{ $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6581$as_echo "$ac_cv_var_tzname" >&6; } 8296$as_echo "$ac_cv_var_tzname" >&6; }
6582 if test $ac_cv_var_tzname = yes; then 8297 if test $ac_cv_var_tzname = yes; then
6583 8298
6584$as_echo "#define HAVE_TZNAME 1" >>confdefs.h 8299cat >>confdefs.h <<\_ACEOF
8300#define HAVE_TZNAME 1
8301_ACEOF
6585 8302
6586 fi 8303 fi
6587fi 8304fi
6588 8305
6589ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h> 8306{ $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6590" 8307$as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
6591if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then : 8308if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8309 $as_echo_n "(cached) " >&6
8310else
8311 cat >conftest.$ac_ext <<_ACEOF
8312/* confdefs.h. */
8313_ACEOF
8314cat confdefs.h >>conftest.$ac_ext
8315cat >>conftest.$ac_ext <<_ACEOF
8316/* end confdefs.h. */
8317#include <time.h>
6592 8318
6593$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h 8319int
8320main ()
8321{
8322static struct tm ac_aggr;
8323if (ac_aggr.tm_gmtoff)
8324return 0;
8325 ;
8326 return 0;
8327}
8328_ACEOF
8329rm -f conftest.$ac_objext
8330if { (ac_try="$ac_compile"
8331case "(($ac_try" in
8332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8333 *) ac_try_echo=$ac_try;;
8334esac
8335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8336$as_echo "$ac_try_echo") >&5
8337 (eval "$ac_compile") 2>conftest.er1
8338 ac_status=$?
8339 grep -v '^ *+' conftest.er1 >conftest.err
8340 rm -f conftest.er1
8341 cat conftest.err >&5
8342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); } && {
8344 test -z "$ac_c_werror_flag" ||
8345 test ! -s conftest.err
8346 } && test -s conftest.$ac_objext; then
8347 ac_cv_member_struct_tm_tm_gmtoff=yes
8348else
8349 $as_echo "$as_me: failed program was:" >&5
8350sed 's/^/| /' conftest.$ac_ext >&5
8351
8352 cat >conftest.$ac_ext <<_ACEOF
8353/* confdefs.h. */
8354_ACEOF
8355cat confdefs.h >>conftest.$ac_ext
8356cat >>conftest.$ac_ext <<_ACEOF
8357/* end confdefs.h. */
8358#include <time.h>
8359
8360int
8361main ()
8362{
8363static struct tm ac_aggr;
8364if (sizeof ac_aggr.tm_gmtoff)
8365return 0;
8366 ;
8367 return 0;
8368}
8369_ACEOF
8370rm -f conftest.$ac_objext
8371if { (ac_try="$ac_compile"
8372case "(($ac_try" in
8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374 *) ac_try_echo=$ac_try;;
8375esac
8376eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8377$as_echo "$ac_try_echo") >&5
8378 (eval "$ac_compile") 2>conftest.er1
8379 ac_status=$?
8380 grep -v '^ *+' conftest.er1 >conftest.err
8381 rm -f conftest.er1
8382 cat conftest.err >&5
8383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); } && {
8385 test -z "$ac_c_werror_flag" ||
8386 test ! -s conftest.err
8387 } && test -s conftest.$ac_objext; then
8388 ac_cv_member_struct_tm_tm_gmtoff=yes
8389else
8390 $as_echo "$as_me: failed program was:" >&5
8391sed 's/^/| /' conftest.$ac_ext >&5
8392
8393 ac_cv_member_struct_tm_tm_gmtoff=no
8394fi
8395
8396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8397fi
8398
8399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8400fi
8401{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8402$as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8403if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8404
8405cat >>confdefs.h <<\_ACEOF
8406#define HAVE_TM_GMTOFF 1
8407_ACEOF
6594 8408
6595fi 8409fi
6596 8410
6597ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default 8411{ $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8412$as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8413if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8414 $as_echo_n "(cached) " >&6
8415else
8416 cat >conftest.$ac_ext <<_ACEOF
8417/* confdefs.h. */
8418_ACEOF
8419cat confdefs.h >>conftest.$ac_ext
8420cat >>conftest.$ac_ext <<_ACEOF
8421/* end confdefs.h. */
8422$ac_includes_default
6598#if HAVE_SYS_SOCKET_H 8423#if HAVE_SYS_SOCKET_H
6599#include <sys/socket.h> 8424#include <sys/socket.h>
6600#endif 8425#endif
6601#if HAVE_NET_IF_H 8426#if HAVE_NET_IF_H
6602#include <net/if.h> 8427#include <net/if.h>
6603#endif 8428#endif
6604" 8429
6605if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then : 8430int
8431main ()
8432{
8433static struct ifreq ac_aggr;
8434if (ac_aggr.ifr_flags)
8435return 0;
8436 ;
8437 return 0;
8438}
8439_ACEOF
8440rm -f conftest.$ac_objext
8441if { (ac_try="$ac_compile"
8442case "(($ac_try" in
8443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444 *) ac_try_echo=$ac_try;;
8445esac
8446eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8447$as_echo "$ac_try_echo") >&5
8448 (eval "$ac_compile") 2>conftest.er1
8449 ac_status=$?
8450 grep -v '^ *+' conftest.er1 >conftest.err
8451 rm -f conftest.er1
8452 cat conftest.err >&5
8453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } && {
8455 test -z "$ac_c_werror_flag" ||
8456 test ! -s conftest.err
8457 } && test -s conftest.$ac_objext; then
8458 ac_cv_member_struct_ifreq_ifr_flags=yes
8459else
8460 $as_echo "$as_me: failed program was:" >&5
8461sed 's/^/| /' conftest.$ac_ext >&5
8462
8463 cat >conftest.$ac_ext <<_ACEOF
8464/* confdefs.h. */
8465_ACEOF
8466cat confdefs.h >>conftest.$ac_ext
8467cat >>conftest.$ac_ext <<_ACEOF
8468/* end confdefs.h. */
8469$ac_includes_default
8470#if HAVE_SYS_SOCKET_H
8471#include <sys/socket.h>
8472#endif
8473#if HAVE_NET_IF_H
8474#include <net/if.h>
8475#endif
8476
8477int
8478main ()
8479{
8480static struct ifreq ac_aggr;
8481if (sizeof ac_aggr.ifr_flags)
8482return 0;
8483 ;
8484 return 0;
8485}
8486_ACEOF
8487rm -f conftest.$ac_objext
8488if { (ac_try="$ac_compile"
8489case "(($ac_try" in
8490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8491 *) ac_try_echo=$ac_try;;
8492esac
8493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8494$as_echo "$ac_try_echo") >&5
8495 (eval "$ac_compile") 2>conftest.er1
8496 ac_status=$?
8497 grep -v '^ *+' conftest.er1 >conftest.err
8498 rm -f conftest.er1
8499 cat conftest.err >&5
8500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); } && {
8502 test -z "$ac_c_werror_flag" ||
8503 test ! -s conftest.err
8504 } && test -s conftest.$ac_objext; then
8505 ac_cv_member_struct_ifreq_ifr_flags=yes
8506else
8507 $as_echo "$as_me: failed program was:" >&5
8508sed 's/^/| /' conftest.$ac_ext >&5
8509
8510 ac_cv_member_struct_ifreq_ifr_flags=no
8511fi
8512
8513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8514fi
8515
8516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8517fi
8518{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8519$as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8520if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
6606 8521
6607cat >>confdefs.h <<_ACEOF 8522cat >>confdefs.h <<_ACEOF
6608#define HAVE_STRUCT_IFREQ_IFR_FLAGS 1 8523#define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
@@ -6610,15 +8525,116 @@ _ACEOF
6610 8525
6611 8526
6612fi 8527fi
6613ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default 8528{ $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8529$as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8530if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8531 $as_echo_n "(cached) " >&6
8532else
8533 cat >conftest.$ac_ext <<_ACEOF
8534/* confdefs.h. */
8535_ACEOF
8536cat confdefs.h >>conftest.$ac_ext
8537cat >>conftest.$ac_ext <<_ACEOF
8538/* end confdefs.h. */
8539$ac_includes_default
6614#if HAVE_SYS_SOCKET_H 8540#if HAVE_SYS_SOCKET_H
6615#include <sys/socket.h> 8541#include <sys/socket.h>
6616#endif 8542#endif
6617#if HAVE_NET_IF_H 8543#if HAVE_NET_IF_H
6618#include <net/if.h> 8544#include <net/if.h>
6619#endif 8545#endif
6620" 8546
6621if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then : 8547int
8548main ()
8549{
8550static struct ifreq ac_aggr;
8551if (ac_aggr.ifr_hwaddr)
8552return 0;
8553 ;
8554 return 0;
8555}
8556_ACEOF
8557rm -f conftest.$ac_objext
8558if { (ac_try="$ac_compile"
8559case "(($ac_try" in
8560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8561 *) ac_try_echo=$ac_try;;
8562esac
8563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8564$as_echo "$ac_try_echo") >&5
8565 (eval "$ac_compile") 2>conftest.er1
8566 ac_status=$?
8567 grep -v '^ *+' conftest.er1 >conftest.err
8568 rm -f conftest.er1
8569 cat conftest.err >&5
8570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); } && {
8572 test -z "$ac_c_werror_flag" ||
8573 test ! -s conftest.err
8574 } && test -s conftest.$ac_objext; then
8575 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8576else
8577 $as_echo "$as_me: failed program was:" >&5
8578sed 's/^/| /' conftest.$ac_ext >&5
8579
8580 cat >conftest.$ac_ext <<_ACEOF
8581/* confdefs.h. */
8582_ACEOF
8583cat confdefs.h >>conftest.$ac_ext
8584cat >>conftest.$ac_ext <<_ACEOF
8585/* end confdefs.h. */
8586$ac_includes_default
8587#if HAVE_SYS_SOCKET_H
8588#include <sys/socket.h>
8589#endif
8590#if HAVE_NET_IF_H
8591#include <net/if.h>
8592#endif
8593
8594int
8595main ()
8596{
8597static struct ifreq ac_aggr;
8598if (sizeof ac_aggr.ifr_hwaddr)
8599return 0;
8600 ;
8601 return 0;
8602}
8603_ACEOF
8604rm -f conftest.$ac_objext
8605if { (ac_try="$ac_compile"
8606case "(($ac_try" in
8607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8608 *) ac_try_echo=$ac_try;;
8609esac
8610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8611$as_echo "$ac_try_echo") >&5
8612 (eval "$ac_compile") 2>conftest.er1
8613 ac_status=$?
8614 grep -v '^ *+' conftest.er1 >conftest.err
8615 rm -f conftest.er1
8616 cat conftest.err >&5
8617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } && {
8619 test -z "$ac_c_werror_flag" ||
8620 test ! -s conftest.err
8621 } && test -s conftest.$ac_objext; then
8622 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8623else
8624 $as_echo "$as_me: failed program was:" >&5
8625sed 's/^/| /' conftest.$ac_ext >&5
8626
8627 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8628fi
8629
8630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8631fi
8632
8633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8634fi
8635{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8636$as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8637if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
6622 8638
6623cat >>confdefs.h <<_ACEOF 8639cat >>confdefs.h <<_ACEOF
6624#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 8640#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
@@ -6626,15 +8642,116 @@ _ACEOF
6626 8642
6627 8643
6628fi 8644fi
6629ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default 8645{ $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8646$as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8647if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8648 $as_echo_n "(cached) " >&6
8649else
8650 cat >conftest.$ac_ext <<_ACEOF
8651/* confdefs.h. */
8652_ACEOF
8653cat confdefs.h >>conftest.$ac_ext
8654cat >>conftest.$ac_ext <<_ACEOF
8655/* end confdefs.h. */
8656$ac_includes_default
8657#if HAVE_SYS_SOCKET_H
8658#include <sys/socket.h>
8659#endif
8660#if HAVE_NET_IF_H
8661#include <net/if.h>
8662#endif
8663
8664int
8665main ()
8666{
8667static struct ifreq ac_aggr;
8668if (ac_aggr.ifr_netmask)
8669return 0;
8670 ;
8671 return 0;
8672}
8673_ACEOF
8674rm -f conftest.$ac_objext
8675if { (ac_try="$ac_compile"
8676case "(($ac_try" in
8677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8678 *) ac_try_echo=$ac_try;;
8679esac
8680eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8681$as_echo "$ac_try_echo") >&5
8682 (eval "$ac_compile") 2>conftest.er1
8683 ac_status=$?
8684 grep -v '^ *+' conftest.er1 >conftest.err
8685 rm -f conftest.er1
8686 cat conftest.err >&5
8687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); } && {
8689 test -z "$ac_c_werror_flag" ||
8690 test ! -s conftest.err
8691 } && test -s conftest.$ac_objext; then
8692 ac_cv_member_struct_ifreq_ifr_netmask=yes
8693else
8694 $as_echo "$as_me: failed program was:" >&5
8695sed 's/^/| /' conftest.$ac_ext >&5
8696
8697 cat >conftest.$ac_ext <<_ACEOF
8698/* confdefs.h. */
8699_ACEOF
8700cat confdefs.h >>conftest.$ac_ext
8701cat >>conftest.$ac_ext <<_ACEOF
8702/* end confdefs.h. */
8703$ac_includes_default
6630#if HAVE_SYS_SOCKET_H 8704#if HAVE_SYS_SOCKET_H
6631#include <sys/socket.h> 8705#include <sys/socket.h>
6632#endif 8706#endif
6633#if HAVE_NET_IF_H 8707#if HAVE_NET_IF_H
6634#include <net/if.h> 8708#include <net/if.h>
6635#endif 8709#endif
6636" 8710
6637if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then : 8711int
8712main ()
8713{
8714static struct ifreq ac_aggr;
8715if (sizeof ac_aggr.ifr_netmask)
8716return 0;
8717 ;
8718 return 0;
8719}
8720_ACEOF
8721rm -f conftest.$ac_objext
8722if { (ac_try="$ac_compile"
8723case "(($ac_try" in
8724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8725 *) ac_try_echo=$ac_try;;
8726esac
8727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8728$as_echo "$ac_try_echo") >&5
8729 (eval "$ac_compile") 2>conftest.er1
8730 ac_status=$?
8731 grep -v '^ *+' conftest.er1 >conftest.err
8732 rm -f conftest.er1
8733 cat conftest.err >&5
8734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } && {
8736 test -z "$ac_c_werror_flag" ||
8737 test ! -s conftest.err
8738 } && test -s conftest.$ac_objext; then
8739 ac_cv_member_struct_ifreq_ifr_netmask=yes
8740else
8741 $as_echo "$as_me: failed program was:" >&5
8742sed 's/^/| /' conftest.$ac_ext >&5
8743
8744 ac_cv_member_struct_ifreq_ifr_netmask=no
8745fi
8746
8747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8748fi
8749
8750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8751fi
8752{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8753$as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8754if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
6638 8755
6639cat >>confdefs.h <<_ACEOF 8756cat >>confdefs.h <<_ACEOF
6640#define HAVE_STRUCT_IFREQ_IFR_NETMASK 1 8757#define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
@@ -6642,15 +8759,116 @@ _ACEOF
6642 8759
6643 8760
6644fi 8761fi
6645ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default 8762{ $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8763$as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8764if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8765 $as_echo_n "(cached) " >&6
8766else
8767 cat >conftest.$ac_ext <<_ACEOF
8768/* confdefs.h. */
8769_ACEOF
8770cat confdefs.h >>conftest.$ac_ext
8771cat >>conftest.$ac_ext <<_ACEOF
8772/* end confdefs.h. */
8773$ac_includes_default
6646#if HAVE_SYS_SOCKET_H 8774#if HAVE_SYS_SOCKET_H
6647#include <sys/socket.h> 8775#include <sys/socket.h>
6648#endif 8776#endif
6649#if HAVE_NET_IF_H 8777#if HAVE_NET_IF_H
6650#include <net/if.h> 8778#include <net/if.h>
6651#endif 8779#endif
6652" 8780
6653if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then : 8781int
8782main ()
8783{
8784static struct ifreq ac_aggr;
8785if (ac_aggr.ifr_broadaddr)
8786return 0;
8787 ;
8788 return 0;
8789}
8790_ACEOF
8791rm -f conftest.$ac_objext
8792if { (ac_try="$ac_compile"
8793case "(($ac_try" in
8794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8795 *) ac_try_echo=$ac_try;;
8796esac
8797eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8798$as_echo "$ac_try_echo") >&5
8799 (eval "$ac_compile") 2>conftest.er1
8800 ac_status=$?
8801 grep -v '^ *+' conftest.er1 >conftest.err
8802 rm -f conftest.er1
8803 cat conftest.err >&5
8804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } && {
8806 test -z "$ac_c_werror_flag" ||
8807 test ! -s conftest.err
8808 } && test -s conftest.$ac_objext; then
8809 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8810else
8811 $as_echo "$as_me: failed program was:" >&5
8812sed 's/^/| /' conftest.$ac_ext >&5
8813
8814 cat >conftest.$ac_ext <<_ACEOF
8815/* confdefs.h. */
8816_ACEOF
8817cat confdefs.h >>conftest.$ac_ext
8818cat >>conftest.$ac_ext <<_ACEOF
8819/* end confdefs.h. */
8820$ac_includes_default
8821#if HAVE_SYS_SOCKET_H
8822#include <sys/socket.h>
8823#endif
8824#if HAVE_NET_IF_H
8825#include <net/if.h>
8826#endif
8827
8828int
8829main ()
8830{
8831static struct ifreq ac_aggr;
8832if (sizeof ac_aggr.ifr_broadaddr)
8833return 0;
8834 ;
8835 return 0;
8836}
8837_ACEOF
8838rm -f conftest.$ac_objext
8839if { (ac_try="$ac_compile"
8840case "(($ac_try" in
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8843esac
8844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8845$as_echo "$ac_try_echo") >&5
8846 (eval "$ac_compile") 2>conftest.er1
8847 ac_status=$?
8848 grep -v '^ *+' conftest.er1 >conftest.err
8849 rm -f conftest.er1
8850 cat conftest.err >&5
8851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); } && {
8853 test -z "$ac_c_werror_flag" ||
8854 test ! -s conftest.err
8855 } && test -s conftest.$ac_objext; then
8856 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8857else
8858 $as_echo "$as_me: failed program was:" >&5
8859sed 's/^/| /' conftest.$ac_ext >&5
8860
8861 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8862fi
8863
8864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8865fi
8866
8867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8868fi
8869{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8870$as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8871if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
6654 8872
6655cat >>confdefs.h <<_ACEOF 8873cat >>confdefs.h <<_ACEOF
6656#define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1 8874#define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
@@ -6658,15 +8876,116 @@ _ACEOF
6658 8876
6659 8877
6660fi 8878fi
6661ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default 8879{ $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8880$as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8881if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8882 $as_echo_n "(cached) " >&6
8883else
8884 cat >conftest.$ac_ext <<_ACEOF
8885/* confdefs.h. */
8886_ACEOF
8887cat confdefs.h >>conftest.$ac_ext
8888cat >>conftest.$ac_ext <<_ACEOF
8889/* end confdefs.h. */
8890$ac_includes_default
6662#if HAVE_SYS_SOCKET_H 8891#if HAVE_SYS_SOCKET_H
6663#include <sys/socket.h> 8892#include <sys/socket.h>
6664#endif 8893#endif
6665#if HAVE_NET_IF_H 8894#if HAVE_NET_IF_H
6666#include <net/if.h> 8895#include <net/if.h>
6667#endif 8896#endif
6668" 8897
6669if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then : 8898int
8899main ()
8900{
8901static struct ifreq ac_aggr;
8902if (ac_aggr.ifr_addr)
8903return 0;
8904 ;
8905 return 0;
8906}
8907_ACEOF
8908rm -f conftest.$ac_objext
8909if { (ac_try="$ac_compile"
8910case "(($ac_try" in
8911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8912 *) ac_try_echo=$ac_try;;
8913esac
8914eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8915$as_echo "$ac_try_echo") >&5
8916 (eval "$ac_compile") 2>conftest.er1
8917 ac_status=$?
8918 grep -v '^ *+' conftest.er1 >conftest.err
8919 rm -f conftest.er1
8920 cat conftest.err >&5
8921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } && {
8923 test -z "$ac_c_werror_flag" ||
8924 test ! -s conftest.err
8925 } && test -s conftest.$ac_objext; then
8926 ac_cv_member_struct_ifreq_ifr_addr=yes
8927else
8928 $as_echo "$as_me: failed program was:" >&5
8929sed 's/^/| /' conftest.$ac_ext >&5
8930
8931 cat >conftest.$ac_ext <<_ACEOF
8932/* confdefs.h. */
8933_ACEOF
8934cat confdefs.h >>conftest.$ac_ext
8935cat >>conftest.$ac_ext <<_ACEOF
8936/* end confdefs.h. */
8937$ac_includes_default
8938#if HAVE_SYS_SOCKET_H
8939#include <sys/socket.h>
8940#endif
8941#if HAVE_NET_IF_H
8942#include <net/if.h>
8943#endif
8944
8945int
8946main ()
8947{
8948static struct ifreq ac_aggr;
8949if (sizeof ac_aggr.ifr_addr)
8950return 0;
8951 ;
8952 return 0;
8953}
8954_ACEOF
8955rm -f conftest.$ac_objext
8956if { (ac_try="$ac_compile"
8957case "(($ac_try" in
8958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8959 *) ac_try_echo=$ac_try;;
8960esac
8961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8962$as_echo "$ac_try_echo") >&5
8963 (eval "$ac_compile") 2>conftest.er1
8964 ac_status=$?
8965 grep -v '^ *+' conftest.er1 >conftest.err
8966 rm -f conftest.er1
8967 cat conftest.err >&5
8968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); } && {
8970 test -z "$ac_c_werror_flag" ||
8971 test ! -s conftest.err
8972 } && test -s conftest.$ac_objext; then
8973 ac_cv_member_struct_ifreq_ifr_addr=yes
8974else
8975 $as_echo "$as_me: failed program was:" >&5
8976sed 's/^/| /' conftest.$ac_ext >&5
8977
8978 ac_cv_member_struct_ifreq_ifr_addr=no
8979fi
8980
8981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8982fi
8983
8984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8985fi
8986{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8987$as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8988if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
6670 8989
6671cat >>confdefs.h <<_ACEOF 8990cat >>confdefs.h <<_ACEOF
6672#define HAVE_STRUCT_IFREQ_IFR_ADDR 1 8991#define HAVE_STRUCT_IFREQ_IFR_ADDR 1
@@ -6677,28 +8996,36 @@ fi
6677 8996
6678 8997
6679 8998
6680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5 8999{ $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
6681$as_echo_n "checking for function prototypes... " >&6; } 9000$as_echo_n "checking for function prototypes... " >&6; }
6682if test "$ac_cv_prog_cc_c89" != no; then 9001if test "$ac_cv_prog_cc_c89" != no; then
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9002 { $as_echo "$as_me:$LINENO: result: yes" >&5
6684$as_echo "yes" >&6; } 9003$as_echo "yes" >&6; }
6685 9004
6686$as_echo "#define PROTOTYPES 1" >>confdefs.h 9005cat >>confdefs.h <<\_ACEOF
9006#define PROTOTYPES 1
9007_ACEOF
6687 9008
6688 9009
6689$as_echo "#define __PROTOTYPES 1" >>confdefs.h 9010cat >>confdefs.h <<\_ACEOF
9011#define __PROTOTYPES 1
9012_ACEOF
6690 9013
6691else 9014else
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9015 { $as_echo "$as_me:$LINENO: result: no" >&5
6693$as_echo "no" >&6; } 9016$as_echo "no" >&6; }
6694fi 9017fi
6695 9018
6696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 9019{ $as_echo "$as_me:$LINENO: checking for working volatile" >&5
6697$as_echo_n "checking for working volatile... " >&6; } 9020$as_echo_n "checking for working volatile... " >&6; }
6698if test "${ac_cv_c_volatile+set}" = set; then : 9021if test "${ac_cv_c_volatile+set}" = set; then
6699 $as_echo_n "(cached) " >&6 9022 $as_echo_n "(cached) " >&6
6700else 9023else
6701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9024 cat >conftest.$ac_ext <<_ACEOF
9025/* confdefs.h. */
9026_ACEOF
9027cat confdefs.h >>conftest.$ac_ext
9028cat >>conftest.$ac_ext <<_ACEOF
6702/* end confdefs.h. */ 9029/* end confdefs.h. */
6703 9030
6704int 9031int
@@ -6712,27 +9039,54 @@ return !x && !y;
6712 return 0; 9039 return 0;
6713} 9040}
6714_ACEOF 9041_ACEOF
6715if ac_fn_c_try_compile "$LINENO"; then : 9042rm -f conftest.$ac_objext
9043if { (ac_try="$ac_compile"
9044case "(($ac_try" in
9045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9046 *) ac_try_echo=$ac_try;;
9047esac
9048eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9049$as_echo "$ac_try_echo") >&5
9050 (eval "$ac_compile") 2>conftest.er1
9051 ac_status=$?
9052 grep -v '^ *+' conftest.er1 >conftest.err
9053 rm -f conftest.er1
9054 cat conftest.err >&5
9055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); } && {
9057 test -z "$ac_c_werror_flag" ||
9058 test ! -s conftest.err
9059 } && test -s conftest.$ac_objext; then
6716 ac_cv_c_volatile=yes 9060 ac_cv_c_volatile=yes
6717else 9061else
6718 ac_cv_c_volatile=no 9062 $as_echo "$as_me: failed program was:" >&5
9063sed 's/^/| /' conftest.$ac_ext >&5
9064
9065 ac_cv_c_volatile=no
6719fi 9066fi
9067
6720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6721fi 9069fi
6722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 9070{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6723$as_echo "$ac_cv_c_volatile" >&6; } 9071$as_echo "$ac_cv_c_volatile" >&6; }
6724if test $ac_cv_c_volatile = no; then 9072if test $ac_cv_c_volatile = no; then
6725 9073
6726$as_echo "#define volatile /**/" >>confdefs.h 9074cat >>confdefs.h <<\_ACEOF
9075#define volatile /**/
9076_ACEOF
6727 9077
6728fi 9078fi
6729 9079
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 9080{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6731$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 9081$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6732if test "${ac_cv_c_const+set}" = set; then : 9082if test "${ac_cv_c_const+set}" = set; then
6733 $as_echo_n "(cached) " >&6 9083 $as_echo_n "(cached) " >&6
6734else 9084else
6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9085 cat >conftest.$ac_ext <<_ACEOF
9086/* confdefs.h. */
9087_ACEOF
9088cat confdefs.h >>conftest.$ac_ext
9089cat >>conftest.$ac_ext <<_ACEOF
6736/* end confdefs.h. */ 9090/* end confdefs.h. */
6737 9091
6738int 9092int
@@ -6792,27 +9146,54 @@ main ()
6792 return 0; 9146 return 0;
6793} 9147}
6794_ACEOF 9148_ACEOF
6795if ac_fn_c_try_compile "$LINENO"; then : 9149rm -f conftest.$ac_objext
9150if { (ac_try="$ac_compile"
9151case "(($ac_try" in
9152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9153 *) ac_try_echo=$ac_try;;
9154esac
9155eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9156$as_echo "$ac_try_echo") >&5
9157 (eval "$ac_compile") 2>conftest.er1
9158 ac_status=$?
9159 grep -v '^ *+' conftest.er1 >conftest.err
9160 rm -f conftest.er1
9161 cat conftest.err >&5
9162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); } && {
9164 test -z "$ac_c_werror_flag" ||
9165 test ! -s conftest.err
9166 } && test -s conftest.$ac_objext; then
6796 ac_cv_c_const=yes 9167 ac_cv_c_const=yes
6797else 9168else
6798 ac_cv_c_const=no 9169 $as_echo "$as_me: failed program was:" >&5
9170sed 's/^/| /' conftest.$ac_ext >&5
9171
9172 ac_cv_c_const=no
6799fi 9173fi
9174
6800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6801fi 9176fi
6802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 9177{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6803$as_echo "$ac_cv_c_const" >&6; } 9178$as_echo "$ac_cv_c_const" >&6; }
6804if test $ac_cv_c_const = no; then 9179if test $ac_cv_c_const = no; then
6805 9180
6806$as_echo "#define const /**/" >>confdefs.h 9181cat >>confdefs.h <<\_ACEOF
9182#define const /**/
9183_ACEOF
6807 9184
6808fi 9185fi
6809 9186
6810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5 9187{ $as_echo "$as_me:$LINENO: checking for void * support" >&5
6811$as_echo_n "checking for void * support... " >&6; } 9188$as_echo_n "checking for void * support... " >&6; }
6812if test "${emacs_cv_void_star+set}" = set; then : 9189if test "${emacs_cv_void_star+set}" = set; then
6813 $as_echo_n "(cached) " >&6 9190 $as_echo_n "(cached) " >&6
6814else 9191else
6815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9192 cat >conftest.$ac_ext <<_ACEOF
9193/* confdefs.h. */
9194_ACEOF
9195cat confdefs.h >>conftest.$ac_ext
9196cat >>conftest.$ac_ext <<_ACEOF
6816/* end confdefs.h. */ 9197/* end confdefs.h. */
6817 9198
6818int 9199int
@@ -6823,31 +9204,57 @@ void * foo;
6823 return 0; 9204 return 0;
6824} 9205}
6825_ACEOF 9206_ACEOF
6826if ac_fn_c_try_compile "$LINENO"; then : 9207rm -f conftest.$ac_objext
9208if { (ac_try="$ac_compile"
9209case "(($ac_try" in
9210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9211 *) ac_try_echo=$ac_try;;
9212esac
9213eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9214$as_echo "$ac_try_echo") >&5
9215 (eval "$ac_compile") 2>conftest.er1
9216 ac_status=$?
9217 grep -v '^ *+' conftest.er1 >conftest.err
9218 rm -f conftest.er1
9219 cat conftest.err >&5
9220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); } && {
9222 test -z "$ac_c_werror_flag" ||
9223 test ! -s conftest.err
9224 } && test -s conftest.$ac_objext; then
6827 emacs_cv_void_star=yes 9225 emacs_cv_void_star=yes
6828else 9226else
6829 emacs_cv_void_star=no 9227 $as_echo "$as_me: failed program was:" >&5
9228sed 's/^/| /' conftest.$ac_ext >&5
9229
9230 emacs_cv_void_star=no
6830fi 9231fi
9232
6831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6832fi 9234fi
6833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5 9235{ $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6834$as_echo "$emacs_cv_void_star" >&6; } 9236$as_echo "$emacs_cv_void_star" >&6; }
6835if test $emacs_cv_void_star = yes; then 9237if test $emacs_cv_void_star = yes; then
6836 $as_echo "#define POINTER_TYPE void" >>confdefs.h 9238 cat >>confdefs.h <<\_ACEOF
9239#define POINTER_TYPE void
9240_ACEOF
6837 9241
6838else 9242else
6839 $as_echo "#define POINTER_TYPE char" >>confdefs.h 9243 cat >>confdefs.h <<\_ACEOF
9244#define POINTER_TYPE char
9245_ACEOF
6840 9246
6841fi 9247fi
6842 9248
6843 9249
6844 9250
6845 9251
6846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 9252
9253{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6847$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 9254$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6848set x ${MAKE-make} 9255set x ${MAKE-make}
6849ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 9256ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6850if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 9257if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6851 $as_echo_n "(cached) " >&6 9258 $as_echo_n "(cached) " >&6
6852else 9259else
6853 cat >conftest.make <<\_ACEOF 9260 cat >conftest.make <<\_ACEOF
@@ -6865,18 +9272,18 @@ esac
6865rm -f conftest.make 9272rm -f conftest.make
6866fi 9273fi
6867if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 9274if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9275 { $as_echo "$as_me:$LINENO: result: yes" >&5
6869$as_echo "yes" >&6; } 9276$as_echo "yes" >&6; }
6870 SET_MAKE= 9277 SET_MAKE=
6871else 9278else
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9279 { $as_echo "$as_me:$LINENO: result: no" >&5
6873$as_echo "no" >&6; } 9280$as_echo "no" >&6; }
6874 SET_MAKE="MAKE=${MAKE-make}" 9281 SET_MAKE="MAKE=${MAKE-make}"
6875fi 9282fi
6876 9283
6877 9284
6878if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then 9285if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5 9286 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
6880$as_echo_n "checking whether we are using GNU Make... " >&6; } 9287$as_echo_n "checking whether we are using GNU Make... " >&6; }
6881 HAVE_GNU_MAKE=no 9288 HAVE_GNU_MAKE=no
6882 testval=`make --version 2>/dev/null | grep 'GNU Make'` 9289 testval=`make --version 2>/dev/null | grep 'GNU Make'`
@@ -6885,14 +9292,18 @@ $as_echo_n "checking whether we are using GNU Make... " >&6; }
6885 else 9292 else
6886 ac_enable_autodepend=no 9293 ac_enable_autodepend=no
6887 fi 9294 fi
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5 9295 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
6889$as_echo "$HAVE_GNU_MAKE" >&6; } 9296$as_echo "$HAVE_GNU_MAKE" >&6; }
6890 if test $HAVE_GNU_MAKE = yes; then 9297 if test $HAVE_GNU_MAKE = yes; then
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5 9298 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
6892$as_echo_n "checking whether gcc understands -MMD -MF... " >&6; } 9299$as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
6893 SAVE_CFLAGS="$CFLAGS" 9300 SAVE_CFLAGS="$CFLAGS"
6894 CFLAGS="$CFLAGS -MMD -MF deps.d" 9301 CFLAGS="$CFLAGS -MMD -MF deps.d"
6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9302 cat >conftest.$ac_ext <<_ACEOF
9303/* confdefs.h. */
9304_ACEOF
9305cat confdefs.h >>conftest.$ac_ext
9306cat >>conftest.$ac_ext <<_ACEOF
6896/* end confdefs.h. */ 9307/* end confdefs.h. */
6897 9308
6898int 9309int
@@ -6903,28 +9314,51 @@ main ()
6903 return 0; 9314 return 0;
6904} 9315}
6905_ACEOF 9316_ACEOF
6906if ac_fn_c_try_compile "$LINENO"; then : 9317rm -f conftest.$ac_objext
6907 9318if { (ac_try="$ac_compile"
9319case "(($ac_try" in
9320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9321 *) ac_try_echo=$ac_try;;
9322esac
9323eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9324$as_echo "$ac_try_echo") >&5
9325 (eval "$ac_compile") 2>conftest.er1
9326 ac_status=$?
9327 grep -v '^ *+' conftest.er1 >conftest.err
9328 rm -f conftest.er1
9329 cat conftest.err >&5
9330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); } && {
9332 test -z "$ac_c_werror_flag" ||
9333 test ! -s conftest.err
9334 } && test -s conftest.$ac_objext; then
9335 :
6908else 9336else
6909 ac_enable_autodepend=no 9337 $as_echo "$as_me: failed program was:" >&5
9338sed 's/^/| /' conftest.$ac_ext >&5
9339
9340 ac_enable_autodepend=no
6910fi 9341fi
9342
6911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6912 CFLAGS="$SAVE_CFLAGS" 9344 CFLAGS="$SAVE_CFLAGS"
6913 test -f deps.d || ac_enable_autodepend=no 9345 test -f deps.d || ac_enable_autodepend=no
6914 rm -rf deps.d 9346 rm -rf deps.d
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5 9347 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
6916$as_echo "$ac_enable_autodepend" >&6; } 9348$as_echo "$ac_enable_autodepend" >&6; }
6917 fi 9349 fi
6918 if test $ac_enable_autodepend = yes; then 9350 if test $ac_enable_autodepend = yes; then
6919 9351
6920$as_echo "#define AUTO_DEPEND 1" >>confdefs.h 9352cat >>confdefs.h <<\_ACEOF
9353#define AUTO_DEPEND 1
9354_ACEOF
6921 9355
6922 fi 9356 fi
6923fi 9357fi
6924 9358
6925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5 9359{ $as_echo "$as_me:$LINENO: checking for long file names" >&5
6926$as_echo_n "checking for long file names... " >&6; } 9360$as_echo_n "checking for long file names... " >&6; }
6927if test "${ac_cv_sys_long_file_names+set}" = set; then : 9361if test "${ac_cv_sys_long_file_names+set}" = set; then
6928 $as_echo_n "(cached) " >&6 9362 $as_echo_n "(cached) " >&6
6929else 9363else
6930 ac_cv_sys_long_file_names=yes 9364 ac_cv_sys_long_file_names=yes
@@ -6954,23 +9388,25 @@ for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib
6954 test $ac_cv_sys_long_file_names = no && break 9388 test $ac_cv_sys_long_file_names = no && break
6955done 9389done
6956fi 9390fi
6957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5 9391{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6958$as_echo "$ac_cv_sys_long_file_names" >&6; } 9392$as_echo "$ac_cv_sys_long_file_names" >&6; }
6959if test $ac_cv_sys_long_file_names = yes; then 9393if test $ac_cv_sys_long_file_names = yes; then
6960 9394
6961$as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h 9395cat >>confdefs.h <<\_ACEOF
9396#define HAVE_LONG_FILE_NAMES 1
9397_ACEOF
6962 9398
6963fi 9399fi
6964 9400
6965 9401
6966#### Choose a window system. 9402#### Choose a window system.
6967 9403
6968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 9404{ $as_echo "$as_me:$LINENO: checking for X" >&5
6969$as_echo_n "checking for X... " >&6; } 9405$as_echo_n "checking for X... " >&6; }
6970 9406
6971 9407
6972# Check whether --with-x was given. 9408# Check whether --with-x was given.
6973if test "${with_x+set}" = set; then : 9409if test "${with_x+set}" = set; then
6974 withval=$with_x; 9410 withval=$with_x;
6975fi 9411fi
6976 9412
@@ -6980,8 +9416,10 @@ if test "x$with_x" = xno; then
6980 have_x=disabled 9416 have_x=disabled
6981else 9417else
6982 case $x_includes,$x_libraries in #( 9418 case $x_includes,$x_libraries in #(
6983 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #( 9419 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
6984 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : 9420$as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9421 { (exit 1); exit 1; }; };; #(
9422 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6985 $as_echo_n "(cached) " >&6 9423 $as_echo_n "(cached) " >&6
6986else 9424else
6987 # One or both of the vars are not set, and there is no cached value. 9425 # One or both of the vars are not set, and there is no cached value.
@@ -7017,7 +9455,7 @@ _ACEOF
7017 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 9455 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7018 esac 9456 esac
7019 case $ac_im_usrlibdir in 9457 case $ac_im_usrlibdir in
7020 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 9458 /usr/lib | /lib) ;;
7021 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 9459 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7022 esac 9460 esac
7023 fi 9461 fi
@@ -7029,25 +9467,21 @@ fi
7029# Check X11 before X11Rn because it is often a symlink to the current release. 9467# Check X11 before X11Rn because it is often a symlink to the current release.
7030ac_x_header_dirs=' 9468ac_x_header_dirs='
7031/usr/X11/include 9469/usr/X11/include
7032/usr/X11R7/include
7033/usr/X11R6/include 9470/usr/X11R6/include
7034/usr/X11R5/include 9471/usr/X11R5/include
7035/usr/X11R4/include 9472/usr/X11R4/include
7036 9473
7037/usr/include/X11 9474/usr/include/X11
7038/usr/include/X11R7
7039/usr/include/X11R6 9475/usr/include/X11R6
7040/usr/include/X11R5 9476/usr/include/X11R5
7041/usr/include/X11R4 9477/usr/include/X11R4
7042 9478
7043/usr/local/X11/include 9479/usr/local/X11/include
7044/usr/local/X11R7/include
7045/usr/local/X11R6/include 9480/usr/local/X11R6/include
7046/usr/local/X11R5/include 9481/usr/local/X11R5/include
7047/usr/local/X11R4/include 9482/usr/local/X11R4/include
7048 9483
7049/usr/local/include/X11 9484/usr/local/include/X11
7050/usr/local/include/X11R7
7051/usr/local/include/X11R6 9485/usr/local/include/X11R6
7052/usr/local/include/X11R5 9486/usr/local/include/X11R5
7053/usr/local/include/X11R4 9487/usr/local/include/X11R4
@@ -7069,14 +9503,37 @@ ac_x_header_dirs='
7069if test "$ac_x_includes" = no; then 9503if test "$ac_x_includes" = no; then
7070 # Guess where to find include files, by looking for Xlib.h. 9504 # Guess where to find include files, by looking for Xlib.h.
7071 # First, try using that file with no special directory specified. 9505 # First, try using that file with no special directory specified.
7072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9506 cat >conftest.$ac_ext <<_ACEOF
9507/* confdefs.h. */
9508_ACEOF
9509cat confdefs.h >>conftest.$ac_ext
9510cat >>conftest.$ac_ext <<_ACEOF
7073/* end confdefs.h. */ 9511/* end confdefs.h. */
7074#include <X11/Xlib.h> 9512#include <X11/Xlib.h>
7075_ACEOF 9513_ACEOF
7076if ac_fn_c_try_cpp "$LINENO"; then : 9514if { (ac_try="$ac_cpp conftest.$ac_ext"
9515case "(($ac_try" in
9516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9517 *) ac_try_echo=$ac_try;;
9518esac
9519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9520$as_echo "$ac_try_echo") >&5
9521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9522 ac_status=$?
9523 grep -v '^ *+' conftest.er1 >conftest.err
9524 rm -f conftest.er1
9525 cat conftest.err >&5
9526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } >/dev/null && {
9528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9529 test ! -s conftest.err
9530 }; then
7077 # We can compile using X headers with no special include directory. 9531 # We can compile using X headers with no special include directory.
7078ac_x_includes= 9532ac_x_includes=
7079else 9533else
9534 $as_echo "$as_me: failed program was:" >&5
9535sed 's/^/| /' conftest.$ac_ext >&5
9536
7080 for ac_dir in $ac_x_header_dirs; do 9537 for ac_dir in $ac_x_header_dirs; do
7081 if test -r "$ac_dir/X11/Xlib.h"; then 9538 if test -r "$ac_dir/X11/Xlib.h"; then
7082 ac_x_includes=$ac_dir 9539 ac_x_includes=$ac_dir
@@ -7084,6 +9541,7 @@ else
7084 fi 9541 fi
7085done 9542done
7086fi 9543fi
9544
7087rm -f conftest.err conftest.$ac_ext 9545rm -f conftest.err conftest.$ac_ext
7088fi # $ac_x_includes = no 9546fi # $ac_x_includes = no
7089 9547
@@ -7093,7 +9551,11 @@ if test "$ac_x_libraries" = no; then
7093 # Don't add to $LIBS permanently. 9551 # Don't add to $LIBS permanently.
7094 ac_save_LIBS=$LIBS 9552 ac_save_LIBS=$LIBS
7095 LIBS="-lX11 $LIBS" 9553 LIBS="-lX11 $LIBS"
7096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9554 cat >conftest.$ac_ext <<_ACEOF
9555/* confdefs.h. */
9556_ACEOF
9557cat confdefs.h >>conftest.$ac_ext
9558cat >>conftest.$ac_ext <<_ACEOF
7097/* end confdefs.h. */ 9559/* end confdefs.h. */
7098#include <X11/Xlib.h> 9560#include <X11/Xlib.h>
7099int 9561int
@@ -7104,12 +9566,35 @@ XrmInitialize ()
7104 return 0; 9566 return 0;
7105} 9567}
7106_ACEOF 9568_ACEOF
7107if ac_fn_c_try_link "$LINENO"; then : 9569rm -f conftest.$ac_objext conftest$ac_exeext
9570if { (ac_try="$ac_link"
9571case "(($ac_try" in
9572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9573 *) ac_try_echo=$ac_try;;
9574esac
9575eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9576$as_echo "$ac_try_echo") >&5
9577 (eval "$ac_link") 2>conftest.er1
9578 ac_status=$?
9579 grep -v '^ *+' conftest.er1 >conftest.err
9580 rm -f conftest.er1
9581 cat conftest.err >&5
9582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } && {
9584 test -z "$ac_c_werror_flag" ||
9585 test ! -s conftest.err
9586 } && test -s conftest$ac_exeext && {
9587 test "$cross_compiling" = yes ||
9588 $as_test_x conftest$ac_exeext
9589 }; then
7108 LIBS=$ac_save_LIBS 9590 LIBS=$ac_save_LIBS
7109# We can link X programs with no special library path. 9591# We can link X programs with no special library path.
7110ac_x_libraries= 9592ac_x_libraries=
7111else 9593else
7112 LIBS=$ac_save_LIBS 9594 $as_echo "$as_me: failed program was:" >&5
9595sed 's/^/| /' conftest.$ac_ext >&5
9596
9597 LIBS=$ac_save_LIBS
7113for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 9598for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7114do 9599do
7115 # Don't even attempt the hair of trying to link an X program! 9600 # Don't even attempt the hair of trying to link an X program!
@@ -7121,8 +9606,10 @@ do
7121 done 9606 done
7122done 9607done
7123fi 9608fi
7124rm -f core conftest.err conftest.$ac_objext \ 9609
7125 conftest$ac_exeext conftest.$ac_ext 9610rm -rf conftest.dSYM
9611rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9612 conftest$ac_exeext conftest.$ac_ext
7126fi # $ac_x_libraries = no 9613fi # $ac_x_libraries = no
7127 9614
7128case $ac_x_includes,$ac_x_libraries in #( 9615case $ac_x_includes,$ac_x_libraries in #(
@@ -7143,7 +9630,7 @@ fi
7143fi # $with_x != no 9630fi # $with_x != no
7144 9631
7145if test "$have_x" != yes; then 9632if test "$have_x" != yes; then
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 9633 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
7147$as_echo "$have_x" >&6; } 9634$as_echo "$have_x" >&6; }
7148 no_x=yes 9635 no_x=yes
7149else 9636else
@@ -7154,7 +9641,7 @@ else
7154 ac_cv_have_x="have_x=yes\ 9641 ac_cv_have_x="have_x=yes\
7155 ac_x_includes='$x_includes'\ 9642 ac_x_includes='$x_includes'\
7156 ac_x_libraries='$x_libraries'" 9643 ac_x_libraries='$x_libraries'"
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 9644 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7158$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 9645$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7159fi 9646fi
7160 9647
@@ -7250,17 +9737,150 @@ if test "${with_ns}" != no; then
7250 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" 9737 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7251 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}" 9738 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
7252 fi 9739 fi
7253 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default" 9740 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
7254if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then : 9741 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9742$as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9743if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9744 $as_echo_n "(cached) " >&6
9745fi
9746{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9747$as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9748else
9749 # Is the header compilable?
9750{ $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9751$as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9752cat >conftest.$ac_ext <<_ACEOF
9753/* confdefs.h. */
9754_ACEOF
9755cat confdefs.h >>conftest.$ac_ext
9756cat >>conftest.$ac_ext <<_ACEOF
9757/* end confdefs.h. */
9758$ac_includes_default
9759#include <AppKit/AppKit.h>
9760_ACEOF
9761rm -f conftest.$ac_objext
9762if { (ac_try="$ac_compile"
9763case "(($ac_try" in
9764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765 *) ac_try_echo=$ac_try;;
9766esac
9767eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9768$as_echo "$ac_try_echo") >&5
9769 (eval "$ac_compile") 2>conftest.er1
9770 ac_status=$?
9771 grep -v '^ *+' conftest.er1 >conftest.err
9772 rm -f conftest.er1
9773 cat conftest.err >&5
9774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); } && {
9776 test -z "$ac_c_werror_flag" ||
9777 test ! -s conftest.err
9778 } && test -s conftest.$ac_objext; then
9779 ac_header_compiler=yes
9780else
9781 $as_echo "$as_me: failed program was:" >&5
9782sed 's/^/| /' conftest.$ac_ext >&5
9783
9784 ac_header_compiler=no
9785fi
9786
9787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9788{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9789$as_echo "$ac_header_compiler" >&6; }
9790
9791# Is the header present?
9792{ $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9793$as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9794cat >conftest.$ac_ext <<_ACEOF
9795/* confdefs.h. */
9796_ACEOF
9797cat confdefs.h >>conftest.$ac_ext
9798cat >>conftest.$ac_ext <<_ACEOF
9799/* end confdefs.h. */
9800#include <AppKit/AppKit.h>
9801_ACEOF
9802if { (ac_try="$ac_cpp conftest.$ac_ext"
9803case "(($ac_try" in
9804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9805 *) ac_try_echo=$ac_try;;
9806esac
9807eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9808$as_echo "$ac_try_echo") >&5
9809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9810 ac_status=$?
9811 grep -v '^ *+' conftest.er1 >conftest.err
9812 rm -f conftest.er1
9813 cat conftest.err >&5
9814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); } >/dev/null && {
9816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9817 test ! -s conftest.err
9818 }; then
9819 ac_header_preproc=yes
9820else
9821 $as_echo "$as_me: failed program was:" >&5
9822sed 's/^/| /' conftest.$ac_ext >&5
9823
9824 ac_header_preproc=no
9825fi
9826
9827rm -f conftest.err conftest.$ac_ext
9828{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9829$as_echo "$ac_header_preproc" >&6; }
9830
9831# So? What about this header?
9832case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9833 yes:no: )
9834 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9835$as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9836 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9837$as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9838 ac_header_preproc=yes
9839 ;;
9840 no:yes:* )
9841 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9842$as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9843 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9844$as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9845 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9846$as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9847 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9848$as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9849 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9850$as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9851 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9852$as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9853
9854 ;;
9855esac
9856{ $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9857$as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9858if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9859 $as_echo_n "(cached) " >&6
9860else
9861 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9862fi
9863{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9864$as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9865
9866fi
9867if test $ac_cv_header_AppKit_AppKit_h = yes; then
7255 HAVE_NS=yes 9868 HAVE_NS=yes
7256else 9869else
7257 as_fn_error "\`--with-ns' was specified, but the include 9870 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
7258 files are missing or cannot be compiled." "$LINENO" 5 9871 files are missing or cannot be compiled." >&5
9872$as_echo "$as_me: error: \`--with-ns' was specified, but the include
9873 files are missing or cannot be compiled." >&2;}
9874 { (exit 1); exit 1; }; }
7259fi 9875fi
7260 9876
7261 9877
7262 NS_HAVE_NSINTEGER=yes 9878 NS_HAVE_NSINTEGER=yes
7263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9879 cat >conftest.$ac_ext <<_ACEOF
9880/* confdefs.h. */
9881_ACEOF
9882cat confdefs.h >>conftest.$ac_ext
9883cat >>conftest.$ac_ext <<_ACEOF
7264/* end confdefs.h. */ 9884/* end confdefs.h. */
7265#include <Foundation/NSObjCRuntime.h> 9885#include <Foundation/NSObjCRuntime.h>
7266int 9886int
@@ -7271,11 +9891,32 @@ NSInteger i;
7271 return 0; 9891 return 0;
7272} 9892}
7273_ACEOF 9893_ACEOF
7274if ac_fn_c_try_compile "$LINENO"; then : 9894rm -f conftest.$ac_objext
9895if { (ac_try="$ac_compile"
9896case "(($ac_try" in
9897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9898 *) ac_try_echo=$ac_try;;
9899esac
9900eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9901$as_echo "$ac_try_echo") >&5
9902 (eval "$ac_compile") 2>conftest.er1
9903 ac_status=$?
9904 grep -v '^ *+' conftest.er1 >conftest.err
9905 rm -f conftest.er1
9906 cat conftest.err >&5
9907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } && {
9909 test -z "$ac_c_werror_flag" ||
9910 test ! -s conftest.err
9911 } && test -s conftest.$ac_objext; then
7275 ns_have_nsinteger=yes 9912 ns_have_nsinteger=yes
7276else 9913else
7277 ns_have_nsinteger=no 9914 $as_echo "$as_me: failed program was:" >&5
9915sed 's/^/| /' conftest.$ac_ext >&5
9916
9917 ns_have_nsinteger=no
7278fi 9918fi
9919
7279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7280 if test $ns_have_nsinteger = no; then 9921 if test $ns_have_nsinteger = no; then
7281 NS_HAVE_NSINTEGER=no 9922 NS_HAVE_NSINTEGER=no
@@ -7317,9 +9958,9 @@ esac
7317if test "$window_system" = none && test "X$with_x" != "Xno"; then 9958if test "$window_system" = none && test "X$with_x" != "Xno"; then
7318 # Extract the first word of "X", so it can be a program name with args. 9959 # Extract the first word of "X", so it can be a program name with args.
7319set dummy X; ac_word=$2 9960set dummy X; ac_word=$2
7320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9961{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7321$as_echo_n "checking for $ac_word... " >&6; } 9962$as_echo_n "checking for $ac_word... " >&6; }
7322if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then : 9963if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
7323 $as_echo_n "(cached) " >&6 9964 $as_echo_n "(cached) " >&6
7324else 9965else
7325 if test -n "$HAVE_XSERVER"; then 9966 if test -n "$HAVE_XSERVER"; then
@@ -7330,14 +9971,14 @@ for as_dir in $PATH
7330do 9971do
7331 IFS=$as_save_IFS 9972 IFS=$as_save_IFS
7332 test -z "$as_dir" && as_dir=. 9973 test -z "$as_dir" && as_dir=.
7333 for ac_exec_ext in '' $ac_executable_extensions; do 9974 for ac_exec_ext in '' $ac_executable_extensions; do
7334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7335 ac_cv_prog_HAVE_XSERVER="true" 9976 ac_cv_prog_HAVE_XSERVER="true"
7336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9977 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7337 break 2 9978 break 2
7338 fi 9979 fi
7339done 9980done
7340 done 9981done
7341IFS=$as_save_IFS 9982IFS=$as_save_IFS
7342 9983
7343 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false" 9984 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
@@ -7345,10 +9986,10 @@ fi
7345fi 9986fi
7346HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER 9987HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7347if test -n "$HAVE_XSERVER"; then 9988if test -n "$HAVE_XSERVER"; then
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5 9989 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
7349$as_echo "$HAVE_XSERVER" >&6; } 9990$as_echo "$HAVE_XSERVER" >&6; }
7350else 9991else
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9992 { $as_echo "$as_me:$LINENO: result: no" >&5
7352$as_echo "no" >&6; } 9993$as_echo "no" >&6; }
7353fi 9994fi
7354 9995
@@ -7356,14 +9997,23 @@ fi
7356 if test "$HAVE_XSERVER" = true || 9997 if test "$HAVE_XSERVER" = true ||
7357 test -n "$DISPLAY" || 9998 test -n "$DISPLAY" ||
7358 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then 9999 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7359 as_fn_error "You seem to be running X, but no X development libraries 10000 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
10001were found. You should install the relevant development files for X
10002and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10003sure you have development files for image handling, i.e.
10004tiff, gif, jpeg, png and xpm.
10005If you are sure you want Emacs compiled without X window support, pass
10006 --without-x
10007to configure." >&5
10008$as_echo "$as_me: error: You seem to be running X, but no X development libraries
7360were found. You should install the relevant development files for X 10009were found. You should install the relevant development files for X
7361and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make 10010and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7362sure you have development files for image handling, i.e. 10011sure you have development files for image handling, i.e.
7363tiff, gif, jpeg, png and xpm. 10012tiff, gif, jpeg, png and xpm.
7364If you are sure you want Emacs compiled without X window support, pass 10013If you are sure you want Emacs compiled without X window support, pass
7365 --without-x 10014 --without-x
7366to configure." "$LINENO" 5 10015to configure." >&2;}
10016 { (exit 1); exit 1; }; }
7367 fi 10017 fi
7368fi 10018fi
7369 10019
@@ -7377,26 +10027,198 @@ esac
7377# Assume not, until told otherwise. 10027# Assume not, until told otherwise.
7378GNU_MALLOC=yes 10028GNU_MALLOC=yes
7379doug_lea_malloc=yes 10029doug_lea_malloc=yes
7380ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state" 10030{ $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
7381if test "x$ac_cv_func_malloc_get_state" = x""yes; then : 10031$as_echo_n "checking for malloc_get_state... " >&6; }
10032if test "${ac_cv_func_malloc_get_state+set}" = set; then
10033 $as_echo_n "(cached) " >&6
10034else
10035 cat >conftest.$ac_ext <<_ACEOF
10036/* confdefs.h. */
10037_ACEOF
10038cat confdefs.h >>conftest.$ac_ext
10039cat >>conftest.$ac_ext <<_ACEOF
10040/* end confdefs.h. */
10041/* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10043#define malloc_get_state innocuous_malloc_get_state
10044
10045/* System header to define __stub macros and hopefully few prototypes,
10046 which can conflict with char malloc_get_state (); below.
10047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10048 <limits.h> exists even on freestanding compilers. */
10049
10050#ifdef __STDC__
10051# include <limits.h>
10052#else
10053# include <assert.h>
10054#endif
10055
10056#undef malloc_get_state
10057
10058/* Override any GCC internal prototype to avoid an error.
10059 Use char because int might match the return type of a GCC
10060 builtin and then its argument prototype would still apply. */
10061#ifdef __cplusplus
10062extern "C"
10063#endif
10064char malloc_get_state ();
10065/* The GNU C library defines this for functions which it implements
10066 to always fail with ENOSYS. Some functions are actually named
10067 something starting with __ and the normal name is an alias. */
10068#if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10069choke me
10070#endif
10071
10072int
10073main ()
10074{
10075return malloc_get_state ();
10076 ;
10077 return 0;
10078}
10079_ACEOF
10080rm -f conftest.$ac_objext conftest$ac_exeext
10081if { (ac_try="$ac_link"
10082case "(($ac_try" in
10083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084 *) ac_try_echo=$ac_try;;
10085esac
10086eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10087$as_echo "$ac_try_echo") >&5
10088 (eval "$ac_link") 2>conftest.er1
10089 ac_status=$?
10090 grep -v '^ *+' conftest.er1 >conftest.err
10091 rm -f conftest.er1
10092 cat conftest.err >&5
10093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); } && {
10095 test -z "$ac_c_werror_flag" ||
10096 test ! -s conftest.err
10097 } && test -s conftest$ac_exeext && {
10098 test "$cross_compiling" = yes ||
10099 $as_test_x conftest$ac_exeext
10100 }; then
10101 ac_cv_func_malloc_get_state=yes
10102else
10103 $as_echo "$as_me: failed program was:" >&5
10104sed 's/^/| /' conftest.$ac_ext >&5
10105
10106 ac_cv_func_malloc_get_state=no
10107fi
7382 10108
10109rm -rf conftest.dSYM
10110rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10111 conftest$ac_exeext conftest.$ac_ext
10112fi
10113{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10114$as_echo "$ac_cv_func_malloc_get_state" >&6; }
10115if test $ac_cv_func_malloc_get_state = yes; then
10116 :
7383else 10117else
7384 doug_lea_malloc=no 10118 doug_lea_malloc=no
7385fi 10119fi
7386 10120
7387ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state" 10121{ $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
7388if test "x$ac_cv_func_malloc_set_state" = x""yes; then : 10122$as_echo_n "checking for malloc_set_state... " >&6; }
10123if test "${ac_cv_func_malloc_set_state+set}" = set; then
10124 $as_echo_n "(cached) " >&6
10125else
10126 cat >conftest.$ac_ext <<_ACEOF
10127/* confdefs.h. */
10128_ACEOF
10129cat confdefs.h >>conftest.$ac_ext
10130cat >>conftest.$ac_ext <<_ACEOF
10131/* end confdefs.h. */
10132/* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10134#define malloc_set_state innocuous_malloc_set_state
10135
10136/* System header to define __stub macros and hopefully few prototypes,
10137 which can conflict with char malloc_set_state (); below.
10138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10139 <limits.h> exists even on freestanding compilers. */
10140
10141#ifdef __STDC__
10142# include <limits.h>
10143#else
10144# include <assert.h>
10145#endif
10146
10147#undef malloc_set_state
10148
10149/* Override any GCC internal prototype to avoid an error.
10150 Use char because int might match the return type of a GCC
10151 builtin and then its argument prototype would still apply. */
10152#ifdef __cplusplus
10153extern "C"
10154#endif
10155char malloc_set_state ();
10156/* The GNU C library defines this for functions which it implements
10157 to always fail with ENOSYS. Some functions are actually named
10158 something starting with __ and the normal name is an alias. */
10159#if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10160choke me
10161#endif
10162
10163int
10164main ()
10165{
10166return malloc_set_state ();
10167 ;
10168 return 0;
10169}
10170_ACEOF
10171rm -f conftest.$ac_objext conftest$ac_exeext
10172if { (ac_try="$ac_link"
10173case "(($ac_try" in
10174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10175 *) ac_try_echo=$ac_try;;
10176esac
10177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10178$as_echo "$ac_try_echo") >&5
10179 (eval "$ac_link") 2>conftest.er1
10180 ac_status=$?
10181 grep -v '^ *+' conftest.er1 >conftest.err
10182 rm -f conftest.er1
10183 cat conftest.err >&5
10184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); } && {
10186 test -z "$ac_c_werror_flag" ||
10187 test ! -s conftest.err
10188 } && test -s conftest$ac_exeext && {
10189 test "$cross_compiling" = yes ||
10190 $as_test_x conftest$ac_exeext
10191 }; then
10192 ac_cv_func_malloc_set_state=yes
10193else
10194 $as_echo "$as_me: failed program was:" >&5
10195sed 's/^/| /' conftest.$ac_ext >&5
10196
10197 ac_cv_func_malloc_set_state=no
10198fi
7389 10199
10200rm -rf conftest.dSYM
10201rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10202 conftest$ac_exeext conftest.$ac_ext
10203fi
10204{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10205$as_echo "$ac_cv_func_malloc_set_state" >&6; }
10206if test $ac_cv_func_malloc_set_state = yes; then
10207 :
7390else 10208else
7391 doug_lea_malloc=no 10209 doug_lea_malloc=no
7392fi 10210fi
7393 10211
7394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5 10212{ $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7395$as_echo_n "checking whether __after_morecore_hook exists... " >&6; } 10213$as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7396if test "${emacs_cv_var___after_morecore_hook+set}" = set; then : 10214if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7397 $as_echo_n "(cached) " >&6 10215 $as_echo_n "(cached) " >&6
7398else 10216else
7399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10217 cat >conftest.$ac_ext <<_ACEOF
10218/* confdefs.h. */
10219_ACEOF
10220cat confdefs.h >>conftest.$ac_ext
10221cat >>conftest.$ac_ext <<_ACEOF
7400/* end confdefs.h. */ 10222/* end confdefs.h. */
7401extern void (* __after_morecore_hook)(); 10223extern void (* __after_morecore_hook)();
7402int 10224int
@@ -7407,15 +10229,40 @@ __after_morecore_hook = 0
7407 return 0; 10229 return 0;
7408} 10230}
7409_ACEOF 10231_ACEOF
7410if ac_fn_c_try_link "$LINENO"; then : 10232rm -f conftest.$ac_objext conftest$ac_exeext
10233if { (ac_try="$ac_link"
10234case "(($ac_try" in
10235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10236 *) ac_try_echo=$ac_try;;
10237esac
10238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10239$as_echo "$ac_try_echo") >&5
10240 (eval "$ac_link") 2>conftest.er1
10241 ac_status=$?
10242 grep -v '^ *+' conftest.er1 >conftest.err
10243 rm -f conftest.er1
10244 cat conftest.err >&5
10245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); } && {
10247 test -z "$ac_c_werror_flag" ||
10248 test ! -s conftest.err
10249 } && test -s conftest$ac_exeext && {
10250 test "$cross_compiling" = yes ||
10251 $as_test_x conftest$ac_exeext
10252 }; then
7411 emacs_cv_var___after_morecore_hook=yes 10253 emacs_cv_var___after_morecore_hook=yes
7412else 10254else
7413 emacs_cv_var___after_morecore_hook=no 10255 $as_echo "$as_me: failed program was:" >&5
10256sed 's/^/| /' conftest.$ac_ext >&5
10257
10258 emacs_cv_var___after_morecore_hook=no
7414fi 10259fi
7415rm -f core conftest.err conftest.$ac_objext \ 10260
7416 conftest$ac_exeext conftest.$ac_ext 10261rm -rf conftest.dSYM
10262rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10263 conftest$ac_exeext conftest.$ac_ext
7417fi 10264fi
7418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5 10265{ $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7419$as_echo "$emacs_cv_var___after_morecore_hook" >&6; } 10266$as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7420if test $emacs_cv_var___after_morecore_hook = no; then 10267if test $emacs_cv_var___after_morecore_hook = no; then
7421 doug_lea_malloc=no 10268 doug_lea_malloc=no
@@ -7431,7 +10278,9 @@ if test "$doug_lea_malloc" = "yes" ; then
7431 (Using Doug Lea's new malloc from the GNU C Library.)" 10278 (Using Doug Lea's new malloc from the GNU C Library.)"
7432 fi 10279 fi
7433 10280
7434$as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h 10281cat >>confdefs.h <<\_ACEOF
10282#define DOUG_LEA_MALLOC 1
10283_ACEOF
7435 10284
7436fi 10285fi
7437 10286
@@ -7442,14 +10291,142 @@ fi
7442 10291
7443 10292
7444 10293
10294for ac_header in stdlib.h unistd.h
10295do
10296as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10297if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10298 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10299$as_echo_n "checking for $ac_header... " >&6; }
10300if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10301 $as_echo_n "(cached) " >&6
10302fi
10303ac_res=`eval 'as_val=${'$as_ac_Header'}
10304 $as_echo "$as_val"'`
10305 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10306$as_echo "$ac_res" >&6; }
10307else
10308 # Is the header compilable?
10309{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10310$as_echo_n "checking $ac_header usability... " >&6; }
10311cat >conftest.$ac_ext <<_ACEOF
10312/* confdefs.h. */
10313_ACEOF
10314cat confdefs.h >>conftest.$ac_ext
10315cat >>conftest.$ac_ext <<_ACEOF
10316/* end confdefs.h. */
10317$ac_includes_default
10318#include <$ac_header>
10319_ACEOF
10320rm -f conftest.$ac_objext
10321if { (ac_try="$ac_compile"
10322case "(($ac_try" in
10323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10324 *) ac_try_echo=$ac_try;;
10325esac
10326eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10327$as_echo "$ac_try_echo") >&5
10328 (eval "$ac_compile") 2>conftest.er1
10329 ac_status=$?
10330 grep -v '^ *+' conftest.er1 >conftest.err
10331 rm -f conftest.er1
10332 cat conftest.err >&5
10333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); } && {
10335 test -z "$ac_c_werror_flag" ||
10336 test ! -s conftest.err
10337 } && test -s conftest.$ac_objext; then
10338 ac_header_compiler=yes
10339else
10340 $as_echo "$as_me: failed program was:" >&5
10341sed 's/^/| /' conftest.$ac_ext >&5
7445 10342
7446 for ac_header in $ac_header_list 10343 ac_header_compiler=no
7447do : 10344fi
7448 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10345
7449ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 10346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7450" 10347{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7451eval as_val=\$$as_ac_Header 10348$as_echo "$ac_header_compiler" >&6; }
7452 if test "x$as_val" = x""yes; then : 10349
10350# Is the header present?
10351{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10352$as_echo_n "checking $ac_header presence... " >&6; }
10353cat >conftest.$ac_ext <<_ACEOF
10354/* confdefs.h. */
10355_ACEOF
10356cat confdefs.h >>conftest.$ac_ext
10357cat >>conftest.$ac_ext <<_ACEOF
10358/* end confdefs.h. */
10359#include <$ac_header>
10360_ACEOF
10361if { (ac_try="$ac_cpp conftest.$ac_ext"
10362case "(($ac_try" in
10363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10364 *) ac_try_echo=$ac_try;;
10365esac
10366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10367$as_echo "$ac_try_echo") >&5
10368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10369 ac_status=$?
10370 grep -v '^ *+' conftest.er1 >conftest.err
10371 rm -f conftest.er1
10372 cat conftest.err >&5
10373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); } >/dev/null && {
10375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10376 test ! -s conftest.err
10377 }; then
10378 ac_header_preproc=yes
10379else
10380 $as_echo "$as_me: failed program was:" >&5
10381sed 's/^/| /' conftest.$ac_ext >&5
10382
10383 ac_header_preproc=no
10384fi
10385
10386rm -f conftest.err conftest.$ac_ext
10387{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10388$as_echo "$ac_header_preproc" >&6; }
10389
10390# So? What about this header?
10391case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10392 yes:no: )
10393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10394$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10396$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10397 ac_header_preproc=yes
10398 ;;
10399 no:yes:* )
10400 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10401$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10402 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10403$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10405$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10407$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10409$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10411$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10412
10413 ;;
10414esac
10415{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10416$as_echo_n "checking for $ac_header... " >&6; }
10417if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10418 $as_echo_n "(cached) " >&6
10419else
10420 eval "$as_ac_Header=\$ac_header_preproc"
10421fi
10422ac_res=`eval 'as_val=${'$as_ac_Header'}
10423 $as_echo "$as_val"'`
10424 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10425$as_echo "$ac_res" >&6; }
10426
10427fi
10428if test `eval 'as_val=${'$as_ac_Header'}
10429 $as_echo "$as_val"'` = yes; then
7453 cat >>confdefs.h <<_ACEOF 10430 cat >>confdefs.h <<_ACEOF
7454#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10431#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7455_ACEOF 10432_ACEOF
@@ -7459,32 +10436,118 @@ fi
7459done 10436done
7460 10437
7461 10438
10439for ac_func in getpagesize
10440do
10441as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10442{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10443$as_echo_n "checking for $ac_func... " >&6; }
10444if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10445 $as_echo_n "(cached) " >&6
10446else
10447 cat >conftest.$ac_ext <<_ACEOF
10448/* confdefs.h. */
10449_ACEOF
10450cat confdefs.h >>conftest.$ac_ext
10451cat >>conftest.$ac_ext <<_ACEOF
10452/* end confdefs.h. */
10453/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10455#define $ac_func innocuous_$ac_func
10456
10457/* System header to define __stub macros and hopefully few prototypes,
10458 which can conflict with char $ac_func (); below.
10459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10460 <limits.h> exists even on freestanding compilers. */
7462 10461
10462#ifdef __STDC__
10463# include <limits.h>
10464#else
10465# include <assert.h>
10466#endif
7463 10467
10468#undef $ac_func
7464 10469
10470/* Override any GCC internal prototype to avoid an error.
10471 Use char because int might match the return type of a GCC
10472 builtin and then its argument prototype would still apply. */
10473#ifdef __cplusplus
10474extern "C"
10475#endif
10476char $ac_func ();
10477/* The GNU C library defines this for functions which it implements
10478 to always fail with ENOSYS. Some functions are actually named
10479 something starting with __ and the normal name is an alias. */
10480#if defined __stub_$ac_func || defined __stub___$ac_func
10481choke me
10482#endif
7465 10483
10484int
10485main ()
10486{
10487return $ac_func ();
10488 ;
10489 return 0;
10490}
10491_ACEOF
10492rm -f conftest.$ac_objext conftest$ac_exeext
10493if { (ac_try="$ac_link"
10494case "(($ac_try" in
10495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10496 *) ac_try_echo=$ac_try;;
10497esac
10498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10499$as_echo "$ac_try_echo") >&5
10500 (eval "$ac_link") 2>conftest.er1
10501 ac_status=$?
10502 grep -v '^ *+' conftest.er1 >conftest.err
10503 rm -f conftest.er1
10504 cat conftest.err >&5
10505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); } && {
10507 test -z "$ac_c_werror_flag" ||
10508 test ! -s conftest.err
10509 } && test -s conftest$ac_exeext && {
10510 test "$cross_compiling" = yes ||
10511 $as_test_x conftest$ac_exeext
10512 }; then
10513 eval "$as_ac_var=yes"
10514else
10515 $as_echo "$as_me: failed program was:" >&5
10516sed 's/^/| /' conftest.$ac_ext >&5
7466 10517
10518 eval "$as_ac_var=no"
10519fi
7467 10520
7468for ac_func in getpagesize 10521rm -rf conftest.dSYM
7469do : 10522rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7470 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 10523 conftest$ac_exeext conftest.$ac_ext
7471if test "x$ac_cv_func_getpagesize" = x""yes; then : 10524fi
10525ac_res=`eval 'as_val=${'$as_ac_var'}
10526 $as_echo "$as_val"'`
10527 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10528$as_echo "$ac_res" >&6; }
10529if test `eval 'as_val=${'$as_ac_var'}
10530 $as_echo "$as_val"'` = yes; then
7472 cat >>confdefs.h <<_ACEOF 10531 cat >>confdefs.h <<_ACEOF
7473#define HAVE_GETPAGESIZE 1 10532#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7474_ACEOF 10533_ACEOF
7475 10534
7476fi 10535fi
7477done 10536done
7478 10537
7479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 10538{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
7480$as_echo_n "checking for working mmap... " >&6; } 10539$as_echo_n "checking for working mmap... " >&6; }
7481if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : 10540if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7482 $as_echo_n "(cached) " >&6 10541 $as_echo_n "(cached) " >&6
7483else 10542else
7484 if test "$cross_compiling" = yes; then : 10543 if test "$cross_compiling" = yes; then
7485 ac_cv_func_mmap_fixed_mapped=no 10544 ac_cv_func_mmap_fixed_mapped=no
7486else 10545else
7487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10546 cat >conftest.$ac_ext <<_ACEOF
10547/* confdefs.h. */
10548_ACEOF
10549cat confdefs.h >>conftest.$ac_ext
10550cat >>conftest.$ac_ext <<_ACEOF
7488/* end confdefs.h. */ 10551/* end confdefs.h. */
7489$ac_includes_default 10552$ac_includes_default
7490/* malloc might have been renamed as rpl_malloc. */ 10553/* malloc might have been renamed as rpl_malloc. */
@@ -7521,6 +10584,11 @@ char *malloc ();
7521 10584
7522/* This mess was copied from the GNU getpagesize.h. */ 10585/* This mess was copied from the GNU getpagesize.h. */
7523#ifndef HAVE_GETPAGESIZE 10586#ifndef HAVE_GETPAGESIZE
10587/* Assume that all systems that can run configure have sys/param.h. */
10588# ifndef HAVE_SYS_PARAM_H
10589# define HAVE_SYS_PARAM_H 1
10590# endif
10591
7524# ifdef _SC_PAGESIZE 10592# ifdef _SC_PAGESIZE
7525# define getpagesize() sysconf(_SC_PAGESIZE) 10593# define getpagesize() sysconf(_SC_PAGESIZE)
7526# else /* no _SC_PAGESIZE */ 10594# else /* no _SC_PAGESIZE */
@@ -7556,7 +10624,7 @@ main ()
7556{ 10624{
7557 char *data, *data2, *data3; 10625 char *data, *data2, *data3;
7558 int i, pagesize; 10626 int i, pagesize;
7559 int fd, fd2; 10627 int fd;
7560 10628
7561 pagesize = getpagesize (); 10629 pagesize = getpagesize ();
7562 10630
@@ -7569,41 +10637,27 @@ main ()
7569 umask (0); 10637 umask (0);
7570 fd = creat ("conftest.mmap", 0600); 10638 fd = creat ("conftest.mmap", 0600);
7571 if (fd < 0) 10639 if (fd < 0)
7572 return 2; 10640 return 1;
7573 if (write (fd, data, pagesize) != pagesize) 10641 if (write (fd, data, pagesize) != pagesize)
7574 return 3; 10642 return 1;
7575 close (fd); 10643 close (fd);
7576 10644
7577 /* Next, check that the tail of a page is zero-filled. File must have
7578 non-zero length, otherwise we risk SIGBUS for entire page. */
7579 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7580 if (fd2 < 0)
7581 return 4;
7582 data2 = "";
7583 if (write (fd2, data2, 1) != 1)
7584 return 5;
7585 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7586 if (data2 == MAP_FAILED)
7587 return 6;
7588 for (i = 0; i < pagesize; ++i)
7589 if (*(data2 + i))
7590 return 7;
7591 close (fd2);
7592 if (munmap (data2, pagesize))
7593 return 8;
7594
7595 /* Next, try to mmap the file at a fixed address which already has 10645 /* Next, try to mmap the file at a fixed address which already has
7596 something else allocated at it. If we can, also make sure that 10646 something else allocated at it. If we can, also make sure that
7597 we see the same garbage. */ 10647 we see the same garbage. */
7598 fd = open ("conftest.mmap", O_RDWR); 10648 fd = open ("conftest.mmap", O_RDWR);
7599 if (fd < 0) 10649 if (fd < 0)
7600 return 9; 10650 return 1;
10651 data2 = (char *) malloc (2 * pagesize);
10652 if (!data2)
10653 return 1;
10654 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7601 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 10655 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7602 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 10656 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7603 return 10; 10657 return 1;
7604 for (i = 0; i < pagesize; ++i) 10658 for (i = 0; i < pagesize; ++i)
7605 if (*(data + i) != *(data2 + i)) 10659 if (*(data + i) != *(data2 + i))
7606 return 11; 10660 return 1;
7607 10661
7608 /* Finally, make sure that changes to the mapped area do not 10662 /* Finally, make sure that changes to the mapped area do not
7609 percolate back to the file as seen by read(). (This is a bug on 10663 percolate back to the file as seen by read(). (This is a bug on
@@ -7612,34 +10666,63 @@ main ()
7612 *(data2 + i) = *(data2 + i) + 1; 10666 *(data2 + i) = *(data2 + i) + 1;
7613 data3 = (char *) malloc (pagesize); 10667 data3 = (char *) malloc (pagesize);
7614 if (!data3) 10668 if (!data3)
7615 return 12; 10669 return 1;
7616 if (read (fd, data3, pagesize) != pagesize) 10670 if (read (fd, data3, pagesize) != pagesize)
7617 return 13; 10671 return 1;
7618 for (i = 0; i < pagesize; ++i) 10672 for (i = 0; i < pagesize; ++i)
7619 if (*(data + i) != *(data3 + i)) 10673 if (*(data + i) != *(data3 + i))
7620 return 14; 10674 return 1;
7621 close (fd); 10675 close (fd);
7622 return 0; 10676 return 0;
7623} 10677}
7624_ACEOF 10678_ACEOF
7625if ac_fn_c_try_run "$LINENO"; then : 10679rm -f conftest$ac_exeext
10680if { (ac_try="$ac_link"
10681case "(($ac_try" in
10682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10683 *) ac_try_echo=$ac_try;;
10684esac
10685eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10686$as_echo "$ac_try_echo") >&5
10687 (eval "$ac_link") 2>&5
10688 ac_status=$?
10689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10691 { (case "(($ac_try" in
10692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10693 *) ac_try_echo=$ac_try;;
10694esac
10695eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10696$as_echo "$ac_try_echo") >&5
10697 (eval "$ac_try") 2>&5
10698 ac_status=$?
10699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); }; }; then
7626 ac_cv_func_mmap_fixed_mapped=yes 10701 ac_cv_func_mmap_fixed_mapped=yes
7627else 10702else
7628 ac_cv_func_mmap_fixed_mapped=no 10703 $as_echo "$as_me: program exited with status $ac_status" >&5
10704$as_echo "$as_me: failed program was:" >&5
10705sed 's/^/| /' conftest.$ac_ext >&5
10706
10707( exit $ac_status )
10708ac_cv_func_mmap_fixed_mapped=no
7629fi 10709fi
7630rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10710rm -rf conftest.dSYM
7631 conftest.$ac_objext conftest.beam conftest.$ac_ext 10711rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7632fi 10712fi
7633 10713
10714
7634fi 10715fi
7635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 10716{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7636$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 10717$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7637if test $ac_cv_func_mmap_fixed_mapped = yes; then 10718if test $ac_cv_func_mmap_fixed_mapped = yes; then
7638 10719
7639$as_echo "#define HAVE_MMAP 1" >>confdefs.h 10720cat >>confdefs.h <<\_ACEOF
10721#define HAVE_MMAP 1
10722_ACEOF
7640 10723
7641fi 10724fi
7642rm -f conftest.mmap conftest.txt 10725rm -f conftest.mmap
7643 10726
7644if test $use_mmap_for_buffers = yes; then 10727if test $use_mmap_for_buffers = yes; then
7645 REL_ALLOC=no 10728 REL_ALLOC=no
@@ -7647,14 +10730,19 @@ fi
7647 10730
7648LIBS="$libsrc_libs $LIBS" 10731LIBS="$libsrc_libs $LIBS"
7649 10732
7650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 10733
10734{ $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7651$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 10735$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7652if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : 10736if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7653 $as_echo_n "(cached) " >&6 10737 $as_echo_n "(cached) " >&6
7654else 10738else
7655 ac_check_lib_save_LIBS=$LIBS 10739 ac_check_lib_save_LIBS=$LIBS
7656LIBS="-ldnet $LIBS" 10740LIBS="-ldnet $LIBS"
7657cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10741cat >conftest.$ac_ext <<_ACEOF
10742/* confdefs.h. */
10743_ACEOF
10744cat confdefs.h >>conftest.$ac_ext
10745cat >>conftest.$ac_ext <<_ACEOF
7658/* end confdefs.h. */ 10746/* end confdefs.h. */
7659 10747
7660/* Override any GCC internal prototype to avoid an error. 10748/* Override any GCC internal prototype to avoid an error.
@@ -7672,18 +10760,43 @@ return dnet_ntoa ();
7672 return 0; 10760 return 0;
7673} 10761}
7674_ACEOF 10762_ACEOF
7675if ac_fn_c_try_link "$LINENO"; then : 10763rm -f conftest.$ac_objext conftest$ac_exeext
10764if { (ac_try="$ac_link"
10765case "(($ac_try" in
10766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10767 *) ac_try_echo=$ac_try;;
10768esac
10769eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10770$as_echo "$ac_try_echo") >&5
10771 (eval "$ac_link") 2>conftest.er1
10772 ac_status=$?
10773 grep -v '^ *+' conftest.er1 >conftest.err
10774 rm -f conftest.er1
10775 cat conftest.err >&5
10776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } && {
10778 test -z "$ac_c_werror_flag" ||
10779 test ! -s conftest.err
10780 } && test -s conftest$ac_exeext && {
10781 test "$cross_compiling" = yes ||
10782 $as_test_x conftest$ac_exeext
10783 }; then
7676 ac_cv_lib_dnet_dnet_ntoa=yes 10784 ac_cv_lib_dnet_dnet_ntoa=yes
7677else 10785else
7678 ac_cv_lib_dnet_dnet_ntoa=no 10786 $as_echo "$as_me: failed program was:" >&5
10787sed 's/^/| /' conftest.$ac_ext >&5
10788
10789 ac_cv_lib_dnet_dnet_ntoa=no
7679fi 10790fi
7680rm -f core conftest.err conftest.$ac_objext \ 10791
7681 conftest$ac_exeext conftest.$ac_ext 10792rm -rf conftest.dSYM
10793rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10794 conftest$ac_exeext conftest.$ac_ext
7682LIBS=$ac_check_lib_save_LIBS 10795LIBS=$ac_check_lib_save_LIBS
7683fi 10796fi
7684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 10797{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7685$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 10798$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7686if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : 10799if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7687 cat >>confdefs.h <<_ACEOF 10800 cat >>confdefs.h <<_ACEOF
7688#define HAVE_LIBDNET 1 10801#define HAVE_LIBDNET 1
7689_ACEOF 10802_ACEOF
@@ -7693,14 +10806,18 @@ _ACEOF
7693fi 10806fi
7694 10807
7695 10808
7696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5 10809{ $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7697$as_echo_n "checking for main in -lXbsd... " >&6; } 10810$as_echo_n "checking for main in -lXbsd... " >&6; }
7698if test "${ac_cv_lib_Xbsd_main+set}" = set; then : 10811if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7699 $as_echo_n "(cached) " >&6 10812 $as_echo_n "(cached) " >&6
7700else 10813else
7701 ac_check_lib_save_LIBS=$LIBS 10814 ac_check_lib_save_LIBS=$LIBS
7702LIBS="-lXbsd $LIBS" 10815LIBS="-lXbsd $LIBS"
7703cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10816cat >conftest.$ac_ext <<_ACEOF
10817/* confdefs.h. */
10818_ACEOF
10819cat confdefs.h >>conftest.$ac_ext
10820cat >>conftest.$ac_ext <<_ACEOF
7704/* end confdefs.h. */ 10821/* end confdefs.h. */
7705 10822
7706 10823
@@ -7712,30 +10829,60 @@ return main ();
7712 return 0; 10829 return 0;
7713} 10830}
7714_ACEOF 10831_ACEOF
7715if ac_fn_c_try_link "$LINENO"; then : 10832rm -f conftest.$ac_objext conftest$ac_exeext
10833if { (ac_try="$ac_link"
10834case "(($ac_try" in
10835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10836 *) ac_try_echo=$ac_try;;
10837esac
10838eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10839$as_echo "$ac_try_echo") >&5
10840 (eval "$ac_link") 2>conftest.er1
10841 ac_status=$?
10842 grep -v '^ *+' conftest.er1 >conftest.err
10843 rm -f conftest.er1
10844 cat conftest.err >&5
10845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); } && {
10847 test -z "$ac_c_werror_flag" ||
10848 test ! -s conftest.err
10849 } && test -s conftest$ac_exeext && {
10850 test "$cross_compiling" = yes ||
10851 $as_test_x conftest$ac_exeext
10852 }; then
7716 ac_cv_lib_Xbsd_main=yes 10853 ac_cv_lib_Xbsd_main=yes
7717else 10854else
7718 ac_cv_lib_Xbsd_main=no 10855 $as_echo "$as_me: failed program was:" >&5
10856sed 's/^/| /' conftest.$ac_ext >&5
10857
10858 ac_cv_lib_Xbsd_main=no
7719fi 10859fi
7720rm -f core conftest.err conftest.$ac_objext \ 10860
7721 conftest$ac_exeext conftest.$ac_ext 10861rm -rf conftest.dSYM
10862rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10863 conftest$ac_exeext conftest.$ac_ext
7722LIBS=$ac_check_lib_save_LIBS 10864LIBS=$ac_check_lib_save_LIBS
7723fi 10865fi
7724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5 10866{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7725$as_echo "$ac_cv_lib_Xbsd_main" >&6; } 10867$as_echo "$ac_cv_lib_Xbsd_main" >&6; }
7726if test "x$ac_cv_lib_Xbsd_main" = x""yes; then : 10868if test $ac_cv_lib_Xbsd_main = yes; then
7727 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" 10869 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7728fi 10870fi
7729 10871
7730 10872
7731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5 10873
10874{ $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7732$as_echo_n "checking for cma_open in -lpthreads... " >&6; } 10875$as_echo_n "checking for cma_open in -lpthreads... " >&6; }
7733if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then : 10876if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7734 $as_echo_n "(cached) " >&6 10877 $as_echo_n "(cached) " >&6
7735else 10878else
7736 ac_check_lib_save_LIBS=$LIBS 10879 ac_check_lib_save_LIBS=$LIBS
7737LIBS="-lpthreads $LIBS" 10880LIBS="-lpthreads $LIBS"
7738cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10881cat >conftest.$ac_ext <<_ACEOF
10882/* confdefs.h. */
10883_ACEOF
10884cat confdefs.h >>conftest.$ac_ext
10885cat >>conftest.$ac_ext <<_ACEOF
7739/* end confdefs.h. */ 10886/* end confdefs.h. */
7740 10887
7741/* Override any GCC internal prototype to avoid an error. 10888/* Override any GCC internal prototype to avoid an error.
@@ -7753,18 +10900,43 @@ return cma_open ();
7753 return 0; 10900 return 0;
7754} 10901}
7755_ACEOF 10902_ACEOF
7756if ac_fn_c_try_link "$LINENO"; then : 10903rm -f conftest.$ac_objext conftest$ac_exeext
10904if { (ac_try="$ac_link"
10905case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10908esac
10909eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10910$as_echo "$ac_try_echo") >&5
10911 (eval "$ac_link") 2>conftest.er1
10912 ac_status=$?
10913 grep -v '^ *+' conftest.er1 >conftest.err
10914 rm -f conftest.er1
10915 cat conftest.err >&5
10916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } && {
10918 test -z "$ac_c_werror_flag" ||
10919 test ! -s conftest.err
10920 } && test -s conftest$ac_exeext && {
10921 test "$cross_compiling" = yes ||
10922 $as_test_x conftest$ac_exeext
10923 }; then
7757 ac_cv_lib_pthreads_cma_open=yes 10924 ac_cv_lib_pthreads_cma_open=yes
7758else 10925else
7759 ac_cv_lib_pthreads_cma_open=no 10926 $as_echo "$as_me: failed program was:" >&5
10927sed 's/^/| /' conftest.$ac_ext >&5
10928
10929 ac_cv_lib_pthreads_cma_open=no
7760fi 10930fi
7761rm -f core conftest.err conftest.$ac_objext \ 10931
7762 conftest$ac_exeext conftest.$ac_ext 10932rm -rf conftest.dSYM
10933rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10934 conftest$ac_exeext conftest.$ac_ext
7763LIBS=$ac_check_lib_save_LIBS 10935LIBS=$ac_check_lib_save_LIBS
7764fi 10936fi
7765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5 10937{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7766$as_echo "$ac_cv_lib_pthreads_cma_open" >&6; } 10938$as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
7767if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then : 10939if test $ac_cv_lib_pthreads_cma_open = yes; then
7768 cat >>confdefs.h <<_ACEOF 10940 cat >>confdefs.h <<_ACEOF
7769#define HAVE_LIBPTHREADS 1 10941#define HAVE_LIBPTHREADS 1
7770_ACEOF 10942_ACEOF
@@ -7777,9 +10949,9 @@ fi
7777 10949
7778case ${host_os} in 10950case ${host_os} in
7779aix*) 10951aix*)
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5 10952 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
7781$as_echo_n "checking for -bbigtoc option... " >&6; } 10953$as_echo_n "checking for -bbigtoc option... " >&6; }
7782if test "${gdb_cv_bigtoc+set}" = set; then : 10954if test "${gdb_cv_bigtoc+set}" = set; then
7783 $as_echo_n "(cached) " >&6 10955 $as_echo_n "(cached) " >&6
7784else 10956else
7785 10957
@@ -7789,7 +10961,11 @@ else
7789 esac 10961 esac
7790 10962
7791 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc 10963 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
7792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10964 cat >conftest.$ac_ext <<_ACEOF
10965/* confdefs.h. */
10966_ACEOF
10967cat confdefs.h >>conftest.$ac_ext
10968cat >>conftest.$ac_ext <<_ACEOF
7793/* end confdefs.h. */ 10969/* end confdefs.h. */
7794 10970
7795int 10971int
@@ -7800,16 +10976,41 @@ int i;
7800 return 0; 10976 return 0;
7801} 10977}
7802_ACEOF 10978_ACEOF
7803if ac_fn_c_try_link "$LINENO"; then : 10979rm -f conftest.$ac_objext conftest$ac_exeext
7804 10980if { (ac_try="$ac_link"
10981case "(($ac_try" in
10982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10983 *) ac_try_echo=$ac_try;;
10984esac
10985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10986$as_echo "$ac_try_echo") >&5
10987 (eval "$ac_link") 2>conftest.er1
10988 ac_status=$?
10989 grep -v '^ *+' conftest.er1 >conftest.err
10990 rm -f conftest.er1
10991 cat conftest.err >&5
10992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); } && {
10994 test -z "$ac_c_werror_flag" ||
10995 test ! -s conftest.err
10996 } && test -s conftest$ac_exeext && {
10997 test "$cross_compiling" = yes ||
10998 $as_test_x conftest$ac_exeext
10999 }; then
11000 :
7805else 11001else
7806 gdb_cv_bigtoc= 11002 $as_echo "$as_me: failed program was:" >&5
11003sed 's/^/| /' conftest.$ac_ext >&5
11004
11005 gdb_cv_bigtoc=
7807fi 11006fi
7808rm -f core conftest.err conftest.$ac_objext \ 11007
7809 conftest$ac_exeext conftest.$ac_ext 11008rm -rf conftest.dSYM
11009rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11010 conftest$ac_exeext conftest.$ac_ext
7810 11011
7811fi 11012fi
7812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5 11013{ $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
7813$as_echo "$gdb_cv_bigtoc" >&6; } 11014$as_echo "$gdb_cv_bigtoc" >&6; }
7814 ;; 11015 ;;
7815esac 11016esac
@@ -7837,9 +11038,13 @@ if test "${HAVE_X11}" = "yes"; then
7837 fi 11038 fi
7838 11039
7839 if test "${opsys}" = "gnu-linux"; then 11040 if test "${opsys}" = "gnu-linux"; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5 11041 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7841$as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; } 11042$as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11043 cat >conftest.$ac_ext <<_ACEOF
11044/* confdefs.h. */
11045_ACEOF
11046cat confdefs.h >>conftest.$ac_ext
11047cat >>conftest.$ac_ext <<_ACEOF
7843/* end confdefs.h. */ 11048/* end confdefs.h. */
7844 11049
7845int 11050int
@@ -7850,13 +11055,38 @@ XOpenDisplay ("foo");
7850 return 0; 11055 return 0;
7851} 11056}
7852_ACEOF 11057_ACEOF
7853if ac_fn_c_try_link "$LINENO"; then : 11058rm -f conftest.$ac_objext conftest$ac_exeext
11059if { (ac_try="$ac_link"
11060case "(($ac_try" in
11061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062 *) ac_try_echo=$ac_try;;
11063esac
11064eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11065$as_echo "$ac_try_echo") >&5
11066 (eval "$ac_link") 2>conftest.er1
11067 ac_status=$?
11068 grep -v '^ *+' conftest.er1 >conftest.err
11069 rm -f conftest.er1
11070 cat conftest.err >&5
11071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); } && {
11073 test -z "$ac_c_werror_flag" ||
11074 test ! -s conftest.err
11075 } && test -s conftest$ac_exeext && {
11076 test "$cross_compiling" = yes ||
11077 $as_test_x conftest$ac_exeext
11078 }; then
7854 xlinux_first_failure=no 11079 xlinux_first_failure=no
7855else 11080else
7856 xlinux_first_failure=yes 11081 $as_echo "$as_me: failed program was:" >&5
11082sed 's/^/| /' conftest.$ac_ext >&5
11083
11084 xlinux_first_failure=yes
7857fi 11085fi
7858rm -f core conftest.err conftest.$ac_objext \ 11086
7859 conftest$ac_exeext conftest.$ac_ext 11087rm -rf conftest.dSYM
11088rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11089 conftest$ac_exeext conftest.$ac_ext
7860 if test "${xlinux_first_failure}" = "yes"; then 11090 if test "${xlinux_first_failure}" = "yes"; then
7861 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" 11091 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7862 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" 11092 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
@@ -7866,7 +11096,11 @@ rm -f core conftest.err conftest.$ac_objext \
7866 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" 11096 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7867 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" 11097 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7868 LIBS="$LIBS -b i486-linuxaout" 11098 LIBS="$LIBS -b i486-linuxaout"
7869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11099 cat >conftest.$ac_ext <<_ACEOF
11100/* confdefs.h. */
11101_ACEOF
11102cat confdefs.h >>conftest.$ac_ext
11103cat >>conftest.$ac_ext <<_ACEOF
7870/* end confdefs.h. */ 11104/* end confdefs.h. */
7871 11105
7872int 11106int
@@ -7877,13 +11111,38 @@ XOpenDisplay ("foo");
7877 return 0; 11111 return 0;
7878} 11112}
7879_ACEOF 11113_ACEOF
7880if ac_fn_c_try_link "$LINENO"; then : 11114rm -f conftest.$ac_objext conftest$ac_exeext
11115if { (ac_try="$ac_link"
11116case "(($ac_try" in
11117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11118 *) ac_try_echo=$ac_try;;
11119esac
11120eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11121$as_echo "$ac_try_echo") >&5
11122 (eval "$ac_link") 2>conftest.er1
11123 ac_status=$?
11124 grep -v '^ *+' conftest.er1 >conftest.err
11125 rm -f conftest.er1
11126 cat conftest.err >&5
11127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); } && {
11129 test -z "$ac_c_werror_flag" ||
11130 test ! -s conftest.err
11131 } && test -s conftest$ac_exeext && {
11132 test "$cross_compiling" = yes ||
11133 $as_test_x conftest$ac_exeext
11134 }; then
7881 xlinux_second_failure=no 11135 xlinux_second_failure=no
7882else 11136else
7883 xlinux_second_failure=yes 11137 $as_echo "$as_me: failed program was:" >&5
11138sed 's/^/| /' conftest.$ac_ext >&5
11139
11140 xlinux_second_failure=yes
7884fi 11141fi
7885rm -f core conftest.err conftest.$ac_objext \ 11142
7886 conftest$ac_exeext conftest.$ac_ext 11143rm -rf conftest.dSYM
11144rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11145 conftest$ac_exeext conftest.$ac_ext
7887 if test "${xlinux_second_failure}" = "yes"; then 11146 if test "${xlinux_second_failure}" = "yes"; then
7888 # If we get the same failure with -b, there is no use adding -b. 11147 # If we get the same failure with -b, there is no use adding -b.
7889 # So take it out. This plays safe. 11148 # So take it out. This plays safe.
@@ -7891,23 +11150,27 @@ rm -f core conftest.err conftest.$ac_objext \
7891 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" 11150 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7892 CPPFLAGS="$OLD_CPPFLAGS" 11151 CPPFLAGS="$OLD_CPPFLAGS"
7893 LIBS="$OLD_LIBS" 11152 LIBS="$OLD_LIBS"
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11153 { $as_echo "$as_me:$LINENO: result: no" >&5
7895$as_echo "no" >&6; } 11154$as_echo "no" >&6; }
7896 else 11155 else
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11156 { $as_echo "$as_me:$LINENO: result: yes" >&5
7898$as_echo "yes" >&6; } 11157$as_echo "yes" >&6; }
7899 fi 11158 fi
7900 else 11159 else
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11160 { $as_echo "$as_me:$LINENO: result: no" >&5
7902$as_echo "no" >&6; } 11161$as_echo "no" >&6; }
7903 fi 11162 fi
7904 fi 11163 fi
7905 11164
7906 # Reportedly, some broken Solaris systems have XKBlib.h but are missing 11165 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7907 # header files included from there. 11166 # header files included from there.
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5 11167 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
7909$as_echo_n "checking for Xkb... " >&6; } 11168$as_echo_n "checking for Xkb... " >&6; }
7910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11169 cat >conftest.$ac_ext <<_ACEOF
11170/* confdefs.h. */
11171_ACEOF
11172cat confdefs.h >>conftest.$ac_ext
11173cat >>conftest.$ac_ext <<_ACEOF
7911/* end confdefs.h. */ 11174/* end confdefs.h. */
7912#include <X11/Xlib.h> 11175#include <X11/Xlib.h>
7913#include <X11/XKBlib.h> 11176#include <X11/XKBlib.h>
@@ -7919,28 +11182,145 @@ XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7919 return 0; 11182 return 0;
7920} 11183}
7921_ACEOF 11184_ACEOF
7922if ac_fn_c_try_link "$LINENO"; then : 11185rm -f conftest.$ac_objext conftest$ac_exeext
11186if { (ac_try="$ac_link"
11187case "(($ac_try" in
11188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11189 *) ac_try_echo=$ac_try;;
11190esac
11191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11192$as_echo "$ac_try_echo") >&5
11193 (eval "$ac_link") 2>conftest.er1
11194 ac_status=$?
11195 grep -v '^ *+' conftest.er1 >conftest.err
11196 rm -f conftest.er1
11197 cat conftest.err >&5
11198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); } && {
11200 test -z "$ac_c_werror_flag" ||
11201 test ! -s conftest.err
11202 } && test -s conftest$ac_exeext && {
11203 test "$cross_compiling" = yes ||
11204 $as_test_x conftest$ac_exeext
11205 }; then
7923 emacs_xkb=yes 11206 emacs_xkb=yes
7924else 11207else
7925 emacs_xkb=no 11208 $as_echo "$as_me: failed program was:" >&5
11209sed 's/^/| /' conftest.$ac_ext >&5
11210
11211 emacs_xkb=no
7926fi 11212fi
7927rm -f core conftest.err conftest.$ac_objext \ 11213
7928 conftest$ac_exeext conftest.$ac_ext 11214rm -rf conftest.dSYM
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5 11215rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11216 conftest$ac_exeext conftest.$ac_ext
11217 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7930$as_echo "$emacs_xkb" >&6; } 11218$as_echo "$emacs_xkb" >&6; }
7931 if test $emacs_xkb = yes; then 11219 if test $emacs_xkb = yes; then
7932 11220
7933$as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h 11221cat >>confdefs.h <<\_ACEOF
11222#define HAVE_XKBGETKEYBOARD 1
11223_ACEOF
7934 11224
7935 fi 11225 fi
7936 11226
7937 for ac_func in XrmSetDatabase XScreenResourceString \ 11227
11228
11229
11230
11231for ac_func in XrmSetDatabase XScreenResourceString \
7938XScreenNumberOfScreen XSetWMProtocols 11232XScreenNumberOfScreen XSetWMProtocols
7939do : 11233do
7940 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11234as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7941ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11235{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7942eval as_val=\$$as_ac_var 11236$as_echo_n "checking for $ac_func... " >&6; }
7943 if test "x$as_val" = x""yes; then : 11237if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11238 $as_echo_n "(cached) " >&6
11239else
11240 cat >conftest.$ac_ext <<_ACEOF
11241/* confdefs.h. */
11242_ACEOF
11243cat confdefs.h >>conftest.$ac_ext
11244cat >>conftest.$ac_ext <<_ACEOF
11245/* end confdefs.h. */
11246/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11248#define $ac_func innocuous_$ac_func
11249
11250/* System header to define __stub macros and hopefully few prototypes,
11251 which can conflict with char $ac_func (); below.
11252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11253 <limits.h> exists even on freestanding compilers. */
11254
11255#ifdef __STDC__
11256# include <limits.h>
11257#else
11258# include <assert.h>
11259#endif
11260
11261#undef $ac_func
11262
11263/* Override any GCC internal prototype to avoid an error.
11264 Use char because int might match the return type of a GCC
11265 builtin and then its argument prototype would still apply. */
11266#ifdef __cplusplus
11267extern "C"
11268#endif
11269char $ac_func ();
11270/* The GNU C library defines this for functions which it implements
11271 to always fail with ENOSYS. Some functions are actually named
11272 something starting with __ and the normal name is an alias. */
11273#if defined __stub_$ac_func || defined __stub___$ac_func
11274choke me
11275#endif
11276
11277int
11278main ()
11279{
11280return $ac_func ();
11281 ;
11282 return 0;
11283}
11284_ACEOF
11285rm -f conftest.$ac_objext conftest$ac_exeext
11286if { (ac_try="$ac_link"
11287case "(($ac_try" in
11288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11289 *) ac_try_echo=$ac_try;;
11290esac
11291eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11292$as_echo "$ac_try_echo") >&5
11293 (eval "$ac_link") 2>conftest.er1
11294 ac_status=$?
11295 grep -v '^ *+' conftest.er1 >conftest.err
11296 rm -f conftest.er1
11297 cat conftest.err >&5
11298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); } && {
11300 test -z "$ac_c_werror_flag" ||
11301 test ! -s conftest.err
11302 } && test -s conftest$ac_exeext && {
11303 test "$cross_compiling" = yes ||
11304 $as_test_x conftest$ac_exeext
11305 }; then
11306 eval "$as_ac_var=yes"
11307else
11308 $as_echo "$as_me: failed program was:" >&5
11309sed 's/^/| /' conftest.$ac_ext >&5
11310
11311 eval "$as_ac_var=no"
11312fi
11313
11314rm -rf conftest.dSYM
11315rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11316 conftest$ac_exeext conftest.$ac_ext
11317fi
11318ac_res=`eval 'as_val=${'$as_ac_var'}
11319 $as_echo "$as_val"'`
11320 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11321$as_echo "$ac_res" >&6; }
11322if test `eval 'as_val=${'$as_ac_var'}
11323 $as_echo "$as_val"'` = yes; then
7944 cat >>confdefs.h <<_ACEOF 11324 cat >>confdefs.h <<_ACEOF
7945#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11325#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7946_ACEOF 11326_ACEOF
@@ -7951,12 +11331,16 @@ done
7951fi 11331fi
7952 11332
7953if test "${window_system}" = "x11"; then 11333if test "${window_system}" = "x11"; then
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5 11334 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
7955$as_echo_n "checking X11 version 6... " >&6; } 11335$as_echo_n "checking X11 version 6... " >&6; }
7956 if test "${emacs_cv_x11_version_6+set}" = set; then : 11336 if test "${emacs_cv_x11_version_6+set}" = set; then
7957 $as_echo_n "(cached) " >&6 11337 $as_echo_n "(cached) " >&6
7958else 11338else
7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11339 cat >conftest.$ac_ext <<_ACEOF
11340/* confdefs.h. */
11341_ACEOF
11342cat confdefs.h >>conftest.$ac_ext
11343cat >>conftest.$ac_ext <<_ACEOF
7960/* end confdefs.h. */ 11344/* end confdefs.h. */
7961#include <X11/Xlib.h> 11345#include <X11/Xlib.h>
7962int 11346int
@@ -7970,23 +11354,50 @@ fail;
7970 return 0; 11354 return 0;
7971} 11355}
7972_ACEOF 11356_ACEOF
7973if ac_fn_c_try_link "$LINENO"; then : 11357rm -f conftest.$ac_objext conftest$ac_exeext
11358if { (ac_try="$ac_link"
11359case "(($ac_try" in
11360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11361 *) ac_try_echo=$ac_try;;
11362esac
11363eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11364$as_echo "$ac_try_echo") >&5
11365 (eval "$ac_link") 2>conftest.er1
11366 ac_status=$?
11367 grep -v '^ *+' conftest.er1 >conftest.err
11368 rm -f conftest.er1
11369 cat conftest.err >&5
11370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } && {
11372 test -z "$ac_c_werror_flag" ||
11373 test ! -s conftest.err
11374 } && test -s conftest$ac_exeext && {
11375 test "$cross_compiling" = yes ||
11376 $as_test_x conftest$ac_exeext
11377 }; then
7974 emacs_cv_x11_version_6=yes 11378 emacs_cv_x11_version_6=yes
7975else 11379else
7976 emacs_cv_x11_version_6=no 11380 $as_echo "$as_me: failed program was:" >&5
11381sed 's/^/| /' conftest.$ac_ext >&5
11382
11383 emacs_cv_x11_version_6=no
7977fi 11384fi
7978rm -f core conftest.err conftest.$ac_objext \ 11385
7979 conftest$ac_exeext conftest.$ac_ext 11386rm -rf conftest.dSYM
11387rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11388 conftest$ac_exeext conftest.$ac_ext
7980fi 11389fi
7981 11390
7982 if test $emacs_cv_x11_version_6 = yes; then 11391 if test $emacs_cv_x11_version_6 = yes; then
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5 11392 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
7984$as_echo "6 or newer" >&6; } 11393$as_echo "6 or newer" >&6; }
7985 11394
7986$as_echo "#define HAVE_X11R6 1" >>confdefs.h 11395cat >>confdefs.h <<\_ACEOF
11396#define HAVE_X11R6 1
11397_ACEOF
7987 11398
7988 else 11399 else
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5 11400 { $as_echo "$as_me:$LINENO: result: before 6" >&5
7990$as_echo "before 6" >&6; } 11401$as_echo "before 6" >&6; }
7991 fi 11402 fi
7992fi 11403fi
@@ -8004,9 +11415,9 @@ if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
8004 11415
8005 # Extract the first word of "pkg-config", so it can be a program name with args. 11416 # Extract the first word of "pkg-config", so it can be a program name with args.
8006set dummy pkg-config; ac_word=$2 11417set dummy pkg-config; ac_word=$2
8007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11418{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8008$as_echo_n "checking for $ac_word... " >&6; } 11419$as_echo_n "checking for $ac_word... " >&6; }
8009if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 11420if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8010 $as_echo_n "(cached) " >&6 11421 $as_echo_n "(cached) " >&6
8011else 11422else
8012 case $PKG_CONFIG in 11423 case $PKG_CONFIG in
@@ -8019,14 +11430,14 @@ for as_dir in $PATH
8019do 11430do
8020 IFS=$as_save_IFS 11431 IFS=$as_save_IFS
8021 test -z "$as_dir" && as_dir=. 11432 test -z "$as_dir" && as_dir=.
8022 for ac_exec_ext in '' $ac_executable_extensions; do 11433 for ac_exec_ext in '' $ac_executable_extensions; do
8023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8024 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11435 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11436 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8026 break 2 11437 break 2
8027 fi 11438 fi
8028done 11439done
8029 done 11440done
8030IFS=$as_save_IFS 11441IFS=$as_save_IFS
8031 11442
8032 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 11443 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -8035,10 +11446,10 @@ esac
8035fi 11446fi
8036PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11447PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8037if test -n "$PKG_CONFIG"; then 11448if test -n "$PKG_CONFIG"; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11449 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8039$as_echo "$PKG_CONFIG" >&6; } 11450$as_echo "$PKG_CONFIG" >&6; }
8040else 11451else
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11452 { $as_echo "$as_me:$LINENO: result: no" >&5
8042$as_echo "no" >&6; } 11453$as_echo "no" >&6; }
8043fi 11454fi
8044 11455
@@ -8049,27 +11460,27 @@ fi
8049 else 11460 else
8050 PKG_CONFIG_MIN_VERSION=0.9.0 11461 PKG_CONFIG_MIN_VERSION=0.9.0
8051 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 11462 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5 11463 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
8053$as_echo_n "checking for $RSVG_MODULE... " >&6; } 11464$as_echo_n "checking for $RSVG_MODULE... " >&6; }
8054 11465
8055 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then 11466 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11467 { $as_echo "$as_me:$LINENO: result: yes" >&5
8057$as_echo "yes" >&6; } 11468$as_echo "yes" >&6; }
8058 succeeded=yes 11469 succeeded=yes
8059 11470
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5 11471 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
8061$as_echo_n "checking RSVG_CFLAGS... " >&6; } 11472$as_echo_n "checking RSVG_CFLAGS... " >&6; }
8062 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'` 11473 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5 11474 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
8064$as_echo "$RSVG_CFLAGS" >&6; } 11475$as_echo "$RSVG_CFLAGS" >&6; }
8065 11476
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5 11477 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
8067$as_echo_n "checking RSVG_LIBS... " >&6; } 11478$as_echo_n "checking RSVG_LIBS... " >&6; }
8068 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'` 11479 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5 11480 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
8070$as_echo "$RSVG_LIBS" >&6; } 11481$as_echo "$RSVG_LIBS" >&6; }
8071 else 11482 else
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11483 { $as_echo "$as_me:$LINENO: result: no" >&5
8073$as_echo "no" >&6; } 11484$as_echo "no" >&6; }
8074 RSVG_CFLAGS="" 11485 RSVG_CFLAGS=""
8075 RSVG_LIBS="" 11486 RSVG_LIBS=""
@@ -8099,7 +11510,9 @@ $as_echo "no" >&6; }
8099 if test ".${RSVG_CFLAGS}" != "."; then 11510 if test ".${RSVG_CFLAGS}" != "."; then
8100 HAVE_RSVG=yes 11511 HAVE_RSVG=yes
8101 11512
8102$as_echo "#define HAVE_RSVG 1" >>confdefs.h 11513cat >>confdefs.h <<\_ACEOF
11514#define HAVE_RSVG 1
11515_ACEOF
8103 11516
8104 CFLAGS="$CFLAGS $RSVG_CFLAGS" 11517 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8105 LIBS="$RSVG_LIBS $LIBS" 11518 LIBS="$RSVG_LIBS $LIBS"
@@ -8119,9 +11532,9 @@ if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8119 11532
8120 # Extract the first word of "pkg-config", so it can be a program name with args. 11533 # Extract the first word of "pkg-config", so it can be a program name with args.
8121set dummy pkg-config; ac_word=$2 11534set dummy pkg-config; ac_word=$2
8122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11535{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8123$as_echo_n "checking for $ac_word... " >&6; } 11536$as_echo_n "checking for $ac_word... " >&6; }
8124if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 11537if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8125 $as_echo_n "(cached) " >&6 11538 $as_echo_n "(cached) " >&6
8126else 11539else
8127 case $PKG_CONFIG in 11540 case $PKG_CONFIG in
@@ -8134,14 +11547,14 @@ for as_dir in $PATH
8134do 11547do
8135 IFS=$as_save_IFS 11548 IFS=$as_save_IFS
8136 test -z "$as_dir" && as_dir=. 11549 test -z "$as_dir" && as_dir=.
8137 for ac_exec_ext in '' $ac_executable_extensions; do 11550 for ac_exec_ext in '' $ac_executable_extensions; do
8138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8139 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11552 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11553 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8141 break 2 11554 break 2
8142 fi 11555 fi
8143done 11556done
8144 done 11557done
8145IFS=$as_save_IFS 11558IFS=$as_save_IFS
8146 11559
8147 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 11560 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -8150,10 +11563,10 @@ esac
8150fi 11563fi
8151PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11564PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8152if test -n "$PKG_CONFIG"; then 11565if test -n "$PKG_CONFIG"; then
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11566 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8154$as_echo "$PKG_CONFIG" >&6; } 11567$as_echo "$PKG_CONFIG" >&6; }
8155else 11568else
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11569 { $as_echo "$as_me:$LINENO: result: no" >&5
8157$as_echo "no" >&6; } 11570$as_echo "no" >&6; }
8158fi 11571fi
8159 11572
@@ -8164,27 +11577,27 @@ fi
8164 else 11577 else
8165 PKG_CONFIG_MIN_VERSION=0.9.0 11578 PKG_CONFIG_MIN_VERSION=0.9.0
8166 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 11579 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5 11580 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8168$as_echo_n "checking for $GTK_MODULES... " >&6; } 11581$as_echo_n "checking for $GTK_MODULES... " >&6; }
8169 11582
8170 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then 11583 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11584 { $as_echo "$as_me:$LINENO: result: yes" >&5
8172$as_echo "yes" >&6; } 11585$as_echo "yes" >&6; }
8173 succeeded=yes 11586 succeeded=yes
8174 11587
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5 11588 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8176$as_echo_n "checking GTK_CFLAGS... " >&6; } 11589$as_echo_n "checking GTK_CFLAGS... " >&6; }
8177 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'` 11590 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5 11591 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8179$as_echo "$GTK_CFLAGS" >&6; } 11592$as_echo "$GTK_CFLAGS" >&6; }
8180 11593
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5 11594 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8182$as_echo_n "checking GTK_LIBS... " >&6; } 11595$as_echo_n "checking GTK_LIBS... " >&6; }
8183 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'` 11596 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5 11597 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8185$as_echo "$GTK_LIBS" >&6; } 11598$as_echo "$GTK_LIBS" >&6; }
8186 else 11599 else
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11600 { $as_echo "$as_me:$LINENO: result: no" >&5
8188$as_echo "no" >&6; } 11601$as_echo "no" >&6; }
8189 GTK_CFLAGS="" 11602 GTK_CFLAGS=""
8190 GTK_LIBS="" 11603 GTK_LIBS=""
@@ -8209,7 +11622,9 @@ $as_echo "no" >&6; }
8209 fi 11622 fi
8210 11623
8211 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then 11624 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8212 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5 11625 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11626$as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11627 { (exit 1); exit 1; }; }
8213 fi 11628 fi
8214fi 11629fi
8215 11630
@@ -8223,12 +11638,101 @@ if test x"$pkg_check_gtk" = xyes; then
8223 CFLAGS="$CFLAGS $GTK_CFLAGS" 11638 CFLAGS="$CFLAGS $GTK_CFLAGS"
8224 LIBS="$GTK_LIBS $LIBS" 11639 LIBS="$GTK_LIBS $LIBS"
8225 GTK_COMPILES=no 11640 GTK_COMPILES=no
8226 for ac_func in gtk_main 11641
8227do : 11642for ac_func in gtk_main
8228 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main" 11643do
8229if test "x$ac_cv_func_gtk_main" = x""yes; then : 11644as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11645{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11646$as_echo_n "checking for $ac_func... " >&6; }
11647if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11648 $as_echo_n "(cached) " >&6
11649else
11650 cat >conftest.$ac_ext <<_ACEOF
11651/* confdefs.h. */
11652_ACEOF
11653cat confdefs.h >>conftest.$ac_ext
11654cat >>conftest.$ac_ext <<_ACEOF
11655/* end confdefs.h. */
11656/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11658#define $ac_func innocuous_$ac_func
11659
11660/* System header to define __stub macros and hopefully few prototypes,
11661 which can conflict with char $ac_func (); below.
11662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11663 <limits.h> exists even on freestanding compilers. */
11664
11665#ifdef __STDC__
11666# include <limits.h>
11667#else
11668# include <assert.h>
11669#endif
11670
11671#undef $ac_func
11672
11673/* Override any GCC internal prototype to avoid an error.
11674 Use char because int might match the return type of a GCC
11675 builtin and then its argument prototype would still apply. */
11676#ifdef __cplusplus
11677extern "C"
11678#endif
11679char $ac_func ();
11680/* The GNU C library defines this for functions which it implements
11681 to always fail with ENOSYS. Some functions are actually named
11682 something starting with __ and the normal name is an alias. */
11683#if defined __stub_$ac_func || defined __stub___$ac_func
11684choke me
11685#endif
11686
11687int
11688main ()
11689{
11690return $ac_func ();
11691 ;
11692 return 0;
11693}
11694_ACEOF
11695rm -f conftest.$ac_objext conftest$ac_exeext
11696if { (ac_try="$ac_link"
11697case "(($ac_try" in
11698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11699 *) ac_try_echo=$ac_try;;
11700esac
11701eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11702$as_echo "$ac_try_echo") >&5
11703 (eval "$ac_link") 2>conftest.er1
11704 ac_status=$?
11705 grep -v '^ *+' conftest.er1 >conftest.err
11706 rm -f conftest.er1
11707 cat conftest.err >&5
11708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } && {
11710 test -z "$ac_c_werror_flag" ||
11711 test ! -s conftest.err
11712 } && test -s conftest$ac_exeext && {
11713 test "$cross_compiling" = yes ||
11714 $as_test_x conftest$ac_exeext
11715 }; then
11716 eval "$as_ac_var=yes"
11717else
11718 $as_echo "$as_me: failed program was:" >&5
11719sed 's/^/| /' conftest.$ac_ext >&5
11720
11721 eval "$as_ac_var=no"
11722fi
11723
11724rm -rf conftest.dSYM
11725rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11726 conftest$ac_exeext conftest.$ac_ext
11727fi
11728ac_res=`eval 'as_val=${'$as_ac_var'}
11729 $as_echo "$as_val"'`
11730 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11731$as_echo "$ac_res" >&6; }
11732if test `eval 'as_val=${'$as_ac_var'}
11733 $as_echo "$as_val"'` = yes; then
8230 cat >>confdefs.h <<_ACEOF 11734 cat >>confdefs.h <<_ACEOF
8231#define HAVE_GTK_MAIN 1 11735#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8232_ACEOF 11736_ACEOF
8233 GTK_COMPILES=yes 11737 GTK_COMPILES=yes
8234fi 11738fi
@@ -8236,19 +11740,23 @@ done
8236 11740
8237 if test "${GTK_COMPILES}" != "yes"; then 11741 if test "${GTK_COMPILES}" != "yes"; then
8238 if test "$USE_X_TOOLKIT" != "maybe"; then 11742 if test "$USE_X_TOOLKIT" != "maybe"; then
8239 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5; 11743 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11744$as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11745 { (exit 1); exit 1; }; };
8240 fi 11746 fi
8241 else 11747 else
8242 HAVE_GTK=yes 11748 HAVE_GTK=yes
8243 11749
8244$as_echo "#define USE_GTK 1" >>confdefs.h 11750cat >>confdefs.h <<\_ACEOF
11751#define USE_GTK 1
11752_ACEOF
8245 11753
8246 GTK_OBJ=gtkutil.o 11754 GTK_OBJ=gtkutil.o
8247 USE_X_TOOLKIT=none 11755 USE_X_TOOLKIT=none
8248 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then 11756 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
8249 : 11757 :
8250 else 11758 else
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with 11759 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
8252 closing open displays. This is no problem if you just use 11760 closing open displays. This is no problem if you just use
8253 one display, but if you use more than one and close one of them 11761 one display, but if you use more than one and close one of them
8254 Emacs may crash." >&5 11762 Emacs may crash." >&5
@@ -8271,12 +11779,101 @@ if test "${HAVE_GTK}" = "yes"; then
8271 fi 11779 fi
8272 11780
8273 HAVE_GTK_MULTIDISPLAY=no 11781 HAVE_GTK_MULTIDISPLAY=no
8274 for ac_func in gdk_display_open 11782
8275do : 11783for ac_func in gdk_display_open
8276 ac_fn_c_check_func "$LINENO" "gdk_display_open" "ac_cv_func_gdk_display_open" 11784do
8277if test "x$ac_cv_func_gdk_display_open" = x""yes; then : 11785as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11786{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11787$as_echo_n "checking for $ac_func... " >&6; }
11788if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11789 $as_echo_n "(cached) " >&6
11790else
11791 cat >conftest.$ac_ext <<_ACEOF
11792/* confdefs.h. */
11793_ACEOF
11794cat confdefs.h >>conftest.$ac_ext
11795cat >>conftest.$ac_ext <<_ACEOF
11796/* end confdefs.h. */
11797/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11799#define $ac_func innocuous_$ac_func
11800
11801/* System header to define __stub macros and hopefully few prototypes,
11802 which can conflict with char $ac_func (); below.
11803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11804 <limits.h> exists even on freestanding compilers. */
11805
11806#ifdef __STDC__
11807# include <limits.h>
11808#else
11809# include <assert.h>
11810#endif
11811
11812#undef $ac_func
11813
11814/* Override any GCC internal prototype to avoid an error.
11815 Use char because int might match the return type of a GCC
11816 builtin and then its argument prototype would still apply. */
11817#ifdef __cplusplus
11818extern "C"
11819#endif
11820char $ac_func ();
11821/* The GNU C library defines this for functions which it implements
11822 to always fail with ENOSYS. Some functions are actually named
11823 something starting with __ and the normal name is an alias. */
11824#if defined __stub_$ac_func || defined __stub___$ac_func
11825choke me
11826#endif
11827
11828int
11829main ()
11830{
11831return $ac_func ();
11832 ;
11833 return 0;
11834}
11835_ACEOF
11836rm -f conftest.$ac_objext conftest$ac_exeext
11837if { (ac_try="$ac_link"
11838case "(($ac_try" in
11839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840 *) ac_try_echo=$ac_try;;
11841esac
11842eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11843$as_echo "$ac_try_echo") >&5
11844 (eval "$ac_link") 2>conftest.er1
11845 ac_status=$?
11846 grep -v '^ *+' conftest.er1 >conftest.err
11847 rm -f conftest.er1
11848 cat conftest.err >&5
11849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); } && {
11851 test -z "$ac_c_werror_flag" ||
11852 test ! -s conftest.err
11853 } && test -s conftest$ac_exeext && {
11854 test "$cross_compiling" = yes ||
11855 $as_test_x conftest$ac_exeext
11856 }; then
11857 eval "$as_ac_var=yes"
11858else
11859 $as_echo "$as_me: failed program was:" >&5
11860sed 's/^/| /' conftest.$ac_ext >&5
11861
11862 eval "$as_ac_var=no"
11863fi
11864
11865rm -rf conftest.dSYM
11866rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11867 conftest$ac_exeext conftest.$ac_ext
11868fi
11869ac_res=`eval 'as_val=${'$as_ac_var'}
11870 $as_echo "$as_val"'`
11871 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11872$as_echo "$ac_res" >&6; }
11873if test `eval 'as_val=${'$as_ac_var'}
11874 $as_echo "$as_val"'` = yes; then
8278 cat >>confdefs.h <<_ACEOF 11875 cat >>confdefs.h <<_ACEOF
8279#define HAVE_GDK_DISPLAY_OPEN 1 11876#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8280_ACEOF 11877_ACEOF
8281 HAVE_GTK_MULTIDISPLAY=yes 11878 HAVE_GTK_MULTIDISPLAY=yes
8282fi 11879fi
@@ -8284,27 +11881,170 @@ done
8284 11881
8285 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then 11882 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
8286 11883
8287$as_echo "#define HAVE_GTK_MULTIDISPLAY 1" >>confdefs.h 11884cat >>confdefs.h <<\_ACEOF
11885#define HAVE_GTK_MULTIDISPLAY 1
11886_ACEOF
8288 11887
8289 fi 11888 fi
8290 11889
8291 HAVE_GTK_FILE_SELECTION=no 11890 HAVE_GTK_FILE_SELECTION=no
8292 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default 11891 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11892$as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11893if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11894 $as_echo_n "(cached) " >&6
11895else
11896 cat >conftest.$ac_ext <<_ACEOF
11897/* confdefs.h. */
11898_ACEOF
11899cat confdefs.h >>conftest.$ac_ext
11900cat >>conftest.$ac_ext <<_ACEOF
11901/* end confdefs.h. */
11902$ac_includes_default
8293#include <gtk/gtk.h> 11903#include <gtk/gtk.h>
8294" 11904
8295if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then : 11905int
11906main ()
11907{
11908#ifndef GTK_TYPE_FILE_SELECTION
11909 (void) GTK_TYPE_FILE_SELECTION;
11910#endif
11911
11912 ;
11913 return 0;
11914}
11915_ACEOF
11916rm -f conftest.$ac_objext
11917if { (ac_try="$ac_compile"
11918case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11921esac
11922eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11923$as_echo "$ac_try_echo") >&5
11924 (eval "$ac_compile") 2>conftest.er1
11925 ac_status=$?
11926 grep -v '^ *+' conftest.er1 >conftest.err
11927 rm -f conftest.er1
11928 cat conftest.err >&5
11929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); } && {
11931 test -z "$ac_c_werror_flag" ||
11932 test ! -s conftest.err
11933 } && test -s conftest.$ac_objext; then
11934 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11935else
11936 $as_echo "$as_me: failed program was:" >&5
11937sed 's/^/| /' conftest.$ac_ext >&5
11938
11939 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11940fi
11941
11942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11943fi
11944{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11945$as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11946if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
8296 HAVE_GTK_FILE_SELECTION=yes 11947 HAVE_GTK_FILE_SELECTION=yes
8297else 11948else
8298 HAVE_GTK_FILE_SELECTION=no 11949 HAVE_GTK_FILE_SELECTION=no
8299fi 11950fi
8300 11951
8301 if test "$HAVE_GTK_FILE_SELECTION" = yes; then 11952 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
8302 for ac_func in gtk_file_selection_new 11953
8303do : 11954for ac_func in gtk_file_selection_new
8304 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new" 11955do
8305if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then : 11956as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11957{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11958$as_echo_n "checking for $ac_func... " >&6; }
11959if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11960 $as_echo_n "(cached) " >&6
11961else
11962 cat >conftest.$ac_ext <<_ACEOF
11963/* confdefs.h. */
11964_ACEOF
11965cat confdefs.h >>conftest.$ac_ext
11966cat >>conftest.$ac_ext <<_ACEOF
11967/* end confdefs.h. */
11968/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11970#define $ac_func innocuous_$ac_func
11971
11972/* System header to define __stub macros and hopefully few prototypes,
11973 which can conflict with char $ac_func (); below.
11974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11975 <limits.h> exists even on freestanding compilers. */
11976
11977#ifdef __STDC__
11978# include <limits.h>
11979#else
11980# include <assert.h>
11981#endif
11982
11983#undef $ac_func
11984
11985/* Override any GCC internal prototype to avoid an error.
11986 Use char because int might match the return type of a GCC
11987 builtin and then its argument prototype would still apply. */
11988#ifdef __cplusplus
11989extern "C"
11990#endif
11991char $ac_func ();
11992/* The GNU C library defines this for functions which it implements
11993 to always fail with ENOSYS. Some functions are actually named
11994 something starting with __ and the normal name is an alias. */
11995#if defined __stub_$ac_func || defined __stub___$ac_func
11996choke me
11997#endif
11998
11999int
12000main ()
12001{
12002return $ac_func ();
12003 ;
12004 return 0;
12005}
12006_ACEOF
12007rm -f conftest.$ac_objext conftest$ac_exeext
12008if { (ac_try="$ac_link"
12009case "(($ac_try" in
12010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12011 *) ac_try_echo=$ac_try;;
12012esac
12013eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12014$as_echo "$ac_try_echo") >&5
12015 (eval "$ac_link") 2>conftest.er1
12016 ac_status=$?
12017 grep -v '^ *+' conftest.er1 >conftest.err
12018 rm -f conftest.er1
12019 cat conftest.err >&5
12020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } && {
12022 test -z "$ac_c_werror_flag" ||
12023 test ! -s conftest.err
12024 } && test -s conftest$ac_exeext && {
12025 test "$cross_compiling" = yes ||
12026 $as_test_x conftest$ac_exeext
12027 }; then
12028 eval "$as_ac_var=yes"
12029else
12030 $as_echo "$as_me: failed program was:" >&5
12031sed 's/^/| /' conftest.$ac_ext >&5
12032
12033 eval "$as_ac_var=no"
12034fi
12035
12036rm -rf conftest.dSYM
12037rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12038 conftest$ac_exeext conftest.$ac_ext
12039fi
12040ac_res=`eval 'as_val=${'$as_ac_var'}
12041 $as_echo "$as_val"'`
12042 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12043$as_echo "$ac_res" >&6; }
12044if test `eval 'as_val=${'$as_ac_var'}
12045 $as_echo "$as_val"'` = yes; then
8306 cat >>confdefs.h <<_ACEOF 12046 cat >>confdefs.h <<_ACEOF
8307#define HAVE_GTK_FILE_SELECTION_NEW 1 12047#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8308_ACEOF 12048_ACEOF
8309 HAVE_GTK_FILE_SELECTION=yes 12049 HAVE_GTK_FILE_SELECTION=yes
8310else 12050else
@@ -8315,22 +12055,163 @@ done
8315 fi 12055 fi
8316 12056
8317 HAVE_GTK_FILE_CHOOSER=no 12057 HAVE_GTK_FILE_CHOOSER=no
8318 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_CHOOSER" "ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" "$ac_includes_default 12058 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12059$as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12060if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12061 $as_echo_n "(cached) " >&6
12062else
12063 cat >conftest.$ac_ext <<_ACEOF
12064/* confdefs.h. */
12065_ACEOF
12066cat confdefs.h >>conftest.$ac_ext
12067cat >>conftest.$ac_ext <<_ACEOF
12068/* end confdefs.h. */
12069$ac_includes_default
8319#include <gtk/gtk.h> 12070#include <gtk/gtk.h>
8320" 12071
8321if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x""yes; then : 12072int
12073main ()
12074{
12075#ifndef GTK_TYPE_FILE_CHOOSER
12076 (void) GTK_TYPE_FILE_CHOOSER;
12077#endif
12078
12079 ;
12080 return 0;
12081}
12082_ACEOF
12083rm -f conftest.$ac_objext
12084if { (ac_try="$ac_compile"
12085case "(($ac_try" in
12086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12087 *) ac_try_echo=$ac_try;;
12088esac
12089eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12090$as_echo "$ac_try_echo") >&5
12091 (eval "$ac_compile") 2>conftest.er1
12092 ac_status=$?
12093 grep -v '^ *+' conftest.er1 >conftest.err
12094 rm -f conftest.er1
12095 cat conftest.err >&5
12096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); } && {
12098 test -z "$ac_c_werror_flag" ||
12099 test ! -s conftest.err
12100 } && test -s conftest.$ac_objext; then
12101 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12102else
12103 $as_echo "$as_me: failed program was:" >&5
12104sed 's/^/| /' conftest.$ac_ext >&5
12105
12106 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12107fi
12108
12109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12110fi
12111{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12112$as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12113if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
8322 HAVE_GTK_FILE_CHOOSER=yes 12114 HAVE_GTK_FILE_CHOOSER=yes
8323else 12115else
8324 HAVE_GTK_FILE_CHOOSER=no 12116 HAVE_GTK_FILE_CHOOSER=no
8325fi 12117fi
8326 12118
8327 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then 12119 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8328 for ac_func in gtk_file_chooser_dialog_new 12120
8329do : 12121for ac_func in gtk_file_chooser_dialog_new
8330 ac_fn_c_check_func "$LINENO" "gtk_file_chooser_dialog_new" "ac_cv_func_gtk_file_chooser_dialog_new" 12122do
8331if test "x$ac_cv_func_gtk_file_chooser_dialog_new" = x""yes; then : 12123as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12124{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12125$as_echo_n "checking for $ac_func... " >&6; }
12126if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12127 $as_echo_n "(cached) " >&6
12128else
12129 cat >conftest.$ac_ext <<_ACEOF
12130/* confdefs.h. */
12131_ACEOF
12132cat confdefs.h >>conftest.$ac_ext
12133cat >>conftest.$ac_ext <<_ACEOF
12134/* end confdefs.h. */
12135/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12137#define $ac_func innocuous_$ac_func
12138
12139/* System header to define __stub macros and hopefully few prototypes,
12140 which can conflict with char $ac_func (); below.
12141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12142 <limits.h> exists even on freestanding compilers. */
12143
12144#ifdef __STDC__
12145# include <limits.h>
12146#else
12147# include <assert.h>
12148#endif
12149
12150#undef $ac_func
12151
12152/* Override any GCC internal prototype to avoid an error.
12153 Use char because int might match the return type of a GCC
12154 builtin and then its argument prototype would still apply. */
12155#ifdef __cplusplus
12156extern "C"
12157#endif
12158char $ac_func ();
12159/* The GNU C library defines this for functions which it implements
12160 to always fail with ENOSYS. Some functions are actually named
12161 something starting with __ and the normal name is an alias. */
12162#if defined __stub_$ac_func || defined __stub___$ac_func
12163choke me
12164#endif
12165
12166int
12167main ()
12168{
12169return $ac_func ();
12170 ;
12171 return 0;
12172}
12173_ACEOF
12174rm -f conftest.$ac_objext conftest$ac_exeext
12175if { (ac_try="$ac_link"
12176case "(($ac_try" in
12177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178 *) ac_try_echo=$ac_try;;
12179esac
12180eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12181$as_echo "$ac_try_echo") >&5
12182 (eval "$ac_link") 2>conftest.er1
12183 ac_status=$?
12184 grep -v '^ *+' conftest.er1 >conftest.err
12185 rm -f conftest.er1
12186 cat conftest.err >&5
12187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } && {
12189 test -z "$ac_c_werror_flag" ||
12190 test ! -s conftest.err
12191 } && test -s conftest$ac_exeext && {
12192 test "$cross_compiling" = yes ||
12193 $as_test_x conftest$ac_exeext
12194 }; then
12195 eval "$as_ac_var=yes"
12196else
12197 $as_echo "$as_me: failed program was:" >&5
12198sed 's/^/| /' conftest.$ac_ext >&5
12199
12200 eval "$as_ac_var=no"
12201fi
12202
12203rm -rf conftest.dSYM
12204rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12205 conftest$ac_exeext conftest.$ac_ext
12206fi
12207ac_res=`eval 'as_val=${'$as_ac_var'}
12208 $as_echo "$as_val"'`
12209 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12210$as_echo "$ac_res" >&6; }
12211if test `eval 'as_val=${'$as_ac_var'}
12212 $as_echo "$as_val"'` = yes; then
8332 cat >>confdefs.h <<_ACEOF 12213 cat >>confdefs.h <<_ACEOF
8333#define HAVE_GTK_FILE_CHOOSER_DIALOG_NEW 1 12214#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8334_ACEOF 12215_ACEOF
8335 HAVE_GTK_FILE_CHOOSER=yes 12216 HAVE_GTK_FILE_CHOOSER=yes
8336else 12217else
@@ -8343,18 +12224,153 @@ done
8343 if test "$HAVE_GTK_FILE_SELECTION" = yes \ 12224 if test "$HAVE_GTK_FILE_SELECTION" = yes \
8344 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then 12225 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8345 12226
8346$as_echo "#define HAVE_GTK_FILE_BOTH 1" >>confdefs.h 12227cat >>confdefs.h <<\_ACEOF
12228#define HAVE_GTK_FILE_BOTH 1
12229_ACEOF
8347 12230
8348 fi 12231 fi
8349 12232
8350 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then 12233 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8351 HAVE_GTK_AND_PTHREAD=no 12234 HAVE_GTK_AND_PTHREAD=no
8352 for ac_header in pthread.h 12235
8353do : 12236for ac_header in pthread.h
8354 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 12237do
8355if test "x$ac_cv_header_pthread_h" = x""yes; then : 12238as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12239if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12240 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12241$as_echo_n "checking for $ac_header... " >&6; }
12242if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12243 $as_echo_n "(cached) " >&6
12244fi
12245ac_res=`eval 'as_val=${'$as_ac_Header'}
12246 $as_echo "$as_val"'`
12247 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12248$as_echo "$ac_res" >&6; }
12249else
12250 # Is the header compilable?
12251{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12252$as_echo_n "checking $ac_header usability... " >&6; }
12253cat >conftest.$ac_ext <<_ACEOF
12254/* confdefs.h. */
12255_ACEOF
12256cat confdefs.h >>conftest.$ac_ext
12257cat >>conftest.$ac_ext <<_ACEOF
12258/* end confdefs.h. */
12259$ac_includes_default
12260#include <$ac_header>
12261_ACEOF
12262rm -f conftest.$ac_objext
12263if { (ac_try="$ac_compile"
12264case "(($ac_try" in
12265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12266 *) ac_try_echo=$ac_try;;
12267esac
12268eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12269$as_echo "$ac_try_echo") >&5
12270 (eval "$ac_compile") 2>conftest.er1
12271 ac_status=$?
12272 grep -v '^ *+' conftest.er1 >conftest.err
12273 rm -f conftest.er1
12274 cat conftest.err >&5
12275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); } && {
12277 test -z "$ac_c_werror_flag" ||
12278 test ! -s conftest.err
12279 } && test -s conftest.$ac_objext; then
12280 ac_header_compiler=yes
12281else
12282 $as_echo "$as_me: failed program was:" >&5
12283sed 's/^/| /' conftest.$ac_ext >&5
12284
12285 ac_header_compiler=no
12286fi
12287
12288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12289{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12290$as_echo "$ac_header_compiler" >&6; }
12291
12292# Is the header present?
12293{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12294$as_echo_n "checking $ac_header presence... " >&6; }
12295cat >conftest.$ac_ext <<_ACEOF
12296/* confdefs.h. */
12297_ACEOF
12298cat confdefs.h >>conftest.$ac_ext
12299cat >>conftest.$ac_ext <<_ACEOF
12300/* end confdefs.h. */
12301#include <$ac_header>
12302_ACEOF
12303if { (ac_try="$ac_cpp conftest.$ac_ext"
12304case "(($ac_try" in
12305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306 *) ac_try_echo=$ac_try;;
12307esac
12308eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12309$as_echo "$ac_try_echo") >&5
12310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12311 ac_status=$?
12312 grep -v '^ *+' conftest.er1 >conftest.err
12313 rm -f conftest.er1
12314 cat conftest.err >&5
12315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); } >/dev/null && {
12317 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12318 test ! -s conftest.err
12319 }; then
12320 ac_header_preproc=yes
12321else
12322 $as_echo "$as_me: failed program was:" >&5
12323sed 's/^/| /' conftest.$ac_ext >&5
12324
12325 ac_header_preproc=no
12326fi
12327
12328rm -f conftest.err conftest.$ac_ext
12329{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12330$as_echo "$ac_header_preproc" >&6; }
12331
12332# So? What about this header?
12333case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12334 yes:no: )
12335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12336$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12338$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12339 ac_header_preproc=yes
12340 ;;
12341 no:yes:* )
12342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12343$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12345$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12347$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12349$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12351$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12353$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12354
12355 ;;
12356esac
12357{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12358$as_echo_n "checking for $ac_header... " >&6; }
12359if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12360 $as_echo_n "(cached) " >&6
12361else
12362 eval "$as_ac_Header=\$ac_header_preproc"
12363fi
12364ac_res=`eval 'as_val=${'$as_ac_Header'}
12365 $as_echo "$as_val"'`
12366 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12367$as_echo "$ac_res" >&6; }
12368
12369fi
12370if test `eval 'as_val=${'$as_ac_Header'}
12371 $as_echo "$as_val"'` = yes; then
8356 cat >>confdefs.h <<_ACEOF 12372 cat >>confdefs.h <<_ACEOF
8357#define HAVE_PTHREAD_H 1 12373#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8358_ACEOF 12374_ACEOF
8359 12375
8360fi 12376fi
@@ -8362,14 +12378,18 @@ fi
8362done 12378done
8363 12379
8364 if test "$ac_cv_header_pthread_h"; then 12380 if test "$ac_cv_header_pthread_h"; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5 12381 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
8366$as_echo_n "checking for pthread_self in -lpthread... " >&6; } 12382$as_echo_n "checking for pthread_self in -lpthread... " >&6; }
8367if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then : 12383if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
8368 $as_echo_n "(cached) " >&6 12384 $as_echo_n "(cached) " >&6
8369else 12385else
8370 ac_check_lib_save_LIBS=$LIBS 12386 ac_check_lib_save_LIBS=$LIBS
8371LIBS="-lpthread $LIBS" 12387LIBS="-lpthread $LIBS"
8372cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12388cat >conftest.$ac_ext <<_ACEOF
12389/* confdefs.h. */
12390_ACEOF
12391cat confdefs.h >>conftest.$ac_ext
12392cat >>conftest.$ac_ext <<_ACEOF
8373/* end confdefs.h. */ 12393/* end confdefs.h. */
8374 12394
8375/* Override any GCC internal prototype to avoid an error. 12395/* Override any GCC internal prototype to avoid an error.
@@ -8387,18 +12407,43 @@ return pthread_self ();
8387 return 0; 12407 return 0;
8388} 12408}
8389_ACEOF 12409_ACEOF
8390if ac_fn_c_try_link "$LINENO"; then : 12410rm -f conftest.$ac_objext conftest$ac_exeext
12411if { (ac_try="$ac_link"
12412case "(($ac_try" in
12413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12414 *) ac_try_echo=$ac_try;;
12415esac
12416eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12417$as_echo "$ac_try_echo") >&5
12418 (eval "$ac_link") 2>conftest.er1
12419 ac_status=$?
12420 grep -v '^ *+' conftest.er1 >conftest.err
12421 rm -f conftest.er1
12422 cat conftest.err >&5
12423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); } && {
12425 test -z "$ac_c_werror_flag" ||
12426 test ! -s conftest.err
12427 } && test -s conftest$ac_exeext && {
12428 test "$cross_compiling" = yes ||
12429 $as_test_x conftest$ac_exeext
12430 }; then
8391 ac_cv_lib_pthread_pthread_self=yes 12431 ac_cv_lib_pthread_pthread_self=yes
8392else 12432else
8393 ac_cv_lib_pthread_pthread_self=no 12433 $as_echo "$as_me: failed program was:" >&5
12434sed 's/^/| /' conftest.$ac_ext >&5
12435
12436 ac_cv_lib_pthread_pthread_self=no
8394fi 12437fi
8395rm -f core conftest.err conftest.$ac_objext \ 12438
8396 conftest$ac_exeext conftest.$ac_ext 12439rm -rf conftest.dSYM
12440rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12441 conftest$ac_exeext conftest.$ac_ext
8397LIBS=$ac_check_lib_save_LIBS 12442LIBS=$ac_check_lib_save_LIBS
8398fi 12443fi
8399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5 12444{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
8400$as_echo "$ac_cv_lib_pthread_pthread_self" >&6; } 12445$as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
8401if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then : 12446if test $ac_cv_lib_pthread_pthread_self = yes; then
8402 HAVE_GTK_AND_PTHREAD=yes 12447 HAVE_GTK_AND_PTHREAD=yes
8403fi 12448fi
8404 12449
@@ -8409,7 +12454,9 @@ fi
8409 *) GTK_LIBS="$GTK_LIBS -lpthread" ;; 12454 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
8410 esac 12455 esac
8411 12456
8412$as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h 12457cat >>confdefs.h <<\_ACEOF
12458#define HAVE_GTK_AND_PTHREAD 1
12459_ACEOF
8413 12460
8414 fi 12461 fi
8415 fi 12462 fi
@@ -8423,9 +12470,9 @@ if test "${with_dbus}" = "yes"; then
8423 12470
8424 # Extract the first word of "pkg-config", so it can be a program name with args. 12471 # Extract the first word of "pkg-config", so it can be a program name with args.
8425set dummy pkg-config; ac_word=$2 12472set dummy pkg-config; ac_word=$2
8426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12473{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8427$as_echo_n "checking for $ac_word... " >&6; } 12474$as_echo_n "checking for $ac_word... " >&6; }
8428if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 12475if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8429 $as_echo_n "(cached) " >&6 12476 $as_echo_n "(cached) " >&6
8430else 12477else
8431 case $PKG_CONFIG in 12478 case $PKG_CONFIG in
@@ -8438,14 +12485,14 @@ for as_dir in $PATH
8438do 12485do
8439 IFS=$as_save_IFS 12486 IFS=$as_save_IFS
8440 test -z "$as_dir" && as_dir=. 12487 test -z "$as_dir" && as_dir=.
8441 for ac_exec_ext in '' $ac_executable_extensions; do 12488 for ac_exec_ext in '' $ac_executable_extensions; do
8442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8443 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12490 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12491 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8445 break 2 12492 break 2
8446 fi 12493 fi
8447done 12494done
8448 done 12495done
8449IFS=$as_save_IFS 12496IFS=$as_save_IFS
8450 12497
8451 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 12498 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -8454,10 +12501,10 @@ esac
8454fi 12501fi
8455PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12502PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8456if test -n "$PKG_CONFIG"; then 12503if test -n "$PKG_CONFIG"; then
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12504 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8458$as_echo "$PKG_CONFIG" >&6; } 12505$as_echo "$PKG_CONFIG" >&6; }
8459else 12506else
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12507 { $as_echo "$as_me:$LINENO: result: no" >&5
8461$as_echo "no" >&6; } 12508$as_echo "no" >&6; }
8462fi 12509fi
8463 12510
@@ -8468,27 +12515,27 @@ fi
8468 else 12515 else
8469 PKG_CONFIG_MIN_VERSION=0.9.0 12516 PKG_CONFIG_MIN_VERSION=0.9.0
8470 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 12517 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5 12518 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
8472$as_echo_n "checking for dbus-1 >= 1.0... " >&6; } 12519$as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
8473 12520
8474 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then 12521 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12522 { $as_echo "$as_me:$LINENO: result: yes" >&5
8476$as_echo "yes" >&6; } 12523$as_echo "yes" >&6; }
8477 succeeded=yes 12524 succeeded=yes
8478 12525
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5 12526 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
8480$as_echo_n "checking DBUS_CFLAGS... " >&6; } 12527$as_echo_n "checking DBUS_CFLAGS... " >&6; }
8481 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` 12528 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5 12529 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
8483$as_echo "$DBUS_CFLAGS" >&6; } 12530$as_echo "$DBUS_CFLAGS" >&6; }
8484 12531
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5 12532 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
8486$as_echo_n "checking DBUS_LIBS... " >&6; } 12533$as_echo_n "checking DBUS_LIBS... " >&6; }
8487 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` 12534 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5 12535 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
8489$as_echo "$DBUS_LIBS" >&6; } 12536$as_echo "$DBUS_LIBS" >&6; }
8490 else 12537 else
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12538 { $as_echo "$as_me:$LINENO: result: no" >&5
8492$as_echo "no" >&6; } 12539$as_echo "no" >&6; }
8493 DBUS_CFLAGS="" 12540 DBUS_CFLAGS=""
8494 DBUS_LIBS="" 12541 DBUS_LIBS=""
@@ -8515,14 +12562,105 @@ $as_echo "no" >&6; }
8515 if test "$HAVE_DBUS" = yes; then 12562 if test "$HAVE_DBUS" = yes; then
8516 LIBS="$LIBS $DBUS_LIBS" 12563 LIBS="$LIBS $DBUS_LIBS"
8517 12564
8518$as_echo "#define HAVE_DBUS 1" >>confdefs.h 12565cat >>confdefs.h <<\_ACEOF
12566#define HAVE_DBUS 1
12567_ACEOF
12568
8519 12569
8520 for ac_func in dbus_watch_get_unix_fd 12570for ac_func in dbus_watch_get_unix_fd
8521do : 12571do
8522 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd" 12572as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8523if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then : 12573{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12574$as_echo_n "checking for $ac_func... " >&6; }
12575if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12576 $as_echo_n "(cached) " >&6
12577else
12578 cat >conftest.$ac_ext <<_ACEOF
12579/* confdefs.h. */
12580_ACEOF
12581cat confdefs.h >>conftest.$ac_ext
12582cat >>conftest.$ac_ext <<_ACEOF
12583/* end confdefs.h. */
12584/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12586#define $ac_func innocuous_$ac_func
12587
12588/* System header to define __stub macros and hopefully few prototypes,
12589 which can conflict with char $ac_func (); below.
12590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12591 <limits.h> exists even on freestanding compilers. */
12592
12593#ifdef __STDC__
12594# include <limits.h>
12595#else
12596# include <assert.h>
12597#endif
12598
12599#undef $ac_func
12600
12601/* Override any GCC internal prototype to avoid an error.
12602 Use char because int might match the return type of a GCC
12603 builtin and then its argument prototype would still apply. */
12604#ifdef __cplusplus
12605extern "C"
12606#endif
12607char $ac_func ();
12608/* The GNU C library defines this for functions which it implements
12609 to always fail with ENOSYS. Some functions are actually named
12610 something starting with __ and the normal name is an alias. */
12611#if defined __stub_$ac_func || defined __stub___$ac_func
12612choke me
12613#endif
12614
12615int
12616main ()
12617{
12618return $ac_func ();
12619 ;
12620 return 0;
12621}
12622_ACEOF
12623rm -f conftest.$ac_objext conftest$ac_exeext
12624if { (ac_try="$ac_link"
12625case "(($ac_try" in
12626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12627 *) ac_try_echo=$ac_try;;
12628esac
12629eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12630$as_echo "$ac_try_echo") >&5
12631 (eval "$ac_link") 2>conftest.er1
12632 ac_status=$?
12633 grep -v '^ *+' conftest.er1 >conftest.err
12634 rm -f conftest.er1
12635 cat conftest.err >&5
12636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } && {
12638 test -z "$ac_c_werror_flag" ||
12639 test ! -s conftest.err
12640 } && test -s conftest$ac_exeext && {
12641 test "$cross_compiling" = yes ||
12642 $as_test_x conftest$ac_exeext
12643 }; then
12644 eval "$as_ac_var=yes"
12645else
12646 $as_echo "$as_me: failed program was:" >&5
12647sed 's/^/| /' conftest.$ac_ext >&5
12648
12649 eval "$as_ac_var=no"
12650fi
12651
12652rm -rf conftest.dSYM
12653rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12654 conftest$ac_exeext conftest.$ac_ext
12655fi
12656ac_res=`eval 'as_val=${'$as_ac_var'}
12657 $as_echo "$as_val"'`
12658 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12659$as_echo "$ac_res" >&6; }
12660if test `eval 'as_val=${'$as_ac_var'}
12661 $as_echo "$as_val"'` = yes; then
8524 cat >>confdefs.h <<_ACEOF 12662 cat >>confdefs.h <<_ACEOF
8525#define HAVE_DBUS_WATCH_GET_UNIX_FD 1 12663#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8526_ACEOF 12664_ACEOF
8527 12665
8528fi 12666fi
@@ -8540,9 +12678,9 @@ if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
8540 12678
8541 # Extract the first word of "pkg-config", so it can be a program name with args. 12679 # Extract the first word of "pkg-config", so it can be a program name with args.
8542set dummy pkg-config; ac_word=$2 12680set dummy pkg-config; ac_word=$2
8543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12681{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8544$as_echo_n "checking for $ac_word... " >&6; } 12682$as_echo_n "checking for $ac_word... " >&6; }
8545if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 12683if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8546 $as_echo_n "(cached) " >&6 12684 $as_echo_n "(cached) " >&6
8547else 12685else
8548 case $PKG_CONFIG in 12686 case $PKG_CONFIG in
@@ -8555,14 +12693,14 @@ for as_dir in $PATH
8555do 12693do
8556 IFS=$as_save_IFS 12694 IFS=$as_save_IFS
8557 test -z "$as_dir" && as_dir=. 12695 test -z "$as_dir" && as_dir=.
8558 for ac_exec_ext in '' $ac_executable_extensions; do 12696 for ac_exec_ext in '' $ac_executable_extensions; do
8559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8560 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12698 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12699 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8562 break 2 12700 break 2
8563 fi 12701 fi
8564done 12702done
8565 done 12703done
8566IFS=$as_save_IFS 12704IFS=$as_save_IFS
8567 12705
8568 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 12706 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -8571,10 +12709,10 @@ esac
8571fi 12709fi
8572PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12710PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8573if test -n "$PKG_CONFIG"; then 12711if test -n "$PKG_CONFIG"; then
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12712 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8575$as_echo "$PKG_CONFIG" >&6; } 12713$as_echo "$PKG_CONFIG" >&6; }
8576else 12714else
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12715 { $as_echo "$as_me:$LINENO: result: no" >&5
8578$as_echo "no" >&6; } 12716$as_echo "no" >&6; }
8579fi 12717fi
8580 12718
@@ -8585,27 +12723,27 @@ fi
8585 else 12723 else
8586 PKG_CONFIG_MIN_VERSION=0.9.0 12724 PKG_CONFIG_MIN_VERSION=0.9.0
8587 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 12725 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5 12726 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
8589$as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; } 12727$as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
8590 12728
8591 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then 12729 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12730 { $as_echo "$as_me:$LINENO: result: yes" >&5
8593$as_echo "yes" >&6; } 12731$as_echo "yes" >&6; }
8594 succeeded=yes 12732 succeeded=yes
8595 12733
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5 12734 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
8597$as_echo_n "checking GCONF_CFLAGS... " >&6; } 12735$as_echo_n "checking GCONF_CFLAGS... " >&6; }
8598 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` 12736 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5 12737 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
8600$as_echo "$GCONF_CFLAGS" >&6; } 12738$as_echo "$GCONF_CFLAGS" >&6; }
8601 12739
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5 12740 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
8603$as_echo_n "checking GCONF_LIBS... " >&6; } 12741$as_echo_n "checking GCONF_LIBS... " >&6; }
8604 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` 12742 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5 12743 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
8606$as_echo "$GCONF_LIBS" >&6; } 12744$as_echo "$GCONF_LIBS" >&6; }
8607 else 12745 else
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12746 { $as_echo "$as_me:$LINENO: result: no" >&5
8609$as_echo "no" >&6; } 12747$as_echo "no" >&6; }
8610 GCONF_CFLAGS="" 12748 GCONF_CFLAGS=""
8611 GCONF_LIBS="" 12749 GCONF_LIBS=""
@@ -8631,7 +12769,9 @@ $as_echo "no" >&6; }
8631 12769
8632 if test "$HAVE_GCONF" = yes; then 12770 if test "$HAVE_GCONF" = yes; then
8633 12771
8634$as_echo "#define HAVE_GCONF 1" >>confdefs.h 12772cat >>confdefs.h <<\_ACEOF
12773#define HAVE_GCONF 1
12774_ACEOF
8635 12775
8636 fi 12776 fi
8637fi 12777fi
@@ -8639,14 +12779,18 @@ fi
8639HAVE_LIBSELINUX=no 12779HAVE_LIBSELINUX=no
8640LIBSELINUX_LIBS= 12780LIBSELINUX_LIBS=
8641if test "${with_selinux}" = "yes"; then 12781if test "${with_selinux}" = "yes"; then
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5 12782 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
8643$as_echo_n "checking for lgetfilecon in -lselinux... " >&6; } 12783$as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
8644if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then : 12784if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
8645 $as_echo_n "(cached) " >&6 12785 $as_echo_n "(cached) " >&6
8646else 12786else
8647 ac_check_lib_save_LIBS=$LIBS 12787 ac_check_lib_save_LIBS=$LIBS
8648LIBS="-lselinux $LIBS" 12788LIBS="-lselinux $LIBS"
8649cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12789cat >conftest.$ac_ext <<_ACEOF
12790/* confdefs.h. */
12791_ACEOF
12792cat confdefs.h >>conftest.$ac_ext
12793cat >>conftest.$ac_ext <<_ACEOF
8650/* end confdefs.h. */ 12794/* end confdefs.h. */
8651 12795
8652/* Override any GCC internal prototype to avoid an error. 12796/* Override any GCC internal prototype to avoid an error.
@@ -8664,18 +12808,43 @@ return lgetfilecon ();
8664 return 0; 12808 return 0;
8665} 12809}
8666_ACEOF 12810_ACEOF
8667if ac_fn_c_try_link "$LINENO"; then : 12811rm -f conftest.$ac_objext conftest$ac_exeext
12812if { (ac_try="$ac_link"
12813case "(($ac_try" in
12814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12815 *) ac_try_echo=$ac_try;;
12816esac
12817eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12818$as_echo "$ac_try_echo") >&5
12819 (eval "$ac_link") 2>conftest.er1
12820 ac_status=$?
12821 grep -v '^ *+' conftest.er1 >conftest.err
12822 rm -f conftest.er1
12823 cat conftest.err >&5
12824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); } && {
12826 test -z "$ac_c_werror_flag" ||
12827 test ! -s conftest.err
12828 } && test -s conftest$ac_exeext && {
12829 test "$cross_compiling" = yes ||
12830 $as_test_x conftest$ac_exeext
12831 }; then
8668 ac_cv_lib_selinux_lgetfilecon=yes 12832 ac_cv_lib_selinux_lgetfilecon=yes
8669else 12833else
8670 ac_cv_lib_selinux_lgetfilecon=no 12834 $as_echo "$as_me: failed program was:" >&5
12835sed 's/^/| /' conftest.$ac_ext >&5
12836
12837 ac_cv_lib_selinux_lgetfilecon=no
8671fi 12838fi
8672rm -f core conftest.err conftest.$ac_objext \ 12839
8673 conftest$ac_exeext conftest.$ac_ext 12840rm -rf conftest.dSYM
12841rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12842 conftest$ac_exeext conftest.$ac_ext
8674LIBS=$ac_check_lib_save_LIBS 12843LIBS=$ac_check_lib_save_LIBS
8675fi 12844fi
8676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5 12845{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
8677$as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; } 12846$as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
8678if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then : 12847if test $ac_cv_lib_selinux_lgetfilecon = yes; then
8679 HAVE_LIBSELINUX=yes 12848 HAVE_LIBSELINUX=yes
8680else 12849else
8681 HAVE_LIBSELINUX=no 12850 HAVE_LIBSELINUX=no
@@ -8683,7 +12852,9 @@ fi
8683 12852
8684 if test "$HAVE_LIBSELINUX" = yes; then 12853 if test "$HAVE_LIBSELINUX" = yes; then
8685 12854
8686$as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h 12855cat >>confdefs.h <<\_ACEOF
12856#define HAVE_LIBSELINUX 1
12857_ACEOF
8687 12858
8688 LIBSELINUX_LIBS=-lselinux 12859 LIBSELINUX_LIBS=-lselinux
8689 fi 12860 fi
@@ -8694,12 +12865,16 @@ HAVE_XAW3D=no
8694LUCID_LIBW= 12865LUCID_LIBW=
8695if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then 12866if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
8696 if test "$with_xaw3d" != no; then 12867 if test "$with_xaw3d" != no; then
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5 12868 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
8698$as_echo_n "checking for xaw3d... " >&6; } 12869$as_echo_n "checking for xaw3d... " >&6; }
8699 if test "${emacs_cv_xaw3d+set}" = set; then : 12870 if test "${emacs_cv_xaw3d+set}" = set; then
8700 $as_echo_n "(cached) " >&6 12871 $as_echo_n "(cached) " >&6
8701else 12872else
8702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12873 cat >conftest.$ac_ext <<_ACEOF
12874/* confdefs.h. */
12875_ACEOF
12876cat confdefs.h >>conftest.$ac_ext
12877cat >>conftest.$ac_ext <<_ACEOF
8703/* end confdefs.h. */ 12878/* end confdefs.h. */
8704 12879
8705#include <X11/Intrinsic.h> 12880#include <X11/Intrinsic.h>
@@ -8712,36 +12887,67 @@ main ()
8712 return 0; 12887 return 0;
8713} 12888}
8714_ACEOF 12889_ACEOF
8715if ac_fn_c_try_link "$LINENO"; then : 12890rm -f conftest.$ac_objext conftest$ac_exeext
12891if { (ac_try="$ac_link"
12892case "(($ac_try" in
12893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894 *) ac_try_echo=$ac_try;;
12895esac
12896eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12897$as_echo "$ac_try_echo") >&5
12898 (eval "$ac_link") 2>conftest.er1
12899 ac_status=$?
12900 grep -v '^ *+' conftest.er1 >conftest.err
12901 rm -f conftest.er1
12902 cat conftest.err >&5
12903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); } && {
12905 test -z "$ac_c_werror_flag" ||
12906 test ! -s conftest.err
12907 } && test -s conftest$ac_exeext && {
12908 test "$cross_compiling" = yes ||
12909 $as_test_x conftest$ac_exeext
12910 }; then
8716 emacs_cv_xaw3d=yes 12911 emacs_cv_xaw3d=yes
8717else 12912else
8718 emacs_cv_xaw3d=no 12913 $as_echo "$as_me: failed program was:" >&5
12914sed 's/^/| /' conftest.$ac_ext >&5
12915
12916 emacs_cv_xaw3d=no
8719fi 12917fi
8720rm -f core conftest.err conftest.$ac_objext \ 12918
8721 conftest$ac_exeext conftest.$ac_ext 12919rm -rf conftest.dSYM
12920rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12921 conftest$ac_exeext conftest.$ac_ext
8722fi 12922fi
8723 12923
8724 else 12924 else
8725 emacs_cv_xaw3d=no 12925 emacs_cv_xaw3d=no
8726 fi 12926 fi
8727 if test $emacs_cv_xaw3d = yes; then 12927 if test $emacs_cv_xaw3d = yes; then
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5 12928 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
8729$as_echo "yes; using Lucid toolkit" >&6; } 12929$as_echo "yes; using Lucid toolkit" >&6; }
8730 USE_X_TOOLKIT=LUCID 12930 USE_X_TOOLKIT=LUCID
8731 HAVE_XAW3D=yes 12931 HAVE_XAW3D=yes
8732 LUCID_LIBW=-lXaw3d 12932 LUCID_LIBW=-lXaw3d
8733 12933
8734$as_echo "#define HAVE_XAW3D 1" >>confdefs.h 12934cat >>confdefs.h <<\_ACEOF
12935#define HAVE_XAW3D 1
12936_ACEOF
8735 12937
8736 else 12938 else
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12939 { $as_echo "$as_me:$LINENO: result: no" >&5
8738$as_echo "no" >&6; } 12940$as_echo "no" >&6; }
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5 12941 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
8740$as_echo_n "checking for libXaw... " >&6; } 12942$as_echo_n "checking for libXaw... " >&6; }
8741 if test "${emacs_cv_xaw+set}" = set; then : 12943 if test "${emacs_cv_xaw+set}" = set; then
8742 $as_echo_n "(cached) " >&6 12944 $as_echo_n "(cached) " >&6
8743else 12945else
8744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12946 cat >conftest.$ac_ext <<_ACEOF
12947/* confdefs.h. */
12948_ACEOF
12949cat confdefs.h >>conftest.$ac_ext
12950cat >>conftest.$ac_ext <<_ACEOF
8745/* end confdefs.h. */ 12951/* end confdefs.h. */
8746 12952
8747#include <X11/Intrinsic.h> 12953#include <X11/Intrinsic.h>
@@ -8754,24 +12960,51 @@ main ()
8754 return 0; 12960 return 0;
8755} 12961}
8756_ACEOF 12962_ACEOF
8757if ac_fn_c_try_link "$LINENO"; then : 12963rm -f conftest.$ac_objext conftest$ac_exeext
12964if { (ac_try="$ac_link"
12965case "(($ac_try" in
12966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12967 *) ac_try_echo=$ac_try;;
12968esac
12969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12970$as_echo "$ac_try_echo") >&5
12971 (eval "$ac_link") 2>conftest.er1
12972 ac_status=$?
12973 grep -v '^ *+' conftest.er1 >conftest.err
12974 rm -f conftest.er1
12975 cat conftest.err >&5
12976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } && {
12978 test -z "$ac_c_werror_flag" ||
12979 test ! -s conftest.err
12980 } && test -s conftest$ac_exeext && {
12981 test "$cross_compiling" = yes ||
12982 $as_test_x conftest$ac_exeext
12983 }; then
8758 emacs_cv_xaw=yes 12984 emacs_cv_xaw=yes
8759else 12985else
8760 emacs_cv_xaw=no 12986 $as_echo "$as_me: failed program was:" >&5
12987sed 's/^/| /' conftest.$ac_ext >&5
12988
12989 emacs_cv_xaw=no
8761fi 12990fi
8762rm -f core conftest.err conftest.$ac_objext \ 12991
8763 conftest$ac_exeext conftest.$ac_ext 12992rm -rf conftest.dSYM
12993rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12994 conftest$ac_exeext conftest.$ac_ext
8764fi 12995fi
8765 12996
8766 if test $emacs_cv_xaw = yes; then 12997 if test $emacs_cv_xaw = yes; then
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5 12998 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
8768$as_echo "yes; using Lucid toolkit" >&6; } 12999$as_echo "yes; using Lucid toolkit" >&6; }
8769 USE_X_TOOLKIT=LUCID 13000 USE_X_TOOLKIT=LUCID
8770 LUCID_LIBW=-lXaw 13001 LUCID_LIBW=-lXaw
8771 elif test x"${USE_X_TOOLKIT}" = xLUCID; then 13002 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
8772 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5 13003 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
13004$as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
13005 { (exit 1); exit 1; }; }
8773 else 13006 else
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5 13007 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
8775$as_echo "no; do not use toolkit by default" >&6; } 13008$as_echo "no; do not use toolkit by default" >&6; }
8776 USE_X_TOOLKIT=none 13009 USE_X_TOOLKIT=none
8777 fi 13010 fi
@@ -8782,12 +13015,16 @@ fi
8782X_TOOLKIT_TYPE=$USE_X_TOOLKIT 13015X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8783 13016
8784if test "${USE_X_TOOLKIT}" != "none"; then 13017if test "${USE_X_TOOLKIT}" != "none"; then
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5 13018 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8786$as_echo_n "checking X11 toolkit version... " >&6; } 13019$as_echo_n "checking X11 toolkit version... " >&6; }
8787 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then : 13020 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8788 $as_echo_n "(cached) " >&6 13021 $as_echo_n "(cached) " >&6
8789else 13022else
8790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13023 cat >conftest.$ac_ext <<_ACEOF
13024/* confdefs.h. */
13025_ACEOF
13026cat confdefs.h >>conftest.$ac_ext
13027cat >>conftest.$ac_ext <<_ACEOF
8791/* end confdefs.h. */ 13028/* end confdefs.h. */
8792#include <X11/Intrinsic.h> 13029#include <X11/Intrinsic.h>
8793int 13030int
@@ -8801,24 +13038,51 @@ fail;
8801 return 0; 13038 return 0;
8802} 13039}
8803_ACEOF 13040_ACEOF
8804if ac_fn_c_try_link "$LINENO"; then : 13041rm -f conftest.$ac_objext conftest$ac_exeext
13042if { (ac_try="$ac_link"
13043case "(($ac_try" in
13044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045 *) ac_try_echo=$ac_try;;
13046esac
13047eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13048$as_echo "$ac_try_echo") >&5
13049 (eval "$ac_link") 2>conftest.er1
13050 ac_status=$?
13051 grep -v '^ *+' conftest.er1 >conftest.err
13052 rm -f conftest.er1
13053 cat conftest.err >&5
13054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); } && {
13056 test -z "$ac_c_werror_flag" ||
13057 test ! -s conftest.err
13058 } && test -s conftest$ac_exeext && {
13059 test "$cross_compiling" = yes ||
13060 $as_test_x conftest$ac_exeext
13061 }; then
8805 emacs_cv_x11_toolkit_version_6=yes 13062 emacs_cv_x11_toolkit_version_6=yes
8806else 13063else
8807 emacs_cv_x11_toolkit_version_6=no 13064 $as_echo "$as_me: failed program was:" >&5
13065sed 's/^/| /' conftest.$ac_ext >&5
13066
13067 emacs_cv_x11_toolkit_version_6=no
8808fi 13068fi
8809rm -f core conftest.err conftest.$ac_objext \ 13069
8810 conftest$ac_exeext conftest.$ac_ext 13070rm -rf conftest.dSYM
13071rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13072 conftest$ac_exeext conftest.$ac_ext
8811fi 13073fi
8812 13074
8813 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 13075 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8814 if test $emacs_cv_x11_toolkit_version_6 = yes; then 13076 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5 13077 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
8816$as_echo "6 or newer" >&6; } 13078$as_echo "6 or newer" >&6; }
8817 13079
8818$as_echo "#define HAVE_X11XTR6 1" >>confdefs.h 13080cat >>confdefs.h <<\_ACEOF
13081#define HAVE_X11XTR6 1
13082_ACEOF
8819 13083
8820 else 13084 else
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5 13085 { $as_echo "$as_me:$LINENO: result: before 6" >&5
8822$as_echo "before 6" >&6; } 13086$as_echo "before 6" >&6; }
8823 fi 13087 fi
8824 13088
@@ -8828,14 +13092,19 @@ $as_echo "before 6" >&6; }
8828 else 13092 else
8829 LIBS="-lXt $LIBS" 13093 LIBS="-lXt $LIBS"
8830 fi 13094 fi
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5 13095
13096{ $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8832$as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; } 13097$as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
8833if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then : 13098if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8834 $as_echo_n "(cached) " >&6 13099 $as_echo_n "(cached) " >&6
8835else 13100else
8836 ac_check_lib_save_LIBS=$LIBS 13101 ac_check_lib_save_LIBS=$LIBS
8837LIBS="-lXmu $LIBS" 13102LIBS="-lXmu $LIBS"
8838cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13103cat >conftest.$ac_ext <<_ACEOF
13104/* confdefs.h. */
13105_ACEOF
13106cat confdefs.h >>conftest.$ac_ext
13107cat >>conftest.$ac_ext <<_ACEOF
8839/* end confdefs.h. */ 13108/* end confdefs.h. */
8840 13109
8841/* Override any GCC internal prototype to avoid an error. 13110/* Override any GCC internal prototype to avoid an error.
@@ -8853,18 +13122,43 @@ return XmuConvertStandardSelection ();
8853 return 0; 13122 return 0;
8854} 13123}
8855_ACEOF 13124_ACEOF
8856if ac_fn_c_try_link "$LINENO"; then : 13125rm -f conftest.$ac_objext conftest$ac_exeext
13126if { (ac_try="$ac_link"
13127case "(($ac_try" in
13128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13129 *) ac_try_echo=$ac_try;;
13130esac
13131eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13132$as_echo "$ac_try_echo") >&5
13133 (eval "$ac_link") 2>conftest.er1
13134 ac_status=$?
13135 grep -v '^ *+' conftest.er1 >conftest.err
13136 rm -f conftest.er1
13137 cat conftest.err >&5
13138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } && {
13140 test -z "$ac_c_werror_flag" ||
13141 test ! -s conftest.err
13142 } && test -s conftest$ac_exeext && {
13143 test "$cross_compiling" = yes ||
13144 $as_test_x conftest$ac_exeext
13145 }; then
8857 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes 13146 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
8858else 13147else
8859 ac_cv_lib_Xmu_XmuConvertStandardSelection=no 13148 $as_echo "$as_me: failed program was:" >&5
13149sed 's/^/| /' conftest.$ac_ext >&5
13150
13151 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
8860fi 13152fi
8861rm -f core conftest.err conftest.$ac_objext \ 13153
8862 conftest$ac_exeext conftest.$ac_ext 13154rm -rf conftest.dSYM
13155rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13156 conftest$ac_exeext conftest.$ac_ext
8863LIBS=$ac_check_lib_save_LIBS 13157LIBS=$ac_check_lib_save_LIBS
8864fi 13158fi
8865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 13159{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8866$as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; } 13160$as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
8867if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then : 13161if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8868 cat >>confdefs.h <<_ACEOF 13162 cat >>confdefs.h <<_ACEOF
8869#define HAVE_LIBXMU 1 13163#define HAVE_LIBXMU 1
8870_ACEOF 13164_ACEOF
@@ -8879,14 +13173,19 @@ fi
8879# On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. 13173# On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8880if test "${HAVE_X11}" = "yes"; then 13174if test "${HAVE_X11}" = "yes"; then
8881 if test "${USE_X_TOOLKIT}" != "none"; then 13175 if test "${USE_X_TOOLKIT}" != "none"; then
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 13176
13177{ $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8883$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } 13178$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8884if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then : 13179if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8885 $as_echo_n "(cached) " >&6 13180 $as_echo_n "(cached) " >&6
8886else 13181else
8887 ac_check_lib_save_LIBS=$LIBS 13182 ac_check_lib_save_LIBS=$LIBS
8888LIBS="-lXext $LIBS" 13183LIBS="-lXext $LIBS"
8889cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13184cat >conftest.$ac_ext <<_ACEOF
13185/* confdefs.h. */
13186_ACEOF
13187cat confdefs.h >>conftest.$ac_ext
13188cat >>conftest.$ac_ext <<_ACEOF
8890/* end confdefs.h. */ 13189/* end confdefs.h. */
8891 13190
8892/* Override any GCC internal prototype to avoid an error. 13191/* Override any GCC internal prototype to avoid an error.
@@ -8904,18 +13203,43 @@ return XShapeQueryExtension ();
8904 return 0; 13203 return 0;
8905} 13204}
8906_ACEOF 13205_ACEOF
8907if ac_fn_c_try_link "$LINENO"; then : 13206rm -f conftest.$ac_objext conftest$ac_exeext
13207if { (ac_try="$ac_link"
13208case "(($ac_try" in
13209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210 *) ac_try_echo=$ac_try;;
13211esac
13212eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13213$as_echo "$ac_try_echo") >&5
13214 (eval "$ac_link") 2>conftest.er1
13215 ac_status=$?
13216 grep -v '^ *+' conftest.er1 >conftest.err
13217 rm -f conftest.er1
13218 cat conftest.err >&5
13219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); } && {
13221 test -z "$ac_c_werror_flag" ||
13222 test ! -s conftest.err
13223 } && test -s conftest$ac_exeext && {
13224 test "$cross_compiling" = yes ||
13225 $as_test_x conftest$ac_exeext
13226 }; then
8908 ac_cv_lib_Xext_XShapeQueryExtension=yes 13227 ac_cv_lib_Xext_XShapeQueryExtension=yes
8909else 13228else
8910 ac_cv_lib_Xext_XShapeQueryExtension=no 13229 $as_echo "$as_me: failed program was:" >&5
13230sed 's/^/| /' conftest.$ac_ext >&5
13231
13232 ac_cv_lib_Xext_XShapeQueryExtension=no
8911fi 13233fi
8912rm -f core conftest.err conftest.$ac_objext \ 13234
8913 conftest$ac_exeext conftest.$ac_ext 13235rm -rf conftest.dSYM
13236rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13237 conftest$ac_exeext conftest.$ac_ext
8914LIBS=$ac_check_lib_save_LIBS 13238LIBS=$ac_check_lib_save_LIBS
8915fi 13239fi
8916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 13240{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8917$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } 13241$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8918if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then : 13242if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8919 cat >>confdefs.h <<_ACEOF 13243 cat >>confdefs.h <<_ACEOF
8920#define HAVE_LIBXEXT 1 13244#define HAVE_LIBXEXT 1
8921_ACEOF 13245_ACEOF
@@ -8929,12 +13253,16 @@ fi
8929 13253
8930LIBXP= 13254LIBXP=
8931if test "${USE_X_TOOLKIT}" = "MOTIF"; then 13255if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5 13256 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8933$as_echo_n "checking for Motif version 2.1... " >&6; } 13257$as_echo_n "checking for Motif version 2.1... " >&6; }
8934if test "${emacs_cv_motif_version_2_1+set}" = set; then : 13258if test "${emacs_cv_motif_version_2_1+set}" = set; then
8935 $as_echo_n "(cached) " >&6 13259 $as_echo_n "(cached) " >&6
8936else 13260else
8937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13261 cat >conftest.$ac_ext <<_ACEOF
13262/* confdefs.h. */
13263_ACEOF
13264cat confdefs.h >>conftest.$ac_ext
13265cat >>conftest.$ac_ext <<_ACEOF
8938/* end confdefs.h. */ 13266/* end confdefs.h. */
8939#include <Xm/Xm.h> 13267#include <Xm/Xm.h>
8940int 13268int
@@ -8949,25 +13277,50 @@ Motif version prior to 2.1.
8949 return 0; 13277 return 0;
8950} 13278}
8951_ACEOF 13279_ACEOF
8952if ac_fn_c_try_compile "$LINENO"; then : 13280rm -f conftest.$ac_objext
13281if { (ac_try="$ac_compile"
13282case "(($ac_try" in
13283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13284 *) ac_try_echo=$ac_try;;
13285esac
13286eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13287$as_echo "$ac_try_echo") >&5
13288 (eval "$ac_compile") 2>conftest.er1
13289 ac_status=$?
13290 grep -v '^ *+' conftest.er1 >conftest.err
13291 rm -f conftest.er1
13292 cat conftest.err >&5
13293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); } && {
13295 test -z "$ac_c_werror_flag" ||
13296 test ! -s conftest.err
13297 } && test -s conftest.$ac_objext; then
8953 emacs_cv_motif_version_2_1=yes 13298 emacs_cv_motif_version_2_1=yes
8954else 13299else
8955 emacs_cv_motif_version_2_1=no 13300 $as_echo "$as_me: failed program was:" >&5
13301sed 's/^/| /' conftest.$ac_ext >&5
13302
13303 emacs_cv_motif_version_2_1=no
8956fi 13304fi
13305
8957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8958fi 13307fi
8959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5 13308{ $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8960$as_echo "$emacs_cv_motif_version_2_1" >&6; } 13309$as_echo "$emacs_cv_motif_version_2_1" >&6; }
8961 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 13310 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
8962 if test $emacs_cv_motif_version_2_1 = yes; then 13311 if test $emacs_cv_motif_version_2_1 = yes; then
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5 13312 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8964$as_echo_n "checking for XpCreateContext in -lXp... " >&6; } 13313$as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
8965if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then : 13314if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8966 $as_echo_n "(cached) " >&6 13315 $as_echo_n "(cached) " >&6
8967else 13316else
8968 ac_check_lib_save_LIBS=$LIBS 13317 ac_check_lib_save_LIBS=$LIBS
8969LIBS="-lXp $LIBS" 13318LIBS="-lXp $LIBS"
8970cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13319cat >conftest.$ac_ext <<_ACEOF
13320/* confdefs.h. */
13321_ACEOF
13322cat confdefs.h >>conftest.$ac_ext
13323cat >>conftest.$ac_ext <<_ACEOF
8971/* end confdefs.h. */ 13324/* end confdefs.h. */
8972 13325
8973/* Override any GCC internal prototype to avoid an error. 13326/* Override any GCC internal prototype to avoid an error.
@@ -8985,25 +13338,50 @@ return XpCreateContext ();
8985 return 0; 13338 return 0;
8986} 13339}
8987_ACEOF 13340_ACEOF
8988if ac_fn_c_try_link "$LINENO"; then : 13341rm -f conftest.$ac_objext conftest$ac_exeext
13342if { (ac_try="$ac_link"
13343case "(($ac_try" in
13344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13345 *) ac_try_echo=$ac_try;;
13346esac
13347eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13348$as_echo "$ac_try_echo") >&5
13349 (eval "$ac_link") 2>conftest.er1
13350 ac_status=$?
13351 grep -v '^ *+' conftest.er1 >conftest.err
13352 rm -f conftest.er1
13353 cat conftest.err >&5
13354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); } && {
13356 test -z "$ac_c_werror_flag" ||
13357 test ! -s conftest.err
13358 } && test -s conftest$ac_exeext && {
13359 test "$cross_compiling" = yes ||
13360 $as_test_x conftest$ac_exeext
13361 }; then
8989 ac_cv_lib_Xp_XpCreateContext=yes 13362 ac_cv_lib_Xp_XpCreateContext=yes
8990else 13363else
8991 ac_cv_lib_Xp_XpCreateContext=no 13364 $as_echo "$as_me: failed program was:" >&5
13365sed 's/^/| /' conftest.$ac_ext >&5
13366
13367 ac_cv_lib_Xp_XpCreateContext=no
8992fi 13368fi
8993rm -f core conftest.err conftest.$ac_objext \ 13369
8994 conftest$ac_exeext conftest.$ac_ext 13370rm -rf conftest.dSYM
13371rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13372 conftest$ac_exeext conftest.$ac_ext
8995LIBS=$ac_check_lib_save_LIBS 13373LIBS=$ac_check_lib_save_LIBS
8996fi 13374fi
8997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5 13375{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8998$as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; } 13376$as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
8999if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then : 13377if test $ac_cv_lib_Xp_XpCreateContext = yes; then
9000 LIBXP=-lXp 13378 LIBXP=-lXp
9001fi 13379fi
9002 13380
9003 else 13381 else
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5 13382 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
9005$as_echo_n "checking for LessTif where some systems put it... " >&6; } 13383$as_echo_n "checking for LessTif where some systems put it... " >&6; }
9006if test "${emacs_cv_lesstif+set}" = set; then : 13384if test "${emacs_cv_lesstif+set}" = set; then
9007 $as_echo_n "(cached) " >&6 13385 $as_echo_n "(cached) " >&6
9008else 13386else
9009 # We put this in CFLAGS temporarily to precede other -I options 13387 # We put this in CFLAGS temporarily to precede other -I options
@@ -9013,7 +13391,11 @@ else
9013 OLD_CFLAGS=$CFLAGS 13391 OLD_CFLAGS=$CFLAGS
9014 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" 13392 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9015 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" 13393 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13394 cat >conftest.$ac_ext <<_ACEOF
13395/* confdefs.h. */
13396_ACEOF
13397cat confdefs.h >>conftest.$ac_ext
13398cat >>conftest.$ac_ext <<_ACEOF
9017/* end confdefs.h. */ 13399/* end confdefs.h. */
9018#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h> 13400#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9019int 13401int
@@ -9024,14 +13406,35 @@ int x = 5;
9024 return 0; 13406 return 0;
9025} 13407}
9026_ACEOF 13408_ACEOF
9027if ac_fn_c_try_compile "$LINENO"; then : 13409rm -f conftest.$ac_objext
13410if { (ac_try="$ac_compile"
13411case "(($ac_try" in
13412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13413 *) ac_try_echo=$ac_try;;
13414esac
13415eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13416$as_echo "$ac_try_echo") >&5
13417 (eval "$ac_compile") 2>conftest.er1
13418 ac_status=$?
13419 grep -v '^ *+' conftest.er1 >conftest.err
13420 rm -f conftest.er1
13421 cat conftest.err >&5
13422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); } && {
13424 test -z "$ac_c_werror_flag" ||
13425 test ! -s conftest.err
13426 } && test -s conftest.$ac_objext; then
9028 emacs_cv_lesstif=yes 13427 emacs_cv_lesstif=yes
9029else 13428else
9030 emacs_cv_lesstif=no 13429 $as_echo "$as_me: failed program was:" >&5
13430sed 's/^/| /' conftest.$ac_ext >&5
13431
13432 emacs_cv_lesstif=no
9031fi 13433fi
13434
9032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9033fi 13436fi
9034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5 13437{ $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
9035$as_echo "$emacs_cv_lesstif" >&6; } 13438$as_echo "$emacs_cv_lesstif" >&6; }
9036 if test $emacs_cv_lesstif = yes; then 13439 if test $emacs_cv_lesstif = yes; then
9037 # Make sure this -I option remains in CPPFLAGS after it is set 13440 # Make sure this -I option remains in CPPFLAGS after it is set
@@ -9050,31 +13453,44 @@ fi
9050 13453
9051 13454
9052 13455
13456
9053USE_TOOLKIT_SCROLL_BARS=no 13457USE_TOOLKIT_SCROLL_BARS=no
9054if test "${with_toolkit_scroll_bars}" != "no"; then 13458if test "${with_toolkit_scroll_bars}" != "no"; then
9055 if test "${USE_X_TOOLKIT}" != "none"; then 13459 if test "${USE_X_TOOLKIT}" != "none"; then
9056 if test "${USE_X_TOOLKIT}" = "MOTIF"; then 13460 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9057 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h 13461 cat >>confdefs.h <<\_ACEOF
13462#define USE_TOOLKIT_SCROLL_BARS 1
13463_ACEOF
9058 13464
9059 HAVE_XAW3D=no 13465 HAVE_XAW3D=no
9060 USE_TOOLKIT_SCROLL_BARS=yes 13466 USE_TOOLKIT_SCROLL_BARS=yes
9061 elif test "${HAVE_XAW3D}" = "yes"; then 13467 elif test "${HAVE_XAW3D}" = "yes"; then
9062 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h 13468 cat >>confdefs.h <<\_ACEOF
13469#define USE_TOOLKIT_SCROLL_BARS 1
13470_ACEOF
9063 13471
9064 USE_TOOLKIT_SCROLL_BARS=yes 13472 USE_TOOLKIT_SCROLL_BARS=yes
9065 fi 13473 fi
9066 elif test "${HAVE_GTK}" = "yes"; then 13474 elif test "${HAVE_GTK}" = "yes"; then
9067 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h 13475 cat >>confdefs.h <<\_ACEOF
13476#define USE_TOOLKIT_SCROLL_BARS 1
13477_ACEOF
9068 13478
9069 USE_TOOLKIT_SCROLL_BARS=yes 13479 USE_TOOLKIT_SCROLL_BARS=yes
9070 elif test "${HAVE_NS}" = "yes"; then 13480 elif test "${HAVE_NS}" = "yes"; then
9071 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h 13481 cat >>confdefs.h <<\_ACEOF
13482#define USE_TOOLKIT_SCROLL_BARS 1
13483_ACEOF
9072 13484
9073 USE_TOOLKIT_SCROLL_BARS=yes 13485 USE_TOOLKIT_SCROLL_BARS=yes
9074 fi 13486 fi
9075fi 13487fi
9076 13488
9077cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13489cat >conftest.$ac_ext <<_ACEOF
13490/* confdefs.h. */
13491_ACEOF
13492cat confdefs.h >>conftest.$ac_ext
13493cat >>conftest.$ac_ext <<_ACEOF
9078/* end confdefs.h. */ 13494/* end confdefs.h. */
9079 13495
9080 #include <X11/Xlib.h> 13496 #include <X11/Xlib.h>
@@ -9087,20 +13503,45 @@ XIMProc callback;
9087 return 0; 13503 return 0;
9088} 13504}
9089_ACEOF 13505_ACEOF
9090if ac_fn_c_try_compile "$LINENO"; then : 13506rm -f conftest.$ac_objext
13507if { (ac_try="$ac_compile"
13508case "(($ac_try" in
13509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13510 *) ac_try_echo=$ac_try;;
13511esac
13512eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13513$as_echo "$ac_try_echo") >&5
13514 (eval "$ac_compile") 2>conftest.er1
13515 ac_status=$?
13516 grep -v '^ *+' conftest.er1 >conftest.err
13517 rm -f conftest.er1
13518 cat conftest.err >&5
13519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); } && {
13521 test -z "$ac_c_werror_flag" ||
13522 test ! -s conftest.err
13523 } && test -s conftest.$ac_objext; then
9091 HAVE_XIM=yes 13524 HAVE_XIM=yes
9092 13525
9093$as_echo "#define HAVE_XIM 1" >>confdefs.h 13526cat >>confdefs.h <<\_ACEOF
13527#define HAVE_XIM 1
13528_ACEOF
9094 13529
9095else 13530else
9096 HAVE_XIM=no 13531 $as_echo "$as_me: failed program was:" >&5
13532sed 's/^/| /' conftest.$ac_ext >&5
13533
13534 HAVE_XIM=no
9097fi 13535fi
13536
9098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9099 13538
9100 13539
9101if test "${with_xim}" != "no"; then 13540if test "${with_xim}" != "no"; then
9102 13541
9103$as_echo "#define USE_XIM 1" >>confdefs.h 13542cat >>confdefs.h <<\_ACEOF
13543#define USE_XIM 1
13544_ACEOF
9104 13545
9105fi 13546fi
9106 13547
@@ -9110,7 +13551,11 @@ if test "${HAVE_XIM}" != "no"; then
9110 if test "$GCC" = yes; then 13551 if test "$GCC" = yes; then
9111 CFLAGS="$CFLAGS --pedantic-errors" 13552 CFLAGS="$CFLAGS --pedantic-errors"
9112 fi 13553 fi
9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13554 cat >conftest.$ac_ext <<_ACEOF
13555/* confdefs.h. */
13556_ACEOF
13557cat confdefs.h >>conftest.$ac_ext
13558cat >>conftest.$ac_ext <<_ACEOF
9114/* end confdefs.h. */ 13559/* end confdefs.h. */
9115 13560
9116#include <X11/Xlib.h> 13561#include <X11/Xlib.h>
@@ -9136,15 +13581,43 @@ extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9136 return 0; 13581 return 0;
9137} 13582}
9138_ACEOF 13583_ACEOF
9139if ac_fn_c_try_compile "$LINENO"; then : 13584rm -f conftest.$ac_objext
13585if { (ac_try="$ac_compile"
13586case "(($ac_try" in
13587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13588 *) ac_try_echo=$ac_try;;
13589esac
13590eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13591$as_echo "$ac_try_echo") >&5
13592 (eval "$ac_compile") 2>conftest.er1
13593 ac_status=$?
13594 grep -v '^ *+' conftest.er1 >conftest.err
13595 rm -f conftest.er1
13596 cat conftest.err >&5
13597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); } && {
13599 test -z "$ac_c_werror_flag" ||
13600 test ! -s conftest.err
13601 } && test -s conftest.$ac_objext; then
9140 emacs_cv_arg6_star=yes 13602 emacs_cv_arg6_star=yes
13603else
13604 $as_echo "$as_me: failed program was:" >&5
13605sed 's/^/| /' conftest.$ac_ext >&5
13606
13607
9141fi 13608fi
13609
9142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9143 if test "$emacs_cv_arg6_star" = yes; then 13611
9144 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h 13612 if test "$emacs_cv_arg6_star" = yes; then
13613 cat >>confdefs.h <<\_ACEOF
13614#define XRegisterIMInstantiateCallback_arg6 XPointer*
13615_ACEOF
9145 13616
9146 else 13617 else
9147 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h 13618 cat >>confdefs.h <<\_ACEOF
13619#define XRegisterIMInstantiateCallback_arg6 XPointer
13620_ACEOF
9148 13621
9149 fi 13622 fi
9150 CFLAGS=$late_CFLAGS 13623 CFLAGS=$late_CFLAGS
@@ -9161,9 +13634,9 @@ if test "${HAVE_X11}" = "yes"; then
9161 13634
9162 # Extract the first word of "pkg-config", so it can be a program name with args. 13635 # Extract the first word of "pkg-config", so it can be a program name with args.
9163set dummy pkg-config; ac_word=$2 13636set dummy pkg-config; ac_word=$2
9164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13637{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9165$as_echo_n "checking for $ac_word... " >&6; } 13638$as_echo_n "checking for $ac_word... " >&6; }
9166if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 13639if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9167 $as_echo_n "(cached) " >&6 13640 $as_echo_n "(cached) " >&6
9168else 13641else
9169 case $PKG_CONFIG in 13642 case $PKG_CONFIG in
@@ -9176,14 +13649,14 @@ for as_dir in $PATH
9176do 13649do
9177 IFS=$as_save_IFS 13650 IFS=$as_save_IFS
9178 test -z "$as_dir" && as_dir=. 13651 test -z "$as_dir" && as_dir=.
9179 for ac_exec_ext in '' $ac_executable_extensions; do 13652 for ac_exec_ext in '' $ac_executable_extensions; do
9180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9181 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13654 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13655 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9183 break 2 13656 break 2
9184 fi 13657 fi
9185done 13658done
9186 done 13659done
9187IFS=$as_save_IFS 13660IFS=$as_save_IFS
9188 13661
9189 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 13662 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -9192,10 +13665,10 @@ esac
9192fi 13665fi
9193PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13666PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9194if test -n "$PKG_CONFIG"; then 13667if test -n "$PKG_CONFIG"; then
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13668 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9196$as_echo "$PKG_CONFIG" >&6; } 13669$as_echo "$PKG_CONFIG" >&6; }
9197else 13670else
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13671 { $as_echo "$as_me:$LINENO: result: no" >&5
9199$as_echo "no" >&6; } 13672$as_echo "no" >&6; }
9200fi 13673fi
9201 13674
@@ -9206,27 +13679,27 @@ fi
9206 else 13679 else
9207 PKG_CONFIG_MIN_VERSION=0.9.0 13680 PKG_CONFIG_MIN_VERSION=0.9.0
9208 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 13681 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5 13682 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
9210$as_echo_n "checking for fontconfig >= 2.2.0... " >&6; } 13683$as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9211 13684
9212 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then 13685 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13686 { $as_echo "$as_me:$LINENO: result: yes" >&5
9214$as_echo "yes" >&6; } 13687$as_echo "yes" >&6; }
9215 succeeded=yes 13688 succeeded=yes
9216 13689
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5 13690 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
9218$as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; } 13691$as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9219 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` 13692 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5 13693 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
9221$as_echo "$FONTCONFIG_CFLAGS" >&6; } 13694$as_echo "$FONTCONFIG_CFLAGS" >&6; }
9222 13695
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5 13696 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
9224$as_echo_n "checking FONTCONFIG_LIBS... " >&6; } 13697$as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9225 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` 13698 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5 13699 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
9227$as_echo "$FONTCONFIG_LIBS" >&6; } 13700$as_echo "$FONTCONFIG_LIBS" >&6; }
9228 else 13701 else
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13702 { $as_echo "$as_me:$LINENO: result: no" >&5
9230$as_echo "no" >&6; } 13703$as_echo "no" >&6; }
9231 FONTCONFIG_CFLAGS="" 13704 FONTCONFIG_CFLAGS=""
9232 FONTCONFIG_LIBS="" 13705 FONTCONFIG_LIBS=""
@@ -9263,9 +13736,9 @@ $as_echo "no" >&6; }
9263 13736
9264 # Extract the first word of "pkg-config", so it can be a program name with args. 13737 # Extract the first word of "pkg-config", so it can be a program name with args.
9265set dummy pkg-config; ac_word=$2 13738set dummy pkg-config; ac_word=$2
9266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13739{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9267$as_echo_n "checking for $ac_word... " >&6; } 13740$as_echo_n "checking for $ac_word... " >&6; }
9268if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 13741if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9269 $as_echo_n "(cached) " >&6 13742 $as_echo_n "(cached) " >&6
9270else 13743else
9271 case $PKG_CONFIG in 13744 case $PKG_CONFIG in
@@ -9278,14 +13751,14 @@ for as_dir in $PATH
9278do 13751do
9279 IFS=$as_save_IFS 13752 IFS=$as_save_IFS
9280 test -z "$as_dir" && as_dir=. 13753 test -z "$as_dir" && as_dir=.
9281 for ac_exec_ext in '' $ac_executable_extensions; do 13754 for ac_exec_ext in '' $ac_executable_extensions; do
9282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9283 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13756 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13757 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9285 break 2 13758 break 2
9286 fi 13759 fi
9287done 13760done
9288 done 13761done
9289IFS=$as_save_IFS 13762IFS=$as_save_IFS
9290 13763
9291 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 13764 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -9294,10 +13767,10 @@ esac
9294fi 13767fi
9295PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13768PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9296if test -n "$PKG_CONFIG"; then 13769if test -n "$PKG_CONFIG"; then
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13770 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9298$as_echo "$PKG_CONFIG" >&6; } 13771$as_echo "$PKG_CONFIG" >&6; }
9299else 13772else
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13773 { $as_echo "$as_me:$LINENO: result: no" >&5
9301$as_echo "no" >&6; } 13774$as_echo "no" >&6; }
9302fi 13775fi
9303 13776
@@ -9308,27 +13781,27 @@ fi
9308 else 13781 else
9309 PKG_CONFIG_MIN_VERSION=0.9.0 13782 PKG_CONFIG_MIN_VERSION=0.9.0
9310 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 13783 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5 13784 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
9312$as_echo_n "checking for xft >= 0.13.0... " >&6; } 13785$as_echo_n "checking for xft >= 0.13.0... " >&6; }
9313 13786
9314 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then 13787 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13788 { $as_echo "$as_me:$LINENO: result: yes" >&5
9316$as_echo "yes" >&6; } 13789$as_echo "yes" >&6; }
9317 succeeded=yes 13790 succeeded=yes
9318 13791
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5 13792 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
9320$as_echo_n "checking XFT_CFLAGS... " >&6; } 13793$as_echo_n "checking XFT_CFLAGS... " >&6; }
9321 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'` 13794 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5 13795 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
9323$as_echo "$XFT_CFLAGS" >&6; } 13796$as_echo "$XFT_CFLAGS" >&6; }
9324 13797
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5 13798 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
9326$as_echo_n "checking XFT_LIBS... " >&6; } 13799$as_echo_n "checking XFT_LIBS... " >&6; }
9327 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'` 13800 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5 13801 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
9329$as_echo "$XFT_LIBS" >&6; } 13802$as_echo "$XFT_LIBS" >&6; }
9330 else 13803 else
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13804 { $as_echo "$as_me:$LINENO: result: no" >&5
9332$as_echo "no" >&6; } 13805$as_echo "no" >&6; }
9333 XFT_CFLAGS="" 13806 XFT_CFLAGS=""
9334 XFT_LIBS="" 13807 XFT_LIBS=""
@@ -9355,14 +13828,18 @@ $as_echo "no" >&6; }
9355 ## Because xftfont.c uses XRenderQueryExtension, we also 13828 ## Because xftfont.c uses XRenderQueryExtension, we also
9356 ## need to link to -lXrender. 13829 ## need to link to -lXrender.
9357 HAVE_XRENDER=no 13830 HAVE_XRENDER=no
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5 13831 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
9359$as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; } 13832$as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
9360if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then : 13833if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
9361 $as_echo_n "(cached) " >&6 13834 $as_echo_n "(cached) " >&6
9362else 13835else
9363 ac_check_lib_save_LIBS=$LIBS 13836 ac_check_lib_save_LIBS=$LIBS
9364LIBS="-lXrender $LIBS" 13837LIBS="-lXrender $LIBS"
9365cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13838cat >conftest.$ac_ext <<_ACEOF
13839/* confdefs.h. */
13840_ACEOF
13841cat confdefs.h >>conftest.$ac_ext
13842cat >>conftest.$ac_ext <<_ACEOF
9366/* end confdefs.h. */ 13843/* end confdefs.h. */
9367 13844
9368/* Override any GCC internal prototype to avoid an error. 13845/* Override any GCC internal prototype to avoid an error.
@@ -9380,18 +13857,43 @@ return XRenderQueryExtension ();
9380 return 0; 13857 return 0;
9381} 13858}
9382_ACEOF 13859_ACEOF
9383if ac_fn_c_try_link "$LINENO"; then : 13860rm -f conftest.$ac_objext conftest$ac_exeext
13861if { (ac_try="$ac_link"
13862case "(($ac_try" in
13863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13864 *) ac_try_echo=$ac_try;;
13865esac
13866eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13867$as_echo "$ac_try_echo") >&5
13868 (eval "$ac_link") 2>conftest.er1
13869 ac_status=$?
13870 grep -v '^ *+' conftest.er1 >conftest.err
13871 rm -f conftest.er1
13872 cat conftest.err >&5
13873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); } && {
13875 test -z "$ac_c_werror_flag" ||
13876 test ! -s conftest.err
13877 } && test -s conftest$ac_exeext && {
13878 test "$cross_compiling" = yes ||
13879 $as_test_x conftest$ac_exeext
13880 }; then
9384 ac_cv_lib_Xrender_XRenderQueryExtension=yes 13881 ac_cv_lib_Xrender_XRenderQueryExtension=yes
9385else 13882else
9386 ac_cv_lib_Xrender_XRenderQueryExtension=no 13883 $as_echo "$as_me: failed program was:" >&5
13884sed 's/^/| /' conftest.$ac_ext >&5
13885
13886 ac_cv_lib_Xrender_XRenderQueryExtension=no
9387fi 13887fi
9388rm -f core conftest.err conftest.$ac_objext \ 13888
9389 conftest$ac_exeext conftest.$ac_ext 13889rm -rf conftest.dSYM
13890rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13891 conftest$ac_exeext conftest.$ac_ext
9390LIBS=$ac_check_lib_save_LIBS 13892LIBS=$ac_check_lib_save_LIBS
9391fi 13893fi
9392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5 13894{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
9393$as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; } 13895$as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
9394if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then : 13896if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
9395 HAVE_XRENDER=yes 13897 HAVE_XRENDER=yes
9396fi 13898fi
9397 13899
@@ -9403,16 +13905,146 @@ fi
9403 CFLAGS="$CFLAGS $XFT_CFLAGS" 13905 CFLAGS="$CFLAGS $XFT_CFLAGS"
9404 XFT_LIBS="-lXrender $XFT_LIBS" 13906 XFT_LIBS="-lXrender $XFT_LIBS"
9405 LIBS="$XFT_LIBS $LIBS" 13907 LIBS="$XFT_LIBS $LIBS"
9406 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default" 13908 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
9407if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then : 13909 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5 13910$as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13911if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13912 $as_echo_n "(cached) " >&6
13913fi
13914{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13915$as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13916else
13917 # Is the header compilable?
13918{ $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13919$as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13920cat >conftest.$ac_ext <<_ACEOF
13921/* confdefs.h. */
13922_ACEOF
13923cat confdefs.h >>conftest.$ac_ext
13924cat >>conftest.$ac_ext <<_ACEOF
13925/* end confdefs.h. */
13926$ac_includes_default
13927#include <X11/Xft/Xft.h>
13928_ACEOF
13929rm -f conftest.$ac_objext
13930if { (ac_try="$ac_compile"
13931case "(($ac_try" in
13932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13933 *) ac_try_echo=$ac_try;;
13934esac
13935eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13936$as_echo "$ac_try_echo") >&5
13937 (eval "$ac_compile") 2>conftest.er1
13938 ac_status=$?
13939 grep -v '^ *+' conftest.er1 >conftest.err
13940 rm -f conftest.er1
13941 cat conftest.err >&5
13942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); } && {
13944 test -z "$ac_c_werror_flag" ||
13945 test ! -s conftest.err
13946 } && test -s conftest.$ac_objext; then
13947 ac_header_compiler=yes
13948else
13949 $as_echo "$as_me: failed program was:" >&5
13950sed 's/^/| /' conftest.$ac_ext >&5
13951
13952 ac_header_compiler=no
13953fi
13954
13955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13956{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13957$as_echo "$ac_header_compiler" >&6; }
13958
13959# Is the header present?
13960{ $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13961$as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13962cat >conftest.$ac_ext <<_ACEOF
13963/* confdefs.h. */
13964_ACEOF
13965cat confdefs.h >>conftest.$ac_ext
13966cat >>conftest.$ac_ext <<_ACEOF
13967/* end confdefs.h. */
13968#include <X11/Xft/Xft.h>
13969_ACEOF
13970if { (ac_try="$ac_cpp conftest.$ac_ext"
13971case "(($ac_try" in
13972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13973 *) ac_try_echo=$ac_try;;
13974esac
13975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13976$as_echo "$ac_try_echo") >&5
13977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13978 ac_status=$?
13979 grep -v '^ *+' conftest.er1 >conftest.err
13980 rm -f conftest.er1
13981 cat conftest.err >&5
13982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); } >/dev/null && {
13984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13985 test ! -s conftest.err
13986 }; then
13987 ac_header_preproc=yes
13988else
13989 $as_echo "$as_me: failed program was:" >&5
13990sed 's/^/| /' conftest.$ac_ext >&5
13991
13992 ac_header_preproc=no
13993fi
13994
13995rm -f conftest.err conftest.$ac_ext
13996{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13997$as_echo "$ac_header_preproc" >&6; }
13998
13999# So? What about this header?
14000case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14001 yes:no: )
14002 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14003$as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14004 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14005$as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14006 ac_header_preproc=yes
14007 ;;
14008 no:yes:* )
14009 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14010$as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14011 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14012$as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14013 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14014$as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14015 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14016$as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14017 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14018$as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14019 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14020$as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14021
14022 ;;
14023esac
14024{ $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14025$as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14026if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14027 $as_echo_n "(cached) " >&6
14028else
14029 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14030fi
14031{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14032$as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14033
14034fi
14035if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14036 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
9409$as_echo_n "checking for XftFontOpen in -lXft... " >&6; } 14037$as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
9410if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then : 14038if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
9411 $as_echo_n "(cached) " >&6 14039 $as_echo_n "(cached) " >&6
9412else 14040else
9413 ac_check_lib_save_LIBS=$LIBS 14041 ac_check_lib_save_LIBS=$LIBS
9414LIBS="-lXft $XFT_LIBS $LIBS" 14042LIBS="-lXft $XFT_LIBS $LIBS"
9415cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14043cat >conftest.$ac_ext <<_ACEOF
14044/* confdefs.h. */
14045_ACEOF
14046cat confdefs.h >>conftest.$ac_ext
14047cat >>conftest.$ac_ext <<_ACEOF
9416/* end confdefs.h. */ 14048/* end confdefs.h. */
9417 14049
9418/* Override any GCC internal prototype to avoid an error. 14050/* Override any GCC internal prototype to avoid an error.
@@ -9430,18 +14062,43 @@ return XftFontOpen ();
9430 return 0; 14062 return 0;
9431} 14063}
9432_ACEOF 14064_ACEOF
9433if ac_fn_c_try_link "$LINENO"; then : 14065rm -f conftest.$ac_objext conftest$ac_exeext
14066if { (ac_try="$ac_link"
14067case "(($ac_try" in
14068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14069 *) ac_try_echo=$ac_try;;
14070esac
14071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14072$as_echo "$ac_try_echo") >&5
14073 (eval "$ac_link") 2>conftest.er1
14074 ac_status=$?
14075 grep -v '^ *+' conftest.er1 >conftest.err
14076 rm -f conftest.er1
14077 cat conftest.err >&5
14078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); } && {
14080 test -z "$ac_c_werror_flag" ||
14081 test ! -s conftest.err
14082 } && test -s conftest$ac_exeext && {
14083 test "$cross_compiling" = yes ||
14084 $as_test_x conftest$ac_exeext
14085 }; then
9434 ac_cv_lib_Xft_XftFontOpen=yes 14086 ac_cv_lib_Xft_XftFontOpen=yes
9435else 14087else
9436 ac_cv_lib_Xft_XftFontOpen=no 14088 $as_echo "$as_me: failed program was:" >&5
14089sed 's/^/| /' conftest.$ac_ext >&5
14090
14091 ac_cv_lib_Xft_XftFontOpen=no
9437fi 14092fi
9438rm -f core conftest.err conftest.$ac_objext \ 14093
9439 conftest$ac_exeext conftest.$ac_ext 14094rm -rf conftest.dSYM
14095rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14096 conftest$ac_exeext conftest.$ac_ext
9440LIBS=$ac_check_lib_save_LIBS 14097LIBS=$ac_check_lib_save_LIBS
9441fi 14098fi
9442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5 14099{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
9443$as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; } 14100$as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
9444if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then : 14101if test $ac_cv_lib_Xft_XftFontOpen = yes; then
9445 HAVE_XFT=yes 14102 HAVE_XFT=yes
9446fi 14103fi
9447 14104
@@ -9451,7 +14108,9 @@ fi
9451 14108
9452 if test "${HAVE_XFT}" = "yes"; then 14109 if test "${HAVE_XFT}" = "yes"; then
9453 14110
9454$as_echo "#define HAVE_XFT 1" >>confdefs.h 14111cat >>confdefs.h <<\_ACEOF
14112#define HAVE_XFT 1
14113_ACEOF
9455 14114
9456 14115
9457 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS" 14116 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
@@ -9480,7 +14139,9 @@ $as_echo "#define HAVE_XFT 1" >>confdefs.h
9480 HAVE_LIBOTF=no 14139 HAVE_LIBOTF=no
9481 if test "${HAVE_FREETYPE}" = "yes"; then 14140 if test "${HAVE_FREETYPE}" = "yes"; then
9482 14141
9483$as_echo "#define HAVE_FREETYPE 1" >>confdefs.h 14142cat >>confdefs.h <<\_ACEOF
14143#define HAVE_FREETYPE 1
14144_ACEOF
9484 14145
9485 if test "${with_libotf}" != "no"; then 14146 if test "${with_libotf}" != "no"; then
9486 14147
@@ -9488,9 +14149,9 @@ $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
9488 14149
9489 # Extract the first word of "pkg-config", so it can be a program name with args. 14150 # Extract the first word of "pkg-config", so it can be a program name with args.
9490set dummy pkg-config; ac_word=$2 14151set dummy pkg-config; ac_word=$2
9491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14152{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9492$as_echo_n "checking for $ac_word... " >&6; } 14153$as_echo_n "checking for $ac_word... " >&6; }
9493if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 14154if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9494 $as_echo_n "(cached) " >&6 14155 $as_echo_n "(cached) " >&6
9495else 14156else
9496 case $PKG_CONFIG in 14157 case $PKG_CONFIG in
@@ -9503,14 +14164,14 @@ for as_dir in $PATH
9503do 14164do
9504 IFS=$as_save_IFS 14165 IFS=$as_save_IFS
9505 test -z "$as_dir" && as_dir=. 14166 test -z "$as_dir" && as_dir=.
9506 for ac_exec_ext in '' $ac_executable_extensions; do 14167 for ac_exec_ext in '' $ac_executable_extensions; do
9507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9508 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14169 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14170 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9510 break 2 14171 break 2
9511 fi 14172 fi
9512done 14173done
9513 done 14174done
9514IFS=$as_save_IFS 14175IFS=$as_save_IFS
9515 14176
9516 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 14177 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -9519,10 +14180,10 @@ esac
9519fi 14180fi
9520PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14181PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9521if test -n "$PKG_CONFIG"; then 14182if test -n "$PKG_CONFIG"; then
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14183 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9523$as_echo "$PKG_CONFIG" >&6; } 14184$as_echo "$PKG_CONFIG" >&6; }
9524else 14185else
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14186 { $as_echo "$as_me:$LINENO: result: no" >&5
9526$as_echo "no" >&6; } 14187$as_echo "no" >&6; }
9527fi 14188fi
9528 14189
@@ -9533,27 +14194,27 @@ fi
9533 else 14194 else
9534 PKG_CONFIG_MIN_VERSION=0.9.0 14195 PKG_CONFIG_MIN_VERSION=0.9.0
9535 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 14196 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5 14197 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
9537$as_echo_n "checking for libotf... " >&6; } 14198$as_echo_n "checking for libotf... " >&6; }
9538 14199
9539 if $PKG_CONFIG --exists "libotf" 2>&5; then 14200 if $PKG_CONFIG --exists "libotf" 2>&5; then
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14201 { $as_echo "$as_me:$LINENO: result: yes" >&5
9541$as_echo "yes" >&6; } 14202$as_echo "yes" >&6; }
9542 succeeded=yes 14203 succeeded=yes
9543 14204
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5 14205 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
9545$as_echo_n "checking LIBOTF_CFLAGS... " >&6; } 14206$as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
9546 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'` 14207 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5 14208 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
9548$as_echo "$LIBOTF_CFLAGS" >&6; } 14209$as_echo "$LIBOTF_CFLAGS" >&6; }
9549 14210
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5 14211 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
9551$as_echo_n "checking LIBOTF_LIBS... " >&6; } 14212$as_echo_n "checking LIBOTF_LIBS... " >&6; }
9552 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'` 14213 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5 14214 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
9554$as_echo "$LIBOTF_LIBS" >&6; } 14215$as_echo "$LIBOTF_LIBS" >&6; }
9555 else 14216 else
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14217 { $as_echo "$as_me:$LINENO: result: no" >&5
9557$as_echo "no" >&6; } 14218$as_echo "no" >&6; }
9558 LIBOTF_CFLAGS="" 14219 LIBOTF_CFLAGS=""
9559 LIBOTF_LIBS="" 14220 LIBOTF_LIBS=""
@@ -9579,16 +14240,22 @@ $as_echo "no" >&6; }
9579 14240
9580 if test "$HAVE_LIBOTF" = "yes"; then 14241 if test "$HAVE_LIBOTF" = "yes"; then
9581 14242
9582$as_echo "#define HAVE_LIBOTF 1" >>confdefs.h 14243cat >>confdefs.h <<\_ACEOF
14244#define HAVE_LIBOTF 1
14245_ACEOF
9583 14246
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5 14247 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
9585$as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; } 14248$as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
9586if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then : 14249if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
9587 $as_echo_n "(cached) " >&6 14250 $as_echo_n "(cached) " >&6
9588else 14251else
9589 ac_check_lib_save_LIBS=$LIBS 14252 ac_check_lib_save_LIBS=$LIBS
9590LIBS="-lotf $LIBS" 14253LIBS="-lotf $LIBS"
9591cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14254cat >conftest.$ac_ext <<_ACEOF
14255/* confdefs.h. */
14256_ACEOF
14257cat confdefs.h >>conftest.$ac_ext
14258cat >>conftest.$ac_ext <<_ACEOF
9592/* end confdefs.h. */ 14259/* end confdefs.h. */
9593 14260
9594/* Override any GCC internal prototype to avoid an error. 14261/* Override any GCC internal prototype to avoid an error.
@@ -9606,18 +14273,43 @@ return OTF_get_variation_glyphs ();
9606 return 0; 14273 return 0;
9607} 14274}
9608_ACEOF 14275_ACEOF
9609if ac_fn_c_try_link "$LINENO"; then : 14276rm -f conftest.$ac_objext conftest$ac_exeext
14277if { (ac_try="$ac_link"
14278case "(($ac_try" in
14279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14280 *) ac_try_echo=$ac_try;;
14281esac
14282eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14283$as_echo "$ac_try_echo") >&5
14284 (eval "$ac_link") 2>conftest.er1
14285 ac_status=$?
14286 grep -v '^ *+' conftest.er1 >conftest.err
14287 rm -f conftest.er1
14288 cat conftest.err >&5
14289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); } && {
14291 test -z "$ac_c_werror_flag" ||
14292 test ! -s conftest.err
14293 } && test -s conftest$ac_exeext && {
14294 test "$cross_compiling" = yes ||
14295 $as_test_x conftest$ac_exeext
14296 }; then
9610 ac_cv_lib_otf_OTF_get_variation_glyphs=yes 14297 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
9611else 14298else
9612 ac_cv_lib_otf_OTF_get_variation_glyphs=no 14299 $as_echo "$as_me: failed program was:" >&5
14300sed 's/^/| /' conftest.$ac_ext >&5
14301
14302 ac_cv_lib_otf_OTF_get_variation_glyphs=no
9613fi 14303fi
9614rm -f core conftest.err conftest.$ac_objext \ 14304
9615 conftest$ac_exeext conftest.$ac_ext 14305rm -rf conftest.dSYM
14306rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14307 conftest$ac_exeext conftest.$ac_ext
9616LIBS=$ac_check_lib_save_LIBS 14308LIBS=$ac_check_lib_save_LIBS
9617fi 14309fi
9618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5 14310{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
9619$as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; } 14311$as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
9620if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then : 14312if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
9621 HAVE_OTF_GET_VARIATION_GLYPHS=yes 14313 HAVE_OTF_GET_VARIATION_GLYPHS=yes
9622else 14314else
9623 HAVE_OTF_GET_VARIATION_GLYPHS=no 14315 HAVE_OTF_GET_VARIATION_GLYPHS=no
@@ -9625,7 +14317,9 @@ fi
9625 14317
9626 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then 14318 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
9627 14319
9628$as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h 14320cat >>confdefs.h <<\_ACEOF
14321#define HAVE_OTF_GET_VARIATION_GLYPHS 1
14322_ACEOF
9629 14323
9630 fi 14324 fi
9631 fi 14325 fi
@@ -9640,9 +14334,9 @@ $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
9640 14334
9641 # Extract the first word of "pkg-config", so it can be a program name with args. 14335 # Extract the first word of "pkg-config", so it can be a program name with args.
9642set dummy pkg-config; ac_word=$2 14336set dummy pkg-config; ac_word=$2
9643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14337{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9644$as_echo_n "checking for $ac_word... " >&6; } 14338$as_echo_n "checking for $ac_word... " >&6; }
9645if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 14339if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9646 $as_echo_n "(cached) " >&6 14340 $as_echo_n "(cached) " >&6
9647else 14341else
9648 case $PKG_CONFIG in 14342 case $PKG_CONFIG in
@@ -9655,14 +14349,14 @@ for as_dir in $PATH
9655do 14349do
9656 IFS=$as_save_IFS 14350 IFS=$as_save_IFS
9657 test -z "$as_dir" && as_dir=. 14351 test -z "$as_dir" && as_dir=.
9658 for ac_exec_ext in '' $ac_executable_extensions; do 14352 for ac_exec_ext in '' $ac_executable_extensions; do
9659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9660 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14354 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14355 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9662 break 2 14356 break 2
9663 fi 14357 fi
9664done 14358done
9665 done 14359done
9666IFS=$as_save_IFS 14360IFS=$as_save_IFS
9667 14361
9668 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 14362 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -9671,10 +14365,10 @@ esac
9671fi 14365fi
9672PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14366PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9673if test -n "$PKG_CONFIG"; then 14367if test -n "$PKG_CONFIG"; then
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14368 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9675$as_echo "$PKG_CONFIG" >&6; } 14369$as_echo "$PKG_CONFIG" >&6; }
9676else 14370else
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14371 { $as_echo "$as_me:$LINENO: result: no" >&5
9678$as_echo "no" >&6; } 14372$as_echo "no" >&6; }
9679fi 14373fi
9680 14374
@@ -9685,27 +14379,27 @@ fi
9685 else 14379 else
9686 PKG_CONFIG_MIN_VERSION=0.9.0 14380 PKG_CONFIG_MIN_VERSION=0.9.0
9687 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 14381 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5 14382 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
9689$as_echo_n "checking for m17n-flt... " >&6; } 14383$as_echo_n "checking for m17n-flt... " >&6; }
9690 14384
9691 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then 14385 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14386 { $as_echo "$as_me:$LINENO: result: yes" >&5
9693$as_echo "yes" >&6; } 14387$as_echo "yes" >&6; }
9694 succeeded=yes 14388 succeeded=yes
9695 14389
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5 14390 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
9697$as_echo_n "checking M17N_FLT_CFLAGS... " >&6; } 14391$as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
9698 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'` 14392 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5 14393 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
9700$as_echo "$M17N_FLT_CFLAGS" >&6; } 14394$as_echo "$M17N_FLT_CFLAGS" >&6; }
9701 14395
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5 14396 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
9703$as_echo_n "checking M17N_FLT_LIBS... " >&6; } 14397$as_echo_n "checking M17N_FLT_LIBS... " >&6; }
9704 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'` 14398 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5 14399 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
9706$as_echo "$M17N_FLT_LIBS" >&6; } 14400$as_echo "$M17N_FLT_LIBS" >&6; }
9707 else 14401 else
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14402 { $as_echo "$as_me:$LINENO: result: no" >&5
9709$as_echo "no" >&6; } 14403$as_echo "no" >&6; }
9710 M17N_FLT_CFLAGS="" 14404 M17N_FLT_CFLAGS=""
9711 M17N_FLT_LIBS="" 14405 M17N_FLT_LIBS=""
@@ -9731,7 +14425,9 @@ $as_echo "no" >&6; }
9731 14425
9732 if test "$HAVE_M17N_FLT" = "yes"; then 14426 if test "$HAVE_M17N_FLT" = "yes"; then
9733 14427
9734$as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h 14428cat >>confdefs.h <<\_ACEOF
14429#define HAVE_M17N_FLT 1
14430_ACEOF
9735 14431
9736 fi 14432 fi
9737 fi 14433 fi
@@ -9758,16 +14454,146 @@ HAVE_XPM=no
9758LIBXPM= 14454LIBXPM=
9759if test "${HAVE_X11}" = "yes"; then 14455if test "${HAVE_X11}" = "yes"; then
9760 if test "${with_xpm}" != "no"; then 14456 if test "${with_xpm}" != "no"; then
9761 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default" 14457 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9762if test "x$ac_cv_header_X11_xpm_h" = x""yes; then : 14458 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5 14459$as_echo_n "checking for X11/xpm.h... " >&6; }
14460if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14461 $as_echo_n "(cached) " >&6
14462fi
14463{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14464$as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14465else
14466 # Is the header compilable?
14467{ $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14468$as_echo_n "checking X11/xpm.h usability... " >&6; }
14469cat >conftest.$ac_ext <<_ACEOF
14470/* confdefs.h. */
14471_ACEOF
14472cat confdefs.h >>conftest.$ac_ext
14473cat >>conftest.$ac_ext <<_ACEOF
14474/* end confdefs.h. */
14475$ac_includes_default
14476#include <X11/xpm.h>
14477_ACEOF
14478rm -f conftest.$ac_objext
14479if { (ac_try="$ac_compile"
14480case "(($ac_try" in
14481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14482 *) ac_try_echo=$ac_try;;
14483esac
14484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14485$as_echo "$ac_try_echo") >&5
14486 (eval "$ac_compile") 2>conftest.er1
14487 ac_status=$?
14488 grep -v '^ *+' conftest.er1 >conftest.err
14489 rm -f conftest.er1
14490 cat conftest.err >&5
14491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); } && {
14493 test -z "$ac_c_werror_flag" ||
14494 test ! -s conftest.err
14495 } && test -s conftest.$ac_objext; then
14496 ac_header_compiler=yes
14497else
14498 $as_echo "$as_me: failed program was:" >&5
14499sed 's/^/| /' conftest.$ac_ext >&5
14500
14501 ac_header_compiler=no
14502fi
14503
14504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14505{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14506$as_echo "$ac_header_compiler" >&6; }
14507
14508# Is the header present?
14509{ $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14510$as_echo_n "checking X11/xpm.h presence... " >&6; }
14511cat >conftest.$ac_ext <<_ACEOF
14512/* confdefs.h. */
14513_ACEOF
14514cat confdefs.h >>conftest.$ac_ext
14515cat >>conftest.$ac_ext <<_ACEOF
14516/* end confdefs.h. */
14517#include <X11/xpm.h>
14518_ACEOF
14519if { (ac_try="$ac_cpp conftest.$ac_ext"
14520case "(($ac_try" in
14521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14522 *) ac_try_echo=$ac_try;;
14523esac
14524eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14525$as_echo "$ac_try_echo") >&5
14526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14527 ac_status=$?
14528 grep -v '^ *+' conftest.er1 >conftest.err
14529 rm -f conftest.er1
14530 cat conftest.err >&5
14531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); } >/dev/null && {
14533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14534 test ! -s conftest.err
14535 }; then
14536 ac_header_preproc=yes
14537else
14538 $as_echo "$as_me: failed program was:" >&5
14539sed 's/^/| /' conftest.$ac_ext >&5
14540
14541 ac_header_preproc=no
14542fi
14543
14544rm -f conftest.err conftest.$ac_ext
14545{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14546$as_echo "$ac_header_preproc" >&6; }
14547
14548# So? What about this header?
14549case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14550 yes:no: )
14551 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14552$as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14553 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14554$as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14555 ac_header_preproc=yes
14556 ;;
14557 no:yes:* )
14558 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14559$as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14560 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14561$as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14562 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14563$as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14564 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14565$as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14566 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14567$as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14568 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14569$as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14570
14571 ;;
14572esac
14573{ $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14574$as_echo_n "checking for X11/xpm.h... " >&6; }
14575if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14576 $as_echo_n "(cached) " >&6
14577else
14578 ac_cv_header_X11_xpm_h=$ac_header_preproc
14579fi
14580{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14581$as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14582
14583fi
14584if test $ac_cv_header_X11_xpm_h = yes; then
14585 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
9764$as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; } 14586$as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
9765if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then : 14587if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
9766 $as_echo_n "(cached) " >&6 14588 $as_echo_n "(cached) " >&6
9767else 14589else
9768 ac_check_lib_save_LIBS=$LIBS 14590 ac_check_lib_save_LIBS=$LIBS
9769LIBS="-lXpm -lX11 $LIBS" 14591LIBS="-lXpm -lX11 $LIBS"
9770cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14592cat >conftest.$ac_ext <<_ACEOF
14593/* confdefs.h. */
14594_ACEOF
14595cat confdefs.h >>conftest.$ac_ext
14596cat >>conftest.$ac_ext <<_ACEOF
9771/* end confdefs.h. */ 14597/* end confdefs.h. */
9772 14598
9773/* Override any GCC internal prototype to avoid an error. 14599/* Override any GCC internal prototype to avoid an error.
@@ -9785,18 +14611,43 @@ return XpmReadFileToPixmap ();
9785 return 0; 14611 return 0;
9786} 14612}
9787_ACEOF 14613_ACEOF
9788if ac_fn_c_try_link "$LINENO"; then : 14614rm -f conftest.$ac_objext conftest$ac_exeext
14615if { (ac_try="$ac_link"
14616case "(($ac_try" in
14617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14618 *) ac_try_echo=$ac_try;;
14619esac
14620eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14621$as_echo "$ac_try_echo") >&5
14622 (eval "$ac_link") 2>conftest.er1
14623 ac_status=$?
14624 grep -v '^ *+' conftest.er1 >conftest.err
14625 rm -f conftest.er1
14626 cat conftest.err >&5
14627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); } && {
14629 test -z "$ac_c_werror_flag" ||
14630 test ! -s conftest.err
14631 } && test -s conftest$ac_exeext && {
14632 test "$cross_compiling" = yes ||
14633 $as_test_x conftest$ac_exeext
14634 }; then
9789 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes 14635 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9790else 14636else
9791 ac_cv_lib_Xpm_XpmReadFileToPixmap=no 14637 $as_echo "$as_me: failed program was:" >&5
14638sed 's/^/| /' conftest.$ac_ext >&5
14639
14640 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
9792fi 14641fi
9793rm -f core conftest.err conftest.$ac_objext \ 14642
9794 conftest$ac_exeext conftest.$ac_ext 14643rm -rf conftest.dSYM
14644rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14645 conftest$ac_exeext conftest.$ac_ext
9795LIBS=$ac_check_lib_save_LIBS 14646LIBS=$ac_check_lib_save_LIBS
9796fi 14647fi
9797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 14648{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9798$as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; } 14649$as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
9799if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then : 14650if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9800 HAVE_XPM=yes 14651 HAVE_XPM=yes
9801fi 14652fi
9802 14653
@@ -9804,9 +14655,13 @@ fi
9804 14655
9805 14656
9806 if test "${HAVE_XPM}" = "yes"; then 14657 if test "${HAVE_XPM}" = "yes"; then
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5 14658 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9808$as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; } 14659$as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
9809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14660 cat >conftest.$ac_ext <<_ACEOF
14661/* confdefs.h. */
14662_ACEOF
14663cat confdefs.h >>conftest.$ac_ext
14664cat >>conftest.$ac_ext <<_ACEOF
9810/* end confdefs.h. */ 14665/* end confdefs.h. */
9811#include "X11/xpm.h" 14666#include "X11/xpm.h"
9812#ifndef XpmReturnAllocPixels 14667#ifndef XpmReturnAllocPixels
@@ -9815,7 +14670,7 @@ no_return_alloc_pixels
9815 14670
9816_ACEOF 14671_ACEOF
9817if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14672if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9818 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then : 14673 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
9819 HAVE_XPM=no 14674 HAVE_XPM=no
9820else 14675else
9821 HAVE_XPM=yes 14676 HAVE_XPM=yes
@@ -9824,10 +14679,10 @@ rm -f conftest*
9824 14679
9825 14680
9826 if test "${HAVE_XPM}" = "yes"; then 14681 if test "${HAVE_XPM}" = "yes"; then
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14682 { $as_echo "$as_me:$LINENO: result: yes" >&5
9828$as_echo "yes" >&6; } 14683$as_echo "yes" >&6; }
9829 else 14684 else
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14685 { $as_echo "$as_me:$LINENO: result: no" >&5
9831$as_echo "no" >&6; } 14686$as_echo "no" >&6; }
9832 fi 14687 fi
9833 fi 14688 fi
@@ -9835,7 +14690,9 @@ $as_echo "no" >&6; }
9835 14690
9836 if test "${HAVE_XPM}" = "yes"; then 14691 if test "${HAVE_XPM}" = "yes"; then
9837 14692
9838$as_echo "#define HAVE_XPM 1" >>confdefs.h 14693cat >>confdefs.h <<\_ACEOF
14694#define HAVE_XPM 1
14695_ACEOF
9839 14696
9840 LIBXPM=-lXpm 14697 LIBXPM=-lXpm
9841 fi 14698 fi
@@ -9847,16 +14704,146 @@ HAVE_JPEG=no
9847LIBJPEG= 14704LIBJPEG=
9848if test "${HAVE_X11}" = "yes"; then 14705if test "${HAVE_X11}" = "yes"; then
9849 if test "${with_jpeg}" != "no"; then 14706 if test "${with_jpeg}" != "no"; then
9850 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default" 14707 if test "${ac_cv_header_jerror_h+set}" = set; then
9851if test "x$ac_cv_header_jerror_h" = x""yes; then : 14708 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5 14709$as_echo_n "checking for jerror.h... " >&6; }
14710if test "${ac_cv_header_jerror_h+set}" = set; then
14711 $as_echo_n "(cached) " >&6
14712fi
14713{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14714$as_echo "$ac_cv_header_jerror_h" >&6; }
14715else
14716 # Is the header compilable?
14717{ $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14718$as_echo_n "checking jerror.h usability... " >&6; }
14719cat >conftest.$ac_ext <<_ACEOF
14720/* confdefs.h. */
14721_ACEOF
14722cat confdefs.h >>conftest.$ac_ext
14723cat >>conftest.$ac_ext <<_ACEOF
14724/* end confdefs.h. */
14725$ac_includes_default
14726#include <jerror.h>
14727_ACEOF
14728rm -f conftest.$ac_objext
14729if { (ac_try="$ac_compile"
14730case "(($ac_try" in
14731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14732 *) ac_try_echo=$ac_try;;
14733esac
14734eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14735$as_echo "$ac_try_echo") >&5
14736 (eval "$ac_compile") 2>conftest.er1
14737 ac_status=$?
14738 grep -v '^ *+' conftest.er1 >conftest.err
14739 rm -f conftest.er1
14740 cat conftest.err >&5
14741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); } && {
14743 test -z "$ac_c_werror_flag" ||
14744 test ! -s conftest.err
14745 } && test -s conftest.$ac_objext; then
14746 ac_header_compiler=yes
14747else
14748 $as_echo "$as_me: failed program was:" >&5
14749sed 's/^/| /' conftest.$ac_ext >&5
14750
14751 ac_header_compiler=no
14752fi
14753
14754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14755{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14756$as_echo "$ac_header_compiler" >&6; }
14757
14758# Is the header present?
14759{ $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14760$as_echo_n "checking jerror.h presence... " >&6; }
14761cat >conftest.$ac_ext <<_ACEOF
14762/* confdefs.h. */
14763_ACEOF
14764cat confdefs.h >>conftest.$ac_ext
14765cat >>conftest.$ac_ext <<_ACEOF
14766/* end confdefs.h. */
14767#include <jerror.h>
14768_ACEOF
14769if { (ac_try="$ac_cpp conftest.$ac_ext"
14770case "(($ac_try" in
14771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14772 *) ac_try_echo=$ac_try;;
14773esac
14774eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14775$as_echo "$ac_try_echo") >&5
14776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14777 ac_status=$?
14778 grep -v '^ *+' conftest.er1 >conftest.err
14779 rm -f conftest.er1
14780 cat conftest.err >&5
14781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); } >/dev/null && {
14783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14784 test ! -s conftest.err
14785 }; then
14786 ac_header_preproc=yes
14787else
14788 $as_echo "$as_me: failed program was:" >&5
14789sed 's/^/| /' conftest.$ac_ext >&5
14790
14791 ac_header_preproc=no
14792fi
14793
14794rm -f conftest.err conftest.$ac_ext
14795{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14796$as_echo "$ac_header_preproc" >&6; }
14797
14798# So? What about this header?
14799case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14800 yes:no: )
14801 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14802$as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14803 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14804$as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14805 ac_header_preproc=yes
14806 ;;
14807 no:yes:* )
14808 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14809$as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14810 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14811$as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14812 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14813$as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14814 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14815$as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14816 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14817$as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14818 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14819$as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14820
14821 ;;
14822esac
14823{ $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14824$as_echo_n "checking for jerror.h... " >&6; }
14825if test "${ac_cv_header_jerror_h+set}" = set; then
14826 $as_echo_n "(cached) " >&6
14827else
14828 ac_cv_header_jerror_h=$ac_header_preproc
14829fi
14830{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14831$as_echo "$ac_cv_header_jerror_h" >&6; }
14832
14833fi
14834if test $ac_cv_header_jerror_h = yes; then
14835 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9853$as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; } 14836$as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
9854if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then : 14837if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9855 $as_echo_n "(cached) " >&6 14838 $as_echo_n "(cached) " >&6
9856else 14839else
9857 ac_check_lib_save_LIBS=$LIBS 14840 ac_check_lib_save_LIBS=$LIBS
9858LIBS="-ljpeg $LIBS" 14841LIBS="-ljpeg $LIBS"
9859cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14842cat >conftest.$ac_ext <<_ACEOF
14843/* confdefs.h. */
14844_ACEOF
14845cat confdefs.h >>conftest.$ac_ext
14846cat >>conftest.$ac_ext <<_ACEOF
9860/* end confdefs.h. */ 14847/* end confdefs.h. */
9861 14848
9862/* Override any GCC internal prototype to avoid an error. 14849/* Override any GCC internal prototype to avoid an error.
@@ -9874,18 +14861,43 @@ return jpeg_destroy_compress ();
9874 return 0; 14861 return 0;
9875} 14862}
9876_ACEOF 14863_ACEOF
9877if ac_fn_c_try_link "$LINENO"; then : 14864rm -f conftest.$ac_objext conftest$ac_exeext
14865if { (ac_try="$ac_link"
14866case "(($ac_try" in
14867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14868 *) ac_try_echo=$ac_try;;
14869esac
14870eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14871$as_echo "$ac_try_echo") >&5
14872 (eval "$ac_link") 2>conftest.er1
14873 ac_status=$?
14874 grep -v '^ *+' conftest.er1 >conftest.err
14875 rm -f conftest.er1
14876 cat conftest.err >&5
14877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); } && {
14879 test -z "$ac_c_werror_flag" ||
14880 test ! -s conftest.err
14881 } && test -s conftest$ac_exeext && {
14882 test "$cross_compiling" = yes ||
14883 $as_test_x conftest$ac_exeext
14884 }; then
9878 ac_cv_lib_jpeg_jpeg_destroy_compress=yes 14885 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
9879else 14886else
9880 ac_cv_lib_jpeg_jpeg_destroy_compress=no 14887 $as_echo "$as_me: failed program was:" >&5
14888sed 's/^/| /' conftest.$ac_ext >&5
14889
14890 ac_cv_lib_jpeg_jpeg_destroy_compress=no
9881fi 14891fi
9882rm -f core conftest.err conftest.$ac_objext \ 14892
9883 conftest$ac_exeext conftest.$ac_ext 14893rm -rf conftest.dSYM
14894rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14895 conftest$ac_exeext conftest.$ac_ext
9884LIBS=$ac_check_lib_save_LIBS 14896LIBS=$ac_check_lib_save_LIBS
9885fi 14897fi
9886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 14898{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9887$as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; } 14899$as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
9888if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then : 14900if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9889 HAVE_JPEG=yes 14901 HAVE_JPEG=yes
9890fi 14902fi
9891 14903
@@ -9894,21 +14906,30 @@ fi
9894 14906
9895 fi 14907 fi
9896 14908
9897 if test "${HAVE_JPEG}" = "yes"; then
9898 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
9899 14909
9900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14910 if test "${HAVE_JPEG}" = "yes"; then
14911 cat >>confdefs.h <<\_ACEOF
14912#define HAVE_JPEG 1
14913_ACEOF
14914
14915 cat >conftest.$ac_ext <<_ACEOF
14916/* confdefs.h. */
14917_ACEOF
14918cat confdefs.h >>conftest.$ac_ext
14919cat >>conftest.$ac_ext <<_ACEOF
9901/* end confdefs.h. */ 14920/* end confdefs.h. */
9902#include <jpeglib.h> 14921#include <jpeglib.h>
9903 version=JPEG_LIB_VERSION 14922 version=JPEG_LIB_VERSION
9904 14923
9905_ACEOF 14924_ACEOF
9906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14925if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9907 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then : 14926 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
9908 $as_echo "#define HAVE_JPEG 1" >>confdefs.h 14927 cat >>confdefs.h <<\_ACEOF
14928#define HAVE_JPEG 1
14929_ACEOF
9909 14930
9910else 14931else
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5 14932 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
9912$as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} 14933$as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9913 HAVE_JPEG=no 14934 HAVE_JPEG=no
9914fi 14935fi
@@ -9928,12 +14949,144 @@ if test "${HAVE_X11}" = "yes"; then
9928 if test "${with_png}" != "no"; then 14949 if test "${with_png}" != "no"; then
9929 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h 14950 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
9930 # in /usr/include/libpng. 14951 # in /usr/include/libpng.
9931 for ac_header in png.h libpng/png.h 14952
9932do : 14953
9933 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14954for ac_header in png.h libpng/png.h
9934ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14955do
9935eval as_val=\$$as_ac_Header 14956as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9936 if test "x$as_val" = x""yes; then : 14957if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14958 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14959$as_echo_n "checking for $ac_header... " >&6; }
14960if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14961 $as_echo_n "(cached) " >&6
14962fi
14963ac_res=`eval 'as_val=${'$as_ac_Header'}
14964 $as_echo "$as_val"'`
14965 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14966$as_echo "$ac_res" >&6; }
14967else
14968 # Is the header compilable?
14969{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14970$as_echo_n "checking $ac_header usability... " >&6; }
14971cat >conftest.$ac_ext <<_ACEOF
14972/* confdefs.h. */
14973_ACEOF
14974cat confdefs.h >>conftest.$ac_ext
14975cat >>conftest.$ac_ext <<_ACEOF
14976/* end confdefs.h. */
14977$ac_includes_default
14978#include <$ac_header>
14979_ACEOF
14980rm -f conftest.$ac_objext
14981if { (ac_try="$ac_compile"
14982case "(($ac_try" in
14983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14984 *) ac_try_echo=$ac_try;;
14985esac
14986eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14987$as_echo "$ac_try_echo") >&5
14988 (eval "$ac_compile") 2>conftest.er1
14989 ac_status=$?
14990 grep -v '^ *+' conftest.er1 >conftest.err
14991 rm -f conftest.er1
14992 cat conftest.err >&5
14993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); } && {
14995 test -z "$ac_c_werror_flag" ||
14996 test ! -s conftest.err
14997 } && test -s conftest.$ac_objext; then
14998 ac_header_compiler=yes
14999else
15000 $as_echo "$as_me: failed program was:" >&5
15001sed 's/^/| /' conftest.$ac_ext >&5
15002
15003 ac_header_compiler=no
15004fi
15005
15006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15007{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15008$as_echo "$ac_header_compiler" >&6; }
15009
15010# Is the header present?
15011{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15012$as_echo_n "checking $ac_header presence... " >&6; }
15013cat >conftest.$ac_ext <<_ACEOF
15014/* confdefs.h. */
15015_ACEOF
15016cat confdefs.h >>conftest.$ac_ext
15017cat >>conftest.$ac_ext <<_ACEOF
15018/* end confdefs.h. */
15019#include <$ac_header>
15020_ACEOF
15021if { (ac_try="$ac_cpp conftest.$ac_ext"
15022case "(($ac_try" in
15023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15024 *) ac_try_echo=$ac_try;;
15025esac
15026eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15027$as_echo "$ac_try_echo") >&5
15028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15029 ac_status=$?
15030 grep -v '^ *+' conftest.er1 >conftest.err
15031 rm -f conftest.er1
15032 cat conftest.err >&5
15033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); } >/dev/null && {
15035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15036 test ! -s conftest.err
15037 }; then
15038 ac_header_preproc=yes
15039else
15040 $as_echo "$as_me: failed program was:" >&5
15041sed 's/^/| /' conftest.$ac_ext >&5
15042
15043 ac_header_preproc=no
15044fi
15045
15046rm -f conftest.err conftest.$ac_ext
15047{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15048$as_echo "$ac_header_preproc" >&6; }
15049
15050# So? What about this header?
15051case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15052 yes:no: )
15053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15054$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15056$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15057 ac_header_preproc=yes
15058 ;;
15059 no:yes:* )
15060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15061$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15063$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15065$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15067$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15069$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15071$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15072
15073 ;;
15074esac
15075{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15076$as_echo_n "checking for $ac_header... " >&6; }
15077if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15078 $as_echo_n "(cached) " >&6
15079else
15080 eval "$as_ac_Header=\$ac_header_preproc"
15081fi
15082ac_res=`eval 'as_val=${'$as_ac_Header'}
15083 $as_echo "$as_val"'`
15084 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15085$as_echo "$ac_res" >&6; }
15086
15087fi
15088if test `eval 'as_val=${'$as_ac_Header'}
15089 $as_echo "$as_val"'` = yes; then
9937 cat >>confdefs.h <<_ACEOF 15090 cat >>confdefs.h <<_ACEOF
9938#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15091#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9939_ACEOF 15092_ACEOF
@@ -9943,14 +15096,18 @@ fi
9943done 15096done
9944 15097
9945 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then 15098 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5 15099 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9947$as_echo_n "checking for png_get_channels in -lpng... " >&6; } 15100$as_echo_n "checking for png_get_channels in -lpng... " >&6; }
9948if test "${ac_cv_lib_png_png_get_channels+set}" = set; then : 15101if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9949 $as_echo_n "(cached) " >&6 15102 $as_echo_n "(cached) " >&6
9950else 15103else
9951 ac_check_lib_save_LIBS=$LIBS 15104 ac_check_lib_save_LIBS=$LIBS
9952LIBS="-lpng -lz -lm $LIBS" 15105LIBS="-lpng -lz -lm $LIBS"
9953cat 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
9954/* end confdefs.h. */ 15111/* end confdefs.h. */
9955 15112
9956/* Override any GCC internal prototype to avoid an error. 15113/* Override any GCC internal prototype to avoid an error.
@@ -9968,18 +15125,43 @@ return png_get_channels ();
9968 return 0; 15125 return 0;
9969} 15126}
9970_ACEOF 15127_ACEOF
9971if 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
9972 ac_cv_lib_png_png_get_channels=yes 15149 ac_cv_lib_png_png_get_channels=yes
9973else 15150else
9974 ac_cv_lib_png_png_get_channels=no 15151 $as_echo "$as_me: failed program was:" >&5
15152sed 's/^/| /' conftest.$ac_ext >&5
15153
15154 ac_cv_lib_png_png_get_channels=no
9975fi 15155fi
9976rm -f core conftest.err conftest.$ac_objext \ 15156
9977 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
9978LIBS=$ac_check_lib_save_LIBS 15160LIBS=$ac_check_lib_save_LIBS
9979fi 15161fi
9980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5 15162{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9981$as_echo "$ac_cv_lib_png_png_get_channels" >&6; } 15163$as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
9982if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then : 15164if test $ac_cv_lib_png_png_get_channels = yes; then
9983 HAVE_PNG=yes 15165 HAVE_PNG=yes
9984fi 15166fi
9985 15167
@@ -9988,7 +15170,9 @@ fi
9988 15170
9989 if test "${HAVE_PNG}" = "yes"; then 15171 if test "${HAVE_PNG}" = "yes"; then
9990 15172
9991$as_echo "#define HAVE_PNG 1" >>confdefs.h 15173cat >>confdefs.h <<\_ACEOF
15174#define HAVE_PNG 1
15175_ACEOF
9992 15176
9993 LIBPNG="-lpng -lz -lm" 15177 LIBPNG="-lpng -lz -lm"
9994 fi 15178 fi
@@ -10000,19 +15184,149 @@ HAVE_TIFF=no
10000LIBTIFF= 15184LIBTIFF=
10001if test "${HAVE_X11}" = "yes"; then 15185if test "${HAVE_X11}" = "yes"; then
10002 if test "${with_tiff}" != "no"; then 15186 if test "${with_tiff}" != "no"; then
10003 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" 15187 if test "${ac_cv_header_tiffio_h+set}" = set; then
10004if test "x$ac_cv_header_tiffio_h" = x""yes; then : 15188 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15189$as_echo_n "checking for tiffio.h... " >&6; }
15190if test "${ac_cv_header_tiffio_h+set}" = set; then
15191 $as_echo_n "(cached) " >&6
15192fi
15193{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15194$as_echo "$ac_cv_header_tiffio_h" >&6; }
15195else
15196 # Is the header compilable?
15197{ $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15198$as_echo_n "checking tiffio.h usability... " >&6; }
15199cat >conftest.$ac_ext <<_ACEOF
15200/* confdefs.h. */
15201_ACEOF
15202cat confdefs.h >>conftest.$ac_ext
15203cat >>conftest.$ac_ext <<_ACEOF
15204/* end confdefs.h. */
15205$ac_includes_default
15206#include <tiffio.h>
15207_ACEOF
15208rm -f conftest.$ac_objext
15209if { (ac_try="$ac_compile"
15210case "(($ac_try" in
15211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15212 *) ac_try_echo=$ac_try;;
15213esac
15214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15215$as_echo "$ac_try_echo") >&5
15216 (eval "$ac_compile") 2>conftest.er1
15217 ac_status=$?
15218 grep -v '^ *+' conftest.er1 >conftest.err
15219 rm -f conftest.er1
15220 cat conftest.err >&5
15221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); } && {
15223 test -z "$ac_c_werror_flag" ||
15224 test ! -s conftest.err
15225 } && test -s conftest.$ac_objext; then
15226 ac_header_compiler=yes
15227else
15228 $as_echo "$as_me: failed program was:" >&5
15229sed 's/^/| /' conftest.$ac_ext >&5
15230
15231 ac_header_compiler=no
15232fi
15233
15234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15235{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15236$as_echo "$ac_header_compiler" >&6; }
15237
15238# Is the header present?
15239{ $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15240$as_echo_n "checking tiffio.h presence... " >&6; }
15241cat >conftest.$ac_ext <<_ACEOF
15242/* confdefs.h. */
15243_ACEOF
15244cat confdefs.h >>conftest.$ac_ext
15245cat >>conftest.$ac_ext <<_ACEOF
15246/* end confdefs.h. */
15247#include <tiffio.h>
15248_ACEOF
15249if { (ac_try="$ac_cpp conftest.$ac_ext"
15250case "(($ac_try" in
15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252 *) ac_try_echo=$ac_try;;
15253esac
15254eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15255$as_echo "$ac_try_echo") >&5
15256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15257 ac_status=$?
15258 grep -v '^ *+' conftest.er1 >conftest.err
15259 rm -f conftest.er1
15260 cat conftest.err >&5
15261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); } >/dev/null && {
15263 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15264 test ! -s conftest.err
15265 }; then
15266 ac_header_preproc=yes
15267else
15268 $as_echo "$as_me: failed program was:" >&5
15269sed 's/^/| /' conftest.$ac_ext >&5
15270
15271 ac_header_preproc=no
15272fi
15273
15274rm -f conftest.err conftest.$ac_ext
15275{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15276$as_echo "$ac_header_preproc" >&6; }
15277
15278# So? What about this header?
15279case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15280 yes:no: )
15281 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15282$as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15283 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15284$as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15285 ac_header_preproc=yes
15286 ;;
15287 no:yes:* )
15288 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15289$as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15290 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15291$as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15292 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15293$as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15294 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15295$as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15296 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15297$as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15298 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15299$as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15300
15301 ;;
15302esac
15303{ $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15304$as_echo_n "checking for tiffio.h... " >&6; }
15305if test "${ac_cv_header_tiffio_h+set}" = set; then
15306 $as_echo_n "(cached) " >&6
15307else
15308 ac_cv_header_tiffio_h=$ac_header_preproc
15309fi
15310{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15311$as_echo "$ac_cv_header_tiffio_h" >&6; }
15312
15313fi
15314if test $ac_cv_header_tiffio_h = yes; then
10005 tifflibs="-lz -lm" 15315 tifflibs="-lz -lm"
10006 # At least one tiff package requires the jpeg library. 15316 # At least one tiff package requires the jpeg library.
10007 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi 15317 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5 15318 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
10009$as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; } 15319$as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10010if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then : 15320if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
10011 $as_echo_n "(cached) " >&6 15321 $as_echo_n "(cached) " >&6
10012else 15322else
10013 ac_check_lib_save_LIBS=$LIBS 15323 ac_check_lib_save_LIBS=$LIBS
10014LIBS="-ltiff $tifflibs $LIBS" 15324LIBS="-ltiff $tifflibs $LIBS"
10015cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15325cat >conftest.$ac_ext <<_ACEOF
15326/* confdefs.h. */
15327_ACEOF
15328cat confdefs.h >>conftest.$ac_ext
15329cat >>conftest.$ac_ext <<_ACEOF
10016/* end confdefs.h. */ 15330/* end confdefs.h. */
10017 15331
10018/* Override any GCC internal prototype to avoid an error. 15332/* Override any GCC internal prototype to avoid an error.
@@ -10030,18 +15344,43 @@ return TIFFGetVersion ();
10030 return 0; 15344 return 0;
10031} 15345}
10032_ACEOF 15346_ACEOF
10033if ac_fn_c_try_link "$LINENO"; then : 15347rm -f conftest.$ac_objext conftest$ac_exeext
15348if { (ac_try="$ac_link"
15349case "(($ac_try" in
15350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15351 *) ac_try_echo=$ac_try;;
15352esac
15353eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15354$as_echo "$ac_try_echo") >&5
15355 (eval "$ac_link") 2>conftest.er1
15356 ac_status=$?
15357 grep -v '^ *+' conftest.er1 >conftest.err
15358 rm -f conftest.er1
15359 cat conftest.err >&5
15360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); } && {
15362 test -z "$ac_c_werror_flag" ||
15363 test ! -s conftest.err
15364 } && test -s conftest$ac_exeext && {
15365 test "$cross_compiling" = yes ||
15366 $as_test_x conftest$ac_exeext
15367 }; then
10034 ac_cv_lib_tiff_TIFFGetVersion=yes 15368 ac_cv_lib_tiff_TIFFGetVersion=yes
10035else 15369else
10036 ac_cv_lib_tiff_TIFFGetVersion=no 15370 $as_echo "$as_me: failed program was:" >&5
15371sed 's/^/| /' conftest.$ac_ext >&5
15372
15373 ac_cv_lib_tiff_TIFFGetVersion=no
10037fi 15374fi
10038rm -f core conftest.err conftest.$ac_objext \ 15375
10039 conftest$ac_exeext conftest.$ac_ext 15376rm -rf conftest.dSYM
15377rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15378 conftest$ac_exeext conftest.$ac_ext
10040LIBS=$ac_check_lib_save_LIBS 15379LIBS=$ac_check_lib_save_LIBS
10041fi 15380fi
10042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 15381{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10043$as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; } 15382$as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10044if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then : 15383if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
10045 HAVE_TIFF=yes 15384 HAVE_TIFF=yes
10046fi 15385fi
10047 15386
@@ -10052,7 +15391,9 @@ fi
10052 15391
10053 if test "${HAVE_TIFF}" = "yes"; then 15392 if test "${HAVE_TIFF}" = "yes"; then
10054 15393
10055$as_echo "#define HAVE_TIFF 1" >>confdefs.h 15394cat >>confdefs.h <<\_ACEOF
15395#define HAVE_TIFF 1
15396_ACEOF
10056 15397
10057 LIBTIFF=-ltiff 15398 LIBTIFF=-ltiff
10058 fi 15399 fi
@@ -10063,18 +15404,148 @@ fi
10063HAVE_GIF=no 15404HAVE_GIF=no
10064LIBGIF= 15405LIBGIF=
10065if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then 15406if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10066 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 15407 if test "${ac_cv_header_gif_lib_h+set}" = set; then
10067if test "x$ac_cv_header_gif_lib_h" = x""yes; then : 15408 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15409$as_echo_n "checking for gif_lib.h... " >&6; }
15410if test "${ac_cv_header_gif_lib_h+set}" = set; then
15411 $as_echo_n "(cached) " >&6
15412fi
15413{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15414$as_echo "$ac_cv_header_gif_lib_h" >&6; }
15415else
15416 # Is the header compilable?
15417{ $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15418$as_echo_n "checking gif_lib.h usability... " >&6; }
15419cat >conftest.$ac_ext <<_ACEOF
15420/* confdefs.h. */
15421_ACEOF
15422cat confdefs.h >>conftest.$ac_ext
15423cat >>conftest.$ac_ext <<_ACEOF
15424/* end confdefs.h. */
15425$ac_includes_default
15426#include <gif_lib.h>
15427_ACEOF
15428rm -f conftest.$ac_objext
15429if { (ac_try="$ac_compile"
15430case "(($ac_try" in
15431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15432 *) ac_try_echo=$ac_try;;
15433esac
15434eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15435$as_echo "$ac_try_echo") >&5
15436 (eval "$ac_compile") 2>conftest.er1
15437 ac_status=$?
15438 grep -v '^ *+' conftest.er1 >conftest.err
15439 rm -f conftest.er1
15440 cat conftest.err >&5
15441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); } && {
15443 test -z "$ac_c_werror_flag" ||
15444 test ! -s conftest.err
15445 } && test -s conftest.$ac_objext; then
15446 ac_header_compiler=yes
15447else
15448 $as_echo "$as_me: failed program was:" >&5
15449sed 's/^/| /' conftest.$ac_ext >&5
15450
15451 ac_header_compiler=no
15452fi
15453
15454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15455{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15456$as_echo "$ac_header_compiler" >&6; }
15457
15458# Is the header present?
15459{ $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15460$as_echo_n "checking gif_lib.h presence... " >&6; }
15461cat >conftest.$ac_ext <<_ACEOF
15462/* confdefs.h. */
15463_ACEOF
15464cat confdefs.h >>conftest.$ac_ext
15465cat >>conftest.$ac_ext <<_ACEOF
15466/* end confdefs.h. */
15467#include <gif_lib.h>
15468_ACEOF
15469if { (ac_try="$ac_cpp conftest.$ac_ext"
15470case "(($ac_try" in
15471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15472 *) ac_try_echo=$ac_try;;
15473esac
15474eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15475$as_echo "$ac_try_echo") >&5
15476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15477 ac_status=$?
15478 grep -v '^ *+' conftest.er1 >conftest.err
15479 rm -f conftest.er1
15480 cat conftest.err >&5
15481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } >/dev/null && {
15483 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15484 test ! -s conftest.err
15485 }; then
15486 ac_header_preproc=yes
15487else
15488 $as_echo "$as_me: failed program was:" >&5
15489sed 's/^/| /' conftest.$ac_ext >&5
15490
15491 ac_header_preproc=no
15492fi
15493
15494rm -f conftest.err conftest.$ac_ext
15495{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15496$as_echo "$ac_header_preproc" >&6; }
15497
15498# So? What about this header?
15499case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15500 yes:no: )
15501 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15502$as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15503 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15504$as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15505 ac_header_preproc=yes
15506 ;;
15507 no:yes:* )
15508 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15509$as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15510 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15511$as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15512 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15513$as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15514 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15515$as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15516 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15517$as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15518 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15519$as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15520
15521 ;;
15522esac
15523{ $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15524$as_echo_n "checking for gif_lib.h... " >&6; }
15525if test "${ac_cv_header_gif_lib_h+set}" = set; then
15526 $as_echo_n "(cached) " >&6
15527else
15528 ac_cv_header_gif_lib_h=$ac_header_preproc
15529fi
15530{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15531$as_echo "$ac_cv_header_gif_lib_h" >&6; }
15532
15533fi
15534if test $ac_cv_header_gif_lib_h = yes; then
10068 # EGifPutExtensionLast only exists from version libungif-4.1.0b1. 15535 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10069# Earlier versions can crash Emacs. 15536# Earlier versions can crash Emacs.
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5 15537 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
10071$as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; } 15538$as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10072if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then : 15539if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
10073 $as_echo_n "(cached) " >&6 15540 $as_echo_n "(cached) " >&6
10074else 15541else
10075 ac_check_lib_save_LIBS=$LIBS 15542 ac_check_lib_save_LIBS=$LIBS
10076LIBS="-lgif $LIBS" 15543LIBS="-lgif $LIBS"
10077cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15544cat >conftest.$ac_ext <<_ACEOF
15545/* confdefs.h. */
15546_ACEOF
15547cat confdefs.h >>conftest.$ac_ext
15548cat >>conftest.$ac_ext <<_ACEOF
10078/* end confdefs.h. */ 15549/* end confdefs.h. */
10079 15550
10080/* Override any GCC internal prototype to avoid an error. 15551/* Override any GCC internal prototype to avoid an error.
@@ -10092,18 +15563,43 @@ return EGifPutExtensionLast ();
10092 return 0; 15563 return 0;
10093} 15564}
10094_ACEOF 15565_ACEOF
10095if ac_fn_c_try_link "$LINENO"; then : 15566rm -f conftest.$ac_objext conftest$ac_exeext
15567if { (ac_try="$ac_link"
15568case "(($ac_try" in
15569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15570 *) ac_try_echo=$ac_try;;
15571esac
15572eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15573$as_echo "$ac_try_echo") >&5
15574 (eval "$ac_link") 2>conftest.er1
15575 ac_status=$?
15576 grep -v '^ *+' conftest.er1 >conftest.err
15577 rm -f conftest.er1
15578 cat conftest.err >&5
15579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); } && {
15581 test -z "$ac_c_werror_flag" ||
15582 test ! -s conftest.err
15583 } && test -s conftest$ac_exeext && {
15584 test "$cross_compiling" = yes ||
15585 $as_test_x conftest$ac_exeext
15586 }; then
10096 ac_cv_lib_gif_EGifPutExtensionLast=yes 15587 ac_cv_lib_gif_EGifPutExtensionLast=yes
10097else 15588else
10098 ac_cv_lib_gif_EGifPutExtensionLast=no 15589 $as_echo "$as_me: failed program was:" >&5
15590sed 's/^/| /' conftest.$ac_ext >&5
15591
15592 ac_cv_lib_gif_EGifPutExtensionLast=no
10099fi 15593fi
10100rm -f core conftest.err conftest.$ac_objext \ 15594
10101 conftest$ac_exeext conftest.$ac_ext 15595rm -rf conftest.dSYM
15596rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15597 conftest$ac_exeext conftest.$ac_ext
10102LIBS=$ac_check_lib_save_LIBS 15598LIBS=$ac_check_lib_save_LIBS
10103fi 15599fi
10104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5 15600{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10105$as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; } 15601$as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10106if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then : 15602if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
10107 HAVE_GIF=yes 15603 HAVE_GIF=yes
10108else 15604else
10109 HAVE_GIF=maybe 15605 HAVE_GIF=maybe
@@ -10117,14 +15613,18 @@ fi
10117 LIBGIF=-lgif 15613 LIBGIF=-lgif
10118 elif test "$HAVE_GIF" = maybe; then 15614 elif test "$HAVE_GIF" = maybe; then
10119# If gif_lib.h but no libgif, try libungif. 15615# If gif_lib.h but no libgif, try libungif.
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5 15616 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
10121$as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; } 15617$as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10122if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then : 15618if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
10123 $as_echo_n "(cached) " >&6 15619 $as_echo_n "(cached) " >&6
10124else 15620else
10125 ac_check_lib_save_LIBS=$LIBS 15621 ac_check_lib_save_LIBS=$LIBS
10126LIBS="-lungif $LIBS" 15622LIBS="-lungif $LIBS"
10127cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15623cat >conftest.$ac_ext <<_ACEOF
15624/* confdefs.h. */
15625_ACEOF
15626cat confdefs.h >>conftest.$ac_ext
15627cat >>conftest.$ac_ext <<_ACEOF
10128/* end confdefs.h. */ 15628/* end confdefs.h. */
10129 15629
10130/* Override any GCC internal prototype to avoid an error. 15630/* Override any GCC internal prototype to avoid an error.
@@ -10142,18 +15642,43 @@ return EGifPutExtensionLast ();
10142 return 0; 15642 return 0;
10143} 15643}
10144_ACEOF 15644_ACEOF
10145if ac_fn_c_try_link "$LINENO"; then : 15645rm -f conftest.$ac_objext conftest$ac_exeext
15646if { (ac_try="$ac_link"
15647case "(($ac_try" in
15648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15649 *) ac_try_echo=$ac_try;;
15650esac
15651eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15652$as_echo "$ac_try_echo") >&5
15653 (eval "$ac_link") 2>conftest.er1
15654 ac_status=$?
15655 grep -v '^ *+' conftest.er1 >conftest.err
15656 rm -f conftest.er1
15657 cat conftest.err >&5
15658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); } && {
15660 test -z "$ac_c_werror_flag" ||
15661 test ! -s conftest.err
15662 } && test -s conftest$ac_exeext && {
15663 test "$cross_compiling" = yes ||
15664 $as_test_x conftest$ac_exeext
15665 }; then
10146 ac_cv_lib_ungif_EGifPutExtensionLast=yes 15666 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10147else 15667else
10148 ac_cv_lib_ungif_EGifPutExtensionLast=no 15668 $as_echo "$as_me: failed program was:" >&5
15669sed 's/^/| /' conftest.$ac_ext >&5
15670
15671 ac_cv_lib_ungif_EGifPutExtensionLast=no
10149fi 15672fi
10150rm -f core conftest.err conftest.$ac_objext \ 15673
10151 conftest$ac_exeext conftest.$ac_ext 15674rm -rf conftest.dSYM
15675rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15676 conftest$ac_exeext conftest.$ac_ext
10152LIBS=$ac_check_lib_save_LIBS 15677LIBS=$ac_check_lib_save_LIBS
10153fi 15678fi
10154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 15679{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10155$as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; } 15680$as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10156if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then : 15681if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
10157 HAVE_GIF=yes 15682 HAVE_GIF=yes
10158else 15683else
10159 HAVE_GIF=no 15684 HAVE_GIF=no
@@ -10164,7 +15689,9 @@ fi
10164 15689
10165 if test "${HAVE_GIF}" = "yes"; then 15690 if test "${HAVE_GIF}" = "yes"; then
10166 15691
10167$as_echo "#define HAVE_GIF 1" >>confdefs.h 15692cat >>confdefs.h <<\_ACEOF
15693#define HAVE_GIF 1
15694_ACEOF
10168 15695
10169 fi 15696 fi
10170fi 15697fi
@@ -10185,12 +15712,19 @@ if test "${HAVE_X11}" = "yes"; then
10185 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no" 15712 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
10186 15713
10187 if test "X${MISSING}" != X; then 15714 if test "X${MISSING}" != X; then
10188 as_fn_error "The following required libraries were not found: 15715 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15716 $MISSING
15717Maybe some development libraries/packages are missing?
15718If you don't want to link with them give
15719 $WITH_NO
15720as options to configure" >&5
15721$as_echo "$as_me: error: The following required libraries were not found:
10189 $MISSING 15722 $MISSING
10190Maybe some development libraries/packages are missing? 15723Maybe some development libraries/packages are missing?
10191If you don't want to link with them give 15724If you don't want to link with them give
10192 $WITH_NO 15725 $WITH_NO
10193as options to configure" "$LINENO" 5 15726as options to configure" >&2;}
15727 { (exit 1); exit 1; }; }
10194 fi 15728 fi
10195fi 15729fi
10196 15730
@@ -10198,16 +15732,146 @@ fi
10198HAVE_GPM=no 15732HAVE_GPM=no
10199LIBGPM= 15733LIBGPM=
10200if test "${with_gpm}" != "no"; then 15734if test "${with_gpm}" != "no"; then
10201 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default" 15735 if test "${ac_cv_header_gpm_h+set}" = set; then
10202if test "x$ac_cv_header_gpm_h" = x""yes; then : 15736 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5 15737$as_echo_n "checking for gpm.h... " >&6; }
15738if test "${ac_cv_header_gpm_h+set}" = set; then
15739 $as_echo_n "(cached) " >&6
15740fi
15741{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15742$as_echo "$ac_cv_header_gpm_h" >&6; }
15743else
15744 # Is the header compilable?
15745{ $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15746$as_echo_n "checking gpm.h usability... " >&6; }
15747cat >conftest.$ac_ext <<_ACEOF
15748/* confdefs.h. */
15749_ACEOF
15750cat confdefs.h >>conftest.$ac_ext
15751cat >>conftest.$ac_ext <<_ACEOF
15752/* end confdefs.h. */
15753$ac_includes_default
15754#include <gpm.h>
15755_ACEOF
15756rm -f conftest.$ac_objext
15757if { (ac_try="$ac_compile"
15758case "(($ac_try" in
15759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15760 *) ac_try_echo=$ac_try;;
15761esac
15762eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15763$as_echo "$ac_try_echo") >&5
15764 (eval "$ac_compile") 2>conftest.er1
15765 ac_status=$?
15766 grep -v '^ *+' conftest.er1 >conftest.err
15767 rm -f conftest.er1
15768 cat conftest.err >&5
15769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); } && {
15771 test -z "$ac_c_werror_flag" ||
15772 test ! -s conftest.err
15773 } && test -s conftest.$ac_objext; then
15774 ac_header_compiler=yes
15775else
15776 $as_echo "$as_me: failed program was:" >&5
15777sed 's/^/| /' conftest.$ac_ext >&5
15778
15779 ac_header_compiler=no
15780fi
15781
15782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15783{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15784$as_echo "$ac_header_compiler" >&6; }
15785
15786# Is the header present?
15787{ $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15788$as_echo_n "checking gpm.h presence... " >&6; }
15789cat >conftest.$ac_ext <<_ACEOF
15790/* confdefs.h. */
15791_ACEOF
15792cat confdefs.h >>conftest.$ac_ext
15793cat >>conftest.$ac_ext <<_ACEOF
15794/* end confdefs.h. */
15795#include <gpm.h>
15796_ACEOF
15797if { (ac_try="$ac_cpp conftest.$ac_ext"
15798case "(($ac_try" in
15799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15800 *) ac_try_echo=$ac_try;;
15801esac
15802eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15803$as_echo "$ac_try_echo") >&5
15804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15805 ac_status=$?
15806 grep -v '^ *+' conftest.er1 >conftest.err
15807 rm -f conftest.er1
15808 cat conftest.err >&5
15809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); } >/dev/null && {
15811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15812 test ! -s conftest.err
15813 }; then
15814 ac_header_preproc=yes
15815else
15816 $as_echo "$as_me: failed program was:" >&5
15817sed 's/^/| /' conftest.$ac_ext >&5
15818
15819 ac_header_preproc=no
15820fi
15821
15822rm -f conftest.err conftest.$ac_ext
15823{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15824$as_echo "$ac_header_preproc" >&6; }
15825
15826# So? What about this header?
15827case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15828 yes:no: )
15829 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15830$as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15831 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15832$as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15833 ac_header_preproc=yes
15834 ;;
15835 no:yes:* )
15836 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15837$as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15838 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15839$as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15840 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15841$as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15842 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15843$as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15844 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15845$as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15846 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15847$as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15848
15849 ;;
15850esac
15851{ $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15852$as_echo_n "checking for gpm.h... " >&6; }
15853if test "${ac_cv_header_gpm_h+set}" = set; then
15854 $as_echo_n "(cached) " >&6
15855else
15856 ac_cv_header_gpm_h=$ac_header_preproc
15857fi
15858{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15859$as_echo "$ac_cv_header_gpm_h" >&6; }
15860
15861fi
15862if test $ac_cv_header_gpm_h = yes; then
15863 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
10204$as_echo_n "checking for Gpm_Open in -lgpm... " >&6; } 15864$as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10205if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then : 15865if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
10206 $as_echo_n "(cached) " >&6 15866 $as_echo_n "(cached) " >&6
10207else 15867else
10208 ac_check_lib_save_LIBS=$LIBS 15868 ac_check_lib_save_LIBS=$LIBS
10209LIBS="-lgpm $LIBS" 15869LIBS="-lgpm $LIBS"
10210cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15870cat >conftest.$ac_ext <<_ACEOF
15871/* confdefs.h. */
15872_ACEOF
15873cat confdefs.h >>conftest.$ac_ext
15874cat >>conftest.$ac_ext <<_ACEOF
10211/* end confdefs.h. */ 15875/* end confdefs.h. */
10212 15876
10213/* Override any GCC internal prototype to avoid an error. 15877/* Override any GCC internal prototype to avoid an error.
@@ -10225,18 +15889,43 @@ return Gpm_Open ();
10225 return 0; 15889 return 0;
10226} 15890}
10227_ACEOF 15891_ACEOF
10228if ac_fn_c_try_link "$LINENO"; then : 15892rm -f conftest.$ac_objext conftest$ac_exeext
15893if { (ac_try="$ac_link"
15894case "(($ac_try" in
15895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15896 *) ac_try_echo=$ac_try;;
15897esac
15898eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15899$as_echo "$ac_try_echo") >&5
15900 (eval "$ac_link") 2>conftest.er1
15901 ac_status=$?
15902 grep -v '^ *+' conftest.er1 >conftest.err
15903 rm -f conftest.er1
15904 cat conftest.err >&5
15905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); } && {
15907 test -z "$ac_c_werror_flag" ||
15908 test ! -s conftest.err
15909 } && test -s conftest$ac_exeext && {
15910 test "$cross_compiling" = yes ||
15911 $as_test_x conftest$ac_exeext
15912 }; then
10229 ac_cv_lib_gpm_Gpm_Open=yes 15913 ac_cv_lib_gpm_Gpm_Open=yes
10230else 15914else
10231 ac_cv_lib_gpm_Gpm_Open=no 15915 $as_echo "$as_me: failed program was:" >&5
15916sed 's/^/| /' conftest.$ac_ext >&5
15917
15918 ac_cv_lib_gpm_Gpm_Open=no
10232fi 15919fi
10233rm -f core conftest.err conftest.$ac_objext \ 15920
10234 conftest$ac_exeext conftest.$ac_ext 15921rm -rf conftest.dSYM
15922rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15923 conftest$ac_exeext conftest.$ac_ext
10235LIBS=$ac_check_lib_save_LIBS 15924LIBS=$ac_check_lib_save_LIBS
10236fi 15925fi
10237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5 15926{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10238$as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; } 15927$as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10239if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then : 15928if test $ac_cv_lib_gpm_Gpm_Open = yes; then
10240 HAVE_GPM=yes 15929 HAVE_GPM=yes
10241fi 15930fi
10242 15931
@@ -10246,42 +15935,184 @@ fi
10246 15935
10247 if test "${HAVE_GPM}" = "yes"; then 15936 if test "${HAVE_GPM}" = "yes"; then
10248 15937
10249$as_echo "#define HAVE_GPM 1" >>confdefs.h 15938cat >>confdefs.h <<\_ACEOF
15939#define HAVE_GPM 1
15940_ACEOF
10250 15941
10251 LIBGPM=-lgpm 15942 LIBGPM=-lgpm
10252 fi 15943 fi
10253fi 15944fi
10254 15945
10255 15946
10256ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default" 15947if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
10257if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then : 15948 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15949$as_echo_n "checking for malloc/malloc.h... " >&6; }
15950if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15951 $as_echo_n "(cached) " >&6
15952fi
15953{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15954$as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15955else
15956 # Is the header compilable?
15957{ $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15958$as_echo_n "checking malloc/malloc.h usability... " >&6; }
15959cat >conftest.$ac_ext <<_ACEOF
15960/* confdefs.h. */
15961_ACEOF
15962cat confdefs.h >>conftest.$ac_ext
15963cat >>conftest.$ac_ext <<_ACEOF
15964/* end confdefs.h. */
15965$ac_includes_default
15966#include <malloc/malloc.h>
15967_ACEOF
15968rm -f conftest.$ac_objext
15969if { (ac_try="$ac_compile"
15970case "(($ac_try" in
15971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15972 *) ac_try_echo=$ac_try;;
15973esac
15974eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15975$as_echo "$ac_try_echo") >&5
15976 (eval "$ac_compile") 2>conftest.er1
15977 ac_status=$?
15978 grep -v '^ *+' conftest.er1 >conftest.err
15979 rm -f conftest.er1
15980 cat conftest.err >&5
15981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); } && {
15983 test -z "$ac_c_werror_flag" ||
15984 test ! -s conftest.err
15985 } && test -s conftest.$ac_objext; then
15986 ac_header_compiler=yes
15987else
15988 $as_echo "$as_me: failed program was:" >&5
15989sed 's/^/| /' conftest.$ac_ext >&5
15990
15991 ac_header_compiler=no
15992fi
15993
15994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15995{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15996$as_echo "$ac_header_compiler" >&6; }
15997
15998# Is the header present?
15999{ $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16000$as_echo_n "checking malloc/malloc.h presence... " >&6; }
16001cat >conftest.$ac_ext <<_ACEOF
16002/* confdefs.h. */
16003_ACEOF
16004cat confdefs.h >>conftest.$ac_ext
16005cat >>conftest.$ac_ext <<_ACEOF
16006/* end confdefs.h. */
16007#include <malloc/malloc.h>
16008_ACEOF
16009if { (ac_try="$ac_cpp conftest.$ac_ext"
16010case "(($ac_try" in
16011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16012 *) ac_try_echo=$ac_try;;
16013esac
16014eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16015$as_echo "$ac_try_echo") >&5
16016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16017 ac_status=$?
16018 grep -v '^ *+' conftest.er1 >conftest.err
16019 rm -f conftest.er1
16020 cat conftest.err >&5
16021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); } >/dev/null && {
16023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16024 test ! -s conftest.err
16025 }; then
16026 ac_header_preproc=yes
16027else
16028 $as_echo "$as_me: failed program was:" >&5
16029sed 's/^/| /' conftest.$ac_ext >&5
16030
16031 ac_header_preproc=no
16032fi
16033
16034rm -f conftest.err conftest.$ac_ext
16035{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16036$as_echo "$ac_header_preproc" >&6; }
16037
16038# So? What about this header?
16039case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16040 yes:no: )
16041 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16042$as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16043 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16044$as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16045 ac_header_preproc=yes
16046 ;;
16047 no:yes:* )
16048 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16049$as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16050 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16051$as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16052 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16053$as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16054 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16055$as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16056 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16057$as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16058 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16059$as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
10258 16060
10259$as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h 16061 ;;
16062esac
16063{ $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16064$as_echo_n "checking for malloc/malloc.h... " >&6; }
16065if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16066 $as_echo_n "(cached) " >&6
16067else
16068 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16069fi
16070{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16071$as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16072
16073fi
16074if test $ac_cv_header_malloc_malloc_h = yes; then
16075
16076cat >>confdefs.h <<\_ACEOF
16077#define HAVE_MALLOC_MALLOC_H 1
16078_ACEOF
10260 16079
10261fi 16080fi
10262 16081
10263 16082
10264 16083
16084C_SWITCH_X_SYSTEM=
10265### Use NeXTstep API to implement GUI. 16085### Use NeXTstep API to implement GUI.
10266if test "${HAVE_NS}" = "yes"; then 16086if test "${HAVE_NS}" = "yes"; then
10267 16087
10268$as_echo "#define HAVE_NS 1" >>confdefs.h 16088cat >>confdefs.h <<\_ACEOF
16089#define HAVE_NS 1
16090_ACEOF
10269 16091
10270 if test "${NS_IMPL_COCOA}" = "yes"; then 16092 if test "${NS_IMPL_COCOA}" = "yes"; then
10271 16093
10272$as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h 16094cat >>confdefs.h <<\_ACEOF
16095#define NS_IMPL_COCOA 1
16096_ACEOF
10273 16097
10274 GNU_OBJC_CFLAGS= 16098 GNU_OBJC_CFLAGS=
10275 fi 16099 fi
10276 if test "${NS_IMPL_GNUSTEP}" = "yes"; then 16100 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
10277 16101
10278$as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h 16102cat >>confdefs.h <<\_ACEOF
16103#define NS_IMPL_GNUSTEP 1
16104_ACEOF
10279 16105
16106 # See also .m.o rule in Makefile.in */
16107 # FIXME: are all these flags really needed? Document here why. */
16108 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
10280 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE" 16109 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
10281 fi 16110 fi
10282 if test "${NS_HAVE_NSINTEGER}" = "yes"; then 16111 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
10283 16112
10284$as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h 16113cat >>confdefs.h <<\_ACEOF
16114#define NS_HAVE_NSINTEGER 1
16115_ACEOF
10285 16116
10286 fi 16117 fi
10287 # We also have mouse menus. 16118 # We also have mouse menus.
@@ -10294,16 +16125,146 @@ fi
10294HAVE_X_SM=no 16125HAVE_X_SM=no
10295LIBXSM= 16126LIBXSM=
10296if test "${HAVE_X11}" = "yes"; then 16127if test "${HAVE_X11}" = "yes"; then
10297 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default" 16128 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10298if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then : 16129 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5 16130$as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16131if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16132 $as_echo_n "(cached) " >&6
16133fi
16134{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16135$as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16136else
16137 # Is the header compilable?
16138{ $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16139$as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16140cat >conftest.$ac_ext <<_ACEOF
16141/* confdefs.h. */
16142_ACEOF
16143cat confdefs.h >>conftest.$ac_ext
16144cat >>conftest.$ac_ext <<_ACEOF
16145/* end confdefs.h. */
16146$ac_includes_default
16147#include <X11/SM/SMlib.h>
16148_ACEOF
16149rm -f conftest.$ac_objext
16150if { (ac_try="$ac_compile"
16151case "(($ac_try" in
16152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16153 *) ac_try_echo=$ac_try;;
16154esac
16155eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16156$as_echo "$ac_try_echo") >&5
16157 (eval "$ac_compile") 2>conftest.er1
16158 ac_status=$?
16159 grep -v '^ *+' conftest.er1 >conftest.err
16160 rm -f conftest.er1
16161 cat conftest.err >&5
16162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); } && {
16164 test -z "$ac_c_werror_flag" ||
16165 test ! -s conftest.err
16166 } && test -s conftest.$ac_objext; then
16167 ac_header_compiler=yes
16168else
16169 $as_echo "$as_me: failed program was:" >&5
16170sed 's/^/| /' conftest.$ac_ext >&5
16171
16172 ac_header_compiler=no
16173fi
16174
16175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16176{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16177$as_echo "$ac_header_compiler" >&6; }
16178
16179# Is the header present?
16180{ $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16181$as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16182cat >conftest.$ac_ext <<_ACEOF
16183/* confdefs.h. */
16184_ACEOF
16185cat confdefs.h >>conftest.$ac_ext
16186cat >>conftest.$ac_ext <<_ACEOF
16187/* end confdefs.h. */
16188#include <X11/SM/SMlib.h>
16189_ACEOF
16190if { (ac_try="$ac_cpp conftest.$ac_ext"
16191case "(($ac_try" in
16192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16193 *) ac_try_echo=$ac_try;;
16194esac
16195eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16196$as_echo "$ac_try_echo") >&5
16197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16198 ac_status=$?
16199 grep -v '^ *+' conftest.er1 >conftest.err
16200 rm -f conftest.er1
16201 cat conftest.err >&5
16202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); } >/dev/null && {
16204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16205 test ! -s conftest.err
16206 }; then
16207 ac_header_preproc=yes
16208else
16209 $as_echo "$as_me: failed program was:" >&5
16210sed 's/^/| /' conftest.$ac_ext >&5
16211
16212 ac_header_preproc=no
16213fi
16214
16215rm -f conftest.err conftest.$ac_ext
16216{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16217$as_echo "$ac_header_preproc" >&6; }
16218
16219# So? What about this header?
16220case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16221 yes:no: )
16222 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16223$as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16224 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16225$as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16226 ac_header_preproc=yes
16227 ;;
16228 no:yes:* )
16229 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16230$as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16231 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16232$as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16233 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16234$as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16235 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16236$as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16237 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16238$as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16239 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16240$as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16241
16242 ;;
16243esac
16244{ $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16245$as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16246if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16247 $as_echo_n "(cached) " >&6
16248else
16249 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16250fi
16251{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16252$as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16253
16254fi
16255if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16256 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10300$as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; } 16257$as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
10301if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then : 16258if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10302 $as_echo_n "(cached) " >&6 16259 $as_echo_n "(cached) " >&6
10303else 16260else
10304 ac_check_lib_save_LIBS=$LIBS 16261 ac_check_lib_save_LIBS=$LIBS
10305LIBS="-lSM -lICE $LIBS" 16262LIBS="-lSM -lICE $LIBS"
10306cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16263cat >conftest.$ac_ext <<_ACEOF
16264/* confdefs.h. */
16265_ACEOF
16266cat confdefs.h >>conftest.$ac_ext
16267cat >>conftest.$ac_ext <<_ACEOF
10307/* end confdefs.h. */ 16268/* end confdefs.h. */
10308 16269
10309/* Override any GCC internal prototype to avoid an error. 16270/* Override any GCC internal prototype to avoid an error.
@@ -10321,18 +16282,43 @@ return SmcOpenConnection ();
10321 return 0; 16282 return 0;
10322} 16283}
10323_ACEOF 16284_ACEOF
10324if ac_fn_c_try_link "$LINENO"; then : 16285rm -f conftest.$ac_objext conftest$ac_exeext
16286if { (ac_try="$ac_link"
16287case "(($ac_try" in
16288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16289 *) ac_try_echo=$ac_try;;
16290esac
16291eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16292$as_echo "$ac_try_echo") >&5
16293 (eval "$ac_link") 2>conftest.er1
16294 ac_status=$?
16295 grep -v '^ *+' conftest.er1 >conftest.err
16296 rm -f conftest.er1
16297 cat conftest.err >&5
16298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); } && {
16300 test -z "$ac_c_werror_flag" ||
16301 test ! -s conftest.err
16302 } && test -s conftest$ac_exeext && {
16303 test "$cross_compiling" = yes ||
16304 $as_test_x conftest$ac_exeext
16305 }; then
10325 ac_cv_lib_SM_SmcOpenConnection=yes 16306 ac_cv_lib_SM_SmcOpenConnection=yes
10326else 16307else
10327 ac_cv_lib_SM_SmcOpenConnection=no 16308 $as_echo "$as_me: failed program was:" >&5
16309sed 's/^/| /' conftest.$ac_ext >&5
16310
16311 ac_cv_lib_SM_SmcOpenConnection=no
10328fi 16312fi
10329rm -f core conftest.err conftest.$ac_objext \ 16313
10330 conftest$ac_exeext conftest.$ac_ext 16314rm -rf conftest.dSYM
16315rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16316 conftest$ac_exeext conftest.$ac_ext
10331LIBS=$ac_check_lib_save_LIBS 16317LIBS=$ac_check_lib_save_LIBS
10332fi 16318fi
10333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 16319{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10334$as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; } 16320$as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
10335if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then : 16321if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10336 HAVE_X_SM=yes 16322 HAVE_X_SM=yes
10337fi 16323fi
10338 16324
@@ -10342,7 +16328,9 @@ fi
10342 16328
10343 if test "${HAVE_X_SM}" = "yes"; then 16329 if test "${HAVE_X_SM}" = "yes"; then
10344 16330
10345$as_echo "#define HAVE_X_SM 1" >>confdefs.h 16331cat >>confdefs.h <<\_ACEOF
16332#define HAVE_X_SM 1
16333_ACEOF
10346 16334
10347 LIBXSM="-lSM -lICE" 16335 LIBXSM="-lSM -lICE"
10348 case "$LIBS" in 16336 case "$LIBS" in
@@ -10354,12 +16342,16 @@ fi
10354 16342
10355 16343
10356# If netdb.h doesn't declare h_errno, we must declare it by hand. 16344# If netdb.h doesn't declare h_errno, we must declare it by hand.
10357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5 16345{ $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10358$as_echo_n "checking whether netdb declares h_errno... " >&6; } 16346$as_echo_n "checking whether netdb declares h_errno... " >&6; }
10359if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then : 16347if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10360 $as_echo_n "(cached) " >&6 16348 $as_echo_n "(cached) " >&6
10361else 16349else
10362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16350 cat >conftest.$ac_ext <<_ACEOF
16351/* confdefs.h. */
16352_ACEOF
16353cat confdefs.h >>conftest.$ac_ext
16354cat >>conftest.$ac_ext <<_ACEOF
10363/* end confdefs.h. */ 16355/* end confdefs.h. */
10364#include <netdb.h> 16356#include <netdb.h>
10365int 16357int
@@ -10370,30 +16362,61 @@ return h_errno;
10370 return 0; 16362 return 0;
10371} 16363}
10372_ACEOF 16364_ACEOF
10373if ac_fn_c_try_link "$LINENO"; then : 16365rm -f conftest.$ac_objext conftest$ac_exeext
16366if { (ac_try="$ac_link"
16367case "(($ac_try" in
16368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16369 *) ac_try_echo=$ac_try;;
16370esac
16371eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16372$as_echo "$ac_try_echo") >&5
16373 (eval "$ac_link") 2>conftest.er1
16374 ac_status=$?
16375 grep -v '^ *+' conftest.er1 >conftest.err
16376 rm -f conftest.er1
16377 cat conftest.err >&5
16378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); } && {
16380 test -z "$ac_c_werror_flag" ||
16381 test ! -s conftest.err
16382 } && test -s conftest$ac_exeext && {
16383 test "$cross_compiling" = yes ||
16384 $as_test_x conftest$ac_exeext
16385 }; then
10374 emacs_cv_netdb_declares_h_errno=yes 16386 emacs_cv_netdb_declares_h_errno=yes
10375else 16387else
10376 emacs_cv_netdb_declares_h_errno=no 16388 $as_echo "$as_me: failed program was:" >&5
16389sed 's/^/| /' conftest.$ac_ext >&5
16390
16391 emacs_cv_netdb_declares_h_errno=no
10377fi 16392fi
10378rm -f core conftest.err conftest.$ac_objext \ 16393
10379 conftest$ac_exeext conftest.$ac_ext 16394rm -rf conftest.dSYM
16395rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16396 conftest$ac_exeext conftest.$ac_ext
10380fi 16397fi
10381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5 16398{ $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10382$as_echo "$emacs_cv_netdb_declares_h_errno" >&6; } 16399$as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
10383if test $emacs_cv_netdb_declares_h_errno = yes; then 16400if test $emacs_cv_netdb_declares_h_errno = yes; then
10384 16401
10385$as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h 16402cat >>confdefs.h <<\_ACEOF
16403#define HAVE_H_ERRNO 1
16404_ACEOF
10386 16405
10387fi 16406fi
10388 16407
10389# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 16408# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10390# for constant arguments. Useless! 16409# for constant arguments. Useless!
10391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 16410{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
10392$as_echo_n "checking for working alloca.h... " >&6; } 16411$as_echo_n "checking for working alloca.h... " >&6; }
10393if test "${ac_cv_working_alloca_h+set}" = set; then : 16412if test "${ac_cv_working_alloca_h+set}" = set; then
10394 $as_echo_n "(cached) " >&6 16413 $as_echo_n "(cached) " >&6
10395else 16414else
10396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16415 cat >conftest.$ac_ext <<_ACEOF
16416/* confdefs.h. */
16417_ACEOF
16418cat confdefs.h >>conftest.$ac_ext
16419cat >>conftest.$ac_ext <<_ACEOF
10397/* end confdefs.h. */ 16420/* end confdefs.h. */
10398#include <alloca.h> 16421#include <alloca.h>
10399int 16422int
@@ -10405,28 +16428,59 @@ char *p = (char *) alloca (2 * sizeof (int));
10405 return 0; 16428 return 0;
10406} 16429}
10407_ACEOF 16430_ACEOF
10408if ac_fn_c_try_link "$LINENO"; then : 16431rm -f conftest.$ac_objext conftest$ac_exeext
16432if { (ac_try="$ac_link"
16433case "(($ac_try" in
16434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16435 *) ac_try_echo=$ac_try;;
16436esac
16437eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16438$as_echo "$ac_try_echo") >&5
16439 (eval "$ac_link") 2>conftest.er1
16440 ac_status=$?
16441 grep -v '^ *+' conftest.er1 >conftest.err
16442 rm -f conftest.er1
16443 cat conftest.err >&5
16444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); } && {
16446 test -z "$ac_c_werror_flag" ||
16447 test ! -s conftest.err
16448 } && test -s conftest$ac_exeext && {
16449 test "$cross_compiling" = yes ||
16450 $as_test_x conftest$ac_exeext
16451 }; then
10409 ac_cv_working_alloca_h=yes 16452 ac_cv_working_alloca_h=yes
10410else 16453else
10411 ac_cv_working_alloca_h=no 16454 $as_echo "$as_me: failed program was:" >&5
16455sed 's/^/| /' conftest.$ac_ext >&5
16456
16457 ac_cv_working_alloca_h=no
10412fi 16458fi
10413rm -f core conftest.err conftest.$ac_objext \ 16459
10414 conftest$ac_exeext conftest.$ac_ext 16460rm -rf conftest.dSYM
16461rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16462 conftest$ac_exeext conftest.$ac_ext
10415fi 16463fi
10416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 16464{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10417$as_echo "$ac_cv_working_alloca_h" >&6; } 16465$as_echo "$ac_cv_working_alloca_h" >&6; }
10418if test $ac_cv_working_alloca_h = yes; then 16466if test $ac_cv_working_alloca_h = yes; then
10419 16467
10420$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 16468cat >>confdefs.h <<\_ACEOF
16469#define HAVE_ALLOCA_H 1
16470_ACEOF
10421 16471
10422fi 16472fi
10423 16473
10424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 16474{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
10425$as_echo_n "checking for alloca... " >&6; } 16475$as_echo_n "checking for alloca... " >&6; }
10426if test "${ac_cv_func_alloca_works+set}" = set; then : 16476if test "${ac_cv_func_alloca_works+set}" = set; then
10427 $as_echo_n "(cached) " >&6 16477 $as_echo_n "(cached) " >&6
10428else 16478else
10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16479 cat >conftest.$ac_ext <<_ACEOF
16480/* confdefs.h. */
16481_ACEOF
16482cat confdefs.h >>conftest.$ac_ext
16483cat >>conftest.$ac_ext <<_ACEOF
10430/* end confdefs.h. */ 16484/* end confdefs.h. */
10431#ifdef __GNUC__ 16485#ifdef __GNUC__
10432# define alloca __builtin_alloca 16486# define alloca __builtin_alloca
@@ -10458,20 +16512,47 @@ char *p = (char *) alloca (1);
10458 return 0; 16512 return 0;
10459} 16513}
10460_ACEOF 16514_ACEOF
10461if ac_fn_c_try_link "$LINENO"; then : 16515rm -f conftest.$ac_objext conftest$ac_exeext
16516if { (ac_try="$ac_link"
16517case "(($ac_try" in
16518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16520esac
16521eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16522$as_echo "$ac_try_echo") >&5
16523 (eval "$ac_link") 2>conftest.er1
16524 ac_status=$?
16525 grep -v '^ *+' conftest.er1 >conftest.err
16526 rm -f conftest.er1
16527 cat conftest.err >&5
16528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); } && {
16530 test -z "$ac_c_werror_flag" ||
16531 test ! -s conftest.err
16532 } && test -s conftest$ac_exeext && {
16533 test "$cross_compiling" = yes ||
16534 $as_test_x conftest$ac_exeext
16535 }; then
10462 ac_cv_func_alloca_works=yes 16536 ac_cv_func_alloca_works=yes
10463else 16537else
10464 ac_cv_func_alloca_works=no 16538 $as_echo "$as_me: failed program was:" >&5
16539sed 's/^/| /' conftest.$ac_ext >&5
16540
16541 ac_cv_func_alloca_works=no
10465fi 16542fi
10466rm -f core conftest.err conftest.$ac_objext \ 16543
10467 conftest$ac_exeext conftest.$ac_ext 16544rm -rf conftest.dSYM
16545rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16546 conftest$ac_exeext conftest.$ac_ext
10468fi 16547fi
10469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 16548{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10470$as_echo "$ac_cv_func_alloca_works" >&6; } 16549$as_echo "$ac_cv_func_alloca_works" >&6; }
10471 16550
10472if test $ac_cv_func_alloca_works = yes; then 16551if test $ac_cv_func_alloca_works = yes; then
10473 16552
10474$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 16553cat >>confdefs.h <<\_ACEOF
16554#define HAVE_ALLOCA 1
16555_ACEOF
10475 16556
10476else 16557else
10477 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 16558 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
@@ -10481,15 +16562,21 @@ else
10481 16562
10482ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 16563ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10483 16564
10484$as_echo "#define C_ALLOCA 1" >>confdefs.h 16565cat >>confdefs.h <<\_ACEOF
16566#define C_ALLOCA 1
16567_ACEOF
10485 16568
10486 16569
10487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 16570{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10488$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 16571$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10489if test "${ac_cv_os_cray+set}" = set; then : 16572if test "${ac_cv_os_cray+set}" = set; then
10490 $as_echo_n "(cached) " >&6 16573 $as_echo_n "(cached) " >&6
10491else 16574else
10492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16575 cat >conftest.$ac_ext <<_ACEOF
16576/* confdefs.h. */
16577_ACEOF
16578cat confdefs.h >>conftest.$ac_ext
16579cat >>conftest.$ac_ext <<_ACEOF
10493/* end confdefs.h. */ 16580/* end confdefs.h. */
10494#if defined CRAY && ! defined CRAY2 16581#if defined CRAY && ! defined CRAY2
10495webecray 16582webecray
@@ -10499,7 +16586,7 @@ wenotbecray
10499 16586
10500_ACEOF 16587_ACEOF
10501if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16588if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10502 $EGREP "webecray" >/dev/null 2>&1; then : 16589 $EGREP "webecray" >/dev/null 2>&1; then
10503 ac_cv_os_cray=yes 16590 ac_cv_os_cray=yes
10504else 16591else
10505 ac_cv_os_cray=no 16592 ac_cv_os_cray=no
@@ -10507,14 +16594,100 @@ fi
10507rm -f conftest* 16594rm -f conftest*
10508 16595
10509fi 16596fi
10510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 16597{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10511$as_echo "$ac_cv_os_cray" >&6; } 16598$as_echo "$ac_cv_os_cray" >&6; }
10512if test $ac_cv_os_cray = yes; then 16599if test $ac_cv_os_cray = yes; then
10513 for ac_func in _getb67 GETB67 getb67; do 16600 for ac_func in _getb67 GETB67 getb67; do
10514 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16601 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10515ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16602{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10516eval as_val=\$$as_ac_var 16603$as_echo_n "checking for $ac_func... " >&6; }
10517 if test "x$as_val" = x""yes; then : 16604if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16605 $as_echo_n "(cached) " >&6
16606else
16607 cat >conftest.$ac_ext <<_ACEOF
16608/* confdefs.h. */
16609_ACEOF
16610cat confdefs.h >>conftest.$ac_ext
16611cat >>conftest.$ac_ext <<_ACEOF
16612/* end confdefs.h. */
16613/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16615#define $ac_func innocuous_$ac_func
16616
16617/* System header to define __stub macros and hopefully few prototypes,
16618 which can conflict with char $ac_func (); below.
16619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16620 <limits.h> exists even on freestanding compilers. */
16621
16622#ifdef __STDC__
16623# include <limits.h>
16624#else
16625# include <assert.h>
16626#endif
16627
16628#undef $ac_func
16629
16630/* Override any GCC internal prototype to avoid an error.
16631 Use char because int might match the return type of a GCC
16632 builtin and then its argument prototype would still apply. */
16633#ifdef __cplusplus
16634extern "C"
16635#endif
16636char $ac_func ();
16637/* The GNU C library defines this for functions which it implements
16638 to always fail with ENOSYS. Some functions are actually named
16639 something starting with __ and the normal name is an alias. */
16640#if defined __stub_$ac_func || defined __stub___$ac_func
16641choke me
16642#endif
16643
16644int
16645main ()
16646{
16647return $ac_func ();
16648 ;
16649 return 0;
16650}
16651_ACEOF
16652rm -f conftest.$ac_objext conftest$ac_exeext
16653if { (ac_try="$ac_link"
16654case "(($ac_try" in
16655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16656 *) ac_try_echo=$ac_try;;
16657esac
16658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16659$as_echo "$ac_try_echo") >&5
16660 (eval "$ac_link") 2>conftest.er1
16661 ac_status=$?
16662 grep -v '^ *+' conftest.er1 >conftest.err
16663 rm -f conftest.er1
16664 cat conftest.err >&5
16665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); } && {
16667 test -z "$ac_c_werror_flag" ||
16668 test ! -s conftest.err
16669 } && test -s conftest$ac_exeext && {
16670 test "$cross_compiling" = yes ||
16671 $as_test_x conftest$ac_exeext
16672 }; then
16673 eval "$as_ac_var=yes"
16674else
16675 $as_echo "$as_me: failed program was:" >&5
16676sed 's/^/| /' conftest.$ac_ext >&5
16677
16678 eval "$as_ac_var=no"
16679fi
16680
16681rm -rf conftest.dSYM
16682rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16683 conftest$ac_exeext conftest.$ac_ext
16684fi
16685ac_res=`eval 'as_val=${'$as_ac_var'}
16686 $as_echo "$as_val"'`
16687 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16688$as_echo "$ac_res" >&6; }
16689if test `eval 'as_val=${'$as_ac_var'}
16690 $as_echo "$as_val"'` = yes; then
10518 16691
10519cat >>confdefs.h <<_ACEOF 16692cat >>confdefs.h <<_ACEOF
10520#define CRAY_STACKSEG_END $ac_func 16693#define CRAY_STACKSEG_END $ac_func
@@ -10526,15 +16699,19 @@ fi
10526 done 16699 done
10527fi 16700fi
10528 16701
10529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 16702{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10530$as_echo_n "checking stack direction for C alloca... " >&6; } 16703$as_echo_n "checking stack direction for C alloca... " >&6; }
10531if test "${ac_cv_c_stack_direction+set}" = set; then : 16704if test "${ac_cv_c_stack_direction+set}" = set; then
10532 $as_echo_n "(cached) " >&6 16705 $as_echo_n "(cached) " >&6
10533else 16706else
10534 if test "$cross_compiling" = yes; then : 16707 if test "$cross_compiling" = yes; then
10535 ac_cv_c_stack_direction=0 16708 ac_cv_c_stack_direction=0
10536else 16709else
10537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16710 cat >conftest.$ac_ext <<_ACEOF
16711/* confdefs.h. */
16712_ACEOF
16713cat confdefs.h >>conftest.$ac_ext
16714cat >>conftest.$ac_ext <<_ACEOF
10538/* end confdefs.h. */ 16715/* end confdefs.h. */
10539$ac_includes_default 16716$ac_includes_default
10540int 16717int
@@ -10557,18 +16734,46 @@ main ()
10557 return find_stack_direction () < 0; 16734 return find_stack_direction () < 0;
10558} 16735}
10559_ACEOF 16736_ACEOF
10560if ac_fn_c_try_run "$LINENO"; then : 16737rm -f conftest$ac_exeext
16738if { (ac_try="$ac_link"
16739case "(($ac_try" in
16740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16741 *) ac_try_echo=$ac_try;;
16742esac
16743eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16744$as_echo "$ac_try_echo") >&5
16745 (eval "$ac_link") 2>&5
16746 ac_status=$?
16747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16749 { (case "(($ac_try" in
16750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16751 *) ac_try_echo=$ac_try;;
16752esac
16753eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16754$as_echo "$ac_try_echo") >&5
16755 (eval "$ac_try") 2>&5
16756 ac_status=$?
16757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); }; }; then
10561 ac_cv_c_stack_direction=1 16759 ac_cv_c_stack_direction=1
10562else 16760else
10563 ac_cv_c_stack_direction=-1 16761 $as_echo "$as_me: program exited with status $ac_status" >&5
16762$as_echo "$as_me: failed program was:" >&5
16763sed 's/^/| /' conftest.$ac_ext >&5
16764
16765( exit $ac_status )
16766ac_cv_c_stack_direction=-1
10564fi 16767fi
10565rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16768rm -rf conftest.dSYM
10566 conftest.$ac_objext conftest.beam conftest.$ac_ext 16769rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10567fi 16770fi
10568 16771
16772
10569fi 16773fi
10570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 16774{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10571$as_echo "$ac_cv_c_stack_direction" >&6; } 16775$as_echo "$ac_cv_c_stack_direction" >&6; }
16776
10572cat >>confdefs.h <<_ACEOF 16777cat >>confdefs.h <<_ACEOF
10573#define STACK_DIRECTION $ac_cv_c_stack_direction 16778#define STACK_DIRECTION $ac_cv_c_stack_direction
10574_ACEOF 16779_ACEOF
@@ -10578,19 +16783,26 @@ fi
10578 16783
10579 16784
10580if test x"$ac_cv_func_alloca_works" != xyes; then 16785if test x"$ac_cv_func_alloca_works" != xyes; then
10581 as_fn_error "a system implementation of alloca is required " "$LINENO" 5 16786 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16787$as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16788 { (exit 1); exit 1; }; }
10582fi 16789fi
10583 16790
10584# fmod, logb, and frexp are found in -lm on most systems. 16791# fmod, logb, and frexp are found in -lm on most systems.
10585# On HPUX 9.01, -lm does not contain logb, so check for sqrt. 16792# On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 16793
16794{ $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10587$as_echo_n "checking for sqrt in -lm... " >&6; } 16795$as_echo_n "checking for sqrt in -lm... " >&6; }
10588if test "${ac_cv_lib_m_sqrt+set}" = set; then : 16796if test "${ac_cv_lib_m_sqrt+set}" = set; then
10589 $as_echo_n "(cached) " >&6 16797 $as_echo_n "(cached) " >&6
10590else 16798else
10591 ac_check_lib_save_LIBS=$LIBS 16799 ac_check_lib_save_LIBS=$LIBS
10592LIBS="-lm $LIBS" 16800LIBS="-lm $LIBS"
10593cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16801cat >conftest.$ac_ext <<_ACEOF
16802/* confdefs.h. */
16803_ACEOF
16804cat confdefs.h >>conftest.$ac_ext
16805cat >>conftest.$ac_ext <<_ACEOF
10594/* end confdefs.h. */ 16806/* end confdefs.h. */
10595 16807
10596/* Override any GCC internal prototype to avoid an error. 16808/* Override any GCC internal prototype to avoid an error.
@@ -10608,18 +16820,43 @@ return sqrt ();
10608 return 0; 16820 return 0;
10609} 16821}
10610_ACEOF 16822_ACEOF
10611if ac_fn_c_try_link "$LINENO"; then : 16823rm -f conftest.$ac_objext conftest$ac_exeext
16824if { (ac_try="$ac_link"
16825case "(($ac_try" in
16826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16827 *) ac_try_echo=$ac_try;;
16828esac
16829eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16830$as_echo "$ac_try_echo") >&5
16831 (eval "$ac_link") 2>conftest.er1
16832 ac_status=$?
16833 grep -v '^ *+' conftest.er1 >conftest.err
16834 rm -f conftest.er1
16835 cat conftest.err >&5
16836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); } && {
16838 test -z "$ac_c_werror_flag" ||
16839 test ! -s conftest.err
16840 } && test -s conftest$ac_exeext && {
16841 test "$cross_compiling" = yes ||
16842 $as_test_x conftest$ac_exeext
16843 }; then
10612 ac_cv_lib_m_sqrt=yes 16844 ac_cv_lib_m_sqrt=yes
10613else 16845else
10614 ac_cv_lib_m_sqrt=no 16846 $as_echo "$as_me: failed program was:" >&5
16847sed 's/^/| /' conftest.$ac_ext >&5
16848
16849 ac_cv_lib_m_sqrt=no
10615fi 16850fi
10616rm -f core conftest.err conftest.$ac_objext \ 16851
10617 conftest$ac_exeext conftest.$ac_ext 16852rm -rf conftest.dSYM
16853rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16854 conftest$ac_exeext conftest.$ac_ext
10618LIBS=$ac_check_lib_save_LIBS 16855LIBS=$ac_check_lib_save_LIBS
10619fi 16856fi
10620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 16857{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10621$as_echo "$ac_cv_lib_m_sqrt" >&6; } 16858$as_echo "$ac_cv_lib_m_sqrt" >&6; }
10622if test "x$ac_cv_lib_m_sqrt" = x""yes; then : 16859if test $ac_cv_lib_m_sqrt = yes; then
10623 cat >>confdefs.h <<_ACEOF 16860 cat >>confdefs.h <<_ACEOF
10624#define HAVE_LIBM 1 16861#define HAVE_LIBM 1
10625_ACEOF 16862_ACEOF
@@ -10631,14 +16868,18 @@ fi
10631 16868
10632# Check for mail-locking functions in a "mail" library. Probably this should 16869# Check for mail-locking functions in a "mail" library. Probably this should
10633# have the same check as for liblockfile below. 16870# have the same check as for liblockfile below.
10634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5 16871{ $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10635$as_echo_n "checking for maillock in -lmail... " >&6; } 16872$as_echo_n "checking for maillock in -lmail... " >&6; }
10636if test "${ac_cv_lib_mail_maillock+set}" = set; then : 16873if test "${ac_cv_lib_mail_maillock+set}" = set; then
10637 $as_echo_n "(cached) " >&6 16874 $as_echo_n "(cached) " >&6
10638else 16875else
10639 ac_check_lib_save_LIBS=$LIBS 16876 ac_check_lib_save_LIBS=$LIBS
10640LIBS="-lmail $LIBS" 16877LIBS="-lmail $LIBS"
10641cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16878cat >conftest.$ac_ext <<_ACEOF
16879/* confdefs.h. */
16880_ACEOF
16881cat confdefs.h >>conftest.$ac_ext
16882cat >>conftest.$ac_ext <<_ACEOF
10642/* end confdefs.h. */ 16883/* end confdefs.h. */
10643 16884
10644/* Override any GCC internal prototype to avoid an error. 16885/* Override any GCC internal prototype to avoid an error.
@@ -10656,18 +16897,43 @@ return maillock ();
10656 return 0; 16897 return 0;
10657} 16898}
10658_ACEOF 16899_ACEOF
10659if ac_fn_c_try_link "$LINENO"; then : 16900rm -f conftest.$ac_objext conftest$ac_exeext
16901if { (ac_try="$ac_link"
16902case "(($ac_try" in
16903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904 *) ac_try_echo=$ac_try;;
16905esac
16906eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16907$as_echo "$ac_try_echo") >&5
16908 (eval "$ac_link") 2>conftest.er1
16909 ac_status=$?
16910 grep -v '^ *+' conftest.er1 >conftest.err
16911 rm -f conftest.er1
16912 cat conftest.err >&5
16913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); } && {
16915 test -z "$ac_c_werror_flag" ||
16916 test ! -s conftest.err
16917 } && test -s conftest$ac_exeext && {
16918 test "$cross_compiling" = yes ||
16919 $as_test_x conftest$ac_exeext
16920 }; then
10660 ac_cv_lib_mail_maillock=yes 16921 ac_cv_lib_mail_maillock=yes
10661else 16922else
10662 ac_cv_lib_mail_maillock=no 16923 $as_echo "$as_me: failed program was:" >&5
16924sed 's/^/| /' conftest.$ac_ext >&5
16925
16926 ac_cv_lib_mail_maillock=no
10663fi 16927fi
10664rm -f core conftest.err conftest.$ac_objext \ 16928
10665 conftest$ac_exeext conftest.$ac_ext 16929rm -rf conftest.dSYM
16930rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16931 conftest$ac_exeext conftest.$ac_ext
10666LIBS=$ac_check_lib_save_LIBS 16932LIBS=$ac_check_lib_save_LIBS
10667fi 16933fi
10668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5 16934{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10669$as_echo "$ac_cv_lib_mail_maillock" >&6; } 16935$as_echo "$ac_cv_lib_mail_maillock" >&6; }
10670if test "x$ac_cv_lib_mail_maillock" = x""yes; then : 16936if test $ac_cv_lib_mail_maillock = yes; then
10671 have_mail=yes 16937 have_mail=yes
10672else 16938else
10673 have_mail=no 16939 have_mail=no
@@ -10677,19 +16943,25 @@ if test $have_mail = yes; then
10677 LIBS_MAIL=-lmail 16943 LIBS_MAIL=-lmail
10678 LIBS="$LIBS_MAIL $LIBS" 16944 LIBS="$LIBS_MAIL $LIBS"
10679 16945
10680$as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h 16946cat >>confdefs.h <<\_ACEOF
16947#define HAVE_LIBMAIL 1
16948_ACEOF
10681 16949
10682else 16950else
10683 LIBS_MAIL= 16951 LIBS_MAIL=
10684fi 16952fi
10685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5 16953{ $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10686$as_echo_n "checking for maillock in -llockfile... " >&6; } 16954$as_echo_n "checking for maillock in -llockfile... " >&6; }
10687if test "${ac_cv_lib_lockfile_maillock+set}" = set; then : 16955if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10688 $as_echo_n "(cached) " >&6 16956 $as_echo_n "(cached) " >&6
10689else 16957else
10690 ac_check_lib_save_LIBS=$LIBS 16958 ac_check_lib_save_LIBS=$LIBS
10691LIBS="-llockfile $LIBS" 16959LIBS="-llockfile $LIBS"
10692cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16960cat >conftest.$ac_ext <<_ACEOF
16961/* confdefs.h. */
16962_ACEOF
16963cat confdefs.h >>conftest.$ac_ext
16964cat >>conftest.$ac_ext <<_ACEOF
10693/* end confdefs.h. */ 16965/* end confdefs.h. */
10694 16966
10695/* Override any GCC internal prototype to avoid an error. 16967/* Override any GCC internal prototype to avoid an error.
@@ -10707,18 +16979,43 @@ return maillock ();
10707 return 0; 16979 return 0;
10708} 16980}
10709_ACEOF 16981_ACEOF
10710if ac_fn_c_try_link "$LINENO"; then : 16982rm -f conftest.$ac_objext conftest$ac_exeext
16983if { (ac_try="$ac_link"
16984case "(($ac_try" in
16985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986 *) ac_try_echo=$ac_try;;
16987esac
16988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16989$as_echo "$ac_try_echo") >&5
16990 (eval "$ac_link") 2>conftest.er1
16991 ac_status=$?
16992 grep -v '^ *+' conftest.er1 >conftest.err
16993 rm -f conftest.er1
16994 cat conftest.err >&5
16995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); } && {
16997 test -z "$ac_c_werror_flag" ||
16998 test ! -s conftest.err
16999 } && test -s conftest$ac_exeext && {
17000 test "$cross_compiling" = yes ||
17001 $as_test_x conftest$ac_exeext
17002 }; then
10711 ac_cv_lib_lockfile_maillock=yes 17003 ac_cv_lib_lockfile_maillock=yes
10712else 17004else
10713 ac_cv_lib_lockfile_maillock=no 17005 $as_echo "$as_me: failed program was:" >&5
17006sed 's/^/| /' conftest.$ac_ext >&5
17007
17008 ac_cv_lib_lockfile_maillock=no
10714fi 17009fi
10715rm -f core conftest.err conftest.$ac_objext \ 17010
10716 conftest$ac_exeext conftest.$ac_ext 17011rm -rf conftest.dSYM
17012rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17013 conftest$ac_exeext conftest.$ac_ext
10717LIBS=$ac_check_lib_save_LIBS 17014LIBS=$ac_check_lib_save_LIBS
10718fi 17015fi
10719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5 17016{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10720$as_echo "$ac_cv_lib_lockfile_maillock" >&6; } 17017$as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
10721if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then : 17018if test $ac_cv_lib_lockfile_maillock = yes; then
10722 have_lockfile=yes 17019 have_lockfile=yes
10723else 17020else
10724 have_lockfile=no 17021 have_lockfile=no
@@ -10728,7 +17025,9 @@ if test $have_lockfile = yes; then
10728 LIBS_MAIL=-llockfile 17025 LIBS_MAIL=-llockfile
10729 LIBS="$LIBS_MAIL $LIBS" 17026 LIBS="$LIBS_MAIL $LIBS"
10730 17027
10731$as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h 17028cat >>confdefs.h <<\_ACEOF
17029#define HAVE_LIBLOCKFILE 1
17030_ACEOF
10732 17031
10733else 17032else
10734# If we have the shared liblockfile, assume we must use it for mail 17033# If we have the shared liblockfile, assume we must use it for mail
@@ -10736,9 +17035,9 @@ else
10736# (no liblockfile.a installed), ensure that we don't need to. 17035# (no liblockfile.a installed), ensure that we don't need to.
10737 # Extract the first word of "liblockfile.so", so it can be a program name with args. 17036 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10738set dummy liblockfile.so; ac_word=$2 17037set dummy liblockfile.so; ac_word=$2
10739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17038{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10740$as_echo_n "checking for $ac_word... " >&6; } 17039$as_echo_n "checking for $ac_word... " >&6; }
10741if test "${ac_cv_prog_liblockfile+set}" = set; then : 17040if test "${ac_cv_prog_liblockfile+set}" = set; then
10742 $as_echo_n "(cached) " >&6 17041 $as_echo_n "(cached) " >&6
10743else 17042else
10744 if test -n "$liblockfile"; then 17043 if test -n "$liblockfile"; then
@@ -10750,14 +17049,14 @@ for as_dir in $as_dummy
10750do 17049do
10751 IFS=$as_save_IFS 17050 IFS=$as_save_IFS
10752 test -z "$as_dir" && as_dir=. 17051 test -z "$as_dir" && as_dir=.
10753 for ac_exec_ext in '' $ac_executable_extensions; do 17052 for ac_exec_ext in '' $ac_executable_extensions; do
10754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10755 ac_cv_prog_liblockfile="yes" 17054 ac_cv_prog_liblockfile="yes"
10756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17055 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10757 break 2 17056 break 2
10758 fi 17057 fi
10759done 17058done
10760 done 17059done
10761IFS=$as_save_IFS 17060IFS=$as_save_IFS
10762 17061
10763 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" 17062 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
@@ -10765,37 +17064,263 @@ fi
10765fi 17064fi
10766liblockfile=$ac_cv_prog_liblockfile 17065liblockfile=$ac_cv_prog_liblockfile
10767if test -n "$liblockfile"; then 17066if test -n "$liblockfile"; then
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5 17067 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
10769$as_echo "$liblockfile" >&6; } 17068$as_echo "$liblockfile" >&6; }
10770else 17069else
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17070 { $as_echo "$as_me:$LINENO: result: no" >&5
10772$as_echo "no" >&6; } 17071$as_echo "no" >&6; }
10773fi 17072fi
10774 17073
10775 17074
10776 if test $ac_cv_prog_liblockfile = yes; then 17075 if test $ac_cv_prog_liblockfile = yes; then
10777 as_fn_error "Shared liblockfile found but can't link against it. 17076 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
10778This probably means that movemail could lose mail. 17077This probably means that movemail could lose mail.
10779There may be a \`development' package to install containing liblockfile." "$LINENO" 5 17078There may be a \`development' package to install containing liblockfile." >&5
17079$as_echo "$as_me: error: Shared liblockfile found but can't link against it.
17080This probably means that movemail could lose mail.
17081There may be a \`development' package to install containing liblockfile." >&2;}
17082 { (exit 1); exit 1; }; }
10780 fi 17083 fi
10781fi 17084fi
17085
10782for ac_func in touchlock 17086for ac_func in touchlock
10783do : 17087do
10784 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock" 17088as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10785if test "x$ac_cv_func_touchlock" = x""yes; then : 17089{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17090$as_echo_n "checking for $ac_func... " >&6; }
17091if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17092 $as_echo_n "(cached) " >&6
17093else
17094 cat >conftest.$ac_ext <<_ACEOF
17095/* confdefs.h. */
17096_ACEOF
17097cat confdefs.h >>conftest.$ac_ext
17098cat >>conftest.$ac_ext <<_ACEOF
17099/* end confdefs.h. */
17100/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17102#define $ac_func innocuous_$ac_func
17103
17104/* System header to define __stub macros and hopefully few prototypes,
17105 which can conflict with char $ac_func (); below.
17106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17107 <limits.h> exists even on freestanding compilers. */
17108
17109#ifdef __STDC__
17110# include <limits.h>
17111#else
17112# include <assert.h>
17113#endif
17114
17115#undef $ac_func
17116
17117/* Override any GCC internal prototype to avoid an error.
17118 Use char because int might match the return type of a GCC
17119 builtin and then its argument prototype would still apply. */
17120#ifdef __cplusplus
17121extern "C"
17122#endif
17123char $ac_func ();
17124/* The GNU C library defines this for functions which it implements
17125 to always fail with ENOSYS. Some functions are actually named
17126 something starting with __ and the normal name is an alias. */
17127#if defined __stub_$ac_func || defined __stub___$ac_func
17128choke me
17129#endif
17130
17131int
17132main ()
17133{
17134return $ac_func ();
17135 ;
17136 return 0;
17137}
17138_ACEOF
17139rm -f conftest.$ac_objext conftest$ac_exeext
17140if { (ac_try="$ac_link"
17141case "(($ac_try" in
17142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17143 *) ac_try_echo=$ac_try;;
17144esac
17145eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17146$as_echo "$ac_try_echo") >&5
17147 (eval "$ac_link") 2>conftest.er1
17148 ac_status=$?
17149 grep -v '^ *+' conftest.er1 >conftest.err
17150 rm -f conftest.er1
17151 cat conftest.err >&5
17152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); } && {
17154 test -z "$ac_c_werror_flag" ||
17155 test ! -s conftest.err
17156 } && test -s conftest$ac_exeext && {
17157 test "$cross_compiling" = yes ||
17158 $as_test_x conftest$ac_exeext
17159 }; then
17160 eval "$as_ac_var=yes"
17161else
17162 $as_echo "$as_me: failed program was:" >&5
17163sed 's/^/| /' conftest.$ac_ext >&5
17164
17165 eval "$as_ac_var=no"
17166fi
17167
17168rm -rf conftest.dSYM
17169rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17170 conftest$ac_exeext conftest.$ac_ext
17171fi
17172ac_res=`eval 'as_val=${'$as_ac_var'}
17173 $as_echo "$as_val"'`
17174 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17175$as_echo "$ac_res" >&6; }
17176if test `eval 'as_val=${'$as_ac_var'}
17177 $as_echo "$as_val"'` = yes; then
10786 cat >>confdefs.h <<_ACEOF 17178 cat >>confdefs.h <<_ACEOF
10787#define HAVE_TOUCHLOCK 1 17179#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10788_ACEOF 17180_ACEOF
10789 17181
10790fi 17182fi
10791done 17183done
10792 17184
17185
10793for ac_header in maillock.h 17186for ac_header in maillock.h
10794do : 17187do
10795 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default" 17188as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10796if test "x$ac_cv_header_maillock_h" = x""yes; then : 17189if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17190 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17191$as_echo_n "checking for $ac_header... " >&6; }
17192if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17193 $as_echo_n "(cached) " >&6
17194fi
17195ac_res=`eval 'as_val=${'$as_ac_Header'}
17196 $as_echo "$as_val"'`
17197 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17198$as_echo "$ac_res" >&6; }
17199else
17200 # Is the header compilable?
17201{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17202$as_echo_n "checking $ac_header usability... " >&6; }
17203cat >conftest.$ac_ext <<_ACEOF
17204/* confdefs.h. */
17205_ACEOF
17206cat confdefs.h >>conftest.$ac_ext
17207cat >>conftest.$ac_ext <<_ACEOF
17208/* end confdefs.h. */
17209$ac_includes_default
17210#include <$ac_header>
17211_ACEOF
17212rm -f conftest.$ac_objext
17213if { (ac_try="$ac_compile"
17214case "(($ac_try" in
17215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17216 *) ac_try_echo=$ac_try;;
17217esac
17218eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17219$as_echo "$ac_try_echo") >&5
17220 (eval "$ac_compile") 2>conftest.er1
17221 ac_status=$?
17222 grep -v '^ *+' conftest.er1 >conftest.err
17223 rm -f conftest.er1
17224 cat conftest.err >&5
17225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); } && {
17227 test -z "$ac_c_werror_flag" ||
17228 test ! -s conftest.err
17229 } && test -s conftest.$ac_objext; then
17230 ac_header_compiler=yes
17231else
17232 $as_echo "$as_me: failed program was:" >&5
17233sed 's/^/| /' conftest.$ac_ext >&5
17234
17235 ac_header_compiler=no
17236fi
17237
17238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17239{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17240$as_echo "$ac_header_compiler" >&6; }
17241
17242# Is the header present?
17243{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17244$as_echo_n "checking $ac_header presence... " >&6; }
17245cat >conftest.$ac_ext <<_ACEOF
17246/* confdefs.h. */
17247_ACEOF
17248cat confdefs.h >>conftest.$ac_ext
17249cat >>conftest.$ac_ext <<_ACEOF
17250/* end confdefs.h. */
17251#include <$ac_header>
17252_ACEOF
17253if { (ac_try="$ac_cpp conftest.$ac_ext"
17254case "(($ac_try" in
17255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256 *) ac_try_echo=$ac_try;;
17257esac
17258eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17259$as_echo "$ac_try_echo") >&5
17260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17261 ac_status=$?
17262 grep -v '^ *+' conftest.er1 >conftest.err
17263 rm -f conftest.er1
17264 cat conftest.err >&5
17265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); } >/dev/null && {
17267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17268 test ! -s conftest.err
17269 }; then
17270 ac_header_preproc=yes
17271else
17272 $as_echo "$as_me: failed program was:" >&5
17273sed 's/^/| /' conftest.$ac_ext >&5
17274
17275 ac_header_preproc=no
17276fi
17277
17278rm -f conftest.err conftest.$ac_ext
17279{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17280$as_echo "$ac_header_preproc" >&6; }
17281
17282# So? What about this header?
17283case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17284 yes:no: )
17285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17286$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17288$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17289 ac_header_preproc=yes
17290 ;;
17291 no:yes:* )
17292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17293$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17295$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17297$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17299$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17301$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17303$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17304
17305 ;;
17306esac
17307{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17308$as_echo_n "checking for $ac_header... " >&6; }
17309if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17310 $as_echo_n "(cached) " >&6
17311else
17312 eval "$as_ac_Header=\$ac_header_preproc"
17313fi
17314ac_res=`eval 'as_val=${'$as_ac_Header'}
17315 $as_echo "$as_val"'`
17316 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17317$as_echo "$ac_res" >&6; }
17318
17319fi
17320if test `eval 'as_val=${'$as_ac_Header'}
17321 $as_echo "$as_val"'` = yes; then
10797 cat >>confdefs.h <<_ACEOF 17322 cat >>confdefs.h <<_ACEOF
10798#define HAVE_MAILLOCK_H 1 17323#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10799_ACEOF 17324_ACEOF
10800 17325
10801fi 17326fi
@@ -10804,6 +17329,77 @@ done
10804 17329
10805 17330
10806 17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
10807for ac_func in gethostname getdomainname dup2 \ 17403for ac_func in gethostname getdomainname dup2 \
10808rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \ 17404rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
10809random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \ 17405random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
@@ -10814,11 +17410,97 @@ sendto recvfrom getsockopt setsockopt getsockname getpeername \
10814gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \ 17410gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
10815memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \ 17411memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
10816cfmakeraw cfsetspeed 17412cfmakeraw cfsetspeed
10817do : 17413do
10818 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17414as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10819ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17415{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10820eval as_val=\$$as_ac_var 17416$as_echo_n "checking for $ac_func... " >&6; }
10821 if test "x$as_val" = x""yes; then : 17417if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17418 $as_echo_n "(cached) " >&6
17419else
17420 cat >conftest.$ac_ext <<_ACEOF
17421/* confdefs.h. */
17422_ACEOF
17423cat confdefs.h >>conftest.$ac_ext
17424cat >>conftest.$ac_ext <<_ACEOF
17425/* end confdefs.h. */
17426/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17428#define $ac_func innocuous_$ac_func
17429
17430/* System header to define __stub macros and hopefully few prototypes,
17431 which can conflict with char $ac_func (); below.
17432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17433 <limits.h> exists even on freestanding compilers. */
17434
17435#ifdef __STDC__
17436# include <limits.h>
17437#else
17438# include <assert.h>
17439#endif
17440
17441#undef $ac_func
17442
17443/* Override any GCC internal prototype to avoid an error.
17444 Use char because int might match the return type of a GCC
17445 builtin and then its argument prototype would still apply. */
17446#ifdef __cplusplus
17447extern "C"
17448#endif
17449char $ac_func ();
17450/* The GNU C library defines this for functions which it implements
17451 to always fail with ENOSYS. Some functions are actually named
17452 something starting with __ and the normal name is an alias. */
17453#if defined __stub_$ac_func || defined __stub___$ac_func
17454choke me
17455#endif
17456
17457int
17458main ()
17459{
17460return $ac_func ();
17461 ;
17462 return 0;
17463}
17464_ACEOF
17465rm -f conftest.$ac_objext conftest$ac_exeext
17466if { (ac_try="$ac_link"
17467case "(($ac_try" in
17468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17469 *) ac_try_echo=$ac_try;;
17470esac
17471eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17472$as_echo "$ac_try_echo") >&5
17473 (eval "$ac_link") 2>conftest.er1
17474 ac_status=$?
17475 grep -v '^ *+' conftest.er1 >conftest.err
17476 rm -f conftest.er1
17477 cat conftest.err >&5
17478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); } && {
17480 test -z "$ac_c_werror_flag" ||
17481 test ! -s conftest.err
17482 } && test -s conftest$ac_exeext && {
17483 test "$cross_compiling" = yes ||
17484 $as_test_x conftest$ac_exeext
17485 }; then
17486 eval "$as_ac_var=yes"
17487else
17488 $as_echo "$as_me: failed program was:" >&5
17489sed 's/^/| /' conftest.$ac_ext >&5
17490
17491 eval "$as_ac_var=no"
17492fi
17493
17494rm -rf conftest.dSYM
17495rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17496 conftest$ac_exeext conftest.$ac_ext
17497fi
17498ac_res=`eval 'as_val=${'$as_ac_var'}
17499 $as_echo "$as_val"'`
17500 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17501$as_echo "$ac_res" >&6; }
17502if test `eval 'as_val=${'$as_ac_var'}
17503 $as_echo "$as_val"'` = yes; then
10822 cat >>confdefs.h <<_ACEOF 17504 cat >>confdefs.h <<_ACEOF
10823#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17505#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10824_ACEOF 17506_ACEOF
@@ -10827,12 +17509,294 @@ fi
10827done 17509done
10828 17510
10829 17511
17512
10830for ac_header in sys/un.h 17513for ac_header in sys/un.h
10831do : 17514do
10832 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default" 17515as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10833if test "x$ac_cv_header_sys_un_h" = x""yes; then : 17516if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17517 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17518$as_echo_n "checking for $ac_header... " >&6; }
17519if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17520 $as_echo_n "(cached) " >&6
17521fi
17522ac_res=`eval 'as_val=${'$as_ac_Header'}
17523 $as_echo "$as_val"'`
17524 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17525$as_echo "$ac_res" >&6; }
17526else
17527 # Is the header compilable?
17528{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17529$as_echo_n "checking $ac_header usability... " >&6; }
17530cat >conftest.$ac_ext <<_ACEOF
17531/* confdefs.h. */
17532_ACEOF
17533cat confdefs.h >>conftest.$ac_ext
17534cat >>conftest.$ac_ext <<_ACEOF
17535/* end confdefs.h. */
17536$ac_includes_default
17537#include <$ac_header>
17538_ACEOF
17539rm -f conftest.$ac_objext
17540if { (ac_try="$ac_compile"
17541case "(($ac_try" in
17542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17543 *) ac_try_echo=$ac_try;;
17544esac
17545eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17546$as_echo "$ac_try_echo") >&5
17547 (eval "$ac_compile") 2>conftest.er1
17548 ac_status=$?
17549 grep -v '^ *+' conftest.er1 >conftest.err
17550 rm -f conftest.er1
17551 cat conftest.err >&5
17552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); } && {
17554 test -z "$ac_c_werror_flag" ||
17555 test ! -s conftest.err
17556 } && test -s conftest.$ac_objext; then
17557 ac_header_compiler=yes
17558else
17559 $as_echo "$as_me: failed program was:" >&5
17560sed 's/^/| /' conftest.$ac_ext >&5
17561
17562 ac_header_compiler=no
17563fi
17564
17565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17566{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17567$as_echo "$ac_header_compiler" >&6; }
17568
17569# Is the header present?
17570{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17571$as_echo_n "checking $ac_header presence... " >&6; }
17572cat >conftest.$ac_ext <<_ACEOF
17573/* confdefs.h. */
17574_ACEOF
17575cat confdefs.h >>conftest.$ac_ext
17576cat >>conftest.$ac_ext <<_ACEOF
17577/* end confdefs.h. */
17578#include <$ac_header>
17579_ACEOF
17580if { (ac_try="$ac_cpp conftest.$ac_ext"
17581case "(($ac_try" in
17582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583 *) ac_try_echo=$ac_try;;
17584esac
17585eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17586$as_echo "$ac_try_echo") >&5
17587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17588 ac_status=$?
17589 grep -v '^ *+' conftest.er1 >conftest.err
17590 rm -f conftest.er1
17591 cat conftest.err >&5
17592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); } >/dev/null && {
17594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17595 test ! -s conftest.err
17596 }; then
17597 ac_header_preproc=yes
17598else
17599 $as_echo "$as_me: failed program was:" >&5
17600sed 's/^/| /' conftest.$ac_ext >&5
17601
17602 ac_header_preproc=no
17603fi
17604
17605rm -f conftest.err conftest.$ac_ext
17606{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17607$as_echo "$ac_header_preproc" >&6; }
17608
17609# So? What about this header?
17610case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17611 yes:no: )
17612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17613$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17615$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17616 ac_header_preproc=yes
17617 ;;
17618 no:yes:* )
17619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17620$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17622$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17624$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17626$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17628$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17630$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17631
17632 ;;
17633esac
17634{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17635$as_echo_n "checking for $ac_header... " >&6; }
17636if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17637 $as_echo_n "(cached) " >&6
17638else
17639 eval "$as_ac_Header=\$ac_header_preproc"
17640fi
17641ac_res=`eval 'as_val=${'$as_ac_Header'}
17642 $as_echo "$as_val"'`
17643 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17644$as_echo "$ac_res" >&6; }
17645
17646fi
17647if test `eval 'as_val=${'$as_ac_Header'}
17648 $as_echo "$as_val"'` = yes; then
17649 cat >>confdefs.h <<_ACEOF
17650#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17651_ACEOF
17652
17653fi
17654
17655done
17656
17657
17658
17659
17660
17661
17662for ac_header in $ac_header_list
17663do
17664as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17665if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17666 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17667$as_echo_n "checking for $ac_header... " >&6; }
17668if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17669 $as_echo_n "(cached) " >&6
17670fi
17671ac_res=`eval 'as_val=${'$as_ac_Header'}
17672 $as_echo "$as_val"'`
17673 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17674$as_echo "$ac_res" >&6; }
17675else
17676 # Is the header compilable?
17677{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17678$as_echo_n "checking $ac_header usability... " >&6; }
17679cat >conftest.$ac_ext <<_ACEOF
17680/* confdefs.h. */
17681_ACEOF
17682cat confdefs.h >>conftest.$ac_ext
17683cat >>conftest.$ac_ext <<_ACEOF
17684/* end confdefs.h. */
17685$ac_includes_default
17686#include <$ac_header>
17687_ACEOF
17688rm -f conftest.$ac_objext
17689if { (ac_try="$ac_compile"
17690case "(($ac_try" in
17691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17692 *) ac_try_echo=$ac_try;;
17693esac
17694eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17695$as_echo "$ac_try_echo") >&5
17696 (eval "$ac_compile") 2>conftest.er1
17697 ac_status=$?
17698 grep -v '^ *+' conftest.er1 >conftest.err
17699 rm -f conftest.er1
17700 cat conftest.err >&5
17701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); } && {
17703 test -z "$ac_c_werror_flag" ||
17704 test ! -s conftest.err
17705 } && test -s conftest.$ac_objext; then
17706 ac_header_compiler=yes
17707else
17708 $as_echo "$as_me: failed program was:" >&5
17709sed 's/^/| /' conftest.$ac_ext >&5
17710
17711 ac_header_compiler=no
17712fi
17713
17714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17715{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17716$as_echo "$ac_header_compiler" >&6; }
17717
17718# Is the header present?
17719{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17720$as_echo_n "checking $ac_header presence... " >&6; }
17721cat >conftest.$ac_ext <<_ACEOF
17722/* confdefs.h. */
17723_ACEOF
17724cat confdefs.h >>conftest.$ac_ext
17725cat >>conftest.$ac_ext <<_ACEOF
17726/* end confdefs.h. */
17727#include <$ac_header>
17728_ACEOF
17729if { (ac_try="$ac_cpp conftest.$ac_ext"
17730case "(($ac_try" in
17731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17732 *) ac_try_echo=$ac_try;;
17733esac
17734eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17735$as_echo "$ac_try_echo") >&5
17736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17737 ac_status=$?
17738 grep -v '^ *+' conftest.er1 >conftest.err
17739 rm -f conftest.er1
17740 cat conftest.err >&5
17741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); } >/dev/null && {
17743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17744 test ! -s conftest.err
17745 }; then
17746 ac_header_preproc=yes
17747else
17748 $as_echo "$as_me: failed program was:" >&5
17749sed 's/^/| /' conftest.$ac_ext >&5
17750
17751 ac_header_preproc=no
17752fi
17753
17754rm -f conftest.err conftest.$ac_ext
17755{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17756$as_echo "$ac_header_preproc" >&6; }
17757
17758# So? What about this header?
17759case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17760 yes:no: )
17761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17762$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17764$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17765 ac_header_preproc=yes
17766 ;;
17767 no:yes:* )
17768 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17769$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17771$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17773$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17775$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17777$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17779$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17780
17781 ;;
17782esac
17783{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17784$as_echo_n "checking for $ac_header... " >&6; }
17785if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17786 $as_echo_n "(cached) " >&6
17787else
17788 eval "$as_ac_Header=\$ac_header_preproc"
17789fi
17790ac_res=`eval 'as_val=${'$as_ac_Header'}
17791 $as_echo "$as_val"'`
17792 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17793$as_echo "$ac_res" >&6; }
17794
17795fi
17796if test `eval 'as_val=${'$as_ac_Header'}
17797 $as_echo "$as_val"'` = yes; then
10834 cat >>confdefs.h <<_ACEOF 17798 cat >>confdefs.h <<_ACEOF
10835#define HAVE_SYS_UN_H 1 17799#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10836_ACEOF 17800_ACEOF
10837 17801
10838fi 17802fi
@@ -10845,12 +17809,100 @@ done
10845 17809
10846 17810
10847 17811
10848 for ac_func in $ac_func_list 17812
10849do : 17813
10850 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17814for ac_func in $ac_func_list
10851ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17815do
10852eval as_val=\$$as_ac_var 17816as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10853 if test "x$as_val" = x""yes; then : 17817{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17818$as_echo_n "checking for $ac_func... " >&6; }
17819if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17820 $as_echo_n "(cached) " >&6
17821else
17822 cat >conftest.$ac_ext <<_ACEOF
17823/* confdefs.h. */
17824_ACEOF
17825cat confdefs.h >>conftest.$ac_ext
17826cat >>conftest.$ac_ext <<_ACEOF
17827/* end confdefs.h. */
17828/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17830#define $ac_func innocuous_$ac_func
17831
17832/* System header to define __stub macros and hopefully few prototypes,
17833 which can conflict with char $ac_func (); below.
17834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17835 <limits.h> exists even on freestanding compilers. */
17836
17837#ifdef __STDC__
17838# include <limits.h>
17839#else
17840# include <assert.h>
17841#endif
17842
17843#undef $ac_func
17844
17845/* Override any GCC internal prototype to avoid an error.
17846 Use char because int might match the return type of a GCC
17847 builtin and then its argument prototype would still apply. */
17848#ifdef __cplusplus
17849extern "C"
17850#endif
17851char $ac_func ();
17852/* The GNU C library defines this for functions which it implements
17853 to always fail with ENOSYS. Some functions are actually named
17854 something starting with __ and the normal name is an alias. */
17855#if defined __stub_$ac_func || defined __stub___$ac_func
17856choke me
17857#endif
17858
17859int
17860main ()
17861{
17862return $ac_func ();
17863 ;
17864 return 0;
17865}
17866_ACEOF
17867rm -f conftest.$ac_objext conftest$ac_exeext
17868if { (ac_try="$ac_link"
17869case "(($ac_try" in
17870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17871 *) ac_try_echo=$ac_try;;
17872esac
17873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17874$as_echo "$ac_try_echo") >&5
17875 (eval "$ac_link") 2>conftest.er1
17876 ac_status=$?
17877 grep -v '^ *+' conftest.er1 >conftest.err
17878 rm -f conftest.er1
17879 cat conftest.err >&5
17880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); } && {
17882 test -z "$ac_c_werror_flag" ||
17883 test ! -s conftest.err
17884 } && test -s conftest$ac_exeext && {
17885 test "$cross_compiling" = yes ||
17886 $as_test_x conftest$ac_exeext
17887 }; then
17888 eval "$as_ac_var=yes"
17889else
17890 $as_echo "$as_me: failed program was:" >&5
17891sed 's/^/| /' conftest.$ac_ext >&5
17892
17893 eval "$as_ac_var=no"
17894fi
17895
17896rm -rf conftest.dSYM
17897rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17898 conftest$ac_exeext conftest.$ac_ext
17899fi
17900ac_res=`eval 'as_val=${'$as_ac_var'}
17901 $as_echo "$as_val"'`
17902 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17903$as_echo "$ac_res" >&6; }
17904if test `eval 'as_val=${'$as_ac_var'}
17905 $as_echo "$as_val"'` = yes; then
10854 cat >>confdefs.h <<_ACEOF 17906 cat >>confdefs.h <<_ACEOF
10855#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17907#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10856_ACEOF 17908_ACEOF
@@ -10862,15 +17914,31 @@ done
10862 17914
10863 17915
10864 17916
10865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5 17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929{ $as_echo "$as_me:$LINENO: checking for working mktime" >&5
10866$as_echo_n "checking for working mktime... " >&6; } 17930$as_echo_n "checking for working mktime... " >&6; }
10867if test "${ac_cv_func_working_mktime+set}" = set; then : 17931if test "${ac_cv_func_working_mktime+set}" = set; then
10868 $as_echo_n "(cached) " >&6 17932 $as_echo_n "(cached) " >&6
10869else 17933else
10870 if test "$cross_compiling" = yes; then : 17934 if test "$cross_compiling" = yes; then
10871 ac_cv_func_working_mktime=no 17935 ac_cv_func_working_mktime=no
10872else 17936else
10873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17937 cat >conftest.$ac_ext <<_ACEOF
17938/* confdefs.h. */
17939_ACEOF
17940cat confdefs.h >>conftest.$ac_ext
17941cat >>conftest.$ac_ext <<_ACEOF
10874/* end confdefs.h. */ 17942/* end confdefs.h. */
10875/* Test program from Paul Eggert and Tony Leneis. */ 17943/* Test program from Paul Eggert and Tony Leneis. */
10876#ifdef TIME_WITH_SYS_TIME 17944#ifdef TIME_WITH_SYS_TIME
@@ -11067,17 +18135,44 @@ main ()
11067 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); 18135 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
11068} 18136}
11069_ACEOF 18137_ACEOF
11070if ac_fn_c_try_run "$LINENO"; then : 18138rm -f conftest$ac_exeext
18139if { (ac_try="$ac_link"
18140case "(($ac_try" in
18141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18142 *) ac_try_echo=$ac_try;;
18143esac
18144eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18145$as_echo "$ac_try_echo") >&5
18146 (eval "$ac_link") 2>&5
18147 ac_status=$?
18148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18150 { (case "(($ac_try" in
18151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18152 *) ac_try_echo=$ac_try;;
18153esac
18154eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18155$as_echo "$ac_try_echo") >&5
18156 (eval "$ac_try") 2>&5
18157 ac_status=$?
18158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); }; }; then
11071 ac_cv_func_working_mktime=yes 18160 ac_cv_func_working_mktime=yes
11072else 18161else
11073 ac_cv_func_working_mktime=no 18162 $as_echo "$as_me: program exited with status $ac_status" >&5
18163$as_echo "$as_me: failed program was:" >&5
18164sed 's/^/| /' conftest.$ac_ext >&5
18165
18166( exit $ac_status )
18167ac_cv_func_working_mktime=no
11074fi 18168fi
11075rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18169rm -rf conftest.dSYM
11076 conftest.$ac_objext conftest.beam conftest.$ac_ext 18170rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11077fi 18171fi
11078 18172
18173
11079fi 18174fi
11080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5 18175{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11081$as_echo "$ac_cv_func_working_mktime" >&6; } 18176$as_echo "$ac_cv_func_working_mktime" >&6; }
11082if test $ac_cv_func_working_mktime = no; then 18177if test $ac_cv_func_working_mktime = no; then
11083 case " $LIBOBJS " in 18178 case " $LIBOBJS " in
@@ -11090,7 +18185,9 @@ fi
11090 18185
11091if test "$ac_cv_func_working_mktime" = no; then 18186if test "$ac_cv_func_working_mktime" = no; then
11092 18187
11093$as_echo "#define BROKEN_MKTIME 1" >>confdefs.h 18188cat >>confdefs.h <<\_ACEOF
18189#define BROKEN_MKTIME 1
18190_ACEOF
11094 18191
11095fi 18192fi
11096 18193
@@ -11098,13 +18195,99 @@ ac_have_func=no # yes means we've found a way to get the load average.
11098 18195
11099# Make sure getloadavg.c is where it belongs, at configure-time. 18196# Make sure getloadavg.c is where it belongs, at configure-time.
11100test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || 18197test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11101 as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5 18198 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18199$as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18200 { (exit 1); exit 1; }; }
11102 18201
11103ac_save_LIBS=$LIBS 18202ac_save_LIBS=$LIBS
11104 18203
11105# Check for getloadavg, but be sure not to touch the cache variable. 18204# Check for getloadavg, but be sure not to touch the cache variable.
11106(ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" 18205({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
11107if test "x$ac_cv_func_getloadavg" = x""yes; then : 18206$as_echo_n "checking for getloadavg... " >&6; }
18207if test "${ac_cv_func_getloadavg+set}" = set; then
18208 $as_echo_n "(cached) " >&6
18209else
18210 cat >conftest.$ac_ext <<_ACEOF
18211/* confdefs.h. */
18212_ACEOF
18213cat confdefs.h >>conftest.$ac_ext
18214cat >>conftest.$ac_ext <<_ACEOF
18215/* end confdefs.h. */
18216/* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18218#define getloadavg innocuous_getloadavg
18219
18220/* System header to define __stub macros and hopefully few prototypes,
18221 which can conflict with char getloadavg (); below.
18222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18223 <limits.h> exists even on freestanding compilers. */
18224
18225#ifdef __STDC__
18226# include <limits.h>
18227#else
18228# include <assert.h>
18229#endif
18230
18231#undef getloadavg
18232
18233/* Override any GCC internal prototype to avoid an error.
18234 Use char because int might match the return type of a GCC
18235 builtin and then its argument prototype would still apply. */
18236#ifdef __cplusplus
18237extern "C"
18238#endif
18239char getloadavg ();
18240/* The GNU C library defines this for functions which it implements
18241 to always fail with ENOSYS. Some functions are actually named
18242 something starting with __ and the normal name is an alias. */
18243#if defined __stub_getloadavg || defined __stub___getloadavg
18244choke me
18245#endif
18246
18247int
18248main ()
18249{
18250return getloadavg ();
18251 ;
18252 return 0;
18253}
18254_ACEOF
18255rm -f conftest.$ac_objext conftest$ac_exeext
18256if { (ac_try="$ac_link"
18257case "(($ac_try" in
18258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18259 *) ac_try_echo=$ac_try;;
18260esac
18261eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18262$as_echo "$ac_try_echo") >&5
18263 (eval "$ac_link") 2>conftest.er1
18264 ac_status=$?
18265 grep -v '^ *+' conftest.er1 >conftest.err
18266 rm -f conftest.er1
18267 cat conftest.err >&5
18268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); } && {
18270 test -z "$ac_c_werror_flag" ||
18271 test ! -s conftest.err
18272 } && test -s conftest$ac_exeext && {
18273 test "$cross_compiling" = yes ||
18274 $as_test_x conftest$ac_exeext
18275 }; then
18276 ac_cv_func_getloadavg=yes
18277else
18278 $as_echo "$as_me: failed program was:" >&5
18279sed 's/^/| /' conftest.$ac_ext >&5
18280
18281 ac_cv_func_getloadavg=no
18282fi
18283
18284rm -rf conftest.dSYM
18285rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18286 conftest$ac_exeext conftest.$ac_ext
18287fi
18288{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18289$as_echo "$ac_cv_func_getloadavg" >&6; }
18290if test $ac_cv_func_getloadavg = yes; then
11108 exit 0 18291 exit 0
11109else 18292else
11110 exit 1 18293 exit 1
@@ -11112,12 +18295,101 @@ fi
11112) && ac_have_func=yes 18295) && ac_have_func=yes
11113 18296
11114# On HPUX9, an unprivileged user can get load averages through this function. 18297# On HPUX9, an unprivileged user can get load averages through this function.
18298
11115for ac_func in pstat_getdynamic 18299for ac_func in pstat_getdynamic
11116do : 18300do
11117 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic" 18301as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11118if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then : 18302{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18303$as_echo_n "checking for $ac_func... " >&6; }
18304if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18305 $as_echo_n "(cached) " >&6
18306else
18307 cat >conftest.$ac_ext <<_ACEOF
18308/* confdefs.h. */
18309_ACEOF
18310cat confdefs.h >>conftest.$ac_ext
18311cat >>conftest.$ac_ext <<_ACEOF
18312/* end confdefs.h. */
18313/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18315#define $ac_func innocuous_$ac_func
18316
18317/* System header to define __stub macros and hopefully few prototypes,
18318 which can conflict with char $ac_func (); below.
18319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18320 <limits.h> exists even on freestanding compilers. */
18321
18322#ifdef __STDC__
18323# include <limits.h>
18324#else
18325# include <assert.h>
18326#endif
18327
18328#undef $ac_func
18329
18330/* Override any GCC internal prototype to avoid an error.
18331 Use char because int might match the return type of a GCC
18332 builtin and then its argument prototype would still apply. */
18333#ifdef __cplusplus
18334extern "C"
18335#endif
18336char $ac_func ();
18337/* The GNU C library defines this for functions which it implements
18338 to always fail with ENOSYS. Some functions are actually named
18339 something starting with __ and the normal name is an alias. */
18340#if defined __stub_$ac_func || defined __stub___$ac_func
18341choke me
18342#endif
18343
18344int
18345main ()
18346{
18347return $ac_func ();
18348 ;
18349 return 0;
18350}
18351_ACEOF
18352rm -f conftest.$ac_objext conftest$ac_exeext
18353if { (ac_try="$ac_link"
18354case "(($ac_try" in
18355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18356 *) ac_try_echo=$ac_try;;
18357esac
18358eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18359$as_echo "$ac_try_echo") >&5
18360 (eval "$ac_link") 2>conftest.er1
18361 ac_status=$?
18362 grep -v '^ *+' conftest.er1 >conftest.err
18363 rm -f conftest.er1
18364 cat conftest.err >&5
18365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); } && {
18367 test -z "$ac_c_werror_flag" ||
18368 test ! -s conftest.err
18369 } && test -s conftest$ac_exeext && {
18370 test "$cross_compiling" = yes ||
18371 $as_test_x conftest$ac_exeext
18372 }; then
18373 eval "$as_ac_var=yes"
18374else
18375 $as_echo "$as_me: failed program was:" >&5
18376sed 's/^/| /' conftest.$ac_ext >&5
18377
18378 eval "$as_ac_var=no"
18379fi
18380
18381rm -rf conftest.dSYM
18382rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18383 conftest$ac_exeext conftest.$ac_ext
18384fi
18385ac_res=`eval 'as_val=${'$as_ac_var'}
18386 $as_echo "$as_val"'`
18387 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18388$as_echo "$ac_res" >&6; }
18389if test `eval 'as_val=${'$as_ac_var'}
18390 $as_echo "$as_val"'` = yes; then
11119 cat >>confdefs.h <<_ACEOF 18391 cat >>confdefs.h <<_ACEOF
11120#define HAVE_PSTAT_GETDYNAMIC 1 18392#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11121_ACEOF 18393_ACEOF
11122 18394
11123fi 18395fi
@@ -11125,14 +18397,19 @@ done
11125 18397
11126 18398
11127# Solaris has libkstat which does not require root. 18399# Solaris has libkstat which does not require root.
11128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5 18400
18401{ $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
11129$as_echo_n "checking for kstat_open in -lkstat... " >&6; } 18402$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11130if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then : 18403if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
11131 $as_echo_n "(cached) " >&6 18404 $as_echo_n "(cached) " >&6
11132else 18405else
11133 ac_check_lib_save_LIBS=$LIBS 18406 ac_check_lib_save_LIBS=$LIBS
11134LIBS="-lkstat $LIBS" 18407LIBS="-lkstat $LIBS"
11135cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18408cat >conftest.$ac_ext <<_ACEOF
18409/* confdefs.h. */
18410_ACEOF
18411cat confdefs.h >>conftest.$ac_ext
18412cat >>conftest.$ac_ext <<_ACEOF
11136/* end confdefs.h. */ 18413/* end confdefs.h. */
11137 18414
11138/* Override any GCC internal prototype to avoid an error. 18415/* Override any GCC internal prototype to avoid an error.
@@ -11150,18 +18427,43 @@ return kstat_open ();
11150 return 0; 18427 return 0;
11151} 18428}
11152_ACEOF 18429_ACEOF
11153if ac_fn_c_try_link "$LINENO"; then : 18430rm -f conftest.$ac_objext conftest$ac_exeext
18431if { (ac_try="$ac_link"
18432case "(($ac_try" in
18433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18434 *) ac_try_echo=$ac_try;;
18435esac
18436eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18437$as_echo "$ac_try_echo") >&5
18438 (eval "$ac_link") 2>conftest.er1
18439 ac_status=$?
18440 grep -v '^ *+' conftest.er1 >conftest.err
18441 rm -f conftest.er1
18442 cat conftest.err >&5
18443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); } && {
18445 test -z "$ac_c_werror_flag" ||
18446 test ! -s conftest.err
18447 } && test -s conftest$ac_exeext && {
18448 test "$cross_compiling" = yes ||
18449 $as_test_x conftest$ac_exeext
18450 }; then
11154 ac_cv_lib_kstat_kstat_open=yes 18451 ac_cv_lib_kstat_kstat_open=yes
11155else 18452else
11156 ac_cv_lib_kstat_kstat_open=no 18453 $as_echo "$as_me: failed program was:" >&5
18454sed 's/^/| /' conftest.$ac_ext >&5
18455
18456 ac_cv_lib_kstat_kstat_open=no
11157fi 18457fi
11158rm -f core conftest.err conftest.$ac_objext \ 18458
11159 conftest$ac_exeext conftest.$ac_ext 18459rm -rf conftest.dSYM
18460rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18461 conftest$ac_exeext conftest.$ac_ext
11160LIBS=$ac_check_lib_save_LIBS 18462LIBS=$ac_check_lib_save_LIBS
11161fi 18463fi
11162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5 18464{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
11163$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; } 18465$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11164if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then : 18466if test $ac_cv_lib_kstat_kstat_open = yes; then
11165 cat >>confdefs.h <<_ACEOF 18467 cat >>confdefs.h <<_ACEOF
11166#define HAVE_LIBKSTAT 1 18468#define HAVE_LIBKSTAT 1
11167_ACEOF 18469_ACEOF
@@ -11177,14 +18479,18 @@ test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
11177# to get the right answer into the cache. 18479# to get the right answer into the cache.
11178# For kstat on solaris, we need libelf to force the definition of SVR4 below. 18480# For kstat on solaris, we need libelf to force the definition of SVR4 below.
11179if test $ac_have_func = no; then 18481if test $ac_have_func = no; then
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5 18482 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
11181$as_echo_n "checking for elf_begin in -lelf... " >&6; } 18483$as_echo_n "checking for elf_begin in -lelf... " >&6; }
11182if test "${ac_cv_lib_elf_elf_begin+set}" = set; then : 18484if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
11183 $as_echo_n "(cached) " >&6 18485 $as_echo_n "(cached) " >&6
11184else 18486else
11185 ac_check_lib_save_LIBS=$LIBS 18487 ac_check_lib_save_LIBS=$LIBS
11186LIBS="-lelf $LIBS" 18488LIBS="-lelf $LIBS"
11187cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18489cat >conftest.$ac_ext <<_ACEOF
18490/* confdefs.h. */
18491_ACEOF
18492cat confdefs.h >>conftest.$ac_ext
18493cat >>conftest.$ac_ext <<_ACEOF
11188/* end confdefs.h. */ 18494/* end confdefs.h. */
11189 18495
11190/* Override any GCC internal prototype to avoid an error. 18496/* Override any GCC internal prototype to avoid an error.
@@ -11202,31 +18508,60 @@ return elf_begin ();
11202 return 0; 18508 return 0;
11203} 18509}
11204_ACEOF 18510_ACEOF
11205if ac_fn_c_try_link "$LINENO"; then : 18511rm -f conftest.$ac_objext conftest$ac_exeext
18512if { (ac_try="$ac_link"
18513case "(($ac_try" in
18514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515 *) ac_try_echo=$ac_try;;
18516esac
18517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18518$as_echo "$ac_try_echo") >&5
18519 (eval "$ac_link") 2>conftest.er1
18520 ac_status=$?
18521 grep -v '^ *+' conftest.er1 >conftest.err
18522 rm -f conftest.er1
18523 cat conftest.err >&5
18524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); } && {
18526 test -z "$ac_c_werror_flag" ||
18527 test ! -s conftest.err
18528 } && test -s conftest$ac_exeext && {
18529 test "$cross_compiling" = yes ||
18530 $as_test_x conftest$ac_exeext
18531 }; then
11206 ac_cv_lib_elf_elf_begin=yes 18532 ac_cv_lib_elf_elf_begin=yes
11207else 18533else
11208 ac_cv_lib_elf_elf_begin=no 18534 $as_echo "$as_me: failed program was:" >&5
18535sed 's/^/| /' conftest.$ac_ext >&5
18536
18537 ac_cv_lib_elf_elf_begin=no
11209fi 18538fi
11210rm -f core conftest.err conftest.$ac_objext \ 18539
11211 conftest$ac_exeext conftest.$ac_ext 18540rm -rf conftest.dSYM
18541rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18542 conftest$ac_exeext conftest.$ac_ext
11212LIBS=$ac_check_lib_save_LIBS 18543LIBS=$ac_check_lib_save_LIBS
11213fi 18544fi
11214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5 18545{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
11215$as_echo "$ac_cv_lib_elf_elf_begin" >&6; } 18546$as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11216if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then : 18547if test $ac_cv_lib_elf_elf_begin = yes; then
11217 LIBS="-lelf $LIBS" 18548 LIBS="-lelf $LIBS"
11218fi 18549fi
11219 18550
11220fi 18551fi
11221if test $ac_have_func = no; then 18552if test $ac_have_func = no; then
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5 18553 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
11223$as_echo_n "checking for kvm_open in -lkvm... " >&6; } 18554$as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11224if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then : 18555if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
11225 $as_echo_n "(cached) " >&6 18556 $as_echo_n "(cached) " >&6
11226else 18557else
11227 ac_check_lib_save_LIBS=$LIBS 18558 ac_check_lib_save_LIBS=$LIBS
11228LIBS="-lkvm $LIBS" 18559LIBS="-lkvm $LIBS"
11229cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18560cat >conftest.$ac_ext <<_ACEOF
18561/* confdefs.h. */
18562_ACEOF
18563cat confdefs.h >>conftest.$ac_ext
18564cat >>conftest.$ac_ext <<_ACEOF
11230/* end confdefs.h. */ 18565/* end confdefs.h. */
11231 18566
11232/* Override any GCC internal prototype to avoid an error. 18567/* Override any GCC internal prototype to avoid an error.
@@ -11244,30 +18579,59 @@ return kvm_open ();
11244 return 0; 18579 return 0;
11245} 18580}
11246_ACEOF 18581_ACEOF
11247if ac_fn_c_try_link "$LINENO"; then : 18582rm -f conftest.$ac_objext conftest$ac_exeext
18583if { (ac_try="$ac_link"
18584case "(($ac_try" in
18585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18586 *) ac_try_echo=$ac_try;;
18587esac
18588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18589$as_echo "$ac_try_echo") >&5
18590 (eval "$ac_link") 2>conftest.er1
18591 ac_status=$?
18592 grep -v '^ *+' conftest.er1 >conftest.err
18593 rm -f conftest.er1
18594 cat conftest.err >&5
18595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); } && {
18597 test -z "$ac_c_werror_flag" ||
18598 test ! -s conftest.err
18599 } && test -s conftest$ac_exeext && {
18600 test "$cross_compiling" = yes ||
18601 $as_test_x conftest$ac_exeext
18602 }; then
11248 ac_cv_lib_kvm_kvm_open=yes 18603 ac_cv_lib_kvm_kvm_open=yes
11249else 18604else
11250 ac_cv_lib_kvm_kvm_open=no 18605 $as_echo "$as_me: failed program was:" >&5
18606sed 's/^/| /' conftest.$ac_ext >&5
18607
18608 ac_cv_lib_kvm_kvm_open=no
11251fi 18609fi
11252rm -f core conftest.err conftest.$ac_objext \ 18610
11253 conftest$ac_exeext conftest.$ac_ext 18611rm -rf conftest.dSYM
18612rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18613 conftest$ac_exeext conftest.$ac_ext
11254LIBS=$ac_check_lib_save_LIBS 18614LIBS=$ac_check_lib_save_LIBS
11255fi 18615fi
11256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5 18616{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
11257$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; } 18617$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11258if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then : 18618if test $ac_cv_lib_kvm_kvm_open = yes; then
11259 LIBS="-lkvm $LIBS" 18619 LIBS="-lkvm $LIBS"
11260fi 18620fi
11261 18621
11262 # Check for the 4.4BSD definition of getloadavg. 18622 # Check for the 4.4BSD definition of getloadavg.
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5 18623 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
11264$as_echo_n "checking for getloadavg in -lutil... " >&6; } 18624$as_echo_n "checking for getloadavg in -lutil... " >&6; }
11265if test "${ac_cv_lib_util_getloadavg+set}" = set; then : 18625if test "${ac_cv_lib_util_getloadavg+set}" = set; then
11266 $as_echo_n "(cached) " >&6 18626 $as_echo_n "(cached) " >&6
11267else 18627else
11268 ac_check_lib_save_LIBS=$LIBS 18628 ac_check_lib_save_LIBS=$LIBS
11269LIBS="-lutil $LIBS" 18629LIBS="-lutil $LIBS"
11270cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18630cat >conftest.$ac_ext <<_ACEOF
18631/* confdefs.h. */
18632_ACEOF
18633cat confdefs.h >>conftest.$ac_ext
18634cat >>conftest.$ac_ext <<_ACEOF
11271/* end confdefs.h. */ 18635/* end confdefs.h. */
11272 18636
11273/* Override any GCC internal prototype to avoid an error. 18637/* Override any GCC internal prototype to avoid an error.
@@ -11285,18 +18649,43 @@ return getloadavg ();
11285 return 0; 18649 return 0;
11286} 18650}
11287_ACEOF 18651_ACEOF
11288if ac_fn_c_try_link "$LINENO"; then : 18652rm -f conftest.$ac_objext conftest$ac_exeext
18653if { (ac_try="$ac_link"
18654case "(($ac_try" in
18655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18656 *) ac_try_echo=$ac_try;;
18657esac
18658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18659$as_echo "$ac_try_echo") >&5
18660 (eval "$ac_link") 2>conftest.er1
18661 ac_status=$?
18662 grep -v '^ *+' conftest.er1 >conftest.err
18663 rm -f conftest.er1
18664 cat conftest.err >&5
18665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); } && {
18667 test -z "$ac_c_werror_flag" ||
18668 test ! -s conftest.err
18669 } && test -s conftest$ac_exeext && {
18670 test "$cross_compiling" = yes ||
18671 $as_test_x conftest$ac_exeext
18672 }; then
11289 ac_cv_lib_util_getloadavg=yes 18673 ac_cv_lib_util_getloadavg=yes
11290else 18674else
11291 ac_cv_lib_util_getloadavg=no 18675 $as_echo "$as_me: failed program was:" >&5
18676sed 's/^/| /' conftest.$ac_ext >&5
18677
18678 ac_cv_lib_util_getloadavg=no
11292fi 18679fi
11293rm -f core conftest.err conftest.$ac_objext \ 18680
11294 conftest$ac_exeext conftest.$ac_ext 18681rm -rf conftest.dSYM
18682rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18683 conftest$ac_exeext conftest.$ac_ext
11295LIBS=$ac_check_lib_save_LIBS 18684LIBS=$ac_check_lib_save_LIBS
11296fi 18685fi
11297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5 18686{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
11298$as_echo "$ac_cv_lib_util_getloadavg" >&6; } 18687$as_echo "$ac_cv_lib_util_getloadavg" >&6; }
11299if test "x$ac_cv_lib_util_getloadavg" = x""yes; then : 18688if test $ac_cv_lib_util_getloadavg = yes; then
11300 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes 18689 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
11301fi 18690fi
11302 18691
@@ -11307,14 +18696,18 @@ if test $ac_have_func = no; then
11307 # Since it is not a standard part of AIX, it might be installed locally. 18696 # Since it is not a standard part of AIX, it might be installed locally.
11308 ac_getloadavg_LIBS=$LIBS 18697 ac_getloadavg_LIBS=$LIBS
11309 LIBS="-L/usr/local/lib $LIBS" 18698 LIBS="-L/usr/local/lib $LIBS"
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5 18699 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
11311$as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; } 18700$as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
11312if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then : 18701if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
11313 $as_echo_n "(cached) " >&6 18702 $as_echo_n "(cached) " >&6
11314else 18703else
11315 ac_check_lib_save_LIBS=$LIBS 18704 ac_check_lib_save_LIBS=$LIBS
11316LIBS="-lgetloadavg $LIBS" 18705LIBS="-lgetloadavg $LIBS"
11317cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18706cat >conftest.$ac_ext <<_ACEOF
18707/* confdefs.h. */
18708_ACEOF
18709cat confdefs.h >>conftest.$ac_ext
18710cat >>conftest.$ac_ext <<_ACEOF
11318/* end confdefs.h. */ 18711/* end confdefs.h. */
11319 18712
11320/* Override any GCC internal prototype to avoid an error. 18713/* Override any GCC internal prototype to avoid an error.
@@ -11332,18 +18725,43 @@ return getloadavg ();
11332 return 0; 18725 return 0;
11333} 18726}
11334_ACEOF 18727_ACEOF
11335if ac_fn_c_try_link "$LINENO"; then : 18728rm -f conftest.$ac_objext conftest$ac_exeext
18729if { (ac_try="$ac_link"
18730case "(($ac_try" in
18731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18732 *) ac_try_echo=$ac_try;;
18733esac
18734eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18735$as_echo "$ac_try_echo") >&5
18736 (eval "$ac_link") 2>conftest.er1
18737 ac_status=$?
18738 grep -v '^ *+' conftest.er1 >conftest.err
18739 rm -f conftest.er1
18740 cat conftest.err >&5
18741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742 (exit $ac_status); } && {
18743 test -z "$ac_c_werror_flag" ||
18744 test ! -s conftest.err
18745 } && test -s conftest$ac_exeext && {
18746 test "$cross_compiling" = yes ||
18747 $as_test_x conftest$ac_exeext
18748 }; then
11336 ac_cv_lib_getloadavg_getloadavg=yes 18749 ac_cv_lib_getloadavg_getloadavg=yes
11337else 18750else
11338 ac_cv_lib_getloadavg_getloadavg=no 18751 $as_echo "$as_me: failed program was:" >&5
18752sed 's/^/| /' conftest.$ac_ext >&5
18753
18754 ac_cv_lib_getloadavg_getloadavg=no
11339fi 18755fi
11340rm -f core conftest.err conftest.$ac_objext \ 18756
11341 conftest$ac_exeext conftest.$ac_ext 18757rm -rf conftest.dSYM
18758rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18759 conftest$ac_exeext conftest.$ac_ext
11342LIBS=$ac_check_lib_save_LIBS 18760LIBS=$ac_check_lib_save_LIBS
11343fi 18761fi
11344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5 18762{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11345$as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; } 18763$as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
11346if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then : 18764if test $ac_cv_lib_getloadavg_getloadavg = yes; then
11347 LIBS="-lgetloadavg $LIBS" 18765 LIBS="-lgetloadavg $LIBS"
11348else 18766else
11349 LIBS=$ac_getloadavg_LIBS 18767 LIBS=$ac_getloadavg_LIBS
@@ -11353,12 +18771,101 @@ fi
11353 18771
11354# Make sure it is really in the library, if we think we found it, 18772# Make sure it is really in the library, if we think we found it,
11355# otherwise set up the replacement function. 18773# otherwise set up the replacement function.
18774
11356for ac_func in getloadavg 18775for ac_func in getloadavg
11357do : 18776do
11358 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" 18777as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11359if test "x$ac_cv_func_getloadavg" = x""yes; then : 18778{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18779$as_echo_n "checking for $ac_func... " >&6; }
18780if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18781 $as_echo_n "(cached) " >&6
18782else
18783 cat >conftest.$ac_ext <<_ACEOF
18784/* confdefs.h. */
18785_ACEOF
18786cat confdefs.h >>conftest.$ac_ext
18787cat >>conftest.$ac_ext <<_ACEOF
18788/* end confdefs.h. */
18789/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18791#define $ac_func innocuous_$ac_func
18792
18793/* System header to define __stub macros and hopefully few prototypes,
18794 which can conflict with char $ac_func (); below.
18795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18796 <limits.h> exists even on freestanding compilers. */
18797
18798#ifdef __STDC__
18799# include <limits.h>
18800#else
18801# include <assert.h>
18802#endif
18803
18804#undef $ac_func
18805
18806/* Override any GCC internal prototype to avoid an error.
18807 Use char because int might match the return type of a GCC
18808 builtin and then its argument prototype would still apply. */
18809#ifdef __cplusplus
18810extern "C"
18811#endif
18812char $ac_func ();
18813/* The GNU C library defines this for functions which it implements
18814 to always fail with ENOSYS. Some functions are actually named
18815 something starting with __ and the normal name is an alias. */
18816#if defined __stub_$ac_func || defined __stub___$ac_func
18817choke me
18818#endif
18819
18820int
18821main ()
18822{
18823return $ac_func ();
18824 ;
18825 return 0;
18826}
18827_ACEOF
18828rm -f conftest.$ac_objext conftest$ac_exeext
18829if { (ac_try="$ac_link"
18830case "(($ac_try" in
18831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18832 *) ac_try_echo=$ac_try;;
18833esac
18834eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18835$as_echo "$ac_try_echo") >&5
18836 (eval "$ac_link") 2>conftest.er1
18837 ac_status=$?
18838 grep -v '^ *+' conftest.er1 >conftest.err
18839 rm -f conftest.er1
18840 cat conftest.err >&5
18841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); } && {
18843 test -z "$ac_c_werror_flag" ||
18844 test ! -s conftest.err
18845 } && test -s conftest$ac_exeext && {
18846 test "$cross_compiling" = yes ||
18847 $as_test_x conftest$ac_exeext
18848 }; then
18849 eval "$as_ac_var=yes"
18850else
18851 $as_echo "$as_me: failed program was:" >&5
18852sed 's/^/| /' conftest.$ac_ext >&5
18853
18854 eval "$as_ac_var=no"
18855fi
18856
18857rm -rf conftest.dSYM
18858rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18859 conftest$ac_exeext conftest.$ac_ext
18860fi
18861ac_res=`eval 'as_val=${'$as_ac_var'}
18862 $as_echo "$as_val"'`
18863 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18864$as_echo "$ac_res" >&6; }
18865if test `eval 'as_val=${'$as_ac_var'}
18866 $as_echo "$as_val"'` = yes; then
11360 cat >>confdefs.h <<_ACEOF 18867 cat >>confdefs.h <<_ACEOF
11361#define HAVE_GETLOADAVG 1 18868#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11362_ACEOF 18869_ACEOF
11363 18870
11364else 18871else
@@ -11369,24 +18876,159 @@ else
11369esac 18876esac
11370 18877
11371 18878
11372$as_echo "#define C_GETLOADAVG 1" >>confdefs.h 18879cat >>confdefs.h <<\_ACEOF
18880#define C_GETLOADAVG 1
18881_ACEOF
11373 18882
11374# Figure out what our getloadavg.c needs. 18883# Figure out what our getloadavg.c needs.
11375ac_have_func=no 18884ac_have_func=no
11376ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default" 18885if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11377if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then : 18886 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18887$as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18888if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18889 $as_echo_n "(cached) " >&6
18890fi
18891{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18892$as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18893else
18894 # Is the header compilable?
18895{ $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18896$as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
18897cat >conftest.$ac_ext <<_ACEOF
18898/* confdefs.h. */
18899_ACEOF
18900cat confdefs.h >>conftest.$ac_ext
18901cat >>conftest.$ac_ext <<_ACEOF
18902/* end confdefs.h. */
18903$ac_includes_default
18904#include <sys/dg_sys_info.h>
18905_ACEOF
18906rm -f conftest.$ac_objext
18907if { (ac_try="$ac_compile"
18908case "(($ac_try" in
18909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18910 *) ac_try_echo=$ac_try;;
18911esac
18912eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18913$as_echo "$ac_try_echo") >&5
18914 (eval "$ac_compile") 2>conftest.er1
18915 ac_status=$?
18916 grep -v '^ *+' conftest.er1 >conftest.err
18917 rm -f conftest.er1
18918 cat conftest.err >&5
18919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); } && {
18921 test -z "$ac_c_werror_flag" ||
18922 test ! -s conftest.err
18923 } && test -s conftest.$ac_objext; then
18924 ac_header_compiler=yes
18925else
18926 $as_echo "$as_me: failed program was:" >&5
18927sed 's/^/| /' conftest.$ac_ext >&5
18928
18929 ac_header_compiler=no
18930fi
18931
18932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18933{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18934$as_echo "$ac_header_compiler" >&6; }
18935
18936# Is the header present?
18937{ $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18938$as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
18939cat >conftest.$ac_ext <<_ACEOF
18940/* confdefs.h. */
18941_ACEOF
18942cat confdefs.h >>conftest.$ac_ext
18943cat >>conftest.$ac_ext <<_ACEOF
18944/* end confdefs.h. */
18945#include <sys/dg_sys_info.h>
18946_ACEOF
18947if { (ac_try="$ac_cpp conftest.$ac_ext"
18948case "(($ac_try" in
18949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18950 *) ac_try_echo=$ac_try;;
18951esac
18952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18953$as_echo "$ac_try_echo") >&5
18954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18955 ac_status=$?
18956 grep -v '^ *+' conftest.er1 >conftest.err
18957 rm -f conftest.er1
18958 cat conftest.err >&5
18959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); } >/dev/null && {
18961 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18962 test ! -s conftest.err
18963 }; then
18964 ac_header_preproc=yes
18965else
18966 $as_echo "$as_me: failed program was:" >&5
18967sed 's/^/| /' conftest.$ac_ext >&5
18968
18969 ac_header_preproc=no
18970fi
18971
18972rm -f conftest.err conftest.$ac_ext
18973{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18974$as_echo "$ac_header_preproc" >&6; }
18975
18976# So? What about this header?
18977case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18978 yes:no: )
18979 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18980$as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18981 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18982$as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18983 ac_header_preproc=yes
18984 ;;
18985 no:yes:* )
18986 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18987$as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18988 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18989$as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18990 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18991$as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18992 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18993$as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18994 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18995$as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18996 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
18997$as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
18998
18999 ;;
19000esac
19001{ $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19002$as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19003if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19004 $as_echo_n "(cached) " >&6
19005else
19006 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19007fi
19008{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19009$as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19010
19011fi
19012if test $ac_cv_header_sys_dg_sys_info_h = yes; then
11378 ac_have_func=yes 19013 ac_have_func=yes
11379 19014
11380$as_echo "#define DGUX 1" >>confdefs.h 19015cat >>confdefs.h <<\_ACEOF
19016#define DGUX 1
19017_ACEOF
19018
11381 19019
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5 19020{ $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
11383$as_echo_n "checking for dg_sys_info in -ldgc... " >&6; } 19021$as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11384if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then : 19022if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
11385 $as_echo_n "(cached) " >&6 19023 $as_echo_n "(cached) " >&6
11386else 19024else
11387 ac_check_lib_save_LIBS=$LIBS 19025 ac_check_lib_save_LIBS=$LIBS
11388LIBS="-ldgc $LIBS" 19026LIBS="-ldgc $LIBS"
11389cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19027cat >conftest.$ac_ext <<_ACEOF
19028/* confdefs.h. */
19029_ACEOF
19030cat confdefs.h >>conftest.$ac_ext
19031cat >>conftest.$ac_ext <<_ACEOF
11390/* end confdefs.h. */ 19032/* end confdefs.h. */
11391 19033
11392/* Override any GCC internal prototype to avoid an error. 19034/* Override any GCC internal prototype to avoid an error.
@@ -11404,18 +19046,43 @@ return dg_sys_info ();
11404 return 0; 19046 return 0;
11405} 19047}
11406_ACEOF 19048_ACEOF
11407if ac_fn_c_try_link "$LINENO"; then : 19049rm -f conftest.$ac_objext conftest$ac_exeext
19050if { (ac_try="$ac_link"
19051case "(($ac_try" in
19052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19053 *) ac_try_echo=$ac_try;;
19054esac
19055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19056$as_echo "$ac_try_echo") >&5
19057 (eval "$ac_link") 2>conftest.er1
19058 ac_status=$?
19059 grep -v '^ *+' conftest.er1 >conftest.err
19060 rm -f conftest.er1
19061 cat conftest.err >&5
19062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); } && {
19064 test -z "$ac_c_werror_flag" ||
19065 test ! -s conftest.err
19066 } && test -s conftest$ac_exeext && {
19067 test "$cross_compiling" = yes ||
19068 $as_test_x conftest$ac_exeext
19069 }; then
11408 ac_cv_lib_dgc_dg_sys_info=yes 19070 ac_cv_lib_dgc_dg_sys_info=yes
11409else 19071else
11410 ac_cv_lib_dgc_dg_sys_info=no 19072 $as_echo "$as_me: failed program was:" >&5
19073sed 's/^/| /' conftest.$ac_ext >&5
19074
19075 ac_cv_lib_dgc_dg_sys_info=no
11411fi 19076fi
11412rm -f core conftest.err conftest.$ac_objext \ 19077
11413 conftest$ac_exeext conftest.$ac_ext 19078rm -rf conftest.dSYM
19079rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19080 conftest$ac_exeext conftest.$ac_ext
11414LIBS=$ac_check_lib_save_LIBS 19081LIBS=$ac_check_lib_save_LIBS
11415fi 19082fi
11416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5 19083{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11417$as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; } 19084$as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11418if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then : 19085if test $ac_cv_lib_dgc_dg_sys_info = yes; then
11419 cat >>confdefs.h <<_ACEOF 19086 cat >>confdefs.h <<_ACEOF
11420#define HAVE_LIBDGC 1 19087#define HAVE_LIBDGC 1
11421_ACEOF 19088_ACEOF
@@ -11428,18 +19095,230 @@ fi
11428 19095
11429 19096
11430 19097
11431ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" 19098if test "${ac_cv_header_locale_h+set}" = set; then
11432if test "x$ac_cv_header_locale_h" = x""yes; then : 19099 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19100$as_echo_n "checking for locale.h... " >&6; }
19101if test "${ac_cv_header_locale_h+set}" = set; then
19102 $as_echo_n "(cached) " >&6
19103fi
19104{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19105$as_echo "$ac_cv_header_locale_h" >&6; }
19106else
19107 # Is the header compilable?
19108{ $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19109$as_echo_n "checking locale.h usability... " >&6; }
19110cat >conftest.$ac_ext <<_ACEOF
19111/* confdefs.h. */
19112_ACEOF
19113cat confdefs.h >>conftest.$ac_ext
19114cat >>conftest.$ac_ext <<_ACEOF
19115/* end confdefs.h. */
19116$ac_includes_default
19117#include <locale.h>
19118_ACEOF
19119rm -f conftest.$ac_objext
19120if { (ac_try="$ac_compile"
19121case "(($ac_try" in
19122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19123 *) ac_try_echo=$ac_try;;
19124esac
19125eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19126$as_echo "$ac_try_echo") >&5
19127 (eval "$ac_compile") 2>conftest.er1
19128 ac_status=$?
19129 grep -v '^ *+' conftest.er1 >conftest.err
19130 rm -f conftest.er1
19131 cat conftest.err >&5
19132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); } && {
19134 test -z "$ac_c_werror_flag" ||
19135 test ! -s conftest.err
19136 } && test -s conftest.$ac_objext; then
19137 ac_header_compiler=yes
19138else
19139 $as_echo "$as_me: failed program was:" >&5
19140sed 's/^/| /' conftest.$ac_ext >&5
19141
19142 ac_header_compiler=no
19143fi
19144
19145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19146{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19147$as_echo "$ac_header_compiler" >&6; }
19148
19149# Is the header present?
19150{ $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19151$as_echo_n "checking locale.h presence... " >&6; }
19152cat >conftest.$ac_ext <<_ACEOF
19153/* confdefs.h. */
19154_ACEOF
19155cat confdefs.h >>conftest.$ac_ext
19156cat >>conftest.$ac_ext <<_ACEOF
19157/* end confdefs.h. */
19158#include <locale.h>
19159_ACEOF
19160if { (ac_try="$ac_cpp conftest.$ac_ext"
19161case "(($ac_try" in
19162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19163 *) ac_try_echo=$ac_try;;
19164esac
19165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19166$as_echo "$ac_try_echo") >&5
19167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19168 ac_status=$?
19169 grep -v '^ *+' conftest.er1 >conftest.err
19170 rm -f conftest.er1
19171 cat conftest.err >&5
19172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); } >/dev/null && {
19174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19175 test ! -s conftest.err
19176 }; then
19177 ac_header_preproc=yes
19178else
19179 $as_echo "$as_me: failed program was:" >&5
19180sed 's/^/| /' conftest.$ac_ext >&5
19181
19182 ac_header_preproc=no
19183fi
19184
19185rm -f conftest.err conftest.$ac_ext
19186{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19187$as_echo "$ac_header_preproc" >&6; }
19188
19189# So? What about this header?
19190case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19191 yes:no: )
19192 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19193$as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19194 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19195$as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19196 ac_header_preproc=yes
19197 ;;
19198 no:yes:* )
19199 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19200$as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19201 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19202$as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19203 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19204$as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19205 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19206$as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19207 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19208$as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19209 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19210$as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19211
19212 ;;
19213esac
19214{ $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19215$as_echo_n "checking for locale.h... " >&6; }
19216if test "${ac_cv_header_locale_h+set}" = set; then
19217 $as_echo_n "(cached) " >&6
19218else
19219 ac_cv_header_locale_h=$ac_header_preproc
19220fi
19221{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19222$as_echo "$ac_cv_header_locale_h" >&6; }
11433 19223
11434fi 19224fi
11435 19225
11436 19226
19227
11437for ac_func in setlocale 19228for ac_func in setlocale
11438do : 19229do
11439 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" 19230as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11440if test "x$ac_cv_func_setlocale" = x""yes; then : 19231{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19232$as_echo_n "checking for $ac_func... " >&6; }
19233if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19234 $as_echo_n "(cached) " >&6
19235else
19236 cat >conftest.$ac_ext <<_ACEOF
19237/* confdefs.h. */
19238_ACEOF
19239cat confdefs.h >>conftest.$ac_ext
19240cat >>conftest.$ac_ext <<_ACEOF
19241/* end confdefs.h. */
19242/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19244#define $ac_func innocuous_$ac_func
19245
19246/* System header to define __stub macros and hopefully few prototypes,
19247 which can conflict with char $ac_func (); below.
19248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19249 <limits.h> exists even on freestanding compilers. */
19250
19251#ifdef __STDC__
19252# include <limits.h>
19253#else
19254# include <assert.h>
19255#endif
19256
19257#undef $ac_func
19258
19259/* Override any GCC internal prototype to avoid an error.
19260 Use char because int might match the return type of a GCC
19261 builtin and then its argument prototype would still apply. */
19262#ifdef __cplusplus
19263extern "C"
19264#endif
19265char $ac_func ();
19266/* The GNU C library defines this for functions which it implements
19267 to always fail with ENOSYS. Some functions are actually named
19268 something starting with __ and the normal name is an alias. */
19269#if defined __stub_$ac_func || defined __stub___$ac_func
19270choke me
19271#endif
19272
19273int
19274main ()
19275{
19276return $ac_func ();
19277 ;
19278 return 0;
19279}
19280_ACEOF
19281rm -f conftest.$ac_objext conftest$ac_exeext
19282if { (ac_try="$ac_link"
19283case "(($ac_try" in
19284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19285 *) ac_try_echo=$ac_try;;
19286esac
19287eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19288$as_echo "$ac_try_echo") >&5
19289 (eval "$ac_link") 2>conftest.er1
19290 ac_status=$?
19291 grep -v '^ *+' conftest.er1 >conftest.err
19292 rm -f conftest.er1
19293 cat conftest.err >&5
19294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); } && {
19296 test -z "$ac_c_werror_flag" ||
19297 test ! -s conftest.err
19298 } && test -s conftest$ac_exeext && {
19299 test "$cross_compiling" = yes ||
19300 $as_test_x conftest$ac_exeext
19301 }; then
19302 eval "$as_ac_var=yes"
19303else
19304 $as_echo "$as_me: failed program was:" >&5
19305sed 's/^/| /' conftest.$ac_ext >&5
19306
19307 eval "$as_ac_var=no"
19308fi
19309
19310rm -rf conftest.dSYM
19311rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19312 conftest$ac_exeext conftest.$ac_ext
19313fi
19314ac_res=`eval 'as_val=${'$as_ac_var'}
19315 $as_echo "$as_val"'`
19316 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19317$as_echo "$ac_res" >&6; }
19318if test `eval 'as_val=${'$as_ac_var'}
19319 $as_echo "$as_val"'` = yes; then
11441 cat >>confdefs.h <<_ACEOF 19320 cat >>confdefs.h <<_ACEOF
11442#define HAVE_SETLOCALE 1 19321#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11443_ACEOF 19322_ACEOF
11444 19323
11445fi 19324fi
@@ -11452,19 +19331,151 @@ done
11452if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then 19331if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
11453 ac_have_func=yes 19332 ac_have_func=yes
11454 19333
11455$as_echo "#define SVR4 1" >>confdefs.h 19334cat >>confdefs.h <<\_ACEOF
19335#define SVR4 1
19336_ACEOF
11456 19337
11457fi 19338fi
11458 19339
11459if test $ac_have_func = no; then 19340if test $ac_have_func = no; then
11460 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default" 19341 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11461if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then : 19342 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19343$as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19344if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19345 $as_echo_n "(cached) " >&6
19346fi
19347{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19348$as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19349else
19350 # Is the header compilable?
19351{ $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19352$as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19353cat >conftest.$ac_ext <<_ACEOF
19354/* confdefs.h. */
19355_ACEOF
19356cat confdefs.h >>conftest.$ac_ext
19357cat >>conftest.$ac_ext <<_ACEOF
19358/* end confdefs.h. */
19359$ac_includes_default
19360#include <inq_stats/cpustats.h>
19361_ACEOF
19362rm -f conftest.$ac_objext
19363if { (ac_try="$ac_compile"
19364case "(($ac_try" in
19365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19366 *) ac_try_echo=$ac_try;;
19367esac
19368eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19369$as_echo "$ac_try_echo") >&5
19370 (eval "$ac_compile") 2>conftest.er1
19371 ac_status=$?
19372 grep -v '^ *+' conftest.er1 >conftest.err
19373 rm -f conftest.er1
19374 cat conftest.err >&5
19375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); } && {
19377 test -z "$ac_c_werror_flag" ||
19378 test ! -s conftest.err
19379 } && test -s conftest.$ac_objext; then
19380 ac_header_compiler=yes
19381else
19382 $as_echo "$as_me: failed program was:" >&5
19383sed 's/^/| /' conftest.$ac_ext >&5
19384
19385 ac_header_compiler=no
19386fi
19387
19388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19389{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19390$as_echo "$ac_header_compiler" >&6; }
19391
19392# Is the header present?
19393{ $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19394$as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19395cat >conftest.$ac_ext <<_ACEOF
19396/* confdefs.h. */
19397_ACEOF
19398cat confdefs.h >>conftest.$ac_ext
19399cat >>conftest.$ac_ext <<_ACEOF
19400/* end confdefs.h. */
19401#include <inq_stats/cpustats.h>
19402_ACEOF
19403if { (ac_try="$ac_cpp conftest.$ac_ext"
19404case "(($ac_try" in
19405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19406 *) ac_try_echo=$ac_try;;
19407esac
19408eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19409$as_echo "$ac_try_echo") >&5
19410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19411 ac_status=$?
19412 grep -v '^ *+' conftest.er1 >conftest.err
19413 rm -f conftest.er1
19414 cat conftest.err >&5
19415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); } >/dev/null && {
19417 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19418 test ! -s conftest.err
19419 }; then
19420 ac_header_preproc=yes
19421else
19422 $as_echo "$as_me: failed program was:" >&5
19423sed 's/^/| /' conftest.$ac_ext >&5
19424
19425 ac_header_preproc=no
19426fi
19427
19428rm -f conftest.err conftest.$ac_ext
19429{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19430$as_echo "$ac_header_preproc" >&6; }
19431
19432# So? What about this header?
19433case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19434 yes:no: )
19435 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19436$as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19437 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19438$as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19439 ac_header_preproc=yes
19440 ;;
19441 no:yes:* )
19442 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19443$as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19444 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19445$as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19446 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19447$as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19448 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19449$as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19450 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19451$as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19452 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19453$as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19454
19455 ;;
19456esac
19457{ $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19458$as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19459if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19460 $as_echo_n "(cached) " >&6
19461else
19462 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19463fi
19464{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19465$as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19466
19467fi
19468if test $ac_cv_header_inq_stats_cpustats_h = yes; then
11462 ac_have_func=yes 19469 ac_have_func=yes
11463 19470
11464$as_echo "#define UMAX 1" >>confdefs.h 19471cat >>confdefs.h <<\_ACEOF
19472#define UMAX 1
19473_ACEOF
11465 19474
11466 19475
11467$as_echo "#define UMAX4_3 1" >>confdefs.h 19476cat >>confdefs.h <<\_ACEOF
19477#define UMAX4_3 1
19478_ACEOF
11468 19479
11469fi 19480fi
11470 19481
@@ -11472,9 +19483,137 @@ fi
11472fi 19483fi
11473 19484
11474if test $ac_have_func = no; then 19485if test $ac_have_func = no; then
11475 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default" 19486 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11476if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then : 19487 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11477 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h 19488$as_echo_n "checking for sys/cpustats.h... " >&6; }
19489if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19490 $as_echo_n "(cached) " >&6
19491fi
19492{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19493$as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19494else
19495 # Is the header compilable?
19496{ $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19497$as_echo_n "checking sys/cpustats.h usability... " >&6; }
19498cat >conftest.$ac_ext <<_ACEOF
19499/* confdefs.h. */
19500_ACEOF
19501cat confdefs.h >>conftest.$ac_ext
19502cat >>conftest.$ac_ext <<_ACEOF
19503/* end confdefs.h. */
19504$ac_includes_default
19505#include <sys/cpustats.h>
19506_ACEOF
19507rm -f conftest.$ac_objext
19508if { (ac_try="$ac_compile"
19509case "(($ac_try" in
19510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19511 *) ac_try_echo=$ac_try;;
19512esac
19513eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19514$as_echo "$ac_try_echo") >&5
19515 (eval "$ac_compile") 2>conftest.er1
19516 ac_status=$?
19517 grep -v '^ *+' conftest.er1 >conftest.err
19518 rm -f conftest.er1
19519 cat conftest.err >&5
19520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); } && {
19522 test -z "$ac_c_werror_flag" ||
19523 test ! -s conftest.err
19524 } && test -s conftest.$ac_objext; then
19525 ac_header_compiler=yes
19526else
19527 $as_echo "$as_me: failed program was:" >&5
19528sed 's/^/| /' conftest.$ac_ext >&5
19529
19530 ac_header_compiler=no
19531fi
19532
19533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19534{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19535$as_echo "$ac_header_compiler" >&6; }
19536
19537# Is the header present?
19538{ $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19539$as_echo_n "checking sys/cpustats.h presence... " >&6; }
19540cat >conftest.$ac_ext <<_ACEOF
19541/* confdefs.h. */
19542_ACEOF
19543cat confdefs.h >>conftest.$ac_ext
19544cat >>conftest.$ac_ext <<_ACEOF
19545/* end confdefs.h. */
19546#include <sys/cpustats.h>
19547_ACEOF
19548if { (ac_try="$ac_cpp conftest.$ac_ext"
19549case "(($ac_try" in
19550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551 *) ac_try_echo=$ac_try;;
19552esac
19553eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19554$as_echo "$ac_try_echo") >&5
19555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19556 ac_status=$?
19557 grep -v '^ *+' conftest.er1 >conftest.err
19558 rm -f conftest.er1
19559 cat conftest.err >&5
19560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); } >/dev/null && {
19562 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19563 test ! -s conftest.err
19564 }; then
19565 ac_header_preproc=yes
19566else
19567 $as_echo "$as_me: failed program was:" >&5
19568sed 's/^/| /' conftest.$ac_ext >&5
19569
19570 ac_header_preproc=no
19571fi
19572
19573rm -f conftest.err conftest.$ac_ext
19574{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19575$as_echo "$ac_header_preproc" >&6; }
19576
19577# So? What about this header?
19578case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19579 yes:no: )
19580 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19581$as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19582 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19583$as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19584 ac_header_preproc=yes
19585 ;;
19586 no:yes:* )
19587 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19588$as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19589 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19590$as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19591 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19592$as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19593 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19594$as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19595 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19596$as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19597 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19598$as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19599
19600 ;;
19601esac
19602{ $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19603$as_echo_n "checking for sys/cpustats.h... " >&6; }
19604if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19605 $as_echo_n "(cached) " >&6
19606else
19607 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19608fi
19609{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19610$as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19611
19612fi
19613if test $ac_cv_header_sys_cpustats_h = yes; then
19614 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19615#define UMAX 1
19616_ACEOF
11478 19617
11479fi 19618fi
11480 19619
@@ -11482,12 +19621,145 @@ fi
11482fi 19621fi
11483 19622
11484if test $ac_have_func = no; then 19623if test $ac_have_func = no; then
11485 for ac_header in mach/mach.h 19624
11486do : 19625for ac_header in mach/mach.h
11487 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" 19626do
11488if test "x$ac_cv_header_mach_mach_h" = x""yes; then : 19627as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19628if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19629 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19630$as_echo_n "checking for $ac_header... " >&6; }
19631if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19632 $as_echo_n "(cached) " >&6
19633fi
19634ac_res=`eval 'as_val=${'$as_ac_Header'}
19635 $as_echo "$as_val"'`
19636 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19637$as_echo "$ac_res" >&6; }
19638else
19639 # Is the header compilable?
19640{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19641$as_echo_n "checking $ac_header usability... " >&6; }
19642cat >conftest.$ac_ext <<_ACEOF
19643/* confdefs.h. */
19644_ACEOF
19645cat confdefs.h >>conftest.$ac_ext
19646cat >>conftest.$ac_ext <<_ACEOF
19647/* end confdefs.h. */
19648$ac_includes_default
19649#include <$ac_header>
19650_ACEOF
19651rm -f conftest.$ac_objext
19652if { (ac_try="$ac_compile"
19653case "(($ac_try" in
19654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19655 *) ac_try_echo=$ac_try;;
19656esac
19657eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19658$as_echo "$ac_try_echo") >&5
19659 (eval "$ac_compile") 2>conftest.er1
19660 ac_status=$?
19661 grep -v '^ *+' conftest.er1 >conftest.err
19662 rm -f conftest.er1
19663 cat conftest.err >&5
19664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); } && {
19666 test -z "$ac_c_werror_flag" ||
19667 test ! -s conftest.err
19668 } && test -s conftest.$ac_objext; then
19669 ac_header_compiler=yes
19670else
19671 $as_echo "$as_me: failed program was:" >&5
19672sed 's/^/| /' conftest.$ac_ext >&5
19673
19674 ac_header_compiler=no
19675fi
19676
19677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19678{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19679$as_echo "$ac_header_compiler" >&6; }
19680
19681# Is the header present?
19682{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19683$as_echo_n "checking $ac_header presence... " >&6; }
19684cat >conftest.$ac_ext <<_ACEOF
19685/* confdefs.h. */
19686_ACEOF
19687cat confdefs.h >>conftest.$ac_ext
19688cat >>conftest.$ac_ext <<_ACEOF
19689/* end confdefs.h. */
19690#include <$ac_header>
19691_ACEOF
19692if { (ac_try="$ac_cpp conftest.$ac_ext"
19693case "(($ac_try" in
19694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19695 *) ac_try_echo=$ac_try;;
19696esac
19697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19698$as_echo "$ac_try_echo") >&5
19699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19700 ac_status=$?
19701 grep -v '^ *+' conftest.er1 >conftest.err
19702 rm -f conftest.er1
19703 cat conftest.err >&5
19704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); } >/dev/null && {
19706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19707 test ! -s conftest.err
19708 }; then
19709 ac_header_preproc=yes
19710else
19711 $as_echo "$as_me: failed program was:" >&5
19712sed 's/^/| /' conftest.$ac_ext >&5
19713
19714 ac_header_preproc=no
19715fi
19716
19717rm -f conftest.err conftest.$ac_ext
19718{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19719$as_echo "$ac_header_preproc" >&6; }
19720
19721# So? What about this header?
19722case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19723 yes:no: )
19724 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19725$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19726 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19727$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19728 ac_header_preproc=yes
19729 ;;
19730 no:yes:* )
19731 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19732$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19734$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19736$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19737 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19738$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19739 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19740$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19742$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19743
19744 ;;
19745esac
19746{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19747$as_echo_n "checking for $ac_header... " >&6; }
19748if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19749 $as_echo_n "(cached) " >&6
19750else
19751 eval "$as_ac_Header=\$ac_header_preproc"
19752fi
19753ac_res=`eval 'as_val=${'$as_ac_Header'}
19754 $as_echo "$as_val"'`
19755 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19756$as_echo "$ac_res" >&6; }
19757
19758fi
19759if test `eval 'as_val=${'$as_ac_Header'}
19760 $as_echo "$as_val"'` = yes; then
11489 cat >>confdefs.h <<_ACEOF 19761 cat >>confdefs.h <<_ACEOF
11490#define HAVE_MACH_MACH_H 1 19762#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11491_ACEOF 19763_ACEOF
11492 19764
11493fi 19765fi
@@ -11496,23 +19768,253 @@ done
11496 19768
11497fi 19769fi
11498 19770
19771
11499for ac_header in nlist.h 19772for ac_header in nlist.h
11500do : 19773do
11501 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default" 19774as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11502if test "x$ac_cv_header_nlist_h" = x""yes; then : 19775if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19776 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19777$as_echo_n "checking for $ac_header... " >&6; }
19778if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19779 $as_echo_n "(cached) " >&6
19780fi
19781ac_res=`eval 'as_val=${'$as_ac_Header'}
19782 $as_echo "$as_val"'`
19783 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19784$as_echo "$ac_res" >&6; }
19785else
19786 # Is the header compilable?
19787{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19788$as_echo_n "checking $ac_header usability... " >&6; }
19789cat >conftest.$ac_ext <<_ACEOF
19790/* confdefs.h. */
19791_ACEOF
19792cat confdefs.h >>conftest.$ac_ext
19793cat >>conftest.$ac_ext <<_ACEOF
19794/* end confdefs.h. */
19795$ac_includes_default
19796#include <$ac_header>
19797_ACEOF
19798rm -f conftest.$ac_objext
19799if { (ac_try="$ac_compile"
19800case "(($ac_try" in
19801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19802 *) ac_try_echo=$ac_try;;
19803esac
19804eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19805$as_echo "$ac_try_echo") >&5
19806 (eval "$ac_compile") 2>conftest.er1
19807 ac_status=$?
19808 grep -v '^ *+' conftest.er1 >conftest.err
19809 rm -f conftest.er1
19810 cat conftest.err >&5
19811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); } && {
19813 test -z "$ac_c_werror_flag" ||
19814 test ! -s conftest.err
19815 } && test -s conftest.$ac_objext; then
19816 ac_header_compiler=yes
19817else
19818 $as_echo "$as_me: failed program was:" >&5
19819sed 's/^/| /' conftest.$ac_ext >&5
19820
19821 ac_header_compiler=no
19822fi
19823
19824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19825{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19826$as_echo "$ac_header_compiler" >&6; }
19827
19828# Is the header present?
19829{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19830$as_echo_n "checking $ac_header presence... " >&6; }
19831cat >conftest.$ac_ext <<_ACEOF
19832/* confdefs.h. */
19833_ACEOF
19834cat confdefs.h >>conftest.$ac_ext
19835cat >>conftest.$ac_ext <<_ACEOF
19836/* end confdefs.h. */
19837#include <$ac_header>
19838_ACEOF
19839if { (ac_try="$ac_cpp conftest.$ac_ext"
19840case "(($ac_try" in
19841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842 *) ac_try_echo=$ac_try;;
19843esac
19844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19845$as_echo "$ac_try_echo") >&5
19846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19847 ac_status=$?
19848 grep -v '^ *+' conftest.er1 >conftest.err
19849 rm -f conftest.er1
19850 cat conftest.err >&5
19851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); } >/dev/null && {
19853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19854 test ! -s conftest.err
19855 }; then
19856 ac_header_preproc=yes
19857else
19858 $as_echo "$as_me: failed program was:" >&5
19859sed 's/^/| /' conftest.$ac_ext >&5
19860
19861 ac_header_preproc=no
19862fi
19863
19864rm -f conftest.err conftest.$ac_ext
19865{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19866$as_echo "$ac_header_preproc" >&6; }
19867
19868# So? What about this header?
19869case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19870 yes:no: )
19871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19872$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19874$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19875 ac_header_preproc=yes
19876 ;;
19877 no:yes:* )
19878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19879$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19881$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19883$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19885$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19887$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19889$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19890
19891 ;;
19892esac
19893{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19894$as_echo_n "checking for $ac_header... " >&6; }
19895if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19896 $as_echo_n "(cached) " >&6
19897else
19898 eval "$as_ac_Header=\$ac_header_preproc"
19899fi
19900ac_res=`eval 'as_val=${'$as_ac_Header'}
19901 $as_echo "$as_val"'`
19902 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19903$as_echo "$ac_res" >&6; }
19904
19905fi
19906if test `eval 'as_val=${'$as_ac_Header'}
19907 $as_echo "$as_val"'` = yes; then
11503 cat >>confdefs.h <<_ACEOF 19908 cat >>confdefs.h <<_ACEOF
11504#define HAVE_NLIST_H 1 19909#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11505_ACEOF 19910_ACEOF
11506 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h> 19911 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
11507" 19912$as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
11508if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then : 19913if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19914 $as_echo_n "(cached) " >&6
19915else
19916 cat >conftest.$ac_ext <<_ACEOF
19917/* confdefs.h. */
19918_ACEOF
19919cat confdefs.h >>conftest.$ac_ext
19920cat >>conftest.$ac_ext <<_ACEOF
19921/* end confdefs.h. */
19922#include <nlist.h>
19923
19924int
19925main ()
19926{
19927static struct nlist ac_aggr;
19928if (ac_aggr.n_un.n_name)
19929return 0;
19930 ;
19931 return 0;
19932}
19933_ACEOF
19934rm -f conftest.$ac_objext
19935if { (ac_try="$ac_compile"
19936case "(($ac_try" in
19937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19938 *) ac_try_echo=$ac_try;;
19939esac
19940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19941$as_echo "$ac_try_echo") >&5
19942 (eval "$ac_compile") 2>conftest.er1
19943 ac_status=$?
19944 grep -v '^ *+' conftest.er1 >conftest.err
19945 rm -f conftest.er1
19946 cat conftest.err >&5
19947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); } && {
19949 test -z "$ac_c_werror_flag" ||
19950 test ! -s conftest.err
19951 } && test -s conftest.$ac_objext; then
19952 ac_cv_member_struct_nlist_n_un_n_name=yes
19953else
19954 $as_echo "$as_me: failed program was:" >&5
19955sed 's/^/| /' conftest.$ac_ext >&5
19956
19957 cat >conftest.$ac_ext <<_ACEOF
19958/* confdefs.h. */
19959_ACEOF
19960cat confdefs.h >>conftest.$ac_ext
19961cat >>conftest.$ac_ext <<_ACEOF
19962/* end confdefs.h. */
19963#include <nlist.h>
19964
19965int
19966main ()
19967{
19968static struct nlist ac_aggr;
19969if (sizeof ac_aggr.n_un.n_name)
19970return 0;
19971 ;
19972 return 0;
19973}
19974_ACEOF
19975rm -f conftest.$ac_objext
19976if { (ac_try="$ac_compile"
19977case "(($ac_try" in
19978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19979 *) ac_try_echo=$ac_try;;
19980esac
19981eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19982$as_echo "$ac_try_echo") >&5
19983 (eval "$ac_compile") 2>conftest.er1
19984 ac_status=$?
19985 grep -v '^ *+' conftest.er1 >conftest.err
19986 rm -f conftest.er1
19987 cat conftest.err >&5
19988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); } && {
19990 test -z "$ac_c_werror_flag" ||
19991 test ! -s conftest.err
19992 } && test -s conftest.$ac_objext; then
19993 ac_cv_member_struct_nlist_n_un_n_name=yes
19994else
19995 $as_echo "$as_me: failed program was:" >&5
19996sed 's/^/| /' conftest.$ac_ext >&5
19997
19998 ac_cv_member_struct_nlist_n_un_n_name=no
19999fi
20000
20001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20002fi
20003
20004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20005fi
20006{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20007$as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20008if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
11509 20009
11510cat >>confdefs.h <<_ACEOF 20010cat >>confdefs.h <<_ACEOF
11511#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 20011#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11512_ACEOF 20012_ACEOF
11513 20013
11514 20014
11515$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h 20015cat >>confdefs.h <<\_ACEOF
20016#define NLIST_NAME_UNION 1
20017_ACEOF
11516 20018
11517fi 20019fi
11518 20020
@@ -11526,12 +20028,16 @@ done
11526 20028
11527 20029
11528# Some definitions of getloadavg require that the program be installed setgid. 20030# Some definitions of getloadavg require that the program be installed setgid.
11529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5 20031{ $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
11530$as_echo_n "checking whether getloadavg requires setgid... " >&6; } 20032$as_echo_n "checking whether getloadavg requires setgid... " >&6; }
11531if test "${ac_cv_func_getloadavg_setgid+set}" = set; then : 20033if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
11532 $as_echo_n "(cached) " >&6 20034 $as_echo_n "(cached) " >&6
11533else 20035else
11534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20036 cat >conftest.$ac_ext <<_ACEOF
20037/* confdefs.h. */
20038_ACEOF
20039cat confdefs.h >>conftest.$ac_ext
20040cat >>conftest.$ac_ext <<_ACEOF
11535/* end confdefs.h. */ 20041/* end confdefs.h. */
11536#include "$srcdir/$ac_config_libobj_dir/getloadavg.c" 20042#include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11537#ifdef LDAV_PRIVILEGED 20043#ifdef LDAV_PRIVILEGED
@@ -11539,7 +20045,7 @@ Yowza Am I SETGID yet
11539#endif 20045#endif
11540_ACEOF 20046_ACEOF
11541if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20047if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11542 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then : 20048 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
11543 ac_cv_func_getloadavg_setgid=yes 20049 ac_cv_func_getloadavg_setgid=yes
11544else 20050else
11545 ac_cv_func_getloadavg_setgid=no 20051 ac_cv_func_getloadavg_setgid=no
@@ -11547,21 +20053,23 @@ fi
11547rm -f conftest* 20053rm -f conftest*
11548 20054
11549fi 20055fi
11550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5 20056{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
11551$as_echo "$ac_cv_func_getloadavg_setgid" >&6; } 20057$as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
11552if test $ac_cv_func_getloadavg_setgid = yes; then 20058if test $ac_cv_func_getloadavg_setgid = yes; then
11553 NEED_SETGID=true 20059 NEED_SETGID=true
11554 20060
11555$as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h 20061cat >>confdefs.h <<\_ACEOF
20062#define GETLOADAVG_PRIVILEGED 1
20063_ACEOF
11556 20064
11557else 20065else
11558 NEED_SETGID=false 20066 NEED_SETGID=false
11559fi 20067fi
11560 20068
11561if test $ac_cv_func_getloadavg_setgid = yes; then 20069if test $ac_cv_func_getloadavg_setgid = yes; then
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5 20070 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
11563$as_echo_n "checking group of /dev/kmem... " >&6; } 20071$as_echo_n "checking group of /dev/kmem... " >&6; }
11564if test "${ac_cv_group_kmem+set}" = set; then : 20072if test "${ac_cv_group_kmem+set}" = set; then
11565 $as_echo_n "(cached) " >&6 20073 $as_echo_n "(cached) " >&6
11566else 20074else
11567 # On Solaris, /dev/kmem is a symlink. Get info on the real file. 20075 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
@@ -11574,7 +20082,7 @@ else
11574 / /s/.* //;p;'` 20082 / /s/.* //;p;'`
11575 20083
11576fi 20084fi
11577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5 20085{ $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
11578$as_echo "$ac_cv_group_kmem" >&6; } 20086$as_echo "$ac_cv_group_kmem" >&6; }
11579 KMEM_GROUP=$ac_cv_group_kmem 20087 KMEM_GROUP=$ac_cv_group_kmem
11580fi 20088fi
@@ -11587,13 +20095,17 @@ LIBS=$ac_save_LIBS
11587 20095
11588 20096
11589 20097
11590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 20098{ $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11591$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 20099$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11592if test "${ac_cv_sys_largefile_source+set}" = set; then : 20100if test "${ac_cv_sys_largefile_source+set}" = set; then
11593 $as_echo_n "(cached) " >&6 20101 $as_echo_n "(cached) " >&6
11594else 20102else
11595 while :; do 20103 while :; do
11596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20104 cat >conftest.$ac_ext <<_ACEOF
20105/* confdefs.h. */
20106_ACEOF
20107cat confdefs.h >>conftest.$ac_ext
20108cat >>conftest.$ac_ext <<_ACEOF
11597/* end confdefs.h. */ 20109/* end confdefs.h. */
11598#include <sys/types.h> /* for off_t */ 20110#include <sys/types.h> /* for off_t */
11599 #include <stdio.h> 20111 #include <stdio.h>
@@ -11606,12 +20118,43 @@ int (*fp) (FILE *, off_t, int) = fseeko;
11606 return 0; 20118 return 0;
11607} 20119}
11608_ACEOF 20120_ACEOF
11609if ac_fn_c_try_link "$LINENO"; then : 20121rm -f conftest.$ac_objext conftest$ac_exeext
20122if { (ac_try="$ac_link"
20123case "(($ac_try" in
20124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20125 *) ac_try_echo=$ac_try;;
20126esac
20127eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20128$as_echo "$ac_try_echo") >&5
20129 (eval "$ac_link") 2>conftest.er1
20130 ac_status=$?
20131 grep -v '^ *+' conftest.er1 >conftest.err
20132 rm -f conftest.er1
20133 cat conftest.err >&5
20134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); } && {
20136 test -z "$ac_c_werror_flag" ||
20137 test ! -s conftest.err
20138 } && test -s conftest$ac_exeext && {
20139 test "$cross_compiling" = yes ||
20140 $as_test_x conftest$ac_exeext
20141 }; then
11610 ac_cv_sys_largefile_source=no; break 20142 ac_cv_sys_largefile_source=no; break
20143else
20144 $as_echo "$as_me: failed program was:" >&5
20145sed 's/^/| /' conftest.$ac_ext >&5
20146
20147
11611fi 20148fi
11612rm -f core conftest.err conftest.$ac_objext \ 20149
11613 conftest$ac_exeext conftest.$ac_ext 20150rm -rf conftest.dSYM
11614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20151rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20152 conftest$ac_exeext conftest.$ac_ext
20153 cat >conftest.$ac_ext <<_ACEOF
20154/* confdefs.h. */
20155_ACEOF
20156cat confdefs.h >>conftest.$ac_ext
20157cat >>conftest.$ac_ext <<_ACEOF
11615/* end confdefs.h. */ 20158/* end confdefs.h. */
11616#define _LARGEFILE_SOURCE 1 20159#define _LARGEFILE_SOURCE 1
11617#include <sys/types.h> /* for off_t */ 20160#include <sys/types.h> /* for off_t */
@@ -11625,16 +20168,43 @@ int (*fp) (FILE *, off_t, int) = fseeko;
11625 return 0; 20168 return 0;
11626} 20169}
11627_ACEOF 20170_ACEOF
11628if ac_fn_c_try_link "$LINENO"; then : 20171rm -f conftest.$ac_objext conftest$ac_exeext
20172if { (ac_try="$ac_link"
20173case "(($ac_try" in
20174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20175 *) ac_try_echo=$ac_try;;
20176esac
20177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20178$as_echo "$ac_try_echo") >&5
20179 (eval "$ac_link") 2>conftest.er1
20180 ac_status=$?
20181 grep -v '^ *+' conftest.er1 >conftest.err
20182 rm -f conftest.er1
20183 cat conftest.err >&5
20184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); } && {
20186 test -z "$ac_c_werror_flag" ||
20187 test ! -s conftest.err
20188 } && test -s conftest$ac_exeext && {
20189 test "$cross_compiling" = yes ||
20190 $as_test_x conftest$ac_exeext
20191 }; then
11629 ac_cv_sys_largefile_source=1; break 20192 ac_cv_sys_largefile_source=1; break
20193else
20194 $as_echo "$as_me: failed program was:" >&5
20195sed 's/^/| /' conftest.$ac_ext >&5
20196
20197
11630fi 20198fi
11631rm -f core conftest.err conftest.$ac_objext \ 20199
11632 conftest$ac_exeext conftest.$ac_ext 20200rm -rf conftest.dSYM
20201rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20202 conftest$ac_exeext conftest.$ac_ext
11633 ac_cv_sys_largefile_source=unknown 20203 ac_cv_sys_largefile_source=unknown
11634 break 20204 break
11635done 20205done
11636fi 20206fi
11637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 20207{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11638$as_echo "$ac_cv_sys_largefile_source" >&6; } 20208$as_echo "$ac_cv_sys_largefile_source" >&6; }
11639case $ac_cv_sys_largefile_source in #( 20209case $ac_cv_sys_largefile_source in #(
11640 no | unknown) ;; 20210 no | unknown) ;;
@@ -11651,7 +20221,9 @@ rm -rf conftest*
11651# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 20221# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11652if test $ac_cv_sys_largefile_source != unknown; then 20222if test $ac_cv_sys_largefile_source != unknown; then
11653 20223
11654$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 20224cat >>confdefs.h <<\_ACEOF
20225#define HAVE_FSEEKO 1
20226_ACEOF
11655 20227
11656fi 20228fi
11657 20229
@@ -11679,12 +20251,145 @@ fi
11679 20251
11680 20252
11681 GETOPT_H= 20253 GETOPT_H=
11682 for ac_header in getopt.h 20254
11683do : 20255for ac_header in getopt.h
11684 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" 20256do
11685if test "x$ac_cv_header_getopt_h" = x""yes; then : 20257as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20258if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20259 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20260$as_echo_n "checking for $ac_header... " >&6; }
20261if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20262 $as_echo_n "(cached) " >&6
20263fi
20264ac_res=`eval 'as_val=${'$as_ac_Header'}
20265 $as_echo "$as_val"'`
20266 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20267$as_echo "$ac_res" >&6; }
20268else
20269 # Is the header compilable?
20270{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20271$as_echo_n "checking $ac_header usability... " >&6; }
20272cat >conftest.$ac_ext <<_ACEOF
20273/* confdefs.h. */
20274_ACEOF
20275cat confdefs.h >>conftest.$ac_ext
20276cat >>conftest.$ac_ext <<_ACEOF
20277/* end confdefs.h. */
20278$ac_includes_default
20279#include <$ac_header>
20280_ACEOF
20281rm -f conftest.$ac_objext
20282if { (ac_try="$ac_compile"
20283case "(($ac_try" in
20284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20285 *) ac_try_echo=$ac_try;;
20286esac
20287eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20288$as_echo "$ac_try_echo") >&5
20289 (eval "$ac_compile") 2>conftest.er1
20290 ac_status=$?
20291 grep -v '^ *+' conftest.er1 >conftest.err
20292 rm -f conftest.er1
20293 cat conftest.err >&5
20294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); } && {
20296 test -z "$ac_c_werror_flag" ||
20297 test ! -s conftest.err
20298 } && test -s conftest.$ac_objext; then
20299 ac_header_compiler=yes
20300else
20301 $as_echo "$as_me: failed program was:" >&5
20302sed 's/^/| /' conftest.$ac_ext >&5
20303
20304 ac_header_compiler=no
20305fi
20306
20307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20308{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20309$as_echo "$ac_header_compiler" >&6; }
20310
20311# Is the header present?
20312{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20313$as_echo_n "checking $ac_header presence... " >&6; }
20314cat >conftest.$ac_ext <<_ACEOF
20315/* confdefs.h. */
20316_ACEOF
20317cat confdefs.h >>conftest.$ac_ext
20318cat >>conftest.$ac_ext <<_ACEOF
20319/* end confdefs.h. */
20320#include <$ac_header>
20321_ACEOF
20322if { (ac_try="$ac_cpp conftest.$ac_ext"
20323case "(($ac_try" in
20324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20325 *) ac_try_echo=$ac_try;;
20326esac
20327eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20328$as_echo "$ac_try_echo") >&5
20329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20330 ac_status=$?
20331 grep -v '^ *+' conftest.er1 >conftest.err
20332 rm -f conftest.er1
20333 cat conftest.err >&5
20334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); } >/dev/null && {
20336 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20337 test ! -s conftest.err
20338 }; then
20339 ac_header_preproc=yes
20340else
20341 $as_echo "$as_me: failed program was:" >&5
20342sed 's/^/| /' conftest.$ac_ext >&5
20343
20344 ac_header_preproc=no
20345fi
20346
20347rm -f conftest.err conftest.$ac_ext
20348{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20349$as_echo "$ac_header_preproc" >&6; }
20350
20351# So? What about this header?
20352case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20353 yes:no: )
20354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20355$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20357$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20358 ac_header_preproc=yes
20359 ;;
20360 no:yes:* )
20361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20362$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20364$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20366$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20368$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20370$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20372$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20373
20374 ;;
20375esac
20376{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20377$as_echo_n "checking for $ac_header... " >&6; }
20378if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20379 $as_echo_n "(cached) " >&6
20380else
20381 eval "$as_ac_Header=\$ac_header_preproc"
20382fi
20383ac_res=`eval 'as_val=${'$as_ac_Header'}
20384 $as_echo "$as_val"'`
20385 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20386$as_echo "$ac_res" >&6; }
20387
20388fi
20389if test `eval 'as_val=${'$as_ac_Header'}
20390 $as_echo "$as_val"'` = yes; then
11686 cat >>confdefs.h <<_ACEOF 20391 cat >>confdefs.h <<_ACEOF
11687#define HAVE_GETOPT_H 1 20392#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11688_ACEOF 20393_ACEOF
11689 20394
11690else 20395else
@@ -11694,12 +20399,101 @@ fi
11694done 20399done
11695 20400
11696 if test -z "$GETOPT_H"; then 20401 if test -z "$GETOPT_H"; then
11697 for ac_func in getopt_long_only 20402
11698do : 20403for ac_func in getopt_long_only
11699 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" 20404do
11700if test "x$ac_cv_func_getopt_long_only" = x""yes; then : 20405as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20406{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20407$as_echo_n "checking for $ac_func... " >&6; }
20408if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20409 $as_echo_n "(cached) " >&6
20410else
20411 cat >conftest.$ac_ext <<_ACEOF
20412/* confdefs.h. */
20413_ACEOF
20414cat confdefs.h >>conftest.$ac_ext
20415cat >>conftest.$ac_ext <<_ACEOF
20416/* end confdefs.h. */
20417/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20419#define $ac_func innocuous_$ac_func
20420
20421/* System header to define __stub macros and hopefully few prototypes,
20422 which can conflict with char $ac_func (); below.
20423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20424 <limits.h> exists even on freestanding compilers. */
20425
20426#ifdef __STDC__
20427# include <limits.h>
20428#else
20429# include <assert.h>
20430#endif
20431
20432#undef $ac_func
20433
20434/* Override any GCC internal prototype to avoid an error.
20435 Use char because int might match the return type of a GCC
20436 builtin and then its argument prototype would still apply. */
20437#ifdef __cplusplus
20438extern "C"
20439#endif
20440char $ac_func ();
20441/* The GNU C library defines this for functions which it implements
20442 to always fail with ENOSYS. Some functions are actually named
20443 something starting with __ and the normal name is an alias. */
20444#if defined __stub_$ac_func || defined __stub___$ac_func
20445choke me
20446#endif
20447
20448int
20449main ()
20450{
20451return $ac_func ();
20452 ;
20453 return 0;
20454}
20455_ACEOF
20456rm -f conftest.$ac_objext conftest$ac_exeext
20457if { (ac_try="$ac_link"
20458case "(($ac_try" in
20459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460 *) ac_try_echo=$ac_try;;
20461esac
20462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20463$as_echo "$ac_try_echo") >&5
20464 (eval "$ac_link") 2>conftest.er1
20465 ac_status=$?
20466 grep -v '^ *+' conftest.er1 >conftest.err
20467 rm -f conftest.er1
20468 cat conftest.err >&5
20469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); } && {
20471 test -z "$ac_c_werror_flag" ||
20472 test ! -s conftest.err
20473 } && test -s conftest$ac_exeext && {
20474 test "$cross_compiling" = yes ||
20475 $as_test_x conftest$ac_exeext
20476 }; then
20477 eval "$as_ac_var=yes"
20478else
20479 $as_echo "$as_me: failed program was:" >&5
20480sed 's/^/| /' conftest.$ac_ext >&5
20481
20482 eval "$as_ac_var=no"
20483fi
20484
20485rm -rf conftest.dSYM
20486rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20487 conftest$ac_exeext conftest.$ac_ext
20488fi
20489ac_res=`eval 'as_val=${'$as_ac_var'}
20490 $as_echo "$as_val"'`
20491 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20492$as_echo "$ac_res" >&6; }
20493if test `eval 'as_val=${'$as_ac_var'}
20494 $as_echo "$as_val"'` = yes; then
11701 cat >>confdefs.h <<_ACEOF 20495 cat >>confdefs.h <<_ACEOF
11702#define HAVE_GETOPT_LONG_ONLY 1 20496#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11703_ACEOF 20497_ACEOF
11704 20498
11705else 20499else
@@ -11710,31 +20504,139 @@ done
11710 fi 20504 fi
11711 20505
11712 if test -z "$GETOPT_H"; then 20506 if test -z "$GETOPT_H"; then
11713 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h> 20507 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
11714" 20508$as_echo_n "checking whether optreset is declared... " >&6; }
11715if test "x$ac_cv_have_decl_optreset" = x""yes; then : 20509if test "${ac_cv_have_decl_optreset+set}" = set; then
20510 $as_echo_n "(cached) " >&6
20511else
20512 cat >conftest.$ac_ext <<_ACEOF
20513/* confdefs.h. */
20514_ACEOF
20515cat confdefs.h >>conftest.$ac_ext
20516cat >>conftest.$ac_ext <<_ACEOF
20517/* end confdefs.h. */
20518#include <getopt.h>
20519
20520int
20521main ()
20522{
20523#ifndef optreset
20524 (void) optreset;
20525#endif
20526
20527 ;
20528 return 0;
20529}
20530_ACEOF
20531rm -f conftest.$ac_objext
20532if { (ac_try="$ac_compile"
20533case "(($ac_try" in
20534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20535 *) ac_try_echo=$ac_try;;
20536esac
20537eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20538$as_echo "$ac_try_echo") >&5
20539 (eval "$ac_compile") 2>conftest.er1
20540 ac_status=$?
20541 grep -v '^ *+' conftest.er1 >conftest.err
20542 rm -f conftest.er1
20543 cat conftest.err >&5
20544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); } && {
20546 test -z "$ac_c_werror_flag" ||
20547 test ! -s conftest.err
20548 } && test -s conftest.$ac_objext; then
20549 ac_cv_have_decl_optreset=yes
20550else
20551 $as_echo "$as_me: failed program was:" >&5
20552sed 's/^/| /' conftest.$ac_ext >&5
20553
20554 ac_cv_have_decl_optreset=no
20555fi
20556
20557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20558fi
20559{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20560$as_echo "$ac_cv_have_decl_optreset" >&6; }
20561if test $ac_cv_have_decl_optreset = yes; then
11716 GETOPT_H=getopt.h 20562 GETOPT_H=getopt.h
11717fi 20563fi
11718 20564
11719 fi 20565 fi
11720 20566
11721 if test -z "$GETOPT_H"; then 20567 if test -z "$GETOPT_H"; then
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5 20568 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
11723$as_echo_n "checking for working GNU getopt function... " >&6; } 20569$as_echo_n "checking for working GNU getopt function... " >&6; }
11724if test "${gl_cv_func_gnu_getopt+set}" = set; then : 20570if test "${gl_cv_func_gnu_getopt+set}" = set; then
11725 $as_echo_n "(cached) " >&6 20571 $as_echo_n "(cached) " >&6
11726else 20572else
11727 if test "$cross_compiling" = yes; then : 20573 if test "$cross_compiling" = yes; then
11728 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h> 20574 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
11729" 20575$as_echo_n "checking whether getopt_clip is declared... " >&6; }
11730if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then : 20576if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20577 $as_echo_n "(cached) " >&6
20578else
20579 cat >conftest.$ac_ext <<_ACEOF
20580/* confdefs.h. */
20581_ACEOF
20582cat confdefs.h >>conftest.$ac_ext
20583cat >>conftest.$ac_ext <<_ACEOF
20584/* end confdefs.h. */
20585#include <getopt.h>
20586
20587int
20588main ()
20589{
20590#ifndef getopt_clip
20591 (void) getopt_clip;
20592#endif
20593
20594 ;
20595 return 0;
20596}
20597_ACEOF
20598rm -f conftest.$ac_objext
20599if { (ac_try="$ac_compile"
20600case "(($ac_try" in
20601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20602 *) ac_try_echo=$ac_try;;
20603esac
20604eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20605$as_echo "$ac_try_echo") >&5
20606 (eval "$ac_compile") 2>conftest.er1
20607 ac_status=$?
20608 grep -v '^ *+' conftest.er1 >conftest.err
20609 rm -f conftest.er1
20610 cat conftest.err >&5
20611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); } && {
20613 test -z "$ac_c_werror_flag" ||
20614 test ! -s conftest.err
20615 } && test -s conftest.$ac_objext; then
20616 ac_cv_have_decl_getopt_clip=yes
20617else
20618 $as_echo "$as_me: failed program was:" >&5
20619sed 's/^/| /' conftest.$ac_ext >&5
20620
20621 ac_cv_have_decl_getopt_clip=no
20622fi
20623
20624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20625fi
20626{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20627$as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20628if test $ac_cv_have_decl_getopt_clip = yes; then
11731 gl_cv_func_gnu_getopt=no 20629 gl_cv_func_gnu_getopt=no
11732else 20630else
11733 gl_cv_func_gnu_getopt=yes 20631 gl_cv_func_gnu_getopt=yes
11734fi 20632fi
11735 20633
11736else 20634else
11737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20635 cat >conftest.$ac_ext <<_ACEOF
20636/* confdefs.h. */
20637_ACEOF
20638cat confdefs.h >>conftest.$ac_ext
20639cat >>conftest.$ac_ext <<_ACEOF
11738/* end confdefs.h. */ 20640/* end confdefs.h. */
11739#include <getopt.h> 20641#include <getopt.h>
11740int 20642int
@@ -11751,17 +20653,44 @@ main ()
11751 return 0; 20653 return 0;
11752} 20654}
11753_ACEOF 20655_ACEOF
11754if ac_fn_c_try_run "$LINENO"; then : 20656rm -f conftest$ac_exeext
20657if { (ac_try="$ac_link"
20658case "(($ac_try" in
20659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660 *) ac_try_echo=$ac_try;;
20661esac
20662eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20663$as_echo "$ac_try_echo") >&5
20664 (eval "$ac_link") 2>&5
20665 ac_status=$?
20666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20668 { (case "(($ac_try" in
20669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20670 *) ac_try_echo=$ac_try;;
20671esac
20672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20673$as_echo "$ac_try_echo") >&5
20674 (eval "$ac_try") 2>&5
20675 ac_status=$?
20676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); }; }; then
11755 gl_cv_func_gnu_getopt=yes 20678 gl_cv_func_gnu_getopt=yes
11756else 20679else
11757 gl_cv_func_gnu_getopt=no 20680 $as_echo "$as_me: program exited with status $ac_status" >&5
20681$as_echo "$as_me: failed program was:" >&5
20682sed 's/^/| /' conftest.$ac_ext >&5
20683
20684( exit $ac_status )
20685gl_cv_func_gnu_getopt=no
11758fi 20686fi
11759rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20687rm -rf conftest.dSYM
11760 conftest.$ac_objext conftest.beam conftest.$ac_ext 20688rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11761fi 20689fi
11762 20690
20691
11763fi 20692fi
11764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5 20693{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
11765$as_echo "$gl_cv_func_gnu_getopt" >&6; } 20694$as_echo "$gl_cv_func_gnu_getopt" >&6; }
11766 if test "$gl_cv_func_gnu_getopt" = "no"; then 20695 if test "$gl_cv_func_gnu_getopt" = "no"; then
11767 GETOPT_H=getopt.h 20696 GETOPT_H=getopt.h
@@ -11770,12 +20699,14 @@ $as_echo "$gl_cv_func_gnu_getopt" >&6; }
11770 20699
11771 20700
11772 20701
11773 if test -n "$GETOPT_H"; then : 20702 if test -n "$GETOPT_H"; then
11774 20703
11775 20704
11776 GETOPT_H=getopt.h 20705 GETOPT_H=getopt.h
11777 20706
11778$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h 20707cat >>confdefs.h <<\_ACEOF
20708#define __GETOPT_PREFIX rpl_
20709_ACEOF
11779 20710
11780 20711
11781 20712
@@ -11786,13 +20717,18 @@ fi
11786 20717
11787 20718
11788 20719
11789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 20720
20721{ $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
11790$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } 20722$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
11791if test "${ac_cv_func_getpgrp_void+set}" = set; then : 20723if test "${ac_cv_func_getpgrp_void+set}" = set; then
11792 $as_echo_n "(cached) " >&6 20724 $as_echo_n "(cached) " >&6
11793else 20725else
11794 # Use it with a single arg. 20726 # Use it with a single arg.
11795cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20727cat >conftest.$ac_ext <<_ACEOF
20728/* confdefs.h. */
20729_ACEOF
20730cat confdefs.h >>conftest.$ac_ext
20731cat >>conftest.$ac_ext <<_ACEOF
11796/* end confdefs.h. */ 20732/* end confdefs.h. */
11797$ac_includes_default 20733$ac_includes_default
11798int 20734int
@@ -11803,41 +20739,157 @@ getpgrp (0);
11803 return 0; 20739 return 0;
11804} 20740}
11805_ACEOF 20741_ACEOF
11806if ac_fn_c_try_compile "$LINENO"; then : 20742rm -f conftest.$ac_objext
20743if { (ac_try="$ac_compile"
20744case "(($ac_try" in
20745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20746 *) ac_try_echo=$ac_try;;
20747esac
20748eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20749$as_echo "$ac_try_echo") >&5
20750 (eval "$ac_compile") 2>conftest.er1
20751 ac_status=$?
20752 grep -v '^ *+' conftest.er1 >conftest.err
20753 rm -f conftest.er1
20754 cat conftest.err >&5
20755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); } && {
20757 test -z "$ac_c_werror_flag" ||
20758 test ! -s conftest.err
20759 } && test -s conftest.$ac_objext; then
11807 ac_cv_func_getpgrp_void=no 20760 ac_cv_func_getpgrp_void=no
11808else 20761else
11809 ac_cv_func_getpgrp_void=yes 20762 $as_echo "$as_me: failed program was:" >&5
20763sed 's/^/| /' conftest.$ac_ext >&5
20764
20765 ac_cv_func_getpgrp_void=yes
11810fi 20766fi
20767
11811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11812 20769
11813fi 20770fi
11814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 20771{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
11815$as_echo "$ac_cv_func_getpgrp_void" >&6; } 20772$as_echo "$ac_cv_func_getpgrp_void" >&6; }
11816if test $ac_cv_func_getpgrp_void = yes; then 20773if test $ac_cv_func_getpgrp_void = yes; then
11817 20774
11818$as_echo "#define GETPGRP_VOID 1" >>confdefs.h 20775cat >>confdefs.h <<\_ACEOF
20776#define GETPGRP_VOID 1
20777_ACEOF
11819 20778
11820fi 20779fi
11821 20780
11822 20781
20782
11823for ac_func in strftime 20783for ac_func in strftime
11824do : 20784do
11825 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 20785as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11826if test "x$ac_cv_func_strftime" = x""yes; then : 20786{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20787$as_echo_n "checking for $ac_func... " >&6; }
20788if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20789 $as_echo_n "(cached) " >&6
20790else
20791 cat >conftest.$ac_ext <<_ACEOF
20792/* confdefs.h. */
20793_ACEOF
20794cat confdefs.h >>conftest.$ac_ext
20795cat >>conftest.$ac_ext <<_ACEOF
20796/* end confdefs.h. */
20797/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20799#define $ac_func innocuous_$ac_func
20800
20801/* System header to define __stub macros and hopefully few prototypes,
20802 which can conflict with char $ac_func (); below.
20803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20804 <limits.h> exists even on freestanding compilers. */
20805
20806#ifdef __STDC__
20807# include <limits.h>
20808#else
20809# include <assert.h>
20810#endif
20811
20812#undef $ac_func
20813
20814/* Override any GCC internal prototype to avoid an error.
20815 Use char because int might match the return type of a GCC
20816 builtin and then its argument prototype would still apply. */
20817#ifdef __cplusplus
20818extern "C"
20819#endif
20820char $ac_func ();
20821/* The GNU C library defines this for functions which it implements
20822 to always fail with ENOSYS. Some functions are actually named
20823 something starting with __ and the normal name is an alias. */
20824#if defined __stub_$ac_func || defined __stub___$ac_func
20825choke me
20826#endif
20827
20828int
20829main ()
20830{
20831return $ac_func ();
20832 ;
20833 return 0;
20834}
20835_ACEOF
20836rm -f conftest.$ac_objext conftest$ac_exeext
20837if { (ac_try="$ac_link"
20838case "(($ac_try" in
20839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20840 *) ac_try_echo=$ac_try;;
20841esac
20842eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20843$as_echo "$ac_try_echo") >&5
20844 (eval "$ac_link") 2>conftest.er1
20845 ac_status=$?
20846 grep -v '^ *+' conftest.er1 >conftest.err
20847 rm -f conftest.er1
20848 cat conftest.err >&5
20849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); } && {
20851 test -z "$ac_c_werror_flag" ||
20852 test ! -s conftest.err
20853 } && test -s conftest$ac_exeext && {
20854 test "$cross_compiling" = yes ||
20855 $as_test_x conftest$ac_exeext
20856 }; then
20857 eval "$as_ac_var=yes"
20858else
20859 $as_echo "$as_me: failed program was:" >&5
20860sed 's/^/| /' conftest.$ac_ext >&5
20861
20862 eval "$as_ac_var=no"
20863fi
20864
20865rm -rf conftest.dSYM
20866rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20867 conftest$ac_exeext conftest.$ac_ext
20868fi
20869ac_res=`eval 'as_val=${'$as_ac_var'}
20870 $as_echo "$as_val"'`
20871 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20872$as_echo "$ac_res" >&6; }
20873if test `eval 'as_val=${'$as_ac_var'}
20874 $as_echo "$as_val"'` = yes; then
11827 cat >>confdefs.h <<_ACEOF 20875 cat >>confdefs.h <<_ACEOF
11828#define HAVE_STRFTIME 1 20876#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11829_ACEOF 20877_ACEOF
11830 20878
11831else 20879else
11832 # strftime is in -lintl on SCO UNIX. 20880 # strftime is in -lintl on SCO UNIX.
11833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 20881{ $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
11834$as_echo_n "checking for strftime in -lintl... " >&6; } 20882$as_echo_n "checking for strftime in -lintl... " >&6; }
11835if test "${ac_cv_lib_intl_strftime+set}" = set; then : 20883if test "${ac_cv_lib_intl_strftime+set}" = set; then
11836 $as_echo_n "(cached) " >&6 20884 $as_echo_n "(cached) " >&6
11837else 20885else
11838 ac_check_lib_save_LIBS=$LIBS 20886 ac_check_lib_save_LIBS=$LIBS
11839LIBS="-lintl $LIBS" 20887LIBS="-lintl $LIBS"
11840cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20888cat >conftest.$ac_ext <<_ACEOF
20889/* confdefs.h. */
20890_ACEOF
20891cat confdefs.h >>conftest.$ac_ext
20892cat >>conftest.$ac_ext <<_ACEOF
11841/* end confdefs.h. */ 20893/* end confdefs.h. */
11842 20894
11843/* Override any GCC internal prototype to avoid an error. 20895/* Override any GCC internal prototype to avoid an error.
@@ -11855,19 +20907,46 @@ return strftime ();
11855 return 0; 20907 return 0;
11856} 20908}
11857_ACEOF 20909_ACEOF
11858if ac_fn_c_try_link "$LINENO"; then : 20910rm -f conftest.$ac_objext conftest$ac_exeext
20911if { (ac_try="$ac_link"
20912case "(($ac_try" in
20913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20914 *) ac_try_echo=$ac_try;;
20915esac
20916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20917$as_echo "$ac_try_echo") >&5
20918 (eval "$ac_link") 2>conftest.er1
20919 ac_status=$?
20920 grep -v '^ *+' conftest.er1 >conftest.err
20921 rm -f conftest.er1
20922 cat conftest.err >&5
20923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); } && {
20925 test -z "$ac_c_werror_flag" ||
20926 test ! -s conftest.err
20927 } && test -s conftest$ac_exeext && {
20928 test "$cross_compiling" = yes ||
20929 $as_test_x conftest$ac_exeext
20930 }; then
11859 ac_cv_lib_intl_strftime=yes 20931 ac_cv_lib_intl_strftime=yes
11860else 20932else
11861 ac_cv_lib_intl_strftime=no 20933 $as_echo "$as_me: failed program was:" >&5
20934sed 's/^/| /' conftest.$ac_ext >&5
20935
20936 ac_cv_lib_intl_strftime=no
11862fi 20937fi
11863rm -f core conftest.err conftest.$ac_objext \ 20938
11864 conftest$ac_exeext conftest.$ac_ext 20939rm -rf conftest.dSYM
20940rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20941 conftest$ac_exeext conftest.$ac_ext
11865LIBS=$ac_check_lib_save_LIBS 20942LIBS=$ac_check_lib_save_LIBS
11866fi 20943fi
11867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 20944{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
11868$as_echo "$ac_cv_lib_intl_strftime" >&6; } 20945$as_echo "$ac_cv_lib_intl_strftime" >&6; }
11869if test "x$ac_cv_lib_intl_strftime" = x""yes; then : 20946if test $ac_cv_lib_intl_strftime = yes; then
11870 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 20947 cat >>confdefs.h <<\_ACEOF
20948#define HAVE_STRFTIME 1
20949_ACEOF
11871 20950
11872LIBS="-lintl $LIBS" 20951LIBS="-lintl $LIBS"
11873fi 20952fi
@@ -11877,12 +20956,101 @@ done
11877 20956
11878 20957
11879# UNIX98 PTYs. 20958# UNIX98 PTYs.
20959
11880for ac_func in grantpt 20960for ac_func in grantpt
11881do : 20961do
11882 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt" 20962as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11883if test "x$ac_cv_func_grantpt" = x""yes; then : 20963{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20964$as_echo_n "checking for $ac_func... " >&6; }
20965if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20966 $as_echo_n "(cached) " >&6
20967else
20968 cat >conftest.$ac_ext <<_ACEOF
20969/* confdefs.h. */
20970_ACEOF
20971cat confdefs.h >>conftest.$ac_ext
20972cat >>conftest.$ac_ext <<_ACEOF
20973/* end confdefs.h. */
20974/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20976#define $ac_func innocuous_$ac_func
20977
20978/* System header to define __stub macros and hopefully few prototypes,
20979 which can conflict with char $ac_func (); below.
20980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20981 <limits.h> exists even on freestanding compilers. */
20982
20983#ifdef __STDC__
20984# include <limits.h>
20985#else
20986# include <assert.h>
20987#endif
20988
20989#undef $ac_func
20990
20991/* Override any GCC internal prototype to avoid an error.
20992 Use char because int might match the return type of a GCC
20993 builtin and then its argument prototype would still apply. */
20994#ifdef __cplusplus
20995extern "C"
20996#endif
20997char $ac_func ();
20998/* The GNU C library defines this for functions which it implements
20999 to always fail with ENOSYS. Some functions are actually named
21000 something starting with __ and the normal name is an alias. */
21001#if defined __stub_$ac_func || defined __stub___$ac_func
21002choke me
21003#endif
21004
21005int
21006main ()
21007{
21008return $ac_func ();
21009 ;
21010 return 0;
21011}
21012_ACEOF
21013rm -f conftest.$ac_objext conftest$ac_exeext
21014if { (ac_try="$ac_link"
21015case "(($ac_try" in
21016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21017 *) ac_try_echo=$ac_try;;
21018esac
21019eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21020$as_echo "$ac_try_echo") >&5
21021 (eval "$ac_link") 2>conftest.er1
21022 ac_status=$?
21023 grep -v '^ *+' conftest.er1 >conftest.err
21024 rm -f conftest.er1
21025 cat conftest.err >&5
21026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027 (exit $ac_status); } && {
21028 test -z "$ac_c_werror_flag" ||
21029 test ! -s conftest.err
21030 } && test -s conftest$ac_exeext && {
21031 test "$cross_compiling" = yes ||
21032 $as_test_x conftest$ac_exeext
21033 }; then
21034 eval "$as_ac_var=yes"
21035else
21036 $as_echo "$as_me: failed program was:" >&5
21037sed 's/^/| /' conftest.$ac_ext >&5
21038
21039 eval "$as_ac_var=no"
21040fi
21041
21042rm -rf conftest.dSYM
21043rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21044 conftest$ac_exeext conftest.$ac_ext
21045fi
21046ac_res=`eval 'as_val=${'$as_ac_var'}
21047 $as_echo "$as_val"'`
21048 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21049$as_echo "$ac_res" >&6; }
21050if test `eval 'as_val=${'$as_ac_var'}
21051 $as_echo "$as_val"'` = yes; then
11884 cat >>confdefs.h <<_ACEOF 21052 cat >>confdefs.h <<_ACEOF
11885#define HAVE_GRANTPT 1 21053#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11886_ACEOF 21054_ACEOF
11887 21055
11888fi 21056fi
@@ -11890,12 +21058,101 @@ done
11890 21058
11891 21059
11892# PTY-related GNU extensions. 21060# PTY-related GNU extensions.
21061
11893for ac_func in getpt 21062for ac_func in getpt
11894do : 21063do
11895 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt" 21064as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11896if test "x$ac_cv_func_getpt" = x""yes; then : 21065{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21066$as_echo_n "checking for $ac_func... " >&6; }
21067if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21068 $as_echo_n "(cached) " >&6
21069else
21070 cat >conftest.$ac_ext <<_ACEOF
21071/* confdefs.h. */
21072_ACEOF
21073cat confdefs.h >>conftest.$ac_ext
21074cat >>conftest.$ac_ext <<_ACEOF
21075/* end confdefs.h. */
21076/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21078#define $ac_func innocuous_$ac_func
21079
21080/* System header to define __stub macros and hopefully few prototypes,
21081 which can conflict with char $ac_func (); below.
21082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21083 <limits.h> exists even on freestanding compilers. */
21084
21085#ifdef __STDC__
21086# include <limits.h>
21087#else
21088# include <assert.h>
21089#endif
21090
21091#undef $ac_func
21092
21093/* Override any GCC internal prototype to avoid an error.
21094 Use char because int might match the return type of a GCC
21095 builtin and then its argument prototype would still apply. */
21096#ifdef __cplusplus
21097extern "C"
21098#endif
21099char $ac_func ();
21100/* The GNU C library defines this for functions which it implements
21101 to always fail with ENOSYS. Some functions are actually named
21102 something starting with __ and the normal name is an alias. */
21103#if defined __stub_$ac_func || defined __stub___$ac_func
21104choke me
21105#endif
21106
21107int
21108main ()
21109{
21110return $ac_func ();
21111 ;
21112 return 0;
21113}
21114_ACEOF
21115rm -f conftest.$ac_objext conftest$ac_exeext
21116if { (ac_try="$ac_link"
21117case "(($ac_try" in
21118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21119 *) ac_try_echo=$ac_try;;
21120esac
21121eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21122$as_echo "$ac_try_echo") >&5
21123 (eval "$ac_link") 2>conftest.er1
21124 ac_status=$?
21125 grep -v '^ *+' conftest.er1 >conftest.err
21126 rm -f conftest.er1
21127 cat conftest.err >&5
21128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); } && {
21130 test -z "$ac_c_werror_flag" ||
21131 test ! -s conftest.err
21132 } && test -s conftest$ac_exeext && {
21133 test "$cross_compiling" = yes ||
21134 $as_test_x conftest$ac_exeext
21135 }; then
21136 eval "$as_ac_var=yes"
21137else
21138 $as_echo "$as_me: failed program was:" >&5
21139sed 's/^/| /' conftest.$ac_ext >&5
21140
21141 eval "$as_ac_var=no"
21142fi
21143
21144rm -rf conftest.dSYM
21145rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21146 conftest$ac_exeext conftest.$ac_ext
21147fi
21148ac_res=`eval 'as_val=${'$as_ac_var'}
21149 $as_echo "$as_val"'`
21150 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21151$as_echo "$ac_res" >&6; }
21152if test `eval 'as_val=${'$as_ac_var'}
21153 $as_echo "$as_val"'` = yes; then
11897 cat >>confdefs.h <<_ACEOF 21154 cat >>confdefs.h <<_ACEOF
11898#define HAVE_GETPT 1 21155#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11899_ACEOF 21156_ACEOF
11900 21157
11901fi 21158fi
@@ -11908,13 +21165,17 @@ done
11908# than to expect to find it in ncurses. 21165# than to expect to find it in ncurses.
11909# Also we need tputs and frieds to be able to build at all. 21166# Also we need tputs and frieds to be able to build at all.
11910have_tputs_et_al=true 21167have_tputs_et_al=true
11911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5 21168{ $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5
11912$as_echo_n "checking for library containing tputs... " >&6; } 21169$as_echo_n "checking for library containing tputs... " >&6; }
11913if test "${ac_cv_search_tputs+set}" = set; then : 21170if test "${ac_cv_search_tputs+set}" = set; then
11914 $as_echo_n "(cached) " >&6 21171 $as_echo_n "(cached) " >&6
11915else 21172else
11916 ac_func_search_save_LIBS=$LIBS 21173 ac_func_search_save_LIBS=$LIBS
11917cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21174cat >conftest.$ac_ext <<_ACEOF
21175/* confdefs.h. */
21176_ACEOF
21177cat confdefs.h >>conftest.$ac_ext
21178cat >>conftest.$ac_ext <<_ACEOF
11918/* end confdefs.h. */ 21179/* end confdefs.h. */
11919 21180
11920/* Override any GCC internal prototype to avoid an error. 21181/* Override any GCC internal prototype to avoid an error.
@@ -11939,27 +21200,54 @@ for ac_lib in '' ncurses terminfo termcap; do
11939 ac_res=-l$ac_lib 21200 ac_res=-l$ac_lib
11940 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11941 fi 21202 fi
11942 if ac_fn_c_try_link "$LINENO"; then : 21203 rm -f conftest.$ac_objext conftest$ac_exeext
21204if { (ac_try="$ac_link"
21205case "(($ac_try" in
21206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21207 *) ac_try_echo=$ac_try;;
21208esac
21209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21210$as_echo "$ac_try_echo") >&5
21211 (eval "$ac_link") 2>conftest.er1
21212 ac_status=$?
21213 grep -v '^ *+' conftest.er1 >conftest.err
21214 rm -f conftest.er1
21215 cat conftest.err >&5
21216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217 (exit $ac_status); } && {
21218 test -z "$ac_c_werror_flag" ||
21219 test ! -s conftest.err
21220 } && test -s conftest$ac_exeext && {
21221 test "$cross_compiling" = yes ||
21222 $as_test_x conftest$ac_exeext
21223 }; then
11943 ac_cv_search_tputs=$ac_res 21224 ac_cv_search_tputs=$ac_res
21225else
21226 $as_echo "$as_me: failed program was:" >&5
21227sed 's/^/| /' conftest.$ac_ext >&5
21228
21229
11944fi 21230fi
11945rm -f core conftest.err conftest.$ac_objext \ 21231
11946 conftest$ac_exeext 21232rm -rf conftest.dSYM
11947 if test "${ac_cv_search_tputs+set}" = set; then : 21233rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21234 conftest$ac_exeext
21235 if test "${ac_cv_search_tputs+set}" = set; then
11948 break 21236 break
11949fi 21237fi
11950done 21238done
11951if test "${ac_cv_search_tputs+set}" = set; then : 21239if test "${ac_cv_search_tputs+set}" = set; then
11952 21240 :
11953else 21241else
11954 ac_cv_search_tputs=no 21242 ac_cv_search_tputs=no
11955fi 21243fi
11956rm conftest.$ac_ext 21244rm conftest.$ac_ext
11957LIBS=$ac_func_search_save_LIBS 21245LIBS=$ac_func_search_save_LIBS
11958fi 21246fi
11959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5 21247{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
11960$as_echo "$ac_cv_search_tputs" >&6; } 21248$as_echo "$ac_cv_search_tputs" >&6; }
11961ac_res=$ac_cv_search_tputs 21249ac_res=$ac_cv_search_tputs
11962if test "$ac_res" != no; then : 21250if test "$ac_res" != no; then
11963 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21251 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11964 21252
11965else 21253else
@@ -11967,19 +21255,29 @@ else
11967fi 21255fi
11968 21256
11969if test "$have_tputs_et_al" != true; then 21257if test "$have_tputs_et_al" != true; then
11970 as_fn_error "I couldn't find termcap functions (tputs and friends). 21258 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends).
11971Maybe some development libraries/packages are missing? Try installing 21259Maybe some development libraries/packages are missing? Try installing
11972libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5 21260libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21261$as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21262Maybe some development libraries/packages are missing? Try installing
21263libncurses-dev(el), libterminfo-dev(el) or similar." >&2;}
21264 { (exit 1); exit 1; }; }
11973fi 21265fi
11974# Must define this when any termcap library is found. 21266# Must define this when any termcap library is found.
11975 21267
11976$as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h 21268cat >>confdefs.h <<\_ACEOF
21269#define HAVE_LIBNCURSES 1
21270_ACEOF
11977 21271
11978 21272
11979# Do we have res_init, for detecting changes in /etc/resolv.conf? 21273# Do we have res_init, for detecting changes in /etc/resolv.conf?
11980 21274
11981resolv=no 21275resolv=no
11982cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21276cat >conftest.$ac_ext <<_ACEOF
21277/* confdefs.h. */
21278_ACEOF
21279cat confdefs.h >>conftest.$ac_ext
21280cat >>conftest.$ac_ext <<_ACEOF
11983/* end confdefs.h. */ 21281/* end confdefs.h. */
11984#include <netinet/in.h> 21282#include <netinet/in.h>
11985#include <arpa/nameser.h> 21283#include <arpa/nameser.h>
@@ -11992,19 +21290,48 @@ return res_init();
11992 return 0; 21290 return 0;
11993} 21291}
11994_ACEOF 21292_ACEOF
11995if ac_fn_c_try_link "$LINENO"; then : 21293rm -f conftest.$ac_objext conftest$ac_exeext
21294if { (ac_try="$ac_link"
21295case "(($ac_try" in
21296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21297 *) ac_try_echo=$ac_try;;
21298esac
21299eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21300$as_echo "$ac_try_echo") >&5
21301 (eval "$ac_link") 2>conftest.er1
21302 ac_status=$?
21303 grep -v '^ *+' conftest.er1 >conftest.err
21304 rm -f conftest.er1
21305 cat conftest.err >&5
21306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); } && {
21308 test -z "$ac_c_werror_flag" ||
21309 test ! -s conftest.err
21310 } && test -s conftest$ac_exeext && {
21311 test "$cross_compiling" = yes ||
21312 $as_test_x conftest$ac_exeext
21313 }; then
11996 have_res_init=yes 21314 have_res_init=yes
11997else 21315else
11998 have_res_init=no 21316 $as_echo "$as_me: failed program was:" >&5
21317sed 's/^/| /' conftest.$ac_ext >&5
21318
21319 have_res_init=no
11999fi 21320fi
12000rm -f core conftest.err conftest.$ac_objext \ 21321
12001 conftest$ac_exeext conftest.$ac_ext 21322rm -rf conftest.dSYM
21323rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21324 conftest$ac_exeext conftest.$ac_ext
12002if test "$have_res_init" = no; then 21325if test "$have_res_init" = no; then
12003 OLIBS="$LIBS" 21326 OLIBS="$LIBS"
12004 LIBS="$LIBS -lresolv" 21327 LIBS="$LIBS -lresolv"
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5 21328 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
12006$as_echo_n "checking for res_init with -lresolv... " >&6; } 21329$as_echo_n "checking for res_init with -lresolv... " >&6; }
12007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21330 cat >conftest.$ac_ext <<_ACEOF
21331/* confdefs.h. */
21332_ACEOF
21333cat confdefs.h >>conftest.$ac_ext
21334cat >>conftest.$ac_ext <<_ACEOF
12008/* end confdefs.h. */ 21335/* end confdefs.h. */
12009#include <netinet/in.h> 21336#include <netinet/in.h>
12010#include <arpa/nameser.h> 21337#include <arpa/nameser.h>
@@ -12017,14 +21344,39 @@ return res_init();
12017 return 0; 21344 return 0;
12018} 21345}
12019_ACEOF 21346_ACEOF
12020if ac_fn_c_try_link "$LINENO"; then : 21347rm -f conftest.$ac_objext conftest$ac_exeext
21348if { (ac_try="$ac_link"
21349case "(($ac_try" in
21350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21351 *) ac_try_echo=$ac_try;;
21352esac
21353eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21354$as_echo "$ac_try_echo") >&5
21355 (eval "$ac_link") 2>conftest.er1
21356 ac_status=$?
21357 grep -v '^ *+' conftest.er1 >conftest.err
21358 rm -f conftest.er1
21359 cat conftest.err >&5
21360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); } && {
21362 test -z "$ac_c_werror_flag" ||
21363 test ! -s conftest.err
21364 } && test -s conftest$ac_exeext && {
21365 test "$cross_compiling" = yes ||
21366 $as_test_x conftest$ac_exeext
21367 }; then
12021 have_res_init=yes 21368 have_res_init=yes
12022else 21369else
12023 have_res_init=no 21370 $as_echo "$as_me: failed program was:" >&5
21371sed 's/^/| /' conftest.$ac_ext >&5
21372
21373 have_res_init=no
12024fi 21374fi
12025rm -f core conftest.err conftest.$ac_objext \ 21375
12026 conftest$ac_exeext conftest.$ac_ext 21376rm -rf conftest.dSYM
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5 21377rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21378 conftest$ac_exeext conftest.$ac_ext
21379 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
12028$as_echo "$have_res_init" >&6; } 21380$as_echo "$have_res_init" >&6; }
12029 if test "$have_res_init" = yes ; then 21381 if test "$have_res_init" = yes ; then
12030 resolv=yes 21382 resolv=yes
@@ -12034,7 +21386,9 @@ fi
12034 21386
12035if test "$have_res_init" = yes; then 21387if test "$have_res_init" = yes; then
12036 21388
12037$as_echo "#define HAVE_RES_INIT 1" >>confdefs.h 21389cat >>confdefs.h <<\_ACEOF
21390#define HAVE_RES_INIT 1
21391_ACEOF
12038 21392
12039fi 21393fi
12040 21394
@@ -12042,22 +21396,194 @@ fi
12042LIBHESIOD= 21396LIBHESIOD=
12043if test "$with_hesiod" != no ; then 21397if test "$with_hesiod" != no ; then
12044 # Don't set $LIBS here -- see comments above. FIXME which comments? 21398 # Don't set $LIBS here -- see comments above. FIXME which comments?
12045 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send" 21399 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
12046if test "x$ac_cv_func_res_send" = x""yes; then : 21400$as_echo_n "checking for res_send... " >&6; }
21401if test "${ac_cv_func_res_send+set}" = set; then
21402 $as_echo_n "(cached) " >&6
21403else
21404 cat >conftest.$ac_ext <<_ACEOF
21405/* confdefs.h. */
21406_ACEOF
21407cat confdefs.h >>conftest.$ac_ext
21408cat >>conftest.$ac_ext <<_ACEOF
21409/* end confdefs.h. */
21410/* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21412#define res_send innocuous_res_send
21413
21414/* System header to define __stub macros and hopefully few prototypes,
21415 which can conflict with char res_send (); below.
21416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21417 <limits.h> exists even on freestanding compilers. */
21418
21419#ifdef __STDC__
21420# include <limits.h>
21421#else
21422# include <assert.h>
21423#endif
12047 21424
21425#undef res_send
21426
21427/* Override any GCC internal prototype to avoid an error.
21428 Use char because int might match the return type of a GCC
21429 builtin and then its argument prototype would still apply. */
21430#ifdef __cplusplus
21431extern "C"
21432#endif
21433char res_send ();
21434/* The GNU C library defines this for functions which it implements
21435 to always fail with ENOSYS. Some functions are actually named
21436 something starting with __ and the normal name is an alias. */
21437#if defined __stub_res_send || defined __stub___res_send
21438choke me
21439#endif
21440
21441int
21442main ()
21443{
21444return res_send ();
21445 ;
21446 return 0;
21447}
21448_ACEOF
21449rm -f conftest.$ac_objext conftest$ac_exeext
21450if { (ac_try="$ac_link"
21451case "(($ac_try" in
21452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21453 *) ac_try_echo=$ac_try;;
21454esac
21455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21456$as_echo "$ac_try_echo") >&5
21457 (eval "$ac_link") 2>conftest.er1
21458 ac_status=$?
21459 grep -v '^ *+' conftest.er1 >conftest.err
21460 rm -f conftest.er1
21461 cat conftest.err >&5
21462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21463 (exit $ac_status); } && {
21464 test -z "$ac_c_werror_flag" ||
21465 test ! -s conftest.err
21466 } && test -s conftest$ac_exeext && {
21467 test "$cross_compiling" = yes ||
21468 $as_test_x conftest$ac_exeext
21469 }; then
21470 ac_cv_func_res_send=yes
21471else
21472 $as_echo "$as_me: failed program was:" >&5
21473sed 's/^/| /' conftest.$ac_ext >&5
21474
21475 ac_cv_func_res_send=no
21476fi
21477
21478rm -rf conftest.dSYM
21479rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21480 conftest$ac_exeext conftest.$ac_ext
21481fi
21482{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21483$as_echo "$ac_cv_func_res_send" >&6; }
21484if test $ac_cv_func_res_send = yes; then
21485 :
21486else
21487 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21488$as_echo_n "checking for __res_send... " >&6; }
21489if test "${ac_cv_func___res_send+set}" = set; then
21490 $as_echo_n "(cached) " >&6
21491else
21492 cat >conftest.$ac_ext <<_ACEOF
21493/* confdefs.h. */
21494_ACEOF
21495cat confdefs.h >>conftest.$ac_ext
21496cat >>conftest.$ac_ext <<_ACEOF
21497/* end confdefs.h. */
21498/* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21500#define __res_send innocuous___res_send
21501
21502/* System header to define __stub macros and hopefully few prototypes,
21503 which can conflict with char __res_send (); below.
21504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21505 <limits.h> exists even on freestanding compilers. */
21506
21507#ifdef __STDC__
21508# include <limits.h>
21509#else
21510# include <assert.h>
21511#endif
21512
21513#undef __res_send
21514
21515/* Override any GCC internal prototype to avoid an error.
21516 Use char because int might match the return type of a GCC
21517 builtin and then its argument prototype would still apply. */
21518#ifdef __cplusplus
21519extern "C"
21520#endif
21521char __res_send ();
21522/* The GNU C library defines this for functions which it implements
21523 to always fail with ENOSYS. Some functions are actually named
21524 something starting with __ and the normal name is an alias. */
21525#if defined __stub___res_send || defined __stub_____res_send
21526choke me
21527#endif
21528
21529int
21530main ()
21531{
21532return __res_send ();
21533 ;
21534 return 0;
21535}
21536_ACEOF
21537rm -f conftest.$ac_objext conftest$ac_exeext
21538if { (ac_try="$ac_link"
21539case "(($ac_try" in
21540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21541 *) ac_try_echo=$ac_try;;
21542esac
21543eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21544$as_echo "$ac_try_echo") >&5
21545 (eval "$ac_link") 2>conftest.er1
21546 ac_status=$?
21547 grep -v '^ *+' conftest.er1 >conftest.err
21548 rm -f conftest.er1
21549 cat conftest.err >&5
21550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551 (exit $ac_status); } && {
21552 test -z "$ac_c_werror_flag" ||
21553 test ! -s conftest.err
21554 } && test -s conftest$ac_exeext && {
21555 test "$cross_compiling" = yes ||
21556 $as_test_x conftest$ac_exeext
21557 }; then
21558 ac_cv_func___res_send=yes
12048else 21559else
12049 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send" 21560 $as_echo "$as_me: failed program was:" >&5
12050if test "x$ac_cv_func___res_send" = x""yes; then : 21561sed 's/^/| /' conftest.$ac_ext >&5
21562
21563 ac_cv_func___res_send=no
21564fi
12051 21565
21566rm -rf conftest.dSYM
21567rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21568 conftest$ac_exeext conftest.$ac_ext
21569fi
21570{ $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21571$as_echo "$ac_cv_func___res_send" >&6; }
21572if test $ac_cv_func___res_send = yes; then
21573 :
12052else 21574else
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5 21575 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
12054$as_echo_n "checking for res_send in -lresolv... " >&6; } 21576$as_echo_n "checking for res_send in -lresolv... " >&6; }
12055if test "${ac_cv_lib_resolv_res_send+set}" = set; then : 21577if test "${ac_cv_lib_resolv_res_send+set}" = set; then
12056 $as_echo_n "(cached) " >&6 21578 $as_echo_n "(cached) " >&6
12057else 21579else
12058 ac_check_lib_save_LIBS=$LIBS 21580 ac_check_lib_save_LIBS=$LIBS
12059LIBS="-lresolv $LIBS" 21581LIBS="-lresolv $LIBS"
12060cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21582cat >conftest.$ac_ext <<_ACEOF
21583/* confdefs.h. */
21584_ACEOF
21585cat confdefs.h >>conftest.$ac_ext
21586cat >>conftest.$ac_ext <<_ACEOF
12061/* end confdefs.h. */ 21587/* end confdefs.h. */
12062 21588
12063/* Override any GCC internal prototype to avoid an error. 21589/* Override any GCC internal prototype to avoid an error.
@@ -12075,28 +21601,57 @@ return res_send ();
12075 return 0; 21601 return 0;
12076} 21602}
12077_ACEOF 21603_ACEOF
12078if ac_fn_c_try_link "$LINENO"; then : 21604rm -f conftest.$ac_objext conftest$ac_exeext
21605if { (ac_try="$ac_link"
21606case "(($ac_try" in
21607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21608 *) ac_try_echo=$ac_try;;
21609esac
21610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21611$as_echo "$ac_try_echo") >&5
21612 (eval "$ac_link") 2>conftest.er1
21613 ac_status=$?
21614 grep -v '^ *+' conftest.er1 >conftest.err
21615 rm -f conftest.er1
21616 cat conftest.err >&5
21617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618 (exit $ac_status); } && {
21619 test -z "$ac_c_werror_flag" ||
21620 test ! -s conftest.err
21621 } && test -s conftest$ac_exeext && {
21622 test "$cross_compiling" = yes ||
21623 $as_test_x conftest$ac_exeext
21624 }; then
12079 ac_cv_lib_resolv_res_send=yes 21625 ac_cv_lib_resolv_res_send=yes
12080else 21626else
12081 ac_cv_lib_resolv_res_send=no 21627 $as_echo "$as_me: failed program was:" >&5
21628sed 's/^/| /' conftest.$ac_ext >&5
21629
21630 ac_cv_lib_resolv_res_send=no
12082fi 21631fi
12083rm -f core conftest.err conftest.$ac_objext \ 21632
12084 conftest$ac_exeext conftest.$ac_ext 21633rm -rf conftest.dSYM
21634rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21635 conftest$ac_exeext conftest.$ac_ext
12085LIBS=$ac_check_lib_save_LIBS 21636LIBS=$ac_check_lib_save_LIBS
12086fi 21637fi
12087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5 21638{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
12088$as_echo "$ac_cv_lib_resolv_res_send" >&6; } 21639$as_echo "$ac_cv_lib_resolv_res_send" >&6; }
12089if test "x$ac_cv_lib_resolv_res_send" = x""yes; then : 21640if test $ac_cv_lib_resolv_res_send = yes; then
12090 resolv=yes 21641 resolv=yes
12091else 21642else
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5 21643 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
12093$as_echo_n "checking for __res_send in -lresolv... " >&6; } 21644$as_echo_n "checking for __res_send in -lresolv... " >&6; }
12094if test "${ac_cv_lib_resolv___res_send+set}" = set; then : 21645if test "${ac_cv_lib_resolv___res_send+set}" = set; then
12095 $as_echo_n "(cached) " >&6 21646 $as_echo_n "(cached) " >&6
12096else 21647else
12097 ac_check_lib_save_LIBS=$LIBS 21648 ac_check_lib_save_LIBS=$LIBS
12098LIBS="-lresolv $LIBS" 21649LIBS="-lresolv $LIBS"
12099cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21650cat >conftest.$ac_ext <<_ACEOF
21651/* confdefs.h. */
21652_ACEOF
21653cat confdefs.h >>conftest.$ac_ext
21654cat >>conftest.$ac_ext <<_ACEOF
12100/* end confdefs.h. */ 21655/* end confdefs.h. */
12101 21656
12102/* Override any GCC internal prototype to avoid an error. 21657/* Override any GCC internal prototype to avoid an error.
@@ -12114,18 +21669,43 @@ return __res_send ();
12114 return 0; 21669 return 0;
12115} 21670}
12116_ACEOF 21671_ACEOF
12117if ac_fn_c_try_link "$LINENO"; then : 21672rm -f conftest.$ac_objext conftest$ac_exeext
21673if { (ac_try="$ac_link"
21674case "(($ac_try" in
21675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21676 *) ac_try_echo=$ac_try;;
21677esac
21678eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21679$as_echo "$ac_try_echo") >&5
21680 (eval "$ac_link") 2>conftest.er1
21681 ac_status=$?
21682 grep -v '^ *+' conftest.er1 >conftest.err
21683 rm -f conftest.er1
21684 cat conftest.err >&5
21685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); } && {
21687 test -z "$ac_c_werror_flag" ||
21688 test ! -s conftest.err
21689 } && test -s conftest$ac_exeext && {
21690 test "$cross_compiling" = yes ||
21691 $as_test_x conftest$ac_exeext
21692 }; then
12118 ac_cv_lib_resolv___res_send=yes 21693 ac_cv_lib_resolv___res_send=yes
12119else 21694else
12120 ac_cv_lib_resolv___res_send=no 21695 $as_echo "$as_me: failed program was:" >&5
21696sed 's/^/| /' conftest.$ac_ext >&5
21697
21698 ac_cv_lib_resolv___res_send=no
12121fi 21699fi
12122rm -f core conftest.err conftest.$ac_objext \ 21700
12123 conftest$ac_exeext conftest.$ac_ext 21701rm -rf conftest.dSYM
21702rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21703 conftest$ac_exeext conftest.$ac_ext
12124LIBS=$ac_check_lib_save_LIBS 21704LIBS=$ac_check_lib_save_LIBS
12125fi 21705fi
12126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5 21706{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
12127$as_echo "$ac_cv_lib_resolv___res_send" >&6; } 21707$as_echo "$ac_cv_lib_resolv___res_send" >&6; }
12128if test "x$ac_cv_lib_resolv___res_send" = x""yes; then : 21708if test $ac_cv_lib_resolv___res_send = yes; then
12129 resolv=yes 21709 resolv=yes
12130fi 21710fi
12131 21711
@@ -12140,18 +21720,106 @@ fi
12140 else 21720 else
12141 RESOLVLIB= 21721 RESOLVLIB=
12142 fi 21722 fi
12143 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost" 21723 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
12144if test "x$ac_cv_func_hes_getmailhost" = x""yes; then : 21724$as_echo_n "checking for hes_getmailhost... " >&6; }
21725if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21726 $as_echo_n "(cached) " >&6
21727else
21728 cat >conftest.$ac_ext <<_ACEOF
21729/* confdefs.h. */
21730_ACEOF
21731cat confdefs.h >>conftest.$ac_ext
21732cat >>conftest.$ac_ext <<_ACEOF
21733/* end confdefs.h. */
21734/* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21736#define hes_getmailhost innocuous_hes_getmailhost
21737
21738/* System header to define __stub macros and hopefully few prototypes,
21739 which can conflict with char hes_getmailhost (); below.
21740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21741 <limits.h> exists even on freestanding compilers. */
21742
21743#ifdef __STDC__
21744# include <limits.h>
21745#else
21746# include <assert.h>
21747#endif
21748
21749#undef hes_getmailhost
21750
21751/* Override any GCC internal prototype to avoid an error.
21752 Use char because int might match the return type of a GCC
21753 builtin and then its argument prototype would still apply. */
21754#ifdef __cplusplus
21755extern "C"
21756#endif
21757char hes_getmailhost ();
21758/* The GNU C library defines this for functions which it implements
21759 to always fail with ENOSYS. Some functions are actually named
21760 something starting with __ and the normal name is an alias. */
21761#if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21762choke me
21763#endif
21764
21765int
21766main ()
21767{
21768return hes_getmailhost ();
21769 ;
21770 return 0;
21771}
21772_ACEOF
21773rm -f conftest.$ac_objext conftest$ac_exeext
21774if { (ac_try="$ac_link"
21775case "(($ac_try" in
21776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21777 *) ac_try_echo=$ac_try;;
21778esac
21779eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21780$as_echo "$ac_try_echo") >&5
21781 (eval "$ac_link") 2>conftest.er1
21782 ac_status=$?
21783 grep -v '^ *+' conftest.er1 >conftest.err
21784 rm -f conftest.er1
21785 cat conftest.err >&5
21786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787 (exit $ac_status); } && {
21788 test -z "$ac_c_werror_flag" ||
21789 test ! -s conftest.err
21790 } && test -s conftest$ac_exeext && {
21791 test "$cross_compiling" = yes ||
21792 $as_test_x conftest$ac_exeext
21793 }; then
21794 ac_cv_func_hes_getmailhost=yes
21795else
21796 $as_echo "$as_me: failed program was:" >&5
21797sed 's/^/| /' conftest.$ac_ext >&5
12145 21798
21799 ac_cv_func_hes_getmailhost=no
21800fi
21801
21802rm -rf conftest.dSYM
21803rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21804 conftest$ac_exeext conftest.$ac_ext
21805fi
21806{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21807$as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21808if test $ac_cv_func_hes_getmailhost = yes; then
21809 :
12146else 21810else
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5 21811 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
12148$as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; } 21812$as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
12149if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then : 21813if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
12150 $as_echo_n "(cached) " >&6 21814 $as_echo_n "(cached) " >&6
12151else 21815else
12152 ac_check_lib_save_LIBS=$LIBS 21816 ac_check_lib_save_LIBS=$LIBS
12153LIBS="-lhesiod $RESOLVLIB $LIBS" 21817LIBS="-lhesiod $RESOLVLIB $LIBS"
12154cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21818cat >conftest.$ac_ext <<_ACEOF
21819/* confdefs.h. */
21820_ACEOF
21821cat confdefs.h >>conftest.$ac_ext
21822cat >>conftest.$ac_ext <<_ACEOF
12155/* end confdefs.h. */ 21823/* end confdefs.h. */
12156 21824
12157/* Override any GCC internal prototype to avoid an error. 21825/* Override any GCC internal prototype to avoid an error.
@@ -12169,18 +21837,43 @@ return hes_getmailhost ();
12169 return 0; 21837 return 0;
12170} 21838}
12171_ACEOF 21839_ACEOF
12172if ac_fn_c_try_link "$LINENO"; then : 21840rm -f conftest.$ac_objext conftest$ac_exeext
21841if { (ac_try="$ac_link"
21842case "(($ac_try" in
21843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21844 *) ac_try_echo=$ac_try;;
21845esac
21846eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21847$as_echo "$ac_try_echo") >&5
21848 (eval "$ac_link") 2>conftest.er1
21849 ac_status=$?
21850 grep -v '^ *+' conftest.er1 >conftest.err
21851 rm -f conftest.er1
21852 cat conftest.err >&5
21853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854 (exit $ac_status); } && {
21855 test -z "$ac_c_werror_flag" ||
21856 test ! -s conftest.err
21857 } && test -s conftest$ac_exeext && {
21858 test "$cross_compiling" = yes ||
21859 $as_test_x conftest$ac_exeext
21860 }; then
12173 ac_cv_lib_hesiod_hes_getmailhost=yes 21861 ac_cv_lib_hesiod_hes_getmailhost=yes
12174else 21862else
12175 ac_cv_lib_hesiod_hes_getmailhost=no 21863 $as_echo "$as_me: failed program was:" >&5
21864sed 's/^/| /' conftest.$ac_ext >&5
21865
21866 ac_cv_lib_hesiod_hes_getmailhost=no
12176fi 21867fi
12177rm -f core conftest.err conftest.$ac_objext \ 21868
12178 conftest$ac_exeext conftest.$ac_ext 21869rm -rf conftest.dSYM
21870rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21871 conftest$ac_exeext conftest.$ac_ext
12179LIBS=$ac_check_lib_save_LIBS 21872LIBS=$ac_check_lib_save_LIBS
12180fi 21873fi
12181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 21874{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12182$as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; } 21875$as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
12183if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then : 21876if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
12184 hesiod=yes 21877 hesiod=yes
12185else 21878else
12186 : 21879 :
@@ -12191,7 +21884,9 @@ fi
12191 21884
12192 if test x"$hesiod" = xyes; then 21885 if test x"$hesiod" = xyes; then
12193 21886
12194$as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h 21887cat >>confdefs.h <<\_ACEOF
21888#define HAVE_LIBHESIOD 1
21889_ACEOF
12195 21890
12196 LIBHESIOD=-lhesiod 21891 LIBHESIOD=-lhesiod
12197 fi 21892 fi
@@ -12201,7 +21896,9 @@ fi
12201# Do we need libresolv (due to res_init or Hesiod)? 21896# Do we need libresolv (due to res_init or Hesiod)?
12202if test "$resolv" = yes ; then 21897if test "$resolv" = yes ; then
12203 21898
12204$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h 21899cat >>confdefs.h <<\_ACEOF
21900#define HAVE_LIBRESOLV 1
21901_ACEOF
12205 21902
12206 LIBRESOLV=-lresolv 21903 LIBRESOLV=-lresolv
12207else 21904else
@@ -12217,14 +21914,18 @@ DESLIB=
12217KRB4LIB= 21914KRB4LIB=
12218 21915
12219if test "${with_kerberos}" != no; then 21916if test "${with_kerberos}" != no; then
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5 21917 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
12221$as_echo_n "checking for com_err in -lcom_err... " >&6; } 21918$as_echo_n "checking for com_err in -lcom_err... " >&6; }
12222if test "${ac_cv_lib_com_err_com_err+set}" = set; then : 21919if test "${ac_cv_lib_com_err_com_err+set}" = set; then
12223 $as_echo_n "(cached) " >&6 21920 $as_echo_n "(cached) " >&6
12224else 21921else
12225 ac_check_lib_save_LIBS=$LIBS 21922 ac_check_lib_save_LIBS=$LIBS
12226LIBS="-lcom_err $LIBS" 21923LIBS="-lcom_err $LIBS"
12227cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21924cat >conftest.$ac_ext <<_ACEOF
21925/* confdefs.h. */
21926_ACEOF
21927cat confdefs.h >>conftest.$ac_ext
21928cat >>conftest.$ac_ext <<_ACEOF
12228/* end confdefs.h. */ 21929/* end confdefs.h. */
12229 21930
12230/* Override any GCC internal prototype to avoid an error. 21931/* Override any GCC internal prototype to avoid an error.
@@ -12242,18 +21943,43 @@ return com_err ();
12242 return 0; 21943 return 0;
12243} 21944}
12244_ACEOF 21945_ACEOF
12245if ac_fn_c_try_link "$LINENO"; then : 21946rm -f conftest.$ac_objext conftest$ac_exeext
21947if { (ac_try="$ac_link"
21948case "(($ac_try" in
21949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21950 *) ac_try_echo=$ac_try;;
21951esac
21952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21953$as_echo "$ac_try_echo") >&5
21954 (eval "$ac_link") 2>conftest.er1
21955 ac_status=$?
21956 grep -v '^ *+' conftest.er1 >conftest.err
21957 rm -f conftest.er1
21958 cat conftest.err >&5
21959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); } && {
21961 test -z "$ac_c_werror_flag" ||
21962 test ! -s conftest.err
21963 } && test -s conftest$ac_exeext && {
21964 test "$cross_compiling" = yes ||
21965 $as_test_x conftest$ac_exeext
21966 }; then
12246 ac_cv_lib_com_err_com_err=yes 21967 ac_cv_lib_com_err_com_err=yes
12247else 21968else
12248 ac_cv_lib_com_err_com_err=no 21969 $as_echo "$as_me: failed program was:" >&5
21970sed 's/^/| /' conftest.$ac_ext >&5
21971
21972 ac_cv_lib_com_err_com_err=no
12249fi 21973fi
12250rm -f core conftest.err conftest.$ac_objext \ 21974
12251 conftest$ac_exeext conftest.$ac_ext 21975rm -rf conftest.dSYM
21976rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21977 conftest$ac_exeext conftest.$ac_ext
12252LIBS=$ac_check_lib_save_LIBS 21978LIBS=$ac_check_lib_save_LIBS
12253fi 21979fi
12254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5 21980{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
12255$as_echo "$ac_cv_lib_com_err_com_err" >&6; } 21981$as_echo "$ac_cv_lib_com_err_com_err" >&6; }
12256if test "x$ac_cv_lib_com_err_com_err" = x""yes; then : 21982if test $ac_cv_lib_com_err_com_err = yes; then
12257 have_com_err=yes 21983 have_com_err=yes
12258else 21984else
12259 have_com_err=no 21985 have_com_err=no
@@ -12263,17 +21989,23 @@ fi
12263 COM_ERRLIB=-lcom_err 21989 COM_ERRLIB=-lcom_err
12264 LIBS="$COM_ERRLIB $LIBS" 21990 LIBS="$COM_ERRLIB $LIBS"
12265 21991
12266$as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h 21992cat >>confdefs.h <<\_ACEOF
21993#define HAVE_LIBCOM_ERR 1
21994_ACEOF
12267 21995
12268 fi 21996 fi
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5 21997 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12270$as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; } 21998$as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
12271if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then : 21999if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
12272 $as_echo_n "(cached) " >&6 22000 $as_echo_n "(cached) " >&6
12273else 22001else
12274 ac_check_lib_save_LIBS=$LIBS 22002 ac_check_lib_save_LIBS=$LIBS
12275LIBS="-lcrypto $LIBS" 22003LIBS="-lcrypto $LIBS"
12276cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22004cat >conftest.$ac_ext <<_ACEOF
22005/* confdefs.h. */
22006_ACEOF
22007cat confdefs.h >>conftest.$ac_ext
22008cat >>conftest.$ac_ext <<_ACEOF
12277/* end confdefs.h. */ 22009/* end confdefs.h. */
12278 22010
12279/* Override any GCC internal prototype to avoid an error. 22011/* Override any GCC internal prototype to avoid an error.
@@ -12291,18 +22023,43 @@ return mit_des_cbc_encrypt ();
12291 return 0; 22023 return 0;
12292} 22024}
12293_ACEOF 22025_ACEOF
12294if ac_fn_c_try_link "$LINENO"; then : 22026rm -f conftest.$ac_objext conftest$ac_exeext
22027if { (ac_try="$ac_link"
22028case "(($ac_try" in
22029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22030 *) ac_try_echo=$ac_try;;
22031esac
22032eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22033$as_echo "$ac_try_echo") >&5
22034 (eval "$ac_link") 2>conftest.er1
22035 ac_status=$?
22036 grep -v '^ *+' conftest.er1 >conftest.err
22037 rm -f conftest.er1
22038 cat conftest.err >&5
22039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); } && {
22041 test -z "$ac_c_werror_flag" ||
22042 test ! -s conftest.err
22043 } && test -s conftest$ac_exeext && {
22044 test "$cross_compiling" = yes ||
22045 $as_test_x conftest$ac_exeext
22046 }; then
12295 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes 22047 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
12296else 22048else
12297 ac_cv_lib_crypto_mit_des_cbc_encrypt=no 22049 $as_echo "$as_me: failed program was:" >&5
22050sed 's/^/| /' conftest.$ac_ext >&5
22051
22052 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
12298fi 22053fi
12299rm -f core conftest.err conftest.$ac_objext \ 22054
12300 conftest$ac_exeext conftest.$ac_ext 22055rm -rf conftest.dSYM
22056rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22057 conftest$ac_exeext conftest.$ac_ext
12301LIBS=$ac_check_lib_save_LIBS 22058LIBS=$ac_check_lib_save_LIBS
12302fi 22059fi
12303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 22060{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12304$as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; } 22061$as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
12305if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then : 22062if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
12306 have_crypto=yes 22063 have_crypto=yes
12307else 22064else
12308 have_crypto=no 22065 have_crypto=no
@@ -12312,17 +22069,23 @@ fi
12312 CRYPTOLIB=-lcrypto 22069 CRYPTOLIB=-lcrypto
12313 LIBS="$CRYPTOLIB $LIBS" 22070 LIBS="$CRYPTOLIB $LIBS"
12314 22071
12315$as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h 22072cat >>confdefs.h <<\_ACEOF
22073#define HAVE_LIBCRYPTO 1
22074_ACEOF
12316 22075
12317 fi 22076 fi
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 22077 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12319$as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; } 22078$as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
12320if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then : 22079if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
12321 $as_echo_n "(cached) " >&6 22080 $as_echo_n "(cached) " >&6
12322else 22081else
12323 ac_check_lib_save_LIBS=$LIBS 22082 ac_check_lib_save_LIBS=$LIBS
12324LIBS="-lk5crypto $LIBS" 22083LIBS="-lk5crypto $LIBS"
12325cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22084cat >conftest.$ac_ext <<_ACEOF
22085/* confdefs.h. */
22086_ACEOF
22087cat confdefs.h >>conftest.$ac_ext
22088cat >>conftest.$ac_ext <<_ACEOF
12326/* end confdefs.h. */ 22089/* end confdefs.h. */
12327 22090
12328/* Override any GCC internal prototype to avoid an error. 22091/* Override any GCC internal prototype to avoid an error.
@@ -12340,18 +22103,43 @@ return mit_des_cbc_encrypt ();
12340 return 0; 22103 return 0;
12341} 22104}
12342_ACEOF 22105_ACEOF
12343if ac_fn_c_try_link "$LINENO"; then : 22106rm -f conftest.$ac_objext conftest$ac_exeext
22107if { (ac_try="$ac_link"
22108case "(($ac_try" in
22109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22110 *) ac_try_echo=$ac_try;;
22111esac
22112eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22113$as_echo "$ac_try_echo") >&5
22114 (eval "$ac_link") 2>conftest.er1
22115 ac_status=$?
22116 grep -v '^ *+' conftest.er1 >conftest.err
22117 rm -f conftest.er1
22118 cat conftest.err >&5
22119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120 (exit $ac_status); } && {
22121 test -z "$ac_c_werror_flag" ||
22122 test ! -s conftest.err
22123 } && test -s conftest$ac_exeext && {
22124 test "$cross_compiling" = yes ||
22125 $as_test_x conftest$ac_exeext
22126 }; then
12344 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes 22127 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
12345else 22128else
12346 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no 22129 $as_echo "$as_me: failed program was:" >&5
22130sed 's/^/| /' conftest.$ac_ext >&5
22131
22132 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
12347fi 22133fi
12348rm -f core conftest.err conftest.$ac_objext \ 22134
12349 conftest$ac_exeext conftest.$ac_ext 22135rm -rf conftest.dSYM
22136rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22137 conftest$ac_exeext conftest.$ac_ext
12350LIBS=$ac_check_lib_save_LIBS 22138LIBS=$ac_check_lib_save_LIBS
12351fi 22139fi
12352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 22140{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12353$as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; } 22141$as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
12354if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then : 22142if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
12355 have_k5crypto=yes 22143 have_k5crypto=yes
12356else 22144else
12357 have_k5crypto=no 22145 have_k5crypto=no
@@ -12361,17 +22149,23 @@ fi
12361 CRYPTOLIB=-lk5crypto 22149 CRYPTOLIB=-lk5crypto
12362 LIBS="$CRYPTOLIB $LIBS" 22150 LIBS="$CRYPTOLIB $LIBS"
12363 22151
12364$as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h 22152cat >>confdefs.h <<\_ACEOF
22153#define HAVE_LIBK5CRYPTO 1
22154_ACEOF
12365 22155
12366 fi 22156 fi
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5 22157 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
12368$as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; } 22158$as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12369if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then : 22159if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
12370 $as_echo_n "(cached) " >&6 22160 $as_echo_n "(cached) " >&6
12371else 22161else
12372 ac_check_lib_save_LIBS=$LIBS 22162 ac_check_lib_save_LIBS=$LIBS
12373LIBS="-lkrb5 $LIBS" 22163LIBS="-lkrb5 $LIBS"
12374cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22164cat >conftest.$ac_ext <<_ACEOF
22165/* confdefs.h. */
22166_ACEOF
22167cat confdefs.h >>conftest.$ac_ext
22168cat >>conftest.$ac_ext <<_ACEOF
12375/* end confdefs.h. */ 22169/* end confdefs.h. */
12376 22170
12377/* Override any GCC internal prototype to avoid an error. 22171/* Override any GCC internal prototype to avoid an error.
@@ -12389,18 +22183,43 @@ return krb5_init_context ();
12389 return 0; 22183 return 0;
12390} 22184}
12391_ACEOF 22185_ACEOF
12392if ac_fn_c_try_link "$LINENO"; then : 22186rm -f conftest.$ac_objext conftest$ac_exeext
22187if { (ac_try="$ac_link"
22188case "(($ac_try" in
22189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22190 *) ac_try_echo=$ac_try;;
22191esac
22192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22193$as_echo "$ac_try_echo") >&5
22194 (eval "$ac_link") 2>conftest.er1
22195 ac_status=$?
22196 grep -v '^ *+' conftest.er1 >conftest.err
22197 rm -f conftest.er1
22198 cat conftest.err >&5
22199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); } && {
22201 test -z "$ac_c_werror_flag" ||
22202 test ! -s conftest.err
22203 } && test -s conftest$ac_exeext && {
22204 test "$cross_compiling" = yes ||
22205 $as_test_x conftest$ac_exeext
22206 }; then
12393 ac_cv_lib_krb5_krb5_init_context=yes 22207 ac_cv_lib_krb5_krb5_init_context=yes
12394else 22208else
12395 ac_cv_lib_krb5_krb5_init_context=no 22209 $as_echo "$as_me: failed program was:" >&5
22210sed 's/^/| /' conftest.$ac_ext >&5
22211
22212 ac_cv_lib_krb5_krb5_init_context=no
12396fi 22213fi
12397rm -f core conftest.err conftest.$ac_objext \ 22214
12398 conftest$ac_exeext conftest.$ac_ext 22215rm -rf conftest.dSYM
22216rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22217 conftest$ac_exeext conftest.$ac_ext
12399LIBS=$ac_check_lib_save_LIBS 22218LIBS=$ac_check_lib_save_LIBS
12400fi 22219fi
12401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5 22220{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12402$as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; } 22221$as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12403if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then : 22222if test $ac_cv_lib_krb5_krb5_init_context = yes; then
12404 have_krb5=yes 22223 have_krb5=yes
12405else 22224else
12406 have_krb5=no 22225 have_krb5=no
@@ -12410,18 +22229,24 @@ fi
12410 KRB5LIB=-lkrb5 22229 KRB5LIB=-lkrb5
12411 LIBS="$KRB5LIB $LIBS" 22230 LIBS="$KRB5LIB $LIBS"
12412 22231
12413$as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h 22232cat >>confdefs.h <<\_ACEOF
22233#define HAVE_LIBKRB5 1
22234_ACEOF
12414 22235
12415 fi 22236 fi
12416 if test "${with_kerberos5}" = no; then 22237 if test "${with_kerberos5}" = no; then
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5 22238 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
12418$as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; } 22239$as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
12419if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then : 22240if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
12420 $as_echo_n "(cached) " >&6 22241 $as_echo_n "(cached) " >&6
12421else 22242else
12422 ac_check_lib_save_LIBS=$LIBS 22243 ac_check_lib_save_LIBS=$LIBS
12423LIBS="-ldes425 $LIBS" 22244LIBS="-ldes425 $LIBS"
12424cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22245cat >conftest.$ac_ext <<_ACEOF
22246/* confdefs.h. */
22247_ACEOF
22248cat confdefs.h >>conftest.$ac_ext
22249cat >>conftest.$ac_ext <<_ACEOF
12425/* end confdefs.h. */ 22250/* end confdefs.h. */
12426 22251
12427/* Override any GCC internal prototype to avoid an error. 22252/* Override any GCC internal prototype to avoid an error.
@@ -12439,18 +22264,43 @@ return des_cbc_encrypt ();
12439 return 0; 22264 return 0;
12440} 22265}
12441_ACEOF 22266_ACEOF
12442if ac_fn_c_try_link "$LINENO"; then : 22267rm -f conftest.$ac_objext conftest$ac_exeext
22268if { (ac_try="$ac_link"
22269case "(($ac_try" in
22270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22271 *) ac_try_echo=$ac_try;;
22272esac
22273eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22274$as_echo "$ac_try_echo") >&5
22275 (eval "$ac_link") 2>conftest.er1
22276 ac_status=$?
22277 grep -v '^ *+' conftest.er1 >conftest.err
22278 rm -f conftest.er1
22279 cat conftest.err >&5
22280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); } && {
22282 test -z "$ac_c_werror_flag" ||
22283 test ! -s conftest.err
22284 } && test -s conftest$ac_exeext && {
22285 test "$cross_compiling" = yes ||
22286 $as_test_x conftest$ac_exeext
22287 }; then
12443 ac_cv_lib_des425_des_cbc_encrypt=yes 22288 ac_cv_lib_des425_des_cbc_encrypt=yes
12444else 22289else
12445 ac_cv_lib_des425_des_cbc_encrypt=no 22290 $as_echo "$as_me: failed program was:" >&5
22291sed 's/^/| /' conftest.$ac_ext >&5
22292
22293 ac_cv_lib_des425_des_cbc_encrypt=no
12446fi 22294fi
12447rm -f core conftest.err conftest.$ac_objext \ 22295
12448 conftest$ac_exeext conftest.$ac_ext 22296rm -rf conftest.dSYM
22297rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22298 conftest$ac_exeext conftest.$ac_ext
12449LIBS=$ac_check_lib_save_LIBS 22299LIBS=$ac_check_lib_save_LIBS
12450fi 22300fi
12451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 22301{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
12452$as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; } 22302$as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
12453if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then : 22303if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
12454 have_des425=yes 22304 have_des425=yes
12455else 22305else
12456 have_des425=no 22306 have_des425=no
@@ -12460,17 +22310,23 @@ fi
12460 DESLIB=-ldes425 22310 DESLIB=-ldes425
12461 LIBS="$DESLIB $LIBS" 22311 LIBS="$DESLIB $LIBS"
12462 22312
12463$as_echo "#define HAVE_LIBDES425 1" >>confdefs.h 22313cat >>confdefs.h <<\_ACEOF
22314#define HAVE_LIBDES425 1
22315_ACEOF
12464 22316
12465 else 22317 else
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5 22318 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
12467$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } 22319$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
12468if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then : 22320if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
12469 $as_echo_n "(cached) " >&6 22321 $as_echo_n "(cached) " >&6
12470else 22322else
12471 ac_check_lib_save_LIBS=$LIBS 22323 ac_check_lib_save_LIBS=$LIBS
12472LIBS="-ldes $LIBS" 22324LIBS="-ldes $LIBS"
12473cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22325cat >conftest.$ac_ext <<_ACEOF
22326/* confdefs.h. */
22327_ACEOF
22328cat confdefs.h >>conftest.$ac_ext
22329cat >>conftest.$ac_ext <<_ACEOF
12474/* end confdefs.h. */ 22330/* end confdefs.h. */
12475 22331
12476/* Override any GCC internal prototype to avoid an error. 22332/* Override any GCC internal prototype to avoid an error.
@@ -12488,18 +22344,43 @@ return des_cbc_encrypt ();
12488 return 0; 22344 return 0;
12489} 22345}
12490_ACEOF 22346_ACEOF
12491if ac_fn_c_try_link "$LINENO"; then : 22347rm -f conftest.$ac_objext conftest$ac_exeext
22348if { (ac_try="$ac_link"
22349case "(($ac_try" in
22350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22351 *) ac_try_echo=$ac_try;;
22352esac
22353eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22354$as_echo "$ac_try_echo") >&5
22355 (eval "$ac_link") 2>conftest.er1
22356 ac_status=$?
22357 grep -v '^ *+' conftest.er1 >conftest.err
22358 rm -f conftest.er1
22359 cat conftest.err >&5
22360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361 (exit $ac_status); } && {
22362 test -z "$ac_c_werror_flag" ||
22363 test ! -s conftest.err
22364 } && test -s conftest$ac_exeext && {
22365 test "$cross_compiling" = yes ||
22366 $as_test_x conftest$ac_exeext
22367 }; then
12492 ac_cv_lib_des_des_cbc_encrypt=yes 22368 ac_cv_lib_des_des_cbc_encrypt=yes
12493else 22369else
12494 ac_cv_lib_des_des_cbc_encrypt=no 22370 $as_echo "$as_me: failed program was:" >&5
22371sed 's/^/| /' conftest.$ac_ext >&5
22372
22373 ac_cv_lib_des_des_cbc_encrypt=no
12495fi 22374fi
12496rm -f core conftest.err conftest.$ac_objext \ 22375
12497 conftest$ac_exeext conftest.$ac_ext 22376rm -rf conftest.dSYM
22377rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22378 conftest$ac_exeext conftest.$ac_ext
12498LIBS=$ac_check_lib_save_LIBS 22379LIBS=$ac_check_lib_save_LIBS
12499fi 22380fi
12500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 22381{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
12501$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } 22382$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
12502if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then : 22383if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
12503 have_des=yes 22384 have_des=yes
12504else 22385else
12505 have_des=no 22386 have_des=no
@@ -12509,18 +22390,24 @@ fi
12509 DESLIB=-ldes 22390 DESLIB=-ldes
12510 LIBS="$DESLIB $LIBS" 22391 LIBS="$DESLIB $LIBS"
12511 22392
12512$as_echo "#define HAVE_LIBDES 1" >>confdefs.h 22393cat >>confdefs.h <<\_ACEOF
22394#define HAVE_LIBDES 1
22395_ACEOF
12513 22396
12514 fi 22397 fi
12515 fi 22398 fi
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5 22399 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
12517$as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; } 22400$as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
12518if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then : 22401if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
12519 $as_echo_n "(cached) " >&6 22402 $as_echo_n "(cached) " >&6
12520else 22403else
12521 ac_check_lib_save_LIBS=$LIBS 22404 ac_check_lib_save_LIBS=$LIBS
12522LIBS="-lkrb4 $LIBS" 22405LIBS="-lkrb4 $LIBS"
12523cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22406cat >conftest.$ac_ext <<_ACEOF
22407/* confdefs.h. */
22408_ACEOF
22409cat confdefs.h >>conftest.$ac_ext
22410cat >>conftest.$ac_ext <<_ACEOF
12524/* end confdefs.h. */ 22411/* end confdefs.h. */
12525 22412
12526/* Override any GCC internal prototype to avoid an error. 22413/* Override any GCC internal prototype to avoid an error.
@@ -12538,18 +22425,43 @@ return krb_get_cred ();
12538 return 0; 22425 return 0;
12539} 22426}
12540_ACEOF 22427_ACEOF
12541if ac_fn_c_try_link "$LINENO"; then : 22428rm -f conftest.$ac_objext conftest$ac_exeext
22429if { (ac_try="$ac_link"
22430case "(($ac_try" in
22431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22432 *) ac_try_echo=$ac_try;;
22433esac
22434eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22435$as_echo "$ac_try_echo") >&5
22436 (eval "$ac_link") 2>conftest.er1
22437 ac_status=$?
22438 grep -v '^ *+' conftest.er1 >conftest.err
22439 rm -f conftest.er1
22440 cat conftest.err >&5
22441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); } && {
22443 test -z "$ac_c_werror_flag" ||
22444 test ! -s conftest.err
22445 } && test -s conftest$ac_exeext && {
22446 test "$cross_compiling" = yes ||
22447 $as_test_x conftest$ac_exeext
22448 }; then
12542 ac_cv_lib_krb4_krb_get_cred=yes 22449 ac_cv_lib_krb4_krb_get_cred=yes
12543else 22450else
12544 ac_cv_lib_krb4_krb_get_cred=no 22451 $as_echo "$as_me: failed program was:" >&5
22452sed 's/^/| /' conftest.$ac_ext >&5
22453
22454 ac_cv_lib_krb4_krb_get_cred=no
12545fi 22455fi
12546rm -f core conftest.err conftest.$ac_objext \ 22456
12547 conftest$ac_exeext conftest.$ac_ext 22457rm -rf conftest.dSYM
22458rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22459 conftest$ac_exeext conftest.$ac_ext
12548LIBS=$ac_check_lib_save_LIBS 22460LIBS=$ac_check_lib_save_LIBS
12549fi 22461fi
12550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5 22462{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
12551$as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; } 22463$as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
12552if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then : 22464if test $ac_cv_lib_krb4_krb_get_cred = yes; then
12553 have_krb4=yes 22465 have_krb4=yes
12554else 22466else
12555 have_krb4=no 22467 have_krb4=no
@@ -12559,17 +22471,23 @@ fi
12559 KRB4LIB=-lkrb4 22471 KRB4LIB=-lkrb4
12560 LIBS="$KRB4LIB $LIBS" 22472 LIBS="$KRB4LIB $LIBS"
12561 22473
12562$as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h 22474cat >>confdefs.h <<\_ACEOF
22475#define HAVE_LIBKRB4 1
22476_ACEOF
12563 22477
12564 else 22478 else
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5 22479 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
12566$as_echo_n "checking for krb_get_cred in -lkrb... " >&6; } 22480$as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
12567if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then : 22481if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
12568 $as_echo_n "(cached) " >&6 22482 $as_echo_n "(cached) " >&6
12569else 22483else
12570 ac_check_lib_save_LIBS=$LIBS 22484 ac_check_lib_save_LIBS=$LIBS
12571LIBS="-lkrb $LIBS" 22485LIBS="-lkrb $LIBS"
12572cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22486cat >conftest.$ac_ext <<_ACEOF
22487/* confdefs.h. */
22488_ACEOF
22489cat confdefs.h >>conftest.$ac_ext
22490cat >>conftest.$ac_ext <<_ACEOF
12573/* end confdefs.h. */ 22491/* end confdefs.h. */
12574 22492
12575/* Override any GCC internal prototype to avoid an error. 22493/* Override any GCC internal prototype to avoid an error.
@@ -12587,18 +22505,43 @@ return krb_get_cred ();
12587 return 0; 22505 return 0;
12588} 22506}
12589_ACEOF 22507_ACEOF
12590if ac_fn_c_try_link "$LINENO"; then : 22508rm -f conftest.$ac_objext conftest$ac_exeext
22509if { (ac_try="$ac_link"
22510case "(($ac_try" in
22511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22512 *) ac_try_echo=$ac_try;;
22513esac
22514eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22515$as_echo "$ac_try_echo") >&5
22516 (eval "$ac_link") 2>conftest.er1
22517 ac_status=$?
22518 grep -v '^ *+' conftest.er1 >conftest.err
22519 rm -f conftest.er1
22520 cat conftest.err >&5
22521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522 (exit $ac_status); } && {
22523 test -z "$ac_c_werror_flag" ||
22524 test ! -s conftest.err
22525 } && test -s conftest$ac_exeext && {
22526 test "$cross_compiling" = yes ||
22527 $as_test_x conftest$ac_exeext
22528 }; then
12591 ac_cv_lib_krb_krb_get_cred=yes 22529 ac_cv_lib_krb_krb_get_cred=yes
12592else 22530else
12593 ac_cv_lib_krb_krb_get_cred=no 22531 $as_echo "$as_me: failed program was:" >&5
22532sed 's/^/| /' conftest.$ac_ext >&5
22533
22534 ac_cv_lib_krb_krb_get_cred=no
12594fi 22535fi
12595rm -f core conftest.err conftest.$ac_objext \ 22536
12596 conftest$ac_exeext conftest.$ac_ext 22537rm -rf conftest.dSYM
22538rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22539 conftest$ac_exeext conftest.$ac_ext
12597LIBS=$ac_check_lib_save_LIBS 22540LIBS=$ac_check_lib_save_LIBS
12598fi 22541fi
12599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5 22542{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
12600$as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; } 22543$as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
12601if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then : 22544if test $ac_cv_lib_krb_krb_get_cred = yes; then
12602 have_krb=yes 22545 have_krb=yes
12603else 22546else
12604 have_krb=no 22547 have_krb=no
@@ -12608,23 +22551,253 @@ fi
12608 KRB4LIB=-lkrb 22551 KRB4LIB=-lkrb
12609 LIBS="$KRB4LIB $LIBS" 22552 LIBS="$KRB4LIB $LIBS"
12610 22553
12611$as_echo "#define HAVE_LIBKRB 1" >>confdefs.h 22554cat >>confdefs.h <<\_ACEOF
22555#define HAVE_LIBKRB 1
22556_ACEOF
12612 22557
12613 fi 22558 fi
12614 fi 22559 fi
12615 fi 22560 fi
12616 22561
12617 if test "${with_kerberos5}" != no; then 22562 if test "${with_kerberos5}" != no; then
12618 for ac_header in krb5.h 22563
12619do : 22564for ac_header in krb5.h
12620 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default" 22565do
12621if test "x$ac_cv_header_krb5_h" = x""yes; then : 22566as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22567if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22568 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22569$as_echo_n "checking for $ac_header... " >&6; }
22570if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22571 $as_echo_n "(cached) " >&6
22572fi
22573ac_res=`eval 'as_val=${'$as_ac_Header'}
22574 $as_echo "$as_val"'`
22575 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22576$as_echo "$ac_res" >&6; }
22577else
22578 # Is the header compilable?
22579{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22580$as_echo_n "checking $ac_header usability... " >&6; }
22581cat >conftest.$ac_ext <<_ACEOF
22582/* confdefs.h. */
22583_ACEOF
22584cat confdefs.h >>conftest.$ac_ext
22585cat >>conftest.$ac_ext <<_ACEOF
22586/* end confdefs.h. */
22587$ac_includes_default
22588#include <$ac_header>
22589_ACEOF
22590rm -f conftest.$ac_objext
22591if { (ac_try="$ac_compile"
22592case "(($ac_try" in
22593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22594 *) ac_try_echo=$ac_try;;
22595esac
22596eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22597$as_echo "$ac_try_echo") >&5
22598 (eval "$ac_compile") 2>conftest.er1
22599 ac_status=$?
22600 grep -v '^ *+' conftest.er1 >conftest.err
22601 rm -f conftest.er1
22602 cat conftest.err >&5
22603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); } && {
22605 test -z "$ac_c_werror_flag" ||
22606 test ! -s conftest.err
22607 } && test -s conftest.$ac_objext; then
22608 ac_header_compiler=yes
22609else
22610 $as_echo "$as_me: failed program was:" >&5
22611sed 's/^/| /' conftest.$ac_ext >&5
22612
22613 ac_header_compiler=no
22614fi
22615
22616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22617{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22618$as_echo "$ac_header_compiler" >&6; }
22619
22620# Is the header present?
22621{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22622$as_echo_n "checking $ac_header presence... " >&6; }
22623cat >conftest.$ac_ext <<_ACEOF
22624/* confdefs.h. */
22625_ACEOF
22626cat confdefs.h >>conftest.$ac_ext
22627cat >>conftest.$ac_ext <<_ACEOF
22628/* end confdefs.h. */
22629#include <$ac_header>
22630_ACEOF
22631if { (ac_try="$ac_cpp conftest.$ac_ext"
22632case "(($ac_try" in
22633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22634 *) ac_try_echo=$ac_try;;
22635esac
22636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22637$as_echo "$ac_try_echo") >&5
22638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22639 ac_status=$?
22640 grep -v '^ *+' conftest.er1 >conftest.err
22641 rm -f conftest.er1
22642 cat conftest.err >&5
22643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644 (exit $ac_status); } >/dev/null && {
22645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22646 test ! -s conftest.err
22647 }; then
22648 ac_header_preproc=yes
22649else
22650 $as_echo "$as_me: failed program was:" >&5
22651sed 's/^/| /' conftest.$ac_ext >&5
22652
22653 ac_header_preproc=no
22654fi
22655
22656rm -f conftest.err conftest.$ac_ext
22657{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22658$as_echo "$ac_header_preproc" >&6; }
22659
22660# So? What about this header?
22661case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22662 yes:no: )
22663 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22664$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22665 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22666$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22667 ac_header_preproc=yes
22668 ;;
22669 no:yes:* )
22670 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22671$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22672 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22673$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22674 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22675$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22677$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22679$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22681$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22682
22683 ;;
22684esac
22685{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22686$as_echo_n "checking for $ac_header... " >&6; }
22687if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22688 $as_echo_n "(cached) " >&6
22689else
22690 eval "$as_ac_Header=\$ac_header_preproc"
22691fi
22692ac_res=`eval 'as_val=${'$as_ac_Header'}
22693 $as_echo "$as_val"'`
22694 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22695$as_echo "$ac_res" >&6; }
22696
22697fi
22698if test `eval 'as_val=${'$as_ac_Header'}
22699 $as_echo "$as_val"'` = yes; then
12622 cat >>confdefs.h <<_ACEOF 22700 cat >>confdefs.h <<_ACEOF
12623#define HAVE_KRB5_H 1 22701#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12624_ACEOF 22702_ACEOF
12625 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h> 22703 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
12626" 22704$as_echo_n "checking for krb5_error.text... " >&6; }
12627if test "x$ac_cv_member_krb5_error_text" = x""yes; then : 22705if test "${ac_cv_member_krb5_error_text+set}" = set; then
22706 $as_echo_n "(cached) " >&6
22707else
22708 cat >conftest.$ac_ext <<_ACEOF
22709/* confdefs.h. */
22710_ACEOF
22711cat confdefs.h >>conftest.$ac_ext
22712cat >>conftest.$ac_ext <<_ACEOF
22713/* end confdefs.h. */
22714#include <krb5.h>
22715
22716int
22717main ()
22718{
22719static krb5_error ac_aggr;
22720if (ac_aggr.text)
22721return 0;
22722 ;
22723 return 0;
22724}
22725_ACEOF
22726rm -f conftest.$ac_objext
22727if { (ac_try="$ac_compile"
22728case "(($ac_try" in
22729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22730 *) ac_try_echo=$ac_try;;
22731esac
22732eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22733$as_echo "$ac_try_echo") >&5
22734 (eval "$ac_compile") 2>conftest.er1
22735 ac_status=$?
22736 grep -v '^ *+' conftest.er1 >conftest.err
22737 rm -f conftest.er1
22738 cat conftest.err >&5
22739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740 (exit $ac_status); } && {
22741 test -z "$ac_c_werror_flag" ||
22742 test ! -s conftest.err
22743 } && test -s conftest.$ac_objext; then
22744 ac_cv_member_krb5_error_text=yes
22745else
22746 $as_echo "$as_me: failed program was:" >&5
22747sed 's/^/| /' conftest.$ac_ext >&5
22748
22749 cat >conftest.$ac_ext <<_ACEOF
22750/* confdefs.h. */
22751_ACEOF
22752cat confdefs.h >>conftest.$ac_ext
22753cat >>conftest.$ac_ext <<_ACEOF
22754/* end confdefs.h. */
22755#include <krb5.h>
22756
22757int
22758main ()
22759{
22760static krb5_error ac_aggr;
22761if (sizeof ac_aggr.text)
22762return 0;
22763 ;
22764 return 0;
22765}
22766_ACEOF
22767rm -f conftest.$ac_objext
22768if { (ac_try="$ac_compile"
22769case "(($ac_try" in
22770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22771 *) ac_try_echo=$ac_try;;
22772esac
22773eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22774$as_echo "$ac_try_echo") >&5
22775 (eval "$ac_compile") 2>conftest.er1
22776 ac_status=$?
22777 grep -v '^ *+' conftest.er1 >conftest.err
22778 rm -f conftest.er1
22779 cat conftest.err >&5
22780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781 (exit $ac_status); } && {
22782 test -z "$ac_c_werror_flag" ||
22783 test ! -s conftest.err
22784 } && test -s conftest.$ac_objext; then
22785 ac_cv_member_krb5_error_text=yes
22786else
22787 $as_echo "$as_me: failed program was:" >&5
22788sed 's/^/| /' conftest.$ac_ext >&5
22789
22790 ac_cv_member_krb5_error_text=no
22791fi
22792
22793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22794fi
22795
22796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22797fi
22798{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22799$as_echo "$ac_cv_member_krb5_error_text" >&6; }
22800if test $ac_cv_member_krb5_error_text = yes; then
12628 22801
12629cat >>confdefs.h <<_ACEOF 22802cat >>confdefs.h <<_ACEOF
12630#define HAVE_KRB5_ERROR_TEXT 1 22803#define HAVE_KRB5_ERROR_TEXT 1
@@ -12632,9 +22805,104 @@ _ACEOF
12632 22805
12633 22806
12634fi 22807fi
12635ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h> 22808{ $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
12636" 22809$as_echo_n "checking for krb5_error.e_text... " >&6; }
12637if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then : 22810if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22811 $as_echo_n "(cached) " >&6
22812else
22813 cat >conftest.$ac_ext <<_ACEOF
22814/* confdefs.h. */
22815_ACEOF
22816cat confdefs.h >>conftest.$ac_ext
22817cat >>conftest.$ac_ext <<_ACEOF
22818/* end confdefs.h. */
22819#include <krb5.h>
22820
22821int
22822main ()
22823{
22824static krb5_error ac_aggr;
22825if (ac_aggr.e_text)
22826return 0;
22827 ;
22828 return 0;
22829}
22830_ACEOF
22831rm -f conftest.$ac_objext
22832if { (ac_try="$ac_compile"
22833case "(($ac_try" in
22834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22835 *) ac_try_echo=$ac_try;;
22836esac
22837eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22838$as_echo "$ac_try_echo") >&5
22839 (eval "$ac_compile") 2>conftest.er1
22840 ac_status=$?
22841 grep -v '^ *+' conftest.er1 >conftest.err
22842 rm -f conftest.er1
22843 cat conftest.err >&5
22844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845 (exit $ac_status); } && {
22846 test -z "$ac_c_werror_flag" ||
22847 test ! -s conftest.err
22848 } && test -s conftest.$ac_objext; then
22849 ac_cv_member_krb5_error_e_text=yes
22850else
22851 $as_echo "$as_me: failed program was:" >&5
22852sed 's/^/| /' conftest.$ac_ext >&5
22853
22854 cat >conftest.$ac_ext <<_ACEOF
22855/* confdefs.h. */
22856_ACEOF
22857cat confdefs.h >>conftest.$ac_ext
22858cat >>conftest.$ac_ext <<_ACEOF
22859/* end confdefs.h. */
22860#include <krb5.h>
22861
22862int
22863main ()
22864{
22865static krb5_error ac_aggr;
22866if (sizeof ac_aggr.e_text)
22867return 0;
22868 ;
22869 return 0;
22870}
22871_ACEOF
22872rm -f conftest.$ac_objext
22873if { (ac_try="$ac_compile"
22874case "(($ac_try" in
22875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22876 *) ac_try_echo=$ac_try;;
22877esac
22878eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22879$as_echo "$ac_try_echo") >&5
22880 (eval "$ac_compile") 2>conftest.er1
22881 ac_status=$?
22882 grep -v '^ *+' conftest.er1 >conftest.err
22883 rm -f conftest.er1
22884 cat conftest.err >&5
22885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886 (exit $ac_status); } && {
22887 test -z "$ac_c_werror_flag" ||
22888 test ! -s conftest.err
22889 } && test -s conftest.$ac_objext; then
22890 ac_cv_member_krb5_error_e_text=yes
22891else
22892 $as_echo "$as_me: failed program was:" >&5
22893sed 's/^/| /' conftest.$ac_ext >&5
22894
22895 ac_cv_member_krb5_error_e_text=no
22896fi
22897
22898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22899fi
22900
22901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22902fi
22903{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
22904$as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22905if test $ac_cv_member_krb5_error_e_text = yes; then
12638 22906
12639cat >>confdefs.h <<_ACEOF 22907cat >>confdefs.h <<_ACEOF
12640#define HAVE_KRB5_ERROR_E_TEXT 1 22908#define HAVE_KRB5_ERROR_E_TEXT 1
@@ -12648,30 +22916,429 @@ fi
12648done 22916done
12649 22917
12650 else 22918 else
12651 for ac_header in des.h 22919
12652do : 22920for ac_header in des.h
12653 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default" 22921do
12654if test "x$ac_cv_header_des_h" = x""yes; then : 22922as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22923if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22924 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22925$as_echo_n "checking for $ac_header... " >&6; }
22926if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22927 $as_echo_n "(cached) " >&6
22928fi
22929ac_res=`eval 'as_val=${'$as_ac_Header'}
22930 $as_echo "$as_val"'`
22931 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22932$as_echo "$ac_res" >&6; }
22933else
22934 # Is the header compilable?
22935{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22936$as_echo_n "checking $ac_header usability... " >&6; }
22937cat >conftest.$ac_ext <<_ACEOF
22938/* confdefs.h. */
22939_ACEOF
22940cat confdefs.h >>conftest.$ac_ext
22941cat >>conftest.$ac_ext <<_ACEOF
22942/* end confdefs.h. */
22943$ac_includes_default
22944#include <$ac_header>
22945_ACEOF
22946rm -f conftest.$ac_objext
22947if { (ac_try="$ac_compile"
22948case "(($ac_try" in
22949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22950 *) ac_try_echo=$ac_try;;
22951esac
22952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22953$as_echo "$ac_try_echo") >&5
22954 (eval "$ac_compile") 2>conftest.er1
22955 ac_status=$?
22956 grep -v '^ *+' conftest.er1 >conftest.err
22957 rm -f conftest.er1
22958 cat conftest.err >&5
22959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960 (exit $ac_status); } && {
22961 test -z "$ac_c_werror_flag" ||
22962 test ! -s conftest.err
22963 } && test -s conftest.$ac_objext; then
22964 ac_header_compiler=yes
22965else
22966 $as_echo "$as_me: failed program was:" >&5
22967sed 's/^/| /' conftest.$ac_ext >&5
22968
22969 ac_header_compiler=no
22970fi
22971
22972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22973{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22974$as_echo "$ac_header_compiler" >&6; }
22975
22976# Is the header present?
22977{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22978$as_echo_n "checking $ac_header presence... " >&6; }
22979cat >conftest.$ac_ext <<_ACEOF
22980/* confdefs.h. */
22981_ACEOF
22982cat confdefs.h >>conftest.$ac_ext
22983cat >>conftest.$ac_ext <<_ACEOF
22984/* end confdefs.h. */
22985#include <$ac_header>
22986_ACEOF
22987if { (ac_try="$ac_cpp conftest.$ac_ext"
22988case "(($ac_try" in
22989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22990 *) ac_try_echo=$ac_try;;
22991esac
22992eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22993$as_echo "$ac_try_echo") >&5
22994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22995 ac_status=$?
22996 grep -v '^ *+' conftest.er1 >conftest.err
22997 rm -f conftest.er1
22998 cat conftest.err >&5
22999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000 (exit $ac_status); } >/dev/null && {
23001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23002 test ! -s conftest.err
23003 }; then
23004 ac_header_preproc=yes
23005else
23006 $as_echo "$as_me: failed program was:" >&5
23007sed 's/^/| /' conftest.$ac_ext >&5
23008
23009 ac_header_preproc=no
23010fi
23011
23012rm -f conftest.err conftest.$ac_ext
23013{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23014$as_echo "$ac_header_preproc" >&6; }
23015
23016# So? What about this header?
23017case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23018 yes:no: )
23019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23020$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23022$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23023 ac_header_preproc=yes
23024 ;;
23025 no:yes:* )
23026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23027$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23029$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23031$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23033$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23035$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23037$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23038
23039 ;;
23040esac
23041{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23042$as_echo_n "checking for $ac_header... " >&6; }
23043if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23044 $as_echo_n "(cached) " >&6
23045else
23046 eval "$as_ac_Header=\$ac_header_preproc"
23047fi
23048ac_res=`eval 'as_val=${'$as_ac_Header'}
23049 $as_echo "$as_val"'`
23050 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23051$as_echo "$ac_res" >&6; }
23052
23053fi
23054if test `eval 'as_val=${'$as_ac_Header'}
23055 $as_echo "$as_val"'` = yes; then
12655 cat >>confdefs.h <<_ACEOF 23056 cat >>confdefs.h <<_ACEOF
12656#define HAVE_DES_H 1 23057#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23058_ACEOF
23059
23060else
23061
23062for ac_header in kerberosIV/des.h
23063do
23064as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23065if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23066 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23067$as_echo_n "checking for $ac_header... " >&6; }
23068if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23069 $as_echo_n "(cached) " >&6
23070fi
23071ac_res=`eval 'as_val=${'$as_ac_Header'}
23072 $as_echo "$as_val"'`
23073 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23074$as_echo "$ac_res" >&6; }
23075else
23076 # Is the header compilable?
23077{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23078$as_echo_n "checking $ac_header usability... " >&6; }
23079cat >conftest.$ac_ext <<_ACEOF
23080/* confdefs.h. */
23081_ACEOF
23082cat confdefs.h >>conftest.$ac_ext
23083cat >>conftest.$ac_ext <<_ACEOF
23084/* end confdefs.h. */
23085$ac_includes_default
23086#include <$ac_header>
23087_ACEOF
23088rm -f conftest.$ac_objext
23089if { (ac_try="$ac_compile"
23090case "(($ac_try" in
23091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23092 *) ac_try_echo=$ac_try;;
23093esac
23094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23095$as_echo "$ac_try_echo") >&5
23096 (eval "$ac_compile") 2>conftest.er1
23097 ac_status=$?
23098 grep -v '^ *+' conftest.er1 >conftest.err
23099 rm -f conftest.er1
23100 cat conftest.err >&5
23101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23102 (exit $ac_status); } && {
23103 test -z "$ac_c_werror_flag" ||
23104 test ! -s conftest.err
23105 } && test -s conftest.$ac_objext; then
23106 ac_header_compiler=yes
23107else
23108 $as_echo "$as_me: failed program was:" >&5
23109sed 's/^/| /' conftest.$ac_ext >&5
23110
23111 ac_header_compiler=no
23112fi
23113
23114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23115{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23116$as_echo "$ac_header_compiler" >&6; }
23117
23118# Is the header present?
23119{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23120$as_echo_n "checking $ac_header presence... " >&6; }
23121cat >conftest.$ac_ext <<_ACEOF
23122/* confdefs.h. */
12657_ACEOF 23123_ACEOF
23124cat confdefs.h >>conftest.$ac_ext
23125cat >>conftest.$ac_ext <<_ACEOF
23126/* end confdefs.h. */
23127#include <$ac_header>
23128_ACEOF
23129if { (ac_try="$ac_cpp conftest.$ac_ext"
23130case "(($ac_try" in
23131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23132 *) ac_try_echo=$ac_try;;
23133esac
23134eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23135$as_echo "$ac_try_echo") >&5
23136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23137 ac_status=$?
23138 grep -v '^ *+' conftest.er1 >conftest.err
23139 rm -f conftest.er1
23140 cat conftest.err >&5
23141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142 (exit $ac_status); } >/dev/null && {
23143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23144 test ! -s conftest.err
23145 }; then
23146 ac_header_preproc=yes
23147else
23148 $as_echo "$as_me: failed program was:" >&5
23149sed 's/^/| /' conftest.$ac_ext >&5
23150
23151 ac_header_preproc=no
23152fi
12658 23153
23154rm -f conftest.err conftest.$ac_ext
23155{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23156$as_echo "$ac_header_preproc" >&6; }
23157
23158# So? What about this header?
23159case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23160 yes:no: )
23161 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23162$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23163 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23164$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23165 ac_header_preproc=yes
23166 ;;
23167 no:yes:* )
23168 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23169$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23170 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23171$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23172 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23173$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23174 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23175$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23176 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23177$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23178 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23179$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23180
23181 ;;
23182esac
23183{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23184$as_echo_n "checking for $ac_header... " >&6; }
23185if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23186 $as_echo_n "(cached) " >&6
12659else 23187else
12660 for ac_header in kerberosIV/des.h 23188 eval "$as_ac_Header=\$ac_header_preproc"
12661do : 23189fi
12662 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default" 23190ac_res=`eval 'as_val=${'$as_ac_Header'}
12663if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then : 23191 $as_echo "$as_val"'`
23192 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23193$as_echo "$ac_res" >&6; }
23194
23195fi
23196if test `eval 'as_val=${'$as_ac_Header'}
23197 $as_echo "$as_val"'` = yes; then
12664 cat >>confdefs.h <<_ACEOF 23198 cat >>confdefs.h <<_ACEOF
12665#define HAVE_KERBEROSIV_DES_H 1 23199#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23200_ACEOF
23201
23202else
23203
23204for ac_header in kerberos/des.h
23205do
23206as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23207if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23208 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23209$as_echo_n "checking for $ac_header... " >&6; }
23210if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23211 $as_echo_n "(cached) " >&6
23212fi
23213ac_res=`eval 'as_val=${'$as_ac_Header'}
23214 $as_echo "$as_val"'`
23215 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23216$as_echo "$ac_res" >&6; }
23217else
23218 # Is the header compilable?
23219{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23220$as_echo_n "checking $ac_header usability... " >&6; }
23221cat >conftest.$ac_ext <<_ACEOF
23222/* confdefs.h. */
23223_ACEOF
23224cat confdefs.h >>conftest.$ac_ext
23225cat >>conftest.$ac_ext <<_ACEOF
23226/* end confdefs.h. */
23227$ac_includes_default
23228#include <$ac_header>
23229_ACEOF
23230rm -f conftest.$ac_objext
23231if { (ac_try="$ac_compile"
23232case "(($ac_try" in
23233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23234 *) ac_try_echo=$ac_try;;
23235esac
23236eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23237$as_echo "$ac_try_echo") >&5
23238 (eval "$ac_compile") 2>conftest.er1
23239 ac_status=$?
23240 grep -v '^ *+' conftest.er1 >conftest.err
23241 rm -f conftest.er1
23242 cat conftest.err >&5
23243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23244 (exit $ac_status); } && {
23245 test -z "$ac_c_werror_flag" ||
23246 test ! -s conftest.err
23247 } && test -s conftest.$ac_objext; then
23248 ac_header_compiler=yes
23249else
23250 $as_echo "$as_me: failed program was:" >&5
23251sed 's/^/| /' conftest.$ac_ext >&5
23252
23253 ac_header_compiler=no
23254fi
23255
23256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23257{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23258$as_echo "$ac_header_compiler" >&6; }
23259
23260# Is the header present?
23261{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23262$as_echo_n "checking $ac_header presence... " >&6; }
23263cat >conftest.$ac_ext <<_ACEOF
23264/* confdefs.h. */
12666_ACEOF 23265_ACEOF
23266cat confdefs.h >>conftest.$ac_ext
23267cat >>conftest.$ac_ext <<_ACEOF
23268/* end confdefs.h. */
23269#include <$ac_header>
23270_ACEOF
23271if { (ac_try="$ac_cpp conftest.$ac_ext"
23272case "(($ac_try" in
23273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23274 *) ac_try_echo=$ac_try;;
23275esac
23276eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23277$as_echo "$ac_try_echo") >&5
23278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23279 ac_status=$?
23280 grep -v '^ *+' conftest.er1 >conftest.err
23281 rm -f conftest.er1
23282 cat conftest.err >&5
23283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284 (exit $ac_status); } >/dev/null && {
23285 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23286 test ! -s conftest.err
23287 }; then
23288 ac_header_preproc=yes
23289else
23290 $as_echo "$as_me: failed program was:" >&5
23291sed 's/^/| /' conftest.$ac_ext >&5
23292
23293 ac_header_preproc=no
23294fi
12667 23295
23296rm -f conftest.err conftest.$ac_ext
23297{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23298$as_echo "$ac_header_preproc" >&6; }
23299
23300# So? What about this header?
23301case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23302 yes:no: )
23303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23304$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23306$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23307 ac_header_preproc=yes
23308 ;;
23309 no:yes:* )
23310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23311$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23313$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23315$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23317$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23319$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23321$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23322
23323 ;;
23324esac
23325{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23326$as_echo_n "checking for $ac_header... " >&6; }
23327if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23328 $as_echo_n "(cached) " >&6
12668else 23329else
12669 for ac_header in kerberos/des.h 23330 eval "$as_ac_Header=\$ac_header_preproc"
12670do : 23331fi
12671 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default" 23332ac_res=`eval 'as_val=${'$as_ac_Header'}
12672if test "x$ac_cv_header_kerberos_des_h" = x""yes; then : 23333 $as_echo "$as_val"'`
23334 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23335$as_echo "$ac_res" >&6; }
23336
23337fi
23338if test `eval 'as_val=${'$as_ac_Header'}
23339 $as_echo "$as_val"'` = yes; then
12673 cat >>confdefs.h <<_ACEOF 23340 cat >>confdefs.h <<_ACEOF
12674#define HAVE_KERBEROS_DES_H 1 23341#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12675_ACEOF 23342_ACEOF
12676 23343
12677fi 23344fi
@@ -12686,30 +23353,429 @@ fi
12686 23353
12687done 23354done
12688 23355
12689 for ac_header in krb.h 23356
12690do : 23357for ac_header in krb.h
12691 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default" 23358do
12692if test "x$ac_cv_header_krb_h" = x""yes; then : 23359as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23360if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23361 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23362$as_echo_n "checking for $ac_header... " >&6; }
23363if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23364 $as_echo_n "(cached) " >&6
23365fi
23366ac_res=`eval 'as_val=${'$as_ac_Header'}
23367 $as_echo "$as_val"'`
23368 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23369$as_echo "$ac_res" >&6; }
23370else
23371 # Is the header compilable?
23372{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23373$as_echo_n "checking $ac_header usability... " >&6; }
23374cat >conftest.$ac_ext <<_ACEOF
23375/* confdefs.h. */
23376_ACEOF
23377cat confdefs.h >>conftest.$ac_ext
23378cat >>conftest.$ac_ext <<_ACEOF
23379/* end confdefs.h. */
23380$ac_includes_default
23381#include <$ac_header>
23382_ACEOF
23383rm -f conftest.$ac_objext
23384if { (ac_try="$ac_compile"
23385case "(($ac_try" in
23386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23387 *) ac_try_echo=$ac_try;;
23388esac
23389eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23390$as_echo "$ac_try_echo") >&5
23391 (eval "$ac_compile") 2>conftest.er1
23392 ac_status=$?
23393 grep -v '^ *+' conftest.er1 >conftest.err
23394 rm -f conftest.er1
23395 cat conftest.err >&5
23396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397 (exit $ac_status); } && {
23398 test -z "$ac_c_werror_flag" ||
23399 test ! -s conftest.err
23400 } && test -s conftest.$ac_objext; then
23401 ac_header_compiler=yes
23402else
23403 $as_echo "$as_me: failed program was:" >&5
23404sed 's/^/| /' conftest.$ac_ext >&5
23405
23406 ac_header_compiler=no
23407fi
23408
23409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23410{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23411$as_echo "$ac_header_compiler" >&6; }
23412
23413# Is the header present?
23414{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23415$as_echo_n "checking $ac_header presence... " >&6; }
23416cat >conftest.$ac_ext <<_ACEOF
23417/* confdefs.h. */
23418_ACEOF
23419cat confdefs.h >>conftest.$ac_ext
23420cat >>conftest.$ac_ext <<_ACEOF
23421/* end confdefs.h. */
23422#include <$ac_header>
23423_ACEOF
23424if { (ac_try="$ac_cpp conftest.$ac_ext"
23425case "(($ac_try" in
23426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23427 *) ac_try_echo=$ac_try;;
23428esac
23429eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23430$as_echo "$ac_try_echo") >&5
23431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23432 ac_status=$?
23433 grep -v '^ *+' conftest.er1 >conftest.err
23434 rm -f conftest.er1
23435 cat conftest.err >&5
23436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437 (exit $ac_status); } >/dev/null && {
23438 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23439 test ! -s conftest.err
23440 }; then
23441 ac_header_preproc=yes
23442else
23443 $as_echo "$as_me: failed program was:" >&5
23444sed 's/^/| /' conftest.$ac_ext >&5
23445
23446 ac_header_preproc=no
23447fi
23448
23449rm -f conftest.err conftest.$ac_ext
23450{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23451$as_echo "$ac_header_preproc" >&6; }
23452
23453# So? What about this header?
23454case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23455 yes:no: )
23456 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23457$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23458 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23459$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23460 ac_header_preproc=yes
23461 ;;
23462 no:yes:* )
23463 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23464$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23465 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23466$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23467 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23468$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23469 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23470$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23471 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23472$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23473 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23474$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23475
23476 ;;
23477esac
23478{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23479$as_echo_n "checking for $ac_header... " >&6; }
23480if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23481 $as_echo_n "(cached) " >&6
23482else
23483 eval "$as_ac_Header=\$ac_header_preproc"
23484fi
23485ac_res=`eval 'as_val=${'$as_ac_Header'}
23486 $as_echo "$as_val"'`
23487 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23488$as_echo "$ac_res" >&6; }
23489
23490fi
23491if test `eval 'as_val=${'$as_ac_Header'}
23492 $as_echo "$as_val"'` = yes; then
12693 cat >>confdefs.h <<_ACEOF 23493 cat >>confdefs.h <<_ACEOF
12694#define HAVE_KRB_H 1 23494#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12695_ACEOF 23495_ACEOF
12696 23496
12697else 23497else
12698 for ac_header in kerberosIV/krb.h 23498
12699do : 23499for ac_header in kerberosIV/krb.h
12700 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default" 23500do
12701if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then : 23501as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23502if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23503 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23504$as_echo_n "checking for $ac_header... " >&6; }
23505if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23506 $as_echo_n "(cached) " >&6
23507fi
23508ac_res=`eval 'as_val=${'$as_ac_Header'}
23509 $as_echo "$as_val"'`
23510 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23511$as_echo "$ac_res" >&6; }
23512else
23513 # Is the header compilable?
23514{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23515$as_echo_n "checking $ac_header usability... " >&6; }
23516cat >conftest.$ac_ext <<_ACEOF
23517/* confdefs.h. */
23518_ACEOF
23519cat confdefs.h >>conftest.$ac_ext
23520cat >>conftest.$ac_ext <<_ACEOF
23521/* end confdefs.h. */
23522$ac_includes_default
23523#include <$ac_header>
23524_ACEOF
23525rm -f conftest.$ac_objext
23526if { (ac_try="$ac_compile"
23527case "(($ac_try" in
23528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23529 *) ac_try_echo=$ac_try;;
23530esac
23531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23532$as_echo "$ac_try_echo") >&5
23533 (eval "$ac_compile") 2>conftest.er1
23534 ac_status=$?
23535 grep -v '^ *+' conftest.er1 >conftest.err
23536 rm -f conftest.er1
23537 cat conftest.err >&5
23538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539 (exit $ac_status); } && {
23540 test -z "$ac_c_werror_flag" ||
23541 test ! -s conftest.err
23542 } && test -s conftest.$ac_objext; then
23543 ac_header_compiler=yes
23544else
23545 $as_echo "$as_me: failed program was:" >&5
23546sed 's/^/| /' conftest.$ac_ext >&5
23547
23548 ac_header_compiler=no
23549fi
23550
23551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23552{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23553$as_echo "$ac_header_compiler" >&6; }
23554
23555# Is the header present?
23556{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23557$as_echo_n "checking $ac_header presence... " >&6; }
23558cat >conftest.$ac_ext <<_ACEOF
23559/* confdefs.h. */
23560_ACEOF
23561cat confdefs.h >>conftest.$ac_ext
23562cat >>conftest.$ac_ext <<_ACEOF
23563/* end confdefs.h. */
23564#include <$ac_header>
23565_ACEOF
23566if { (ac_try="$ac_cpp conftest.$ac_ext"
23567case "(($ac_try" in
23568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23569 *) ac_try_echo=$ac_try;;
23570esac
23571eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23572$as_echo "$ac_try_echo") >&5
23573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23574 ac_status=$?
23575 grep -v '^ *+' conftest.er1 >conftest.err
23576 rm -f conftest.er1
23577 cat conftest.err >&5
23578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579 (exit $ac_status); } >/dev/null && {
23580 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23581 test ! -s conftest.err
23582 }; then
23583 ac_header_preproc=yes
23584else
23585 $as_echo "$as_me: failed program was:" >&5
23586sed 's/^/| /' conftest.$ac_ext >&5
23587
23588 ac_header_preproc=no
23589fi
23590
23591rm -f conftest.err conftest.$ac_ext
23592{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23593$as_echo "$ac_header_preproc" >&6; }
23594
23595# So? What about this header?
23596case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23597 yes:no: )
23598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23599$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23601$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23602 ac_header_preproc=yes
23603 ;;
23604 no:yes:* )
23605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23606$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23608$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23610$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23612$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23614$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23616$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23617
23618 ;;
23619esac
23620{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23621$as_echo_n "checking for $ac_header... " >&6; }
23622if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23623 $as_echo_n "(cached) " >&6
23624else
23625 eval "$as_ac_Header=\$ac_header_preproc"
23626fi
23627ac_res=`eval 'as_val=${'$as_ac_Header'}
23628 $as_echo "$as_val"'`
23629 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23630$as_echo "$ac_res" >&6; }
23631
23632fi
23633if test `eval 'as_val=${'$as_ac_Header'}
23634 $as_echo "$as_val"'` = yes; then
12702 cat >>confdefs.h <<_ACEOF 23635 cat >>confdefs.h <<_ACEOF
12703#define HAVE_KERBEROSIV_KRB_H 1 23636#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12704_ACEOF 23637_ACEOF
12705 23638
12706else 23639else
12707 for ac_header in kerberos/krb.h 23640
12708do : 23641for ac_header in kerberos/krb.h
12709 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default" 23642do
12710if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then : 23643as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23644if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23645 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23646$as_echo_n "checking for $ac_header... " >&6; }
23647if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23648 $as_echo_n "(cached) " >&6
23649fi
23650ac_res=`eval 'as_val=${'$as_ac_Header'}
23651 $as_echo "$as_val"'`
23652 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23653$as_echo "$ac_res" >&6; }
23654else
23655 # Is the header compilable?
23656{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23657$as_echo_n "checking $ac_header usability... " >&6; }
23658cat >conftest.$ac_ext <<_ACEOF
23659/* confdefs.h. */
23660_ACEOF
23661cat confdefs.h >>conftest.$ac_ext
23662cat >>conftest.$ac_ext <<_ACEOF
23663/* end confdefs.h. */
23664$ac_includes_default
23665#include <$ac_header>
23666_ACEOF
23667rm -f conftest.$ac_objext
23668if { (ac_try="$ac_compile"
23669case "(($ac_try" in
23670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23671 *) ac_try_echo=$ac_try;;
23672esac
23673eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23674$as_echo "$ac_try_echo") >&5
23675 (eval "$ac_compile") 2>conftest.er1
23676 ac_status=$?
23677 grep -v '^ *+' conftest.er1 >conftest.err
23678 rm -f conftest.er1
23679 cat conftest.err >&5
23680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681 (exit $ac_status); } && {
23682 test -z "$ac_c_werror_flag" ||
23683 test ! -s conftest.err
23684 } && test -s conftest.$ac_objext; then
23685 ac_header_compiler=yes
23686else
23687 $as_echo "$as_me: failed program was:" >&5
23688sed 's/^/| /' conftest.$ac_ext >&5
23689
23690 ac_header_compiler=no
23691fi
23692
23693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23694{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23695$as_echo "$ac_header_compiler" >&6; }
23696
23697# Is the header present?
23698{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23699$as_echo_n "checking $ac_header presence... " >&6; }
23700cat >conftest.$ac_ext <<_ACEOF
23701/* confdefs.h. */
23702_ACEOF
23703cat confdefs.h >>conftest.$ac_ext
23704cat >>conftest.$ac_ext <<_ACEOF
23705/* end confdefs.h. */
23706#include <$ac_header>
23707_ACEOF
23708if { (ac_try="$ac_cpp conftest.$ac_ext"
23709case "(($ac_try" in
23710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23711 *) ac_try_echo=$ac_try;;
23712esac
23713eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23714$as_echo "$ac_try_echo") >&5
23715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23716 ac_status=$?
23717 grep -v '^ *+' conftest.er1 >conftest.err
23718 rm -f conftest.er1
23719 cat conftest.err >&5
23720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721 (exit $ac_status); } >/dev/null && {
23722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23723 test ! -s conftest.err
23724 }; then
23725 ac_header_preproc=yes
23726else
23727 $as_echo "$as_me: failed program was:" >&5
23728sed 's/^/| /' conftest.$ac_ext >&5
23729
23730 ac_header_preproc=no
23731fi
23732
23733rm -f conftest.err conftest.$ac_ext
23734{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23735$as_echo "$ac_header_preproc" >&6; }
23736
23737# So? What about this header?
23738case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23739 yes:no: )
23740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23741$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23743$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23744 ac_header_preproc=yes
23745 ;;
23746 no:yes:* )
23747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23748$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23749 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23750$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23752$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23754$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23756$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23758$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23759
23760 ;;
23761esac
23762{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23763$as_echo_n "checking for $ac_header... " >&6; }
23764if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23765 $as_echo_n "(cached) " >&6
23766else
23767 eval "$as_ac_Header=\$ac_header_preproc"
23768fi
23769ac_res=`eval 'as_val=${'$as_ac_Header'}
23770 $as_echo "$as_val"'`
23771 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23772$as_echo "$ac_res" >&6; }
23773
23774fi
23775if test `eval 'as_val=${'$as_ac_Header'}
23776 $as_echo "$as_val"'` = yes; then
12711 cat >>confdefs.h <<_ACEOF 23777 cat >>confdefs.h <<_ACEOF
12712#define HAVE_KERBEROS_KRB_H 1 23778#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12713_ACEOF 23779_ACEOF
12714 23780
12715fi 23781fi
@@ -12725,12 +23791,145 @@ fi
12725done 23791done
12726 23792
12727 fi 23793 fi
12728 for ac_header in com_err.h 23794
12729do : 23795for ac_header in com_err.h
12730 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default" 23796do
12731if test "x$ac_cv_header_com_err_h" = x""yes; then : 23797as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23798if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23799 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23800$as_echo_n "checking for $ac_header... " >&6; }
23801if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23802 $as_echo_n "(cached) " >&6
23803fi
23804ac_res=`eval 'as_val=${'$as_ac_Header'}
23805 $as_echo "$as_val"'`
23806 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23807$as_echo "$ac_res" >&6; }
23808else
23809 # Is the header compilable?
23810{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23811$as_echo_n "checking $ac_header usability... " >&6; }
23812cat >conftest.$ac_ext <<_ACEOF
23813/* confdefs.h. */
23814_ACEOF
23815cat confdefs.h >>conftest.$ac_ext
23816cat >>conftest.$ac_ext <<_ACEOF
23817/* end confdefs.h. */
23818$ac_includes_default
23819#include <$ac_header>
23820_ACEOF
23821rm -f conftest.$ac_objext
23822if { (ac_try="$ac_compile"
23823case "(($ac_try" in
23824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23825 *) ac_try_echo=$ac_try;;
23826esac
23827eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23828$as_echo "$ac_try_echo") >&5
23829 (eval "$ac_compile") 2>conftest.er1
23830 ac_status=$?
23831 grep -v '^ *+' conftest.er1 >conftest.err
23832 rm -f conftest.er1
23833 cat conftest.err >&5
23834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835 (exit $ac_status); } && {
23836 test -z "$ac_c_werror_flag" ||
23837 test ! -s conftest.err
23838 } && test -s conftest.$ac_objext; then
23839 ac_header_compiler=yes
23840else
23841 $as_echo "$as_me: failed program was:" >&5
23842sed 's/^/| /' conftest.$ac_ext >&5
23843
23844 ac_header_compiler=no
23845fi
23846
23847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23848{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23849$as_echo "$ac_header_compiler" >&6; }
23850
23851# Is the header present?
23852{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23853$as_echo_n "checking $ac_header presence... " >&6; }
23854cat >conftest.$ac_ext <<_ACEOF
23855/* confdefs.h. */
23856_ACEOF
23857cat confdefs.h >>conftest.$ac_ext
23858cat >>conftest.$ac_ext <<_ACEOF
23859/* end confdefs.h. */
23860#include <$ac_header>
23861_ACEOF
23862if { (ac_try="$ac_cpp conftest.$ac_ext"
23863case "(($ac_try" in
23864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23865 *) ac_try_echo=$ac_try;;
23866esac
23867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23868$as_echo "$ac_try_echo") >&5
23869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23870 ac_status=$?
23871 grep -v '^ *+' conftest.er1 >conftest.err
23872 rm -f conftest.er1
23873 cat conftest.err >&5
23874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23875 (exit $ac_status); } >/dev/null && {
23876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23877 test ! -s conftest.err
23878 }; then
23879 ac_header_preproc=yes
23880else
23881 $as_echo "$as_me: failed program was:" >&5
23882sed 's/^/| /' conftest.$ac_ext >&5
23883
23884 ac_header_preproc=no
23885fi
23886
23887rm -f conftest.err conftest.$ac_ext
23888{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23889$as_echo "$ac_header_preproc" >&6; }
23890
23891# So? What about this header?
23892case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23893 yes:no: )
23894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23895$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23897$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23898 ac_header_preproc=yes
23899 ;;
23900 no:yes:* )
23901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23902$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23904$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23906$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23908$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23910$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23912$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23913
23914 ;;
23915esac
23916{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23917$as_echo_n "checking for $ac_header... " >&6; }
23918if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23919 $as_echo_n "(cached) " >&6
23920else
23921 eval "$as_ac_Header=\$ac_header_preproc"
23922fi
23923ac_res=`eval 'as_val=${'$as_ac_Header'}
23924 $as_echo "$as_val"'`
23925 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23926$as_echo "$ac_res" >&6; }
23927
23928fi
23929if test `eval 'as_val=${'$as_ac_Header'}
23930 $as_echo "$as_val"'` = yes; then
12732 cat >>confdefs.h <<_ACEOF 23931 cat >>confdefs.h <<_ACEOF
12733#define HAVE_COM_ERR_H 1 23932#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12734_ACEOF 23933_ACEOF
12735 23934
12736fi 23935fi
@@ -12747,14 +23946,19 @@ fi
12747 23946
12748# Solaris requires -lintl if you want strerror (which calls dgettext) 23947# Solaris requires -lintl if you want strerror (which calls dgettext)
12749# to return localized messages. 23948# to return localized messages.
12750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5 23949
23950{ $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
12751$as_echo_n "checking for dgettext in -lintl... " >&6; } 23951$as_echo_n "checking for dgettext in -lintl... " >&6; }
12752if test "${ac_cv_lib_intl_dgettext+set}" = set; then : 23952if test "${ac_cv_lib_intl_dgettext+set}" = set; then
12753 $as_echo_n "(cached) " >&6 23953 $as_echo_n "(cached) " >&6
12754else 23954else
12755 ac_check_lib_save_LIBS=$LIBS 23955 ac_check_lib_save_LIBS=$LIBS
12756LIBS="-lintl $LIBS" 23956LIBS="-lintl $LIBS"
12757cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23957cat >conftest.$ac_ext <<_ACEOF
23958/* confdefs.h. */
23959_ACEOF
23960cat confdefs.h >>conftest.$ac_ext
23961cat >>conftest.$ac_ext <<_ACEOF
12758/* end confdefs.h. */ 23962/* end confdefs.h. */
12759 23963
12760/* Override any GCC internal prototype to avoid an error. 23964/* Override any GCC internal prototype to avoid an error.
@@ -12772,18 +23976,43 @@ return dgettext ();
12772 return 0; 23976 return 0;
12773} 23977}
12774_ACEOF 23978_ACEOF
12775if ac_fn_c_try_link "$LINENO"; then : 23979rm -f conftest.$ac_objext conftest$ac_exeext
23980if { (ac_try="$ac_link"
23981case "(($ac_try" in
23982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23983 *) ac_try_echo=$ac_try;;
23984esac
23985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23986$as_echo "$ac_try_echo") >&5
23987 (eval "$ac_link") 2>conftest.er1
23988 ac_status=$?
23989 grep -v '^ *+' conftest.er1 >conftest.err
23990 rm -f conftest.er1
23991 cat conftest.err >&5
23992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23993 (exit $ac_status); } && {
23994 test -z "$ac_c_werror_flag" ||
23995 test ! -s conftest.err
23996 } && test -s conftest$ac_exeext && {
23997 test "$cross_compiling" = yes ||
23998 $as_test_x conftest$ac_exeext
23999 }; then
12776 ac_cv_lib_intl_dgettext=yes 24000 ac_cv_lib_intl_dgettext=yes
12777else 24001else
12778 ac_cv_lib_intl_dgettext=no 24002 $as_echo "$as_me: failed program was:" >&5
24003sed 's/^/| /' conftest.$ac_ext >&5
24004
24005 ac_cv_lib_intl_dgettext=no
12779fi 24006fi
12780rm -f core conftest.err conftest.$ac_objext \ 24007
12781 conftest$ac_exeext conftest.$ac_ext 24008rm -rf conftest.dSYM
24009rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24010 conftest$ac_exeext conftest.$ac_ext
12782LIBS=$ac_check_lib_save_LIBS 24011LIBS=$ac_check_lib_save_LIBS
12783fi 24012fi
12784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5 24013{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
12785$as_echo "$ac_cv_lib_intl_dgettext" >&6; } 24014$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
12786if test "x$ac_cv_lib_intl_dgettext" = x""yes; then : 24015if test $ac_cv_lib_intl_dgettext = yes; then
12787 cat >>confdefs.h <<_ACEOF 24016 cat >>confdefs.h <<_ACEOF
12788#define HAVE_LIBINTL 1 24017#define HAVE_LIBINTL 1
12789_ACEOF 24018_ACEOF
@@ -12793,17 +24022,21 @@ _ACEOF
12793fi 24022fi
12794 24023
12795 24024
12796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5 24025{ $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
12797$as_echo_n "checking whether localtime caches TZ... " >&6; } 24026$as_echo_n "checking whether localtime caches TZ... " >&6; }
12798if test "${emacs_cv_localtime_cache+set}" = set; then : 24027if test "${emacs_cv_localtime_cache+set}" = set; then
12799 $as_echo_n "(cached) " >&6 24028 $as_echo_n "(cached) " >&6
12800else 24029else
12801 if test x$ac_cv_func_tzset = xyes; then 24030 if test x$ac_cv_func_tzset = xyes; then
12802if test "$cross_compiling" = yes; then : 24031if test "$cross_compiling" = yes; then
12803 # If we have tzset, assume the worst when cross-compiling. 24032 # If we have tzset, assume the worst when cross-compiling.
12804emacs_cv_localtime_cache=yes 24033emacs_cv_localtime_cache=yes
12805else 24034else
12806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24035 cat >conftest.$ac_ext <<_ACEOF
24036/* confdefs.h. */
24037_ACEOF
24038cat confdefs.h >>conftest.$ac_ext
24039cat >>conftest.$ac_ext <<_ACEOF
12807/* end confdefs.h. */ 24040/* end confdefs.h. */
12808#include <time.h> 24041#include <time.h>
12809extern char **environ; 24042extern char **environ;
@@ -12835,48 +24068,170 @@ main()
12835 exit (0); 24068 exit (0);
12836} 24069}
12837_ACEOF 24070_ACEOF
12838if ac_fn_c_try_run "$LINENO"; then : 24071rm -f conftest$ac_exeext
24072if { (ac_try="$ac_link"
24073case "(($ac_try" in
24074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24075 *) ac_try_echo=$ac_try;;
24076esac
24077eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24078$as_echo "$ac_try_echo") >&5
24079 (eval "$ac_link") 2>&5
24080 ac_status=$?
24081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24082 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24083 { (case "(($ac_try" in
24084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24085 *) ac_try_echo=$ac_try;;
24086esac
24087eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24088$as_echo "$ac_try_echo") >&5
24089 (eval "$ac_try") 2>&5
24090 ac_status=$?
24091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24092 (exit $ac_status); }; }; then
12839 emacs_cv_localtime_cache=no 24093 emacs_cv_localtime_cache=no
12840else 24094else
12841 emacs_cv_localtime_cache=yes 24095 $as_echo "$as_me: program exited with status $ac_status" >&5
24096$as_echo "$as_me: failed program was:" >&5
24097sed 's/^/| /' conftest.$ac_ext >&5
24098
24099( exit $ac_status )
24100emacs_cv_localtime_cache=yes
12842fi 24101fi
12843rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24102rm -rf conftest.dSYM
12844 conftest.$ac_objext conftest.beam conftest.$ac_ext 24103rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12845fi 24104fi
12846 24105
24106
12847else 24107else
12848 # If we lack tzset, report that localtime does not cache TZ, 24108 # If we lack tzset, report that localtime does not cache TZ,
12849 # since we can't invalidate the cache if we don't have tzset. 24109 # since we can't invalidate the cache if we don't have tzset.
12850 emacs_cv_localtime_cache=no 24110 emacs_cv_localtime_cache=no
12851fi 24111fi
12852fi 24112fi
12853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5 24113{ $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
12854$as_echo "$emacs_cv_localtime_cache" >&6; } 24114$as_echo "$emacs_cv_localtime_cache" >&6; }
12855if test $emacs_cv_localtime_cache = yes; then 24115if test $emacs_cv_localtime_cache = yes; then
12856 24116
12857$as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h 24117cat >>confdefs.h <<\_ACEOF
24118#define LOCALTIME_CACHE 1
24119_ACEOF
12858 24120
12859fi 24121fi
12860 24122
12861if test "x$HAVE_TIMEVAL" = xyes; then 24123if test "x$HAVE_TIMEVAL" = xyes; then
12862 for ac_func in gettimeofday 24124
12863do : 24125for ac_func in gettimeofday
12864 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 24126do
12865if test "x$ac_cv_func_gettimeofday" = x""yes; then : 24127as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24128{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24129$as_echo_n "checking for $ac_func... " >&6; }
24130if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24131 $as_echo_n "(cached) " >&6
24132else
24133 cat >conftest.$ac_ext <<_ACEOF
24134/* confdefs.h. */
24135_ACEOF
24136cat confdefs.h >>conftest.$ac_ext
24137cat >>conftest.$ac_ext <<_ACEOF
24138/* end confdefs.h. */
24139/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24141#define $ac_func innocuous_$ac_func
24142
24143/* System header to define __stub macros and hopefully few prototypes,
24144 which can conflict with char $ac_func (); below.
24145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24146 <limits.h> exists even on freestanding compilers. */
24147
24148#ifdef __STDC__
24149# include <limits.h>
24150#else
24151# include <assert.h>
24152#endif
24153
24154#undef $ac_func
24155
24156/* Override any GCC internal prototype to avoid an error.
24157 Use char because int might match the return type of a GCC
24158 builtin and then its argument prototype would still apply. */
24159#ifdef __cplusplus
24160extern "C"
24161#endif
24162char $ac_func ();
24163/* The GNU C library defines this for functions which it implements
24164 to always fail with ENOSYS. Some functions are actually named
24165 something starting with __ and the normal name is an alias. */
24166#if defined __stub_$ac_func || defined __stub___$ac_func
24167choke me
24168#endif
24169
24170int
24171main ()
24172{
24173return $ac_func ();
24174 ;
24175 return 0;
24176}
24177_ACEOF
24178rm -f conftest.$ac_objext conftest$ac_exeext
24179if { (ac_try="$ac_link"
24180case "(($ac_try" in
24181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24182 *) ac_try_echo=$ac_try;;
24183esac
24184eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24185$as_echo "$ac_try_echo") >&5
24186 (eval "$ac_link") 2>conftest.er1
24187 ac_status=$?
24188 grep -v '^ *+' conftest.er1 >conftest.err
24189 rm -f conftest.er1
24190 cat conftest.err >&5
24191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24192 (exit $ac_status); } && {
24193 test -z "$ac_c_werror_flag" ||
24194 test ! -s conftest.err
24195 } && test -s conftest$ac_exeext && {
24196 test "$cross_compiling" = yes ||
24197 $as_test_x conftest$ac_exeext
24198 }; then
24199 eval "$as_ac_var=yes"
24200else
24201 $as_echo "$as_me: failed program was:" >&5
24202sed 's/^/| /' conftest.$ac_ext >&5
24203
24204 eval "$as_ac_var=no"
24205fi
24206
24207rm -rf conftest.dSYM
24208rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24209 conftest$ac_exeext conftest.$ac_ext
24210fi
24211ac_res=`eval 'as_val=${'$as_ac_var'}
24212 $as_echo "$as_val"'`
24213 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24214$as_echo "$ac_res" >&6; }
24215if test `eval 'as_val=${'$as_ac_var'}
24216 $as_echo "$as_val"'` = yes; then
12866 cat >>confdefs.h <<_ACEOF 24217 cat >>confdefs.h <<_ACEOF
12867#define HAVE_GETTIMEOFDAY 1 24218#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12868_ACEOF 24219_ACEOF
12869 24220
12870fi 24221fi
12871done 24222done
12872 24223
12873 if test $ac_cv_func_gettimeofday = yes; then 24224 if test $ac_cv_func_gettimeofday = yes; then
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5 24225 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
12875$as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; } 24226$as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
12876if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then : 24227if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
12877 $as_echo_n "(cached) " >&6 24228 $as_echo_n "(cached) " >&6
12878else 24229else
12879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24230 cat >conftest.$ac_ext <<_ACEOF
24231/* confdefs.h. */
24232_ACEOF
24233cat confdefs.h >>conftest.$ac_ext
24234cat >>conftest.$ac_ext <<_ACEOF
12880/* end confdefs.h. */ 24235/* end confdefs.h. */
12881 24236
12882#ifdef TIME_WITH_SYS_TIME 24237#ifdef TIME_WITH_SYS_TIME
@@ -12898,35 +24253,268 @@ struct timeval time;
12898 return 0; 24253 return 0;
12899} 24254}
12900_ACEOF 24255_ACEOF
12901if ac_fn_c_try_compile "$LINENO"; then : 24256rm -f conftest.$ac_objext
24257if { (ac_try="$ac_compile"
24258case "(($ac_try" in
24259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24260 *) ac_try_echo=$ac_try;;
24261esac
24262eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24263$as_echo "$ac_try_echo") >&5
24264 (eval "$ac_compile") 2>conftest.er1
24265 ac_status=$?
24266 grep -v '^ *+' conftest.er1 >conftest.err
24267 rm -f conftest.er1
24268 cat conftest.err >&5
24269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270 (exit $ac_status); } && {
24271 test -z "$ac_c_werror_flag" ||
24272 test ! -s conftest.err
24273 } && test -s conftest.$ac_objext; then
12902 emacs_cv_gettimeofday_two_arguments=yes 24274 emacs_cv_gettimeofday_two_arguments=yes
12903else 24275else
12904 emacs_cv_gettimeofday_two_arguments=no 24276 $as_echo "$as_me: failed program was:" >&5
24277sed 's/^/| /' conftest.$ac_ext >&5
24278
24279 emacs_cv_gettimeofday_two_arguments=no
12905fi 24280fi
24281
12906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12907fi 24283fi
12908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5 24284{ $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
12909$as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; } 24285$as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
12910 if test $emacs_cv_gettimeofday_two_arguments = no; then 24286 if test $emacs_cv_gettimeofday_two_arguments = no; then
12911 24287
12912$as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h 24288cat >>confdefs.h <<\_ACEOF
24289#define GETTIMEOFDAY_ONE_ARGUMENT 1
24290_ACEOF
12913 24291
12914 fi 24292 fi
12915 fi 24293 fi
12916fi 24294fi
12917 24295
12918ok_so_far=yes 24296ok_so_far=yes
12919ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" 24297{ $as_echo "$as_me:$LINENO: checking for socket" >&5
12920if test "x$ac_cv_func_socket" = x""yes; then : 24298$as_echo_n "checking for socket... " >&6; }
24299if test "${ac_cv_func_socket+set}" = set; then
24300 $as_echo_n "(cached) " >&6
24301else
24302 cat >conftest.$ac_ext <<_ACEOF
24303/* confdefs.h. */
24304_ACEOF
24305cat confdefs.h >>conftest.$ac_ext
24306cat >>conftest.$ac_ext <<_ACEOF
24307/* end confdefs.h. */
24308/* Define socket to an innocuous variant, in case <limits.h> declares socket.
24309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24310#define socket innocuous_socket
24311
24312/* System header to define __stub macros and hopefully few prototypes,
24313 which can conflict with char socket (); below.
24314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24315 <limits.h> exists even on freestanding compilers. */
24316
24317#ifdef __STDC__
24318# include <limits.h>
24319#else
24320# include <assert.h>
24321#endif
24322
24323#undef socket
24324
24325/* Override any GCC internal prototype to avoid an error.
24326 Use char because int might match the return type of a GCC
24327 builtin and then its argument prototype would still apply. */
24328#ifdef __cplusplus
24329extern "C"
24330#endif
24331char socket ();
24332/* The GNU C library defines this for functions which it implements
24333 to always fail with ENOSYS. Some functions are actually named
24334 something starting with __ and the normal name is an alias. */
24335#if defined __stub_socket || defined __stub___socket
24336choke me
24337#endif
24338
24339int
24340main ()
24341{
24342return socket ();
24343 ;
24344 return 0;
24345}
24346_ACEOF
24347rm -f conftest.$ac_objext conftest$ac_exeext
24348if { (ac_try="$ac_link"
24349case "(($ac_try" in
24350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24351 *) ac_try_echo=$ac_try;;
24352esac
24353eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24354$as_echo "$ac_try_echo") >&5
24355 (eval "$ac_link") 2>conftest.er1
24356 ac_status=$?
24357 grep -v '^ *+' conftest.er1 >conftest.err
24358 rm -f conftest.er1
24359 cat conftest.err >&5
24360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24361 (exit $ac_status); } && {
24362 test -z "$ac_c_werror_flag" ||
24363 test ! -s conftest.err
24364 } && test -s conftest$ac_exeext && {
24365 test "$cross_compiling" = yes ||
24366 $as_test_x conftest$ac_exeext
24367 }; then
24368 ac_cv_func_socket=yes
24369else
24370 $as_echo "$as_me: failed program was:" >&5
24371sed 's/^/| /' conftest.$ac_ext >&5
24372
24373 ac_cv_func_socket=no
24374fi
12921 24375
24376rm -rf conftest.dSYM
24377rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24378 conftest$ac_exeext conftest.$ac_ext
24379fi
24380{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24381$as_echo "$ac_cv_func_socket" >&6; }
24382if test $ac_cv_func_socket = yes; then
24383 :
12922else 24384else
12923 ok_so_far=no 24385 ok_so_far=no
12924fi 24386fi
12925 24387
12926if test $ok_so_far = yes; then 24388if test $ok_so_far = yes; then
12927 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" 24389 if test "${ac_cv_header_netinet_in_h+set}" = set; then
12928if test "x$ac_cv_header_netinet_in_h" = x""yes; then : 24390 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24391$as_echo_n "checking for netinet/in.h... " >&6; }
24392if test "${ac_cv_header_netinet_in_h+set}" = set; then
24393 $as_echo_n "(cached) " >&6
24394fi
24395{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24396$as_echo "$ac_cv_header_netinet_in_h" >&6; }
24397else
24398 # Is the header compilable?
24399{ $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24400$as_echo_n "checking netinet/in.h usability... " >&6; }
24401cat >conftest.$ac_ext <<_ACEOF
24402/* confdefs.h. */
24403_ACEOF
24404cat confdefs.h >>conftest.$ac_ext
24405cat >>conftest.$ac_ext <<_ACEOF
24406/* end confdefs.h. */
24407$ac_includes_default
24408#include <netinet/in.h>
24409_ACEOF
24410rm -f conftest.$ac_objext
24411if { (ac_try="$ac_compile"
24412case "(($ac_try" in
24413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24414 *) ac_try_echo=$ac_try;;
24415esac
24416eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24417$as_echo "$ac_try_echo") >&5
24418 (eval "$ac_compile") 2>conftest.er1
24419 ac_status=$?
24420 grep -v '^ *+' conftest.er1 >conftest.err
24421 rm -f conftest.er1
24422 cat conftest.err >&5
24423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424 (exit $ac_status); } && {
24425 test -z "$ac_c_werror_flag" ||
24426 test ! -s conftest.err
24427 } && test -s conftest.$ac_objext; then
24428 ac_header_compiler=yes
24429else
24430 $as_echo "$as_me: failed program was:" >&5
24431sed 's/^/| /' conftest.$ac_ext >&5
24432
24433 ac_header_compiler=no
24434fi
24435
24436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24437{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24438$as_echo "$ac_header_compiler" >&6; }
24439
24440# Is the header present?
24441{ $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24442$as_echo_n "checking netinet/in.h presence... " >&6; }
24443cat >conftest.$ac_ext <<_ACEOF
24444/* confdefs.h. */
24445_ACEOF
24446cat confdefs.h >>conftest.$ac_ext
24447cat >>conftest.$ac_ext <<_ACEOF
24448/* end confdefs.h. */
24449#include <netinet/in.h>
24450_ACEOF
24451if { (ac_try="$ac_cpp conftest.$ac_ext"
24452case "(($ac_try" in
24453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24454 *) ac_try_echo=$ac_try;;
24455esac
24456eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24457$as_echo "$ac_try_echo") >&5
24458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24459 ac_status=$?
24460 grep -v '^ *+' conftest.er1 >conftest.err
24461 rm -f conftest.er1
24462 cat conftest.err >&5
24463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24464 (exit $ac_status); } >/dev/null && {
24465 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24466 test ! -s conftest.err
24467 }; then
24468 ac_header_preproc=yes
24469else
24470 $as_echo "$as_me: failed program was:" >&5
24471sed 's/^/| /' conftest.$ac_ext >&5
24472
24473 ac_header_preproc=no
24474fi
24475
24476rm -f conftest.err conftest.$ac_ext
24477{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24478$as_echo "$ac_header_preproc" >&6; }
24479
24480# So? What about this header?
24481case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24482 yes:no: )
24483 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24484$as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24485 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24486$as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24487 ac_header_preproc=yes
24488 ;;
24489 no:yes:* )
24490 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24491$as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24492 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24493$as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24494 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24495$as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24496 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24497$as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24498 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24499$as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24500 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24501$as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24502
24503 ;;
24504esac
24505{ $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24506$as_echo_n "checking for netinet/in.h... " >&6; }
24507if test "${ac_cv_header_netinet_in_h+set}" = set; then
24508 $as_echo_n "(cached) " >&6
24509else
24510 ac_cv_header_netinet_in_h=$ac_header_preproc
24511fi
24512{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24513$as_echo "$ac_cv_header_netinet_in_h" >&6; }
12929 24514
24515fi
24516if test $ac_cv_header_netinet_in_h = yes; then
24517 :
12930else 24518else
12931 ok_so_far=no 24519 ok_so_far=no
12932fi 24520fi
@@ -12934,9 +24522,135 @@ fi
12934 24522
12935fi 24523fi
12936if test $ok_so_far = yes; then 24524if test $ok_so_far = yes; then
12937 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" 24525 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
12938if test "x$ac_cv_header_arpa_inet_h" = x""yes; then : 24526 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24527$as_echo_n "checking for arpa/inet.h... " >&6; }
24528if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24529 $as_echo_n "(cached) " >&6
24530fi
24531{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24532$as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24533else
24534 # Is the header compilable?
24535{ $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24536$as_echo_n "checking arpa/inet.h usability... " >&6; }
24537cat >conftest.$ac_ext <<_ACEOF
24538/* confdefs.h. */
24539_ACEOF
24540cat confdefs.h >>conftest.$ac_ext
24541cat >>conftest.$ac_ext <<_ACEOF
24542/* end confdefs.h. */
24543$ac_includes_default
24544#include <arpa/inet.h>
24545_ACEOF
24546rm -f conftest.$ac_objext
24547if { (ac_try="$ac_compile"
24548case "(($ac_try" in
24549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24550 *) ac_try_echo=$ac_try;;
24551esac
24552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24553$as_echo "$ac_try_echo") >&5
24554 (eval "$ac_compile") 2>conftest.er1
24555 ac_status=$?
24556 grep -v '^ *+' conftest.er1 >conftest.err
24557 rm -f conftest.er1
24558 cat conftest.err >&5
24559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24560 (exit $ac_status); } && {
24561 test -z "$ac_c_werror_flag" ||
24562 test ! -s conftest.err
24563 } && test -s conftest.$ac_objext; then
24564 ac_header_compiler=yes
24565else
24566 $as_echo "$as_me: failed program was:" >&5
24567sed 's/^/| /' conftest.$ac_ext >&5
24568
24569 ac_header_compiler=no
24570fi
24571
24572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24573{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24574$as_echo "$ac_header_compiler" >&6; }
24575
24576# Is the header present?
24577{ $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
24578$as_echo_n "checking arpa/inet.h presence... " >&6; }
24579cat >conftest.$ac_ext <<_ACEOF
24580/* confdefs.h. */
24581_ACEOF
24582cat confdefs.h >>conftest.$ac_ext
24583cat >>conftest.$ac_ext <<_ACEOF
24584/* end confdefs.h. */
24585#include <arpa/inet.h>
24586_ACEOF
24587if { (ac_try="$ac_cpp conftest.$ac_ext"
24588case "(($ac_try" in
24589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24590 *) ac_try_echo=$ac_try;;
24591esac
24592eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24593$as_echo "$ac_try_echo") >&5
24594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24595 ac_status=$?
24596 grep -v '^ *+' conftest.er1 >conftest.err
24597 rm -f conftest.er1
24598 cat conftest.err >&5
24599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24600 (exit $ac_status); } >/dev/null && {
24601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24602 test ! -s conftest.err
24603 }; then
24604 ac_header_preproc=yes
24605else
24606 $as_echo "$as_me: failed program was:" >&5
24607sed 's/^/| /' conftest.$ac_ext >&5
24608
24609 ac_header_preproc=no
24610fi
24611
24612rm -f conftest.err conftest.$ac_ext
24613{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24614$as_echo "$ac_header_preproc" >&6; }
24615
24616# So? What about this header?
24617case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24618 yes:no: )
24619 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24620$as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24621 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24622$as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24623 ac_header_preproc=yes
24624 ;;
24625 no:yes:* )
24626 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24627$as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24628 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24629$as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24630 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24631$as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24632 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24633$as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24634 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24635$as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24636 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24637$as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24638
24639 ;;
24640esac
24641{ $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24642$as_echo_n "checking for arpa/inet.h... " >&6; }
24643if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24644 $as_echo_n "(cached) " >&6
24645else
24646 ac_cv_header_arpa_inet_h=$ac_header_preproc
24647fi
24648{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24649$as_echo "$ac_cv_header_arpa_inet_h" >&6; }
12939 24650
24651fi
24652if test $ac_cv_header_arpa_inet_h = yes; then
24653 :
12940else 24654else
12941 ok_so_far=no 24655 ok_so_far=no
12942fi 24656fi
@@ -12945,16 +24659,151 @@ fi
12945fi 24659fi
12946if test $ok_so_far = yes; then 24660if test $ok_so_far = yes; then
12947 24661
12948$as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h 24662cat >>confdefs.h <<\_ACEOF
24663#define HAVE_INET_SOCKETS 1
24664_ACEOF
12949 24665
12950fi 24666fi
12951 24667
24668
12952for ac_header in sys/ioctl.h 24669for ac_header in sys/ioctl.h
12953do : 24670do
12954 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 24671as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12955if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then : 24672if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24673 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24674$as_echo_n "checking for $ac_header... " >&6; }
24675if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24676 $as_echo_n "(cached) " >&6
24677fi
24678ac_res=`eval 'as_val=${'$as_ac_Header'}
24679 $as_echo "$as_val"'`
24680 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24681$as_echo "$ac_res" >&6; }
24682else
24683 # Is the header compilable?
24684{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24685$as_echo_n "checking $ac_header usability... " >&6; }
24686cat >conftest.$ac_ext <<_ACEOF
24687/* confdefs.h. */
24688_ACEOF
24689cat confdefs.h >>conftest.$ac_ext
24690cat >>conftest.$ac_ext <<_ACEOF
24691/* end confdefs.h. */
24692$ac_includes_default
24693#include <$ac_header>
24694_ACEOF
24695rm -f conftest.$ac_objext
24696if { (ac_try="$ac_compile"
24697case "(($ac_try" in
24698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24699 *) ac_try_echo=$ac_try;;
24700esac
24701eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24702$as_echo "$ac_try_echo") >&5
24703 (eval "$ac_compile") 2>conftest.er1
24704 ac_status=$?
24705 grep -v '^ *+' conftest.er1 >conftest.err
24706 rm -f conftest.er1
24707 cat conftest.err >&5
24708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24709 (exit $ac_status); } && {
24710 test -z "$ac_c_werror_flag" ||
24711 test ! -s conftest.err
24712 } && test -s conftest.$ac_objext; then
24713 ac_header_compiler=yes
24714else
24715 $as_echo "$as_me: failed program was:" >&5
24716sed 's/^/| /' conftest.$ac_ext >&5
24717
24718 ac_header_compiler=no
24719fi
24720
24721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24722{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24723$as_echo "$ac_header_compiler" >&6; }
24724
24725# Is the header present?
24726{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24727$as_echo_n "checking $ac_header presence... " >&6; }
24728cat >conftest.$ac_ext <<_ACEOF
24729/* confdefs.h. */
24730_ACEOF
24731cat confdefs.h >>conftest.$ac_ext
24732cat >>conftest.$ac_ext <<_ACEOF
24733/* end confdefs.h. */
24734#include <$ac_header>
24735_ACEOF
24736if { (ac_try="$ac_cpp conftest.$ac_ext"
24737case "(($ac_try" in
24738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24739 *) ac_try_echo=$ac_try;;
24740esac
24741eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24742$as_echo "$ac_try_echo") >&5
24743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24744 ac_status=$?
24745 grep -v '^ *+' conftest.er1 >conftest.err
24746 rm -f conftest.er1
24747 cat conftest.err >&5
24748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749 (exit $ac_status); } >/dev/null && {
24750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24751 test ! -s conftest.err
24752 }; then
24753 ac_header_preproc=yes
24754else
24755 $as_echo "$as_me: failed program was:" >&5
24756sed 's/^/| /' conftest.$ac_ext >&5
24757
24758 ac_header_preproc=no
24759fi
24760
24761rm -f conftest.err conftest.$ac_ext
24762{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24763$as_echo "$ac_header_preproc" >&6; }
24764
24765# So? What about this header?
24766case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24767 yes:no: )
24768 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24769$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24771$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24772 ac_header_preproc=yes
24773 ;;
24774 no:yes:* )
24775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24776$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24778$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24780$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24782$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24784$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24786$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24787
24788 ;;
24789esac
24790{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24791$as_echo_n "checking for $ac_header... " >&6; }
24792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24793 $as_echo_n "(cached) " >&6
24794else
24795 eval "$as_ac_Header=\$ac_header_preproc"
24796fi
24797ac_res=`eval 'as_val=${'$as_ac_Header'}
24798 $as_echo "$as_val"'`
24799 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24800$as_echo "$ac_res" >&6; }
24801
24802fi
24803if test `eval 'as_val=${'$as_ac_Header'}
24804 $as_echo "$as_val"'` = yes; then
12956 cat >>confdefs.h <<_ACEOF 24805 cat >>confdefs.h <<_ACEOF
12957#define HAVE_SYS_IOCTL_H 1 24806#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12958_ACEOF 24807_ACEOF
12959 24808
12960fi 24809fi
@@ -12964,26 +24813,123 @@ done
12964 24813
12965if test -f /usr/lpp/X11/bin/smt.exp; then 24814if test -f /usr/lpp/X11/bin/smt.exp; then
12966 24815
12967$as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h 24816cat >>confdefs.h <<\_ACEOF
24817#define HAVE_AIX_SMT_EXP 1
24818_ACEOF
12968 24819
12969fi 24820fi
12970 24821
12971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5 24822{ $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
12972$as_echo_n "checking whether system supports dynamic ptys... " >&6; } 24823$as_echo_n "checking whether system supports dynamic ptys... " >&6; }
12973if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then 24824if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24825 { $as_echo "$as_me:$LINENO: result: yes" >&5
12975$as_echo "yes" >&6; } 24826$as_echo "yes" >&6; }
12976 24827
12977$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h 24828cat >>confdefs.h <<\_ACEOF
24829#define HAVE_DEV_PTMX 1
24830_ACEOF
12978 24831
12979else 24832else
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24833 { $as_echo "$as_me:$LINENO: result: no" >&5
12981$as_echo "no" >&6; } 24834$as_echo "no" >&6; }
12982fi 24835fi
12983 24836
12984ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 24837{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
12985if test "x$ac_cv_type_pid_t" = x""yes; then : 24838$as_echo_n "checking for pid_t... " >&6; }
24839if test "${ac_cv_type_pid_t+set}" = set; then
24840 $as_echo_n "(cached) " >&6
24841else
24842 ac_cv_type_pid_t=no
24843cat >conftest.$ac_ext <<_ACEOF
24844/* confdefs.h. */
24845_ACEOF
24846cat confdefs.h >>conftest.$ac_ext
24847cat >>conftest.$ac_ext <<_ACEOF
24848/* end confdefs.h. */
24849$ac_includes_default
24850int
24851main ()
24852{
24853if (sizeof (pid_t))
24854 return 0;
24855 ;
24856 return 0;
24857}
24858_ACEOF
24859rm -f conftest.$ac_objext
24860if { (ac_try="$ac_compile"
24861case "(($ac_try" in
24862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24863 *) ac_try_echo=$ac_try;;
24864esac
24865eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24866$as_echo "$ac_try_echo") >&5
24867 (eval "$ac_compile") 2>conftest.er1
24868 ac_status=$?
24869 grep -v '^ *+' conftest.er1 >conftest.err
24870 rm -f conftest.er1
24871 cat conftest.err >&5
24872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24873 (exit $ac_status); } && {
24874 test -z "$ac_c_werror_flag" ||
24875 test ! -s conftest.err
24876 } && test -s conftest.$ac_objext; then
24877 cat >conftest.$ac_ext <<_ACEOF
24878/* confdefs.h. */
24879_ACEOF
24880cat confdefs.h >>conftest.$ac_ext
24881cat >>conftest.$ac_ext <<_ACEOF
24882/* end confdefs.h. */
24883$ac_includes_default
24884int
24885main ()
24886{
24887if (sizeof ((pid_t)))
24888 return 0;
24889 ;
24890 return 0;
24891}
24892_ACEOF
24893rm -f conftest.$ac_objext
24894if { (ac_try="$ac_compile"
24895case "(($ac_try" in
24896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24897 *) ac_try_echo=$ac_try;;
24898esac
24899eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24900$as_echo "$ac_try_echo") >&5
24901 (eval "$ac_compile") 2>conftest.er1
24902 ac_status=$?
24903 grep -v '^ *+' conftest.er1 >conftest.err
24904 rm -f conftest.er1
24905 cat conftest.err >&5
24906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907 (exit $ac_status); } && {
24908 test -z "$ac_c_werror_flag" ||
24909 test ! -s conftest.err
24910 } && test -s conftest.$ac_objext; then
24911 :
24912else
24913 $as_echo "$as_me: failed program was:" >&5
24914sed 's/^/| /' conftest.$ac_ext >&5
12986 24915
24916 ac_cv_type_pid_t=yes
24917fi
24918
24919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24920else
24921 $as_echo "$as_me: failed program was:" >&5
24922sed 's/^/| /' conftest.$ac_ext >&5
24923
24924
24925fi
24926
24927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24928fi
24929{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24930$as_echo "$ac_cv_type_pid_t" >&6; }
24931if test $ac_cv_type_pid_t = yes; then
24932 :
12987else 24933else
12988 24934
12989cat >>confdefs.h <<_ACEOF 24935cat >>confdefs.h <<_ACEOF
@@ -12992,24 +24938,245 @@ _ACEOF
12992 24938
12993fi 24939fi
12994 24940
24941
12995for ac_header in vfork.h 24942for ac_header in vfork.h
12996do : 24943do
12997 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 24944as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12998if test "x$ac_cv_header_vfork_h" = x""yes; then : 24945if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24946 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24947$as_echo_n "checking for $ac_header... " >&6; }
24948if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24949 $as_echo_n "(cached) " >&6
24950fi
24951ac_res=`eval 'as_val=${'$as_ac_Header'}
24952 $as_echo "$as_val"'`
24953 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24954$as_echo "$ac_res" >&6; }
24955else
24956 # Is the header compilable?
24957{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24958$as_echo_n "checking $ac_header usability... " >&6; }
24959cat >conftest.$ac_ext <<_ACEOF
24960/* confdefs.h. */
24961_ACEOF
24962cat confdefs.h >>conftest.$ac_ext
24963cat >>conftest.$ac_ext <<_ACEOF
24964/* end confdefs.h. */
24965$ac_includes_default
24966#include <$ac_header>
24967_ACEOF
24968rm -f conftest.$ac_objext
24969if { (ac_try="$ac_compile"
24970case "(($ac_try" in
24971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24972 *) ac_try_echo=$ac_try;;
24973esac
24974eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24975$as_echo "$ac_try_echo") >&5
24976 (eval "$ac_compile") 2>conftest.er1
24977 ac_status=$?
24978 grep -v '^ *+' conftest.er1 >conftest.err
24979 rm -f conftest.er1
24980 cat conftest.err >&5
24981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982 (exit $ac_status); } && {
24983 test -z "$ac_c_werror_flag" ||
24984 test ! -s conftest.err
24985 } && test -s conftest.$ac_objext; then
24986 ac_header_compiler=yes
24987else
24988 $as_echo "$as_me: failed program was:" >&5
24989sed 's/^/| /' conftest.$ac_ext >&5
24990
24991 ac_header_compiler=no
24992fi
24993
24994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24995{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24996$as_echo "$ac_header_compiler" >&6; }
24997
24998# Is the header present?
24999{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25000$as_echo_n "checking $ac_header presence... " >&6; }
25001cat >conftest.$ac_ext <<_ACEOF
25002/* confdefs.h. */
25003_ACEOF
25004cat confdefs.h >>conftest.$ac_ext
25005cat >>conftest.$ac_ext <<_ACEOF
25006/* end confdefs.h. */
25007#include <$ac_header>
25008_ACEOF
25009if { (ac_try="$ac_cpp conftest.$ac_ext"
25010case "(($ac_try" in
25011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25012 *) ac_try_echo=$ac_try;;
25013esac
25014eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25015$as_echo "$ac_try_echo") >&5
25016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25017 ac_status=$?
25018 grep -v '^ *+' conftest.er1 >conftest.err
25019 rm -f conftest.er1
25020 cat conftest.err >&5
25021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022 (exit $ac_status); } >/dev/null && {
25023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25024 test ! -s conftest.err
25025 }; then
25026 ac_header_preproc=yes
25027else
25028 $as_echo "$as_me: failed program was:" >&5
25029sed 's/^/| /' conftest.$ac_ext >&5
25030
25031 ac_header_preproc=no
25032fi
25033
25034rm -f conftest.err conftest.$ac_ext
25035{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25036$as_echo "$ac_header_preproc" >&6; }
25037
25038# So? What about this header?
25039case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25040 yes:no: )
25041 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25042$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25044$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25045 ac_header_preproc=yes
25046 ;;
25047 no:yes:* )
25048 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25049$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25050 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25051$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25053$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25055$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25057$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25059$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25060
25061 ;;
25062esac
25063{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25064$as_echo_n "checking for $ac_header... " >&6; }
25065if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25066 $as_echo_n "(cached) " >&6
25067else
25068 eval "$as_ac_Header=\$ac_header_preproc"
25069fi
25070ac_res=`eval 'as_val=${'$as_ac_Header'}
25071 $as_echo "$as_val"'`
25072 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25073$as_echo "$ac_res" >&6; }
25074
25075fi
25076if test `eval 'as_val=${'$as_ac_Header'}
25077 $as_echo "$as_val"'` = yes; then
12999 cat >>confdefs.h <<_ACEOF 25078 cat >>confdefs.h <<_ACEOF
13000#define HAVE_VFORK_H 1 25079#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13001_ACEOF 25080_ACEOF
13002 25081
13003fi 25082fi
13004 25083
13005done 25084done
13006 25085
25086
25087
13007for ac_func in fork vfork 25088for ac_func in fork vfork
13008do : 25089do
13009 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 25090as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13010ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 25091{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13011eval as_val=\$$as_ac_var 25092$as_echo_n "checking for $ac_func... " >&6; }
13012 if test "x$as_val" = x""yes; then : 25093if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25094 $as_echo_n "(cached) " >&6
25095else
25096 cat >conftest.$ac_ext <<_ACEOF
25097/* confdefs.h. */
25098_ACEOF
25099cat confdefs.h >>conftest.$ac_ext
25100cat >>conftest.$ac_ext <<_ACEOF
25101/* end confdefs.h. */
25102/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25104#define $ac_func innocuous_$ac_func
25105
25106/* System header to define __stub macros and hopefully few prototypes,
25107 which can conflict with char $ac_func (); below.
25108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25109 <limits.h> exists even on freestanding compilers. */
25110
25111#ifdef __STDC__
25112# include <limits.h>
25113#else
25114# include <assert.h>
25115#endif
25116
25117#undef $ac_func
25118
25119/* Override any GCC internal prototype to avoid an error.
25120 Use char because int might match the return type of a GCC
25121 builtin and then its argument prototype would still apply. */
25122#ifdef __cplusplus
25123extern "C"
25124#endif
25125char $ac_func ();
25126/* The GNU C library defines this for functions which it implements
25127 to always fail with ENOSYS. Some functions are actually named
25128 something starting with __ and the normal name is an alias. */
25129#if defined __stub_$ac_func || defined __stub___$ac_func
25130choke me
25131#endif
25132
25133int
25134main ()
25135{
25136return $ac_func ();
25137 ;
25138 return 0;
25139}
25140_ACEOF
25141rm -f conftest.$ac_objext conftest$ac_exeext
25142if { (ac_try="$ac_link"
25143case "(($ac_try" in
25144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25145 *) ac_try_echo=$ac_try;;
25146esac
25147eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25148$as_echo "$ac_try_echo") >&5
25149 (eval "$ac_link") 2>conftest.er1
25150 ac_status=$?
25151 grep -v '^ *+' conftest.er1 >conftest.err
25152 rm -f conftest.er1
25153 cat conftest.err >&5
25154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25155 (exit $ac_status); } && {
25156 test -z "$ac_c_werror_flag" ||
25157 test ! -s conftest.err
25158 } && test -s conftest$ac_exeext && {
25159 test "$cross_compiling" = yes ||
25160 $as_test_x conftest$ac_exeext
25161 }; then
25162 eval "$as_ac_var=yes"
25163else
25164 $as_echo "$as_me: failed program was:" >&5
25165sed 's/^/| /' conftest.$ac_ext >&5
25166
25167 eval "$as_ac_var=no"
25168fi
25169
25170rm -rf conftest.dSYM
25171rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25172 conftest$ac_exeext conftest.$ac_ext
25173fi
25174ac_res=`eval 'as_val=${'$as_ac_var'}
25175 $as_echo "$as_val"'`
25176 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25177$as_echo "$ac_res" >&6; }
25178if test `eval 'as_val=${'$as_ac_var'}
25179 $as_echo "$as_val"'` = yes; then
13013 cat >>confdefs.h <<_ACEOF 25180 cat >>confdefs.h <<_ACEOF
13014#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 25181#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13015_ACEOF 25182_ACEOF
@@ -13018,15 +25185,19 @@ fi
13018done 25185done
13019 25186
13020if test "x$ac_cv_func_fork" = xyes; then 25187if test "x$ac_cv_func_fork" = xyes; then
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 25188 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
13022$as_echo_n "checking for working fork... " >&6; } 25189$as_echo_n "checking for working fork... " >&6; }
13023if test "${ac_cv_func_fork_works+set}" = set; then : 25190if test "${ac_cv_func_fork_works+set}" = set; then
13024 $as_echo_n "(cached) " >&6 25191 $as_echo_n "(cached) " >&6
13025else 25192else
13026 if test "$cross_compiling" = yes; then : 25193 if test "$cross_compiling" = yes; then
13027 ac_cv_func_fork_works=cross 25194 ac_cv_func_fork_works=cross
13028else 25195else
13029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25196 cat >conftest.$ac_ext <<_ACEOF
25197/* confdefs.h. */
25198_ACEOF
25199cat confdefs.h >>conftest.$ac_ext
25200cat >>conftest.$ac_ext <<_ACEOF
13030/* end confdefs.h. */ 25201/* end confdefs.h. */
13031$ac_includes_default 25202$ac_includes_default
13032int 25203int
@@ -13040,17 +25211,44 @@ main ()
13040 return 0; 25211 return 0;
13041} 25212}
13042_ACEOF 25213_ACEOF
13043if ac_fn_c_try_run "$LINENO"; then : 25214rm -f conftest$ac_exeext
25215if { (ac_try="$ac_link"
25216case "(($ac_try" in
25217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25218 *) ac_try_echo=$ac_try;;
25219esac
25220eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25221$as_echo "$ac_try_echo") >&5
25222 (eval "$ac_link") 2>&5
25223 ac_status=$?
25224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25226 { (case "(($ac_try" in
25227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25228 *) ac_try_echo=$ac_try;;
25229esac
25230eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25231$as_echo "$ac_try_echo") >&5
25232 (eval "$ac_try") 2>&5
25233 ac_status=$?
25234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25235 (exit $ac_status); }; }; then
13044 ac_cv_func_fork_works=yes 25236 ac_cv_func_fork_works=yes
13045else 25237else
13046 ac_cv_func_fork_works=no 25238 $as_echo "$as_me: program exited with status $ac_status" >&5
25239$as_echo "$as_me: failed program was:" >&5
25240sed 's/^/| /' conftest.$ac_ext >&5
25241
25242( exit $ac_status )
25243ac_cv_func_fork_works=no
13047fi 25244fi
13048rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25245rm -rf conftest.dSYM
13049 conftest.$ac_objext conftest.beam conftest.$ac_ext 25246rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13050fi 25247fi
13051 25248
25249
13052fi 25250fi
13053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 25251{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
13054$as_echo "$ac_cv_func_fork_works" >&6; } 25252$as_echo "$ac_cv_func_fork_works" >&6; }
13055 25253
13056else 25254else
@@ -13066,20 +25264,24 @@ if test "x$ac_cv_func_fork_works" = xcross; then
13066 ac_cv_func_fork_works=yes 25264 ac_cv_func_fork_works=yes
13067 ;; 25265 ;;
13068 esac 25266 esac
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 25267 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13070$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 25268$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13071fi 25269fi
13072ac_cv_func_vfork_works=$ac_cv_func_vfork 25270ac_cv_func_vfork_works=$ac_cv_func_vfork
13073if test "x$ac_cv_func_vfork" = xyes; then 25271if test "x$ac_cv_func_vfork" = xyes; then
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 25272 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
13075$as_echo_n "checking for working vfork... " >&6; } 25273$as_echo_n "checking for working vfork... " >&6; }
13076if test "${ac_cv_func_vfork_works+set}" = set; then : 25274if test "${ac_cv_func_vfork_works+set}" = set; then
13077 $as_echo_n "(cached) " >&6 25275 $as_echo_n "(cached) " >&6
13078else 25276else
13079 if test "$cross_compiling" = yes; then : 25277 if test "$cross_compiling" = yes; then
13080 ac_cv_func_vfork_works=cross 25278 ac_cv_func_vfork_works=cross
13081else 25279else
13082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25280 cat >conftest.$ac_ext <<_ACEOF
25281/* confdefs.h. */
25282_ACEOF
25283cat confdefs.h >>conftest.$ac_ext
25284cat >>conftest.$ac_ext <<_ACEOF
13083/* end confdefs.h. */ 25285/* end confdefs.h. */
13084/* Thanks to Paul Eggert for this test. */ 25286/* Thanks to Paul Eggert for this test. */
13085$ac_includes_default 25287$ac_includes_default
@@ -13171,48 +25373,85 @@ main ()
13171 } 25373 }
13172} 25374}
13173_ACEOF 25375_ACEOF
13174if ac_fn_c_try_run "$LINENO"; then : 25376rm -f conftest$ac_exeext
25377if { (ac_try="$ac_link"
25378case "(($ac_try" in
25379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25380 *) ac_try_echo=$ac_try;;
25381esac
25382eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25383$as_echo "$ac_try_echo") >&5
25384 (eval "$ac_link") 2>&5
25385 ac_status=$?
25386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25388 { (case "(($ac_try" in
25389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25390 *) ac_try_echo=$ac_try;;
25391esac
25392eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25393$as_echo "$ac_try_echo") >&5
25394 (eval "$ac_try") 2>&5
25395 ac_status=$?
25396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25397 (exit $ac_status); }; }; then
13175 ac_cv_func_vfork_works=yes 25398 ac_cv_func_vfork_works=yes
13176else 25399else
13177 ac_cv_func_vfork_works=no 25400 $as_echo "$as_me: program exited with status $ac_status" >&5
25401$as_echo "$as_me: failed program was:" >&5
25402sed 's/^/| /' conftest.$ac_ext >&5
25403
25404( exit $ac_status )
25405ac_cv_func_vfork_works=no
13178fi 25406fi
13179rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25407rm -rf conftest.dSYM
13180 conftest.$ac_objext conftest.beam conftest.$ac_ext 25408rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13181fi 25409fi
13182 25410
25411
13183fi 25412fi
13184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 25413{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
13185$as_echo "$ac_cv_func_vfork_works" >&6; } 25414$as_echo "$ac_cv_func_vfork_works" >&6; }
13186 25415
13187fi; 25416fi;
13188if test "x$ac_cv_func_fork_works" = xcross; then 25417if test "x$ac_cv_func_fork_works" = xcross; then
13189 ac_cv_func_vfork_works=$ac_cv_func_vfork 25418 ac_cv_func_vfork_works=$ac_cv_func_vfork
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 25419 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13191$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 25420$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13192fi 25421fi
13193 25422
13194if test "x$ac_cv_func_vfork_works" = xyes; then 25423if test "x$ac_cv_func_vfork_works" = xyes; then
13195 25424
13196$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 25425cat >>confdefs.h <<\_ACEOF
25426#define HAVE_WORKING_VFORK 1
25427_ACEOF
13197 25428
13198else 25429else
13199 25430
13200$as_echo "#define vfork fork" >>confdefs.h 25431cat >>confdefs.h <<\_ACEOF
25432#define vfork fork
25433_ACEOF
13201 25434
13202fi 25435fi
13203if test "x$ac_cv_func_fork_works" = xyes; then 25436if test "x$ac_cv_func_fork_works" = xyes; then
13204 25437
13205$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 25438cat >>confdefs.h <<\_ACEOF
25439#define HAVE_WORKING_FORK 1
25440_ACEOF
13206 25441
13207fi 25442fi
13208 25443
13209 25444
13210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 25445{ $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13211$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 25446$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13212if test "${emacs_cv_langinfo_codeset+set}" = set; then : 25447if test "${emacs_cv_langinfo_codeset+set}" = set; then
13213 $as_echo_n "(cached) " >&6 25448 $as_echo_n "(cached) " >&6
13214else 25449else
13215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25450 cat >conftest.$ac_ext <<_ACEOF
25451/* confdefs.h. */
25452_ACEOF
25453cat confdefs.h >>conftest.$ac_ext
25454cat >>conftest.$ac_ext <<_ACEOF
13216/* end confdefs.h. */ 25455/* end confdefs.h. */
13217#include <langinfo.h> 25456#include <langinfo.h>
13218int 25457int
@@ -13223,25 +25462,145 @@ char* cs = nl_langinfo(CODESET);
13223 return 0; 25462 return 0;
13224} 25463}
13225_ACEOF 25464_ACEOF
13226if ac_fn_c_try_link "$LINENO"; then : 25465rm -f conftest.$ac_objext conftest$ac_exeext
25466if { (ac_try="$ac_link"
25467case "(($ac_try" in
25468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25469 *) ac_try_echo=$ac_try;;
25470esac
25471eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25472$as_echo "$ac_try_echo") >&5
25473 (eval "$ac_link") 2>conftest.er1
25474 ac_status=$?
25475 grep -v '^ *+' conftest.er1 >conftest.err
25476 rm -f conftest.er1
25477 cat conftest.err >&5
25478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25479 (exit $ac_status); } && {
25480 test -z "$ac_c_werror_flag" ||
25481 test ! -s conftest.err
25482 } && test -s conftest$ac_exeext && {
25483 test "$cross_compiling" = yes ||
25484 $as_test_x conftest$ac_exeext
25485 }; then
13227 emacs_cv_langinfo_codeset=yes 25486 emacs_cv_langinfo_codeset=yes
13228else 25487else
13229 emacs_cv_langinfo_codeset=no 25488 $as_echo "$as_me: failed program was:" >&5
25489sed 's/^/| /' conftest.$ac_ext >&5
25490
25491 emacs_cv_langinfo_codeset=no
13230fi 25492fi
13231rm -f core conftest.err conftest.$ac_objext \ 25493
13232 conftest$ac_exeext conftest.$ac_ext 25494rm -rf conftest.dSYM
25495rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25496 conftest$ac_exeext conftest.$ac_ext
13233 25497
13234fi 25498fi
13235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5 25499{ $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
13236$as_echo "$emacs_cv_langinfo_codeset" >&6; } 25500$as_echo "$emacs_cv_langinfo_codeset" >&6; }
13237if test $emacs_cv_langinfo_codeset = yes; then 25501if test $emacs_cv_langinfo_codeset = yes; then
13238 25502
13239$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 25503cat >>confdefs.h <<\_ACEOF
25504#define HAVE_LANGINFO_CODESET 1
25505_ACEOF
25506
25507fi
25508
25509{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
25510$as_echo_n "checking for size_t... " >&6; }
25511if test "${ac_cv_type_size_t+set}" = set; then
25512 $as_echo_n "(cached) " >&6
25513else
25514 ac_cv_type_size_t=no
25515cat >conftest.$ac_ext <<_ACEOF
25516/* confdefs.h. */
25517_ACEOF
25518cat confdefs.h >>conftest.$ac_ext
25519cat >>conftest.$ac_ext <<_ACEOF
25520/* end confdefs.h. */
25521$ac_includes_default
25522int
25523main ()
25524{
25525if (sizeof (size_t))
25526 return 0;
25527 ;
25528 return 0;
25529}
25530_ACEOF
25531rm -f conftest.$ac_objext
25532if { (ac_try="$ac_compile"
25533case "(($ac_try" in
25534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25535 *) ac_try_echo=$ac_try;;
25536esac
25537eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25538$as_echo "$ac_try_echo") >&5
25539 (eval "$ac_compile") 2>conftest.er1
25540 ac_status=$?
25541 grep -v '^ *+' conftest.er1 >conftest.err
25542 rm -f conftest.er1
25543 cat conftest.err >&5
25544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545 (exit $ac_status); } && {
25546 test -z "$ac_c_werror_flag" ||
25547 test ! -s conftest.err
25548 } && test -s conftest.$ac_objext; then
25549 cat >conftest.$ac_ext <<_ACEOF
25550/* confdefs.h. */
25551_ACEOF
25552cat confdefs.h >>conftest.$ac_ext
25553cat >>conftest.$ac_ext <<_ACEOF
25554/* end confdefs.h. */
25555$ac_includes_default
25556int
25557main ()
25558{
25559if (sizeof ((size_t)))
25560 return 0;
25561 ;
25562 return 0;
25563}
25564_ACEOF
25565rm -f conftest.$ac_objext
25566if { (ac_try="$ac_compile"
25567case "(($ac_try" in
25568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25569 *) ac_try_echo=$ac_try;;
25570esac
25571eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25572$as_echo "$ac_try_echo") >&5
25573 (eval "$ac_compile") 2>conftest.er1
25574 ac_status=$?
25575 grep -v '^ *+' conftest.er1 >conftest.err
25576 rm -f conftest.er1
25577 cat conftest.err >&5
25578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579 (exit $ac_status); } && {
25580 test -z "$ac_c_werror_flag" ||
25581 test ! -s conftest.err
25582 } && test -s conftest.$ac_objext; then
25583 :
25584else
25585 $as_echo "$as_me: failed program was:" >&5
25586sed 's/^/| /' conftest.$ac_ext >&5
25587
25588 ac_cv_type_size_t=yes
25589fi
25590
25591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25592else
25593 $as_echo "$as_me: failed program was:" >&5
25594sed 's/^/| /' conftest.$ac_ext >&5
25595
13240 25596
13241fi 25597fi
13242 25598
13243ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 25599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13244if test "x$ac_cv_type_size_t" = x""yes; then : 25600fi
25601{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25602$as_echo "$ac_cv_type_size_t" >&6; }
25603if test $ac_cv_type_size_t = yes; then
13245 25604
13246cat >>confdefs.h <<_ACEOF 25605cat >>confdefs.h <<_ACEOF
13247#define HAVE_SIZE_T 1 25606#define HAVE_SIZE_T 1
@@ -13251,12 +25610,16 @@ _ACEOF
13251fi 25610fi
13252 25611
13253 25612
13254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 25613{ $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
13255$as_echo_n "checking for mbstate_t... " >&6; } 25614$as_echo_n "checking for mbstate_t... " >&6; }
13256if test "${ac_cv_type_mbstate_t+set}" = set; then : 25615if test "${ac_cv_type_mbstate_t+set}" = set; then
13257 $as_echo_n "(cached) " >&6 25616 $as_echo_n "(cached) " >&6
13258else 25617else
13259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25618 cat >conftest.$ac_ext <<_ACEOF
25619/* confdefs.h. */
25620_ACEOF
25621cat confdefs.h >>conftest.$ac_ext
25622cat >>conftest.$ac_ext <<_ACEOF
13260/* end confdefs.h. */ 25623/* end confdefs.h. */
13261$ac_includes_default 25624$ac_includes_default
13262# include <wchar.h> 25625# include <wchar.h>
@@ -13268,31 +25631,60 @@ mbstate_t x; return sizeof x;
13268 return 0; 25631 return 0;
13269} 25632}
13270_ACEOF 25633_ACEOF
13271if ac_fn_c_try_compile "$LINENO"; then : 25634rm -f conftest.$ac_objext
25635if { (ac_try="$ac_compile"
25636case "(($ac_try" in
25637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25638 *) ac_try_echo=$ac_try;;
25639esac
25640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25641$as_echo "$ac_try_echo") >&5
25642 (eval "$ac_compile") 2>conftest.er1
25643 ac_status=$?
25644 grep -v '^ *+' conftest.er1 >conftest.err
25645 rm -f conftest.er1
25646 cat conftest.err >&5
25647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648 (exit $ac_status); } && {
25649 test -z "$ac_c_werror_flag" ||
25650 test ! -s conftest.err
25651 } && test -s conftest.$ac_objext; then
13272 ac_cv_type_mbstate_t=yes 25652 ac_cv_type_mbstate_t=yes
13273else 25653else
13274 ac_cv_type_mbstate_t=no 25654 $as_echo "$as_me: failed program was:" >&5
25655sed 's/^/| /' conftest.$ac_ext >&5
25656
25657 ac_cv_type_mbstate_t=no
13275fi 25658fi
25659
13276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13277fi 25661fi
13278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 25662{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
13279$as_echo "$ac_cv_type_mbstate_t" >&6; } 25663$as_echo "$ac_cv_type_mbstate_t" >&6; }
13280 if test $ac_cv_type_mbstate_t = yes; then 25664 if test $ac_cv_type_mbstate_t = yes; then
13281 25665
13282$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h 25666cat >>confdefs.h <<\_ACEOF
25667#define HAVE_MBSTATE_T 1
25668_ACEOF
13283 25669
13284 else 25670 else
13285 25671
13286$as_echo "#define mbstate_t int" >>confdefs.h 25672cat >>confdefs.h <<\_ACEOF
25673#define mbstate_t int
25674_ACEOF
13287 25675
13288 fi 25676 fi
13289 25677
13290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5 25678{ $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
13291$as_echo_n "checking for C restrict keyword... " >&6; } 25679$as_echo_n "checking for C restrict keyword... " >&6; }
13292if test "${emacs_cv_c_restrict+set}" = set; then : 25680if test "${emacs_cv_c_restrict+set}" = set; then
13293 $as_echo_n "(cached) " >&6 25681 $as_echo_n "(cached) " >&6
13294else 25682else
13295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25683 cat >conftest.$ac_ext <<_ACEOF
25684/* confdefs.h. */
25685_ACEOF
25686cat confdefs.h >>conftest.$ac_ext
25687cat >>conftest.$ac_ext <<_ACEOF
13296/* end confdefs.h. */ 25688/* end confdefs.h. */
13297void fred (int *restrict x); 25689void fred (int *restrict x);
13298int 25690int
@@ -13303,10 +25695,34 @@ main ()
13303 return 0; 25695 return 0;
13304} 25696}
13305_ACEOF 25697_ACEOF
13306if ac_fn_c_try_compile "$LINENO"; then : 25698rm -f conftest.$ac_objext
25699if { (ac_try="$ac_compile"
25700case "(($ac_try" in
25701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25702 *) ac_try_echo=$ac_try;;
25703esac
25704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25705$as_echo "$ac_try_echo") >&5
25706 (eval "$ac_compile") 2>conftest.er1
25707 ac_status=$?
25708 grep -v '^ *+' conftest.er1 >conftest.err
25709 rm -f conftest.er1
25710 cat conftest.err >&5
25711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25712 (exit $ac_status); } && {
25713 test -z "$ac_c_werror_flag" ||
25714 test ! -s conftest.err
25715 } && test -s conftest.$ac_objext; then
13307 emacs_cv_c_restrict=yes 25716 emacs_cv_c_restrict=yes
13308else 25717else
13309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25718 $as_echo "$as_me: failed program was:" >&5
25719sed 's/^/| /' conftest.$ac_ext >&5
25720
25721 cat >conftest.$ac_ext <<_ACEOF
25722/* confdefs.h. */
25723_ACEOF
25724cat confdefs.h >>conftest.$ac_ext
25725cat >>conftest.$ac_ext <<_ACEOF
13310/* end confdefs.h. */ 25726/* end confdefs.h. */
13311void fred (int *__restrict x); 25727void fred (int *__restrict x);
13312int 25728int
@@ -13317,16 +25733,38 @@ main ()
13317 return 0; 25733 return 0;
13318} 25734}
13319_ACEOF 25735_ACEOF
13320if ac_fn_c_try_compile "$LINENO"; then : 25736rm -f conftest.$ac_objext
25737if { (ac_try="$ac_compile"
25738case "(($ac_try" in
25739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25740 *) ac_try_echo=$ac_try;;
25741esac
25742eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25743$as_echo "$ac_try_echo") >&5
25744 (eval "$ac_compile") 2>conftest.er1
25745 ac_status=$?
25746 grep -v '^ *+' conftest.er1 >conftest.err
25747 rm -f conftest.er1
25748 cat conftest.err >&5
25749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25750 (exit $ac_status); } && {
25751 test -z "$ac_c_werror_flag" ||
25752 test ! -s conftest.err
25753 } && test -s conftest.$ac_objext; then
13321 emacs_cv_c_restrict=__restrict 25754 emacs_cv_c_restrict=__restrict
13322else 25755else
13323 emacs_cv_c_restrict=no 25756 $as_echo "$as_me: failed program was:" >&5
25757sed 's/^/| /' conftest.$ac_ext >&5
25758
25759 emacs_cv_c_restrict=no
13324fi 25760fi
25761
13325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13326fi 25763fi
25764
13327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13328fi 25766fi
13329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5 25767{ $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
13330$as_echo "$emacs_cv_c_restrict" >&6; } 25768$as_echo "$emacs_cv_c_restrict" >&6; }
13331case "$emacs_cv_c_restrict" in 25769case "$emacs_cv_c_restrict" in
13332 yes) emacs_restrict=restrict;; 25770 yes) emacs_restrict=restrict;;
@@ -13341,12 +25779,16 @@ _ACEOF
13341 25779
13342fi 25780fi
13343 25781
13344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5 25782{ $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
13345$as_echo_n "checking for C restricted array declarations... " >&6; } 25783$as_echo_n "checking for C restricted array declarations... " >&6; }
13346if test "${emacs_cv_c_restrict_arr+set}" = set; then : 25784if test "${emacs_cv_c_restrict_arr+set}" = set; then
13347 $as_echo_n "(cached) " >&6 25785 $as_echo_n "(cached) " >&6
13348else 25786else
13349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25787 cat >conftest.$ac_ext <<_ACEOF
25788/* confdefs.h. */
25789_ACEOF
25790cat confdefs.h >>conftest.$ac_ext
25791cat >>conftest.$ac_ext <<_ACEOF
13350/* end confdefs.h. */ 25792/* end confdefs.h. */
13351void fred (int x[__restrict]); 25793void fred (int x[__restrict]);
13352int 25794int
@@ -13357,18 +25799,41 @@ main ()
13357 return 0; 25799 return 0;
13358} 25800}
13359_ACEOF 25801_ACEOF
13360if ac_fn_c_try_compile "$LINENO"; then : 25802rm -f conftest.$ac_objext
25803if { (ac_try="$ac_compile"
25804case "(($ac_try" in
25805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25806 *) ac_try_echo=$ac_try;;
25807esac
25808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25809$as_echo "$ac_try_echo") >&5
25810 (eval "$ac_compile") 2>conftest.er1
25811 ac_status=$?
25812 grep -v '^ *+' conftest.er1 >conftest.err
25813 rm -f conftest.er1
25814 cat conftest.err >&5
25815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25816 (exit $ac_status); } && {
25817 test -z "$ac_c_werror_flag" ||
25818 test ! -s conftest.err
25819 } && test -s conftest.$ac_objext; then
13361 emacs_cv_c_restrict_arr=yes 25820 emacs_cv_c_restrict_arr=yes
13362else 25821else
13363 emacs_cv_c_restrict_arr=no 25822 $as_echo "$as_me: failed program was:" >&5
25823sed 's/^/| /' conftest.$ac_ext >&5
25824
25825 emacs_cv_c_restrict_arr=no
13364fi 25826fi
25827
13365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13366fi 25829fi
13367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5 25830{ $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
13368$as_echo "$emacs_cv_c_restrict_arr" >&6; } 25831$as_echo "$emacs_cv_c_restrict_arr" >&6; }
13369if test "$emacs_cv_c_restrict_arr" = yes; then 25832if test "$emacs_cv_c_restrict_arr" = yes; then
13370 25833
13371$as_echo "#define __restrict_arr __restrict" >>confdefs.h 25834cat >>confdefs.h <<\_ACEOF
25835#define __restrict_arr __restrict
25836_ACEOF
13372 25837
13373fi 25838fi
13374 25839
@@ -13382,10 +25847,12 @@ CPPFLAGS="$REAL_CPPFLAGS"
13382version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ 25847version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
13383 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` 25848 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
13384if test x"${version}" = x; then 25849if test x"${version}" = x; then
13385 as_fn_error "can't find current emacs version in \`${srcdir}/lisp/version.el'." "$LINENO" 5 25850 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25851$as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25852 { (exit 1); exit 1; }; }
13386fi 25853fi
13387if test x"${version}" != x"$PACKAGE_VERSION"; then 25854if test x"${version}" != x"$PACKAGE_VERSION"; then
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5 25855 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
13389$as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;} 25856$as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
13390fi 25857fi
13391 25858
@@ -13436,6 +25903,7 @@ fi
13436 25903
13437 25904
13438 25905
25906
13439cat >>confdefs.h <<_ACEOF 25907cat >>confdefs.h <<_ACEOF
13440#define EMACS_CONFIGURATION "${canonical}" 25908#define EMACS_CONFIGURATION "${canonical}"
13441_ACEOF 25909_ACEOF
@@ -13475,7 +25943,9 @@ XMENU_OBJ=
13475XOBJ= 25943XOBJ=
13476if test "${HAVE_X_WINDOWS}" = "yes" ; then 25944if test "${HAVE_X_WINDOWS}" = "yes" ; then
13477 25945
13478$as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h 25946cat >>confdefs.h <<\_ACEOF
25947#define HAVE_X_WINDOWS 1
25948_ACEOF
13479 25949
13480 XMENU_OBJ=xmenu.o 25950 XMENU_OBJ=xmenu.o
13481 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o" 25951 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
@@ -13487,43 +25957,59 @@ WIDGET_OBJ=
13487if test "${USE_X_TOOLKIT}" != "none" ; then 25957if test "${USE_X_TOOLKIT}" != "none" ; then
13488 WIDGET_OBJ=widget.o 25958 WIDGET_OBJ=widget.o
13489 25959
13490$as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h 25960cat >>confdefs.h <<\_ACEOF
25961#define USE_X_TOOLKIT 1
25962_ACEOF
13491 25963
13492 if test "${USE_X_TOOLKIT}" = "LUCID"; then 25964 if test "${USE_X_TOOLKIT}" = "LUCID"; then
13493 25965
13494$as_echo "#define USE_LUCID 1" >>confdefs.h 25966cat >>confdefs.h <<\_ACEOF
25967#define USE_LUCID 1
25968_ACEOF
13495 25969
13496 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then 25970 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
13497 25971
13498$as_echo "#define USE_MOTIF 1" >>confdefs.h 25972cat >>confdefs.h <<\_ACEOF
25973#define USE_MOTIF 1
25974_ACEOF
13499 25975
13500 fi 25976 fi
13501fi 25977fi
13502 25978
13503if test "${HAVE_X11}" = "yes" ; then 25979if test "${HAVE_X11}" = "yes" ; then
13504 25980
13505$as_echo "#define HAVE_X11 1" >>confdefs.h 25981cat >>confdefs.h <<\_ACEOF
25982#define HAVE_X11 1
25983_ACEOF
13506 25984
13507fi 25985fi
13508if test "${HAVE_MENUS}" = "yes" ; then 25986if test "${HAVE_MENUS}" = "yes" ; then
13509 25987
13510$as_echo "#define HAVE_MENUS 1" >>confdefs.h 25988cat >>confdefs.h <<\_ACEOF
25989#define HAVE_MENUS 1
25990_ACEOF
13511 25991
13512fi 25992fi
13513if test "${GNU_MALLOC}" = "yes" ; then 25993if test "${GNU_MALLOC}" = "yes" ; then
13514 25994
13515$as_echo "#define GNU_MALLOC 1" >>confdefs.h 25995cat >>confdefs.h <<\_ACEOF
25996#define GNU_MALLOC 1
25997_ACEOF
13516 25998
13517fi 25999fi
13518if test "${REL_ALLOC}" = "yes" ; then 26000if test "${REL_ALLOC}" = "yes" ; then
13519 26001
13520$as_echo "#define REL_ALLOC 1" >>confdefs.h 26002cat >>confdefs.h <<\_ACEOF
26003#define REL_ALLOC 1
26004_ACEOF
13521 26005
13522fi 26006fi
13523 26007
13524 26008
13525 26009
13526 26010
26011
26012
13527#### Report on what we decided to do. 26013#### Report on what we decided to do.
13528#### Report GTK as a toolkit, even if it doesn't use Xt. 26014#### Report GTK as a toolkit, even if it doesn't use Xt.
13529#### It makes printing result more understandable as using GTK sets 26015#### It makes printing result more understandable as using GTK sets
@@ -13625,12 +26111,16 @@ cpp_undefs="`echo $srcdir $configuration $canonical unix |
13625## from Makefile.c can correctly provide the arg `-traditional' to the 26111## from Makefile.c can correctly provide the arg `-traditional' to the
13626## C preprocessor. 26112## C preprocessor.
13627 26113
13628cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26114cat >conftest.$ac_ext <<_ACEOF
26115/* confdefs.h. */
26116_ACEOF
26117cat confdefs.h >>conftest.$ac_ext
26118cat >>conftest.$ac_ext <<_ACEOF
13629/* end confdefs.h. */ 26119/* end confdefs.h. */
13630yes..yes 26120yes..yes
13631_ACEOF 26121_ACEOF
13632if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26122if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13633 $EGREP "yes..yes" >/dev/null 2>&1; then : 26123 $EGREP "yes..yes" >/dev/null 2>&1; then
13634 CPP_NEED_TRADITIONAL=no 26124 CPP_NEED_TRADITIONAL=no
13635else 26125else
13636 CPP_NEED_TRADITIONAL=yes 26126 CPP_NEED_TRADITIONAL=yes
@@ -13669,13 +26159,13 @@ _ACEOF
13669 case $ac_val in #( 26159 case $ac_val in #(
13670 *${as_nl}*) 26160 *${as_nl}*)
13671 case $ac_var in #( 26161 case $ac_var in #(
13672 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 26162 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13673$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 26163$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13674 esac 26164 esac
13675 case $ac_var in #( 26165 case $ac_var in #(
13676 _ | IFS | as_nl) ;; #( 26166 _ | IFS | as_nl) ;; #(
13677 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 26167 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13678 *) { eval $ac_var=; unset $ac_var;} ;; 26168 *) $as_unset $ac_var ;;
13679 esac ;; 26169 esac ;;
13680 esac 26170 esac
13681 done 26171 done
@@ -13683,8 +26173,8 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13683 (set) 2>&1 | 26173 (set) 2>&1 |
13684 case $as_nl`(ac_space=' '; set) 2>&1` in #( 26174 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13685 *${as_nl}ac_space=\ *) 26175 *${as_nl}ac_space=\ *)
13686 # `set' does not quote correctly, so add quotes: double-quote 26176 # `set' does not quote correctly, so add quotes (double-quote
13687 # substitution turns \\\\ into \\, and sed turns \\ into \. 26177 # substitution turns \\\\ into \\, and sed turns \\ into \).
13688 sed -n \ 26178 sed -n \
13689 "s/'/'\\\\''/g; 26179 "s/'/'\\\\''/g;
13690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 26180 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
@@ -13707,11 +26197,11 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13707if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 26197if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13708 if test -w "$cache_file"; then 26198 if test -w "$cache_file"; then
13709 test "x$cache_file" != "x/dev/null" && 26199 test "x$cache_file" != "x/dev/null" &&
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 26200 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13711$as_echo "$as_me: updating cache $cache_file" >&6;} 26201$as_echo "$as_me: updating cache $cache_file" >&6;}
13712 cat confcache >$cache_file 26202 cat confcache >$cache_file
13713 else 26203 else
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 26204 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13715$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 26205$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13716 fi 26206 fi
13717fi 26207fi
@@ -13731,8 +26221,8 @@ for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13731 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 26221 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13732 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 26222 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13733 # will be set to the directory where LIBOBJS objects are built. 26223 # will be set to the directory where LIBOBJS objects are built.
13734 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 26224 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13735 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 26225 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13736done 26226done
13737LIBOBJS=$ac_libobjs 26227LIBOBJS=$ac_libobjs
13738 26228
@@ -13744,10 +26234,9 @@ LTLIBOBJS=$ac_ltlibobjs
13744ac_write_fail=0 26234ac_write_fail=0
13745ac_clean_files_save=$ac_clean_files 26235ac_clean_files_save=$ac_clean_files
13746ac_clean_files="$ac_clean_files $CONFIG_STATUS" 26236ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13747{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 26237{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13748$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 26238$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13749as_write_fail=0 26239cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13750cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13751#! $SHELL 26240#! $SHELL
13752# Generated by $as_me. 26241# Generated by $as_me.
13753# Run this file to recreate the current configuration. 26242# Run this file to recreate the current configuration.
@@ -13757,18 +26246,17 @@ cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13757debug=false 26246debug=false
13758ac_cs_recheck=false 26247ac_cs_recheck=false
13759ac_cs_silent=false 26248ac_cs_silent=false
13760
13761SHELL=\${CONFIG_SHELL-$SHELL} 26249SHELL=\${CONFIG_SHELL-$SHELL}
13762export SHELL 26250_ACEOF
13763_ASEOF 26251
13764cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 26252cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13765## -------------------- ## 26253## --------------------- ##
13766## M4sh Initialization. ## 26254## M4sh Initialization. ##
13767## -------------------- ## 26255## --------------------- ##
13768 26256
13769# Be more Bourne compatible 26257# Be more Bourne compatible
13770DUALCASE=1; export DUALCASE # for MKS sh 26258DUALCASE=1; export DUALCASE # for MKS sh
13771if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 26259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13772 emulate sh 26260 emulate sh
13773 NULLCMD=: 26261 NULLCMD=:
13774 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
@@ -13776,15 +26264,23 @@ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13776 alias -g '${1+"$@"}'='"$@"' 26264 alias -g '${1+"$@"}'='"$@"'
13777 setopt NO_GLOB_SUBST 26265 setopt NO_GLOB_SUBST
13778else 26266else
13779 case `(set -o) 2>/dev/null` in #( 26267 case `(set -o) 2>/dev/null` in
13780 *posix*) : 26268 *posix*) set -o posix ;;
13781 set -o posix ;; #(
13782 *) :
13783 ;;
13784esac 26269esac
26270
13785fi 26271fi
13786 26272
13787 26273
26274
26275
26276# PATH needs CR
26277# Avoid depending upon Character Ranges.
26278as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26279as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26280as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26281as_cr_digits='0123456789'
26282as_cr_alnum=$as_cr_Letters$as_cr_digits
26283
13788as_nl=' 26284as_nl='
13789' 26285'
13790export as_nl 26286export as_nl
@@ -13792,13 +26288,7 @@ export as_nl
13792as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 26288as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13793as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 26289as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13794as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 26290as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13795# Prefer a ksh shell builtin over an external printf program on Solaris, 26291if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13796# but without wasting forks for bash or zsh.
13797if test -z "$BASH_VERSION$ZSH_VERSION" \
13798 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13799 as_echo='print -r --'
13800 as_echo_n='print -rn --'
13801elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13802 as_echo='printf %s\n' 26292 as_echo='printf %s\n'
13803 as_echo_n='printf %s' 26293 as_echo_n='printf %s'
13804else 26294else
@@ -13809,7 +26299,7 @@ else
13809 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 26299 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13810 as_echo_n_body='eval 26300 as_echo_n_body='eval
13811 arg=$1; 26301 arg=$1;
13812 case $arg in #( 26302 case $arg in
13813 *"$as_nl"*) 26303 *"$as_nl"*)
13814 expr "X$arg" : "X\\(.*\\)$as_nl"; 26304 expr "X$arg" : "X\\(.*\\)$as_nl";
13815 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 26305 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
@@ -13832,6 +26322,13 @@ if test "${PATH_SEPARATOR+set}" != set; then
13832 } 26322 }
13833fi 26323fi
13834 26324
26325# Support unset when possible.
26326if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26327 as_unset=unset
26328else
26329 as_unset=false
26330fi
26331
13835 26332
13836# IFS 26333# IFS
13837# We need space, tab and new line, in precisely that order. Quoting is 26334# We need space, tab and new line, in precisely that order. Quoting is
@@ -13841,15 +26338,15 @@ fi
13841IFS=" "" $as_nl" 26338IFS=" "" $as_nl"
13842 26339
13843# Find who we are. Look in the path if we contain no directory separator. 26340# Find who we are. Look in the path if we contain no directory separator.
13844case $0 in #(( 26341case $0 in
13845 *[\\/]* ) as_myself=$0 ;; 26342 *[\\/]* ) as_myself=$0 ;;
13846 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26343 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13847for as_dir in $PATH 26344for as_dir in $PATH
13848do 26345do
13849 IFS=$as_save_IFS 26346 IFS=$as_save_IFS
13850 test -z "$as_dir" && as_dir=. 26347 test -z "$as_dir" && as_dir=.
13851 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 26348 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13852 done 26349done
13853IFS=$as_save_IFS 26350IFS=$as_save_IFS
13854 26351
13855 ;; 26352 ;;
@@ -13861,16 +26358,12 @@ if test "x$as_myself" = x; then
13861fi 26358fi
13862if test ! -f "$as_myself"; then 26359if test ! -f "$as_myself"; then
13863 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 26360 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13864 exit 1 26361 { (exit 1); exit 1; }
13865fi 26362fi
13866 26363
13867# Unset variables that we do not need and which cause bugs (e.g. in 26364# Work around bugs in pre-3.0 UWIN ksh.
13868# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 26365for as_var in ENV MAIL MAILPATH
13869# suppresses any "Segmentation fault" message there. '((' could 26366do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13870# trigger a bug in pdksh 5.2.14.
13871for as_var in BASH_ENV ENV MAIL MAILPATH
13872do eval test x\${$as_var+set} = xset \
13873 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13874done 26367done
13875PS1='$ ' 26368PS1='$ '
13876PS2='> ' 26369PS2='> '
@@ -13882,89 +26375,7 @@ export LC_ALL
13882LANGUAGE=C 26375LANGUAGE=C
13883export LANGUAGE 26376export LANGUAGE
13884 26377
13885# CDPATH. 26378# Required to use basename.
13886(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13887
13888
13889# as_fn_error ERROR [LINENO LOG_FD]
13890# ---------------------------------
13891# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13892# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13893# script with status $?, using 1 if that was 0.
13894as_fn_error ()
13895{
13896 as_status=$?; test $as_status -eq 0 && as_status=1
13897 if test "$3"; then
13898 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13899 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13900 fi
13901 $as_echo "$as_me: error: $1" >&2
13902 as_fn_exit $as_status
13903} # as_fn_error
13904
13905
13906# as_fn_set_status STATUS
13907# -----------------------
13908# Set $? to STATUS, without forking.
13909as_fn_set_status ()
13910{
13911 return $1
13912} # as_fn_set_status
13913
13914# as_fn_exit STATUS
13915# -----------------
13916# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13917as_fn_exit ()
13918{
13919 set +e
13920 as_fn_set_status $1
13921 exit $1
13922} # as_fn_exit
13923
13924# as_fn_unset VAR
13925# ---------------
13926# Portably unset VAR.
13927as_fn_unset ()
13928{
13929 { eval $1=; unset $1;}
13930}
13931as_unset=as_fn_unset
13932# as_fn_append VAR VALUE
13933# ----------------------
13934# Append the text in VALUE to the end of the definition contained in VAR. Take
13935# advantage of any shell optimizations that allow amortized linear growth over
13936# repeated appends, instead of the typical quadratic growth present in naive
13937# implementations.
13938if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13939 eval 'as_fn_append ()
13940 {
13941 eval $1+=\$2
13942 }'
13943else
13944 as_fn_append ()
13945 {
13946 eval $1=\$$1\$2
13947 }
13948fi # as_fn_append
13949
13950# as_fn_arith ARG...
13951# ------------------
13952# Perform arithmetic evaluation on the ARGs, and store the result in the
13953# global $as_val. Take advantage of shells that can avoid forks. The arguments
13954# must be portable across $(()) and expr.
13955if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13956 eval 'as_fn_arith ()
13957 {
13958 as_val=$(( $* ))
13959 }'
13960else
13961 as_fn_arith ()
13962 {
13963 as_val=`expr "$@" || test $? -eq 1`
13964 }
13965fi # as_fn_arith
13966
13967
13968if expr a : '\(a\)' >/dev/null 2>&1 && 26379if expr a : '\(a\)' >/dev/null 2>&1 &&
13969 test "X`expr 00001 : '.*\(...\)'`" = X001; then 26380 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13970 as_expr=expr 26381 as_expr=expr
@@ -13978,12 +26389,8 @@ else
13978 as_basename=false 26389 as_basename=false
13979fi 26390fi
13980 26391
13981if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13982 as_dirname=dirname
13983else
13984 as_dirname=false
13985fi
13986 26392
26393# Name of the executable.
13987as_me=`$as_basename -- "$0" || 26394as_me=`$as_basename -- "$0" ||
13988$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 26395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13989 X"$0" : 'X\(//\)$' \| \ 26396 X"$0" : 'X\(//\)$' \| \
@@ -14003,25 +26410,76 @@ $as_echo X/"$0" |
14003 } 26410 }
14004 s/.*/./; q'` 26411 s/.*/./; q'`
14005 26412
14006# Avoid depending upon Character Ranges. 26413# CDPATH.
14007as_cr_letters='abcdefghijklmnopqrstuvwxyz' 26414$as_unset CDPATH
14008as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 26415
14009as_cr_Letters=$as_cr_letters$as_cr_LETTERS 26416
14010as_cr_digits='0123456789' 26417
14011as_cr_alnum=$as_cr_Letters$as_cr_digits 26418 as_lineno_1=$LINENO
26419 as_lineno_2=$LINENO
26420 test "x$as_lineno_1" != "x$as_lineno_2" &&
26421 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26422
26423 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26424 # uniformly replaced by the line number. The first 'sed' inserts a
26425 # line-number line after each line using $LINENO; the second 'sed'
26426 # does the real work. The second script uses 'N' to pair each
26427 # line-number line with the line containing $LINENO, and appends
26428 # trailing '-' during substitution so that $LINENO is not a special
26429 # case at line end.
26430 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26431 # scripts with optimization help from Paolo Bonzini. Blame Lee
26432 # E. McMahon (1931-1989) for sed's syntax. :-)
26433 sed -n '
26434 p
26435 /[$]LINENO/=
26436 ' <$as_myself |
26437 sed '
26438 s/[$]LINENO.*/&-/
26439 t lineno
26440 b
26441 :lineno
26442 N
26443 :loop
26444 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26445 t loop
26446 s/-\n.*//
26447 ' >$as_me.lineno &&
26448 chmod +x "$as_me.lineno" ||
26449 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26450 { (exit 1); exit 1; }; }
26451
26452 # Don't try to exec as it changes $[0], causing all sort of problems
26453 # (the dirname of $[0] is not the place where we might find the
26454 # original and so on. Autoconf is especially sensitive to this).
26455 . "./$as_me.lineno"
26456 # Exit status is that of the last command.
26457 exit
26458}
26459
26460
26461if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26462 as_dirname=dirname
26463else
26464 as_dirname=false
26465fi
14012 26466
14013ECHO_C= ECHO_N= ECHO_T= 26467ECHO_C= ECHO_N= ECHO_T=
14014case `echo -n x` in #((((( 26468case `echo -n x` in
14015-n*) 26469-n*)
14016 case `echo 'xy\c'` in 26470 case `echo 'x\c'` in
14017 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 26471 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14018 xy) ECHO_C='\c';; 26472 *) ECHO_C='\c';;
14019 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14020 ECHO_T=' ';;
14021 esac;; 26473 esac;;
14022*) 26474*)
14023 ECHO_N='-n';; 26475 ECHO_N='-n';;
14024esac 26476esac
26477if expr a : '\(a\)' >/dev/null 2>&1 &&
26478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26479 as_expr=expr
26480else
26481 as_expr=false
26482fi
14025 26483
14026rm -f conf$$ conf$$.exe conf$$.file 26484rm -f conf$$ conf$$.exe conf$$.file
14027if test -d conf$$.dir; then 26485if test -d conf$$.dir; then
@@ -14050,56 +26508,8 @@ fi
14050rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 26508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14051rmdir conf$$.dir 2>/dev/null 26509rmdir conf$$.dir 2>/dev/null
14052 26510
14053
14054# as_fn_mkdir_p
14055# -------------
14056# Create "$as_dir" as a directory, including parents if necessary.
14057as_fn_mkdir_p ()
14058{
14059
14060 case $as_dir in #(
14061 -*) as_dir=./$as_dir;;
14062 esac
14063 test -d "$as_dir" || eval $as_mkdir_p || {
14064 as_dirs=
14065 while :; do
14066 case $as_dir in #(
14067 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14068 *) as_qdir=$as_dir;;
14069 esac
14070 as_dirs="'$as_qdir' $as_dirs"
14071 as_dir=`$as_dirname -- "$as_dir" ||
14072$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14073 X"$as_dir" : 'X\(//\)[^/]' \| \
14074 X"$as_dir" : 'X\(//\)$' \| \
14075 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14076$as_echo X"$as_dir" |
14077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14078 s//\1/
14079 q
14080 }
14081 /^X\(\/\/\)[^/].*/{
14082 s//\1/
14083 q
14084 }
14085 /^X\(\/\/\)$/{
14086 s//\1/
14087 q
14088 }
14089 /^X\(\/\).*/{
14090 s//\1/
14091 q
14092 }
14093 s/.*/./; q'`
14094 test -d "$as_dir" && break
14095 done
14096 test -z "$as_dirs" || eval "mkdir $as_dirs"
14097 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14098
14099
14100} # as_fn_mkdir_p
14101if mkdir -p . 2>/dev/null; then 26511if mkdir -p . 2>/dev/null; then
14102 as_mkdir_p='mkdir -p "$as_dir"' 26512 as_mkdir_p=:
14103else 26513else
14104 test -d ./-p && rmdir ./-p 26514 test -d ./-p && rmdir ./-p
14105 as_mkdir_p=false 26515 as_mkdir_p=false
@@ -14118,10 +26528,10 @@ else
14118 if test -d "$1"; then 26528 if test -d "$1"; then
14119 test -d "$1/."; 26529 test -d "$1/.";
14120 else 26530 else
14121 case $1 in #( 26531 case $1 in
14122 -*)set "./$1";; 26532 -*)set "./$1";;
14123 esac; 26533 esac;
14124 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 26534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14125 ???[sx]*):;;*)false;;esac;fi 26535 ???[sx]*):;;*)false;;esac;fi
14126 '\'' sh 26536 '\'' sh
14127 ' 26537 '
@@ -14136,19 +26546,13 @@ as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14136 26546
14137 26547
14138exec 6>&1 26548exec 6>&1
14139## ----------------------------------- ##
14140## Main body of $CONFIG_STATUS script. ##
14141## ----------------------------------- ##
14142_ASEOF
14143test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14144 26549
14145cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26550# Save the log message, to keep $[0] and so on meaningful, and to
14146# Save the log message, to keep $0 and so on meaningful, and to
14147# report actual input values of CONFIG_FILES etc. instead of their 26551# report actual input values of CONFIG_FILES etc. instead of their
14148# values after options handling. 26552# values after options handling.
14149ac_log=" 26553ac_log="
14150This file was extended by emacs $as_me 24.0.50, which was 26554This file was extended by emacs $as_me 24.0.50, which was
14151generated by GNU Autoconf 2.65. Invocation command line was 26555generated by GNU Autoconf 2.62. Invocation command line was
14152 26556
14153 CONFIG_FILES = $CONFIG_FILES 26557 CONFIG_FILES = $CONFIG_FILES
14154 CONFIG_HEADERS = $CONFIG_HEADERS 26558 CONFIG_HEADERS = $CONFIG_HEADERS
@@ -14161,15 +26565,6 @@ on `(hostname || uname -n) 2>/dev/null | sed 1q`
14161 26565
14162_ACEOF 26566_ACEOF
14163 26567
14164case $ac_config_files in *"
14165"*) set x $ac_config_files; shift; ac_config_files=$*;;
14166esac
14167
14168case $ac_config_headers in *"
14169"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14170esac
14171
14172
14173cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26568cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14174# Files that config.status was made for. 26569# Files that config.status was made for.
14175config_files="$ac_config_files" 26570config_files="$ac_config_files"
@@ -14180,22 +26575,19 @@ _ACEOF
14180 26575
14181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14182ac_cs_usage="\ 26577ac_cs_usage="\
14183\`$as_me' instantiates files and other configuration actions 26578\`$as_me' instantiates files from templates according to the
14184from templates according to the current configuration. Unless the files 26579current configuration.
14185and actions are specified as TAGs, all are instantiated by default.
14186 26580
14187Usage: $0 [OPTION]... [TAG]... 26581Usage: $0 [OPTIONS] [FILE]...
14188 26582
14189 -h, --help print this help, then exit 26583 -h, --help print this help, then exit
14190 -V, --version print version number and configuration settings, then exit 26584 -V, --version print version number and configuration settings, then exit
14191 --config print configuration, then exit 26585 -q, --quiet do not print progress messages
14192 -q, --quiet, --silent
14193 do not print progress messages
14194 -d, --debug don't remove temporary files 26586 -d, --debug don't remove temporary files
14195 --recheck update $as_me by reconfiguring in the same conditions 26587 --recheck update $as_me by reconfiguring in the same conditions
14196 --file=FILE[:TEMPLATE] 26588 --file=FILE[:TEMPLATE]
14197 instantiate the configuration file FILE 26589 instantiate the configuration file FILE
14198 --header=FILE[:TEMPLATE] 26590 --header=FILE[:TEMPLATE]
14199 instantiate the configuration header FILE 26591 instantiate the configuration header FILE
14200 26592
14201Configuration files: 26593Configuration files:
@@ -14207,17 +26599,16 @@ $config_headers
14207Configuration commands: 26599Configuration commands:
14208$config_commands 26600$config_commands
14209 26601
14210Report bugs to the package provider." 26602Report bugs to <bug-autoconf@gnu.org>."
14211 26603
14212_ACEOF 26604_ACEOF
14213cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26605cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14214ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14215ac_cs_version="\\ 26606ac_cs_version="\\
14216emacs config.status 24.0.50 26607emacs config.status 24.0.50
14217configured by $0, generated by GNU Autoconf 2.65, 26608configured by $0, generated by GNU Autoconf 2.62,
14218 with options \\"\$ac_cs_config\\" 26609 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14219 26610
14220Copyright (C) 2009 Free Software Foundation, Inc. 26611Copyright (C) 2008 Free Software Foundation, Inc.
14221This config.status script is free software; the Free Software Foundation 26612This config.status script is free software; the Free Software Foundation
14222gives unlimited permission to copy, distribute and modify it." 26613gives unlimited permission to copy, distribute and modify it."
14223 26614
@@ -14251,8 +26642,6 @@ do
14251 ac_cs_recheck=: ;; 26642 ac_cs_recheck=: ;;
14252 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 26643 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14253 $as_echo "$ac_cs_version"; exit ;; 26644 $as_echo "$ac_cs_version"; exit ;;
14254 --config | --confi | --conf | --con | --co | --c )
14255 $as_echo "$ac_cs_config"; exit ;;
14256 --debug | --debu | --deb | --de | --d | -d ) 26645 --debug | --debu | --deb | --de | --d | -d )
14257 debug=: ;; 26646 debug=: ;;
14258 --file | --fil | --fi | --f ) 26647 --file | --fil | --fi | --f )
@@ -14260,19 +26649,20 @@ do
14260 case $ac_optarg in 26649 case $ac_optarg in
14261 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 26650 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14262 esac 26651 esac
14263 as_fn_append CONFIG_FILES " '$ac_optarg'" 26652 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14264 ac_need_defaults=false;; 26653 ac_need_defaults=false;;
14265 --header | --heade | --head | --hea ) 26654 --header | --heade | --head | --hea )
14266 $ac_shift 26655 $ac_shift
14267 case $ac_optarg in 26656 case $ac_optarg in
14268 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 26657 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14269 esac 26658 esac
14270 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 26659 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14271 ac_need_defaults=false;; 26660 ac_need_defaults=false;;
14272 --he | --h) 26661 --he | --h)
14273 # Conflict between --help and --header 26662 # Conflict between --help and --header
14274 as_fn_error "ambiguous option: \`$1' 26663 { $as_echo "$as_me: error: ambiguous option: $1
14275Try \`$0 --help' for more information.";; 26664Try \`$0 --help' for more information." >&2
26665 { (exit 1); exit 1; }; };;
14276 --help | --hel | -h ) 26666 --help | --hel | -h )
14277 $as_echo "$ac_cs_usage"; exit ;; 26667 $as_echo "$ac_cs_usage"; exit ;;
14278 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 26668 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
@@ -14280,10 +26670,11 @@ Try \`$0 --help' for more information.";;
14280 ac_cs_silent=: ;; 26670 ac_cs_silent=: ;;
14281 26671
14282 # This is an error. 26672 # This is an error.
14283 -*) as_fn_error "unrecognized option: \`$1' 26673 -*) { $as_echo "$as_me: error: unrecognized option: $1
14284Try \`$0 --help' for more information." ;; 26674Try \`$0 --help' for more information." >&2
26675 { (exit 1); exit 1; }; } ;;
14285 26676
14286 *) as_fn_append ac_config_targets " $1" 26677 *) ac_config_targets="$ac_config_targets $1"
14287 ac_need_defaults=false ;; 26678 ac_need_defaults=false ;;
14288 26679
14289 esac 26680 esac
@@ -14348,7 +26739,9 @@ do
14348 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; 26739 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
14349 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 26740 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14350 26741
14351 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 26742 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26743$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26744 { (exit 1); exit 1; }; };;
14352 esac 26745 esac
14353done 26746done
14354 26747
@@ -14375,7 +26768,7 @@ $debug ||
14375 trap 'exit_status=$? 26768 trap 'exit_status=$?
14376 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 26769 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14377' 0 26770' 0
14378 trap 'as_fn_exit 1' 1 2 13 15 26771 trap '{ (exit 1); exit 1; }' 1 2 13 15
14379} 26772}
14380# Create a (secure) tmp directory for tmp files. 26773# Create a (secure) tmp directory for tmp files.
14381 26774
@@ -14386,7 +26779,11 @@ $debug ||
14386{ 26779{
14387 tmp=./conf$$-$RANDOM 26780 tmp=./conf$$-$RANDOM
14388 (umask 077 && mkdir "$tmp") 26781 (umask 077 && mkdir "$tmp")
14389} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 26782} ||
26783{
26784 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26785 { (exit 1); exit 1; }
26786}
14390 26787
14391# Set up the scripts for CONFIG_FILES section. 26788# Set up the scripts for CONFIG_FILES section.
14392# No need to generate them if there are no CONFIG_FILES. 26789# No need to generate them if there are no CONFIG_FILES.
@@ -14394,16 +26791,10 @@ $debug ||
14394if test -n "$CONFIG_FILES"; then 26791if test -n "$CONFIG_FILES"; then
14395 26792
14396 26793
14397ac_cr=`echo X | tr X '\015'` 26794ac_cr=' '
14398# On cygwin, bash can eat \r inside `` if the user requested igncr.
14399# But we know of no other shell where ac_cr would be empty at this
14400# point, so we can use a bashism as a fallback.
14401if test "x$ac_cr" = x; then
14402 eval ac_cr=\$\'\\r\'
14403fi
14404ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 26795ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14405if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 26796if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14406 ac_cs_awk_cr='\r' 26797 ac_cs_awk_cr='\\r'
14407else 26798else
14408 ac_cs_awk_cr=$ac_cr 26799 ac_cs_awk_cr=$ac_cr
14409fi 26800fi
@@ -14417,18 +26808,23 @@ _ACEOF
14417 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 26808 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14418 echo "_ACEOF" 26809 echo "_ACEOF"
14419} >conf$$subs.sh || 26810} >conf$$subs.sh ||
14420 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 26811 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26812$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26813 { (exit 1); exit 1; }; }
14421ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 26814ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14422ac_delim='%!_!# ' 26815ac_delim='%!_!# '
14423for ac_last_try in false false false false false :; do 26816for ac_last_try in false false false false false :; do
14424 . ./conf$$subs.sh || 26817 . ./conf$$subs.sh ||
14425 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 26818 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26819$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26820 { (exit 1); exit 1; }; }
14426 26821
14427 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 26822 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
14428 if test $ac_delim_n = $ac_delim_num; then
14429 break 26823 break
14430 elif $ac_last_try; then 26824 elif $ac_last_try; then
14431 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 26825 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26826$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26827 { (exit 1); exit 1; }; }
14432 else 26828 else
14433 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 26829 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14434 fi 26830 fi
@@ -14450,7 +26846,7 @@ s/'"$ac_delim"'$//
14450t delim 26846t delim
14451:nl 26847:nl
14452h 26848h
14453s/\(.\{148\}\)..*/\1/ 26849s/\(.\{148\}\).*/\1/
14454t more1 26850t more1
14455s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 26851s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14456p 26852p
@@ -14464,7 +26860,7 @@ s/.\{148\}//
14464t nl 26860t nl
14465:delim 26861:delim
14466h 26862h
14467s/\(.\{148\}\)..*/\1/ 26863s/\(.\{148\}\).*/\1/
14468t more2 26864t more2
14469s/["\\]/\\&/g; s/^/"/; s/$/"/ 26865s/["\\]/\\&/g; s/^/"/; s/$/"/
14470p 26866p
@@ -14517,7 +26913,9 @@ if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14517else 26913else
14518 cat 26914 cat
14519fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 26915fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14520 || as_fn_error "could not setup config files machinery" "$LINENO" 5 26916 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
26917$as_echo "$as_me: error: could not setup config files machinery" >&2;}
26918 { (exit 1); exit 1; }; }
14521_ACEOF 26919_ACEOF
14522 26920
14523# VPATH may cause trouble with some makes, so we remove $(srcdir), 26921# VPATH may cause trouble with some makes, so we remove $(srcdir),
@@ -14558,7 +26956,9 @@ for ac_last_try in false false :; do
14558 if test -z "$ac_t"; then 26956 if test -z "$ac_t"; then
14559 break 26957 break
14560 elif $ac_last_try; then 26958 elif $ac_last_try; then
14561 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 26959 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
26960$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
26961 { (exit 1); exit 1; }; }
14562 else 26962 else
14563 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 26963 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14564 fi 26964 fi
@@ -14624,9 +27024,9 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14624 } 27024 }
14625 split(mac1, mac2, "(") #) 27025 split(mac1, mac2, "(") #)
14626 macro = mac2[1] 27026 macro = mac2[1]
14627 prefix = substr(line, 1, index(line, defundef) - 1)
14628 if (D_is_set[macro]) { 27027 if (D_is_set[macro]) {
14629 # Preserve the white space surrounding the "#". 27028 # Preserve the white space surrounding the "#".
27029 prefix = substr(line, 1, index(line, defundef) - 1)
14630 print prefix "define", macro P[macro] D[macro] 27030 print prefix "define", macro P[macro] D[macro]
14631 next 27031 next
14632 } else { 27032 } else {
@@ -14634,7 +27034,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14634 # in the case of _POSIX_SOURCE, which is predefined and required 27034 # in the case of _POSIX_SOURCE, which is predefined and required
14635 # on some systems where configure will not decide to define it. 27035 # on some systems where configure will not decide to define it.
14636 if (defundef == "undef") { 27036 if (defundef == "undef") {
14637 print "/*", prefix defundef, macro, "*/" 27037 print "/*", line, "*/"
14638 next 27038 next
14639 } 27039 }
14640 } 27040 }
@@ -14643,7 +27043,9 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14643_ACAWK 27043_ACAWK
14644_ACEOF 27044_ACEOF
14645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27045cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14646 as_fn_error "could not setup config headers machinery" "$LINENO" 5 27046 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27047$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27048 { (exit 1); exit 1; }; }
14647fi # test -n "$CONFIG_HEADERS" 27049fi # test -n "$CONFIG_HEADERS"
14648 27050
14649 27051
@@ -14656,7 +27058,9 @@ do
14656 esac 27058 esac
14657 case $ac_mode$ac_tag in 27059 case $ac_mode$ac_tag in
14658 :[FHL]*:*);; 27060 :[FHL]*:*);;
14659 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 27061 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27062$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27063 { (exit 1); exit 1; }; };;
14660 :[FH]-) ac_tag=-:-;; 27064 :[FH]-) ac_tag=-:-;;
14661 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 27065 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14662 esac 27066 esac
@@ -14684,10 +27088,12 @@ do
14684 [\\/$]*) false;; 27088 [\\/$]*) false;;
14685 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 27089 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14686 esac || 27090 esac ||
14687 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 27091 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27092$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27093 { (exit 1); exit 1; }; };;
14688 esac 27094 esac
14689 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 27095 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14690 as_fn_append ac_file_inputs " '$ac_f'" 27096 ac_file_inputs="$ac_file_inputs '$ac_f'"
14691 done 27097 done
14692 27098
14693 # Let's still pretend it is `configure' which instantiates (i.e., don't 27099 # Let's still pretend it is `configure' which instantiates (i.e., don't
@@ -14698,7 +27104,7 @@ do
14698 `' by configure.' 27104 `' by configure.'
14699 if test x"$ac_file" != x-; then 27105 if test x"$ac_file" != x-; then
14700 configure_input="$ac_file. $configure_input" 27106 configure_input="$ac_file. $configure_input"
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 27107 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14702$as_echo "$as_me: creating $ac_file" >&6;} 27108$as_echo "$as_me: creating $ac_file" >&6;}
14703 fi 27109 fi
14704 # Neutralize special characters interpreted by sed in replacement strings. 27110 # Neutralize special characters interpreted by sed in replacement strings.
@@ -14711,7 +27117,9 @@ $as_echo "$as_me: creating $ac_file" >&6;}
14711 27117
14712 case $ac_tag in 27118 case $ac_tag in
14713 *:-:* | *:-) cat >"$tmp/stdin" \ 27119 *:-:* | *:-) cat >"$tmp/stdin" \
14714 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 27120 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27121$as_echo "$as_me: error: could not create $ac_file" >&2;}
27122 { (exit 1); exit 1; }; } ;;
14715 esac 27123 esac
14716 ;; 27124 ;;
14717 esac 27125 esac
@@ -14739,7 +27147,47 @@ $as_echo X"$ac_file" |
14739 q 27147 q
14740 } 27148 }
14741 s/.*/./; q'` 27149 s/.*/./; q'`
14742 as_dir="$ac_dir"; as_fn_mkdir_p 27150 { as_dir="$ac_dir"
27151 case $as_dir in #(
27152 -*) as_dir=./$as_dir;;
27153 esac
27154 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27155 as_dirs=
27156 while :; do
27157 case $as_dir in #(
27158 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27159 *) as_qdir=$as_dir;;
27160 esac
27161 as_dirs="'$as_qdir' $as_dirs"
27162 as_dir=`$as_dirname -- "$as_dir" ||
27163$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27164 X"$as_dir" : 'X\(//\)[^/]' \| \
27165 X"$as_dir" : 'X\(//\)$' \| \
27166 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27167$as_echo X"$as_dir" |
27168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27169 s//\1/
27170 q
27171 }
27172 /^X\(\/\/\)[^/].*/{
27173 s//\1/
27174 q
27175 }
27176 /^X\(\/\/\)$/{
27177 s//\1/
27178 q
27179 }
27180 /^X\(\/\).*/{
27181 s//\1/
27182 q
27183 }
27184 s/.*/./; q'`
27185 test -d "$as_dir" && break
27186 done
27187 test -z "$as_dirs" || eval "mkdir $as_dirs"
27188 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27189$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27190 { (exit 1); exit 1; }; }; }
14743 ac_builddir=. 27191 ac_builddir=.
14744 27192
14745case "$ac_dir" in 27193case "$ac_dir" in
@@ -14791,6 +27239,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14791# If the template does not know about datarootdir, expand it. 27239# If the template does not know about datarootdir, expand it.
14792# FIXME: This hack should be removed a few years after 2.60. 27240# FIXME: This hack should be removed a few years after 2.60.
14793ac_datarootdir_hack=; ac_datarootdir_seen= 27241ac_datarootdir_hack=; ac_datarootdir_seen=
27242
14794ac_sed_dataroot=' 27243ac_sed_dataroot='
14795/datarootdir/ { 27244/datarootdir/ {
14796 p 27245 p
@@ -14800,11 +27249,12 @@ ac_sed_dataroot='
14800/@docdir@/p 27249/@docdir@/p
14801/@infodir@/p 27250/@infodir@/p
14802/@localedir@/p 27251/@localedir@/p
14803/@mandir@/p' 27252/@mandir@/p
27253'
14804case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 27254case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14805*datarootdir*) ac_datarootdir_seen=yes;; 27255*datarootdir*) ac_datarootdir_seen=yes;;
14806*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 27256*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 27257 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14808$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 27258$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14809_ACEOF 27259_ACEOF
14810cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27260cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
@@ -14814,7 +27264,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14814 s&@infodir@&$infodir&g 27264 s&@infodir@&$infodir&g
14815 s&@localedir@&$localedir&g 27265 s&@localedir@&$localedir&g
14816 s&@mandir@&$mandir&g 27266 s&@mandir@&$mandir&g
14817 s&\\\${datarootdir}&$datarootdir&g' ;; 27267 s&\\\${datarootdir}&$datarootdir&g' ;;
14818esac 27268esac
14819_ACEOF 27269_ACEOF
14820 27270
@@ -14842,12 +27292,14 @@ s&@INSTALL@&$ac_INSTALL&;t t
14842$ac_datarootdir_hack 27292$ac_datarootdir_hack
14843" 27293"
14844eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 27294eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14845 || as_fn_error "could not create $ac_file" "$LINENO" 5 27295 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27296$as_echo "$as_me: error: could not create $ac_file" >&2;}
27297 { (exit 1); exit 1; }; }
14846 27298
14847test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 27299test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14848 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 27300 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14849 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 27301 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 27302 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14851which seems to be undefined. Please make sure it is defined." >&5 27303which seems to be undefined. Please make sure it is defined." >&5
14852$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 27304$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14853which seems to be undefined. Please make sure it is defined." >&2;} 27305which seems to be undefined. Please make sure it is defined." >&2;}
@@ -14857,7 +27309,9 @@ which seems to be undefined. Please make sure it is defined." >&2;}
14857 -) cat "$tmp/out" && rm -f "$tmp/out";; 27309 -) cat "$tmp/out" && rm -f "$tmp/out";;
14858 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 27310 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14859 esac \ 27311 esac \
14860 || as_fn_error "could not create $ac_file" "$LINENO" 5 27312 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27313$as_echo "$as_me: error: could not create $ac_file" >&2;}
27314 { (exit 1); exit 1; }; }
14861 ;; 27315 ;;
14862 :H) 27316 :H)
14863 # 27317 #
@@ -14868,23 +27322,29 @@ which seems to be undefined. Please make sure it is defined." >&2;}
14868 $as_echo "/* $configure_input */" \ 27322 $as_echo "/* $configure_input */" \
14869 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 27323 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14870 } >"$tmp/config.h" \ 27324 } >"$tmp/config.h" \
14871 || as_fn_error "could not create $ac_file" "$LINENO" 5 27325 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27326$as_echo "$as_me: error: could not create $ac_file" >&2;}
27327 { (exit 1); exit 1; }; }
14872 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 27328 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 27329 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14874$as_echo "$as_me: $ac_file is unchanged" >&6;} 27330$as_echo "$as_me: $ac_file is unchanged" >&6;}
14875 else 27331 else
14876 rm -f "$ac_file" 27332 rm -f "$ac_file"
14877 mv "$tmp/config.h" "$ac_file" \ 27333 mv "$tmp/config.h" "$ac_file" \
14878 || as_fn_error "could not create $ac_file" "$LINENO" 5 27334 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27335$as_echo "$as_me: error: could not create $ac_file" >&2;}
27336 { (exit 1); exit 1; }; }
14879 fi 27337 fi
14880 else 27338 else
14881 $as_echo "/* $configure_input */" \ 27339 $as_echo "/* $configure_input */" \
14882 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 27340 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14883 || as_fn_error "could not create -" "$LINENO" 5 27341 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27342$as_echo "$as_me: error: could not create -" >&2;}
27343 { (exit 1); exit 1; }; }
14884 fi 27344 fi
14885 ;; 27345 ;;
14886 27346
14887 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 27347 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14888$as_echo "$as_me: executing $ac_file commands" >&6;} 27348$as_echo "$as_me: executing $ac_file commands" >&6;}
14889 ;; 27349 ;;
14890 esac 27350 esac
@@ -14955,12 +27415,15 @@ fi
14955done # for ac_tag 27415done # for ac_tag
14956 27416
14957 27417
14958as_fn_exit 0 27418{ (exit 0); exit 0; }
14959_ACEOF 27419_ACEOF
27420chmod +x $CONFIG_STATUS
14960ac_clean_files=$ac_clean_files_save 27421ac_clean_files=$ac_clean_files_save
14961 27422
14962test $ac_write_fail = 0 || 27423test $ac_write_fail = 0 ||
14963 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 27424 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27425$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27426 { (exit 1); exit 1; }; }
14964 27427
14965 27428
14966# configure is writing to config.log, and then calls config.status. 27429# configure is writing to config.log, and then calls config.status.
@@ -14981,11 +27444,11 @@ if test "$no_create" != yes; then
14981 exec 5>>config.log 27444 exec 5>>config.log
14982 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 27445 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14983 # would make configure fail if this is the last instruction. 27446 # would make configure fail if this is the last instruction.
14984 $ac_cs_success || as_fn_exit $? 27447 $ac_cs_success || { (exit 1); exit 1; }
14985fi 27448fi
14986if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 27449if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 27450 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
14988$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 27451$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
14989fi 27452fi
14990 27453
14991 27454
diff --git a/src/config.in b/src/config.in
index 8c4b81a189e..cb898e5278f 100644
--- a/src/config.in
+++ b/src/config.in
@@ -318,10 +318,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
318/* Define to 1 if you have the <kerberos/krb.h> header file. */ 318/* Define to 1 if you have the <kerberos/krb.h> header file. */
319#undef HAVE_KERBEROS_KRB_H 319#undef HAVE_KERBEROS_KRB_H
320 320
321/* Define to 1 if `e_text' is a member of `krb5_error'. */ 321/* Define to 1 if `e_text' is member of `krb5_error'. */
322#undef HAVE_KRB5_ERROR_E_TEXT 322#undef HAVE_KRB5_ERROR_E_TEXT
323 323
324/* Define to 1 if `text' is a member of `krb5_error'. */ 324/* Define to 1 if `text' is member of `krb5_error'. */
325#undef HAVE_KRB5_ERROR_TEXT 325#undef HAVE_KRB5_ERROR_TEXT
326 326
327/* Define to 1 if you have the <krb5.h> header file. */ 327/* Define to 1 if you have the <krb5.h> header file. */
@@ -609,25 +609,25 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
609/* Define to 1 if you have the `strsignal' function. */ 609/* Define to 1 if you have the `strsignal' function. */
610#undef HAVE_STRSIGNAL 610#undef HAVE_STRSIGNAL
611 611
612/* Define to 1 if `ifr_addr' is a member of `struct ifreq'. */ 612/* Define to 1 if `ifr_addr' is member of `struct ifreq'. */
613#undef HAVE_STRUCT_IFREQ_IFR_ADDR 613#undef HAVE_STRUCT_IFREQ_IFR_ADDR
614 614
615/* Define to 1 if `ifr_broadaddr' is a member of `struct ifreq'. */ 615/* Define to 1 if `ifr_broadaddr' is member of `struct ifreq'. */
616#undef HAVE_STRUCT_IFREQ_IFR_BROADADDR 616#undef HAVE_STRUCT_IFREQ_IFR_BROADADDR
617 617
618/* Define to 1 if `ifr_flags' is a member of `struct ifreq'. */ 618/* Define to 1 if `ifr_flags' is member of `struct ifreq'. */
619#undef HAVE_STRUCT_IFREQ_IFR_FLAGS 619#undef HAVE_STRUCT_IFREQ_IFR_FLAGS
620 620
621/* Define to 1 if `ifr_hwaddr' is a member of `struct ifreq'. */ 621/* Define to 1 if `ifr_hwaddr' is member of `struct ifreq'. */
622#undef HAVE_STRUCT_IFREQ_IFR_HWADDR 622#undef HAVE_STRUCT_IFREQ_IFR_HWADDR
623 623
624/* Define to 1 if `ifr_netmask' is a member of `struct ifreq'. */ 624/* Define to 1 if `ifr_netmask' is member of `struct ifreq'. */
625#undef HAVE_STRUCT_IFREQ_IFR_NETMASK 625#undef HAVE_STRUCT_IFREQ_IFR_NETMASK
626 626
627/* Define to 1 if `n_un.n_name' is a member of `struct nlist'. */ 627/* Define to 1 if `n_un.n_name' is member of `struct nlist'. */
628#undef HAVE_STRUCT_NLIST_N_UN_N_NAME 628#undef HAVE_STRUCT_NLIST_N_UN_N_NAME
629 629
630/* Define to 1 if `tm_zone' is a member of `struct tm'. */ 630/* Define to 1 if `tm_zone' is member of `struct tm'. */
631#undef HAVE_STRUCT_TM_TM_ZONE 631#undef HAVE_STRUCT_TM_TM_ZONE
632 632
633/* Define to 1 if `struct utimbuf' is declared by <utime.h>. */ 633/* Define to 1 if `struct utimbuf' is declared by <utime.h>. */
@@ -854,9 +854,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
854/* Define to the one symbol short name of this package. */ 854/* Define to the one symbol short name of this package. */
855#undef PACKAGE_TARNAME 855#undef PACKAGE_TARNAME
856 856
857/* Define to the home page for this package. */
858#undef PACKAGE_URL
859
860/* Define to the version of this package. */ 857/* Define to the version of this package. */
861#undef PACKAGE_VERSION 858#undef PACKAGE_VERSION
862 859
@@ -913,28 +910,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
913/* Define to 1 if using the Motif X toolkit. */ 910/* Define to 1 if using the Motif X toolkit. */
914#undef USE_MOTIF 911#undef USE_MOTIF
915 912
916/* Enable extensions on AIX 3, Interix. */
917#ifndef _ALL_SOURCE
918# undef _ALL_SOURCE
919#endif
920/* Enable GNU extensions on systems that have them. */
921#ifndef _GNU_SOURCE
922# undef _GNU_SOURCE
923#endif
924/* Enable threading extensions on Solaris. */
925#ifndef _POSIX_PTHREAD_SEMANTICS
926# undef _POSIX_PTHREAD_SEMANTICS
927#endif
928/* Enable extensions on HP NonStop. */
929#ifndef _TANDEM_SOURCE
930# undef _TANDEM_SOURCE
931#endif
932/* Enable general extensions on Solaris. */
933#ifndef __EXTENSIONS__
934# undef __EXTENSIONS__
935#endif
936
937
938/* Define to 1 if we should use toolkit scroll bars. */ 913/* Define to 1 if we should use toolkit scroll bars. */
939#undef USE_TOOLKIT_SCROLL_BARS 914#undef USE_TOOLKIT_SCROLL_BARS
940 915
@@ -970,6 +945,28 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
970/* Define to 1 if you need to in order for `stat' and other things to work. */ 945/* Define to 1 if you need to in order for `stat' and other things to work. */
971#undef _POSIX_SOURCE 946#undef _POSIX_SOURCE
972 947
948/* Enable extensions on AIX 3, Interix. */
949#ifndef _ALL_SOURCE
950# undef _ALL_SOURCE
951#endif
952/* Enable GNU extensions on systems that have them. */
953#ifndef _GNU_SOURCE
954# undef _GNU_SOURCE
955#endif
956/* Enable threading extensions on Solaris. */
957#ifndef _POSIX_PTHREAD_SEMANTICS
958# undef _POSIX_PTHREAD_SEMANTICS
959#endif
960/* Enable extensions on HP NonStop. */
961#ifndef _TANDEM_SOURCE
962# undef _TANDEM_SOURCE
963#endif
964/* Enable general extensions on Solaris. */
965#ifndef __EXTENSIONS__
966# undef __EXTENSIONS__
967#endif
968
969
973/* Define to rpl_ if the getopt replacement functions and variables should be 970/* Define to rpl_ if the getopt replacement functions and variables should be
974 used. */ 971 used. */
975#undef __GETOPT_PREFIX 972#undef __GETOPT_PREFIX
@@ -1069,9 +1066,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
1069 parallel this exactly since GNUstep is multi-OS. */ 1066 parallel this exactly since GNUstep is multi-OS. */
1070#ifdef HAVE_NS 1067#ifdef HAVE_NS
1071# ifdef NS_IMPL_GNUSTEP 1068# ifdef NS_IMPL_GNUSTEP
1072/* See also .m.o rule in Makefile.in */
1073/* FIXME: are all these flags really needed? Document here why. */
1074# define C_SWITCH_X_SYSTEM -D_REENTRANT -fPIC -fno-strict-aliasing
1075/* GNUstep needs a bit more pure memory. Of the existing knobs, 1069/* GNUstep needs a bit more pure memory. Of the existing knobs,
1076SYSTEM_PURESIZE_EXTRA seems like the least likely to cause problems. */ 1070SYSTEM_PURESIZE_EXTRA seems like the least likely to cause problems. */
1077# define SYSTEM_PURESIZE_EXTRA 30000 1071# define SYSTEM_PURESIZE_EXTRA 30000