aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2010-04-22 09:10:43 +0900
committerMiles Bader2010-04-22 09:10:43 +0900
commit8732a4e9577b3d65cfb425c877520d70750c08e8 (patch)
tree4445e97491502d84e318f613c3bacc18bb2bb28c
parent567c757d4298680f71e3826c73850c4e5687648b (diff)
downloademacs-8732a4e9577b3d65cfb425c877520d70750c08e8.tar.gz
emacs-8732a4e9577b3d65cfb425c877520d70750c08e8.zip
Update configure
-rwxr-xr-xconfigure18924
1 files changed, 3232 insertions, 15692 deletions
diff --git a/configure b/configure
index 7c124fc4fbb..800069634d7 100755
--- a/configure
+++ b/configure
@@ -1,18 +1,22 @@
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.62 for emacs 24.0.50. 3# Generated by GNU Autoconf 2.65 for emacs 24.0.50.
4#
4# 5#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8# Inc.
9#
10#
7# This configure script is free software; the Free Software Foundation 11# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it. 12# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ## 13## -------------------- ##
10## M4sh Initialization. ## 14## M4sh Initialization. ##
11## --------------------- ## 15## -------------------- ##
12 16
13# Be more Bourne compatible 17# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh 18DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16 emulate sh 20 emulate sh
17 NULLCMD=: 21 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
@@ -20,23 +24,15 @@ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 alias -g '${1+"$@"}'='"$@"' 24 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST 25 setopt NO_GLOB_SUBST
22else 26else
23 case `(set -o) 2>/dev/null` in 27 case `(set -o) 2>/dev/null` in #(
24 *posix*) set -o posix ;; 28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
25esac 32esac
26
27fi 33fi
28 34
29 35
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
40as_nl=' 36as_nl='
41' 37'
42export as_nl 38export as_nl
@@ -44,7 +40,13 @@ export as_nl
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 41as_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 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 43# Prefer a ksh shell builtin over an external printf program on Solaris,
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
48 as_echo='printf %s\n' 50 as_echo='printf %s\n'
49 as_echo_n='printf %s' 51 as_echo_n='printf %s'
50else 52else
@@ -55,7 +57,7 @@ else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval 58 as_echo_n_body='eval
57 arg=$1; 59 arg=$1;
58 case $arg in 60 case $arg in #(
59 *"$as_nl"*) 61 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl"; 62 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
@@ -78,13 +80,6 @@ if test "${PATH_SEPARATOR+set}" != set; then
78 } 80 }
79fi 81fi
80 82
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
88 83
89# IFS 84# IFS
90# We need space, tab and new line, in precisely that order. Quoting is 85# We need space, tab and new line, in precisely that order. Quoting is
@@ -94,15 +89,15 @@ fi
94IFS=" "" $as_nl" 89IFS=" "" $as_nl"
95 90
96# Find who we are. Look in the path if we contain no directory separator. 91# Find who we are. Look in the path if we contain no directory separator.
97case $0 in 92case $0 in #((
98 *[\\/]* ) as_myself=$0 ;; 93 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH 95for as_dir in $PATH
101do 96do
102 IFS=$as_save_IFS 97 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=. 98 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done 100 done
106IFS=$as_save_IFS 101IFS=$as_save_IFS
107 102
108 ;; 103 ;;
@@ -114,12 +109,16 @@ if test "x$as_myself" = x; then
114fi 109fi
115if test ! -f "$as_myself"; then 110if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; } 112 exit 1
118fi 113fi
119 114
120# Work around bugs in pre-3.0 UWIN ksh. 115# Unset variables that we do not need and which cause bugs (e.g. in
121for as_var in ENV MAIL MAILPATH 116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 117# suppresses any "Segmentation fault" message there. '((' could
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 || :
123done 122done
124PS1='$ ' 123PS1='$ '
125PS2='> ' 124PS2='> '
@@ -131,330 +130,299 @@ export LC_ALL
131LANGUAGE=C 130LANGUAGE=C
132export LANGUAGE 131export LANGUAGE
133 132
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
169# CDPATH. 133# CDPATH.
170$as_unset CDPATH 134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
171
172 135
173if test "x$CONFIG_SHELL" = x; then 136if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then 137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
175 as_have_required=yes 138 emulate sh
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
176else 144else
177 as_have_required=no 145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
178fi 151fi
179 152"
180 if test $as_have_required = yes && (eval ": 153 as_required="as_fn_return () { (exit \$1); }
181(as_func_return () { 154as_fn_success () { as_fn_return 0; }
182 (exit \$1) 155as_fn_failure () { as_fn_return 1; }
183} 156as_fn_ret_success () { return 0; }
184as_func_success () { 157as_fn_ret_failure () { return 1; }
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}
196 158
197exitcode=0 159exitcode=0
198if as_func_success; then 160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
199 : 161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
200else 162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
201 exitcode=1 163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
202 echo as_func_success failed. 164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
203fi 165
204 166else
205if as_func_failure; then 167 exitcode=1; echo positional parameters were not saved.
206 exitcode=1 168fi
207 echo as_func_failure succeeded. 169test x\$exitcode = x0 || exit 1"
208fi 170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
209 171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
210if as_func_ret_success; then 172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
211 : 173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
212else 174test \$(( 1 + 1 )) = 2 || exit 1"
213 exitcode=1 175 if (eval "$as_required") 2>/dev/null; then :
214 echo as_func_ret_success failed. 176 as_have_required=yes
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 177else
225 exitcode=1 178 as_have_required=no
226 echo positional parameters were not saved.
227fi 179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
228 181
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 182else
239 as_candidate_shells= 183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 184as_found=false
241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242do 186do
243 IFS=$as_save_IFS 187 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=. 188 test -z "$as_dir" && as_dir=.
245 case $as_dir in 189 as_found=:
190 case $as_dir in #(
246 /*) 191 /*)
247 for as_base in sh bash ksh sh5; do 192 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 193 # Try only shells that exist, to save several forks.
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
249 done;; 202 done;;
250 esac 203 esac
204 as_found=false
251done 205done
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; }
252IFS=$as_save_IFS 210IFS=$as_save_IFS
253 211
254 212
255 for as_shell in $as_candidate_shells $SHELL; do 213 if test "x$CONFIG_SHELL" != x; then :
256 # Try only shells that exist, to save several forks. 214 # We cannot yet assume a decent shell, so we have to provide a
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 215 # neutralization value for shells without unset; and this also
258 { ("$as_shell") 2> /dev/null <<\_ASEOF 216 # works around shells that cannot unset nonexistent variables.
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 217 BASH_ENV=/dev/null
260 emulate sh 218 ENV=/dev/null
261 NULLCMD=: 219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
270
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
292fi
293
294
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
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}
311
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
319
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326 :
327else
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339else
340 exitcode=1
341 echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
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 220 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367fi 222fi
368 223
369 224 if test x$as_have_required = xno; then :
370 if test $as_have_required = no; then 225 $as_echo "$0: This script requires a shell more modern than all"
371 echo This script requires a shell more modern than all the 226 $as_echo "$0: the shells that I found on your system."
372 echo shells that I found on your system. Please install a 227 if test x${ZSH_VERSION+set} = xset ; then
373 echo modern shell, or manually run the script under such a 228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
374 echo shell if you do have one. 229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
375 { (exit 1); exit 1; } 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
376fi 237fi
377
378
379fi 238fi
380
381fi 239fi
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
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
382 257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263 return $1
264} # as_fn_set_status
383 265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271 set +e
272 as_fn_set_status $1
273 exit $1
274} # as_fn_exit
384 275
385(eval "as_func_return () { 276# as_fn_mkdir_p
386 (exit \$1) 277# -------------
387} 278# Create "$as_dir" as a directory, including parents if necessary.
388as_func_success () { 279as_fn_mkdir_p ()
389 as_func_return 0 280{
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 281
401exitcode=0 282 case $as_dir in #(
402if as_func_success; then 283 -*) as_dir=./$as_dir;;
403 : 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 }'
404else 334else
405 exitcode=1 335 as_fn_append ()
406 echo as_func_success failed. 336 {
407fi 337 eval $1=\$$1\$2
338 }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356fi # as_fn_arith
408 357
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413 358
414if as_func_ret_success; then 359# as_fn_error ERROR [LINENO LOG_FD]
415 : 360# ---------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with status $?, using 1 if that was 0.
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
375if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
416else 378else
417 exitcode=1 379 as_expr=false
418 echo as_func_ret_success failed.
419fi 380fi
420 381
421if as_func_ret_failure; then 382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
422 exitcode=1 383 as_basename=basename
423 echo as_func_ret_failure succeeded. 384else
385 as_basename=false
424fi 386fi
425 387
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
427 : 389 as_dirname=dirname
428else 390else
429 exitcode=1 391 as_dirname=false
430 echo positional parameters were not saved.
431fi 392fi
432 393
433test \$exitcode = 0") || { 394as_me=`$as_basename -- "$0" ||
434 echo No shell found that supports shell functions. 395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
435 echo Please tell bug-autoconf@gnu.org about your system, 396 X"$0" : 'X\(//\)$' \| \
436 echo including any error possibly output before this message. 397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
437 echo This can help us improve future autoconf versions. 398$as_echo X/"$0" |
438 echo Configuration will now proceed without shell functions. 399 sed '/^.*\/\([^/][^/]*\)\/*$/{
439} 400 s//\1/
440 401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
441 412
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
442 419
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447 420
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a 422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
450 # line-number line after each line using $LINENO; the second 'sed' 423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
451 # does the real work. The second script uses 'N' to pair each 424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
452 # line-number line with the line containing $LINENO, and appends 425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
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. :-)
458 sed -n ' 426 sed -n '
459 p 427 p
460 /[$]LINENO/= 428 /[$]LINENO/=
@@ -471,8 +439,7 @@ test \$exitcode = 0") || {
471 s/-\n.*// 439 s/-\n.*//
472 ' >$as_me.lineno && 440 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" || 441 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
475 { (exit 1); exit 1; }; }
476 443
477 # Don't try to exec as it changes $[0], causing all sort of problems 444 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the 445 # (the dirname of $[0] is not the place where we might find the
@@ -482,29 +449,18 @@ test \$exitcode = 0") || {
482 exit 449 exit
483} 450}
484 451
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
492ECHO_C= ECHO_N= ECHO_T= 452ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in 453case `echo -n x` in #(((((
494-n*) 454-n*)
495 case `echo 'x\c'` in 455 case `echo 'xy\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';; 457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
498 esac;; 460 esac;;
499*) 461*)
500 ECHO_N='-n';; 462 ECHO_N='-n';;
501esac 463esac
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
508 464
509rm -f conf$$ conf$$.exe conf$$.file 465rm -f conf$$ conf$$.exe conf$$.file
510if test -d conf$$.dir; then 466if test -d conf$$.dir; then
@@ -534,7 +490,7 @@ rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null 490rmdir conf$$.dir 2>/dev/null
535 491
536if mkdir -p . 2>/dev/null; then 492if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=: 493 as_mkdir_p='mkdir -p "$as_dir"'
538else 494else
539 test -d ./-p && rmdir ./-p 495 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false 496 as_mkdir_p=false
@@ -553,10 +509,10 @@ else
553 if test -d "$1"; then 509 if test -d "$1"; then
554 test -d "$1/."; 510 test -d "$1/.";
555 else 511 else
556 case $1 in 512 case $1 in #(
557 -*)set "./$1";; 513 -*)set "./$1";;
558 esac; 514 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
560 ???[sx]*):;;*)false;;esac;fi 516 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh 517 '\'' sh
562 ' 518 '
@@ -570,8 +526,8 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571 527
572 528
573 529test -n "$DJDIR" || exec 7<&0 </dev/null
574exec 7<&0 </dev/null 6>&1 530exec 6>&1
575 531
576# Name of the host. 532# Name of the host.
577# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 533# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
@@ -589,7 +545,6 @@ cross_compiling=no
589subdirs= 545subdirs=
590MFLAGS= 546MFLAGS=
591MAKEFLAGS= 547MAKEFLAGS=
592SHELL=${CONFIG_SHELL-/bin/sh}
593 548
594# Identity of this package. 549# Identity of this package.
595PACKAGE_NAME='emacs' 550PACKAGE_NAME='emacs'
@@ -597,6 +552,7 @@ PACKAGE_TARNAME='emacs'
597PACKAGE_VERSION='24.0.50' 552PACKAGE_VERSION='24.0.50'
598PACKAGE_STRING='emacs 24.0.50' 553PACKAGE_STRING='emacs 24.0.50'
599PACKAGE_BUGREPORT='' 554PACKAGE_BUGREPORT=''
555PACKAGE_URL=''
600 556
601ac_unique_file="src/lisp.h" 557ac_unique_file="src/lisp.h"
602# Factoring default headers for most tests. 558# Factoring default headers for most tests.
@@ -638,156 +594,157 @@ ac_includes_default="\
638ac_config_libobj_dir=src 594ac_config_libobj_dir=src
639ac_header_list= 595ac_header_list=
640ac_func_list= 596ac_func_list=
641ac_subst_vars='SHELL 597ac_subst_vars='LTLIBOBJS
642PATH_SEPARATOR
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
705LIBSOUND
706PKG_CONFIG
707ALSA_CFLAGS
708ALSA_LIBS
709CFLAGS_SOUND
710SET_MAKE
711XMKMF
712HAVE_XSERVER
713RSVG_CFLAGS
714RSVG_LIBS
715GTK_CFLAGS
716GTK_LIBS
717GTK_OBJ
718DBUS_CFLAGS
719DBUS_LIBS
720DBUS_OBJ
721GCONF_CFLAGS
722GCONF_LIBS
723LIBSELINUX_LIBS
724FONTCONFIG_CFLAGS
725FONTCONFIG_LIBS
726XFT_CFLAGS
727XFT_LIBS
728LIBOTF_CFLAGS
729LIBOTF_LIBS
730M17N_FLT_CFLAGS
731M17N_FLT_LIBS
732FREETYPE_CFLAGS
733FREETYPE_LIBS
734LIBXPM
735LIBJPEG
736LIBPNG
737LIBTIFF
738LIBGIF
739LIBGPM
740LIBXSM
741ALLOCA
742liblockfile
743LIBS_MAIL
744LIBOBJS
745NEED_SETGID
746KMEM_GROUP
747GETLOADAVG_LIBS
748GETOPT_H
749GETOPTOBJS
750LIBHESIOD
751LIBRESOLV
752COM_ERRLIB
753CRYPTOLIB
754KRB5LIB
755DESLIB
756KRB4LIB
757version
758configuration
759canonical
760srcdir
761lispdir
762locallisppath
763lisppath
764x_default_search_path
765etcdir
766archlibdir
767bitmapdir
768gamedir
769gameuser
770c_switch_system
771c_switch_machine
772LD_SWITCH_X_SITE
773LD_SWITCH_X_SITE_AUX
774C_SWITCH_X_SITE
775X_TOOLKIT_TYPE
776machfile
777opsysfile
778ns_appdir
779ns_appbindir
780ns_appresdir
781ns_appsrc
782GNUSTEP_MAKEFILES
783GNUSTEP_SYSTEM_HEADERS
784GNUSTEP_SYSTEM_LIBRARIES
785GNU_OBJC_CFLAGS
786LIB_SRC_EXTRA_INSTALLABLES
787OTHER_FILES
788XMENU_OBJ
789XOBJ 598XOBJ
790LTLIBOBJS' 599XMENU_OBJ
600OTHER_FILES
601LIB_SRC_EXTRA_INSTALLABLES
602GNU_OBJC_CFLAGS
603GNUSTEP_SYSTEM_LIBRARIES
604GNUSTEP_SYSTEM_HEADERS
605GNUSTEP_MAKEFILES
606ns_appsrc
607ns_appresdir
608ns_appbindir
609ns_appdir
610opsysfile
611machfile
612X_TOOLKIT_TYPE
613C_SWITCH_X_SITE
614LD_SWITCH_X_SITE_AUX
615LD_SWITCH_X_SITE
616c_switch_machine
617c_switch_system
618gameuser
619gamedir
620bitmapdir
621archlibdir
622etcdir
623x_default_search_path
624lisppath
625locallisppath
626lispdir
627srcdir
628canonical
629configuration
630version
631KRB4LIB
632DESLIB
633KRB5LIB
634CRYPTOLIB
635COM_ERRLIB
636LIBRESOLV
637LIBHESIOD
638GETOPTOBJS
639GETOPT_H
640GETLOADAVG_LIBS
641KMEM_GROUP
642NEED_SETGID
643LIBOBJS
644LIBS_MAIL
645liblockfile
646ALLOCA
647LIBXSM
648LIBGPM
649LIBGIF
650LIBTIFF
651LIBPNG
652LIBJPEG
653LIBXPM
654FREETYPE_LIBS
655FREETYPE_CFLAGS
656M17N_FLT_LIBS
657M17N_FLT_CFLAGS
658LIBOTF_LIBS
659LIBOTF_CFLAGS
660XFT_LIBS
661XFT_CFLAGS
662FONTCONFIG_LIBS
663FONTCONFIG_CFLAGS
664LIBSELINUX_LIBS
665GCONF_LIBS
666GCONF_CFLAGS
667DBUS_OBJ
668DBUS_LIBS
669DBUS_CFLAGS
670GTK_OBJ
671GTK_LIBS
672GTK_CFLAGS
673RSVG_LIBS
674RSVG_CFLAGS
675HAVE_XSERVER
676XMKMF
677SET_MAKE
678CFLAGS_SOUND
679ALSA_LIBS
680ALSA_CFLAGS
681PKG_CONFIG
682LIBSOUND
683MAKEINFO
684GZIP_PROG
685INSTALL_INFO
686RANLIB
687INSTALL_DATA
688INSTALL_SCRIPT
689INSTALL_PROGRAM
690LN_S
691EGREP
692GREP
693CPP
694OBJEXT
695EXEEXT
696ac_ct_CC
697CPPFLAGS
698LDFLAGS
699CFLAGS
700CC
701host_os
702host_vendor
703host_cpu
704host
705build_os
706build_vendor
707build_cpu
708build
709MAINT
710target_alias
711host_alias
712build_alias
713LIBS
714ECHO_T
715ECHO_N
716ECHO_C
717DEFS
718mandir
719localedir
720libdir
721psdir
722pdfdir
723dvidir
724htmldir
725infodir
726docdir
727oldincludedir
728includedir
729localstatedir
730sharedstatedir
731sysconfdir
732datadir
733datarootdir
734libexecdir
735sbindir
736bindir
737program_transform_name
738prefix
739exec_prefix
740PACKAGE_URL
741PACKAGE_BUGREPORT
742PACKAGE_STRING
743PACKAGE_VERSION
744PACKAGE_TARNAME
745PACKAGE_NAME
746PATH_SEPARATOR
747SHELL'
791ac_subst_files='' 748ac_subst_files=''
792ac_user_opts=' 749ac_user_opts='
793enable_option_checking 750enable_option_checking
@@ -951,8 +908,7 @@ do
951 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 908 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
952 # Reject names that are not valid shell variable names. 909 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 911 as_fn_error "invalid feature name: $ac_useropt"
955 { (exit 1); exit 1; }; }
956 ac_useropt_orig=$ac_useropt 912 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 913 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in 914 case $ac_user_opts in
@@ -978,8 +934,7 @@ do
978 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 934 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
979 # Reject names that are not valid shell variable names. 935 # Reject names that are not valid shell variable names.
980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 937 as_fn_error "invalid feature name: $ac_useropt"
982 { (exit 1); exit 1; }; }
983 ac_useropt_orig=$ac_useropt 938 ac_useropt_orig=$ac_useropt
984 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 939 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
985 case $ac_user_opts in 940 case $ac_user_opts in
@@ -1183,8 +1138,7 @@ do
1183 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1138 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1184 # Reject names that are not valid shell variable names. 1139 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1141 as_fn_error "invalid package name: $ac_useropt"
1187 { (exit 1); exit 1; }; }
1188 ac_useropt_orig=$ac_useropt 1142 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in 1144 case $ac_user_opts in
@@ -1200,8 +1154,7 @@ do
1200 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1154 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1201 # Reject names that are not valid shell variable names. 1155 # Reject names that are not valid shell variable names.
1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1157 as_fn_error "invalid package name: $ac_useropt"
1204 { (exit 1); exit 1; }; }
1205 ac_useropt_orig=$ac_useropt 1158 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in 1160 case $ac_user_opts in
@@ -1231,17 +1184,17 @@ do
1231 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1184 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1232 x_libraries=$ac_optarg ;; 1185 x_libraries=$ac_optarg ;;
1233 1186
1234 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1187 -*) as_fn_error "unrecognized option: \`$ac_option'
1235Try \`$0 --help' for more information." >&2 1188Try \`$0 --help' for more information."
1236 { (exit 1); exit 1; }; }
1237 ;; 1189 ;;
1238 1190
1239 *=*) 1191 *=*)
1240 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1192 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1241 # Reject names that are not valid shell variable names. 1193 # Reject names that are not valid shell variable names.
1242 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1194 case $ac_envvar in #(
1243 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1195 '' | [0-9]* | *[!_$as_cr_alnum]* )
1244 { (exit 1); exit 1; }; } 1196 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1197 esac
1245 eval $ac_envvar=\$ac_optarg 1198 eval $ac_envvar=\$ac_optarg
1246 export $ac_envvar ;; 1199 export $ac_envvar ;;
1247 1200
@@ -1258,16 +1211,14 @@ done
1258 1211
1259if test -n "$ac_prev"; then 1212if test -n "$ac_prev"; then
1260 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1213 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1261 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1214 as_fn_error "missing argument to $ac_option"
1262 { (exit 1); exit 1; }; }
1263fi 1215fi
1264 1216
1265if test -n "$ac_unrecognized_opts"; then 1217if test -n "$ac_unrecognized_opts"; then
1266 case $enable_option_checking in 1218 case $enable_option_checking in
1267 no) ;; 1219 no) ;;
1268 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2 1220 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1269 { (exit 1); exit 1; }; } ;; 1221 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1270 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1271 esac 1222 esac
1272fi 1223fi
1273 1224
@@ -1289,8 +1240,7 @@ do
1289 [\\/$]* | ?:[\\/]* ) continue;; 1240 [\\/$]* | ?:[\\/]* ) continue;;
1290 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1241 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1291 esac 1242 esac
1292 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1243 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1293 { (exit 1); exit 1; }; }
1294done 1244done
1295 1245
1296# There might be people who depend on the old broken behavior: `$host' 1246# There might be people who depend on the old broken behavior: `$host'
@@ -1320,11 +1270,9 @@ test "$silent" = yes && exec 6>/dev/null
1320ac_pwd=`pwd` && test -n "$ac_pwd" && 1270ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321ac_ls_di=`ls -di .` && 1271ac_ls_di=`ls -di .` &&
1322ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1272ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1323 { $as_echo "$as_me: error: Working directory cannot be determined" >&2 1273 as_fn_error "working directory cannot be determined"
1324 { (exit 1); exit 1; }; }
1325test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1274test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1275 as_fn_error "pwd does not report name of working directory"
1327 { (exit 1); exit 1; }; }
1328 1276
1329 1277
1330# Find the source files, if location was not specified. 1278# Find the source files, if location was not specified.
@@ -1363,13 +1311,11 @@ else
1363fi 1311fi
1364if test ! -r "$srcdir/$ac_unique_file"; then 1312if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1313 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1366 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1314 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1367 { (exit 1); exit 1; }; }
1368fi 1315fi
1369ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1316ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370ac_abs_confdir=`( 1317ac_abs_confdir=`(
1371 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1318 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1372 { (exit 1); exit 1; }; }
1373 pwd)` 1319 pwd)`
1374# When building in place, set srcdir=. 1320# When building in place, set srcdir=.
1375if test "$ac_abs_confdir" = "$ac_pwd"; then 1321if test "$ac_abs_confdir" = "$ac_pwd"; then
@@ -1547,7 +1493,7 @@ Some influential environment variables:
1547 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1548 nonstandard directory <lib dir> 1494 nonstandard directory <lib dir>
1549 LIBS libraries to pass to the linker, e.g. -l<library> 1495 LIBS libraries to pass to the linker, e.g. -l<library>
1550 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1496 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1551 you have headers in a nonstandard directory <include dir> 1497 you have headers in a nonstandard directory <include dir>
1552 CPP C preprocessor 1498 CPP C preprocessor
1553 XMKMF Path to xmkmf, Makefile generator for X Window System 1499 XMKMF Path to xmkmf, Makefile generator for X Window System
@@ -1555,6 +1501,7 @@ Some influential environment variables:
1555Use these variables to override the choices made by `configure' or to help 1501Use these variables to override the choices made by `configure' or to help
1556it to find libraries and programs with nonstandard names/locations. 1502it to find libraries and programs with nonstandard names/locations.
1557 1503
1504Report bugs to the package provider.
1558_ACEOF 1505_ACEOF
1559ac_status=$? 1506ac_status=$?
1560fi 1507fi
@@ -1618,21 +1565,551 @@ test -n "$ac_init_help" && exit $ac_status
1618if $ac_init_version; then 1565if $ac_init_version; then
1619 cat <<\_ACEOF 1566 cat <<\_ACEOF
1620emacs configure 24.0.50 1567emacs configure 24.0.50
1621generated by GNU Autoconf 2.62 1568generated by GNU Autoconf 2.65
1622 1569
1623Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1570Copyright (C) 2009 Free Software Foundation, Inc.
16242002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1625This configure script is free software; the Free Software Foundation 1571This configure script is free software; the Free Software Foundation
1626gives unlimited permission to copy, distribute and modify it. 1572gives unlimited permission to copy, distribute and modify it.
1627_ACEOF 1573_ACEOF
1628 exit 1574 exit
1629fi 1575fi
1576
1577## ------------------------ ##
1578## Autoconf initialization. ##
1579## ------------------------ ##
1580
1581# ac_fn_c_try_compile LINENO
1582# --------------------------
1583# Try to compile conftest.$ac_ext, and return whether this succeeded.
1584ac_fn_c_try_compile ()
1585{
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 rm -f conftest.$ac_objext
1588 if { { ac_try="$ac_compile"
1589case "(($ac_try" in
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1592esac
1593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594$as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_compile") 2>conftest.err
1596 ac_status=$?
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1601 fi
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } && {
1604 test -z "$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1606 } && test -s conftest.$ac_objext; then :
1607 ac_retval=0
1608else
1609 $as_echo "$as_me: failed program was:" >&5
1610sed 's/^/| /' conftest.$ac_ext >&5
1611
1612 ac_retval=1
1613fi
1614 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1615 as_fn_set_status $ac_retval
1616
1617} # ac_fn_c_try_compile
1618
1619# ac_fn_c_try_link LINENO
1620# -----------------------
1621# Try to link conftest.$ac_ext, and return whether this succeeded.
1622ac_fn_c_try_link ()
1623{
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 rm -f conftest.$ac_objext conftest$ac_exeext
1626 if { { ac_try="$ac_link"
1627case "(($ac_try" in
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1630esac
1631eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632$as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_link") 2>conftest.err
1634 ac_status=$?
1635 if test -s conftest.err; then
1636 grep -v '^ *+' conftest.err >conftest.er1
1637 cat conftest.er1 >&5
1638 mv -f conftest.er1 conftest.err
1639 fi
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && {
1642 test -z "$ac_c_werror_flag" ||
1643 test ! -s conftest.err
1644 } && test -s conftest$ac_exeext && {
1645 test "$cross_compiling" = yes ||
1646 $as_test_x conftest$ac_exeext
1647 }; then :
1648 ac_retval=0
1649else
1650 $as_echo "$as_me: failed program was:" >&5
1651sed 's/^/| /' conftest.$ac_ext >&5
1652
1653 ac_retval=1
1654fi
1655 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1656 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1657 # interfere with the next link command; also delete a directory that is
1658 # left behind by Apple's compiler. We do this before executing the actions.
1659 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1660 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1661 as_fn_set_status $ac_retval
1662
1663} # ac_fn_c_try_link
1664
1665# ac_fn_c_try_cpp LINENO
1666# ----------------------
1667# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1668ac_fn_c_try_cpp ()
1669{
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 if { { ac_try="$ac_cpp conftest.$ac_ext"
1672case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675esac
1676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677$as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1679 ac_status=$?
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1684 fi
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } >/dev/null && {
1687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1689 }; then :
1690 ac_retval=0
1691else
1692 $as_echo "$as_me: failed program was:" >&5
1693sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=1
1696fi
1697 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1698 as_fn_set_status $ac_retval
1699
1700} # ac_fn_c_try_cpp
1701
1702# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1703# -------------------------------------------------------
1704# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1705# the include files in INCLUDES and setting the cache variable VAR
1706# accordingly.
1707ac_fn_c_check_header_mongrel ()
1708{
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712$as_echo_n "checking for $2... " >&6; }
1713if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1714 $as_echo_n "(cached) " >&6
1715fi
1716eval ac_res=\$$3
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1718$as_echo "$ac_res" >&6; }
1719else
1720 # Is the header compilable?
1721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1722$as_echo_n "checking $2 usability... " >&6; }
1723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724/* end confdefs.h. */
1725$4
1726#include <$2>
1727_ACEOF
1728if ac_fn_c_try_compile "$LINENO"; then :
1729 ac_header_compiler=yes
1730else
1731 ac_header_compiler=no
1732fi
1733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1735$as_echo "$ac_header_compiler" >&6; }
1736
1737# Is the header present?
1738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1739$as_echo_n "checking $2 presence... " >&6; }
1740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741/* end confdefs.h. */
1742#include <$2>
1743_ACEOF
1744if ac_fn_c_try_cpp "$LINENO"; then :
1745 ac_header_preproc=yes
1746else
1747 ac_header_preproc=no
1748fi
1749rm -f conftest.err conftest.$ac_ext
1750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1751$as_echo "$ac_header_preproc" >&6; }
1752
1753# So? What about this header?
1754case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1755 yes:no: )
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1757$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1759$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1760 ;;
1761 no:yes:* )
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1763$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1765$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1767$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1769$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1771$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1772 ;;
1773esac
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775$as_echo_n "checking for $2... " >&6; }
1776if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1777 $as_echo_n "(cached) " >&6
1778else
1779 eval "$3=\$ac_header_compiler"
1780fi
1781eval ac_res=\$$3
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783$as_echo "$ac_res" >&6; }
1784fi
1785 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1786
1787} # ac_fn_c_check_header_mongrel
1788
1789# ac_fn_c_try_run LINENO
1790# ----------------------
1791# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1792# that executables *can* be run.
1793ac_fn_c_try_run ()
1794{
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 if { { ac_try="$ac_link"
1797case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800esac
1801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802$as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_link") 2>&5
1804 ac_status=$?
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1807 { { case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810esac
1811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812$as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_try") 2>&5
1814 ac_status=$?
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; }; }; then :
1817 ac_retval=0
1818else
1819 $as_echo "$as_me: program exited with status $ac_status" >&5
1820 $as_echo "$as_me: failed program was:" >&5
1821sed 's/^/| /' conftest.$ac_ext >&5
1822
1823 ac_retval=$ac_status
1824fi
1825 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827 as_fn_set_status $ac_retval
1828
1829} # ac_fn_c_try_run
1830
1831# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1832# -------------------------------------------------------
1833# Tests whether HEADER exists and can be compiled using the include files in
1834# INCLUDES, setting the cache variable VAR accordingly.
1835ac_fn_c_check_header_compile ()
1836{
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839$as_echo_n "checking for $2... " >&6; }
1840if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1841 $as_echo_n "(cached) " >&6
1842else
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844/* end confdefs.h. */
1845$4
1846#include <$2>
1847_ACEOF
1848if ac_fn_c_try_compile "$LINENO"; then :
1849 eval "$3=yes"
1850else
1851 eval "$3=no"
1852fi
1853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1854fi
1855eval ac_res=\$$3
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857$as_echo "$ac_res" >&6; }
1858 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1859
1860} # ac_fn_c_check_header_compile
1861
1862# ac_fn_c_check_header_preproc LINENO HEADER VAR
1863# ----------------------------------------------
1864# Tests whether HEADER is present, setting the cache variable VAR accordingly.
1865ac_fn_c_check_header_preproc ()
1866{
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869$as_echo_n "checking for $2... " >&6; }
1870if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1871 $as_echo_n "(cached) " >&6
1872else
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874/* end confdefs.h. */
1875#include <$2>
1876_ACEOF
1877if ac_fn_c_try_cpp "$LINENO"; then :
1878 eval "$3=yes"
1879else
1880 eval "$3=no"
1881fi
1882rm -f conftest.err conftest.$ac_ext
1883fi
1884eval ac_res=\$$3
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886$as_echo "$ac_res" >&6; }
1887 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1888
1889} # ac_fn_c_check_header_preproc
1890
1891# ac_fn_c_check_decl LINENO SYMBOL VAR
1892# ------------------------------------
1893# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1894ac_fn_c_check_decl ()
1895{
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1898$as_echo_n "checking whether $2 is declared... " >&6; }
1899if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1900 $as_echo_n "(cached) " >&6
1901else
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903/* end confdefs.h. */
1904$4
1905int
1906main ()
1907{
1908#ifndef $2
1909 (void) $2;
1910#endif
1911
1912 ;
1913 return 0;
1914}
1915_ACEOF
1916if ac_fn_c_try_compile "$LINENO"; then :
1917 eval "$3=yes"
1918else
1919 eval "$3=no"
1920fi
1921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922fi
1923eval ac_res=\$$3
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925$as_echo "$ac_res" >&6; }
1926 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1927
1928} # ac_fn_c_check_decl
1929
1930# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1931# ----------------------------------------------------
1932# Tries to find if the field MEMBER exists in type AGGR, after including
1933# INCLUDES, setting cache variable VAR accordingly.
1934ac_fn_c_check_member ()
1935{
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1938$as_echo_n "checking for $2.$3... " >&6; }
1939if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1940 $as_echo_n "(cached) " >&6
1941else
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943/* end confdefs.h. */
1944$5
1945int
1946main ()
1947{
1948static $2 ac_aggr;
1949if (ac_aggr.$3)
1950return 0;
1951 ;
1952 return 0;
1953}
1954_ACEOF
1955if ac_fn_c_try_compile "$LINENO"; then :
1956 eval "$4=yes"
1957else
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959/* end confdefs.h. */
1960$5
1961int
1962main ()
1963{
1964static $2 ac_aggr;
1965if (sizeof ac_aggr.$3)
1966return 0;
1967 ;
1968 return 0;
1969}
1970_ACEOF
1971if ac_fn_c_try_compile "$LINENO"; then :
1972 eval "$4=yes"
1973else
1974 eval "$4=no"
1975fi
1976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977fi
1978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979fi
1980eval ac_res=\$$4
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982$as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1984
1985} # ac_fn_c_check_member
1986
1987# ac_fn_c_check_func LINENO FUNC VAR
1988# ----------------------------------
1989# Tests whether FUNC exists, setting the cache variable VAR accordingly
1990ac_fn_c_check_func ()
1991{
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1994$as_echo_n "checking for $2... " >&6; }
1995if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1996 $as_echo_n "(cached) " >&6
1997else
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999/* end confdefs.h. */
2000/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2002#define $2 innocuous_$2
2003
2004/* System header to define __stub macros and hopefully few prototypes,
2005 which can conflict with char $2 (); below.
2006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2007 <limits.h> exists even on freestanding compilers. */
2008
2009#ifdef __STDC__
2010# include <limits.h>
2011#else
2012# include <assert.h>
2013#endif
2014
2015#undef $2
2016
2017/* Override any GCC internal prototype to avoid an error.
2018 Use char because int might match the return type of a GCC
2019 builtin and then its argument prototype would still apply. */
2020#ifdef __cplusplus
2021extern "C"
2022#endif
2023char $2 ();
2024/* The GNU C library defines this for functions which it implements
2025 to always fail with ENOSYS. Some functions are actually named
2026 something starting with __ and the normal name is an alias. */
2027#if defined __stub_$2 || defined __stub___$2
2028choke me
2029#endif
2030
2031int
2032main ()
2033{
2034return $2 ();
2035 ;
2036 return 0;
2037}
2038_ACEOF
2039if ac_fn_c_try_link "$LINENO"; then :
2040 eval "$3=yes"
2041else
2042 eval "$3=no"
2043fi
2044rm -f core conftest.err conftest.$ac_objext \
2045 conftest$ac_exeext conftest.$ac_ext
2046fi
2047eval ac_res=\$$3
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049$as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2051
2052} # ac_fn_c_check_func
2053
2054# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2055# -------------------------------------------
2056# Tests whether TYPE exists after having included INCLUDES, setting cache
2057# variable VAR accordingly.
2058ac_fn_c_check_type ()
2059{
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062$as_echo_n "checking for $2... " >&6; }
2063if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2064 $as_echo_n "(cached) " >&6
2065else
2066 eval "$3=no"
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068/* end confdefs.h. */
2069$4
2070int
2071main ()
2072{
2073if (sizeof ($2))
2074 return 0;
2075 ;
2076 return 0;
2077}
2078_ACEOF
2079if ac_fn_c_try_compile "$LINENO"; then :
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081/* end confdefs.h. */
2082$4
2083int
2084main ()
2085{
2086if (sizeof (($2)))
2087 return 0;
2088 ;
2089 return 0;
2090}
2091_ACEOF
2092if ac_fn_c_try_compile "$LINENO"; then :
2093
2094else
2095 eval "$3=yes"
2096fi
2097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098fi
2099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100fi
2101eval ac_res=\$$3
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103$as_echo "$ac_res" >&6; }
2104 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2105
2106} # ac_fn_c_check_type
1630cat >config.log <<_ACEOF 2107cat >config.log <<_ACEOF
1631This file contains any messages produced by compilers while 2108This file contains any messages produced by compilers while
1632running configure, to aid debugging if configure makes a mistake. 2109running configure, to aid debugging if configure makes a mistake.
1633 2110
1634It was created by emacs $as_me 24.0.50, which was 2111It was created by emacs $as_me 24.0.50, which was
1635generated by GNU Autoconf 2.62. Invocation command line was 2112generated by GNU Autoconf 2.65. Invocation command line was
1636 2113
1637 $ $0 $@ 2114 $ $0 $@
1638 2115
@@ -1668,8 +2145,8 @@ for as_dir in $PATH
1668do 2145do
1669 IFS=$as_save_IFS 2146 IFS=$as_save_IFS
1670 test -z "$as_dir" && as_dir=. 2147 test -z "$as_dir" && as_dir=.
1671 $as_echo "PATH: $as_dir" 2148 $as_echo "PATH: $as_dir"
1672done 2149 done
1673IFS=$as_save_IFS 2150IFS=$as_save_IFS
1674 2151
1675} >&5 2152} >&5
@@ -1706,9 +2183,9 @@ do
1706 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2183 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1707 esac 2184 esac
1708 case $ac_pass in 2185 case $ac_pass in
1709 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2186 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1710 2) 2187 2)
1711 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 2188 as_fn_append ac_configure_args1 " '$ac_arg'"
1712 if test $ac_must_keep_next = true; then 2189 if test $ac_must_keep_next = true; then
1713 ac_must_keep_next=false # Got value, back to normal. 2190 ac_must_keep_next=false # Got value, back to normal.
1714 else 2191 else
@@ -1724,13 +2201,13 @@ do
1724 -* ) ac_must_keep_next=true ;; 2201 -* ) ac_must_keep_next=true ;;
1725 esac 2202 esac
1726 fi 2203 fi
1727 ac_configure_args="$ac_configure_args '$ac_arg'" 2204 as_fn_append ac_configure_args " '$ac_arg'"
1728 ;; 2205 ;;
1729 esac 2206 esac
1730 done 2207 done
1731done 2208done
1732$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 2209{ ac_configure_args0=; unset ac_configure_args0;}
1733$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 2210{ ac_configure_args1=; unset ac_configure_args1;}
1734 2211
1735# When interrupted or exit'd, cleanup temporary files, and complete 2212# When interrupted or exit'd, cleanup temporary files, and complete
1736# config.log. We remove comments because anyway the quotes in there 2213# config.log. We remove comments because anyway the quotes in there
@@ -1755,13 +2232,13 @@ _ASBOX
1755 case $ac_val in #( 2232 case $ac_val in #(
1756 *${as_nl}*) 2233 *${as_nl}*)
1757 case $ac_var in #( 2234 case $ac_var in #(
1758 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 2235 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1759$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 2236$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1760 esac 2237 esac
1761 case $ac_var in #( 2238 case $ac_var in #(
1762 _ | IFS | as_nl) ;; #( 2239 _ | IFS | as_nl) ;; #(
1763 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2240 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1764 *) $as_unset $ac_var ;; 2241 *) { eval $ac_var=; unset $ac_var;} ;;
1765 esac ;; 2242 esac ;;
1766 esac 2243 esac
1767 done 2244 done
@@ -1833,39 +2310,41 @@ _ASBOX
1833 exit $exit_status 2310 exit $exit_status
1834' 0 2311' 0
1835for ac_signal in 1 2 13 15; do 2312for ac_signal in 1 2 13 15; do
1836 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 2313 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1837done 2314done
1838ac_signal=0 2315ac_signal=0
1839 2316
1840# confdefs.h avoids OS command line length limits that DEFS can exceed. 2317# confdefs.h avoids OS command line length limits that DEFS can exceed.
1841rm -f -r conftest* confdefs.h 2318rm -f -r conftest* confdefs.h
1842 2319
2320$as_echo "/* confdefs.h */" > confdefs.h
2321
1843# Predefined preprocessor variables. 2322# Predefined preprocessor variables.
1844 2323
1845cat >>confdefs.h <<_ACEOF 2324cat >>confdefs.h <<_ACEOF
1846#define PACKAGE_NAME "$PACKAGE_NAME" 2325#define PACKAGE_NAME "$PACKAGE_NAME"
1847_ACEOF 2326_ACEOF
1848 2327
1849
1850cat >>confdefs.h <<_ACEOF 2328cat >>confdefs.h <<_ACEOF
1851#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2329#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1852_ACEOF 2330_ACEOF
1853 2331
1854
1855cat >>confdefs.h <<_ACEOF 2332cat >>confdefs.h <<_ACEOF
1856#define PACKAGE_VERSION "$PACKAGE_VERSION" 2333#define PACKAGE_VERSION "$PACKAGE_VERSION"
1857_ACEOF 2334_ACEOF
1858 2335
1859
1860cat >>confdefs.h <<_ACEOF 2336cat >>confdefs.h <<_ACEOF
1861#define PACKAGE_STRING "$PACKAGE_STRING" 2337#define PACKAGE_STRING "$PACKAGE_STRING"
1862_ACEOF 2338_ACEOF
1863 2339
1864
1865cat >>confdefs.h <<_ACEOF 2340cat >>confdefs.h <<_ACEOF
1866#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2341#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1867_ACEOF 2342_ACEOF
1868 2343
2344cat >>confdefs.h <<_ACEOF
2345#define PACKAGE_URL "$PACKAGE_URL"
2346_ACEOF
2347
1869 2348
1870# Let the site file select an alternate cache file if it wants to. 2349# Let the site file select an alternate cache file if it wants to.
1871# Prefer an explicitly selected file to automatically selected ones. 2350# Prefer an explicitly selected file to automatically selected ones.
@@ -1883,8 +2362,8 @@ fi
1883for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2362for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1884do 2363do
1885 test "x$ac_site_file" = xNONE && continue 2364 test "x$ac_site_file" = xNONE && continue
1886 if test -r "$ac_site_file"; then 2365 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1887 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 2366 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1888$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2367$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1889 sed 's/^/| /' "$ac_site_file" >&5 2368 sed 's/^/| /' "$ac_site_file" >&5
1890 . "$ac_site_file" 2369 . "$ac_site_file"
@@ -1892,10 +2371,10 @@ $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1892done 2371done
1893 2372
1894if test -r "$cache_file"; then 2373if test -r "$cache_file"; then
1895 # Some versions of bash will fail to source /dev/null (special 2374 # Some versions of bash will fail to source /dev/null (special files
1896 # files actually), so we avoid doing that. 2375 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1897 if test -f "$cache_file"; then 2376 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1898 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 2377 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1899$as_echo "$as_me: loading cache $cache_file" >&6;} 2378$as_echo "$as_me: loading cache $cache_file" >&6;}
1900 case $cache_file in 2379 case $cache_file in
1901 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2380 [\\/]* | ?:[\\/]* ) . "$cache_file";;
@@ -1903,14 +2382,16 @@ $as_echo "$as_me: loading cache $cache_file" >&6;}
1903 esac 2382 esac
1904 fi 2383 fi
1905else 2384else
1906 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 2385 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1907$as_echo "$as_me: creating cache $cache_file" >&6;} 2386$as_echo "$as_me: creating cache $cache_file" >&6;}
1908 >$cache_file 2387 >$cache_file
1909fi 2388fi
1910 2389
1911ac_header_list="$ac_header_list sys/time.h" 2390as_fn_append ac_header_list " stdlib.h"
1912ac_header_list="$ac_header_list unistd.h" 2391as_fn_append ac_header_list " unistd.h"
1913ac_func_list="$ac_func_list alarm" 2392as_fn_append ac_header_list " sys/param.h"
2393as_fn_append ac_header_list " sys/time.h"
2394as_fn_append ac_func_list " alarm"
1914# Check that the precious variables saved in the cache have kept the same 2395# Check that the precious variables saved in the cache have kept the same
1915# value. 2396# value.
1916ac_cache_corrupted=false 2397ac_cache_corrupted=false
@@ -1921,11 +2402,11 @@ for ac_var in $ac_precious_vars; do
1921 eval ac_new_val=\$ac_env_${ac_var}_value 2402 eval ac_new_val=\$ac_env_${ac_var}_value
1922 case $ac_old_set,$ac_new_set in 2403 case $ac_old_set,$ac_new_set in
1923 set,) 2404 set,)
1924 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1925$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2406$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1926 ac_cache_corrupted=: ;; 2407 ac_cache_corrupted=: ;;
1927 ,set) 2408 ,set)
1928 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1929$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2410$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1930 ac_cache_corrupted=: ;; 2411 ac_cache_corrupted=: ;;
1931 ,);; 2412 ,);;
@@ -1935,17 +2416,17 @@ $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1935 ac_old_val_w=`echo x $ac_old_val` 2416 ac_old_val_w=`echo x $ac_old_val`
1936 ac_new_val_w=`echo x $ac_new_val` 2417 ac_new_val_w=`echo x $ac_new_val`
1937 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2418 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1938 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2419 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1939$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2420$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1940 ac_cache_corrupted=: 2421 ac_cache_corrupted=:
1941 else 2422 else
1942 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2423 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1943$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2424$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1944 eval $ac_var=\$ac_old_val 2425 eval $ac_var=\$ac_old_val
1945 fi 2426 fi
1946 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2427 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1947$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2428$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1948 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2429 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1949$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2430$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1950 fi;; 2431 fi;;
1951 esac 2432 esac
@@ -1957,41 +2438,20 @@ $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1957 esac 2438 esac
1958 case " $ac_configure_args " in 2439 case " $ac_configure_args " in
1959 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1960 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2441 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1961 esac 2442 esac
1962 fi 2443 fi
1963done 2444done
1964if $ac_cache_corrupted; then 2445if $ac_cache_corrupted; then
1965 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1966$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2449$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1967 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2450 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1968$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1969 { (exit 1); exit 1; }; }
1970fi 2451fi
1971 2452## -------------------- ##
1972 2453## Main body of script. ##
1973 2454## -------------------- ##
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995 2455
1996ac_ext=c 2456ac_ext=c
1997ac_cpp='$CPP $CPPFLAGS' 2457ac_cpp='$CPP $CPPFLAGS'
@@ -2030,39 +2490,33 @@ gameuser=games
2030 2490
2031 2491
2032# Check whether --with-pop was given. 2492# Check whether --with-pop was given.
2033if test "${with_pop+set}" = set; then 2493if test "${with_pop+set}" = set; then :
2034 withval=$with_pop; 2494 withval=$with_pop;
2035else 2495else
2036 with_pop=yes 2496 with_pop=yes
2037fi 2497fi
2038 2498
2039if test "$with_pop" = yes; then 2499if test "$with_pop" = yes; then
2040 cat >>confdefs.h <<\_ACEOF 2500 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2041#define MAIL_USE_POP 1
2042_ACEOF
2043 2501
2044fi 2502fi
2045 2503
2046 2504
2047
2048# Check whether --with-kerberos was given. 2505# Check whether --with-kerberos was given.
2049if test "${with_kerberos+set}" = set; then 2506if test "${with_kerberos+set}" = set; then :
2050 withval=$with_kerberos; 2507 withval=$with_kerberos;
2051else 2508else
2052 with_kerberos=no 2509 with_kerberos=no
2053fi 2510fi
2054 2511
2055if test "$with_kerberos" != no; then 2512if test "$with_kerberos" != no; then
2056 cat >>confdefs.h <<\_ACEOF 2513 $as_echo "#define KERBEROS 1" >>confdefs.h
2057#define KERBEROS 1
2058_ACEOF
2059 2514
2060fi 2515fi
2061 2516
2062 2517
2063
2064# Check whether --with-kerberos5 was given. 2518# Check whether --with-kerberos5 was given.
2065if test "${with_kerberos5+set}" = set; then 2519if test "${with_kerberos5+set}" = set; then :
2066 withval=$with_kerberos5; 2520 withval=$with_kerberos5;
2067else 2521else
2068 with_kerberos5=no 2522 with_kerberos5=no
@@ -2071,21 +2525,17 @@ fi
2071if test "${with_kerberos5}" != no; then 2525if test "${with_kerberos5}" != no; then
2072 if test "${with_kerberos}" = no; then 2526 if test "${with_kerberos}" = no; then
2073 with_kerberos=yes 2527 with_kerberos=yes
2074 cat >>confdefs.h <<\_ACEOF 2528 $as_echo "#define KERBEROS 1" >>confdefs.h
2075#define KERBEROS 1
2076_ACEOF
2077 2529
2078 fi 2530 fi
2079 2531
2080cat >>confdefs.h <<\_ACEOF 2532$as_echo "#define KERBEROS5 1" >>confdefs.h
2081#define KERBEROS5 1
2082_ACEOF
2083 2533
2084fi 2534fi
2085 2535
2086 2536
2087# Check whether --with-hesiod was given. 2537# Check whether --with-hesiod was given.
2088if test "${with_hesiod+set}" = set; then 2538if test "${with_hesiod+set}" = set; then :
2089 withval=$with_hesiod; 2539 withval=$with_hesiod;
2090else 2540else
2091 with_hesiod=no 2541 with_hesiod=no
@@ -2093,15 +2543,13 @@ fi
2093 2543
2094if test "$with_hesiod" != no; then 2544if test "$with_hesiod" != no; then
2095 2545
2096cat >>confdefs.h <<\_ACEOF 2546$as_echo "#define HESIOD 1" >>confdefs.h
2097#define HESIOD 1
2098_ACEOF
2099 2547
2100fi 2548fi
2101 2549
2102 2550
2103# Check whether --with-mmdf was given. 2551# Check whether --with-mmdf was given.
2104if test "${with_mmdf+set}" = set; then 2552if test "${with_mmdf+set}" = set; then :
2105 withval=$with_mmdf; 2553 withval=$with_mmdf;
2106else 2554else
2107 with_mmdf=no 2555 with_mmdf=no
@@ -2109,15 +2557,13 @@ fi
2109 2557
2110if test "$with_mmdf" != no; then 2558if test "$with_mmdf" != no; then
2111 2559
2112cat >>confdefs.h <<\_ACEOF 2560$as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2113#define MAIL_USE_MMDF 1
2114_ACEOF
2115 2561
2116fi 2562fi
2117 2563
2118 2564
2119# Check whether --with-mail-unlink was given. 2565# Check whether --with-mail-unlink was given.
2120if test "${with_mail_unlink+set}" = set; then 2566if test "${with_mail_unlink+set}" = set; then :
2121 withval=$with_mail_unlink; 2567 withval=$with_mail_unlink;
2122else 2568else
2123 with_mail_unlink=no 2569 with_mail_unlink=no
@@ -2125,15 +2571,13 @@ fi
2125 2571
2126if test "$with_mail_unlink" != no; then 2572if test "$with_mail_unlink" != no; then
2127 2573
2128cat >>confdefs.h <<\_ACEOF 2574$as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2129#define MAIL_UNLINK_SPOOL 1
2130_ACEOF
2131 2575
2132fi 2576fi
2133 2577
2134 2578
2135# Check whether --with-mailhost was given. 2579# Check whether --with-mailhost was given.
2136if test "${with_mailhost+set}" = set; then 2580if test "${with_mailhost+set}" = set; then :
2137 withval=$with_mailhost; 2581 withval=$with_mailhost;
2138cat >>confdefs.h <<_ACEOF 2582cat >>confdefs.h <<_ACEOF
2139#define MAILHOST "$withval" 2583#define MAILHOST "$withval"
@@ -2144,7 +2588,7 @@ fi
2144 2588
2145 2589
2146# Check whether --with-sound was given. 2590# Check whether --with-sound was given.
2147if test "${with_sound+set}" = set; then 2591if test "${with_sound+set}" = set; then :
2148 withval=$with_sound; 2592 withval=$with_sound;
2149else 2593else
2150 with_sound=yes 2594 with_sound=yes
@@ -2153,7 +2597,7 @@ fi
2153 2597
2154 2598
2155# Check whether --with-sync-input was given. 2599# Check whether --with-sync-input was given.
2156if test "${with_sync_input+set}" = set; then 2600if test "${with_sync_input+set}" = set; then :
2157 withval=$with_sync_input; 2601 withval=$with_sync_input;
2158else 2602else
2159 with_sync_input=yes 2603 with_sync_input=yes
@@ -2161,15 +2605,13 @@ fi
2161 2605
2162if test "$with_sync_input" = yes; then 2606if test "$with_sync_input" = yes; then
2163 2607
2164cat >>confdefs.h <<\_ACEOF 2608$as_echo "#define SYNC_INPUT 1" >>confdefs.h
2165#define SYNC_INPUT 1
2166_ACEOF
2167 2609
2168fi 2610fi
2169 2611
2170 2612
2171# Check whether --with-x-toolkit was given. 2613# Check whether --with-x-toolkit was given.
2172if test "${with_x_toolkit+set}" = set; then 2614if test "${with_x_toolkit+set}" = set; then :
2173 withval=$with_x_toolkit; case "${withval}" in 2615 withval=$with_x_toolkit; case "${withval}" in
2174 y | ye | yes ) val=gtk ;; 2616 y | ye | yes ) val=gtk ;;
2175 n | no ) val=no ;; 2617 n | no ) val=no ;;
@@ -2178,13 +2620,9 @@ if test "${with_x_toolkit+set}" = set; then
2178 m | mo | mot | moti | motif ) val=motif ;; 2620 m | mo | mot | moti | motif ) val=motif ;;
2179 g | gt | gtk ) val=gtk ;; 2621 g | gt | gtk ) val=gtk ;;
2180 * ) 2622 * )
2181{ { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid; 2623as_fn_error "\`--with-x-toolkit=$withval' is invalid;
2182this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. 2624this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2183\`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5 2625\`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2184$as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2185this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2186\`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2187 { (exit 1); exit 1; }; }
2188 ;; 2626 ;;
2189 esac 2627 esac
2190 with_x_toolkit=$val 2628 with_x_toolkit=$val
@@ -2194,7 +2632,7 @@ fi
2194 2632
2195 2633
2196# Check whether --with-xpm was given. 2634# Check whether --with-xpm was given.
2197if test "${with_xpm+set}" = set; then 2635if test "${with_xpm+set}" = set; then :
2198 withval=$with_xpm; 2636 withval=$with_xpm;
2199else 2637else
2200 with_xpm=yes 2638 with_xpm=yes
@@ -2202,7 +2640,7 @@ fi
2202 2640
2203 2641
2204# Check whether --with-jpeg was given. 2642# Check whether --with-jpeg was given.
2205if test "${with_jpeg+set}" = set; then 2643if test "${with_jpeg+set}" = set; then :
2206 withval=$with_jpeg; 2644 withval=$with_jpeg;
2207else 2645else
2208 with_jpeg=yes 2646 with_jpeg=yes
@@ -2210,7 +2648,7 @@ fi
2210 2648
2211 2649
2212# Check whether --with-tiff was given. 2650# Check whether --with-tiff was given.
2213if test "${with_tiff+set}" = set; then 2651if test "${with_tiff+set}" = set; then :
2214 withval=$with_tiff; 2652 withval=$with_tiff;
2215else 2653else
2216 with_tiff=yes 2654 with_tiff=yes
@@ -2218,7 +2656,7 @@ fi
2218 2656
2219 2657
2220# Check whether --with-gif was given. 2658# Check whether --with-gif was given.
2221if test "${with_gif+set}" = set; then 2659if test "${with_gif+set}" = set; then :
2222 withval=$with_gif; 2660 withval=$with_gif;
2223else 2661else
2224 with_gif=yes 2662 with_gif=yes
@@ -2226,7 +2664,7 @@ fi
2226 2664
2227 2665
2228# Check whether --with-png was given. 2666# Check whether --with-png was given.
2229if test "${with_png+set}" = set; then 2667if test "${with_png+set}" = set; then :
2230 withval=$with_png; 2668 withval=$with_png;
2231else 2669else
2232 with_png=yes 2670 with_png=yes
@@ -2234,7 +2672,7 @@ fi
2234 2672
2235 2673
2236# Check whether --with-rsvg was given. 2674# Check whether --with-rsvg was given.
2237if test "${with_rsvg+set}" = set; then 2675if test "${with_rsvg+set}" = set; then :
2238 withval=$with_rsvg; 2676 withval=$with_rsvg;
2239else 2677else
2240 with_rsvg=yes 2678 with_rsvg=yes
@@ -2243,7 +2681,7 @@ fi
2243 2681
2244 2682
2245# Check whether --with-xft was given. 2683# Check whether --with-xft was given.
2246if test "${with_xft+set}" = set; then 2684if test "${with_xft+set}" = set; then :
2247 withval=$with_xft; 2685 withval=$with_xft;
2248else 2686else
2249 with_xft=yes 2687 with_xft=yes
@@ -2251,7 +2689,7 @@ fi
2251 2689
2252 2690
2253# Check whether --with-libotf was given. 2691# Check whether --with-libotf was given.
2254if test "${with_libotf+set}" = set; then 2692if test "${with_libotf+set}" = set; then :
2255 withval=$with_libotf; 2693 withval=$with_libotf;
2256else 2694else
2257 with_libotf=yes 2695 with_libotf=yes
@@ -2259,7 +2697,7 @@ fi
2259 2697
2260 2698
2261# Check whether --with-m17n-flt was given. 2699# Check whether --with-m17n-flt was given.
2262if test "${with_m17n_flt+set}" = set; then 2700if test "${with_m17n_flt+set}" = set; then :
2263 withval=$with_m17n_flt; 2701 withval=$with_m17n_flt;
2264else 2702else
2265 with_m17n_flt=yes 2703 with_m17n_flt=yes
@@ -2268,7 +2706,7 @@ fi
2268 2706
2269 2707
2270# Check whether --with-toolkit-scroll-bars was given. 2708# Check whether --with-toolkit-scroll-bars was given.
2271if test "${with_toolkit_scroll_bars+set}" = set; then 2709if test "${with_toolkit_scroll_bars+set}" = set; then :
2272 withval=$with_toolkit_scroll_bars; 2710 withval=$with_toolkit_scroll_bars;
2273else 2711else
2274 with_toolkit_scroll_bars=yes 2712 with_toolkit_scroll_bars=yes
@@ -2276,7 +2714,7 @@ fi
2276 2714
2277 2715
2278# Check whether --with-xaw3d was given. 2716# Check whether --with-xaw3d was given.
2279if test "${with_xaw3d+set}" = set; then 2717if test "${with_xaw3d+set}" = set; then :
2280 withval=$with_xaw3d; 2718 withval=$with_xaw3d;
2281else 2719else
2282 with_xaw3d=yes 2720 with_xaw3d=yes
@@ -2284,7 +2722,7 @@ fi
2284 2722
2285 2723
2286# Check whether --with-xim was given. 2724# Check whether --with-xim was given.
2287if test "${with_xim+set}" = set; then 2725if test "${with_xim+set}" = set; then :
2288 withval=$with_xim; 2726 withval=$with_xim;
2289else 2727else
2290 with_xim=yes 2728 with_xim=yes
@@ -2292,7 +2730,7 @@ fi
2292 2730
2293 2731
2294# Check whether --with-ns was given. 2732# Check whether --with-ns was given.
2295if test "${with_ns+set}" = set; then 2733if test "${with_ns+set}" = set; then :
2296 withval=$with_ns; 2734 withval=$with_ns;
2297else 2735else
2298 with_ns=no 2736 with_ns=no
@@ -2301,7 +2739,7 @@ fi
2301 2739
2302 2740
2303# Check whether --with-gpm was given. 2741# Check whether --with-gpm was given.
2304if test "${with_gpm+set}" = set; then 2742if test "${with_gpm+set}" = set; then :
2305 withval=$with_gpm; 2743 withval=$with_gpm;
2306else 2744else
2307 with_gpm=yes 2745 with_gpm=yes
@@ -2309,7 +2747,7 @@ fi
2309 2747
2310 2748
2311# Check whether --with-dbus was given. 2749# Check whether --with-dbus was given.
2312if test "${with_dbus+set}" = set; then 2750if test "${with_dbus+set}" = set; then :
2313 withval=$with_dbus; 2751 withval=$with_dbus;
2314else 2752else
2315 with_dbus=yes 2753 with_dbus=yes
@@ -2317,7 +2755,7 @@ fi
2317 2755
2318 2756
2319# Check whether --with-gconf was given. 2757# Check whether --with-gconf was given.
2320if test "${with_gconf+set}" = set; then 2758if test "${with_gconf+set}" = set; then :
2321 withval=$with_gconf; 2759 withval=$with_gconf;
2322else 2760else
2323 with_gconf=yes 2761 with_gconf=yes
@@ -2325,7 +2763,7 @@ fi
2325 2763
2326 2764
2327# Check whether --with-selinux was given. 2765# Check whether --with-selinux was given.
2328if test "${with_selinux+set}" = set; then 2766if test "${with_selinux+set}" = set; then :
2329 withval=$with_selinux; 2767 withval=$with_selinux;
2330else 2768else
2331 with_selinux=yes 2769 with_selinux=yes
@@ -2336,7 +2774,7 @@ fi
2336## a suitable makeinfo, and can live without the manuals. 2774## a suitable makeinfo, and can live without the manuals.
2337 2775
2338# Check whether --with-makeinfo was given. 2776# Check whether --with-makeinfo was given.
2339if test "${with_makeinfo+set}" = set; then 2777if test "${with_makeinfo+set}" = set; then :
2340 withval=$with_makeinfo; 2778 withval=$with_makeinfo;
2341else 2779else
2342 with_makeinfo=yes 2780 with_makeinfo=yes
@@ -2345,29 +2783,23 @@ fi
2345 2783
2346 2784
2347# Check whether --with-gtk was given. 2785# Check whether --with-gtk was given.
2348if test "${with_gtk+set}" = set; then 2786if test "${with_gtk+set}" = set; then :
2349 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to 2787 withval=$with_gtk; as_fn_error "--with-gtk has been removed. Use --with-x-toolkit to
2350specify a toolkit." >&5 2788specify a toolkit." "$LINENO" 5
2351$as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2352specify a toolkit." >&2;}
2353 { (exit 1); exit 1; }; }
2354fi 2789fi
2355 2790
2356 2791
2357 2792
2358# Check whether --with-gcc was given. 2793# Check whether --with-gcc was given.
2359if test "${with_gcc+set}" = set; then 2794if test "${with_gcc+set}" = set; then :
2360 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment 2795 withval=$with_gcc; as_fn_error "--with-gcc has been removed. Set the \`CC' environment
2361variable to specify a compiler." >&5 2796variable to specify a compiler." "$LINENO" 5
2362$as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2363variable to specify a compiler." >&2;}
2364 { (exit 1); exit 1; }; }
2365fi 2797fi
2366 2798
2367 2799
2368 2800
2369# Check whether --with-pkg-config-prog was given. 2801# Check whether --with-pkg-config-prog was given.
2370if test "${with_pkg_config_prog+set}" = set; then 2802if test "${with_pkg_config_prog+set}" = set; then :
2371 withval=$with_pkg_config_prog; 2803 withval=$with_pkg_config_prog;
2372fi 2804fi
2373 2805
@@ -2379,7 +2811,7 @@ fi
2379 2811
2380 2812
2381# Check whether --with-gnustep-conf was given. 2813# Check whether --with-gnustep-conf was given.
2382if test "${with_gnustep_conf+set}" = set; then 2814if test "${with_gnustep_conf+set}" = set; then :
2383 withval=$with_gnustep_conf; 2815 withval=$with_gnustep_conf;
2384fi 2816fi
2385 2817
@@ -2389,7 +2821,7 @@ test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2389 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf 2821 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2390 2822
2391# Check whether --enable-ns-self-contained was given. 2823# Check whether --enable-ns-self-contained was given.
2392if test "${enable_ns_self_contained+set}" = set; then 2824if test "${enable_ns_self_contained+set}" = set; then :
2393 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval 2825 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2394else 2826else
2395 EN_NS_SELF_CONTAINED=yes 2827 EN_NS_SELF_CONTAINED=yes
@@ -2397,7 +2829,7 @@ fi
2397 2829
2398 2830
2399# Check whether --enable-asserts was given. 2831# Check whether --enable-asserts was given.
2400if test "${enable_asserts+set}" = set; then 2832if test "${enable_asserts+set}" = set; then :
2401 enableval=$enable_asserts; USE_XASSERTS=$enableval 2833 enableval=$enable_asserts; USE_XASSERTS=$enableval
2402else 2834else
2403 USE_XASSERTS=no 2835 USE_XASSERTS=no
@@ -2405,7 +2837,7 @@ fi
2405 2837
2406 2838
2407# Check whether --enable-maintainer-mode was given. 2839# Check whether --enable-maintainer-mode was given.
2408if test "${enable_maintainer_mode+set}" = set; then 2840if test "${enable_maintainer_mode+set}" = set; then :
2409 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2841 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2410else 2842else
2411 USE_MAINTAINER_MODE=no 2843 USE_MAINTAINER_MODE=no
@@ -2419,7 +2851,7 @@ fi
2419 2851
2420 2852
2421# Check whether --enable-locallisppath was given. 2853# Check whether --enable-locallisppath was given.
2422if test "${enable_locallisppath+set}" = set; then 2854if test "${enable_locallisppath+set}" = set; then :
2423 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then 2855 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2424 locallisppath= 2856 locallisppath=
2425elif test "${enableval}" != "yes"; then 2857elif test "${enableval}" != "yes"; then
@@ -2429,7 +2861,7 @@ fi
2429 2861
2430 2862
2431# Check whether --enable-checking was given. 2863# Check whether --enable-checking was given.
2432if test "${enable_checking+set}" = set; then 2864if test "${enable_checking+set}" = set; then :
2433 enableval=$enable_checking; ac_checking_flags="${enableval}" 2865 enableval=$enable_checking; ac_checking_flags="${enableval}"
2434fi 2866fi
2435 2867
@@ -2457,58 +2889,44 @@ do
2457 stringfreelist) ac_gc_check_string_free_list=1 ;; 2889 stringfreelist) ac_gc_check_string_free_list=1 ;;
2458 xmallocoverrun) ac_xmalloc_overrun=1 ;; 2890 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2459 conslist) ac_gc_check_cons_list=1 ;; 2891 conslist) ac_gc_check_cons_list=1 ;;
2460 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5 2892 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
2461$as_echo "$as_me: error: unknown check category $check" >&2;}
2462 { (exit 1); exit 1; }; } ;;
2463 esac 2893 esac
2464done 2894done
2465IFS="$ac_save_IFS" 2895IFS="$ac_save_IFS"
2466 2896
2467if test x$ac_enable_checking != x ; then 2897if test x$ac_enable_checking != x ; then
2468 2898
2469cat >>confdefs.h <<\_ACEOF 2899$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2470#define ENABLE_CHECKING 1
2471_ACEOF
2472 2900
2473fi 2901fi
2474if test x$ac_gc_check_stringbytes != x ; then 2902if test x$ac_gc_check_stringbytes != x ; then
2475 2903
2476cat >>confdefs.h <<\_ACEOF 2904$as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
2477#define GC_CHECK_STRING_BYTES 1
2478_ACEOF
2479 2905
2480fi 2906fi
2481if test x$ac_gc_check_stringoverrun != x ; then 2907if test x$ac_gc_check_stringoverrun != x ; then
2482 2908
2483cat >>confdefs.h <<\_ACEOF 2909$as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
2484#define GC_CHECK_STRING_OVERRUN 1
2485_ACEOF
2486 2910
2487fi 2911fi
2488if test x$ac_gc_check_string_free_list != x ; then 2912if test x$ac_gc_check_string_free_list != x ; then
2489 2913
2490cat >>confdefs.h <<\_ACEOF 2914$as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
2491#define GC_CHECK_STRING_FREE_LIST 1
2492_ACEOF
2493 2915
2494fi 2916fi
2495if test x$ac_xmalloc_overrun != x ; then 2917if test x$ac_xmalloc_overrun != x ; then
2496 2918
2497cat >>confdefs.h <<\_ACEOF 2919$as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
2498#define XMALLOC_OVERRUN_CHECK 1
2499_ACEOF
2500 2920
2501fi 2921fi
2502if test x$ac_gc_check_cons_list != x ; then 2922if test x$ac_gc_check_cons_list != x ; then
2503 2923
2504cat >>confdefs.h <<\_ACEOF 2924$as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
2505#define GC_CHECK_CONS_LIST 1
2506_ACEOF
2507 2925
2508fi 2926fi
2509 2927
2510# Check whether --enable-profiling was given. 2928# Check whether --enable-profiling was given.
2511if test "${enable_profiling+set}" = set; then 2929if test "${enable_profiling+set}" = set; then :
2512 enableval=$enable_profiling; ac_enable_profiling="${enableval}" 2930 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2513fi 2931fi
2514 2932
@@ -2521,7 +2939,7 @@ else
2521fi 2939fi
2522 2940
2523# Check whether --enable-autodepend was given. 2941# Check whether --enable-autodepend was given.
2524if test "${enable_autodepend+set}" = set; then 2942if test "${enable_autodepend+set}" = set; then :
2525 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}" 2943 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2526else 2944else
2527 ac_enable_autodepend=yes 2945 ac_enable_autodepend=yes
@@ -2555,7 +2973,7 @@ esac
2555#### Check if the source directory already has a configured system in it. 2973#### Check if the source directory already has a configured system in it.
2556if test `pwd` != `(cd ${srcdir} && pwd)` \ 2974if test `pwd` != `(cd ${srcdir} && pwd)` \
2557 && test -f "${srcdir}/src/config.h" ; then 2975 && test -f "${srcdir}/src/config.h" ; then
2558 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used 2976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
2559 as a build directory right now; it has been configured in its own 2977 as a build directory right now; it has been configured in its own
2560 right. To configure in another directory as well, you MUST 2978 right. To configure in another directory as well, you MUST
2561 use GNU make. If you do not have GNU make, then you must 2979 use GNU make. If you do not have GNU make, then you must
@@ -2576,24 +2994,16 @@ fi
2576 2994
2577ac_aux_dir= 2995ac_aux_dir=
2578for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2996for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2579 if test -f "$ac_dir/install-sh"; then 2997 for ac_t in install-sh install.sh shtool; do
2580 ac_aux_dir=$ac_dir 2998 if test -f "$ac_dir/$ac_t"; then
2581 ac_install_sh="$ac_aux_dir/install-sh -c" 2999 ac_aux_dir=$ac_dir
2582 break 3000 ac_install_sh="$ac_aux_dir/$ac_t -c"
2583 elif test -f "$ac_dir/install.sh"; then 3001 break 2
2584 ac_aux_dir=$ac_dir 3002 fi
2585 ac_install_sh="$ac_aux_dir/install.sh -c" 3003 done
2586 break
2587 elif test -f "$ac_dir/shtool"; then
2588 ac_aux_dir=$ac_dir
2589 ac_install_sh="$ac_aux_dir/shtool install -c"
2590 break
2591 fi
2592done 3004done
2593if test -z "$ac_aux_dir"; then 3005if test -z "$ac_aux_dir"; then
2594 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 3006 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2595$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2596 { (exit 1); exit 1; }; }
2597fi 3007fi
2598 3008
2599# These three variables are undocumented and unsupported, 3009# These three variables are undocumented and unsupported,
@@ -2607,35 +3017,27 @@ ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2607 3017
2608# Make sure we can run config.sub. 3018# Make sure we can run config.sub.
2609$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3019$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2610 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3020 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2611$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2612 { (exit 1); exit 1; }; }
2613 3021
2614{ $as_echo "$as_me:$LINENO: checking build system type" >&5 3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2615$as_echo_n "checking build system type... " >&6; } 3023$as_echo_n "checking build system type... " >&6; }
2616if test "${ac_cv_build+set}" = set; then 3024if test "${ac_cv_build+set}" = set; then :
2617 $as_echo_n "(cached) " >&6 3025 $as_echo_n "(cached) " >&6
2618else 3026else
2619 ac_build_alias=$build_alias 3027 ac_build_alias=$build_alias
2620test "x$ac_build_alias" = x && 3028test "x$ac_build_alias" = x &&
2621 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3029 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2622test "x$ac_build_alias" = x && 3030test "x$ac_build_alias" = x &&
2623 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3031 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2624$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2625 { (exit 1); exit 1; }; }
2626ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3032ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2627 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3033 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2628$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2629 { (exit 1); exit 1; }; }
2630 3034
2631fi 3035fi
2632{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2633$as_echo "$ac_cv_build" >&6; } 3037$as_echo "$ac_cv_build" >&6; }
2634case $ac_cv_build in 3038case $ac_cv_build in
2635*-*-*) ;; 3039*-*-*) ;;
2636*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3040*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2637$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2638 { (exit 1); exit 1; }; };;
2639esac 3041esac
2640build=$ac_cv_build 3042build=$ac_cv_build
2641ac_save_IFS=$IFS; IFS='-' 3043ac_save_IFS=$IFS; IFS='-'
@@ -2651,28 +3053,24 @@ IFS=$ac_save_IFS
2651case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3053case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2652 3054
2653 3055
2654{ $as_echo "$as_me:$LINENO: checking host system type" >&5 3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2655$as_echo_n "checking host system type... " >&6; } 3057$as_echo_n "checking host system type... " >&6; }
2656if test "${ac_cv_host+set}" = set; then 3058if test "${ac_cv_host+set}" = set; then :
2657 $as_echo_n "(cached) " >&6 3059 $as_echo_n "(cached) " >&6
2658else 3060else
2659 if test "x$host_alias" = x; then 3061 if test "x$host_alias" = x; then
2660 ac_cv_host=$ac_cv_build 3062 ac_cv_host=$ac_cv_build
2661else 3063else
2662 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3064 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2663 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3065 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2664$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2665 { (exit 1); exit 1; }; }
2666fi 3066fi
2667 3067
2668fi 3068fi
2669{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2670$as_echo "$ac_cv_host" >&6; } 3070$as_echo "$ac_cv_host" >&6; }
2671case $ac_cv_host in 3071case $ac_cv_host in
2672*-*-*) ;; 3072*-*-*) ;;
2673*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3073*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2674$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2675 { (exit 1); exit 1; }; };;
2676esac 3074esac
2677host=$ac_cv_host 3075host=$ac_cv_host
2678ac_save_IFS=$IFS; IFS='-' 3076ac_save_IFS=$IFS; IFS='-'
@@ -2752,9 +3150,7 @@ case "${canonical}" in
2752 opsys=netbsd 3150 opsys=netbsd
2753 if test -f /usr/lib/crti.o; then 3151 if test -f /usr/lib/crti.o; then
2754 3152
2755cat >>confdefs.h <<\_ACEOF 3153$as_echo "#define HAVE_CRTIN /**/" >>confdefs.h
2756#define HAVE_CRTIN /**/
2757_ACEOF
2758 3154
2759 fi 3155 fi
2760 3156
@@ -2979,11 +3375,8 @@ fi
2979 3375
2980 3376
2981if test $unported = yes; then 3377if test $unported = yes; then
2982 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems. 3378 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
2983Check \`etc/MACHINES' for recognized configuration names." >&5 3379Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
2984$as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2985Check \`etc/MACHINES' for recognized configuration names." >&2;}
2986 { (exit 1); exit 1; }; }
2987fi 3380fi
2988 3381
2989machfile="m/${machine}.h" 3382machfile="m/${machine}.h"
@@ -3004,9 +3397,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
3004if test -n "$ac_tool_prefix"; then 3397if test -n "$ac_tool_prefix"; then
3005 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3398 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3006set dummy ${ac_tool_prefix}gcc; ac_word=$2 3399set dummy ${ac_tool_prefix}gcc; ac_word=$2
3007{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008$as_echo_n "checking for $ac_word... " >&6; } 3401$as_echo_n "checking for $ac_word... " >&6; }
3009if test "${ac_cv_prog_CC+set}" = set; then 3402if test "${ac_cv_prog_CC+set}" = set; then :
3010 $as_echo_n "(cached) " >&6 3403 $as_echo_n "(cached) " >&6
3011else 3404else
3012 if test -n "$CC"; then 3405 if test -n "$CC"; then
@@ -3017,24 +3410,24 @@ for as_dir in $PATH
3017do 3410do
3018 IFS=$as_save_IFS 3411 IFS=$as_save_IFS
3019 test -z "$as_dir" && as_dir=. 3412 test -z "$as_dir" && as_dir=.
3020 for ac_exec_ext in '' $ac_executable_extensions; do 3413 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3022 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3415 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3023 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 break 2 3417 break 2
3025 fi 3418 fi
3026done 3419done
3027done 3420 done
3028IFS=$as_save_IFS 3421IFS=$as_save_IFS
3029 3422
3030fi 3423fi
3031fi 3424fi
3032CC=$ac_cv_prog_CC 3425CC=$ac_cv_prog_CC
3033if test -n "$CC"; then 3426if test -n "$CC"; then
3034 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3035$as_echo "$CC" >&6; } 3428$as_echo "$CC" >&6; }
3036else 3429else
3037 { $as_echo "$as_me:$LINENO: result: no" >&5 3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038$as_echo "no" >&6; } 3431$as_echo "no" >&6; }
3039fi 3432fi
3040 3433
@@ -3044,9 +3437,9 @@ if test -z "$ac_cv_prog_CC"; then
3044 ac_ct_CC=$CC 3437 ac_ct_CC=$CC
3045 # Extract the first word of "gcc", so it can be a program name with args. 3438 # Extract the first word of "gcc", so it can be a program name with args.
3046set dummy gcc; ac_word=$2 3439set dummy gcc; ac_word=$2
3047{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048$as_echo_n "checking for $ac_word... " >&6; } 3441$as_echo_n "checking for $ac_word... " >&6; }
3049if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3442if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3050 $as_echo_n "(cached) " >&6 3443 $as_echo_n "(cached) " >&6
3051else 3444else
3052 if test -n "$ac_ct_CC"; then 3445 if test -n "$ac_ct_CC"; then
@@ -3057,24 +3450,24 @@ for as_dir in $PATH
3057do 3450do
3058 IFS=$as_save_IFS 3451 IFS=$as_save_IFS
3059 test -z "$as_dir" && as_dir=. 3452 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do 3453 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3062 ac_cv_prog_ac_ct_CC="gcc" 3455 ac_cv_prog_ac_ct_CC="gcc"
3063 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3064 break 2 3457 break 2
3065 fi 3458 fi
3066done 3459done
3067done 3460 done
3068IFS=$as_save_IFS 3461IFS=$as_save_IFS
3069 3462
3070fi 3463fi
3071fi 3464fi
3072ac_ct_CC=$ac_cv_prog_ac_ct_CC 3465ac_ct_CC=$ac_cv_prog_ac_ct_CC
3073if test -n "$ac_ct_CC"; then 3466if test -n "$ac_ct_CC"; then
3074 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3075$as_echo "$ac_ct_CC" >&6; } 3468$as_echo "$ac_ct_CC" >&6; }
3076else 3469else
3077 { $as_echo "$as_me:$LINENO: result: no" >&5 3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078$as_echo "no" >&6; } 3471$as_echo "no" >&6; }
3079fi 3472fi
3080 3473
@@ -3083,12 +3476,8 @@ fi
3083 else 3476 else
3084 case $cross_compiling:$ac_tool_warned in 3477 case $cross_compiling:$ac_tool_warned in
3085yes:) 3478yes:)
3086{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3479{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3087whose name does not start with the host triplet. If you think this 3480$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3088configuration is useful to you, please write to autoconf@gnu.org." >&5
3089$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3090whose name does not start with the host triplet. If you think this
3091configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3092ac_tool_warned=yes ;; 3481ac_tool_warned=yes ;;
3093esac 3482esac
3094 CC=$ac_ct_CC 3483 CC=$ac_ct_CC
@@ -3101,9 +3490,9 @@ if test -z "$CC"; then
3101 if test -n "$ac_tool_prefix"; then 3490 if test -n "$ac_tool_prefix"; then
3102 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3491 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3103set dummy ${ac_tool_prefix}cc; ac_word=$2 3492set dummy ${ac_tool_prefix}cc; ac_word=$2
3104{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105$as_echo_n "checking for $ac_word... " >&6; } 3494$as_echo_n "checking for $ac_word... " >&6; }
3106if test "${ac_cv_prog_CC+set}" = set; then 3495if test "${ac_cv_prog_CC+set}" = set; then :
3107 $as_echo_n "(cached) " >&6 3496 $as_echo_n "(cached) " >&6
3108else 3497else
3109 if test -n "$CC"; then 3498 if test -n "$CC"; then
@@ -3114,24 +3503,24 @@ for as_dir in $PATH
3114do 3503do
3115 IFS=$as_save_IFS 3504 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=. 3505 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do 3506 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3119 ac_cv_prog_CC="${ac_tool_prefix}cc" 3508 ac_cv_prog_CC="${ac_tool_prefix}cc"
3120 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 break 2 3510 break 2
3122 fi 3511 fi
3123done 3512done
3124done 3513 done
3125IFS=$as_save_IFS 3514IFS=$as_save_IFS
3126 3515
3127fi 3516fi
3128fi 3517fi
3129CC=$ac_cv_prog_CC 3518CC=$ac_cv_prog_CC
3130if test -n "$CC"; then 3519if test -n "$CC"; then
3131 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3132$as_echo "$CC" >&6; } 3521$as_echo "$CC" >&6; }
3133else 3522else
3134 { $as_echo "$as_me:$LINENO: result: no" >&5 3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135$as_echo "no" >&6; } 3524$as_echo "no" >&6; }
3136fi 3525fi
3137 3526
@@ -3141,9 +3530,9 @@ fi
3141if test -z "$CC"; then 3530if test -z "$CC"; then
3142 # Extract the first word of "cc", so it can be a program name with args. 3531 # Extract the first word of "cc", so it can be a program name with args.
3143set dummy cc; ac_word=$2 3532set dummy cc; ac_word=$2
3144{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145$as_echo_n "checking for $ac_word... " >&6; } 3534$as_echo_n "checking for $ac_word... " >&6; }
3146if test "${ac_cv_prog_CC+set}" = set; then 3535if test "${ac_cv_prog_CC+set}" = set; then :
3147 $as_echo_n "(cached) " >&6 3536 $as_echo_n "(cached) " >&6
3148else 3537else
3149 if test -n "$CC"; then 3538 if test -n "$CC"; then
@@ -3155,18 +3544,18 @@ for as_dir in $PATH
3155do 3544do
3156 IFS=$as_save_IFS 3545 IFS=$as_save_IFS
3157 test -z "$as_dir" && as_dir=. 3546 test -z "$as_dir" && as_dir=.
3158 for ac_exec_ext in '' $ac_executable_extensions; do 3547 for ac_exec_ext in '' $ac_executable_extensions; do
3159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3160 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3549 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3161 ac_prog_rejected=yes 3550 ac_prog_rejected=yes
3162 continue 3551 continue
3163 fi 3552 fi
3164 ac_cv_prog_CC="cc" 3553 ac_cv_prog_CC="cc"
3165 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 break 2 3555 break 2
3167 fi 3556 fi
3168done 3557done
3169done 3558 done
3170IFS=$as_save_IFS 3559IFS=$as_save_IFS
3171 3560
3172if test $ac_prog_rejected = yes; then 3561if test $ac_prog_rejected = yes; then
@@ -3185,10 +3574,10 @@ fi
3185fi 3574fi
3186CC=$ac_cv_prog_CC 3575CC=$ac_cv_prog_CC
3187if test -n "$CC"; then 3576if test -n "$CC"; then
3188 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3189$as_echo "$CC" >&6; } 3578$as_echo "$CC" >&6; }
3190else 3579else
3191 { $as_echo "$as_me:$LINENO: result: no" >&5 3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192$as_echo "no" >&6; } 3581$as_echo "no" >&6; }
3193fi 3582fi
3194 3583
@@ -3200,9 +3589,9 @@ if test -z "$CC"; then
3200 do 3589 do
3201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3202set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3591set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3203{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204$as_echo_n "checking for $ac_word... " >&6; } 3593$as_echo_n "checking for $ac_word... " >&6; }
3205if test "${ac_cv_prog_CC+set}" = set; then 3594if test "${ac_cv_prog_CC+set}" = set; then :
3206 $as_echo_n "(cached) " >&6 3595 $as_echo_n "(cached) " >&6
3207else 3596else
3208 if test -n "$CC"; then 3597 if test -n "$CC"; then
@@ -3213,24 +3602,24 @@ for as_dir in $PATH
3213do 3602do
3214 IFS=$as_save_IFS 3603 IFS=$as_save_IFS
3215 test -z "$as_dir" && as_dir=. 3604 test -z "$as_dir" && as_dir=.
3216 for ac_exec_ext in '' $ac_executable_extensions; do 3605 for ac_exec_ext in '' $ac_executable_extensions; do
3217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3218 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3607 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3219 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220 break 2 3609 break 2
3221 fi 3610 fi
3222done 3611done
3223done 3612 done
3224IFS=$as_save_IFS 3613IFS=$as_save_IFS
3225 3614
3226fi 3615fi
3227fi 3616fi
3228CC=$ac_cv_prog_CC 3617CC=$ac_cv_prog_CC
3229if test -n "$CC"; then 3618if test -n "$CC"; then
3230 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3231$as_echo "$CC" >&6; } 3620$as_echo "$CC" >&6; }
3232else 3621else
3233 { $as_echo "$as_me:$LINENO: result: no" >&5 3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234$as_echo "no" >&6; } 3623$as_echo "no" >&6; }
3235fi 3624fi
3236 3625
@@ -3244,9 +3633,9 @@ if test -z "$CC"; then
3244do 3633do
3245 # Extract the first word of "$ac_prog", so it can be a program name with args. 3634 # Extract the first word of "$ac_prog", so it can be a program name with args.
3246set dummy $ac_prog; ac_word=$2 3635set dummy $ac_prog; ac_word=$2
3247{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248$as_echo_n "checking for $ac_word... " >&6; } 3637$as_echo_n "checking for $ac_word... " >&6; }
3249if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3638if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3250 $as_echo_n "(cached) " >&6 3639 $as_echo_n "(cached) " >&6
3251else 3640else
3252 if test -n "$ac_ct_CC"; then 3641 if test -n "$ac_ct_CC"; then
@@ -3257,24 +3646,24 @@ for as_dir in $PATH
3257do 3646do
3258 IFS=$as_save_IFS 3647 IFS=$as_save_IFS
3259 test -z "$as_dir" && as_dir=. 3648 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do 3649 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3262 ac_cv_prog_ac_ct_CC="$ac_prog" 3651 ac_cv_prog_ac_ct_CC="$ac_prog"
3263 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 break 2 3653 break 2
3265 fi 3654 fi
3266done 3655done
3267done 3656 done
3268IFS=$as_save_IFS 3657IFS=$as_save_IFS
3269 3658
3270fi 3659fi
3271fi 3660fi
3272ac_ct_CC=$ac_cv_prog_ac_ct_CC 3661ac_ct_CC=$ac_cv_prog_ac_ct_CC
3273if test -n "$ac_ct_CC"; then 3662if test -n "$ac_ct_CC"; then
3274 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3275$as_echo "$ac_ct_CC" >&6; } 3664$as_echo "$ac_ct_CC" >&6; }
3276else 3665else
3277 { $as_echo "$as_me:$LINENO: result: no" >&5 3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278$as_echo "no" >&6; } 3667$as_echo "no" >&6; }
3279fi 3668fi
3280 3669
@@ -3287,12 +3676,8 @@ done
3287 else 3676 else
3288 case $cross_compiling:$ac_tool_warned in 3677 case $cross_compiling:$ac_tool_warned in
3289yes:) 3678yes:)
3290{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3291whose name does not start with the host triplet. If you think this 3680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3292configuration is useful to you, please write to autoconf@gnu.org." >&5
3293$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3294whose name does not start with the host triplet. If you think this
3295configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3296ac_tool_warned=yes ;; 3681ac_tool_warned=yes ;;
3297esac 3682esac
3298 CC=$ac_ct_CC 3683 CC=$ac_ct_CC
@@ -3302,55 +3687,37 @@ fi
3302fi 3687fi
3303 3688
3304 3689
3305test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3690test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3306See \`config.log' for more details." >&5 3691$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3307$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 3692as_fn_error "no acceptable C compiler found in \$PATH
3308See \`config.log' for more details." >&2;} 3693See \`config.log' for more details." "$LINENO" 5; }
3309 { (exit 1); exit 1; }; }
3310 3694
3311# Provide some information about the compiler. 3695# Provide some information about the compiler.
3312$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 3696$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3313set X $ac_compile 3697set X $ac_compile
3314ac_compiler=$2 3698ac_compiler=$2
3315{ (ac_try="$ac_compiler --version >&5" 3699for ac_option in --version -v -V -qversion; do
3316case "(($ac_try" in 3700 { { ac_try="$ac_compiler $ac_option >&5"
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319esac
3320eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3321$as_echo "$ac_try_echo") >&5
3322 (eval "$ac_compiler --version >&5") 2>&5
3323 ac_status=$?
3324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); }
3326{ (ac_try="$ac_compiler -v >&5"
3327case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3330esac
3331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3332$as_echo "$ac_try_echo") >&5
3333 (eval "$ac_compiler -v >&5") 2>&5
3334 ac_status=$?
3335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); }
3337{ (ac_try="$ac_compiler -V >&5"
3338case "(($ac_try" in 3701case "(($ac_try" in
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;; 3703 *) ac_try_echo=$ac_try;;
3341esac 3704esac
3342eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3343$as_echo "$ac_try_echo") >&5 3706$as_echo "$ac_try_echo"; } >&5
3344 (eval "$ac_compiler -V >&5") 2>&5 3707 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3345 ac_status=$? 3708 ac_status=$?
3346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3709 if test -s conftest.err; then
3347 (exit $ac_status); } 3710 sed '10a\
3711... rest of stderr output deleted ...
3712 10q' conftest.err >conftest.er1
3713 cat conftest.er1 >&5
3714 fi
3715 rm -f conftest.er1 conftest.err
3716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717 test $ac_status = 0; }
3718done
3348 3719
3349cat >conftest.$ac_ext <<_ACEOF 3720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350/* confdefs.h. */
3351_ACEOF
3352cat confdefs.h >>conftest.$ac_ext
3353cat >>conftest.$ac_ext <<_ACEOF
3354/* end confdefs.h. */ 3721/* end confdefs.h. */
3355 3722
3356int 3723int
@@ -3366,8 +3733,8 @@ ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3366# Try to create an executable without -o first, disregard a.out. 3733# Try to create an executable without -o first, disregard a.out.
3367# It will help us diagnose broken compilers, and finding out an intuition 3734# It will help us diagnose broken compilers, and finding out an intuition
3368# of exeext. 3735# of exeext.
3369{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3370$as_echo_n "checking for C compiler default output file name... " >&6; } 3737$as_echo_n "checking whether the C compiler works... " >&6; }
3371ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3738ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3372 3739
3373# The possible output files: 3740# The possible output files:
@@ -3383,17 +3750,17 @@ do
3383done 3750done
3384rm -f $ac_rmfiles 3751rm -f $ac_rmfiles
3385 3752
3386if { (ac_try="$ac_link_default" 3753if { { ac_try="$ac_link_default"
3387case "(($ac_try" in 3754case "(($ac_try" in
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;; 3756 *) ac_try_echo=$ac_try;;
3390esac 3757esac
3391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3392$as_echo "$ac_try_echo") >&5 3759$as_echo "$ac_try_echo"; } >&5
3393 (eval "$ac_link_default") 2>&5 3760 (eval "$ac_link_default") 2>&5
3394 ac_status=$? 3761 ac_status=$?
3395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3396 (exit $ac_status); }; then 3763 test $ac_status = 0; }; then :
3397 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3764 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3398# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3765# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3399# in a Makefile. We should not override ac_cv_exeext if it was cached, 3766# in a Makefile. We should not override ac_cv_exeext if it was cached,
@@ -3410,7 +3777,7 @@ do
3410 # certainly right. 3777 # certainly right.
3411 break;; 3778 break;;
3412 *.* ) 3779 *.* )
3413 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3780 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3414 then :; else 3781 then :; else
3415 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3782 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3416 fi 3783 fi
@@ -3429,80 +3796,42 @@ test "$ac_cv_exeext" = no && ac_cv_exeext=
3429else 3796else
3430 ac_file='' 3797 ac_file=''
3431fi 3798fi
3432 3799if test -z "$ac_file"; then :
3433{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3434$as_echo "$ac_file" >&6; } 3801$as_echo "no" >&6; }
3435if test -z "$ac_file"; then 3802$as_echo "$as_me: failed program was:" >&5
3436 $as_echo "$as_me: failed program was:" >&5
3437sed 's/^/| /' conftest.$ac_ext >&5 3803sed 's/^/| /' conftest.$ac_ext >&5
3438 3804
3439{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3805{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3440See \`config.log' for more details." >&5 3806$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3441$as_echo "$as_me: error: C compiler cannot create executables 3807{ as_fn_set_status 77
3442See \`config.log' for more details." >&2;} 3808as_fn_error "C compiler cannot create executables
3443 { (exit 77); exit 77; }; } 3809See \`config.log' for more details." "$LINENO" 5; }; }
3810else
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3812$as_echo "yes" >&6; }
3444fi 3813fi
3445 3814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3815$as_echo_n "checking for C compiler default output file name... " >&6; }
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3817$as_echo "$ac_file" >&6; }
3446ac_exeext=$ac_cv_exeext 3818ac_exeext=$ac_cv_exeext
3447 3819
3448# Check that the compiler produces executables we can run. If not, either
3449# the compiler is broken, or we cross compile.
3450{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3451$as_echo_n "checking whether the C compiler works... " >&6; }
3452# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3453# If not cross compiling, check that we can run a simple program.
3454if test "$cross_compiling" != yes; then
3455 if { ac_try='./$ac_file'
3456 { (case "(($ac_try" in
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3459esac
3460eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3461$as_echo "$ac_try_echo") >&5
3462 (eval "$ac_try") 2>&5
3463 ac_status=$?
3464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); }; }; then
3466 cross_compiling=no
3467 else
3468 if test "$cross_compiling" = maybe; then
3469 cross_compiling=yes
3470 else
3471 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3472If you meant to cross compile, use \`--host'.
3473See \`config.log' for more details." >&5
3474$as_echo "$as_me: error: cannot run C compiled programs.
3475If you meant to cross compile, use \`--host'.
3476See \`config.log' for more details." >&2;}
3477 { (exit 1); exit 1; }; }
3478 fi
3479 fi
3480fi
3481{ $as_echo "$as_me:$LINENO: result: yes" >&5
3482$as_echo "yes" >&6; }
3483
3484rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3820rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3485ac_clean_files=$ac_clean_files_save 3821ac_clean_files=$ac_clean_files_save
3486# Check that the compiler produces executables we can run. If not, either 3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3487# the compiler is broken, or we cross compile.
3488{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3489$as_echo_n "checking whether we are cross compiling... " >&6; }
3490{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3491$as_echo "$cross_compiling" >&6; }
3492
3493{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3494$as_echo_n "checking for suffix of executables... " >&6; } 3823$as_echo_n "checking for suffix of executables... " >&6; }
3495if { (ac_try="$ac_link" 3824if { { ac_try="$ac_link"
3496case "(($ac_try" in 3825case "(($ac_try" in
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;; 3827 *) ac_try_echo=$ac_try;;
3499esac 3828esac
3500eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3501$as_echo "$ac_try_echo") >&5 3830$as_echo "$ac_try_echo"; } >&5
3502 (eval "$ac_link") 2>&5 3831 (eval "$ac_link") 2>&5
3503 ac_status=$? 3832 ac_status=$?
3504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3505 (exit $ac_status); }; then 3834 test $ac_status = 0; }; then :
3506 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3835 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3507# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3836# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3508# work properly (i.e., refer to `conftest.exe'), while it won't with 3837# work properly (i.e., refer to `conftest.exe'), while it won't with
@@ -3517,30 +3846,83 @@ for ac_file in conftest.exe conftest conftest.*; do
3517 esac 3846 esac
3518done 3847done
3519else 3848else
3520 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3521See \`config.log' for more details." >&5 3850$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3522$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3851as_fn_error "cannot compute suffix of executables: cannot compile and link
3523See \`config.log' for more details." >&2;} 3852See \`config.log' for more details." "$LINENO" 5; }
3524 { (exit 1); exit 1; }; }
3525fi 3853fi
3526 3854rm -f conftest conftest$ac_cv_exeext
3527rm -f conftest$ac_cv_exeext 3855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3528{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3529$as_echo "$ac_cv_exeext" >&6; } 3856$as_echo "$ac_cv_exeext" >&6; }
3530 3857
3531rm -f conftest.$ac_ext 3858rm -f conftest.$ac_ext
3532EXEEXT=$ac_cv_exeext 3859EXEEXT=$ac_cv_exeext
3533ac_exeext=$EXEEXT 3860ac_exeext=$EXEEXT
3534{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862/* end confdefs.h. */
3863#include <stdio.h>
3864int
3865main ()
3866{
3867FILE *f = fopen ("conftest.out", "w");
3868 return ferror (f) || fclose (f) != 0;
3869
3870 ;
3871 return 0;
3872}
3873_ACEOF
3874ac_clean_files="$ac_clean_files conftest.out"
3875# Check that the compiler produces executables we can run. If not, either
3876# the compiler is broken, or we cross compile.
3877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3878$as_echo_n "checking whether we are cross compiling... " >&6; }
3879if test "$cross_compiling" != yes; then
3880 { { ac_try="$ac_link"
3881case "(($ac_try" in
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3884esac
3885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3886$as_echo "$ac_try_echo"; } >&5
3887 (eval "$ac_link") 2>&5
3888 ac_status=$?
3889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3890 test $ac_status = 0; }
3891 if { ac_try='./conftest$ac_cv_exeext'
3892 { { case "(($ac_try" in
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3895esac
3896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3897$as_echo "$ac_try_echo"; } >&5
3898 (eval "$ac_try") 2>&5
3899 ac_status=$?
3900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3901 test $ac_status = 0; }; }; then
3902 cross_compiling=no
3903 else
3904 if test "$cross_compiling" = maybe; then
3905 cross_compiling=yes
3906 else
3907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3908$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3909as_fn_error "cannot run C compiled programs.
3910If you meant to cross compile, use \`--host'.
3911See \`config.log' for more details." "$LINENO" 5; }
3912 fi
3913 fi
3914fi
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3916$as_echo "$cross_compiling" >&6; }
3917
3918rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3919ac_clean_files=$ac_clean_files_save
3920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3535$as_echo_n "checking for suffix of object files... " >&6; } 3921$as_echo_n "checking for suffix of object files... " >&6; }
3536if test "${ac_cv_objext+set}" = set; then 3922if test "${ac_cv_objext+set}" = set; then :
3537 $as_echo_n "(cached) " >&6 3923 $as_echo_n "(cached) " >&6
3538else 3924else
3539 cat >conftest.$ac_ext <<_ACEOF 3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540/* confdefs.h. */
3541_ACEOF
3542cat confdefs.h >>conftest.$ac_ext
3543cat >>conftest.$ac_ext <<_ACEOF
3544/* end confdefs.h. */ 3926/* end confdefs.h. */
3545 3927
3546int 3928int
@@ -3552,17 +3934,17 @@ main ()
3552} 3934}
3553_ACEOF 3935_ACEOF
3554rm -f conftest.o conftest.obj 3936rm -f conftest.o conftest.obj
3555if { (ac_try="$ac_compile" 3937if { { ac_try="$ac_compile"
3556case "(($ac_try" in 3938case "(($ac_try" in
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;; 3940 *) ac_try_echo=$ac_try;;
3559esac 3941esac
3560eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3942eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3561$as_echo "$ac_try_echo") >&5 3943$as_echo "$ac_try_echo"; } >&5
3562 (eval "$ac_compile") 2>&5 3944 (eval "$ac_compile") 2>&5
3563 ac_status=$? 3945 ac_status=$?
3564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3565 (exit $ac_status); }; then 3947 test $ac_status = 0; }; then :
3566 for ac_file in conftest.o conftest.obj conftest.*; do 3948 for ac_file in conftest.o conftest.obj conftest.*; do
3567 test -f "$ac_file" || continue; 3949 test -f "$ac_file" || continue;
3568 case $ac_file in 3950 case $ac_file in
@@ -3575,29 +3957,23 @@ else
3575 $as_echo "$as_me: failed program was:" >&5 3957 $as_echo "$as_me: failed program was:" >&5
3576sed 's/^/| /' conftest.$ac_ext >&5 3958sed 's/^/| /' conftest.$ac_ext >&5
3577 3959
3578{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3960{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3579See \`config.log' for more details." >&5 3961$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3962as_fn_error "cannot compute suffix of object files: cannot compile
3581See \`config.log' for more details." >&2;} 3963See \`config.log' for more details." "$LINENO" 5; }
3582 { (exit 1); exit 1; }; }
3583fi 3964fi
3584
3585rm -f conftest.$ac_cv_objext conftest.$ac_ext 3965rm -f conftest.$ac_cv_objext conftest.$ac_ext
3586fi 3966fi
3587{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3588$as_echo "$ac_cv_objext" >&6; } 3968$as_echo "$ac_cv_objext" >&6; }
3589OBJEXT=$ac_cv_objext 3969OBJEXT=$ac_cv_objext
3590ac_objext=$OBJEXT 3970ac_objext=$OBJEXT
3591{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3592$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3972$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3593if test "${ac_cv_c_compiler_gnu+set}" = set; then 3973if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3594 $as_echo_n "(cached) " >&6 3974 $as_echo_n "(cached) " >&6
3595else 3975else
3596 cat >conftest.$ac_ext <<_ACEOF 3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597/* confdefs.h. */
3598_ACEOF
3599cat confdefs.h >>conftest.$ac_ext
3600cat >>conftest.$ac_ext <<_ACEOF
3601/* end confdefs.h. */ 3977/* end confdefs.h. */
3602 3978
3603int 3979int
@@ -3611,37 +3987,16 @@ main ()
3611 return 0; 3987 return 0;
3612} 3988}
3613_ACEOF 3989_ACEOF
3614rm -f conftest.$ac_objext 3990if ac_fn_c_try_compile "$LINENO"; then :
3615if { (ac_try="$ac_compile"
3616case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3619esac
3620eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3621$as_echo "$ac_try_echo") >&5
3622 (eval "$ac_compile") 2>conftest.er1
3623 ac_status=$?
3624 grep -v '^ *+' conftest.er1 >conftest.err
3625 rm -f conftest.er1
3626 cat conftest.err >&5
3627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); } && {
3629 test -z "$ac_c_werror_flag" ||
3630 test ! -s conftest.err
3631 } && test -s conftest.$ac_objext; then
3632 ac_compiler_gnu=yes 3991 ac_compiler_gnu=yes
3633else 3992else
3634 $as_echo "$as_me: failed program was:" >&5 3993 ac_compiler_gnu=no
3635sed 's/^/| /' conftest.$ac_ext >&5
3636
3637 ac_compiler_gnu=no
3638fi 3994fi
3639
3640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3641ac_cv_c_compiler_gnu=$ac_compiler_gnu 3996ac_cv_c_compiler_gnu=$ac_compiler_gnu
3642 3997
3643fi 3998fi
3644{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3645$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4000$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3646if test $ac_compiler_gnu = yes; then 4001if test $ac_compiler_gnu = yes; then
3647 GCC=yes 4002 GCC=yes
@@ -3650,20 +4005,16 @@ else
3650fi 4005fi
3651ac_test_CFLAGS=${CFLAGS+set} 4006ac_test_CFLAGS=${CFLAGS+set}
3652ac_save_CFLAGS=$CFLAGS 4007ac_save_CFLAGS=$CFLAGS
3653{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3654$as_echo_n "checking whether $CC accepts -g... " >&6; } 4009$as_echo_n "checking whether $CC accepts -g... " >&6; }
3655if test "${ac_cv_prog_cc_g+set}" = set; then 4010if test "${ac_cv_prog_cc_g+set}" = set; then :
3656 $as_echo_n "(cached) " >&6 4011 $as_echo_n "(cached) " >&6
3657else 4012else
3658 ac_save_c_werror_flag=$ac_c_werror_flag 4013 ac_save_c_werror_flag=$ac_c_werror_flag
3659 ac_c_werror_flag=yes 4014 ac_c_werror_flag=yes
3660 ac_cv_prog_cc_g=no 4015 ac_cv_prog_cc_g=no
3661 CFLAGS="-g" 4016 CFLAGS="-g"
3662 cat >conftest.$ac_ext <<_ACEOF 4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663/* confdefs.h. */
3664_ACEOF
3665cat confdefs.h >>conftest.$ac_ext
3666cat >>conftest.$ac_ext <<_ACEOF
3667/* end confdefs.h. */ 4018/* end confdefs.h. */
3668 4019
3669int 4020int
@@ -3674,35 +4025,11 @@ main ()
3674 return 0; 4025 return 0;
3675} 4026}
3676_ACEOF 4027_ACEOF
3677rm -f conftest.$ac_objext 4028if ac_fn_c_try_compile "$LINENO"; then :
3678if { (ac_try="$ac_compile"
3679case "(($ac_try" in
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3682esac
3683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3684$as_echo "$ac_try_echo") >&5
3685 (eval "$ac_compile") 2>conftest.er1
3686 ac_status=$?
3687 grep -v '^ *+' conftest.er1 >conftest.err
3688 rm -f conftest.er1
3689 cat conftest.err >&5
3690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); } && {
3692 test -z "$ac_c_werror_flag" ||
3693 test ! -s conftest.err
3694 } && test -s conftest.$ac_objext; then
3695 ac_cv_prog_cc_g=yes 4029 ac_cv_prog_cc_g=yes
3696else 4030else
3697 $as_echo "$as_me: failed program was:" >&5 4031 CFLAGS=""
3698sed 's/^/| /' conftest.$ac_ext >&5 4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699
3700 CFLAGS=""
3701 cat >conftest.$ac_ext <<_ACEOF
3702/* confdefs.h. */
3703_ACEOF
3704cat confdefs.h >>conftest.$ac_ext
3705cat >>conftest.$ac_ext <<_ACEOF
3706/* end confdefs.h. */ 4033/* end confdefs.h. */
3707 4034
3708int 4035int
@@ -3713,36 +4040,12 @@ main ()
3713 return 0; 4040 return 0;
3714} 4041}
3715_ACEOF 4042_ACEOF
3716rm -f conftest.$ac_objext 4043if ac_fn_c_try_compile "$LINENO"; then :
3717if { (ac_try="$ac_compile"
3718case "(($ac_try" in
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3721esac
3722eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3723$as_echo "$ac_try_echo") >&5
3724 (eval "$ac_compile") 2>conftest.er1
3725 ac_status=$?
3726 grep -v '^ *+' conftest.er1 >conftest.err
3727 rm -f conftest.er1
3728 cat conftest.err >&5
3729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } && {
3731 test -z "$ac_c_werror_flag" ||
3732 test ! -s conftest.err
3733 } && test -s conftest.$ac_objext; then
3734 :
3735else
3736 $as_echo "$as_me: failed program was:" >&5
3737sed 's/^/| /' conftest.$ac_ext >&5
3738 4044
3739 ac_c_werror_flag=$ac_save_c_werror_flag 4045else
4046 ac_c_werror_flag=$ac_save_c_werror_flag
3740 CFLAGS="-g" 4047 CFLAGS="-g"
3741 cat >conftest.$ac_ext <<_ACEOF 4048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742/* confdefs.h. */
3743_ACEOF
3744cat confdefs.h >>conftest.$ac_ext
3745cat >>conftest.$ac_ext <<_ACEOF
3746/* end confdefs.h. */ 4049/* end confdefs.h. */
3747 4050
3748int 4051int
@@ -3753,42 +4056,17 @@ main ()
3753 return 0; 4056 return 0;
3754} 4057}
3755_ACEOF 4058_ACEOF
3756rm -f conftest.$ac_objext 4059if ac_fn_c_try_compile "$LINENO"; then :
3757if { (ac_try="$ac_compile"
3758case "(($ac_try" in
3759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760 *) ac_try_echo=$ac_try;;
3761esac
3762eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3763$as_echo "$ac_try_echo") >&5
3764 (eval "$ac_compile") 2>conftest.er1
3765 ac_status=$?
3766 grep -v '^ *+' conftest.er1 >conftest.err
3767 rm -f conftest.er1
3768 cat conftest.err >&5
3769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); } && {
3771 test -z "$ac_c_werror_flag" ||
3772 test ! -s conftest.err
3773 } && test -s conftest.$ac_objext; then
3774 ac_cv_prog_cc_g=yes 4060 ac_cv_prog_cc_g=yes
3775else
3776 $as_echo "$as_me: failed program was:" >&5
3777sed 's/^/| /' conftest.$ac_ext >&5
3778
3779
3780fi 4061fi
3781
3782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3783fi 4063fi
3784
3785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786fi 4065fi
3787
3788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789 ac_c_werror_flag=$ac_save_c_werror_flag 4067 ac_c_werror_flag=$ac_save_c_werror_flag
3790fi 4068fi
3791{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 4069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3792$as_echo "$ac_cv_prog_cc_g" >&6; } 4070$as_echo "$ac_cv_prog_cc_g" >&6; }
3793if test "$ac_test_CFLAGS" = set; then 4071if test "$ac_test_CFLAGS" = set; then
3794 CFLAGS=$ac_save_CFLAGS 4072 CFLAGS=$ac_save_CFLAGS
@@ -3805,18 +4083,14 @@ else
3805 CFLAGS= 4083 CFLAGS=
3806 fi 4084 fi
3807fi 4085fi
3808{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 4086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3809$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4087$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3810if test "${ac_cv_prog_cc_c89+set}" = set; then 4088if test "${ac_cv_prog_cc_c89+set}" = set; then :
3811 $as_echo_n "(cached) " >&6 4089 $as_echo_n "(cached) " >&6
3812else 4090else
3813 ac_cv_prog_cc_c89=no 4091 ac_cv_prog_cc_c89=no
3814ac_save_CC=$CC 4092ac_save_CC=$CC
3815cat >conftest.$ac_ext <<_ACEOF 4093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816/* confdefs.h. */
3817_ACEOF
3818cat confdefs.h >>conftest.$ac_ext
3819cat >>conftest.$ac_ext <<_ACEOF
3820/* end confdefs.h. */ 4094/* end confdefs.h. */
3821#include <stdarg.h> 4095#include <stdarg.h>
3822#include <stdio.h> 4096#include <stdio.h>
@@ -3873,32 +4147,9 @@ for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3873 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4147 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3874do 4148do
3875 CC="$ac_save_CC $ac_arg" 4149 CC="$ac_save_CC $ac_arg"
3876 rm -f conftest.$ac_objext 4150 if ac_fn_c_try_compile "$LINENO"; then :
3877if { (ac_try="$ac_compile"
3878case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3881esac
3882eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3883$as_echo "$ac_try_echo") >&5
3884 (eval "$ac_compile") 2>conftest.er1
3885 ac_status=$?
3886 grep -v '^ *+' conftest.er1 >conftest.err
3887 rm -f conftest.er1
3888 cat conftest.err >&5
3889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); } && {
3891 test -z "$ac_c_werror_flag" ||
3892 test ! -s conftest.err
3893 } && test -s conftest.$ac_objext; then
3894 ac_cv_prog_cc_c89=$ac_arg 4151 ac_cv_prog_cc_c89=$ac_arg
3895else
3896 $as_echo "$as_me: failed program was:" >&5
3897sed 's/^/| /' conftest.$ac_ext >&5
3898
3899
3900fi 4152fi
3901
3902rm -f core conftest.err conftest.$ac_objext 4153rm -f core conftest.err conftest.$ac_objext
3903 test "x$ac_cv_prog_cc_c89" != "xno" && break 4154 test "x$ac_cv_prog_cc_c89" != "xno" && break
3904done 4155done
@@ -3909,17 +4160,19 @@ fi
3909# AC_CACHE_VAL 4160# AC_CACHE_VAL
3910case "x$ac_cv_prog_cc_c89" in 4161case "x$ac_cv_prog_cc_c89" in
3911 x) 4162 x)
3912 { $as_echo "$as_me:$LINENO: result: none needed" >&5 4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3913$as_echo "none needed" >&6; } ;; 4164$as_echo "none needed" >&6; } ;;
3914 xno) 4165 xno)
3915 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3916$as_echo "unsupported" >&6; } ;; 4167$as_echo "unsupported" >&6; } ;;
3917 *) 4168 *)
3918 CC="$CC $ac_cv_prog_cc_c89" 4169 CC="$CC $ac_cv_prog_cc_c89"
3919 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3920$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4171$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3921esac 4172esac
4173if test "x$ac_cv_prog_cc_c89" != xno; then :
3922 4174
4175fi
3923 4176
3924ac_ext=c 4177ac_ext=c
3925ac_cpp='$CPP $CPPFLAGS' 4178ac_cpp='$CPP $CPPFLAGS'
@@ -3937,17 +4190,13 @@ fi
3937## using a Sun compiler, which needs -Xs to prevent whitespace. 4190## using a Sun compiler, which needs -Xs to prevent whitespace.
3938if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \ 4191if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3939 test x"$CPP" = x; then 4192 test x"$CPP" = x; then
3940 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5 4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
3941$as_echo_n "checking whether we are using a Sun C compiler... " >&6; } 4194$as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3942 4195
3943if test "${emacs_cv_sunpro_c+set}" = set; then 4196if test "${emacs_cv_sunpro_c+set}" = set; then :
3944 $as_echo_n "(cached) " >&6 4197 $as_echo_n "(cached) " >&6
3945else 4198else
3946 cat >conftest.$ac_ext <<_ACEOF 4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947/* confdefs.h. */
3948_ACEOF
3949cat confdefs.h >>conftest.$ac_ext
3950cat >>conftest.$ac_ext <<_ACEOF
3951/* end confdefs.h. */ 4200/* end confdefs.h. */
3952 4201
3953int 4202int
@@ -3961,41 +4210,16 @@ fail;
3961 return 0; 4210 return 0;
3962} 4211}
3963_ACEOF 4212_ACEOF
3964rm -f conftest.$ac_objext conftest$ac_exeext 4213if ac_fn_c_try_link "$LINENO"; then :
3965if { (ac_try="$ac_link"
3966case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969esac
3970eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3971$as_echo "$ac_try_echo") >&5
3972 (eval "$ac_link") 2>conftest.er1
3973 ac_status=$?
3974 grep -v '^ *+' conftest.er1 >conftest.err
3975 rm -f conftest.er1
3976 cat conftest.err >&5
3977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); } && {
3979 test -z "$ac_c_werror_flag" ||
3980 test ! -s conftest.err
3981 } && test -s conftest$ac_exeext && {
3982 test "$cross_compiling" = yes ||
3983 $as_test_x conftest$ac_exeext
3984 }; then
3985 emacs_cv_sunpro_c=yes 4214 emacs_cv_sunpro_c=yes
3986else 4215else
3987 $as_echo "$as_me: failed program was:" >&5 4216 emacs_cv_sunpro_c=no
3988sed 's/^/| /' conftest.$ac_ext >&5
3989
3990 emacs_cv_sunpro_c=no
3991fi 4217fi
3992 4218rm -f core conftest.err conftest.$ac_objext \
3993rm -rf conftest.dSYM 4219 conftest$ac_exeext conftest.$ac_ext
3994rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3995 conftest$ac_exeext conftest.$ac_ext
3996fi 4220fi
3997 4221
3998 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5 4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
3999$as_echo "$emacs_cv_sunpro_c" >&6; } 4223$as_echo "$emacs_cv_sunpro_c" >&6; }
4000 4224
4001 if test x"$emacs_cv_sunpro_c" = xyes; then 4225 if test x"$emacs_cv_sunpro_c" = xyes; then
@@ -4035,14 +4259,14 @@ ac_cpp='$CPP $CPPFLAGS'
4035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037ac_compiler_gnu=$ac_cv_c_compiler_gnu 4261ac_compiler_gnu=$ac_cv_c_compiler_gnu
4038{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4039$as_echo_n "checking how to run the C preprocessor... " >&6; } 4263$as_echo_n "checking how to run the C preprocessor... " >&6; }
4040# On Suns, sometimes $CPP names a directory. 4264# On Suns, sometimes $CPP names a directory.
4041if test -n "$CPP" && test -d "$CPP"; then 4265if test -n "$CPP" && test -d "$CPP"; then
4042 CPP= 4266 CPP=
4043fi 4267fi
4044if test -z "$CPP"; then 4268if test -z "$CPP"; then
4045 if test "${ac_cv_prog_CPP+set}" = set; then 4269 if test "${ac_cv_prog_CPP+set}" = set; then :
4046 $as_echo_n "(cached) " >&6 4270 $as_echo_n "(cached) " >&6
4047else 4271else
4048 # Double quotes because CPP needs to be expanded 4272 # Double quotes because CPP needs to be expanded
@@ -4057,11 +4281,7 @@ do
4057 # <limits.h> exists even on freestanding compilers. 4281 # <limits.h> exists even on freestanding compilers.
4058 # On the NeXT, cc -E runs the code through the compiler's parser, 4282 # On the NeXT, cc -E runs the code through the compiler's parser,
4059 # not just through cpp. "Syntax error" is here to catch this case. 4283 # not just through cpp. "Syntax error" is here to catch this case.
4060 cat >conftest.$ac_ext <<_ACEOF 4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061/* confdefs.h. */
4062_ACEOF
4063cat confdefs.h >>conftest.$ac_ext
4064cat >>conftest.$ac_ext <<_ACEOF
4065/* end confdefs.h. */ 4285/* end confdefs.h. */
4066#ifdef __STDC__ 4286#ifdef __STDC__
4067# include <limits.h> 4287# include <limits.h>
@@ -4070,78 +4290,34 @@ cat >>conftest.$ac_ext <<_ACEOF
4070#endif 4290#endif
4071 Syntax error 4291 Syntax error
4072_ACEOF 4292_ACEOF
4073if { (ac_try="$ac_cpp conftest.$ac_ext" 4293if ac_fn_c_try_cpp "$LINENO"; then :
4074case "(($ac_try" in
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4077esac
4078eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4079$as_echo "$ac_try_echo") >&5
4080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4081 ac_status=$?
4082 grep -v '^ *+' conftest.er1 >conftest.err
4083 rm -f conftest.er1
4084 cat conftest.err >&5
4085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } >/dev/null && {
4087 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4088 test ! -s conftest.err
4089 }; then
4090 :
4091else
4092 $as_echo "$as_me: failed program was:" >&5
4093sed 's/^/| /' conftest.$ac_ext >&5
4094 4294
4295else
4095 # Broken: fails on valid input. 4296 # Broken: fails on valid input.
4096continue 4297continue
4097fi 4298fi
4098
4099rm -f conftest.err conftest.$ac_ext 4299rm -f conftest.err conftest.$ac_ext
4100 4300
4101 # OK, works on sane cases. Now check whether nonexistent headers 4301 # OK, works on sane cases. Now check whether nonexistent headers
4102 # can be detected and how. 4302 # can be detected and how.
4103 cat >conftest.$ac_ext <<_ACEOF 4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104/* confdefs.h. */
4105_ACEOF
4106cat confdefs.h >>conftest.$ac_ext
4107cat >>conftest.$ac_ext <<_ACEOF
4108/* end confdefs.h. */ 4304/* end confdefs.h. */
4109#include <ac_nonexistent.h> 4305#include <ac_nonexistent.h>
4110_ACEOF 4306_ACEOF
4111if { (ac_try="$ac_cpp conftest.$ac_ext" 4307if ac_fn_c_try_cpp "$LINENO"; then :
4112case "(($ac_try" in
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4115esac
4116eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4117$as_echo "$ac_try_echo") >&5
4118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4119 ac_status=$?
4120 grep -v '^ *+' conftest.er1 >conftest.err
4121 rm -f conftest.er1
4122 cat conftest.err >&5
4123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } >/dev/null && {
4125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4126 test ! -s conftest.err
4127 }; then
4128 # Broken: success on invalid input. 4308 # Broken: success on invalid input.
4129continue 4309continue
4130else 4310else
4131 $as_echo "$as_me: failed program was:" >&5
4132sed 's/^/| /' conftest.$ac_ext >&5
4133
4134 # Passes both tests. 4311 # Passes both tests.
4135ac_preproc_ok=: 4312ac_preproc_ok=:
4136break 4313break
4137fi 4314fi
4138
4139rm -f conftest.err conftest.$ac_ext 4315rm -f conftest.err conftest.$ac_ext
4140 4316
4141done 4317done
4142# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4318# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4143rm -f conftest.err conftest.$ac_ext 4319rm -f conftest.err conftest.$ac_ext
4144if $ac_preproc_ok; then 4320if $ac_preproc_ok; then :
4145 break 4321 break
4146fi 4322fi
4147 4323
@@ -4153,7 +4329,7 @@ fi
4153else 4329else
4154 ac_cv_prog_CPP=$CPP 4330 ac_cv_prog_CPP=$CPP
4155fi 4331fi
4156{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 4332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4157$as_echo "$CPP" >&6; } 4333$as_echo "$CPP" >&6; }
4158ac_preproc_ok=false 4334ac_preproc_ok=false
4159for ac_c_preproc_warn_flag in '' yes 4335for ac_c_preproc_warn_flag in '' yes
@@ -4164,11 +4340,7 @@ do
4164 # <limits.h> exists even on freestanding compilers. 4340 # <limits.h> exists even on freestanding compilers.
4165 # On the NeXT, cc -E runs the code through the compiler's parser, 4341 # On the NeXT, cc -E runs the code through the compiler's parser,
4166 # not just through cpp. "Syntax error" is here to catch this case. 4342 # not just through cpp. "Syntax error" is here to catch this case.
4167 cat >conftest.$ac_ext <<_ACEOF 4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168/* confdefs.h. */
4169_ACEOF
4170cat confdefs.h >>conftest.$ac_ext
4171cat >>conftest.$ac_ext <<_ACEOF
4172/* end confdefs.h. */ 4344/* end confdefs.h. */
4173#ifdef __STDC__ 4345#ifdef __STDC__
4174# include <limits.h> 4346# include <limits.h>
@@ -4177,85 +4349,40 @@ cat >>conftest.$ac_ext <<_ACEOF
4177#endif 4349#endif
4178 Syntax error 4350 Syntax error
4179_ACEOF 4351_ACEOF
4180if { (ac_try="$ac_cpp conftest.$ac_ext" 4352if ac_fn_c_try_cpp "$LINENO"; then :
4181case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4184esac
4185eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4186$as_echo "$ac_try_echo") >&5
4187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4188 ac_status=$?
4189 grep -v '^ *+' conftest.er1 >conftest.err
4190 rm -f conftest.er1
4191 cat conftest.err >&5
4192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } >/dev/null && {
4194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4195 test ! -s conftest.err
4196 }; then
4197 :
4198else
4199 $as_echo "$as_me: failed program was:" >&5
4200sed 's/^/| /' conftest.$ac_ext >&5
4201 4353
4354else
4202 # Broken: fails on valid input. 4355 # Broken: fails on valid input.
4203continue 4356continue
4204fi 4357fi
4205
4206rm -f conftest.err conftest.$ac_ext 4358rm -f conftest.err conftest.$ac_ext
4207 4359
4208 # OK, works on sane cases. Now check whether nonexistent headers 4360 # OK, works on sane cases. Now check whether nonexistent headers
4209 # can be detected and how. 4361 # can be detected and how.
4210 cat >conftest.$ac_ext <<_ACEOF 4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211/* confdefs.h. */
4212_ACEOF
4213cat confdefs.h >>conftest.$ac_ext
4214cat >>conftest.$ac_ext <<_ACEOF
4215/* end confdefs.h. */ 4363/* end confdefs.h. */
4216#include <ac_nonexistent.h> 4364#include <ac_nonexistent.h>
4217_ACEOF 4365_ACEOF
4218if { (ac_try="$ac_cpp conftest.$ac_ext" 4366if ac_fn_c_try_cpp "$LINENO"; then :
4219case "(($ac_try" in
4220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221 *) ac_try_echo=$ac_try;;
4222esac
4223eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4224$as_echo "$ac_try_echo") >&5
4225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4226 ac_status=$?
4227 grep -v '^ *+' conftest.er1 >conftest.err
4228 rm -f conftest.er1
4229 cat conftest.err >&5
4230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } >/dev/null && {
4232 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4233 test ! -s conftest.err
4234 }; then
4235 # Broken: success on invalid input. 4367 # Broken: success on invalid input.
4236continue 4368continue
4237else 4369else
4238 $as_echo "$as_me: failed program was:" >&5
4239sed 's/^/| /' conftest.$ac_ext >&5
4240
4241 # Passes both tests. 4370 # Passes both tests.
4242ac_preproc_ok=: 4371ac_preproc_ok=:
4243break 4372break
4244fi 4373fi
4245
4246rm -f conftest.err conftest.$ac_ext 4374rm -f conftest.err conftest.$ac_ext
4247 4375
4248done 4376done
4249# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4377# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4250rm -f conftest.err conftest.$ac_ext 4378rm -f conftest.err conftest.$ac_ext
4251if $ac_preproc_ok; then 4379if $ac_preproc_ok; then :
4252 : 4380
4253else 4381else
4254 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4255See \`config.log' for more details." >&5 4383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4256$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4384as_fn_error "C preprocessor \"$CPP\" fails sanity check
4257See \`config.log' for more details." >&2;} 4385See \`config.log' for more details." "$LINENO" 5; }
4258 { (exit 1); exit 1; }; }
4259fi 4386fi
4260 4387
4261ac_ext=c 4388ac_ext=c
@@ -4265,9 +4392,9 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
4265ac_compiler_gnu=$ac_cv_c_compiler_gnu 4392ac_compiler_gnu=$ac_cv_c_compiler_gnu
4266 4393
4267 4394
4268{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4269$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4396$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4270if test "${ac_cv_path_GREP+set}" = set; then 4397if test "${ac_cv_path_GREP+set}" = set; then :
4271 $as_echo_n "(cached) " >&6 4398 $as_echo_n "(cached) " >&6
4272else 4399else
4273 if test -z "$GREP"; then 4400 if test -z "$GREP"; then
@@ -4278,7 +4405,7 @@ for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4278do 4405do
4279 IFS=$as_save_IFS 4406 IFS=$as_save_IFS
4280 test -z "$as_dir" && as_dir=. 4407 test -z "$as_dir" && as_dir=.
4281 for ac_prog in grep ggrep; do 4408 for ac_prog in grep ggrep; do
4282 for ac_exec_ext in '' $ac_executable_extensions; do 4409 for ac_exec_ext in '' $ac_executable_extensions; do
4283 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4410 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4284 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4411 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
@@ -4298,7 +4425,7 @@ case `"$ac_path_GREP" --version 2>&1` in
4298 $as_echo 'GREP' >> "conftest.nl" 4425 $as_echo 'GREP' >> "conftest.nl"
4299 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4426 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4300 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4427 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4301 ac_count=`expr $ac_count + 1` 4428 as_fn_arith $ac_count + 1 && ac_count=$as_val
4302 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4429 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4303 # Best one so far, save it but keep looking for a better one 4430 # Best one so far, save it but keep looking for a better one
4304 ac_cv_path_GREP="$ac_path_GREP" 4431 ac_cv_path_GREP="$ac_path_GREP"
@@ -4313,26 +4440,24 @@ esac
4313 $ac_path_GREP_found && break 3 4440 $ac_path_GREP_found && break 3
4314 done 4441 done
4315 done 4442 done
4316done 4443 done
4317IFS=$as_save_IFS 4444IFS=$as_save_IFS
4318 if test -z "$ac_cv_path_GREP"; then 4445 if test -z "$ac_cv_path_GREP"; then
4319 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4446 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4320$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4321 { (exit 1); exit 1; }; }
4322 fi 4447 fi
4323else 4448else
4324 ac_cv_path_GREP=$GREP 4449 ac_cv_path_GREP=$GREP
4325fi 4450fi
4326 4451
4327fi 4452fi
4328{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4329$as_echo "$ac_cv_path_GREP" >&6; } 4454$as_echo "$ac_cv_path_GREP" >&6; }
4330 GREP="$ac_cv_path_GREP" 4455 GREP="$ac_cv_path_GREP"
4331 4456
4332 4457
4333{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4334$as_echo_n "checking for egrep... " >&6; } 4459$as_echo_n "checking for egrep... " >&6; }
4335if test "${ac_cv_path_EGREP+set}" = set; then 4460if test "${ac_cv_path_EGREP+set}" = set; then :
4336 $as_echo_n "(cached) " >&6 4461 $as_echo_n "(cached) " >&6
4337else 4462else
4338 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4463 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
@@ -4346,7 +4471,7 @@ for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4346do 4471do
4347 IFS=$as_save_IFS 4472 IFS=$as_save_IFS
4348 test -z "$as_dir" && as_dir=. 4473 test -z "$as_dir" && as_dir=.
4349 for ac_prog in egrep; do 4474 for ac_prog in egrep; do
4350 for ac_exec_ext in '' $ac_executable_extensions; do 4475 for ac_exec_ext in '' $ac_executable_extensions; do
4351 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4476 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4352 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4477 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
@@ -4366,7 +4491,7 @@ case `"$ac_path_EGREP" --version 2>&1` in
4366 $as_echo 'EGREP' >> "conftest.nl" 4491 $as_echo 'EGREP' >> "conftest.nl"
4367 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4492 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4368 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4493 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4369 ac_count=`expr $ac_count + 1` 4494 as_fn_arith $ac_count + 1 && ac_count=$as_val
4370 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4495 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4371 # Best one so far, save it but keep looking for a better one 4496 # Best one so far, save it but keep looking for a better one
4372 ac_cv_path_EGREP="$ac_path_EGREP" 4497 ac_cv_path_EGREP="$ac_path_EGREP"
@@ -4381,12 +4506,10 @@ esac
4381 $ac_path_EGREP_found && break 3 4506 $ac_path_EGREP_found && break 3
4382 done 4507 done
4383 done 4508 done
4384done 4509 done
4385IFS=$as_save_IFS 4510IFS=$as_save_IFS
4386 if test -z "$ac_cv_path_EGREP"; then 4511 if test -z "$ac_cv_path_EGREP"; then
4387 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4512 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4388$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4389 { (exit 1); exit 1; }; }
4390 fi 4513 fi
4391else 4514else
4392 ac_cv_path_EGREP=$EGREP 4515 ac_cv_path_EGREP=$EGREP
@@ -4394,21 +4517,17 @@ fi
4394 4517
4395 fi 4518 fi
4396fi 4519fi
4397{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4398$as_echo "$ac_cv_path_EGREP" >&6; } 4521$as_echo "$ac_cv_path_EGREP" >&6; }
4399 EGREP="$ac_cv_path_EGREP" 4522 EGREP="$ac_cv_path_EGREP"
4400 4523
4401 4524
4402{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4403$as_echo_n "checking for ANSI C header files... " >&6; } 4526$as_echo_n "checking for ANSI C header files... " >&6; }
4404if test "${ac_cv_header_stdc+set}" = set; then 4527if test "${ac_cv_header_stdc+set}" = set; then :
4405 $as_echo_n "(cached) " >&6 4528 $as_echo_n "(cached) " >&6
4406else 4529else
4407 cat >conftest.$ac_ext <<_ACEOF 4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4408/* confdefs.h. */
4409_ACEOF
4410cat confdefs.h >>conftest.$ac_ext
4411cat >>conftest.$ac_ext <<_ACEOF
4412/* end confdefs.h. */ 4531/* end confdefs.h. */
4413#include <stdlib.h> 4532#include <stdlib.h>
4414#include <stdarg.h> 4533#include <stdarg.h>
@@ -4423,48 +4542,23 @@ main ()
4423 return 0; 4542 return 0;
4424} 4543}
4425_ACEOF 4544_ACEOF
4426rm -f conftest.$ac_objext 4545if ac_fn_c_try_compile "$LINENO"; then :
4427if { (ac_try="$ac_compile"
4428case "(($ac_try" in
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4431esac
4432eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4433$as_echo "$ac_try_echo") >&5
4434 (eval "$ac_compile") 2>conftest.er1
4435 ac_status=$?
4436 grep -v '^ *+' conftest.er1 >conftest.err
4437 rm -f conftest.er1
4438 cat conftest.err >&5
4439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } && {
4441 test -z "$ac_c_werror_flag" ||
4442 test ! -s conftest.err
4443 } && test -s conftest.$ac_objext; then
4444 ac_cv_header_stdc=yes 4546 ac_cv_header_stdc=yes
4445else 4547else
4446 $as_echo "$as_me: failed program was:" >&5 4548 ac_cv_header_stdc=no
4447sed 's/^/| /' conftest.$ac_ext >&5
4448
4449 ac_cv_header_stdc=no
4450fi 4549fi
4451
4452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4453 4551
4454if test $ac_cv_header_stdc = yes; then 4552if test $ac_cv_header_stdc = yes; then
4455 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4553 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4456 cat >conftest.$ac_ext <<_ACEOF 4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457/* confdefs.h. */
4458_ACEOF
4459cat confdefs.h >>conftest.$ac_ext
4460cat >>conftest.$ac_ext <<_ACEOF
4461/* end confdefs.h. */ 4555/* end confdefs.h. */
4462#include <string.h> 4556#include <string.h>
4463 4557
4464_ACEOF 4558_ACEOF
4465if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4559if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4466 $EGREP "memchr" >/dev/null 2>&1; then 4560 $EGREP "memchr" >/dev/null 2>&1; then :
4467 : 4561
4468else 4562else
4469 ac_cv_header_stdc=no 4563 ac_cv_header_stdc=no
4470fi 4564fi
@@ -4474,18 +4568,14 @@ fi
4474 4568
4475if test $ac_cv_header_stdc = yes; then 4569if test $ac_cv_header_stdc = yes; then
4476 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4570 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4477 cat >conftest.$ac_ext <<_ACEOF 4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478/* confdefs.h. */
4479_ACEOF
4480cat confdefs.h >>conftest.$ac_ext
4481cat >>conftest.$ac_ext <<_ACEOF
4482/* end confdefs.h. */ 4572/* end confdefs.h. */
4483#include <stdlib.h> 4573#include <stdlib.h>
4484 4574
4485_ACEOF 4575_ACEOF
4486if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4576if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4487 $EGREP "free" >/dev/null 2>&1; then 4577 $EGREP "free" >/dev/null 2>&1; then :
4488 : 4578
4489else 4579else
4490 ac_cv_header_stdc=no 4580 ac_cv_header_stdc=no
4491fi 4581fi
@@ -4495,14 +4585,10 @@ fi
4495 4585
4496if test $ac_cv_header_stdc = yes; then 4586if test $ac_cv_header_stdc = yes; then
4497 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4587 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4498 if test "$cross_compiling" = yes; then 4588 if test "$cross_compiling" = yes; then :
4499 : 4589 :
4500else 4590else
4501 cat >conftest.$ac_ext <<_ACEOF 4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502/* confdefs.h. */
4503_ACEOF
4504cat confdefs.h >>conftest.$ac_ext
4505cat >>conftest.$ac_ext <<_ACEOF
4506/* end confdefs.h. */ 4592/* end confdefs.h. */
4507#include <ctype.h> 4593#include <ctype.h>
4508#include <stdlib.h> 4594#include <stdlib.h>
@@ -4529,117 +4615,34 @@ main ()
4529 return 0; 4615 return 0;
4530} 4616}
4531_ACEOF 4617_ACEOF
4532rm -f conftest$ac_exeext 4618if ac_fn_c_try_run "$LINENO"; then :
4533if { (ac_try="$ac_link"
4534case "(($ac_try" in
4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536 *) ac_try_echo=$ac_try;;
4537esac
4538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4539$as_echo "$ac_try_echo") >&5
4540 (eval "$ac_link") 2>&5
4541 ac_status=$?
4542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4544 { (case "(($ac_try" in
4545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4546 *) ac_try_echo=$ac_try;;
4547esac
4548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4549$as_echo "$ac_try_echo") >&5
4550 (eval "$ac_try") 2>&5
4551 ac_status=$?
4552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; }; then
4554 :
4555else
4556 $as_echo "$as_me: program exited with status $ac_status" >&5
4557$as_echo "$as_me: failed program was:" >&5
4558sed 's/^/| /' conftest.$ac_ext >&5
4559 4619
4560( exit $ac_status ) 4620else
4561ac_cv_header_stdc=no 4621 ac_cv_header_stdc=no
4562fi 4622fi
4563rm -rf conftest.dSYM 4623rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4564rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4624 conftest.$ac_objext conftest.beam conftest.$ac_ext
4565fi 4625fi
4566 4626
4567
4568fi 4627fi
4569fi 4628fi
4570{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4571$as_echo "$ac_cv_header_stdc" >&6; } 4630$as_echo "$ac_cv_header_stdc" >&6; }
4572if test $ac_cv_header_stdc = yes; then 4631if test $ac_cv_header_stdc = yes; then
4573 4632
4574cat >>confdefs.h <<\_ACEOF 4633$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4575#define STDC_HEADERS 1
4576_ACEOF
4577 4634
4578fi 4635fi
4579 4636
4580# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4637# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4638for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4591 inttypes.h stdint.h unistd.h 4639 inttypes.h stdint.h unistd.h
4592do 4640do :
4593as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4641 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4594{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4642ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4595$as_echo_n "checking for $ac_header... " >&6; } 4643"
4596if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4644eval as_val=\$$as_ac_Header
4597 $as_echo_n "(cached) " >&6 4645 if test "x$as_val" = x""yes; then :
4598else
4599 cat >conftest.$ac_ext <<_ACEOF
4600/* confdefs.h. */
4601_ACEOF
4602cat confdefs.h >>conftest.$ac_ext
4603cat >>conftest.$ac_ext <<_ACEOF
4604/* end confdefs.h. */
4605$ac_includes_default
4606
4607#include <$ac_header>
4608_ACEOF
4609rm -f conftest.$ac_objext
4610if { (ac_try="$ac_compile"
4611case "(($ac_try" in
4612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613 *) ac_try_echo=$ac_try;;
4614esac
4615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4616$as_echo "$ac_try_echo") >&5
4617 (eval "$ac_compile") 2>conftest.er1
4618 ac_status=$?
4619 grep -v '^ *+' conftest.er1 >conftest.err
4620 rm -f conftest.er1
4621 cat conftest.err >&5
4622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } && {
4624 test -z "$ac_c_werror_flag" ||
4625 test ! -s conftest.err
4626 } && test -s conftest.$ac_objext; then
4627 eval "$as_ac_Header=yes"
4628else
4629 $as_echo "$as_me: failed program was:" >&5
4630sed 's/^/| /' conftest.$ac_ext >&5
4631
4632 eval "$as_ac_Header=no"
4633fi
4634
4635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636fi
4637ac_res=`eval 'as_val=${'$as_ac_Header'}
4638 $as_echo "$as_val"'`
4639 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4640$as_echo "$ac_res" >&6; }
4641if test `eval 'as_val=${'$as_ac_Header'}
4642 $as_echo "$as_val"'` = yes; then
4643 cat >>confdefs.h <<_ACEOF 4646 cat >>confdefs.h <<_ACEOF
4644#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4647#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4645_ACEOF 4648_ACEOF
@@ -4650,134 +4653,8 @@ done
4650 4653
4651 4654
4652 4655
4653 if test "${ac_cv_header_minix_config_h+set}" = set; then 4656 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4654 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 4657if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4655$as_echo_n "checking for minix/config.h... " >&6; }
4656if test "${ac_cv_header_minix_config_h+set}" = set; then
4657 $as_echo_n "(cached) " >&6
4658fi
4659{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4660$as_echo "$ac_cv_header_minix_config_h" >&6; }
4661else
4662 # Is the header compilable?
4663{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4664$as_echo_n "checking minix/config.h usability... " >&6; }
4665cat >conftest.$ac_ext <<_ACEOF
4666/* confdefs.h. */
4667_ACEOF
4668cat confdefs.h >>conftest.$ac_ext
4669cat >>conftest.$ac_ext <<_ACEOF
4670/* end confdefs.h. */
4671$ac_includes_default
4672#include <minix/config.h>
4673_ACEOF
4674rm -f conftest.$ac_objext
4675if { (ac_try="$ac_compile"
4676case "(($ac_try" in
4677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4678 *) ac_try_echo=$ac_try;;
4679esac
4680eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4681$as_echo "$ac_try_echo") >&5
4682 (eval "$ac_compile") 2>conftest.er1
4683 ac_status=$?
4684 grep -v '^ *+' conftest.er1 >conftest.err
4685 rm -f conftest.er1
4686 cat conftest.err >&5
4687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } && {
4689 test -z "$ac_c_werror_flag" ||
4690 test ! -s conftest.err
4691 } && test -s conftest.$ac_objext; then
4692 ac_header_compiler=yes
4693else
4694 $as_echo "$as_me: failed program was:" >&5
4695sed 's/^/| /' conftest.$ac_ext >&5
4696
4697 ac_header_compiler=no
4698fi
4699
4700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4702$as_echo "$ac_header_compiler" >&6; }
4703
4704# Is the header present?
4705{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4706$as_echo_n "checking minix/config.h presence... " >&6; }
4707cat >conftest.$ac_ext <<_ACEOF
4708/* confdefs.h. */
4709_ACEOF
4710cat confdefs.h >>conftest.$ac_ext
4711cat >>conftest.$ac_ext <<_ACEOF
4712/* end confdefs.h. */
4713#include <minix/config.h>
4714_ACEOF
4715if { (ac_try="$ac_cpp conftest.$ac_ext"
4716case "(($ac_try" in
4717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4718 *) ac_try_echo=$ac_try;;
4719esac
4720eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4721$as_echo "$ac_try_echo") >&5
4722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4723 ac_status=$?
4724 grep -v '^ *+' conftest.er1 >conftest.err
4725 rm -f conftest.er1
4726 cat conftest.err >&5
4727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } >/dev/null && {
4729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4730 test ! -s conftest.err
4731 }; then
4732 ac_header_preproc=yes
4733else
4734 $as_echo "$as_me: failed program was:" >&5
4735sed 's/^/| /' conftest.$ac_ext >&5
4736
4737 ac_header_preproc=no
4738fi
4739
4740rm -f conftest.err conftest.$ac_ext
4741{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4742$as_echo "$ac_header_preproc" >&6; }
4743
4744# So? What about this header?
4745case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4746 yes:no: )
4747 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4748$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4749 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4750$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4751 ac_header_preproc=yes
4752 ;;
4753 no:yes:* )
4754 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4755$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4756 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4757$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4758 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4759$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4760 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4761$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4762 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4763$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4764 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4765$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4766
4767 ;;
4768esac
4769{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4770$as_echo_n "checking for minix/config.h... " >&6; }
4771if test "${ac_cv_header_minix_config_h+set}" = set; then
4772 $as_echo_n "(cached) " >&6
4773else
4774 ac_cv_header_minix_config_h=$ac_header_preproc
4775fi
4776{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4777$as_echo "$ac_cv_header_minix_config_h" >&6; }
4778
4779fi
4780if test $ac_cv_header_minix_config_h = yes; then
4781 MINIX=yes 4658 MINIX=yes
4782else 4659else
4783 MINIX= 4660 MINIX=
@@ -4786,34 +4663,23 @@ fi
4786 4663
4787 if test "$MINIX" = yes; then 4664 if test "$MINIX" = yes; then
4788 4665
4789cat >>confdefs.h <<\_ACEOF 4666$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4790#define _POSIX_SOURCE 1
4791_ACEOF
4792 4667
4793 4668
4794cat >>confdefs.h <<\_ACEOF 4669$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4795#define _POSIX_1_SOURCE 2
4796_ACEOF
4797 4670
4798 4671
4799cat >>confdefs.h <<\_ACEOF 4672$as_echo "#define _MINIX 1" >>confdefs.h
4800#define _MINIX 1
4801_ACEOF
4802 4673
4803 fi 4674 fi
4804 4675
4805 4676
4806 4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4807 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4808$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4678$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4809if test "${ac_cv_safe_to_define___extensions__+set}" = set; then 4679if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4810 $as_echo_n "(cached) " >&6 4680 $as_echo_n "(cached) " >&6
4811else 4681else
4812 cat >conftest.$ac_ext <<_ACEOF 4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813/* confdefs.h. */
4814_ACEOF
4815cat confdefs.h >>conftest.$ac_ext
4816cat >>conftest.$ac_ext <<_ACEOF
4817/* end confdefs.h. */ 4683/* end confdefs.h. */
4818 4684
4819# define __EXTENSIONS__ 1 4685# define __EXTENSIONS__ 1
@@ -4826,69 +4692,34 @@ main ()
4826 return 0; 4692 return 0;
4827} 4693}
4828_ACEOF 4694_ACEOF
4829rm -f conftest.$ac_objext 4695if ac_fn_c_try_compile "$LINENO"; then :
4830if { (ac_try="$ac_compile"
4831case "(($ac_try" in
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4834esac
4835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4836$as_echo "$ac_try_echo") >&5
4837 (eval "$ac_compile") 2>conftest.er1
4838 ac_status=$?
4839 grep -v '^ *+' conftest.er1 >conftest.err
4840 rm -f conftest.er1
4841 cat conftest.err >&5
4842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } && {
4844 test -z "$ac_c_werror_flag" ||
4845 test ! -s conftest.err
4846 } && test -s conftest.$ac_objext; then
4847 ac_cv_safe_to_define___extensions__=yes 4696 ac_cv_safe_to_define___extensions__=yes
4848else 4697else
4849 $as_echo "$as_me: failed program was:" >&5 4698 ac_cv_safe_to_define___extensions__=no
4850sed 's/^/| /' conftest.$ac_ext >&5
4851
4852 ac_cv_safe_to_define___extensions__=no
4853fi 4699fi
4854
4855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856fi 4701fi
4857{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 4702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4858$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4703$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4859 test $ac_cv_safe_to_define___extensions__ = yes && 4704 test $ac_cv_safe_to_define___extensions__ = yes &&
4860 cat >>confdefs.h <<\_ACEOF 4705 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4861#define __EXTENSIONS__ 1
4862_ACEOF
4863 4706
4864 cat >>confdefs.h <<\_ACEOF 4707 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4865#define _ALL_SOURCE 1
4866_ACEOF
4867 4708
4868 cat >>confdefs.h <<\_ACEOF 4709 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4869#define _GNU_SOURCE 1
4870_ACEOF
4871 4710
4872 cat >>confdefs.h <<\_ACEOF 4711 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4873#define _POSIX_PTHREAD_SEMANTICS 1
4874_ACEOF
4875 4712
4876 cat >>confdefs.h <<\_ACEOF 4713 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4877#define _TANDEM_SOURCE 1
4878_ACEOF
4879 4714
4880 4715
4881 4716
4882### Use -Wno-pointer-sign if the compiler supports it 4717### Use -Wno-pointer-sign if the compiler supports it
4883{ $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5 4718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4884$as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; } 4719$as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4885SAVE_CFLAGS="$CFLAGS" 4720SAVE_CFLAGS="$CFLAGS"
4886CFLAGS="$CFLAGS -Wno-pointer-sign" 4721CFLAGS="$CFLAGS -Wno-pointer-sign"
4887cat >conftest.$ac_ext <<_ACEOF 4722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888/* confdefs.h. */
4889_ACEOF
4890cat confdefs.h >>conftest.$ac_ext
4891cat >>conftest.$ac_ext <<_ACEOF
4892/* end confdefs.h. */ 4723/* end confdefs.h. */
4893 4724
4894int 4725int
@@ -4899,52 +4730,27 @@ main ()
4899 return 0; 4730 return 0;
4900} 4731}
4901_ACEOF 4732_ACEOF
4902rm -f conftest.$ac_objext 4733if ac_fn_c_try_compile "$LINENO"; then :
4903if { (ac_try="$ac_compile"
4904case "(($ac_try" in
4905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4906 *) ac_try_echo=$ac_try;;
4907esac
4908eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4909$as_echo "$ac_try_echo") >&5
4910 (eval "$ac_compile") 2>conftest.er1
4911 ac_status=$?
4912 grep -v '^ *+' conftest.er1 >conftest.err
4913 rm -f conftest.er1
4914 cat conftest.err >&5
4915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } && {
4917 test -z "$ac_c_werror_flag" ||
4918 test ! -s conftest.err
4919 } && test -s conftest.$ac_objext; then
4920 has_option=yes 4734 has_option=yes
4921else 4735else
4922 $as_echo "$as_me: failed program was:" >&5 4736 has_option=no
4923sed 's/^/| /' conftest.$ac_ext >&5
4924
4925 has_option=no
4926fi 4737fi
4927
4928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929if test $has_option = yes; then 4739if test $has_option = yes; then
4930 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH" 4740 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4931fi 4741fi
4932{ $as_echo "$as_me:$LINENO: result: $has_option" >&5 4742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4933$as_echo "$has_option" >&6; } 4743$as_echo "$has_option" >&6; }
4934CFLAGS="$SAVE_CFLAGS" 4744CFLAGS="$SAVE_CFLAGS"
4935unset has_option 4745unset has_option
4936unset SAVE_CFLAGS 4746unset SAVE_CFLAGS
4937 4747
4938### Use -Wdeclaration-after-statement if the compiler supports it 4748### Use -Wdeclaration-after-statement if the compiler supports it
4939{ $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5 4749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4940$as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; } 4750$as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4941SAVE_CFLAGS="$CFLAGS" 4751SAVE_CFLAGS="$CFLAGS"
4942CFLAGS="$CFLAGS -Wdeclaration-after-statement" 4752CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4943cat >conftest.$ac_ext <<_ACEOF 4753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944/* confdefs.h. */
4945_ACEOF
4946cat confdefs.h >>conftest.$ac_ext
4947cat >>conftest.$ac_ext <<_ACEOF
4948/* end confdefs.h. */ 4754/* end confdefs.h. */
4949 4755
4950int 4756int
@@ -4955,37 +4761,16 @@ main ()
4955 return 0; 4761 return 0;
4956} 4762}
4957_ACEOF 4763_ACEOF
4958rm -f conftest.$ac_objext 4764if ac_fn_c_try_compile "$LINENO"; then :
4959if { (ac_try="$ac_compile"
4960case "(($ac_try" in
4961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4962 *) ac_try_echo=$ac_try;;
4963esac
4964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4965$as_echo "$ac_try_echo") >&5
4966 (eval "$ac_compile") 2>conftest.er1
4967 ac_status=$?
4968 grep -v '^ *+' conftest.er1 >conftest.err
4969 rm -f conftest.er1
4970 cat conftest.err >&5
4971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); } && {
4973 test -z "$ac_c_werror_flag" ||
4974 test ! -s conftest.err
4975 } && test -s conftest.$ac_objext; then
4976 has_option=yes 4765 has_option=yes
4977else 4766else
4978 $as_echo "$as_me: failed program was:" >&5 4767 has_option=no
4979sed 's/^/| /' conftest.$ac_ext >&5
4980
4981 has_option=no
4982fi 4768fi
4983
4984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4985if test $has_option = yes; then 4770if test $has_option = yes; then
4986 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH" 4771 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4987fi 4772fi
4988{ $as_echo "$as_me:$LINENO: result: $has_option" >&5 4773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4989$as_echo "$has_option" >&6; } 4774$as_echo "$has_option" >&6; }
4990CFLAGS="$SAVE_CFLAGS" 4775CFLAGS="$SAVE_CFLAGS"
4991unset has_option 4776unset has_option
@@ -4993,14 +4778,14 @@ unset SAVE_CFLAGS
4993 4778
4994#### Some other nice autoconf tests. 4779#### Some other nice autoconf tests.
4995 4780
4996{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4997$as_echo_n "checking whether ln -s works... " >&6; } 4782$as_echo_n "checking whether ln -s works... " >&6; }
4998LN_S=$as_ln_s 4783LN_S=$as_ln_s
4999if test "$LN_S" = "ln -s"; then 4784if test "$LN_S" = "ln -s"; then
5000 { $as_echo "$as_me:$LINENO: result: yes" >&5 4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5001$as_echo "yes" >&6; } 4786$as_echo "yes" >&6; }
5002else 4787else
5003 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5004$as_echo "no, using $LN_S" >&6; } 4789$as_echo "no, using $LN_S" >&6; }
5005fi 4790fi
5006 4791
@@ -5009,14 +4794,14 @@ ac_cpp='$CPP $CPPFLAGS'
5009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011ac_compiler_gnu=$ac_cv_c_compiler_gnu 4796ac_compiler_gnu=$ac_cv_c_compiler_gnu
5012{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5013$as_echo_n "checking how to run the C preprocessor... " >&6; } 4798$as_echo_n "checking how to run the C preprocessor... " >&6; }
5014# On Suns, sometimes $CPP names a directory. 4799# On Suns, sometimes $CPP names a directory.
5015if test -n "$CPP" && test -d "$CPP"; then 4800if test -n "$CPP" && test -d "$CPP"; then
5016 CPP= 4801 CPP=
5017fi 4802fi
5018if test -z "$CPP"; then 4803if test -z "$CPP"; then
5019 if test "${ac_cv_prog_CPP+set}" = set; then 4804 if test "${ac_cv_prog_CPP+set}" = set; then :
5020 $as_echo_n "(cached) " >&6 4805 $as_echo_n "(cached) " >&6
5021else 4806else
5022 # Double quotes because CPP needs to be expanded 4807 # Double quotes because CPP needs to be expanded
@@ -5031,11 +4816,7 @@ do
5031 # <limits.h> exists even on freestanding compilers. 4816 # <limits.h> exists even on freestanding compilers.
5032 # On the NeXT, cc -E runs the code through the compiler's parser, 4817 # On the NeXT, cc -E runs the code through the compiler's parser,
5033 # not just through cpp. "Syntax error" is here to catch this case. 4818 # not just through cpp. "Syntax error" is here to catch this case.
5034 cat >conftest.$ac_ext <<_ACEOF 4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5035/* confdefs.h. */
5036_ACEOF
5037cat confdefs.h >>conftest.$ac_ext
5038cat >>conftest.$ac_ext <<_ACEOF
5039/* end confdefs.h. */ 4820/* end confdefs.h. */
5040#ifdef __STDC__ 4821#ifdef __STDC__
5041# include <limits.h> 4822# include <limits.h>
@@ -5044,78 +4825,34 @@ cat >>conftest.$ac_ext <<_ACEOF
5044#endif 4825#endif
5045 Syntax error 4826 Syntax error
5046_ACEOF 4827_ACEOF
5047if { (ac_try="$ac_cpp conftest.$ac_ext" 4828if ac_fn_c_try_cpp "$LINENO"; then :
5048case "(($ac_try" in
5049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050 *) ac_try_echo=$ac_try;;
5051esac
5052eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5053$as_echo "$ac_try_echo") >&5
5054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5055 ac_status=$?
5056 grep -v '^ *+' conftest.er1 >conftest.err
5057 rm -f conftest.er1
5058 cat conftest.err >&5
5059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } >/dev/null && {
5061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5062 test ! -s conftest.err
5063 }; then
5064 :
5065else
5066 $as_echo "$as_me: failed program was:" >&5
5067sed 's/^/| /' conftest.$ac_ext >&5
5068 4829
4830else
5069 # Broken: fails on valid input. 4831 # Broken: fails on valid input.
5070continue 4832continue
5071fi 4833fi
5072
5073rm -f conftest.err conftest.$ac_ext 4834rm -f conftest.err conftest.$ac_ext
5074 4835
5075 # OK, works on sane cases. Now check whether nonexistent headers 4836 # OK, works on sane cases. Now check whether nonexistent headers
5076 # can be detected and how. 4837 # can be detected and how.
5077 cat >conftest.$ac_ext <<_ACEOF 4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078/* confdefs.h. */
5079_ACEOF
5080cat confdefs.h >>conftest.$ac_ext
5081cat >>conftest.$ac_ext <<_ACEOF
5082/* end confdefs.h. */ 4839/* end confdefs.h. */
5083#include <ac_nonexistent.h> 4840#include <ac_nonexistent.h>
5084_ACEOF 4841_ACEOF
5085if { (ac_try="$ac_cpp conftest.$ac_ext" 4842if ac_fn_c_try_cpp "$LINENO"; then :
5086case "(($ac_try" in
5087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088 *) ac_try_echo=$ac_try;;
5089esac
5090eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5091$as_echo "$ac_try_echo") >&5
5092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5093 ac_status=$?
5094 grep -v '^ *+' conftest.er1 >conftest.err
5095 rm -f conftest.er1
5096 cat conftest.err >&5
5097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } >/dev/null && {
5099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5100 test ! -s conftest.err
5101 }; then
5102 # Broken: success on invalid input. 4843 # Broken: success on invalid input.
5103continue 4844continue
5104else 4845else
5105 $as_echo "$as_me: failed program was:" >&5
5106sed 's/^/| /' conftest.$ac_ext >&5
5107
5108 # Passes both tests. 4846 # Passes both tests.
5109ac_preproc_ok=: 4847ac_preproc_ok=:
5110break 4848break
5111fi 4849fi
5112
5113rm -f conftest.err conftest.$ac_ext 4850rm -f conftest.err conftest.$ac_ext
5114 4851
5115done 4852done
5116# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4853# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5117rm -f conftest.err conftest.$ac_ext 4854rm -f conftest.err conftest.$ac_ext
5118if $ac_preproc_ok; then 4855if $ac_preproc_ok; then :
5119 break 4856 break
5120fi 4857fi
5121 4858
@@ -5127,7 +4864,7 @@ fi
5127else 4864else
5128 ac_cv_prog_CPP=$CPP 4865 ac_cv_prog_CPP=$CPP
5129fi 4866fi
5130{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 4867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5131$as_echo "$CPP" >&6; } 4868$as_echo "$CPP" >&6; }
5132ac_preproc_ok=false 4869ac_preproc_ok=false
5133for ac_c_preproc_warn_flag in '' yes 4870for ac_c_preproc_warn_flag in '' yes
@@ -5138,11 +4875,7 @@ do
5138 # <limits.h> exists even on freestanding compilers. 4875 # <limits.h> exists even on freestanding compilers.
5139 # On the NeXT, cc -E runs the code through the compiler's parser, 4876 # On the NeXT, cc -E runs the code through the compiler's parser,
5140 # not just through cpp. "Syntax error" is here to catch this case. 4877 # not just through cpp. "Syntax error" is here to catch this case.
5141 cat >conftest.$ac_ext <<_ACEOF 4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142/* confdefs.h. */
5143_ACEOF
5144cat confdefs.h >>conftest.$ac_ext
5145cat >>conftest.$ac_ext <<_ACEOF
5146/* end confdefs.h. */ 4879/* end confdefs.h. */
5147#ifdef __STDC__ 4880#ifdef __STDC__
5148# include <limits.h> 4881# include <limits.h>
@@ -5151,85 +4884,40 @@ cat >>conftest.$ac_ext <<_ACEOF
5151#endif 4884#endif
5152 Syntax error 4885 Syntax error
5153_ACEOF 4886_ACEOF
5154if { (ac_try="$ac_cpp conftest.$ac_ext" 4887if ac_fn_c_try_cpp "$LINENO"; then :
5155case "(($ac_try" in
5156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5157 *) ac_try_echo=$ac_try;;
5158esac
5159eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5160$as_echo "$ac_try_echo") >&5
5161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5162 ac_status=$?
5163 grep -v '^ *+' conftest.er1 >conftest.err
5164 rm -f conftest.er1
5165 cat conftest.err >&5
5166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } >/dev/null && {
5168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5169 test ! -s conftest.err
5170 }; then
5171 :
5172else
5173 $as_echo "$as_me: failed program was:" >&5
5174sed 's/^/| /' conftest.$ac_ext >&5
5175 4888
4889else
5176 # Broken: fails on valid input. 4890 # Broken: fails on valid input.
5177continue 4891continue
5178fi 4892fi
5179
5180rm -f conftest.err conftest.$ac_ext 4893rm -f conftest.err conftest.$ac_ext
5181 4894
5182 # OK, works on sane cases. Now check whether nonexistent headers 4895 # OK, works on sane cases. Now check whether nonexistent headers
5183 # can be detected and how. 4896 # can be detected and how.
5184 cat >conftest.$ac_ext <<_ACEOF 4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185/* confdefs.h. */
5186_ACEOF
5187cat confdefs.h >>conftest.$ac_ext
5188cat >>conftest.$ac_ext <<_ACEOF
5189/* end confdefs.h. */ 4898/* end confdefs.h. */
5190#include <ac_nonexistent.h> 4899#include <ac_nonexistent.h>
5191_ACEOF 4900_ACEOF
5192if { (ac_try="$ac_cpp conftest.$ac_ext" 4901if ac_fn_c_try_cpp "$LINENO"; then :
5193case "(($ac_try" in
5194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5195 *) ac_try_echo=$ac_try;;
5196esac
5197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5198$as_echo "$ac_try_echo") >&5
5199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5200 ac_status=$?
5201 grep -v '^ *+' conftest.er1 >conftest.err
5202 rm -f conftest.er1
5203 cat conftest.err >&5
5204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } >/dev/null && {
5206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5207 test ! -s conftest.err
5208 }; then
5209 # Broken: success on invalid input. 4902 # Broken: success on invalid input.
5210continue 4903continue
5211else 4904else
5212 $as_echo "$as_me: failed program was:" >&5
5213sed 's/^/| /' conftest.$ac_ext >&5
5214
5215 # Passes both tests. 4905 # Passes both tests.
5216ac_preproc_ok=: 4906ac_preproc_ok=:
5217break 4907break
5218fi 4908fi
5219
5220rm -f conftest.err conftest.$ac_ext 4909rm -f conftest.err conftest.$ac_ext
5221 4910
5222done 4911done
5223# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4912# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5224rm -f conftest.err conftest.$ac_ext 4913rm -f conftest.err conftest.$ac_ext
5225if $ac_preproc_ok; then 4914if $ac_preproc_ok; then :
5226 : 4915
5227else 4916else
5228 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5229See \`config.log' for more details." >&5 4918$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5230$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4919as_fn_error "C preprocessor \"$CPP\" fails sanity check
5231See \`config.log' for more details." >&2;} 4920See \`config.log' for more details." "$LINENO" 5; }
5232 { (exit 1); exit 1; }; }
5233fi 4921fi
5234 4922
5235ac_ext=c 4923ac_ext=c
@@ -5252,10 +4940,10 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
5252# OS/2's system install, which has a completely different semantic 4940# OS/2's system install, which has a completely different semantic
5253# ./install, which can be erroneously created by make from ./install.sh. 4941# ./install, which can be erroneously created by make from ./install.sh.
5254# Reject install programs that cannot install multiple files. 4942# Reject install programs that cannot install multiple files.
5255{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 4943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5256$as_echo_n "checking for a BSD-compatible install... " >&6; } 4944$as_echo_n "checking for a BSD-compatible install... " >&6; }
5257if test -z "$INSTALL"; then 4945if test -z "$INSTALL"; then
5258if test "${ac_cv_path_install+set}" = set; then 4946if test "${ac_cv_path_install+set}" = set; then :
5259 $as_echo_n "(cached) " >&6 4947 $as_echo_n "(cached) " >&6
5260else 4948else
5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
@@ -5263,11 +4951,11 @@ for as_dir in $PATH
5263do 4951do
5264 IFS=$as_save_IFS 4952 IFS=$as_save_IFS
5265 test -z "$as_dir" && as_dir=. 4953 test -z "$as_dir" && as_dir=.
5266 # Account for people who put trailing slashes in PATH elements. 4954 # Account for people who put trailing slashes in PATH elements.
5267case $as_dir/ in 4955case $as_dir/ in #((
5268 ./ | .// | /cC/* | \ 4956 ./ | .// | /[cC]/* | \
5269 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4957 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5270 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 4958 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5271 /usr/ucb/* ) ;; 4959 /usr/ucb/* ) ;;
5272 *) 4960 *)
5273 # OSF1 and SCO ODT 3.0 have their own names for install. 4961 # OSF1 and SCO ODT 3.0 have their own names for install.
@@ -5304,7 +4992,7 @@ case $as_dir/ in
5304 ;; 4992 ;;
5305esac 4993esac
5306 4994
5307done 4995 done
5308IFS=$as_save_IFS 4996IFS=$as_save_IFS
5309 4997
5310rm -rf conftest.one conftest.two conftest.dir 4998rm -rf conftest.one conftest.two conftest.dir
@@ -5320,7 +5008,7 @@ fi
5320 INSTALL=$ac_install_sh 5008 INSTALL=$ac_install_sh
5321 fi 5009 fi
5322fi 5010fi
5323{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 5011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5324$as_echo "$INSTALL" >&6; } 5012$as_echo "$INSTALL" >&6; }
5325 5013
5326# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 5014# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
@@ -5335,9 +5023,9 @@ if test "x$RANLIB" = x; then
5335 if test -n "$ac_tool_prefix"; then 5023 if test -n "$ac_tool_prefix"; then
5336 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5024 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5337set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5025set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5338{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5339$as_echo_n "checking for $ac_word... " >&6; } 5027$as_echo_n "checking for $ac_word... " >&6; }
5340if test "${ac_cv_prog_RANLIB+set}" = set; then 5028if test "${ac_cv_prog_RANLIB+set}" = set; then :
5341 $as_echo_n "(cached) " >&6 5029 $as_echo_n "(cached) " >&6
5342else 5030else
5343 if test -n "$RANLIB"; then 5031 if test -n "$RANLIB"; then
@@ -5348,24 +5036,24 @@ for as_dir in $PATH
5348do 5036do
5349 IFS=$as_save_IFS 5037 IFS=$as_save_IFS
5350 test -z "$as_dir" && as_dir=. 5038 test -z "$as_dir" && as_dir=.
5351 for ac_exec_ext in '' $ac_executable_extensions; do 5039 for ac_exec_ext in '' $ac_executable_extensions; do
5352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5353 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5041 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5354 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5355 break 2 5043 break 2
5356 fi 5044 fi
5357done 5045done
5358done 5046 done
5359IFS=$as_save_IFS 5047IFS=$as_save_IFS
5360 5048
5361fi 5049fi
5362fi 5050fi
5363RANLIB=$ac_cv_prog_RANLIB 5051RANLIB=$ac_cv_prog_RANLIB
5364if test -n "$RANLIB"; then 5052if test -n "$RANLIB"; then
5365 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5366$as_echo "$RANLIB" >&6; } 5054$as_echo "$RANLIB" >&6; }
5367else 5055else
5368 { $as_echo "$as_me:$LINENO: result: no" >&5 5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369$as_echo "no" >&6; } 5057$as_echo "no" >&6; }
5370fi 5058fi
5371 5059
@@ -5375,9 +5063,9 @@ if test -z "$ac_cv_prog_RANLIB"; then
5375 ac_ct_RANLIB=$RANLIB 5063 ac_ct_RANLIB=$RANLIB
5376 # Extract the first word of "ranlib", so it can be a program name with args. 5064 # Extract the first word of "ranlib", so it can be a program name with args.
5377set dummy ranlib; ac_word=$2 5065set dummy ranlib; ac_word=$2
5378{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5379$as_echo_n "checking for $ac_word... " >&6; } 5067$as_echo_n "checking for $ac_word... " >&6; }
5380if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5068if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5381 $as_echo_n "(cached) " >&6 5069 $as_echo_n "(cached) " >&6
5382else 5070else
5383 if test -n "$ac_ct_RANLIB"; then 5071 if test -n "$ac_ct_RANLIB"; then
@@ -5388,24 +5076,24 @@ for as_dir in $PATH
5388do 5076do
5389 IFS=$as_save_IFS 5077 IFS=$as_save_IFS
5390 test -z "$as_dir" && as_dir=. 5078 test -z "$as_dir" && as_dir=.
5391 for ac_exec_ext in '' $ac_executable_extensions; do 5079 for ac_exec_ext in '' $ac_executable_extensions; do
5392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5393 ac_cv_prog_ac_ct_RANLIB="ranlib" 5081 ac_cv_prog_ac_ct_RANLIB="ranlib"
5394 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 break 2 5083 break 2
5396 fi 5084 fi
5397done 5085done
5398done 5086 done
5399IFS=$as_save_IFS 5087IFS=$as_save_IFS
5400 5088
5401fi 5089fi
5402fi 5090fi
5403ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5091ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5404if test -n "$ac_ct_RANLIB"; then 5092if test -n "$ac_ct_RANLIB"; then
5405 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5406$as_echo "$ac_ct_RANLIB" >&6; } 5094$as_echo "$ac_ct_RANLIB" >&6; }
5407else 5095else
5408 { $as_echo "$as_me:$LINENO: result: no" >&5 5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409$as_echo "no" >&6; } 5097$as_echo "no" >&6; }
5410fi 5098fi
5411 5099
@@ -5414,12 +5102,8 @@ fi
5414 else 5102 else
5415 case $cross_compiling:$ac_tool_warned in 5103 case $cross_compiling:$ac_tool_warned in
5416yes:) 5104yes:)
5417{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5105{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5418whose name does not start with the host triplet. If you think this 5106$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5419configuration is useful to you, please write to autoconf@gnu.org." >&5
5420$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5421whose name does not start with the host triplet. If you think this
5422configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5423ac_tool_warned=yes ;; 5107ac_tool_warned=yes ;;
5424esac 5108esac
5425 RANLIB=$ac_ct_RANLIB 5109 RANLIB=$ac_ct_RANLIB
@@ -5431,9 +5115,9 @@ fi
5431fi 5115fi
5432# Extract the first word of "install-info", so it can be a program name with args. 5116# Extract the first word of "install-info", so it can be a program name with args.
5433set dummy install-info; ac_word=$2 5117set dummy install-info; ac_word=$2
5434{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5435$as_echo_n "checking for $ac_word... " >&6; } 5119$as_echo_n "checking for $ac_word... " >&6; }
5436if test "${ac_cv_path_INSTALL_INFO+set}" = set; then 5120if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5437 $as_echo_n "(cached) " >&6 5121 $as_echo_n "(cached) " >&6
5438else 5122else
5439 case $INSTALL_INFO in 5123 case $INSTALL_INFO in
@@ -5446,14 +5130,14 @@ for as_dir in $PATH
5446do 5130do
5447 IFS=$as_save_IFS 5131 IFS=$as_save_IFS
5448 test -z "$as_dir" && as_dir=. 5132 test -z "$as_dir" && as_dir=.
5449 for ac_exec_ext in '' $ac_executable_extensions; do 5133 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5451 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" 5135 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5452 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5453 break 2 5137 break 2
5454 fi 5138 fi
5455done 5139done
5456done 5140 done
5457IFS=$as_save_IFS 5141IFS=$as_save_IFS
5458 5142
5459 ;; 5143 ;;
@@ -5461,19 +5145,19 @@ esac
5461fi 5145fi
5462INSTALL_INFO=$ac_cv_path_INSTALL_INFO 5146INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5463if test -n "$INSTALL_INFO"; then 5147if test -n "$INSTALL_INFO"; then
5464 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5465$as_echo "$INSTALL_INFO" >&6; } 5149$as_echo "$INSTALL_INFO" >&6; }
5466else 5150else
5467 { $as_echo "$as_me:$LINENO: result: no" >&5 5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468$as_echo "no" >&6; } 5152$as_echo "no" >&6; }
5469fi 5153fi
5470 5154
5471 5155
5472# Extract the first word of "install-info", so it can be a program name with args. 5156# Extract the first word of "install-info", so it can be a program name with args.
5473set dummy install-info; ac_word=$2 5157set dummy install-info; ac_word=$2
5474{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5475$as_echo_n "checking for $ac_word... " >&6; } 5159$as_echo_n "checking for $ac_word... " >&6; }
5476if test "${ac_cv_path_INSTALL_INFO+set}" = set; then 5160if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5477 $as_echo_n "(cached) " >&6 5161 $as_echo_n "(cached) " >&6
5478else 5162else
5479 case $INSTALL_INFO in 5163 case $INSTALL_INFO in
@@ -5486,14 +5170,14 @@ for as_dir in /usr/sbin
5486do 5170do
5487 IFS=$as_save_IFS 5171 IFS=$as_save_IFS
5488 test -z "$as_dir" && as_dir=. 5172 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do 5173 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5491 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" 5175 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5492 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5493 break 2 5177 break 2
5494 fi 5178 fi
5495done 5179done
5496done 5180 done
5497IFS=$as_save_IFS 5181IFS=$as_save_IFS
5498 5182
5499 ;; 5183 ;;
@@ -5501,19 +5185,19 @@ esac
5501fi 5185fi
5502INSTALL_INFO=$ac_cv_path_INSTALL_INFO 5186INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5503if test -n "$INSTALL_INFO"; then 5187if test -n "$INSTALL_INFO"; then
5504 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5505$as_echo "$INSTALL_INFO" >&6; } 5189$as_echo "$INSTALL_INFO" >&6; }
5506else 5190else
5507 { $as_echo "$as_me:$LINENO: result: no" >&5 5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508$as_echo "no" >&6; } 5192$as_echo "no" >&6; }
5509fi 5193fi
5510 5194
5511 5195
5512# Extract the first word of "install-info", so it can be a program name with args. 5196# Extract the first word of "install-info", so it can be a program name with args.
5513set dummy install-info; ac_word=$2 5197set dummy install-info; ac_word=$2
5514{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5515$as_echo_n "checking for $ac_word... " >&6; } 5199$as_echo_n "checking for $ac_word... " >&6; }
5516if test "${ac_cv_path_INSTALL_INFO+set}" = set; then 5200if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5517 $as_echo_n "(cached) " >&6 5201 $as_echo_n "(cached) " >&6
5518else 5202else
5519 case $INSTALL_INFO in 5203 case $INSTALL_INFO in
@@ -5526,14 +5210,14 @@ for as_dir in /sbin
5526do 5210do
5527 IFS=$as_save_IFS 5211 IFS=$as_save_IFS
5528 test -z "$as_dir" && as_dir=. 5212 test -z "$as_dir" && as_dir=.
5529 for ac_exec_ext in '' $ac_executable_extensions; do 5213 for ac_exec_ext in '' $ac_executable_extensions; do
5530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5531 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" 5215 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5532 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5533 break 2 5217 break 2
5534 fi 5218 fi
5535done 5219done
5536done 5220 done
5537IFS=$as_save_IFS 5221IFS=$as_save_IFS
5538 5222
5539 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":" 5223 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
@@ -5542,19 +5226,19 @@ esac
5542fi 5226fi
5543INSTALL_INFO=$ac_cv_path_INSTALL_INFO 5227INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5544if test -n "$INSTALL_INFO"; then 5228if test -n "$INSTALL_INFO"; then
5545 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5546$as_echo "$INSTALL_INFO" >&6; } 5230$as_echo "$INSTALL_INFO" >&6; }
5547else 5231else
5548 { $as_echo "$as_me:$LINENO: result: no" >&5 5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549$as_echo "no" >&6; } 5233$as_echo "no" >&6; }
5550fi 5234fi
5551 5235
5552 5236
5553# Extract the first word of "gzip", so it can be a program name with args. 5237# Extract the first word of "gzip", so it can be a program name with args.
5554set dummy gzip; ac_word=$2 5238set dummy gzip; ac_word=$2
5555{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5556$as_echo_n "checking for $ac_word... " >&6; } 5240$as_echo_n "checking for $ac_word... " >&6; }
5557if test "${ac_cv_path_GZIP_PROG+set}" = set; then 5241if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5558 $as_echo_n "(cached) " >&6 5242 $as_echo_n "(cached) " >&6
5559else 5243else
5560 case $GZIP_PROG in 5244 case $GZIP_PROG in
@@ -5567,14 +5251,14 @@ for as_dir in $PATH
5567do 5251do
5568 IFS=$as_save_IFS 5252 IFS=$as_save_IFS
5569 test -z "$as_dir" && as_dir=. 5253 test -z "$as_dir" && as_dir=.
5570 for ac_exec_ext in '' $ac_executable_extensions; do 5254 for ac_exec_ext in '' $ac_executable_extensions; do
5571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5572 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext" 5256 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5573 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5574 break 2 5258 break 2
5575 fi 5259 fi
5576done 5260done
5577done 5261 done
5578IFS=$as_save_IFS 5262IFS=$as_save_IFS
5579 5263
5580 ;; 5264 ;;
@@ -5582,10 +5266,10 @@ esac
5582fi 5266fi
5583GZIP_PROG=$ac_cv_path_GZIP_PROG 5267GZIP_PROG=$ac_cv_path_GZIP_PROG
5584if test -n "$GZIP_PROG"; then 5268if test -n "$GZIP_PROG"; then
5585 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5 5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5586$as_echo "$GZIP_PROG" >&6; } 5270$as_echo "$GZIP_PROG" >&6; }
5587else 5271else
5588 { $as_echo "$as_me:$LINENO: result: no" >&5 5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589$as_echo "no" >&6; } 5273$as_echo "no" >&6; }
5590fi 5274fi
5591 5275
@@ -5595,9 +5279,9 @@ fi
5595## Need makeinfo >= 4.6 (?) to build the manuals. 5279## Need makeinfo >= 4.6 (?) to build the manuals.
5596# Extract the first word of "makeinfo", so it can be a program name with args. 5280# Extract the first word of "makeinfo", so it can be a program name with args.
5597set dummy makeinfo; ac_word=$2 5281set dummy makeinfo; ac_word=$2
5598{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5599$as_echo_n "checking for $ac_word... " >&6; } 5283$as_echo_n "checking for $ac_word... " >&6; }
5600if test "${ac_cv_path_MAKEINFO+set}" = set; then 5284if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5601 $as_echo_n "(cached) " >&6 5285 $as_echo_n "(cached) " >&6
5602else 5286else
5603 case $MAKEINFO in 5287 case $MAKEINFO in
@@ -5610,14 +5294,14 @@ for as_dir in $PATH
5610do 5294do
5611 IFS=$as_save_IFS 5295 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=. 5296 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do 5297 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5615 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext" 5299 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5616 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 break 2 5301 break 2
5618 fi 5302 fi
5619done 5303done
5620done 5304 done
5621IFS=$as_save_IFS 5305IFS=$as_save_IFS
5622 5306
5623 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no" 5307 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
@@ -5626,10 +5310,10 @@ esac
5626fi 5310fi
5627MAKEINFO=$ac_cv_path_MAKEINFO 5311MAKEINFO=$ac_cv_path_MAKEINFO
5628if test -n "$MAKEINFO"; then 5312if test -n "$MAKEINFO"; then
5629 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5 5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5630$as_echo "$MAKEINFO" >&6; } 5314$as_echo "$MAKEINFO" >&6; }
5631else 5315else
5632 { $as_echo "$as_me:$LINENO: result: no" >&5 5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633$as_echo "no" >&6; } 5317$as_echo "no" >&6; }
5634fi 5318fi
5635 5319
@@ -5652,15 +5336,10 @@ if test "$MAKEINFO" = "no"; then
5652 if test "x${with_makeinfo}" = "xno"; then 5336 if test "x${with_makeinfo}" = "xno"; then
5653 MAKEINFO=off 5337 MAKEINFO=off
5654 elif test ! -e $srcdir/info/emacs; then 5338 elif test ! -e $srcdir/info/emacs; then
5655 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your 5339 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
5656source tree does not seem to have pre-built manuals in the \`info' directory. 5340source tree does not seem to have pre-built manuals in the \`info' directory.
5657Either install a suitable version of makeinfo, or re-run configure 5341Either install a suitable version of makeinfo, or re-run configure
5658with the \`--without-makeinfo' option to build without the manuals. " >&5 5342with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5659$as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5660source tree does not seem to have pre-built manuals in the \`info' directory.
5661Either install a suitable version of makeinfo, or re-run configure
5662with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5663 { (exit 1); exit 1; }; }
5664 fi 5343 fi
5665fi 5344fi
5666 5345
@@ -5683,50 +5362,26 @@ else
5683 LDFLAGS="$LDFLAGS -znocombreloc" 5362 LDFLAGS="$LDFLAGS -znocombreloc"
5684fi 5363fi
5685 5364
5686{ $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5 5365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5687$as_echo_n "checking for -znocombreloc... " >&6; } 5366$as_echo_n "checking for -znocombreloc... " >&6; }
5688cat >conftest.$ac_ext <<_ACEOF 5367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368/* end confdefs.h. */
5689main(){return 0;} 5369main(){return 0;}
5690_ACEOF 5370_ACEOF
5691rm -f conftest.$ac_objext conftest$ac_exeext 5371if ac_fn_c_try_link "$LINENO"; then :
5692if { (ac_try="$ac_link" 5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5693case "(($ac_try" in
5694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695 *) ac_try_echo=$ac_try;;
5696esac
5697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5698$as_echo "$ac_try_echo") >&5
5699 (eval "$ac_link") 2>conftest.er1
5700 ac_status=$?
5701 grep -v '^ *+' conftest.er1 >conftest.err
5702 rm -f conftest.er1
5703 cat conftest.err >&5
5704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); } && {
5706 test -z "$ac_c_werror_flag" ||
5707 test ! -s conftest.err
5708 } && test -s conftest$ac_exeext && {
5709 test "$cross_compiling" = yes ||
5710 $as_test_x conftest$ac_exeext
5711 }; then
5712 { $as_echo "$as_me:$LINENO: result: yes" >&5
5713$as_echo "yes" >&6; } 5373$as_echo "yes" >&6; }
5714else 5374else
5715 $as_echo "$as_me: failed program was:" >&5 5375 LDFLAGS=$late_LDFLAGS
5716sed 's/^/| /' conftest.$ac_ext >&5 5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717
5718 LDFLAGS=$late_LDFLAGS
5719 { $as_echo "$as_me:$LINENO: result: no" >&5
5720$as_echo "no" >&6; } 5377$as_echo "no" >&6; }
5721fi 5378fi
5722 5379rm -f core conftest.err conftest.$ac_objext \
5723rm -rf conftest.dSYM 5380 conftest$ac_exeext conftest.$ac_ext
5724rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5725 conftest$ac_exeext conftest.$ac_ext
5726 5381
5727#### Extract some information from the operating system and machine files. 5382#### Extract some information from the operating system and machine files.
5728 5383
5729{ $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out 5384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the machine- and system-dependent files to find out
5730 - which libraries the lib-src programs will want, and 5385 - which libraries the lib-src programs will want, and
5731 - whether the GNU malloc routines are usable..." >&5 5386 - whether the GNU malloc routines are usable..." >&5
5732$as_echo "$as_me: checking the machine- and system-dependent files to find out 5387$as_echo "$as_me: checking the machine- and system-dependent files to find out
@@ -5867,15 +5522,15 @@ fi
5867 5522
5868 5523
5869# Check whether --enable-largefile was given. 5524# Check whether --enable-largefile was given.
5870if test "${enable_largefile+set}" = set; then 5525if test "${enable_largefile+set}" = set; then :
5871 enableval=$enable_largefile; 5526 enableval=$enable_largefile;
5872fi 5527fi
5873 5528
5874if test "$enable_largefile" != no; then 5529if test "$enable_largefile" != no; then
5875 5530
5876 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5877$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 5532$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5878if test "${ac_cv_sys_largefile_CC+set}" = set; then 5533if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5879 $as_echo_n "(cached) " >&6 5534 $as_echo_n "(cached) " >&6
5880else 5535else
5881 ac_cv_sys_largefile_CC=no 5536 ac_cv_sys_largefile_CC=no
@@ -5884,11 +5539,7 @@ else
5884 while :; do 5539 while :; do
5885 # IRIX 6.2 and later do not support large files by default, 5540 # IRIX 6.2 and later do not support large files by default,
5886 # so use the C compiler's -n32 option if that helps. 5541 # so use the C compiler's -n32 option if that helps.
5887 cat >conftest.$ac_ext <<_ACEOF 5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888/* confdefs.h. */
5889_ACEOF
5890cat confdefs.h >>conftest.$ac_ext
5891cat >>conftest.$ac_ext <<_ACEOF
5892/* end confdefs.h. */ 5543/* end confdefs.h. */
5893#include <sys/types.h> 5544#include <sys/types.h>
5894 /* Check that off_t can represent 2**63 - 1 correctly. 5545 /* Check that off_t can represent 2**63 - 1 correctly.
@@ -5907,60 +5558,14 @@ main ()
5907 return 0; 5558 return 0;
5908} 5559}
5909_ACEOF 5560_ACEOF
5910 rm -f conftest.$ac_objext 5561 if ac_fn_c_try_compile "$LINENO"; then :
5911if { (ac_try="$ac_compile"
5912case "(($ac_try" in
5913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914 *) ac_try_echo=$ac_try;;
5915esac
5916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5917$as_echo "$ac_try_echo") >&5
5918 (eval "$ac_compile") 2>conftest.er1
5919 ac_status=$?
5920 grep -v '^ *+' conftest.er1 >conftest.err
5921 rm -f conftest.er1
5922 cat conftest.err >&5
5923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } && {
5925 test -z "$ac_c_werror_flag" ||
5926 test ! -s conftest.err
5927 } && test -s conftest.$ac_objext; then
5928 break 5562 break
5929else
5930 $as_echo "$as_me: failed program was:" >&5
5931sed 's/^/| /' conftest.$ac_ext >&5
5932
5933
5934fi 5563fi
5935
5936rm -f core conftest.err conftest.$ac_objext 5564rm -f core conftest.err conftest.$ac_objext
5937 CC="$CC -n32" 5565 CC="$CC -n32"
5938 rm -f conftest.$ac_objext 5566 if ac_fn_c_try_compile "$LINENO"; then :
5939if { (ac_try="$ac_compile"
5940case "(($ac_try" in
5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942 *) ac_try_echo=$ac_try;;
5943esac
5944eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5945$as_echo "$ac_try_echo") >&5
5946 (eval "$ac_compile") 2>conftest.er1
5947 ac_status=$?
5948 grep -v '^ *+' conftest.er1 >conftest.err
5949 rm -f conftest.er1
5950 cat conftest.err >&5
5951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } && {
5953 test -z "$ac_c_werror_flag" ||
5954 test ! -s conftest.err
5955 } && test -s conftest.$ac_objext; then
5956 ac_cv_sys_largefile_CC=' -n32'; break 5567 ac_cv_sys_largefile_CC=' -n32'; break
5957else
5958 $as_echo "$as_me: failed program was:" >&5
5959sed 's/^/| /' conftest.$ac_ext >&5
5960
5961
5962fi 5568fi
5963
5964rm -f core conftest.err conftest.$ac_objext 5569rm -f core conftest.err conftest.$ac_objext
5965 break 5570 break
5966 done 5571 done
@@ -5968,23 +5573,19 @@ rm -f core conftest.err conftest.$ac_objext
5968 rm -f conftest.$ac_ext 5573 rm -f conftest.$ac_ext
5969 fi 5574 fi
5970fi 5575fi
5971{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 5576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5972$as_echo "$ac_cv_sys_largefile_CC" >&6; } 5577$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5973 if test "$ac_cv_sys_largefile_CC" != no; then 5578 if test "$ac_cv_sys_largefile_CC" != no; then
5974 CC=$CC$ac_cv_sys_largefile_CC 5579 CC=$CC$ac_cv_sys_largefile_CC
5975 fi 5580 fi
5976 5581
5977 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5978$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 5583$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5979if test "${ac_cv_sys_file_offset_bits+set}" = set; then 5584if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5980 $as_echo_n "(cached) " >&6 5585 $as_echo_n "(cached) " >&6
5981else 5586else
5982 while :; do 5587 while :; do
5983 cat >conftest.$ac_ext <<_ACEOF 5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984/* confdefs.h. */
5985_ACEOF
5986cat confdefs.h >>conftest.$ac_ext
5987cat >>conftest.$ac_ext <<_ACEOF
5988/* end confdefs.h. */ 5589/* end confdefs.h. */
5989#include <sys/types.h> 5590#include <sys/types.h>
5990 /* Check that off_t can represent 2**63 - 1 correctly. 5591 /* Check that off_t can represent 2**63 - 1 correctly.
@@ -6003,38 +5604,11 @@ main ()
6003 return 0; 5604 return 0;
6004} 5605}
6005_ACEOF 5606_ACEOF
6006rm -f conftest.$ac_objext 5607if ac_fn_c_try_compile "$LINENO"; then :
6007if { (ac_try="$ac_compile"
6008case "(($ac_try" in
6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6011esac
6012eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6013$as_echo "$ac_try_echo") >&5
6014 (eval "$ac_compile") 2>conftest.er1
6015 ac_status=$?
6016 grep -v '^ *+' conftest.er1 >conftest.err
6017 rm -f conftest.er1
6018 cat conftest.err >&5
6019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } && {
6021 test -z "$ac_c_werror_flag" ||
6022 test ! -s conftest.err
6023 } && test -s conftest.$ac_objext; then
6024 ac_cv_sys_file_offset_bits=no; break 5608 ac_cv_sys_file_offset_bits=no; break
6025else
6026 $as_echo "$as_me: failed program was:" >&5
6027sed 's/^/| /' conftest.$ac_ext >&5
6028
6029
6030fi 5609fi
6031
6032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033 cat >conftest.$ac_ext <<_ACEOF 5611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034/* confdefs.h. */
6035_ACEOF
6036cat confdefs.h >>conftest.$ac_ext
6037cat >>conftest.$ac_ext <<_ACEOF
6038/* end confdefs.h. */ 5612/* end confdefs.h. */
6039#define _FILE_OFFSET_BITS 64 5613#define _FILE_OFFSET_BITS 64
6040#include <sys/types.h> 5614#include <sys/types.h>
@@ -6054,38 +5628,15 @@ main ()
6054 return 0; 5628 return 0;
6055} 5629}
6056_ACEOF 5630_ACEOF
6057rm -f conftest.$ac_objext 5631if ac_fn_c_try_compile "$LINENO"; then :
6058if { (ac_try="$ac_compile"
6059case "(($ac_try" in
6060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061 *) ac_try_echo=$ac_try;;
6062esac
6063eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6064$as_echo "$ac_try_echo") >&5
6065 (eval "$ac_compile") 2>conftest.er1
6066 ac_status=$?
6067 grep -v '^ *+' conftest.er1 >conftest.err
6068 rm -f conftest.er1
6069 cat conftest.err >&5
6070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } && {
6072 test -z "$ac_c_werror_flag" ||
6073 test ! -s conftest.err
6074 } && test -s conftest.$ac_objext; then
6075 ac_cv_sys_file_offset_bits=64; break 5632 ac_cv_sys_file_offset_bits=64; break
6076else
6077 $as_echo "$as_me: failed program was:" >&5
6078sed 's/^/| /' conftest.$ac_ext >&5
6079
6080
6081fi 5633fi
6082
6083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6084 ac_cv_sys_file_offset_bits=unknown 5635 ac_cv_sys_file_offset_bits=unknown
6085 break 5636 break
6086done 5637done
6087fi 5638fi
6088{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 5639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6089$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 5640$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6090case $ac_cv_sys_file_offset_bits in #( 5641case $ac_cv_sys_file_offset_bits in #(
6091 no | unknown) ;; 5642 no | unknown) ;;
@@ -6097,17 +5648,13 @@ _ACEOF
6097esac 5648esac
6098rm -rf conftest* 5649rm -rf conftest*
6099 if test $ac_cv_sys_file_offset_bits = unknown; then 5650 if test $ac_cv_sys_file_offset_bits = unknown; then
6100 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6101$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 5652$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6102if test "${ac_cv_sys_large_files+set}" = set; then 5653if test "${ac_cv_sys_large_files+set}" = set; then :
6103 $as_echo_n "(cached) " >&6 5654 $as_echo_n "(cached) " >&6
6104else 5655else
6105 while :; do 5656 while :; do
6106 cat >conftest.$ac_ext <<_ACEOF 5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6107/* confdefs.h. */
6108_ACEOF
6109cat confdefs.h >>conftest.$ac_ext
6110cat >>conftest.$ac_ext <<_ACEOF
6111/* end confdefs.h. */ 5658/* end confdefs.h. */
6112#include <sys/types.h> 5659#include <sys/types.h>
6113 /* Check that off_t can represent 2**63 - 1 correctly. 5660 /* Check that off_t can represent 2**63 - 1 correctly.
@@ -6126,38 +5673,11 @@ main ()
6126 return 0; 5673 return 0;
6127} 5674}
6128_ACEOF 5675_ACEOF
6129rm -f conftest.$ac_objext 5676if ac_fn_c_try_compile "$LINENO"; then :
6130if { (ac_try="$ac_compile"
6131case "(($ac_try" in
6132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133 *) ac_try_echo=$ac_try;;
6134esac
6135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6136$as_echo "$ac_try_echo") >&5
6137 (eval "$ac_compile") 2>conftest.er1
6138 ac_status=$?
6139 grep -v '^ *+' conftest.er1 >conftest.err
6140 rm -f conftest.er1
6141 cat conftest.err >&5
6142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } && {
6144 test -z "$ac_c_werror_flag" ||
6145 test ! -s conftest.err
6146 } && test -s conftest.$ac_objext; then
6147 ac_cv_sys_large_files=no; break 5677 ac_cv_sys_large_files=no; break
6148else
6149 $as_echo "$as_me: failed program was:" >&5
6150sed 's/^/| /' conftest.$ac_ext >&5
6151
6152
6153fi 5678fi
6154
6155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6156 cat >conftest.$ac_ext <<_ACEOF 5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6157/* confdefs.h. */
6158_ACEOF
6159cat confdefs.h >>conftest.$ac_ext
6160cat >>conftest.$ac_ext <<_ACEOF
6161/* end confdefs.h. */ 5681/* end confdefs.h. */
6162#define _LARGE_FILES 1 5682#define _LARGE_FILES 1
6163#include <sys/types.h> 5683#include <sys/types.h>
@@ -6177,38 +5697,15 @@ main ()
6177 return 0; 5697 return 0;
6178} 5698}
6179_ACEOF 5699_ACEOF
6180rm -f conftest.$ac_objext 5700if ac_fn_c_try_compile "$LINENO"; then :
6181if { (ac_try="$ac_compile"
6182case "(($ac_try" in
6183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6184 *) ac_try_echo=$ac_try;;
6185esac
6186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6187$as_echo "$ac_try_echo") >&5
6188 (eval "$ac_compile") 2>conftest.er1
6189 ac_status=$?
6190 grep -v '^ *+' conftest.er1 >conftest.err
6191 rm -f conftest.er1
6192 cat conftest.err >&5
6193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); } && {
6195 test -z "$ac_c_werror_flag" ||
6196 test ! -s conftest.err
6197 } && test -s conftest.$ac_objext; then
6198 ac_cv_sys_large_files=1; break 5701 ac_cv_sys_large_files=1; break
6199else
6200 $as_echo "$as_me: failed program was:" >&5
6201sed 's/^/| /' conftest.$ac_ext >&5
6202
6203
6204fi 5702fi
6205
6206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207 ac_cv_sys_large_files=unknown 5704 ac_cv_sys_large_files=unknown
6208 break 5705 break
6209done 5706done
6210fi 5707fi
6211{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 5708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6212$as_echo "$ac_cv_sys_large_files" >&6; } 5709$as_echo "$ac_cv_sys_large_files" >&6; }
6213case $ac_cv_sys_large_files in #( 5710case $ac_cv_sys_large_files in #(
6214 no | unknown) ;; 5711 no | unknown) ;;
@@ -6232,9 +5729,7 @@ case "${canonical}" in
6232 x86_64-*-linux-gnu* | s390x-*-linux-gnu* ) 5729 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6233 if test -e /usr/lib64/crtn.o; then 5730 if test -e /usr/lib64/crtn.o; then
6234 5731
6235cat >>confdefs.h <<\_ACEOF 5732$as_echo "#define HAVE_LIB64_DIR 1" >>confdefs.h
6236#define HAVE_LIB64_DIR 1
6237_ACEOF
6238 5733
6239fi 5734fi
6240esac 5735esac
@@ -6244,145 +5739,12 @@ esac
6244 5739
6245if test "${with_sound}" != "no"; then 5740if test "${with_sound}" != "no"; then
6246 # Sound support for GNU/Linux and the free BSDs. 5741 # Sound support for GNU/Linux and the free BSDs.
6247 5742 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6248 5743do :
6249 5744 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6250for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h 5745ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6251do 5746eval as_val=\$$as_ac_Header
6252as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5747 if test "x$as_val" = x""yes; then :
6253if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6254 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6255$as_echo_n "checking for $ac_header... " >&6; }
6256if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6257 $as_echo_n "(cached) " >&6
6258fi
6259ac_res=`eval 'as_val=${'$as_ac_Header'}
6260 $as_echo "$as_val"'`
6261 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6262$as_echo "$ac_res" >&6; }
6263else
6264 # Is the header compilable?
6265{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6266$as_echo_n "checking $ac_header usability... " >&6; }
6267cat >conftest.$ac_ext <<_ACEOF
6268/* confdefs.h. */
6269_ACEOF
6270cat confdefs.h >>conftest.$ac_ext
6271cat >>conftest.$ac_ext <<_ACEOF
6272/* end confdefs.h. */
6273$ac_includes_default
6274#include <$ac_header>
6275_ACEOF
6276rm -f conftest.$ac_objext
6277if { (ac_try="$ac_compile"
6278case "(($ac_try" in
6279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280 *) ac_try_echo=$ac_try;;
6281esac
6282eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6283$as_echo "$ac_try_echo") >&5
6284 (eval "$ac_compile") 2>conftest.er1
6285 ac_status=$?
6286 grep -v '^ *+' conftest.er1 >conftest.err
6287 rm -f conftest.er1
6288 cat conftest.err >&5
6289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } && {
6291 test -z "$ac_c_werror_flag" ||
6292 test ! -s conftest.err
6293 } && test -s conftest.$ac_objext; then
6294 ac_header_compiler=yes
6295else
6296 $as_echo "$as_me: failed program was:" >&5
6297sed 's/^/| /' conftest.$ac_ext >&5
6298
6299 ac_header_compiler=no
6300fi
6301
6302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6303{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6304$as_echo "$ac_header_compiler" >&6; }
6305
6306# Is the header present?
6307{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6308$as_echo_n "checking $ac_header presence... " >&6; }
6309cat >conftest.$ac_ext <<_ACEOF
6310/* confdefs.h. */
6311_ACEOF
6312cat confdefs.h >>conftest.$ac_ext
6313cat >>conftest.$ac_ext <<_ACEOF
6314/* end confdefs.h. */
6315#include <$ac_header>
6316_ACEOF
6317if { (ac_try="$ac_cpp conftest.$ac_ext"
6318case "(($ac_try" in
6319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320 *) ac_try_echo=$ac_try;;
6321esac
6322eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6323$as_echo "$ac_try_echo") >&5
6324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6325 ac_status=$?
6326 grep -v '^ *+' conftest.er1 >conftest.err
6327 rm -f conftest.er1
6328 cat conftest.err >&5
6329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); } >/dev/null && {
6331 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6332 test ! -s conftest.err
6333 }; then
6334 ac_header_preproc=yes
6335else
6336 $as_echo "$as_me: failed program was:" >&5
6337sed 's/^/| /' conftest.$ac_ext >&5
6338
6339 ac_header_preproc=no
6340fi
6341
6342rm -f conftest.err conftest.$ac_ext
6343{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6344$as_echo "$ac_header_preproc" >&6; }
6345
6346# So? What about this header?
6347case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6348 yes:no: )
6349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6350$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6352$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6353 ac_header_preproc=yes
6354 ;;
6355 no:yes:* )
6356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6357$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6359$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6361$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6363$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6365$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6367$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6368
6369 ;;
6370esac
6371{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6372$as_echo_n "checking for $ac_header... " >&6; }
6373if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6374 $as_echo_n "(cached) " >&6
6375else
6376 eval "$as_ac_Header=\$ac_header_preproc"
6377fi
6378ac_res=`eval 'as_val=${'$as_ac_Header'}
6379 $as_echo "$as_val"'`
6380 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6381$as_echo "$ac_res" >&6; }
6382
6383fi
6384if test `eval 'as_val=${'$as_ac_Header'}
6385 $as_echo "$as_val"'` = yes; then
6386 cat >>confdefs.h <<_ACEOF 5748 cat >>confdefs.h <<_ACEOF
6387#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5749#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6388_ACEOF 5750_ACEOF
@@ -6392,18 +5754,14 @@ fi
6392done 5754done
6393 5755
6394 # Emulation library used on NetBSD. 5756 # Emulation library used on NetBSD.
6395 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
6396$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; } 5758$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6397if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then 5759if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
6398 $as_echo_n "(cached) " >&6 5760 $as_echo_n "(cached) " >&6
6399else 5761else
6400 ac_check_lib_save_LIBS=$LIBS 5762 ac_check_lib_save_LIBS=$LIBS
6401LIBS="-lossaudio $LIBS" 5763LIBS="-lossaudio $LIBS"
6402cat >conftest.$ac_ext <<_ACEOF 5764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403/* confdefs.h. */
6404_ACEOF
6405cat confdefs.h >>conftest.$ac_ext
6406cat >>conftest.$ac_ext <<_ACEOF
6407/* end confdefs.h. */ 5765/* end confdefs.h. */
6408 5766
6409/* Override any GCC internal prototype to avoid an error. 5767/* Override any GCC internal prototype to avoid an error.
@@ -6421,43 +5779,18 @@ return _oss_ioctl ();
6421 return 0; 5779 return 0;
6422} 5780}
6423_ACEOF 5781_ACEOF
6424rm -f conftest.$ac_objext conftest$ac_exeext 5782if ac_fn_c_try_link "$LINENO"; then :
6425if { (ac_try="$ac_link"
6426case "(($ac_try" in
6427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6428 *) ac_try_echo=$ac_try;;
6429esac
6430eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6431$as_echo "$ac_try_echo") >&5
6432 (eval "$ac_link") 2>conftest.er1
6433 ac_status=$?
6434 grep -v '^ *+' conftest.er1 >conftest.err
6435 rm -f conftest.er1
6436 cat conftest.err >&5
6437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); } && {
6439 test -z "$ac_c_werror_flag" ||
6440 test ! -s conftest.err
6441 } && test -s conftest$ac_exeext && {
6442 test "$cross_compiling" = yes ||
6443 $as_test_x conftest$ac_exeext
6444 }; then
6445 ac_cv_lib_ossaudio__oss_ioctl=yes 5783 ac_cv_lib_ossaudio__oss_ioctl=yes
6446else 5784else
6447 $as_echo "$as_me: failed program was:" >&5 5785 ac_cv_lib_ossaudio__oss_ioctl=no
6448sed 's/^/| /' conftest.$ac_ext >&5
6449
6450 ac_cv_lib_ossaudio__oss_ioctl=no
6451fi 5786fi
6452 5787rm -f core conftest.err conftest.$ac_objext \
6453rm -rf conftest.dSYM 5788 conftest$ac_exeext conftest.$ac_ext
6454rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6455 conftest$ac_exeext conftest.$ac_ext
6456LIBS=$ac_check_lib_save_LIBS 5789LIBS=$ac_check_lib_save_LIBS
6457fi 5790fi
6458{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 5791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6459$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; } 5792$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6460if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then 5793if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
6461 LIBSOUND=-lossaudio 5794 LIBSOUND=-lossaudio
6462else 5795else
6463 LIBSOUND= 5796 LIBSOUND=
@@ -6472,9 +5805,9 @@ fi
6472 5805
6473 # Extract the first word of "pkg-config", so it can be a program name with args. 5806 # Extract the first word of "pkg-config", so it can be a program name with args.
6474set dummy pkg-config; ac_word=$2 5807set dummy pkg-config; ac_word=$2
6475{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6476$as_echo_n "checking for $ac_word... " >&6; } 5809$as_echo_n "checking for $ac_word... " >&6; }
6477if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 5810if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6478 $as_echo_n "(cached) " >&6 5811 $as_echo_n "(cached) " >&6
6479else 5812else
6480 case $PKG_CONFIG in 5813 case $PKG_CONFIG in
@@ -6487,14 +5820,14 @@ for as_dir in $PATH
6487do 5820do
6488 IFS=$as_save_IFS 5821 IFS=$as_save_IFS
6489 test -z "$as_dir" && as_dir=. 5822 test -z "$as_dir" && as_dir=.
6490 for ac_exec_ext in '' $ac_executable_extensions; do 5823 for ac_exec_ext in '' $ac_executable_extensions; do
6491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6492 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5825 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6494 break 2 5827 break 2
6495 fi 5828 fi
6496done 5829done
6497done 5830 done
6498IFS=$as_save_IFS 5831IFS=$as_save_IFS
6499 5832
6500 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 5833 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -6503,10 +5836,10 @@ esac
6503fi 5836fi
6504PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5837PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6505if test -n "$PKG_CONFIG"; then 5838if test -n "$PKG_CONFIG"; then
6506 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6507$as_echo "$PKG_CONFIG" >&6; } 5840$as_echo "$PKG_CONFIG" >&6; }
6508else 5841else
6509 { $as_echo "$as_me:$LINENO: result: no" >&5 5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510$as_echo "no" >&6; } 5843$as_echo "no" >&6; }
6511fi 5844fi
6512 5845
@@ -6517,27 +5850,27 @@ fi
6517 else 5850 else
6518 PKG_CONFIG_MIN_VERSION=0.9.0 5851 PKG_CONFIG_MIN_VERSION=0.9.0
6519 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 5852 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6520 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5 5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6521$as_echo_n "checking for $ALSA_MODULES... " >&6; } 5854$as_echo_n "checking for $ALSA_MODULES... " >&6; }
6522 5855
6523 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then 5856 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6524 { $as_echo "$as_me:$LINENO: result: yes" >&5 5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6525$as_echo "yes" >&6; } 5858$as_echo "yes" >&6; }
6526 succeeded=yes 5859 succeeded=yes
6527 5860
6528 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5 5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6529$as_echo_n "checking ALSA_CFLAGS... " >&6; } 5862$as_echo_n "checking ALSA_CFLAGS... " >&6; }
6530 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'` 5863 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6531 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5 5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6532$as_echo "$ALSA_CFLAGS" >&6; } 5865$as_echo "$ALSA_CFLAGS" >&6; }
6533 5866
6534 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5 5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6535$as_echo_n "checking ALSA_LIBS... " >&6; } 5868$as_echo_n "checking ALSA_LIBS... " >&6; }
6536 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'` 5869 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6537 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5 5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6538$as_echo "$ALSA_LIBS" >&6; } 5871$as_echo "$ALSA_LIBS" >&6; }
6539 else 5872 else
6540 { $as_echo "$as_me:$LINENO: result: no" >&5 5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6541$as_echo "no" >&6; } 5874$as_echo "no" >&6; }
6542 ALSA_CFLAGS="" 5875 ALSA_CFLAGS=""
6543 ALSA_LIBS="" 5876 ALSA_LIBS=""
@@ -6566,11 +5899,7 @@ $as_echo "no" >&6; }
6566 SAVE_LDFLAGS="$LDFLAGS" 5899 SAVE_LDFLAGS="$LDFLAGS"
6567 CFLAGS="$ALSA_CFLAGS $CFLAGS" 5900 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6568 LDFLAGS="$ALSA_LIBS $LDFLAGS" 5901 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6569 cat >conftest.$ac_ext <<_ACEOF 5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6570/* confdefs.h. */
6571_ACEOF
6572cat confdefs.h >>conftest.$ac_ext
6573cat >>conftest.$ac_ext <<_ACEOF
6574/* end confdefs.h. */ 5903/* end confdefs.h. */
6575#include <asoundlib.h> 5904#include <asoundlib.h>
6576int 5905int
@@ -6581,39 +5910,14 @@ snd_lib_error_set_handler (0);
6581 return 0; 5910 return 0;
6582} 5911}
6583_ACEOF 5912_ACEOF
6584rm -f conftest.$ac_objext 5913if ac_fn_c_try_compile "$LINENO"; then :
6585if { (ac_try="$ac_compile"
6586case "(($ac_try" in
6587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588 *) ac_try_echo=$ac_try;;
6589esac
6590eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6591$as_echo "$ac_try_echo") >&5
6592 (eval "$ac_compile") 2>conftest.er1
6593 ac_status=$?
6594 grep -v '^ *+' conftest.er1 >conftest.err
6595 rm -f conftest.er1
6596 cat conftest.err >&5
6597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } && {
6599 test -z "$ac_c_werror_flag" ||
6600 test ! -s conftest.err
6601 } && test -s conftest.$ac_objext; then
6602 emacs_alsa_normal=yes 5914 emacs_alsa_normal=yes
6603else 5915else
6604 $as_echo "$as_me: failed program was:" >&5 5916 emacs_alsa_normal=no
6605sed 's/^/| /' conftest.$ac_ext >&5
6606
6607 emacs_alsa_normal=no
6608fi 5917fi
6609
6610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6611 if test "$emacs_alsa_normal" != yes; then 5919 if test "$emacs_alsa_normal" != yes; then
6612 cat >conftest.$ac_ext <<_ACEOF 5920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613/* confdefs.h. */
6614_ACEOF
6615cat confdefs.h >>conftest.$ac_ext
6616cat >>conftest.$ac_ext <<_ACEOF
6617/* end confdefs.h. */ 5921/* end confdefs.h. */
6618#include <alsa/asoundlib.h> 5922#include <alsa/asoundlib.h>
6619int 5923int
@@ -6624,37 +5928,14 @@ snd_lib_error_set_handler (0);
6624 return 0; 5928 return 0;
6625} 5929}
6626_ACEOF 5930_ACEOF
6627rm -f conftest.$ac_objext 5931if ac_fn_c_try_compile "$LINENO"; then :
6628if { (ac_try="$ac_compile"
6629case "(($ac_try" in
6630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6631 *) ac_try_echo=$ac_try;;
6632esac
6633eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6634$as_echo "$ac_try_echo") >&5
6635 (eval "$ac_compile") 2>conftest.er1
6636 ac_status=$?
6637 grep -v '^ *+' conftest.er1 >conftest.err
6638 rm -f conftest.er1
6639 cat conftest.err >&5
6640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); } && {
6642 test -z "$ac_c_werror_flag" ||
6643 test ! -s conftest.err
6644 } && test -s conftest.$ac_objext; then
6645 emacs_alsa_subdir=yes 5932 emacs_alsa_subdir=yes
6646else 5933else
6647 $as_echo "$as_me: failed program was:" >&5 5934 emacs_alsa_subdir=no
6648sed 's/^/| /' conftest.$ac_ext >&5
6649
6650 emacs_alsa_subdir=no
6651fi 5935fi
6652
6653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6654 if test "$emacs_alsa_subdir" != yes; then 5937 if test "$emacs_alsa_subdir" != yes; then
6655 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5 5938 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6656$as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6657 { (exit 1); exit 1; }; }
6658 fi 5939 fi
6659 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" 5940 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6660 fi 5941 fi
@@ -6664,179 +5945,22 @@ $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See co
6664 LIBSOUND="$LIBSOUND $ALSA_LIBS" 5945 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6665 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS" 5946 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6666 5947
6667cat >>confdefs.h <<\_ACEOF 5948$as_echo "#define HAVE_ALSA 1" >>confdefs.h
6668#define HAVE_ALSA 1
6669_ACEOF
6670 5949
6671 fi 5950 fi
6672 5951
6673fi 5952fi
6674 5953
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ 5954for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6701 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ 5955 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6702 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ 5956 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6703 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \ 5957 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6704 sys/utsname.h pwd.h utmp.h 5958 sys/utsname.h pwd.h utmp.h
6705do 5959do :
6706as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5960 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6707if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5961ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6708 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5962eval as_val=\$$as_ac_Header
6709$as_echo_n "checking for $ac_header... " >&6; } 5963 if test "x$as_val" = x""yes; then :
6710if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6711 $as_echo_n "(cached) " >&6
6712fi
6713ac_res=`eval 'as_val=${'$as_ac_Header'}
6714 $as_echo "$as_val"'`
6715 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6716$as_echo "$ac_res" >&6; }
6717else
6718 # Is the header compilable?
6719{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6720$as_echo_n "checking $ac_header usability... " >&6; }
6721cat >conftest.$ac_ext <<_ACEOF
6722/* confdefs.h. */
6723_ACEOF
6724cat confdefs.h >>conftest.$ac_ext
6725cat >>conftest.$ac_ext <<_ACEOF
6726/* end confdefs.h. */
6727$ac_includes_default
6728#include <$ac_header>
6729_ACEOF
6730rm -f conftest.$ac_objext
6731if { (ac_try="$ac_compile"
6732case "(($ac_try" in
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6735esac
6736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6737$as_echo "$ac_try_echo") >&5
6738 (eval "$ac_compile") 2>conftest.er1
6739 ac_status=$?
6740 grep -v '^ *+' conftest.er1 >conftest.err
6741 rm -f conftest.er1
6742 cat conftest.err >&5
6743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } && {
6745 test -z "$ac_c_werror_flag" ||
6746 test ! -s conftest.err
6747 } && test -s conftest.$ac_objext; then
6748 ac_header_compiler=yes
6749else
6750 $as_echo "$as_me: failed program was:" >&5
6751sed 's/^/| /' conftest.$ac_ext >&5
6752
6753 ac_header_compiler=no
6754fi
6755
6756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6757{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6758$as_echo "$ac_header_compiler" >&6; }
6759
6760# Is the header present?
6761{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6762$as_echo_n "checking $ac_header presence... " >&6; }
6763cat >conftest.$ac_ext <<_ACEOF
6764/* confdefs.h. */
6765_ACEOF
6766cat confdefs.h >>conftest.$ac_ext
6767cat >>conftest.$ac_ext <<_ACEOF
6768/* end confdefs.h. */
6769#include <$ac_header>
6770_ACEOF
6771if { (ac_try="$ac_cpp conftest.$ac_ext"
6772case "(($ac_try" in
6773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6774 *) ac_try_echo=$ac_try;;
6775esac
6776eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6777$as_echo "$ac_try_echo") >&5
6778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6779 ac_status=$?
6780 grep -v '^ *+' conftest.er1 >conftest.err
6781 rm -f conftest.er1
6782 cat conftest.err >&5
6783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); } >/dev/null && {
6785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6786 test ! -s conftest.err
6787 }; then
6788 ac_header_preproc=yes
6789else
6790 $as_echo "$as_me: failed program was:" >&5
6791sed 's/^/| /' conftest.$ac_ext >&5
6792
6793 ac_header_preproc=no
6794fi
6795
6796rm -f conftest.err conftest.$ac_ext
6797{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6798$as_echo "$ac_header_preproc" >&6; }
6799
6800# So? What about this header?
6801case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6802 yes:no: )
6803 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6804$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6805 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6806$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6807 ac_header_preproc=yes
6808 ;;
6809 no:yes:* )
6810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6811$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6813$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6815$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6817$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6819$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6821$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6822
6823 ;;
6824esac
6825{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6826$as_echo_n "checking for $ac_header... " >&6; }
6827if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6828 $as_echo_n "(cached) " >&6
6829else
6830 eval "$as_ac_Header=\$ac_header_preproc"
6831fi
6832ac_res=`eval 'as_val=${'$as_ac_Header'}
6833 $as_echo "$as_val"'`
6834 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6835$as_echo "$ac_res" >&6; }
6836
6837fi
6838if test `eval 'as_val=${'$as_ac_Header'}
6839 $as_echo "$as_val"'` = yes; then
6840 cat >>confdefs.h <<_ACEOF 5964 cat >>confdefs.h <<_ACEOF
6841#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5965#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6842_ACEOF 5966_ACEOF
@@ -6846,13 +5970,9 @@ fi
6846done 5970done
6847 5971
6848 5972
6849{ $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5 5973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6850$as_echo_n "checking if personality LINUX32 can be set... " >&6; } 5974$as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6851cat >conftest.$ac_ext <<_ACEOF 5975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852/* confdefs.h. */
6853_ACEOF
6854cat confdefs.h >>conftest.$ac_ext
6855cat >>conftest.$ac_ext <<_ACEOF
6856/* end confdefs.h. */ 5976/* end confdefs.h. */
6857#include <sys/personality.h> 5977#include <sys/personality.h>
6858int 5978int
@@ -6863,112 +5983,39 @@ personality (PER_LINUX32)
6863 return 0; 5983 return 0;
6864} 5984}
6865_ACEOF 5985_ACEOF
6866rm -f conftest.$ac_objext 5986if ac_fn_c_try_compile "$LINENO"; then :
6867if { (ac_try="$ac_compile"
6868case "(($ac_try" in
6869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6870 *) ac_try_echo=$ac_try;;
6871esac
6872eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6873$as_echo "$ac_try_echo") >&5
6874 (eval "$ac_compile") 2>conftest.er1
6875 ac_status=$?
6876 grep -v '^ *+' conftest.er1 >conftest.err
6877 rm -f conftest.er1
6878 cat conftest.err >&5
6879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } && {
6881 test -z "$ac_c_werror_flag" ||
6882 test ! -s conftest.err
6883 } && test -s conftest.$ac_objext; then
6884 emacs_cv_personality_linux32=yes 5987 emacs_cv_personality_linux32=yes
6885else 5988else
6886 $as_echo "$as_me: failed program was:" >&5 5989 emacs_cv_personality_linux32=no
6887sed 's/^/| /' conftest.$ac_ext >&5
6888
6889 emacs_cv_personality_linux32=no
6890fi 5990fi
6891
6892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6893{ $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5 5992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6894$as_echo "$emacs_cv_personality_linux32" >&6; } 5993$as_echo "$emacs_cv_personality_linux32" >&6; }
6895 5994
6896if test $emacs_cv_personality_linux32 = yes; then 5995if test $emacs_cv_personality_linux32 = yes; then
6897 5996
6898cat >>confdefs.h <<\_ACEOF 5997$as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6899#define HAVE_PERSONALITY_LINUX32 1
6900_ACEOF
6901 5998
6902fi 5999fi
6903 6000
6904
6905for ac_header in term.h 6001for ac_header in term.h
6906do 6002do :
6907as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6003 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
6908{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6004if test "x$ac_cv_header_term_h" = x""yes; then :
6909$as_echo_n "checking for $ac_header... " >&6; }
6910if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6911 $as_echo_n "(cached) " >&6
6912else
6913 cat >conftest.$ac_ext <<_ACEOF
6914/* confdefs.h. */
6915_ACEOF
6916cat confdefs.h >>conftest.$ac_ext
6917cat >>conftest.$ac_ext <<_ACEOF
6918/* end confdefs.h. */
6919#include <$ac_header>
6920_ACEOF
6921if { (ac_try="$ac_cpp conftest.$ac_ext"
6922case "(($ac_try" in
6923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6924 *) ac_try_echo=$ac_try;;
6925esac
6926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6927$as_echo "$ac_try_echo") >&5
6928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6929 ac_status=$?
6930 grep -v '^ *+' conftest.er1 >conftest.err
6931 rm -f conftest.er1
6932 cat conftest.err >&5
6933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); } >/dev/null && {
6935 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6936 test ! -s conftest.err
6937 }; then
6938 eval "$as_ac_Header=yes"
6939else
6940 $as_echo "$as_me: failed program was:" >&5
6941sed 's/^/| /' conftest.$ac_ext >&5
6942
6943 eval "$as_ac_Header=no"
6944fi
6945
6946rm -f conftest.err conftest.$ac_ext
6947fi
6948ac_res=`eval 'as_val=${'$as_ac_Header'}
6949 $as_echo "$as_val"'`
6950 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6951$as_echo "$ac_res" >&6; }
6952if test `eval 'as_val=${'$as_ac_Header'}
6953 $as_echo "$as_val"'` = yes; then
6954 cat >>confdefs.h <<_ACEOF 6005 cat >>confdefs.h <<_ACEOF
6955#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6006#define HAVE_TERM_H 1
6956_ACEOF 6007_ACEOF
6957 6008
6958fi 6009fi
6959 6010
6960done 6011done
6961 6012
6962{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6963$as_echo_n "checking for ANSI C header files... " >&6; } 6014$as_echo_n "checking for ANSI C header files... " >&6; }
6964if test "${ac_cv_header_stdc+set}" = set; then 6015if test "${ac_cv_header_stdc+set}" = set; then :
6965 $as_echo_n "(cached) " >&6 6016 $as_echo_n "(cached) " >&6
6966else 6017else
6967 cat >conftest.$ac_ext <<_ACEOF 6018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968/* confdefs.h. */
6969_ACEOF
6970cat confdefs.h >>conftest.$ac_ext
6971cat >>conftest.$ac_ext <<_ACEOF
6972/* end confdefs.h. */ 6019/* end confdefs.h. */
6973#include <stdlib.h> 6020#include <stdlib.h>
6974#include <stdarg.h> 6021#include <stdarg.h>
@@ -6983,48 +6030,23 @@ main ()
6983 return 0; 6030 return 0;
6984} 6031}
6985_ACEOF 6032_ACEOF
6986rm -f conftest.$ac_objext 6033if ac_fn_c_try_compile "$LINENO"; then :
6987if { (ac_try="$ac_compile"
6988case "(($ac_try" in
6989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6990 *) ac_try_echo=$ac_try;;
6991esac
6992eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6993$as_echo "$ac_try_echo") >&5
6994 (eval "$ac_compile") 2>conftest.er1
6995 ac_status=$?
6996 grep -v '^ *+' conftest.er1 >conftest.err
6997 rm -f conftest.er1
6998 cat conftest.err >&5
6999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } && {
7001 test -z "$ac_c_werror_flag" ||
7002 test ! -s conftest.err
7003 } && test -s conftest.$ac_objext; then
7004 ac_cv_header_stdc=yes 6034 ac_cv_header_stdc=yes
7005else 6035else
7006 $as_echo "$as_me: failed program was:" >&5 6036 ac_cv_header_stdc=no
7007sed 's/^/| /' conftest.$ac_ext >&5
7008
7009 ac_cv_header_stdc=no
7010fi 6037fi
7011
7012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7013 6039
7014if test $ac_cv_header_stdc = yes; then 6040if test $ac_cv_header_stdc = yes; then
7015 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6041 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7016 cat >conftest.$ac_ext <<_ACEOF 6042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017/* confdefs.h. */
7018_ACEOF
7019cat confdefs.h >>conftest.$ac_ext
7020cat >>conftest.$ac_ext <<_ACEOF
7021/* end confdefs.h. */ 6043/* end confdefs.h. */
7022#include <string.h> 6044#include <string.h>
7023 6045
7024_ACEOF 6046_ACEOF
7025if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6047if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7026 $EGREP "memchr" >/dev/null 2>&1; then 6048 $EGREP "memchr" >/dev/null 2>&1; then :
7027 : 6049
7028else 6050else
7029 ac_cv_header_stdc=no 6051 ac_cv_header_stdc=no
7030fi 6052fi
@@ -7034,18 +6056,14 @@ fi
7034 6056
7035if test $ac_cv_header_stdc = yes; then 6057if test $ac_cv_header_stdc = yes; then
7036 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6058 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7037 cat >conftest.$ac_ext <<_ACEOF 6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7038/* confdefs.h. */
7039_ACEOF
7040cat confdefs.h >>conftest.$ac_ext
7041cat >>conftest.$ac_ext <<_ACEOF
7042/* end confdefs.h. */ 6060/* end confdefs.h. */
7043#include <stdlib.h> 6061#include <stdlib.h>
7044 6062
7045_ACEOF 6063_ACEOF
7046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6064if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7047 $EGREP "free" >/dev/null 2>&1; then 6065 $EGREP "free" >/dev/null 2>&1; then :
7048 : 6066
7049else 6067else
7050 ac_cv_header_stdc=no 6068 ac_cv_header_stdc=no
7051fi 6069fi
@@ -7055,14 +6073,10 @@ fi
7055 6073
7056if test $ac_cv_header_stdc = yes; then 6074if test $ac_cv_header_stdc = yes; then
7057 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6075 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7058 if test "$cross_compiling" = yes; then 6076 if test "$cross_compiling" = yes; then :
7059 : 6077 :
7060else 6078else
7061 cat >conftest.$ac_ext <<_ACEOF 6079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062/* confdefs.h. */
7063_ACEOF
7064cat confdefs.h >>conftest.$ac_ext
7065cat >>conftest.$ac_ext <<_ACEOF
7066/* end confdefs.h. */ 6080/* end confdefs.h. */
7067#include <ctype.h> 6081#include <ctype.h>
7068#include <stdlib.h> 6082#include <stdlib.h>
@@ -7089,64 +6103,31 @@ main ()
7089 return 0; 6103 return 0;
7090} 6104}
7091_ACEOF 6105_ACEOF
7092rm -f conftest$ac_exeext 6106if ac_fn_c_try_run "$LINENO"; then :
7093if { (ac_try="$ac_link"
7094case "(($ac_try" in
7095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7096 *) ac_try_echo=$ac_try;;
7097esac
7098eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7099$as_echo "$ac_try_echo") >&5
7100 (eval "$ac_link") 2>&5
7101 ac_status=$?
7102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7104 { (case "(($ac_try" in
7105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7106 *) ac_try_echo=$ac_try;;
7107esac
7108eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7109$as_echo "$ac_try_echo") >&5
7110 (eval "$ac_try") 2>&5
7111 ac_status=$?
7112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); }; }; then
7114 :
7115else
7116 $as_echo "$as_me: program exited with status $ac_status" >&5
7117$as_echo "$as_me: failed program was:" >&5
7118sed 's/^/| /' conftest.$ac_ext >&5
7119 6107
7120( exit $ac_status ) 6108else
7121ac_cv_header_stdc=no 6109 ac_cv_header_stdc=no
7122fi 6110fi
7123rm -rf conftest.dSYM 6111rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7124rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6112 conftest.$ac_objext conftest.beam conftest.$ac_ext
7125fi 6113fi
7126 6114
7127
7128fi 6115fi
7129fi 6116fi
7130{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7131$as_echo "$ac_cv_header_stdc" >&6; } 6118$as_echo "$ac_cv_header_stdc" >&6; }
7132if test $ac_cv_header_stdc = yes; then 6119if test $ac_cv_header_stdc = yes; then
7133 6120
7134cat >>confdefs.h <<\_ACEOF 6121$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7135#define STDC_HEADERS 1
7136_ACEOF
7137 6122
7138fi 6123fi
7139 6124
7140{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 6125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7141$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 6126$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7142if test "${ac_cv_header_time+set}" = set; then 6127if test "${ac_cv_header_time+set}" = set; then :
7143 $as_echo_n "(cached) " >&6 6128 $as_echo_n "(cached) " >&6
7144else 6129else
7145 cat >conftest.$ac_ext <<_ACEOF 6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7146/* confdefs.h. */
7147_ACEOF
7148cat confdefs.h >>conftest.$ac_ext
7149cat >>conftest.$ac_ext <<_ACEOF
7150/* end confdefs.h. */ 6131/* end confdefs.h. */
7151#include <sys/types.h> 6132#include <sys/types.h>
7152#include <sys/time.h> 6133#include <sys/time.h>
@@ -7161,202 +6142,57 @@ return 0;
7161 return 0; 6142 return 0;
7162} 6143}
7163_ACEOF 6144_ACEOF
7164rm -f conftest.$ac_objext 6145if ac_fn_c_try_compile "$LINENO"; then :
7165if { (ac_try="$ac_compile"
7166case "(($ac_try" in
7167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7168 *) ac_try_echo=$ac_try;;
7169esac
7170eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7171$as_echo "$ac_try_echo") >&5
7172 (eval "$ac_compile") 2>conftest.er1
7173 ac_status=$?
7174 grep -v '^ *+' conftest.er1 >conftest.err
7175 rm -f conftest.er1
7176 cat conftest.err >&5
7177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } && {
7179 test -z "$ac_c_werror_flag" ||
7180 test ! -s conftest.err
7181 } && test -s conftest.$ac_objext; then
7182 ac_cv_header_time=yes 6146 ac_cv_header_time=yes
7183else 6147else
7184 $as_echo "$as_me: failed program was:" >&5 6148 ac_cv_header_time=no
7185sed 's/^/| /' conftest.$ac_ext >&5
7186
7187 ac_cv_header_time=no
7188fi 6149fi
7189
7190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7191fi 6151fi
7192{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 6152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7193$as_echo "$ac_cv_header_time" >&6; } 6153$as_echo "$ac_cv_header_time" >&6; }
7194if test $ac_cv_header_time = yes; then 6154if test $ac_cv_header_time = yes; then
7195 6155
7196cat >>confdefs.h <<\_ACEOF 6156$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7197#define TIME_WITH_SYS_TIME 1
7198_ACEOF
7199 6157
7200fi 6158fi
7201 6159
7202{ $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5 6160ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7203$as_echo_n "checking whether sys_siglist is declared... " >&6; } 6161if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
7204if test "${ac_cv_have_decl_sys_siglist+set}" = set; then 6162 ac_have_decl=1
7205 $as_echo_n "(cached) " >&6
7206else
7207 cat >conftest.$ac_ext <<_ACEOF
7208/* confdefs.h. */
7209_ACEOF
7210cat confdefs.h >>conftest.$ac_ext
7211cat >>conftest.$ac_ext <<_ACEOF
7212/* end confdefs.h. */
7213$ac_includes_default
7214int
7215main ()
7216{
7217#ifndef sys_siglist
7218 (void) sys_siglist;
7219#endif
7220
7221 ;
7222 return 0;
7223}
7224_ACEOF
7225rm -f conftest.$ac_objext
7226if { (ac_try="$ac_compile"
7227case "(($ac_try" in
7228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7229 *) ac_try_echo=$ac_try;;
7230esac
7231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7232$as_echo "$ac_try_echo") >&5
7233 (eval "$ac_compile") 2>conftest.er1
7234 ac_status=$?
7235 grep -v '^ *+' conftest.er1 >conftest.err
7236 rm -f conftest.er1
7237 cat conftest.err >&5
7238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } && {
7240 test -z "$ac_c_werror_flag" ||
7241 test ! -s conftest.err
7242 } && test -s conftest.$ac_objext; then
7243 ac_cv_have_decl_sys_siglist=yes
7244else 6163else
7245 $as_echo "$as_me: failed program was:" >&5 6164 ac_have_decl=0
7246sed 's/^/| /' conftest.$ac_ext >&5
7247
7248 ac_cv_have_decl_sys_siglist=no
7249fi
7250
7251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7252fi 6165fi
7253{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7254$as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7255if test $ac_cv_have_decl_sys_siglist = yes; then
7256 6166
7257cat >>confdefs.h <<_ACEOF 6167cat >>confdefs.h <<_ACEOF
7258#define HAVE_DECL_SYS_SIGLIST 1 6168#define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7259_ACEOF
7260
7261
7262else
7263 cat >>confdefs.h <<_ACEOF
7264#define HAVE_DECL_SYS_SIGLIST 0
7265_ACEOF 6169_ACEOF
7266 6170
7267
7268fi
7269
7270
7271if test $ac_cv_have_decl_sys_siglist != yes; then 6171if test $ac_cv_have_decl_sys_siglist != yes; then
7272 # For Tru64, at least: 6172 # For Tru64, at least:
7273 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5 6173 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7274$as_echo_n "checking whether __sys_siglist is declared... " >&6; } 6174if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
7275if test "${ac_cv_have_decl___sys_siglist+set}" = set; then 6175 ac_have_decl=1
7276 $as_echo_n "(cached) " >&6
7277else
7278 cat >conftest.$ac_ext <<_ACEOF
7279/* confdefs.h. */
7280_ACEOF
7281cat confdefs.h >>conftest.$ac_ext
7282cat >>conftest.$ac_ext <<_ACEOF
7283/* end confdefs.h. */
7284$ac_includes_default
7285int
7286main ()
7287{
7288#ifndef __sys_siglist
7289 (void) __sys_siglist;
7290#endif
7291
7292 ;
7293 return 0;
7294}
7295_ACEOF
7296rm -f conftest.$ac_objext
7297if { (ac_try="$ac_compile"
7298case "(($ac_try" in
7299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7300 *) ac_try_echo=$ac_try;;
7301esac
7302eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7303$as_echo "$ac_try_echo") >&5
7304 (eval "$ac_compile") 2>conftest.er1
7305 ac_status=$?
7306 grep -v '^ *+' conftest.er1 >conftest.err
7307 rm -f conftest.er1
7308 cat conftest.err >&5
7309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); } && {
7311 test -z "$ac_c_werror_flag" ||
7312 test ! -s conftest.err
7313 } && test -s conftest.$ac_objext; then
7314 ac_cv_have_decl___sys_siglist=yes
7315else 6176else
7316 $as_echo "$as_me: failed program was:" >&5 6177 ac_have_decl=0
7317sed 's/^/| /' conftest.$ac_ext >&5
7318
7319 ac_cv_have_decl___sys_siglist=no
7320fi
7321
7322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7323fi 6178fi
7324{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7325$as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7326if test $ac_cv_have_decl___sys_siglist = yes; then
7327 6179
7328cat >>confdefs.h <<_ACEOF 6180cat >>confdefs.h <<_ACEOF
7329#define HAVE_DECL___SYS_SIGLIST 1 6181#define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7330_ACEOF
7331
7332
7333else
7334 cat >>confdefs.h <<_ACEOF
7335#define HAVE_DECL___SYS_SIGLIST 0
7336_ACEOF 6182_ACEOF
7337 6183
7338
7339fi
7340
7341
7342 if test $ac_cv_have_decl___sys_siglist = yes; then 6184 if test $ac_cv_have_decl___sys_siglist = yes; then
7343 6185
7344cat >>confdefs.h <<\_ACEOF 6186$as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7345#define sys_siglist __sys_siglist
7346_ACEOF
7347 6187
7348 fi 6188 fi
7349fi 6189fi
7350{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 6190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7351$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 6191$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7352if test "${ac_cv_header_sys_wait_h+set}" = set; then 6192if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7353 $as_echo_n "(cached) " >&6 6193 $as_echo_n "(cached) " >&6
7354else 6194else
7355 cat >conftest.$ac_ext <<_ACEOF 6195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356/* confdefs.h. */
7357_ACEOF
7358cat confdefs.h >>conftest.$ac_ext
7359cat >>conftest.$ac_ext <<_ACEOF
7360/* end confdefs.h. */ 6196/* end confdefs.h. */
7361#include <sys/types.h> 6197#include <sys/types.h>
7362#include <sys/wait.h> 6198#include <sys/wait.h>
@@ -7377,55 +6213,28 @@ main ()
7377 return 0; 6213 return 0;
7378} 6214}
7379_ACEOF 6215_ACEOF
7380rm -f conftest.$ac_objext 6216if ac_fn_c_try_compile "$LINENO"; then :
7381if { (ac_try="$ac_compile"
7382case "(($ac_try" in
7383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7384 *) ac_try_echo=$ac_try;;
7385esac
7386eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7387$as_echo "$ac_try_echo") >&5
7388 (eval "$ac_compile") 2>conftest.er1
7389 ac_status=$?
7390 grep -v '^ *+' conftest.er1 >conftest.err
7391 rm -f conftest.er1
7392 cat conftest.err >&5
7393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); } && {
7395 test -z "$ac_c_werror_flag" ||
7396 test ! -s conftest.err
7397 } && test -s conftest.$ac_objext; then
7398 ac_cv_header_sys_wait_h=yes 6217 ac_cv_header_sys_wait_h=yes
7399else 6218else
7400 $as_echo "$as_me: failed program was:" >&5 6219 ac_cv_header_sys_wait_h=no
7401sed 's/^/| /' conftest.$ac_ext >&5
7402
7403 ac_cv_header_sys_wait_h=no
7404fi 6220fi
7405
7406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7407fi 6222fi
7408{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7409$as_echo "$ac_cv_header_sys_wait_h" >&6; } 6224$as_echo "$ac_cv_header_sys_wait_h" >&6; }
7410if test $ac_cv_header_sys_wait_h = yes; then 6225if test $ac_cv_header_sys_wait_h = yes; then
7411 6226
7412cat >>confdefs.h <<\_ACEOF 6227$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7413#define HAVE_SYS_WAIT_H 1
7414_ACEOF
7415 6228
7416fi 6229fi
7417 6230
7418 6231
7419{ $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5 6232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7420$as_echo_n "checking for struct utimbuf... " >&6; } 6233$as_echo_n "checking for struct utimbuf... " >&6; }
7421if test "${emacs_cv_struct_utimbuf+set}" = set; then 6234if test "${emacs_cv_struct_utimbuf+set}" = set; then :
7422 $as_echo_n "(cached) " >&6 6235 $as_echo_n "(cached) " >&6
7423else 6236else
7424 cat >conftest.$ac_ext <<_ACEOF 6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425/* confdefs.h. */
7426_ACEOF
7427cat confdefs.h >>conftest.$ac_ext
7428cat >>conftest.$ac_ext <<_ACEOF
7429/* end confdefs.h. */ 6238/* end confdefs.h. */
7430#ifdef TIME_WITH_SYS_TIME 6239#ifdef TIME_WITH_SYS_TIME
7431#include <sys/time.h> 6240#include <sys/time.h>
@@ -7448,54 +6257,27 @@ static struct utimbuf x; x.actime = x.modtime;
7448 return 0; 6257 return 0;
7449} 6258}
7450_ACEOF 6259_ACEOF
7451rm -f conftest.$ac_objext 6260if ac_fn_c_try_compile "$LINENO"; then :
7452if { (ac_try="$ac_compile"
7453case "(($ac_try" in
7454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7455 *) ac_try_echo=$ac_try;;
7456esac
7457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7458$as_echo "$ac_try_echo") >&5
7459 (eval "$ac_compile") 2>conftest.er1
7460 ac_status=$?
7461 grep -v '^ *+' conftest.er1 >conftest.err
7462 rm -f conftest.er1
7463 cat conftest.err >&5
7464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); } && {
7466 test -z "$ac_c_werror_flag" ||
7467 test ! -s conftest.err
7468 } && test -s conftest.$ac_objext; then
7469 emacs_cv_struct_utimbuf=yes 6261 emacs_cv_struct_utimbuf=yes
7470else 6262else
7471 $as_echo "$as_me: failed program was:" >&5 6263 emacs_cv_struct_utimbuf=no
7472sed 's/^/| /' conftest.$ac_ext >&5
7473
7474 emacs_cv_struct_utimbuf=no
7475fi 6264fi
7476
7477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7478fi 6266fi
7479{ $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5 6267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7480$as_echo "$emacs_cv_struct_utimbuf" >&6; } 6268$as_echo "$emacs_cv_struct_utimbuf" >&6; }
7481if test $emacs_cv_struct_utimbuf = yes; then 6269if test $emacs_cv_struct_utimbuf = yes; then
7482 6270
7483cat >>confdefs.h <<\_ACEOF 6271$as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7484#define HAVE_STRUCT_UTIMBUF 1
7485_ACEOF
7486 6272
7487fi 6273fi
7488 6274
7489{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 6275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7490$as_echo_n "checking return type of signal handlers... " >&6; } 6276$as_echo_n "checking return type of signal handlers... " >&6; }
7491if test "${ac_cv_type_signal+set}" = set; then 6277if test "${ac_cv_type_signal+set}" = set; then :
7492 $as_echo_n "(cached) " >&6 6278 $as_echo_n "(cached) " >&6
7493else 6279else
7494 cat >conftest.$ac_ext <<_ACEOF 6280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7495/* confdefs.h. */
7496_ACEOF
7497cat confdefs.h >>conftest.$ac_ext
7498cat >>conftest.$ac_ext <<_ACEOF
7499/* end confdefs.h. */ 6281/* end confdefs.h. */
7500#include <sys/types.h> 6282#include <sys/types.h>
7501#include <signal.h> 6283#include <signal.h>
@@ -7508,35 +6290,14 @@ return *(signal (0, 0)) (0) == 1;
7508 return 0; 6290 return 0;
7509} 6291}
7510_ACEOF 6292_ACEOF
7511rm -f conftest.$ac_objext 6293if ac_fn_c_try_compile "$LINENO"; then :
7512if { (ac_try="$ac_compile"
7513case "(($ac_try" in
7514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7515 *) ac_try_echo=$ac_try;;
7516esac
7517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7518$as_echo "$ac_try_echo") >&5
7519 (eval "$ac_compile") 2>conftest.er1
7520 ac_status=$?
7521 grep -v '^ *+' conftest.er1 >conftest.err
7522 rm -f conftest.er1
7523 cat conftest.err >&5
7524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } && {
7526 test -z "$ac_c_werror_flag" ||
7527 test ! -s conftest.err
7528 } && test -s conftest.$ac_objext; then
7529 ac_cv_type_signal=int 6294 ac_cv_type_signal=int
7530else 6295else
7531 $as_echo "$as_me: failed program was:" >&5 6296 ac_cv_type_signal=void
7532sed 's/^/| /' conftest.$ac_ext >&5
7533
7534 ac_cv_type_signal=void
7535fi 6297fi
7536
7537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7538fi 6299fi
7539{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 6300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7540$as_echo "$ac_cv_type_signal" >&6; } 6301$as_echo "$ac_cv_type_signal" >&6; }
7541 6302
7542cat >>confdefs.h <<_ACEOF 6303cat >>confdefs.h <<_ACEOF
@@ -7545,16 +6306,12 @@ _ACEOF
7545 6306
7546 6307
7547 6308
7548{ $as_echo "$as_me:$LINENO: checking for speed_t" >&5 6309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7549$as_echo_n "checking for speed_t... " >&6; } 6310$as_echo_n "checking for speed_t... " >&6; }
7550if test "${emacs_cv_speed_t+set}" = set; then 6311if test "${emacs_cv_speed_t+set}" = set; then :
7551 $as_echo_n "(cached) " >&6 6312 $as_echo_n "(cached) " >&6
7552else 6313else
7553 cat >conftest.$ac_ext <<_ACEOF 6314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554/* confdefs.h. */
7555_ACEOF
7556cat confdefs.h >>conftest.$ac_ext
7557cat >>conftest.$ac_ext <<_ACEOF
7558/* end confdefs.h. */ 6315/* end confdefs.h. */
7559#include <termios.h> 6316#include <termios.h>
7560int 6317int
@@ -7565,54 +6322,27 @@ speed_t x = 1;
7565 return 0; 6322 return 0;
7566} 6323}
7567_ACEOF 6324_ACEOF
7568rm -f conftest.$ac_objext 6325if ac_fn_c_try_compile "$LINENO"; then :
7569if { (ac_try="$ac_compile"
7570case "(($ac_try" in
7571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7572 *) ac_try_echo=$ac_try;;
7573esac
7574eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7575$as_echo "$ac_try_echo") >&5
7576 (eval "$ac_compile") 2>conftest.er1
7577 ac_status=$?
7578 grep -v '^ *+' conftest.er1 >conftest.err
7579 rm -f conftest.er1
7580 cat conftest.err >&5
7581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); } && {
7583 test -z "$ac_c_werror_flag" ||
7584 test ! -s conftest.err
7585 } && test -s conftest.$ac_objext; then
7586 emacs_cv_speed_t=yes 6326 emacs_cv_speed_t=yes
7587else 6327else
7588 $as_echo "$as_me: failed program was:" >&5 6328 emacs_cv_speed_t=no
7589sed 's/^/| /' conftest.$ac_ext >&5
7590
7591 emacs_cv_speed_t=no
7592fi 6329fi
7593
7594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7595fi 6331fi
7596{ $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5 6332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7597$as_echo "$emacs_cv_speed_t" >&6; } 6333$as_echo "$emacs_cv_speed_t" >&6; }
7598if test $emacs_cv_speed_t = yes; then 6334if test $emacs_cv_speed_t = yes; then
7599 6335
7600cat >>confdefs.h <<\_ACEOF 6336$as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7601#define HAVE_SPEED_T 1
7602_ACEOF
7603 6337
7604fi 6338fi
7605 6339
7606{ $as_echo "$as_me:$LINENO: checking for struct timeval" >&5 6340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7607$as_echo_n "checking for struct timeval... " >&6; } 6341$as_echo_n "checking for struct timeval... " >&6; }
7608if test "${emacs_cv_struct_timeval+set}" = set; then 6342if test "${emacs_cv_struct_timeval+set}" = set; then :
7609 $as_echo_n "(cached) " >&6 6343 $as_echo_n "(cached) " >&6
7610else 6344else
7611 cat >conftest.$ac_ext <<_ACEOF 6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7612/* confdefs.h. */
7613_ACEOF
7614cat confdefs.h >>conftest.$ac_ext
7615cat >>conftest.$ac_ext <<_ACEOF
7616/* end confdefs.h. */ 6346/* end confdefs.h. */
7617#ifdef TIME_WITH_SYS_TIME 6347#ifdef TIME_WITH_SYS_TIME
7618#include <sys/time.h> 6348#include <sys/time.h>
@@ -7632,55 +6362,28 @@ static struct timeval x; x.tv_sec = x.tv_usec;
7632 return 0; 6362 return 0;
7633} 6363}
7634_ACEOF 6364_ACEOF
7635rm -f conftest.$ac_objext 6365if ac_fn_c_try_compile "$LINENO"; then :
7636if { (ac_try="$ac_compile"
7637case "(($ac_try" in
7638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7639 *) ac_try_echo=$ac_try;;
7640esac
7641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7642$as_echo "$ac_try_echo") >&5
7643 (eval "$ac_compile") 2>conftest.er1
7644 ac_status=$?
7645 grep -v '^ *+' conftest.er1 >conftest.err
7646 rm -f conftest.er1
7647 cat conftest.err >&5
7648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); } && {
7650 test -z "$ac_c_werror_flag" ||
7651 test ! -s conftest.err
7652 } && test -s conftest.$ac_objext; then
7653 emacs_cv_struct_timeval=yes 6366 emacs_cv_struct_timeval=yes
7654else 6367else
7655 $as_echo "$as_me: failed program was:" >&5 6368 emacs_cv_struct_timeval=no
7656sed 's/^/| /' conftest.$ac_ext >&5
7657
7658 emacs_cv_struct_timeval=no
7659fi 6369fi
7660
7661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7662fi 6371fi
7663{ $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5 6372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7664$as_echo "$emacs_cv_struct_timeval" >&6; } 6373$as_echo "$emacs_cv_struct_timeval" >&6; }
7665HAVE_TIMEVAL=$emacs_cv_struct_timeval 6374HAVE_TIMEVAL=$emacs_cv_struct_timeval
7666if test $emacs_cv_struct_timeval = yes; then 6375if test $emacs_cv_struct_timeval = yes; then
7667 6376
7668cat >>confdefs.h <<\_ACEOF 6377$as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7669#define HAVE_TIMEVAL 1
7670_ACEOF
7671 6378
7672fi 6379fi
7673 6380
7674{ $as_echo "$as_me:$LINENO: checking for struct exception" >&5 6381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7675$as_echo_n "checking for struct exception... " >&6; } 6382$as_echo_n "checking for struct exception... " >&6; }
7676if test "${emacs_cv_struct_exception+set}" = set; then 6383if test "${emacs_cv_struct_exception+set}" = set; then :
7677 $as_echo_n "(cached) " >&6 6384 $as_echo_n "(cached) " >&6
7678else 6385else
7679 cat >conftest.$ac_ext <<_ACEOF 6386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680/* confdefs.h. */
7681_ACEOF
7682cat confdefs.h >>conftest.$ac_ext
7683cat >>conftest.$ac_ext <<_ACEOF
7684/* end confdefs.h. */ 6387/* end confdefs.h. */
7685#include <math.h> 6388#include <math.h>
7686int 6389int
@@ -7691,248 +6394,44 @@ static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7691 return 0; 6394 return 0;
7692} 6395}
7693_ACEOF 6396_ACEOF
7694rm -f conftest.$ac_objext 6397if ac_fn_c_try_compile "$LINENO"; then :
7695if { (ac_try="$ac_compile"
7696case "(($ac_try" in
7697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7698 *) ac_try_echo=$ac_try;;
7699esac
7700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7701$as_echo "$ac_try_echo") >&5
7702 (eval "$ac_compile") 2>conftest.er1
7703 ac_status=$?
7704 grep -v '^ *+' conftest.er1 >conftest.err
7705 rm -f conftest.er1
7706 cat conftest.err >&5
7707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); } && {
7709 test -z "$ac_c_werror_flag" ||
7710 test ! -s conftest.err
7711 } && test -s conftest.$ac_objext; then
7712 emacs_cv_struct_exception=yes 6398 emacs_cv_struct_exception=yes
7713else 6399else
7714 $as_echo "$as_me: failed program was:" >&5 6400 emacs_cv_struct_exception=no
7715sed 's/^/| /' conftest.$ac_ext >&5
7716
7717 emacs_cv_struct_exception=no
7718fi 6401fi
7719
7720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7721fi 6403fi
7722{ $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5 6404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7723$as_echo "$emacs_cv_struct_exception" >&6; } 6405$as_echo "$emacs_cv_struct_exception" >&6; }
7724HAVE_EXCEPTION=$emacs_cv_struct_exception 6406HAVE_EXCEPTION=$emacs_cv_struct_exception
7725if test $emacs_cv_struct_exception != yes; then 6407if test $emacs_cv_struct_exception != yes; then
7726 6408
7727cat >>confdefs.h <<\_ACEOF 6409$as_echo "#define NO_MATHERR 1" >>confdefs.h
7728#define NO_MATHERR 1
7729_ACEOF
7730 6410
7731fi 6411fi
7732 6412
7733
7734for ac_header in sys/socket.h 6413for ac_header in sys/socket.h
7735do 6414do :
7736as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6415 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
7737if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6416if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
7738 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7739$as_echo_n "checking for $ac_header... " >&6; }
7740if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7741 $as_echo_n "(cached) " >&6
7742fi
7743ac_res=`eval 'as_val=${'$as_ac_Header'}
7744 $as_echo "$as_val"'`
7745 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7746$as_echo "$ac_res" >&6; }
7747else
7748 # Is the header compilable?
7749{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7750$as_echo_n "checking $ac_header usability... " >&6; }
7751cat >conftest.$ac_ext <<_ACEOF
7752/* confdefs.h. */
7753_ACEOF
7754cat confdefs.h >>conftest.$ac_ext
7755cat >>conftest.$ac_ext <<_ACEOF
7756/* end confdefs.h. */
7757$ac_includes_default
7758#include <$ac_header>
7759_ACEOF
7760rm -f conftest.$ac_objext
7761if { (ac_try="$ac_compile"
7762case "(($ac_try" in
7763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7764 *) ac_try_echo=$ac_try;;
7765esac
7766eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7767$as_echo "$ac_try_echo") >&5
7768 (eval "$ac_compile") 2>conftest.er1
7769 ac_status=$?
7770 grep -v '^ *+' conftest.er1 >conftest.err
7771 rm -f conftest.er1
7772 cat conftest.err >&5
7773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); } && {
7775 test -z "$ac_c_werror_flag" ||
7776 test ! -s conftest.err
7777 } && test -s conftest.$ac_objext; then
7778 ac_header_compiler=yes
7779else
7780 $as_echo "$as_me: failed program was:" >&5
7781sed 's/^/| /' conftest.$ac_ext >&5
7782
7783 ac_header_compiler=no
7784fi
7785
7786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7787{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7788$as_echo "$ac_header_compiler" >&6; }
7789
7790# Is the header present?
7791{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7792$as_echo_n "checking $ac_header presence... " >&6; }
7793cat >conftest.$ac_ext <<_ACEOF
7794/* confdefs.h. */
7795_ACEOF
7796cat confdefs.h >>conftest.$ac_ext
7797cat >>conftest.$ac_ext <<_ACEOF
7798/* end confdefs.h. */
7799#include <$ac_header>
7800_ACEOF
7801if { (ac_try="$ac_cpp conftest.$ac_ext"
7802case "(($ac_try" in
7803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7804 *) ac_try_echo=$ac_try;;
7805esac
7806eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7807$as_echo "$ac_try_echo") >&5
7808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7809 ac_status=$?
7810 grep -v '^ *+' conftest.er1 >conftest.err
7811 rm -f conftest.er1
7812 cat conftest.err >&5
7813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); } >/dev/null && {
7815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7816 test ! -s conftest.err
7817 }; then
7818 ac_header_preproc=yes
7819else
7820 $as_echo "$as_me: failed program was:" >&5
7821sed 's/^/| /' conftest.$ac_ext >&5
7822
7823 ac_header_preproc=no
7824fi
7825
7826rm -f conftest.err conftest.$ac_ext
7827{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7828$as_echo "$ac_header_preproc" >&6; }
7829
7830# So? What about this header?
7831case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7832 yes:no: )
7833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7834$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7836$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7837 ac_header_preproc=yes
7838 ;;
7839 no:yes:* )
7840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7841$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7843$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7845$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7847$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7849$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7851$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7852
7853 ;;
7854esac
7855{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7856$as_echo_n "checking for $ac_header... " >&6; }
7857if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7858 $as_echo_n "(cached) " >&6
7859else
7860 eval "$as_ac_Header=\$ac_header_preproc"
7861fi
7862ac_res=`eval 'as_val=${'$as_ac_Header'}
7863 $as_echo "$as_val"'`
7864 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7865$as_echo "$ac_res" >&6; }
7866
7867fi
7868if test `eval 'as_val=${'$as_ac_Header'}
7869 $as_echo "$as_val"'` = yes; then
7870 cat >>confdefs.h <<_ACEOF 6417 cat >>confdefs.h <<_ACEOF
7871#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6418#define HAVE_SYS_SOCKET_H 1
7872_ACEOF 6419_ACEOF
7873 6420
7874fi 6421fi
7875 6422
7876done 6423done
7877 6424
7878
7879for ac_header in net/if.h 6425for ac_header in net/if.h
7880do 6426do :
7881as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6427 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7882{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7883$as_echo_n "checking for $ac_header... " >&6; }
7884if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7885 $as_echo_n "(cached) " >&6
7886else
7887 cat >conftest.$ac_ext <<_ACEOF
7888/* confdefs.h. */
7889_ACEOF
7890cat confdefs.h >>conftest.$ac_ext
7891cat >>conftest.$ac_ext <<_ACEOF
7892/* end confdefs.h. */
7893$ac_includes_default
7894#if HAVE_SYS_SOCKET_H 6428#if HAVE_SYS_SOCKET_H
7895#include <sys/socket.h> 6429#include <sys/socket.h>
7896#endif 6430#endif
7897 6431"
7898#include <$ac_header> 6432if test "x$ac_cv_header_net_if_h" = x""yes; then :
7899_ACEOF
7900rm -f conftest.$ac_objext
7901if { (ac_try="$ac_compile"
7902case "(($ac_try" in
7903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7904 *) ac_try_echo=$ac_try;;
7905esac
7906eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7907$as_echo "$ac_try_echo") >&5
7908 (eval "$ac_compile") 2>conftest.er1
7909 ac_status=$?
7910 grep -v '^ *+' conftest.er1 >conftest.err
7911 rm -f conftest.er1
7912 cat conftest.err >&5
7913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); } && {
7915 test -z "$ac_c_werror_flag" ||
7916 test ! -s conftest.err
7917 } && test -s conftest.$ac_objext; then
7918 eval "$as_ac_Header=yes"
7919else
7920 $as_echo "$as_me: failed program was:" >&5
7921sed 's/^/| /' conftest.$ac_ext >&5
7922
7923 eval "$as_ac_Header=no"
7924fi
7925
7926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7927fi
7928ac_res=`eval 'as_val=${'$as_ac_Header'}
7929 $as_echo "$as_val"'`
7930 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7931$as_echo "$ac_res" >&6; }
7932if test `eval 'as_val=${'$as_ac_Header'}
7933 $as_echo "$as_val"'` = yes; then
7934 cat >>confdefs.h <<_ACEOF 6433 cat >>confdefs.h <<_ACEOF
7935#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6434#define HAVE_NET_IF_H 1
7936_ACEOF 6435_ACEOF
7937 6436
7938fi 6437fi
@@ -7940,16 +6439,12 @@ fi
7940done 6439done
7941 6440
7942 6441
7943{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 6442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7944$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 6443$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7945if test "${ac_cv_struct_tm+set}" = set; then 6444if test "${ac_cv_struct_tm+set}" = set; then :
7946 $as_echo_n "(cached) " >&6 6445 $as_echo_n "(cached) " >&6
7947else 6446else
7948 cat >conftest.$ac_ext <<_ACEOF 6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949/* confdefs.h. */
7950_ACEOF
7951cat confdefs.h >>conftest.$ac_ext
7952cat >>conftest.$ac_ext <<_ACEOF
7953/* end confdefs.h. */ 6448/* end confdefs.h. */
7954#include <sys/types.h> 6449#include <sys/types.h>
7955#include <time.h> 6450#include <time.h>
@@ -7964,146 +6459,26 @@ struct tm tm;
7964 return 0; 6459 return 0;
7965} 6460}
7966_ACEOF 6461_ACEOF
7967rm -f conftest.$ac_objext 6462if ac_fn_c_try_compile "$LINENO"; then :
7968if { (ac_try="$ac_compile"
7969case "(($ac_try" in
7970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971 *) ac_try_echo=$ac_try;;
7972esac
7973eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7974$as_echo "$ac_try_echo") >&5
7975 (eval "$ac_compile") 2>conftest.er1
7976 ac_status=$?
7977 grep -v '^ *+' conftest.er1 >conftest.err
7978 rm -f conftest.er1
7979 cat conftest.err >&5
7980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); } && {
7982 test -z "$ac_c_werror_flag" ||
7983 test ! -s conftest.err
7984 } && test -s conftest.$ac_objext; then
7985 ac_cv_struct_tm=time.h 6463 ac_cv_struct_tm=time.h
7986else 6464else
7987 $as_echo "$as_me: failed program was:" >&5 6465 ac_cv_struct_tm=sys/time.h
7988sed 's/^/| /' conftest.$ac_ext >&5
7989
7990 ac_cv_struct_tm=sys/time.h
7991fi 6466fi
7992
7993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7994fi 6468fi
7995{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 6469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7996$as_echo "$ac_cv_struct_tm" >&6; } 6470$as_echo "$ac_cv_struct_tm" >&6; }
7997if test $ac_cv_struct_tm = sys/time.h; then 6471if test $ac_cv_struct_tm = sys/time.h; then
7998 6472
7999cat >>confdefs.h <<\_ACEOF 6473$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8000#define TM_IN_SYS_TIME 1
8001_ACEOF
8002 6474
8003fi 6475fi
8004 6476
8005{ $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 6477ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8006$as_echo_n "checking for struct tm.tm_zone... " >&6; }
8007if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8008 $as_echo_n "(cached) " >&6
8009else
8010 cat >conftest.$ac_ext <<_ACEOF
8011/* confdefs.h. */
8012_ACEOF
8013cat confdefs.h >>conftest.$ac_ext
8014cat >>conftest.$ac_ext <<_ACEOF
8015/* end confdefs.h. */
8016#include <sys/types.h>
8017#include <$ac_cv_struct_tm>
8018
8019
8020int
8021main ()
8022{
8023static struct tm ac_aggr;
8024if (ac_aggr.tm_zone)
8025return 0;
8026 ;
8027 return 0;
8028}
8029_ACEOF
8030rm -f conftest.$ac_objext
8031if { (ac_try="$ac_compile"
8032case "(($ac_try" in
8033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8034 *) ac_try_echo=$ac_try;;
8035esac
8036eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8037$as_echo "$ac_try_echo") >&5
8038 (eval "$ac_compile") 2>conftest.er1
8039 ac_status=$?
8040 grep -v '^ *+' conftest.er1 >conftest.err
8041 rm -f conftest.er1
8042 cat conftest.err >&5
8043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } && {
8045 test -z "$ac_c_werror_flag" ||
8046 test ! -s conftest.err
8047 } && test -s conftest.$ac_objext; then
8048 ac_cv_member_struct_tm_tm_zone=yes
8049else
8050 $as_echo "$as_me: failed program was:" >&5
8051sed 's/^/| /' conftest.$ac_ext >&5
8052
8053 cat >conftest.$ac_ext <<_ACEOF
8054/* confdefs.h. */
8055_ACEOF
8056cat confdefs.h >>conftest.$ac_ext
8057cat >>conftest.$ac_ext <<_ACEOF
8058/* end confdefs.h. */
8059#include <sys/types.h>
8060#include <$ac_cv_struct_tm> 6478#include <$ac_cv_struct_tm>
8061 6479
8062 6480"
8063int 6481if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
8064main ()
8065{
8066static struct tm ac_aggr;
8067if (sizeof ac_aggr.tm_zone)
8068return 0;
8069 ;
8070 return 0;
8071}
8072_ACEOF
8073rm -f conftest.$ac_objext
8074if { (ac_try="$ac_compile"
8075case "(($ac_try" in
8076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8077 *) ac_try_echo=$ac_try;;
8078esac
8079eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8080$as_echo "$ac_try_echo") >&5
8081 (eval "$ac_compile") 2>conftest.er1
8082 ac_status=$?
8083 grep -v '^ *+' conftest.er1 >conftest.err
8084 rm -f conftest.er1
8085 cat conftest.err >&5
8086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } && {
8088 test -z "$ac_c_werror_flag" ||
8089 test ! -s conftest.err
8090 } && test -s conftest.$ac_objext; then
8091 ac_cv_member_struct_tm_tm_zone=yes
8092else
8093 $as_echo "$as_me: failed program was:" >&5
8094sed 's/^/| /' conftest.$ac_ext >&5
8095
8096 ac_cv_member_struct_tm_tm_zone=no
8097fi
8098
8099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8100fi
8101
8102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8103fi
8104{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8105$as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8106if test $ac_cv_member_struct_tm_tm_zone = yes; then
8107 6482
8108cat >>confdefs.h <<_ACEOF 6483cat >>confdefs.h <<_ACEOF
8109#define HAVE_STRUCT_TM_TM_ZONE 1 6484#define HAVE_STRUCT_TM_TM_ZONE 1
@@ -8114,91 +6489,27 @@ fi
8114 6489
8115if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 6490if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8116 6491
8117cat >>confdefs.h <<\_ACEOF 6492$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8118#define HAVE_TM_ZONE 1
8119_ACEOF
8120 6493
8121else 6494else
8122 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5 6495 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8123$as_echo_n "checking whether tzname is declared... " >&6; } 6496"
8124if test "${ac_cv_have_decl_tzname+set}" = set; then 6497if test "x$ac_cv_have_decl_tzname" = x""yes; then :
8125 $as_echo_n "(cached) " >&6 6498 ac_have_decl=1
8126else
8127 cat >conftest.$ac_ext <<_ACEOF
8128/* confdefs.h. */
8129_ACEOF
8130cat confdefs.h >>conftest.$ac_ext
8131cat >>conftest.$ac_ext <<_ACEOF
8132/* end confdefs.h. */
8133#include <time.h>
8134
8135int
8136main ()
8137{
8138#ifndef tzname
8139 (void) tzname;
8140#endif
8141
8142 ;
8143 return 0;
8144}
8145_ACEOF
8146rm -f conftest.$ac_objext
8147if { (ac_try="$ac_compile"
8148case "(($ac_try" in
8149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8150 *) ac_try_echo=$ac_try;;
8151esac
8152eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8153$as_echo "$ac_try_echo") >&5
8154 (eval "$ac_compile") 2>conftest.er1
8155 ac_status=$?
8156 grep -v '^ *+' conftest.er1 >conftest.err
8157 rm -f conftest.er1
8158 cat conftest.err >&5
8159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); } && {
8161 test -z "$ac_c_werror_flag" ||
8162 test ! -s conftest.err
8163 } && test -s conftest.$ac_objext; then
8164 ac_cv_have_decl_tzname=yes
8165else 6499else
8166 $as_echo "$as_me: failed program was:" >&5 6500 ac_have_decl=0
8167sed 's/^/| /' conftest.$ac_ext >&5
8168
8169 ac_cv_have_decl_tzname=no
8170fi 6501fi
8171 6502
8172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8173fi
8174{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8175$as_echo "$ac_cv_have_decl_tzname" >&6; }
8176if test $ac_cv_have_decl_tzname = yes; then
8177
8178cat >>confdefs.h <<_ACEOF 6503cat >>confdefs.h <<_ACEOF
8179#define HAVE_DECL_TZNAME 1 6504#define HAVE_DECL_TZNAME $ac_have_decl
8180_ACEOF
8181
8182
8183else
8184 cat >>confdefs.h <<_ACEOF
8185#define HAVE_DECL_TZNAME 0
8186_ACEOF 6505_ACEOF
8187 6506
8188 6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8189fi
8190
8191
8192 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8193$as_echo_n "checking for tzname... " >&6; } 6508$as_echo_n "checking for tzname... " >&6; }
8194if test "${ac_cv_var_tzname+set}" = set; then 6509if test "${ac_cv_var_tzname+set}" = set; then :
8195 $as_echo_n "(cached) " >&6 6510 $as_echo_n "(cached) " >&6
8196else 6511else
8197 cat >conftest.$ac_ext <<_ACEOF 6512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8198/* confdefs.h. */
8199_ACEOF
8200cat confdefs.h >>conftest.$ac_ext
8201cat >>conftest.$ac_ext <<_ACEOF
8202/* end confdefs.h. */ 6513/* end confdefs.h. */
8203#include <time.h> 6514#include <time.h>
8204#if !HAVE_DECL_TZNAME 6515#if !HAVE_DECL_TZNAME
@@ -8213,265 +6524,40 @@ return tzname[0][0];
8213 return 0; 6524 return 0;
8214} 6525}
8215_ACEOF 6526_ACEOF
8216rm -f conftest.$ac_objext conftest$ac_exeext 6527if ac_fn_c_try_link "$LINENO"; then :
8217if { (ac_try="$ac_link"
8218case "(($ac_try" in
8219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220 *) ac_try_echo=$ac_try;;
8221esac
8222eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8223$as_echo "$ac_try_echo") >&5
8224 (eval "$ac_link") 2>conftest.er1
8225 ac_status=$?
8226 grep -v '^ *+' conftest.er1 >conftest.err
8227 rm -f conftest.er1
8228 cat conftest.err >&5
8229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); } && {
8231 test -z "$ac_c_werror_flag" ||
8232 test ! -s conftest.err
8233 } && test -s conftest$ac_exeext && {
8234 test "$cross_compiling" = yes ||
8235 $as_test_x conftest$ac_exeext
8236 }; then
8237 ac_cv_var_tzname=yes 6528 ac_cv_var_tzname=yes
8238else 6529else
8239 $as_echo "$as_me: failed program was:" >&5 6530 ac_cv_var_tzname=no
8240sed 's/^/| /' conftest.$ac_ext >&5
8241
8242 ac_cv_var_tzname=no
8243fi 6531fi
8244 6532rm -f core conftest.err conftest.$ac_objext \
8245rm -rf conftest.dSYM 6533 conftest$ac_exeext conftest.$ac_ext
8246rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8247 conftest$ac_exeext conftest.$ac_ext
8248fi 6534fi
8249{ $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 6535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8250$as_echo "$ac_cv_var_tzname" >&6; } 6536$as_echo "$ac_cv_var_tzname" >&6; }
8251 if test $ac_cv_var_tzname = yes; then 6537 if test $ac_cv_var_tzname = yes; then
8252 6538
8253cat >>confdefs.h <<\_ACEOF 6539$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8254#define HAVE_TZNAME 1
8255_ACEOF
8256 6540
8257 fi 6541 fi
8258fi 6542fi
8259 6543
8260{ $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5 6544ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8261$as_echo_n "checking for struct tm.tm_gmtoff... " >&6; } 6545"
8262if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then 6546if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
8263 $as_echo_n "(cached) " >&6
8264else
8265 cat >conftest.$ac_ext <<_ACEOF
8266/* confdefs.h. */
8267_ACEOF
8268cat confdefs.h >>conftest.$ac_ext
8269cat >>conftest.$ac_ext <<_ACEOF
8270/* end confdefs.h. */
8271#include <time.h>
8272
8273int
8274main ()
8275{
8276static struct tm ac_aggr;
8277if (ac_aggr.tm_gmtoff)
8278return 0;
8279 ;
8280 return 0;
8281}
8282_ACEOF
8283rm -f conftest.$ac_objext
8284if { (ac_try="$ac_compile"
8285case "(($ac_try" in
8286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8287 *) ac_try_echo=$ac_try;;
8288esac
8289eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8290$as_echo "$ac_try_echo") >&5
8291 (eval "$ac_compile") 2>conftest.er1
8292 ac_status=$?
8293 grep -v '^ *+' conftest.er1 >conftest.err
8294 rm -f conftest.er1
8295 cat conftest.err >&5
8296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } && {
8298 test -z "$ac_c_werror_flag" ||
8299 test ! -s conftest.err
8300 } && test -s conftest.$ac_objext; then
8301 ac_cv_member_struct_tm_tm_gmtoff=yes
8302else
8303 $as_echo "$as_me: failed program was:" >&5
8304sed 's/^/| /' conftest.$ac_ext >&5
8305
8306 cat >conftest.$ac_ext <<_ACEOF
8307/* confdefs.h. */
8308_ACEOF
8309cat confdefs.h >>conftest.$ac_ext
8310cat >>conftest.$ac_ext <<_ACEOF
8311/* end confdefs.h. */
8312#include <time.h>
8313
8314int
8315main ()
8316{
8317static struct tm ac_aggr;
8318if (sizeof ac_aggr.tm_gmtoff)
8319return 0;
8320 ;
8321 return 0;
8322}
8323_ACEOF
8324rm -f conftest.$ac_objext
8325if { (ac_try="$ac_compile"
8326case "(($ac_try" in
8327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8328 *) ac_try_echo=$ac_try;;
8329esac
8330eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8331$as_echo "$ac_try_echo") >&5
8332 (eval "$ac_compile") 2>conftest.er1
8333 ac_status=$?
8334 grep -v '^ *+' conftest.er1 >conftest.err
8335 rm -f conftest.er1
8336 cat conftest.err >&5
8337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); } && {
8339 test -z "$ac_c_werror_flag" ||
8340 test ! -s conftest.err
8341 } && test -s conftest.$ac_objext; then
8342 ac_cv_member_struct_tm_tm_gmtoff=yes
8343else
8344 $as_echo "$as_me: failed program was:" >&5
8345sed 's/^/| /' conftest.$ac_ext >&5
8346
8347 ac_cv_member_struct_tm_tm_gmtoff=no
8348fi
8349
8350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8351fi
8352
8353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8354fi
8355{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8356$as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8357if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8358 6547
8359cat >>confdefs.h <<\_ACEOF 6548$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8360#define HAVE_TM_GMTOFF 1
8361_ACEOF
8362 6549
8363fi 6550fi
8364 6551
8365{ $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5 6552ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8366$as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8367if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8368 $as_echo_n "(cached) " >&6
8369else
8370 cat >conftest.$ac_ext <<_ACEOF
8371/* confdefs.h. */
8372_ACEOF
8373cat confdefs.h >>conftest.$ac_ext
8374cat >>conftest.$ac_ext <<_ACEOF
8375/* end confdefs.h. */
8376$ac_includes_default
8377#if HAVE_SYS_SOCKET_H
8378#include <sys/socket.h>
8379#endif
8380#if HAVE_NET_IF_H
8381#include <net/if.h>
8382#endif
8383
8384int
8385main ()
8386{
8387static struct ifreq ac_aggr;
8388if (ac_aggr.ifr_flags)
8389return 0;
8390 ;
8391 return 0;
8392}
8393_ACEOF
8394rm -f conftest.$ac_objext
8395if { (ac_try="$ac_compile"
8396case "(($ac_try" in
8397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8398 *) ac_try_echo=$ac_try;;
8399esac
8400eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8401$as_echo "$ac_try_echo") >&5
8402 (eval "$ac_compile") 2>conftest.er1
8403 ac_status=$?
8404 grep -v '^ *+' conftest.er1 >conftest.err
8405 rm -f conftest.er1
8406 cat conftest.err >&5
8407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); } && {
8409 test -z "$ac_c_werror_flag" ||
8410 test ! -s conftest.err
8411 } && test -s conftest.$ac_objext; then
8412 ac_cv_member_struct_ifreq_ifr_flags=yes
8413else
8414 $as_echo "$as_me: failed program was:" >&5
8415sed 's/^/| /' conftest.$ac_ext >&5
8416
8417 cat >conftest.$ac_ext <<_ACEOF
8418/* confdefs.h. */
8419_ACEOF
8420cat confdefs.h >>conftest.$ac_ext
8421cat >>conftest.$ac_ext <<_ACEOF
8422/* end confdefs.h. */
8423$ac_includes_default
8424#if HAVE_SYS_SOCKET_H 6553#if HAVE_SYS_SOCKET_H
8425#include <sys/socket.h> 6554#include <sys/socket.h>
8426#endif 6555#endif
8427#if HAVE_NET_IF_H 6556#if HAVE_NET_IF_H
8428#include <net/if.h> 6557#include <net/if.h>
8429#endif 6558#endif
8430 6559"
8431int 6560if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8432main ()
8433{
8434static struct ifreq ac_aggr;
8435if (sizeof ac_aggr.ifr_flags)
8436return 0;
8437 ;
8438 return 0;
8439}
8440_ACEOF
8441rm -f conftest.$ac_objext
8442if { (ac_try="$ac_compile"
8443case "(($ac_try" in
8444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445 *) ac_try_echo=$ac_try;;
8446esac
8447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8448$as_echo "$ac_try_echo") >&5
8449 (eval "$ac_compile") 2>conftest.er1
8450 ac_status=$?
8451 grep -v '^ *+' conftest.er1 >conftest.err
8452 rm -f conftest.er1
8453 cat conftest.err >&5
8454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); } && {
8456 test -z "$ac_c_werror_flag" ||
8457 test ! -s conftest.err
8458 } && test -s conftest.$ac_objext; then
8459 ac_cv_member_struct_ifreq_ifr_flags=yes
8460else
8461 $as_echo "$as_me: failed program was:" >&5
8462sed 's/^/| /' conftest.$ac_ext >&5
8463
8464 ac_cv_member_struct_ifreq_ifr_flags=no
8465fi
8466
8467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8468fi
8469
8470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8471fi
8472{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8473$as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8474if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8475 6561
8476cat >>confdefs.h <<_ACEOF 6562cat >>confdefs.h <<_ACEOF
8477#define HAVE_STRUCT_IFREQ_IFR_FLAGS 1 6563#define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
@@ -8479,116 +6565,15 @@ _ACEOF
8479 6565
8480 6566
8481fi 6567fi
8482{ $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5 6568ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8483$as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8484if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8485 $as_echo_n "(cached) " >&6
8486else
8487 cat >conftest.$ac_ext <<_ACEOF
8488/* confdefs.h. */
8489_ACEOF
8490cat confdefs.h >>conftest.$ac_ext
8491cat >>conftest.$ac_ext <<_ACEOF
8492/* end confdefs.h. */
8493$ac_includes_default
8494#if HAVE_SYS_SOCKET_H
8495#include <sys/socket.h>
8496#endif
8497#if HAVE_NET_IF_H
8498#include <net/if.h>
8499#endif
8500
8501int
8502main ()
8503{
8504static struct ifreq ac_aggr;
8505if (ac_aggr.ifr_hwaddr)
8506return 0;
8507 ;
8508 return 0;
8509}
8510_ACEOF
8511rm -f conftest.$ac_objext
8512if { (ac_try="$ac_compile"
8513case "(($ac_try" in
8514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515 *) ac_try_echo=$ac_try;;
8516esac
8517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8518$as_echo "$ac_try_echo") >&5
8519 (eval "$ac_compile") 2>conftest.er1
8520 ac_status=$?
8521 grep -v '^ *+' conftest.er1 >conftest.err
8522 rm -f conftest.er1
8523 cat conftest.err >&5
8524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } && {
8526 test -z "$ac_c_werror_flag" ||
8527 test ! -s conftest.err
8528 } && test -s conftest.$ac_objext; then
8529 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8530else
8531 $as_echo "$as_me: failed program was:" >&5
8532sed 's/^/| /' conftest.$ac_ext >&5
8533
8534 cat >conftest.$ac_ext <<_ACEOF
8535/* confdefs.h. */
8536_ACEOF
8537cat confdefs.h >>conftest.$ac_ext
8538cat >>conftest.$ac_ext <<_ACEOF
8539/* end confdefs.h. */
8540$ac_includes_default
8541#if HAVE_SYS_SOCKET_H 6569#if HAVE_SYS_SOCKET_H
8542#include <sys/socket.h> 6570#include <sys/socket.h>
8543#endif 6571#endif
8544#if HAVE_NET_IF_H 6572#if HAVE_NET_IF_H
8545#include <net/if.h> 6573#include <net/if.h>
8546#endif 6574#endif
8547 6575"
8548int 6576if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8549main ()
8550{
8551static struct ifreq ac_aggr;
8552if (sizeof ac_aggr.ifr_hwaddr)
8553return 0;
8554 ;
8555 return 0;
8556}
8557_ACEOF
8558rm -f conftest.$ac_objext
8559if { (ac_try="$ac_compile"
8560case "(($ac_try" in
8561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8562 *) ac_try_echo=$ac_try;;
8563esac
8564eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8565$as_echo "$ac_try_echo") >&5
8566 (eval "$ac_compile") 2>conftest.er1
8567 ac_status=$?
8568 grep -v '^ *+' conftest.er1 >conftest.err
8569 rm -f conftest.er1
8570 cat conftest.err >&5
8571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } && {
8573 test -z "$ac_c_werror_flag" ||
8574 test ! -s conftest.err
8575 } && test -s conftest.$ac_objext; then
8576 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8577else
8578 $as_echo "$as_me: failed program was:" >&5
8579sed 's/^/| /' conftest.$ac_ext >&5
8580
8581 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8582fi
8583
8584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8585fi
8586
8587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8588fi
8589{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8590$as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8591if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8592 6577
8593cat >>confdefs.h <<_ACEOF 6578cat >>confdefs.h <<_ACEOF
8594#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 6579#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
@@ -8596,116 +6581,15 @@ _ACEOF
8596 6581
8597 6582
8598fi 6583fi
8599{ $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5 6584ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8600$as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8601if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8602 $as_echo_n "(cached) " >&6
8603else
8604 cat >conftest.$ac_ext <<_ACEOF
8605/* confdefs.h. */
8606_ACEOF
8607cat confdefs.h >>conftest.$ac_ext
8608cat >>conftest.$ac_ext <<_ACEOF
8609/* end confdefs.h. */
8610$ac_includes_default
8611#if HAVE_SYS_SOCKET_H
8612#include <sys/socket.h>
8613#endif
8614#if HAVE_NET_IF_H
8615#include <net/if.h>
8616#endif
8617
8618int
8619main ()
8620{
8621static struct ifreq ac_aggr;
8622if (ac_aggr.ifr_netmask)
8623return 0;
8624 ;
8625 return 0;
8626}
8627_ACEOF
8628rm -f conftest.$ac_objext
8629if { (ac_try="$ac_compile"
8630case "(($ac_try" in
8631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8632 *) ac_try_echo=$ac_try;;
8633esac
8634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8635$as_echo "$ac_try_echo") >&5
8636 (eval "$ac_compile") 2>conftest.er1
8637 ac_status=$?
8638 grep -v '^ *+' conftest.er1 >conftest.err
8639 rm -f conftest.er1
8640 cat conftest.err >&5
8641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); } && {
8643 test -z "$ac_c_werror_flag" ||
8644 test ! -s conftest.err
8645 } && test -s conftest.$ac_objext; then
8646 ac_cv_member_struct_ifreq_ifr_netmask=yes
8647else
8648 $as_echo "$as_me: failed program was:" >&5
8649sed 's/^/| /' conftest.$ac_ext >&5
8650
8651 cat >conftest.$ac_ext <<_ACEOF
8652/* confdefs.h. */
8653_ACEOF
8654cat confdefs.h >>conftest.$ac_ext
8655cat >>conftest.$ac_ext <<_ACEOF
8656/* end confdefs.h. */
8657$ac_includes_default
8658#if HAVE_SYS_SOCKET_H 6585#if HAVE_SYS_SOCKET_H
8659#include <sys/socket.h> 6586#include <sys/socket.h>
8660#endif 6587#endif
8661#if HAVE_NET_IF_H 6588#if HAVE_NET_IF_H
8662#include <net/if.h> 6589#include <net/if.h>
8663#endif 6590#endif
8664 6591"
8665int 6592if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8666main ()
8667{
8668static struct ifreq ac_aggr;
8669if (sizeof ac_aggr.ifr_netmask)
8670return 0;
8671 ;
8672 return 0;
8673}
8674_ACEOF
8675rm -f conftest.$ac_objext
8676if { (ac_try="$ac_compile"
8677case "(($ac_try" in
8678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8679 *) ac_try_echo=$ac_try;;
8680esac
8681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8682$as_echo "$ac_try_echo") >&5
8683 (eval "$ac_compile") 2>conftest.er1
8684 ac_status=$?
8685 grep -v '^ *+' conftest.er1 >conftest.err
8686 rm -f conftest.er1
8687 cat conftest.err >&5
8688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); } && {
8690 test -z "$ac_c_werror_flag" ||
8691 test ! -s conftest.err
8692 } && test -s conftest.$ac_objext; then
8693 ac_cv_member_struct_ifreq_ifr_netmask=yes
8694else
8695 $as_echo "$as_me: failed program was:" >&5
8696sed 's/^/| /' conftest.$ac_ext >&5
8697
8698 ac_cv_member_struct_ifreq_ifr_netmask=no
8699fi
8700
8701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8702fi
8703
8704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8705fi
8706{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8707$as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8708if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8709 6593
8710cat >>confdefs.h <<_ACEOF 6594cat >>confdefs.h <<_ACEOF
8711#define HAVE_STRUCT_IFREQ_IFR_NETMASK 1 6595#define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
@@ -8713,116 +6597,15 @@ _ACEOF
8713 6597
8714 6598
8715fi 6599fi
8716{ $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5 6600ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8717$as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8718if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8719 $as_echo_n "(cached) " >&6
8720else
8721 cat >conftest.$ac_ext <<_ACEOF
8722/* confdefs.h. */
8723_ACEOF
8724cat confdefs.h >>conftest.$ac_ext
8725cat >>conftest.$ac_ext <<_ACEOF
8726/* end confdefs.h. */
8727$ac_includes_default
8728#if HAVE_SYS_SOCKET_H
8729#include <sys/socket.h>
8730#endif
8731#if HAVE_NET_IF_H
8732#include <net/if.h>
8733#endif
8734
8735int
8736main ()
8737{
8738static struct ifreq ac_aggr;
8739if (ac_aggr.ifr_broadaddr)
8740return 0;
8741 ;
8742 return 0;
8743}
8744_ACEOF
8745rm -f conftest.$ac_objext
8746if { (ac_try="$ac_compile"
8747case "(($ac_try" in
8748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8749 *) ac_try_echo=$ac_try;;
8750esac
8751eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8752$as_echo "$ac_try_echo") >&5
8753 (eval "$ac_compile") 2>conftest.er1
8754 ac_status=$?
8755 grep -v '^ *+' conftest.er1 >conftest.err
8756 rm -f conftest.er1
8757 cat conftest.err >&5
8758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } && {
8760 test -z "$ac_c_werror_flag" ||
8761 test ! -s conftest.err
8762 } && test -s conftest.$ac_objext; then
8763 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8764else
8765 $as_echo "$as_me: failed program was:" >&5
8766sed 's/^/| /' conftest.$ac_ext >&5
8767
8768 cat >conftest.$ac_ext <<_ACEOF
8769/* confdefs.h. */
8770_ACEOF
8771cat confdefs.h >>conftest.$ac_ext
8772cat >>conftest.$ac_ext <<_ACEOF
8773/* end confdefs.h. */
8774$ac_includes_default
8775#if HAVE_SYS_SOCKET_H 6601#if HAVE_SYS_SOCKET_H
8776#include <sys/socket.h> 6602#include <sys/socket.h>
8777#endif 6603#endif
8778#if HAVE_NET_IF_H 6604#if HAVE_NET_IF_H
8779#include <net/if.h> 6605#include <net/if.h>
8780#endif 6606#endif
8781 6607"
8782int 6608if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
8783main ()
8784{
8785static struct ifreq ac_aggr;
8786if (sizeof ac_aggr.ifr_broadaddr)
8787return 0;
8788 ;
8789 return 0;
8790}
8791_ACEOF
8792rm -f conftest.$ac_objext
8793if { (ac_try="$ac_compile"
8794case "(($ac_try" in
8795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8796 *) ac_try_echo=$ac_try;;
8797esac
8798eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8799$as_echo "$ac_try_echo") >&5
8800 (eval "$ac_compile") 2>conftest.er1
8801 ac_status=$?
8802 grep -v '^ *+' conftest.er1 >conftest.err
8803 rm -f conftest.er1
8804 cat conftest.err >&5
8805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } && {
8807 test -z "$ac_c_werror_flag" ||
8808 test ! -s conftest.err
8809 } && test -s conftest.$ac_objext; then
8810 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8811else
8812 $as_echo "$as_me: failed program was:" >&5
8813sed 's/^/| /' conftest.$ac_ext >&5
8814
8815 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8816fi
8817
8818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8819fi
8820
8821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8822fi
8823{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8824$as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8825if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8826 6609
8827cat >>confdefs.h <<_ACEOF 6610cat >>confdefs.h <<_ACEOF
8828#define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1 6611#define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
@@ -8830,116 +6613,15 @@ _ACEOF
8830 6613
8831 6614
8832fi 6615fi
8833{ $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5 6616ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8834$as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8835if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8836 $as_echo_n "(cached) " >&6
8837else
8838 cat >conftest.$ac_ext <<_ACEOF
8839/* confdefs.h. */
8840_ACEOF
8841cat confdefs.h >>conftest.$ac_ext
8842cat >>conftest.$ac_ext <<_ACEOF
8843/* end confdefs.h. */
8844$ac_includes_default
8845#if HAVE_SYS_SOCKET_H
8846#include <sys/socket.h>
8847#endif
8848#if HAVE_NET_IF_H
8849#include <net/if.h>
8850#endif
8851
8852int
8853main ()
8854{
8855static struct ifreq ac_aggr;
8856if (ac_aggr.ifr_addr)
8857return 0;
8858 ;
8859 return 0;
8860}
8861_ACEOF
8862rm -f conftest.$ac_objext
8863if { (ac_try="$ac_compile"
8864case "(($ac_try" in
8865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8866 *) ac_try_echo=$ac_try;;
8867esac
8868eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8869$as_echo "$ac_try_echo") >&5
8870 (eval "$ac_compile") 2>conftest.er1
8871 ac_status=$?
8872 grep -v '^ *+' conftest.er1 >conftest.err
8873 rm -f conftest.er1
8874 cat conftest.err >&5
8875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } && {
8877 test -z "$ac_c_werror_flag" ||
8878 test ! -s conftest.err
8879 } && test -s conftest.$ac_objext; then
8880 ac_cv_member_struct_ifreq_ifr_addr=yes
8881else
8882 $as_echo "$as_me: failed program was:" >&5
8883sed 's/^/| /' conftest.$ac_ext >&5
8884
8885 cat >conftest.$ac_ext <<_ACEOF
8886/* confdefs.h. */
8887_ACEOF
8888cat confdefs.h >>conftest.$ac_ext
8889cat >>conftest.$ac_ext <<_ACEOF
8890/* end confdefs.h. */
8891$ac_includes_default
8892#if HAVE_SYS_SOCKET_H 6617#if HAVE_SYS_SOCKET_H
8893#include <sys/socket.h> 6618#include <sys/socket.h>
8894#endif 6619#endif
8895#if HAVE_NET_IF_H 6620#if HAVE_NET_IF_H
8896#include <net/if.h> 6621#include <net/if.h>
8897#endif 6622#endif
8898 6623"
8899int 6624if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
8900main ()
8901{
8902static struct ifreq ac_aggr;
8903if (sizeof ac_aggr.ifr_addr)
8904return 0;
8905 ;
8906 return 0;
8907}
8908_ACEOF
8909rm -f conftest.$ac_objext
8910if { (ac_try="$ac_compile"
8911case "(($ac_try" in
8912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8913 *) ac_try_echo=$ac_try;;
8914esac
8915eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8916$as_echo "$ac_try_echo") >&5
8917 (eval "$ac_compile") 2>conftest.er1
8918 ac_status=$?
8919 grep -v '^ *+' conftest.er1 >conftest.err
8920 rm -f conftest.er1
8921 cat conftest.err >&5
8922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); } && {
8924 test -z "$ac_c_werror_flag" ||
8925 test ! -s conftest.err
8926 } && test -s conftest.$ac_objext; then
8927 ac_cv_member_struct_ifreq_ifr_addr=yes
8928else
8929 $as_echo "$as_me: failed program was:" >&5
8930sed 's/^/| /' conftest.$ac_ext >&5
8931
8932 ac_cv_member_struct_ifreq_ifr_addr=no
8933fi
8934
8935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8936fi
8937
8938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8939fi
8940{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8941$as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8942if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8943 6625
8944cat >>confdefs.h <<_ACEOF 6626cat >>confdefs.h <<_ACEOF
8945#define HAVE_STRUCT_IFREQ_IFR_ADDR 1 6627#define HAVE_STRUCT_IFREQ_IFR_ADDR 1
@@ -8950,36 +6632,28 @@ fi
8950 6632
8951 6633
8952 6634
8953{ $as_echo "$as_me:$LINENO: checking for function prototypes" >&5 6635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8954$as_echo_n "checking for function prototypes... " >&6; } 6636$as_echo_n "checking for function prototypes... " >&6; }
8955if test "$ac_cv_prog_cc_c89" != no; then 6637if test "$ac_cv_prog_cc_c89" != no; then
8956 { $as_echo "$as_me:$LINENO: result: yes" >&5 6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8957$as_echo "yes" >&6; } 6639$as_echo "yes" >&6; }
8958 6640
8959cat >>confdefs.h <<\_ACEOF 6641$as_echo "#define PROTOTYPES 1" >>confdefs.h
8960#define PROTOTYPES 1
8961_ACEOF
8962 6642
8963 6643
8964cat >>confdefs.h <<\_ACEOF 6644$as_echo "#define __PROTOTYPES 1" >>confdefs.h
8965#define __PROTOTYPES 1
8966_ACEOF
8967 6645
8968else 6646else
8969 { $as_echo "$as_me:$LINENO: result: no" >&5 6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8970$as_echo "no" >&6; } 6648$as_echo "no" >&6; }
8971fi 6649fi
8972 6650
8973{ $as_echo "$as_me:$LINENO: checking for working volatile" >&5 6651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8974$as_echo_n "checking for working volatile... " >&6; } 6652$as_echo_n "checking for working volatile... " >&6; }
8975if test "${ac_cv_c_volatile+set}" = set; then 6653if test "${ac_cv_c_volatile+set}" = set; then :
8976 $as_echo_n "(cached) " >&6 6654 $as_echo_n "(cached) " >&6
8977else 6655else
8978 cat >conftest.$ac_ext <<_ACEOF 6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979/* confdefs.h. */
8980_ACEOF
8981cat confdefs.h >>conftest.$ac_ext
8982cat >>conftest.$ac_ext <<_ACEOF
8983/* end confdefs.h. */ 6657/* end confdefs.h. */
8984 6658
8985int 6659int
@@ -8993,54 +6667,27 @@ return !x && !y;
8993 return 0; 6667 return 0;
8994} 6668}
8995_ACEOF 6669_ACEOF
8996rm -f conftest.$ac_objext 6670if ac_fn_c_try_compile "$LINENO"; then :
8997if { (ac_try="$ac_compile"
8998case "(($ac_try" in
8999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9000 *) ac_try_echo=$ac_try;;
9001esac
9002eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9003$as_echo "$ac_try_echo") >&5
9004 (eval "$ac_compile") 2>conftest.er1
9005 ac_status=$?
9006 grep -v '^ *+' conftest.er1 >conftest.err
9007 rm -f conftest.er1
9008 cat conftest.err >&5
9009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } && {
9011 test -z "$ac_c_werror_flag" ||
9012 test ! -s conftest.err
9013 } && test -s conftest.$ac_objext; then
9014 ac_cv_c_volatile=yes 6671 ac_cv_c_volatile=yes
9015else 6672else
9016 $as_echo "$as_me: failed program was:" >&5 6673 ac_cv_c_volatile=no
9017sed 's/^/| /' conftest.$ac_ext >&5
9018
9019 ac_cv_c_volatile=no
9020fi 6674fi
9021
9022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9023fi 6676fi
9024{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 6677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
9025$as_echo "$ac_cv_c_volatile" >&6; } 6678$as_echo "$ac_cv_c_volatile" >&6; }
9026if test $ac_cv_c_volatile = no; then 6679if test $ac_cv_c_volatile = no; then
9027 6680
9028cat >>confdefs.h <<\_ACEOF 6681$as_echo "#define volatile /**/" >>confdefs.h
9029#define volatile /**/
9030_ACEOF
9031 6682
9032fi 6683fi
9033 6684
9034{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 6685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9035$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 6686$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9036if test "${ac_cv_c_const+set}" = set; then 6687if test "${ac_cv_c_const+set}" = set; then :
9037 $as_echo_n "(cached) " >&6 6688 $as_echo_n "(cached) " >&6
9038else 6689else
9039 cat >conftest.$ac_ext <<_ACEOF 6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9040/* confdefs.h. */
9041_ACEOF
9042cat confdefs.h >>conftest.$ac_ext
9043cat >>conftest.$ac_ext <<_ACEOF
9044/* end confdefs.h. */ 6691/* end confdefs.h. */
9045 6692
9046int 6693int
@@ -9100,54 +6747,27 @@ main ()
9100 return 0; 6747 return 0;
9101} 6748}
9102_ACEOF 6749_ACEOF
9103rm -f conftest.$ac_objext 6750if ac_fn_c_try_compile "$LINENO"; then :
9104if { (ac_try="$ac_compile"
9105case "(($ac_try" in
9106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9107 *) ac_try_echo=$ac_try;;
9108esac
9109eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9110$as_echo "$ac_try_echo") >&5
9111 (eval "$ac_compile") 2>conftest.er1
9112 ac_status=$?
9113 grep -v '^ *+' conftest.er1 >conftest.err
9114 rm -f conftest.er1
9115 cat conftest.err >&5
9116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); } && {
9118 test -z "$ac_c_werror_flag" ||
9119 test ! -s conftest.err
9120 } && test -s conftest.$ac_objext; then
9121 ac_cv_c_const=yes 6751 ac_cv_c_const=yes
9122else 6752else
9123 $as_echo "$as_me: failed program was:" >&5 6753 ac_cv_c_const=no
9124sed 's/^/| /' conftest.$ac_ext >&5
9125
9126 ac_cv_c_const=no
9127fi 6754fi
9128
9129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9130fi 6756fi
9131{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 6757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9132$as_echo "$ac_cv_c_const" >&6; } 6758$as_echo "$ac_cv_c_const" >&6; }
9133if test $ac_cv_c_const = no; then 6759if test $ac_cv_c_const = no; then
9134 6760
9135cat >>confdefs.h <<\_ACEOF 6761$as_echo "#define const /**/" >>confdefs.h
9136#define const /**/
9137_ACEOF
9138 6762
9139fi 6763fi
9140 6764
9141{ $as_echo "$as_me:$LINENO: checking for void * support" >&5 6765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
9142$as_echo_n "checking for void * support... " >&6; } 6766$as_echo_n "checking for void * support... " >&6; }
9143if test "${emacs_cv_void_star+set}" = set; then 6767if test "${emacs_cv_void_star+set}" = set; then :
9144 $as_echo_n "(cached) " >&6 6768 $as_echo_n "(cached) " >&6
9145else 6769else
9146 cat >conftest.$ac_ext <<_ACEOF 6770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9147/* confdefs.h. */
9148_ACEOF
9149cat confdefs.h >>conftest.$ac_ext
9150cat >>conftest.$ac_ext <<_ACEOF
9151/* end confdefs.h. */ 6771/* end confdefs.h. */
9152 6772
9153int 6773int
@@ -9158,57 +6778,31 @@ void * foo;
9158 return 0; 6778 return 0;
9159} 6779}
9160_ACEOF 6780_ACEOF
9161rm -f conftest.$ac_objext 6781if ac_fn_c_try_compile "$LINENO"; then :
9162if { (ac_try="$ac_compile"
9163case "(($ac_try" in
9164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9165 *) ac_try_echo=$ac_try;;
9166esac
9167eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9168$as_echo "$ac_try_echo") >&5
9169 (eval "$ac_compile") 2>conftest.er1
9170 ac_status=$?
9171 grep -v '^ *+' conftest.er1 >conftest.err
9172 rm -f conftest.er1
9173 cat conftest.err >&5
9174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); } && {
9176 test -z "$ac_c_werror_flag" ||
9177 test ! -s conftest.err
9178 } && test -s conftest.$ac_objext; then
9179 emacs_cv_void_star=yes 6782 emacs_cv_void_star=yes
9180else 6783else
9181 $as_echo "$as_me: failed program was:" >&5 6784 emacs_cv_void_star=no
9182sed 's/^/| /' conftest.$ac_ext >&5
9183
9184 emacs_cv_void_star=no
9185fi 6785fi
9186
9187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9188fi 6787fi
9189{ $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5 6788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
9190$as_echo "$emacs_cv_void_star" >&6; } 6789$as_echo "$emacs_cv_void_star" >&6; }
9191if test $emacs_cv_void_star = yes; then 6790if test $emacs_cv_void_star = yes; then
9192 cat >>confdefs.h <<\_ACEOF 6791 $as_echo "#define POINTER_TYPE void" >>confdefs.h
9193#define POINTER_TYPE void
9194_ACEOF
9195 6792
9196else 6793else
9197 cat >>confdefs.h <<\_ACEOF 6794 $as_echo "#define POINTER_TYPE char" >>confdefs.h
9198#define POINTER_TYPE char
9199_ACEOF
9200 6795
9201fi 6796fi
9202 6797
9203 6798
9204 6799
9205 6800
9206 6801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9207{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9208$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 6802$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9209set x ${MAKE-make} 6803set x ${MAKE-make}
9210ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 6804ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9211if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 6805if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9212 $as_echo_n "(cached) " >&6 6806 $as_echo_n "(cached) " >&6
9213else 6807else
9214 cat >conftest.make <<\_ACEOF 6808 cat >conftest.make <<\_ACEOF
@@ -9226,18 +6820,18 @@ esac
9226rm -f conftest.make 6820rm -f conftest.make
9227fi 6821fi
9228if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 6822if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9229 { $as_echo "$as_me:$LINENO: result: yes" >&5 6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9230$as_echo "yes" >&6; } 6824$as_echo "yes" >&6; }
9231 SET_MAKE= 6825 SET_MAKE=
9232else 6826else
9233 { $as_echo "$as_me:$LINENO: result: no" >&5 6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9234$as_echo "no" >&6; } 6828$as_echo "no" >&6; }
9235 SET_MAKE="MAKE=${MAKE-make}" 6829 SET_MAKE="MAKE=${MAKE-make}"
9236fi 6830fi
9237 6831
9238 6832
9239if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then 6833if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9240 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5 6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9241$as_echo_n "checking whether we are using GNU Make... " >&6; } 6835$as_echo_n "checking whether we are using GNU Make... " >&6; }
9242 HAVE_GNU_MAKE=no 6836 HAVE_GNU_MAKE=no
9243 testval=`make --version 2>/dev/null | grep 'GNU Make'` 6837 testval=`make --version 2>/dev/null | grep 'GNU Make'`
@@ -9246,18 +6840,14 @@ $as_echo_n "checking whether we are using GNU Make... " >&6; }
9246 else 6840 else
9247 ac_enable_autodepend=no 6841 ac_enable_autodepend=no
9248 fi 6842 fi
9249 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5 6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9250$as_echo "$HAVE_GNU_MAKE" >&6; } 6844$as_echo "$HAVE_GNU_MAKE" >&6; }
9251 if test $HAVE_GNU_MAKE = yes; then 6845 if test $HAVE_GNU_MAKE = yes; then
9252 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5 6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9253$as_echo_n "checking whether gcc understands -MMD -MF... " >&6; } 6847$as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9254 SAVE_CFLAGS="$CFLAGS" 6848 SAVE_CFLAGS="$CFLAGS"
9255 CFLAGS="$CFLAGS -MMD -MF deps.d" 6849 CFLAGS="$CFLAGS -MMD -MF deps.d"
9256 cat >conftest.$ac_ext <<_ACEOF 6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9257/* confdefs.h. */
9258_ACEOF
9259cat confdefs.h >>conftest.$ac_ext
9260cat >>conftest.$ac_ext <<_ACEOF
9261/* end confdefs.h. */ 6851/* end confdefs.h. */
9262 6852
9263int 6853int
@@ -9268,51 +6858,28 @@ main ()
9268 return 0; 6858 return 0;
9269} 6859}
9270_ACEOF 6860_ACEOF
9271rm -f conftest.$ac_objext 6861if ac_fn_c_try_compile "$LINENO"; then :
9272if { (ac_try="$ac_compile"
9273case "(($ac_try" in
9274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9275 *) ac_try_echo=$ac_try;;
9276esac
9277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9278$as_echo "$ac_try_echo") >&5
9279 (eval "$ac_compile") 2>conftest.er1
9280 ac_status=$?
9281 grep -v '^ *+' conftest.er1 >conftest.err
9282 rm -f conftest.er1
9283 cat conftest.err >&5
9284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); } && {
9286 test -z "$ac_c_werror_flag" ||
9287 test ! -s conftest.err
9288 } && test -s conftest.$ac_objext; then
9289 :
9290else
9291 $as_echo "$as_me: failed program was:" >&5
9292sed 's/^/| /' conftest.$ac_ext >&5
9293 6862
9294 ac_enable_autodepend=no 6863else
6864 ac_enable_autodepend=no
9295fi 6865fi
9296
9297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9298 CFLAGS="$SAVE_CFLAGS" 6867 CFLAGS="$SAVE_CFLAGS"
9299 test -f deps.d || ac_enable_autodepend=no 6868 test -f deps.d || ac_enable_autodepend=no
9300 rm -rf deps.d 6869 rm -rf deps.d
9301 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5 6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9302$as_echo "$ac_enable_autodepend" >&6; } 6871$as_echo "$ac_enable_autodepend" >&6; }
9303 fi 6872 fi
9304 if test $ac_enable_autodepend = yes; then 6873 if test $ac_enable_autodepend = yes; then
9305 6874
9306cat >>confdefs.h <<\_ACEOF 6875$as_echo "#define AUTO_DEPEND 1" >>confdefs.h
9307#define AUTO_DEPEND 1
9308_ACEOF
9309 6876
9310 fi 6877 fi
9311fi 6878fi
9312 6879
9313{ $as_echo "$as_me:$LINENO: checking for long file names" >&5 6880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9314$as_echo_n "checking for long file names... " >&6; } 6881$as_echo_n "checking for long file names... " >&6; }
9315if test "${ac_cv_sys_long_file_names+set}" = set; then 6882if test "${ac_cv_sys_long_file_names+set}" = set; then :
9316 $as_echo_n "(cached) " >&6 6883 $as_echo_n "(cached) " >&6
9317else 6884else
9318 ac_cv_sys_long_file_names=yes 6885 ac_cv_sys_long_file_names=yes
@@ -9342,25 +6909,23 @@ for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib
9342 test $ac_cv_sys_long_file_names = no && break 6909 test $ac_cv_sys_long_file_names = no && break
9343done 6910done
9344fi 6911fi
9345{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5 6912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9346$as_echo "$ac_cv_sys_long_file_names" >&6; } 6913$as_echo "$ac_cv_sys_long_file_names" >&6; }
9347if test $ac_cv_sys_long_file_names = yes; then 6914if test $ac_cv_sys_long_file_names = yes; then
9348 6915
9349cat >>confdefs.h <<\_ACEOF 6916$as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9350#define HAVE_LONG_FILE_NAMES 1
9351_ACEOF
9352 6917
9353fi 6918fi
9354 6919
9355 6920
9356#### Choose a window system. 6921#### Choose a window system.
9357 6922
9358{ $as_echo "$as_me:$LINENO: checking for X" >&5 6923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9359$as_echo_n "checking for X... " >&6; } 6924$as_echo_n "checking for X... " >&6; }
9360 6925
9361 6926
9362# Check whether --with-x was given. 6927# Check whether --with-x was given.
9363if test "${with_x+set}" = set; then 6928if test "${with_x+set}" = set; then :
9364 withval=$with_x; 6929 withval=$with_x;
9365fi 6930fi
9366 6931
@@ -9370,10 +6935,8 @@ if test "x$with_x" = xno; then
9370 have_x=disabled 6935 have_x=disabled
9371else 6936else
9372 case $x_includes,$x_libraries in #( 6937 case $x_includes,$x_libraries in #(
9373 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 6938 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9374$as_echo "$as_me: error: Cannot use X directory names containing '" >&2;} 6939 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9375 { (exit 1); exit 1; }; };; #(
9376 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9377 $as_echo_n "(cached) " >&6 6940 $as_echo_n "(cached) " >&6
9378else 6941else
9379 # One or both of the vars are not set, and there is no cached value. 6942 # One or both of the vars are not set, and there is no cached value.
@@ -9409,7 +6972,7 @@ _ACEOF
9409 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 6972 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9410 esac 6973 esac
9411 case $ac_im_usrlibdir in 6974 case $ac_im_usrlibdir in
9412 /usr/lib | /lib) ;; 6975 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9413 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 6976 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9414 esac 6977 esac
9415 fi 6978 fi
@@ -9421,21 +6984,25 @@ fi
9421# Check X11 before X11Rn because it is often a symlink to the current release. 6984# Check X11 before X11Rn because it is often a symlink to the current release.
9422ac_x_header_dirs=' 6985ac_x_header_dirs='
9423/usr/X11/include 6986/usr/X11/include
6987/usr/X11R7/include
9424/usr/X11R6/include 6988/usr/X11R6/include
9425/usr/X11R5/include 6989/usr/X11R5/include
9426/usr/X11R4/include 6990/usr/X11R4/include
9427 6991
9428/usr/include/X11 6992/usr/include/X11
6993/usr/include/X11R7
9429/usr/include/X11R6 6994/usr/include/X11R6
9430/usr/include/X11R5 6995/usr/include/X11R5
9431/usr/include/X11R4 6996/usr/include/X11R4
9432 6997
9433/usr/local/X11/include 6998/usr/local/X11/include
6999/usr/local/X11R7/include
9434/usr/local/X11R6/include 7000/usr/local/X11R6/include
9435/usr/local/X11R5/include 7001/usr/local/X11R5/include
9436/usr/local/X11R4/include 7002/usr/local/X11R4/include
9437 7003
9438/usr/local/include/X11 7004/usr/local/include/X11
7005/usr/local/include/X11R7
9439/usr/local/include/X11R6 7006/usr/local/include/X11R6
9440/usr/local/include/X11R5 7007/usr/local/include/X11R5
9441/usr/local/include/X11R4 7008/usr/local/include/X11R4
@@ -9457,37 +7024,14 @@ ac_x_header_dirs='
9457if test "$ac_x_includes" = no; then 7024if test "$ac_x_includes" = no; then
9458 # Guess where to find include files, by looking for Xlib.h. 7025 # Guess where to find include files, by looking for Xlib.h.
9459 # First, try using that file with no special directory specified. 7026 # First, try using that file with no special directory specified.
9460 cat >conftest.$ac_ext <<_ACEOF 7027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9461/* confdefs.h. */
9462_ACEOF
9463cat confdefs.h >>conftest.$ac_ext
9464cat >>conftest.$ac_ext <<_ACEOF
9465/* end confdefs.h. */ 7028/* end confdefs.h. */
9466#include <X11/Xlib.h> 7029#include <X11/Xlib.h>
9467_ACEOF 7030_ACEOF
9468if { (ac_try="$ac_cpp conftest.$ac_ext" 7031if ac_fn_c_try_cpp "$LINENO"; then :
9469case "(($ac_try" in
9470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9471 *) ac_try_echo=$ac_try;;
9472esac
9473eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9474$as_echo "$ac_try_echo") >&5
9475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9476 ac_status=$?
9477 grep -v '^ *+' conftest.er1 >conftest.err
9478 rm -f conftest.er1
9479 cat conftest.err >&5
9480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); } >/dev/null && {
9482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9483 test ! -s conftest.err
9484 }; then
9485 # We can compile using X headers with no special include directory. 7032 # We can compile using X headers with no special include directory.
9486ac_x_includes= 7033ac_x_includes=
9487else 7034else
9488 $as_echo "$as_me: failed program was:" >&5
9489sed 's/^/| /' conftest.$ac_ext >&5
9490
9491 for ac_dir in $ac_x_header_dirs; do 7035 for ac_dir in $ac_x_header_dirs; do
9492 if test -r "$ac_dir/X11/Xlib.h"; then 7036 if test -r "$ac_dir/X11/Xlib.h"; then
9493 ac_x_includes=$ac_dir 7037 ac_x_includes=$ac_dir
@@ -9495,7 +7039,6 @@ sed 's/^/| /' conftest.$ac_ext >&5
9495 fi 7039 fi
9496done 7040done
9497fi 7041fi
9498
9499rm -f conftest.err conftest.$ac_ext 7042rm -f conftest.err conftest.$ac_ext
9500fi # $ac_x_includes = no 7043fi # $ac_x_includes = no
9501 7044
@@ -9505,11 +7048,7 @@ if test "$ac_x_libraries" = no; then
9505 # Don't add to $LIBS permanently. 7048 # Don't add to $LIBS permanently.
9506 ac_save_LIBS=$LIBS 7049 ac_save_LIBS=$LIBS
9507 LIBS="-lX11 $LIBS" 7050 LIBS="-lX11 $LIBS"
9508 cat >conftest.$ac_ext <<_ACEOF 7051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9509/* confdefs.h. */
9510_ACEOF
9511cat confdefs.h >>conftest.$ac_ext
9512cat >>conftest.$ac_ext <<_ACEOF
9513/* end confdefs.h. */ 7052/* end confdefs.h. */
9514#include <X11/Xlib.h> 7053#include <X11/Xlib.h>
9515int 7054int
@@ -9520,35 +7059,12 @@ XrmInitialize ()
9520 return 0; 7059 return 0;
9521} 7060}
9522_ACEOF 7061_ACEOF
9523rm -f conftest.$ac_objext conftest$ac_exeext 7062if ac_fn_c_try_link "$LINENO"; then :
9524if { (ac_try="$ac_link"
9525case "(($ac_try" in
9526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9527 *) ac_try_echo=$ac_try;;
9528esac
9529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9530$as_echo "$ac_try_echo") >&5
9531 (eval "$ac_link") 2>conftest.er1
9532 ac_status=$?
9533 grep -v '^ *+' conftest.er1 >conftest.err
9534 rm -f conftest.er1
9535 cat conftest.err >&5
9536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); } && {
9538 test -z "$ac_c_werror_flag" ||
9539 test ! -s conftest.err
9540 } && test -s conftest$ac_exeext && {
9541 test "$cross_compiling" = yes ||
9542 $as_test_x conftest$ac_exeext
9543 }; then
9544 LIBS=$ac_save_LIBS 7063 LIBS=$ac_save_LIBS
9545# We can link X programs with no special library path. 7064# We can link X programs with no special library path.
9546ac_x_libraries= 7065ac_x_libraries=
9547else 7066else
9548 $as_echo "$as_me: failed program was:" >&5 7067 LIBS=$ac_save_LIBS
9549sed 's/^/| /' conftest.$ac_ext >&5
9550
9551 LIBS=$ac_save_LIBS
9552for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 7068for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9553do 7069do
9554 # Don't even attempt the hair of trying to link an X program! 7070 # Don't even attempt the hair of trying to link an X program!
@@ -9560,10 +7076,8 @@ do
9560 done 7076 done
9561done 7077done
9562fi 7078fi
9563 7079rm -f core conftest.err conftest.$ac_objext \
9564rm -rf conftest.dSYM 7080 conftest$ac_exeext conftest.$ac_ext
9565rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9566 conftest$ac_exeext conftest.$ac_ext
9567fi # $ac_x_libraries = no 7081fi # $ac_x_libraries = no
9568 7082
9569case $ac_x_includes,$ac_x_libraries in #( 7083case $ac_x_includes,$ac_x_libraries in #(
@@ -9584,7 +7098,7 @@ fi
9584fi # $with_x != no 7098fi # $with_x != no
9585 7099
9586if test "$have_x" != yes; then 7100if test "$have_x" != yes; then
9587 { $as_echo "$as_me:$LINENO: result: $have_x" >&5 7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9588$as_echo "$have_x" >&6; } 7102$as_echo "$have_x" >&6; }
9589 no_x=yes 7103 no_x=yes
9590else 7104else
@@ -9595,7 +7109,7 @@ else
9595 ac_cv_have_x="have_x=yes\ 7109 ac_cv_have_x="have_x=yes\
9596 ac_x_includes='$x_includes'\ 7110 ac_x_includes='$x_includes'\
9597 ac_x_libraries='$x_libraries'" 7111 ac_x_libraries='$x_libraries'"
9598 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9599$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 7113$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9600fi 7114fi
9601 7115
@@ -9691,150 +7205,17 @@ if test "${with_ns}" != no; then
9691 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" 7205 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9692 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}" 7206 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9693 fi 7207 fi
9694 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then 7208 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9695 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5 7209if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9696$as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9697if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9698 $as_echo_n "(cached) " >&6
9699fi
9700{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9701$as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9702else
9703 # Is the header compilable?
9704{ $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9705$as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9706cat >conftest.$ac_ext <<_ACEOF
9707/* confdefs.h. */
9708_ACEOF
9709cat confdefs.h >>conftest.$ac_ext
9710cat >>conftest.$ac_ext <<_ACEOF
9711/* end confdefs.h. */
9712$ac_includes_default
9713#include <AppKit/AppKit.h>
9714_ACEOF
9715rm -f conftest.$ac_objext
9716if { (ac_try="$ac_compile"
9717case "(($ac_try" in
9718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719 *) ac_try_echo=$ac_try;;
9720esac
9721eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9722$as_echo "$ac_try_echo") >&5
9723 (eval "$ac_compile") 2>conftest.er1
9724 ac_status=$?
9725 grep -v '^ *+' conftest.er1 >conftest.err
9726 rm -f conftest.er1
9727 cat conftest.err >&5
9728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } && {
9730 test -z "$ac_c_werror_flag" ||
9731 test ! -s conftest.err
9732 } && test -s conftest.$ac_objext; then
9733 ac_header_compiler=yes
9734else
9735 $as_echo "$as_me: failed program was:" >&5
9736sed 's/^/| /' conftest.$ac_ext >&5
9737
9738 ac_header_compiler=no
9739fi
9740
9741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9742{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9743$as_echo "$ac_header_compiler" >&6; }
9744
9745# Is the header present?
9746{ $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9747$as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9748cat >conftest.$ac_ext <<_ACEOF
9749/* confdefs.h. */
9750_ACEOF
9751cat confdefs.h >>conftest.$ac_ext
9752cat >>conftest.$ac_ext <<_ACEOF
9753/* end confdefs.h. */
9754#include <AppKit/AppKit.h>
9755_ACEOF
9756if { (ac_try="$ac_cpp conftest.$ac_ext"
9757case "(($ac_try" in
9758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759 *) ac_try_echo=$ac_try;;
9760esac
9761eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9762$as_echo "$ac_try_echo") >&5
9763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9764 ac_status=$?
9765 grep -v '^ *+' conftest.er1 >conftest.err
9766 rm -f conftest.er1
9767 cat conftest.err >&5
9768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } >/dev/null && {
9770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9771 test ! -s conftest.err
9772 }; then
9773 ac_header_preproc=yes
9774else
9775 $as_echo "$as_me: failed program was:" >&5
9776sed 's/^/| /' conftest.$ac_ext >&5
9777
9778 ac_header_preproc=no
9779fi
9780
9781rm -f conftest.err conftest.$ac_ext
9782{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9783$as_echo "$ac_header_preproc" >&6; }
9784
9785# So? What about this header?
9786case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9787 yes:no: )
9788 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9789$as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9790 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9791$as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9792 ac_header_preproc=yes
9793 ;;
9794 no:yes:* )
9795 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9796$as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9797 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9798$as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9799 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9800$as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9801 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9802$as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9803 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9804$as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9805 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9806$as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9807
9808 ;;
9809esac
9810{ $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9811$as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9812if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9813 $as_echo_n "(cached) " >&6
9814else
9815 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9816fi
9817{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9818$as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9819
9820fi
9821if test $ac_cv_header_AppKit_AppKit_h = yes; then
9822 HAVE_NS=yes 7210 HAVE_NS=yes
9823else 7211else
9824 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include 7212 as_fn_error "\`--with-ns' was specified, but the include
9825 files are missing or cannot be compiled." >&5 7213 files are missing or cannot be compiled." "$LINENO" 5
9826$as_echo "$as_me: error: \`--with-ns' was specified, but the include
9827 files are missing or cannot be compiled." >&2;}
9828 { (exit 1); exit 1; }; }
9829fi 7214fi
9830 7215
9831 7216
9832 NS_HAVE_NSINTEGER=yes 7217 NS_HAVE_NSINTEGER=yes
9833 cat >conftest.$ac_ext <<_ACEOF 7218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9834/* confdefs.h. */
9835_ACEOF
9836cat confdefs.h >>conftest.$ac_ext
9837cat >>conftest.$ac_ext <<_ACEOF
9838/* end confdefs.h. */ 7219/* end confdefs.h. */
9839#include <Foundation/NSObjCRuntime.h> 7220#include <Foundation/NSObjCRuntime.h>
9840int 7221int
@@ -9845,32 +7226,11 @@ NSInteger i;
9845 return 0; 7226 return 0;
9846} 7227}
9847_ACEOF 7228_ACEOF
9848rm -f conftest.$ac_objext 7229if ac_fn_c_try_compile "$LINENO"; then :
9849if { (ac_try="$ac_compile"
9850case "(($ac_try" in
9851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852 *) ac_try_echo=$ac_try;;
9853esac
9854eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9855$as_echo "$ac_try_echo") >&5
9856 (eval "$ac_compile") 2>conftest.er1
9857 ac_status=$?
9858 grep -v '^ *+' conftest.er1 >conftest.err
9859 rm -f conftest.er1
9860 cat conftest.err >&5
9861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); } && {
9863 test -z "$ac_c_werror_flag" ||
9864 test ! -s conftest.err
9865 } && test -s conftest.$ac_objext; then
9866 ns_have_nsinteger=yes 7230 ns_have_nsinteger=yes
9867else 7231else
9868 $as_echo "$as_me: failed program was:" >&5 7232 ns_have_nsinteger=no
9869sed 's/^/| /' conftest.$ac_ext >&5
9870
9871 ns_have_nsinteger=no
9872fi 7233fi
9873
9874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9875 if test $ns_have_nsinteger = no; then 7235 if test $ns_have_nsinteger = no; then
9876 NS_HAVE_NSINTEGER=no 7236 NS_HAVE_NSINTEGER=no
@@ -9912,9 +7272,9 @@ esac
9912if test "$window_system" = none && test "X$with_x" != "Xno"; then 7272if test "$window_system" = none && test "X$with_x" != "Xno"; then
9913 # Extract the first word of "X", so it can be a program name with args. 7273 # Extract the first word of "X", so it can be a program name with args.
9914set dummy X; ac_word=$2 7274set dummy X; ac_word=$2
9915{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9916$as_echo_n "checking for $ac_word... " >&6; } 7276$as_echo_n "checking for $ac_word... " >&6; }
9917if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then 7277if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9918 $as_echo_n "(cached) " >&6 7278 $as_echo_n "(cached) " >&6
9919else 7279else
9920 if test -n "$HAVE_XSERVER"; then 7280 if test -n "$HAVE_XSERVER"; then
@@ -9925,14 +7285,14 @@ for as_dir in $PATH
9925do 7285do
9926 IFS=$as_save_IFS 7286 IFS=$as_save_IFS
9927 test -z "$as_dir" && as_dir=. 7287 test -z "$as_dir" && as_dir=.
9928 for ac_exec_ext in '' $ac_executable_extensions; do 7288 for ac_exec_ext in '' $ac_executable_extensions; do
9929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9930 ac_cv_prog_HAVE_XSERVER="true" 7290 ac_cv_prog_HAVE_XSERVER="true"
9931 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9932 break 2 7292 break 2
9933 fi 7293 fi
9934done 7294done
9935done 7295 done
9936IFS=$as_save_IFS 7296IFS=$as_save_IFS
9937 7297
9938 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false" 7298 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
@@ -9940,10 +7300,10 @@ fi
9940fi 7300fi
9941HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER 7301HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9942if test -n "$HAVE_XSERVER"; then 7302if test -n "$HAVE_XSERVER"; then
9943 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5 7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9944$as_echo "$HAVE_XSERVER" >&6; } 7304$as_echo "$HAVE_XSERVER" >&6; }
9945else 7305else
9946 { $as_echo "$as_me:$LINENO: result: no" >&5 7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9947$as_echo "no" >&6; } 7307$as_echo "no" >&6; }
9948fi 7308fi
9949 7309
@@ -9951,23 +7311,14 @@ fi
9951 if test "$HAVE_XSERVER" = true || 7311 if test "$HAVE_XSERVER" = true ||
9952 test -n "$DISPLAY" || 7312 test -n "$DISPLAY" ||
9953 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then 7313 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9954 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries 7314 as_fn_error "You seem to be running X, but no X development libraries
9955were found. You should install the relevant development files for X 7315were found. You should install the relevant development files for X
9956and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make 7316and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9957sure you have development files for image handling, i.e. 7317sure you have development files for image handling, i.e.
9958tiff, gif, jpeg, png and xpm. 7318tiff, gif, jpeg, png and xpm.
9959If you are sure you want Emacs compiled without X window support, pass 7319If you are sure you want Emacs compiled without X window support, pass
9960 --without-x 7320 --without-x
9961to configure." >&5 7321to configure." "$LINENO" 5
9962$as_echo "$as_me: error: You seem to be running X, but no X development libraries
9963were found. You should install the relevant development files for X
9964and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9965sure you have development files for image handling, i.e.
9966tiff, gif, jpeg, png and xpm.
9967If you are sure you want Emacs compiled without X window support, pass
9968 --without-x
9969to configure." >&2;}
9970 { (exit 1); exit 1; }; }
9971 fi 7322 fi
9972fi 7323fi
9973 7324
@@ -9981,198 +7332,26 @@ esac
9981# Assume not, until told otherwise. 7332# Assume not, until told otherwise.
9982GNU_MALLOC=yes 7333GNU_MALLOC=yes
9983doug_lea_malloc=yes 7334doug_lea_malloc=yes
9984{ $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5 7335ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9985$as_echo_n "checking for malloc_get_state... " >&6; } 7336if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
9986if test "${ac_cv_func_malloc_get_state+set}" = set; then
9987 $as_echo_n "(cached) " >&6
9988else
9989 cat >conftest.$ac_ext <<_ACEOF
9990/* confdefs.h. */
9991_ACEOF
9992cat confdefs.h >>conftest.$ac_ext
9993cat >>conftest.$ac_ext <<_ACEOF
9994/* end confdefs.h. */
9995/* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9997#define malloc_get_state innocuous_malloc_get_state
9998
9999/* System header to define __stub macros and hopefully few prototypes,
10000 which can conflict with char malloc_get_state (); below.
10001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10002 <limits.h> exists even on freestanding compilers. */
10003
10004#ifdef __STDC__
10005# include <limits.h>
10006#else
10007# include <assert.h>
10008#endif
10009
10010#undef malloc_get_state
10011
10012/* Override any GCC internal prototype to avoid an error.
10013 Use char because int might match the return type of a GCC
10014 builtin and then its argument prototype would still apply. */
10015#ifdef __cplusplus
10016extern "C"
10017#endif
10018char malloc_get_state ();
10019/* The GNU C library defines this for functions which it implements
10020 to always fail with ENOSYS. Some functions are actually named
10021 something starting with __ and the normal name is an alias. */
10022#if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10023choke me
10024#endif
10025
10026int
10027main ()
10028{
10029return malloc_get_state ();
10030 ;
10031 return 0;
10032}
10033_ACEOF
10034rm -f conftest.$ac_objext conftest$ac_exeext
10035if { (ac_try="$ac_link"
10036case "(($ac_try" in
10037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10038 *) ac_try_echo=$ac_try;;
10039esac
10040eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10041$as_echo "$ac_try_echo") >&5
10042 (eval "$ac_link") 2>conftest.er1
10043 ac_status=$?
10044 grep -v '^ *+' conftest.er1 >conftest.err
10045 rm -f conftest.er1
10046 cat conftest.err >&5
10047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); } && {
10049 test -z "$ac_c_werror_flag" ||
10050 test ! -s conftest.err
10051 } && test -s conftest$ac_exeext && {
10052 test "$cross_compiling" = yes ||
10053 $as_test_x conftest$ac_exeext
10054 }; then
10055 ac_cv_func_malloc_get_state=yes
10056else
10057 $as_echo "$as_me: failed program was:" >&5
10058sed 's/^/| /' conftest.$ac_ext >&5
10059
10060 ac_cv_func_malloc_get_state=no
10061fi
10062 7337
10063rm -rf conftest.dSYM
10064rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10065 conftest$ac_exeext conftest.$ac_ext
10066fi
10067{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10068$as_echo "$ac_cv_func_malloc_get_state" >&6; }
10069if test $ac_cv_func_malloc_get_state = yes; then
10070 :
10071else 7338else
10072 doug_lea_malloc=no 7339 doug_lea_malloc=no
10073fi 7340fi
10074 7341
10075{ $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5 7342ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
10076$as_echo_n "checking for malloc_set_state... " >&6; } 7343if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
10077if test "${ac_cv_func_malloc_set_state+set}" = set; then
10078 $as_echo_n "(cached) " >&6
10079else
10080 cat >conftest.$ac_ext <<_ACEOF
10081/* confdefs.h. */
10082_ACEOF
10083cat confdefs.h >>conftest.$ac_ext
10084cat >>conftest.$ac_ext <<_ACEOF
10085/* end confdefs.h. */
10086/* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10088#define malloc_set_state innocuous_malloc_set_state
10089
10090/* System header to define __stub macros and hopefully few prototypes,
10091 which can conflict with char malloc_set_state (); below.
10092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10093 <limits.h> exists even on freestanding compilers. */
10094
10095#ifdef __STDC__
10096# include <limits.h>
10097#else
10098# include <assert.h>
10099#endif
10100
10101#undef malloc_set_state
10102
10103/* Override any GCC internal prototype to avoid an error.
10104 Use char because int might match the return type of a GCC
10105 builtin and then its argument prototype would still apply. */
10106#ifdef __cplusplus
10107extern "C"
10108#endif
10109char malloc_set_state ();
10110/* The GNU C library defines this for functions which it implements
10111 to always fail with ENOSYS. Some functions are actually named
10112 something starting with __ and the normal name is an alias. */
10113#if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10114choke me
10115#endif
10116
10117int
10118main ()
10119{
10120return malloc_set_state ();
10121 ;
10122 return 0;
10123}
10124_ACEOF
10125rm -f conftest.$ac_objext conftest$ac_exeext
10126if { (ac_try="$ac_link"
10127case "(($ac_try" in
10128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10129 *) ac_try_echo=$ac_try;;
10130esac
10131eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10132$as_echo "$ac_try_echo") >&5
10133 (eval "$ac_link") 2>conftest.er1
10134 ac_status=$?
10135 grep -v '^ *+' conftest.er1 >conftest.err
10136 rm -f conftest.er1
10137 cat conftest.err >&5
10138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); } && {
10140 test -z "$ac_c_werror_flag" ||
10141 test ! -s conftest.err
10142 } && test -s conftest$ac_exeext && {
10143 test "$cross_compiling" = yes ||
10144 $as_test_x conftest$ac_exeext
10145 }; then
10146 ac_cv_func_malloc_set_state=yes
10147else
10148 $as_echo "$as_me: failed program was:" >&5
10149sed 's/^/| /' conftest.$ac_ext >&5
10150
10151 ac_cv_func_malloc_set_state=no
10152fi
10153 7344
10154rm -rf conftest.dSYM
10155rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10156 conftest$ac_exeext conftest.$ac_ext
10157fi
10158{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10159$as_echo "$ac_cv_func_malloc_set_state" >&6; }
10160if test $ac_cv_func_malloc_set_state = yes; then
10161 :
10162else 7345else
10163 doug_lea_malloc=no 7346 doug_lea_malloc=no
10164fi 7347fi
10165 7348
10166{ $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5 7349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
10167$as_echo_n "checking whether __after_morecore_hook exists... " >&6; } 7350$as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10168if test "${emacs_cv_var___after_morecore_hook+set}" = set; then 7351if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
10169 $as_echo_n "(cached) " >&6 7352 $as_echo_n "(cached) " >&6
10170else 7353else
10171 cat >conftest.$ac_ext <<_ACEOF 7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10172/* confdefs.h. */
10173_ACEOF
10174cat confdefs.h >>conftest.$ac_ext
10175cat >>conftest.$ac_ext <<_ACEOF
10176/* end confdefs.h. */ 7355/* end confdefs.h. */
10177extern void (* __after_morecore_hook)(); 7356extern void (* __after_morecore_hook)();
10178int 7357int
@@ -10183,40 +7362,15 @@ __after_morecore_hook = 0
10183 return 0; 7362 return 0;
10184} 7363}
10185_ACEOF 7364_ACEOF
10186rm -f conftest.$ac_objext conftest$ac_exeext 7365if ac_fn_c_try_link "$LINENO"; then :
10187if { (ac_try="$ac_link"
10188case "(($ac_try" in
10189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190 *) ac_try_echo=$ac_try;;
10191esac
10192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10193$as_echo "$ac_try_echo") >&5
10194 (eval "$ac_link") 2>conftest.er1
10195 ac_status=$?
10196 grep -v '^ *+' conftest.er1 >conftest.err
10197 rm -f conftest.er1
10198 cat conftest.err >&5
10199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } && {
10201 test -z "$ac_c_werror_flag" ||
10202 test ! -s conftest.err
10203 } && test -s conftest$ac_exeext && {
10204 test "$cross_compiling" = yes ||
10205 $as_test_x conftest$ac_exeext
10206 }; then
10207 emacs_cv_var___after_morecore_hook=yes 7366 emacs_cv_var___after_morecore_hook=yes
10208else 7367else
10209 $as_echo "$as_me: failed program was:" >&5 7368 emacs_cv_var___after_morecore_hook=no
10210sed 's/^/| /' conftest.$ac_ext >&5
10211
10212 emacs_cv_var___after_morecore_hook=no
10213fi 7369fi
10214 7370rm -f core conftest.err conftest.$ac_objext \
10215rm -rf conftest.dSYM 7371 conftest$ac_exeext conftest.$ac_ext
10216rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10217 conftest$ac_exeext conftest.$ac_ext
10218fi 7372fi
10219{ $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5 7373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
10220$as_echo "$emacs_cv_var___after_morecore_hook" >&6; } 7374$as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10221if test $emacs_cv_var___after_morecore_hook = no; then 7375if test $emacs_cv_var___after_morecore_hook = no; then
10222 doug_lea_malloc=no 7376 doug_lea_malloc=no
@@ -10232,9 +7386,7 @@ if test "$doug_lea_malloc" = "yes" ; then
10232 (Using Doug Lea's new malloc from the GNU C Library.)" 7386 (Using Doug Lea's new malloc from the GNU C Library.)"
10233 fi 7387 fi
10234 7388
10235cat >>confdefs.h <<\_ACEOF 7389$as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10236#define DOUG_LEA_MALLOC 1
10237_ACEOF
10238 7390
10239fi 7391fi
10240 7392
@@ -10245,142 +7397,14 @@ fi
10245 7397
10246 7398
10247 7399
10248for ac_header in stdlib.h unistd.h
10249do
10250as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10251if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10252 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10253$as_echo_n "checking for $ac_header... " >&6; }
10254if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10255 $as_echo_n "(cached) " >&6
10256fi
10257ac_res=`eval 'as_val=${'$as_ac_Header'}
10258 $as_echo "$as_val"'`
10259 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10260$as_echo "$ac_res" >&6; }
10261else
10262 # Is the header compilable?
10263{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10264$as_echo_n "checking $ac_header usability... " >&6; }
10265cat >conftest.$ac_ext <<_ACEOF
10266/* confdefs.h. */
10267_ACEOF
10268cat confdefs.h >>conftest.$ac_ext
10269cat >>conftest.$ac_ext <<_ACEOF
10270/* end confdefs.h. */
10271$ac_includes_default
10272#include <$ac_header>
10273_ACEOF
10274rm -f conftest.$ac_objext
10275if { (ac_try="$ac_compile"
10276case "(($ac_try" in
10277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10278 *) ac_try_echo=$ac_try;;
10279esac
10280eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10281$as_echo "$ac_try_echo") >&5
10282 (eval "$ac_compile") 2>conftest.er1
10283 ac_status=$?
10284 grep -v '^ *+' conftest.er1 >conftest.err
10285 rm -f conftest.er1
10286 cat conftest.err >&5
10287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); } && {
10289 test -z "$ac_c_werror_flag" ||
10290 test ! -s conftest.err
10291 } && test -s conftest.$ac_objext; then
10292 ac_header_compiler=yes
10293else
10294 $as_echo "$as_me: failed program was:" >&5
10295sed 's/^/| /' conftest.$ac_ext >&5
10296
10297 ac_header_compiler=no
10298fi
10299
10300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10301{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10302$as_echo "$ac_header_compiler" >&6; }
10303
10304# Is the header present?
10305{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10306$as_echo_n "checking $ac_header presence... " >&6; }
10307cat >conftest.$ac_ext <<_ACEOF
10308/* confdefs.h. */
10309_ACEOF
10310cat confdefs.h >>conftest.$ac_ext
10311cat >>conftest.$ac_ext <<_ACEOF
10312/* end confdefs.h. */
10313#include <$ac_header>
10314_ACEOF
10315if { (ac_try="$ac_cpp conftest.$ac_ext"
10316case "(($ac_try" in
10317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10318 *) ac_try_echo=$ac_try;;
10319esac
10320eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10321$as_echo "$ac_try_echo") >&5
10322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10323 ac_status=$?
10324 grep -v '^ *+' conftest.er1 >conftest.err
10325 rm -f conftest.er1
10326 cat conftest.err >&5
10327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); } >/dev/null && {
10329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10330 test ! -s conftest.err
10331 }; then
10332 ac_header_preproc=yes
10333else
10334 $as_echo "$as_me: failed program was:" >&5
10335sed 's/^/| /' conftest.$ac_ext >&5
10336
10337 ac_header_preproc=no
10338fi
10339
10340rm -f conftest.err conftest.$ac_ext
10341{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10342$as_echo "$ac_header_preproc" >&6; }
10343
10344# So? What about this header?
10345case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10346 yes:no: )
10347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10348$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10350$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10351 ac_header_preproc=yes
10352 ;;
10353 no:yes:* )
10354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10355$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10357$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10359$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10361$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10363$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10365$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10366
10367 ;;
10368esac
10369{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10370$as_echo_n "checking for $ac_header... " >&6; }
10371if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10372 $as_echo_n "(cached) " >&6
10373else
10374 eval "$as_ac_Header=\$ac_header_preproc"
10375fi
10376ac_res=`eval 'as_val=${'$as_ac_Header'}
10377 $as_echo "$as_val"'`
10378 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10379$as_echo "$ac_res" >&6; }
10380 7400
10381fi 7401 for ac_header in $ac_header_list
10382if test `eval 'as_val=${'$as_ac_Header'} 7402do :
10383 $as_echo "$as_val"'` = yes; then 7403 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7404ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7405"
7406eval as_val=\$$as_ac_Header
7407 if test "x$as_val" = x""yes; then :
10384 cat >>confdefs.h <<_ACEOF 7408 cat >>confdefs.h <<_ACEOF
10385#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7409#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10386_ACEOF 7410_ACEOF
@@ -10390,118 +7414,32 @@ fi
10390done 7414done
10391 7415
10392 7416
10393for ac_func in getpagesize
10394do
10395as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10396{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10397$as_echo_n "checking for $ac_func... " >&6; }
10398if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10399 $as_echo_n "(cached) " >&6
10400else
10401 cat >conftest.$ac_ext <<_ACEOF
10402/* confdefs.h. */
10403_ACEOF
10404cat confdefs.h >>conftest.$ac_ext
10405cat >>conftest.$ac_ext <<_ACEOF
10406/* end confdefs.h. */
10407/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10409#define $ac_func innocuous_$ac_func
10410
10411/* System header to define __stub macros and hopefully few prototypes,
10412 which can conflict with char $ac_func (); below.
10413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10414 <limits.h> exists even on freestanding compilers. */
10415 7417
10416#ifdef __STDC__
10417# include <limits.h>
10418#else
10419# include <assert.h>
10420#endif
10421 7418
10422#undef $ac_func
10423 7419
10424/* Override any GCC internal prototype to avoid an error.
10425 Use char because int might match the return type of a GCC
10426 builtin and then its argument prototype would still apply. */
10427#ifdef __cplusplus
10428extern "C"
10429#endif
10430char $ac_func ();
10431/* The GNU C library defines this for functions which it implements
10432 to always fail with ENOSYS. Some functions are actually named
10433 something starting with __ and the normal name is an alias. */
10434#if defined __stub_$ac_func || defined __stub___$ac_func
10435choke me
10436#endif
10437 7420
10438int
10439main ()
10440{
10441return $ac_func ();
10442 ;
10443 return 0;
10444}
10445_ACEOF
10446rm -f conftest.$ac_objext conftest$ac_exeext
10447if { (ac_try="$ac_link"
10448case "(($ac_try" in
10449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10450 *) ac_try_echo=$ac_try;;
10451esac
10452eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10453$as_echo "$ac_try_echo") >&5
10454 (eval "$ac_link") 2>conftest.er1
10455 ac_status=$?
10456 grep -v '^ *+' conftest.er1 >conftest.err
10457 rm -f conftest.er1
10458 cat conftest.err >&5
10459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } && {
10461 test -z "$ac_c_werror_flag" ||
10462 test ! -s conftest.err
10463 } && test -s conftest$ac_exeext && {
10464 test "$cross_compiling" = yes ||
10465 $as_test_x conftest$ac_exeext
10466 }; then
10467 eval "$as_ac_var=yes"
10468else
10469 $as_echo "$as_me: failed program was:" >&5
10470sed 's/^/| /' conftest.$ac_ext >&5
10471 7421
10472 eval "$as_ac_var=no"
10473fi
10474 7422
10475rm -rf conftest.dSYM 7423for ac_func in getpagesize
10476rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7424do :
10477 conftest$ac_exeext conftest.$ac_ext 7425 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10478fi 7426if test "x$ac_cv_func_getpagesize" = x""yes; then :
10479ac_res=`eval 'as_val=${'$as_ac_var'}
10480 $as_echo "$as_val"'`
10481 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10482$as_echo "$ac_res" >&6; }
10483if test `eval 'as_val=${'$as_ac_var'}
10484 $as_echo "$as_val"'` = yes; then
10485 cat >>confdefs.h <<_ACEOF 7427 cat >>confdefs.h <<_ACEOF
10486#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7428#define HAVE_GETPAGESIZE 1
10487_ACEOF 7429_ACEOF
10488 7430
10489fi 7431fi
10490done 7432done
10491 7433
10492{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5 7434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10493$as_echo_n "checking for working mmap... " >&6; } 7435$as_echo_n "checking for working mmap... " >&6; }
10494if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 7436if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10495 $as_echo_n "(cached) " >&6 7437 $as_echo_n "(cached) " >&6
10496else 7438else
10497 if test "$cross_compiling" = yes; then 7439 if test "$cross_compiling" = yes; then :
10498 ac_cv_func_mmap_fixed_mapped=no 7440 ac_cv_func_mmap_fixed_mapped=no
10499else 7441else
10500 cat >conftest.$ac_ext <<_ACEOF 7442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10501/* confdefs.h. */
10502_ACEOF
10503cat confdefs.h >>conftest.$ac_ext
10504cat >>conftest.$ac_ext <<_ACEOF
10505/* end confdefs.h. */ 7443/* end confdefs.h. */
10506$ac_includes_default 7444$ac_includes_default
10507/* malloc might have been renamed as rpl_malloc. */ 7445/* malloc might have been renamed as rpl_malloc. */
@@ -10538,11 +7476,6 @@ char *malloc ();
10538 7476
10539/* This mess was copied from the GNU getpagesize.h. */ 7477/* This mess was copied from the GNU getpagesize.h. */
10540#ifndef HAVE_GETPAGESIZE 7478#ifndef HAVE_GETPAGESIZE
10541/* Assume that all systems that can run configure have sys/param.h. */
10542# ifndef HAVE_SYS_PARAM_H
10543# define HAVE_SYS_PARAM_H 1
10544# endif
10545
10546# ifdef _SC_PAGESIZE 7479# ifdef _SC_PAGESIZE
10547# define getpagesize() sysconf(_SC_PAGESIZE) 7480# define getpagesize() sysconf(_SC_PAGESIZE)
10548# else /* no _SC_PAGESIZE */ 7481# else /* no _SC_PAGESIZE */
@@ -10577,8 +7510,9 @@ int
10577main () 7510main ()
10578{ 7511{
10579 char *data, *data2, *data3; 7512 char *data, *data2, *data3;
7513 const char *cdata2;
10580 int i, pagesize; 7514 int i, pagesize;
10581 int fd; 7515 int fd, fd2;
10582 7516
10583 pagesize = getpagesize (); 7517 pagesize = getpagesize ();
10584 7518
@@ -10591,27 +7525,41 @@ main ()
10591 umask (0); 7525 umask (0);
10592 fd = creat ("conftest.mmap", 0600); 7526 fd = creat ("conftest.mmap", 0600);
10593 if (fd < 0) 7527 if (fd < 0)
10594 return 1; 7528 return 2;
10595 if (write (fd, data, pagesize) != pagesize) 7529 if (write (fd, data, pagesize) != pagesize)
10596 return 1; 7530 return 3;
10597 close (fd); 7531 close (fd);
10598 7532
7533 /* Next, check that the tail of a page is zero-filled. File must have
7534 non-zero length, otherwise we risk SIGBUS for entire page. */
7535 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7536 if (fd2 < 0)
7537 return 4;
7538 cdata2 = "";
7539 if (write (fd2, cdata2, 1) != 1)
7540 return 5;
7541 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7542 if (data2 == MAP_FAILED)
7543 return 6;
7544 for (i = 0; i < pagesize; ++i)
7545 if (*(data2 + i))
7546 return 7;
7547 close (fd2);
7548 if (munmap (data2, pagesize))
7549 return 8;
7550
10599 /* Next, try to mmap the file at a fixed address which already has 7551 /* Next, try to mmap the file at a fixed address which already has
10600 something else allocated at it. If we can, also make sure that 7552 something else allocated at it. If we can, also make sure that
10601 we see the same garbage. */ 7553 we see the same garbage. */
10602 fd = open ("conftest.mmap", O_RDWR); 7554 fd = open ("conftest.mmap", O_RDWR);
10603 if (fd < 0) 7555 if (fd < 0)
10604 return 1; 7556 return 9;
10605 data2 = (char *) malloc (2 * pagesize);
10606 if (!data2)
10607 return 1;
10608 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10609 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 7557 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10610 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 7558 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10611 return 1; 7559 return 10;
10612 for (i = 0; i < pagesize; ++i) 7560 for (i = 0; i < pagesize; ++i)
10613 if (*(data + i) != *(data2 + i)) 7561 if (*(data + i) != *(data2 + i))
10614 return 1; 7562 return 11;
10615 7563
10616 /* Finally, make sure that changes to the mapped area do not 7564 /* Finally, make sure that changes to the mapped area do not
10617 percolate back to the file as seen by read(). (This is a bug on 7565 percolate back to the file as seen by read(). (This is a bug on
@@ -10620,63 +7568,34 @@ main ()
10620 *(data2 + i) = *(data2 + i) + 1; 7568 *(data2 + i) = *(data2 + i) + 1;
10621 data3 = (char *) malloc (pagesize); 7569 data3 = (char *) malloc (pagesize);
10622 if (!data3) 7570 if (!data3)
10623 return 1; 7571 return 12;
10624 if (read (fd, data3, pagesize) != pagesize) 7572 if (read (fd, data3, pagesize) != pagesize)
10625 return 1; 7573 return 13;
10626 for (i = 0; i < pagesize; ++i) 7574 for (i = 0; i < pagesize; ++i)
10627 if (*(data + i) != *(data3 + i)) 7575 if (*(data + i) != *(data3 + i))
10628 return 1; 7576 return 14;
10629 close (fd); 7577 close (fd);
10630 return 0; 7578 return 0;
10631} 7579}
10632_ACEOF 7580_ACEOF
10633rm -f conftest$ac_exeext 7581if ac_fn_c_try_run "$LINENO"; then :
10634if { (ac_try="$ac_link"
10635case "(($ac_try" in
10636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10637 *) ac_try_echo=$ac_try;;
10638esac
10639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10640$as_echo "$ac_try_echo") >&5
10641 (eval "$ac_link") 2>&5
10642 ac_status=$?
10643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10645 { (case "(($ac_try" in
10646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10647 *) ac_try_echo=$ac_try;;
10648esac
10649eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10650$as_echo "$ac_try_echo") >&5
10651 (eval "$ac_try") 2>&5
10652 ac_status=$?
10653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); }; }; then
10655 ac_cv_func_mmap_fixed_mapped=yes 7582 ac_cv_func_mmap_fixed_mapped=yes
10656else 7583else
10657 $as_echo "$as_me: program exited with status $ac_status" >&5 7584 ac_cv_func_mmap_fixed_mapped=no
10658$as_echo "$as_me: failed program was:" >&5
10659sed 's/^/| /' conftest.$ac_ext >&5
10660
10661( exit $ac_status )
10662ac_cv_func_mmap_fixed_mapped=no
10663fi 7585fi
10664rm -rf conftest.dSYM 7586rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10665rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7587 conftest.$ac_objext conftest.beam conftest.$ac_ext
10666fi 7588fi
10667 7589
10668
10669fi 7590fi
10670{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 7591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10671$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 7592$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10672if test $ac_cv_func_mmap_fixed_mapped = yes; then 7593if test $ac_cv_func_mmap_fixed_mapped = yes; then
10673 7594
10674cat >>confdefs.h <<\_ACEOF 7595$as_echo "#define HAVE_MMAP 1" >>confdefs.h
10675#define HAVE_MMAP 1
10676_ACEOF
10677 7596
10678fi 7597fi
10679rm -f conftest.mmap 7598rm -f conftest.mmap conftest.txt
10680 7599
10681if test $use_mmap_for_buffers = yes; then 7600if test $use_mmap_for_buffers = yes; then
10682 REL_ALLOC=no 7601 REL_ALLOC=no
@@ -10684,19 +7603,14 @@ fi
10684 7603
10685LIBS="$libsrc_libs $LIBS" 7604LIBS="$libsrc_libs $LIBS"
10686 7605
10687 7606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10688{ $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10689$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 7607$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10690if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 7608if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10691 $as_echo_n "(cached) " >&6 7609 $as_echo_n "(cached) " >&6
10692else 7610else
10693 ac_check_lib_save_LIBS=$LIBS 7611 ac_check_lib_save_LIBS=$LIBS
10694LIBS="-ldnet $LIBS" 7612LIBS="-ldnet $LIBS"
10695cat >conftest.$ac_ext <<_ACEOF 7613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10696/* confdefs.h. */
10697_ACEOF
10698cat confdefs.h >>conftest.$ac_ext
10699cat >>conftest.$ac_ext <<_ACEOF
10700/* end confdefs.h. */ 7614/* end confdefs.h. */
10701 7615
10702/* Override any GCC internal prototype to avoid an error. 7616/* Override any GCC internal prototype to avoid an error.
@@ -10714,43 +7628,18 @@ return dnet_ntoa ();
10714 return 0; 7628 return 0;
10715} 7629}
10716_ACEOF 7630_ACEOF
10717rm -f conftest.$ac_objext conftest$ac_exeext 7631if ac_fn_c_try_link "$LINENO"; then :
10718if { (ac_try="$ac_link"
10719case "(($ac_try" in
10720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721 *) ac_try_echo=$ac_try;;
10722esac
10723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10724$as_echo "$ac_try_echo") >&5
10725 (eval "$ac_link") 2>conftest.er1
10726 ac_status=$?
10727 grep -v '^ *+' conftest.er1 >conftest.err
10728 rm -f conftest.er1
10729 cat conftest.err >&5
10730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); } && {
10732 test -z "$ac_c_werror_flag" ||
10733 test ! -s conftest.err
10734 } && test -s conftest$ac_exeext && {
10735 test "$cross_compiling" = yes ||
10736 $as_test_x conftest$ac_exeext
10737 }; then
10738 ac_cv_lib_dnet_dnet_ntoa=yes 7632 ac_cv_lib_dnet_dnet_ntoa=yes
10739else 7633else
10740 $as_echo "$as_me: failed program was:" >&5 7634 ac_cv_lib_dnet_dnet_ntoa=no
10741sed 's/^/| /' conftest.$ac_ext >&5
10742
10743 ac_cv_lib_dnet_dnet_ntoa=no
10744fi 7635fi
10745 7636rm -f core conftest.err conftest.$ac_objext \
10746rm -rf conftest.dSYM 7637 conftest$ac_exeext conftest.$ac_ext
10747rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10748 conftest$ac_exeext conftest.$ac_ext
10749LIBS=$ac_check_lib_save_LIBS 7638LIBS=$ac_check_lib_save_LIBS
10750fi 7639fi
10751{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 7640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10752$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 7641$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10753if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 7642if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10754 cat >>confdefs.h <<_ACEOF 7643 cat >>confdefs.h <<_ACEOF
10755#define HAVE_LIBDNET 1 7644#define HAVE_LIBDNET 1
10756_ACEOF 7645_ACEOF
@@ -10760,18 +7649,14 @@ _ACEOF
10760fi 7649fi
10761 7650
10762 7651
10763{ $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5 7652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10764$as_echo_n "checking for main in -lXbsd... " >&6; } 7653$as_echo_n "checking for main in -lXbsd... " >&6; }
10765if test "${ac_cv_lib_Xbsd_main+set}" = set; then 7654if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10766 $as_echo_n "(cached) " >&6 7655 $as_echo_n "(cached) " >&6
10767else 7656else
10768 ac_check_lib_save_LIBS=$LIBS 7657 ac_check_lib_save_LIBS=$LIBS
10769LIBS="-lXbsd $LIBS" 7658LIBS="-lXbsd $LIBS"
10770cat >conftest.$ac_ext <<_ACEOF 7659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771/* confdefs.h. */
10772_ACEOF
10773cat confdefs.h >>conftest.$ac_ext
10774cat >>conftest.$ac_ext <<_ACEOF
10775/* end confdefs.h. */ 7660/* end confdefs.h. */
10776 7661
10777 7662
@@ -10783,60 +7668,30 @@ return main ();
10783 return 0; 7668 return 0;
10784} 7669}
10785_ACEOF 7670_ACEOF
10786rm -f conftest.$ac_objext conftest$ac_exeext 7671if ac_fn_c_try_link "$LINENO"; then :
10787if { (ac_try="$ac_link"
10788case "(($ac_try" in
10789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790 *) ac_try_echo=$ac_try;;
10791esac
10792eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10793$as_echo "$ac_try_echo") >&5
10794 (eval "$ac_link") 2>conftest.er1
10795 ac_status=$?
10796 grep -v '^ *+' conftest.er1 >conftest.err
10797 rm -f conftest.er1
10798 cat conftest.err >&5
10799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); } && {
10801 test -z "$ac_c_werror_flag" ||
10802 test ! -s conftest.err
10803 } && test -s conftest$ac_exeext && {
10804 test "$cross_compiling" = yes ||
10805 $as_test_x conftest$ac_exeext
10806 }; then
10807 ac_cv_lib_Xbsd_main=yes 7672 ac_cv_lib_Xbsd_main=yes
10808else 7673else
10809 $as_echo "$as_me: failed program was:" >&5 7674 ac_cv_lib_Xbsd_main=no
10810sed 's/^/| /' conftest.$ac_ext >&5
10811
10812 ac_cv_lib_Xbsd_main=no
10813fi 7675fi
10814 7676rm -f core conftest.err conftest.$ac_objext \
10815rm -rf conftest.dSYM 7677 conftest$ac_exeext conftest.$ac_ext
10816rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10817 conftest$ac_exeext conftest.$ac_ext
10818LIBS=$ac_check_lib_save_LIBS 7678LIBS=$ac_check_lib_save_LIBS
10819fi 7679fi
10820{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5 7680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10821$as_echo "$ac_cv_lib_Xbsd_main" >&6; } 7681$as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10822if test $ac_cv_lib_Xbsd_main = yes; then 7682if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10823 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" 7683 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10824fi 7684fi
10825 7685
10826 7686
10827 7687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10828{ $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10829$as_echo_n "checking for cma_open in -lpthreads... " >&6; } 7688$as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10830if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then 7689if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10831 $as_echo_n "(cached) " >&6 7690 $as_echo_n "(cached) " >&6
10832else 7691else
10833 ac_check_lib_save_LIBS=$LIBS 7692 ac_check_lib_save_LIBS=$LIBS
10834LIBS="-lpthreads $LIBS" 7693LIBS="-lpthreads $LIBS"
10835cat >conftest.$ac_ext <<_ACEOF 7694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836/* confdefs.h. */
10837_ACEOF
10838cat confdefs.h >>conftest.$ac_ext
10839cat >>conftest.$ac_ext <<_ACEOF
10840/* end confdefs.h. */ 7695/* end confdefs.h. */
10841 7696
10842/* Override any GCC internal prototype to avoid an error. 7697/* Override any GCC internal prototype to avoid an error.
@@ -10854,43 +7709,18 @@ return cma_open ();
10854 return 0; 7709 return 0;
10855} 7710}
10856_ACEOF 7711_ACEOF
10857rm -f conftest.$ac_objext conftest$ac_exeext 7712if ac_fn_c_try_link "$LINENO"; then :
10858if { (ac_try="$ac_link"
10859case "(($ac_try" in
10860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10861 *) ac_try_echo=$ac_try;;
10862esac
10863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10864$as_echo "$ac_try_echo") >&5
10865 (eval "$ac_link") 2>conftest.er1
10866 ac_status=$?
10867 grep -v '^ *+' conftest.er1 >conftest.err
10868 rm -f conftest.er1
10869 cat conftest.err >&5
10870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); } && {
10872 test -z "$ac_c_werror_flag" ||
10873 test ! -s conftest.err
10874 } && test -s conftest$ac_exeext && {
10875 test "$cross_compiling" = yes ||
10876 $as_test_x conftest$ac_exeext
10877 }; then
10878 ac_cv_lib_pthreads_cma_open=yes 7713 ac_cv_lib_pthreads_cma_open=yes
10879else 7714else
10880 $as_echo "$as_me: failed program was:" >&5 7715 ac_cv_lib_pthreads_cma_open=no
10881sed 's/^/| /' conftest.$ac_ext >&5
10882
10883 ac_cv_lib_pthreads_cma_open=no
10884fi 7716fi
10885 7717rm -f core conftest.err conftest.$ac_objext \
10886rm -rf conftest.dSYM 7718 conftest$ac_exeext conftest.$ac_ext
10887rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10888 conftest$ac_exeext conftest.$ac_ext
10889LIBS=$ac_check_lib_save_LIBS 7719LIBS=$ac_check_lib_save_LIBS
10890fi 7720fi
10891{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5 7721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10892$as_echo "$ac_cv_lib_pthreads_cma_open" >&6; } 7722$as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10893if test $ac_cv_lib_pthreads_cma_open = yes; then 7723if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10894 cat >>confdefs.h <<_ACEOF 7724 cat >>confdefs.h <<_ACEOF
10895#define HAVE_LIBPTHREADS 1 7725#define HAVE_LIBPTHREADS 1
10896_ACEOF 7726_ACEOF
@@ -10903,9 +7733,9 @@ fi
10903 7733
10904case ${host_os} in 7734case ${host_os} in
10905aix*) 7735aix*)
10906 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10907$as_echo_n "checking for -bbigtoc option... " >&6; } 7737$as_echo_n "checking for -bbigtoc option... " >&6; }
10908if test "${gdb_cv_bigtoc+set}" = set; then 7738if test "${gdb_cv_bigtoc+set}" = set; then :
10909 $as_echo_n "(cached) " >&6 7739 $as_echo_n "(cached) " >&6
10910else 7740else
10911 7741
@@ -10915,11 +7745,7 @@ else
10915 esac 7745 esac
10916 7746
10917 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc 7747 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10918 cat >conftest.$ac_ext <<_ACEOF 7748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10919/* confdefs.h. */
10920_ACEOF
10921cat confdefs.h >>conftest.$ac_ext
10922cat >>conftest.$ac_ext <<_ACEOF
10923/* end confdefs.h. */ 7749/* end confdefs.h. */
10924 7750
10925int 7751int
@@ -10930,41 +7756,16 @@ int i;
10930 return 0; 7756 return 0;
10931} 7757}
10932_ACEOF 7758_ACEOF
10933rm -f conftest.$ac_objext conftest$ac_exeext 7759if ac_fn_c_try_link "$LINENO"; then :
10934if { (ac_try="$ac_link"
10935case "(($ac_try" in
10936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10937 *) ac_try_echo=$ac_try;;
10938esac
10939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10940$as_echo "$ac_try_echo") >&5
10941 (eval "$ac_link") 2>conftest.er1
10942 ac_status=$?
10943 grep -v '^ *+' conftest.er1 >conftest.err
10944 rm -f conftest.er1
10945 cat conftest.err >&5
10946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); } && {
10948 test -z "$ac_c_werror_flag" ||
10949 test ! -s conftest.err
10950 } && test -s conftest$ac_exeext && {
10951 test "$cross_compiling" = yes ||
10952 $as_test_x conftest$ac_exeext
10953 }; then
10954 :
10955else
10956 $as_echo "$as_me: failed program was:" >&5
10957sed 's/^/| /' conftest.$ac_ext >&5
10958 7760
10959 gdb_cv_bigtoc= 7761else
7762 gdb_cv_bigtoc=
10960fi 7763fi
10961 7764rm -f core conftest.err conftest.$ac_objext \
10962rm -rf conftest.dSYM 7765 conftest$ac_exeext conftest.$ac_ext
10963rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10964 conftest$ac_exeext conftest.$ac_ext
10965 7766
10966fi 7767fi
10967{ $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5 7768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10968$as_echo "$gdb_cv_bigtoc" >&6; } 7769$as_echo "$gdb_cv_bigtoc" >&6; }
10969 ;; 7770 ;;
10970esac 7771esac
@@ -10992,13 +7793,9 @@ if test "${HAVE_X11}" = "yes"; then
10992 fi 7793 fi
10993 7794
10994 if test "${opsys}" = "gnu-linux"; then 7795 if test "${opsys}" = "gnu-linux"; then
10995 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5 7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10996$as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; } 7797$as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10997 cat >conftest.$ac_ext <<_ACEOF 7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10998/* confdefs.h. */
10999_ACEOF
11000cat confdefs.h >>conftest.$ac_ext
11001cat >>conftest.$ac_ext <<_ACEOF
11002/* end confdefs.h. */ 7799/* end confdefs.h. */
11003 7800
11004int 7801int
@@ -11009,38 +7806,13 @@ XOpenDisplay ("foo");
11009 return 0; 7806 return 0;
11010} 7807}
11011_ACEOF 7808_ACEOF
11012rm -f conftest.$ac_objext conftest$ac_exeext 7809if ac_fn_c_try_link "$LINENO"; then :
11013if { (ac_try="$ac_link"
11014case "(($ac_try" in
11015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016 *) ac_try_echo=$ac_try;;
11017esac
11018eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11019$as_echo "$ac_try_echo") >&5
11020 (eval "$ac_link") 2>conftest.er1
11021 ac_status=$?
11022 grep -v '^ *+' conftest.er1 >conftest.err
11023 rm -f conftest.er1
11024 cat conftest.err >&5
11025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); } && {
11027 test -z "$ac_c_werror_flag" ||
11028 test ! -s conftest.err
11029 } && test -s conftest$ac_exeext && {
11030 test "$cross_compiling" = yes ||
11031 $as_test_x conftest$ac_exeext
11032 }; then
11033 xlinux_first_failure=no 7810 xlinux_first_failure=no
11034else 7811else
11035 $as_echo "$as_me: failed program was:" >&5 7812 xlinux_first_failure=yes
11036sed 's/^/| /' conftest.$ac_ext >&5
11037
11038 xlinux_first_failure=yes
11039fi 7813fi
11040 7814rm -f core conftest.err conftest.$ac_objext \
11041rm -rf conftest.dSYM 7815 conftest$ac_exeext conftest.$ac_ext
11042rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11043 conftest$ac_exeext conftest.$ac_ext
11044 if test "${xlinux_first_failure}" = "yes"; then 7816 if test "${xlinux_first_failure}" = "yes"; then
11045 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" 7817 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11046 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" 7818 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
@@ -11050,11 +7822,7 @@ rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11050 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" 7822 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11051 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" 7823 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11052 LIBS="$LIBS -b i486-linuxaout" 7824 LIBS="$LIBS -b i486-linuxaout"
11053 cat >conftest.$ac_ext <<_ACEOF 7825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11054/* confdefs.h. */
11055_ACEOF
11056cat confdefs.h >>conftest.$ac_ext
11057cat >>conftest.$ac_ext <<_ACEOF
11058/* end confdefs.h. */ 7826/* end confdefs.h. */
11059 7827
11060int 7828int
@@ -11065,38 +7833,13 @@ XOpenDisplay ("foo");
11065 return 0; 7833 return 0;
11066} 7834}
11067_ACEOF 7835_ACEOF
11068rm -f conftest.$ac_objext conftest$ac_exeext 7836if ac_fn_c_try_link "$LINENO"; then :
11069if { (ac_try="$ac_link"
11070case "(($ac_try" in
11071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072 *) ac_try_echo=$ac_try;;
11073esac
11074eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11075$as_echo "$ac_try_echo") >&5
11076 (eval "$ac_link") 2>conftest.er1
11077 ac_status=$?
11078 grep -v '^ *+' conftest.er1 >conftest.err
11079 rm -f conftest.er1
11080 cat conftest.err >&5
11081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); } && {
11083 test -z "$ac_c_werror_flag" ||
11084 test ! -s conftest.err
11085 } && test -s conftest$ac_exeext && {
11086 test "$cross_compiling" = yes ||
11087 $as_test_x conftest$ac_exeext
11088 }; then
11089 xlinux_second_failure=no 7837 xlinux_second_failure=no
11090else 7838else
11091 $as_echo "$as_me: failed program was:" >&5 7839 xlinux_second_failure=yes
11092sed 's/^/| /' conftest.$ac_ext >&5
11093
11094 xlinux_second_failure=yes
11095fi 7840fi
11096 7841rm -f core conftest.err conftest.$ac_objext \
11097rm -rf conftest.dSYM 7842 conftest$ac_exeext conftest.$ac_ext
11098rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11099 conftest$ac_exeext conftest.$ac_ext
11100 if test "${xlinux_second_failure}" = "yes"; then 7843 if test "${xlinux_second_failure}" = "yes"; then
11101 # If we get the same failure with -b, there is no use adding -b. 7844 # If we get the same failure with -b, there is no use adding -b.
11102 # So take it out. This plays safe. 7845 # So take it out. This plays safe.
@@ -11104,27 +7847,23 @@ rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11104 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" 7847 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11105 CPPFLAGS="$OLD_CPPFLAGS" 7848 CPPFLAGS="$OLD_CPPFLAGS"
11106 LIBS="$OLD_LIBS" 7849 LIBS="$OLD_LIBS"
11107 { $as_echo "$as_me:$LINENO: result: no" >&5 7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11108$as_echo "no" >&6; } 7851$as_echo "no" >&6; }
11109 else 7852 else
11110 { $as_echo "$as_me:$LINENO: result: yes" >&5 7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11111$as_echo "yes" >&6; } 7854$as_echo "yes" >&6; }
11112 fi 7855 fi
11113 else 7856 else
11114 { $as_echo "$as_me:$LINENO: result: no" >&5 7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11115$as_echo "no" >&6; } 7858$as_echo "no" >&6; }
11116 fi 7859 fi
11117 fi 7860 fi
11118 7861
11119 # Reportedly, some broken Solaris systems have XKBlib.h but are missing 7862 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11120 # header files included from there. 7863 # header files included from there.
11121 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5 7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
11122$as_echo_n "checking for Xkb... " >&6; } 7865$as_echo_n "checking for Xkb... " >&6; }
11123 cat >conftest.$ac_ext <<_ACEOF 7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11124/* confdefs.h. */
11125_ACEOF
11126cat confdefs.h >>conftest.$ac_ext
11127cat >>conftest.$ac_ext <<_ACEOF
11128/* end confdefs.h. */ 7867/* end confdefs.h. */
11129#include <X11/Xlib.h> 7868#include <X11/Xlib.h>
11130#include <X11/XKBlib.h> 7869#include <X11/XKBlib.h>
@@ -11136,145 +7875,28 @@ XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11136 return 0; 7875 return 0;
11137} 7876}
11138_ACEOF 7877_ACEOF
11139rm -f conftest.$ac_objext conftest$ac_exeext 7878if ac_fn_c_try_link "$LINENO"; then :
11140if { (ac_try="$ac_link"
11141case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11144esac
11145eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11146$as_echo "$ac_try_echo") >&5
11147 (eval "$ac_link") 2>conftest.er1
11148 ac_status=$?
11149 grep -v '^ *+' conftest.er1 >conftest.err
11150 rm -f conftest.er1
11151 cat conftest.err >&5
11152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } && {
11154 test -z "$ac_c_werror_flag" ||
11155 test ! -s conftest.err
11156 } && test -s conftest$ac_exeext && {
11157 test "$cross_compiling" = yes ||
11158 $as_test_x conftest$ac_exeext
11159 }; then
11160 emacs_xkb=yes 7879 emacs_xkb=yes
11161else 7880else
11162 $as_echo "$as_me: failed program was:" >&5 7881 emacs_xkb=no
11163sed 's/^/| /' conftest.$ac_ext >&5
11164
11165 emacs_xkb=no
11166fi 7882fi
11167 7883rm -f core conftest.err conftest.$ac_objext \
11168rm -rf conftest.dSYM 7884 conftest$ac_exeext conftest.$ac_ext
11169rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
11170 conftest$ac_exeext conftest.$ac_ext
11171 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11172$as_echo "$emacs_xkb" >&6; } 7886$as_echo "$emacs_xkb" >&6; }
11173 if test $emacs_xkb = yes; then 7887 if test $emacs_xkb = yes; then
11174 7888
11175cat >>confdefs.h <<\_ACEOF 7889$as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
11176#define HAVE_XKBGETKEYBOARD 1
11177_ACEOF
11178 7890
11179 fi 7891 fi
11180 7892
11181 7893 for ac_func in XrmSetDatabase XScreenResourceString \
11182
11183
11184
11185for ac_func in XrmSetDatabase XScreenResourceString \
11186XScreenNumberOfScreen XSetWMProtocols 7894XScreenNumberOfScreen XSetWMProtocols
11187do 7895do :
11188as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7896 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11189{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 7897ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11190$as_echo_n "checking for $ac_func... " >&6; } 7898eval as_val=\$$as_ac_var
11191if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 7899 if test "x$as_val" = x""yes; then :
11192 $as_echo_n "(cached) " >&6
11193else
11194 cat >conftest.$ac_ext <<_ACEOF
11195/* confdefs.h. */
11196_ACEOF
11197cat confdefs.h >>conftest.$ac_ext
11198cat >>conftest.$ac_ext <<_ACEOF
11199/* end confdefs.h. */
11200/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11202#define $ac_func innocuous_$ac_func
11203
11204/* System header to define __stub macros and hopefully few prototypes,
11205 which can conflict with char $ac_func (); below.
11206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11207 <limits.h> exists even on freestanding compilers. */
11208
11209#ifdef __STDC__
11210# include <limits.h>
11211#else
11212# include <assert.h>
11213#endif
11214
11215#undef $ac_func
11216
11217/* Override any GCC internal prototype to avoid an error.
11218 Use char because int might match the return type of a GCC
11219 builtin and then its argument prototype would still apply. */
11220#ifdef __cplusplus
11221extern "C"
11222#endif
11223char $ac_func ();
11224/* The GNU C library defines this for functions which it implements
11225 to always fail with ENOSYS. Some functions are actually named
11226 something starting with __ and the normal name is an alias. */
11227#if defined __stub_$ac_func || defined __stub___$ac_func
11228choke me
11229#endif
11230
11231int
11232main ()
11233{
11234return $ac_func ();
11235 ;
11236 return 0;
11237}
11238_ACEOF
11239rm -f conftest.$ac_objext conftest$ac_exeext
11240if { (ac_try="$ac_link"
11241case "(($ac_try" in
11242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11243 *) ac_try_echo=$ac_try;;
11244esac
11245eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11246$as_echo "$ac_try_echo") >&5
11247 (eval "$ac_link") 2>conftest.er1
11248 ac_status=$?
11249 grep -v '^ *+' conftest.er1 >conftest.err
11250 rm -f conftest.er1
11251 cat conftest.err >&5
11252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); } && {
11254 test -z "$ac_c_werror_flag" ||
11255 test ! -s conftest.err
11256 } && test -s conftest$ac_exeext && {
11257 test "$cross_compiling" = yes ||
11258 $as_test_x conftest$ac_exeext
11259 }; then
11260 eval "$as_ac_var=yes"
11261else
11262 $as_echo "$as_me: failed program was:" >&5
11263sed 's/^/| /' conftest.$ac_ext >&5
11264
11265 eval "$as_ac_var=no"
11266fi
11267
11268rm -rf conftest.dSYM
11269rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11270 conftest$ac_exeext conftest.$ac_ext
11271fi
11272ac_res=`eval 'as_val=${'$as_ac_var'}
11273 $as_echo "$as_val"'`
11274 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11275$as_echo "$ac_res" >&6; }
11276if test `eval 'as_val=${'$as_ac_var'}
11277 $as_echo "$as_val"'` = yes; then
11278 cat >>confdefs.h <<_ACEOF 7900 cat >>confdefs.h <<_ACEOF
11279#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7901#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11280_ACEOF 7902_ACEOF
@@ -11285,16 +7907,12 @@ done
11285fi 7907fi
11286 7908
11287if test "${window_system}" = "x11"; then 7909if test "${window_system}" = "x11"; then
11288 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5 7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
11289$as_echo_n "checking X11 version 6... " >&6; } 7911$as_echo_n "checking X11 version 6... " >&6; }
11290 if test "${emacs_cv_x11_version_6+set}" = set; then 7912 if test "${emacs_cv_x11_version_6+set}" = set; then :
11291 $as_echo_n "(cached) " >&6 7913 $as_echo_n "(cached) " >&6
11292else 7914else
11293 cat >conftest.$ac_ext <<_ACEOF 7915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11294/* confdefs.h. */
11295_ACEOF
11296cat confdefs.h >>conftest.$ac_ext
11297cat >>conftest.$ac_ext <<_ACEOF
11298/* end confdefs.h. */ 7916/* end confdefs.h. */
11299#include <X11/Xlib.h> 7917#include <X11/Xlib.h>
11300int 7918int
@@ -11308,50 +7926,23 @@ fail;
11308 return 0; 7926 return 0;
11309} 7927}
11310_ACEOF 7928_ACEOF
11311rm -f conftest.$ac_objext conftest$ac_exeext 7929if ac_fn_c_try_link "$LINENO"; then :
11312if { (ac_try="$ac_link"
11313case "(($ac_try" in
11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11316esac
11317eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11318$as_echo "$ac_try_echo") >&5
11319 (eval "$ac_link") 2>conftest.er1
11320 ac_status=$?
11321 grep -v '^ *+' conftest.er1 >conftest.err
11322 rm -f conftest.er1
11323 cat conftest.err >&5
11324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); } && {
11326 test -z "$ac_c_werror_flag" ||
11327 test ! -s conftest.err
11328 } && test -s conftest$ac_exeext && {
11329 test "$cross_compiling" = yes ||
11330 $as_test_x conftest$ac_exeext
11331 }; then
11332 emacs_cv_x11_version_6=yes 7930 emacs_cv_x11_version_6=yes
11333else 7931else
11334 $as_echo "$as_me: failed program was:" >&5 7932 emacs_cv_x11_version_6=no
11335sed 's/^/| /' conftest.$ac_ext >&5
11336
11337 emacs_cv_x11_version_6=no
11338fi 7933fi
11339 7934rm -f core conftest.err conftest.$ac_objext \
11340rm -rf conftest.dSYM 7935 conftest$ac_exeext conftest.$ac_ext
11341rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11342 conftest$ac_exeext conftest.$ac_ext
11343fi 7936fi
11344 7937
11345 if test $emacs_cv_x11_version_6 = yes; then 7938 if test $emacs_cv_x11_version_6 = yes; then
11346 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5 7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11347$as_echo "6 or newer" >&6; } 7940$as_echo "6 or newer" >&6; }
11348 7941
11349cat >>confdefs.h <<\_ACEOF 7942$as_echo "#define HAVE_X11R6 1" >>confdefs.h
11350#define HAVE_X11R6 1
11351_ACEOF
11352 7943
11353 else 7944 else
11354 { $as_echo "$as_me:$LINENO: result: before 6" >&5 7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11355$as_echo "before 6" >&6; } 7946$as_echo "before 6" >&6; }
11356 fi 7947 fi
11357fi 7948fi
@@ -11369,9 +7960,9 @@ if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
11369 7960
11370 # Extract the first word of "pkg-config", so it can be a program name with args. 7961 # Extract the first word of "pkg-config", so it can be a program name with args.
11371set dummy pkg-config; ac_word=$2 7962set dummy pkg-config; ac_word=$2
11372{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11373$as_echo_n "checking for $ac_word... " >&6; } 7964$as_echo_n "checking for $ac_word... " >&6; }
11374if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 7965if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11375 $as_echo_n "(cached) " >&6 7966 $as_echo_n "(cached) " >&6
11376else 7967else
11377 case $PKG_CONFIG in 7968 case $PKG_CONFIG in
@@ -11384,14 +7975,14 @@ for as_dir in $PATH
11384do 7975do
11385 IFS=$as_save_IFS 7976 IFS=$as_save_IFS
11386 test -z "$as_dir" && as_dir=. 7977 test -z "$as_dir" && as_dir=.
11387 for ac_exec_ext in '' $ac_executable_extensions; do 7978 for ac_exec_ext in '' $ac_executable_extensions; do
11388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11389 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7980 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11390 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11391 break 2 7982 break 2
11392 fi 7983 fi
11393done 7984done
11394done 7985 done
11395IFS=$as_save_IFS 7986IFS=$as_save_IFS
11396 7987
11397 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 7988 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -11400,10 +7991,10 @@ esac
11400fi 7991fi
11401PKG_CONFIG=$ac_cv_path_PKG_CONFIG 7992PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11402if test -n "$PKG_CONFIG"; then 7993if test -n "$PKG_CONFIG"; then
11403 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11404$as_echo "$PKG_CONFIG" >&6; } 7995$as_echo "$PKG_CONFIG" >&6; }
11405else 7996else
11406 { $as_echo "$as_me:$LINENO: result: no" >&5 7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11407$as_echo "no" >&6; } 7998$as_echo "no" >&6; }
11408fi 7999fi
11409 8000
@@ -11414,27 +8005,27 @@ fi
11414 else 8005 else
11415 PKG_CONFIG_MIN_VERSION=0.9.0 8006 PKG_CONFIG_MIN_VERSION=0.9.0
11416 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 8007 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11417 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5 8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
11418$as_echo_n "checking for $RSVG_MODULE... " >&6; } 8009$as_echo_n "checking for $RSVG_MODULE... " >&6; }
11419 8010
11420 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then 8011 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11421 { $as_echo "$as_me:$LINENO: result: yes" >&5 8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11422$as_echo "yes" >&6; } 8013$as_echo "yes" >&6; }
11423 succeeded=yes 8014 succeeded=yes
11424 8015
11425 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5 8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
11426$as_echo_n "checking RSVG_CFLAGS... " >&6; } 8017$as_echo_n "checking RSVG_CFLAGS... " >&6; }
11427 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'` 8018 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11428 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5 8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
11429$as_echo "$RSVG_CFLAGS" >&6; } 8020$as_echo "$RSVG_CFLAGS" >&6; }
11430 8021
11431 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5 8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
11432$as_echo_n "checking RSVG_LIBS... " >&6; } 8023$as_echo_n "checking RSVG_LIBS... " >&6; }
11433 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'` 8024 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11434 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5 8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
11435$as_echo "$RSVG_LIBS" >&6; } 8026$as_echo "$RSVG_LIBS" >&6; }
11436 else 8027 else
11437 { $as_echo "$as_me:$LINENO: result: no" >&5 8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11438$as_echo "no" >&6; } 8029$as_echo "no" >&6; }
11439 RSVG_CFLAGS="" 8030 RSVG_CFLAGS=""
11440 RSVG_LIBS="" 8031 RSVG_LIBS=""
@@ -11464,9 +8055,7 @@ $as_echo "no" >&6; }
11464 if test ".${RSVG_CFLAGS}" != "."; then 8055 if test ".${RSVG_CFLAGS}" != "."; then
11465 HAVE_RSVG=yes 8056 HAVE_RSVG=yes
11466 8057
11467cat >>confdefs.h <<\_ACEOF 8058$as_echo "#define HAVE_RSVG 1" >>confdefs.h
11468#define HAVE_RSVG 1
11469_ACEOF
11470 8059
11471 CFLAGS="$CFLAGS $RSVG_CFLAGS" 8060 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11472 LIBS="$RSVG_LIBS $LIBS" 8061 LIBS="$RSVG_LIBS $LIBS"
@@ -11486,9 +8075,9 @@ if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11486 8075
11487 # Extract the first word of "pkg-config", so it can be a program name with args. 8076 # Extract the first word of "pkg-config", so it can be a program name with args.
11488set dummy pkg-config; ac_word=$2 8077set dummy pkg-config; ac_word=$2
11489{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 8078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11490$as_echo_n "checking for $ac_word... " >&6; } 8079$as_echo_n "checking for $ac_word... " >&6; }
11491if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 8080if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11492 $as_echo_n "(cached) " >&6 8081 $as_echo_n "(cached) " >&6
11493else 8082else
11494 case $PKG_CONFIG in 8083 case $PKG_CONFIG in
@@ -11501,14 +8090,14 @@ for as_dir in $PATH
11501do 8090do
11502 IFS=$as_save_IFS 8091 IFS=$as_save_IFS
11503 test -z "$as_dir" && as_dir=. 8092 test -z "$as_dir" && as_dir=.
11504 for ac_exec_ext in '' $ac_executable_extensions; do 8093 for ac_exec_ext in '' $ac_executable_extensions; do
11505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11506 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8095 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11507 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11508 break 2 8097 break 2
11509 fi 8098 fi
11510done 8099done
11511done 8100 done
11512IFS=$as_save_IFS 8101IFS=$as_save_IFS
11513 8102
11514 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 8103 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -11517,10 +8106,10 @@ esac
11517fi 8106fi
11518PKG_CONFIG=$ac_cv_path_PKG_CONFIG 8107PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11519if test -n "$PKG_CONFIG"; then 8108if test -n "$PKG_CONFIG"; then
11520 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11521$as_echo "$PKG_CONFIG" >&6; } 8110$as_echo "$PKG_CONFIG" >&6; }
11522else 8111else
11523 { $as_echo "$as_me:$LINENO: result: no" >&5 8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11524$as_echo "no" >&6; } 8113$as_echo "no" >&6; }
11525fi 8114fi
11526 8115
@@ -11531,27 +8120,27 @@ fi
11531 else 8120 else
11532 PKG_CONFIG_MIN_VERSION=0.9.0 8121 PKG_CONFIG_MIN_VERSION=0.9.0
11533 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 8122 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11534 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5 8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11535$as_echo_n "checking for $GTK_MODULES... " >&6; } 8124$as_echo_n "checking for $GTK_MODULES... " >&6; }
11536 8125
11537 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then 8126 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11538 { $as_echo "$as_me:$LINENO: result: yes" >&5 8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11539$as_echo "yes" >&6; } 8128$as_echo "yes" >&6; }
11540 succeeded=yes 8129 succeeded=yes
11541 8130
11542 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5 8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
11543$as_echo_n "checking GTK_CFLAGS... " >&6; } 8132$as_echo_n "checking GTK_CFLAGS... " >&6; }
11544 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'` 8133 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11545 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5 8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11546$as_echo "$GTK_CFLAGS" >&6; } 8135$as_echo "$GTK_CFLAGS" >&6; }
11547 8136
11548 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5 8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11549$as_echo_n "checking GTK_LIBS... " >&6; } 8138$as_echo_n "checking GTK_LIBS... " >&6; }
11550 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'` 8139 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11551 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5 8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11552$as_echo "$GTK_LIBS" >&6; } 8141$as_echo "$GTK_LIBS" >&6; }
11553 else 8142 else
11554 { $as_echo "$as_me:$LINENO: result: no" >&5 8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11555$as_echo "no" >&6; } 8144$as_echo "no" >&6; }
11556 GTK_CFLAGS="" 8145 GTK_CFLAGS=""
11557 GTK_LIBS="" 8146 GTK_LIBS=""
@@ -11576,9 +8165,7 @@ $as_echo "no" >&6; }
11576 fi 8165 fi
11577 8166
11578 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then 8167 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11579 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5 8168 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11580$as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11581 { (exit 1); exit 1; }; }
11582 fi 8169 fi
11583fi 8170fi
11584 8171
@@ -11592,101 +8179,12 @@ if test x"$pkg_check_gtk" = xyes; then
11592 CFLAGS="$CFLAGS $GTK_CFLAGS" 8179 CFLAGS="$CFLAGS $GTK_CFLAGS"
11593 LIBS="$GTK_LIBS $LIBS" 8180 LIBS="$GTK_LIBS $LIBS"
11594 GTK_COMPILES=no 8181 GTK_COMPILES=no
11595 8182 for ac_func in gtk_main
11596for ac_func in gtk_main 8183do :
11597do 8184 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11598as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8185if test "x$ac_cv_func_gtk_main" = x""yes; then :
11599{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11600$as_echo_n "checking for $ac_func... " >&6; }
11601if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11602 $as_echo_n "(cached) " >&6
11603else
11604 cat >conftest.$ac_ext <<_ACEOF
11605/* confdefs.h. */
11606_ACEOF
11607cat confdefs.h >>conftest.$ac_ext
11608cat >>conftest.$ac_ext <<_ACEOF
11609/* end confdefs.h. */
11610/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11612#define $ac_func innocuous_$ac_func
11613
11614/* System header to define __stub macros and hopefully few prototypes,
11615 which can conflict with char $ac_func (); below.
11616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11617 <limits.h> exists even on freestanding compilers. */
11618
11619#ifdef __STDC__
11620# include <limits.h>
11621#else
11622# include <assert.h>
11623#endif
11624
11625#undef $ac_func
11626
11627/* Override any GCC internal prototype to avoid an error.
11628 Use char because int might match the return type of a GCC
11629 builtin and then its argument prototype would still apply. */
11630#ifdef __cplusplus
11631extern "C"
11632#endif
11633char $ac_func ();
11634/* The GNU C library defines this for functions which it implements
11635 to always fail with ENOSYS. Some functions are actually named
11636 something starting with __ and the normal name is an alias. */
11637#if defined __stub_$ac_func || defined __stub___$ac_func
11638choke me
11639#endif
11640
11641int
11642main ()
11643{
11644return $ac_func ();
11645 ;
11646 return 0;
11647}
11648_ACEOF
11649rm -f conftest.$ac_objext conftest$ac_exeext
11650if { (ac_try="$ac_link"
11651case "(($ac_try" in
11652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653 *) ac_try_echo=$ac_try;;
11654esac
11655eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11656$as_echo "$ac_try_echo") >&5
11657 (eval "$ac_link") 2>conftest.er1
11658 ac_status=$?
11659 grep -v '^ *+' conftest.er1 >conftest.err
11660 rm -f conftest.er1
11661 cat conftest.err >&5
11662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); } && {
11664 test -z "$ac_c_werror_flag" ||
11665 test ! -s conftest.err
11666 } && test -s conftest$ac_exeext && {
11667 test "$cross_compiling" = yes ||
11668 $as_test_x conftest$ac_exeext
11669 }; then
11670 eval "$as_ac_var=yes"
11671else
11672 $as_echo "$as_me: failed program was:" >&5
11673sed 's/^/| /' conftest.$ac_ext >&5
11674
11675 eval "$as_ac_var=no"
11676fi
11677
11678rm -rf conftest.dSYM
11679rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11680 conftest$ac_exeext conftest.$ac_ext
11681fi
11682ac_res=`eval 'as_val=${'$as_ac_var'}
11683 $as_echo "$as_val"'`
11684 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11685$as_echo "$ac_res" >&6; }
11686if test `eval 'as_val=${'$as_ac_var'}
11687 $as_echo "$as_val"'` = yes; then
11688 cat >>confdefs.h <<_ACEOF 8186 cat >>confdefs.h <<_ACEOF
11689#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8187#define HAVE_GTK_MAIN 1
11690_ACEOF 8188_ACEOF
11691 GTK_COMPILES=yes 8189 GTK_COMPILES=yes
11692fi 8190fi
@@ -11694,23 +8192,19 @@ done
11694 8192
11695 if test "${GTK_COMPILES}" != "yes"; then 8193 if test "${GTK_COMPILES}" != "yes"; then
11696 if test "$USE_X_TOOLKIT" != "maybe"; then 8194 if test "$USE_X_TOOLKIT" != "maybe"; then
11697 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5 8195 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11698$as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11699 { (exit 1); exit 1; }; };
11700 fi 8196 fi
11701 else 8197 else
11702 HAVE_GTK=yes 8198 HAVE_GTK=yes
11703 8199
11704cat >>confdefs.h <<\_ACEOF 8200$as_echo "#define USE_GTK 1" >>confdefs.h
11705#define USE_GTK 1
11706_ACEOF
11707 8201
11708 GTK_OBJ=gtkutil.o 8202 GTK_OBJ=gtkutil.o
11709 USE_X_TOOLKIT=none 8203 USE_X_TOOLKIT=none
11710 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then 8204 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11711 : 8205 :
11712 else 8206 else
11713 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with 8207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11714 closing open displays. This is no problem if you just use 8208 closing open displays. This is no problem if you just use
11715 one display, but if you use more than one and close one of them 8209 one display, but if you use more than one and close one of them
11716 Emacs may crash." >&5 8210 Emacs may crash." >&5
@@ -11733,101 +8227,12 @@ if test "${HAVE_GTK}" = "yes"; then
11733 fi 8227 fi
11734 8228
11735 HAVE_GTK_MULTIDISPLAY=no 8229 HAVE_GTK_MULTIDISPLAY=no
11736 8230 for ac_func in gdk_display_open
11737for ac_func in gdk_display_open 8231do :
11738do 8232 ac_fn_c_check_func "$LINENO" "gdk_display_open" "ac_cv_func_gdk_display_open"
11739as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8233if test "x$ac_cv_func_gdk_display_open" = x""yes; then :
11740{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11741$as_echo_n "checking for $ac_func... " >&6; }
11742if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11743 $as_echo_n "(cached) " >&6
11744else
11745 cat >conftest.$ac_ext <<_ACEOF
11746/* confdefs.h. */
11747_ACEOF
11748cat confdefs.h >>conftest.$ac_ext
11749cat >>conftest.$ac_ext <<_ACEOF
11750/* end confdefs.h. */
11751/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11753#define $ac_func innocuous_$ac_func
11754
11755/* System header to define __stub macros and hopefully few prototypes,
11756 which can conflict with char $ac_func (); below.
11757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11758 <limits.h> exists even on freestanding compilers. */
11759
11760#ifdef __STDC__
11761# include <limits.h>
11762#else
11763# include <assert.h>
11764#endif
11765
11766#undef $ac_func
11767
11768/* Override any GCC internal prototype to avoid an error.
11769 Use char because int might match the return type of a GCC
11770 builtin and then its argument prototype would still apply. */
11771#ifdef __cplusplus
11772extern "C"
11773#endif
11774char $ac_func ();
11775/* The GNU C library defines this for functions which it implements
11776 to always fail with ENOSYS. Some functions are actually named
11777 something starting with __ and the normal name is an alias. */
11778#if defined __stub_$ac_func || defined __stub___$ac_func
11779choke me
11780#endif
11781
11782int
11783main ()
11784{
11785return $ac_func ();
11786 ;
11787 return 0;
11788}
11789_ACEOF
11790rm -f conftest.$ac_objext conftest$ac_exeext
11791if { (ac_try="$ac_link"
11792case "(($ac_try" in
11793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794 *) ac_try_echo=$ac_try;;
11795esac
11796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11797$as_echo "$ac_try_echo") >&5
11798 (eval "$ac_link") 2>conftest.er1
11799 ac_status=$?
11800 grep -v '^ *+' conftest.er1 >conftest.err
11801 rm -f conftest.er1
11802 cat conftest.err >&5
11803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } && {
11805 test -z "$ac_c_werror_flag" ||
11806 test ! -s conftest.err
11807 } && test -s conftest$ac_exeext && {
11808 test "$cross_compiling" = yes ||
11809 $as_test_x conftest$ac_exeext
11810 }; then
11811 eval "$as_ac_var=yes"
11812else
11813 $as_echo "$as_me: failed program was:" >&5
11814sed 's/^/| /' conftest.$ac_ext >&5
11815
11816 eval "$as_ac_var=no"
11817fi
11818
11819rm -rf conftest.dSYM
11820rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11821 conftest$ac_exeext conftest.$ac_ext
11822fi
11823ac_res=`eval 'as_val=${'$as_ac_var'}
11824 $as_echo "$as_val"'`
11825 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11826$as_echo "$ac_res" >&6; }
11827if test `eval 'as_val=${'$as_ac_var'}
11828 $as_echo "$as_val"'` = yes; then
11829 cat >>confdefs.h <<_ACEOF 8234 cat >>confdefs.h <<_ACEOF
11830#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8235#define HAVE_GDK_DISPLAY_OPEN 1
11831_ACEOF 8236_ACEOF
11832 HAVE_GTK_MULTIDISPLAY=yes 8237 HAVE_GTK_MULTIDISPLAY=yes
11833fi 8238fi
@@ -11835,170 +8240,27 @@ done
11835 8240
11836 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then 8241 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11837 8242
11838cat >>confdefs.h <<\_ACEOF 8243$as_echo "#define HAVE_GTK_MULTIDISPLAY 1" >>confdefs.h
11839#define HAVE_GTK_MULTIDISPLAY 1
11840_ACEOF
11841 8244
11842 fi 8245 fi
11843 8246
11844 HAVE_GTK_FILE_SELECTION=no 8247 HAVE_GTK_FILE_SELECTION=no
11845 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5 8248 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11846$as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11847if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11848 $as_echo_n "(cached) " >&6
11849else
11850 cat >conftest.$ac_ext <<_ACEOF
11851/* confdefs.h. */
11852_ACEOF
11853cat confdefs.h >>conftest.$ac_ext
11854cat >>conftest.$ac_ext <<_ACEOF
11855/* end confdefs.h. */
11856$ac_includes_default
11857#include <gtk/gtk.h> 8249#include <gtk/gtk.h>
11858 8250"
11859int 8251if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11860main ()
11861{
11862#ifndef GTK_TYPE_FILE_SELECTION
11863 (void) GTK_TYPE_FILE_SELECTION;
11864#endif
11865
11866 ;
11867 return 0;
11868}
11869_ACEOF
11870rm -f conftest.$ac_objext
11871if { (ac_try="$ac_compile"
11872case "(($ac_try" in
11873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11874 *) ac_try_echo=$ac_try;;
11875esac
11876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11877$as_echo "$ac_try_echo") >&5
11878 (eval "$ac_compile") 2>conftest.er1
11879 ac_status=$?
11880 grep -v '^ *+' conftest.er1 >conftest.err
11881 rm -f conftest.er1
11882 cat conftest.err >&5
11883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } && {
11885 test -z "$ac_c_werror_flag" ||
11886 test ! -s conftest.err
11887 } && test -s conftest.$ac_objext; then
11888 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11889else
11890 $as_echo "$as_me: failed program was:" >&5
11891sed 's/^/| /' conftest.$ac_ext >&5
11892
11893 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11894fi
11895
11896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11897fi
11898{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11899$as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11900if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11901 HAVE_GTK_FILE_SELECTION=yes 8252 HAVE_GTK_FILE_SELECTION=yes
11902else 8253else
11903 HAVE_GTK_FILE_SELECTION=no 8254 HAVE_GTK_FILE_SELECTION=no
11904fi 8255fi
11905 8256
11906 if test "$HAVE_GTK_FILE_SELECTION" = yes; then 8257 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11907 8258 for ac_func in gtk_file_selection_new
11908for ac_func in gtk_file_selection_new 8259do :
11909do 8260 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11910as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8261if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11911{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11912$as_echo_n "checking for $ac_func... " >&6; }
11913if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11914 $as_echo_n "(cached) " >&6
11915else
11916 cat >conftest.$ac_ext <<_ACEOF
11917/* confdefs.h. */
11918_ACEOF
11919cat confdefs.h >>conftest.$ac_ext
11920cat >>conftest.$ac_ext <<_ACEOF
11921/* end confdefs.h. */
11922/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11924#define $ac_func innocuous_$ac_func
11925
11926/* System header to define __stub macros and hopefully few prototypes,
11927 which can conflict with char $ac_func (); below.
11928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11929 <limits.h> exists even on freestanding compilers. */
11930
11931#ifdef __STDC__
11932# include <limits.h>
11933#else
11934# include <assert.h>
11935#endif
11936
11937#undef $ac_func
11938
11939/* Override any GCC internal prototype to avoid an error.
11940 Use char because int might match the return type of a GCC
11941 builtin and then its argument prototype would still apply. */
11942#ifdef __cplusplus
11943extern "C"
11944#endif
11945char $ac_func ();
11946/* The GNU C library defines this for functions which it implements
11947 to always fail with ENOSYS. Some functions are actually named
11948 something starting with __ and the normal name is an alias. */
11949#if defined __stub_$ac_func || defined __stub___$ac_func
11950choke me
11951#endif
11952
11953int
11954main ()
11955{
11956return $ac_func ();
11957 ;
11958 return 0;
11959}
11960_ACEOF
11961rm -f conftest.$ac_objext conftest$ac_exeext
11962if { (ac_try="$ac_link"
11963case "(($ac_try" in
11964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11965 *) ac_try_echo=$ac_try;;
11966esac
11967eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11968$as_echo "$ac_try_echo") >&5
11969 (eval "$ac_link") 2>conftest.er1
11970 ac_status=$?
11971 grep -v '^ *+' conftest.er1 >conftest.err
11972 rm -f conftest.er1
11973 cat conftest.err >&5
11974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } && {
11976 test -z "$ac_c_werror_flag" ||
11977 test ! -s conftest.err
11978 } && test -s conftest$ac_exeext && {
11979 test "$cross_compiling" = yes ||
11980 $as_test_x conftest$ac_exeext
11981 }; then
11982 eval "$as_ac_var=yes"
11983else
11984 $as_echo "$as_me: failed program was:" >&5
11985sed 's/^/| /' conftest.$ac_ext >&5
11986
11987 eval "$as_ac_var=no"
11988fi
11989
11990rm -rf conftest.dSYM
11991rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11992 conftest$ac_exeext conftest.$ac_ext
11993fi
11994ac_res=`eval 'as_val=${'$as_ac_var'}
11995 $as_echo "$as_val"'`
11996 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11997$as_echo "$ac_res" >&6; }
11998if test `eval 'as_val=${'$as_ac_var'}
11999 $as_echo "$as_val"'` = yes; then
12000 cat >>confdefs.h <<_ACEOF 8262 cat >>confdefs.h <<_ACEOF
12001#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8263#define HAVE_GTK_FILE_SELECTION_NEW 1
12002_ACEOF 8264_ACEOF
12003 HAVE_GTK_FILE_SELECTION=yes 8265 HAVE_GTK_FILE_SELECTION=yes
12004else 8266else
@@ -12009,163 +8271,22 @@ done
12009 fi 8271 fi
12010 8272
12011 HAVE_GTK_FILE_CHOOSER=no 8273 HAVE_GTK_FILE_CHOOSER=no
12012 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5 8274 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_CHOOSER" "ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" "$ac_includes_default
12013$as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12014if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12015 $as_echo_n "(cached) " >&6
12016else
12017 cat >conftest.$ac_ext <<_ACEOF
12018/* confdefs.h. */
12019_ACEOF
12020cat confdefs.h >>conftest.$ac_ext
12021cat >>conftest.$ac_ext <<_ACEOF
12022/* end confdefs.h. */
12023$ac_includes_default
12024#include <gtk/gtk.h> 8275#include <gtk/gtk.h>
12025 8276"
12026int 8277if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x""yes; then :
12027main ()
12028{
12029#ifndef GTK_TYPE_FILE_CHOOSER
12030 (void) GTK_TYPE_FILE_CHOOSER;
12031#endif
12032
12033 ;
12034 return 0;
12035}
12036_ACEOF
12037rm -f conftest.$ac_objext
12038if { (ac_try="$ac_compile"
12039case "(($ac_try" in
12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041 *) ac_try_echo=$ac_try;;
12042esac
12043eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12044$as_echo "$ac_try_echo") >&5
12045 (eval "$ac_compile") 2>conftest.er1
12046 ac_status=$?
12047 grep -v '^ *+' conftest.er1 >conftest.err
12048 rm -f conftest.er1
12049 cat conftest.err >&5
12050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } && {
12052 test -z "$ac_c_werror_flag" ||
12053 test ! -s conftest.err
12054 } && test -s conftest.$ac_objext; then
12055 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12056else
12057 $as_echo "$as_me: failed program was:" >&5
12058sed 's/^/| /' conftest.$ac_ext >&5
12059
12060 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12061fi
12062
12063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12064fi
12065{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12066$as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12067if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12068 HAVE_GTK_FILE_CHOOSER=yes 8278 HAVE_GTK_FILE_CHOOSER=yes
12069else 8279else
12070 HAVE_GTK_FILE_CHOOSER=no 8280 HAVE_GTK_FILE_CHOOSER=no
12071fi 8281fi
12072 8282
12073 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then 8283 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12074 8284 for ac_func in gtk_file_chooser_dialog_new
12075for ac_func in gtk_file_chooser_dialog_new 8285do :
12076do 8286 ac_fn_c_check_func "$LINENO" "gtk_file_chooser_dialog_new" "ac_cv_func_gtk_file_chooser_dialog_new"
12077as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8287if test "x$ac_cv_func_gtk_file_chooser_dialog_new" = x""yes; then :
12078{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12079$as_echo_n "checking for $ac_func... " >&6; }
12080if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12081 $as_echo_n "(cached) " >&6
12082else
12083 cat >conftest.$ac_ext <<_ACEOF
12084/* confdefs.h. */
12085_ACEOF
12086cat confdefs.h >>conftest.$ac_ext
12087cat >>conftest.$ac_ext <<_ACEOF
12088/* end confdefs.h. */
12089/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12091#define $ac_func innocuous_$ac_func
12092
12093/* System header to define __stub macros and hopefully few prototypes,
12094 which can conflict with char $ac_func (); below.
12095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12096 <limits.h> exists even on freestanding compilers. */
12097
12098#ifdef __STDC__
12099# include <limits.h>
12100#else
12101# include <assert.h>
12102#endif
12103
12104#undef $ac_func
12105
12106/* Override any GCC internal prototype to avoid an error.
12107 Use char because int might match the return type of a GCC
12108 builtin and then its argument prototype would still apply. */
12109#ifdef __cplusplus
12110extern "C"
12111#endif
12112char $ac_func ();
12113/* The GNU C library defines this for functions which it implements
12114 to always fail with ENOSYS. Some functions are actually named
12115 something starting with __ and the normal name is an alias. */
12116#if defined __stub_$ac_func || defined __stub___$ac_func
12117choke me
12118#endif
12119
12120int
12121main ()
12122{
12123return $ac_func ();
12124 ;
12125 return 0;
12126}
12127_ACEOF
12128rm -f conftest.$ac_objext conftest$ac_exeext
12129if { (ac_try="$ac_link"
12130case "(($ac_try" in
12131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132 *) ac_try_echo=$ac_try;;
12133esac
12134eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12135$as_echo "$ac_try_echo") >&5
12136 (eval "$ac_link") 2>conftest.er1
12137 ac_status=$?
12138 grep -v '^ *+' conftest.er1 >conftest.err
12139 rm -f conftest.er1
12140 cat conftest.err >&5
12141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); } && {
12143 test -z "$ac_c_werror_flag" ||
12144 test ! -s conftest.err
12145 } && test -s conftest$ac_exeext && {
12146 test "$cross_compiling" = yes ||
12147 $as_test_x conftest$ac_exeext
12148 }; then
12149 eval "$as_ac_var=yes"
12150else
12151 $as_echo "$as_me: failed program was:" >&5
12152sed 's/^/| /' conftest.$ac_ext >&5
12153
12154 eval "$as_ac_var=no"
12155fi
12156
12157rm -rf conftest.dSYM
12158rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12159 conftest$ac_exeext conftest.$ac_ext
12160fi
12161ac_res=`eval 'as_val=${'$as_ac_var'}
12162 $as_echo "$as_val"'`
12163 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12164$as_echo "$ac_res" >&6; }
12165if test `eval 'as_val=${'$as_ac_var'}
12166 $as_echo "$as_val"'` = yes; then
12167 cat >>confdefs.h <<_ACEOF 8288 cat >>confdefs.h <<_ACEOF
12168#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8289#define HAVE_GTK_FILE_CHOOSER_DIALOG_NEW 1
12169_ACEOF 8290_ACEOF
12170 HAVE_GTK_FILE_CHOOSER=yes 8291 HAVE_GTK_FILE_CHOOSER=yes
12171else 8292else
@@ -12178,153 +8299,18 @@ done
12178 if test "$HAVE_GTK_FILE_SELECTION" = yes \ 8299 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12179 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then 8300 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12180 8301
12181cat >>confdefs.h <<\_ACEOF 8302$as_echo "#define HAVE_GTK_FILE_BOTH 1" >>confdefs.h
12182#define HAVE_GTK_FILE_BOTH 1
12183_ACEOF
12184 8303
12185 fi 8304 fi
12186 8305
12187 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then 8306 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12188 HAVE_GTK_AND_PTHREAD=no 8307 HAVE_GTK_AND_PTHREAD=no
12189 8308 for ac_header in pthread.h
12190for ac_header in pthread.h 8309do :
12191do 8310 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
12192as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8311if test "x$ac_cv_header_pthread_h" = x""yes; then :
12193if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12194 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12195$as_echo_n "checking for $ac_header... " >&6; }
12196if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12197 $as_echo_n "(cached) " >&6
12198fi
12199ac_res=`eval 'as_val=${'$as_ac_Header'}
12200 $as_echo "$as_val"'`
12201 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12202$as_echo "$ac_res" >&6; }
12203else
12204 # Is the header compilable?
12205{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12206$as_echo_n "checking $ac_header usability... " >&6; }
12207cat >conftest.$ac_ext <<_ACEOF
12208/* confdefs.h. */
12209_ACEOF
12210cat confdefs.h >>conftest.$ac_ext
12211cat >>conftest.$ac_ext <<_ACEOF
12212/* end confdefs.h. */
12213$ac_includes_default
12214#include <$ac_header>
12215_ACEOF
12216rm -f conftest.$ac_objext
12217if { (ac_try="$ac_compile"
12218case "(($ac_try" in
12219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220 *) ac_try_echo=$ac_try;;
12221esac
12222eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12223$as_echo "$ac_try_echo") >&5
12224 (eval "$ac_compile") 2>conftest.er1
12225 ac_status=$?
12226 grep -v '^ *+' conftest.er1 >conftest.err
12227 rm -f conftest.er1
12228 cat conftest.err >&5
12229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); } && {
12231 test -z "$ac_c_werror_flag" ||
12232 test ! -s conftest.err
12233 } && test -s conftest.$ac_objext; then
12234 ac_header_compiler=yes
12235else
12236 $as_echo "$as_me: failed program was:" >&5
12237sed 's/^/| /' conftest.$ac_ext >&5
12238
12239 ac_header_compiler=no
12240fi
12241
12242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12243{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12244$as_echo "$ac_header_compiler" >&6; }
12245
12246# Is the header present?
12247{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12248$as_echo_n "checking $ac_header presence... " >&6; }
12249cat >conftest.$ac_ext <<_ACEOF
12250/* confdefs.h. */
12251_ACEOF
12252cat confdefs.h >>conftest.$ac_ext
12253cat >>conftest.$ac_ext <<_ACEOF
12254/* end confdefs.h. */
12255#include <$ac_header>
12256_ACEOF
12257if { (ac_try="$ac_cpp conftest.$ac_ext"
12258case "(($ac_try" in
12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260 *) ac_try_echo=$ac_try;;
12261esac
12262eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12263$as_echo "$ac_try_echo") >&5
12264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12265 ac_status=$?
12266 grep -v '^ *+' conftest.er1 >conftest.err
12267 rm -f conftest.er1
12268 cat conftest.err >&5
12269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); } >/dev/null && {
12271 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12272 test ! -s conftest.err
12273 }; then
12274 ac_header_preproc=yes
12275else
12276 $as_echo "$as_me: failed program was:" >&5
12277sed 's/^/| /' conftest.$ac_ext >&5
12278
12279 ac_header_preproc=no
12280fi
12281
12282rm -f conftest.err conftest.$ac_ext
12283{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12284$as_echo "$ac_header_preproc" >&6; }
12285
12286# So? What about this header?
12287case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12288 yes:no: )
12289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12290$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12292$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12293 ac_header_preproc=yes
12294 ;;
12295 no:yes:* )
12296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12297$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12299$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12301$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12303$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12305$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12307$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12308
12309 ;;
12310esac
12311{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12312$as_echo_n "checking for $ac_header... " >&6; }
12313if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12314 $as_echo_n "(cached) " >&6
12315else
12316 eval "$as_ac_Header=\$ac_header_preproc"
12317fi
12318ac_res=`eval 'as_val=${'$as_ac_Header'}
12319 $as_echo "$as_val"'`
12320 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12321$as_echo "$ac_res" >&6; }
12322
12323fi
12324if test `eval 'as_val=${'$as_ac_Header'}
12325 $as_echo "$as_val"'` = yes; then
12326 cat >>confdefs.h <<_ACEOF 8312 cat >>confdefs.h <<_ACEOF
12327#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8313#define HAVE_PTHREAD_H 1
12328_ACEOF 8314_ACEOF
12329 8315
12330fi 8316fi
@@ -12332,18 +8318,14 @@ fi
12332done 8318done
12333 8319
12334 if test "$ac_cv_header_pthread_h"; then 8320 if test "$ac_cv_header_pthread_h"; then
12335 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5 8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
12336$as_echo_n "checking for pthread_self in -lpthread... " >&6; } 8322$as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12337if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then 8323if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
12338 $as_echo_n "(cached) " >&6 8324 $as_echo_n "(cached) " >&6
12339else 8325else
12340 ac_check_lib_save_LIBS=$LIBS 8326 ac_check_lib_save_LIBS=$LIBS
12341LIBS="-lpthread $LIBS" 8327LIBS="-lpthread $LIBS"
12342cat >conftest.$ac_ext <<_ACEOF 8328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343/* confdefs.h. */
12344_ACEOF
12345cat confdefs.h >>conftest.$ac_ext
12346cat >>conftest.$ac_ext <<_ACEOF
12347/* end confdefs.h. */ 8329/* end confdefs.h. */
12348 8330
12349/* Override any GCC internal prototype to avoid an error. 8331/* Override any GCC internal prototype to avoid an error.
@@ -12361,43 +8343,18 @@ return pthread_self ();
12361 return 0; 8343 return 0;
12362} 8344}
12363_ACEOF 8345_ACEOF
12364rm -f conftest.$ac_objext conftest$ac_exeext 8346if ac_fn_c_try_link "$LINENO"; then :
12365if { (ac_try="$ac_link"
12366case "(($ac_try" in
12367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12368 *) ac_try_echo=$ac_try;;
12369esac
12370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12371$as_echo "$ac_try_echo") >&5
12372 (eval "$ac_link") 2>conftest.er1
12373 ac_status=$?
12374 grep -v '^ *+' conftest.er1 >conftest.err
12375 rm -f conftest.er1
12376 cat conftest.err >&5
12377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); } && {
12379 test -z "$ac_c_werror_flag" ||
12380 test ! -s conftest.err
12381 } && test -s conftest$ac_exeext && {
12382 test "$cross_compiling" = yes ||
12383 $as_test_x conftest$ac_exeext
12384 }; then
12385 ac_cv_lib_pthread_pthread_self=yes 8347 ac_cv_lib_pthread_pthread_self=yes
12386else 8348else
12387 $as_echo "$as_me: failed program was:" >&5 8349 ac_cv_lib_pthread_pthread_self=no
12388sed 's/^/| /' conftest.$ac_ext >&5
12389
12390 ac_cv_lib_pthread_pthread_self=no
12391fi 8350fi
12392 8351rm -f core conftest.err conftest.$ac_objext \
12393rm -rf conftest.dSYM 8352 conftest$ac_exeext conftest.$ac_ext
12394rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12395 conftest$ac_exeext conftest.$ac_ext
12396LIBS=$ac_check_lib_save_LIBS 8353LIBS=$ac_check_lib_save_LIBS
12397fi 8354fi
12398{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5 8355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
12399$as_echo "$ac_cv_lib_pthread_pthread_self" >&6; } 8356$as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12400if test $ac_cv_lib_pthread_pthread_self = yes; then 8357if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
12401 HAVE_GTK_AND_PTHREAD=yes 8358 HAVE_GTK_AND_PTHREAD=yes
12402fi 8359fi
12403 8360
@@ -12408,9 +8365,7 @@ fi
12408 *) GTK_LIBS="$GTK_LIBS -lpthread" ;; 8365 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12409 esac 8366 esac
12410 8367
12411cat >>confdefs.h <<\_ACEOF 8368$as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
12412#define HAVE_GTK_AND_PTHREAD 1
12413_ACEOF
12414 8369
12415 fi 8370 fi
12416 fi 8371 fi
@@ -12424,9 +8379,9 @@ if test "${with_dbus}" = "yes"; then
12424 8379
12425 # Extract the first word of "pkg-config", so it can be a program name with args. 8380 # Extract the first word of "pkg-config", so it can be a program name with args.
12426set dummy pkg-config; ac_word=$2 8381set dummy pkg-config; ac_word=$2
12427{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 8382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12428$as_echo_n "checking for $ac_word... " >&6; } 8383$as_echo_n "checking for $ac_word... " >&6; }
12429if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 8384if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12430 $as_echo_n "(cached) " >&6 8385 $as_echo_n "(cached) " >&6
12431else 8386else
12432 case $PKG_CONFIG in 8387 case $PKG_CONFIG in
@@ -12439,14 +8394,14 @@ for as_dir in $PATH
12439do 8394do
12440 IFS=$as_save_IFS 8395 IFS=$as_save_IFS
12441 test -z "$as_dir" && as_dir=. 8396 test -z "$as_dir" && as_dir=.
12442 for ac_exec_ext in '' $ac_executable_extensions; do 8397 for ac_exec_ext in '' $ac_executable_extensions; do
12443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12444 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8399 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12445 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12446 break 2 8401 break 2
12447 fi 8402 fi
12448done 8403done
12449done 8404 done
12450IFS=$as_save_IFS 8405IFS=$as_save_IFS
12451 8406
12452 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 8407 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -12455,10 +8410,10 @@ esac
12455fi 8410fi
12456PKG_CONFIG=$ac_cv_path_PKG_CONFIG 8411PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12457if test -n "$PKG_CONFIG"; then 8412if test -n "$PKG_CONFIG"; then
12458 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12459$as_echo "$PKG_CONFIG" >&6; } 8414$as_echo "$PKG_CONFIG" >&6; }
12460else 8415else
12461 { $as_echo "$as_me:$LINENO: result: no" >&5 8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12462$as_echo "no" >&6; } 8417$as_echo "no" >&6; }
12463fi 8418fi
12464 8419
@@ -12469,27 +8424,27 @@ fi
12469 else 8424 else
12470 PKG_CONFIG_MIN_VERSION=0.9.0 8425 PKG_CONFIG_MIN_VERSION=0.9.0
12471 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 8426 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12472 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5 8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
12473$as_echo_n "checking for dbus-1 >= 1.0... " >&6; } 8428$as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12474 8429
12475 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then 8430 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12476 { $as_echo "$as_me:$LINENO: result: yes" >&5 8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12477$as_echo "yes" >&6; } 8432$as_echo "yes" >&6; }
12478 succeeded=yes 8433 succeeded=yes
12479 8434
12480 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5 8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
12481$as_echo_n "checking DBUS_CFLAGS... " >&6; } 8436$as_echo_n "checking DBUS_CFLAGS... " >&6; }
12482 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` 8437 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12483 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5 8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
12484$as_echo "$DBUS_CFLAGS" >&6; } 8439$as_echo "$DBUS_CFLAGS" >&6; }
12485 8440
12486 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5 8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
12487$as_echo_n "checking DBUS_LIBS... " >&6; } 8442$as_echo_n "checking DBUS_LIBS... " >&6; }
12488 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` 8443 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12489 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5 8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
12490$as_echo "$DBUS_LIBS" >&6; } 8445$as_echo "$DBUS_LIBS" >&6; }
12491 else 8446 else
12492 { $as_echo "$as_me:$LINENO: result: no" >&5 8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12493$as_echo "no" >&6; } 8448$as_echo "no" >&6; }
12494 DBUS_CFLAGS="" 8449 DBUS_CFLAGS=""
12495 DBUS_LIBS="" 8450 DBUS_LIBS=""
@@ -12516,105 +8471,14 @@ $as_echo "no" >&6; }
12516 if test "$HAVE_DBUS" = yes; then 8471 if test "$HAVE_DBUS" = yes; then
12517 LIBS="$LIBS $DBUS_LIBS" 8472 LIBS="$LIBS $DBUS_LIBS"
12518 8473
12519cat >>confdefs.h <<\_ACEOF 8474$as_echo "#define HAVE_DBUS 1" >>confdefs.h
12520#define HAVE_DBUS 1
12521_ACEOF
12522
12523
12524for ac_func in dbus_watch_get_unix_fd
12525do
12526as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12527{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12528$as_echo_n "checking for $ac_func... " >&6; }
12529if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12530 $as_echo_n "(cached) " >&6
12531else
12532 cat >conftest.$ac_ext <<_ACEOF
12533/* confdefs.h. */
12534_ACEOF
12535cat confdefs.h >>conftest.$ac_ext
12536cat >>conftest.$ac_ext <<_ACEOF
12537/* end confdefs.h. */
12538/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12540#define $ac_func innocuous_$ac_func
12541
12542/* System header to define __stub macros and hopefully few prototypes,
12543 which can conflict with char $ac_func (); below.
12544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12545 <limits.h> exists even on freestanding compilers. */
12546
12547#ifdef __STDC__
12548# include <limits.h>
12549#else
12550# include <assert.h>
12551#endif
12552
12553#undef $ac_func
12554
12555/* Override any GCC internal prototype to avoid an error.
12556 Use char because int might match the return type of a GCC
12557 builtin and then its argument prototype would still apply. */
12558#ifdef __cplusplus
12559extern "C"
12560#endif
12561char $ac_func ();
12562/* The GNU C library defines this for functions which it implements
12563 to always fail with ENOSYS. Some functions are actually named
12564 something starting with __ and the normal name is an alias. */
12565#if defined __stub_$ac_func || defined __stub___$ac_func
12566choke me
12567#endif
12568
12569int
12570main ()
12571{
12572return $ac_func ();
12573 ;
12574 return 0;
12575}
12576_ACEOF
12577rm -f conftest.$ac_objext conftest$ac_exeext
12578if { (ac_try="$ac_link"
12579case "(($ac_try" in
12580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581 *) ac_try_echo=$ac_try;;
12582esac
12583eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12584$as_echo "$ac_try_echo") >&5
12585 (eval "$ac_link") 2>conftest.er1
12586 ac_status=$?
12587 grep -v '^ *+' conftest.er1 >conftest.err
12588 rm -f conftest.er1
12589 cat conftest.err >&5
12590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); } && {
12592 test -z "$ac_c_werror_flag" ||
12593 test ! -s conftest.err
12594 } && test -s conftest$ac_exeext && {
12595 test "$cross_compiling" = yes ||
12596 $as_test_x conftest$ac_exeext
12597 }; then
12598 eval "$as_ac_var=yes"
12599else
12600 $as_echo "$as_me: failed program was:" >&5
12601sed 's/^/| /' conftest.$ac_ext >&5
12602
12603 eval "$as_ac_var=no"
12604fi
12605 8475
12606rm -rf conftest.dSYM 8476 for ac_func in dbus_watch_get_unix_fd
12607rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8477do :
12608 conftest$ac_exeext conftest.$ac_ext 8478 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
12609fi 8479if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
12610ac_res=`eval 'as_val=${'$as_ac_var'}
12611 $as_echo "$as_val"'`
12612 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12613$as_echo "$ac_res" >&6; }
12614if test `eval 'as_val=${'$as_ac_var'}
12615 $as_echo "$as_val"'` = yes; then
12616 cat >>confdefs.h <<_ACEOF 8480 cat >>confdefs.h <<_ACEOF
12617#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8481#define HAVE_DBUS_WATCH_GET_UNIX_FD 1
12618_ACEOF 8482_ACEOF
12619 8483
12620fi 8484fi
@@ -12632,9 +8496,9 @@ if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12632 8496
12633 # Extract the first word of "pkg-config", so it can be a program name with args. 8497 # Extract the first word of "pkg-config", so it can be a program name with args.
12634set dummy pkg-config; ac_word=$2 8498set dummy pkg-config; ac_word=$2
12635{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 8499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12636$as_echo_n "checking for $ac_word... " >&6; } 8500$as_echo_n "checking for $ac_word... " >&6; }
12637if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 8501if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12638 $as_echo_n "(cached) " >&6 8502 $as_echo_n "(cached) " >&6
12639else 8503else
12640 case $PKG_CONFIG in 8504 case $PKG_CONFIG in
@@ -12647,14 +8511,14 @@ for as_dir in $PATH
12647do 8511do
12648 IFS=$as_save_IFS 8512 IFS=$as_save_IFS
12649 test -z "$as_dir" && as_dir=. 8513 test -z "$as_dir" && as_dir=.
12650 for ac_exec_ext in '' $ac_executable_extensions; do 8514 for ac_exec_ext in '' $ac_executable_extensions; do
12651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12652 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8516 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12653 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12654 break 2 8518 break 2
12655 fi 8519 fi
12656done 8520done
12657done 8521 done
12658IFS=$as_save_IFS 8522IFS=$as_save_IFS
12659 8523
12660 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 8524 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -12663,10 +8527,10 @@ esac
12663fi 8527fi
12664PKG_CONFIG=$ac_cv_path_PKG_CONFIG 8528PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12665if test -n "$PKG_CONFIG"; then 8529if test -n "$PKG_CONFIG"; then
12666 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12667$as_echo "$PKG_CONFIG" >&6; } 8531$as_echo "$PKG_CONFIG" >&6; }
12668else 8532else
12669 { $as_echo "$as_me:$LINENO: result: no" >&5 8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12670$as_echo "no" >&6; } 8534$as_echo "no" >&6; }
12671fi 8535fi
12672 8536
@@ -12677,27 +8541,27 @@ fi
12677 else 8541 else
12678 PKG_CONFIG_MIN_VERSION=0.9.0 8542 PKG_CONFIG_MIN_VERSION=0.9.0
12679 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 8543 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12680 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5 8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
12681$as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; } 8545$as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12682 8546
12683 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then 8547 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12684 { $as_echo "$as_me:$LINENO: result: yes" >&5 8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12685$as_echo "yes" >&6; } 8549$as_echo "yes" >&6; }
12686 succeeded=yes 8550 succeeded=yes
12687 8551
12688 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5 8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
12689$as_echo_n "checking GCONF_CFLAGS... " >&6; } 8553$as_echo_n "checking GCONF_CFLAGS... " >&6; }
12690 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` 8554 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12691 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5 8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
12692$as_echo "$GCONF_CFLAGS" >&6; } 8556$as_echo "$GCONF_CFLAGS" >&6; }
12693 8557
12694 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5 8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
12695$as_echo_n "checking GCONF_LIBS... " >&6; } 8559$as_echo_n "checking GCONF_LIBS... " >&6; }
12696 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` 8560 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12697 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5 8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
12698$as_echo "$GCONF_LIBS" >&6; } 8562$as_echo "$GCONF_LIBS" >&6; }
12699 else 8563 else
12700 { $as_echo "$as_me:$LINENO: result: no" >&5 8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12701$as_echo "no" >&6; } 8565$as_echo "no" >&6; }
12702 GCONF_CFLAGS="" 8566 GCONF_CFLAGS=""
12703 GCONF_LIBS="" 8567 GCONF_LIBS=""
@@ -12723,9 +8587,7 @@ $as_echo "no" >&6; }
12723 8587
12724 if test "$HAVE_GCONF" = yes; then 8588 if test "$HAVE_GCONF" = yes; then
12725 8589
12726cat >>confdefs.h <<\_ACEOF 8590$as_echo "#define HAVE_GCONF 1" >>confdefs.h
12727#define HAVE_GCONF 1
12728_ACEOF
12729 8591
12730 fi 8592 fi
12731fi 8593fi
@@ -12733,18 +8595,14 @@ fi
12733HAVE_LIBSELINUX=no 8595HAVE_LIBSELINUX=no
12734LIBSELINUX_LIBS= 8596LIBSELINUX_LIBS=
12735if test "${with_selinux}" = "yes"; then 8597if test "${with_selinux}" = "yes"; then
12736 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5 8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
12737$as_echo_n "checking for lgetfilecon in -lselinux... " >&6; } 8599$as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
12738if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then 8600if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
12739 $as_echo_n "(cached) " >&6 8601 $as_echo_n "(cached) " >&6
12740else 8602else
12741 ac_check_lib_save_LIBS=$LIBS 8603 ac_check_lib_save_LIBS=$LIBS
12742LIBS="-lselinux $LIBS" 8604LIBS="-lselinux $LIBS"
12743cat >conftest.$ac_ext <<_ACEOF 8605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12744/* confdefs.h. */
12745_ACEOF
12746cat confdefs.h >>conftest.$ac_ext
12747cat >>conftest.$ac_ext <<_ACEOF
12748/* end confdefs.h. */ 8606/* end confdefs.h. */
12749 8607
12750/* Override any GCC internal prototype to avoid an error. 8608/* Override any GCC internal prototype to avoid an error.
@@ -12762,43 +8620,18 @@ return lgetfilecon ();
12762 return 0; 8620 return 0;
12763} 8621}
12764_ACEOF 8622_ACEOF
12765rm -f conftest.$ac_objext conftest$ac_exeext 8623if ac_fn_c_try_link "$LINENO"; then :
12766if { (ac_try="$ac_link"
12767case "(($ac_try" in
12768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12769 *) ac_try_echo=$ac_try;;
12770esac
12771eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12772$as_echo "$ac_try_echo") >&5
12773 (eval "$ac_link") 2>conftest.er1
12774 ac_status=$?
12775 grep -v '^ *+' conftest.er1 >conftest.err
12776 rm -f conftest.er1
12777 cat conftest.err >&5
12778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } && {
12780 test -z "$ac_c_werror_flag" ||
12781 test ! -s conftest.err
12782 } && test -s conftest$ac_exeext && {
12783 test "$cross_compiling" = yes ||
12784 $as_test_x conftest$ac_exeext
12785 }; then
12786 ac_cv_lib_selinux_lgetfilecon=yes 8624 ac_cv_lib_selinux_lgetfilecon=yes
12787else 8625else
12788 $as_echo "$as_me: failed program was:" >&5 8626 ac_cv_lib_selinux_lgetfilecon=no
12789sed 's/^/| /' conftest.$ac_ext >&5
12790
12791 ac_cv_lib_selinux_lgetfilecon=no
12792fi 8627fi
12793 8628rm -f core conftest.err conftest.$ac_objext \
12794rm -rf conftest.dSYM 8629 conftest$ac_exeext conftest.$ac_ext
12795rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12796 conftest$ac_exeext conftest.$ac_ext
12797LIBS=$ac_check_lib_save_LIBS 8630LIBS=$ac_check_lib_save_LIBS
12798fi 8631fi
12799{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5 8632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
12800$as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; } 8633$as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
12801if test $ac_cv_lib_selinux_lgetfilecon = yes; then 8634if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
12802 HAVE_LIBSELINUX=yes 8635 HAVE_LIBSELINUX=yes
12803else 8636else
12804 HAVE_LIBSELINUX=no 8637 HAVE_LIBSELINUX=no
@@ -12806,9 +8639,7 @@ fi
12806 8639
12807 if test "$HAVE_LIBSELINUX" = yes; then 8640 if test "$HAVE_LIBSELINUX" = yes; then
12808 8641
12809cat >>confdefs.h <<\_ACEOF 8642$as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
12810#define HAVE_LIBSELINUX 1
12811_ACEOF
12812 8643
12813 LIBSELINUX_LIBS=-lselinux 8644 LIBSELINUX_LIBS=-lselinux
12814 fi 8645 fi
@@ -12818,16 +8649,12 @@ fi
12818HAVE_XAW3D=no 8649HAVE_XAW3D=no
12819if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then 8650if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12820 if test "$with_xaw3d" != no; then 8651 if test "$with_xaw3d" != no; then
12821 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5 8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12822$as_echo_n "checking for xaw3d... " >&6; } 8653$as_echo_n "checking for xaw3d... " >&6; }
12823 if test "${emacs_cv_xaw3d+set}" = set; then 8654 if test "${emacs_cv_xaw3d+set}" = set; then :
12824 $as_echo_n "(cached) " >&6 8655 $as_echo_n "(cached) " >&6
12825else 8656else
12826 cat >conftest.$ac_ext <<_ACEOF 8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12827/* confdefs.h. */
12828_ACEOF
12829cat confdefs.h >>conftest.$ac_ext
12830cat >>conftest.$ac_ext <<_ACEOF
12831/* end confdefs.h. */ 8658/* end confdefs.h. */
12832 8659
12833#include <X11/Intrinsic.h> 8660#include <X11/Intrinsic.h>
@@ -12840,66 +8667,35 @@ main ()
12840 return 0; 8667 return 0;
12841} 8668}
12842_ACEOF 8669_ACEOF
12843rm -f conftest.$ac_objext conftest$ac_exeext 8670if ac_fn_c_try_link "$LINENO"; then :
12844if { (ac_try="$ac_link"
12845case "(($ac_try" in
12846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847 *) ac_try_echo=$ac_try;;
12848esac
12849eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12850$as_echo "$ac_try_echo") >&5
12851 (eval "$ac_link") 2>conftest.er1
12852 ac_status=$?
12853 grep -v '^ *+' conftest.er1 >conftest.err
12854 rm -f conftest.er1
12855 cat conftest.err >&5
12856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); } && {
12858 test -z "$ac_c_werror_flag" ||
12859 test ! -s conftest.err
12860 } && test -s conftest$ac_exeext && {
12861 test "$cross_compiling" = yes ||
12862 $as_test_x conftest$ac_exeext
12863 }; then
12864 emacs_cv_xaw3d=yes 8671 emacs_cv_xaw3d=yes
12865else 8672else
12866 $as_echo "$as_me: failed program was:" >&5 8673 emacs_cv_xaw3d=no
12867sed 's/^/| /' conftest.$ac_ext >&5
12868
12869 emacs_cv_xaw3d=no
12870fi 8674fi
12871 8675rm -f core conftest.err conftest.$ac_objext \
12872rm -rf conftest.dSYM 8676 conftest$ac_exeext conftest.$ac_ext
12873rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12874 conftest$ac_exeext conftest.$ac_ext
12875fi 8677fi
12876 8678
12877 else 8679 else
12878 emacs_cv_xaw3d=no 8680 emacs_cv_xaw3d=no
12879 fi 8681 fi
12880 if test $emacs_cv_xaw3d = yes; then 8682 if test $emacs_cv_xaw3d = yes; then
12881 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5 8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12882$as_echo "yes; using Lucid toolkit" >&6; } 8684$as_echo "yes; using Lucid toolkit" >&6; }
12883 USE_X_TOOLKIT=LUCID 8685 USE_X_TOOLKIT=LUCID
12884 HAVE_XAW3D=yes 8686 HAVE_XAW3D=yes
12885 8687
12886cat >>confdefs.h <<\_ACEOF 8688$as_echo "#define HAVE_XAW3D 1" >>confdefs.h
12887#define HAVE_XAW3D 1
12888_ACEOF
12889 8689
12890 else 8690 else
12891 { $as_echo "$as_me:$LINENO: result: no" >&5 8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12892$as_echo "no" >&6; } 8692$as_echo "no" >&6; }
12893 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5 8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
12894$as_echo_n "checking for libXaw... " >&6; } 8694$as_echo_n "checking for libXaw... " >&6; }
12895 if test "${emacs_cv_xaw+set}" = set; then 8695 if test "${emacs_cv_xaw+set}" = set; then :
12896 $as_echo_n "(cached) " >&6 8696 $as_echo_n "(cached) " >&6
12897else 8697else
12898 cat >conftest.$ac_ext <<_ACEOF 8698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12899/* confdefs.h. */
12900_ACEOF
12901cat confdefs.h >>conftest.$ac_ext
12902cat >>conftest.$ac_ext <<_ACEOF
12903/* end confdefs.h. */ 8699/* end confdefs.h. */
12904 8700
12905#include <X11/Intrinsic.h> 8701#include <X11/Intrinsic.h>
@@ -12912,50 +8708,23 @@ main ()
12912 return 0; 8708 return 0;
12913} 8709}
12914_ACEOF 8710_ACEOF
12915rm -f conftest.$ac_objext conftest$ac_exeext 8711if ac_fn_c_try_link "$LINENO"; then :
12916if { (ac_try="$ac_link"
12917case "(($ac_try" in
12918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12919 *) ac_try_echo=$ac_try;;
12920esac
12921eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12922$as_echo "$ac_try_echo") >&5
12923 (eval "$ac_link") 2>conftest.er1
12924 ac_status=$?
12925 grep -v '^ *+' conftest.er1 >conftest.err
12926 rm -f conftest.er1
12927 cat conftest.err >&5
12928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); } && {
12930 test -z "$ac_c_werror_flag" ||
12931 test ! -s conftest.err
12932 } && test -s conftest$ac_exeext && {
12933 test "$cross_compiling" = yes ||
12934 $as_test_x conftest$ac_exeext
12935 }; then
12936 emacs_cv_xaw=yes 8712 emacs_cv_xaw=yes
12937else 8713else
12938 $as_echo "$as_me: failed program was:" >&5 8714 emacs_cv_xaw=no
12939sed 's/^/| /' conftest.$ac_ext >&5
12940
12941 emacs_cv_xaw=no
12942fi 8715fi
12943 8716rm -f core conftest.err conftest.$ac_objext \
12944rm -rf conftest.dSYM 8717 conftest$ac_exeext conftest.$ac_ext
12945rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12946 conftest$ac_exeext conftest.$ac_ext
12947fi 8718fi
12948 8719
12949 if test $emacs_cv_xaw = yes; then 8720 if test $emacs_cv_xaw = yes; then
12950 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5 8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12951$as_echo "yes; using Lucid toolkit" >&6; } 8722$as_echo "yes; using Lucid toolkit" >&6; }
12952 USE_X_TOOLKIT=LUCID 8723 USE_X_TOOLKIT=LUCID
12953 elif test x"${USE_X_TOOLKIT}" = xLUCID; then 8724 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12954 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5 8725 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12955$as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12956 { (exit 1); exit 1; }; }
12957 else 8726 else
12958 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5 8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
12959$as_echo "no; do not use toolkit by default" >&6; } 8728$as_echo "no; do not use toolkit by default" >&6; }
12960 USE_X_TOOLKIT=none 8729 USE_X_TOOLKIT=none
12961 fi 8730 fi
@@ -12965,16 +8734,12 @@ fi
12965X_TOOLKIT_TYPE=$USE_X_TOOLKIT 8734X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12966 8735
12967if test "${USE_X_TOOLKIT}" != "none"; then 8736if test "${USE_X_TOOLKIT}" != "none"; then
12968 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5 8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12969$as_echo_n "checking X11 toolkit version... " >&6; } 8738$as_echo_n "checking X11 toolkit version... " >&6; }
12970 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then 8739 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12971 $as_echo_n "(cached) " >&6 8740 $as_echo_n "(cached) " >&6
12972else 8741else
12973 cat >conftest.$ac_ext <<_ACEOF 8742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12974/* confdefs.h. */
12975_ACEOF
12976cat confdefs.h >>conftest.$ac_ext
12977cat >>conftest.$ac_ext <<_ACEOF
12978/* end confdefs.h. */ 8743/* end confdefs.h. */
12979#include <X11/Intrinsic.h> 8744#include <X11/Intrinsic.h>
12980int 8745int
@@ -12988,51 +8753,24 @@ fail;
12988 return 0; 8753 return 0;
12989} 8754}
12990_ACEOF 8755_ACEOF
12991rm -f conftest.$ac_objext conftest$ac_exeext 8756if ac_fn_c_try_link "$LINENO"; then :
12992if { (ac_try="$ac_link"
12993case "(($ac_try" in
12994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12995 *) ac_try_echo=$ac_try;;
12996esac
12997eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12998$as_echo "$ac_try_echo") >&5
12999 (eval "$ac_link") 2>conftest.er1
13000 ac_status=$?
13001 grep -v '^ *+' conftest.er1 >conftest.err
13002 rm -f conftest.er1
13003 cat conftest.err >&5
13004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); } && {
13006 test -z "$ac_c_werror_flag" ||
13007 test ! -s conftest.err
13008 } && test -s conftest$ac_exeext && {
13009 test "$cross_compiling" = yes ||
13010 $as_test_x conftest$ac_exeext
13011 }; then
13012 emacs_cv_x11_toolkit_version_6=yes 8757 emacs_cv_x11_toolkit_version_6=yes
13013else 8758else
13014 $as_echo "$as_me: failed program was:" >&5 8759 emacs_cv_x11_toolkit_version_6=no
13015sed 's/^/| /' conftest.$ac_ext >&5
13016
13017 emacs_cv_x11_toolkit_version_6=no
13018fi 8760fi
13019 8761rm -f core conftest.err conftest.$ac_objext \
13020rm -rf conftest.dSYM 8762 conftest$ac_exeext conftest.$ac_ext
13021rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13022 conftest$ac_exeext conftest.$ac_ext
13023fi 8763fi
13024 8764
13025 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 8765 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13026 if test $emacs_cv_x11_toolkit_version_6 = yes; then 8766 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13027 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5 8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
13028$as_echo "6 or newer" >&6; } 8768$as_echo "6 or newer" >&6; }
13029 8769
13030cat >>confdefs.h <<\_ACEOF 8770$as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
13031#define HAVE_X11XTR6 1
13032_ACEOF
13033 8771
13034 else 8772 else
13035 { $as_echo "$as_me:$LINENO: result: before 6" >&5 8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
13036$as_echo "before 6" >&6; } 8774$as_echo "before 6" >&6; }
13037 fi 8775 fi
13038 8776
@@ -13042,19 +8780,14 @@ $as_echo "before 6" >&6; }
13042 else 8780 else
13043 LIBS="-lXt $LIBS" 8781 LIBS="-lXt $LIBS"
13044 fi 8782 fi
13045 8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
13046{ $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13047$as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; } 8784$as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13048if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then 8785if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
13049 $as_echo_n "(cached) " >&6 8786 $as_echo_n "(cached) " >&6
13050else 8787else
13051 ac_check_lib_save_LIBS=$LIBS 8788 ac_check_lib_save_LIBS=$LIBS
13052LIBS="-lXmu $LIBS" 8789LIBS="-lXmu $LIBS"
13053cat >conftest.$ac_ext <<_ACEOF 8790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13054/* confdefs.h. */
13055_ACEOF
13056cat confdefs.h >>conftest.$ac_ext
13057cat >>conftest.$ac_ext <<_ACEOF
13058/* end confdefs.h. */ 8791/* end confdefs.h. */
13059 8792
13060/* Override any GCC internal prototype to avoid an error. 8793/* Override any GCC internal prototype to avoid an error.
@@ -13072,43 +8805,18 @@ return XmuConvertStandardSelection ();
13072 return 0; 8805 return 0;
13073} 8806}
13074_ACEOF 8807_ACEOF
13075rm -f conftest.$ac_objext conftest$ac_exeext 8808if ac_fn_c_try_link "$LINENO"; then :
13076if { (ac_try="$ac_link"
13077case "(($ac_try" in
13078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079 *) ac_try_echo=$ac_try;;
13080esac
13081eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13082$as_echo "$ac_try_echo") >&5
13083 (eval "$ac_link") 2>conftest.er1
13084 ac_status=$?
13085 grep -v '^ *+' conftest.er1 >conftest.err
13086 rm -f conftest.er1
13087 cat conftest.err >&5
13088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); } && {
13090 test -z "$ac_c_werror_flag" ||
13091 test ! -s conftest.err
13092 } && test -s conftest$ac_exeext && {
13093 test "$cross_compiling" = yes ||
13094 $as_test_x conftest$ac_exeext
13095 }; then
13096 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes 8809 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13097else 8810else
13098 $as_echo "$as_me: failed program was:" >&5 8811 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13099sed 's/^/| /' conftest.$ac_ext >&5
13100
13101 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13102fi 8812fi
13103 8813rm -f core conftest.err conftest.$ac_objext \
13104rm -rf conftest.dSYM 8814 conftest$ac_exeext conftest.$ac_ext
13105rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13106 conftest$ac_exeext conftest.$ac_ext
13107LIBS=$ac_check_lib_save_LIBS 8815LIBS=$ac_check_lib_save_LIBS
13108fi 8816fi
13109{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 8817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13110$as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; } 8818$as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13111if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then 8819if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
13112 cat >>confdefs.h <<_ACEOF 8820 cat >>confdefs.h <<_ACEOF
13113#define HAVE_LIBXMU 1 8821#define HAVE_LIBXMU 1
13114_ACEOF 8822_ACEOF
@@ -13123,19 +8831,14 @@ fi
13123# On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. 8831# On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13124if test "${HAVE_X11}" = "yes"; then 8832if test "${HAVE_X11}" = "yes"; then
13125 if test "${USE_X_TOOLKIT}" != "none"; then 8833 if test "${USE_X_TOOLKIT}" != "none"; then
13126 8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
13127{ $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13128$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } 8835$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13129if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then 8836if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
13130 $as_echo_n "(cached) " >&6 8837 $as_echo_n "(cached) " >&6
13131else 8838else
13132 ac_check_lib_save_LIBS=$LIBS 8839 ac_check_lib_save_LIBS=$LIBS
13133LIBS="-lXext $LIBS" 8840LIBS="-lXext $LIBS"
13134cat >conftest.$ac_ext <<_ACEOF 8841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13135/* confdefs.h. */
13136_ACEOF
13137cat confdefs.h >>conftest.$ac_ext
13138cat >>conftest.$ac_ext <<_ACEOF
13139/* end confdefs.h. */ 8842/* end confdefs.h. */
13140 8843
13141/* Override any GCC internal prototype to avoid an error. 8844/* Override any GCC internal prototype to avoid an error.
@@ -13153,43 +8856,18 @@ return XShapeQueryExtension ();
13153 return 0; 8856 return 0;
13154} 8857}
13155_ACEOF 8858_ACEOF
13156rm -f conftest.$ac_objext conftest$ac_exeext 8859if ac_fn_c_try_link "$LINENO"; then :
13157if { (ac_try="$ac_link"
13158case "(($ac_try" in
13159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13160 *) ac_try_echo=$ac_try;;
13161esac
13162eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13163$as_echo "$ac_try_echo") >&5
13164 (eval "$ac_link") 2>conftest.er1
13165 ac_status=$?
13166 grep -v '^ *+' conftest.er1 >conftest.err
13167 rm -f conftest.er1
13168 cat conftest.err >&5
13169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); } && {
13171 test -z "$ac_c_werror_flag" ||
13172 test ! -s conftest.err
13173 } && test -s conftest$ac_exeext && {
13174 test "$cross_compiling" = yes ||
13175 $as_test_x conftest$ac_exeext
13176 }; then
13177 ac_cv_lib_Xext_XShapeQueryExtension=yes 8860 ac_cv_lib_Xext_XShapeQueryExtension=yes
13178else 8861else
13179 $as_echo "$as_me: failed program was:" >&5 8862 ac_cv_lib_Xext_XShapeQueryExtension=no
13180sed 's/^/| /' conftest.$ac_ext >&5
13181
13182 ac_cv_lib_Xext_XShapeQueryExtension=no
13183fi 8863fi
13184 8864rm -f core conftest.err conftest.$ac_objext \
13185rm -rf conftest.dSYM 8865 conftest$ac_exeext conftest.$ac_ext
13186rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13187 conftest$ac_exeext conftest.$ac_ext
13188LIBS=$ac_check_lib_save_LIBS 8866LIBS=$ac_check_lib_save_LIBS
13189fi 8867fi
13190{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 8868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13191$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } 8869$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13192if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then 8870if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
13193 cat >>confdefs.h <<_ACEOF 8871 cat >>confdefs.h <<_ACEOF
13194#define HAVE_LIBXEXT 1 8872#define HAVE_LIBXEXT 1
13195_ACEOF 8873_ACEOF
@@ -13202,16 +8880,12 @@ fi
13202fi 8880fi
13203 8881
13204if test "${USE_X_TOOLKIT}" = "MOTIF"; then 8882if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13205 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5 8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
13206$as_echo_n "checking for Motif version 2.1... " >&6; } 8884$as_echo_n "checking for Motif version 2.1... " >&6; }
13207if test "${emacs_cv_motif_version_2_1+set}" = set; then 8885if test "${emacs_cv_motif_version_2_1+set}" = set; then :
13208 $as_echo_n "(cached) " >&6 8886 $as_echo_n "(cached) " >&6
13209else 8887else
13210 cat >conftest.$ac_ext <<_ACEOF 8888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13211/* confdefs.h. */
13212_ACEOF
13213cat confdefs.h >>conftest.$ac_ext
13214cat >>conftest.$ac_ext <<_ACEOF
13215/* end confdefs.h. */ 8889/* end confdefs.h. */
13216#include <Xm/Xm.h> 8890#include <Xm/Xm.h>
13217int 8891int
@@ -13226,56 +8900,29 @@ Motif version prior to 2.1.
13226 return 0; 8900 return 0;
13227} 8901}
13228_ACEOF 8902_ACEOF
13229rm -f conftest.$ac_objext 8903if ac_fn_c_try_compile "$LINENO"; then :
13230if { (ac_try="$ac_compile"
13231case "(($ac_try" in
13232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13233 *) ac_try_echo=$ac_try;;
13234esac
13235eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13236$as_echo "$ac_try_echo") >&5
13237 (eval "$ac_compile") 2>conftest.er1
13238 ac_status=$?
13239 grep -v '^ *+' conftest.er1 >conftest.err
13240 rm -f conftest.er1
13241 cat conftest.err >&5
13242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); } && {
13244 test -z "$ac_c_werror_flag" ||
13245 test ! -s conftest.err
13246 } && test -s conftest.$ac_objext; then
13247 emacs_cv_motif_version_2_1=yes 8904 emacs_cv_motif_version_2_1=yes
13248else 8905else
13249 $as_echo "$as_me: failed program was:" >&5 8906 emacs_cv_motif_version_2_1=no
13250sed 's/^/| /' conftest.$ac_ext >&5
13251
13252 emacs_cv_motif_version_2_1=no
13253fi 8907fi
13254
13255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13256fi 8909fi
13257{ $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5 8910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
13258$as_echo "$emacs_cv_motif_version_2_1" >&6; } 8911$as_echo "$emacs_cv_motif_version_2_1" >&6; }
13259 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 8912 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
13260 if test $emacs_cv_motif_version_2_1 = yes; then 8913 if test $emacs_cv_motif_version_2_1 = yes; then
13261 HAVE_LIBXP=no 8914 HAVE_LIBXP=no
13262 8915
13263cat >>confdefs.h <<\_ACEOF 8916$as_echo "#define HAVE_MOTIF_2_1 1" >>confdefs.h
13264#define HAVE_MOTIF_2_1 1
13265_ACEOF
13266 8917
13267 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5 8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
13268$as_echo_n "checking for XpCreateContext in -lXp... " >&6; } 8919$as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13269if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then 8920if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
13270 $as_echo_n "(cached) " >&6 8921 $as_echo_n "(cached) " >&6
13271else 8922else
13272 ac_check_lib_save_LIBS=$LIBS 8923 ac_check_lib_save_LIBS=$LIBS
13273LIBS="-lXp $LIBS" 8924LIBS="-lXp $LIBS"
13274cat >conftest.$ac_ext <<_ACEOF 8925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13275/* confdefs.h. */
13276_ACEOF
13277cat confdefs.h >>conftest.$ac_ext
13278cat >>conftest.$ac_ext <<_ACEOF
13279/* end confdefs.h. */ 8926/* end confdefs.h. */
13280 8927
13281/* Override any GCC internal prototype to avoid an error. 8928/* Override any GCC internal prototype to avoid an error.
@@ -13293,57 +8940,30 @@ return XpCreateContext ();
13293 return 0; 8940 return 0;
13294} 8941}
13295_ACEOF 8942_ACEOF
13296rm -f conftest.$ac_objext conftest$ac_exeext 8943if ac_fn_c_try_link "$LINENO"; then :
13297if { (ac_try="$ac_link"
13298case "(($ac_try" in
13299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13300 *) ac_try_echo=$ac_try;;
13301esac
13302eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13303$as_echo "$ac_try_echo") >&5
13304 (eval "$ac_link") 2>conftest.er1
13305 ac_status=$?
13306 grep -v '^ *+' conftest.er1 >conftest.err
13307 rm -f conftest.er1
13308 cat conftest.err >&5
13309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); } && {
13311 test -z "$ac_c_werror_flag" ||
13312 test ! -s conftest.err
13313 } && test -s conftest$ac_exeext && {
13314 test "$cross_compiling" = yes ||
13315 $as_test_x conftest$ac_exeext
13316 }; then
13317 ac_cv_lib_Xp_XpCreateContext=yes 8944 ac_cv_lib_Xp_XpCreateContext=yes
13318else 8945else
13319 $as_echo "$as_me: failed program was:" >&5 8946 ac_cv_lib_Xp_XpCreateContext=no
13320sed 's/^/| /' conftest.$ac_ext >&5
13321
13322 ac_cv_lib_Xp_XpCreateContext=no
13323fi 8947fi
13324 8948rm -f core conftest.err conftest.$ac_objext \
13325rm -rf conftest.dSYM 8949 conftest$ac_exeext conftest.$ac_ext
13326rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13327 conftest$ac_exeext conftest.$ac_ext
13328LIBS=$ac_check_lib_save_LIBS 8950LIBS=$ac_check_lib_save_LIBS
13329fi 8951fi
13330{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5 8952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13331$as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; } 8953$as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13332if test $ac_cv_lib_Xp_XpCreateContext = yes; then 8954if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
13333 HAVE_LIBXP=yes 8955 HAVE_LIBXP=yes
13334fi 8956fi
13335 8957
13336 if test ${HAVE_LIBXP} = yes; then 8958 if test ${HAVE_LIBXP} = yes; then
13337 8959
13338cat >>confdefs.h <<\_ACEOF 8960$as_echo "#define HAVE_LIBXP 1" >>confdefs.h
13339#define HAVE_LIBXP 1
13340_ACEOF
13341 8961
13342 fi 8962 fi
13343 else 8963 else
13344 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5 8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
13345$as_echo_n "checking for LessTif where some systems put it... " >&6; } 8965$as_echo_n "checking for LessTif where some systems put it... " >&6; }
13346if test "${emacs_cv_lesstif+set}" = set; then 8966if test "${emacs_cv_lesstif+set}" = set; then :
13347 $as_echo_n "(cached) " >&6 8967 $as_echo_n "(cached) " >&6
13348else 8968else
13349 # We put this in CFLAGS temporarily to precede other -I options 8969 # We put this in CFLAGS temporarily to precede other -I options
@@ -13353,11 +8973,7 @@ else
13353 OLD_CFLAGS=$CFLAGS 8973 OLD_CFLAGS=$CFLAGS
13354 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" 8974 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13355 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" 8975 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13356 cat >conftest.$ac_ext <<_ACEOF 8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13357/* confdefs.h. */
13358_ACEOF
13359cat confdefs.h >>conftest.$ac_ext
13360cat >>conftest.$ac_ext <<_ACEOF
13361/* end confdefs.h. */ 8977/* end confdefs.h. */
13362#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h> 8978#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13363int 8979int
@@ -13368,35 +8984,14 @@ int x = 5;
13368 return 0; 8984 return 0;
13369} 8985}
13370_ACEOF 8986_ACEOF
13371rm -f conftest.$ac_objext 8987if ac_fn_c_try_compile "$LINENO"; then :
13372if { (ac_try="$ac_compile"
13373case "(($ac_try" in
13374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375 *) ac_try_echo=$ac_try;;
13376esac
13377eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13378$as_echo "$ac_try_echo") >&5
13379 (eval "$ac_compile") 2>conftest.er1
13380 ac_status=$?
13381 grep -v '^ *+' conftest.er1 >conftest.err
13382 rm -f conftest.er1
13383 cat conftest.err >&5
13384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); } && {
13386 test -z "$ac_c_werror_flag" ||
13387 test ! -s conftest.err
13388 } && test -s conftest.$ac_objext; then
13389 emacs_cv_lesstif=yes 8988 emacs_cv_lesstif=yes
13390else 8989else
13391 $as_echo "$as_me: failed program was:" >&5 8990 emacs_cv_lesstif=no
13392sed 's/^/| /' conftest.$ac_ext >&5
13393
13394 emacs_cv_lesstif=no
13395fi 8991fi
13396
13397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13398fi 8993fi
13399{ $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5 8994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
13400$as_echo "$emacs_cv_lesstif" >&6; } 8995$as_echo "$emacs_cv_lesstif" >&6; }
13401 if test $emacs_cv_lesstif = yes; then 8996 if test $emacs_cv_lesstif = yes; then
13402 # Make sure this -I option remains in CPPFLAGS after it is set 8997 # Make sure this -I option remains in CPPFLAGS after it is set
@@ -13414,44 +9009,31 @@ $as_echo "$emacs_cv_lesstif" >&6; }
13414fi 9009fi
13415 9010
13416 9011
13417
13418USE_TOOLKIT_SCROLL_BARS=no 9012USE_TOOLKIT_SCROLL_BARS=no
13419if test "${with_toolkit_scroll_bars}" != "no"; then 9013if test "${with_toolkit_scroll_bars}" != "no"; then
13420 if test "${USE_X_TOOLKIT}" != "none"; then 9014 if test "${USE_X_TOOLKIT}" != "none"; then
13421 if test "${USE_X_TOOLKIT}" = "MOTIF"; then 9015 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13422 cat >>confdefs.h <<\_ACEOF 9016 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
13423#define USE_TOOLKIT_SCROLL_BARS 1
13424_ACEOF
13425 9017
13426 HAVE_XAW3D=no 9018 HAVE_XAW3D=no
13427 USE_TOOLKIT_SCROLL_BARS=yes 9019 USE_TOOLKIT_SCROLL_BARS=yes
13428 elif test "${HAVE_XAW3D}" = "yes"; then 9020 elif test "${HAVE_XAW3D}" = "yes"; then
13429 cat >>confdefs.h <<\_ACEOF 9021 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
13430#define USE_TOOLKIT_SCROLL_BARS 1
13431_ACEOF
13432 9022
13433 USE_TOOLKIT_SCROLL_BARS=yes 9023 USE_TOOLKIT_SCROLL_BARS=yes
13434 fi 9024 fi
13435 elif test "${HAVE_GTK}" = "yes"; then 9025 elif test "${HAVE_GTK}" = "yes"; then
13436 cat >>confdefs.h <<\_ACEOF 9026 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
13437#define USE_TOOLKIT_SCROLL_BARS 1
13438_ACEOF
13439 9027
13440 USE_TOOLKIT_SCROLL_BARS=yes 9028 USE_TOOLKIT_SCROLL_BARS=yes
13441 elif test "${HAVE_NS}" = "yes"; then 9029 elif test "${HAVE_NS}" = "yes"; then
13442 cat >>confdefs.h <<\_ACEOF 9030 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
13443#define USE_TOOLKIT_SCROLL_BARS 1
13444_ACEOF
13445 9031
13446 USE_TOOLKIT_SCROLL_BARS=yes 9032 USE_TOOLKIT_SCROLL_BARS=yes
13447 fi 9033 fi
13448fi 9034fi
13449 9035
13450cat >conftest.$ac_ext <<_ACEOF 9036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13451/* confdefs.h. */
13452_ACEOF
13453cat confdefs.h >>conftest.$ac_ext
13454cat >>conftest.$ac_ext <<_ACEOF
13455/* end confdefs.h. */ 9037/* end confdefs.h. */
13456 9038
13457 #include <X11/Xlib.h> 9039 #include <X11/Xlib.h>
@@ -13464,45 +9046,20 @@ XIMProc callback;
13464 return 0; 9046 return 0;
13465} 9047}
13466_ACEOF 9048_ACEOF
13467rm -f conftest.$ac_objext 9049if ac_fn_c_try_compile "$LINENO"; then :
13468if { (ac_try="$ac_compile"
13469case "(($ac_try" in
13470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13471 *) ac_try_echo=$ac_try;;
13472esac
13473eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13474$as_echo "$ac_try_echo") >&5
13475 (eval "$ac_compile") 2>conftest.er1
13476 ac_status=$?
13477 grep -v '^ *+' conftest.er1 >conftest.err
13478 rm -f conftest.er1
13479 cat conftest.err >&5
13480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); } && {
13482 test -z "$ac_c_werror_flag" ||
13483 test ! -s conftest.err
13484 } && test -s conftest.$ac_objext; then
13485 HAVE_XIM=yes 9050 HAVE_XIM=yes
13486 9051
13487cat >>confdefs.h <<\_ACEOF 9052$as_echo "#define HAVE_XIM 1" >>confdefs.h
13488#define HAVE_XIM 1
13489_ACEOF
13490 9053
13491else 9054else
13492 $as_echo "$as_me: failed program was:" >&5 9055 HAVE_XIM=no
13493sed 's/^/| /' conftest.$ac_ext >&5
13494
13495 HAVE_XIM=no
13496fi 9056fi
13497
13498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13499 9058
13500 9059
13501if test "${with_xim}" != "no"; then 9060if test "${with_xim}" != "no"; then
13502 9061
13503cat >>confdefs.h <<\_ACEOF 9062$as_echo "#define USE_XIM 1" >>confdefs.h
13504#define USE_XIM 1
13505_ACEOF
13506 9063
13507fi 9064fi
13508 9065
@@ -13512,11 +9069,7 @@ if test "${HAVE_XIM}" != "no"; then
13512 if test "$GCC" = yes; then 9069 if test "$GCC" = yes; then
13513 CFLAGS="$CFLAGS --pedantic-errors" 9070 CFLAGS="$CFLAGS --pedantic-errors"
13514 fi 9071 fi
13515 cat >conftest.$ac_ext <<_ACEOF 9072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13516/* confdefs.h. */
13517_ACEOF
13518cat confdefs.h >>conftest.$ac_ext
13519cat >>conftest.$ac_ext <<_ACEOF
13520/* end confdefs.h. */ 9073/* end confdefs.h. */
13521 9074
13522#include <X11/Xlib.h> 9075#include <X11/Xlib.h>
@@ -13542,43 +9095,15 @@ extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13542 return 0; 9095 return 0;
13543} 9096}
13544_ACEOF 9097_ACEOF
13545rm -f conftest.$ac_objext 9098if ac_fn_c_try_compile "$LINENO"; then :
13546if { (ac_try="$ac_compile"
13547case "(($ac_try" in
13548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549 *) ac_try_echo=$ac_try;;
13550esac
13551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13552$as_echo "$ac_try_echo") >&5
13553 (eval "$ac_compile") 2>conftest.er1
13554 ac_status=$?
13555 grep -v '^ *+' conftest.er1 >conftest.err
13556 rm -f conftest.er1
13557 cat conftest.err >&5
13558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } && {
13560 test -z "$ac_c_werror_flag" ||
13561 test ! -s conftest.err
13562 } && test -s conftest.$ac_objext; then
13563 emacs_cv_arg6_star=yes 9099 emacs_cv_arg6_star=yes
13564else
13565 $as_echo "$as_me: failed program was:" >&5
13566sed 's/^/| /' conftest.$ac_ext >&5
13567
13568
13569fi 9100fi
13570
13571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13572 9102 if test "$emacs_cv_arg6_star" = yes; then
13573 if test "$emacs_cv_arg6_star" = yes; then 9103 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
13574 cat >>confdefs.h <<\_ACEOF
13575#define XRegisterIMInstantiateCallback_arg6 XPointer*
13576_ACEOF
13577 9104
13578 else 9105 else
13579 cat >>confdefs.h <<\_ACEOF 9106 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
13580#define XRegisterIMInstantiateCallback_arg6 XPointer
13581_ACEOF
13582 9107
13583 fi 9108 fi
13584 CFLAGS=$late_CFLAGS 9109 CFLAGS=$late_CFLAGS
@@ -13595,9 +9120,9 @@ if test "${HAVE_X11}" = "yes"; then
13595 9120
13596 # Extract the first word of "pkg-config", so it can be a program name with args. 9121 # Extract the first word of "pkg-config", so it can be a program name with args.
13597set dummy pkg-config; ac_word=$2 9122set dummy pkg-config; ac_word=$2
13598{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 9123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13599$as_echo_n "checking for $ac_word... " >&6; } 9124$as_echo_n "checking for $ac_word... " >&6; }
13600if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 9125if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13601 $as_echo_n "(cached) " >&6 9126 $as_echo_n "(cached) " >&6
13602else 9127else
13603 case $PKG_CONFIG in 9128 case $PKG_CONFIG in
@@ -13610,14 +9135,14 @@ for as_dir in $PATH
13610do 9135do
13611 IFS=$as_save_IFS 9136 IFS=$as_save_IFS
13612 test -z "$as_dir" && as_dir=. 9137 test -z "$as_dir" && as_dir=.
13613 for ac_exec_ext in '' $ac_executable_extensions; do 9138 for ac_exec_ext in '' $ac_executable_extensions; do
13614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13615 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9140 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13616 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13617 break 2 9142 break 2
13618 fi 9143 fi
13619done 9144done
13620done 9145 done
13621IFS=$as_save_IFS 9146IFS=$as_save_IFS
13622 9147
13623 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 9148 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -13626,10 +9151,10 @@ esac
13626fi 9151fi
13627PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9152PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13628if test -n "$PKG_CONFIG"; then 9153if test -n "$PKG_CONFIG"; then
13629 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13630$as_echo "$PKG_CONFIG" >&6; } 9155$as_echo "$PKG_CONFIG" >&6; }
13631else 9156else
13632 { $as_echo "$as_me:$LINENO: result: no" >&5 9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13633$as_echo "no" >&6; } 9158$as_echo "no" >&6; }
13634fi 9159fi
13635 9160
@@ -13640,27 +9165,27 @@ fi
13640 else 9165 else
13641 PKG_CONFIG_MIN_VERSION=0.9.0 9166 PKG_CONFIG_MIN_VERSION=0.9.0
13642 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 9167 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13643 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5 9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
13644$as_echo_n "checking for fontconfig >= 2.2.0... " >&6; } 9169$as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13645 9170
13646 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then 9171 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13647 { $as_echo "$as_me:$LINENO: result: yes" >&5 9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13648$as_echo "yes" >&6; } 9173$as_echo "yes" >&6; }
13649 succeeded=yes 9174 succeeded=yes
13650 9175
13651 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5 9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
13652$as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; } 9177$as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13653 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` 9178 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13654 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5 9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
13655$as_echo "$FONTCONFIG_CFLAGS" >&6; } 9180$as_echo "$FONTCONFIG_CFLAGS" >&6; }
13656 9181
13657 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5 9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
13658$as_echo_n "checking FONTCONFIG_LIBS... " >&6; } 9183$as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13659 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` 9184 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13660 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5 9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
13661$as_echo "$FONTCONFIG_LIBS" >&6; } 9186$as_echo "$FONTCONFIG_LIBS" >&6; }
13662 else 9187 else
13663 { $as_echo "$as_me:$LINENO: result: no" >&5 9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13664$as_echo "no" >&6; } 9189$as_echo "no" >&6; }
13665 FONTCONFIG_CFLAGS="" 9190 FONTCONFIG_CFLAGS=""
13666 FONTCONFIG_LIBS="" 9191 FONTCONFIG_LIBS=""
@@ -13697,9 +9222,9 @@ $as_echo "no" >&6; }
13697 9222
13698 # Extract the first word of "pkg-config", so it can be a program name with args. 9223 # Extract the first word of "pkg-config", so it can be a program name with args.
13699set dummy pkg-config; ac_word=$2 9224set dummy pkg-config; ac_word=$2
13700{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 9225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13701$as_echo_n "checking for $ac_word... " >&6; } 9226$as_echo_n "checking for $ac_word... " >&6; }
13702if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 9227if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13703 $as_echo_n "(cached) " >&6 9228 $as_echo_n "(cached) " >&6
13704else 9229else
13705 case $PKG_CONFIG in 9230 case $PKG_CONFIG in
@@ -13712,14 +9237,14 @@ for as_dir in $PATH
13712do 9237do
13713 IFS=$as_save_IFS 9238 IFS=$as_save_IFS
13714 test -z "$as_dir" && as_dir=. 9239 test -z "$as_dir" && as_dir=.
13715 for ac_exec_ext in '' $ac_executable_extensions; do 9240 for ac_exec_ext in '' $ac_executable_extensions; do
13716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13717 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9242 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13718 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13719 break 2 9244 break 2
13720 fi 9245 fi
13721done 9246done
13722done 9247 done
13723IFS=$as_save_IFS 9248IFS=$as_save_IFS
13724 9249
13725 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 9250 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -13728,10 +9253,10 @@ esac
13728fi 9253fi
13729PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9254PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13730if test -n "$PKG_CONFIG"; then 9255if test -n "$PKG_CONFIG"; then
13731 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13732$as_echo "$PKG_CONFIG" >&6; } 9257$as_echo "$PKG_CONFIG" >&6; }
13733else 9258else
13734 { $as_echo "$as_me:$LINENO: result: no" >&5 9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13735$as_echo "no" >&6; } 9260$as_echo "no" >&6; }
13736fi 9261fi
13737 9262
@@ -13742,27 +9267,27 @@ fi
13742 else 9267 else
13743 PKG_CONFIG_MIN_VERSION=0.9.0 9268 PKG_CONFIG_MIN_VERSION=0.9.0
13744 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 9269 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13745 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5 9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
13746$as_echo_n "checking for xft >= 0.13.0... " >&6; } 9271$as_echo_n "checking for xft >= 0.13.0... " >&6; }
13747 9272
13748 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then 9273 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13749 { $as_echo "$as_me:$LINENO: result: yes" >&5 9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13750$as_echo "yes" >&6; } 9275$as_echo "yes" >&6; }
13751 succeeded=yes 9276 succeeded=yes
13752 9277
13753 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5 9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
13754$as_echo_n "checking XFT_CFLAGS... " >&6; } 9279$as_echo_n "checking XFT_CFLAGS... " >&6; }
13755 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'` 9280 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13756 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5 9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
13757$as_echo "$XFT_CFLAGS" >&6; } 9282$as_echo "$XFT_CFLAGS" >&6; }
13758 9283
13759 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5 9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
13760$as_echo_n "checking XFT_LIBS... " >&6; } 9285$as_echo_n "checking XFT_LIBS... " >&6; }
13761 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'` 9286 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13762 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5 9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
13763$as_echo "$XFT_LIBS" >&6; } 9288$as_echo "$XFT_LIBS" >&6; }
13764 else 9289 else
13765 { $as_echo "$as_me:$LINENO: result: no" >&5 9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13766$as_echo "no" >&6; } 9291$as_echo "no" >&6; }
13767 XFT_CFLAGS="" 9292 XFT_CFLAGS=""
13768 XFT_LIBS="" 9293 XFT_LIBS=""
@@ -13789,18 +9314,14 @@ $as_echo "no" >&6; }
13789 ## Because xftfont.c uses XRenderQueryExtension, we also 9314 ## Because xftfont.c uses XRenderQueryExtension, we also
13790 ## need to link to -lXrender. 9315 ## need to link to -lXrender.
13791 HAVE_XRENDER=no 9316 HAVE_XRENDER=no
13792 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5 9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
13793$as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; } 9318$as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13794if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then 9319if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
13795 $as_echo_n "(cached) " >&6 9320 $as_echo_n "(cached) " >&6
13796else 9321else
13797 ac_check_lib_save_LIBS=$LIBS 9322 ac_check_lib_save_LIBS=$LIBS
13798LIBS="-lXrender $LIBS" 9323LIBS="-lXrender $LIBS"
13799cat >conftest.$ac_ext <<_ACEOF 9324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13800/* confdefs.h. */
13801_ACEOF
13802cat confdefs.h >>conftest.$ac_ext
13803cat >>conftest.$ac_ext <<_ACEOF
13804/* end confdefs.h. */ 9325/* end confdefs.h. */
13805 9326
13806/* Override any GCC internal prototype to avoid an error. 9327/* Override any GCC internal prototype to avoid an error.
@@ -13818,43 +9339,18 @@ return XRenderQueryExtension ();
13818 return 0; 9339 return 0;
13819} 9340}
13820_ACEOF 9341_ACEOF
13821rm -f conftest.$ac_objext conftest$ac_exeext 9342if ac_fn_c_try_link "$LINENO"; then :
13822if { (ac_try="$ac_link"
13823case "(($ac_try" in
13824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13825 *) ac_try_echo=$ac_try;;
13826esac
13827eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13828$as_echo "$ac_try_echo") >&5
13829 (eval "$ac_link") 2>conftest.er1
13830 ac_status=$?
13831 grep -v '^ *+' conftest.er1 >conftest.err
13832 rm -f conftest.er1
13833 cat conftest.err >&5
13834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); } && {
13836 test -z "$ac_c_werror_flag" ||
13837 test ! -s conftest.err
13838 } && test -s conftest$ac_exeext && {
13839 test "$cross_compiling" = yes ||
13840 $as_test_x conftest$ac_exeext
13841 }; then
13842 ac_cv_lib_Xrender_XRenderQueryExtension=yes 9343 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13843else 9344else
13844 $as_echo "$as_me: failed program was:" >&5 9345 ac_cv_lib_Xrender_XRenderQueryExtension=no
13845sed 's/^/| /' conftest.$ac_ext >&5
13846
13847 ac_cv_lib_Xrender_XRenderQueryExtension=no
13848fi 9346fi
13849 9347rm -f core conftest.err conftest.$ac_objext \
13850rm -rf conftest.dSYM 9348 conftest$ac_exeext conftest.$ac_ext
13851rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13852 conftest$ac_exeext conftest.$ac_ext
13853LIBS=$ac_check_lib_save_LIBS 9349LIBS=$ac_check_lib_save_LIBS
13854fi 9350fi
13855{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5 9351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13856$as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; } 9352$as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13857if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then 9353if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
13858 HAVE_XRENDER=yes 9354 HAVE_XRENDER=yes
13859fi 9355fi
13860 9356
@@ -13866,146 +9362,16 @@ fi
13866 CFLAGS="$CFLAGS $XFT_CFLAGS" 9362 CFLAGS="$CFLAGS $XFT_CFLAGS"
13867 XFT_LIBS="-lXrender $XFT_LIBS" 9363 XFT_LIBS="-lXrender $XFT_LIBS"
13868 LIBS="$XFT_LIBS $LIBS" 9364 LIBS="$XFT_LIBS $LIBS"
13869 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then 9365 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
13870 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5 9366if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
13871$as_echo_n "checking for X11/Xft/Xft.h... " >&6; } 9367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
13872if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13873 $as_echo_n "(cached) " >&6
13874fi
13875{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13876$as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13877else
13878 # Is the header compilable?
13879{ $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13880$as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13881cat >conftest.$ac_ext <<_ACEOF
13882/* confdefs.h. */
13883_ACEOF
13884cat confdefs.h >>conftest.$ac_ext
13885cat >>conftest.$ac_ext <<_ACEOF
13886/* end confdefs.h. */
13887$ac_includes_default
13888#include <X11/Xft/Xft.h>
13889_ACEOF
13890rm -f conftest.$ac_objext
13891if { (ac_try="$ac_compile"
13892case "(($ac_try" in
13893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13894 *) ac_try_echo=$ac_try;;
13895esac
13896eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13897$as_echo "$ac_try_echo") >&5
13898 (eval "$ac_compile") 2>conftest.er1
13899 ac_status=$?
13900 grep -v '^ *+' conftest.er1 >conftest.err
13901 rm -f conftest.er1
13902 cat conftest.err >&5
13903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } && {
13905 test -z "$ac_c_werror_flag" ||
13906 test ! -s conftest.err
13907 } && test -s conftest.$ac_objext; then
13908 ac_header_compiler=yes
13909else
13910 $as_echo "$as_me: failed program was:" >&5
13911sed 's/^/| /' conftest.$ac_ext >&5
13912
13913 ac_header_compiler=no
13914fi
13915
13916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13917{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13918$as_echo "$ac_header_compiler" >&6; }
13919
13920# Is the header present?
13921{ $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13922$as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13923cat >conftest.$ac_ext <<_ACEOF
13924/* confdefs.h. */
13925_ACEOF
13926cat confdefs.h >>conftest.$ac_ext
13927cat >>conftest.$ac_ext <<_ACEOF
13928/* end confdefs.h. */
13929#include <X11/Xft/Xft.h>
13930_ACEOF
13931if { (ac_try="$ac_cpp conftest.$ac_ext"
13932case "(($ac_try" in
13933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13934 *) ac_try_echo=$ac_try;;
13935esac
13936eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13937$as_echo "$ac_try_echo") >&5
13938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13939 ac_status=$?
13940 grep -v '^ *+' conftest.er1 >conftest.err
13941 rm -f conftest.er1
13942 cat conftest.err >&5
13943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); } >/dev/null && {
13945 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13946 test ! -s conftest.err
13947 }; then
13948 ac_header_preproc=yes
13949else
13950 $as_echo "$as_me: failed program was:" >&5
13951sed 's/^/| /' conftest.$ac_ext >&5
13952
13953 ac_header_preproc=no
13954fi
13955
13956rm -f conftest.err conftest.$ac_ext
13957{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13958$as_echo "$ac_header_preproc" >&6; }
13959
13960# So? What about this header?
13961case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13962 yes:no: )
13963 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13964$as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13965 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13966$as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13967 ac_header_preproc=yes
13968 ;;
13969 no:yes:* )
13970 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13971$as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13972 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13973$as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13974 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13975$as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13976 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13977$as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13978 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13979$as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13980 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13981$as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13982
13983 ;;
13984esac
13985{ $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13986$as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13987if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13988 $as_echo_n "(cached) " >&6
13989else
13990 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13991fi
13992{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13993$as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13994
13995fi
13996if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13997 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
13998$as_echo_n "checking for XftFontOpen in -lXft... " >&6; } 9368$as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13999if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then 9369if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
14000 $as_echo_n "(cached) " >&6 9370 $as_echo_n "(cached) " >&6
14001else 9371else
14002 ac_check_lib_save_LIBS=$LIBS 9372 ac_check_lib_save_LIBS=$LIBS
14003LIBS="-lXft $XFT_LIBS $LIBS" 9373LIBS="-lXft $XFT_LIBS $LIBS"
14004cat >conftest.$ac_ext <<_ACEOF 9374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14005/* confdefs.h. */
14006_ACEOF
14007cat confdefs.h >>conftest.$ac_ext
14008cat >>conftest.$ac_ext <<_ACEOF
14009/* end confdefs.h. */ 9375/* end confdefs.h. */
14010 9376
14011/* Override any GCC internal prototype to avoid an error. 9377/* Override any GCC internal prototype to avoid an error.
@@ -14023,43 +9389,18 @@ return XftFontOpen ();
14023 return 0; 9389 return 0;
14024} 9390}
14025_ACEOF 9391_ACEOF
14026rm -f conftest.$ac_objext conftest$ac_exeext 9392if ac_fn_c_try_link "$LINENO"; then :
14027if { (ac_try="$ac_link"
14028case "(($ac_try" in
14029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14030 *) ac_try_echo=$ac_try;;
14031esac
14032eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14033$as_echo "$ac_try_echo") >&5
14034 (eval "$ac_link") 2>conftest.er1
14035 ac_status=$?
14036 grep -v '^ *+' conftest.er1 >conftest.err
14037 rm -f conftest.er1
14038 cat conftest.err >&5
14039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); } && {
14041 test -z "$ac_c_werror_flag" ||
14042 test ! -s conftest.err
14043 } && test -s conftest$ac_exeext && {
14044 test "$cross_compiling" = yes ||
14045 $as_test_x conftest$ac_exeext
14046 }; then
14047 ac_cv_lib_Xft_XftFontOpen=yes 9393 ac_cv_lib_Xft_XftFontOpen=yes
14048else 9394else
14049 $as_echo "$as_me: failed program was:" >&5 9395 ac_cv_lib_Xft_XftFontOpen=no
14050sed 's/^/| /' conftest.$ac_ext >&5
14051
14052 ac_cv_lib_Xft_XftFontOpen=no
14053fi 9396fi
14054 9397rm -f core conftest.err conftest.$ac_objext \
14055rm -rf conftest.dSYM 9398 conftest$ac_exeext conftest.$ac_ext
14056rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14057 conftest$ac_exeext conftest.$ac_ext
14058LIBS=$ac_check_lib_save_LIBS 9399LIBS=$ac_check_lib_save_LIBS
14059fi 9400fi
14060{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5 9401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14061$as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; } 9402$as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14062if test $ac_cv_lib_Xft_XftFontOpen = yes; then 9403if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
14063 HAVE_XFT=yes 9404 HAVE_XFT=yes
14064fi 9405fi
14065 9406
@@ -14069,9 +9410,7 @@ fi
14069 9410
14070 if test "${HAVE_XFT}" = "yes"; then 9411 if test "${HAVE_XFT}" = "yes"; then
14071 9412
14072cat >>confdefs.h <<\_ACEOF 9413$as_echo "#define HAVE_XFT 1" >>confdefs.h
14073#define HAVE_XFT 1
14074_ACEOF
14075 9414
14076 9415
14077 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS" 9416 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
@@ -14100,9 +9439,7 @@ _ACEOF
14100 HAVE_LIBOTF=no 9439 HAVE_LIBOTF=no
14101 if test "${HAVE_FREETYPE}" = "yes"; then 9440 if test "${HAVE_FREETYPE}" = "yes"; then
14102 9441
14103cat >>confdefs.h <<\_ACEOF 9442$as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
14104#define HAVE_FREETYPE 1
14105_ACEOF
14106 9443
14107 if test "${with_libotf}" != "no"; then 9444 if test "${with_libotf}" != "no"; then
14108 9445
@@ -14110,9 +9447,9 @@ _ACEOF
14110 9447
14111 # Extract the first word of "pkg-config", so it can be a program name with args. 9448 # Extract the first word of "pkg-config", so it can be a program name with args.
14112set dummy pkg-config; ac_word=$2 9449set dummy pkg-config; ac_word=$2
14113{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 9450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14114$as_echo_n "checking for $ac_word... " >&6; } 9451$as_echo_n "checking for $ac_word... " >&6; }
14115if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 9452if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
14116 $as_echo_n "(cached) " >&6 9453 $as_echo_n "(cached) " >&6
14117else 9454else
14118 case $PKG_CONFIG in 9455 case $PKG_CONFIG in
@@ -14125,14 +9462,14 @@ for as_dir in $PATH
14125do 9462do
14126 IFS=$as_save_IFS 9463 IFS=$as_save_IFS
14127 test -z "$as_dir" && as_dir=. 9464 test -z "$as_dir" && as_dir=.
14128 for ac_exec_ext in '' $ac_executable_extensions; do 9465 for ac_exec_ext in '' $ac_executable_extensions; do
14129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14130 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9467 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14131 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14132 break 2 9469 break 2
14133 fi 9470 fi
14134done 9471done
14135done 9472 done
14136IFS=$as_save_IFS 9473IFS=$as_save_IFS
14137 9474
14138 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 9475 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -14141,10 +9478,10 @@ esac
14141fi 9478fi
14142PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9479PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14143if test -n "$PKG_CONFIG"; then 9480if test -n "$PKG_CONFIG"; then
14144 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14145$as_echo "$PKG_CONFIG" >&6; } 9482$as_echo "$PKG_CONFIG" >&6; }
14146else 9483else
14147 { $as_echo "$as_me:$LINENO: result: no" >&5 9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14148$as_echo "no" >&6; } 9485$as_echo "no" >&6; }
14149fi 9486fi
14150 9487
@@ -14155,27 +9492,27 @@ fi
14155 else 9492 else
14156 PKG_CONFIG_MIN_VERSION=0.9.0 9493 PKG_CONFIG_MIN_VERSION=0.9.0
14157 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 9494 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14158 { $as_echo "$as_me:$LINENO: checking for libotf" >&5 9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
14159$as_echo_n "checking for libotf... " >&6; } 9496$as_echo_n "checking for libotf... " >&6; }
14160 9497
14161 if $PKG_CONFIG --exists "libotf" 2>&5; then 9498 if $PKG_CONFIG --exists "libotf" 2>&5; then
14162 { $as_echo "$as_me:$LINENO: result: yes" >&5 9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14163$as_echo "yes" >&6; } 9500$as_echo "yes" >&6; }
14164 succeeded=yes 9501 succeeded=yes
14165 9502
14166 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5 9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
14167$as_echo_n "checking LIBOTF_CFLAGS... " >&6; } 9504$as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14168 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'` 9505 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14169 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5 9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
14170$as_echo "$LIBOTF_CFLAGS" >&6; } 9507$as_echo "$LIBOTF_CFLAGS" >&6; }
14171 9508
14172 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5 9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
14173$as_echo_n "checking LIBOTF_LIBS... " >&6; } 9510$as_echo_n "checking LIBOTF_LIBS... " >&6; }
14174 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'` 9511 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14175 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5 9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
14176$as_echo "$LIBOTF_LIBS" >&6; } 9513$as_echo "$LIBOTF_LIBS" >&6; }
14177 else 9514 else
14178 { $as_echo "$as_me:$LINENO: result: no" >&5 9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14179$as_echo "no" >&6; } 9516$as_echo "no" >&6; }
14180 LIBOTF_CFLAGS="" 9517 LIBOTF_CFLAGS=""
14181 LIBOTF_LIBS="" 9518 LIBOTF_LIBS=""
@@ -14201,22 +9538,16 @@ $as_echo "no" >&6; }
14201 9538
14202 if test "$HAVE_LIBOTF" = "yes"; then 9539 if test "$HAVE_LIBOTF" = "yes"; then
14203 9540
14204cat >>confdefs.h <<\_ACEOF 9541$as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
14205#define HAVE_LIBOTF 1
14206_ACEOF
14207 9542
14208 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5 9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
14209$as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; } 9544$as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14210if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then 9545if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
14211 $as_echo_n "(cached) " >&6 9546 $as_echo_n "(cached) " >&6
14212else 9547else
14213 ac_check_lib_save_LIBS=$LIBS 9548 ac_check_lib_save_LIBS=$LIBS
14214LIBS="-lotf $LIBS" 9549LIBS="-lotf $LIBS"
14215cat >conftest.$ac_ext <<_ACEOF 9550cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14216/* confdefs.h. */
14217_ACEOF
14218cat confdefs.h >>conftest.$ac_ext
14219cat >>conftest.$ac_ext <<_ACEOF
14220/* end confdefs.h. */ 9551/* end confdefs.h. */
14221 9552
14222/* Override any GCC internal prototype to avoid an error. 9553/* Override any GCC internal prototype to avoid an error.
@@ -14234,43 +9565,18 @@ return OTF_get_variation_glyphs ();
14234 return 0; 9565 return 0;
14235} 9566}
14236_ACEOF 9567_ACEOF
14237rm -f conftest.$ac_objext conftest$ac_exeext 9568if ac_fn_c_try_link "$LINENO"; then :
14238if { (ac_try="$ac_link"
14239case "(($ac_try" in
14240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241 *) ac_try_echo=$ac_try;;
14242esac
14243eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14244$as_echo "$ac_try_echo") >&5
14245 (eval "$ac_link") 2>conftest.er1
14246 ac_status=$?
14247 grep -v '^ *+' conftest.er1 >conftest.err
14248 rm -f conftest.er1
14249 cat conftest.err >&5
14250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); } && {
14252 test -z "$ac_c_werror_flag" ||
14253 test ! -s conftest.err
14254 } && test -s conftest$ac_exeext && {
14255 test "$cross_compiling" = yes ||
14256 $as_test_x conftest$ac_exeext
14257 }; then
14258 ac_cv_lib_otf_OTF_get_variation_glyphs=yes 9569 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14259else 9570else
14260 $as_echo "$as_me: failed program was:" >&5 9571 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14261sed 's/^/| /' conftest.$ac_ext >&5
14262
14263 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14264fi 9572fi
14265 9573rm -f core conftest.err conftest.$ac_objext \
14266rm -rf conftest.dSYM 9574 conftest$ac_exeext conftest.$ac_ext
14267rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14268 conftest$ac_exeext conftest.$ac_ext
14269LIBS=$ac_check_lib_save_LIBS 9575LIBS=$ac_check_lib_save_LIBS
14270fi 9576fi
14271{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5 9577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14272$as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; } 9578$as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14273if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then 9579if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
14274 HAVE_OTF_GET_VARIATION_GLYPHS=yes 9580 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14275else 9581else
14276 HAVE_OTF_GET_VARIATION_GLYPHS=no 9582 HAVE_OTF_GET_VARIATION_GLYPHS=no
@@ -14278,9 +9584,7 @@ fi
14278 9584
14279 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then 9585 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14280 9586
14281cat >>confdefs.h <<\_ACEOF 9587$as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
14282#define HAVE_OTF_GET_VARIATION_GLYPHS 1
14283_ACEOF
14284 9588
14285 fi 9589 fi
14286 fi 9590 fi
@@ -14295,9 +9599,9 @@ _ACEOF
14295 9599
14296 # Extract the first word of "pkg-config", so it can be a program name with args. 9600 # Extract the first word of "pkg-config", so it can be a program name with args.
14297set dummy pkg-config; ac_word=$2 9601set dummy pkg-config; ac_word=$2
14298{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 9602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14299$as_echo_n "checking for $ac_word... " >&6; } 9603$as_echo_n "checking for $ac_word... " >&6; }
14300if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 9604if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
14301 $as_echo_n "(cached) " >&6 9605 $as_echo_n "(cached) " >&6
14302else 9606else
14303 case $PKG_CONFIG in 9607 case $PKG_CONFIG in
@@ -14310,14 +9614,14 @@ for as_dir in $PATH
14310do 9614do
14311 IFS=$as_save_IFS 9615 IFS=$as_save_IFS
14312 test -z "$as_dir" && as_dir=. 9616 test -z "$as_dir" && as_dir=.
14313 for ac_exec_ext in '' $ac_executable_extensions; do 9617 for ac_exec_ext in '' $ac_executable_extensions; do
14314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14315 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9619 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14316 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14317 break 2 9621 break 2
14318 fi 9622 fi
14319done 9623done
14320done 9624 done
14321IFS=$as_save_IFS 9625IFS=$as_save_IFS
14322 9626
14323 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 9627 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -14326,10 +9630,10 @@ esac
14326fi 9630fi
14327PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9631PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14328if test -n "$PKG_CONFIG"; then 9632if test -n "$PKG_CONFIG"; then
14329 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14330$as_echo "$PKG_CONFIG" >&6; } 9634$as_echo "$PKG_CONFIG" >&6; }
14331else 9635else
14332 { $as_echo "$as_me:$LINENO: result: no" >&5 9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14333$as_echo "no" >&6; } 9637$as_echo "no" >&6; }
14334fi 9638fi
14335 9639
@@ -14340,27 +9644,27 @@ fi
14340 else 9644 else
14341 PKG_CONFIG_MIN_VERSION=0.9.0 9645 PKG_CONFIG_MIN_VERSION=0.9.0
14342 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 9646 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14343 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5 9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
14344$as_echo_n "checking for m17n-flt... " >&6; } 9648$as_echo_n "checking for m17n-flt... " >&6; }
14345 9649
14346 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then 9650 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14347 { $as_echo "$as_me:$LINENO: result: yes" >&5 9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14348$as_echo "yes" >&6; } 9652$as_echo "yes" >&6; }
14349 succeeded=yes 9653 succeeded=yes
14350 9654
14351 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5 9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
14352$as_echo_n "checking M17N_FLT_CFLAGS... " >&6; } 9656$as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14353 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'` 9657 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
14354 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5 9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
14355$as_echo "$M17N_FLT_CFLAGS" >&6; } 9659$as_echo "$M17N_FLT_CFLAGS" >&6; }
14356 9660
14357 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5 9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
14358$as_echo_n "checking M17N_FLT_LIBS... " >&6; } 9662$as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14359 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'` 9663 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
14360 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5 9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
14361$as_echo "$M17N_FLT_LIBS" >&6; } 9665$as_echo "$M17N_FLT_LIBS" >&6; }
14362 else 9666 else
14363 { $as_echo "$as_me:$LINENO: result: no" >&5 9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14364$as_echo "no" >&6; } 9668$as_echo "no" >&6; }
14365 M17N_FLT_CFLAGS="" 9669 M17N_FLT_CFLAGS=""
14366 M17N_FLT_LIBS="" 9670 M17N_FLT_LIBS=""
@@ -14386,9 +9690,7 @@ $as_echo "no" >&6; }
14386 9690
14387 if test "$HAVE_M17N_FLT" = "yes"; then 9691 if test "$HAVE_M17N_FLT" = "yes"; then
14388 9692
14389cat >>confdefs.h <<\_ACEOF 9693$as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
14390#define HAVE_M17N_FLT 1
14391_ACEOF
14392 9694
14393 fi 9695 fi
14394 fi 9696 fi
@@ -14415,146 +9717,16 @@ HAVE_XPM=no
14415LIBXPM= 9717LIBXPM=
14416if test "${HAVE_X11}" = "yes"; then 9718if test "${HAVE_X11}" = "yes"; then
14417 if test "${with_xpm}" != "no"; then 9719 if test "${with_xpm}" != "no"; then
14418 if test "${ac_cv_header_X11_xpm_h+set}" = set; then 9720 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
14419 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 9721if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
14420$as_echo_n "checking for X11/xpm.h... " >&6; } 9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
14421if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14422 $as_echo_n "(cached) " >&6
14423fi
14424{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14425$as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14426else
14427 # Is the header compilable?
14428{ $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14429$as_echo_n "checking X11/xpm.h usability... " >&6; }
14430cat >conftest.$ac_ext <<_ACEOF
14431/* confdefs.h. */
14432_ACEOF
14433cat confdefs.h >>conftest.$ac_ext
14434cat >>conftest.$ac_ext <<_ACEOF
14435/* end confdefs.h. */
14436$ac_includes_default
14437#include <X11/xpm.h>
14438_ACEOF
14439rm -f conftest.$ac_objext
14440if { (ac_try="$ac_compile"
14441case "(($ac_try" in
14442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14443 *) ac_try_echo=$ac_try;;
14444esac
14445eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14446$as_echo "$ac_try_echo") >&5
14447 (eval "$ac_compile") 2>conftest.er1
14448 ac_status=$?
14449 grep -v '^ *+' conftest.er1 >conftest.err
14450 rm -f conftest.er1
14451 cat conftest.err >&5
14452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } && {
14454 test -z "$ac_c_werror_flag" ||
14455 test ! -s conftest.err
14456 } && test -s conftest.$ac_objext; then
14457 ac_header_compiler=yes
14458else
14459 $as_echo "$as_me: failed program was:" >&5
14460sed 's/^/| /' conftest.$ac_ext >&5
14461
14462 ac_header_compiler=no
14463fi
14464
14465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14466{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14467$as_echo "$ac_header_compiler" >&6; }
14468
14469# Is the header present?
14470{ $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14471$as_echo_n "checking X11/xpm.h presence... " >&6; }
14472cat >conftest.$ac_ext <<_ACEOF
14473/* confdefs.h. */
14474_ACEOF
14475cat confdefs.h >>conftest.$ac_ext
14476cat >>conftest.$ac_ext <<_ACEOF
14477/* end confdefs.h. */
14478#include <X11/xpm.h>
14479_ACEOF
14480if { (ac_try="$ac_cpp conftest.$ac_ext"
14481case "(($ac_try" in
14482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483 *) ac_try_echo=$ac_try;;
14484esac
14485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14486$as_echo "$ac_try_echo") >&5
14487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14488 ac_status=$?
14489 grep -v '^ *+' conftest.er1 >conftest.err
14490 rm -f conftest.er1
14491 cat conftest.err >&5
14492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } >/dev/null && {
14494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14495 test ! -s conftest.err
14496 }; then
14497 ac_header_preproc=yes
14498else
14499 $as_echo "$as_me: failed program was:" >&5
14500sed 's/^/| /' conftest.$ac_ext >&5
14501
14502 ac_header_preproc=no
14503fi
14504
14505rm -f conftest.err conftest.$ac_ext
14506{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14507$as_echo "$ac_header_preproc" >&6; }
14508
14509# So? What about this header?
14510case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14511 yes:no: )
14512 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14513$as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14514 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14515$as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14516 ac_header_preproc=yes
14517 ;;
14518 no:yes:* )
14519 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14520$as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14521 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14522$as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14523 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14524$as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14525 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14526$as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14527 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14528$as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14529 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14530$as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14531
14532 ;;
14533esac
14534{ $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14535$as_echo_n "checking for X11/xpm.h... " >&6; }
14536if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14537 $as_echo_n "(cached) " >&6
14538else
14539 ac_cv_header_X11_xpm_h=$ac_header_preproc
14540fi
14541{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14542$as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14543
14544fi
14545if test $ac_cv_header_X11_xpm_h = yes; then
14546 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14547$as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; } 9723$as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14548if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then 9724if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
14549 $as_echo_n "(cached) " >&6 9725 $as_echo_n "(cached) " >&6
14550else 9726else
14551 ac_check_lib_save_LIBS=$LIBS 9727 ac_check_lib_save_LIBS=$LIBS
14552LIBS="-lXpm -lX11 $LIBS" 9728LIBS="-lXpm -lX11 $LIBS"
14553cat >conftest.$ac_ext <<_ACEOF 9729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14554/* confdefs.h. */
14555_ACEOF
14556cat confdefs.h >>conftest.$ac_ext
14557cat >>conftest.$ac_ext <<_ACEOF
14558/* end confdefs.h. */ 9730/* end confdefs.h. */
14559 9731
14560/* Override any GCC internal prototype to avoid an error. 9732/* Override any GCC internal prototype to avoid an error.
@@ -14572,43 +9744,18 @@ return XpmReadFileToPixmap ();
14572 return 0; 9744 return 0;
14573} 9745}
14574_ACEOF 9746_ACEOF
14575rm -f conftest.$ac_objext conftest$ac_exeext 9747if ac_fn_c_try_link "$LINENO"; then :
14576if { (ac_try="$ac_link"
14577case "(($ac_try" in
14578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14579 *) ac_try_echo=$ac_try;;
14580esac
14581eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14582$as_echo "$ac_try_echo") >&5
14583 (eval "$ac_link") 2>conftest.er1
14584 ac_status=$?
14585 grep -v '^ *+' conftest.er1 >conftest.err
14586 rm -f conftest.er1
14587 cat conftest.err >&5
14588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); } && {
14590 test -z "$ac_c_werror_flag" ||
14591 test ! -s conftest.err
14592 } && test -s conftest$ac_exeext && {
14593 test "$cross_compiling" = yes ||
14594 $as_test_x conftest$ac_exeext
14595 }; then
14596 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes 9748 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14597else 9749else
14598 $as_echo "$as_me: failed program was:" >&5 9750 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14599sed 's/^/| /' conftest.$ac_ext >&5
14600
14601 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14602fi 9751fi
14603 9752rm -f core conftest.err conftest.$ac_objext \
14604rm -rf conftest.dSYM 9753 conftest$ac_exeext conftest.$ac_ext
14605rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14606 conftest$ac_exeext conftest.$ac_ext
14607LIBS=$ac_check_lib_save_LIBS 9754LIBS=$ac_check_lib_save_LIBS
14608fi 9755fi
14609{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 9756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14610$as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; } 9757$as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14611if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then 9758if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
14612 HAVE_XPM=yes 9759 HAVE_XPM=yes
14613fi 9760fi
14614 9761
@@ -14616,13 +9763,9 @@ fi
14616 9763
14617 9764
14618 if test "${HAVE_XPM}" = "yes"; then 9765 if test "${HAVE_XPM}" = "yes"; then
14619 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5 9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
14620$as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; } 9767$as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14621 cat >conftest.$ac_ext <<_ACEOF 9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14622/* confdefs.h. */
14623_ACEOF
14624cat confdefs.h >>conftest.$ac_ext
14625cat >>conftest.$ac_ext <<_ACEOF
14626/* end confdefs.h. */ 9769/* end confdefs.h. */
14627#include "X11/xpm.h" 9770#include "X11/xpm.h"
14628#ifndef XpmReturnAllocPixels 9771#ifndef XpmReturnAllocPixels
@@ -14631,7 +9774,7 @@ no_return_alloc_pixels
14631 9774
14632_ACEOF 9775_ACEOF
14633if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9776if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14634 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then 9777 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
14635 HAVE_XPM=no 9778 HAVE_XPM=no
14636else 9779else
14637 HAVE_XPM=yes 9780 HAVE_XPM=yes
@@ -14640,10 +9783,10 @@ rm -f conftest*
14640 9783
14641 9784
14642 if test "${HAVE_XPM}" = "yes"; then 9785 if test "${HAVE_XPM}" = "yes"; then
14643 { $as_echo "$as_me:$LINENO: result: yes" >&5 9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14644$as_echo "yes" >&6; } 9787$as_echo "yes" >&6; }
14645 else 9788 else
14646 { $as_echo "$as_me:$LINENO: result: no" >&5 9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14647$as_echo "no" >&6; } 9790$as_echo "no" >&6; }
14648 fi 9791 fi
14649 fi 9792 fi
@@ -14651,9 +9794,7 @@ $as_echo "no" >&6; }
14651 9794
14652 if test "${HAVE_XPM}" = "yes"; then 9795 if test "${HAVE_XPM}" = "yes"; then
14653 9796
14654cat >>confdefs.h <<\_ACEOF 9797$as_echo "#define HAVE_XPM 1" >>confdefs.h
14655#define HAVE_XPM 1
14656_ACEOF
14657 9798
14658 LIBXPM=-lXpm 9799 LIBXPM=-lXpm
14659 fi 9800 fi
@@ -14665,146 +9806,16 @@ HAVE_JPEG=no
14665LIBJPEG= 9806LIBJPEG=
14666if test "${HAVE_X11}" = "yes"; then 9807if test "${HAVE_X11}" = "yes"; then
14667 if test "${with_jpeg}" != "no"; then 9808 if test "${with_jpeg}" != "no"; then
14668 if test "${ac_cv_header_jerror_h+set}" = set; then 9809 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
14669 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5 9810if test "x$ac_cv_header_jerror_h" = x""yes; then :
14670$as_echo_n "checking for jerror.h... " >&6; } 9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
14671if test "${ac_cv_header_jerror_h+set}" = set; then
14672 $as_echo_n "(cached) " >&6
14673fi
14674{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14675$as_echo "$ac_cv_header_jerror_h" >&6; }
14676else
14677 # Is the header compilable?
14678{ $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14679$as_echo_n "checking jerror.h usability... " >&6; }
14680cat >conftest.$ac_ext <<_ACEOF
14681/* confdefs.h. */
14682_ACEOF
14683cat confdefs.h >>conftest.$ac_ext
14684cat >>conftest.$ac_ext <<_ACEOF
14685/* end confdefs.h. */
14686$ac_includes_default
14687#include <jerror.h>
14688_ACEOF
14689rm -f conftest.$ac_objext
14690if { (ac_try="$ac_compile"
14691case "(($ac_try" in
14692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14693 *) ac_try_echo=$ac_try;;
14694esac
14695eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14696$as_echo "$ac_try_echo") >&5
14697 (eval "$ac_compile") 2>conftest.er1
14698 ac_status=$?
14699 grep -v '^ *+' conftest.er1 >conftest.err
14700 rm -f conftest.er1
14701 cat conftest.err >&5
14702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); } && {
14704 test -z "$ac_c_werror_flag" ||
14705 test ! -s conftest.err
14706 } && test -s conftest.$ac_objext; then
14707 ac_header_compiler=yes
14708else
14709 $as_echo "$as_me: failed program was:" >&5
14710sed 's/^/| /' conftest.$ac_ext >&5
14711
14712 ac_header_compiler=no
14713fi
14714
14715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14716{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14717$as_echo "$ac_header_compiler" >&6; }
14718
14719# Is the header present?
14720{ $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14721$as_echo_n "checking jerror.h presence... " >&6; }
14722cat >conftest.$ac_ext <<_ACEOF
14723/* confdefs.h. */
14724_ACEOF
14725cat confdefs.h >>conftest.$ac_ext
14726cat >>conftest.$ac_ext <<_ACEOF
14727/* end confdefs.h. */
14728#include <jerror.h>
14729_ACEOF
14730if { (ac_try="$ac_cpp conftest.$ac_ext"
14731case "(($ac_try" in
14732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14733 *) ac_try_echo=$ac_try;;
14734esac
14735eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14736$as_echo "$ac_try_echo") >&5
14737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14738 ac_status=$?
14739 grep -v '^ *+' conftest.er1 >conftest.err
14740 rm -f conftest.er1
14741 cat conftest.err >&5
14742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); } >/dev/null && {
14744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14745 test ! -s conftest.err
14746 }; then
14747 ac_header_preproc=yes
14748else
14749 $as_echo "$as_me: failed program was:" >&5
14750sed 's/^/| /' conftest.$ac_ext >&5
14751
14752 ac_header_preproc=no
14753fi
14754
14755rm -f conftest.err conftest.$ac_ext
14756{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14757$as_echo "$ac_header_preproc" >&6; }
14758
14759# So? What about this header?
14760case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14761 yes:no: )
14762 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14763$as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14764 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14765$as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14766 ac_header_preproc=yes
14767 ;;
14768 no:yes:* )
14769 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14770$as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14771 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14772$as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14773 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14774$as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14775 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14776$as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14777 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14778$as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14779 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14780$as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14781
14782 ;;
14783esac
14784{ $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14785$as_echo_n "checking for jerror.h... " >&6; }
14786if test "${ac_cv_header_jerror_h+set}" = set; then
14787 $as_echo_n "(cached) " >&6
14788else
14789 ac_cv_header_jerror_h=$ac_header_preproc
14790fi
14791{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14792$as_echo "$ac_cv_header_jerror_h" >&6; }
14793
14794fi
14795if test $ac_cv_header_jerror_h = yes; then
14796 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14797$as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; } 9812$as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14798if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then 9813if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
14799 $as_echo_n "(cached) " >&6 9814 $as_echo_n "(cached) " >&6
14800else 9815else
14801 ac_check_lib_save_LIBS=$LIBS 9816 ac_check_lib_save_LIBS=$LIBS
14802LIBS="-ljpeg $LIBS" 9817LIBS="-ljpeg $LIBS"
14803cat >conftest.$ac_ext <<_ACEOF 9818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14804/* confdefs.h. */
14805_ACEOF
14806cat confdefs.h >>conftest.$ac_ext
14807cat >>conftest.$ac_ext <<_ACEOF
14808/* end confdefs.h. */ 9819/* end confdefs.h. */
14809 9820
14810/* Override any GCC internal prototype to avoid an error. 9821/* Override any GCC internal prototype to avoid an error.
@@ -14822,43 +9833,18 @@ return jpeg_destroy_compress ();
14822 return 0; 9833 return 0;
14823} 9834}
14824_ACEOF 9835_ACEOF
14825rm -f conftest.$ac_objext conftest$ac_exeext 9836if ac_fn_c_try_link "$LINENO"; then :
14826if { (ac_try="$ac_link"
14827case "(($ac_try" in
14828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14829 *) ac_try_echo=$ac_try;;
14830esac
14831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14832$as_echo "$ac_try_echo") >&5
14833 (eval "$ac_link") 2>conftest.er1
14834 ac_status=$?
14835 grep -v '^ *+' conftest.er1 >conftest.err
14836 rm -f conftest.er1
14837 cat conftest.err >&5
14838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); } && {
14840 test -z "$ac_c_werror_flag" ||
14841 test ! -s conftest.err
14842 } && test -s conftest$ac_exeext && {
14843 test "$cross_compiling" = yes ||
14844 $as_test_x conftest$ac_exeext
14845 }; then
14846 ac_cv_lib_jpeg_jpeg_destroy_compress=yes 9837 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14847else 9838else
14848 $as_echo "$as_me: failed program was:" >&5 9839 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14849sed 's/^/| /' conftest.$ac_ext >&5
14850
14851 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14852fi 9840fi
14853 9841rm -f core conftest.err conftest.$ac_objext \
14854rm -rf conftest.dSYM 9842 conftest$ac_exeext conftest.$ac_ext
14855rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14856 conftest$ac_exeext conftest.$ac_ext
14857LIBS=$ac_check_lib_save_LIBS 9843LIBS=$ac_check_lib_save_LIBS
14858fi 9844fi
14859{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 9845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14860$as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; } 9846$as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14861if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then 9847if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
14862 HAVE_JPEG=yes 9848 HAVE_JPEG=yes
14863fi 9849fi
14864 9850
@@ -14867,30 +9853,21 @@ fi
14867 9853
14868 fi 9854 fi
14869 9855
9856 if test "${HAVE_JPEG}" = "yes"; then
9857 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
14870 9858
14871 if test "${HAVE_JPEG}" = "yes"; then 9859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14872 cat >>confdefs.h <<\_ACEOF
14873#define HAVE_JPEG 1
14874_ACEOF
14875
14876 cat >conftest.$ac_ext <<_ACEOF
14877/* confdefs.h. */
14878_ACEOF
14879cat confdefs.h >>conftest.$ac_ext
14880cat >>conftest.$ac_ext <<_ACEOF
14881/* end confdefs.h. */ 9860/* end confdefs.h. */
14882#include <jpeglib.h> 9861#include <jpeglib.h>
14883 version=JPEG_LIB_VERSION 9862 version=JPEG_LIB_VERSION
14884 9863
14885_ACEOF 9864_ACEOF
14886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9865if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14887 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then 9866 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
14888 cat >>confdefs.h <<\_ACEOF 9867 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
14889#define HAVE_JPEG 1
14890_ACEOF
14891 9868
14892else 9869else
14893 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5 9870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
14894$as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} 9871$as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14895 HAVE_JPEG=no 9872 HAVE_JPEG=no
14896fi 9873fi
@@ -14910,144 +9887,12 @@ if test "${HAVE_X11}" = "yes"; then
14910 if test "${with_png}" != "no"; then 9887 if test "${with_png}" != "no"; then
14911 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h 9888 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14912 # in /usr/include/libpng. 9889 # in /usr/include/libpng.
14913 9890 for ac_header in png.h libpng/png.h
14914 9891do :
14915for ac_header in png.h libpng/png.h 9892 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14916do 9893ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14917as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9894eval as_val=\$$as_ac_Header
14918if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9895 if test "x$as_val" = x""yes; then :
14919 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14920$as_echo_n "checking for $ac_header... " >&6; }
14921if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14922 $as_echo_n "(cached) " >&6
14923fi
14924ac_res=`eval 'as_val=${'$as_ac_Header'}
14925 $as_echo "$as_val"'`
14926 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14927$as_echo "$ac_res" >&6; }
14928else
14929 # Is the header compilable?
14930{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14931$as_echo_n "checking $ac_header usability... " >&6; }
14932cat >conftest.$ac_ext <<_ACEOF
14933/* confdefs.h. */
14934_ACEOF
14935cat confdefs.h >>conftest.$ac_ext
14936cat >>conftest.$ac_ext <<_ACEOF
14937/* end confdefs.h. */
14938$ac_includes_default
14939#include <$ac_header>
14940_ACEOF
14941rm -f conftest.$ac_objext
14942if { (ac_try="$ac_compile"
14943case "(($ac_try" in
14944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14945 *) ac_try_echo=$ac_try;;
14946esac
14947eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14948$as_echo "$ac_try_echo") >&5
14949 (eval "$ac_compile") 2>conftest.er1
14950 ac_status=$?
14951 grep -v '^ *+' conftest.er1 >conftest.err
14952 rm -f conftest.er1
14953 cat conftest.err >&5
14954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); } && {
14956 test -z "$ac_c_werror_flag" ||
14957 test ! -s conftest.err
14958 } && test -s conftest.$ac_objext; then
14959 ac_header_compiler=yes
14960else
14961 $as_echo "$as_me: failed program was:" >&5
14962sed 's/^/| /' conftest.$ac_ext >&5
14963
14964 ac_header_compiler=no
14965fi
14966
14967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14968{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14969$as_echo "$ac_header_compiler" >&6; }
14970
14971# Is the header present?
14972{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14973$as_echo_n "checking $ac_header presence... " >&6; }
14974cat >conftest.$ac_ext <<_ACEOF
14975/* confdefs.h. */
14976_ACEOF
14977cat confdefs.h >>conftest.$ac_ext
14978cat >>conftest.$ac_ext <<_ACEOF
14979/* end confdefs.h. */
14980#include <$ac_header>
14981_ACEOF
14982if { (ac_try="$ac_cpp conftest.$ac_ext"
14983case "(($ac_try" in
14984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985 *) ac_try_echo=$ac_try;;
14986esac
14987eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14988$as_echo "$ac_try_echo") >&5
14989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14990 ac_status=$?
14991 grep -v '^ *+' conftest.er1 >conftest.err
14992 rm -f conftest.er1
14993 cat conftest.err >&5
14994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); } >/dev/null && {
14996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14997 test ! -s conftest.err
14998 }; then
14999 ac_header_preproc=yes
15000else
15001 $as_echo "$as_me: failed program was:" >&5
15002sed 's/^/| /' conftest.$ac_ext >&5
15003
15004 ac_header_preproc=no
15005fi
15006
15007rm -f conftest.err conftest.$ac_ext
15008{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15009$as_echo "$ac_header_preproc" >&6; }
15010
15011# So? What about this header?
15012case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15013 yes:no: )
15014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15015$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15017$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15018 ac_header_preproc=yes
15019 ;;
15020 no:yes:* )
15021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15022$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15024$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15026$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15028$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15030$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15032$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15033
15034 ;;
15035esac
15036{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15037$as_echo_n "checking for $ac_header... " >&6; }
15038if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15039 $as_echo_n "(cached) " >&6
15040else
15041 eval "$as_ac_Header=\$ac_header_preproc"
15042fi
15043ac_res=`eval 'as_val=${'$as_ac_Header'}
15044 $as_echo "$as_val"'`
15045 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15046$as_echo "$ac_res" >&6; }
15047
15048fi
15049if test `eval 'as_val=${'$as_ac_Header'}
15050 $as_echo "$as_val"'` = yes; then
15051 cat >>confdefs.h <<_ACEOF 9896 cat >>confdefs.h <<_ACEOF
15052#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9897#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15053_ACEOF 9898_ACEOF
@@ -15057,18 +9902,14 @@ fi
15057done 9902done
15058 9903
15059 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then 9904 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15060 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5 9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
15061$as_echo_n "checking for png_get_channels in -lpng... " >&6; } 9906$as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15062if test "${ac_cv_lib_png_png_get_channels+set}" = set; then 9907if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
15063 $as_echo_n "(cached) " >&6 9908 $as_echo_n "(cached) " >&6
15064else 9909else
15065 ac_check_lib_save_LIBS=$LIBS 9910 ac_check_lib_save_LIBS=$LIBS
15066LIBS="-lpng -lz -lm $LIBS" 9911LIBS="-lpng -lz -lm $LIBS"
15067cat >conftest.$ac_ext <<_ACEOF 9912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15068/* confdefs.h. */
15069_ACEOF
15070cat confdefs.h >>conftest.$ac_ext
15071cat >>conftest.$ac_ext <<_ACEOF
15072/* end confdefs.h. */ 9913/* end confdefs.h. */
15073 9914
15074/* Override any GCC internal prototype to avoid an error. 9915/* Override any GCC internal prototype to avoid an error.
@@ -15086,43 +9927,18 @@ return png_get_channels ();
15086 return 0; 9927 return 0;
15087} 9928}
15088_ACEOF 9929_ACEOF
15089rm -f conftest.$ac_objext conftest$ac_exeext 9930if ac_fn_c_try_link "$LINENO"; then :
15090if { (ac_try="$ac_link"
15091case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15094esac
15095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15096$as_echo "$ac_try_echo") >&5
15097 (eval "$ac_link") 2>conftest.er1
15098 ac_status=$?
15099 grep -v '^ *+' conftest.er1 >conftest.err
15100 rm -f conftest.er1
15101 cat conftest.err >&5
15102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); } && {
15104 test -z "$ac_c_werror_flag" ||
15105 test ! -s conftest.err
15106 } && test -s conftest$ac_exeext && {
15107 test "$cross_compiling" = yes ||
15108 $as_test_x conftest$ac_exeext
15109 }; then
15110 ac_cv_lib_png_png_get_channels=yes 9931 ac_cv_lib_png_png_get_channels=yes
15111else 9932else
15112 $as_echo "$as_me: failed program was:" >&5 9933 ac_cv_lib_png_png_get_channels=no
15113sed 's/^/| /' conftest.$ac_ext >&5
15114
15115 ac_cv_lib_png_png_get_channels=no
15116fi 9934fi
15117 9935rm -f core conftest.err conftest.$ac_objext \
15118rm -rf conftest.dSYM 9936 conftest$ac_exeext conftest.$ac_ext
15119rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15120 conftest$ac_exeext conftest.$ac_ext
15121LIBS=$ac_check_lib_save_LIBS 9937LIBS=$ac_check_lib_save_LIBS
15122fi 9938fi
15123{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5 9939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
15124$as_echo "$ac_cv_lib_png_png_get_channels" >&6; } 9940$as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15125if test $ac_cv_lib_png_png_get_channels = yes; then 9941if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
15126 HAVE_PNG=yes 9942 HAVE_PNG=yes
15127fi 9943fi
15128 9944
@@ -15131,9 +9947,7 @@ fi
15131 9947
15132 if test "${HAVE_PNG}" = "yes"; then 9948 if test "${HAVE_PNG}" = "yes"; then
15133 9949
15134cat >>confdefs.h <<\_ACEOF 9950$as_echo "#define HAVE_PNG 1" >>confdefs.h
15135#define HAVE_PNG 1
15136_ACEOF
15137 9951
15138 LIBPNG="-lpng -lz -lm" 9952 LIBPNG="-lpng -lz -lm"
15139 fi 9953 fi
@@ -15145,149 +9959,19 @@ HAVE_TIFF=no
15145LIBTIFF= 9959LIBTIFF=
15146if test "${HAVE_X11}" = "yes"; then 9960if test "${HAVE_X11}" = "yes"; then
15147 if test "${with_tiff}" != "no"; then 9961 if test "${with_tiff}" != "no"; then
15148 if test "${ac_cv_header_tiffio_h+set}" = set; then 9962 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
15149 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5 9963if test "x$ac_cv_header_tiffio_h" = x""yes; then :
15150$as_echo_n "checking for tiffio.h... " >&6; }
15151if test "${ac_cv_header_tiffio_h+set}" = set; then
15152 $as_echo_n "(cached) " >&6
15153fi
15154{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15155$as_echo "$ac_cv_header_tiffio_h" >&6; }
15156else
15157 # Is the header compilable?
15158{ $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15159$as_echo_n "checking tiffio.h usability... " >&6; }
15160cat >conftest.$ac_ext <<_ACEOF
15161/* confdefs.h. */
15162_ACEOF
15163cat confdefs.h >>conftest.$ac_ext
15164cat >>conftest.$ac_ext <<_ACEOF
15165/* end confdefs.h. */
15166$ac_includes_default
15167#include <tiffio.h>
15168_ACEOF
15169rm -f conftest.$ac_objext
15170if { (ac_try="$ac_compile"
15171case "(($ac_try" in
15172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15173 *) ac_try_echo=$ac_try;;
15174esac
15175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15176$as_echo "$ac_try_echo") >&5
15177 (eval "$ac_compile") 2>conftest.er1
15178 ac_status=$?
15179 grep -v '^ *+' conftest.er1 >conftest.err
15180 rm -f conftest.er1
15181 cat conftest.err >&5
15182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); } && {
15184 test -z "$ac_c_werror_flag" ||
15185 test ! -s conftest.err
15186 } && test -s conftest.$ac_objext; then
15187 ac_header_compiler=yes
15188else
15189 $as_echo "$as_me: failed program was:" >&5
15190sed 's/^/| /' conftest.$ac_ext >&5
15191
15192 ac_header_compiler=no
15193fi
15194
15195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15196{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15197$as_echo "$ac_header_compiler" >&6; }
15198
15199# Is the header present?
15200{ $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15201$as_echo_n "checking tiffio.h presence... " >&6; }
15202cat >conftest.$ac_ext <<_ACEOF
15203/* confdefs.h. */
15204_ACEOF
15205cat confdefs.h >>conftest.$ac_ext
15206cat >>conftest.$ac_ext <<_ACEOF
15207/* end confdefs.h. */
15208#include <tiffio.h>
15209_ACEOF
15210if { (ac_try="$ac_cpp conftest.$ac_ext"
15211case "(($ac_try" in
15212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213 *) ac_try_echo=$ac_try;;
15214esac
15215eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15216$as_echo "$ac_try_echo") >&5
15217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15218 ac_status=$?
15219 grep -v '^ *+' conftest.er1 >conftest.err
15220 rm -f conftest.er1
15221 cat conftest.err >&5
15222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } >/dev/null && {
15224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15225 test ! -s conftest.err
15226 }; then
15227 ac_header_preproc=yes
15228else
15229 $as_echo "$as_me: failed program was:" >&5
15230sed 's/^/| /' conftest.$ac_ext >&5
15231
15232 ac_header_preproc=no
15233fi
15234
15235rm -f conftest.err conftest.$ac_ext
15236{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15237$as_echo "$ac_header_preproc" >&6; }
15238
15239# So? What about this header?
15240case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15241 yes:no: )
15242 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15243$as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15244 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15245$as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15246 ac_header_preproc=yes
15247 ;;
15248 no:yes:* )
15249 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15250$as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15251 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15252$as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15253 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15254$as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15255 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15256$as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15257 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15258$as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15259 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15260$as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15261
15262 ;;
15263esac
15264{ $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15265$as_echo_n "checking for tiffio.h... " >&6; }
15266if test "${ac_cv_header_tiffio_h+set}" = set; then
15267 $as_echo_n "(cached) " >&6
15268else
15269 ac_cv_header_tiffio_h=$ac_header_preproc
15270fi
15271{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15272$as_echo "$ac_cv_header_tiffio_h" >&6; }
15273
15274fi
15275if test $ac_cv_header_tiffio_h = yes; then
15276 tifflibs="-lz -lm" 9964 tifflibs="-lz -lm"
15277 # At least one tiff package requires the jpeg library. 9965 # At least one tiff package requires the jpeg library.
15278 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi 9966 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15279 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5 9967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
15280$as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; } 9968$as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15281if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then 9969if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
15282 $as_echo_n "(cached) " >&6 9970 $as_echo_n "(cached) " >&6
15283else 9971else
15284 ac_check_lib_save_LIBS=$LIBS 9972 ac_check_lib_save_LIBS=$LIBS
15285LIBS="-ltiff $tifflibs $LIBS" 9973LIBS="-ltiff $tifflibs $LIBS"
15286cat >conftest.$ac_ext <<_ACEOF 9974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15287/* confdefs.h. */
15288_ACEOF
15289cat confdefs.h >>conftest.$ac_ext
15290cat >>conftest.$ac_ext <<_ACEOF
15291/* end confdefs.h. */ 9975/* end confdefs.h. */
15292 9976
15293/* Override any GCC internal prototype to avoid an error. 9977/* Override any GCC internal prototype to avoid an error.
@@ -15305,43 +9989,18 @@ return TIFFGetVersion ();
15305 return 0; 9989 return 0;
15306} 9990}
15307_ACEOF 9991_ACEOF
15308rm -f conftest.$ac_objext conftest$ac_exeext 9992if ac_fn_c_try_link "$LINENO"; then :
15309if { (ac_try="$ac_link"
15310case "(($ac_try" in
15311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312 *) ac_try_echo=$ac_try;;
15313esac
15314eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15315$as_echo "$ac_try_echo") >&5
15316 (eval "$ac_link") 2>conftest.er1
15317 ac_status=$?
15318 grep -v '^ *+' conftest.er1 >conftest.err
15319 rm -f conftest.er1
15320 cat conftest.err >&5
15321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); } && {
15323 test -z "$ac_c_werror_flag" ||
15324 test ! -s conftest.err
15325 } && test -s conftest$ac_exeext && {
15326 test "$cross_compiling" = yes ||
15327 $as_test_x conftest$ac_exeext
15328 }; then
15329 ac_cv_lib_tiff_TIFFGetVersion=yes 9993 ac_cv_lib_tiff_TIFFGetVersion=yes
15330else 9994else
15331 $as_echo "$as_me: failed program was:" >&5 9995 ac_cv_lib_tiff_TIFFGetVersion=no
15332sed 's/^/| /' conftest.$ac_ext >&5
15333
15334 ac_cv_lib_tiff_TIFFGetVersion=no
15335fi 9996fi
15336 9997rm -f core conftest.err conftest.$ac_objext \
15337rm -rf conftest.dSYM 9998 conftest$ac_exeext conftest.$ac_ext
15338rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15339 conftest$ac_exeext conftest.$ac_ext
15340LIBS=$ac_check_lib_save_LIBS 9999LIBS=$ac_check_lib_save_LIBS
15341fi 10000fi
15342{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 10001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15343$as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; } 10002$as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15344if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then 10003if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
15345 HAVE_TIFF=yes 10004 HAVE_TIFF=yes
15346fi 10005fi
15347 10006
@@ -15352,9 +10011,7 @@ fi
15352 10011
15353 if test "${HAVE_TIFF}" = "yes"; then 10012 if test "${HAVE_TIFF}" = "yes"; then
15354 10013
15355cat >>confdefs.h <<\_ACEOF 10014$as_echo "#define HAVE_TIFF 1" >>confdefs.h
15356#define HAVE_TIFF 1
15357_ACEOF
15358 10015
15359 LIBTIFF=-ltiff 10016 LIBTIFF=-ltiff
15360 fi 10017 fi
@@ -15365,148 +10022,18 @@ fi
15365HAVE_GIF=no 10022HAVE_GIF=no
15366LIBGIF= 10023LIBGIF=
15367if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then 10024if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15368 if test "${ac_cv_header_gif_lib_h+set}" = set; then 10025 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
15369 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5 10026if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
15370$as_echo_n "checking for gif_lib.h... " >&6; }
15371if test "${ac_cv_header_gif_lib_h+set}" = set; then
15372 $as_echo_n "(cached) " >&6
15373fi
15374{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15375$as_echo "$ac_cv_header_gif_lib_h" >&6; }
15376else
15377 # Is the header compilable?
15378{ $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15379$as_echo_n "checking gif_lib.h usability... " >&6; }
15380cat >conftest.$ac_ext <<_ACEOF
15381/* confdefs.h. */
15382_ACEOF
15383cat confdefs.h >>conftest.$ac_ext
15384cat >>conftest.$ac_ext <<_ACEOF
15385/* end confdefs.h. */
15386$ac_includes_default
15387#include <gif_lib.h>
15388_ACEOF
15389rm -f conftest.$ac_objext
15390if { (ac_try="$ac_compile"
15391case "(($ac_try" in
15392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393 *) ac_try_echo=$ac_try;;
15394esac
15395eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15396$as_echo "$ac_try_echo") >&5
15397 (eval "$ac_compile") 2>conftest.er1
15398 ac_status=$?
15399 grep -v '^ *+' conftest.er1 >conftest.err
15400 rm -f conftest.er1
15401 cat conftest.err >&5
15402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); } && {
15404 test -z "$ac_c_werror_flag" ||
15405 test ! -s conftest.err
15406 } && test -s conftest.$ac_objext; then
15407 ac_header_compiler=yes
15408else
15409 $as_echo "$as_me: failed program was:" >&5
15410sed 's/^/| /' conftest.$ac_ext >&5
15411
15412 ac_header_compiler=no
15413fi
15414
15415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15416{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15417$as_echo "$ac_header_compiler" >&6; }
15418
15419# Is the header present?
15420{ $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15421$as_echo_n "checking gif_lib.h presence... " >&6; }
15422cat >conftest.$ac_ext <<_ACEOF
15423/* confdefs.h. */
15424_ACEOF
15425cat confdefs.h >>conftest.$ac_ext
15426cat >>conftest.$ac_ext <<_ACEOF
15427/* end confdefs.h. */
15428#include <gif_lib.h>
15429_ACEOF
15430if { (ac_try="$ac_cpp conftest.$ac_ext"
15431case "(($ac_try" in
15432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433 *) ac_try_echo=$ac_try;;
15434esac
15435eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15436$as_echo "$ac_try_echo") >&5
15437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15438 ac_status=$?
15439 grep -v '^ *+' conftest.er1 >conftest.err
15440 rm -f conftest.er1
15441 cat conftest.err >&5
15442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); } >/dev/null && {
15444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15445 test ! -s conftest.err
15446 }; then
15447 ac_header_preproc=yes
15448else
15449 $as_echo "$as_me: failed program was:" >&5
15450sed 's/^/| /' conftest.$ac_ext >&5
15451
15452 ac_header_preproc=no
15453fi
15454
15455rm -f conftest.err conftest.$ac_ext
15456{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15457$as_echo "$ac_header_preproc" >&6; }
15458
15459# So? What about this header?
15460case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15461 yes:no: )
15462 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15463$as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15464 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15465$as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15466 ac_header_preproc=yes
15467 ;;
15468 no:yes:* )
15469 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15470$as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15471 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15472$as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15473 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15474$as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15475 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15476$as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15477 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15478$as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15479 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15480$as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15481
15482 ;;
15483esac
15484{ $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15485$as_echo_n "checking for gif_lib.h... " >&6; }
15486if test "${ac_cv_header_gif_lib_h+set}" = set; then
15487 $as_echo_n "(cached) " >&6
15488else
15489 ac_cv_header_gif_lib_h=$ac_header_preproc
15490fi
15491{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15492$as_echo "$ac_cv_header_gif_lib_h" >&6; }
15493
15494fi
15495if test $ac_cv_header_gif_lib_h = yes; then
15496 # EGifPutExtensionLast only exists from version libungif-4.1.0b1. 10027 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15497# Earlier versions can crash Emacs. 10028# Earlier versions can crash Emacs.
15498 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5 10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
15499$as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; } 10030$as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15500if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then 10031if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
15501 $as_echo_n "(cached) " >&6 10032 $as_echo_n "(cached) " >&6
15502else 10033else
15503 ac_check_lib_save_LIBS=$LIBS 10034 ac_check_lib_save_LIBS=$LIBS
15504LIBS="-lgif $LIBS" 10035LIBS="-lgif $LIBS"
15505cat >conftest.$ac_ext <<_ACEOF 10036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15506/* confdefs.h. */
15507_ACEOF
15508cat confdefs.h >>conftest.$ac_ext
15509cat >>conftest.$ac_ext <<_ACEOF
15510/* end confdefs.h. */ 10037/* end confdefs.h. */
15511 10038
15512/* Override any GCC internal prototype to avoid an error. 10039/* Override any GCC internal prototype to avoid an error.
@@ -15524,43 +10051,18 @@ return EGifPutExtensionLast ();
15524 return 0; 10051 return 0;
15525} 10052}
15526_ACEOF 10053_ACEOF
15527rm -f conftest.$ac_objext conftest$ac_exeext 10054if ac_fn_c_try_link "$LINENO"; then :
15528if { (ac_try="$ac_link"
15529case "(($ac_try" in
15530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15531 *) ac_try_echo=$ac_try;;
15532esac
15533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15534$as_echo "$ac_try_echo") >&5
15535 (eval "$ac_link") 2>conftest.er1
15536 ac_status=$?
15537 grep -v '^ *+' conftest.er1 >conftest.err
15538 rm -f conftest.er1
15539 cat conftest.err >&5
15540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); } && {
15542 test -z "$ac_c_werror_flag" ||
15543 test ! -s conftest.err
15544 } && test -s conftest$ac_exeext && {
15545 test "$cross_compiling" = yes ||
15546 $as_test_x conftest$ac_exeext
15547 }; then
15548 ac_cv_lib_gif_EGifPutExtensionLast=yes 10055 ac_cv_lib_gif_EGifPutExtensionLast=yes
15549else 10056else
15550 $as_echo "$as_me: failed program was:" >&5 10057 ac_cv_lib_gif_EGifPutExtensionLast=no
15551sed 's/^/| /' conftest.$ac_ext >&5
15552
15553 ac_cv_lib_gif_EGifPutExtensionLast=no
15554fi 10058fi
15555 10059rm -f core conftest.err conftest.$ac_objext \
15556rm -rf conftest.dSYM 10060 conftest$ac_exeext conftest.$ac_ext
15557rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15558 conftest$ac_exeext conftest.$ac_ext
15559LIBS=$ac_check_lib_save_LIBS 10061LIBS=$ac_check_lib_save_LIBS
15560fi 10062fi
15561{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5 10063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15562$as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; } 10064$as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15563if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then 10065if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
15564 HAVE_GIF=yes 10066 HAVE_GIF=yes
15565else 10067else
15566 HAVE_GIF=maybe 10068 HAVE_GIF=maybe
@@ -15574,18 +10076,14 @@ fi
15574 LIBGIF=-lgif 10076 LIBGIF=-lgif
15575 elif test "$HAVE_GIF" = maybe; then 10077 elif test "$HAVE_GIF" = maybe; then
15576# If gif_lib.h but no libgif, try libungif. 10078# If gif_lib.h but no libgif, try libungif.
15577 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5 10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
15578$as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; } 10080$as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15579if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then 10081if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
15580 $as_echo_n "(cached) " >&6 10082 $as_echo_n "(cached) " >&6
15581else 10083else
15582 ac_check_lib_save_LIBS=$LIBS 10084 ac_check_lib_save_LIBS=$LIBS
15583LIBS="-lungif $LIBS" 10085LIBS="-lungif $LIBS"
15584cat >conftest.$ac_ext <<_ACEOF 10086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15585/* confdefs.h. */
15586_ACEOF
15587cat confdefs.h >>conftest.$ac_ext
15588cat >>conftest.$ac_ext <<_ACEOF
15589/* end confdefs.h. */ 10087/* end confdefs.h. */
15590 10088
15591/* Override any GCC internal prototype to avoid an error. 10089/* Override any GCC internal prototype to avoid an error.
@@ -15603,43 +10101,18 @@ return EGifPutExtensionLast ();
15603 return 0; 10101 return 0;
15604} 10102}
15605_ACEOF 10103_ACEOF
15606rm -f conftest.$ac_objext conftest$ac_exeext 10104if ac_fn_c_try_link "$LINENO"; then :
15607if { (ac_try="$ac_link"
15608case "(($ac_try" in
15609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15610 *) ac_try_echo=$ac_try;;
15611esac
15612eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15613$as_echo "$ac_try_echo") >&5
15614 (eval "$ac_link") 2>conftest.er1
15615 ac_status=$?
15616 grep -v '^ *+' conftest.er1 >conftest.err
15617 rm -f conftest.er1
15618 cat conftest.err >&5
15619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); } && {
15621 test -z "$ac_c_werror_flag" ||
15622 test ! -s conftest.err
15623 } && test -s conftest$ac_exeext && {
15624 test "$cross_compiling" = yes ||
15625 $as_test_x conftest$ac_exeext
15626 }; then
15627 ac_cv_lib_ungif_EGifPutExtensionLast=yes 10105 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15628else 10106else
15629 $as_echo "$as_me: failed program was:" >&5 10107 ac_cv_lib_ungif_EGifPutExtensionLast=no
15630sed 's/^/| /' conftest.$ac_ext >&5
15631
15632 ac_cv_lib_ungif_EGifPutExtensionLast=no
15633fi 10108fi
15634 10109rm -f core conftest.err conftest.$ac_objext \
15635rm -rf conftest.dSYM 10110 conftest$ac_exeext conftest.$ac_ext
15636rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15637 conftest$ac_exeext conftest.$ac_ext
15638LIBS=$ac_check_lib_save_LIBS 10111LIBS=$ac_check_lib_save_LIBS
15639fi 10112fi
15640{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 10113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15641$as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; } 10114$as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15642if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then 10115if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
15643 HAVE_GIF=yes 10116 HAVE_GIF=yes
15644else 10117else
15645 HAVE_GIF=no 10118 HAVE_GIF=no
@@ -15650,9 +10123,7 @@ fi
15650 10123
15651 if test "${HAVE_GIF}" = "yes"; then 10124 if test "${HAVE_GIF}" = "yes"; then
15652 10125
15653cat >>confdefs.h <<\_ACEOF 10126$as_echo "#define HAVE_GIF 1" >>confdefs.h
15654#define HAVE_GIF 1
15655_ACEOF
15656 10127
15657 fi 10128 fi
15658fi 10129fi
@@ -15673,19 +10144,12 @@ if test "${HAVE_X11}" = "yes"; then
15673 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no" 10144 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15674 10145
15675 if test "X${MISSING}" != X; then 10146 if test "X${MISSING}" != X; then
15676 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found: 10147 as_fn_error "The following required libraries were not found:
15677 $MISSING
15678Maybe some development libraries/packages are missing?
15679If you don't want to link with them give
15680 $WITH_NO
15681as options to configure" >&5
15682$as_echo "$as_me: error: The following required libraries were not found:
15683 $MISSING 10148 $MISSING
15684Maybe some development libraries/packages are missing? 10149Maybe some development libraries/packages are missing?
15685If you don't want to link with them give 10150If you don't want to link with them give
15686 $WITH_NO 10151 $WITH_NO
15687as options to configure" >&2;} 10152as options to configure" "$LINENO" 5
15688 { (exit 1); exit 1; }; }
15689 fi 10153 fi
15690fi 10154fi
15691 10155
@@ -15693,146 +10157,16 @@ fi
15693HAVE_GPM=no 10157HAVE_GPM=no
15694LIBGPM= 10158LIBGPM=
15695if test "${with_gpm}" != "no"; then 10159if test "${with_gpm}" != "no"; then
15696 if test "${ac_cv_header_gpm_h+set}" = set; then 10160 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
15697 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5 10161if test "x$ac_cv_header_gpm_h" = x""yes; then :
15698$as_echo_n "checking for gpm.h... " >&6; } 10162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
15699if test "${ac_cv_header_gpm_h+set}" = set; then
15700 $as_echo_n "(cached) " >&6
15701fi
15702{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15703$as_echo "$ac_cv_header_gpm_h" >&6; }
15704else
15705 # Is the header compilable?
15706{ $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15707$as_echo_n "checking gpm.h usability... " >&6; }
15708cat >conftest.$ac_ext <<_ACEOF
15709/* confdefs.h. */
15710_ACEOF
15711cat confdefs.h >>conftest.$ac_ext
15712cat >>conftest.$ac_ext <<_ACEOF
15713/* end confdefs.h. */
15714$ac_includes_default
15715#include <gpm.h>
15716_ACEOF
15717rm -f conftest.$ac_objext
15718if { (ac_try="$ac_compile"
15719case "(($ac_try" in
15720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721 *) ac_try_echo=$ac_try;;
15722esac
15723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15724$as_echo "$ac_try_echo") >&5
15725 (eval "$ac_compile") 2>conftest.er1
15726 ac_status=$?
15727 grep -v '^ *+' conftest.er1 >conftest.err
15728 rm -f conftest.er1
15729 cat conftest.err >&5
15730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } && {
15732 test -z "$ac_c_werror_flag" ||
15733 test ! -s conftest.err
15734 } && test -s conftest.$ac_objext; then
15735 ac_header_compiler=yes
15736else
15737 $as_echo "$as_me: failed program was:" >&5
15738sed 's/^/| /' conftest.$ac_ext >&5
15739
15740 ac_header_compiler=no
15741fi
15742
15743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15744{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15745$as_echo "$ac_header_compiler" >&6; }
15746
15747# Is the header present?
15748{ $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15749$as_echo_n "checking gpm.h presence... " >&6; }
15750cat >conftest.$ac_ext <<_ACEOF
15751/* confdefs.h. */
15752_ACEOF
15753cat confdefs.h >>conftest.$ac_ext
15754cat >>conftest.$ac_ext <<_ACEOF
15755/* end confdefs.h. */
15756#include <gpm.h>
15757_ACEOF
15758if { (ac_try="$ac_cpp conftest.$ac_ext"
15759case "(($ac_try" in
15760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15761 *) ac_try_echo=$ac_try;;
15762esac
15763eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15764$as_echo "$ac_try_echo") >&5
15765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15766 ac_status=$?
15767 grep -v '^ *+' conftest.er1 >conftest.err
15768 rm -f conftest.er1
15769 cat conftest.err >&5
15770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); } >/dev/null && {
15772 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15773 test ! -s conftest.err
15774 }; then
15775 ac_header_preproc=yes
15776else
15777 $as_echo "$as_me: failed program was:" >&5
15778sed 's/^/| /' conftest.$ac_ext >&5
15779
15780 ac_header_preproc=no
15781fi
15782
15783rm -f conftest.err conftest.$ac_ext
15784{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15785$as_echo "$ac_header_preproc" >&6; }
15786
15787# So? What about this header?
15788case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15789 yes:no: )
15790 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15791$as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15792 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15793$as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15794 ac_header_preproc=yes
15795 ;;
15796 no:yes:* )
15797 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15798$as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15799 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15800$as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15801 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15802$as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15803 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15804$as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15805 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15806$as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15807 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15808$as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15809
15810 ;;
15811esac
15812{ $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15813$as_echo_n "checking for gpm.h... " >&6; }
15814if test "${ac_cv_header_gpm_h+set}" = set; then
15815 $as_echo_n "(cached) " >&6
15816else
15817 ac_cv_header_gpm_h=$ac_header_preproc
15818fi
15819{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15820$as_echo "$ac_cv_header_gpm_h" >&6; }
15821
15822fi
15823if test $ac_cv_header_gpm_h = yes; then
15824 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15825$as_echo_n "checking for Gpm_Open in -lgpm... " >&6; } 10163$as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15826if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then 10164if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
15827 $as_echo_n "(cached) " >&6 10165 $as_echo_n "(cached) " >&6
15828else 10166else
15829 ac_check_lib_save_LIBS=$LIBS 10167 ac_check_lib_save_LIBS=$LIBS
15830LIBS="-lgpm $LIBS" 10168LIBS="-lgpm $LIBS"
15831cat >conftest.$ac_ext <<_ACEOF 10169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15832/* confdefs.h. */
15833_ACEOF
15834cat confdefs.h >>conftest.$ac_ext
15835cat >>conftest.$ac_ext <<_ACEOF
15836/* end confdefs.h. */ 10170/* end confdefs.h. */
15837 10171
15838/* Override any GCC internal prototype to avoid an error. 10172/* Override any GCC internal prototype to avoid an error.
@@ -15850,43 +10184,18 @@ return Gpm_Open ();
15850 return 0; 10184 return 0;
15851} 10185}
15852_ACEOF 10186_ACEOF
15853rm -f conftest.$ac_objext conftest$ac_exeext 10187if ac_fn_c_try_link "$LINENO"; then :
15854if { (ac_try="$ac_link"
15855case "(($ac_try" in
15856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15857 *) ac_try_echo=$ac_try;;
15858esac
15859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15860$as_echo "$ac_try_echo") >&5
15861 (eval "$ac_link") 2>conftest.er1
15862 ac_status=$?
15863 grep -v '^ *+' conftest.er1 >conftest.err
15864 rm -f conftest.er1
15865 cat conftest.err >&5
15866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); } && {
15868 test -z "$ac_c_werror_flag" ||
15869 test ! -s conftest.err
15870 } && test -s conftest$ac_exeext && {
15871 test "$cross_compiling" = yes ||
15872 $as_test_x conftest$ac_exeext
15873 }; then
15874 ac_cv_lib_gpm_Gpm_Open=yes 10188 ac_cv_lib_gpm_Gpm_Open=yes
15875else 10189else
15876 $as_echo "$as_me: failed program was:" >&5 10190 ac_cv_lib_gpm_Gpm_Open=no
15877sed 's/^/| /' conftest.$ac_ext >&5
15878
15879 ac_cv_lib_gpm_Gpm_Open=no
15880fi 10191fi
15881 10192rm -f core conftest.err conftest.$ac_objext \
15882rm -rf conftest.dSYM 10193 conftest$ac_exeext conftest.$ac_ext
15883rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15884 conftest$ac_exeext conftest.$ac_ext
15885LIBS=$ac_check_lib_save_LIBS 10194LIBS=$ac_check_lib_save_LIBS
15886fi 10195fi
15887{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5 10196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15888$as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; } 10197$as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15889if test $ac_cv_lib_gpm_Gpm_Open = yes; then 10198if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
15890 HAVE_GPM=yes 10199 HAVE_GPM=yes
15891fi 10200fi
15892 10201
@@ -15896,147 +10205,17 @@ fi
15896 10205
15897 if test "${HAVE_GPM}" = "yes"; then 10206 if test "${HAVE_GPM}" = "yes"; then
15898 10207
15899cat >>confdefs.h <<\_ACEOF 10208$as_echo "#define HAVE_GPM 1" >>confdefs.h
15900#define HAVE_GPM 1
15901_ACEOF
15902 10209
15903 LIBGPM=-lgpm 10210 LIBGPM=-lgpm
15904 fi 10211 fi
15905fi 10212fi
15906 10213
15907 10214
15908if test "${ac_cv_header_malloc_malloc_h+set}" = set; then 10215ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
15909 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5 10216if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
15910$as_echo_n "checking for malloc/malloc.h... " >&6; }
15911if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15912 $as_echo_n "(cached) " >&6
15913fi
15914{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15915$as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15916else
15917 # Is the header compilable?
15918{ $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15919$as_echo_n "checking malloc/malloc.h usability... " >&6; }
15920cat >conftest.$ac_ext <<_ACEOF
15921/* confdefs.h. */
15922_ACEOF
15923cat confdefs.h >>conftest.$ac_ext
15924cat >>conftest.$ac_ext <<_ACEOF
15925/* end confdefs.h. */
15926$ac_includes_default
15927#include <malloc/malloc.h>
15928_ACEOF
15929rm -f conftest.$ac_objext
15930if { (ac_try="$ac_compile"
15931case "(($ac_try" in
15932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933 *) ac_try_echo=$ac_try;;
15934esac
15935eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15936$as_echo "$ac_try_echo") >&5
15937 (eval "$ac_compile") 2>conftest.er1
15938 ac_status=$?
15939 grep -v '^ *+' conftest.er1 >conftest.err
15940 rm -f conftest.er1
15941 cat conftest.err >&5
15942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); } && {
15944 test -z "$ac_c_werror_flag" ||
15945 test ! -s conftest.err
15946 } && test -s conftest.$ac_objext; then
15947 ac_header_compiler=yes
15948else
15949 $as_echo "$as_me: failed program was:" >&5
15950sed 's/^/| /' conftest.$ac_ext >&5
15951
15952 ac_header_compiler=no
15953fi
15954
15955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15956{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15957$as_echo "$ac_header_compiler" >&6; }
15958
15959# Is the header present?
15960{ $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15961$as_echo_n "checking malloc/malloc.h presence... " >&6; }
15962cat >conftest.$ac_ext <<_ACEOF
15963/* confdefs.h. */
15964_ACEOF
15965cat confdefs.h >>conftest.$ac_ext
15966cat >>conftest.$ac_ext <<_ACEOF
15967/* end confdefs.h. */
15968#include <malloc/malloc.h>
15969_ACEOF
15970if { (ac_try="$ac_cpp conftest.$ac_ext"
15971case "(($ac_try" in
15972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15973 *) ac_try_echo=$ac_try;;
15974esac
15975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15976$as_echo "$ac_try_echo") >&5
15977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15978 ac_status=$?
15979 grep -v '^ *+' conftest.er1 >conftest.err
15980 rm -f conftest.er1
15981 cat conftest.err >&5
15982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } >/dev/null && {
15984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15985 test ! -s conftest.err
15986 }; then
15987 ac_header_preproc=yes
15988else
15989 $as_echo "$as_me: failed program was:" >&5
15990sed 's/^/| /' conftest.$ac_ext >&5
15991
15992 ac_header_preproc=no
15993fi
15994
15995rm -f conftest.err conftest.$ac_ext
15996{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15997$as_echo "$ac_header_preproc" >&6; }
15998
15999# So? What about this header?
16000case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16001 yes:no: )
16002 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16003$as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16004 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16005$as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16006 ac_header_preproc=yes
16007 ;;
16008 no:yes:* )
16009 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16010$as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16011 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16012$as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16013 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16014$as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16015 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16016$as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16017 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16018$as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16019 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16020$as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16021
16022 ;;
16023esac
16024{ $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16025$as_echo_n "checking for malloc/malloc.h... " >&6; }
16026if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16027 $as_echo_n "(cached) " >&6
16028else
16029 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16030fi
16031{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16032$as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16033
16034fi
16035if test $ac_cv_header_malloc_malloc_h = yes; then
16036 10217
16037cat >>confdefs.h <<\_ACEOF 10218$as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
16038#define HAVE_MALLOC_MALLOC_H 1
16039_ACEOF
16040 10219
16041fi 10220fi
16042 10221
@@ -16045,31 +10224,23 @@ fi
16045### Use NeXTstep API to implement GUI. 10224### Use NeXTstep API to implement GUI.
16046if test "${HAVE_NS}" = "yes"; then 10225if test "${HAVE_NS}" = "yes"; then
16047 10226
16048cat >>confdefs.h <<\_ACEOF 10227$as_echo "#define HAVE_NS 1" >>confdefs.h
16049#define HAVE_NS 1
16050_ACEOF
16051 10228
16052 if test "${NS_IMPL_COCOA}" = "yes"; then 10229 if test "${NS_IMPL_COCOA}" = "yes"; then
16053 10230
16054cat >>confdefs.h <<\_ACEOF 10231$as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
16055#define NS_IMPL_COCOA 1
16056_ACEOF
16057 10232
16058 GNU_OBJC_CFLAGS= 10233 GNU_OBJC_CFLAGS=
16059 fi 10234 fi
16060 if test "${NS_IMPL_GNUSTEP}" = "yes"; then 10235 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16061 10236
16062cat >>confdefs.h <<\_ACEOF 10237$as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
16063#define NS_IMPL_GNUSTEP 1
16064_ACEOF
16065 10238
16066 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE" 10239 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16067 fi 10240 fi
16068 if test "${NS_HAVE_NSINTEGER}" = "yes"; then 10241 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16069 10242
16070cat >>confdefs.h <<\_ACEOF 10243$as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
16071#define NS_HAVE_NSINTEGER 1
16072_ACEOF
16073 10244
16074 fi 10245 fi
16075 # We also have mouse menus. 10246 # We also have mouse menus.
@@ -16082,146 +10253,16 @@ fi
16082HAVE_X_SM=no 10253HAVE_X_SM=no
16083LIBXSM= 10254LIBXSM=
16084if test "${HAVE_X11}" = "yes"; then 10255if test "${HAVE_X11}" = "yes"; then
16085 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then 10256 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
16086 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 10257if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
16087$as_echo_n "checking for X11/SM/SMlib.h... " >&6; } 10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
16088if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16089 $as_echo_n "(cached) " >&6
16090fi
16091{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16092$as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16093else
16094 # Is the header compilable?
16095{ $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16096$as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16097cat >conftest.$ac_ext <<_ACEOF
16098/* confdefs.h. */
16099_ACEOF
16100cat confdefs.h >>conftest.$ac_ext
16101cat >>conftest.$ac_ext <<_ACEOF
16102/* end confdefs.h. */
16103$ac_includes_default
16104#include <X11/SM/SMlib.h>
16105_ACEOF
16106rm -f conftest.$ac_objext
16107if { (ac_try="$ac_compile"
16108case "(($ac_try" in
16109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16110 *) ac_try_echo=$ac_try;;
16111esac
16112eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16113$as_echo "$ac_try_echo") >&5
16114 (eval "$ac_compile") 2>conftest.er1
16115 ac_status=$?
16116 grep -v '^ *+' conftest.er1 >conftest.err
16117 rm -f conftest.er1
16118 cat conftest.err >&5
16119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); } && {
16121 test -z "$ac_c_werror_flag" ||
16122 test ! -s conftest.err
16123 } && test -s conftest.$ac_objext; then
16124 ac_header_compiler=yes
16125else
16126 $as_echo "$as_me: failed program was:" >&5
16127sed 's/^/| /' conftest.$ac_ext >&5
16128
16129 ac_header_compiler=no
16130fi
16131
16132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16133{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16134$as_echo "$ac_header_compiler" >&6; }
16135
16136# Is the header present?
16137{ $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16138$as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16139cat >conftest.$ac_ext <<_ACEOF
16140/* confdefs.h. */
16141_ACEOF
16142cat confdefs.h >>conftest.$ac_ext
16143cat >>conftest.$ac_ext <<_ACEOF
16144/* end confdefs.h. */
16145#include <X11/SM/SMlib.h>
16146_ACEOF
16147if { (ac_try="$ac_cpp conftest.$ac_ext"
16148case "(($ac_try" in
16149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16150 *) ac_try_echo=$ac_try;;
16151esac
16152eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16153$as_echo "$ac_try_echo") >&5
16154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16155 ac_status=$?
16156 grep -v '^ *+' conftest.er1 >conftest.err
16157 rm -f conftest.er1
16158 cat conftest.err >&5
16159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); } >/dev/null && {
16161 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16162 test ! -s conftest.err
16163 }; then
16164 ac_header_preproc=yes
16165else
16166 $as_echo "$as_me: failed program was:" >&5
16167sed 's/^/| /' conftest.$ac_ext >&5
16168
16169 ac_header_preproc=no
16170fi
16171
16172rm -f conftest.err conftest.$ac_ext
16173{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16174$as_echo "$ac_header_preproc" >&6; }
16175
16176# So? What about this header?
16177case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16178 yes:no: )
16179 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16180$as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16181 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16182$as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16183 ac_header_preproc=yes
16184 ;;
16185 no:yes:* )
16186 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16187$as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16188 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16189$as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16190 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16191$as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16192 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16193$as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16194 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16195$as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16196 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16197$as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16198
16199 ;;
16200esac
16201{ $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16202$as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16203if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16204 $as_echo_n "(cached) " >&6
16205else
16206 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16207fi
16208{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16209$as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16210
16211fi
16212if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16213 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16214$as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; } 10259$as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16215if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then 10260if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
16216 $as_echo_n "(cached) " >&6 10261 $as_echo_n "(cached) " >&6
16217else 10262else
16218 ac_check_lib_save_LIBS=$LIBS 10263 ac_check_lib_save_LIBS=$LIBS
16219LIBS="-lSM -lICE $LIBS" 10264LIBS="-lSM -lICE $LIBS"
16220cat >conftest.$ac_ext <<_ACEOF 10265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16221/* confdefs.h. */
16222_ACEOF
16223cat confdefs.h >>conftest.$ac_ext
16224cat >>conftest.$ac_ext <<_ACEOF
16225/* end confdefs.h. */ 10266/* end confdefs.h. */
16226 10267
16227/* Override any GCC internal prototype to avoid an error. 10268/* Override any GCC internal prototype to avoid an error.
@@ -16239,43 +10280,18 @@ return SmcOpenConnection ();
16239 return 0; 10280 return 0;
16240} 10281}
16241_ACEOF 10282_ACEOF
16242rm -f conftest.$ac_objext conftest$ac_exeext 10283if ac_fn_c_try_link "$LINENO"; then :
16243if { (ac_try="$ac_link"
16244case "(($ac_try" in
16245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246 *) ac_try_echo=$ac_try;;
16247esac
16248eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16249$as_echo "$ac_try_echo") >&5
16250 (eval "$ac_link") 2>conftest.er1
16251 ac_status=$?
16252 grep -v '^ *+' conftest.er1 >conftest.err
16253 rm -f conftest.er1
16254 cat conftest.err >&5
16255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); } && {
16257 test -z "$ac_c_werror_flag" ||
16258 test ! -s conftest.err
16259 } && test -s conftest$ac_exeext && {
16260 test "$cross_compiling" = yes ||
16261 $as_test_x conftest$ac_exeext
16262 }; then
16263 ac_cv_lib_SM_SmcOpenConnection=yes 10284 ac_cv_lib_SM_SmcOpenConnection=yes
16264else 10285else
16265 $as_echo "$as_me: failed program was:" >&5 10286 ac_cv_lib_SM_SmcOpenConnection=no
16266sed 's/^/| /' conftest.$ac_ext >&5
16267
16268 ac_cv_lib_SM_SmcOpenConnection=no
16269fi 10287fi
16270 10288rm -f core conftest.err conftest.$ac_objext \
16271rm -rf conftest.dSYM 10289 conftest$ac_exeext conftest.$ac_ext
16272rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16273 conftest$ac_exeext conftest.$ac_ext
16274LIBS=$ac_check_lib_save_LIBS 10290LIBS=$ac_check_lib_save_LIBS
16275fi 10291fi
16276{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 10292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16277$as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; } 10293$as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16278if test $ac_cv_lib_SM_SmcOpenConnection = yes; then 10294if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
16279 HAVE_X_SM=yes 10295 HAVE_X_SM=yes
16280fi 10296fi
16281 10297
@@ -16285,9 +10301,7 @@ fi
16285 10301
16286 if test "${HAVE_X_SM}" = "yes"; then 10302 if test "${HAVE_X_SM}" = "yes"; then
16287 10303
16288cat >>confdefs.h <<\_ACEOF 10304$as_echo "#define HAVE_X_SM 1" >>confdefs.h
16289#define HAVE_X_SM 1
16290_ACEOF
16291 10305
16292 LIBXSM="-lSM -lICE" 10306 LIBXSM="-lSM -lICE"
16293 case "$LIBS" in 10307 case "$LIBS" in
@@ -16299,16 +10313,12 @@ fi
16299 10313
16300 10314
16301# If netdb.h doesn't declare h_errno, we must declare it by hand. 10315# If netdb.h doesn't declare h_errno, we must declare it by hand.
16302{ $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5 10316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
16303$as_echo_n "checking whether netdb declares h_errno... " >&6; } 10317$as_echo_n "checking whether netdb declares h_errno... " >&6; }
16304if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then 10318if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
16305 $as_echo_n "(cached) " >&6 10319 $as_echo_n "(cached) " >&6
16306else 10320else
16307 cat >conftest.$ac_ext <<_ACEOF 10321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16308/* confdefs.h. */
16309_ACEOF
16310cat confdefs.h >>conftest.$ac_ext
16311cat >>conftest.$ac_ext <<_ACEOF
16312/* end confdefs.h. */ 10322/* end confdefs.h. */
16313#include <netdb.h> 10323#include <netdb.h>
16314int 10324int
@@ -16319,61 +10329,30 @@ return h_errno;
16319 return 0; 10329 return 0;
16320} 10330}
16321_ACEOF 10331_ACEOF
16322rm -f conftest.$ac_objext conftest$ac_exeext 10332if ac_fn_c_try_link "$LINENO"; then :
16323if { (ac_try="$ac_link"
16324case "(($ac_try" in
16325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16326 *) ac_try_echo=$ac_try;;
16327esac
16328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16329$as_echo "$ac_try_echo") >&5
16330 (eval "$ac_link") 2>conftest.er1
16331 ac_status=$?
16332 grep -v '^ *+' conftest.er1 >conftest.err
16333 rm -f conftest.er1
16334 cat conftest.err >&5
16335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); } && {
16337 test -z "$ac_c_werror_flag" ||
16338 test ! -s conftest.err
16339 } && test -s conftest$ac_exeext && {
16340 test "$cross_compiling" = yes ||
16341 $as_test_x conftest$ac_exeext
16342 }; then
16343 emacs_cv_netdb_declares_h_errno=yes 10333 emacs_cv_netdb_declares_h_errno=yes
16344else 10334else
16345 $as_echo "$as_me: failed program was:" >&5 10335 emacs_cv_netdb_declares_h_errno=no
16346sed 's/^/| /' conftest.$ac_ext >&5
16347
16348 emacs_cv_netdb_declares_h_errno=no
16349fi 10336fi
16350 10337rm -f core conftest.err conftest.$ac_objext \
16351rm -rf conftest.dSYM 10338 conftest$ac_exeext conftest.$ac_ext
16352rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16353 conftest$ac_exeext conftest.$ac_ext
16354fi 10339fi
16355{ $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5 10340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
16356$as_echo "$emacs_cv_netdb_declares_h_errno" >&6; } 10341$as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16357if test $emacs_cv_netdb_declares_h_errno = yes; then 10342if test $emacs_cv_netdb_declares_h_errno = yes; then
16358 10343
16359cat >>confdefs.h <<\_ACEOF 10344$as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
16360#define HAVE_H_ERRNO 1
16361_ACEOF
16362 10345
16363fi 10346fi
16364 10347
16365# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 10348# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16366# for constant arguments. Useless! 10349# for constant arguments. Useless!
16367{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 10350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16368$as_echo_n "checking for working alloca.h... " >&6; } 10351$as_echo_n "checking for working alloca.h... " >&6; }
16369if test "${ac_cv_working_alloca_h+set}" = set; then 10352if test "${ac_cv_working_alloca_h+set}" = set; then :
16370 $as_echo_n "(cached) " >&6 10353 $as_echo_n "(cached) " >&6
16371else 10354else
16372 cat >conftest.$ac_ext <<_ACEOF 10355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16373/* confdefs.h. */
16374_ACEOF
16375cat confdefs.h >>conftest.$ac_ext
16376cat >>conftest.$ac_ext <<_ACEOF
16377/* end confdefs.h. */ 10356/* end confdefs.h. */
16378#include <alloca.h> 10357#include <alloca.h>
16379int 10358int
@@ -16385,59 +10364,28 @@ char *p = (char *) alloca (2 * sizeof (int));
16385 return 0; 10364 return 0;
16386} 10365}
16387_ACEOF 10366_ACEOF
16388rm -f conftest.$ac_objext conftest$ac_exeext 10367if ac_fn_c_try_link "$LINENO"; then :
16389if { (ac_try="$ac_link"
16390case "(($ac_try" in
16391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16392 *) ac_try_echo=$ac_try;;
16393esac
16394eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16395$as_echo "$ac_try_echo") >&5
16396 (eval "$ac_link") 2>conftest.er1
16397 ac_status=$?
16398 grep -v '^ *+' conftest.er1 >conftest.err
16399 rm -f conftest.er1
16400 cat conftest.err >&5
16401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); } && {
16403 test -z "$ac_c_werror_flag" ||
16404 test ! -s conftest.err
16405 } && test -s conftest$ac_exeext && {
16406 test "$cross_compiling" = yes ||
16407 $as_test_x conftest$ac_exeext
16408 }; then
16409 ac_cv_working_alloca_h=yes 10368 ac_cv_working_alloca_h=yes
16410else 10369else
16411 $as_echo "$as_me: failed program was:" >&5 10370 ac_cv_working_alloca_h=no
16412sed 's/^/| /' conftest.$ac_ext >&5
16413
16414 ac_cv_working_alloca_h=no
16415fi 10371fi
16416 10372rm -f core conftest.err conftest.$ac_objext \
16417rm -rf conftest.dSYM 10373 conftest$ac_exeext conftest.$ac_ext
16418rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16419 conftest$ac_exeext conftest.$ac_ext
16420fi 10374fi
16421{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 10375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16422$as_echo "$ac_cv_working_alloca_h" >&6; } 10376$as_echo "$ac_cv_working_alloca_h" >&6; }
16423if test $ac_cv_working_alloca_h = yes; then 10377if test $ac_cv_working_alloca_h = yes; then
16424 10378
16425cat >>confdefs.h <<\_ACEOF 10379$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16426#define HAVE_ALLOCA_H 1
16427_ACEOF
16428 10380
16429fi 10381fi
16430 10382
16431{ $as_echo "$as_me:$LINENO: checking for alloca" >&5 10383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16432$as_echo_n "checking for alloca... " >&6; } 10384$as_echo_n "checking for alloca... " >&6; }
16433if test "${ac_cv_func_alloca_works+set}" = set; then 10385if test "${ac_cv_func_alloca_works+set}" = set; then :
16434 $as_echo_n "(cached) " >&6 10386 $as_echo_n "(cached) " >&6
16435else 10387else
16436 cat >conftest.$ac_ext <<_ACEOF 10388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16437/* confdefs.h. */
16438_ACEOF
16439cat confdefs.h >>conftest.$ac_ext
16440cat >>conftest.$ac_ext <<_ACEOF
16441/* end confdefs.h. */ 10389/* end confdefs.h. */
16442#ifdef __GNUC__ 10390#ifdef __GNUC__
16443# define alloca __builtin_alloca 10391# define alloca __builtin_alloca
@@ -16469,47 +10417,20 @@ char *p = (char *) alloca (1);
16469 return 0; 10417 return 0;
16470} 10418}
16471_ACEOF 10419_ACEOF
16472rm -f conftest.$ac_objext conftest$ac_exeext 10420if ac_fn_c_try_link "$LINENO"; then :
16473if { (ac_try="$ac_link"
16474case "(($ac_try" in
16475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16476 *) ac_try_echo=$ac_try;;
16477esac
16478eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16479$as_echo "$ac_try_echo") >&5
16480 (eval "$ac_link") 2>conftest.er1
16481 ac_status=$?
16482 grep -v '^ *+' conftest.er1 >conftest.err
16483 rm -f conftest.er1
16484 cat conftest.err >&5
16485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); } && {
16487 test -z "$ac_c_werror_flag" ||
16488 test ! -s conftest.err
16489 } && test -s conftest$ac_exeext && {
16490 test "$cross_compiling" = yes ||
16491 $as_test_x conftest$ac_exeext
16492 }; then
16493 ac_cv_func_alloca_works=yes 10421 ac_cv_func_alloca_works=yes
16494else 10422else
16495 $as_echo "$as_me: failed program was:" >&5 10423 ac_cv_func_alloca_works=no
16496sed 's/^/| /' conftest.$ac_ext >&5
16497
16498 ac_cv_func_alloca_works=no
16499fi 10424fi
16500 10425rm -f core conftest.err conftest.$ac_objext \
16501rm -rf conftest.dSYM 10426 conftest$ac_exeext conftest.$ac_ext
16502rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16503 conftest$ac_exeext conftest.$ac_ext
16504fi 10427fi
16505{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 10428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16506$as_echo "$ac_cv_func_alloca_works" >&6; } 10429$as_echo "$ac_cv_func_alloca_works" >&6; }
16507 10430
16508if test $ac_cv_func_alloca_works = yes; then 10431if test $ac_cv_func_alloca_works = yes; then
16509 10432
16510cat >>confdefs.h <<\_ACEOF 10433$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16511#define HAVE_ALLOCA 1
16512_ACEOF
16513 10434
16514else 10435else
16515 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 10436 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
@@ -16519,21 +10440,15 @@ else
16519 10440
16520ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 10441ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16521 10442
16522cat >>confdefs.h <<\_ACEOF 10443$as_echo "#define C_ALLOCA 1" >>confdefs.h
16523#define C_ALLOCA 1
16524_ACEOF
16525 10444
16526 10445
16527{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 10446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16528$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 10447$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16529if test "${ac_cv_os_cray+set}" = set; then 10448if test "${ac_cv_os_cray+set}" = set; then :
16530 $as_echo_n "(cached) " >&6 10449 $as_echo_n "(cached) " >&6
16531else 10450else
16532 cat >conftest.$ac_ext <<_ACEOF 10451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16533/* confdefs.h. */
16534_ACEOF
16535cat confdefs.h >>conftest.$ac_ext
16536cat >>conftest.$ac_ext <<_ACEOF
16537/* end confdefs.h. */ 10452/* end confdefs.h. */
16538#if defined CRAY && ! defined CRAY2 10453#if defined CRAY && ! defined CRAY2
16539webecray 10454webecray
@@ -16543,7 +10458,7 @@ wenotbecray
16543 10458
16544_ACEOF 10459_ACEOF
16545if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10460if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16546 $EGREP "webecray" >/dev/null 2>&1; then 10461 $EGREP "webecray" >/dev/null 2>&1; then :
16547 ac_cv_os_cray=yes 10462 ac_cv_os_cray=yes
16548else 10463else
16549 ac_cv_os_cray=no 10464 ac_cv_os_cray=no
@@ -16551,100 +10466,14 @@ fi
16551rm -f conftest* 10466rm -f conftest*
16552 10467
16553fi 10468fi
16554{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 10469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16555$as_echo "$ac_cv_os_cray" >&6; } 10470$as_echo "$ac_cv_os_cray" >&6; }
16556if test $ac_cv_os_cray = yes; then 10471if test $ac_cv_os_cray = yes; then
16557 for ac_func in _getb67 GETB67 getb67; do 10472 for ac_func in _getb67 GETB67 getb67; do
16558 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10473 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16559{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 10474ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16560$as_echo_n "checking for $ac_func... " >&6; } 10475eval as_val=\$$as_ac_var
16561if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10476 if test "x$as_val" = x""yes; then :
16562 $as_echo_n "(cached) " >&6
16563else
16564 cat >conftest.$ac_ext <<_ACEOF
16565/* confdefs.h. */
16566_ACEOF
16567cat confdefs.h >>conftest.$ac_ext
16568cat >>conftest.$ac_ext <<_ACEOF
16569/* end confdefs.h. */
16570/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16572#define $ac_func innocuous_$ac_func
16573
16574/* System header to define __stub macros and hopefully few prototypes,
16575 which can conflict with char $ac_func (); below.
16576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16577 <limits.h> exists even on freestanding compilers. */
16578
16579#ifdef __STDC__
16580# include <limits.h>
16581#else
16582# include <assert.h>
16583#endif
16584
16585#undef $ac_func
16586
16587/* Override any GCC internal prototype to avoid an error.
16588 Use char because int might match the return type of a GCC
16589 builtin and then its argument prototype would still apply. */
16590#ifdef __cplusplus
16591extern "C"
16592#endif
16593char $ac_func ();
16594/* The GNU C library defines this for functions which it implements
16595 to always fail with ENOSYS. Some functions are actually named
16596 something starting with __ and the normal name is an alias. */
16597#if defined __stub_$ac_func || defined __stub___$ac_func
16598choke me
16599#endif
16600
16601int
16602main ()
16603{
16604return $ac_func ();
16605 ;
16606 return 0;
16607}
16608_ACEOF
16609rm -f conftest.$ac_objext conftest$ac_exeext
16610if { (ac_try="$ac_link"
16611case "(($ac_try" in
16612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613 *) ac_try_echo=$ac_try;;
16614esac
16615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16616$as_echo "$ac_try_echo") >&5
16617 (eval "$ac_link") 2>conftest.er1
16618 ac_status=$?
16619 grep -v '^ *+' conftest.er1 >conftest.err
16620 rm -f conftest.er1
16621 cat conftest.err >&5
16622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } && {
16624 test -z "$ac_c_werror_flag" ||
16625 test ! -s conftest.err
16626 } && test -s conftest$ac_exeext && {
16627 test "$cross_compiling" = yes ||
16628 $as_test_x conftest$ac_exeext
16629 }; then
16630 eval "$as_ac_var=yes"
16631else
16632 $as_echo "$as_me: failed program was:" >&5
16633sed 's/^/| /' conftest.$ac_ext >&5
16634
16635 eval "$as_ac_var=no"
16636fi
16637
16638rm -rf conftest.dSYM
16639rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16640 conftest$ac_exeext conftest.$ac_ext
16641fi
16642ac_res=`eval 'as_val=${'$as_ac_var'}
16643 $as_echo "$as_val"'`
16644 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16645$as_echo "$ac_res" >&6; }
16646if test `eval 'as_val=${'$as_ac_var'}
16647 $as_echo "$as_val"'` = yes; then
16648 10477
16649cat >>confdefs.h <<_ACEOF 10478cat >>confdefs.h <<_ACEOF
16650#define CRAY_STACKSEG_END $ac_func 10479#define CRAY_STACKSEG_END $ac_func
@@ -16656,19 +10485,15 @@ fi
16656 done 10485 done
16657fi 10486fi
16658 10487
16659{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 10488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16660$as_echo_n "checking stack direction for C alloca... " >&6; } 10489$as_echo_n "checking stack direction for C alloca... " >&6; }
16661if test "${ac_cv_c_stack_direction+set}" = set; then 10490if test "${ac_cv_c_stack_direction+set}" = set; then :
16662 $as_echo_n "(cached) " >&6 10491 $as_echo_n "(cached) " >&6
16663else 10492else
16664 if test "$cross_compiling" = yes; then 10493 if test "$cross_compiling" = yes; then :
16665 ac_cv_c_stack_direction=0 10494 ac_cv_c_stack_direction=0
16666else 10495else
16667 cat >conftest.$ac_ext <<_ACEOF 10496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16668/* confdefs.h. */
16669_ACEOF
16670cat confdefs.h >>conftest.$ac_ext
16671cat >>conftest.$ac_ext <<_ACEOF
16672/* end confdefs.h. */ 10497/* end confdefs.h. */
16673$ac_includes_default 10498$ac_includes_default
16674int 10499int
@@ -16691,46 +10516,18 @@ main ()
16691 return find_stack_direction () < 0; 10516 return find_stack_direction () < 0;
16692} 10517}
16693_ACEOF 10518_ACEOF
16694rm -f conftest$ac_exeext 10519if ac_fn_c_try_run "$LINENO"; then :
16695if { (ac_try="$ac_link"
16696case "(($ac_try" in
16697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698 *) ac_try_echo=$ac_try;;
16699esac
16700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16701$as_echo "$ac_try_echo") >&5
16702 (eval "$ac_link") 2>&5
16703 ac_status=$?
16704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16706 { (case "(($ac_try" in
16707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16708 *) ac_try_echo=$ac_try;;
16709esac
16710eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16711$as_echo "$ac_try_echo") >&5
16712 (eval "$ac_try") 2>&5
16713 ac_status=$?
16714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; }; then
16716 ac_cv_c_stack_direction=1 10520 ac_cv_c_stack_direction=1
16717else 10521else
16718 $as_echo "$as_me: program exited with status $ac_status" >&5 10522 ac_cv_c_stack_direction=-1
16719$as_echo "$as_me: failed program was:" >&5
16720sed 's/^/| /' conftest.$ac_ext >&5
16721
16722( exit $ac_status )
16723ac_cv_c_stack_direction=-1
16724fi 10523fi
16725rm -rf conftest.dSYM 10524rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16726rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10525 conftest.$ac_objext conftest.beam conftest.$ac_ext
16727fi 10526fi
16728 10527
16729
16730fi 10528fi
16731{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 10529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16732$as_echo "$ac_cv_c_stack_direction" >&6; } 10530$as_echo "$ac_cv_c_stack_direction" >&6; }
16733
16734cat >>confdefs.h <<_ACEOF 10531cat >>confdefs.h <<_ACEOF
16735#define STACK_DIRECTION $ac_cv_c_stack_direction 10532#define STACK_DIRECTION $ac_cv_c_stack_direction
16736_ACEOF 10533_ACEOF
@@ -16740,26 +10537,19 @@ fi
16740 10537
16741 10538
16742if test x"$ac_cv_func_alloca_works" != xyes; then 10539if test x"$ac_cv_func_alloca_works" != xyes; then
16743 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5 10540 as_fn_error "a system implementation of alloca is required " "$LINENO" 5
16744$as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16745 { (exit 1); exit 1; }; }
16746fi 10541fi
16747 10542
16748# fmod, logb, and frexp are found in -lm on most systems. 10543# fmod, logb, and frexp are found in -lm on most systems.
16749# On HPUX 9.01, -lm does not contain logb, so check for sqrt. 10544# On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16750 10545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
16751{ $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16752$as_echo_n "checking for sqrt in -lm... " >&6; } 10546$as_echo_n "checking for sqrt in -lm... " >&6; }
16753if test "${ac_cv_lib_m_sqrt+set}" = set; then 10547if test "${ac_cv_lib_m_sqrt+set}" = set; then :
16754 $as_echo_n "(cached) " >&6 10548 $as_echo_n "(cached) " >&6
16755else 10549else
16756 ac_check_lib_save_LIBS=$LIBS 10550 ac_check_lib_save_LIBS=$LIBS
16757LIBS="-lm $LIBS" 10551LIBS="-lm $LIBS"
16758cat >conftest.$ac_ext <<_ACEOF 10552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16759/* confdefs.h. */
16760_ACEOF
16761cat confdefs.h >>conftest.$ac_ext
16762cat >>conftest.$ac_ext <<_ACEOF
16763/* end confdefs.h. */ 10553/* end confdefs.h. */
16764 10554
16765/* Override any GCC internal prototype to avoid an error. 10555/* Override any GCC internal prototype to avoid an error.
@@ -16777,43 +10567,18 @@ return sqrt ();
16777 return 0; 10567 return 0;
16778} 10568}
16779_ACEOF 10569_ACEOF
16780rm -f conftest.$ac_objext conftest$ac_exeext 10570if ac_fn_c_try_link "$LINENO"; then :
16781if { (ac_try="$ac_link"
16782case "(($ac_try" in
16783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16784 *) ac_try_echo=$ac_try;;
16785esac
16786eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16787$as_echo "$ac_try_echo") >&5
16788 (eval "$ac_link") 2>conftest.er1
16789 ac_status=$?
16790 grep -v '^ *+' conftest.er1 >conftest.err
16791 rm -f conftest.er1
16792 cat conftest.err >&5
16793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); } && {
16795 test -z "$ac_c_werror_flag" ||
16796 test ! -s conftest.err
16797 } && test -s conftest$ac_exeext && {
16798 test "$cross_compiling" = yes ||
16799 $as_test_x conftest$ac_exeext
16800 }; then
16801 ac_cv_lib_m_sqrt=yes 10571 ac_cv_lib_m_sqrt=yes
16802else 10572else
16803 $as_echo "$as_me: failed program was:" >&5 10573 ac_cv_lib_m_sqrt=no
16804sed 's/^/| /' conftest.$ac_ext >&5
16805
16806 ac_cv_lib_m_sqrt=no
16807fi 10574fi
16808 10575rm -f core conftest.err conftest.$ac_objext \
16809rm -rf conftest.dSYM 10576 conftest$ac_exeext conftest.$ac_ext
16810rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16811 conftest$ac_exeext conftest.$ac_ext
16812LIBS=$ac_check_lib_save_LIBS 10577LIBS=$ac_check_lib_save_LIBS
16813fi 10578fi
16814{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 10579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
16815$as_echo "$ac_cv_lib_m_sqrt" >&6; } 10580$as_echo "$ac_cv_lib_m_sqrt" >&6; }
16816if test $ac_cv_lib_m_sqrt = yes; then 10581if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
16817 cat >>confdefs.h <<_ACEOF 10582 cat >>confdefs.h <<_ACEOF
16818#define HAVE_LIBM 1 10583#define HAVE_LIBM 1
16819_ACEOF 10584_ACEOF
@@ -16825,18 +10590,14 @@ fi
16825 10590
16826# Check for mail-locking functions in a "mail" library. Probably this should 10591# Check for mail-locking functions in a "mail" library. Probably this should
16827# have the same check as for liblockfile below. 10592# have the same check as for liblockfile below.
16828{ $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5 10593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
16829$as_echo_n "checking for maillock in -lmail... " >&6; } 10594$as_echo_n "checking for maillock in -lmail... " >&6; }
16830if test "${ac_cv_lib_mail_maillock+set}" = set; then 10595if test "${ac_cv_lib_mail_maillock+set}" = set; then :
16831 $as_echo_n "(cached) " >&6 10596 $as_echo_n "(cached) " >&6
16832else 10597else
16833 ac_check_lib_save_LIBS=$LIBS 10598 ac_check_lib_save_LIBS=$LIBS
16834LIBS="-lmail $LIBS" 10599LIBS="-lmail $LIBS"
16835cat >conftest.$ac_ext <<_ACEOF 10600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16836/* confdefs.h. */
16837_ACEOF
16838cat confdefs.h >>conftest.$ac_ext
16839cat >>conftest.$ac_ext <<_ACEOF
16840/* end confdefs.h. */ 10601/* end confdefs.h. */
16841 10602
16842/* Override any GCC internal prototype to avoid an error. 10603/* Override any GCC internal prototype to avoid an error.
@@ -16854,43 +10615,18 @@ return maillock ();
16854 return 0; 10615 return 0;
16855} 10616}
16856_ACEOF 10617_ACEOF
16857rm -f conftest.$ac_objext conftest$ac_exeext 10618if ac_fn_c_try_link "$LINENO"; then :
16858if { (ac_try="$ac_link"
16859case "(($ac_try" in
16860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16861 *) ac_try_echo=$ac_try;;
16862esac
16863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16864$as_echo "$ac_try_echo") >&5
16865 (eval "$ac_link") 2>conftest.er1
16866 ac_status=$?
16867 grep -v '^ *+' conftest.er1 >conftest.err
16868 rm -f conftest.er1
16869 cat conftest.err >&5
16870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); } && {
16872 test -z "$ac_c_werror_flag" ||
16873 test ! -s conftest.err
16874 } && test -s conftest$ac_exeext && {
16875 test "$cross_compiling" = yes ||
16876 $as_test_x conftest$ac_exeext
16877 }; then
16878 ac_cv_lib_mail_maillock=yes 10619 ac_cv_lib_mail_maillock=yes
16879else 10620else
16880 $as_echo "$as_me: failed program was:" >&5 10621 ac_cv_lib_mail_maillock=no
16881sed 's/^/| /' conftest.$ac_ext >&5
16882
16883 ac_cv_lib_mail_maillock=no
16884fi 10622fi
16885 10623rm -f core conftest.err conftest.$ac_objext \
16886rm -rf conftest.dSYM 10624 conftest$ac_exeext conftest.$ac_ext
16887rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16888 conftest$ac_exeext conftest.$ac_ext
16889LIBS=$ac_check_lib_save_LIBS 10625LIBS=$ac_check_lib_save_LIBS
16890fi 10626fi
16891{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5 10627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
16892$as_echo "$ac_cv_lib_mail_maillock" >&6; } 10628$as_echo "$ac_cv_lib_mail_maillock" >&6; }
16893if test $ac_cv_lib_mail_maillock = yes; then 10629if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
16894 have_mail=yes 10630 have_mail=yes
16895else 10631else
16896 have_mail=no 10632 have_mail=no
@@ -16900,25 +10636,19 @@ if test $have_mail = yes; then
16900 LIBS_MAIL=-lmail 10636 LIBS_MAIL=-lmail
16901 LIBS="$LIBS_MAIL $LIBS" 10637 LIBS="$LIBS_MAIL $LIBS"
16902 10638
16903cat >>confdefs.h <<\_ACEOF 10639$as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
16904#define HAVE_LIBMAIL 1
16905_ACEOF
16906 10640
16907else 10641else
16908 LIBS_MAIL= 10642 LIBS_MAIL=
16909fi 10643fi
16910{ $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5 10644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
16911$as_echo_n "checking for maillock in -llockfile... " >&6; } 10645$as_echo_n "checking for maillock in -llockfile... " >&6; }
16912if test "${ac_cv_lib_lockfile_maillock+set}" = set; then 10646if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
16913 $as_echo_n "(cached) " >&6 10647 $as_echo_n "(cached) " >&6
16914else 10648else
16915 ac_check_lib_save_LIBS=$LIBS 10649 ac_check_lib_save_LIBS=$LIBS
16916LIBS="-llockfile $LIBS" 10650LIBS="-llockfile $LIBS"
16917cat >conftest.$ac_ext <<_ACEOF 10651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16918/* confdefs.h. */
16919_ACEOF
16920cat confdefs.h >>conftest.$ac_ext
16921cat >>conftest.$ac_ext <<_ACEOF
16922/* end confdefs.h. */ 10652/* end confdefs.h. */
16923 10653
16924/* Override any GCC internal prototype to avoid an error. 10654/* Override any GCC internal prototype to avoid an error.
@@ -16936,43 +10666,18 @@ return maillock ();
16936 return 0; 10666 return 0;
16937} 10667}
16938_ACEOF 10668_ACEOF
16939rm -f conftest.$ac_objext conftest$ac_exeext 10669if ac_fn_c_try_link "$LINENO"; then :
16940if { (ac_try="$ac_link"
16941case "(($ac_try" in
16942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16943 *) ac_try_echo=$ac_try;;
16944esac
16945eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16946$as_echo "$ac_try_echo") >&5
16947 (eval "$ac_link") 2>conftest.er1
16948 ac_status=$?
16949 grep -v '^ *+' conftest.er1 >conftest.err
16950 rm -f conftest.er1
16951 cat conftest.err >&5
16952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); } && {
16954 test -z "$ac_c_werror_flag" ||
16955 test ! -s conftest.err
16956 } && test -s conftest$ac_exeext && {
16957 test "$cross_compiling" = yes ||
16958 $as_test_x conftest$ac_exeext
16959 }; then
16960 ac_cv_lib_lockfile_maillock=yes 10670 ac_cv_lib_lockfile_maillock=yes
16961else 10671else
16962 $as_echo "$as_me: failed program was:" >&5 10672 ac_cv_lib_lockfile_maillock=no
16963sed 's/^/| /' conftest.$ac_ext >&5
16964
16965 ac_cv_lib_lockfile_maillock=no
16966fi 10673fi
16967 10674rm -f core conftest.err conftest.$ac_objext \
16968rm -rf conftest.dSYM 10675 conftest$ac_exeext conftest.$ac_ext
16969rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16970 conftest$ac_exeext conftest.$ac_ext
16971LIBS=$ac_check_lib_save_LIBS 10676LIBS=$ac_check_lib_save_LIBS
16972fi 10677fi
16973{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5 10678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
16974$as_echo "$ac_cv_lib_lockfile_maillock" >&6; } 10679$as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
16975if test $ac_cv_lib_lockfile_maillock = yes; then 10680if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
16976 have_lockfile=yes 10681 have_lockfile=yes
16977else 10682else
16978 have_lockfile=no 10683 have_lockfile=no
@@ -16982,9 +10687,7 @@ if test $have_lockfile = yes; then
16982 LIBS_MAIL=-llockfile 10687 LIBS_MAIL=-llockfile
16983 LIBS="$LIBS_MAIL $LIBS" 10688 LIBS="$LIBS_MAIL $LIBS"
16984 10689
16985cat >>confdefs.h <<\_ACEOF 10690$as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
16986#define HAVE_LIBLOCKFILE 1
16987_ACEOF
16988 10691
16989else 10692else
16990# If we have the shared liblockfile, assume we must use it for mail 10693# If we have the shared liblockfile, assume we must use it for mail
@@ -16992,9 +10695,9 @@ else
16992# (no liblockfile.a installed), ensure that we don't need to. 10695# (no liblockfile.a installed), ensure that we don't need to.
16993 # Extract the first word of "liblockfile.so", so it can be a program name with args. 10696 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16994set dummy liblockfile.so; ac_word=$2 10697set dummy liblockfile.so; ac_word=$2
16995{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 10698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16996$as_echo_n "checking for $ac_word... " >&6; } 10699$as_echo_n "checking for $ac_word... " >&6; }
16997if test "${ac_cv_prog_liblockfile+set}" = set; then 10700if test "${ac_cv_prog_liblockfile+set}" = set; then :
16998 $as_echo_n "(cached) " >&6 10701 $as_echo_n "(cached) " >&6
16999else 10702else
17000 if test -n "$liblockfile"; then 10703 if test -n "$liblockfile"; then
@@ -17006,14 +10709,14 @@ for as_dir in $as_dummy
17006do 10709do
17007 IFS=$as_save_IFS 10710 IFS=$as_save_IFS
17008 test -z "$as_dir" && as_dir=. 10711 test -z "$as_dir" && as_dir=.
17009 for ac_exec_ext in '' $ac_executable_extensions; do 10712 for ac_exec_ext in '' $ac_executable_extensions; do
17010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17011 ac_cv_prog_liblockfile="yes" 10714 ac_cv_prog_liblockfile="yes"
17012 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17013 break 2 10716 break 2
17014 fi 10717 fi
17015done 10718done
17016done 10719 done
17017IFS=$as_save_IFS 10720IFS=$as_save_IFS
17018 10721
17019 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" 10722 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
@@ -17021,263 +10724,37 @@ fi
17021fi 10724fi
17022liblockfile=$ac_cv_prog_liblockfile 10725liblockfile=$ac_cv_prog_liblockfile
17023if test -n "$liblockfile"; then 10726if test -n "$liblockfile"; then
17024 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5 10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
17025$as_echo "$liblockfile" >&6; } 10728$as_echo "$liblockfile" >&6; }
17026else 10729else
17027 { $as_echo "$as_me:$LINENO: result: no" >&5 10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17028$as_echo "no" >&6; } 10731$as_echo "no" >&6; }
17029fi 10732fi
17030 10733
17031 10734
17032 if test $ac_cv_prog_liblockfile = yes; then 10735 if test $ac_cv_prog_liblockfile = yes; then
17033 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it. 10736 as_fn_error "Shared liblockfile found but can't link against it.
17034This probably means that movemail could lose mail.
17035There may be a \`development' package to install containing liblockfile." >&5
17036$as_echo "$as_me: error: Shared liblockfile found but can't link against it.
17037This probably means that movemail could lose mail. 10737This probably means that movemail could lose mail.
17038There may be a \`development' package to install containing liblockfile." >&2;} 10738There may be a \`development' package to install containing liblockfile." "$LINENO" 5
17039 { (exit 1); exit 1; }; }
17040 fi 10739 fi
17041fi 10740fi
17042
17043for ac_func in touchlock 10741for ac_func in touchlock
17044do 10742do :
17045as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10743 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
17046{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 10744if test "x$ac_cv_func_touchlock" = x""yes; then :
17047$as_echo_n "checking for $ac_func... " >&6; }
17048if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17049 $as_echo_n "(cached) " >&6
17050else
17051 cat >conftest.$ac_ext <<_ACEOF
17052/* confdefs.h. */
17053_ACEOF
17054cat confdefs.h >>conftest.$ac_ext
17055cat >>conftest.$ac_ext <<_ACEOF
17056/* end confdefs.h. */
17057/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17059#define $ac_func innocuous_$ac_func
17060
17061/* System header to define __stub macros and hopefully few prototypes,
17062 which can conflict with char $ac_func (); below.
17063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17064 <limits.h> exists even on freestanding compilers. */
17065
17066#ifdef __STDC__
17067# include <limits.h>
17068#else
17069# include <assert.h>
17070#endif
17071
17072#undef $ac_func
17073
17074/* Override any GCC internal prototype to avoid an error.
17075 Use char because int might match the return type of a GCC
17076 builtin and then its argument prototype would still apply. */
17077#ifdef __cplusplus
17078extern "C"
17079#endif
17080char $ac_func ();
17081/* The GNU C library defines this for functions which it implements
17082 to always fail with ENOSYS. Some functions are actually named
17083 something starting with __ and the normal name is an alias. */
17084#if defined __stub_$ac_func || defined __stub___$ac_func
17085choke me
17086#endif
17087
17088int
17089main ()
17090{
17091return $ac_func ();
17092 ;
17093 return 0;
17094}
17095_ACEOF
17096rm -f conftest.$ac_objext conftest$ac_exeext
17097if { (ac_try="$ac_link"
17098case "(($ac_try" in
17099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100 *) ac_try_echo=$ac_try;;
17101esac
17102eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17103$as_echo "$ac_try_echo") >&5
17104 (eval "$ac_link") 2>conftest.er1
17105 ac_status=$?
17106 grep -v '^ *+' conftest.er1 >conftest.err
17107 rm -f conftest.er1
17108 cat conftest.err >&5
17109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); } && {
17111 test -z "$ac_c_werror_flag" ||
17112 test ! -s conftest.err
17113 } && test -s conftest$ac_exeext && {
17114 test "$cross_compiling" = yes ||
17115 $as_test_x conftest$ac_exeext
17116 }; then
17117 eval "$as_ac_var=yes"
17118else
17119 $as_echo "$as_me: failed program was:" >&5
17120sed 's/^/| /' conftest.$ac_ext >&5
17121
17122 eval "$as_ac_var=no"
17123fi
17124
17125rm -rf conftest.dSYM
17126rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17127 conftest$ac_exeext conftest.$ac_ext
17128fi
17129ac_res=`eval 'as_val=${'$as_ac_var'}
17130 $as_echo "$as_val"'`
17131 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17132$as_echo "$ac_res" >&6; }
17133if test `eval 'as_val=${'$as_ac_var'}
17134 $as_echo "$as_val"'` = yes; then
17135 cat >>confdefs.h <<_ACEOF 10745 cat >>confdefs.h <<_ACEOF
17136#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10746#define HAVE_TOUCHLOCK 1
17137_ACEOF 10747_ACEOF
17138 10748
17139fi 10749fi
17140done 10750done
17141 10751
17142
17143for ac_header in maillock.h 10752for ac_header in maillock.h
17144do 10753do :
17145as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10754 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
17146if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10755if test "x$ac_cv_header_maillock_h" = x""yes; then :
17147 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17148$as_echo_n "checking for $ac_header... " >&6; }
17149if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17150 $as_echo_n "(cached) " >&6
17151fi
17152ac_res=`eval 'as_val=${'$as_ac_Header'}
17153 $as_echo "$as_val"'`
17154 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17155$as_echo "$ac_res" >&6; }
17156else
17157 # Is the header compilable?
17158{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17159$as_echo_n "checking $ac_header usability... " >&6; }
17160cat >conftest.$ac_ext <<_ACEOF
17161/* confdefs.h. */
17162_ACEOF
17163cat confdefs.h >>conftest.$ac_ext
17164cat >>conftest.$ac_ext <<_ACEOF
17165/* end confdefs.h. */
17166$ac_includes_default
17167#include <$ac_header>
17168_ACEOF
17169rm -f conftest.$ac_objext
17170if { (ac_try="$ac_compile"
17171case "(($ac_try" in
17172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17173 *) ac_try_echo=$ac_try;;
17174esac
17175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17176$as_echo "$ac_try_echo") >&5
17177 (eval "$ac_compile") 2>conftest.er1
17178 ac_status=$?
17179 grep -v '^ *+' conftest.er1 >conftest.err
17180 rm -f conftest.er1
17181 cat conftest.err >&5
17182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); } && {
17184 test -z "$ac_c_werror_flag" ||
17185 test ! -s conftest.err
17186 } && test -s conftest.$ac_objext; then
17187 ac_header_compiler=yes
17188else
17189 $as_echo "$as_me: failed program was:" >&5
17190sed 's/^/| /' conftest.$ac_ext >&5
17191
17192 ac_header_compiler=no
17193fi
17194
17195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17196{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17197$as_echo "$ac_header_compiler" >&6; }
17198
17199# Is the header present?
17200{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17201$as_echo_n "checking $ac_header presence... " >&6; }
17202cat >conftest.$ac_ext <<_ACEOF
17203/* confdefs.h. */
17204_ACEOF
17205cat confdefs.h >>conftest.$ac_ext
17206cat >>conftest.$ac_ext <<_ACEOF
17207/* end confdefs.h. */
17208#include <$ac_header>
17209_ACEOF
17210if { (ac_try="$ac_cpp conftest.$ac_ext"
17211case "(($ac_try" in
17212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213 *) ac_try_echo=$ac_try;;
17214esac
17215eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17216$as_echo "$ac_try_echo") >&5
17217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17218 ac_status=$?
17219 grep -v '^ *+' conftest.er1 >conftest.err
17220 rm -f conftest.er1
17221 cat conftest.err >&5
17222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); } >/dev/null && {
17224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17225 test ! -s conftest.err
17226 }; then
17227 ac_header_preproc=yes
17228else
17229 $as_echo "$as_me: failed program was:" >&5
17230sed 's/^/| /' conftest.$ac_ext >&5
17231
17232 ac_header_preproc=no
17233fi
17234
17235rm -f conftest.err conftest.$ac_ext
17236{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17237$as_echo "$ac_header_preproc" >&6; }
17238
17239# So? What about this header?
17240case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17241 yes:no: )
17242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17243$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17245$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17246 ac_header_preproc=yes
17247 ;;
17248 no:yes:* )
17249 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17250$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17252$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17254$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17256$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17258$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17260$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17261
17262 ;;
17263esac
17264{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17265$as_echo_n "checking for $ac_header... " >&6; }
17266if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17267 $as_echo_n "(cached) " >&6
17268else
17269 eval "$as_ac_Header=\$ac_header_preproc"
17270fi
17271ac_res=`eval 'as_val=${'$as_ac_Header'}
17272 $as_echo "$as_val"'`
17273 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17274$as_echo "$ac_res" >&6; }
17275
17276fi
17277if test `eval 'as_val=${'$as_ac_Header'}
17278 $as_echo "$as_val"'` = yes; then
17279 cat >>confdefs.h <<_ACEOF 10756 cat >>confdefs.h <<_ACEOF
17280#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10757#define HAVE_MAILLOCK_H 1
17281_ACEOF 10758_ACEOF
17282 10759
17283fi 10760fi
@@ -17286,77 +10763,6 @@ done
17286 10763
17287 10764
17288 10765
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
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
17360for ac_func in gethostname getdomainname dup2 \ 10766for ac_func in gethostname getdomainname dup2 \
17361rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \ 10767rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17362random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \ 10768random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
@@ -17367,97 +10773,11 @@ sendto recvfrom getsockopt setsockopt getsockname getpeername \
17367gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \ 10773gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17368memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \ 10774memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17369cfmakeraw cfsetspeed 10775cfmakeraw cfsetspeed
17370do 10776do :
17371as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10777 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17372{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 10778ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17373$as_echo_n "checking for $ac_func... " >&6; } 10779eval as_val=\$$as_ac_var
17374if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10780 if test "x$as_val" = x""yes; then :
17375 $as_echo_n "(cached) " >&6
17376else
17377 cat >conftest.$ac_ext <<_ACEOF
17378/* confdefs.h. */
17379_ACEOF
17380cat confdefs.h >>conftest.$ac_ext
17381cat >>conftest.$ac_ext <<_ACEOF
17382/* end confdefs.h. */
17383/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17385#define $ac_func innocuous_$ac_func
17386
17387/* System header to define __stub macros and hopefully few prototypes,
17388 which can conflict with char $ac_func (); below.
17389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17390 <limits.h> exists even on freestanding compilers. */
17391
17392#ifdef __STDC__
17393# include <limits.h>
17394#else
17395# include <assert.h>
17396#endif
17397
17398#undef $ac_func
17399
17400/* Override any GCC internal prototype to avoid an error.
17401 Use char because int might match the return type of a GCC
17402 builtin and then its argument prototype would still apply. */
17403#ifdef __cplusplus
17404extern "C"
17405#endif
17406char $ac_func ();
17407/* The GNU C library defines this for functions which it implements
17408 to always fail with ENOSYS. Some functions are actually named
17409 something starting with __ and the normal name is an alias. */
17410#if defined __stub_$ac_func || defined __stub___$ac_func
17411choke me
17412#endif
17413
17414int
17415main ()
17416{
17417return $ac_func ();
17418 ;
17419 return 0;
17420}
17421_ACEOF
17422rm -f conftest.$ac_objext conftest$ac_exeext
17423if { (ac_try="$ac_link"
17424case "(($ac_try" in
17425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17426 *) ac_try_echo=$ac_try;;
17427esac
17428eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17429$as_echo "$ac_try_echo") >&5
17430 (eval "$ac_link") 2>conftest.er1
17431 ac_status=$?
17432 grep -v '^ *+' conftest.er1 >conftest.err
17433 rm -f conftest.er1
17434 cat conftest.err >&5
17435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); } && {
17437 test -z "$ac_c_werror_flag" ||
17438 test ! -s conftest.err
17439 } && test -s conftest$ac_exeext && {
17440 test "$cross_compiling" = yes ||
17441 $as_test_x conftest$ac_exeext
17442 }; then
17443 eval "$as_ac_var=yes"
17444else
17445 $as_echo "$as_me: failed program was:" >&5
17446sed 's/^/| /' conftest.$ac_ext >&5
17447
17448 eval "$as_ac_var=no"
17449fi
17450
17451rm -rf conftest.dSYM
17452rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17453 conftest$ac_exeext conftest.$ac_ext
17454fi
17455ac_res=`eval 'as_val=${'$as_ac_var'}
17456 $as_echo "$as_val"'`
17457 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17458$as_echo "$ac_res" >&6; }
17459if test `eval 'as_val=${'$as_ac_var'}
17460 $as_echo "$as_val"'` = yes; then
17461 cat >>confdefs.h <<_ACEOF 10781 cat >>confdefs.h <<_ACEOF
17462#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10782#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17463_ACEOF 10783_ACEOF
@@ -17466,294 +10786,12 @@ fi
17466done 10786done
17467 10787
17468 10788
17469
17470for ac_header in sys/un.h 10789for ac_header in sys/un.h
17471do 10790do :
17472as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10791 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
17473if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10792if test "x$ac_cv_header_sys_un_h" = x""yes; then :
17474 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17475$as_echo_n "checking for $ac_header... " >&6; }
17476if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17477 $as_echo_n "(cached) " >&6
17478fi
17479ac_res=`eval 'as_val=${'$as_ac_Header'}
17480 $as_echo "$as_val"'`
17481 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17482$as_echo "$ac_res" >&6; }
17483else
17484 # Is the header compilable?
17485{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17486$as_echo_n "checking $ac_header usability... " >&6; }
17487cat >conftest.$ac_ext <<_ACEOF
17488/* confdefs.h. */
17489_ACEOF
17490cat confdefs.h >>conftest.$ac_ext
17491cat >>conftest.$ac_ext <<_ACEOF
17492/* end confdefs.h. */
17493$ac_includes_default
17494#include <$ac_header>
17495_ACEOF
17496rm -f conftest.$ac_objext
17497if { (ac_try="$ac_compile"
17498case "(($ac_try" in
17499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500 *) ac_try_echo=$ac_try;;
17501esac
17502eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17503$as_echo "$ac_try_echo") >&5
17504 (eval "$ac_compile") 2>conftest.er1
17505 ac_status=$?
17506 grep -v '^ *+' conftest.er1 >conftest.err
17507 rm -f conftest.er1
17508 cat conftest.err >&5
17509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); } && {
17511 test -z "$ac_c_werror_flag" ||
17512 test ! -s conftest.err
17513 } && test -s conftest.$ac_objext; then
17514 ac_header_compiler=yes
17515else
17516 $as_echo "$as_me: failed program was:" >&5
17517sed 's/^/| /' conftest.$ac_ext >&5
17518
17519 ac_header_compiler=no
17520fi
17521
17522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17523{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17524$as_echo "$ac_header_compiler" >&6; }
17525
17526# Is the header present?
17527{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17528$as_echo_n "checking $ac_header presence... " >&6; }
17529cat >conftest.$ac_ext <<_ACEOF
17530/* confdefs.h. */
17531_ACEOF
17532cat confdefs.h >>conftest.$ac_ext
17533cat >>conftest.$ac_ext <<_ACEOF
17534/* end confdefs.h. */
17535#include <$ac_header>
17536_ACEOF
17537if { (ac_try="$ac_cpp conftest.$ac_ext"
17538case "(($ac_try" in
17539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17540 *) ac_try_echo=$ac_try;;
17541esac
17542eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17543$as_echo "$ac_try_echo") >&5
17544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17545 ac_status=$?
17546 grep -v '^ *+' conftest.er1 >conftest.err
17547 rm -f conftest.er1
17548 cat conftest.err >&5
17549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); } >/dev/null && {
17551 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17552 test ! -s conftest.err
17553 }; then
17554 ac_header_preproc=yes
17555else
17556 $as_echo "$as_me: failed program was:" >&5
17557sed 's/^/| /' conftest.$ac_ext >&5
17558
17559 ac_header_preproc=no
17560fi
17561
17562rm -f conftest.err conftest.$ac_ext
17563{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17564$as_echo "$ac_header_preproc" >&6; }
17565
17566# So? What about this header?
17567case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17568 yes:no: )
17569 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17570$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17571 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17572$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17573 ac_header_preproc=yes
17574 ;;
17575 no:yes:* )
17576 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17577$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17578 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17579$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17580 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17581$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17582 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17583$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17584 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17585$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17586 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17587$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17588
17589 ;;
17590esac
17591{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17592$as_echo_n "checking for $ac_header... " >&6; }
17593if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17594 $as_echo_n "(cached) " >&6
17595else
17596 eval "$as_ac_Header=\$ac_header_preproc"
17597fi
17598ac_res=`eval 'as_val=${'$as_ac_Header'}
17599 $as_echo "$as_val"'`
17600 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17601$as_echo "$ac_res" >&6; }
17602
17603fi
17604if test `eval 'as_val=${'$as_ac_Header'}
17605 $as_echo "$as_val"'` = yes; then
17606 cat >>confdefs.h <<_ACEOF
17607#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17608_ACEOF
17609
17610fi
17611
17612done
17613
17614
17615
17616
17617
17618
17619for ac_header in $ac_header_list
17620do
17621as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17622if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17623 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17624$as_echo_n "checking for $ac_header... " >&6; }
17625if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17626 $as_echo_n "(cached) " >&6
17627fi
17628ac_res=`eval 'as_val=${'$as_ac_Header'}
17629 $as_echo "$as_val"'`
17630 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17631$as_echo "$ac_res" >&6; }
17632else
17633 # Is the header compilable?
17634{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17635$as_echo_n "checking $ac_header usability... " >&6; }
17636cat >conftest.$ac_ext <<_ACEOF
17637/* confdefs.h. */
17638_ACEOF
17639cat confdefs.h >>conftest.$ac_ext
17640cat >>conftest.$ac_ext <<_ACEOF
17641/* end confdefs.h. */
17642$ac_includes_default
17643#include <$ac_header>
17644_ACEOF
17645rm -f conftest.$ac_objext
17646if { (ac_try="$ac_compile"
17647case "(($ac_try" in
17648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17649 *) ac_try_echo=$ac_try;;
17650esac
17651eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17652$as_echo "$ac_try_echo") >&5
17653 (eval "$ac_compile") 2>conftest.er1
17654 ac_status=$?
17655 grep -v '^ *+' conftest.er1 >conftest.err
17656 rm -f conftest.er1
17657 cat conftest.err >&5
17658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); } && {
17660 test -z "$ac_c_werror_flag" ||
17661 test ! -s conftest.err
17662 } && test -s conftest.$ac_objext; then
17663 ac_header_compiler=yes
17664else
17665 $as_echo "$as_me: failed program was:" >&5
17666sed 's/^/| /' conftest.$ac_ext >&5
17667
17668 ac_header_compiler=no
17669fi
17670
17671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17672{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17673$as_echo "$ac_header_compiler" >&6; }
17674
17675# Is the header present?
17676{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17677$as_echo_n "checking $ac_header presence... " >&6; }
17678cat >conftest.$ac_ext <<_ACEOF
17679/* confdefs.h. */
17680_ACEOF
17681cat confdefs.h >>conftest.$ac_ext
17682cat >>conftest.$ac_ext <<_ACEOF
17683/* end confdefs.h. */
17684#include <$ac_header>
17685_ACEOF
17686if { (ac_try="$ac_cpp conftest.$ac_ext"
17687case "(($ac_try" in
17688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689 *) ac_try_echo=$ac_try;;
17690esac
17691eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17692$as_echo "$ac_try_echo") >&5
17693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17694 ac_status=$?
17695 grep -v '^ *+' conftest.er1 >conftest.err
17696 rm -f conftest.er1
17697 cat conftest.err >&5
17698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); } >/dev/null && {
17700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17701 test ! -s conftest.err
17702 }; then
17703 ac_header_preproc=yes
17704else
17705 $as_echo "$as_me: failed program was:" >&5
17706sed 's/^/| /' conftest.$ac_ext >&5
17707
17708 ac_header_preproc=no
17709fi
17710
17711rm -f conftest.err conftest.$ac_ext
17712{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17713$as_echo "$ac_header_preproc" >&6; }
17714
17715# So? What about this header?
17716case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17717 yes:no: )
17718 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17719$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17720 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17721$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17722 ac_header_preproc=yes
17723 ;;
17724 no:yes:* )
17725 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17726$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17727 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17728$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17729 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17730$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17731 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17732$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17734$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17736$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17737
17738 ;;
17739esac
17740{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17741$as_echo_n "checking for $ac_header... " >&6; }
17742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17743 $as_echo_n "(cached) " >&6
17744else
17745 eval "$as_ac_Header=\$ac_header_preproc"
17746fi
17747ac_res=`eval 'as_val=${'$as_ac_Header'}
17748 $as_echo "$as_val"'`
17749 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17750$as_echo "$ac_res" >&6; }
17751
17752fi
17753if test `eval 'as_val=${'$as_ac_Header'}
17754 $as_echo "$as_val"'` = yes; then
17755 cat >>confdefs.h <<_ACEOF 10793 cat >>confdefs.h <<_ACEOF
17756#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10794#define HAVE_SYS_UN_H 1
17757_ACEOF 10795_ACEOF
17758 10796
17759fi 10797fi
@@ -17766,100 +10804,12 @@ done
17766 10804
17767 10805
17768 10806
17769 10807 for ac_func in $ac_func_list
17770 10808do :
17771for ac_func in $ac_func_list 10809 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17772do 10810ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17773as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10811eval as_val=\$$as_ac_var
17774{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 10812 if test "x$as_val" = x""yes; then :
17775$as_echo_n "checking for $ac_func... " >&6; }
17776if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17777 $as_echo_n "(cached) " >&6
17778else
17779 cat >conftest.$ac_ext <<_ACEOF
17780/* confdefs.h. */
17781_ACEOF
17782cat confdefs.h >>conftest.$ac_ext
17783cat >>conftest.$ac_ext <<_ACEOF
17784/* end confdefs.h. */
17785/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17787#define $ac_func innocuous_$ac_func
17788
17789/* System header to define __stub macros and hopefully few prototypes,
17790 which can conflict with char $ac_func (); below.
17791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17792 <limits.h> exists even on freestanding compilers. */
17793
17794#ifdef __STDC__
17795# include <limits.h>
17796#else
17797# include <assert.h>
17798#endif
17799
17800#undef $ac_func
17801
17802/* Override any GCC internal prototype to avoid an error.
17803 Use char because int might match the return type of a GCC
17804 builtin and then its argument prototype would still apply. */
17805#ifdef __cplusplus
17806extern "C"
17807#endif
17808char $ac_func ();
17809/* The GNU C library defines this for functions which it implements
17810 to always fail with ENOSYS. Some functions are actually named
17811 something starting with __ and the normal name is an alias. */
17812#if defined __stub_$ac_func || defined __stub___$ac_func
17813choke me
17814#endif
17815
17816int
17817main ()
17818{
17819return $ac_func ();
17820 ;
17821 return 0;
17822}
17823_ACEOF
17824rm -f conftest.$ac_objext conftest$ac_exeext
17825if { (ac_try="$ac_link"
17826case "(($ac_try" in
17827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828 *) ac_try_echo=$ac_try;;
17829esac
17830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17831$as_echo "$ac_try_echo") >&5
17832 (eval "$ac_link") 2>conftest.er1
17833 ac_status=$?
17834 grep -v '^ *+' conftest.er1 >conftest.err
17835 rm -f conftest.er1
17836 cat conftest.err >&5
17837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); } && {
17839 test -z "$ac_c_werror_flag" ||
17840 test ! -s conftest.err
17841 } && test -s conftest$ac_exeext && {
17842 test "$cross_compiling" = yes ||
17843 $as_test_x conftest$ac_exeext
17844 }; then
17845 eval "$as_ac_var=yes"
17846else
17847 $as_echo "$as_me: failed program was:" >&5
17848sed 's/^/| /' conftest.$ac_ext >&5
17849
17850 eval "$as_ac_var=no"
17851fi
17852
17853rm -rf conftest.dSYM
17854rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17855 conftest$ac_exeext conftest.$ac_ext
17856fi
17857ac_res=`eval 'as_val=${'$as_ac_var'}
17858 $as_echo "$as_val"'`
17859 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17860$as_echo "$ac_res" >&6; }
17861if test `eval 'as_val=${'$as_ac_var'}
17862 $as_echo "$as_val"'` = yes; then
17863 cat >>confdefs.h <<_ACEOF 10813 cat >>confdefs.h <<_ACEOF
17864#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10814#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17865_ACEOF 10815_ACEOF
@@ -17871,31 +10821,15 @@ done
17871 10821
17872 10822
17873 10823
17874 10824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886{ $as_echo "$as_me:$LINENO: checking for working mktime" >&5
17887$as_echo_n "checking for working mktime... " >&6; } 10825$as_echo_n "checking for working mktime... " >&6; }
17888if test "${ac_cv_func_working_mktime+set}" = set; then 10826if test "${ac_cv_func_working_mktime+set}" = set; then :
17889 $as_echo_n "(cached) " >&6 10827 $as_echo_n "(cached) " >&6
17890else 10828else
17891 if test "$cross_compiling" = yes; then 10829 if test "$cross_compiling" = yes; then :
17892 ac_cv_func_working_mktime=no 10830 ac_cv_func_working_mktime=no
17893else 10831else
17894 cat >conftest.$ac_ext <<_ACEOF 10832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17895/* confdefs.h. */
17896_ACEOF
17897cat confdefs.h >>conftest.$ac_ext
17898cat >>conftest.$ac_ext <<_ACEOF
17899/* end confdefs.h. */ 10833/* end confdefs.h. */
17900/* Test program from Paul Eggert and Tony Leneis. */ 10834/* Test program from Paul Eggert and Tony Leneis. */
17901#ifdef TIME_WITH_SYS_TIME 10835#ifdef TIME_WITH_SYS_TIME
@@ -18092,44 +11026,17 @@ main ()
18092 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); 11026 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18093} 11027}
18094_ACEOF 11028_ACEOF
18095rm -f conftest$ac_exeext 11029if ac_fn_c_try_run "$LINENO"; then :
18096if { (ac_try="$ac_link"
18097case "(($ac_try" in
18098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18099 *) ac_try_echo=$ac_try;;
18100esac
18101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18102$as_echo "$ac_try_echo") >&5
18103 (eval "$ac_link") 2>&5
18104 ac_status=$?
18105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18107 { (case "(($ac_try" in
18108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109 *) ac_try_echo=$ac_try;;
18110esac
18111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18112$as_echo "$ac_try_echo") >&5
18113 (eval "$ac_try") 2>&5
18114 ac_status=$?
18115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); }; }; then
18117 ac_cv_func_working_mktime=yes 11030 ac_cv_func_working_mktime=yes
18118else 11031else
18119 $as_echo "$as_me: program exited with status $ac_status" >&5 11032 ac_cv_func_working_mktime=no
18120$as_echo "$as_me: failed program was:" >&5
18121sed 's/^/| /' conftest.$ac_ext >&5
18122
18123( exit $ac_status )
18124ac_cv_func_working_mktime=no
18125fi 11033fi
18126rm -rf conftest.dSYM 11034rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18127rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11035 conftest.$ac_objext conftest.beam conftest.$ac_ext
18128fi 11036fi
18129 11037
18130
18131fi 11038fi
18132{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5 11039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
18133$as_echo "$ac_cv_func_working_mktime" >&6; } 11040$as_echo "$ac_cv_func_working_mktime" >&6; }
18134if test $ac_cv_func_working_mktime = no; then 11041if test $ac_cv_func_working_mktime = no; then
18135 case " $LIBOBJS " in 11042 case " $LIBOBJS " in
@@ -18142,9 +11049,7 @@ fi
18142 11049
18143if test "$ac_cv_func_working_mktime" = no; then 11050if test "$ac_cv_func_working_mktime" = no; then
18144 11051
18145cat >>confdefs.h <<\_ACEOF 11052$as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
18146#define BROKEN_MKTIME 1
18147_ACEOF
18148 11053
18149fi 11054fi
18150 11055
@@ -18152,99 +11057,13 @@ ac_have_func=no # yes means we've found a way to get the load average.
18152 11057
18153# Make sure getloadavg.c is where it belongs, at configure-time. 11058# Make sure getloadavg.c is where it belongs, at configure-time.
18154test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || 11059test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18155 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5 11060 as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
18156$as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18157 { (exit 1); exit 1; }; }
18158 11061
18159ac_save_LIBS=$LIBS 11062ac_save_LIBS=$LIBS
18160 11063
18161# Check for getloadavg, but be sure not to touch the cache variable. 11064# Check for getloadavg, but be sure not to touch the cache variable.
18162({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5 11065(ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
18163$as_echo_n "checking for getloadavg... " >&6; } 11066if test "x$ac_cv_func_getloadavg" = x""yes; then :
18164if test "${ac_cv_func_getloadavg+set}" = set; then
18165 $as_echo_n "(cached) " >&6
18166else
18167 cat >conftest.$ac_ext <<_ACEOF
18168/* confdefs.h. */
18169_ACEOF
18170cat confdefs.h >>conftest.$ac_ext
18171cat >>conftest.$ac_ext <<_ACEOF
18172/* end confdefs.h. */
18173/* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18175#define getloadavg innocuous_getloadavg
18176
18177/* System header to define __stub macros and hopefully few prototypes,
18178 which can conflict with char getloadavg (); below.
18179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18180 <limits.h> exists even on freestanding compilers. */
18181
18182#ifdef __STDC__
18183# include <limits.h>
18184#else
18185# include <assert.h>
18186#endif
18187
18188#undef getloadavg
18189
18190/* Override any GCC internal prototype to avoid an error.
18191 Use char because int might match the return type of a GCC
18192 builtin and then its argument prototype would still apply. */
18193#ifdef __cplusplus
18194extern "C"
18195#endif
18196char getloadavg ();
18197/* The GNU C library defines this for functions which it implements
18198 to always fail with ENOSYS. Some functions are actually named
18199 something starting with __ and the normal name is an alias. */
18200#if defined __stub_getloadavg || defined __stub___getloadavg
18201choke me
18202#endif
18203
18204int
18205main ()
18206{
18207return getloadavg ();
18208 ;
18209 return 0;
18210}
18211_ACEOF
18212rm -f conftest.$ac_objext conftest$ac_exeext
18213if { (ac_try="$ac_link"
18214case "(($ac_try" in
18215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18216 *) ac_try_echo=$ac_try;;
18217esac
18218eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18219$as_echo "$ac_try_echo") >&5
18220 (eval "$ac_link") 2>conftest.er1
18221 ac_status=$?
18222 grep -v '^ *+' conftest.er1 >conftest.err
18223 rm -f conftest.er1
18224 cat conftest.err >&5
18225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); } && {
18227 test -z "$ac_c_werror_flag" ||
18228 test ! -s conftest.err
18229 } && test -s conftest$ac_exeext && {
18230 test "$cross_compiling" = yes ||
18231 $as_test_x conftest$ac_exeext
18232 }; then
18233 ac_cv_func_getloadavg=yes
18234else
18235 $as_echo "$as_me: failed program was:" >&5
18236sed 's/^/| /' conftest.$ac_ext >&5
18237
18238 ac_cv_func_getloadavg=no
18239fi
18240
18241rm -rf conftest.dSYM
18242rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18243 conftest$ac_exeext conftest.$ac_ext
18244fi
18245{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18246$as_echo "$ac_cv_func_getloadavg" >&6; }
18247if test $ac_cv_func_getloadavg = yes; then
18248 exit 0 11067 exit 0
18249else 11068else
18250 exit 1 11069 exit 1
@@ -18252,101 +11071,12 @@ fi
18252) && ac_have_func=yes 11071) && ac_have_func=yes
18253 11072
18254# On HPUX9, an unprivileged user can get load averages through this function. 11073# On HPUX9, an unprivileged user can get load averages through this function.
18255
18256for ac_func in pstat_getdynamic 11074for ac_func in pstat_getdynamic
18257do 11075do :
18258as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11076 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
18259{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 11077if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
18260$as_echo_n "checking for $ac_func... " >&6; }
18261if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18262 $as_echo_n "(cached) " >&6
18263else
18264 cat >conftest.$ac_ext <<_ACEOF
18265/* confdefs.h. */
18266_ACEOF
18267cat confdefs.h >>conftest.$ac_ext
18268cat >>conftest.$ac_ext <<_ACEOF
18269/* end confdefs.h. */
18270/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18272#define $ac_func innocuous_$ac_func
18273
18274/* System header to define __stub macros and hopefully few prototypes,
18275 which can conflict with char $ac_func (); below.
18276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18277 <limits.h> exists even on freestanding compilers. */
18278
18279#ifdef __STDC__
18280# include <limits.h>
18281#else
18282# include <assert.h>
18283#endif
18284
18285#undef $ac_func
18286
18287/* Override any GCC internal prototype to avoid an error.
18288 Use char because int might match the return type of a GCC
18289 builtin and then its argument prototype would still apply. */
18290#ifdef __cplusplus
18291extern "C"
18292#endif
18293char $ac_func ();
18294/* The GNU C library defines this for functions which it implements
18295 to always fail with ENOSYS. Some functions are actually named
18296 something starting with __ and the normal name is an alias. */
18297#if defined __stub_$ac_func || defined __stub___$ac_func
18298choke me
18299#endif
18300
18301int
18302main ()
18303{
18304return $ac_func ();
18305 ;
18306 return 0;
18307}
18308_ACEOF
18309rm -f conftest.$ac_objext conftest$ac_exeext
18310if { (ac_try="$ac_link"
18311case "(($ac_try" in
18312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18313 *) ac_try_echo=$ac_try;;
18314esac
18315eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18316$as_echo "$ac_try_echo") >&5
18317 (eval "$ac_link") 2>conftest.er1
18318 ac_status=$?
18319 grep -v '^ *+' conftest.er1 >conftest.err
18320 rm -f conftest.er1
18321 cat conftest.err >&5
18322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); } && {
18324 test -z "$ac_c_werror_flag" ||
18325 test ! -s conftest.err
18326 } && test -s conftest$ac_exeext && {
18327 test "$cross_compiling" = yes ||
18328 $as_test_x conftest$ac_exeext
18329 }; then
18330 eval "$as_ac_var=yes"
18331else
18332 $as_echo "$as_me: failed program was:" >&5
18333sed 's/^/| /' conftest.$ac_ext >&5
18334
18335 eval "$as_ac_var=no"
18336fi
18337
18338rm -rf conftest.dSYM
18339rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18340 conftest$ac_exeext conftest.$ac_ext
18341fi
18342ac_res=`eval 'as_val=${'$as_ac_var'}
18343 $as_echo "$as_val"'`
18344 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18345$as_echo "$ac_res" >&6; }
18346if test `eval 'as_val=${'$as_ac_var'}
18347 $as_echo "$as_val"'` = yes; then
18348 cat >>confdefs.h <<_ACEOF 11078 cat >>confdefs.h <<_ACEOF
18349#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11079#define HAVE_PSTAT_GETDYNAMIC 1
18350_ACEOF 11080_ACEOF
18351 11081
18352fi 11082fi
@@ -18354,19 +11084,14 @@ done
18354 11084
18355 11085
18356# Solaris has libkstat which does not require root. 11086# Solaris has libkstat which does not require root.
18357 11087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
18358{ $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18359$as_echo_n "checking for kstat_open in -lkstat... " >&6; } 11088$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18360if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then 11089if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
18361 $as_echo_n "(cached) " >&6 11090 $as_echo_n "(cached) " >&6
18362else 11091else
18363 ac_check_lib_save_LIBS=$LIBS 11092 ac_check_lib_save_LIBS=$LIBS
18364LIBS="-lkstat $LIBS" 11093LIBS="-lkstat $LIBS"
18365cat >conftest.$ac_ext <<_ACEOF 11094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18366/* confdefs.h. */
18367_ACEOF
18368cat confdefs.h >>conftest.$ac_ext
18369cat >>conftest.$ac_ext <<_ACEOF
18370/* end confdefs.h. */ 11095/* end confdefs.h. */
18371 11096
18372/* Override any GCC internal prototype to avoid an error. 11097/* Override any GCC internal prototype to avoid an error.
@@ -18384,43 +11109,18 @@ return kstat_open ();
18384 return 0; 11109 return 0;
18385} 11110}
18386_ACEOF 11111_ACEOF
18387rm -f conftest.$ac_objext conftest$ac_exeext 11112if ac_fn_c_try_link "$LINENO"; then :
18388if { (ac_try="$ac_link"
18389case "(($ac_try" in
18390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18391 *) ac_try_echo=$ac_try;;
18392esac
18393eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18394$as_echo "$ac_try_echo") >&5
18395 (eval "$ac_link") 2>conftest.er1
18396 ac_status=$?
18397 grep -v '^ *+' conftest.er1 >conftest.err
18398 rm -f conftest.er1
18399 cat conftest.err >&5
18400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); } && {
18402 test -z "$ac_c_werror_flag" ||
18403 test ! -s conftest.err
18404 } && test -s conftest$ac_exeext && {
18405 test "$cross_compiling" = yes ||
18406 $as_test_x conftest$ac_exeext
18407 }; then
18408 ac_cv_lib_kstat_kstat_open=yes 11113 ac_cv_lib_kstat_kstat_open=yes
18409else 11114else
18410 $as_echo "$as_me: failed program was:" >&5 11115 ac_cv_lib_kstat_kstat_open=no
18411sed 's/^/| /' conftest.$ac_ext >&5
18412
18413 ac_cv_lib_kstat_kstat_open=no
18414fi 11116fi
18415 11117rm -f core conftest.err conftest.$ac_objext \
18416rm -rf conftest.dSYM 11118 conftest$ac_exeext conftest.$ac_ext
18417rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18418 conftest$ac_exeext conftest.$ac_ext
18419LIBS=$ac_check_lib_save_LIBS 11119LIBS=$ac_check_lib_save_LIBS
18420fi 11120fi
18421{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5 11121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
18422$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; } 11122$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18423if test $ac_cv_lib_kstat_kstat_open = yes; then 11123if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
18424 cat >>confdefs.h <<_ACEOF 11124 cat >>confdefs.h <<_ACEOF
18425#define HAVE_LIBKSTAT 1 11125#define HAVE_LIBKSTAT 1
18426_ACEOF 11126_ACEOF
@@ -18436,18 +11136,14 @@ test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18436# to get the right answer into the cache. 11136# to get the right answer into the cache.
18437# For kstat on solaris, we need libelf to force the definition of SVR4 below. 11137# For kstat on solaris, we need libelf to force the definition of SVR4 below.
18438if test $ac_have_func = no; then 11138if test $ac_have_func = no; then
18439 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
18440$as_echo_n "checking for elf_begin in -lelf... " >&6; } 11140$as_echo_n "checking for elf_begin in -lelf... " >&6; }
18441if test "${ac_cv_lib_elf_elf_begin+set}" = set; then 11141if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
18442 $as_echo_n "(cached) " >&6 11142 $as_echo_n "(cached) " >&6
18443else 11143else
18444 ac_check_lib_save_LIBS=$LIBS 11144 ac_check_lib_save_LIBS=$LIBS
18445LIBS="-lelf $LIBS" 11145LIBS="-lelf $LIBS"
18446cat >conftest.$ac_ext <<_ACEOF 11146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18447/* confdefs.h. */
18448_ACEOF
18449cat confdefs.h >>conftest.$ac_ext
18450cat >>conftest.$ac_ext <<_ACEOF
18451/* end confdefs.h. */ 11147/* end confdefs.h. */
18452 11148
18453/* Override any GCC internal prototype to avoid an error. 11149/* Override any GCC internal prototype to avoid an error.
@@ -18465,60 +11161,31 @@ return elf_begin ();
18465 return 0; 11161 return 0;
18466} 11162}
18467_ACEOF 11163_ACEOF
18468rm -f conftest.$ac_objext conftest$ac_exeext 11164if ac_fn_c_try_link "$LINENO"; then :
18469if { (ac_try="$ac_link"
18470case "(($ac_try" in
18471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18472 *) ac_try_echo=$ac_try;;
18473esac
18474eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18475$as_echo "$ac_try_echo") >&5
18476 (eval "$ac_link") 2>conftest.er1
18477 ac_status=$?
18478 grep -v '^ *+' conftest.er1 >conftest.err
18479 rm -f conftest.er1
18480 cat conftest.err >&5
18481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); } && {
18483 test -z "$ac_c_werror_flag" ||
18484 test ! -s conftest.err
18485 } && test -s conftest$ac_exeext && {
18486 test "$cross_compiling" = yes ||
18487 $as_test_x conftest$ac_exeext
18488 }; then
18489 ac_cv_lib_elf_elf_begin=yes 11165 ac_cv_lib_elf_elf_begin=yes
18490else 11166else
18491 $as_echo "$as_me: failed program was:" >&5 11167 ac_cv_lib_elf_elf_begin=no
18492sed 's/^/| /' conftest.$ac_ext >&5
18493
18494 ac_cv_lib_elf_elf_begin=no
18495fi 11168fi
18496 11169rm -f core conftest.err conftest.$ac_objext \
18497rm -rf conftest.dSYM 11170 conftest$ac_exeext conftest.$ac_ext
18498rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18499 conftest$ac_exeext conftest.$ac_ext
18500LIBS=$ac_check_lib_save_LIBS 11171LIBS=$ac_check_lib_save_LIBS
18501fi 11172fi
18502{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 11173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
18503$as_echo "$ac_cv_lib_elf_elf_begin" >&6; } 11174$as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18504if test $ac_cv_lib_elf_elf_begin = yes; then 11175if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
18505 LIBS="-lelf $LIBS" 11176 LIBS="-lelf $LIBS"
18506fi 11177fi
18507 11178
18508fi 11179fi
18509if test $ac_have_func = no; then 11180if test $ac_have_func = no; then
18510 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5 11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
18511$as_echo_n "checking for kvm_open in -lkvm... " >&6; } 11182$as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18512if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then 11183if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
18513 $as_echo_n "(cached) " >&6 11184 $as_echo_n "(cached) " >&6
18514else 11185else
18515 ac_check_lib_save_LIBS=$LIBS 11186 ac_check_lib_save_LIBS=$LIBS
18516LIBS="-lkvm $LIBS" 11187LIBS="-lkvm $LIBS"
18517cat >conftest.$ac_ext <<_ACEOF 11188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18518/* confdefs.h. */
18519_ACEOF
18520cat confdefs.h >>conftest.$ac_ext
18521cat >>conftest.$ac_ext <<_ACEOF
18522/* end confdefs.h. */ 11189/* end confdefs.h. */
18523 11190
18524/* Override any GCC internal prototype to avoid an error. 11191/* Override any GCC internal prototype to avoid an error.
@@ -18536,59 +11203,30 @@ return kvm_open ();
18536 return 0; 11203 return 0;
18537} 11204}
18538_ACEOF 11205_ACEOF
18539rm -f conftest.$ac_objext conftest$ac_exeext 11206if ac_fn_c_try_link "$LINENO"; then :
18540if { (ac_try="$ac_link"
18541case "(($ac_try" in
18542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18543 *) ac_try_echo=$ac_try;;
18544esac
18545eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18546$as_echo "$ac_try_echo") >&5
18547 (eval "$ac_link") 2>conftest.er1
18548 ac_status=$?
18549 grep -v '^ *+' conftest.er1 >conftest.err
18550 rm -f conftest.er1
18551 cat conftest.err >&5
18552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); } && {
18554 test -z "$ac_c_werror_flag" ||
18555 test ! -s conftest.err
18556 } && test -s conftest$ac_exeext && {
18557 test "$cross_compiling" = yes ||
18558 $as_test_x conftest$ac_exeext
18559 }; then
18560 ac_cv_lib_kvm_kvm_open=yes 11207 ac_cv_lib_kvm_kvm_open=yes
18561else 11208else
18562 $as_echo "$as_me: failed program was:" >&5 11209 ac_cv_lib_kvm_kvm_open=no
18563sed 's/^/| /' conftest.$ac_ext >&5
18564
18565 ac_cv_lib_kvm_kvm_open=no
18566fi 11210fi
18567 11211rm -f core conftest.err conftest.$ac_objext \
18568rm -rf conftest.dSYM 11212 conftest$ac_exeext conftest.$ac_ext
18569rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18570 conftest$ac_exeext conftest.$ac_ext
18571LIBS=$ac_check_lib_save_LIBS 11213LIBS=$ac_check_lib_save_LIBS
18572fi 11214fi
18573{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5 11215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
18574$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; } 11216$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18575if test $ac_cv_lib_kvm_kvm_open = yes; then 11217if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
18576 LIBS="-lkvm $LIBS" 11218 LIBS="-lkvm $LIBS"
18577fi 11219fi
18578 11220
18579 # Check for the 4.4BSD definition of getloadavg. 11221 # Check for the 4.4BSD definition of getloadavg.
18580 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5 11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
18581$as_echo_n "checking for getloadavg in -lutil... " >&6; } 11223$as_echo_n "checking for getloadavg in -lutil... " >&6; }
18582if test "${ac_cv_lib_util_getloadavg+set}" = set; then 11224if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
18583 $as_echo_n "(cached) " >&6 11225 $as_echo_n "(cached) " >&6
18584else 11226else
18585 ac_check_lib_save_LIBS=$LIBS 11227 ac_check_lib_save_LIBS=$LIBS
18586LIBS="-lutil $LIBS" 11228LIBS="-lutil $LIBS"
18587cat >conftest.$ac_ext <<_ACEOF 11229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18588/* confdefs.h. */
18589_ACEOF
18590cat confdefs.h >>conftest.$ac_ext
18591cat >>conftest.$ac_ext <<_ACEOF
18592/* end confdefs.h. */ 11230/* end confdefs.h. */
18593 11231
18594/* Override any GCC internal prototype to avoid an error. 11232/* Override any GCC internal prototype to avoid an error.
@@ -18606,43 +11244,18 @@ return getloadavg ();
18606 return 0; 11244 return 0;
18607} 11245}
18608_ACEOF 11246_ACEOF
18609rm -f conftest.$ac_objext conftest$ac_exeext 11247if ac_fn_c_try_link "$LINENO"; then :
18610if { (ac_try="$ac_link"
18611case "(($ac_try" in
18612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613 *) ac_try_echo=$ac_try;;
18614esac
18615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18616$as_echo "$ac_try_echo") >&5
18617 (eval "$ac_link") 2>conftest.er1
18618 ac_status=$?
18619 grep -v '^ *+' conftest.er1 >conftest.err
18620 rm -f conftest.er1
18621 cat conftest.err >&5
18622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); } && {
18624 test -z "$ac_c_werror_flag" ||
18625 test ! -s conftest.err
18626 } && test -s conftest$ac_exeext && {
18627 test "$cross_compiling" = yes ||
18628 $as_test_x conftest$ac_exeext
18629 }; then
18630 ac_cv_lib_util_getloadavg=yes 11248 ac_cv_lib_util_getloadavg=yes
18631else 11249else
18632 $as_echo "$as_me: failed program was:" >&5 11250 ac_cv_lib_util_getloadavg=no
18633sed 's/^/| /' conftest.$ac_ext >&5
18634
18635 ac_cv_lib_util_getloadavg=no
18636fi 11251fi
18637 11252rm -f core conftest.err conftest.$ac_objext \
18638rm -rf conftest.dSYM 11253 conftest$ac_exeext conftest.$ac_ext
18639rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18640 conftest$ac_exeext conftest.$ac_ext
18641LIBS=$ac_check_lib_save_LIBS 11254LIBS=$ac_check_lib_save_LIBS
18642fi 11255fi
18643{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5 11256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
18644$as_echo "$ac_cv_lib_util_getloadavg" >&6; } 11257$as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18645if test $ac_cv_lib_util_getloadavg = yes; then 11258if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
18646 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes 11259 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18647fi 11260fi
18648 11261
@@ -18653,18 +11266,14 @@ if test $ac_have_func = no; then
18653 # Since it is not a standard part of AIX, it might be installed locally. 11266 # Since it is not a standard part of AIX, it might be installed locally.
18654 ac_getloadavg_LIBS=$LIBS 11267 ac_getloadavg_LIBS=$LIBS
18655 LIBS="-L/usr/local/lib $LIBS" 11268 LIBS="-L/usr/local/lib $LIBS"
18656 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5 11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
18657$as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; } 11270$as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18658if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then 11271if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
18659 $as_echo_n "(cached) " >&6 11272 $as_echo_n "(cached) " >&6
18660else 11273else
18661 ac_check_lib_save_LIBS=$LIBS 11274 ac_check_lib_save_LIBS=$LIBS
18662LIBS="-lgetloadavg $LIBS" 11275LIBS="-lgetloadavg $LIBS"
18663cat >conftest.$ac_ext <<_ACEOF 11276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18664/* confdefs.h. */
18665_ACEOF
18666cat confdefs.h >>conftest.$ac_ext
18667cat >>conftest.$ac_ext <<_ACEOF
18668/* end confdefs.h. */ 11277/* end confdefs.h. */
18669 11278
18670/* Override any GCC internal prototype to avoid an error. 11279/* Override any GCC internal prototype to avoid an error.
@@ -18682,43 +11291,18 @@ return getloadavg ();
18682 return 0; 11291 return 0;
18683} 11292}
18684_ACEOF 11293_ACEOF
18685rm -f conftest.$ac_objext conftest$ac_exeext 11294if ac_fn_c_try_link "$LINENO"; then :
18686if { (ac_try="$ac_link"
18687case "(($ac_try" in
18688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18689 *) ac_try_echo=$ac_try;;
18690esac
18691eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18692$as_echo "$ac_try_echo") >&5
18693 (eval "$ac_link") 2>conftest.er1
18694 ac_status=$?
18695 grep -v '^ *+' conftest.er1 >conftest.err
18696 rm -f conftest.er1
18697 cat conftest.err >&5
18698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); } && {
18700 test -z "$ac_c_werror_flag" ||
18701 test ! -s conftest.err
18702 } && test -s conftest$ac_exeext && {
18703 test "$cross_compiling" = yes ||
18704 $as_test_x conftest$ac_exeext
18705 }; then
18706 ac_cv_lib_getloadavg_getloadavg=yes 11295 ac_cv_lib_getloadavg_getloadavg=yes
18707else 11296else
18708 $as_echo "$as_me: failed program was:" >&5 11297 ac_cv_lib_getloadavg_getloadavg=no
18709sed 's/^/| /' conftest.$ac_ext >&5
18710
18711 ac_cv_lib_getloadavg_getloadavg=no
18712fi 11298fi
18713 11299rm -f core conftest.err conftest.$ac_objext \
18714rm -rf conftest.dSYM 11300 conftest$ac_exeext conftest.$ac_ext
18715rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18716 conftest$ac_exeext conftest.$ac_ext
18717LIBS=$ac_check_lib_save_LIBS 11301LIBS=$ac_check_lib_save_LIBS
18718fi 11302fi
18719{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5 11303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18720$as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; } 11304$as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18721if test $ac_cv_lib_getloadavg_getloadavg = yes; then 11305if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
18722 LIBS="-lgetloadavg $LIBS" 11306 LIBS="-lgetloadavg $LIBS"
18723else 11307else
18724 LIBS=$ac_getloadavg_LIBS 11308 LIBS=$ac_getloadavg_LIBS
@@ -18728,101 +11312,12 @@ fi
18728 11312
18729# Make sure it is really in the library, if we think we found it, 11313# Make sure it is really in the library, if we think we found it,
18730# otherwise set up the replacement function. 11314# otherwise set up the replacement function.
18731
18732for ac_func in getloadavg 11315for ac_func in getloadavg
18733do 11316do :
18734as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11317 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
18735{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 11318if test "x$ac_cv_func_getloadavg" = x""yes; then :
18736$as_echo_n "checking for $ac_func... " >&6; }
18737if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18738 $as_echo_n "(cached) " >&6
18739else
18740 cat >conftest.$ac_ext <<_ACEOF
18741/* confdefs.h. */
18742_ACEOF
18743cat confdefs.h >>conftest.$ac_ext
18744cat >>conftest.$ac_ext <<_ACEOF
18745/* end confdefs.h. */
18746/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18748#define $ac_func innocuous_$ac_func
18749
18750/* System header to define __stub macros and hopefully few prototypes,
18751 which can conflict with char $ac_func (); below.
18752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18753 <limits.h> exists even on freestanding compilers. */
18754
18755#ifdef __STDC__
18756# include <limits.h>
18757#else
18758# include <assert.h>
18759#endif
18760
18761#undef $ac_func
18762
18763/* Override any GCC internal prototype to avoid an error.
18764 Use char because int might match the return type of a GCC
18765 builtin and then its argument prototype would still apply. */
18766#ifdef __cplusplus
18767extern "C"
18768#endif
18769char $ac_func ();
18770/* The GNU C library defines this for functions which it implements
18771 to always fail with ENOSYS. Some functions are actually named
18772 something starting with __ and the normal name is an alias. */
18773#if defined __stub_$ac_func || defined __stub___$ac_func
18774choke me
18775#endif
18776
18777int
18778main ()
18779{
18780return $ac_func ();
18781 ;
18782 return 0;
18783}
18784_ACEOF
18785rm -f conftest.$ac_objext conftest$ac_exeext
18786if { (ac_try="$ac_link"
18787case "(($ac_try" in
18788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789 *) ac_try_echo=$ac_try;;
18790esac
18791eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18792$as_echo "$ac_try_echo") >&5
18793 (eval "$ac_link") 2>conftest.er1
18794 ac_status=$?
18795 grep -v '^ *+' conftest.er1 >conftest.err
18796 rm -f conftest.er1
18797 cat conftest.err >&5
18798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); } && {
18800 test -z "$ac_c_werror_flag" ||
18801 test ! -s conftest.err
18802 } && test -s conftest$ac_exeext && {
18803 test "$cross_compiling" = yes ||
18804 $as_test_x conftest$ac_exeext
18805 }; then
18806 eval "$as_ac_var=yes"
18807else
18808 $as_echo "$as_me: failed program was:" >&5
18809sed 's/^/| /' conftest.$ac_ext >&5
18810
18811 eval "$as_ac_var=no"
18812fi
18813
18814rm -rf conftest.dSYM
18815rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18816 conftest$ac_exeext conftest.$ac_ext
18817fi
18818ac_res=`eval 'as_val=${'$as_ac_var'}
18819 $as_echo "$as_val"'`
18820 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18821$as_echo "$ac_res" >&6; }
18822if test `eval 'as_val=${'$as_ac_var'}
18823 $as_echo "$as_val"'` = yes; then
18824 cat >>confdefs.h <<_ACEOF 11319 cat >>confdefs.h <<_ACEOF
18825#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11320#define HAVE_GETLOADAVG 1
18826_ACEOF 11321_ACEOF
18827 11322
18828else 11323else
@@ -18833,159 +11328,24 @@ else
18833esac 11328esac
18834 11329
18835 11330
18836cat >>confdefs.h <<\_ACEOF 11331$as_echo "#define C_GETLOADAVG 1" >>confdefs.h
18837#define C_GETLOADAVG 1
18838_ACEOF
18839 11332
18840# Figure out what our getloadavg.c needs. 11333# Figure out what our getloadavg.c needs.
18841ac_have_func=no 11334ac_have_func=no
18842if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then 11335ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
18843 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 11336if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
18844$as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18845if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18846 $as_echo_n "(cached) " >&6
18847fi
18848{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18849$as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18850else
18851 # Is the header compilable?
18852{ $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18853$as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
18854cat >conftest.$ac_ext <<_ACEOF
18855/* confdefs.h. */
18856_ACEOF
18857cat confdefs.h >>conftest.$ac_ext
18858cat >>conftest.$ac_ext <<_ACEOF
18859/* end confdefs.h. */
18860$ac_includes_default
18861#include <sys/dg_sys_info.h>
18862_ACEOF
18863rm -f conftest.$ac_objext
18864if { (ac_try="$ac_compile"
18865case "(($ac_try" in
18866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18867 *) ac_try_echo=$ac_try;;
18868esac
18869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18870$as_echo "$ac_try_echo") >&5
18871 (eval "$ac_compile") 2>conftest.er1
18872 ac_status=$?
18873 grep -v '^ *+' conftest.er1 >conftest.err
18874 rm -f conftest.er1
18875 cat conftest.err >&5
18876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); } && {
18878 test -z "$ac_c_werror_flag" ||
18879 test ! -s conftest.err
18880 } && test -s conftest.$ac_objext; then
18881 ac_header_compiler=yes
18882else
18883 $as_echo "$as_me: failed program was:" >&5
18884sed 's/^/| /' conftest.$ac_ext >&5
18885
18886 ac_header_compiler=no
18887fi
18888
18889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18890{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18891$as_echo "$ac_header_compiler" >&6; }
18892
18893# Is the header present?
18894{ $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18895$as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
18896cat >conftest.$ac_ext <<_ACEOF
18897/* confdefs.h. */
18898_ACEOF
18899cat confdefs.h >>conftest.$ac_ext
18900cat >>conftest.$ac_ext <<_ACEOF
18901/* end confdefs.h. */
18902#include <sys/dg_sys_info.h>
18903_ACEOF
18904if { (ac_try="$ac_cpp conftest.$ac_ext"
18905case "(($ac_try" in
18906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18907 *) ac_try_echo=$ac_try;;
18908esac
18909eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18910$as_echo "$ac_try_echo") >&5
18911 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18912 ac_status=$?
18913 grep -v '^ *+' conftest.er1 >conftest.err
18914 rm -f conftest.er1
18915 cat conftest.err >&5
18916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917 (exit $ac_status); } >/dev/null && {
18918 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18919 test ! -s conftest.err
18920 }; then
18921 ac_header_preproc=yes
18922else
18923 $as_echo "$as_me: failed program was:" >&5
18924sed 's/^/| /' conftest.$ac_ext >&5
18925
18926 ac_header_preproc=no
18927fi
18928
18929rm -f conftest.err conftest.$ac_ext
18930{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18931$as_echo "$ac_header_preproc" >&6; }
18932
18933# So? What about this header?
18934case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18935 yes:no: )
18936 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18937$as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18938 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18939$as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18940 ac_header_preproc=yes
18941 ;;
18942 no:yes:* )
18943 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18944$as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18945 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18946$as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18947 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18948$as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18949 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18950$as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18951 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18952$as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18953 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
18954$as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
18955
18956 ;;
18957esac
18958{ $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18959$as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18960if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18961 $as_echo_n "(cached) " >&6
18962else
18963 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18964fi
18965{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18966$as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18967
18968fi
18969if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18970 ac_have_func=yes 11337 ac_have_func=yes
18971 11338
18972cat >>confdefs.h <<\_ACEOF 11339$as_echo "#define DGUX 1" >>confdefs.h
18973#define DGUX 1
18974_ACEOF
18975
18976 11340
18977{ $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5 11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
18978$as_echo_n "checking for dg_sys_info in -ldgc... " >&6; } 11342$as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18979if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then 11343if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
18980 $as_echo_n "(cached) " >&6 11344 $as_echo_n "(cached) " >&6
18981else 11345else
18982 ac_check_lib_save_LIBS=$LIBS 11346 ac_check_lib_save_LIBS=$LIBS
18983LIBS="-ldgc $LIBS" 11347LIBS="-ldgc $LIBS"
18984cat >conftest.$ac_ext <<_ACEOF 11348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18985/* confdefs.h. */
18986_ACEOF
18987cat confdefs.h >>conftest.$ac_ext
18988cat >>conftest.$ac_ext <<_ACEOF
18989/* end confdefs.h. */ 11349/* end confdefs.h. */
18990 11350
18991/* Override any GCC internal prototype to avoid an error. 11351/* Override any GCC internal prototype to avoid an error.
@@ -19003,43 +11363,18 @@ return dg_sys_info ();
19003 return 0; 11363 return 0;
19004} 11364}
19005_ACEOF 11365_ACEOF
19006rm -f conftest.$ac_objext conftest$ac_exeext 11366if ac_fn_c_try_link "$LINENO"; then :
19007if { (ac_try="$ac_link"
19008case "(($ac_try" in
19009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010 *) ac_try_echo=$ac_try;;
19011esac
19012eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19013$as_echo "$ac_try_echo") >&5
19014 (eval "$ac_link") 2>conftest.er1
19015 ac_status=$?
19016 grep -v '^ *+' conftest.er1 >conftest.err
19017 rm -f conftest.er1
19018 cat conftest.err >&5
19019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); } && {
19021 test -z "$ac_c_werror_flag" ||
19022 test ! -s conftest.err
19023 } && test -s conftest$ac_exeext && {
19024 test "$cross_compiling" = yes ||
19025 $as_test_x conftest$ac_exeext
19026 }; then
19027 ac_cv_lib_dgc_dg_sys_info=yes 11367 ac_cv_lib_dgc_dg_sys_info=yes
19028else 11368else
19029 $as_echo "$as_me: failed program was:" >&5 11369 ac_cv_lib_dgc_dg_sys_info=no
19030sed 's/^/| /' conftest.$ac_ext >&5
19031
19032 ac_cv_lib_dgc_dg_sys_info=no
19033fi 11370fi
19034 11371rm -f core conftest.err conftest.$ac_objext \
19035rm -rf conftest.dSYM 11372 conftest$ac_exeext conftest.$ac_ext
19036rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19037 conftest$ac_exeext conftest.$ac_ext
19038LIBS=$ac_check_lib_save_LIBS 11373LIBS=$ac_check_lib_save_LIBS
19039fi 11374fi
19040{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5 11375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19041$as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; } 11376$as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19042if test $ac_cv_lib_dgc_dg_sys_info = yes; then 11377if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
19043 cat >>confdefs.h <<_ACEOF 11378 cat >>confdefs.h <<_ACEOF
19044#define HAVE_LIBDGC 1 11379#define HAVE_LIBDGC 1
19045_ACEOF 11380_ACEOF
@@ -19052,230 +11387,18 @@ fi
19052 11387
19053 11388
19054 11389
19055if test "${ac_cv_header_locale_h+set}" = set; then 11390ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
19056 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5 11391if test "x$ac_cv_header_locale_h" = x""yes; then :
19057$as_echo_n "checking for locale.h... " >&6; }
19058if test "${ac_cv_header_locale_h+set}" = set; then
19059 $as_echo_n "(cached) " >&6
19060fi
19061{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19062$as_echo "$ac_cv_header_locale_h" >&6; }
19063else
19064 # Is the header compilable?
19065{ $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19066$as_echo_n "checking locale.h usability... " >&6; }
19067cat >conftest.$ac_ext <<_ACEOF
19068/* confdefs.h. */
19069_ACEOF
19070cat confdefs.h >>conftest.$ac_ext
19071cat >>conftest.$ac_ext <<_ACEOF
19072/* end confdefs.h. */
19073$ac_includes_default
19074#include <locale.h>
19075_ACEOF
19076rm -f conftest.$ac_objext
19077if { (ac_try="$ac_compile"
19078case "(($ac_try" in
19079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19080 *) ac_try_echo=$ac_try;;
19081esac
19082eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19083$as_echo "$ac_try_echo") >&5
19084 (eval "$ac_compile") 2>conftest.er1
19085 ac_status=$?
19086 grep -v '^ *+' conftest.er1 >conftest.err
19087 rm -f conftest.er1
19088 cat conftest.err >&5
19089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); } && {
19091 test -z "$ac_c_werror_flag" ||
19092 test ! -s conftest.err
19093 } && test -s conftest.$ac_objext; then
19094 ac_header_compiler=yes
19095else
19096 $as_echo "$as_me: failed program was:" >&5
19097sed 's/^/| /' conftest.$ac_ext >&5
19098
19099 ac_header_compiler=no
19100fi
19101
19102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19103{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19104$as_echo "$ac_header_compiler" >&6; }
19105
19106# Is the header present?
19107{ $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19108$as_echo_n "checking locale.h presence... " >&6; }
19109cat >conftest.$ac_ext <<_ACEOF
19110/* confdefs.h. */
19111_ACEOF
19112cat confdefs.h >>conftest.$ac_ext
19113cat >>conftest.$ac_ext <<_ACEOF
19114/* end confdefs.h. */
19115#include <locale.h>
19116_ACEOF
19117if { (ac_try="$ac_cpp conftest.$ac_ext"
19118case "(($ac_try" in
19119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120 *) ac_try_echo=$ac_try;;
19121esac
19122eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19123$as_echo "$ac_try_echo") >&5
19124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19125 ac_status=$?
19126 grep -v '^ *+' conftest.er1 >conftest.err
19127 rm -f conftest.er1
19128 cat conftest.err >&5
19129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); } >/dev/null && {
19131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19132 test ! -s conftest.err
19133 }; then
19134 ac_header_preproc=yes
19135else
19136 $as_echo "$as_me: failed program was:" >&5
19137sed 's/^/| /' conftest.$ac_ext >&5
19138
19139 ac_header_preproc=no
19140fi
19141
19142rm -f conftest.err conftest.$ac_ext
19143{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19144$as_echo "$ac_header_preproc" >&6; }
19145
19146# So? What about this header?
19147case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19148 yes:no: )
19149 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19150$as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19151 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19152$as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19153 ac_header_preproc=yes
19154 ;;
19155 no:yes:* )
19156 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19157$as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19158 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19159$as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19160 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19161$as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19162 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19163$as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19164 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19165$as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19166 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19167$as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19168
19169 ;;
19170esac
19171{ $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19172$as_echo_n "checking for locale.h... " >&6; }
19173if test "${ac_cv_header_locale_h+set}" = set; then
19174 $as_echo_n "(cached) " >&6
19175else
19176 ac_cv_header_locale_h=$ac_header_preproc
19177fi
19178{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19179$as_echo "$ac_cv_header_locale_h" >&6; }
19180 11392
19181fi 11393fi
19182 11394
19183 11395
19184
19185for ac_func in setlocale 11396for ac_func in setlocale
19186do 11397do :
19187as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11398 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
19188{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 11399if test "x$ac_cv_func_setlocale" = x""yes; then :
19189$as_echo_n "checking for $ac_func... " >&6; }
19190if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19191 $as_echo_n "(cached) " >&6
19192else
19193 cat >conftest.$ac_ext <<_ACEOF
19194/* confdefs.h. */
19195_ACEOF
19196cat confdefs.h >>conftest.$ac_ext
19197cat >>conftest.$ac_ext <<_ACEOF
19198/* end confdefs.h. */
19199/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19201#define $ac_func innocuous_$ac_func
19202
19203/* System header to define __stub macros and hopefully few prototypes,
19204 which can conflict with char $ac_func (); below.
19205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19206 <limits.h> exists even on freestanding compilers. */
19207
19208#ifdef __STDC__
19209# include <limits.h>
19210#else
19211# include <assert.h>
19212#endif
19213
19214#undef $ac_func
19215
19216/* Override any GCC internal prototype to avoid an error.
19217 Use char because int might match the return type of a GCC
19218 builtin and then its argument prototype would still apply. */
19219#ifdef __cplusplus
19220extern "C"
19221#endif
19222char $ac_func ();
19223/* The GNU C library defines this for functions which it implements
19224 to always fail with ENOSYS. Some functions are actually named
19225 something starting with __ and the normal name is an alias. */
19226#if defined __stub_$ac_func || defined __stub___$ac_func
19227choke me
19228#endif
19229
19230int
19231main ()
19232{
19233return $ac_func ();
19234 ;
19235 return 0;
19236}
19237_ACEOF
19238rm -f conftest.$ac_objext conftest$ac_exeext
19239if { (ac_try="$ac_link"
19240case "(($ac_try" in
19241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242 *) ac_try_echo=$ac_try;;
19243esac
19244eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19245$as_echo "$ac_try_echo") >&5
19246 (eval "$ac_link") 2>conftest.er1
19247 ac_status=$?
19248 grep -v '^ *+' conftest.er1 >conftest.err
19249 rm -f conftest.er1
19250 cat conftest.err >&5
19251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); } && {
19253 test -z "$ac_c_werror_flag" ||
19254 test ! -s conftest.err
19255 } && test -s conftest$ac_exeext && {
19256 test "$cross_compiling" = yes ||
19257 $as_test_x conftest$ac_exeext
19258 }; then
19259 eval "$as_ac_var=yes"
19260else
19261 $as_echo "$as_me: failed program was:" >&5
19262sed 's/^/| /' conftest.$ac_ext >&5
19263
19264 eval "$as_ac_var=no"
19265fi
19266
19267rm -rf conftest.dSYM
19268rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19269 conftest$ac_exeext conftest.$ac_ext
19270fi
19271ac_res=`eval 'as_val=${'$as_ac_var'}
19272 $as_echo "$as_val"'`
19273 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19274$as_echo "$ac_res" >&6; }
19275if test `eval 'as_val=${'$as_ac_var'}
19276 $as_echo "$as_val"'` = yes; then
19277 cat >>confdefs.h <<_ACEOF 11400 cat >>confdefs.h <<_ACEOF
19278#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11401#define HAVE_SETLOCALE 1
19279_ACEOF 11402_ACEOF
19280 11403
19281fi 11404fi
@@ -19288,151 +11411,19 @@ done
19288if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then 11411if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19289 ac_have_func=yes 11412 ac_have_func=yes
19290 11413
19291cat >>confdefs.h <<\_ACEOF 11414$as_echo "#define SVR4 1" >>confdefs.h
19292#define SVR4 1
19293_ACEOF
19294 11415
19295fi 11416fi
19296 11417
19297if test $ac_have_func = no; then 11418if test $ac_have_func = no; then
19298 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then 11419 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
19299 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 11420if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
19300$as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19301if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19302 $as_echo_n "(cached) " >&6
19303fi
19304{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19305$as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19306else
19307 # Is the header compilable?
19308{ $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19309$as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19310cat >conftest.$ac_ext <<_ACEOF
19311/* confdefs.h. */
19312_ACEOF
19313cat confdefs.h >>conftest.$ac_ext
19314cat >>conftest.$ac_ext <<_ACEOF
19315/* end confdefs.h. */
19316$ac_includes_default
19317#include <inq_stats/cpustats.h>
19318_ACEOF
19319rm -f conftest.$ac_objext
19320if { (ac_try="$ac_compile"
19321case "(($ac_try" in
19322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19323 *) ac_try_echo=$ac_try;;
19324esac
19325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19326$as_echo "$ac_try_echo") >&5
19327 (eval "$ac_compile") 2>conftest.er1
19328 ac_status=$?
19329 grep -v '^ *+' conftest.er1 >conftest.err
19330 rm -f conftest.er1
19331 cat conftest.err >&5
19332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); } && {
19334 test -z "$ac_c_werror_flag" ||
19335 test ! -s conftest.err
19336 } && test -s conftest.$ac_objext; then
19337 ac_header_compiler=yes
19338else
19339 $as_echo "$as_me: failed program was:" >&5
19340sed 's/^/| /' conftest.$ac_ext >&5
19341
19342 ac_header_compiler=no
19343fi
19344
19345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19346{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19347$as_echo "$ac_header_compiler" >&6; }
19348
19349# Is the header present?
19350{ $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19351$as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19352cat >conftest.$ac_ext <<_ACEOF
19353/* confdefs.h. */
19354_ACEOF
19355cat confdefs.h >>conftest.$ac_ext
19356cat >>conftest.$ac_ext <<_ACEOF
19357/* end confdefs.h. */
19358#include <inq_stats/cpustats.h>
19359_ACEOF
19360if { (ac_try="$ac_cpp conftest.$ac_ext"
19361case "(($ac_try" in
19362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19363 *) ac_try_echo=$ac_try;;
19364esac
19365eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19366$as_echo "$ac_try_echo") >&5
19367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19368 ac_status=$?
19369 grep -v '^ *+' conftest.er1 >conftest.err
19370 rm -f conftest.er1
19371 cat conftest.err >&5
19372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); } >/dev/null && {
19374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19375 test ! -s conftest.err
19376 }; then
19377 ac_header_preproc=yes
19378else
19379 $as_echo "$as_me: failed program was:" >&5
19380sed 's/^/| /' conftest.$ac_ext >&5
19381
19382 ac_header_preproc=no
19383fi
19384
19385rm -f conftest.err conftest.$ac_ext
19386{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19387$as_echo "$ac_header_preproc" >&6; }
19388
19389# So? What about this header?
19390case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19391 yes:no: )
19392 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19393$as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19394 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19395$as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19396 ac_header_preproc=yes
19397 ;;
19398 no:yes:* )
19399 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19400$as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19401 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19402$as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19403 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19404$as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19405 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19406$as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19407 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19408$as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19409 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19410$as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19411
19412 ;;
19413esac
19414{ $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19415$as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19416if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19417 $as_echo_n "(cached) " >&6
19418else
19419 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19420fi
19421{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19422$as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19423
19424fi
19425if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19426 ac_have_func=yes 11421 ac_have_func=yes
19427 11422
19428cat >>confdefs.h <<\_ACEOF 11423$as_echo "#define UMAX 1" >>confdefs.h
19429#define UMAX 1
19430_ACEOF
19431 11424
19432 11425
19433cat >>confdefs.h <<\_ACEOF 11426$as_echo "#define UMAX4_3 1" >>confdefs.h
19434#define UMAX4_3 1
19435_ACEOF
19436 11427
19437fi 11428fi
19438 11429
@@ -19440,137 +11431,9 @@ fi
19440fi 11431fi
19441 11432
19442if test $ac_have_func = no; then 11433if test $ac_have_func = no; then
19443 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then 11434 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
19444 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 11435if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
19445$as_echo_n "checking for sys/cpustats.h... " >&6; } 11436 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
19446if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19447 $as_echo_n "(cached) " >&6
19448fi
19449{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19450$as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19451else
19452 # Is the header compilable?
19453{ $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19454$as_echo_n "checking sys/cpustats.h usability... " >&6; }
19455cat >conftest.$ac_ext <<_ACEOF
19456/* confdefs.h. */
19457_ACEOF
19458cat confdefs.h >>conftest.$ac_ext
19459cat >>conftest.$ac_ext <<_ACEOF
19460/* end confdefs.h. */
19461$ac_includes_default
19462#include <sys/cpustats.h>
19463_ACEOF
19464rm -f conftest.$ac_objext
19465if { (ac_try="$ac_compile"
19466case "(($ac_try" in
19467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19468 *) ac_try_echo=$ac_try;;
19469esac
19470eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19471$as_echo "$ac_try_echo") >&5
19472 (eval "$ac_compile") 2>conftest.er1
19473 ac_status=$?
19474 grep -v '^ *+' conftest.er1 >conftest.err
19475 rm -f conftest.er1
19476 cat conftest.err >&5
19477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); } && {
19479 test -z "$ac_c_werror_flag" ||
19480 test ! -s conftest.err
19481 } && test -s conftest.$ac_objext; then
19482 ac_header_compiler=yes
19483else
19484 $as_echo "$as_me: failed program was:" >&5
19485sed 's/^/| /' conftest.$ac_ext >&5
19486
19487 ac_header_compiler=no
19488fi
19489
19490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19491{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19492$as_echo "$ac_header_compiler" >&6; }
19493
19494# Is the header present?
19495{ $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19496$as_echo_n "checking sys/cpustats.h presence... " >&6; }
19497cat >conftest.$ac_ext <<_ACEOF
19498/* confdefs.h. */
19499_ACEOF
19500cat confdefs.h >>conftest.$ac_ext
19501cat >>conftest.$ac_ext <<_ACEOF
19502/* end confdefs.h. */
19503#include <sys/cpustats.h>
19504_ACEOF
19505if { (ac_try="$ac_cpp conftest.$ac_ext"
19506case "(($ac_try" in
19507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508 *) ac_try_echo=$ac_try;;
19509esac
19510eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19511$as_echo "$ac_try_echo") >&5
19512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19513 ac_status=$?
19514 grep -v '^ *+' conftest.er1 >conftest.err
19515 rm -f conftest.er1
19516 cat conftest.err >&5
19517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); } >/dev/null && {
19519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19520 test ! -s conftest.err
19521 }; then
19522 ac_header_preproc=yes
19523else
19524 $as_echo "$as_me: failed program was:" >&5
19525sed 's/^/| /' conftest.$ac_ext >&5
19526
19527 ac_header_preproc=no
19528fi
19529
19530rm -f conftest.err conftest.$ac_ext
19531{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19532$as_echo "$ac_header_preproc" >&6; }
19533
19534# So? What about this header?
19535case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19536 yes:no: )
19537 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19538$as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19539 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19540$as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19541 ac_header_preproc=yes
19542 ;;
19543 no:yes:* )
19544 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19545$as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19546 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19547$as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19548 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19549$as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19550 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19551$as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19552 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19553$as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19554 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19555$as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19556
19557 ;;
19558esac
19559{ $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19560$as_echo_n "checking for sys/cpustats.h... " >&6; }
19561if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19562 $as_echo_n "(cached) " >&6
19563else
19564 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19565fi
19566{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19567$as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19568
19569fi
19570if test $ac_cv_header_sys_cpustats_h = yes; then
19571 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19572#define UMAX 1
19573_ACEOF
19574 11437
19575fi 11438fi
19576 11439
@@ -19578,145 +11441,12 @@ fi
19578fi 11441fi
19579 11442
19580if test $ac_have_func = no; then 11443if test $ac_have_func = no; then
19581 11444 for ac_header in mach/mach.h
19582for ac_header in mach/mach.h 11445do :
19583do 11446 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19584as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11447if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
19585if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19586 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19587$as_echo_n "checking for $ac_header... " >&6; }
19588if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19589 $as_echo_n "(cached) " >&6
19590fi
19591ac_res=`eval 'as_val=${'$as_ac_Header'}
19592 $as_echo "$as_val"'`
19593 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19594$as_echo "$ac_res" >&6; }
19595else
19596 # Is the header compilable?
19597{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19598$as_echo_n "checking $ac_header usability... " >&6; }
19599cat >conftest.$ac_ext <<_ACEOF
19600/* confdefs.h. */
19601_ACEOF
19602cat confdefs.h >>conftest.$ac_ext
19603cat >>conftest.$ac_ext <<_ACEOF
19604/* end confdefs.h. */
19605$ac_includes_default
19606#include <$ac_header>
19607_ACEOF
19608rm -f conftest.$ac_objext
19609if { (ac_try="$ac_compile"
19610case "(($ac_try" in
19611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19612 *) ac_try_echo=$ac_try;;
19613esac
19614eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19615$as_echo "$ac_try_echo") >&5
19616 (eval "$ac_compile") 2>conftest.er1
19617 ac_status=$?
19618 grep -v '^ *+' conftest.er1 >conftest.err
19619 rm -f conftest.er1
19620 cat conftest.err >&5
19621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); } && {
19623 test -z "$ac_c_werror_flag" ||
19624 test ! -s conftest.err
19625 } && test -s conftest.$ac_objext; then
19626 ac_header_compiler=yes
19627else
19628 $as_echo "$as_me: failed program was:" >&5
19629sed 's/^/| /' conftest.$ac_ext >&5
19630
19631 ac_header_compiler=no
19632fi
19633
19634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19635{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19636$as_echo "$ac_header_compiler" >&6; }
19637
19638# Is the header present?
19639{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19640$as_echo_n "checking $ac_header presence... " >&6; }
19641cat >conftest.$ac_ext <<_ACEOF
19642/* confdefs.h. */
19643_ACEOF
19644cat confdefs.h >>conftest.$ac_ext
19645cat >>conftest.$ac_ext <<_ACEOF
19646/* end confdefs.h. */
19647#include <$ac_header>
19648_ACEOF
19649if { (ac_try="$ac_cpp conftest.$ac_ext"
19650case "(($ac_try" in
19651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19652 *) ac_try_echo=$ac_try;;
19653esac
19654eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19655$as_echo "$ac_try_echo") >&5
19656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19657 ac_status=$?
19658 grep -v '^ *+' conftest.er1 >conftest.err
19659 rm -f conftest.er1
19660 cat conftest.err >&5
19661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); } >/dev/null && {
19663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19664 test ! -s conftest.err
19665 }; then
19666 ac_header_preproc=yes
19667else
19668 $as_echo "$as_me: failed program was:" >&5
19669sed 's/^/| /' conftest.$ac_ext >&5
19670
19671 ac_header_preproc=no
19672fi
19673
19674rm -f conftest.err conftest.$ac_ext
19675{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19676$as_echo "$ac_header_preproc" >&6; }
19677
19678# So? What about this header?
19679case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19680 yes:no: )
19681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19682$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19684$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19685 ac_header_preproc=yes
19686 ;;
19687 no:yes:* )
19688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19689$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19691$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19693$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19695$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19697$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19699$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19700
19701 ;;
19702esac
19703{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19704$as_echo_n "checking for $ac_header... " >&6; }
19705if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19706 $as_echo_n "(cached) " >&6
19707else
19708 eval "$as_ac_Header=\$ac_header_preproc"
19709fi
19710ac_res=`eval 'as_val=${'$as_ac_Header'}
19711 $as_echo "$as_val"'`
19712 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19713$as_echo "$ac_res" >&6; }
19714
19715fi
19716if test `eval 'as_val=${'$as_ac_Header'}
19717 $as_echo "$as_val"'` = yes; then
19718 cat >>confdefs.h <<_ACEOF 11448 cat >>confdefs.h <<_ACEOF
19719#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11449#define HAVE_MACH_MACH_H 1
19720_ACEOF 11450_ACEOF
19721 11451
19722fi 11452fi
@@ -19725,253 +11455,23 @@ done
19725 11455
19726fi 11456fi
19727 11457
19728
19729for ac_header in nlist.h 11458for ac_header in nlist.h
19730do 11459do :
19731as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11460 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
19732if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11461if test "x$ac_cv_header_nlist_h" = x""yes; then :
19733 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19734$as_echo_n "checking for $ac_header... " >&6; }
19735if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19736 $as_echo_n "(cached) " >&6
19737fi
19738ac_res=`eval 'as_val=${'$as_ac_Header'}
19739 $as_echo "$as_val"'`
19740 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19741$as_echo "$ac_res" >&6; }
19742else
19743 # Is the header compilable?
19744{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19745$as_echo_n "checking $ac_header usability... " >&6; }
19746cat >conftest.$ac_ext <<_ACEOF
19747/* confdefs.h. */
19748_ACEOF
19749cat confdefs.h >>conftest.$ac_ext
19750cat >>conftest.$ac_ext <<_ACEOF
19751/* end confdefs.h. */
19752$ac_includes_default
19753#include <$ac_header>
19754_ACEOF
19755rm -f conftest.$ac_objext
19756if { (ac_try="$ac_compile"
19757case "(($ac_try" in
19758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19759 *) ac_try_echo=$ac_try;;
19760esac
19761eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19762$as_echo "$ac_try_echo") >&5
19763 (eval "$ac_compile") 2>conftest.er1
19764 ac_status=$?
19765 grep -v '^ *+' conftest.er1 >conftest.err
19766 rm -f conftest.er1
19767 cat conftest.err >&5
19768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); } && {
19770 test -z "$ac_c_werror_flag" ||
19771 test ! -s conftest.err
19772 } && test -s conftest.$ac_objext; then
19773 ac_header_compiler=yes
19774else
19775 $as_echo "$as_me: failed program was:" >&5
19776sed 's/^/| /' conftest.$ac_ext >&5
19777
19778 ac_header_compiler=no
19779fi
19780
19781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19782{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19783$as_echo "$ac_header_compiler" >&6; }
19784
19785# Is the header present?
19786{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19787$as_echo_n "checking $ac_header presence... " >&6; }
19788cat >conftest.$ac_ext <<_ACEOF
19789/* confdefs.h. */
19790_ACEOF
19791cat confdefs.h >>conftest.$ac_ext
19792cat >>conftest.$ac_ext <<_ACEOF
19793/* end confdefs.h. */
19794#include <$ac_header>
19795_ACEOF
19796if { (ac_try="$ac_cpp conftest.$ac_ext"
19797case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19800esac
19801eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19802$as_echo "$ac_try_echo") >&5
19803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19804 ac_status=$?
19805 grep -v '^ *+' conftest.er1 >conftest.err
19806 rm -f conftest.er1
19807 cat conftest.err >&5
19808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); } >/dev/null && {
19810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19811 test ! -s conftest.err
19812 }; then
19813 ac_header_preproc=yes
19814else
19815 $as_echo "$as_me: failed program was:" >&5
19816sed 's/^/| /' conftest.$ac_ext >&5
19817
19818 ac_header_preproc=no
19819fi
19820
19821rm -f conftest.err conftest.$ac_ext
19822{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19823$as_echo "$ac_header_preproc" >&6; }
19824
19825# So? What about this header?
19826case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19827 yes:no: )
19828 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19829$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19831$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19832 ac_header_preproc=yes
19833 ;;
19834 no:yes:* )
19835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19836$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19838$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19840$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19842$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19844$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19846$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19847
19848 ;;
19849esac
19850{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19851$as_echo_n "checking for $ac_header... " >&6; }
19852if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19853 $as_echo_n "(cached) " >&6
19854else
19855 eval "$as_ac_Header=\$ac_header_preproc"
19856fi
19857ac_res=`eval 'as_val=${'$as_ac_Header'}
19858 $as_echo "$as_val"'`
19859 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19860$as_echo "$ac_res" >&6; }
19861
19862fi
19863if test `eval 'as_val=${'$as_ac_Header'}
19864 $as_echo "$as_val"'` = yes; then
19865 cat >>confdefs.h <<_ACEOF 11462 cat >>confdefs.h <<_ACEOF
19866#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11463#define HAVE_NLIST_H 1
19867_ACEOF
19868 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
19869$as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
19870if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19871 $as_echo_n "(cached) " >&6
19872else
19873 cat >conftest.$ac_ext <<_ACEOF
19874/* confdefs.h. */
19875_ACEOF
19876cat confdefs.h >>conftest.$ac_ext
19877cat >>conftest.$ac_ext <<_ACEOF
19878/* end confdefs.h. */
19879#include <nlist.h>
19880
19881int
19882main ()
19883{
19884static struct nlist ac_aggr;
19885if (ac_aggr.n_un.n_name)
19886return 0;
19887 ;
19888 return 0;
19889}
19890_ACEOF
19891rm -f conftest.$ac_objext
19892if { (ac_try="$ac_compile"
19893case "(($ac_try" in
19894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19895 *) ac_try_echo=$ac_try;;
19896esac
19897eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19898$as_echo "$ac_try_echo") >&5
19899 (eval "$ac_compile") 2>conftest.er1
19900 ac_status=$?
19901 grep -v '^ *+' conftest.er1 >conftest.err
19902 rm -f conftest.er1
19903 cat conftest.err >&5
19904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); } && {
19906 test -z "$ac_c_werror_flag" ||
19907 test ! -s conftest.err
19908 } && test -s conftest.$ac_objext; then
19909 ac_cv_member_struct_nlist_n_un_n_name=yes
19910else
19911 $as_echo "$as_me: failed program was:" >&5
19912sed 's/^/| /' conftest.$ac_ext >&5
19913
19914 cat >conftest.$ac_ext <<_ACEOF
19915/* confdefs.h. */
19916_ACEOF
19917cat confdefs.h >>conftest.$ac_ext
19918cat >>conftest.$ac_ext <<_ACEOF
19919/* end confdefs.h. */
19920#include <nlist.h>
19921
19922int
19923main ()
19924{
19925static struct nlist ac_aggr;
19926if (sizeof ac_aggr.n_un.n_name)
19927return 0;
19928 ;
19929 return 0;
19930}
19931_ACEOF 11464_ACEOF
19932rm -f conftest.$ac_objext 11465 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
19933if { (ac_try="$ac_compile" 11466"
19934case "(($ac_try" in 11467if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
19935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19936 *) ac_try_echo=$ac_try;;
19937esac
19938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19939$as_echo "$ac_try_echo") >&5
19940 (eval "$ac_compile") 2>conftest.er1
19941 ac_status=$?
19942 grep -v '^ *+' conftest.er1 >conftest.err
19943 rm -f conftest.er1
19944 cat conftest.err >&5
19945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); } && {
19947 test -z "$ac_c_werror_flag" ||
19948 test ! -s conftest.err
19949 } && test -s conftest.$ac_objext; then
19950 ac_cv_member_struct_nlist_n_un_n_name=yes
19951else
19952 $as_echo "$as_me: failed program was:" >&5
19953sed 's/^/| /' conftest.$ac_ext >&5
19954
19955 ac_cv_member_struct_nlist_n_un_n_name=no
19956fi
19957
19958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19959fi
19960
19961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19962fi
19963{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19964$as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19965if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19966 11468
19967cat >>confdefs.h <<_ACEOF 11469cat >>confdefs.h <<_ACEOF
19968#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 11470#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19969_ACEOF 11471_ACEOF
19970 11472
19971 11473
19972cat >>confdefs.h <<\_ACEOF 11474$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
19973#define NLIST_NAME_UNION 1
19974_ACEOF
19975 11475
19976fi 11476fi
19977 11477
@@ -19985,16 +11485,12 @@ done
19985 11485
19986 11486
19987# Some definitions of getloadavg require that the program be installed setgid. 11487# Some definitions of getloadavg require that the program be installed setgid.
19988{ $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5 11488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
19989$as_echo_n "checking whether getloadavg requires setgid... " >&6; } 11489$as_echo_n "checking whether getloadavg requires setgid... " >&6; }
19990if test "${ac_cv_func_getloadavg_setgid+set}" = set; then 11490if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
19991 $as_echo_n "(cached) " >&6 11491 $as_echo_n "(cached) " >&6
19992else 11492else
19993 cat >conftest.$ac_ext <<_ACEOF 11493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19994/* confdefs.h. */
19995_ACEOF
19996cat confdefs.h >>conftest.$ac_ext
19997cat >>conftest.$ac_ext <<_ACEOF
19998/* end confdefs.h. */ 11494/* end confdefs.h. */
19999#include "$srcdir/$ac_config_libobj_dir/getloadavg.c" 11495#include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
20000#ifdef LDAV_PRIVILEGED 11496#ifdef LDAV_PRIVILEGED
@@ -20002,7 +11498,7 @@ Yowza Am I SETGID yet
20002#endif 11498#endif
20003_ACEOF 11499_ACEOF
20004if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11500if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20005 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then 11501 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
20006 ac_cv_func_getloadavg_setgid=yes 11502 ac_cv_func_getloadavg_setgid=yes
20007else 11503else
20008 ac_cv_func_getloadavg_setgid=no 11504 ac_cv_func_getloadavg_setgid=no
@@ -20010,23 +11506,21 @@ fi
20010rm -f conftest* 11506rm -f conftest*
20011 11507
20012fi 11508fi
20013{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5 11509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
20014$as_echo "$ac_cv_func_getloadavg_setgid" >&6; } 11510$as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20015if test $ac_cv_func_getloadavg_setgid = yes; then 11511if test $ac_cv_func_getloadavg_setgid = yes; then
20016 NEED_SETGID=true 11512 NEED_SETGID=true
20017 11513
20018cat >>confdefs.h <<\_ACEOF 11514$as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
20019#define GETLOADAVG_PRIVILEGED 1
20020_ACEOF
20021 11515
20022else 11516else
20023 NEED_SETGID=false 11517 NEED_SETGID=false
20024fi 11518fi
20025 11519
20026if test $ac_cv_func_getloadavg_setgid = yes; then 11520if test $ac_cv_func_getloadavg_setgid = yes; then
20027 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5 11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
20028$as_echo_n "checking group of /dev/kmem... " >&6; } 11522$as_echo_n "checking group of /dev/kmem... " >&6; }
20029if test "${ac_cv_group_kmem+set}" = set; then 11523if test "${ac_cv_group_kmem+set}" = set; then :
20030 $as_echo_n "(cached) " >&6 11524 $as_echo_n "(cached) " >&6
20031else 11525else
20032 # On Solaris, /dev/kmem is a symlink. Get info on the real file. 11526 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
@@ -20039,7 +11533,7 @@ else
20039 / /s/.* //;p;'` 11533 / /s/.* //;p;'`
20040 11534
20041fi 11535fi
20042{ $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5 11536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
20043$as_echo "$ac_cv_group_kmem" >&6; } 11537$as_echo "$ac_cv_group_kmem" >&6; }
20044 KMEM_GROUP=$ac_cv_group_kmem 11538 KMEM_GROUP=$ac_cv_group_kmem
20045fi 11539fi
@@ -20052,17 +11546,13 @@ LIBS=$ac_save_LIBS
20052 11546
20053 11547
20054 11548
20055{ $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 11549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20056$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 11550$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20057if test "${ac_cv_sys_largefile_source+set}" = set; then 11551if test "${ac_cv_sys_largefile_source+set}" = set; then :
20058 $as_echo_n "(cached) " >&6 11552 $as_echo_n "(cached) " >&6
20059else 11553else
20060 while :; do 11554 while :; do
20061 cat >conftest.$ac_ext <<_ACEOF 11555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20062/* confdefs.h. */
20063_ACEOF
20064cat confdefs.h >>conftest.$ac_ext
20065cat >>conftest.$ac_ext <<_ACEOF
20066/* end confdefs.h. */ 11556/* end confdefs.h. */
20067#include <sys/types.h> /* for off_t */ 11557#include <sys/types.h> /* for off_t */
20068 #include <stdio.h> 11558 #include <stdio.h>
@@ -20075,43 +11565,12 @@ int (*fp) (FILE *, off_t, int) = fseeko;
20075 return 0; 11565 return 0;
20076} 11566}
20077_ACEOF 11567_ACEOF
20078rm -f conftest.$ac_objext conftest$ac_exeext 11568if ac_fn_c_try_link "$LINENO"; then :
20079if { (ac_try="$ac_link"
20080case "(($ac_try" in
20081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20082 *) ac_try_echo=$ac_try;;
20083esac
20084eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20085$as_echo "$ac_try_echo") >&5
20086 (eval "$ac_link") 2>conftest.er1
20087 ac_status=$?
20088 grep -v '^ *+' conftest.er1 >conftest.err
20089 rm -f conftest.er1
20090 cat conftest.err >&5
20091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); } && {
20093 test -z "$ac_c_werror_flag" ||
20094 test ! -s conftest.err
20095 } && test -s conftest$ac_exeext && {
20096 test "$cross_compiling" = yes ||
20097 $as_test_x conftest$ac_exeext
20098 }; then
20099 ac_cv_sys_largefile_source=no; break 11569 ac_cv_sys_largefile_source=no; break
20100else
20101 $as_echo "$as_me: failed program was:" >&5
20102sed 's/^/| /' conftest.$ac_ext >&5
20103
20104
20105fi 11570fi
20106 11571rm -f core conftest.err conftest.$ac_objext \
20107rm -rf conftest.dSYM 11572 conftest$ac_exeext conftest.$ac_ext
20108rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20109 conftest$ac_exeext conftest.$ac_ext
20110 cat >conftest.$ac_ext <<_ACEOF
20111/* confdefs.h. */
20112_ACEOF
20113cat confdefs.h >>conftest.$ac_ext
20114cat >>conftest.$ac_ext <<_ACEOF
20115/* end confdefs.h. */ 11574/* end confdefs.h. */
20116#define _LARGEFILE_SOURCE 1 11575#define _LARGEFILE_SOURCE 1
20117#include <sys/types.h> /* for off_t */ 11576#include <sys/types.h> /* for off_t */
@@ -20125,43 +11584,16 @@ int (*fp) (FILE *, off_t, int) = fseeko;
20125 return 0; 11584 return 0;
20126} 11585}
20127_ACEOF 11586_ACEOF
20128rm -f conftest.$ac_objext conftest$ac_exeext 11587if ac_fn_c_try_link "$LINENO"; then :
20129if { (ac_try="$ac_link"
20130case "(($ac_try" in
20131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20132 *) ac_try_echo=$ac_try;;
20133esac
20134eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20135$as_echo "$ac_try_echo") >&5
20136 (eval "$ac_link") 2>conftest.er1
20137 ac_status=$?
20138 grep -v '^ *+' conftest.er1 >conftest.err
20139 rm -f conftest.er1
20140 cat conftest.err >&5
20141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); } && {
20143 test -z "$ac_c_werror_flag" ||
20144 test ! -s conftest.err
20145 } && test -s conftest$ac_exeext && {
20146 test "$cross_compiling" = yes ||
20147 $as_test_x conftest$ac_exeext
20148 }; then
20149 ac_cv_sys_largefile_source=1; break 11588 ac_cv_sys_largefile_source=1; break
20150else
20151 $as_echo "$as_me: failed program was:" >&5
20152sed 's/^/| /' conftest.$ac_ext >&5
20153
20154
20155fi 11589fi
20156 11590rm -f core conftest.err conftest.$ac_objext \
20157rm -rf conftest.dSYM 11591 conftest$ac_exeext conftest.$ac_ext
20158rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20159 conftest$ac_exeext conftest.$ac_ext
20160 ac_cv_sys_largefile_source=unknown 11592 ac_cv_sys_largefile_source=unknown
20161 break 11593 break
20162done 11594done
20163fi 11595fi
20164{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 11596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
20165$as_echo "$ac_cv_sys_largefile_source" >&6; } 11597$as_echo "$ac_cv_sys_largefile_source" >&6; }
20166case $ac_cv_sys_largefile_source in #( 11598case $ac_cv_sys_largefile_source in #(
20167 no | unknown) ;; 11599 no | unknown) ;;
@@ -20178,9 +11610,7 @@ rm -rf conftest*
20178# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 11610# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20179if test $ac_cv_sys_largefile_source != unknown; then 11611if test $ac_cv_sys_largefile_source != unknown; then
20180 11612
20181cat >>confdefs.h <<\_ACEOF 11613$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
20182#define HAVE_FSEEKO 1
20183_ACEOF
20184 11614
20185fi 11615fi
20186 11616
@@ -20208,145 +11638,12 @@ fi
20208 11638
20209 11639
20210 GETOPT_H= 11640 GETOPT_H=
20211 11641 for ac_header in getopt.h
20212for ac_header in getopt.h 11642do :
20213do 11643 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
20214as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11644if test "x$ac_cv_header_getopt_h" = x""yes; then :
20215if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20216 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20217$as_echo_n "checking for $ac_header... " >&6; }
20218if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20219 $as_echo_n "(cached) " >&6
20220fi
20221ac_res=`eval 'as_val=${'$as_ac_Header'}
20222 $as_echo "$as_val"'`
20223 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20224$as_echo "$ac_res" >&6; }
20225else
20226 # Is the header compilable?
20227{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20228$as_echo_n "checking $ac_header usability... " >&6; }
20229cat >conftest.$ac_ext <<_ACEOF
20230/* confdefs.h. */
20231_ACEOF
20232cat confdefs.h >>conftest.$ac_ext
20233cat >>conftest.$ac_ext <<_ACEOF
20234/* end confdefs.h. */
20235$ac_includes_default
20236#include <$ac_header>
20237_ACEOF
20238rm -f conftest.$ac_objext
20239if { (ac_try="$ac_compile"
20240case "(($ac_try" in
20241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20242 *) ac_try_echo=$ac_try;;
20243esac
20244eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20245$as_echo "$ac_try_echo") >&5
20246 (eval "$ac_compile") 2>conftest.er1
20247 ac_status=$?
20248 grep -v '^ *+' conftest.er1 >conftest.err
20249 rm -f conftest.er1
20250 cat conftest.err >&5
20251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252 (exit $ac_status); } && {
20253 test -z "$ac_c_werror_flag" ||
20254 test ! -s conftest.err
20255 } && test -s conftest.$ac_objext; then
20256 ac_header_compiler=yes
20257else
20258 $as_echo "$as_me: failed program was:" >&5
20259sed 's/^/| /' conftest.$ac_ext >&5
20260
20261 ac_header_compiler=no
20262fi
20263
20264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20265{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20266$as_echo "$ac_header_compiler" >&6; }
20267
20268# Is the header present?
20269{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20270$as_echo_n "checking $ac_header presence... " >&6; }
20271cat >conftest.$ac_ext <<_ACEOF
20272/* confdefs.h. */
20273_ACEOF
20274cat confdefs.h >>conftest.$ac_ext
20275cat >>conftest.$ac_ext <<_ACEOF
20276/* end confdefs.h. */
20277#include <$ac_header>
20278_ACEOF
20279if { (ac_try="$ac_cpp conftest.$ac_ext"
20280case "(($ac_try" in
20281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282 *) ac_try_echo=$ac_try;;
20283esac
20284eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20285$as_echo "$ac_try_echo") >&5
20286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20287 ac_status=$?
20288 grep -v '^ *+' conftest.er1 >conftest.err
20289 rm -f conftest.er1
20290 cat conftest.err >&5
20291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); } >/dev/null && {
20293 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20294 test ! -s conftest.err
20295 }; then
20296 ac_header_preproc=yes
20297else
20298 $as_echo "$as_me: failed program was:" >&5
20299sed 's/^/| /' conftest.$ac_ext >&5
20300
20301 ac_header_preproc=no
20302fi
20303
20304rm -f conftest.err conftest.$ac_ext
20305{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20306$as_echo "$ac_header_preproc" >&6; }
20307
20308# So? What about this header?
20309case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20310 yes:no: )
20311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20312$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20314$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20315 ac_header_preproc=yes
20316 ;;
20317 no:yes:* )
20318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20319$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20321$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20323$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20325$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20327$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20329$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20330
20331 ;;
20332esac
20333{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20334$as_echo_n "checking for $ac_header... " >&6; }
20335if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20336 $as_echo_n "(cached) " >&6
20337else
20338 eval "$as_ac_Header=\$ac_header_preproc"
20339fi
20340ac_res=`eval 'as_val=${'$as_ac_Header'}
20341 $as_echo "$as_val"'`
20342 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20343$as_echo "$ac_res" >&6; }
20344
20345fi
20346if test `eval 'as_val=${'$as_ac_Header'}
20347 $as_echo "$as_val"'` = yes; then
20348 cat >>confdefs.h <<_ACEOF 11645 cat >>confdefs.h <<_ACEOF
20349#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11646#define HAVE_GETOPT_H 1
20350_ACEOF 11647_ACEOF
20351 11648
20352else 11649else
@@ -20356,101 +11653,12 @@ fi
20356done 11653done
20357 11654
20358 if test -z "$GETOPT_H"; then 11655 if test -z "$GETOPT_H"; then
20359 11656 for ac_func in getopt_long_only
20360for ac_func in getopt_long_only 11657do :
20361do 11658 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
20362as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11659if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
20363{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20364$as_echo_n "checking for $ac_func... " >&6; }
20365if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20366 $as_echo_n "(cached) " >&6
20367else
20368 cat >conftest.$ac_ext <<_ACEOF
20369/* confdefs.h. */
20370_ACEOF
20371cat confdefs.h >>conftest.$ac_ext
20372cat >>conftest.$ac_ext <<_ACEOF
20373/* end confdefs.h. */
20374/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20376#define $ac_func innocuous_$ac_func
20377
20378/* System header to define __stub macros and hopefully few prototypes,
20379 which can conflict with char $ac_func (); below.
20380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20381 <limits.h> exists even on freestanding compilers. */
20382
20383#ifdef __STDC__
20384# include <limits.h>
20385#else
20386# include <assert.h>
20387#endif
20388
20389#undef $ac_func
20390
20391/* Override any GCC internal prototype to avoid an error.
20392 Use char because int might match the return type of a GCC
20393 builtin and then its argument prototype would still apply. */
20394#ifdef __cplusplus
20395extern "C"
20396#endif
20397char $ac_func ();
20398/* The GNU C library defines this for functions which it implements
20399 to always fail with ENOSYS. Some functions are actually named
20400 something starting with __ and the normal name is an alias. */
20401#if defined __stub_$ac_func || defined __stub___$ac_func
20402choke me
20403#endif
20404
20405int
20406main ()
20407{
20408return $ac_func ();
20409 ;
20410 return 0;
20411}
20412_ACEOF
20413rm -f conftest.$ac_objext conftest$ac_exeext
20414if { (ac_try="$ac_link"
20415case "(($ac_try" in
20416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417 *) ac_try_echo=$ac_try;;
20418esac
20419eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20420$as_echo "$ac_try_echo") >&5
20421 (eval "$ac_link") 2>conftest.er1
20422 ac_status=$?
20423 grep -v '^ *+' conftest.er1 >conftest.err
20424 rm -f conftest.er1
20425 cat conftest.err >&5
20426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); } && {
20428 test -z "$ac_c_werror_flag" ||
20429 test ! -s conftest.err
20430 } && test -s conftest$ac_exeext && {
20431 test "$cross_compiling" = yes ||
20432 $as_test_x conftest$ac_exeext
20433 }; then
20434 eval "$as_ac_var=yes"
20435else
20436 $as_echo "$as_me: failed program was:" >&5
20437sed 's/^/| /' conftest.$ac_ext >&5
20438
20439 eval "$as_ac_var=no"
20440fi
20441
20442rm -rf conftest.dSYM
20443rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20444 conftest$ac_exeext conftest.$ac_ext
20445fi
20446ac_res=`eval 'as_val=${'$as_ac_var'}
20447 $as_echo "$as_val"'`
20448 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20449$as_echo "$ac_res" >&6; }
20450if test `eval 'as_val=${'$as_ac_var'}
20451 $as_echo "$as_val"'` = yes; then
20452 cat >>confdefs.h <<_ACEOF 11660 cat >>confdefs.h <<_ACEOF
20453#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11661#define HAVE_GETOPT_LONG_ONLY 1
20454_ACEOF 11662_ACEOF
20455 11663
20456else 11664else
@@ -20461,139 +11669,31 @@ done
20461 fi 11669 fi
20462 11670
20463 if test -z "$GETOPT_H"; then 11671 if test -z "$GETOPT_H"; then
20464 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5 11672 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
20465$as_echo_n "checking whether optreset is declared... " >&6; } 11673"
20466if test "${ac_cv_have_decl_optreset+set}" = set; then 11674if test "x$ac_cv_have_decl_optreset" = x""yes; then :
20467 $as_echo_n "(cached) " >&6
20468else
20469 cat >conftest.$ac_ext <<_ACEOF
20470/* confdefs.h. */
20471_ACEOF
20472cat confdefs.h >>conftest.$ac_ext
20473cat >>conftest.$ac_ext <<_ACEOF
20474/* end confdefs.h. */
20475#include <getopt.h>
20476
20477int
20478main ()
20479{
20480#ifndef optreset
20481 (void) optreset;
20482#endif
20483
20484 ;
20485 return 0;
20486}
20487_ACEOF
20488rm -f conftest.$ac_objext
20489if { (ac_try="$ac_compile"
20490case "(($ac_try" in
20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492 *) ac_try_echo=$ac_try;;
20493esac
20494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20495$as_echo "$ac_try_echo") >&5
20496 (eval "$ac_compile") 2>conftest.er1
20497 ac_status=$?
20498 grep -v '^ *+' conftest.er1 >conftest.err
20499 rm -f conftest.er1
20500 cat conftest.err >&5
20501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); } && {
20503 test -z "$ac_c_werror_flag" ||
20504 test ! -s conftest.err
20505 } && test -s conftest.$ac_objext; then
20506 ac_cv_have_decl_optreset=yes
20507else
20508 $as_echo "$as_me: failed program was:" >&5
20509sed 's/^/| /' conftest.$ac_ext >&5
20510
20511 ac_cv_have_decl_optreset=no
20512fi
20513
20514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20515fi
20516{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20517$as_echo "$ac_cv_have_decl_optreset" >&6; }
20518if test $ac_cv_have_decl_optreset = yes; then
20519 GETOPT_H=getopt.h 11675 GETOPT_H=getopt.h
20520fi 11676fi
20521 11677
20522 fi 11678 fi
20523 11679
20524 if test -z "$GETOPT_H"; then 11680 if test -z "$GETOPT_H"; then
20525 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5 11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
20526$as_echo_n "checking for working GNU getopt function... " >&6; } 11682$as_echo_n "checking for working GNU getopt function... " >&6; }
20527if test "${gl_cv_func_gnu_getopt+set}" = set; then 11683if test "${gl_cv_func_gnu_getopt+set}" = set; then :
20528 $as_echo_n "(cached) " >&6
20529else
20530 if test "$cross_compiling" = yes; then
20531 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20532$as_echo_n "checking whether getopt_clip is declared... " >&6; }
20533if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20534 $as_echo_n "(cached) " >&6 11684 $as_echo_n "(cached) " >&6
20535else 11685else
20536 cat >conftest.$ac_ext <<_ACEOF 11686 if test "$cross_compiling" = yes; then :
20537/* confdefs.h. */ 11687 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
20538_ACEOF 11688"
20539cat confdefs.h >>conftest.$ac_ext 11689if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
20540cat >>conftest.$ac_ext <<_ACEOF
20541/* end confdefs.h. */
20542#include <getopt.h>
20543
20544int
20545main ()
20546{
20547#ifndef getopt_clip
20548 (void) getopt_clip;
20549#endif
20550
20551 ;
20552 return 0;
20553}
20554_ACEOF
20555rm -f conftest.$ac_objext
20556if { (ac_try="$ac_compile"
20557case "(($ac_try" in
20558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559 *) ac_try_echo=$ac_try;;
20560esac
20561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20562$as_echo "$ac_try_echo") >&5
20563 (eval "$ac_compile") 2>conftest.er1
20564 ac_status=$?
20565 grep -v '^ *+' conftest.er1 >conftest.err
20566 rm -f conftest.er1
20567 cat conftest.err >&5
20568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); } && {
20570 test -z "$ac_c_werror_flag" ||
20571 test ! -s conftest.err
20572 } && test -s conftest.$ac_objext; then
20573 ac_cv_have_decl_getopt_clip=yes
20574else
20575 $as_echo "$as_me: failed program was:" >&5
20576sed 's/^/| /' conftest.$ac_ext >&5
20577
20578 ac_cv_have_decl_getopt_clip=no
20579fi
20580
20581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20582fi
20583{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20584$as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20585if test $ac_cv_have_decl_getopt_clip = yes; then
20586 gl_cv_func_gnu_getopt=no 11690 gl_cv_func_gnu_getopt=no
20587else 11691else
20588 gl_cv_func_gnu_getopt=yes 11692 gl_cv_func_gnu_getopt=yes
20589fi 11693fi
20590 11694
20591else 11695else
20592 cat >conftest.$ac_ext <<_ACEOF 11696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20593/* confdefs.h. */
20594_ACEOF
20595cat confdefs.h >>conftest.$ac_ext
20596cat >>conftest.$ac_ext <<_ACEOF
20597/* end confdefs.h. */ 11697/* end confdefs.h. */
20598#include <getopt.h> 11698#include <getopt.h>
20599int 11699int
@@ -20610,44 +11710,17 @@ main ()
20610 return 0; 11710 return 0;
20611} 11711}
20612_ACEOF 11712_ACEOF
20613rm -f conftest$ac_exeext 11713if ac_fn_c_try_run "$LINENO"; then :
20614if { (ac_try="$ac_link"
20615case "(($ac_try" in
20616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20617 *) ac_try_echo=$ac_try;;
20618esac
20619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20620$as_echo "$ac_try_echo") >&5
20621 (eval "$ac_link") 2>&5
20622 ac_status=$?
20623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20625 { (case "(($ac_try" in
20626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627 *) ac_try_echo=$ac_try;;
20628esac
20629eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20630$as_echo "$ac_try_echo") >&5
20631 (eval "$ac_try") 2>&5
20632 ac_status=$?
20633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); }; }; then
20635 gl_cv_func_gnu_getopt=yes 11714 gl_cv_func_gnu_getopt=yes
20636else 11715else
20637 $as_echo "$as_me: program exited with status $ac_status" >&5 11716 gl_cv_func_gnu_getopt=no
20638$as_echo "$as_me: failed program was:" >&5
20639sed 's/^/| /' conftest.$ac_ext >&5
20640
20641( exit $ac_status )
20642gl_cv_func_gnu_getopt=no
20643fi 11717fi
20644rm -rf conftest.dSYM 11718rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20645rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11719 conftest.$ac_objext conftest.beam conftest.$ac_ext
20646fi 11720fi
20647 11721
20648
20649fi 11722fi
20650{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5 11723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
20651$as_echo "$gl_cv_func_gnu_getopt" >&6; } 11724$as_echo "$gl_cv_func_gnu_getopt" >&6; }
20652 if test "$gl_cv_func_gnu_getopt" = "no"; then 11725 if test "$gl_cv_func_gnu_getopt" = "no"; then
20653 GETOPT_H=getopt.h 11726 GETOPT_H=getopt.h
@@ -20656,14 +11729,12 @@ $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20656 11729
20657 11730
20658 11731
20659 if test -n "$GETOPT_H"; then 11732 if test -n "$GETOPT_H"; then :
20660 11733
20661 11734
20662 GETOPT_H=getopt.h 11735 GETOPT_H=getopt.h
20663 11736
20664cat >>confdefs.h <<\_ACEOF 11737$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
20665#define __GETOPT_PREFIX rpl_
20666_ACEOF
20667 11738
20668 11739
20669 11740
@@ -20674,18 +11745,13 @@ fi
20674 11745
20675 11746
20676 11747
20677 11748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
20678{ $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20679$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } 11749$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20680if test "${ac_cv_func_getpgrp_void+set}" = set; then 11750if test "${ac_cv_func_getpgrp_void+set}" = set; then :
20681 $as_echo_n "(cached) " >&6 11751 $as_echo_n "(cached) " >&6
20682else 11752else
20683 # Use it with a single arg. 11753 # Use it with a single arg.
20684cat >conftest.$ac_ext <<_ACEOF 11754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20685/* confdefs.h. */
20686_ACEOF
20687cat confdefs.h >>conftest.$ac_ext
20688cat >>conftest.$ac_ext <<_ACEOF
20689/* end confdefs.h. */ 11755/* end confdefs.h. */
20690$ac_includes_default 11756$ac_includes_default
20691int 11757int
@@ -20696,157 +11762,41 @@ getpgrp (0);
20696 return 0; 11762 return 0;
20697} 11763}
20698_ACEOF 11764_ACEOF
20699rm -f conftest.$ac_objext 11765if ac_fn_c_try_compile "$LINENO"; then :
20700if { (ac_try="$ac_compile"
20701case "(($ac_try" in
20702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20703 *) ac_try_echo=$ac_try;;
20704esac
20705eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20706$as_echo "$ac_try_echo") >&5
20707 (eval "$ac_compile") 2>conftest.er1
20708 ac_status=$?
20709 grep -v '^ *+' conftest.er1 >conftest.err
20710 rm -f conftest.er1
20711 cat conftest.err >&5
20712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); } && {
20714 test -z "$ac_c_werror_flag" ||
20715 test ! -s conftest.err
20716 } && test -s conftest.$ac_objext; then
20717 ac_cv_func_getpgrp_void=no 11766 ac_cv_func_getpgrp_void=no
20718else 11767else
20719 $as_echo "$as_me: failed program was:" >&5 11768 ac_cv_func_getpgrp_void=yes
20720sed 's/^/| /' conftest.$ac_ext >&5
20721
20722 ac_cv_func_getpgrp_void=yes
20723fi 11769fi
20724
20725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20726 11771
20727fi 11772fi
20728{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 11773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
20729$as_echo "$ac_cv_func_getpgrp_void" >&6; } 11774$as_echo "$ac_cv_func_getpgrp_void" >&6; }
20730if test $ac_cv_func_getpgrp_void = yes; then 11775if test $ac_cv_func_getpgrp_void = yes; then
20731 11776
20732cat >>confdefs.h <<\_ACEOF 11777$as_echo "#define GETPGRP_VOID 1" >>confdefs.h
20733#define GETPGRP_VOID 1
20734_ACEOF
20735 11778
20736fi 11779fi
20737 11780
20738 11781
20739
20740for ac_func in strftime 11782for ac_func in strftime
20741do 11783do :
20742as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11784 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
20743{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 11785if test "x$ac_cv_func_strftime" = x""yes; then :
20744$as_echo_n "checking for $ac_func... " >&6; }
20745if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20746 $as_echo_n "(cached) " >&6
20747else
20748 cat >conftest.$ac_ext <<_ACEOF
20749/* confdefs.h. */
20750_ACEOF
20751cat confdefs.h >>conftest.$ac_ext
20752cat >>conftest.$ac_ext <<_ACEOF
20753/* end confdefs.h. */
20754/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20756#define $ac_func innocuous_$ac_func
20757
20758/* System header to define __stub macros and hopefully few prototypes,
20759 which can conflict with char $ac_func (); below.
20760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20761 <limits.h> exists even on freestanding compilers. */
20762
20763#ifdef __STDC__
20764# include <limits.h>
20765#else
20766# include <assert.h>
20767#endif
20768
20769#undef $ac_func
20770
20771/* Override any GCC internal prototype to avoid an error.
20772 Use char because int might match the return type of a GCC
20773 builtin and then its argument prototype would still apply. */
20774#ifdef __cplusplus
20775extern "C"
20776#endif
20777char $ac_func ();
20778/* The GNU C library defines this for functions which it implements
20779 to always fail with ENOSYS. Some functions are actually named
20780 something starting with __ and the normal name is an alias. */
20781#if defined __stub_$ac_func || defined __stub___$ac_func
20782choke me
20783#endif
20784
20785int
20786main ()
20787{
20788return $ac_func ();
20789 ;
20790 return 0;
20791}
20792_ACEOF
20793rm -f conftest.$ac_objext conftest$ac_exeext
20794if { (ac_try="$ac_link"
20795case "(($ac_try" in
20796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797 *) ac_try_echo=$ac_try;;
20798esac
20799eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20800$as_echo "$ac_try_echo") >&5
20801 (eval "$ac_link") 2>conftest.er1
20802 ac_status=$?
20803 grep -v '^ *+' conftest.er1 >conftest.err
20804 rm -f conftest.er1
20805 cat conftest.err >&5
20806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); } && {
20808 test -z "$ac_c_werror_flag" ||
20809 test ! -s conftest.err
20810 } && test -s conftest$ac_exeext && {
20811 test "$cross_compiling" = yes ||
20812 $as_test_x conftest$ac_exeext
20813 }; then
20814 eval "$as_ac_var=yes"
20815else
20816 $as_echo "$as_me: failed program was:" >&5
20817sed 's/^/| /' conftest.$ac_ext >&5
20818
20819 eval "$as_ac_var=no"
20820fi
20821
20822rm -rf conftest.dSYM
20823rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20824 conftest$ac_exeext conftest.$ac_ext
20825fi
20826ac_res=`eval 'as_val=${'$as_ac_var'}
20827 $as_echo "$as_val"'`
20828 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20829$as_echo "$ac_res" >&6; }
20830if test `eval 'as_val=${'$as_ac_var'}
20831 $as_echo "$as_val"'` = yes; then
20832 cat >>confdefs.h <<_ACEOF 11786 cat >>confdefs.h <<_ACEOF
20833#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11787#define HAVE_STRFTIME 1
20834_ACEOF 11788_ACEOF
20835 11789
20836else 11790else
20837 # strftime is in -lintl on SCO UNIX. 11791 # strftime is in -lintl on SCO UNIX.
20838{ $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 11792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
20839$as_echo_n "checking for strftime in -lintl... " >&6; } 11793$as_echo_n "checking for strftime in -lintl... " >&6; }
20840if test "${ac_cv_lib_intl_strftime+set}" = set; then 11794if test "${ac_cv_lib_intl_strftime+set}" = set; then :
20841 $as_echo_n "(cached) " >&6 11795 $as_echo_n "(cached) " >&6
20842else 11796else
20843 ac_check_lib_save_LIBS=$LIBS 11797 ac_check_lib_save_LIBS=$LIBS
20844LIBS="-lintl $LIBS" 11798LIBS="-lintl $LIBS"
20845cat >conftest.$ac_ext <<_ACEOF 11799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20846/* confdefs.h. */
20847_ACEOF
20848cat confdefs.h >>conftest.$ac_ext
20849cat >>conftest.$ac_ext <<_ACEOF
20850/* end confdefs.h. */ 11800/* end confdefs.h. */
20851 11801
20852/* Override any GCC internal prototype to avoid an error. 11802/* Override any GCC internal prototype to avoid an error.
@@ -20864,46 +11814,19 @@ return strftime ();
20864 return 0; 11814 return 0;
20865} 11815}
20866_ACEOF 11816_ACEOF
20867rm -f conftest.$ac_objext conftest$ac_exeext 11817if ac_fn_c_try_link "$LINENO"; then :
20868if { (ac_try="$ac_link"
20869case "(($ac_try" in
20870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20871 *) ac_try_echo=$ac_try;;
20872esac
20873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20874$as_echo "$ac_try_echo") >&5
20875 (eval "$ac_link") 2>conftest.er1
20876 ac_status=$?
20877 grep -v '^ *+' conftest.er1 >conftest.err
20878 rm -f conftest.er1
20879 cat conftest.err >&5
20880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); } && {
20882 test -z "$ac_c_werror_flag" ||
20883 test ! -s conftest.err
20884 } && test -s conftest$ac_exeext && {
20885 test "$cross_compiling" = yes ||
20886 $as_test_x conftest$ac_exeext
20887 }; then
20888 ac_cv_lib_intl_strftime=yes 11818 ac_cv_lib_intl_strftime=yes
20889else 11819else
20890 $as_echo "$as_me: failed program was:" >&5 11820 ac_cv_lib_intl_strftime=no
20891sed 's/^/| /' conftest.$ac_ext >&5
20892
20893 ac_cv_lib_intl_strftime=no
20894fi 11821fi
20895 11822rm -f core conftest.err conftest.$ac_objext \
20896rm -rf conftest.dSYM 11823 conftest$ac_exeext conftest.$ac_ext
20897rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20898 conftest$ac_exeext conftest.$ac_ext
20899LIBS=$ac_check_lib_save_LIBS 11824LIBS=$ac_check_lib_save_LIBS
20900fi 11825fi
20901{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 11826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
20902$as_echo "$ac_cv_lib_intl_strftime" >&6; } 11827$as_echo "$ac_cv_lib_intl_strftime" >&6; }
20903if test $ac_cv_lib_intl_strftime = yes; then 11828if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
20904 cat >>confdefs.h <<\_ACEOF 11829 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
20905#define HAVE_STRFTIME 1
20906_ACEOF
20907 11830
20908LIBS="-lintl $LIBS" 11831LIBS="-lintl $LIBS"
20909fi 11832fi
@@ -20913,101 +11836,12 @@ done
20913 11836
20914 11837
20915# UNIX98 PTYs. 11838# UNIX98 PTYs.
20916
20917for ac_func in grantpt 11839for ac_func in grantpt
20918do 11840do :
20919as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11841 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
20920{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 11842if test "x$ac_cv_func_grantpt" = x""yes; then :
20921$as_echo_n "checking for $ac_func... " >&6; }
20922if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20923 $as_echo_n "(cached) " >&6
20924else
20925 cat >conftest.$ac_ext <<_ACEOF
20926/* confdefs.h. */
20927_ACEOF
20928cat confdefs.h >>conftest.$ac_ext
20929cat >>conftest.$ac_ext <<_ACEOF
20930/* end confdefs.h. */
20931/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20933#define $ac_func innocuous_$ac_func
20934
20935/* System header to define __stub macros and hopefully few prototypes,
20936 which can conflict with char $ac_func (); below.
20937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20938 <limits.h> exists even on freestanding compilers. */
20939
20940#ifdef __STDC__
20941# include <limits.h>
20942#else
20943# include <assert.h>
20944#endif
20945
20946#undef $ac_func
20947
20948/* Override any GCC internal prototype to avoid an error.
20949 Use char because int might match the return type of a GCC
20950 builtin and then its argument prototype would still apply. */
20951#ifdef __cplusplus
20952extern "C"
20953#endif
20954char $ac_func ();
20955/* The GNU C library defines this for functions which it implements
20956 to always fail with ENOSYS. Some functions are actually named
20957 something starting with __ and the normal name is an alias. */
20958#if defined __stub_$ac_func || defined __stub___$ac_func
20959choke me
20960#endif
20961
20962int
20963main ()
20964{
20965return $ac_func ();
20966 ;
20967 return 0;
20968}
20969_ACEOF
20970rm -f conftest.$ac_objext conftest$ac_exeext
20971if { (ac_try="$ac_link"
20972case "(($ac_try" in
20973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20974 *) ac_try_echo=$ac_try;;
20975esac
20976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20977$as_echo "$ac_try_echo") >&5
20978 (eval "$ac_link") 2>conftest.er1
20979 ac_status=$?
20980 grep -v '^ *+' conftest.er1 >conftest.err
20981 rm -f conftest.er1
20982 cat conftest.err >&5
20983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); } && {
20985 test -z "$ac_c_werror_flag" ||
20986 test ! -s conftest.err
20987 } && test -s conftest$ac_exeext && {
20988 test "$cross_compiling" = yes ||
20989 $as_test_x conftest$ac_exeext
20990 }; then
20991 eval "$as_ac_var=yes"
20992else
20993 $as_echo "$as_me: failed program was:" >&5
20994sed 's/^/| /' conftest.$ac_ext >&5
20995
20996 eval "$as_ac_var=no"
20997fi
20998
20999rm -rf conftest.dSYM
21000rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21001 conftest$ac_exeext conftest.$ac_ext
21002fi
21003ac_res=`eval 'as_val=${'$as_ac_var'}
21004 $as_echo "$as_val"'`
21005 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21006$as_echo "$ac_res" >&6; }
21007if test `eval 'as_val=${'$as_ac_var'}
21008 $as_echo "$as_val"'` = yes; then
21009 cat >>confdefs.h <<_ACEOF 11843 cat >>confdefs.h <<_ACEOF
21010#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11844#define HAVE_GRANTPT 1
21011_ACEOF 11845_ACEOF
21012 11846
21013fi 11847fi
@@ -21015,101 +11849,12 @@ done
21015 11849
21016 11850
21017# PTY-related GNU extensions. 11851# PTY-related GNU extensions.
21018
21019for ac_func in getpt 11852for ac_func in getpt
21020do 11853do :
21021as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11854 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
21022{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 11855if test "x$ac_cv_func_getpt" = x""yes; then :
21023$as_echo_n "checking for $ac_func... " >&6; }
21024if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21025 $as_echo_n "(cached) " >&6
21026else
21027 cat >conftest.$ac_ext <<_ACEOF
21028/* confdefs.h. */
21029_ACEOF
21030cat confdefs.h >>conftest.$ac_ext
21031cat >>conftest.$ac_ext <<_ACEOF
21032/* end confdefs.h. */
21033/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21035#define $ac_func innocuous_$ac_func
21036
21037/* System header to define __stub macros and hopefully few prototypes,
21038 which can conflict with char $ac_func (); below.
21039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21040 <limits.h> exists even on freestanding compilers. */
21041
21042#ifdef __STDC__
21043# include <limits.h>
21044#else
21045# include <assert.h>
21046#endif
21047
21048#undef $ac_func
21049
21050/* Override any GCC internal prototype to avoid an error.
21051 Use char because int might match the return type of a GCC
21052 builtin and then its argument prototype would still apply. */
21053#ifdef __cplusplus
21054extern "C"
21055#endif
21056char $ac_func ();
21057/* The GNU C library defines this for functions which it implements
21058 to always fail with ENOSYS. Some functions are actually named
21059 something starting with __ and the normal name is an alias. */
21060#if defined __stub_$ac_func || defined __stub___$ac_func
21061choke me
21062#endif
21063
21064int
21065main ()
21066{
21067return $ac_func ();
21068 ;
21069 return 0;
21070}
21071_ACEOF
21072rm -f conftest.$ac_objext conftest$ac_exeext
21073if { (ac_try="$ac_link"
21074case "(($ac_try" in
21075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21076 *) ac_try_echo=$ac_try;;
21077esac
21078eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21079$as_echo "$ac_try_echo") >&5
21080 (eval "$ac_link") 2>conftest.er1
21081 ac_status=$?
21082 grep -v '^ *+' conftest.er1 >conftest.err
21083 rm -f conftest.er1
21084 cat conftest.err >&5
21085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); } && {
21087 test -z "$ac_c_werror_flag" ||
21088 test ! -s conftest.err
21089 } && test -s conftest$ac_exeext && {
21090 test "$cross_compiling" = yes ||
21091 $as_test_x conftest$ac_exeext
21092 }; then
21093 eval "$as_ac_var=yes"
21094else
21095 $as_echo "$as_me: failed program was:" >&5
21096sed 's/^/| /' conftest.$ac_ext >&5
21097
21098 eval "$as_ac_var=no"
21099fi
21100
21101rm -rf conftest.dSYM
21102rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21103 conftest$ac_exeext conftest.$ac_ext
21104fi
21105ac_res=`eval 'as_val=${'$as_ac_var'}
21106 $as_echo "$as_val"'`
21107 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21108$as_echo "$ac_res" >&6; }
21109if test `eval 'as_val=${'$as_ac_var'}
21110 $as_echo "$as_val"'` = yes; then
21111 cat >>confdefs.h <<_ACEOF 11856 cat >>confdefs.h <<_ACEOF
21112#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11857#define HAVE_GETPT 1
21113_ACEOF 11858_ACEOF
21114 11859
21115fi 11860fi
@@ -21122,17 +11867,13 @@ done
21122# than to expect to find it in ncurses. 11867# than to expect to find it in ncurses.
21123# Also we need tputs and frieds to be able to build at all. 11868# Also we need tputs and frieds to be able to build at all.
21124have_tputs_et_al=true 11869have_tputs_et_al=true
21125{ $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5 11870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
21126$as_echo_n "checking for library containing tputs... " >&6; } 11871$as_echo_n "checking for library containing tputs... " >&6; }
21127if test "${ac_cv_search_tputs+set}" = set; then 11872if test "${ac_cv_search_tputs+set}" = set; then :
21128 $as_echo_n "(cached) " >&6 11873 $as_echo_n "(cached) " >&6
21129else 11874else
21130 ac_func_search_save_LIBS=$LIBS 11875 ac_func_search_save_LIBS=$LIBS
21131cat >conftest.$ac_ext <<_ACEOF 11876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21132/* confdefs.h. */
21133_ACEOF
21134cat confdefs.h >>conftest.$ac_ext
21135cat >>conftest.$ac_ext <<_ACEOF
21136/* end confdefs.h. */ 11877/* end confdefs.h. */
21137 11878
21138/* Override any GCC internal prototype to avoid an error. 11879/* Override any GCC internal prototype to avoid an error.
@@ -21157,54 +11898,27 @@ for ac_lib in '' ncurses terminfo termcap; do
21157 ac_res=-l$ac_lib 11898 ac_res=-l$ac_lib
21158 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11899 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21159 fi 11900 fi
21160 rm -f conftest.$ac_objext conftest$ac_exeext 11901 if ac_fn_c_try_link "$LINENO"; then :
21161if { (ac_try="$ac_link"
21162case "(($ac_try" in
21163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21164 *) ac_try_echo=$ac_try;;
21165esac
21166eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21167$as_echo "$ac_try_echo") >&5
21168 (eval "$ac_link") 2>conftest.er1
21169 ac_status=$?
21170 grep -v '^ *+' conftest.er1 >conftest.err
21171 rm -f conftest.er1
21172 cat conftest.err >&5
21173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); } && {
21175 test -z "$ac_c_werror_flag" ||
21176 test ! -s conftest.err
21177 } && test -s conftest$ac_exeext && {
21178 test "$cross_compiling" = yes ||
21179 $as_test_x conftest$ac_exeext
21180 }; then
21181 ac_cv_search_tputs=$ac_res 11902 ac_cv_search_tputs=$ac_res
21182else
21183 $as_echo "$as_me: failed program was:" >&5
21184sed 's/^/| /' conftest.$ac_ext >&5
21185
21186
21187fi 11903fi
21188 11904rm -f core conftest.err conftest.$ac_objext \
21189rm -rf conftest.dSYM 11905 conftest$ac_exeext
21190rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11906 if test "${ac_cv_search_tputs+set}" = set; then :
21191 conftest$ac_exeext
21192 if test "${ac_cv_search_tputs+set}" = set; then
21193 break 11907 break
21194fi 11908fi
21195done 11909done
21196if test "${ac_cv_search_tputs+set}" = set; then 11910if test "${ac_cv_search_tputs+set}" = set; then :
21197 : 11911
21198else 11912else
21199 ac_cv_search_tputs=no 11913 ac_cv_search_tputs=no
21200fi 11914fi
21201rm conftest.$ac_ext 11915rm conftest.$ac_ext
21202LIBS=$ac_func_search_save_LIBS 11916LIBS=$ac_func_search_save_LIBS
21203fi 11917fi
21204{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5 11918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
21205$as_echo "$ac_cv_search_tputs" >&6; } 11919$as_echo "$ac_cv_search_tputs" >&6; }
21206ac_res=$ac_cv_search_tputs 11920ac_res=$ac_cv_search_tputs
21207if test "$ac_res" != no; then 11921if test "$ac_res" != no; then :
21208 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11922 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21209 11923
21210else 11924else
@@ -21212,29 +11926,19 @@ else
21212fi 11926fi
21213 11927
21214if test "$have_tputs_et_al" != true; then 11928if test "$have_tputs_et_al" != true; then
21215 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends). 11929 as_fn_error "I couldn't find termcap functions (tputs and friends).
21216Maybe some development libraries/packages are missing? Try installing
21217libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21218$as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21219Maybe some development libraries/packages are missing? Try installing 11930Maybe some development libraries/packages are missing? Try installing
21220libncurses-dev(el), libterminfo-dev(el) or similar." >&2;} 11931libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
21221 { (exit 1); exit 1; }; }
21222fi 11932fi
21223# Must define this when any termcap library is found. 11933# Must define this when any termcap library is found.
21224 11934
21225cat >>confdefs.h <<\_ACEOF 11935$as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
21226#define HAVE_LIBNCURSES 1
21227_ACEOF
21228 11936
21229 11937
21230# Do we have res_init, for detecting changes in /etc/resolv.conf? 11938# Do we have res_init, for detecting changes in /etc/resolv.conf?
21231 11939
21232resolv=no 11940resolv=no
21233cat >conftest.$ac_ext <<_ACEOF 11941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21234/* confdefs.h. */
21235_ACEOF
21236cat confdefs.h >>conftest.$ac_ext
21237cat >>conftest.$ac_ext <<_ACEOF
21238/* end confdefs.h. */ 11942/* end confdefs.h. */
21239#include <netinet/in.h> 11943#include <netinet/in.h>
21240#include <arpa/nameser.h> 11944#include <arpa/nameser.h>
@@ -21247,48 +11951,19 @@ return res_init();
21247 return 0; 11951 return 0;
21248} 11952}
21249_ACEOF 11953_ACEOF
21250rm -f conftest.$ac_objext conftest$ac_exeext 11954if ac_fn_c_try_link "$LINENO"; then :
21251if { (ac_try="$ac_link"
21252case "(($ac_try" in
21253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254 *) ac_try_echo=$ac_try;;
21255esac
21256eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21257$as_echo "$ac_try_echo") >&5
21258 (eval "$ac_link") 2>conftest.er1
21259 ac_status=$?
21260 grep -v '^ *+' conftest.er1 >conftest.err
21261 rm -f conftest.er1
21262 cat conftest.err >&5
21263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); } && {
21265 test -z "$ac_c_werror_flag" ||
21266 test ! -s conftest.err
21267 } && test -s conftest$ac_exeext && {
21268 test "$cross_compiling" = yes ||
21269 $as_test_x conftest$ac_exeext
21270 }; then
21271 have_res_init=yes 11955 have_res_init=yes
21272else 11956else
21273 $as_echo "$as_me: failed program was:" >&5 11957 have_res_init=no
21274sed 's/^/| /' conftest.$ac_ext >&5
21275
21276 have_res_init=no
21277fi 11958fi
21278 11959rm -f core conftest.err conftest.$ac_objext \
21279rm -rf conftest.dSYM 11960 conftest$ac_exeext conftest.$ac_ext
21280rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21281 conftest$ac_exeext conftest.$ac_ext
21282if test "$have_res_init" = no; then 11961if test "$have_res_init" = no; then
21283 OLIBS="$LIBS" 11962 OLIBS="$LIBS"
21284 LIBS="$LIBS -lresolv" 11963 LIBS="$LIBS -lresolv"
21285 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5 11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
21286$as_echo_n "checking for res_init with -lresolv... " >&6; } 11965$as_echo_n "checking for res_init with -lresolv... " >&6; }
21287 cat >conftest.$ac_ext <<_ACEOF 11966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21288/* confdefs.h. */
21289_ACEOF
21290cat confdefs.h >>conftest.$ac_ext
21291cat >>conftest.$ac_ext <<_ACEOF
21292/* end confdefs.h. */ 11967/* end confdefs.h. */
21293#include <netinet/in.h> 11968#include <netinet/in.h>
21294#include <arpa/nameser.h> 11969#include <arpa/nameser.h>
@@ -21301,39 +11976,14 @@ return res_init();
21301 return 0; 11976 return 0;
21302} 11977}
21303_ACEOF 11978_ACEOF
21304rm -f conftest.$ac_objext conftest$ac_exeext 11979if ac_fn_c_try_link "$LINENO"; then :
21305if { (ac_try="$ac_link"
21306case "(($ac_try" in
21307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21308 *) ac_try_echo=$ac_try;;
21309esac
21310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21311$as_echo "$ac_try_echo") >&5
21312 (eval "$ac_link") 2>conftest.er1
21313 ac_status=$?
21314 grep -v '^ *+' conftest.er1 >conftest.err
21315 rm -f conftest.er1
21316 cat conftest.err >&5
21317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); } && {
21319 test -z "$ac_c_werror_flag" ||
21320 test ! -s conftest.err
21321 } && test -s conftest$ac_exeext && {
21322 test "$cross_compiling" = yes ||
21323 $as_test_x conftest$ac_exeext
21324 }; then
21325 have_res_init=yes 11980 have_res_init=yes
21326else 11981else
21327 $as_echo "$as_me: failed program was:" >&5 11982 have_res_init=no
21328sed 's/^/| /' conftest.$ac_ext >&5
21329
21330 have_res_init=no
21331fi 11983fi
21332 11984rm -f core conftest.err conftest.$ac_objext \
21333rm -rf conftest.dSYM 11985 conftest$ac_exeext conftest.$ac_ext
21334rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
21335 conftest$ac_exeext conftest.$ac_ext
21336 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
21337$as_echo "$have_res_init" >&6; } 11987$as_echo "$have_res_init" >&6; }
21338 if test "$have_res_init" = yes ; then 11988 if test "$have_res_init" = yes ; then
21339 resolv=yes 11989 resolv=yes
@@ -21343,9 +11993,7 @@ fi
21343 11993
21344if test "$have_res_init" = yes; then 11994if test "$have_res_init" = yes; then
21345 11995
21346cat >>confdefs.h <<\_ACEOF 11996$as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
21347#define HAVE_RES_INIT 1
21348_ACEOF
21349 11997
21350fi 11998fi
21351 11999
@@ -21353,194 +12001,22 @@ fi
21353LIBHESIOD= 12001LIBHESIOD=
21354if test "$with_hesiod" != no ; then 12002if test "$with_hesiod" != no ; then
21355 # Don't set $LIBS here -- see comments above. FIXME which comments? 12003 # Don't set $LIBS here -- see comments above. FIXME which comments?
21356 { $as_echo "$as_me:$LINENO: checking for res_send" >&5 12004 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
21357$as_echo_n "checking for res_send... " >&6; } 12005if test "x$ac_cv_func_res_send" = x""yes; then :
21358if test "${ac_cv_func_res_send+set}" = set; then
21359 $as_echo_n "(cached) " >&6
21360else
21361 cat >conftest.$ac_ext <<_ACEOF
21362/* confdefs.h. */
21363_ACEOF
21364cat confdefs.h >>conftest.$ac_ext
21365cat >>conftest.$ac_ext <<_ACEOF
21366/* end confdefs.h. */
21367/* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21369#define res_send innocuous_res_send
21370
21371/* System header to define __stub macros and hopefully few prototypes,
21372 which can conflict with char res_send (); below.
21373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21374 <limits.h> exists even on freestanding compilers. */
21375
21376#ifdef __STDC__
21377# include <limits.h>
21378#else
21379# include <assert.h>
21380#endif
21381
21382#undef res_send
21383
21384/* Override any GCC internal prototype to avoid an error.
21385 Use char because int might match the return type of a GCC
21386 builtin and then its argument prototype would still apply. */
21387#ifdef __cplusplus
21388extern "C"
21389#endif
21390char res_send ();
21391/* The GNU C library defines this for functions which it implements
21392 to always fail with ENOSYS. Some functions are actually named
21393 something starting with __ and the normal name is an alias. */
21394#if defined __stub_res_send || defined __stub___res_send
21395choke me
21396#endif
21397
21398int
21399main ()
21400{
21401return res_send ();
21402 ;
21403 return 0;
21404}
21405_ACEOF
21406rm -f conftest.$ac_objext conftest$ac_exeext
21407if { (ac_try="$ac_link"
21408case "(($ac_try" in
21409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21410 *) ac_try_echo=$ac_try;;
21411esac
21412eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21413$as_echo "$ac_try_echo") >&5
21414 (eval "$ac_link") 2>conftest.er1
21415 ac_status=$?
21416 grep -v '^ *+' conftest.er1 >conftest.err
21417 rm -f conftest.er1
21418 cat conftest.err >&5
21419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); } && {
21421 test -z "$ac_c_werror_flag" ||
21422 test ! -s conftest.err
21423 } && test -s conftest$ac_exeext && {
21424 test "$cross_compiling" = yes ||
21425 $as_test_x conftest$ac_exeext
21426 }; then
21427 ac_cv_func_res_send=yes
21428else
21429 $as_echo "$as_me: failed program was:" >&5
21430sed 's/^/| /' conftest.$ac_ext >&5
21431
21432 ac_cv_func_res_send=no
21433fi
21434
21435rm -rf conftest.dSYM
21436rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21437 conftest$ac_exeext conftest.$ac_ext
21438fi
21439{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21440$as_echo "$ac_cv_func_res_send" >&6; }
21441if test $ac_cv_func_res_send = yes; then
21442 :
21443else
21444 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21445$as_echo_n "checking for __res_send... " >&6; }
21446if test "${ac_cv_func___res_send+set}" = set; then
21447 $as_echo_n "(cached) " >&6
21448else
21449 cat >conftest.$ac_ext <<_ACEOF
21450/* confdefs.h. */
21451_ACEOF
21452cat confdefs.h >>conftest.$ac_ext
21453cat >>conftest.$ac_ext <<_ACEOF
21454/* end confdefs.h. */
21455/* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21457#define __res_send innocuous___res_send
21458
21459/* System header to define __stub macros and hopefully few prototypes,
21460 which can conflict with char __res_send (); below.
21461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21462 <limits.h> exists even on freestanding compilers. */
21463
21464#ifdef __STDC__
21465# include <limits.h>
21466#else
21467# include <assert.h>
21468#endif
21469
21470#undef __res_send
21471
21472/* Override any GCC internal prototype to avoid an error.
21473 Use char because int might match the return type of a GCC
21474 builtin and then its argument prototype would still apply. */
21475#ifdef __cplusplus
21476extern "C"
21477#endif
21478char __res_send ();
21479/* The GNU C library defines this for functions which it implements
21480 to always fail with ENOSYS. Some functions are actually named
21481 something starting with __ and the normal name is an alias. */
21482#if defined __stub___res_send || defined __stub_____res_send
21483choke me
21484#endif
21485 12006
21486int
21487main ()
21488{
21489return __res_send ();
21490 ;
21491 return 0;
21492}
21493_ACEOF
21494rm -f conftest.$ac_objext conftest$ac_exeext
21495if { (ac_try="$ac_link"
21496case "(($ac_try" in
21497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21498 *) ac_try_echo=$ac_try;;
21499esac
21500eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21501$as_echo "$ac_try_echo") >&5
21502 (eval "$ac_link") 2>conftest.er1
21503 ac_status=$?
21504 grep -v '^ *+' conftest.er1 >conftest.err
21505 rm -f conftest.er1
21506 cat conftest.err >&5
21507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508 (exit $ac_status); } && {
21509 test -z "$ac_c_werror_flag" ||
21510 test ! -s conftest.err
21511 } && test -s conftest$ac_exeext && {
21512 test "$cross_compiling" = yes ||
21513 $as_test_x conftest$ac_exeext
21514 }; then
21515 ac_cv_func___res_send=yes
21516else 12007else
21517 $as_echo "$as_me: failed program was:" >&5 12008 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
21518sed 's/^/| /' conftest.$ac_ext >&5 12009if test "x$ac_cv_func___res_send" = x""yes; then :
21519
21520 ac_cv_func___res_send=no
21521fi
21522 12010
21523rm -rf conftest.dSYM
21524rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21525 conftest$ac_exeext conftest.$ac_ext
21526fi
21527{ $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21528$as_echo "$ac_cv_func___res_send" >&6; }
21529if test $ac_cv_func___res_send = yes; then
21530 :
21531else 12011else
21532 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5 12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
21533$as_echo_n "checking for res_send in -lresolv... " >&6; } 12013$as_echo_n "checking for res_send in -lresolv... " >&6; }
21534if test "${ac_cv_lib_resolv_res_send+set}" = set; then 12014if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
21535 $as_echo_n "(cached) " >&6 12015 $as_echo_n "(cached) " >&6
21536else 12016else
21537 ac_check_lib_save_LIBS=$LIBS 12017 ac_check_lib_save_LIBS=$LIBS
21538LIBS="-lresolv $LIBS" 12018LIBS="-lresolv $LIBS"
21539cat >conftest.$ac_ext <<_ACEOF 12019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21540/* confdefs.h. */
21541_ACEOF
21542cat confdefs.h >>conftest.$ac_ext
21543cat >>conftest.$ac_ext <<_ACEOF
21544/* end confdefs.h. */ 12020/* end confdefs.h. */
21545 12021
21546/* Override any GCC internal prototype to avoid an error. 12022/* Override any GCC internal prototype to avoid an error.
@@ -21558,57 +12034,28 @@ return res_send ();
21558 return 0; 12034 return 0;
21559} 12035}
21560_ACEOF 12036_ACEOF
21561rm -f conftest.$ac_objext conftest$ac_exeext 12037if ac_fn_c_try_link "$LINENO"; then :
21562if { (ac_try="$ac_link"
21563case "(($ac_try" in
21564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21565 *) ac_try_echo=$ac_try;;
21566esac
21567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21568$as_echo "$ac_try_echo") >&5
21569 (eval "$ac_link") 2>conftest.er1
21570 ac_status=$?
21571 grep -v '^ *+' conftest.er1 >conftest.err
21572 rm -f conftest.er1
21573 cat conftest.err >&5
21574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575 (exit $ac_status); } && {
21576 test -z "$ac_c_werror_flag" ||
21577 test ! -s conftest.err
21578 } && test -s conftest$ac_exeext && {
21579 test "$cross_compiling" = yes ||
21580 $as_test_x conftest$ac_exeext
21581 }; then
21582 ac_cv_lib_resolv_res_send=yes 12038 ac_cv_lib_resolv_res_send=yes
21583else 12039else
21584 $as_echo "$as_me: failed program was:" >&5 12040 ac_cv_lib_resolv_res_send=no
21585sed 's/^/| /' conftest.$ac_ext >&5
21586
21587 ac_cv_lib_resolv_res_send=no
21588fi 12041fi
21589 12042rm -f core conftest.err conftest.$ac_objext \
21590rm -rf conftest.dSYM 12043 conftest$ac_exeext conftest.$ac_ext
21591rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21592 conftest$ac_exeext conftest.$ac_ext
21593LIBS=$ac_check_lib_save_LIBS 12044LIBS=$ac_check_lib_save_LIBS
21594fi 12045fi
21595{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5 12046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
21596$as_echo "$ac_cv_lib_resolv_res_send" >&6; } 12047$as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21597if test $ac_cv_lib_resolv_res_send = yes; then 12048if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
21598 resolv=yes 12049 resolv=yes
21599else 12050else
21600 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5 12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
21601$as_echo_n "checking for __res_send in -lresolv... " >&6; } 12052$as_echo_n "checking for __res_send in -lresolv... " >&6; }
21602if test "${ac_cv_lib_resolv___res_send+set}" = set; then 12053if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
21603 $as_echo_n "(cached) " >&6 12054 $as_echo_n "(cached) " >&6
21604else 12055else
21605 ac_check_lib_save_LIBS=$LIBS 12056 ac_check_lib_save_LIBS=$LIBS
21606LIBS="-lresolv $LIBS" 12057LIBS="-lresolv $LIBS"
21607cat >conftest.$ac_ext <<_ACEOF 12058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21608/* confdefs.h. */
21609_ACEOF
21610cat confdefs.h >>conftest.$ac_ext
21611cat >>conftest.$ac_ext <<_ACEOF
21612/* end confdefs.h. */ 12059/* end confdefs.h. */
21613 12060
21614/* Override any GCC internal prototype to avoid an error. 12061/* Override any GCC internal prototype to avoid an error.
@@ -21626,43 +12073,18 @@ return __res_send ();
21626 return 0; 12073 return 0;
21627} 12074}
21628_ACEOF 12075_ACEOF
21629rm -f conftest.$ac_objext conftest$ac_exeext 12076if ac_fn_c_try_link "$LINENO"; then :
21630if { (ac_try="$ac_link"
21631case "(($ac_try" in
21632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21633 *) ac_try_echo=$ac_try;;
21634esac
21635eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21636$as_echo "$ac_try_echo") >&5
21637 (eval "$ac_link") 2>conftest.er1
21638 ac_status=$?
21639 grep -v '^ *+' conftest.er1 >conftest.err
21640 rm -f conftest.er1
21641 cat conftest.err >&5
21642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); } && {
21644 test -z "$ac_c_werror_flag" ||
21645 test ! -s conftest.err
21646 } && test -s conftest$ac_exeext && {
21647 test "$cross_compiling" = yes ||
21648 $as_test_x conftest$ac_exeext
21649 }; then
21650 ac_cv_lib_resolv___res_send=yes 12077 ac_cv_lib_resolv___res_send=yes
21651else 12078else
21652 $as_echo "$as_me: failed program was:" >&5 12079 ac_cv_lib_resolv___res_send=no
21653sed 's/^/| /' conftest.$ac_ext >&5
21654
21655 ac_cv_lib_resolv___res_send=no
21656fi 12080fi
21657 12081rm -f core conftest.err conftest.$ac_objext \
21658rm -rf conftest.dSYM 12082 conftest$ac_exeext conftest.$ac_ext
21659rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21660 conftest$ac_exeext conftest.$ac_ext
21661LIBS=$ac_check_lib_save_LIBS 12083LIBS=$ac_check_lib_save_LIBS
21662fi 12084fi
21663{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5 12085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
21664$as_echo "$ac_cv_lib_resolv___res_send" >&6; } 12086$as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21665if test $ac_cv_lib_resolv___res_send = yes; then 12087if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
21666 resolv=yes 12088 resolv=yes
21667fi 12089fi
21668 12090
@@ -21677,106 +12099,18 @@ fi
21677 else 12099 else
21678 RESOLVLIB= 12100 RESOLVLIB=
21679 fi 12101 fi
21680 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5 12102 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
21681$as_echo_n "checking for hes_getmailhost... " >&6; } 12103if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
21682if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21683 $as_echo_n "(cached) " >&6
21684else
21685 cat >conftest.$ac_ext <<_ACEOF
21686/* confdefs.h. */
21687_ACEOF
21688cat confdefs.h >>conftest.$ac_ext
21689cat >>conftest.$ac_ext <<_ACEOF
21690/* end confdefs.h. */
21691/* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21693#define hes_getmailhost innocuous_hes_getmailhost
21694
21695/* System header to define __stub macros and hopefully few prototypes,
21696 which can conflict with char hes_getmailhost (); below.
21697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21698 <limits.h> exists even on freestanding compilers. */
21699
21700#ifdef __STDC__
21701# include <limits.h>
21702#else
21703# include <assert.h>
21704#endif
21705
21706#undef hes_getmailhost
21707
21708/* Override any GCC internal prototype to avoid an error.
21709 Use char because int might match the return type of a GCC
21710 builtin and then its argument prototype would still apply. */
21711#ifdef __cplusplus
21712extern "C"
21713#endif
21714char hes_getmailhost ();
21715/* The GNU C library defines this for functions which it implements
21716 to always fail with ENOSYS. Some functions are actually named
21717 something starting with __ and the normal name is an alias. */
21718#if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21719choke me
21720#endif
21721
21722int
21723main ()
21724{
21725return hes_getmailhost ();
21726 ;
21727 return 0;
21728}
21729_ACEOF
21730rm -f conftest.$ac_objext conftest$ac_exeext
21731if { (ac_try="$ac_link"
21732case "(($ac_try" in
21733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21734 *) ac_try_echo=$ac_try;;
21735esac
21736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21737$as_echo "$ac_try_echo") >&5
21738 (eval "$ac_link") 2>conftest.er1
21739 ac_status=$?
21740 grep -v '^ *+' conftest.er1 >conftest.err
21741 rm -f conftest.er1
21742 cat conftest.err >&5
21743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); } && {
21745 test -z "$ac_c_werror_flag" ||
21746 test ! -s conftest.err
21747 } && test -s conftest$ac_exeext && {
21748 test "$cross_compiling" = yes ||
21749 $as_test_x conftest$ac_exeext
21750 }; then
21751 ac_cv_func_hes_getmailhost=yes
21752else
21753 $as_echo "$as_me: failed program was:" >&5
21754sed 's/^/| /' conftest.$ac_ext >&5
21755
21756 ac_cv_func_hes_getmailhost=no
21757fi
21758 12104
21759rm -rf conftest.dSYM
21760rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21761 conftest$ac_exeext conftest.$ac_ext
21762fi
21763{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21764$as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21765if test $ac_cv_func_hes_getmailhost = yes; then
21766 :
21767else 12105else
21768 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5 12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
21769$as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; } 12107$as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21770if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then 12108if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
21771 $as_echo_n "(cached) " >&6 12109 $as_echo_n "(cached) " >&6
21772else 12110else
21773 ac_check_lib_save_LIBS=$LIBS 12111 ac_check_lib_save_LIBS=$LIBS
21774LIBS="-lhesiod $RESOLVLIB $LIBS" 12112LIBS="-lhesiod $RESOLVLIB $LIBS"
21775cat >conftest.$ac_ext <<_ACEOF 12113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21776/* confdefs.h. */
21777_ACEOF
21778cat confdefs.h >>conftest.$ac_ext
21779cat >>conftest.$ac_ext <<_ACEOF
21780/* end confdefs.h. */ 12114/* end confdefs.h. */
21781 12115
21782/* Override any GCC internal prototype to avoid an error. 12116/* Override any GCC internal prototype to avoid an error.
@@ -21794,43 +12128,18 @@ return hes_getmailhost ();
21794 return 0; 12128 return 0;
21795} 12129}
21796_ACEOF 12130_ACEOF
21797rm -f conftest.$ac_objext conftest$ac_exeext 12131if ac_fn_c_try_link "$LINENO"; then :
21798if { (ac_try="$ac_link"
21799case "(($ac_try" in
21800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21801 *) ac_try_echo=$ac_try;;
21802esac
21803eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21804$as_echo "$ac_try_echo") >&5
21805 (eval "$ac_link") 2>conftest.er1
21806 ac_status=$?
21807 grep -v '^ *+' conftest.er1 >conftest.err
21808 rm -f conftest.er1
21809 cat conftest.err >&5
21810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); } && {
21812 test -z "$ac_c_werror_flag" ||
21813 test ! -s conftest.err
21814 } && test -s conftest$ac_exeext && {
21815 test "$cross_compiling" = yes ||
21816 $as_test_x conftest$ac_exeext
21817 }; then
21818 ac_cv_lib_hesiod_hes_getmailhost=yes 12132 ac_cv_lib_hesiod_hes_getmailhost=yes
21819else 12133else
21820 $as_echo "$as_me: failed program was:" >&5 12134 ac_cv_lib_hesiod_hes_getmailhost=no
21821sed 's/^/| /' conftest.$ac_ext >&5
21822
21823 ac_cv_lib_hesiod_hes_getmailhost=no
21824fi 12135fi
21825 12136rm -f core conftest.err conftest.$ac_objext \
21826rm -rf conftest.dSYM 12137 conftest$ac_exeext conftest.$ac_ext
21827rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21828 conftest$ac_exeext conftest.$ac_ext
21829LIBS=$ac_check_lib_save_LIBS 12138LIBS=$ac_check_lib_save_LIBS
21830fi 12139fi
21831{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 12140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21832$as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; } 12141$as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21833if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then 12142if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
21834 hesiod=yes 12143 hesiod=yes
21835else 12144else
21836 : 12145 :
@@ -21841,9 +12150,7 @@ fi
21841 12150
21842 if test x"$hesiod" = xyes; then 12151 if test x"$hesiod" = xyes; then
21843 12152
21844cat >>confdefs.h <<\_ACEOF 12153$as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
21845#define HAVE_LIBHESIOD 1
21846_ACEOF
21847 12154
21848 LIBHESIOD=-lhesiod 12155 LIBHESIOD=-lhesiod
21849 fi 12156 fi
@@ -21853,9 +12160,7 @@ fi
21853# Do we need libresolv (due to res_init or Hesiod)? 12160# Do we need libresolv (due to res_init or Hesiod)?
21854if test "$resolv" = yes ; then 12161if test "$resolv" = yes ; then
21855 12162
21856cat >>confdefs.h <<\_ACEOF 12163$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
21857#define HAVE_LIBRESOLV 1
21858_ACEOF
21859 12164
21860 LIBRESOLV=-lresolv 12165 LIBRESOLV=-lresolv
21861else 12166else
@@ -21871,18 +12176,14 @@ DESLIB=
21871KRB4LIB= 12176KRB4LIB=
21872 12177
21873if test "${with_kerberos}" != no; then 12178if test "${with_kerberos}" != no; then
21874 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5 12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
21875$as_echo_n "checking for com_err in -lcom_err... " >&6; } 12180$as_echo_n "checking for com_err in -lcom_err... " >&6; }
21876if test "${ac_cv_lib_com_err_com_err+set}" = set; then 12181if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
21877 $as_echo_n "(cached) " >&6 12182 $as_echo_n "(cached) " >&6
21878else 12183else
21879 ac_check_lib_save_LIBS=$LIBS 12184 ac_check_lib_save_LIBS=$LIBS
21880LIBS="-lcom_err $LIBS" 12185LIBS="-lcom_err $LIBS"
21881cat >conftest.$ac_ext <<_ACEOF 12186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21882/* confdefs.h. */
21883_ACEOF
21884cat confdefs.h >>conftest.$ac_ext
21885cat >>conftest.$ac_ext <<_ACEOF
21886/* end confdefs.h. */ 12187/* end confdefs.h. */
21887 12188
21888/* Override any GCC internal prototype to avoid an error. 12189/* Override any GCC internal prototype to avoid an error.
@@ -21900,43 +12201,18 @@ return com_err ();
21900 return 0; 12201 return 0;
21901} 12202}
21902_ACEOF 12203_ACEOF
21903rm -f conftest.$ac_objext conftest$ac_exeext 12204if ac_fn_c_try_link "$LINENO"; then :
21904if { (ac_try="$ac_link"
21905case "(($ac_try" in
21906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21907 *) ac_try_echo=$ac_try;;
21908esac
21909eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21910$as_echo "$ac_try_echo") >&5
21911 (eval "$ac_link") 2>conftest.er1
21912 ac_status=$?
21913 grep -v '^ *+' conftest.er1 >conftest.err
21914 rm -f conftest.er1
21915 cat conftest.err >&5
21916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); } && {
21918 test -z "$ac_c_werror_flag" ||
21919 test ! -s conftest.err
21920 } && test -s conftest$ac_exeext && {
21921 test "$cross_compiling" = yes ||
21922 $as_test_x conftest$ac_exeext
21923 }; then
21924 ac_cv_lib_com_err_com_err=yes 12205 ac_cv_lib_com_err_com_err=yes
21925else 12206else
21926 $as_echo "$as_me: failed program was:" >&5 12207 ac_cv_lib_com_err_com_err=no
21927sed 's/^/| /' conftest.$ac_ext >&5
21928
21929 ac_cv_lib_com_err_com_err=no
21930fi 12208fi
21931 12209rm -f core conftest.err conftest.$ac_objext \
21932rm -rf conftest.dSYM 12210 conftest$ac_exeext conftest.$ac_ext
21933rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21934 conftest$ac_exeext conftest.$ac_ext
21935LIBS=$ac_check_lib_save_LIBS 12211LIBS=$ac_check_lib_save_LIBS
21936fi 12212fi
21937{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5 12213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
21938$as_echo "$ac_cv_lib_com_err_com_err" >&6; } 12214$as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21939if test $ac_cv_lib_com_err_com_err = yes; then 12215if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
21940 have_com_err=yes 12216 have_com_err=yes
21941else 12217else
21942 have_com_err=no 12218 have_com_err=no
@@ -21946,23 +12222,17 @@ fi
21946 COM_ERRLIB=-lcom_err 12222 COM_ERRLIB=-lcom_err
21947 LIBS="$COM_ERRLIB $LIBS" 12223 LIBS="$COM_ERRLIB $LIBS"
21948 12224
21949cat >>confdefs.h <<\_ACEOF 12225$as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
21950#define HAVE_LIBCOM_ERR 1
21951_ACEOF
21952 12226
21953 fi 12227 fi
21954 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5 12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21955$as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; } 12229$as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21956if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then 12230if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
21957 $as_echo_n "(cached) " >&6 12231 $as_echo_n "(cached) " >&6
21958else 12232else
21959 ac_check_lib_save_LIBS=$LIBS 12233 ac_check_lib_save_LIBS=$LIBS
21960LIBS="-lcrypto $LIBS" 12234LIBS="-lcrypto $LIBS"
21961cat >conftest.$ac_ext <<_ACEOF 12235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21962/* confdefs.h. */
21963_ACEOF
21964cat confdefs.h >>conftest.$ac_ext
21965cat >>conftest.$ac_ext <<_ACEOF
21966/* end confdefs.h. */ 12236/* end confdefs.h. */
21967 12237
21968/* Override any GCC internal prototype to avoid an error. 12238/* Override any GCC internal prototype to avoid an error.
@@ -21980,43 +12250,18 @@ return mit_des_cbc_encrypt ();
21980 return 0; 12250 return 0;
21981} 12251}
21982_ACEOF 12252_ACEOF
21983rm -f conftest.$ac_objext conftest$ac_exeext 12253if ac_fn_c_try_link "$LINENO"; then :
21984if { (ac_try="$ac_link"
21985case "(($ac_try" in
21986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21987 *) ac_try_echo=$ac_try;;
21988esac
21989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21990$as_echo "$ac_try_echo") >&5
21991 (eval "$ac_link") 2>conftest.er1
21992 ac_status=$?
21993 grep -v '^ *+' conftest.er1 >conftest.err
21994 rm -f conftest.er1
21995 cat conftest.err >&5
21996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997 (exit $ac_status); } && {
21998 test -z "$ac_c_werror_flag" ||
21999 test ! -s conftest.err
22000 } && test -s conftest$ac_exeext && {
22001 test "$cross_compiling" = yes ||
22002 $as_test_x conftest$ac_exeext
22003 }; then
22004 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes 12254 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22005else 12255else
22006 $as_echo "$as_me: failed program was:" >&5 12256 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22007sed 's/^/| /' conftest.$ac_ext >&5
22008
22009 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22010fi 12257fi
22011 12258rm -f core conftest.err conftest.$ac_objext \
22012rm -rf conftest.dSYM 12259 conftest$ac_exeext conftest.$ac_ext
22013rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22014 conftest$ac_exeext conftest.$ac_ext
22015LIBS=$ac_check_lib_save_LIBS 12260LIBS=$ac_check_lib_save_LIBS
22016fi 12261fi
22017{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 12262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22018$as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; } 12263$as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22019if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then 12264if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
22020 have_crypto=yes 12265 have_crypto=yes
22021else 12266else
22022 have_crypto=no 12267 have_crypto=no
@@ -22026,23 +12271,17 @@ fi
22026 CRYPTOLIB=-lcrypto 12271 CRYPTOLIB=-lcrypto
22027 LIBS="$CRYPTOLIB $LIBS" 12272 LIBS="$CRYPTOLIB $LIBS"
22028 12273
22029cat >>confdefs.h <<\_ACEOF 12274$as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
22030#define HAVE_LIBCRYPTO 1
22031_ACEOF
22032 12275
22033 fi 12276 fi
22034 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22035$as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; } 12278$as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22036if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then 12279if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
22037 $as_echo_n "(cached) " >&6 12280 $as_echo_n "(cached) " >&6
22038else 12281else
22039 ac_check_lib_save_LIBS=$LIBS 12282 ac_check_lib_save_LIBS=$LIBS
22040LIBS="-lk5crypto $LIBS" 12283LIBS="-lk5crypto $LIBS"
22041cat >conftest.$ac_ext <<_ACEOF 12284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22042/* confdefs.h. */
22043_ACEOF
22044cat confdefs.h >>conftest.$ac_ext
22045cat >>conftest.$ac_ext <<_ACEOF
22046/* end confdefs.h. */ 12285/* end confdefs.h. */
22047 12286
22048/* Override any GCC internal prototype to avoid an error. 12287/* Override any GCC internal prototype to avoid an error.
@@ -22060,43 +12299,18 @@ return mit_des_cbc_encrypt ();
22060 return 0; 12299 return 0;
22061} 12300}
22062_ACEOF 12301_ACEOF
22063rm -f conftest.$ac_objext conftest$ac_exeext 12302if ac_fn_c_try_link "$LINENO"; then :
22064if { (ac_try="$ac_link"
22065case "(($ac_try" in
22066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22067 *) ac_try_echo=$ac_try;;
22068esac
22069eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22070$as_echo "$ac_try_echo") >&5
22071 (eval "$ac_link") 2>conftest.er1
22072 ac_status=$?
22073 grep -v '^ *+' conftest.er1 >conftest.err
22074 rm -f conftest.er1
22075 cat conftest.err >&5
22076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077 (exit $ac_status); } && {
22078 test -z "$ac_c_werror_flag" ||
22079 test ! -s conftest.err
22080 } && test -s conftest$ac_exeext && {
22081 test "$cross_compiling" = yes ||
22082 $as_test_x conftest$ac_exeext
22083 }; then
22084 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes 12303 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22085else 12304else
22086 $as_echo "$as_me: failed program was:" >&5 12305 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22087sed 's/^/| /' conftest.$ac_ext >&5
22088
22089 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22090fi 12306fi
22091 12307rm -f core conftest.err conftest.$ac_objext \
22092rm -rf conftest.dSYM 12308 conftest$ac_exeext conftest.$ac_ext
22093rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22094 conftest$ac_exeext conftest.$ac_ext
22095LIBS=$ac_check_lib_save_LIBS 12309LIBS=$ac_check_lib_save_LIBS
22096fi 12310fi
22097{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 12311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22098$as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; } 12312$as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22099if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then 12313if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
22100 have_k5crypto=yes 12314 have_k5crypto=yes
22101else 12315else
22102 have_k5crypto=no 12316 have_k5crypto=no
@@ -22106,23 +12320,17 @@ fi
22106 CRYPTOLIB=-lk5crypto 12320 CRYPTOLIB=-lk5crypto
22107 LIBS="$CRYPTOLIB $LIBS" 12321 LIBS="$CRYPTOLIB $LIBS"
22108 12322
22109cat >>confdefs.h <<\_ACEOF 12323$as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
22110#define HAVE_LIBK5CRYPTO 1
22111_ACEOF
22112 12324
22113 fi 12325 fi
22114 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5 12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
22115$as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; } 12327$as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22116if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then 12328if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
22117 $as_echo_n "(cached) " >&6 12329 $as_echo_n "(cached) " >&6
22118else 12330else
22119 ac_check_lib_save_LIBS=$LIBS 12331 ac_check_lib_save_LIBS=$LIBS
22120LIBS="-lkrb5 $LIBS" 12332LIBS="-lkrb5 $LIBS"
22121cat >conftest.$ac_ext <<_ACEOF 12333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22122/* confdefs.h. */
22123_ACEOF
22124cat confdefs.h >>conftest.$ac_ext
22125cat >>conftest.$ac_ext <<_ACEOF
22126/* end confdefs.h. */ 12334/* end confdefs.h. */
22127 12335
22128/* Override any GCC internal prototype to avoid an error. 12336/* Override any GCC internal prototype to avoid an error.
@@ -22140,43 +12348,18 @@ return krb5_init_context ();
22140 return 0; 12348 return 0;
22141} 12349}
22142_ACEOF 12350_ACEOF
22143rm -f conftest.$ac_objext conftest$ac_exeext 12351if ac_fn_c_try_link "$LINENO"; then :
22144if { (ac_try="$ac_link"
22145case "(($ac_try" in
22146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22147 *) ac_try_echo=$ac_try;;
22148esac
22149eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22150$as_echo "$ac_try_echo") >&5
22151 (eval "$ac_link") 2>conftest.er1
22152 ac_status=$?
22153 grep -v '^ *+' conftest.er1 >conftest.err
22154 rm -f conftest.er1
22155 cat conftest.err >&5
22156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); } && {
22158 test -z "$ac_c_werror_flag" ||
22159 test ! -s conftest.err
22160 } && test -s conftest$ac_exeext && {
22161 test "$cross_compiling" = yes ||
22162 $as_test_x conftest$ac_exeext
22163 }; then
22164 ac_cv_lib_krb5_krb5_init_context=yes 12352 ac_cv_lib_krb5_krb5_init_context=yes
22165else 12353else
22166 $as_echo "$as_me: failed program was:" >&5 12354 ac_cv_lib_krb5_krb5_init_context=no
22167sed 's/^/| /' conftest.$ac_ext >&5
22168
22169 ac_cv_lib_krb5_krb5_init_context=no
22170fi 12355fi
22171 12356rm -f core conftest.err conftest.$ac_objext \
22172rm -rf conftest.dSYM 12357 conftest$ac_exeext conftest.$ac_ext
22173rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22174 conftest$ac_exeext conftest.$ac_ext
22175LIBS=$ac_check_lib_save_LIBS 12358LIBS=$ac_check_lib_save_LIBS
22176fi 12359fi
22177{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5 12360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22178$as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; } 12361$as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22179if test $ac_cv_lib_krb5_krb5_init_context = yes; then 12362if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
22180 have_krb5=yes 12363 have_krb5=yes
22181else 12364else
22182 have_krb5=no 12365 have_krb5=no
@@ -22186,24 +12369,18 @@ fi
22186 KRB5LIB=-lkrb5 12369 KRB5LIB=-lkrb5
22187 LIBS="$KRB5LIB $LIBS" 12370 LIBS="$KRB5LIB $LIBS"
22188 12371
22189cat >>confdefs.h <<\_ACEOF 12372$as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
22190#define HAVE_LIBKRB5 1
22191_ACEOF
22192 12373
22193 fi 12374 fi
22194 if test "${with_kerberos5}" = no; then 12375 if test "${with_kerberos5}" = no; then
22195 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5 12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
22196$as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; } 12377$as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22197if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then 12378if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
22198 $as_echo_n "(cached) " >&6 12379 $as_echo_n "(cached) " >&6
22199else 12380else
22200 ac_check_lib_save_LIBS=$LIBS 12381 ac_check_lib_save_LIBS=$LIBS
22201LIBS="-ldes425 $LIBS" 12382LIBS="-ldes425 $LIBS"
22202cat >conftest.$ac_ext <<_ACEOF 12383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22203/* confdefs.h. */
22204_ACEOF
22205cat confdefs.h >>conftest.$ac_ext
22206cat >>conftest.$ac_ext <<_ACEOF
22207/* end confdefs.h. */ 12384/* end confdefs.h. */
22208 12385
22209/* Override any GCC internal prototype to avoid an error. 12386/* Override any GCC internal prototype to avoid an error.
@@ -22221,43 +12398,18 @@ return des_cbc_encrypt ();
22221 return 0; 12398 return 0;
22222} 12399}
22223_ACEOF 12400_ACEOF
22224rm -f conftest.$ac_objext conftest$ac_exeext 12401if ac_fn_c_try_link "$LINENO"; then :
22225if { (ac_try="$ac_link"
22226case "(($ac_try" in
22227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22228 *) ac_try_echo=$ac_try;;
22229esac
22230eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22231$as_echo "$ac_try_echo") >&5
22232 (eval "$ac_link") 2>conftest.er1
22233 ac_status=$?
22234 grep -v '^ *+' conftest.er1 >conftest.err
22235 rm -f conftest.er1
22236 cat conftest.err >&5
22237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238 (exit $ac_status); } && {
22239 test -z "$ac_c_werror_flag" ||
22240 test ! -s conftest.err
22241 } && test -s conftest$ac_exeext && {
22242 test "$cross_compiling" = yes ||
22243 $as_test_x conftest$ac_exeext
22244 }; then
22245 ac_cv_lib_des425_des_cbc_encrypt=yes 12402 ac_cv_lib_des425_des_cbc_encrypt=yes
22246else 12403else
22247 $as_echo "$as_me: failed program was:" >&5 12404 ac_cv_lib_des425_des_cbc_encrypt=no
22248sed 's/^/| /' conftest.$ac_ext >&5
22249
22250 ac_cv_lib_des425_des_cbc_encrypt=no
22251fi 12405fi
22252 12406rm -f core conftest.err conftest.$ac_objext \
22253rm -rf conftest.dSYM 12407 conftest$ac_exeext conftest.$ac_ext
22254rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22255 conftest$ac_exeext conftest.$ac_ext
22256LIBS=$ac_check_lib_save_LIBS 12408LIBS=$ac_check_lib_save_LIBS
22257fi 12409fi
22258{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 12410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22259$as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; } 12411$as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22260if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then 12412if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
22261 have_des425=yes 12413 have_des425=yes
22262else 12414else
22263 have_des425=no 12415 have_des425=no
@@ -22267,23 +12419,17 @@ fi
22267 DESLIB=-ldes425 12419 DESLIB=-ldes425
22268 LIBS="$DESLIB $LIBS" 12420 LIBS="$DESLIB $LIBS"
22269 12421
22270cat >>confdefs.h <<\_ACEOF 12422$as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
22271#define HAVE_LIBDES425 1
22272_ACEOF
22273 12423
22274 else 12424 else
22275 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5 12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
22276$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } 12426$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22277if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then 12427if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
22278 $as_echo_n "(cached) " >&6 12428 $as_echo_n "(cached) " >&6
22279else 12429else
22280 ac_check_lib_save_LIBS=$LIBS 12430 ac_check_lib_save_LIBS=$LIBS
22281LIBS="-ldes $LIBS" 12431LIBS="-ldes $LIBS"
22282cat >conftest.$ac_ext <<_ACEOF 12432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22283/* confdefs.h. */
22284_ACEOF
22285cat confdefs.h >>conftest.$ac_ext
22286cat >>conftest.$ac_ext <<_ACEOF
22287/* end confdefs.h. */ 12433/* end confdefs.h. */
22288 12434
22289/* Override any GCC internal prototype to avoid an error. 12435/* Override any GCC internal prototype to avoid an error.
@@ -22301,43 +12447,18 @@ return des_cbc_encrypt ();
22301 return 0; 12447 return 0;
22302} 12448}
22303_ACEOF 12449_ACEOF
22304rm -f conftest.$ac_objext conftest$ac_exeext 12450if ac_fn_c_try_link "$LINENO"; then :
22305if { (ac_try="$ac_link"
22306case "(($ac_try" in
22307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22308 *) ac_try_echo=$ac_try;;
22309esac
22310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22311$as_echo "$ac_try_echo") >&5
22312 (eval "$ac_link") 2>conftest.er1
22313 ac_status=$?
22314 grep -v '^ *+' conftest.er1 >conftest.err
22315 rm -f conftest.er1
22316 cat conftest.err >&5
22317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318 (exit $ac_status); } && {
22319 test -z "$ac_c_werror_flag" ||
22320 test ! -s conftest.err
22321 } && test -s conftest$ac_exeext && {
22322 test "$cross_compiling" = yes ||
22323 $as_test_x conftest$ac_exeext
22324 }; then
22325 ac_cv_lib_des_des_cbc_encrypt=yes 12451 ac_cv_lib_des_des_cbc_encrypt=yes
22326else 12452else
22327 $as_echo "$as_me: failed program was:" >&5 12453 ac_cv_lib_des_des_cbc_encrypt=no
22328sed 's/^/| /' conftest.$ac_ext >&5
22329
22330 ac_cv_lib_des_des_cbc_encrypt=no
22331fi 12454fi
22332 12455rm -f core conftest.err conftest.$ac_objext \
22333rm -rf conftest.dSYM 12456 conftest$ac_exeext conftest.$ac_ext
22334rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22335 conftest$ac_exeext conftest.$ac_ext
22336LIBS=$ac_check_lib_save_LIBS 12457LIBS=$ac_check_lib_save_LIBS
22337fi 12458fi
22338{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 12459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22339$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } 12460$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22340if test $ac_cv_lib_des_des_cbc_encrypt = yes; then 12461if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
22341 have_des=yes 12462 have_des=yes
22342else 12463else
22343 have_des=no 12464 have_des=no
@@ -22347,24 +12468,18 @@ fi
22347 DESLIB=-ldes 12468 DESLIB=-ldes
22348 LIBS="$DESLIB $LIBS" 12469 LIBS="$DESLIB $LIBS"
22349 12470
22350cat >>confdefs.h <<\_ACEOF 12471$as_echo "#define HAVE_LIBDES 1" >>confdefs.h
22351#define HAVE_LIBDES 1
22352_ACEOF
22353 12472
22354 fi 12473 fi
22355 fi 12474 fi
22356 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5 12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
22357$as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; } 12476$as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22358if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then 12477if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
22359 $as_echo_n "(cached) " >&6 12478 $as_echo_n "(cached) " >&6
22360else 12479else
22361 ac_check_lib_save_LIBS=$LIBS 12480 ac_check_lib_save_LIBS=$LIBS
22362LIBS="-lkrb4 $LIBS" 12481LIBS="-lkrb4 $LIBS"
22363cat >conftest.$ac_ext <<_ACEOF 12482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22364/* confdefs.h. */
22365_ACEOF
22366cat confdefs.h >>conftest.$ac_ext
22367cat >>conftest.$ac_ext <<_ACEOF
22368/* end confdefs.h. */ 12483/* end confdefs.h. */
22369 12484
22370/* Override any GCC internal prototype to avoid an error. 12485/* Override any GCC internal prototype to avoid an error.
@@ -22382,43 +12497,18 @@ return krb_get_cred ();
22382 return 0; 12497 return 0;
22383} 12498}
22384_ACEOF 12499_ACEOF
22385rm -f conftest.$ac_objext conftest$ac_exeext 12500if ac_fn_c_try_link "$LINENO"; then :
22386if { (ac_try="$ac_link"
22387case "(($ac_try" in
22388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22389 *) ac_try_echo=$ac_try;;
22390esac
22391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22392$as_echo "$ac_try_echo") >&5
22393 (eval "$ac_link") 2>conftest.er1
22394 ac_status=$?
22395 grep -v '^ *+' conftest.er1 >conftest.err
22396 rm -f conftest.er1
22397 cat conftest.err >&5
22398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399 (exit $ac_status); } && {
22400 test -z "$ac_c_werror_flag" ||
22401 test ! -s conftest.err
22402 } && test -s conftest$ac_exeext && {
22403 test "$cross_compiling" = yes ||
22404 $as_test_x conftest$ac_exeext
22405 }; then
22406 ac_cv_lib_krb4_krb_get_cred=yes 12501 ac_cv_lib_krb4_krb_get_cred=yes
22407else 12502else
22408 $as_echo "$as_me: failed program was:" >&5 12503 ac_cv_lib_krb4_krb_get_cred=no
22409sed 's/^/| /' conftest.$ac_ext >&5
22410
22411 ac_cv_lib_krb4_krb_get_cred=no
22412fi 12504fi
22413 12505rm -f core conftest.err conftest.$ac_objext \
22414rm -rf conftest.dSYM 12506 conftest$ac_exeext conftest.$ac_ext
22415rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22416 conftest$ac_exeext conftest.$ac_ext
22417LIBS=$ac_check_lib_save_LIBS 12507LIBS=$ac_check_lib_save_LIBS
22418fi 12508fi
22419{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5 12509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22420$as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; } 12510$as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22421if test $ac_cv_lib_krb4_krb_get_cred = yes; then 12511if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
22422 have_krb4=yes 12512 have_krb4=yes
22423else 12513else
22424 have_krb4=no 12514 have_krb4=no
@@ -22428,23 +12518,17 @@ fi
22428 KRB4LIB=-lkrb4 12518 KRB4LIB=-lkrb4
22429 LIBS="$KRB4LIB $LIBS" 12519 LIBS="$KRB4LIB $LIBS"
22430 12520
22431cat >>confdefs.h <<\_ACEOF 12521$as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
22432#define HAVE_LIBKRB4 1
22433_ACEOF
22434 12522
22435 else 12523 else
22436 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5 12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
22437$as_echo_n "checking for krb_get_cred in -lkrb... " >&6; } 12525$as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22438if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then 12526if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
22439 $as_echo_n "(cached) " >&6 12527 $as_echo_n "(cached) " >&6
22440else 12528else
22441 ac_check_lib_save_LIBS=$LIBS 12529 ac_check_lib_save_LIBS=$LIBS
22442LIBS="-lkrb $LIBS" 12530LIBS="-lkrb $LIBS"
22443cat >conftest.$ac_ext <<_ACEOF 12531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22444/* confdefs.h. */
22445_ACEOF
22446cat confdefs.h >>conftest.$ac_ext
22447cat >>conftest.$ac_ext <<_ACEOF
22448/* end confdefs.h. */ 12532/* end confdefs.h. */
22449 12533
22450/* Override any GCC internal prototype to avoid an error. 12534/* Override any GCC internal prototype to avoid an error.
@@ -22462,43 +12546,18 @@ return krb_get_cred ();
22462 return 0; 12546 return 0;
22463} 12547}
22464_ACEOF 12548_ACEOF
22465rm -f conftest.$ac_objext conftest$ac_exeext 12549if ac_fn_c_try_link "$LINENO"; then :
22466if { (ac_try="$ac_link"
22467case "(($ac_try" in
22468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22469 *) ac_try_echo=$ac_try;;
22470esac
22471eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22472$as_echo "$ac_try_echo") >&5
22473 (eval "$ac_link") 2>conftest.er1
22474 ac_status=$?
22475 grep -v '^ *+' conftest.er1 >conftest.err
22476 rm -f conftest.er1
22477 cat conftest.err >&5
22478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479 (exit $ac_status); } && {
22480 test -z "$ac_c_werror_flag" ||
22481 test ! -s conftest.err
22482 } && test -s conftest$ac_exeext && {
22483 test "$cross_compiling" = yes ||
22484 $as_test_x conftest$ac_exeext
22485 }; then
22486 ac_cv_lib_krb_krb_get_cred=yes 12550 ac_cv_lib_krb_krb_get_cred=yes
22487else 12551else
22488 $as_echo "$as_me: failed program was:" >&5 12552 ac_cv_lib_krb_krb_get_cred=no
22489sed 's/^/| /' conftest.$ac_ext >&5
22490
22491 ac_cv_lib_krb_krb_get_cred=no
22492fi 12553fi
22493 12554rm -f core conftest.err conftest.$ac_objext \
22494rm -rf conftest.dSYM 12555 conftest$ac_exeext conftest.$ac_ext
22495rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22496 conftest$ac_exeext conftest.$ac_ext
22497LIBS=$ac_check_lib_save_LIBS 12556LIBS=$ac_check_lib_save_LIBS
22498fi 12557fi
22499{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5 12558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
22500$as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; } 12559$as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22501if test $ac_cv_lib_krb_krb_get_cred = yes; then 12560if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
22502 have_krb=yes 12561 have_krb=yes
22503else 12562else
22504 have_krb=no 12563 have_krb=no
@@ -22508,253 +12567,23 @@ fi
22508 KRB4LIB=-lkrb 12567 KRB4LIB=-lkrb
22509 LIBS="$KRB4LIB $LIBS" 12568 LIBS="$KRB4LIB $LIBS"
22510 12569
22511cat >>confdefs.h <<\_ACEOF 12570$as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
22512#define HAVE_LIBKRB 1
22513_ACEOF
22514 12571
22515 fi 12572 fi
22516 fi 12573 fi
22517 fi 12574 fi
22518 12575
22519 if test "${with_kerberos5}" != no; then 12576 if test "${with_kerberos5}" != no; then
22520 12577 for ac_header in krb5.h
22521for ac_header in krb5.h 12578do :
22522do 12579 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
22523as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12580if test "x$ac_cv_header_krb5_h" = x""yes; then :
22524if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22525 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22526$as_echo_n "checking for $ac_header... " >&6; }
22527if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22528 $as_echo_n "(cached) " >&6
22529fi
22530ac_res=`eval 'as_val=${'$as_ac_Header'}
22531 $as_echo "$as_val"'`
22532 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22533$as_echo "$ac_res" >&6; }
22534else
22535 # Is the header compilable?
22536{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22537$as_echo_n "checking $ac_header usability... " >&6; }
22538cat >conftest.$ac_ext <<_ACEOF
22539/* confdefs.h. */
22540_ACEOF
22541cat confdefs.h >>conftest.$ac_ext
22542cat >>conftest.$ac_ext <<_ACEOF
22543/* end confdefs.h. */
22544$ac_includes_default
22545#include <$ac_header>
22546_ACEOF
22547rm -f conftest.$ac_objext
22548if { (ac_try="$ac_compile"
22549case "(($ac_try" in
22550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22551 *) ac_try_echo=$ac_try;;
22552esac
22553eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22554$as_echo "$ac_try_echo") >&5
22555 (eval "$ac_compile") 2>conftest.er1
22556 ac_status=$?
22557 grep -v '^ *+' conftest.er1 >conftest.err
22558 rm -f conftest.er1
22559 cat conftest.err >&5
22560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); } && {
22562 test -z "$ac_c_werror_flag" ||
22563 test ! -s conftest.err
22564 } && test -s conftest.$ac_objext; then
22565 ac_header_compiler=yes
22566else
22567 $as_echo "$as_me: failed program was:" >&5
22568sed 's/^/| /' conftest.$ac_ext >&5
22569
22570 ac_header_compiler=no
22571fi
22572
22573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22574{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22575$as_echo "$ac_header_compiler" >&6; }
22576
22577# Is the header present?
22578{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22579$as_echo_n "checking $ac_header presence... " >&6; }
22580cat >conftest.$ac_ext <<_ACEOF
22581/* confdefs.h. */
22582_ACEOF
22583cat confdefs.h >>conftest.$ac_ext
22584cat >>conftest.$ac_ext <<_ACEOF
22585/* end confdefs.h. */
22586#include <$ac_header>
22587_ACEOF
22588if { (ac_try="$ac_cpp conftest.$ac_ext"
22589case "(($ac_try" in
22590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22591 *) ac_try_echo=$ac_try;;
22592esac
22593eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22594$as_echo "$ac_try_echo") >&5
22595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22596 ac_status=$?
22597 grep -v '^ *+' conftest.er1 >conftest.err
22598 rm -f conftest.er1
22599 cat conftest.err >&5
22600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601 (exit $ac_status); } >/dev/null && {
22602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22603 test ! -s conftest.err
22604 }; then
22605 ac_header_preproc=yes
22606else
22607 $as_echo "$as_me: failed program was:" >&5
22608sed 's/^/| /' conftest.$ac_ext >&5
22609
22610 ac_header_preproc=no
22611fi
22612
22613rm -f conftest.err conftest.$ac_ext
22614{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22615$as_echo "$ac_header_preproc" >&6; }
22616
22617# So? What about this header?
22618case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22619 yes:no: )
22620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22621$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22623$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22624 ac_header_preproc=yes
22625 ;;
22626 no:yes:* )
22627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22628$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22630$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22632$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22634$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22635 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22636$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22637 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22638$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22639
22640 ;;
22641esac
22642{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22643$as_echo_n "checking for $ac_header... " >&6; }
22644if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22645 $as_echo_n "(cached) " >&6
22646else
22647 eval "$as_ac_Header=\$ac_header_preproc"
22648fi
22649ac_res=`eval 'as_val=${'$as_ac_Header'}
22650 $as_echo "$as_val"'`
22651 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22652$as_echo "$ac_res" >&6; }
22653
22654fi
22655if test `eval 'as_val=${'$as_ac_Header'}
22656 $as_echo "$as_val"'` = yes; then
22657 cat >>confdefs.h <<_ACEOF 12581 cat >>confdefs.h <<_ACEOF
22658#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12582#define HAVE_KRB5_H 1
22659_ACEOF
22660 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
22661$as_echo_n "checking for krb5_error.text... " >&6; }
22662if test "${ac_cv_member_krb5_error_text+set}" = set; then
22663 $as_echo_n "(cached) " >&6
22664else
22665 cat >conftest.$ac_ext <<_ACEOF
22666/* confdefs.h. */
22667_ACEOF
22668cat confdefs.h >>conftest.$ac_ext
22669cat >>conftest.$ac_ext <<_ACEOF
22670/* end confdefs.h. */
22671#include <krb5.h>
22672
22673int
22674main ()
22675{
22676static krb5_error ac_aggr;
22677if (ac_aggr.text)
22678return 0;
22679 ;
22680 return 0;
22681}
22682_ACEOF
22683rm -f conftest.$ac_objext
22684if { (ac_try="$ac_compile"
22685case "(($ac_try" in
22686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22687 *) ac_try_echo=$ac_try;;
22688esac
22689eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22690$as_echo "$ac_try_echo") >&5
22691 (eval "$ac_compile") 2>conftest.er1
22692 ac_status=$?
22693 grep -v '^ *+' conftest.er1 >conftest.err
22694 rm -f conftest.er1
22695 cat conftest.err >&5
22696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); } && {
22698 test -z "$ac_c_werror_flag" ||
22699 test ! -s conftest.err
22700 } && test -s conftest.$ac_objext; then
22701 ac_cv_member_krb5_error_text=yes
22702else
22703 $as_echo "$as_me: failed program was:" >&5
22704sed 's/^/| /' conftest.$ac_ext >&5
22705
22706 cat >conftest.$ac_ext <<_ACEOF
22707/* confdefs.h. */
22708_ACEOF
22709cat confdefs.h >>conftest.$ac_ext
22710cat >>conftest.$ac_ext <<_ACEOF
22711/* end confdefs.h. */
22712#include <krb5.h>
22713
22714int
22715main ()
22716{
22717static krb5_error ac_aggr;
22718if (sizeof ac_aggr.text)
22719return 0;
22720 ;
22721 return 0;
22722}
22723_ACEOF 12583_ACEOF
22724rm -f conftest.$ac_objext 12584 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
22725if { (ac_try="$ac_compile" 12585"
22726case "(($ac_try" in 12586if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
22727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22728 *) ac_try_echo=$ac_try;;
22729esac
22730eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22731$as_echo "$ac_try_echo") >&5
22732 (eval "$ac_compile") 2>conftest.er1
22733 ac_status=$?
22734 grep -v '^ *+' conftest.er1 >conftest.err
22735 rm -f conftest.er1
22736 cat conftest.err >&5
22737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738 (exit $ac_status); } && {
22739 test -z "$ac_c_werror_flag" ||
22740 test ! -s conftest.err
22741 } && test -s conftest.$ac_objext; then
22742 ac_cv_member_krb5_error_text=yes
22743else
22744 $as_echo "$as_me: failed program was:" >&5
22745sed 's/^/| /' conftest.$ac_ext >&5
22746
22747 ac_cv_member_krb5_error_text=no
22748fi
22749
22750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22751fi
22752
22753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22754fi
22755{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22756$as_echo "$ac_cv_member_krb5_error_text" >&6; }
22757if test $ac_cv_member_krb5_error_text = yes; then
22758 12587
22759cat >>confdefs.h <<_ACEOF 12588cat >>confdefs.h <<_ACEOF
22760#define HAVE_KRB5_ERROR_TEXT 1 12589#define HAVE_KRB5_ERROR_TEXT 1
@@ -22762,104 +12591,9 @@ _ACEOF
22762 12591
22763 12592
22764fi 12593fi
22765{ $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5 12594ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
22766$as_echo_n "checking for krb5_error.e_text... " >&6; } 12595"
22767if test "${ac_cv_member_krb5_error_e_text+set}" = set; then 12596if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
22768 $as_echo_n "(cached) " >&6
22769else
22770 cat >conftest.$ac_ext <<_ACEOF
22771/* confdefs.h. */
22772_ACEOF
22773cat confdefs.h >>conftest.$ac_ext
22774cat >>conftest.$ac_ext <<_ACEOF
22775/* end confdefs.h. */
22776#include <krb5.h>
22777
22778int
22779main ()
22780{
22781static krb5_error ac_aggr;
22782if (ac_aggr.e_text)
22783return 0;
22784 ;
22785 return 0;
22786}
22787_ACEOF
22788rm -f conftest.$ac_objext
22789if { (ac_try="$ac_compile"
22790case "(($ac_try" in
22791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22792 *) ac_try_echo=$ac_try;;
22793esac
22794eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22795$as_echo "$ac_try_echo") >&5
22796 (eval "$ac_compile") 2>conftest.er1
22797 ac_status=$?
22798 grep -v '^ *+' conftest.er1 >conftest.err
22799 rm -f conftest.er1
22800 cat conftest.err >&5
22801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802 (exit $ac_status); } && {
22803 test -z "$ac_c_werror_flag" ||
22804 test ! -s conftest.err
22805 } && test -s conftest.$ac_objext; then
22806 ac_cv_member_krb5_error_e_text=yes
22807else
22808 $as_echo "$as_me: failed program was:" >&5
22809sed 's/^/| /' conftest.$ac_ext >&5
22810
22811 cat >conftest.$ac_ext <<_ACEOF
22812/* confdefs.h. */
22813_ACEOF
22814cat confdefs.h >>conftest.$ac_ext
22815cat >>conftest.$ac_ext <<_ACEOF
22816/* end confdefs.h. */
22817#include <krb5.h>
22818
22819int
22820main ()
22821{
22822static krb5_error ac_aggr;
22823if (sizeof ac_aggr.e_text)
22824return 0;
22825 ;
22826 return 0;
22827}
22828_ACEOF
22829rm -f conftest.$ac_objext
22830if { (ac_try="$ac_compile"
22831case "(($ac_try" in
22832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22833 *) ac_try_echo=$ac_try;;
22834esac
22835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22836$as_echo "$ac_try_echo") >&5
22837 (eval "$ac_compile") 2>conftest.er1
22838 ac_status=$?
22839 grep -v '^ *+' conftest.er1 >conftest.err
22840 rm -f conftest.er1
22841 cat conftest.err >&5
22842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843 (exit $ac_status); } && {
22844 test -z "$ac_c_werror_flag" ||
22845 test ! -s conftest.err
22846 } && test -s conftest.$ac_objext; then
22847 ac_cv_member_krb5_error_e_text=yes
22848else
22849 $as_echo "$as_me: failed program was:" >&5
22850sed 's/^/| /' conftest.$ac_ext >&5
22851
22852 ac_cv_member_krb5_error_e_text=no
22853fi
22854
22855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22856fi
22857
22858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22859fi
22860{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
22861$as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22862if test $ac_cv_member_krb5_error_e_text = yes; then
22863 12597
22864cat >>confdefs.h <<_ACEOF 12598cat >>confdefs.h <<_ACEOF
22865#define HAVE_KRB5_ERROR_E_TEXT 1 12599#define HAVE_KRB5_ERROR_E_TEXT 1
@@ -22873,429 +12607,30 @@ fi
22873done 12607done
22874 12608
22875 else 12609 else
22876 12610 for ac_header in des.h
22877for ac_header in des.h 12611do :
22878do 12612 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
22879as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12613if test "x$ac_cv_header_des_h" = x""yes; then :
22880if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22881 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22882$as_echo_n "checking for $ac_header... " >&6; }
22883if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22884 $as_echo_n "(cached) " >&6
22885fi
22886ac_res=`eval 'as_val=${'$as_ac_Header'}
22887 $as_echo "$as_val"'`
22888 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22889$as_echo "$ac_res" >&6; }
22890else
22891 # Is the header compilable?
22892{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22893$as_echo_n "checking $ac_header usability... " >&6; }
22894cat >conftest.$ac_ext <<_ACEOF
22895/* confdefs.h. */
22896_ACEOF
22897cat confdefs.h >>conftest.$ac_ext
22898cat >>conftest.$ac_ext <<_ACEOF
22899/* end confdefs.h. */
22900$ac_includes_default
22901#include <$ac_header>
22902_ACEOF
22903rm -f conftest.$ac_objext
22904if { (ac_try="$ac_compile"
22905case "(($ac_try" in
22906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22907 *) ac_try_echo=$ac_try;;
22908esac
22909eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22910$as_echo "$ac_try_echo") >&5
22911 (eval "$ac_compile") 2>conftest.er1
22912 ac_status=$?
22913 grep -v '^ *+' conftest.er1 >conftest.err
22914 rm -f conftest.er1
22915 cat conftest.err >&5
22916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917 (exit $ac_status); } && {
22918 test -z "$ac_c_werror_flag" ||
22919 test ! -s conftest.err
22920 } && test -s conftest.$ac_objext; then
22921 ac_header_compiler=yes
22922else
22923 $as_echo "$as_me: failed program was:" >&5
22924sed 's/^/| /' conftest.$ac_ext >&5
22925
22926 ac_header_compiler=no
22927fi
22928
22929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22930{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22931$as_echo "$ac_header_compiler" >&6; }
22932
22933# Is the header present?
22934{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22935$as_echo_n "checking $ac_header presence... " >&6; }
22936cat >conftest.$ac_ext <<_ACEOF
22937/* confdefs.h. */
22938_ACEOF
22939cat confdefs.h >>conftest.$ac_ext
22940cat >>conftest.$ac_ext <<_ACEOF
22941/* end confdefs.h. */
22942#include <$ac_header>
22943_ACEOF
22944if { (ac_try="$ac_cpp conftest.$ac_ext"
22945case "(($ac_try" in
22946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22947 *) ac_try_echo=$ac_try;;
22948esac
22949eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22950$as_echo "$ac_try_echo") >&5
22951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22952 ac_status=$?
22953 grep -v '^ *+' conftest.er1 >conftest.err
22954 rm -f conftest.er1
22955 cat conftest.err >&5
22956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22957 (exit $ac_status); } >/dev/null && {
22958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22959 test ! -s conftest.err
22960 }; then
22961 ac_header_preproc=yes
22962else
22963 $as_echo "$as_me: failed program was:" >&5
22964sed 's/^/| /' conftest.$ac_ext >&5
22965
22966 ac_header_preproc=no
22967fi
22968
22969rm -f conftest.err conftest.$ac_ext
22970{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22971$as_echo "$ac_header_preproc" >&6; }
22972
22973# So? What about this header?
22974case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22975 yes:no: )
22976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22977$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22978 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22979$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22980 ac_header_preproc=yes
22981 ;;
22982 no:yes:* )
22983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22984$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22986$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22988$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22990$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22992$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22994$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22995
22996 ;;
22997esac
22998{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22999$as_echo_n "checking for $ac_header... " >&6; }
23000if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23001 $as_echo_n "(cached) " >&6
23002else
23003 eval "$as_ac_Header=\$ac_header_preproc"
23004fi
23005ac_res=`eval 'as_val=${'$as_ac_Header'}
23006 $as_echo "$as_val"'`
23007 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23008$as_echo "$ac_res" >&6; }
23009
23010fi
23011if test `eval 'as_val=${'$as_ac_Header'}
23012 $as_echo "$as_val"'` = yes; then
23013 cat >>confdefs.h <<_ACEOF 12614 cat >>confdefs.h <<_ACEOF
23014#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12615#define HAVE_DES_H 1
23015_ACEOF
23016
23017else
23018
23019for ac_header in kerberosIV/des.h
23020do
23021as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23022if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23023 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23024$as_echo_n "checking for $ac_header... " >&6; }
23025if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23026 $as_echo_n "(cached) " >&6
23027fi
23028ac_res=`eval 'as_val=${'$as_ac_Header'}
23029 $as_echo "$as_val"'`
23030 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23031$as_echo "$ac_res" >&6; }
23032else
23033 # Is the header compilable?
23034{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23035$as_echo_n "checking $ac_header usability... " >&6; }
23036cat >conftest.$ac_ext <<_ACEOF
23037/* confdefs.h. */
23038_ACEOF
23039cat confdefs.h >>conftest.$ac_ext
23040cat >>conftest.$ac_ext <<_ACEOF
23041/* end confdefs.h. */
23042$ac_includes_default
23043#include <$ac_header>
23044_ACEOF
23045rm -f conftest.$ac_objext
23046if { (ac_try="$ac_compile"
23047case "(($ac_try" in
23048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23049 *) ac_try_echo=$ac_try;;
23050esac
23051eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23052$as_echo "$ac_try_echo") >&5
23053 (eval "$ac_compile") 2>conftest.er1
23054 ac_status=$?
23055 grep -v '^ *+' conftest.er1 >conftest.err
23056 rm -f conftest.er1
23057 cat conftest.err >&5
23058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059 (exit $ac_status); } && {
23060 test -z "$ac_c_werror_flag" ||
23061 test ! -s conftest.err
23062 } && test -s conftest.$ac_objext; then
23063 ac_header_compiler=yes
23064else
23065 $as_echo "$as_me: failed program was:" >&5
23066sed 's/^/| /' conftest.$ac_ext >&5
23067
23068 ac_header_compiler=no
23069fi
23070
23071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23072{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23073$as_echo "$ac_header_compiler" >&6; }
23074
23075# Is the header present?
23076{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23077$as_echo_n "checking $ac_header presence... " >&6; }
23078cat >conftest.$ac_ext <<_ACEOF
23079/* confdefs.h. */
23080_ACEOF 12616_ACEOF
23081cat confdefs.h >>conftest.$ac_ext
23082cat >>conftest.$ac_ext <<_ACEOF
23083/* end confdefs.h. */
23084#include <$ac_header>
23085_ACEOF
23086if { (ac_try="$ac_cpp conftest.$ac_ext"
23087case "(($ac_try" in
23088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23089 *) ac_try_echo=$ac_try;;
23090esac
23091eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23092$as_echo "$ac_try_echo") >&5
23093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23094 ac_status=$?
23095 grep -v '^ *+' conftest.er1 >conftest.err
23096 rm -f conftest.er1
23097 cat conftest.err >&5
23098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23099 (exit $ac_status); } >/dev/null && {
23100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23101 test ! -s conftest.err
23102 }; then
23103 ac_header_preproc=yes
23104else
23105 $as_echo "$as_me: failed program was:" >&5
23106sed 's/^/| /' conftest.$ac_ext >&5
23107
23108 ac_header_preproc=no
23109fi
23110 12617
23111rm -f conftest.err conftest.$ac_ext
23112{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23113$as_echo "$ac_header_preproc" >&6; }
23114
23115# So? What about this header?
23116case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23117 yes:no: )
23118 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23119$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23121$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23122 ac_header_preproc=yes
23123 ;;
23124 no:yes:* )
23125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23126$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23127 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23128$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23130$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23131 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23132$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23133 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23134$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23136$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23137
23138 ;;
23139esac
23140{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23141$as_echo_n "checking for $ac_header... " >&6; }
23142if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23143 $as_echo_n "(cached) " >&6
23144else 12618else
23145 eval "$as_ac_Header=\$ac_header_preproc" 12619 for ac_header in kerberosIV/des.h
23146fi 12620do :
23147ac_res=`eval 'as_val=${'$as_ac_Header'} 12621 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
23148 $as_echo "$as_val"'` 12622if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
23149 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23150$as_echo "$ac_res" >&6; }
23151
23152fi
23153if test `eval 'as_val=${'$as_ac_Header'}
23154 $as_echo "$as_val"'` = yes; then
23155 cat >>confdefs.h <<_ACEOF 12623 cat >>confdefs.h <<_ACEOF
23156#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12624#define HAVE_KERBEROSIV_DES_H 1
23157_ACEOF
23158
23159else
23160
23161for ac_header in kerberos/des.h
23162do
23163as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23164if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23165 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23166$as_echo_n "checking for $ac_header... " >&6; }
23167if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23168 $as_echo_n "(cached) " >&6
23169fi
23170ac_res=`eval 'as_val=${'$as_ac_Header'}
23171 $as_echo "$as_val"'`
23172 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23173$as_echo "$ac_res" >&6; }
23174else
23175 # Is the header compilable?
23176{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23177$as_echo_n "checking $ac_header usability... " >&6; }
23178cat >conftest.$ac_ext <<_ACEOF
23179/* confdefs.h. */
23180_ACEOF
23181cat confdefs.h >>conftest.$ac_ext
23182cat >>conftest.$ac_ext <<_ACEOF
23183/* end confdefs.h. */
23184$ac_includes_default
23185#include <$ac_header>
23186_ACEOF
23187rm -f conftest.$ac_objext
23188if { (ac_try="$ac_compile"
23189case "(($ac_try" in
23190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23191 *) ac_try_echo=$ac_try;;
23192esac
23193eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23194$as_echo "$ac_try_echo") >&5
23195 (eval "$ac_compile") 2>conftest.er1
23196 ac_status=$?
23197 grep -v '^ *+' conftest.er1 >conftest.err
23198 rm -f conftest.er1
23199 cat conftest.err >&5
23200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201 (exit $ac_status); } && {
23202 test -z "$ac_c_werror_flag" ||
23203 test ! -s conftest.err
23204 } && test -s conftest.$ac_objext; then
23205 ac_header_compiler=yes
23206else
23207 $as_echo "$as_me: failed program was:" >&5
23208sed 's/^/| /' conftest.$ac_ext >&5
23209
23210 ac_header_compiler=no
23211fi
23212
23213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23214{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23215$as_echo "$ac_header_compiler" >&6; }
23216
23217# Is the header present?
23218{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23219$as_echo_n "checking $ac_header presence... " >&6; }
23220cat >conftest.$ac_ext <<_ACEOF
23221/* confdefs.h. */
23222_ACEOF 12625_ACEOF
23223cat confdefs.h >>conftest.$ac_ext
23224cat >>conftest.$ac_ext <<_ACEOF
23225/* end confdefs.h. */
23226#include <$ac_header>
23227_ACEOF
23228if { (ac_try="$ac_cpp conftest.$ac_ext"
23229case "(($ac_try" in
23230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23231 *) ac_try_echo=$ac_try;;
23232esac
23233eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23234$as_echo "$ac_try_echo") >&5
23235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23236 ac_status=$?
23237 grep -v '^ *+' conftest.er1 >conftest.err
23238 rm -f conftest.er1
23239 cat conftest.err >&5
23240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); } >/dev/null && {
23242 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23243 test ! -s conftest.err
23244 }; then
23245 ac_header_preproc=yes
23246else
23247 $as_echo "$as_me: failed program was:" >&5
23248sed 's/^/| /' conftest.$ac_ext >&5
23249
23250 ac_header_preproc=no
23251fi
23252 12626
23253rm -f conftest.err conftest.$ac_ext
23254{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23255$as_echo "$ac_header_preproc" >&6; }
23256
23257# So? What about this header?
23258case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23259 yes:no: )
23260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23261$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23263$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23264 ac_header_preproc=yes
23265 ;;
23266 no:yes:* )
23267 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23268$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23269 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23270$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23271 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23272$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23273 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23274$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23275 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23276$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23278$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23279
23280 ;;
23281esac
23282{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23283$as_echo_n "checking for $ac_header... " >&6; }
23284if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23285 $as_echo_n "(cached) " >&6
23286else 12627else
23287 eval "$as_ac_Header=\$ac_header_preproc" 12628 for ac_header in kerberos/des.h
23288fi 12629do :
23289ac_res=`eval 'as_val=${'$as_ac_Header'} 12630 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
23290 $as_echo "$as_val"'` 12631if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
23291 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23292$as_echo "$ac_res" >&6; }
23293
23294fi
23295if test `eval 'as_val=${'$as_ac_Header'}
23296 $as_echo "$as_val"'` = yes; then
23297 cat >>confdefs.h <<_ACEOF 12632 cat >>confdefs.h <<_ACEOF
23298#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12633#define HAVE_KERBEROS_DES_H 1
23299_ACEOF 12634_ACEOF
23300 12635
23301fi 12636fi
@@ -23310,429 +12645,30 @@ fi
23310 12645
23311done 12646done
23312 12647
23313 12648 for ac_header in krb.h
23314for ac_header in krb.h 12649do :
23315do 12650 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
23316as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12651if test "x$ac_cv_header_krb_h" = x""yes; then :
23317if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23318 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23319$as_echo_n "checking for $ac_header... " >&6; }
23320if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23321 $as_echo_n "(cached) " >&6
23322fi
23323ac_res=`eval 'as_val=${'$as_ac_Header'}
23324 $as_echo "$as_val"'`
23325 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23326$as_echo "$ac_res" >&6; }
23327else
23328 # Is the header compilable?
23329{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23330$as_echo_n "checking $ac_header usability... " >&6; }
23331cat >conftest.$ac_ext <<_ACEOF
23332/* confdefs.h. */
23333_ACEOF
23334cat confdefs.h >>conftest.$ac_ext
23335cat >>conftest.$ac_ext <<_ACEOF
23336/* end confdefs.h. */
23337$ac_includes_default
23338#include <$ac_header>
23339_ACEOF
23340rm -f conftest.$ac_objext
23341if { (ac_try="$ac_compile"
23342case "(($ac_try" in
23343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23344 *) ac_try_echo=$ac_try;;
23345esac
23346eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23347$as_echo "$ac_try_echo") >&5
23348 (eval "$ac_compile") 2>conftest.er1
23349 ac_status=$?
23350 grep -v '^ *+' conftest.er1 >conftest.err
23351 rm -f conftest.er1
23352 cat conftest.err >&5
23353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23354 (exit $ac_status); } && {
23355 test -z "$ac_c_werror_flag" ||
23356 test ! -s conftest.err
23357 } && test -s conftest.$ac_objext; then
23358 ac_header_compiler=yes
23359else
23360 $as_echo "$as_me: failed program was:" >&5
23361sed 's/^/| /' conftest.$ac_ext >&5
23362
23363 ac_header_compiler=no
23364fi
23365
23366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23367{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23368$as_echo "$ac_header_compiler" >&6; }
23369
23370# Is the header present?
23371{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23372$as_echo_n "checking $ac_header presence... " >&6; }
23373cat >conftest.$ac_ext <<_ACEOF
23374/* confdefs.h. */
23375_ACEOF
23376cat confdefs.h >>conftest.$ac_ext
23377cat >>conftest.$ac_ext <<_ACEOF
23378/* end confdefs.h. */
23379#include <$ac_header>
23380_ACEOF
23381if { (ac_try="$ac_cpp conftest.$ac_ext"
23382case "(($ac_try" in
23383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23384 *) ac_try_echo=$ac_try;;
23385esac
23386eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23387$as_echo "$ac_try_echo") >&5
23388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23389 ac_status=$?
23390 grep -v '^ *+' conftest.er1 >conftest.err
23391 rm -f conftest.er1
23392 cat conftest.err >&5
23393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394 (exit $ac_status); } >/dev/null && {
23395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23396 test ! -s conftest.err
23397 }; then
23398 ac_header_preproc=yes
23399else
23400 $as_echo "$as_me: failed program was:" >&5
23401sed 's/^/| /' conftest.$ac_ext >&5
23402
23403 ac_header_preproc=no
23404fi
23405
23406rm -f conftest.err conftest.$ac_ext
23407{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23408$as_echo "$ac_header_preproc" >&6; }
23409
23410# So? What about this header?
23411case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23412 yes:no: )
23413 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23414$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23416$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23417 ac_header_preproc=yes
23418 ;;
23419 no:yes:* )
23420 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23421$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23422 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23423$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23424 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23425$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23426 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23427$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23428 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23429$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23431$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23432
23433 ;;
23434esac
23435{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23436$as_echo_n "checking for $ac_header... " >&6; }
23437if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23438 $as_echo_n "(cached) " >&6
23439else
23440 eval "$as_ac_Header=\$ac_header_preproc"
23441fi
23442ac_res=`eval 'as_val=${'$as_ac_Header'}
23443 $as_echo "$as_val"'`
23444 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23445$as_echo "$ac_res" >&6; }
23446
23447fi
23448if test `eval 'as_val=${'$as_ac_Header'}
23449 $as_echo "$as_val"'` = yes; then
23450 cat >>confdefs.h <<_ACEOF 12652 cat >>confdefs.h <<_ACEOF
23451#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12653#define HAVE_KRB_H 1
23452_ACEOF
23453
23454else
23455
23456for ac_header in kerberosIV/krb.h
23457do
23458as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23459if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23460 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23461$as_echo_n "checking for $ac_header... " >&6; }
23462if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23463 $as_echo_n "(cached) " >&6
23464fi
23465ac_res=`eval 'as_val=${'$as_ac_Header'}
23466 $as_echo "$as_val"'`
23467 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23468$as_echo "$ac_res" >&6; }
23469else
23470 # Is the header compilable?
23471{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23472$as_echo_n "checking $ac_header usability... " >&6; }
23473cat >conftest.$ac_ext <<_ACEOF
23474/* confdefs.h. */
23475_ACEOF
23476cat confdefs.h >>conftest.$ac_ext
23477cat >>conftest.$ac_ext <<_ACEOF
23478/* end confdefs.h. */
23479$ac_includes_default
23480#include <$ac_header>
23481_ACEOF
23482rm -f conftest.$ac_objext
23483if { (ac_try="$ac_compile"
23484case "(($ac_try" in
23485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23486 *) ac_try_echo=$ac_try;;
23487esac
23488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23489$as_echo "$ac_try_echo") >&5
23490 (eval "$ac_compile") 2>conftest.er1
23491 ac_status=$?
23492 grep -v '^ *+' conftest.er1 >conftest.err
23493 rm -f conftest.er1
23494 cat conftest.err >&5
23495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23496 (exit $ac_status); } && {
23497 test -z "$ac_c_werror_flag" ||
23498 test ! -s conftest.err
23499 } && test -s conftest.$ac_objext; then
23500 ac_header_compiler=yes
23501else
23502 $as_echo "$as_me: failed program was:" >&5
23503sed 's/^/| /' conftest.$ac_ext >&5
23504
23505 ac_header_compiler=no
23506fi
23507
23508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23509{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23510$as_echo "$ac_header_compiler" >&6; }
23511
23512# Is the header present?
23513{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23514$as_echo_n "checking $ac_header presence... " >&6; }
23515cat >conftest.$ac_ext <<_ACEOF
23516/* confdefs.h. */
23517_ACEOF 12654_ACEOF
23518cat confdefs.h >>conftest.$ac_ext
23519cat >>conftest.$ac_ext <<_ACEOF
23520/* end confdefs.h. */
23521#include <$ac_header>
23522_ACEOF
23523if { (ac_try="$ac_cpp conftest.$ac_ext"
23524case "(($ac_try" in
23525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23526 *) ac_try_echo=$ac_try;;
23527esac
23528eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23529$as_echo "$ac_try_echo") >&5
23530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23531 ac_status=$?
23532 grep -v '^ *+' conftest.er1 >conftest.err
23533 rm -f conftest.er1
23534 cat conftest.err >&5
23535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536 (exit $ac_status); } >/dev/null && {
23537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23538 test ! -s conftest.err
23539 }; then
23540 ac_header_preproc=yes
23541else
23542 $as_echo "$as_me: failed program was:" >&5
23543sed 's/^/| /' conftest.$ac_ext >&5
23544
23545 ac_header_preproc=no
23546fi
23547 12655
23548rm -f conftest.err conftest.$ac_ext
23549{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23550$as_echo "$ac_header_preproc" >&6; }
23551
23552# So? What about this header?
23553case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23554 yes:no: )
23555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23556$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23558$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23559 ac_header_preproc=yes
23560 ;;
23561 no:yes:* )
23562 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23563$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23564 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23565$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23566 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23567$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23568 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23569$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23571$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23573$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23574
23575 ;;
23576esac
23577{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23578$as_echo_n "checking for $ac_header... " >&6; }
23579if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23580 $as_echo_n "(cached) " >&6
23581else 12656else
23582 eval "$as_ac_Header=\$ac_header_preproc" 12657 for ac_header in kerberosIV/krb.h
23583fi 12658do :
23584ac_res=`eval 'as_val=${'$as_ac_Header'} 12659 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
23585 $as_echo "$as_val"'` 12660if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
23586 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23587$as_echo "$ac_res" >&6; }
23588
23589fi
23590if test `eval 'as_val=${'$as_ac_Header'}
23591 $as_echo "$as_val"'` = yes; then
23592 cat >>confdefs.h <<_ACEOF 12661 cat >>confdefs.h <<_ACEOF
23593#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12662#define HAVE_KERBEROSIV_KRB_H 1
23594_ACEOF
23595
23596else
23597
23598for ac_header in kerberos/krb.h
23599do
23600as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23601if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23602 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23603$as_echo_n "checking for $ac_header... " >&6; }
23604if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23605 $as_echo_n "(cached) " >&6
23606fi
23607ac_res=`eval 'as_val=${'$as_ac_Header'}
23608 $as_echo "$as_val"'`
23609 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23610$as_echo "$ac_res" >&6; }
23611else
23612 # Is the header compilable?
23613{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23614$as_echo_n "checking $ac_header usability... " >&6; }
23615cat >conftest.$ac_ext <<_ACEOF
23616/* confdefs.h. */
23617_ACEOF
23618cat confdefs.h >>conftest.$ac_ext
23619cat >>conftest.$ac_ext <<_ACEOF
23620/* end confdefs.h. */
23621$ac_includes_default
23622#include <$ac_header>
23623_ACEOF
23624rm -f conftest.$ac_objext
23625if { (ac_try="$ac_compile"
23626case "(($ac_try" in
23627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23628 *) ac_try_echo=$ac_try;;
23629esac
23630eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23631$as_echo "$ac_try_echo") >&5
23632 (eval "$ac_compile") 2>conftest.er1
23633 ac_status=$?
23634 grep -v '^ *+' conftest.er1 >conftest.err
23635 rm -f conftest.er1
23636 cat conftest.err >&5
23637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23638 (exit $ac_status); } && {
23639 test -z "$ac_c_werror_flag" ||
23640 test ! -s conftest.err
23641 } && test -s conftest.$ac_objext; then
23642 ac_header_compiler=yes
23643else
23644 $as_echo "$as_me: failed program was:" >&5
23645sed 's/^/| /' conftest.$ac_ext >&5
23646
23647 ac_header_compiler=no
23648fi
23649
23650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23651{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23652$as_echo "$ac_header_compiler" >&6; }
23653
23654# Is the header present?
23655{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23656$as_echo_n "checking $ac_header presence... " >&6; }
23657cat >conftest.$ac_ext <<_ACEOF
23658/* confdefs.h. */
23659_ACEOF 12663_ACEOF
23660cat confdefs.h >>conftest.$ac_ext
23661cat >>conftest.$ac_ext <<_ACEOF
23662/* end confdefs.h. */
23663#include <$ac_header>
23664_ACEOF
23665if { (ac_try="$ac_cpp conftest.$ac_ext"
23666case "(($ac_try" in
23667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23668 *) ac_try_echo=$ac_try;;
23669esac
23670eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23671$as_echo "$ac_try_echo") >&5
23672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23673 ac_status=$?
23674 grep -v '^ *+' conftest.er1 >conftest.err
23675 rm -f conftest.er1
23676 cat conftest.err >&5
23677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678 (exit $ac_status); } >/dev/null && {
23679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23680 test ! -s conftest.err
23681 }; then
23682 ac_header_preproc=yes
23683else
23684 $as_echo "$as_me: failed program was:" >&5
23685sed 's/^/| /' conftest.$ac_ext >&5
23686
23687 ac_header_preproc=no
23688fi
23689 12664
23690rm -f conftest.err conftest.$ac_ext
23691{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23692$as_echo "$ac_header_preproc" >&6; }
23693
23694# So? What about this header?
23695case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23696 yes:no: )
23697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23698$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23700$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23701 ac_header_preproc=yes
23702 ;;
23703 no:yes:* )
23704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23705$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23707$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23709$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23711$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23713$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23714 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23715$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23716
23717 ;;
23718esac
23719{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23720$as_echo_n "checking for $ac_header... " >&6; }
23721if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23722 $as_echo_n "(cached) " >&6
23723else 12665else
23724 eval "$as_ac_Header=\$ac_header_preproc" 12666 for ac_header in kerberos/krb.h
23725fi 12667do :
23726ac_res=`eval 'as_val=${'$as_ac_Header'} 12668 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
23727 $as_echo "$as_val"'` 12669if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
23728 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23729$as_echo "$ac_res" >&6; }
23730
23731fi
23732if test `eval 'as_val=${'$as_ac_Header'}
23733 $as_echo "$as_val"'` = yes; then
23734 cat >>confdefs.h <<_ACEOF 12670 cat >>confdefs.h <<_ACEOF
23735#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12671#define HAVE_KERBEROS_KRB_H 1
23736_ACEOF 12672_ACEOF
23737 12673
23738fi 12674fi
@@ -23748,145 +12684,12 @@ fi
23748done 12684done
23749 12685
23750 fi 12686 fi
23751 12687 for ac_header in com_err.h
23752for ac_header in com_err.h 12688do :
23753do 12689 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
23754as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12690if test "x$ac_cv_header_com_err_h" = x""yes; then :
23755if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23756 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23757$as_echo_n "checking for $ac_header... " >&6; }
23758if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23759 $as_echo_n "(cached) " >&6
23760fi
23761ac_res=`eval 'as_val=${'$as_ac_Header'}
23762 $as_echo "$as_val"'`
23763 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23764$as_echo "$ac_res" >&6; }
23765else
23766 # Is the header compilable?
23767{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23768$as_echo_n "checking $ac_header usability... " >&6; }
23769cat >conftest.$ac_ext <<_ACEOF
23770/* confdefs.h. */
23771_ACEOF
23772cat confdefs.h >>conftest.$ac_ext
23773cat >>conftest.$ac_ext <<_ACEOF
23774/* end confdefs.h. */
23775$ac_includes_default
23776#include <$ac_header>
23777_ACEOF
23778rm -f conftest.$ac_objext
23779if { (ac_try="$ac_compile"
23780case "(($ac_try" in
23781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23782 *) ac_try_echo=$ac_try;;
23783esac
23784eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23785$as_echo "$ac_try_echo") >&5
23786 (eval "$ac_compile") 2>conftest.er1
23787 ac_status=$?
23788 grep -v '^ *+' conftest.er1 >conftest.err
23789 rm -f conftest.er1
23790 cat conftest.err >&5
23791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792 (exit $ac_status); } && {
23793 test -z "$ac_c_werror_flag" ||
23794 test ! -s conftest.err
23795 } && test -s conftest.$ac_objext; then
23796 ac_header_compiler=yes
23797else
23798 $as_echo "$as_me: failed program was:" >&5
23799sed 's/^/| /' conftest.$ac_ext >&5
23800
23801 ac_header_compiler=no
23802fi
23803
23804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23805{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23806$as_echo "$ac_header_compiler" >&6; }
23807
23808# Is the header present?
23809{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23810$as_echo_n "checking $ac_header presence... " >&6; }
23811cat >conftest.$ac_ext <<_ACEOF
23812/* confdefs.h. */
23813_ACEOF
23814cat confdefs.h >>conftest.$ac_ext
23815cat >>conftest.$ac_ext <<_ACEOF
23816/* end confdefs.h. */
23817#include <$ac_header>
23818_ACEOF
23819if { (ac_try="$ac_cpp conftest.$ac_ext"
23820case "(($ac_try" in
23821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23822 *) ac_try_echo=$ac_try;;
23823esac
23824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23825$as_echo "$ac_try_echo") >&5
23826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23827 ac_status=$?
23828 grep -v '^ *+' conftest.er1 >conftest.err
23829 rm -f conftest.er1
23830 cat conftest.err >&5
23831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832 (exit $ac_status); } >/dev/null && {
23833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23834 test ! -s conftest.err
23835 }; then
23836 ac_header_preproc=yes
23837else
23838 $as_echo "$as_me: failed program was:" >&5
23839sed 's/^/| /' conftest.$ac_ext >&5
23840
23841 ac_header_preproc=no
23842fi
23843
23844rm -f conftest.err conftest.$ac_ext
23845{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23846$as_echo "$ac_header_preproc" >&6; }
23847
23848# So? What about this header?
23849case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23850 yes:no: )
23851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23852$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23854$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23855 ac_header_preproc=yes
23856 ;;
23857 no:yes:* )
23858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23859$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23861$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23863$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23865$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23867$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23869$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23870
23871 ;;
23872esac
23873{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23874$as_echo_n "checking for $ac_header... " >&6; }
23875if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23876 $as_echo_n "(cached) " >&6
23877else
23878 eval "$as_ac_Header=\$ac_header_preproc"
23879fi
23880ac_res=`eval 'as_val=${'$as_ac_Header'}
23881 $as_echo "$as_val"'`
23882 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23883$as_echo "$ac_res" >&6; }
23884
23885fi
23886if test `eval 'as_val=${'$as_ac_Header'}
23887 $as_echo "$as_val"'` = yes; then
23888 cat >>confdefs.h <<_ACEOF 12691 cat >>confdefs.h <<_ACEOF
23889#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12692#define HAVE_COM_ERR_H 1
23890_ACEOF 12693_ACEOF
23891 12694
23892fi 12695fi
@@ -23903,19 +12706,14 @@ fi
23903 12706
23904# Solaris requires -lintl if you want strerror (which calls dgettext) 12707# Solaris requires -lintl if you want strerror (which calls dgettext)
23905# to return localized messages. 12708# to return localized messages.
23906 12709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
23907{ $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23908$as_echo_n "checking for dgettext in -lintl... " >&6; } 12710$as_echo_n "checking for dgettext in -lintl... " >&6; }
23909if test "${ac_cv_lib_intl_dgettext+set}" = set; then 12711if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
23910 $as_echo_n "(cached) " >&6 12712 $as_echo_n "(cached) " >&6
23911else 12713else
23912 ac_check_lib_save_LIBS=$LIBS 12714 ac_check_lib_save_LIBS=$LIBS
23913LIBS="-lintl $LIBS" 12715LIBS="-lintl $LIBS"
23914cat >conftest.$ac_ext <<_ACEOF 12716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23915/* confdefs.h. */
23916_ACEOF
23917cat confdefs.h >>conftest.$ac_ext
23918cat >>conftest.$ac_ext <<_ACEOF
23919/* end confdefs.h. */ 12717/* end confdefs.h. */
23920 12718
23921/* Override any GCC internal prototype to avoid an error. 12719/* Override any GCC internal prototype to avoid an error.
@@ -23933,43 +12731,18 @@ return dgettext ();
23933 return 0; 12731 return 0;
23934} 12732}
23935_ACEOF 12733_ACEOF
23936rm -f conftest.$ac_objext conftest$ac_exeext 12734if ac_fn_c_try_link "$LINENO"; then :
23937if { (ac_try="$ac_link"
23938case "(($ac_try" in
23939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23940 *) ac_try_echo=$ac_try;;
23941esac
23942eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23943$as_echo "$ac_try_echo") >&5
23944 (eval "$ac_link") 2>conftest.er1
23945 ac_status=$?
23946 grep -v '^ *+' conftest.er1 >conftest.err
23947 rm -f conftest.er1
23948 cat conftest.err >&5
23949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23950 (exit $ac_status); } && {
23951 test -z "$ac_c_werror_flag" ||
23952 test ! -s conftest.err
23953 } && test -s conftest$ac_exeext && {
23954 test "$cross_compiling" = yes ||
23955 $as_test_x conftest$ac_exeext
23956 }; then
23957 ac_cv_lib_intl_dgettext=yes 12735 ac_cv_lib_intl_dgettext=yes
23958else 12736else
23959 $as_echo "$as_me: failed program was:" >&5 12737 ac_cv_lib_intl_dgettext=no
23960sed 's/^/| /' conftest.$ac_ext >&5
23961
23962 ac_cv_lib_intl_dgettext=no
23963fi 12738fi
23964 12739rm -f core conftest.err conftest.$ac_objext \
23965rm -rf conftest.dSYM 12740 conftest$ac_exeext conftest.$ac_ext
23966rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23967 conftest$ac_exeext conftest.$ac_ext
23968LIBS=$ac_check_lib_save_LIBS 12741LIBS=$ac_check_lib_save_LIBS
23969fi 12742fi
23970{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 12743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
23971$as_echo "$ac_cv_lib_intl_dgettext" >&6; } 12744$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23972if test $ac_cv_lib_intl_dgettext = yes; then 12745if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
23973 cat >>confdefs.h <<_ACEOF 12746 cat >>confdefs.h <<_ACEOF
23974#define HAVE_LIBINTL 1 12747#define HAVE_LIBINTL 1
23975_ACEOF 12748_ACEOF
@@ -23979,21 +12752,17 @@ _ACEOF
23979fi 12752fi
23980 12753
23981 12754
23982{ $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5 12755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
23983$as_echo_n "checking whether localtime caches TZ... " >&6; } 12756$as_echo_n "checking whether localtime caches TZ... " >&6; }
23984if test "${emacs_cv_localtime_cache+set}" = set; then 12757if test "${emacs_cv_localtime_cache+set}" = set; then :
23985 $as_echo_n "(cached) " >&6 12758 $as_echo_n "(cached) " >&6
23986else 12759else
23987 if test x$ac_cv_func_tzset = xyes; then 12760 if test x$ac_cv_func_tzset = xyes; then
23988if test "$cross_compiling" = yes; then 12761if test "$cross_compiling" = yes; then :
23989 # If we have tzset, assume the worst when cross-compiling. 12762 # If we have tzset, assume the worst when cross-compiling.
23990emacs_cv_localtime_cache=yes 12763emacs_cv_localtime_cache=yes
23991else 12764else
23992 cat >conftest.$ac_ext <<_ACEOF 12765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23993/* confdefs.h. */
23994_ACEOF
23995cat confdefs.h >>conftest.$ac_ext
23996cat >>conftest.$ac_ext <<_ACEOF
23997/* end confdefs.h. */ 12766/* end confdefs.h. */
23998#include <time.h> 12767#include <time.h>
23999extern char **environ; 12768extern char **environ;
@@ -24025,170 +12794,48 @@ main()
24025 exit (0); 12794 exit (0);
24026} 12795}
24027_ACEOF 12796_ACEOF
24028rm -f conftest$ac_exeext 12797if ac_fn_c_try_run "$LINENO"; then :
24029if { (ac_try="$ac_link"
24030case "(($ac_try" in
24031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24032 *) ac_try_echo=$ac_try;;
24033esac
24034eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24035$as_echo "$ac_try_echo") >&5
24036 (eval "$ac_link") 2>&5
24037 ac_status=$?
24038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24040 { (case "(($ac_try" in
24041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24042 *) ac_try_echo=$ac_try;;
24043esac
24044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24045$as_echo "$ac_try_echo") >&5
24046 (eval "$ac_try") 2>&5
24047 ac_status=$?
24048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24049 (exit $ac_status); }; }; then
24050 emacs_cv_localtime_cache=no 12798 emacs_cv_localtime_cache=no
24051else 12799else
24052 $as_echo "$as_me: program exited with status $ac_status" >&5 12800 emacs_cv_localtime_cache=yes
24053$as_echo "$as_me: failed program was:" >&5
24054sed 's/^/| /' conftest.$ac_ext >&5
24055
24056( exit $ac_status )
24057emacs_cv_localtime_cache=yes
24058fi 12801fi
24059rm -rf conftest.dSYM 12802rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24060rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12803 conftest.$ac_objext conftest.beam conftest.$ac_ext
24061fi 12804fi
24062 12805
24063
24064else 12806else
24065 # If we lack tzset, report that localtime does not cache TZ, 12807 # If we lack tzset, report that localtime does not cache TZ,
24066 # since we can't invalidate the cache if we don't have tzset. 12808 # since we can't invalidate the cache if we don't have tzset.
24067 emacs_cv_localtime_cache=no 12809 emacs_cv_localtime_cache=no
24068fi 12810fi
24069fi 12811fi
24070{ $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5 12812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
24071$as_echo "$emacs_cv_localtime_cache" >&6; } 12813$as_echo "$emacs_cv_localtime_cache" >&6; }
24072if test $emacs_cv_localtime_cache = yes; then 12814if test $emacs_cv_localtime_cache = yes; then
24073 12815
24074cat >>confdefs.h <<\_ACEOF 12816$as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
24075#define LOCALTIME_CACHE 1
24076_ACEOF
24077 12817
24078fi 12818fi
24079 12819
24080if test "x$HAVE_TIMEVAL" = xyes; then 12820if test "x$HAVE_TIMEVAL" = xyes; then
24081 12821 for ac_func in gettimeofday
24082for ac_func in gettimeofday 12822do :
24083do 12823 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
24084as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12824if test "x$ac_cv_func_gettimeofday" = x""yes; then :
24085{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24086$as_echo_n "checking for $ac_func... " >&6; }
24087if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24088 $as_echo_n "(cached) " >&6
24089else
24090 cat >conftest.$ac_ext <<_ACEOF
24091/* confdefs.h. */
24092_ACEOF
24093cat confdefs.h >>conftest.$ac_ext
24094cat >>conftest.$ac_ext <<_ACEOF
24095/* end confdefs.h. */
24096/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24098#define $ac_func innocuous_$ac_func
24099
24100/* System header to define __stub macros and hopefully few prototypes,
24101 which can conflict with char $ac_func (); below.
24102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24103 <limits.h> exists even on freestanding compilers. */
24104
24105#ifdef __STDC__
24106# include <limits.h>
24107#else
24108# include <assert.h>
24109#endif
24110
24111#undef $ac_func
24112
24113/* Override any GCC internal prototype to avoid an error.
24114 Use char because int might match the return type of a GCC
24115 builtin and then its argument prototype would still apply. */
24116#ifdef __cplusplus
24117extern "C"
24118#endif
24119char $ac_func ();
24120/* The GNU C library defines this for functions which it implements
24121 to always fail with ENOSYS. Some functions are actually named
24122 something starting with __ and the normal name is an alias. */
24123#if defined __stub_$ac_func || defined __stub___$ac_func
24124choke me
24125#endif
24126
24127int
24128main ()
24129{
24130return $ac_func ();
24131 ;
24132 return 0;
24133}
24134_ACEOF
24135rm -f conftest.$ac_objext conftest$ac_exeext
24136if { (ac_try="$ac_link"
24137case "(($ac_try" in
24138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24139 *) ac_try_echo=$ac_try;;
24140esac
24141eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24142$as_echo "$ac_try_echo") >&5
24143 (eval "$ac_link") 2>conftest.er1
24144 ac_status=$?
24145 grep -v '^ *+' conftest.er1 >conftest.err
24146 rm -f conftest.er1
24147 cat conftest.err >&5
24148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149 (exit $ac_status); } && {
24150 test -z "$ac_c_werror_flag" ||
24151 test ! -s conftest.err
24152 } && test -s conftest$ac_exeext && {
24153 test "$cross_compiling" = yes ||
24154 $as_test_x conftest$ac_exeext
24155 }; then
24156 eval "$as_ac_var=yes"
24157else
24158 $as_echo "$as_me: failed program was:" >&5
24159sed 's/^/| /' conftest.$ac_ext >&5
24160
24161 eval "$as_ac_var=no"
24162fi
24163
24164rm -rf conftest.dSYM
24165rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24166 conftest$ac_exeext conftest.$ac_ext
24167fi
24168ac_res=`eval 'as_val=${'$as_ac_var'}
24169 $as_echo "$as_val"'`
24170 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24171$as_echo "$ac_res" >&6; }
24172if test `eval 'as_val=${'$as_ac_var'}
24173 $as_echo "$as_val"'` = yes; then
24174 cat >>confdefs.h <<_ACEOF 12825 cat >>confdefs.h <<_ACEOF
24175#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12826#define HAVE_GETTIMEOFDAY 1
24176_ACEOF 12827_ACEOF
24177 12828
24178fi 12829fi
24179done 12830done
24180 12831
24181 if test $ac_cv_func_gettimeofday = yes; then 12832 if test $ac_cv_func_gettimeofday = yes; then
24182 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5 12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
24183$as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; } 12834$as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
24184if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then 12835if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
24185 $as_echo_n "(cached) " >&6 12836 $as_echo_n "(cached) " >&6
24186else 12837else
24187 cat >conftest.$ac_ext <<_ACEOF 12838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24188/* confdefs.h. */
24189_ACEOF
24190cat confdefs.h >>conftest.$ac_ext
24191cat >>conftest.$ac_ext <<_ACEOF
24192/* end confdefs.h. */ 12839/* end confdefs.h. */
24193 12840
24194#ifdef TIME_WITH_SYS_TIME 12841#ifdef TIME_WITH_SYS_TIME
@@ -24210,268 +12857,35 @@ struct timeval time;
24210 return 0; 12857 return 0;
24211} 12858}
24212_ACEOF 12859_ACEOF
24213rm -f conftest.$ac_objext 12860if ac_fn_c_try_compile "$LINENO"; then :
24214if { (ac_try="$ac_compile"
24215case "(($ac_try" in
24216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24217 *) ac_try_echo=$ac_try;;
24218esac
24219eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24220$as_echo "$ac_try_echo") >&5
24221 (eval "$ac_compile") 2>conftest.er1
24222 ac_status=$?
24223 grep -v '^ *+' conftest.er1 >conftest.err
24224 rm -f conftest.er1
24225 cat conftest.err >&5
24226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24227 (exit $ac_status); } && {
24228 test -z "$ac_c_werror_flag" ||
24229 test ! -s conftest.err
24230 } && test -s conftest.$ac_objext; then
24231 emacs_cv_gettimeofday_two_arguments=yes 12861 emacs_cv_gettimeofday_two_arguments=yes
24232else 12862else
24233 $as_echo "$as_me: failed program was:" >&5 12863 emacs_cv_gettimeofday_two_arguments=no
24234sed 's/^/| /' conftest.$ac_ext >&5
24235
24236 emacs_cv_gettimeofday_two_arguments=no
24237fi 12864fi
24238
24239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24240fi 12866fi
24241{ $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5 12867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
24242$as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; } 12868$as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24243 if test $emacs_cv_gettimeofday_two_arguments = no; then 12869 if test $emacs_cv_gettimeofday_two_arguments = no; then
24244 12870
24245cat >>confdefs.h <<\_ACEOF 12871$as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
24246#define GETTIMEOFDAY_ONE_ARGUMENT 1
24247_ACEOF
24248 12872
24249 fi 12873 fi
24250 fi 12874 fi
24251fi 12875fi
24252 12876
24253ok_so_far=yes 12877ok_so_far=yes
24254{ $as_echo "$as_me:$LINENO: checking for socket" >&5 12878ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
24255$as_echo_n "checking for socket... " >&6; } 12879if test "x$ac_cv_func_socket" = x""yes; then :
24256if test "${ac_cv_func_socket+set}" = set; then
24257 $as_echo_n "(cached) " >&6
24258else
24259 cat >conftest.$ac_ext <<_ACEOF
24260/* confdefs.h. */
24261_ACEOF
24262cat confdefs.h >>conftest.$ac_ext
24263cat >>conftest.$ac_ext <<_ACEOF
24264/* end confdefs.h. */
24265/* Define socket to an innocuous variant, in case <limits.h> declares socket.
24266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24267#define socket innocuous_socket
24268
24269/* System header to define __stub macros and hopefully few prototypes,
24270 which can conflict with char socket (); below.
24271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24272 <limits.h> exists even on freestanding compilers. */
24273
24274#ifdef __STDC__
24275# include <limits.h>
24276#else
24277# include <assert.h>
24278#endif
24279
24280#undef socket
24281
24282/* Override any GCC internal prototype to avoid an error.
24283 Use char because int might match the return type of a GCC
24284 builtin and then its argument prototype would still apply. */
24285#ifdef __cplusplus
24286extern "C"
24287#endif
24288char socket ();
24289/* The GNU C library defines this for functions which it implements
24290 to always fail with ENOSYS. Some functions are actually named
24291 something starting with __ and the normal name is an alias. */
24292#if defined __stub_socket || defined __stub___socket
24293choke me
24294#endif
24295
24296int
24297main ()
24298{
24299return socket ();
24300 ;
24301 return 0;
24302}
24303_ACEOF
24304rm -f conftest.$ac_objext conftest$ac_exeext
24305if { (ac_try="$ac_link"
24306case "(($ac_try" in
24307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24308 *) ac_try_echo=$ac_try;;
24309esac
24310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24311$as_echo "$ac_try_echo") >&5
24312 (eval "$ac_link") 2>conftest.er1
24313 ac_status=$?
24314 grep -v '^ *+' conftest.er1 >conftest.err
24315 rm -f conftest.er1
24316 cat conftest.err >&5
24317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318 (exit $ac_status); } && {
24319 test -z "$ac_c_werror_flag" ||
24320 test ! -s conftest.err
24321 } && test -s conftest$ac_exeext && {
24322 test "$cross_compiling" = yes ||
24323 $as_test_x conftest$ac_exeext
24324 }; then
24325 ac_cv_func_socket=yes
24326else
24327 $as_echo "$as_me: failed program was:" >&5
24328sed 's/^/| /' conftest.$ac_ext >&5
24329
24330 ac_cv_func_socket=no
24331fi
24332 12880
24333rm -rf conftest.dSYM
24334rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24335 conftest$ac_exeext conftest.$ac_ext
24336fi
24337{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24338$as_echo "$ac_cv_func_socket" >&6; }
24339if test $ac_cv_func_socket = yes; then
24340 :
24341else 12881else
24342 ok_so_far=no 12882 ok_so_far=no
24343fi 12883fi
24344 12884
24345if test $ok_so_far = yes; then 12885if test $ok_so_far = yes; then
24346 if test "${ac_cv_header_netinet_in_h+set}" = set; then 12886 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
24347 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5 12887if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
24348$as_echo_n "checking for netinet/in.h... " >&6; }
24349if test "${ac_cv_header_netinet_in_h+set}" = set; then
24350 $as_echo_n "(cached) " >&6
24351fi
24352{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24353$as_echo "$ac_cv_header_netinet_in_h" >&6; }
24354else
24355 # Is the header compilable?
24356{ $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24357$as_echo_n "checking netinet/in.h usability... " >&6; }
24358cat >conftest.$ac_ext <<_ACEOF
24359/* confdefs.h. */
24360_ACEOF
24361cat confdefs.h >>conftest.$ac_ext
24362cat >>conftest.$ac_ext <<_ACEOF
24363/* end confdefs.h. */
24364$ac_includes_default
24365#include <netinet/in.h>
24366_ACEOF
24367rm -f conftest.$ac_objext
24368if { (ac_try="$ac_compile"
24369case "(($ac_try" in
24370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24371 *) ac_try_echo=$ac_try;;
24372esac
24373eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24374$as_echo "$ac_try_echo") >&5
24375 (eval "$ac_compile") 2>conftest.er1
24376 ac_status=$?
24377 grep -v '^ *+' conftest.er1 >conftest.err
24378 rm -f conftest.er1
24379 cat conftest.err >&5
24380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24381 (exit $ac_status); } && {
24382 test -z "$ac_c_werror_flag" ||
24383 test ! -s conftest.err
24384 } && test -s conftest.$ac_objext; then
24385 ac_header_compiler=yes
24386else
24387 $as_echo "$as_me: failed program was:" >&5
24388sed 's/^/| /' conftest.$ac_ext >&5
24389
24390 ac_header_compiler=no
24391fi
24392
24393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24394{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24395$as_echo "$ac_header_compiler" >&6; }
24396
24397# Is the header present?
24398{ $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24399$as_echo_n "checking netinet/in.h presence... " >&6; }
24400cat >conftest.$ac_ext <<_ACEOF
24401/* confdefs.h. */
24402_ACEOF
24403cat confdefs.h >>conftest.$ac_ext
24404cat >>conftest.$ac_ext <<_ACEOF
24405/* end confdefs.h. */
24406#include <netinet/in.h>
24407_ACEOF
24408if { (ac_try="$ac_cpp conftest.$ac_ext"
24409case "(($ac_try" in
24410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24411 *) ac_try_echo=$ac_try;;
24412esac
24413eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24414$as_echo "$ac_try_echo") >&5
24415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24416 ac_status=$?
24417 grep -v '^ *+' conftest.er1 >conftest.err
24418 rm -f conftest.er1
24419 cat conftest.err >&5
24420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24421 (exit $ac_status); } >/dev/null && {
24422 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24423 test ! -s conftest.err
24424 }; then
24425 ac_header_preproc=yes
24426else
24427 $as_echo "$as_me: failed program was:" >&5
24428sed 's/^/| /' conftest.$ac_ext >&5
24429
24430 ac_header_preproc=no
24431fi
24432
24433rm -f conftest.err conftest.$ac_ext
24434{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24435$as_echo "$ac_header_preproc" >&6; }
24436
24437# So? What about this header?
24438case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24439 yes:no: )
24440 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24441$as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24442 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24443$as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24444 ac_header_preproc=yes
24445 ;;
24446 no:yes:* )
24447 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24448$as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24449 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24450$as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24451 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24452$as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24453 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24454$as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24455 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24456$as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24457 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24458$as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24459
24460 ;;
24461esac
24462{ $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24463$as_echo_n "checking for netinet/in.h... " >&6; }
24464if test "${ac_cv_header_netinet_in_h+set}" = set; then
24465 $as_echo_n "(cached) " >&6
24466else
24467 ac_cv_header_netinet_in_h=$ac_header_preproc
24468fi
24469{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24470$as_echo "$ac_cv_header_netinet_in_h" >&6; }
24471 12888
24472fi
24473if test $ac_cv_header_netinet_in_h = yes; then
24474 :
24475else 12889else
24476 ok_so_far=no 12890 ok_so_far=no
24477fi 12891fi
@@ -24479,135 +12893,9 @@ fi
24479 12893
24480fi 12894fi
24481if test $ok_so_far = yes; then 12895if test $ok_so_far = yes; then
24482 if test "${ac_cv_header_arpa_inet_h+set}" = set; then 12896 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
24483 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 12897if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
24484$as_echo_n "checking for arpa/inet.h... " >&6; }
24485if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24486 $as_echo_n "(cached) " >&6
24487fi
24488{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24489$as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24490else
24491 # Is the header compilable?
24492{ $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24493$as_echo_n "checking arpa/inet.h usability... " >&6; }
24494cat >conftest.$ac_ext <<_ACEOF
24495/* confdefs.h. */
24496_ACEOF
24497cat confdefs.h >>conftest.$ac_ext
24498cat >>conftest.$ac_ext <<_ACEOF
24499/* end confdefs.h. */
24500$ac_includes_default
24501#include <arpa/inet.h>
24502_ACEOF
24503rm -f conftest.$ac_objext
24504if { (ac_try="$ac_compile"
24505case "(($ac_try" in
24506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24507 *) ac_try_echo=$ac_try;;
24508esac
24509eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24510$as_echo "$ac_try_echo") >&5
24511 (eval "$ac_compile") 2>conftest.er1
24512 ac_status=$?
24513 grep -v '^ *+' conftest.er1 >conftest.err
24514 rm -f conftest.er1
24515 cat conftest.err >&5
24516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24517 (exit $ac_status); } && {
24518 test -z "$ac_c_werror_flag" ||
24519 test ! -s conftest.err
24520 } && test -s conftest.$ac_objext; then
24521 ac_header_compiler=yes
24522else
24523 $as_echo "$as_me: failed program was:" >&5
24524sed 's/^/| /' conftest.$ac_ext >&5
24525
24526 ac_header_compiler=no
24527fi
24528
24529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24530{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24531$as_echo "$ac_header_compiler" >&6; }
24532
24533# Is the header present?
24534{ $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
24535$as_echo_n "checking arpa/inet.h presence... " >&6; }
24536cat >conftest.$ac_ext <<_ACEOF
24537/* confdefs.h. */
24538_ACEOF
24539cat confdefs.h >>conftest.$ac_ext
24540cat >>conftest.$ac_ext <<_ACEOF
24541/* end confdefs.h. */
24542#include <arpa/inet.h>
24543_ACEOF
24544if { (ac_try="$ac_cpp conftest.$ac_ext"
24545case "(($ac_try" in
24546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24547 *) ac_try_echo=$ac_try;;
24548esac
24549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24550$as_echo "$ac_try_echo") >&5
24551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24552 ac_status=$?
24553 grep -v '^ *+' conftest.er1 >conftest.err
24554 rm -f conftest.er1
24555 cat conftest.err >&5
24556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557 (exit $ac_status); } >/dev/null && {
24558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24559 test ! -s conftest.err
24560 }; then
24561 ac_header_preproc=yes
24562else
24563 $as_echo "$as_me: failed program was:" >&5
24564sed 's/^/| /' conftest.$ac_ext >&5
24565
24566 ac_header_preproc=no
24567fi
24568
24569rm -f conftest.err conftest.$ac_ext
24570{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24571$as_echo "$ac_header_preproc" >&6; }
24572
24573# So? What about this header?
24574case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24575 yes:no: )
24576 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24577$as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24578 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24579$as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24580 ac_header_preproc=yes
24581 ;;
24582 no:yes:* )
24583 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24584$as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24585 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24586$as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24587 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24588$as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24589 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24590$as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24591 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24592$as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24593 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24594$as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24595
24596 ;;
24597esac
24598{ $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24599$as_echo_n "checking for arpa/inet.h... " >&6; }
24600if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24601 $as_echo_n "(cached) " >&6
24602else
24603 ac_cv_header_arpa_inet_h=$ac_header_preproc
24604fi
24605{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24606$as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24607 12898
24608fi
24609if test $ac_cv_header_arpa_inet_h = yes; then
24610 :
24611else 12899else
24612 ok_so_far=no 12900 ok_so_far=no
24613fi 12901fi
@@ -24616,151 +12904,16 @@ fi
24616fi 12904fi
24617if test $ok_so_far = yes; then 12905if test $ok_so_far = yes; then
24618 12906
24619cat >>confdefs.h <<\_ACEOF 12907$as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
24620#define HAVE_INET_SOCKETS 1
24621_ACEOF
24622 12908
24623fi 12909fi
24624 12910
24625
24626for ac_header in sys/ioctl.h 12911for ac_header in sys/ioctl.h
24627do 12912do :
24628as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12913 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
24629if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12914if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
24630 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24631$as_echo_n "checking for $ac_header... " >&6; }
24632if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24633 $as_echo_n "(cached) " >&6
24634fi
24635ac_res=`eval 'as_val=${'$as_ac_Header'}
24636 $as_echo "$as_val"'`
24637 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24638$as_echo "$ac_res" >&6; }
24639else
24640 # Is the header compilable?
24641{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24642$as_echo_n "checking $ac_header usability... " >&6; }
24643cat >conftest.$ac_ext <<_ACEOF
24644/* confdefs.h. */
24645_ACEOF
24646cat confdefs.h >>conftest.$ac_ext
24647cat >>conftest.$ac_ext <<_ACEOF
24648/* end confdefs.h. */
24649$ac_includes_default
24650#include <$ac_header>
24651_ACEOF
24652rm -f conftest.$ac_objext
24653if { (ac_try="$ac_compile"
24654case "(($ac_try" in
24655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24656 *) ac_try_echo=$ac_try;;
24657esac
24658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24659$as_echo "$ac_try_echo") >&5
24660 (eval "$ac_compile") 2>conftest.er1
24661 ac_status=$?
24662 grep -v '^ *+' conftest.er1 >conftest.err
24663 rm -f conftest.er1
24664 cat conftest.err >&5
24665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24666 (exit $ac_status); } && {
24667 test -z "$ac_c_werror_flag" ||
24668 test ! -s conftest.err
24669 } && test -s conftest.$ac_objext; then
24670 ac_header_compiler=yes
24671else
24672 $as_echo "$as_me: failed program was:" >&5
24673sed 's/^/| /' conftest.$ac_ext >&5
24674
24675 ac_header_compiler=no
24676fi
24677
24678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24679{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24680$as_echo "$ac_header_compiler" >&6; }
24681
24682# Is the header present?
24683{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24684$as_echo_n "checking $ac_header presence... " >&6; }
24685cat >conftest.$ac_ext <<_ACEOF
24686/* confdefs.h. */
24687_ACEOF
24688cat confdefs.h >>conftest.$ac_ext
24689cat >>conftest.$ac_ext <<_ACEOF
24690/* end confdefs.h. */
24691#include <$ac_header>
24692_ACEOF
24693if { (ac_try="$ac_cpp conftest.$ac_ext"
24694case "(($ac_try" in
24695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24696 *) ac_try_echo=$ac_try;;
24697esac
24698eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24699$as_echo "$ac_try_echo") >&5
24700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24701 ac_status=$?
24702 grep -v '^ *+' conftest.er1 >conftest.err
24703 rm -f conftest.er1
24704 cat conftest.err >&5
24705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24706 (exit $ac_status); } >/dev/null && {
24707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24708 test ! -s conftest.err
24709 }; then
24710 ac_header_preproc=yes
24711else
24712 $as_echo "$as_me: failed program was:" >&5
24713sed 's/^/| /' conftest.$ac_ext >&5
24714
24715 ac_header_preproc=no
24716fi
24717
24718rm -f conftest.err conftest.$ac_ext
24719{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24720$as_echo "$ac_header_preproc" >&6; }
24721
24722# So? What about this header?
24723case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24724 yes:no: )
24725 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24726$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24727 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24728$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24729 ac_header_preproc=yes
24730 ;;
24731 no:yes:* )
24732 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24733$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24734 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24735$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24737$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24739$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24741$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24743$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24744
24745 ;;
24746esac
24747{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24748$as_echo_n "checking for $ac_header... " >&6; }
24749if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24750 $as_echo_n "(cached) " >&6
24751else
24752 eval "$as_ac_Header=\$ac_header_preproc"
24753fi
24754ac_res=`eval 'as_val=${'$as_ac_Header'}
24755 $as_echo "$as_val"'`
24756 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24757$as_echo "$ac_res" >&6; }
24758
24759fi
24760if test `eval 'as_val=${'$as_ac_Header'}
24761 $as_echo "$as_val"'` = yes; then
24762 cat >>confdefs.h <<_ACEOF 12915 cat >>confdefs.h <<_ACEOF
24763#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12916#define HAVE_SYS_IOCTL_H 1
24764_ACEOF 12917_ACEOF
24765 12918
24766fi 12919fi
@@ -24770,123 +12923,26 @@ done
24770 12923
24771if test -f /usr/lpp/X11/bin/smt.exp; then 12924if test -f /usr/lpp/X11/bin/smt.exp; then
24772 12925
24773cat >>confdefs.h <<\_ACEOF 12926$as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
24774#define HAVE_AIX_SMT_EXP 1
24775_ACEOF
24776 12927
24777fi 12928fi
24778 12929
24779{ $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5 12930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
24780$as_echo_n "checking whether system supports dynamic ptys... " >&6; } 12931$as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24781if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then 12932if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24782 { $as_echo "$as_me:$LINENO: result: yes" >&5 12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24783$as_echo "yes" >&6; } 12934$as_echo "yes" >&6; }
24784 12935
24785cat >>confdefs.h <<\_ACEOF 12936$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
24786#define HAVE_DEV_PTMX 1
24787_ACEOF
24788 12937
24789else 12938else
24790 { $as_echo "$as_me:$LINENO: result: no" >&5 12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24791$as_echo "no" >&6; } 12940$as_echo "no" >&6; }
24792fi 12941fi
24793 12942
24794{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5 12943ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
24795$as_echo_n "checking for pid_t... " >&6; } 12944if test "x$ac_cv_type_pid_t" = x""yes; then :
24796if test "${ac_cv_type_pid_t+set}" = set; then
24797 $as_echo_n "(cached) " >&6
24798else
24799 ac_cv_type_pid_t=no
24800cat >conftest.$ac_ext <<_ACEOF
24801/* confdefs.h. */
24802_ACEOF
24803cat confdefs.h >>conftest.$ac_ext
24804cat >>conftest.$ac_ext <<_ACEOF
24805/* end confdefs.h. */
24806$ac_includes_default
24807int
24808main ()
24809{
24810if (sizeof (pid_t))
24811 return 0;
24812 ;
24813 return 0;
24814}
24815_ACEOF
24816rm -f conftest.$ac_objext
24817if { (ac_try="$ac_compile"
24818case "(($ac_try" in
24819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24820 *) ac_try_echo=$ac_try;;
24821esac
24822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24823$as_echo "$ac_try_echo") >&5
24824 (eval "$ac_compile") 2>conftest.er1
24825 ac_status=$?
24826 grep -v '^ *+' conftest.er1 >conftest.err
24827 rm -f conftest.er1
24828 cat conftest.err >&5
24829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24830 (exit $ac_status); } && {
24831 test -z "$ac_c_werror_flag" ||
24832 test ! -s conftest.err
24833 } && test -s conftest.$ac_objext; then
24834 cat >conftest.$ac_ext <<_ACEOF
24835/* confdefs.h. */
24836_ACEOF
24837cat confdefs.h >>conftest.$ac_ext
24838cat >>conftest.$ac_ext <<_ACEOF
24839/* end confdefs.h. */
24840$ac_includes_default
24841int
24842main ()
24843{
24844if (sizeof ((pid_t)))
24845 return 0;
24846 ;
24847 return 0;
24848}
24849_ACEOF
24850rm -f conftest.$ac_objext
24851if { (ac_try="$ac_compile"
24852case "(($ac_try" in
24853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24854 *) ac_try_echo=$ac_try;;
24855esac
24856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24857$as_echo "$ac_try_echo") >&5
24858 (eval "$ac_compile") 2>conftest.er1
24859 ac_status=$?
24860 grep -v '^ *+' conftest.er1 >conftest.err
24861 rm -f conftest.er1
24862 cat conftest.err >&5
24863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864 (exit $ac_status); } && {
24865 test -z "$ac_c_werror_flag" ||
24866 test ! -s conftest.err
24867 } && test -s conftest.$ac_objext; then
24868 :
24869else
24870 $as_echo "$as_me: failed program was:" >&5
24871sed 's/^/| /' conftest.$ac_ext >&5
24872
24873 ac_cv_type_pid_t=yes
24874fi
24875
24876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24877else
24878 $as_echo "$as_me: failed program was:" >&5
24879sed 's/^/| /' conftest.$ac_ext >&5
24880
24881
24882fi
24883 12945
24884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24885fi
24886{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24887$as_echo "$ac_cv_type_pid_t" >&6; }
24888if test $ac_cv_type_pid_t = yes; then
24889 :
24890else 12946else
24891 12947
24892cat >>confdefs.h <<_ACEOF 12948cat >>confdefs.h <<_ACEOF
@@ -24895,245 +12951,24 @@ _ACEOF
24895 12951
24896fi 12952fi
24897 12953
24898
24899for ac_header in vfork.h 12954for ac_header in vfork.h
24900do 12955do :
24901as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12956 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
24902if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12957if test "x$ac_cv_header_vfork_h" = x""yes; then :
24903 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24904$as_echo_n "checking for $ac_header... " >&6; }
24905if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24906 $as_echo_n "(cached) " >&6
24907fi
24908ac_res=`eval 'as_val=${'$as_ac_Header'}
24909 $as_echo "$as_val"'`
24910 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24911$as_echo "$ac_res" >&6; }
24912else
24913 # Is the header compilable?
24914{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24915$as_echo_n "checking $ac_header usability... " >&6; }
24916cat >conftest.$ac_ext <<_ACEOF
24917/* confdefs.h. */
24918_ACEOF
24919cat confdefs.h >>conftest.$ac_ext
24920cat >>conftest.$ac_ext <<_ACEOF
24921/* end confdefs.h. */
24922$ac_includes_default
24923#include <$ac_header>
24924_ACEOF
24925rm -f conftest.$ac_objext
24926if { (ac_try="$ac_compile"
24927case "(($ac_try" in
24928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24929 *) ac_try_echo=$ac_try;;
24930esac
24931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24932$as_echo "$ac_try_echo") >&5
24933 (eval "$ac_compile") 2>conftest.er1
24934 ac_status=$?
24935 grep -v '^ *+' conftest.er1 >conftest.err
24936 rm -f conftest.er1
24937 cat conftest.err >&5
24938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939 (exit $ac_status); } && {
24940 test -z "$ac_c_werror_flag" ||
24941 test ! -s conftest.err
24942 } && test -s conftest.$ac_objext; then
24943 ac_header_compiler=yes
24944else
24945 $as_echo "$as_me: failed program was:" >&5
24946sed 's/^/| /' conftest.$ac_ext >&5
24947
24948 ac_header_compiler=no
24949fi
24950
24951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24952{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24953$as_echo "$ac_header_compiler" >&6; }
24954
24955# Is the header present?
24956{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24957$as_echo_n "checking $ac_header presence... " >&6; }
24958cat >conftest.$ac_ext <<_ACEOF
24959/* confdefs.h. */
24960_ACEOF
24961cat confdefs.h >>conftest.$ac_ext
24962cat >>conftest.$ac_ext <<_ACEOF
24963/* end confdefs.h. */
24964#include <$ac_header>
24965_ACEOF
24966if { (ac_try="$ac_cpp conftest.$ac_ext"
24967case "(($ac_try" in
24968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24969 *) ac_try_echo=$ac_try;;
24970esac
24971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24972$as_echo "$ac_try_echo") >&5
24973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24974 ac_status=$?
24975 grep -v '^ *+' conftest.er1 >conftest.err
24976 rm -f conftest.er1
24977 cat conftest.err >&5
24978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979 (exit $ac_status); } >/dev/null && {
24980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24981 test ! -s conftest.err
24982 }; then
24983 ac_header_preproc=yes
24984else
24985 $as_echo "$as_me: failed program was:" >&5
24986sed 's/^/| /' conftest.$ac_ext >&5
24987
24988 ac_header_preproc=no
24989fi
24990
24991rm -f conftest.err conftest.$ac_ext
24992{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24993$as_echo "$ac_header_preproc" >&6; }
24994
24995# So? What about this header?
24996case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24997 yes:no: )
24998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24999$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25001$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25002 ac_header_preproc=yes
25003 ;;
25004 no:yes:* )
25005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25006$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25008$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25010$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25012$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25014$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25016$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25017
25018 ;;
25019esac
25020{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25021$as_echo_n "checking for $ac_header... " >&6; }
25022if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25023 $as_echo_n "(cached) " >&6
25024else
25025 eval "$as_ac_Header=\$ac_header_preproc"
25026fi
25027ac_res=`eval 'as_val=${'$as_ac_Header'}
25028 $as_echo "$as_val"'`
25029 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25030$as_echo "$ac_res" >&6; }
25031
25032fi
25033if test `eval 'as_val=${'$as_ac_Header'}
25034 $as_echo "$as_val"'` = yes; then
25035 cat >>confdefs.h <<_ACEOF 12958 cat >>confdefs.h <<_ACEOF
25036#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12959#define HAVE_VFORK_H 1
25037_ACEOF 12960_ACEOF
25038 12961
25039fi 12962fi
25040 12963
25041done 12964done
25042 12965
25043
25044
25045for ac_func in fork vfork 12966for ac_func in fork vfork
25046do 12967do :
25047as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12968 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25048{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 12969ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25049$as_echo_n "checking for $ac_func... " >&6; } 12970eval as_val=\$$as_ac_var
25050if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12971 if test "x$as_val" = x""yes; then :
25051 $as_echo_n "(cached) " >&6
25052else
25053 cat >conftest.$ac_ext <<_ACEOF
25054/* confdefs.h. */
25055_ACEOF
25056cat confdefs.h >>conftest.$ac_ext
25057cat >>conftest.$ac_ext <<_ACEOF
25058/* end confdefs.h. */
25059/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25061#define $ac_func innocuous_$ac_func
25062
25063/* System header to define __stub macros and hopefully few prototypes,
25064 which can conflict with char $ac_func (); below.
25065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25066 <limits.h> exists even on freestanding compilers. */
25067
25068#ifdef __STDC__
25069# include <limits.h>
25070#else
25071# include <assert.h>
25072#endif
25073
25074#undef $ac_func
25075
25076/* Override any GCC internal prototype to avoid an error.
25077 Use char because int might match the return type of a GCC
25078 builtin and then its argument prototype would still apply. */
25079#ifdef __cplusplus
25080extern "C"
25081#endif
25082char $ac_func ();
25083/* The GNU C library defines this for functions which it implements
25084 to always fail with ENOSYS. Some functions are actually named
25085 something starting with __ and the normal name is an alias. */
25086#if defined __stub_$ac_func || defined __stub___$ac_func
25087choke me
25088#endif
25089
25090int
25091main ()
25092{
25093return $ac_func ();
25094 ;
25095 return 0;
25096}
25097_ACEOF
25098rm -f conftest.$ac_objext conftest$ac_exeext
25099if { (ac_try="$ac_link"
25100case "(($ac_try" in
25101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25102 *) ac_try_echo=$ac_try;;
25103esac
25104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25105$as_echo "$ac_try_echo") >&5
25106 (eval "$ac_link") 2>conftest.er1
25107 ac_status=$?
25108 grep -v '^ *+' conftest.er1 >conftest.err
25109 rm -f conftest.er1
25110 cat conftest.err >&5
25111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112 (exit $ac_status); } && {
25113 test -z "$ac_c_werror_flag" ||
25114 test ! -s conftest.err
25115 } && test -s conftest$ac_exeext && {
25116 test "$cross_compiling" = yes ||
25117 $as_test_x conftest$ac_exeext
25118 }; then
25119 eval "$as_ac_var=yes"
25120else
25121 $as_echo "$as_me: failed program was:" >&5
25122sed 's/^/| /' conftest.$ac_ext >&5
25123
25124 eval "$as_ac_var=no"
25125fi
25126
25127rm -rf conftest.dSYM
25128rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25129 conftest$ac_exeext conftest.$ac_ext
25130fi
25131ac_res=`eval 'as_val=${'$as_ac_var'}
25132 $as_echo "$as_val"'`
25133 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25134$as_echo "$ac_res" >&6; }
25135if test `eval 'as_val=${'$as_ac_var'}
25136 $as_echo "$as_val"'` = yes; then
25137 cat >>confdefs.h <<_ACEOF 12972 cat >>confdefs.h <<_ACEOF
25138#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12973#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25139_ACEOF 12974_ACEOF
@@ -25142,19 +12977,15 @@ fi
25142done 12977done
25143 12978
25144if test "x$ac_cv_func_fork" = xyes; then 12979if test "x$ac_cv_func_fork" = xyes; then
25145 { $as_echo "$as_me:$LINENO: checking for working fork" >&5 12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
25146$as_echo_n "checking for working fork... " >&6; } 12981$as_echo_n "checking for working fork... " >&6; }
25147if test "${ac_cv_func_fork_works+set}" = set; then 12982if test "${ac_cv_func_fork_works+set}" = set; then :
25148 $as_echo_n "(cached) " >&6 12983 $as_echo_n "(cached) " >&6
25149else 12984else
25150 if test "$cross_compiling" = yes; then 12985 if test "$cross_compiling" = yes; then :
25151 ac_cv_func_fork_works=cross 12986 ac_cv_func_fork_works=cross
25152else 12987else
25153 cat >conftest.$ac_ext <<_ACEOF 12988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25154/* confdefs.h. */
25155_ACEOF
25156cat confdefs.h >>conftest.$ac_ext
25157cat >>conftest.$ac_ext <<_ACEOF
25158/* end confdefs.h. */ 12989/* end confdefs.h. */
25159$ac_includes_default 12990$ac_includes_default
25160int 12991int
@@ -25168,44 +12999,17 @@ main ()
25168 return 0; 12999 return 0;
25169} 13000}
25170_ACEOF 13001_ACEOF
25171rm -f conftest$ac_exeext 13002if ac_fn_c_try_run "$LINENO"; then :
25172if { (ac_try="$ac_link"
25173case "(($ac_try" in
25174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25175 *) ac_try_echo=$ac_try;;
25176esac
25177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25178$as_echo "$ac_try_echo") >&5
25179 (eval "$ac_link") 2>&5
25180 ac_status=$?
25181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25183 { (case "(($ac_try" in
25184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25185 *) ac_try_echo=$ac_try;;
25186esac
25187eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25188$as_echo "$ac_try_echo") >&5
25189 (eval "$ac_try") 2>&5
25190 ac_status=$?
25191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25192 (exit $ac_status); }; }; then
25193 ac_cv_func_fork_works=yes 13003 ac_cv_func_fork_works=yes
25194else 13004else
25195 $as_echo "$as_me: program exited with status $ac_status" >&5 13005 ac_cv_func_fork_works=no
25196$as_echo "$as_me: failed program was:" >&5
25197sed 's/^/| /' conftest.$ac_ext >&5
25198
25199( exit $ac_status )
25200ac_cv_func_fork_works=no
25201fi 13006fi
25202rm -rf conftest.dSYM 13007rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25203rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13008 conftest.$ac_objext conftest.beam conftest.$ac_ext
25204fi 13009fi
25205 13010
25206
25207fi 13011fi
25208{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 13012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
25209$as_echo "$ac_cv_func_fork_works" >&6; } 13013$as_echo "$ac_cv_func_fork_works" >&6; }
25210 13014
25211else 13015else
@@ -25221,24 +13025,20 @@ if test "x$ac_cv_func_fork_works" = xcross; then
25221 ac_cv_func_fork_works=yes 13025 ac_cv_func_fork_works=yes
25222 ;; 13026 ;;
25223 esac 13027 esac
25224 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 13028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25225$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 13029$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25226fi 13030fi
25227ac_cv_func_vfork_works=$ac_cv_func_vfork 13031ac_cv_func_vfork_works=$ac_cv_func_vfork
25228if test "x$ac_cv_func_vfork" = xyes; then 13032if test "x$ac_cv_func_vfork" = xyes; then
25229 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
25230$as_echo_n "checking for working vfork... " >&6; } 13034$as_echo_n "checking for working vfork... " >&6; }
25231if test "${ac_cv_func_vfork_works+set}" = set; then 13035if test "${ac_cv_func_vfork_works+set}" = set; then :
25232 $as_echo_n "(cached) " >&6 13036 $as_echo_n "(cached) " >&6
25233else 13037else
25234 if test "$cross_compiling" = yes; then 13038 if test "$cross_compiling" = yes; then :
25235 ac_cv_func_vfork_works=cross 13039 ac_cv_func_vfork_works=cross
25236else 13040else
25237 cat >conftest.$ac_ext <<_ACEOF 13041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25238/* confdefs.h. */
25239_ACEOF
25240cat confdefs.h >>conftest.$ac_ext
25241cat >>conftest.$ac_ext <<_ACEOF
25242/* end confdefs.h. */ 13042/* end confdefs.h. */
25243/* Thanks to Paul Eggert for this test. */ 13043/* Thanks to Paul Eggert for this test. */
25244$ac_includes_default 13044$ac_includes_default
@@ -25330,85 +13130,48 @@ main ()
25330 } 13130 }
25331} 13131}
25332_ACEOF 13132_ACEOF
25333rm -f conftest$ac_exeext 13133if ac_fn_c_try_run "$LINENO"; then :
25334if { (ac_try="$ac_link"
25335case "(($ac_try" in
25336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25337 *) ac_try_echo=$ac_try;;
25338esac
25339eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25340$as_echo "$ac_try_echo") >&5
25341 (eval "$ac_link") 2>&5
25342 ac_status=$?
25343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25345 { (case "(($ac_try" in
25346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25347 *) ac_try_echo=$ac_try;;
25348esac
25349eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25350$as_echo "$ac_try_echo") >&5
25351 (eval "$ac_try") 2>&5
25352 ac_status=$?
25353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354 (exit $ac_status); }; }; then
25355 ac_cv_func_vfork_works=yes 13134 ac_cv_func_vfork_works=yes
25356else 13135else
25357 $as_echo "$as_me: program exited with status $ac_status" >&5 13136 ac_cv_func_vfork_works=no
25358$as_echo "$as_me: failed program was:" >&5
25359sed 's/^/| /' conftest.$ac_ext >&5
25360
25361( exit $ac_status )
25362ac_cv_func_vfork_works=no
25363fi 13137fi
25364rm -rf conftest.dSYM 13138rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25365rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13139 conftest.$ac_objext conftest.beam conftest.$ac_ext
25366fi 13140fi
25367 13141
25368
25369fi 13142fi
25370{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 13143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
25371$as_echo "$ac_cv_func_vfork_works" >&6; } 13144$as_echo "$ac_cv_func_vfork_works" >&6; }
25372 13145
25373fi; 13146fi;
25374if test "x$ac_cv_func_fork_works" = xcross; then 13147if test "x$ac_cv_func_fork_works" = xcross; then
25375 ac_cv_func_vfork_works=$ac_cv_func_vfork 13148 ac_cv_func_vfork_works=$ac_cv_func_vfork
25376 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 13149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25377$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 13150$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25378fi 13151fi
25379 13152
25380if test "x$ac_cv_func_vfork_works" = xyes; then 13153if test "x$ac_cv_func_vfork_works" = xyes; then
25381 13154
25382cat >>confdefs.h <<\_ACEOF 13155$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
25383#define HAVE_WORKING_VFORK 1
25384_ACEOF
25385 13156
25386else 13157else
25387 13158
25388cat >>confdefs.h <<\_ACEOF 13159$as_echo "#define vfork fork" >>confdefs.h
25389#define vfork fork
25390_ACEOF
25391 13160
25392fi 13161fi
25393if test "x$ac_cv_func_fork_works" = xyes; then 13162if test "x$ac_cv_func_fork_works" = xyes; then
25394 13163
25395cat >>confdefs.h <<\_ACEOF 13164$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
25396#define HAVE_WORKING_FORK 1
25397_ACEOF
25398 13165
25399fi 13166fi
25400 13167
25401 13168
25402{ $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 13169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
25403$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 13170$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25404if test "${emacs_cv_langinfo_codeset+set}" = set; then 13171if test "${emacs_cv_langinfo_codeset+set}" = set; then :
25405 $as_echo_n "(cached) " >&6 13172 $as_echo_n "(cached) " >&6
25406else 13173else
25407 cat >conftest.$ac_ext <<_ACEOF 13174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25408/* confdefs.h. */
25409_ACEOF
25410cat confdefs.h >>conftest.$ac_ext
25411cat >>conftest.$ac_ext <<_ACEOF
25412/* end confdefs.h. */ 13175/* end confdefs.h. */
25413#include <langinfo.h> 13176#include <langinfo.h>
25414int 13177int
@@ -25419,145 +13182,25 @@ char* cs = nl_langinfo(CODESET);
25419 return 0; 13182 return 0;
25420} 13183}
25421_ACEOF 13184_ACEOF
25422rm -f conftest.$ac_objext conftest$ac_exeext 13185if ac_fn_c_try_link "$LINENO"; then :
25423if { (ac_try="$ac_link"
25424case "(($ac_try" in
25425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25426 *) ac_try_echo=$ac_try;;
25427esac
25428eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25429$as_echo "$ac_try_echo") >&5
25430 (eval "$ac_link") 2>conftest.er1
25431 ac_status=$?
25432 grep -v '^ *+' conftest.er1 >conftest.err
25433 rm -f conftest.er1
25434 cat conftest.err >&5
25435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25436 (exit $ac_status); } && {
25437 test -z "$ac_c_werror_flag" ||
25438 test ! -s conftest.err
25439 } && test -s conftest$ac_exeext && {
25440 test "$cross_compiling" = yes ||
25441 $as_test_x conftest$ac_exeext
25442 }; then
25443 emacs_cv_langinfo_codeset=yes 13186 emacs_cv_langinfo_codeset=yes
25444else 13187else
25445 $as_echo "$as_me: failed program was:" >&5 13188 emacs_cv_langinfo_codeset=no
25446sed 's/^/| /' conftest.$ac_ext >&5
25447
25448 emacs_cv_langinfo_codeset=no
25449fi 13189fi
25450 13190rm -f core conftest.err conftest.$ac_objext \
25451rm -rf conftest.dSYM 13191 conftest$ac_exeext conftest.$ac_ext
25452rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25453 conftest$ac_exeext conftest.$ac_ext
25454 13192
25455fi 13193fi
25456{ $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5 13194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
25457$as_echo "$emacs_cv_langinfo_codeset" >&6; } 13195$as_echo "$emacs_cv_langinfo_codeset" >&6; }
25458if test $emacs_cv_langinfo_codeset = yes; then 13196if test $emacs_cv_langinfo_codeset = yes; then
25459 13197
25460cat >>confdefs.h <<\_ACEOF 13198$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
25461#define HAVE_LANGINFO_CODESET 1
25462_ACEOF
25463
25464fi
25465
25466{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
25467$as_echo_n "checking for size_t... " >&6; }
25468if test "${ac_cv_type_size_t+set}" = set; then
25469 $as_echo_n "(cached) " >&6
25470else
25471 ac_cv_type_size_t=no
25472cat >conftest.$ac_ext <<_ACEOF
25473/* confdefs.h. */
25474_ACEOF
25475cat confdefs.h >>conftest.$ac_ext
25476cat >>conftest.$ac_ext <<_ACEOF
25477/* end confdefs.h. */
25478$ac_includes_default
25479int
25480main ()
25481{
25482if (sizeof (size_t))
25483 return 0;
25484 ;
25485 return 0;
25486}
25487_ACEOF
25488rm -f conftest.$ac_objext
25489if { (ac_try="$ac_compile"
25490case "(($ac_try" in
25491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25492 *) ac_try_echo=$ac_try;;
25493esac
25494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25495$as_echo "$ac_try_echo") >&5
25496 (eval "$ac_compile") 2>conftest.er1
25497 ac_status=$?
25498 grep -v '^ *+' conftest.er1 >conftest.err
25499 rm -f conftest.er1
25500 cat conftest.err >&5
25501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25502 (exit $ac_status); } && {
25503 test -z "$ac_c_werror_flag" ||
25504 test ! -s conftest.err
25505 } && test -s conftest.$ac_objext; then
25506 cat >conftest.$ac_ext <<_ACEOF
25507/* confdefs.h. */
25508_ACEOF
25509cat confdefs.h >>conftest.$ac_ext
25510cat >>conftest.$ac_ext <<_ACEOF
25511/* end confdefs.h. */
25512$ac_includes_default
25513int
25514main ()
25515{
25516if (sizeof ((size_t)))
25517 return 0;
25518 ;
25519 return 0;
25520}
25521_ACEOF
25522rm -f conftest.$ac_objext
25523if { (ac_try="$ac_compile"
25524case "(($ac_try" in
25525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25526 *) ac_try_echo=$ac_try;;
25527esac
25528eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25529$as_echo "$ac_try_echo") >&5
25530 (eval "$ac_compile") 2>conftest.er1
25531 ac_status=$?
25532 grep -v '^ *+' conftest.er1 >conftest.err
25533 rm -f conftest.er1
25534 cat conftest.err >&5
25535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25536 (exit $ac_status); } && {
25537 test -z "$ac_c_werror_flag" ||
25538 test ! -s conftest.err
25539 } && test -s conftest.$ac_objext; then
25540 :
25541else
25542 $as_echo "$as_me: failed program was:" >&5
25543sed 's/^/| /' conftest.$ac_ext >&5
25544
25545 ac_cv_type_size_t=yes
25546fi
25547
25548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25549else
25550 $as_echo "$as_me: failed program was:" >&5
25551sed 's/^/| /' conftest.$ac_ext >&5
25552
25553 13199
25554fi 13200fi
25555 13201
25556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13202ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
25557fi 13203if test "x$ac_cv_type_size_t" = x""yes; then :
25558{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25559$as_echo "$ac_cv_type_size_t" >&6; }
25560if test $ac_cv_type_size_t = yes; then
25561 13204
25562cat >>confdefs.h <<_ACEOF 13205cat >>confdefs.h <<_ACEOF
25563#define HAVE_SIZE_T 1 13206#define HAVE_SIZE_T 1
@@ -25567,16 +13210,12 @@ _ACEOF
25567fi 13210fi
25568 13211
25569 13212
25570{ $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5 13213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
25571$as_echo_n "checking for mbstate_t... " >&6; } 13214$as_echo_n "checking for mbstate_t... " >&6; }
25572if test "${ac_cv_type_mbstate_t+set}" = set; then 13215if test "${ac_cv_type_mbstate_t+set}" = set; then :
25573 $as_echo_n "(cached) " >&6 13216 $as_echo_n "(cached) " >&6
25574else 13217else
25575 cat >conftest.$ac_ext <<_ACEOF 13218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25576/* confdefs.h. */
25577_ACEOF
25578cat confdefs.h >>conftest.$ac_ext
25579cat >>conftest.$ac_ext <<_ACEOF
25580/* end confdefs.h. */ 13219/* end confdefs.h. */
25581$ac_includes_default 13220$ac_includes_default
25582# include <wchar.h> 13221# include <wchar.h>
@@ -25588,60 +13227,31 @@ mbstate_t x; return sizeof x;
25588 return 0; 13227 return 0;
25589} 13228}
25590_ACEOF 13229_ACEOF
25591rm -f conftest.$ac_objext 13230if ac_fn_c_try_compile "$LINENO"; then :
25592if { (ac_try="$ac_compile"
25593case "(($ac_try" in
25594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25595 *) ac_try_echo=$ac_try;;
25596esac
25597eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25598$as_echo "$ac_try_echo") >&5
25599 (eval "$ac_compile") 2>conftest.er1
25600 ac_status=$?
25601 grep -v '^ *+' conftest.er1 >conftest.err
25602 rm -f conftest.er1
25603 cat conftest.err >&5
25604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25605 (exit $ac_status); } && {
25606 test -z "$ac_c_werror_flag" ||
25607 test ! -s conftest.err
25608 } && test -s conftest.$ac_objext; then
25609 ac_cv_type_mbstate_t=yes 13231 ac_cv_type_mbstate_t=yes
25610else 13232else
25611 $as_echo "$as_me: failed program was:" >&5 13233 ac_cv_type_mbstate_t=no
25612sed 's/^/| /' conftest.$ac_ext >&5
25613
25614 ac_cv_type_mbstate_t=no
25615fi 13234fi
25616
25617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25618fi 13236fi
25619{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 13237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
25620$as_echo "$ac_cv_type_mbstate_t" >&6; } 13238$as_echo "$ac_cv_type_mbstate_t" >&6; }
25621 if test $ac_cv_type_mbstate_t = yes; then 13239 if test $ac_cv_type_mbstate_t = yes; then
25622 13240
25623cat >>confdefs.h <<\_ACEOF 13241$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
25624#define HAVE_MBSTATE_T 1
25625_ACEOF
25626 13242
25627 else 13243 else
25628 13244
25629cat >>confdefs.h <<\_ACEOF 13245$as_echo "#define mbstate_t int" >>confdefs.h
25630#define mbstate_t int
25631_ACEOF
25632 13246
25633 fi 13247 fi
25634 13248
25635{ $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5 13249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
25636$as_echo_n "checking for C restrict keyword... " >&6; } 13250$as_echo_n "checking for C restrict keyword... " >&6; }
25637if test "${emacs_cv_c_restrict+set}" = set; then 13251if test "${emacs_cv_c_restrict+set}" = set; then :
25638 $as_echo_n "(cached) " >&6 13252 $as_echo_n "(cached) " >&6
25639else 13253else
25640 cat >conftest.$ac_ext <<_ACEOF 13254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25641/* confdefs.h. */
25642_ACEOF
25643cat confdefs.h >>conftest.$ac_ext
25644cat >>conftest.$ac_ext <<_ACEOF
25645/* end confdefs.h. */ 13255/* end confdefs.h. */
25646void fred (int *restrict x); 13256void fred (int *restrict x);
25647int 13257int
@@ -25652,34 +13262,10 @@ main ()
25652 return 0; 13262 return 0;
25653} 13263}
25654_ACEOF 13264_ACEOF
25655rm -f conftest.$ac_objext 13265if ac_fn_c_try_compile "$LINENO"; then :
25656if { (ac_try="$ac_compile"
25657case "(($ac_try" in
25658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25659 *) ac_try_echo=$ac_try;;
25660esac
25661eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25662$as_echo "$ac_try_echo") >&5
25663 (eval "$ac_compile") 2>conftest.er1
25664 ac_status=$?
25665 grep -v '^ *+' conftest.er1 >conftest.err
25666 rm -f conftest.er1
25667 cat conftest.err >&5
25668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669 (exit $ac_status); } && {
25670 test -z "$ac_c_werror_flag" ||
25671 test ! -s conftest.err
25672 } && test -s conftest.$ac_objext; then
25673 emacs_cv_c_restrict=yes 13266 emacs_cv_c_restrict=yes
25674else 13267else
25675 $as_echo "$as_me: failed program was:" >&5 13268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25676sed 's/^/| /' conftest.$ac_ext >&5
25677
25678 cat >conftest.$ac_ext <<_ACEOF
25679/* confdefs.h. */
25680_ACEOF
25681cat confdefs.h >>conftest.$ac_ext
25682cat >>conftest.$ac_ext <<_ACEOF
25683/* end confdefs.h. */ 13269/* end confdefs.h. */
25684void fred (int *__restrict x); 13270void fred (int *__restrict x);
25685int 13271int
@@ -25690,38 +13276,16 @@ main ()
25690 return 0; 13276 return 0;
25691} 13277}
25692_ACEOF 13278_ACEOF
25693rm -f conftest.$ac_objext 13279if ac_fn_c_try_compile "$LINENO"; then :
25694if { (ac_try="$ac_compile"
25695case "(($ac_try" in
25696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25697 *) ac_try_echo=$ac_try;;
25698esac
25699eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25700$as_echo "$ac_try_echo") >&5
25701 (eval "$ac_compile") 2>conftest.er1
25702 ac_status=$?
25703 grep -v '^ *+' conftest.er1 >conftest.err
25704 rm -f conftest.er1
25705 cat conftest.err >&5
25706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25707 (exit $ac_status); } && {
25708 test -z "$ac_c_werror_flag" ||
25709 test ! -s conftest.err
25710 } && test -s conftest.$ac_objext; then
25711 emacs_cv_c_restrict=__restrict 13280 emacs_cv_c_restrict=__restrict
25712else 13281else
25713 $as_echo "$as_me: failed program was:" >&5 13282 emacs_cv_c_restrict=no
25714sed 's/^/| /' conftest.$ac_ext >&5
25715
25716 emacs_cv_c_restrict=no
25717fi 13283fi
25718
25719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25720fi 13285fi
25721
25722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25723fi 13287fi
25724{ $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5 13288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
25725$as_echo "$emacs_cv_c_restrict" >&6; } 13289$as_echo "$emacs_cv_c_restrict" >&6; }
25726case "$emacs_cv_c_restrict" in 13290case "$emacs_cv_c_restrict" in
25727 yes) emacs_restrict=restrict;; 13291 yes) emacs_restrict=restrict;;
@@ -25736,16 +13300,12 @@ _ACEOF
25736 13300
25737fi 13301fi
25738 13302
25739{ $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5 13303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
25740$as_echo_n "checking for C restricted array declarations... " >&6; } 13304$as_echo_n "checking for C restricted array declarations... " >&6; }
25741if test "${emacs_cv_c_restrict_arr+set}" = set; then 13305if test "${emacs_cv_c_restrict_arr+set}" = set; then :
25742 $as_echo_n "(cached) " >&6 13306 $as_echo_n "(cached) " >&6
25743else 13307else
25744 cat >conftest.$ac_ext <<_ACEOF 13308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25745/* confdefs.h. */
25746_ACEOF
25747cat confdefs.h >>conftest.$ac_ext
25748cat >>conftest.$ac_ext <<_ACEOF
25749/* end confdefs.h. */ 13309/* end confdefs.h. */
25750void fred (int x[__restrict]); 13310void fred (int x[__restrict]);
25751int 13311int
@@ -25756,41 +13316,18 @@ main ()
25756 return 0; 13316 return 0;
25757} 13317}
25758_ACEOF 13318_ACEOF
25759rm -f conftest.$ac_objext 13319if ac_fn_c_try_compile "$LINENO"; then :
25760if { (ac_try="$ac_compile"
25761case "(($ac_try" in
25762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25763 *) ac_try_echo=$ac_try;;
25764esac
25765eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25766$as_echo "$ac_try_echo") >&5
25767 (eval "$ac_compile") 2>conftest.er1
25768 ac_status=$?
25769 grep -v '^ *+' conftest.er1 >conftest.err
25770 rm -f conftest.er1
25771 cat conftest.err >&5
25772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773 (exit $ac_status); } && {
25774 test -z "$ac_c_werror_flag" ||
25775 test ! -s conftest.err
25776 } && test -s conftest.$ac_objext; then
25777 emacs_cv_c_restrict_arr=yes 13320 emacs_cv_c_restrict_arr=yes
25778else 13321else
25779 $as_echo "$as_me: failed program was:" >&5 13322 emacs_cv_c_restrict_arr=no
25780sed 's/^/| /' conftest.$ac_ext >&5
25781
25782 emacs_cv_c_restrict_arr=no
25783fi 13323fi
25784
25785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25786fi 13325fi
25787{ $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5 13326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
25788$as_echo "$emacs_cv_c_restrict_arr" >&6; } 13327$as_echo "$emacs_cv_c_restrict_arr" >&6; }
25789if test "$emacs_cv_c_restrict_arr" = yes; then 13328if test "$emacs_cv_c_restrict_arr" = yes; then
25790 13329
25791cat >>confdefs.h <<\_ACEOF 13330$as_echo "#define __restrict_arr __restrict" >>confdefs.h
25792#define __restrict_arr __restrict
25793_ACEOF
25794 13331
25795fi 13332fi
25796 13333
@@ -25804,12 +13341,10 @@ CPPFLAGS="$REAL_CPPFLAGS"
25804version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ 13341version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25805 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` 13342 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25806if test x"${version}" = x; then 13343if test x"${version}" = x; then
25807 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5 13344 as_fn_error "can't find current emacs version in \`${srcdir}/lisp/version.el'." "$LINENO" 5
25808$as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25809 { (exit 1); exit 1; }; }
25810fi 13345fi
25811if test x"${version}" != x"$PACKAGE_VERSION"; then 13346if test x"${version}" != x"$PACKAGE_VERSION"; then
25812 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5 13347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
25813$as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;} 13348$as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25814fi 13349fi
25815 13350
@@ -25903,9 +13438,7 @@ XMENU_OBJ=
25903XOBJ= 13438XOBJ=
25904if test "${HAVE_X_WINDOWS}" = "yes" ; then 13439if test "${HAVE_X_WINDOWS}" = "yes" ; then
25905 13440
25906cat >>confdefs.h <<\_ACEOF 13441$as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
25907#define HAVE_X_WINDOWS 1
25908_ACEOF
25909 13442
25910 XMENU_OBJ=xmenu.o 13443 XMENU_OBJ=xmenu.o
25911 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o" 13444 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
@@ -25915,58 +13448,42 @@ fi
25915 13448
25916if test "${USE_X_TOOLKIT}" != "none" ; then 13449if test "${USE_X_TOOLKIT}" != "none" ; then
25917 13450
25918cat >>confdefs.h <<\_ACEOF 13451$as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
25919#define USE_X_TOOLKIT 1
25920_ACEOF
25921 13452
25922 if test "${USE_X_TOOLKIT}" = "LUCID"; then 13453 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25923 13454
25924cat >>confdefs.h <<\_ACEOF 13455$as_echo "#define USE_LUCID 1" >>confdefs.h
25925#define USE_LUCID 1
25926_ACEOF
25927 13456
25928 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then 13457 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25929 13458
25930cat >>confdefs.h <<\_ACEOF 13459$as_echo "#define USE_MOTIF 1" >>confdefs.h
25931#define USE_MOTIF 1
25932_ACEOF
25933 13460
25934 fi 13461 fi
25935fi 13462fi
25936if test "${HAVE_X11}" = "yes" ; then 13463if test "${HAVE_X11}" = "yes" ; then
25937 13464
25938cat >>confdefs.h <<\_ACEOF 13465$as_echo "#define HAVE_X11 1" >>confdefs.h
25939#define HAVE_X11 1
25940_ACEOF
25941 13466
25942fi 13467fi
25943if test "${HAVE_MENUS}" = "yes" ; then 13468if test "${HAVE_MENUS}" = "yes" ; then
25944 13469
25945cat >>confdefs.h <<\_ACEOF 13470$as_echo "#define HAVE_MENUS 1" >>confdefs.h
25946#define HAVE_MENUS 1
25947_ACEOF
25948 13471
25949fi 13472fi
25950if test "${GNU_MALLOC}" = "yes" ; then 13473if test "${GNU_MALLOC}" = "yes" ; then
25951 13474
25952cat >>confdefs.h <<\_ACEOF 13475$as_echo "#define GNU_MALLOC 1" >>confdefs.h
25953#define GNU_MALLOC 1
25954_ACEOF
25955 13476
25956fi 13477fi
25957if test "${REL_ALLOC}" = "yes" ; then 13478if test "${REL_ALLOC}" = "yes" ; then
25958 13479
25959cat >>confdefs.h <<\_ACEOF 13480$as_echo "#define REL_ALLOC 1" >>confdefs.h
25960#define REL_ALLOC 1
25961_ACEOF
25962 13481
25963fi 13482fi
25964 13483
25965 13484
25966 13485
25967 13486
25968
25969
25970#### Report on what we decided to do. 13487#### Report on what we decided to do.
25971#### Report GTK as a toolkit, even if it doesn't use Xt. 13488#### Report GTK as a toolkit, even if it doesn't use Xt.
25972#### It makes printing result more understandable as using GTK sets 13489#### It makes printing result more understandable as using GTK sets
@@ -26059,7 +13576,7 @@ test "${exec_prefix}" != NONE &&
26059# the C preprocessor to some helpful value like 1, or maybe the empty 13576# the C preprocessor to some helpful value like 1, or maybe the empty
26060# string. Needless to say consequent macro substitutions are less 13577# string. Needless to say consequent macro substitutions are less
26061# than conducive to the makefile finding the correct directory. 13578# than conducive to the makefile finding the correct directory.
26062cpp_undefs="`echo $srcdir $configuration $canonical | 13579cpp_undefs="`echo $srcdir $configuration $canonical unix |
26063 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ 13580 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26064 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`" 13581 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26065 13582
@@ -26068,16 +13585,12 @@ cpp_undefs="`echo $srcdir $configuration $canonical |
26068## from Makefile.c can correctly provide the arg `-traditional' to the 13585## from Makefile.c can correctly provide the arg `-traditional' to the
26069## C preprocessor. 13586## C preprocessor.
26070 13587
26071cat >conftest.$ac_ext <<_ACEOF 13588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26072/* confdefs.h. */
26073_ACEOF
26074cat confdefs.h >>conftest.$ac_ext
26075cat >>conftest.$ac_ext <<_ACEOF
26076/* end confdefs.h. */ 13589/* end confdefs.h. */
26077yes..yes 13590yes..yes
26078_ACEOF 13591_ACEOF
26079if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13592if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26080 $EGREP "yes..yes" >/dev/null 2>&1; then 13593 $EGREP "yes..yes" >/dev/null 2>&1; then :
26081 CPP_NEED_TRADITIONAL=no 13594 CPP_NEED_TRADITIONAL=no
26082else 13595else
26083 CPP_NEED_TRADITIONAL=yes 13596 CPP_NEED_TRADITIONAL=yes
@@ -26116,13 +13629,13 @@ _ACEOF
26116 case $ac_val in #( 13629 case $ac_val in #(
26117 *${as_nl}*) 13630 *${as_nl}*)
26118 case $ac_var in #( 13631 case $ac_var in #(
26119 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 13632 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26120$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 13633$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26121 esac 13634 esac
26122 case $ac_var in #( 13635 case $ac_var in #(
26123 _ | IFS | as_nl) ;; #( 13636 _ | IFS | as_nl) ;; #(
26124 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13637 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26125 *) $as_unset $ac_var ;; 13638 *) { eval $ac_var=; unset $ac_var;} ;;
26126 esac ;; 13639 esac ;;
26127 esac 13640 esac
26128 done 13641 done
@@ -26130,8 +13643,8 @@ $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26130 (set) 2>&1 | 13643 (set) 2>&1 |
26131 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13644 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26132 *${as_nl}ac_space=\ *) 13645 *${as_nl}ac_space=\ *)
26133 # `set' does not quote correctly, so add quotes (double-quote 13646 # `set' does not quote correctly, so add quotes: double-quote
26134 # substitution turns \\\\ into \\, and sed turns \\ into \). 13647 # substitution turns \\\\ into \\, and sed turns \\ into \.
26135 sed -n \ 13648 sed -n \
26136 "s/'/'\\\\''/g; 13649 "s/'/'\\\\''/g;
26137 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13650 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
@@ -26154,11 +13667,11 @@ $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26154if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13667if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26155 if test -w "$cache_file"; then 13668 if test -w "$cache_file"; then
26156 test "x$cache_file" != "x/dev/null" && 13669 test "x$cache_file" != "x/dev/null" &&
26157 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 13670 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26158$as_echo "$as_me: updating cache $cache_file" >&6;} 13671$as_echo "$as_me: updating cache $cache_file" >&6;}
26159 cat confcache >$cache_file 13672 cat confcache >$cache_file
26160 else 13673 else
26161 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 13674 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26162$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13675$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26163 fi 13676 fi
26164fi 13677fi
@@ -26178,8 +13691,8 @@ for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26178 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13691 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26179 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13692 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26180 # will be set to the directory where LIBOBJS objects are built. 13693 # will be set to the directory where LIBOBJS objects are built.
26181 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13694 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26182 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 13695 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26183done 13696done
26184LIBOBJS=$ac_libobjs 13697LIBOBJS=$ac_libobjs
26185 13698
@@ -26191,9 +13704,10 @@ LTLIBOBJS=$ac_ltlibobjs
26191ac_write_fail=0 13704ac_write_fail=0
26192ac_clean_files_save=$ac_clean_files 13705ac_clean_files_save=$ac_clean_files
26193ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13706ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26194{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 13707{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26195$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13708$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26196cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13709as_write_fail=0
13710cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26197#! $SHELL 13711#! $SHELL
26198# Generated by $as_me. 13712# Generated by $as_me.
26199# Run this file to recreate the current configuration. 13713# Run this file to recreate the current configuration.
@@ -26203,17 +13717,18 @@ cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26203debug=false 13717debug=false
26204ac_cs_recheck=false 13718ac_cs_recheck=false
26205ac_cs_silent=false 13719ac_cs_silent=false
26206SHELL=\${CONFIG_SHELL-$SHELL}
26207_ACEOF
26208 13720
26209cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13721SHELL=\${CONFIG_SHELL-$SHELL}
26210## --------------------- ## 13722export SHELL
26211## M4sh Initialization. ## 13723_ASEOF
26212## --------------------- ## 13724cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13725## -------------------- ##
13726## M4sh Initialization. ##
13727## -------------------- ##
26213 13728
26214# Be more Bourne compatible 13729# Be more Bourne compatible
26215DUALCASE=1; export DUALCASE # for MKS sh 13730DUALCASE=1; export DUALCASE # for MKS sh
26216if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13731if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26217 emulate sh 13732 emulate sh
26218 NULLCMD=: 13733 NULLCMD=:
26219 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13734 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
@@ -26221,23 +13736,15 @@ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26221 alias -g '${1+"$@"}'='"$@"' 13736 alias -g '${1+"$@"}'='"$@"'
26222 setopt NO_GLOB_SUBST 13737 setopt NO_GLOB_SUBST
26223else 13738else
26224 case `(set -o) 2>/dev/null` in 13739 case `(set -o) 2>/dev/null` in #(
26225 *posix*) set -o posix ;; 13740 *posix*) :
13741 set -o posix ;; #(
13742 *) :
13743 ;;
26226esac 13744esac
26227
26228fi 13745fi
26229 13746
26230 13747
26231
26232
26233# PATH needs CR
26234# Avoid depending upon Character Ranges.
26235as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26236as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26237as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26238as_cr_digits='0123456789'
26239as_cr_alnum=$as_cr_Letters$as_cr_digits
26240
26241as_nl=' 13748as_nl='
26242' 13749'
26243export as_nl 13750export as_nl
@@ -26245,7 +13752,13 @@ export as_nl
26245as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13752as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26246as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13753as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26247as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13754as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26248if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13755# Prefer a ksh shell builtin over an external printf program on Solaris,
13756# but without wasting forks for bash or zsh.
13757if test -z "$BASH_VERSION$ZSH_VERSION" \
13758 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13759 as_echo='print -r --'
13760 as_echo_n='print -rn --'
13761elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26249 as_echo='printf %s\n' 13762 as_echo='printf %s\n'
26250 as_echo_n='printf %s' 13763 as_echo_n='printf %s'
26251else 13764else
@@ -26256,7 +13769,7 @@ else
26256 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13769 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26257 as_echo_n_body='eval 13770 as_echo_n_body='eval
26258 arg=$1; 13771 arg=$1;
26259 case $arg in 13772 case $arg in #(
26260 *"$as_nl"*) 13773 *"$as_nl"*)
26261 expr "X$arg" : "X\\(.*\\)$as_nl"; 13774 expr "X$arg" : "X\\(.*\\)$as_nl";
26262 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13775 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
@@ -26279,13 +13792,6 @@ if test "${PATH_SEPARATOR+set}" != set; then
26279 } 13792 }
26280fi 13793fi
26281 13794
26282# Support unset when possible.
26283if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26284 as_unset=unset
26285else
26286 as_unset=false
26287fi
26288
26289 13795
26290# IFS 13796# IFS
26291# We need space, tab and new line, in precisely that order. Quoting is 13797# We need space, tab and new line, in precisely that order. Quoting is
@@ -26295,15 +13801,15 @@ fi
26295IFS=" "" $as_nl" 13801IFS=" "" $as_nl"
26296 13802
26297# Find who we are. Look in the path if we contain no directory separator. 13803# Find who we are. Look in the path if we contain no directory separator.
26298case $0 in 13804case $0 in #((
26299 *[\\/]* ) as_myself=$0 ;; 13805 *[\\/]* ) as_myself=$0 ;;
26300 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13806 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26301for as_dir in $PATH 13807for as_dir in $PATH
26302do 13808do
26303 IFS=$as_save_IFS 13809 IFS=$as_save_IFS
26304 test -z "$as_dir" && as_dir=. 13810 test -z "$as_dir" && as_dir=.
26305 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13811 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26306done 13812 done
26307IFS=$as_save_IFS 13813IFS=$as_save_IFS
26308 13814
26309 ;; 13815 ;;
@@ -26315,12 +13821,16 @@ if test "x$as_myself" = x; then
26315fi 13821fi
26316if test ! -f "$as_myself"; then 13822if test ! -f "$as_myself"; then
26317 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13823 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26318 { (exit 1); exit 1; } 13824 exit 1
26319fi 13825fi
26320 13826
26321# Work around bugs in pre-3.0 UWIN ksh. 13827# Unset variables that we do not need and which cause bugs (e.g. in
26322for as_var in ENV MAIL MAILPATH 13828# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26323do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 13829# suppresses any "Segmentation fault" message there. '((' could
13830# trigger a bug in pdksh 5.2.14.
13831for as_var in BASH_ENV ENV MAIL MAILPATH
13832do eval test x\${$as_var+set} = xset \
13833 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26324done 13834done
26325PS1='$ ' 13835PS1='$ '
26326PS2='> ' 13836PS2='> '
@@ -26332,7 +13842,89 @@ export LC_ALL
26332LANGUAGE=C 13842LANGUAGE=C
26333export LANGUAGE 13843export LANGUAGE
26334 13844
26335# Required to use basename. 13845# CDPATH.
13846(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13847
13848
13849# as_fn_error ERROR [LINENO LOG_FD]
13850# ---------------------------------
13851# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13852# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13853# script with status $?, using 1 if that was 0.
13854as_fn_error ()
13855{
13856 as_status=$?; test $as_status -eq 0 && as_status=1
13857 if test "$3"; then
13858 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13859 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13860 fi
13861 $as_echo "$as_me: error: $1" >&2
13862 as_fn_exit $as_status
13863} # as_fn_error
13864
13865
13866# as_fn_set_status STATUS
13867# -----------------------
13868# Set $? to STATUS, without forking.
13869as_fn_set_status ()
13870{
13871 return $1
13872} # as_fn_set_status
13873
13874# as_fn_exit STATUS
13875# -----------------
13876# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13877as_fn_exit ()
13878{
13879 set +e
13880 as_fn_set_status $1
13881 exit $1
13882} # as_fn_exit
13883
13884# as_fn_unset VAR
13885# ---------------
13886# Portably unset VAR.
13887as_fn_unset ()
13888{
13889 { eval $1=; unset $1;}
13890}
13891as_unset=as_fn_unset
13892# as_fn_append VAR VALUE
13893# ----------------------
13894# Append the text in VALUE to the end of the definition contained in VAR. Take
13895# advantage of any shell optimizations that allow amortized linear growth over
13896# repeated appends, instead of the typical quadratic growth present in naive
13897# implementations.
13898if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13899 eval 'as_fn_append ()
13900 {
13901 eval $1+=\$2
13902 }'
13903else
13904 as_fn_append ()
13905 {
13906 eval $1=\$$1\$2
13907 }
13908fi # as_fn_append
13909
13910# as_fn_arith ARG...
13911# ------------------
13912# Perform arithmetic evaluation on the ARGs, and store the result in the
13913# global $as_val. Take advantage of shells that can avoid forks. The arguments
13914# must be portable across $(()) and expr.
13915if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13916 eval 'as_fn_arith ()
13917 {
13918 as_val=$(( $* ))
13919 }'
13920else
13921 as_fn_arith ()
13922 {
13923 as_val=`expr "$@" || test $? -eq 1`
13924 }
13925fi # as_fn_arith
13926
13927
26336if expr a : '\(a\)' >/dev/null 2>&1 && 13928if expr a : '\(a\)' >/dev/null 2>&1 &&
26337 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13929 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26338 as_expr=expr 13930 as_expr=expr
@@ -26346,8 +13938,12 @@ else
26346 as_basename=false 13938 as_basename=false
26347fi 13939fi
26348 13940
13941if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13942 as_dirname=dirname
13943else
13944 as_dirname=false
13945fi
26349 13946
26350# Name of the executable.
26351as_me=`$as_basename -- "$0" || 13947as_me=`$as_basename -- "$0" ||
26352$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13948$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26353 X"$0" : 'X\(//\)$' \| \ 13949 X"$0" : 'X\(//\)$' \| \
@@ -26367,76 +13963,25 @@ $as_echo X/"$0" |
26367 } 13963 }
26368 s/.*/./; q'` 13964 s/.*/./; q'`
26369 13965
26370# CDPATH. 13966# Avoid depending upon Character Ranges.
26371$as_unset CDPATH 13967as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26372 13968as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26373 13969as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26374 13970as_cr_digits='0123456789'
26375 as_lineno_1=$LINENO 13971as_cr_alnum=$as_cr_Letters$as_cr_digits
26376 as_lineno_2=$LINENO
26377 test "x$as_lineno_1" != "x$as_lineno_2" &&
26378 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26379
26380 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26381 # uniformly replaced by the line number. The first 'sed' inserts a
26382 # line-number line after each line using $LINENO; the second 'sed'
26383 # does the real work. The second script uses 'N' to pair each
26384 # line-number line with the line containing $LINENO, and appends
26385 # trailing '-' during substitution so that $LINENO is not a special
26386 # case at line end.
26387 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26388 # scripts with optimization help from Paolo Bonzini. Blame Lee
26389 # E. McMahon (1931-1989) for sed's syntax. :-)
26390 sed -n '
26391 p
26392 /[$]LINENO/=
26393 ' <$as_myself |
26394 sed '
26395 s/[$]LINENO.*/&-/
26396 t lineno
26397 b
26398 :lineno
26399 N
26400 :loop
26401 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26402 t loop
26403 s/-\n.*//
26404 ' >$as_me.lineno &&
26405 chmod +x "$as_me.lineno" ||
26406 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26407 { (exit 1); exit 1; }; }
26408
26409 # Don't try to exec as it changes $[0], causing all sort of problems
26410 # (the dirname of $[0] is not the place where we might find the
26411 # original and so on. Autoconf is especially sensitive to this).
26412 . "./$as_me.lineno"
26413 # Exit status is that of the last command.
26414 exit
26415}
26416
26417
26418if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26419 as_dirname=dirname
26420else
26421 as_dirname=false
26422fi
26423 13972
26424ECHO_C= ECHO_N= ECHO_T= 13973ECHO_C= ECHO_N= ECHO_T=
26425case `echo -n x` in 13974case `echo -n x` in #(((((
26426-n*) 13975-n*)
26427 case `echo 'x\c'` in 13976 case `echo 'xy\c'` in
26428 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13977 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26429 *) ECHO_C='\c';; 13978 xy) ECHO_C='\c';;
13979 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13980 ECHO_T=' ';;
26430 esac;; 13981 esac;;
26431*) 13982*)
26432 ECHO_N='-n';; 13983 ECHO_N='-n';;
26433esac 13984esac
26434if expr a : '\(a\)' >/dev/null 2>&1 &&
26435 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26436 as_expr=expr
26437else
26438 as_expr=false
26439fi
26440 13985
26441rm -f conf$$ conf$$.exe conf$$.file 13986rm -f conf$$ conf$$.exe conf$$.file
26442if test -d conf$$.dir; then 13987if test -d conf$$.dir; then
@@ -26465,8 +14010,56 @@ fi
26465rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14010rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26466rmdir conf$$.dir 2>/dev/null 14011rmdir conf$$.dir 2>/dev/null
26467 14012
14013
14014# as_fn_mkdir_p
14015# -------------
14016# Create "$as_dir" as a directory, including parents if necessary.
14017as_fn_mkdir_p ()
14018{
14019
14020 case $as_dir in #(
14021 -*) as_dir=./$as_dir;;
14022 esac
14023 test -d "$as_dir" || eval $as_mkdir_p || {
14024 as_dirs=
14025 while :; do
14026 case $as_dir in #(
14027 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14028 *) as_qdir=$as_dir;;
14029 esac
14030 as_dirs="'$as_qdir' $as_dirs"
14031 as_dir=`$as_dirname -- "$as_dir" ||
14032$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14033 X"$as_dir" : 'X\(//\)[^/]' \| \
14034 X"$as_dir" : 'X\(//\)$' \| \
14035 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14036$as_echo X"$as_dir" |
14037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14038 s//\1/
14039 q
14040 }
14041 /^X\(\/\/\)[^/].*/{
14042 s//\1/
14043 q
14044 }
14045 /^X\(\/\/\)$/{
14046 s//\1/
14047 q
14048 }
14049 /^X\(\/\).*/{
14050 s//\1/
14051 q
14052 }
14053 s/.*/./; q'`
14054 test -d "$as_dir" && break
14055 done
14056 test -z "$as_dirs" || eval "mkdir $as_dirs"
14057 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14058
14059
14060} # as_fn_mkdir_p
26468if mkdir -p . 2>/dev/null; then 14061if mkdir -p . 2>/dev/null; then
26469 as_mkdir_p=: 14062 as_mkdir_p='mkdir -p "$as_dir"'
26470else 14063else
26471 test -d ./-p && rmdir ./-p 14064 test -d ./-p && rmdir ./-p
26472 as_mkdir_p=false 14065 as_mkdir_p=false
@@ -26485,10 +14078,10 @@ else
26485 if test -d "$1"; then 14078 if test -d "$1"; then
26486 test -d "$1/."; 14079 test -d "$1/.";
26487 else 14080 else
26488 case $1 in 14081 case $1 in #(
26489 -*)set "./$1";; 14082 -*)set "./$1";;
26490 esac; 14083 esac;
26491 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 14084 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26492 ???[sx]*):;;*)false;;esac;fi 14085 ???[sx]*):;;*)false;;esac;fi
26493 '\'' sh 14086 '\'' sh
26494 ' 14087 '
@@ -26503,13 +14096,19 @@ as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26503 14096
26504 14097
26505exec 6>&1 14098exec 6>&1
14099## ----------------------------------- ##
14100## Main body of $CONFIG_STATUS script. ##
14101## ----------------------------------- ##
14102_ASEOF
14103test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26506 14104
26507# Save the log message, to keep $[0] and so on meaningful, and to 14105cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14106# Save the log message, to keep $0 and so on meaningful, and to
26508# report actual input values of CONFIG_FILES etc. instead of their 14107# report actual input values of CONFIG_FILES etc. instead of their
26509# values after options handling. 14108# values after options handling.
26510ac_log=" 14109ac_log="
26511This file was extended by emacs $as_me 24.0.50, which was 14110This file was extended by emacs $as_me 24.0.50, which was
26512generated by GNU Autoconf 2.62. Invocation command line was 14111generated by GNU Autoconf 2.65. Invocation command line was
26513 14112
26514 CONFIG_FILES = $CONFIG_FILES 14113 CONFIG_FILES = $CONFIG_FILES
26515 CONFIG_HEADERS = $CONFIG_HEADERS 14114 CONFIG_HEADERS = $CONFIG_HEADERS
@@ -26522,6 +14121,15 @@ on `(hostname || uname -n) 2>/dev/null | sed 1q`
26522 14121
26523_ACEOF 14122_ACEOF
26524 14123
14124case $ac_config_files in *"
14125"*) set x $ac_config_files; shift; ac_config_files=$*;;
14126esac
14127
14128case $ac_config_headers in *"
14129"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14130esac
14131
14132
26525cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26526# Files that config.status was made for. 14134# Files that config.status was made for.
26527config_files="$ac_config_files" 14135config_files="$ac_config_files"
@@ -26532,19 +14140,22 @@ _ACEOF
26532 14140
26533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14141cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26534ac_cs_usage="\ 14142ac_cs_usage="\
26535\`$as_me' instantiates files from templates according to the 14143\`$as_me' instantiates files and other configuration actions
26536current configuration. 14144from templates according to the current configuration. Unless the files
14145and actions are specified as TAGs, all are instantiated by default.
26537 14146
26538Usage: $0 [OPTIONS] [FILE]... 14147Usage: $0 [OPTION]... [TAG]...
26539 14148
26540 -h, --help print this help, then exit 14149 -h, --help print this help, then exit
26541 -V, --version print version number and configuration settings, then exit 14150 -V, --version print version number and configuration settings, then exit
26542 -q, --quiet do not print progress messages 14151 --config print configuration, then exit
14152 -q, --quiet, --silent
14153 do not print progress messages
26543 -d, --debug don't remove temporary files 14154 -d, --debug don't remove temporary files
26544 --recheck update $as_me by reconfiguring in the same conditions 14155 --recheck update $as_me by reconfiguring in the same conditions
26545 --file=FILE[:TEMPLATE] 14156 --file=FILE[:TEMPLATE]
26546 instantiate the configuration file FILE 14157 instantiate the configuration file FILE
26547 --header=FILE[:TEMPLATE] 14158 --header=FILE[:TEMPLATE]
26548 instantiate the configuration header FILE 14159 instantiate the configuration header FILE
26549 14160
26550Configuration files: 14161Configuration files:
@@ -26556,16 +14167,17 @@ $config_headers
26556Configuration commands: 14167Configuration commands:
26557$config_commands 14168$config_commands
26558 14169
26559Report bugs to <bug-autoconf@gnu.org>." 14170Report bugs to the package provider."
26560 14171
26561_ACEOF 14172_ACEOF
26562cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14173cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14174ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26563ac_cs_version="\\ 14175ac_cs_version="\\
26564emacs config.status 24.0.50 14176emacs config.status 24.0.50
26565configured by $0, generated by GNU Autoconf 2.62, 14177configured by $0, generated by GNU Autoconf 2.65,
26566 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 14178 with options \\"\$ac_cs_config\\"
26567 14179
26568Copyright (C) 2008 Free Software Foundation, Inc. 14180Copyright (C) 2009 Free Software Foundation, Inc.
26569This config.status script is free software; the Free Software Foundation 14181This config.status script is free software; the Free Software Foundation
26570gives unlimited permission to copy, distribute and modify it." 14182gives unlimited permission to copy, distribute and modify it."
26571 14183
@@ -26599,6 +14211,8 @@ do
26599 ac_cs_recheck=: ;; 14211 ac_cs_recheck=: ;;
26600 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14212 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26601 $as_echo "$ac_cs_version"; exit ;; 14213 $as_echo "$ac_cs_version"; exit ;;
14214 --config | --confi | --conf | --con | --co | --c )
14215 $as_echo "$ac_cs_config"; exit ;;
26602 --debug | --debu | --deb | --de | --d | -d ) 14216 --debug | --debu | --deb | --de | --d | -d )
26603 debug=: ;; 14217 debug=: ;;
26604 --file | --fil | --fi | --f ) 14218 --file | --fil | --fi | --f )
@@ -26606,20 +14220,19 @@ do
26606 case $ac_optarg in 14220 case $ac_optarg in
26607 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14221 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26608 esac 14222 esac
26609 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 14223 as_fn_append CONFIG_FILES " '$ac_optarg'"
26610 ac_need_defaults=false;; 14224 ac_need_defaults=false;;
26611 --header | --heade | --head | --hea ) 14225 --header | --heade | --head | --hea )
26612 $ac_shift 14226 $ac_shift
26613 case $ac_optarg in 14227 case $ac_optarg in
26614 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14228 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26615 esac 14229 esac
26616 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 14230 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26617 ac_need_defaults=false;; 14231 ac_need_defaults=false;;
26618 --he | --h) 14232 --he | --h)
26619 # Conflict between --help and --header 14233 # Conflict between --help and --header
26620 { $as_echo "$as_me: error: ambiguous option: $1 14234 as_fn_error "ambiguous option: \`$1'
26621Try \`$0 --help' for more information." >&2 14235Try \`$0 --help' for more information.";;
26622 { (exit 1); exit 1; }; };;
26623 --help | --hel | -h ) 14236 --help | --hel | -h )
26624 $as_echo "$ac_cs_usage"; exit ;; 14237 $as_echo "$ac_cs_usage"; exit ;;
26625 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14238 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
@@ -26627,11 +14240,10 @@ Try \`$0 --help' for more information." >&2
26627 ac_cs_silent=: ;; 14240 ac_cs_silent=: ;;
26628 14241
26629 # This is an error. 14242 # This is an error.
26630 -*) { $as_echo "$as_me: error: unrecognized option: $1 14243 -*) as_fn_error "unrecognized option: \`$1'
26631Try \`$0 --help' for more information." >&2 14244Try \`$0 --help' for more information." ;;
26632 { (exit 1); exit 1; }; } ;;
26633 14245
26634 *) ac_config_targets="$ac_config_targets $1" 14246 *) as_fn_append ac_config_targets " $1"
26635 ac_need_defaults=false ;; 14247 ac_need_defaults=false ;;
26636 14248
26637 esac 14249 esac
@@ -26696,9 +14308,7 @@ do
26696 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; 14308 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26697 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 14309 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26698 14310
26699 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14311 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26700$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26701 { (exit 1); exit 1; }; };;
26702 esac 14312 esac
26703done 14313done
26704 14314
@@ -26725,7 +14335,7 @@ $debug ||
26725 trap 'exit_status=$? 14335 trap 'exit_status=$?
26726 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 14336 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26727' 0 14337' 0
26728 trap '{ (exit 1); exit 1; }' 1 2 13 15 14338 trap 'as_fn_exit 1' 1 2 13 15
26729} 14339}
26730# Create a (secure) tmp directory for tmp files. 14340# Create a (secure) tmp directory for tmp files.
26731 14341
@@ -26736,11 +14346,7 @@ $debug ||
26736{ 14346{
26737 tmp=./conf$$-$RANDOM 14347 tmp=./conf$$-$RANDOM
26738 (umask 077 && mkdir "$tmp") 14348 (umask 077 && mkdir "$tmp")
26739} || 14349} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26740{
26741 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26742 { (exit 1); exit 1; }
26743}
26744 14350
26745# Set up the scripts for CONFIG_FILES section. 14351# Set up the scripts for CONFIG_FILES section.
26746# No need to generate them if there are no CONFIG_FILES. 14352# No need to generate them if there are no CONFIG_FILES.
@@ -26748,10 +14354,16 @@ $debug ||
26748if test -n "$CONFIG_FILES"; then 14354if test -n "$CONFIG_FILES"; then
26749 14355
26750 14356
26751ac_cr=' ' 14357ac_cr=`echo X | tr X '\015'`
14358# On cygwin, bash can eat \r inside `` if the user requested igncr.
14359# But we know of no other shell where ac_cr would be empty at this
14360# point, so we can use a bashism as a fallback.
14361if test "x$ac_cr" = x; then
14362 eval ac_cr=\$\'\\r\'
14363fi
26752ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14364ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26753if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14365if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26754 ac_cs_awk_cr='\\r' 14366 ac_cs_awk_cr='\r'
26755else 14367else
26756 ac_cs_awk_cr=$ac_cr 14368 ac_cs_awk_cr=$ac_cr
26757fi 14369fi
@@ -26765,23 +14377,18 @@ _ACEOF
26765 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14377 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26766 echo "_ACEOF" 14378 echo "_ACEOF"
26767} >conf$$subs.sh || 14379} >conf$$subs.sh ||
26768 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14380 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26769$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26770 { (exit 1); exit 1; }; }
26771ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 14381ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26772ac_delim='%!_!# ' 14382ac_delim='%!_!# '
26773for ac_last_try in false false false false false :; do 14383for ac_last_try in false false false false false :; do
26774 . ./conf$$subs.sh || 14384 . ./conf$$subs.sh ||
26775 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14385 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26776$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26777 { (exit 1); exit 1; }; }
26778 14386
26779 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then 14387 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14388 if test $ac_delim_n = $ac_delim_num; then
26780 break 14389 break
26781 elif $ac_last_try; then 14390 elif $ac_last_try; then
26782 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14391 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26783$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26784 { (exit 1); exit 1; }; }
26785 else 14392 else
26786 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14393 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26787 fi 14394 fi
@@ -26803,7 +14410,7 @@ s/'"$ac_delim"'$//
26803t delim 14410t delim
26804:nl 14411:nl
26805h 14412h
26806s/\(.\{148\}\).*/\1/ 14413s/\(.\{148\}\)..*/\1/
26807t more1 14414t more1
26808s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14415s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26809p 14416p
@@ -26817,7 +14424,7 @@ s/.\{148\}//
26817t nl 14424t nl
26818:delim 14425:delim
26819h 14426h
26820s/\(.\{148\}\).*/\1/ 14427s/\(.\{148\}\)..*/\1/
26821t more2 14428t more2
26822s/["\\]/\\&/g; s/^/"/; s/$/"/ 14429s/["\\]/\\&/g; s/^/"/; s/$/"/
26823p 14430p
@@ -26870,9 +14477,7 @@ if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26870else 14477else
26871 cat 14478 cat
26872fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 14479fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26873 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 14480 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26874$as_echo "$as_me: error: could not setup config files machinery" >&2;}
26875 { (exit 1); exit 1; }; }
26876_ACEOF 14481_ACEOF
26877 14482
26878# VPATH may cause trouble with some makes, so we remove $(srcdir), 14483# VPATH may cause trouble with some makes, so we remove $(srcdir),
@@ -26913,9 +14518,7 @@ for ac_last_try in false false :; do
26913 if test -z "$ac_t"; then 14518 if test -z "$ac_t"; then
26914 break 14519 break
26915 elif $ac_last_try; then 14520 elif $ac_last_try; then
26916 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 14521 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26917$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
26918 { (exit 1); exit 1; }; }
26919 else 14522 else
26920 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14523 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26921 fi 14524 fi
@@ -26981,9 +14584,9 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26981 } 14584 }
26982 split(mac1, mac2, "(") #) 14585 split(mac1, mac2, "(") #)
26983 macro = mac2[1] 14586 macro = mac2[1]
14587 prefix = substr(line, 1, index(line, defundef) - 1)
26984 if (D_is_set[macro]) { 14588 if (D_is_set[macro]) {
26985 # Preserve the white space surrounding the "#". 14589 # Preserve the white space surrounding the "#".
26986 prefix = substr(line, 1, index(line, defundef) - 1)
26987 print prefix "define", macro P[macro] D[macro] 14590 print prefix "define", macro P[macro] D[macro]
26988 next 14591 next
26989 } else { 14592 } else {
@@ -26991,7 +14594,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26991 # in the case of _POSIX_SOURCE, which is predefined and required 14594 # in the case of _POSIX_SOURCE, which is predefined and required
26992 # on some systems where configure will not decide to define it. 14595 # on some systems where configure will not decide to define it.
26993 if (defundef == "undef") { 14596 if (defundef == "undef") {
26994 print "/*", line, "*/" 14597 print "/*", prefix defundef, macro, "*/"
26995 next 14598 next
26996 } 14599 }
26997 } 14600 }
@@ -27000,9 +14603,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27000_ACAWK 14603_ACAWK
27001_ACEOF 14604_ACEOF
27002cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14605cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27003 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 14606 as_fn_error "could not setup config headers machinery" "$LINENO" 5
27004$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27005 { (exit 1); exit 1; }; }
27006fi # test -n "$CONFIG_HEADERS" 14607fi # test -n "$CONFIG_HEADERS"
27007 14608
27008 14609
@@ -27015,9 +14616,7 @@ do
27015 esac 14616 esac
27016 case $ac_mode$ac_tag in 14617 case $ac_mode$ac_tag in
27017 :[FHL]*:*);; 14618 :[FHL]*:*);;
27018 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 14619 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27019$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27020 { (exit 1); exit 1; }; };;
27021 :[FH]-) ac_tag=-:-;; 14620 :[FH]-) ac_tag=-:-;;
27022 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14621 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27023 esac 14622 esac
@@ -27045,12 +14644,10 @@ $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27045 [\\/$]*) false;; 14644 [\\/$]*) false;;
27046 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14645 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27047 esac || 14646 esac ||
27048 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 14647 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27049$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27050 { (exit 1); exit 1; }; };;
27051 esac 14648 esac
27052 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14649 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27053 ac_file_inputs="$ac_file_inputs '$ac_f'" 14650 as_fn_append ac_file_inputs " '$ac_f'"
27054 done 14651 done
27055 14652
27056 # Let's still pretend it is `configure' which instantiates (i.e., don't 14653 # Let's still pretend it is `configure' which instantiates (i.e., don't
@@ -27061,7 +14658,7 @@ $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27061 `' by configure.' 14658 `' by configure.'
27062 if test x"$ac_file" != x-; then 14659 if test x"$ac_file" != x-; then
27063 configure_input="$ac_file. $configure_input" 14660 configure_input="$ac_file. $configure_input"
27064 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 14661 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27065$as_echo "$as_me: creating $ac_file" >&6;} 14662$as_echo "$as_me: creating $ac_file" >&6;}
27066 fi 14663 fi
27067 # Neutralize special characters interpreted by sed in replacement strings. 14664 # Neutralize special characters interpreted by sed in replacement strings.
@@ -27074,9 +14671,7 @@ $as_echo "$as_me: creating $ac_file" >&6;}
27074 14671
27075 case $ac_tag in 14672 case $ac_tag in
27076 *:-:* | *:-) cat >"$tmp/stdin" \ 14673 *:-:* | *:-) cat >"$tmp/stdin" \
27077 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14674 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27078$as_echo "$as_me: error: could not create $ac_file" >&2;}
27079 { (exit 1); exit 1; }; } ;;
27080 esac 14675 esac
27081 ;; 14676 ;;
27082 esac 14677 esac
@@ -27104,47 +14699,7 @@ $as_echo X"$ac_file" |
27104 q 14699 q
27105 } 14700 }
27106 s/.*/./; q'` 14701 s/.*/./; q'`
27107 { as_dir="$ac_dir" 14702 as_dir="$ac_dir"; as_fn_mkdir_p
27108 case $as_dir in #(
27109 -*) as_dir=./$as_dir;;
27110 esac
27111 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27112 as_dirs=
27113 while :; do
27114 case $as_dir in #(
27115 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27116 *) as_qdir=$as_dir;;
27117 esac
27118 as_dirs="'$as_qdir' $as_dirs"
27119 as_dir=`$as_dirname -- "$as_dir" ||
27120$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27121 X"$as_dir" : 'X\(//\)[^/]' \| \
27122 X"$as_dir" : 'X\(//\)$' \| \
27123 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27124$as_echo X"$as_dir" |
27125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27126 s//\1/
27127 q
27128 }
27129 /^X\(\/\/\)[^/].*/{
27130 s//\1/
27131 q
27132 }
27133 /^X\(\/\/\)$/{
27134 s//\1/
27135 q
27136 }
27137 /^X\(\/\).*/{
27138 s//\1/
27139 q
27140 }
27141 s/.*/./; q'`
27142 test -d "$as_dir" && break
27143 done
27144 test -z "$as_dirs" || eval "mkdir $as_dirs"
27145 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27146$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27147 { (exit 1); exit 1; }; }; }
27148 ac_builddir=. 14703 ac_builddir=.
27149 14704
27150case "$ac_dir" in 14705case "$ac_dir" in
@@ -27196,7 +14751,6 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27196# If the template does not know about datarootdir, expand it. 14751# If the template does not know about datarootdir, expand it.
27197# FIXME: This hack should be removed a few years after 2.60. 14752# FIXME: This hack should be removed a few years after 2.60.
27198ac_datarootdir_hack=; ac_datarootdir_seen= 14753ac_datarootdir_hack=; ac_datarootdir_seen=
27199
27200ac_sed_dataroot=' 14754ac_sed_dataroot='
27201/datarootdir/ { 14755/datarootdir/ {
27202 p 14756 p
@@ -27206,12 +14760,11 @@ ac_sed_dataroot='
27206/@docdir@/p 14760/@docdir@/p
27207/@infodir@/p 14761/@infodir@/p
27208/@localedir@/p 14762/@localedir@/p
27209/@mandir@/p 14763/@mandir@/p'
27210'
27211case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14764case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27212*datarootdir*) ac_datarootdir_seen=yes;; 14765*datarootdir*) ac_datarootdir_seen=yes;;
27213*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14766*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27214 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27215$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14768$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27216_ACEOF 14769_ACEOF
27217cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14770cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
@@ -27221,7 +14774,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27221 s&@infodir@&$infodir&g 14774 s&@infodir@&$infodir&g
27222 s&@localedir@&$localedir&g 14775 s&@localedir@&$localedir&g
27223 s&@mandir@&$mandir&g 14776 s&@mandir@&$mandir&g
27224 s&\\\${datarootdir}&$datarootdir&g' ;; 14777 s&\\\${datarootdir}&$datarootdir&g' ;;
27225esac 14778esac
27226_ACEOF 14779_ACEOF
27227 14780
@@ -27249,14 +14802,12 @@ s&@INSTALL@&$ac_INSTALL&;t t
27249$ac_datarootdir_hack 14802$ac_datarootdir_hack
27250" 14803"
27251eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 14804eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27252 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14805 || as_fn_error "could not create $ac_file" "$LINENO" 5
27253$as_echo "$as_me: error: could not create $ac_file" >&2;}
27254 { (exit 1); exit 1; }; }
27255 14806
27256test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14807test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27257 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 14808 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27258 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 14809 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27259 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27260which seems to be undefined. Please make sure it is defined." >&5 14811which seems to be undefined. Please make sure it is defined." >&5
27261$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14812$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27262which seems to be undefined. Please make sure it is defined." >&2;} 14813which seems to be undefined. Please make sure it is defined." >&2;}
@@ -27266,9 +14817,7 @@ which seems to be undefined. Please make sure it is defined." >&2;}
27266 -) cat "$tmp/out" && rm -f "$tmp/out";; 14817 -) cat "$tmp/out" && rm -f "$tmp/out";;
27267 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 14818 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27268 esac \ 14819 esac \
27269 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14820 || as_fn_error "could not create $ac_file" "$LINENO" 5
27270$as_echo "$as_me: error: could not create $ac_file" >&2;}
27271 { (exit 1); exit 1; }; }
27272 ;; 14821 ;;
27273 :H) 14822 :H)
27274 # 14823 #
@@ -27279,29 +14828,23 @@ $as_echo "$as_me: error: could not create $ac_file" >&2;}
27279 $as_echo "/* $configure_input */" \ 14828 $as_echo "/* $configure_input */" \
27280 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 14829 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27281 } >"$tmp/config.h" \ 14830 } >"$tmp/config.h" \
27282 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14831 || as_fn_error "could not create $ac_file" "$LINENO" 5
27283$as_echo "$as_me: error: could not create $ac_file" >&2;}
27284 { (exit 1); exit 1; }; }
27285 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 14832 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27286 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 14833 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27287$as_echo "$as_me: $ac_file is unchanged" >&6;} 14834$as_echo "$as_me: $ac_file is unchanged" >&6;}
27288 else 14835 else
27289 rm -f "$ac_file" 14836 rm -f "$ac_file"
27290 mv "$tmp/config.h" "$ac_file" \ 14837 mv "$tmp/config.h" "$ac_file" \
27291 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14838 || as_fn_error "could not create $ac_file" "$LINENO" 5
27292$as_echo "$as_me: error: could not create $ac_file" >&2;}
27293 { (exit 1); exit 1; }; }
27294 fi 14839 fi
27295 else 14840 else
27296 $as_echo "/* $configure_input */" \ 14841 $as_echo "/* $configure_input */" \
27297 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 14842 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27298 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 14843 || as_fn_error "could not create -" "$LINENO" 5
27299$as_echo "$as_me: error: could not create -" >&2;}
27300 { (exit 1); exit 1; }; }
27301 fi 14844 fi
27302 ;; 14845 ;;
27303 14846
27304 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 14847 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27305$as_echo "$as_me: executing $ac_file commands" >&6;} 14848$as_echo "$as_me: executing $ac_file commands" >&6;}
27306 ;; 14849 ;;
27307 esac 14850 esac
@@ -27372,15 +14915,12 @@ fi
27372done # for ac_tag 14915done # for ac_tag
27373 14916
27374 14917
27375{ (exit 0); exit 0; } 14918as_fn_exit 0
27376_ACEOF 14919_ACEOF
27377chmod +x $CONFIG_STATUS
27378ac_clean_files=$ac_clean_files_save 14920ac_clean_files=$ac_clean_files_save
27379 14921
27380test $ac_write_fail = 0 || 14922test $ac_write_fail = 0 ||
27381 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 14923 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27382$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27383 { (exit 1); exit 1; }; }
27384 14924
27385 14925
27386# configure is writing to config.log, and then calls config.status. 14926# configure is writing to config.log, and then calls config.status.
@@ -27401,11 +14941,11 @@ if test "$no_create" != yes; then
27401 exec 5>>config.log 14941 exec 5>>config.log
27402 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14942 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27403 # would make configure fail if this is the last instruction. 14943 # would make configure fail if this is the last instruction.
27404 $ac_cs_success || { (exit 1); exit 1; } 14944 $ac_cs_success || as_fn_exit $?
27405fi 14945fi
27406if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14946if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27407 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5 14947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27408$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;} 14948$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27409fi 14949fi
27410 14950
27411 14951