comparison configure @ 107409:699a9df0de1e

Regenerate configure.
author Glenn Morris <rgm@gnu.org>
date Wed, 17 Mar 2010 22:57:21 -0700
parents 5a46c741f65e
children 8747ece3d961
comparison
equal deleted inserted replaced
107408:eba6eb70e988 107409:699a9df0de1e
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.64 for emacs 24.0.50. 3 # Generated by GNU Autoconf 2.62 for emacs 24.0.50.
4 # 4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software 6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation 7 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it. 8 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ## 9 ## --------------------- ##
12 ## M4sh Initialization. ## 10 ## M4sh Initialization. ##
13 ## -------------------- ## 11 ## --------------------- ##
14 12
15 # Be more Bourne compatible 13 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh 14 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh 16 emulate sh
19 NULLCMD=: 17 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature. 19 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"' 20 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST 21 setopt NO_GLOB_SUBST
24 else 22 else
25 case `(set -o) 2>/dev/null` in #( 23 case `(set -o) 2>/dev/null` in
26 *posix*) : 24 *posix*) set -o posix ;;
27 set -o posix ;; #( 25 esac
28 *) : 26
29 ;; 27 fi
30 esac 28
31 fi 29
32 30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
33 39
34 as_nl=' 40 as_nl='
35 ' 41 '
36 export as_nl 42 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf. 43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris, 47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n' 48 as_echo='printf %s\n'
49 as_echo_n='printf %s' 49 as_echo_n='printf %s'
50 else 50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n' 53 as_echo_n='/usr/ucb/echo -n'
54 else 54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval 56 as_echo_n_body='eval
57 arg=$1; 57 arg=$1;
58 case $arg in #( 58 case $arg in
59 *"$as_nl"*) 59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl"; 60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac; 62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';' 77 PATH_SEPARATOR=';'
78 } 78 }
79 fi 79 fi
80 80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
87
81 88
82 # IFS 89 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is 90 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab. 91 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.) 93 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl" 94 IFS=" "" $as_nl"
88 95
89 # Find who we are. Look in the path if we contain no directory separator. 96 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #(( 97 case $0 in
91 *[\\/]* ) as_myself=$0 ;; 98 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH 100 for as_dir in $PATH
94 do 101 do
95 IFS=$as_save_IFS 102 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=. 103 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done 105 done
99 IFS=$as_save_IFS 106 IFS=$as_save_IFS
100 107
101 ;; 108 ;;
102 esac 109 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND' 110 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 if test "x$as_myself" = x; then 112 if test "x$as_myself" = x; then
106 as_myself=$0 113 as_myself=$0
107 fi 114 fi
108 if test ! -f "$as_myself"; then 115 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1 117 { (exit 1); exit 1; }
111 fi 118 fi
112 119
113 # Unset variables that we do not need and which cause bugs (e.g. in 120 # Work around bugs in pre-3.0 UWIN ksh.
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 121 for as_var in ENV MAIL MAILPATH
115 # suppresses any "Segmentation fault" message there. '((' could 122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done 123 done
121 PS1='$ ' 124 PS1='$ '
122 PS2='> ' 125 PS2='> '
123 PS4='+ ' 126 PS4='+ '
124 127
126 LC_ALL=C 129 LC_ALL=C
127 export LC_ALL 130 export LC_ALL
128 LANGUAGE=C 131 LANGUAGE=C
129 export LANGUAGE 132 export LANGUAGE
130 133
131 # CDPATH. 134 # Required to use basename.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
177 fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198 fi
199 fi
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233 fi
234 exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252 { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261 return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332 else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349 else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 && 135 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then 136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr 137 as_expr=expr
376 else 138 else
377 as_expr=false 139 as_expr=false
381 as_basename=basename 143 as_basename=basename
382 else 144 else
383 as_basename=false 145 as_basename=false
384 fi 146 fi
385 147
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 148
387 as_dirname=dirname 149 # Name of the executable.
388 else
389 as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" || 150 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \ 152 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null || 153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" | 154 $as_echo X/"$0" |
406 s//\1/ 164 s//\1/
407 q 165 q
408 } 166 }
409 s/.*/./; q'` 167 s/.*/./; q'`
410 168
411 # Avoid depending upon Character Ranges. 169 # CDPATH.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 170 $as_unset CDPATH
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 171
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 172
415 as_cr_digits='0123456789' 173 if test "x$CONFIG_SHELL" = x; then
416 as_cr_alnum=$as_cr_Letters$as_cr_digits 174 if (eval ":") 2>/dev/null; then
417 175 as_have_required=yes
418 176 else
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO 177 as_have_required=no
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO 178 fi
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 179
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 180 if test $as_have_required = yes && (eval ":
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 181 (as_func_return () {
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
228
229 test \$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 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
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
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
270
271 fi
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
280 if 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
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
343
344 test $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
355 fi
356
357 fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439 }
440
441
442
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
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n ' 458 sed -n '
425 p 459 p
426 /[$]LINENO/= 460 /[$]LINENO/=
427 ' <$as_myself | 461 ' <$as_myself |
428 sed ' 462 sed '
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop 470 t loop
437 s/-\n.*// 471 s/-\n.*//
438 ' >$as_me.lineno && 472 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" || 473 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
441 476
442 # Don't try to exec as it changes $[0], causing all sort of problems 477 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the 478 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this). 479 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno" 480 . "./$as_me.lineno"
446 # Exit status is that of the last command. 481 # Exit status is that of the last command.
447 exit 482 exit
448 } 483 }
449 484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
491
450 ECHO_C= ECHO_N= ECHO_T= 492 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #((((( 493 case `echo -n x` in
452 -n*) 494 -n*)
453 case `echo 'xy\c'` in 495 case `echo 'x\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';; 497 *) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;; 498 esac;;
459 *) 499 *)
460 ECHO_N='-n';; 500 ECHO_N='-n';;
461 esac 501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
462 508
463 rm -f conf$$ conf$$.exe conf$$.file 509 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then 510 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file 511 rm -f conf$$.dir/conf$$.file
466 else 512 else
486 fi 532 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null 534 rmdir conf$$.dir 2>/dev/null
489 535
490 if mkdir -p . 2>/dev/null; then 536 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"' 537 as_mkdir_p=:
492 else 538 else
493 test -d ./-p && rmdir ./-p 539 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false 540 as_mkdir_p=false
495 fi 541 fi
496 542
505 as_test_x=' 551 as_test_x='
506 eval sh -c '\'' 552 eval sh -c '\''
507 if test -d "$1"; then 553 if test -d "$1"; then
508 test -d "$1/."; 554 test -d "$1/.";
509 else 555 else
510 case $1 in #( 556 case $1 in
511 -*)set "./$1";; 557 -*)set "./$1";;
512 esac; 558 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
514 ???[sx]*):;;*)false;;esac;fi 560 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh 561 '\'' sh
516 ' 562 '
517 fi 563 fi
518 as_executable_p=$as_test_x 564 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name. 566 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522 568
523 # Sed expression to map a string onto a valid variable name. 569 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
525 572
526 573
527 exec 7<&0 </dev/null 6>&1 574 exec 7<&0 </dev/null 6>&1
528 575
529 # Name of the host. 576 # Name of the host.
540 LIBOBJS= 587 LIBOBJS=
541 cross_compiling=no 588 cross_compiling=no
542 subdirs= 589 subdirs=
543 MFLAGS= 590 MFLAGS=
544 MAKEFLAGS= 591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
545 593
546 # Identity of this package. 594 # Identity of this package.
547 PACKAGE_NAME='emacs' 595 PACKAGE_NAME='emacs'
548 PACKAGE_TARNAME='emacs' 596 PACKAGE_TARNAME='emacs'
549 PACKAGE_VERSION='24.0.50' 597 PACKAGE_VERSION='24.0.50'
550 PACKAGE_STRING='emacs 24.0.50' 598 PACKAGE_STRING='emacs 24.0.50'
551 PACKAGE_BUGREPORT='' 599 PACKAGE_BUGREPORT=''
552 PACKAGE_URL=''
553 600
554 ac_unique_file="src/lisp.h" 601 ac_unique_file="src/lisp.h"
555 # Factoring default headers for most tests. 602 # Factoring default headers for most tests.
556 ac_includes_default="\ 603 ac_includes_default="\
557 #include <stdio.h> 604 #include <stdio.h>
589 #endif" 636 #endif"
590 637
591 ac_config_libobj_dir=src 638 ac_config_libobj_dir=src
592 ac_header_list= 639 ac_header_list=
593 ac_func_list= 640 ac_func_list=
594 ac_subst_vars='LTLIBOBJS 641 ac_subst_vars='SHELL
642 PATH_SEPARATOR
643 PACKAGE_NAME
644 PACKAGE_TARNAME
645 PACKAGE_VERSION
646 PACKAGE_STRING
647 PACKAGE_BUGREPORT
648 exec_prefix
649 prefix
650 program_transform_name
651 bindir
652 sbindir
653 libexecdir
654 datarootdir
655 datadir
656 sysconfdir
657 sharedstatedir
658 localstatedir
659 includedir
660 oldincludedir
661 docdir
662 infodir
663 htmldir
664 dvidir
665 pdfdir
666 psdir
667 libdir
668 localedir
669 mandir
670 DEFS
671 ECHO_C
672 ECHO_N
673 ECHO_T
674 LIBS
675 build_alias
676 host_alias
677 target_alias
678 MAINT
679 build
680 build_cpu
681 build_vendor
682 build_os
683 host
684 host_cpu
685 host_vendor
686 host_os
687 CC
688 CFLAGS
689 LDFLAGS
690 CPPFLAGS
691 ac_ct_CC
692 EXEEXT
693 OBJEXT
694 CPP
695 GREP
696 EGREP
697 LN_S
698 INSTALL_PROGRAM
699 INSTALL_SCRIPT
700 INSTALL_DATA
701 RANLIB
702 INSTALL_INFO
703 GZIP_PROG
704 MAKEINFO
705 LIBSOUND
706 PKG_CONFIG
707 ALSA_CFLAGS
708 ALSA_LIBS
709 CFLAGS_SOUND
710 SET_MAKE
711 XMKMF
712 HAVE_XSERVER
713 RSVG_CFLAGS
714 RSVG_LIBS
715 GTK_CFLAGS
716 GTK_LIBS
717 DBUS_CFLAGS
718 DBUS_LIBS
719 GCONF_CFLAGS
720 GCONF_LIBS
721 FONTCONFIG_CFLAGS
722 FONTCONFIG_LIBS
723 XFT_CFLAGS
724 XFT_LIBS
725 LIBOTF_CFLAGS
726 LIBOTF_LIBS
727 M17N_FLT_CFLAGS
728 M17N_FLT_LIBS
729 FREETYPE_CFLAGS
730 FREETYPE_LIBS
731 LIBXPM
732 LIBJPEG
733 LIBPNG
734 LIBTIFF
735 LIBGIF
736 LIBGPM
737 ALLOCA
738 liblockfile
739 LIBS_MAIL
740 LIBOBJS
741 NEED_SETGID
742 KMEM_GROUP
743 GETLOADAVG_LIBS
744 GETOPT_H
745 GETOPTOBJS
746 LIBHESIOD
747 LIBRESOLV
748 COM_ERRLIB
749 CRYPTOLIB
750 KRB5LIB
751 DESLIB
752 KRB4LIB
753 version
754 configuration
755 canonical
756 srcdir
757 lispdir
758 locallisppath
759 lisppath
760 x_default_search_path
761 etcdir
762 archlibdir
763 bitmapdir
764 gamedir
765 gameuser
766 c_switch_system
767 c_switch_machine
768 LD_SWITCH_X_SITE
769 LD_SWITCH_X_SITE_AUX
770 C_SWITCH_X_SITE
771 X_TOOLKIT_TYPE
772 machfile
773 opsysfile
774 ns_appdir
775 ns_appbindir
776 ns_appresdir
777 ns_appsrc
778 GNUSTEP_MAKEFILES
779 GNUSTEP_SYSTEM_HEADERS
780 GNUSTEP_SYSTEM_LIBRARIES
781 GNU_OBJC_CFLAGS
782 LIB_SRC_EXTRA_INSTALLABLES
595 OTHER_FILES 783 OTHER_FILES
596 LIB_SRC_EXTRA_INSTALLABLES 784 LTLIBOBJS'
597 GNU_OBJC_CFLAGS
598 GNUSTEP_SYSTEM_LIBRARIES
599 GNUSTEP_SYSTEM_HEADERS
600 GNUSTEP_MAKEFILES
601 ns_appsrc
602 ns_appresdir
603 ns_appbindir
604 ns_appdir
605 opsysfile
606 machfile
607 X_TOOLKIT_TYPE
608 C_SWITCH_X_SITE
609 LD_SWITCH_X_SITE_AUX
610 LD_SWITCH_X_SITE
611 c_switch_machine
612 c_switch_system
613 gameuser
614 gamedir
615 bitmapdir
616 archlibdir
617 etcdir
618 x_default_search_path
619 lisppath
620 locallisppath
621 lispdir
622 srcdir
623 canonical
624 configuration
625 version
626 GETOPTOBJS
627 GETOPT_H
628 GETLOADAVG_LIBS
629 KMEM_GROUP
630 NEED_SETGID
631 LIBOBJS
632 liblockfile
633 ALLOCA
634 FREETYPE_LIBS
635 FREETYPE_CFLAGS
636 M17N_FLT_LIBS
637 M17N_FLT_CFLAGS
638 LIBOTF_LIBS
639 LIBOTF_CFLAGS
640 XFT_LIBS
641 XFT_CFLAGS
642 FONTCONFIG_LIBS
643 FONTCONFIG_CFLAGS
644 GCONF_LIBS
645 GCONF_CFLAGS
646 DBUS_LIBS
647 DBUS_CFLAGS
648 GTK_LIBS
649 GTK_CFLAGS
650 RSVG_LIBS
651 RSVG_CFLAGS
652 HAVE_XSERVER
653 XMKMF
654 SET_MAKE
655 CFLAGS_SOUND
656 ALSA_LIBS
657 ALSA_CFLAGS
658 PKG_CONFIG
659 LIBSOUND
660 MAKEINFO
661 GZIP_PROG
662 INSTALL_INFO
663 RANLIB
664 INSTALL_DATA
665 INSTALL_SCRIPT
666 INSTALL_PROGRAM
667 LN_S
668 EGREP
669 GREP
670 CPP
671 OBJEXT
672 EXEEXT
673 ac_ct_CC
674 CPPFLAGS
675 LDFLAGS
676 CFLAGS
677 CC
678 host_os
679 host_vendor
680 host_cpu
681 host
682 build_os
683 build_vendor
684 build_cpu
685 build
686 MAINT
687 target_alias
688 host_alias
689 build_alias
690 LIBS
691 ECHO_T
692 ECHO_N
693 ECHO_C
694 DEFS
695 mandir
696 localedir
697 libdir
698 psdir
699 pdfdir
700 dvidir
701 htmldir
702 infodir
703 docdir
704 oldincludedir
705 includedir
706 localstatedir
707 sharedstatedir
708 sysconfdir
709 datadir
710 datarootdir
711 libexecdir
712 sbindir
713 bindir
714 program_transform_name
715 prefix
716 exec_prefix
717 PACKAGE_URL
718 PACKAGE_BUGREPORT
719 PACKAGE_STRING
720 PACKAGE_VERSION
721 PACKAGE_TARNAME
722 PACKAGE_NAME
723 PATH_SEPARATOR
724 SHELL'
725 ac_subst_files='' 785 ac_subst_files=''
726 ac_user_opts=' 786 ac_user_opts='
727 enable_option_checking 787 enable_option_checking
728 with_pop 788 with_pop
729 with_kerberos 789 with_kerberos
730 with_kerberos5 790 with_kerberos5
731 with_hesiod 791 with_hesiod
792 with_mmdf
793 with_mail_unlink
794 with_mailhost
732 with_sound 795 with_sound
733 with_sync_input 796 with_sync_input
734 with_x_toolkit 797 with_x_toolkit
735 with_xpm 798 with_xpm
736 with_jpeg 799 with_jpeg
879 942
880 -disable-* | --disable-*) 943 -disable-* | --disable-*)
881 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882 # Reject names that are not valid shell variable names. 945 # Reject names that are not valid shell variable names.
883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884 as_fn_error "invalid feature name: $ac_useropt" 947 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
948 { (exit 1); exit 1; }; }
885 ac_useropt_orig=$ac_useropt 949 ac_useropt_orig=$ac_useropt
886 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in 951 case $ac_user_opts in
888 *" 952 *"
889 "enable_$ac_useropt" 953 "enable_$ac_useropt"
905 969
906 -enable-* | --enable-*) 970 -enable-* | --enable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 971 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
908 # Reject names that are not valid shell variable names. 972 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error "invalid feature name: $ac_useropt" 974 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
975 { (exit 1); exit 1; }; }
911 ac_useropt_orig=$ac_useropt 976 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in 978 case $ac_user_opts in
914 *" 979 *"
915 "enable_$ac_useropt" 980 "enable_$ac_useropt"
1109 1174
1110 -with-* | --with-*) 1175 -with-* | --with-*)
1111 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1176 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112 # Reject names that are not valid shell variable names. 1177 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 as_fn_error "invalid package name: $ac_useropt" 1179 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1180 { (exit 1); exit 1; }; }
1115 ac_useropt_orig=$ac_useropt 1181 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in 1183 case $ac_user_opts in
1118 *" 1184 *"
1119 "with_$ac_useropt" 1185 "with_$ac_useropt"
1125 1191
1126 -without-* | --without-*) 1192 -without-* | --without-*)
1127 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1128 # Reject names that are not valid shell variable names. 1194 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error "invalid package name: $ac_useropt" 1196 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1197 { (exit 1); exit 1; }; }
1131 ac_useropt_orig=$ac_useropt 1198 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in 1200 case $ac_user_opts in
1134 *" 1201 *"
1135 "with_$ac_useropt" 1202 "with_$ac_useropt"
1155 ac_prev=x_libraries ;; 1222 ac_prev=x_libraries ;;
1156 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1223 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1157 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1224 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1158 x_libraries=$ac_optarg ;; 1225 x_libraries=$ac_optarg ;;
1159 1226
1160 -*) as_fn_error "unrecognized option: \`$ac_option' 1227 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1161 Try \`$0 --help' for more information." 1228 Try \`$0 --help' for more information." >&2
1229 { (exit 1); exit 1; }; }
1162 ;; 1230 ;;
1163 1231
1164 *=*) 1232 *=*)
1165 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1233 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1166 # Reject names that are not valid shell variable names. 1234 # Reject names that are not valid shell variable names.
1167 case $ac_envvar in #( 1235 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1168 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1236 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1169 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1237 { (exit 1); exit 1; }; }
1170 esac
1171 eval $ac_envvar=\$ac_optarg 1238 eval $ac_envvar=\$ac_optarg
1172 export $ac_envvar ;; 1239 export $ac_envvar ;;
1173 1240
1174 *) 1241 *)
1175 # FIXME: should be removed in autoconf 3.0. 1242 # FIXME: should be removed in autoconf 3.0.
1182 esac 1249 esac
1183 done 1250 done
1184 1251
1185 if test -n "$ac_prev"; then 1252 if test -n "$ac_prev"; then
1186 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1253 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1187 as_fn_error "missing argument to $ac_option" 1254 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1255 { (exit 1); exit 1; }; }
1188 fi 1256 fi
1189 1257
1190 if test -n "$ac_unrecognized_opts"; then 1258 if test -n "$ac_unrecognized_opts"; then
1191 case $enable_option_checking in 1259 case $enable_option_checking in
1192 no) ;; 1260 no) ;;
1193 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1261 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1194 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1262 { (exit 1); exit 1; }; } ;;
1263 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1195 esac 1264 esac
1196 fi 1265 fi
1197 1266
1198 # Check all directory arguments for consistency. 1267 # Check all directory arguments for consistency.
1199 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1268 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211 # Be sure to have absolute directory names. 1280 # Be sure to have absolute directory names.
1212 case $ac_val in 1281 case $ac_val in
1213 [\\/$]* | ?:[\\/]* ) continue;; 1282 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215 esac 1284 esac
1216 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1285 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1286 { (exit 1); exit 1; }; }
1217 done 1287 done
1218 1288
1219 # There might be people who depend on the old broken behavior: `$host' 1289 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc. 1290 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day. 1291 # FIXME: To remove some day.
1241 1311
1242 1312
1243 ac_pwd=`pwd` && test -n "$ac_pwd" && 1313 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` && 1314 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246 as_fn_error "working directory cannot be determined" 1316 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1317 { (exit 1); exit 1; }; }
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1318 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248 as_fn_error "pwd does not report name of working directory" 1319 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1320 { (exit 1); exit 1; }; }
1249 1321
1250 1322
1251 # Find the source files, if location was not specified. 1323 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then 1324 if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes 1325 ac_srcdir_defaulted=yes
1282 else 1354 else
1283 ac_srcdir_defaulted=no 1355 ac_srcdir_defaulted=no
1284 fi 1356 fi
1285 if test ! -r "$srcdir/$ac_unique_file"; then 1357 if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1358 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1359 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1360 { (exit 1); exit 1; }; }
1288 fi 1361 fi
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1362 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 ac_abs_confdir=`( 1363 ac_abs_confdir=`(
1291 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1364 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1365 { (exit 1); exit 1; }; }
1292 pwd)` 1366 pwd)`
1293 # When building in place, set srcdir=. 1367 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then 1368 if test "$ac_abs_confdir" = "$ac_pwd"; then
1295 srcdir=. 1369 srcdir=.
1296 fi 1370 fi
1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1423 --without-pop don't support POP mail retrieval with movemail 1497 --without-pop don't support POP mail retrieval with movemail
1424 --with-kerberos support Kerberos-authenticated POP 1498 --with-kerberos support Kerberos-authenticated POP
1425 --with-kerberos5 support Kerberos version 5 authenticated POP 1499 --with-kerberos5 support Kerberos version 5 authenticated POP
1426 --with-hesiod support Hesiod to get the POP server host 1500 --with-hesiod support Hesiod to get the POP server host
1501 --with-mmdf support MMDF mailboxes
1502 --with-mail-unlink unlink, rather than empty, mail spool after reading
1503 --with-mailhost=HOSTNAME
1504 string giving default POP mail host
1427 --without-sound don't compile with sound support 1505 --without-sound don't compile with sound support
1428 --without-sync-input process async input synchronously 1506 --without-sync-input process async input synchronously
1429 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena, 1507 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, lucid or
1430 motif, gtk, no) 1508 athena, motif, no)
1431 --without-xpm don't compile with XPM image support 1509 --without-xpm don't compile with XPM image support
1432 --without-jpeg don't compile with JPEG image support 1510 --without-jpeg don't compile with JPEG image support
1433 --without-tiff don't compile with TIFF image support 1511 --without-tiff don't compile with TIFF image support
1434 --without-gif don't compile with GIF image support 1512 --without-gif don't compile with GIF image support
1435 --without-png don't compile with PNG image support 1513 --without-png don't compile with PNG image support
1467 XMKMF Path to xmkmf, Makefile generator for X Window System 1545 XMKMF Path to xmkmf, Makefile generator for X Window System
1468 1546
1469 Use these variables to override the choices made by `configure' or to help 1547 Use these variables to override the choices made by `configure' or to help
1470 it to find libraries and programs with nonstandard names/locations. 1548 it to find libraries and programs with nonstandard names/locations.
1471 1549
1472 Report bugs to the package provider.
1473 _ACEOF 1550 _ACEOF
1474 ac_status=$? 1551 ac_status=$?
1475 fi 1552 fi
1476 1553
1477 if test "$ac_init_help" = "recursive"; then 1554 if test "$ac_init_help" = "recursive"; then
1531 1608
1532 test -n "$ac_init_help" && exit $ac_status 1609 test -n "$ac_init_help" && exit $ac_status
1533 if $ac_init_version; then 1610 if $ac_init_version; then
1534 cat <<\_ACEOF 1611 cat <<\_ACEOF
1535 emacs configure 24.0.50 1612 emacs configure 24.0.50
1536 generated by GNU Autoconf 2.64 1613 generated by GNU Autoconf 2.62
1537 1614
1538 Copyright (C) 2009 Free Software Foundation, Inc. 1615 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1616 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1539 This configure script is free software; the Free Software Foundation 1617 This configure script is free software; the Free Software Foundation
1540 gives unlimited permission to copy, distribute and modify it. 1618 gives unlimited permission to copy, distribute and modify it.
1541 _ACEOF 1619 _ACEOF
1542 exit 1620 exit
1543 fi 1621 fi
1544
1545 ## ------------------------ ##
1546 ## Autoconf initialization. ##
1547 ## ------------------------ ##
1548
1549 # ac_fn_c_try_compile LINENO
1550 # --------------------------
1551 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1552 ac_fn_c_try_compile ()
1553 {
1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555 rm -f conftest.$ac_objext
1556 if { { ac_try="$ac_compile"
1557 case "(($ac_try" in
1558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559 *) ac_try_echo=$ac_try;;
1560 esac
1561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562 $as_echo "$ac_try_echo"; } >&5
1563 (eval "$ac_compile") 2>conftest.err
1564 ac_status=$?
1565 if test -s conftest.err; then
1566 grep -v '^ *+' conftest.err >conftest.er1
1567 cat conftest.er1 >&5
1568 mv -f conftest.er1 conftest.err
1569 fi
1570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571 test $ac_status = 0; } && {
1572 test -z "$ac_c_werror_flag" ||
1573 test ! -s conftest.err
1574 } && test -s conftest.$ac_objext; then :
1575 ac_retval=0
1576 else
1577 $as_echo "$as_me: failed program was:" >&5
1578 sed 's/^/| /' conftest.$ac_ext >&5
1579
1580 ac_retval=1
1581 fi
1582 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1583 return $ac_retval
1584
1585 } # ac_fn_c_try_compile
1586
1587 # ac_fn_c_try_link LINENO
1588 # -----------------------
1589 # Try to link conftest.$ac_ext, and return whether this succeeded.
1590 ac_fn_c_try_link ()
1591 {
1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593 rm -f conftest.$ac_objext conftest$ac_exeext
1594 if { { ac_try="$ac_link"
1595 case "(($ac_try" in
1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597 *) ac_try_echo=$ac_try;;
1598 esac
1599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600 $as_echo "$ac_try_echo"; } >&5
1601 (eval "$ac_link") 2>conftest.err
1602 ac_status=$?
1603 if test -s conftest.err; then
1604 grep -v '^ *+' conftest.err >conftest.er1
1605 cat conftest.er1 >&5
1606 mv -f conftest.er1 conftest.err
1607 fi
1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609 test $ac_status = 0; } && {
1610 test -z "$ac_c_werror_flag" ||
1611 test ! -s conftest.err
1612 } && test -s conftest$ac_exeext && {
1613 test "$cross_compiling" = yes ||
1614 $as_test_x conftest$ac_exeext
1615 }; then :
1616 ac_retval=0
1617 else
1618 $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1620
1621 ac_retval=1
1622 fi
1623 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1624 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1625 # interfere with the next link command; also delete a directory that is
1626 # left behind by Apple's compiler. We do this before executing the actions.
1627 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1628 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1629 return $ac_retval
1630
1631 } # ac_fn_c_try_link
1632
1633 # ac_fn_c_try_cpp LINENO
1634 # ----------------------
1635 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1636 ac_fn_c_try_cpp ()
1637 {
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 if { { ac_try="$ac_cpp conftest.$ac_ext"
1640 case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643 esac
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1647 ac_status=$?
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1652 fi
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } >/dev/null && {
1655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1656 test ! -s conftest.err
1657 }; then :
1658 ac_retval=0
1659 else
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1662
1663 ac_retval=1
1664 fi
1665 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1666 return $ac_retval
1667
1668 } # ac_fn_c_try_cpp
1669
1670 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1671 # -------------------------------------------------------
1672 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1673 # the include files in INCLUDES and setting the cache variable VAR
1674 # accordingly.
1675 ac_fn_c_check_header_mongrel ()
1676 {
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 $as_echo_n "checking for $2... " >&6; }
1681 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1682 $as_echo_n "(cached) " >&6
1683 fi
1684 eval ac_res=\$$3
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1686 $as_echo "$ac_res" >&6; }
1687 else
1688 # Is the header compilable?
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1690 $as_echo_n "checking $2 usability... " >&6; }
1691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1692 /* end confdefs.h. */
1693 $4
1694 #include <$2>
1695 _ACEOF
1696 if ac_fn_c_try_compile "$LINENO"; then :
1697 ac_header_compiler=yes
1698 else
1699 ac_header_compiler=no
1700 fi
1701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1703 $as_echo "$ac_header_compiler" >&6; }
1704
1705 # Is the header present?
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1707 $as_echo_n "checking $2 presence... " >&6; }
1708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1709 /* end confdefs.h. */
1710 #include <$2>
1711 _ACEOF
1712 if ac_fn_c_try_cpp "$LINENO"; then :
1713 ac_header_preproc=yes
1714 else
1715 ac_header_preproc=no
1716 fi
1717 rm -f conftest.err conftest.$ac_ext
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1719 $as_echo "$ac_header_preproc" >&6; }
1720
1721 # So? What about this header?
1722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1723 yes:no: )
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1725 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1727 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1728 ;;
1729 no:yes:* )
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1731 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1733 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1735 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1737 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1739 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1740 ;;
1741 esac
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743 $as_echo_n "checking for $2... " >&6; }
1744 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1745 $as_echo_n "(cached) " >&6
1746 else
1747 eval "$3=\$ac_header_compiler"
1748 fi
1749 eval ac_res=\$$3
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751 $as_echo "$ac_res" >&6; }
1752 fi
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1754
1755 } # ac_fn_c_check_header_mongrel
1756
1757 # ac_fn_c_try_run LINENO
1758 # ----------------------
1759 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1760 # that executables *can* be run.
1761 ac_fn_c_try_run ()
1762 {
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 if { { ac_try="$ac_link"
1765 case "(($ac_try" in
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1768 esac
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_link") 2>&5
1772 ac_status=$?
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1775 { { case "(($ac_try" in
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_try") 2>&5
1782 ac_status=$?
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; }; }; then :
1785 ac_retval=0
1786 else
1787 $as_echo "$as_me: program exited with status $ac_status" >&5
1788 $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1790
1791 ac_retval=$ac_status
1792 fi
1793 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1794 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1795 return $ac_retval
1796
1797 } # ac_fn_c_try_run
1798
1799 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1800 # -------------------------------------------------------
1801 # Tests whether HEADER exists and can be compiled using the include files in
1802 # INCLUDES, setting the cache variable VAR accordingly.
1803 ac_fn_c_check_header_compile ()
1804 {
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807 $as_echo_n "checking for $2... " >&6; }
1808 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1809 $as_echo_n "(cached) " >&6
1810 else
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1813 $4
1814 #include <$2>
1815 _ACEOF
1816 if ac_fn_c_try_compile "$LINENO"; then :
1817 eval "$3=yes"
1818 else
1819 eval "$3=no"
1820 fi
1821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1822 fi
1823 eval ac_res=\$$3
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 $as_echo "$ac_res" >&6; }
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827
1828 } # ac_fn_c_check_header_compile
1829
1830 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1831 # ----------------------------------------------
1832 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1833 ac_fn_c_check_header_preproc ()
1834 {
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1839 $as_echo_n "(cached) " >&6
1840 else
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1843 #include <$2>
1844 _ACEOF
1845 if ac_fn_c_try_cpp "$LINENO"; then :
1846 eval "$3=yes"
1847 else
1848 eval "$3=no"
1849 fi
1850 rm -f conftest.err conftest.$ac_ext
1851 fi
1852 eval ac_res=\$$3
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1855 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1856
1857 } # ac_fn_c_check_header_preproc
1858
1859 # ac_fn_c_check_decl LINENO SYMBOL VAR
1860 # ------------------------------------
1861 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1862 ac_fn_c_check_decl ()
1863 {
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1866 $as_echo_n "checking whether $2 is declared... " >&6; }
1867 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1868 $as_echo_n "(cached) " >&6
1869 else
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1872 $4
1873 int
1874 main ()
1875 {
1876 #ifndef $2
1877 (void) $2;
1878 #endif
1879
1880 ;
1881 return 0;
1882 }
1883 _ACEOF
1884 if ac_fn_c_try_compile "$LINENO"; then :
1885 eval "$3=yes"
1886 else
1887 eval "$3=no"
1888 fi
1889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1890 fi
1891 eval ac_res=\$$3
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893 $as_echo "$ac_res" >&6; }
1894 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1895
1896 } # ac_fn_c_check_decl
1897
1898 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1899 # ----------------------------------------------------
1900 # Tries to find if the field MEMBER exists in type AGGR, after including
1901 # INCLUDES, setting cache variable VAR accordingly.
1902 ac_fn_c_check_member ()
1903 {
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1906 $as_echo_n "checking for $2.$3... " >&6; }
1907 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1908 $as_echo_n "(cached) " >&6
1909 else
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1912 $5
1913 int
1914 main ()
1915 {
1916 static $2 ac_aggr;
1917 if (ac_aggr.$3)
1918 return 0;
1919 ;
1920 return 0;
1921 }
1922 _ACEOF
1923 if ac_fn_c_try_compile "$LINENO"; then :
1924 eval "$4=yes"
1925 else
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1928 $5
1929 int
1930 main ()
1931 {
1932 static $2 ac_aggr;
1933 if (sizeof ac_aggr.$3)
1934 return 0;
1935 ;
1936 return 0;
1937 }
1938 _ACEOF
1939 if ac_fn_c_try_compile "$LINENO"; then :
1940 eval "$4=yes"
1941 else
1942 eval "$4=no"
1943 fi
1944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945 fi
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947 fi
1948 eval ac_res=\$$4
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1951 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1952
1953 } # ac_fn_c_check_member
1954
1955 # ac_fn_c_check_func LINENO FUNC VAR
1956 # ----------------------------------
1957 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1958 ac_fn_c_check_func ()
1959 {
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 $as_echo_n "checking for $2... " >&6; }
1963 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1964 $as_echo_n "(cached) " >&6
1965 else
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1968 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1970 #define $2 innocuous_$2
1971
1972 /* System header to define __stub macros and hopefully few prototypes,
1973 which can conflict with char $2 (); below.
1974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1975 <limits.h> exists even on freestanding compilers. */
1976
1977 #ifdef __STDC__
1978 # include <limits.h>
1979 #else
1980 # include <assert.h>
1981 #endif
1982
1983 #undef $2
1984
1985 /* Override any GCC internal prototype to avoid an error.
1986 Use char because int might match the return type of a GCC
1987 builtin and then its argument prototype would still apply. */
1988 #ifdef __cplusplus
1989 extern "C"
1990 #endif
1991 char $2 ();
1992 /* The GNU C library defines this for functions which it implements
1993 to always fail with ENOSYS. Some functions are actually named
1994 something starting with __ and the normal name is an alias. */
1995 #if defined __stub_$2 || defined __stub___$2
1996 choke me
1997 #endif
1998
1999 int
2000 main ()
2001 {
2002 return $2 ();
2003 ;
2004 return 0;
2005 }
2006 _ACEOF
2007 if ac_fn_c_try_link "$LINENO"; then :
2008 eval "$3=yes"
2009 else
2010 eval "$3=no"
2011 fi
2012 rm -f core conftest.err conftest.$ac_objext \
2013 conftest$ac_exeext conftest.$ac_ext
2014 fi
2015 eval ac_res=\$$3
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017 $as_echo "$ac_res" >&6; }
2018 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2019
2020 } # ac_fn_c_check_func
2021
2022 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2023 # -------------------------------------------
2024 # Tests whether TYPE exists after having included INCLUDES, setting cache
2025 # variable VAR accordingly.
2026 ac_fn_c_check_type ()
2027 {
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2030 $as_echo_n "checking for $2... " >&6; }
2031 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2032 $as_echo_n "(cached) " >&6
2033 else
2034 eval "$3=no"
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h. */
2037 $4
2038 int
2039 main ()
2040 {
2041 if (sizeof ($2))
2042 return 0;
2043 ;
2044 return 0;
2045 }
2046 _ACEOF
2047 if ac_fn_c_try_compile "$LINENO"; then :
2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h. */
2050 $4
2051 int
2052 main ()
2053 {
2054 if (sizeof (($2)))
2055 return 0;
2056 ;
2057 return 0;
2058 }
2059 _ACEOF
2060 if ac_fn_c_try_compile "$LINENO"; then :
2061
2062 else
2063 eval "$3=yes"
2064 fi
2065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066 fi
2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068 fi
2069 eval ac_res=\$$3
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 $as_echo "$ac_res" >&6; }
2072 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2073
2074 } # ac_fn_c_check_type
2075 cat >config.log <<_ACEOF 1622 cat >config.log <<_ACEOF
2076 This file contains any messages produced by compilers while 1623 This file contains any messages produced by compilers while
2077 running configure, to aid debugging if configure makes a mistake. 1624 running configure, to aid debugging if configure makes a mistake.
2078 1625
2079 It was created by emacs $as_me 24.0.50, which was 1626 It was created by emacs $as_me 24.0.50, which was
2080 generated by GNU Autoconf 2.64. Invocation command line was 1627 generated by GNU Autoconf 2.62. Invocation command line was
2081 1628
2082 $ $0 $@ 1629 $ $0 $@
2083 1630
2084 _ACEOF 1631 _ACEOF
2085 exec 5>>config.log 1632 exec 5>>config.log
2111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112 for as_dir in $PATH 1659 for as_dir in $PATH
2113 do 1660 do
2114 IFS=$as_save_IFS 1661 IFS=$as_save_IFS
2115 test -z "$as_dir" && as_dir=. 1662 test -z "$as_dir" && as_dir=.
2116 $as_echo "PATH: $as_dir" 1663 $as_echo "PATH: $as_dir"
2117 done 1664 done
2118 IFS=$as_save_IFS 1665 IFS=$as_save_IFS
2119 1666
2120 } >&5 1667 } >&5
2121 1668
2122 cat >&5 <<_ACEOF 1669 cat >&5 <<_ACEOF
2149 continue ;; 1696 continue ;;
2150 *\'*) 1697 *\'*)
2151 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1698 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2152 esac 1699 esac
2153 case $ac_pass in 1700 case $ac_pass in
2154 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1701 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2155 2) 1702 2)
2156 as_fn_append ac_configure_args1 " '$ac_arg'" 1703 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2157 if test $ac_must_keep_next = true; then 1704 if test $ac_must_keep_next = true; then
2158 ac_must_keep_next=false # Got value, back to normal. 1705 ac_must_keep_next=false # Got value, back to normal.
2159 else 1706 else
2160 case $ac_arg in 1707 case $ac_arg in
2161 *=* | --config-cache | -C | -disable-* | --disable-* \ 1708 *=* | --config-cache | -C | -disable-* | --disable-* \
2167 esac 1714 esac
2168 ;; 1715 ;;
2169 -* ) ac_must_keep_next=true ;; 1716 -* ) ac_must_keep_next=true ;;
2170 esac 1717 esac
2171 fi 1718 fi
2172 as_fn_append ac_configure_args " '$ac_arg'" 1719 ac_configure_args="$ac_configure_args '$ac_arg'"
2173 ;; 1720 ;;
2174 esac 1721 esac
2175 done 1722 done
2176 done 1723 done
2177 { ac_configure_args0=; unset ac_configure_args0;} 1724 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2178 { ac_configure_args1=; unset ac_configure_args1;} 1725 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2179 1726
2180 # When interrupted or exit'd, cleanup temporary files, and complete 1727 # When interrupted or exit'd, cleanup temporary files, and complete
2181 # config.log. We remove comments because anyway the quotes in there 1728 # config.log. We remove comments because anyway the quotes in there
2182 # would cause problems or look ugly. 1729 # would cause problems or look ugly.
2183 # WARNING: Use '\'' to represent an apostrophe within the trap. 1730 # WARNING: Use '\'' to represent an apostrophe within the trap.
2198 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1745 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2199 eval ac_val=\$$ac_var 1746 eval ac_val=\$$ac_var
2200 case $ac_val in #( 1747 case $ac_val in #(
2201 *${as_nl}*) 1748 *${as_nl}*)
2202 case $ac_var in #( 1749 case $ac_var in #(
2203 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1750 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2204 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1751 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2205 esac 1752 esac
2206 case $ac_var in #( 1753 case $ac_var in #(
2207 _ | IFS | as_nl) ;; #( 1754 _ | IFS | as_nl) ;; #(
2208 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1755 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2209 *) { eval $ac_var=; unset $ac_var;} ;; 1756 *) $as_unset $ac_var ;;
2210 esac ;; 1757 esac ;;
2211 esac 1758 esac
2212 done 1759 done
2213 (set) 2>&1 | 1760 (set) 2>&1 |
2214 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1761 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2276 rm -f core *.core core.conftest.* && 1823 rm -f core *.core core.conftest.* &&
2277 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1824 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2278 exit $exit_status 1825 exit $exit_status
2279 ' 0 1826 ' 0
2280 for ac_signal in 1 2 13 15; do 1827 for ac_signal in 1 2 13 15; do
2281 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1828 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2282 done 1829 done
2283 ac_signal=0 1830 ac_signal=0
2284 1831
2285 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1832 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2286 rm -f -r conftest* confdefs.h 1833 rm -f -r conftest* confdefs.h
2287 1834
2288 $as_echo "/* confdefs.h */" > confdefs.h
2289
2290 # Predefined preprocessor variables. 1835 # Predefined preprocessor variables.
2291 1836
2292 cat >>confdefs.h <<_ACEOF 1837 cat >>confdefs.h <<_ACEOF
2293 #define PACKAGE_NAME "$PACKAGE_NAME" 1838 #define PACKAGE_NAME "$PACKAGE_NAME"
2294 _ACEOF 1839 _ACEOF
2295 1840
1841
2296 cat >>confdefs.h <<_ACEOF 1842 cat >>confdefs.h <<_ACEOF
2297 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1843 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2298 _ACEOF 1844 _ACEOF
2299 1845
1846
2300 cat >>confdefs.h <<_ACEOF 1847 cat >>confdefs.h <<_ACEOF
2301 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1848 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2302 _ACEOF 1849 _ACEOF
2303 1850
1851
2304 cat >>confdefs.h <<_ACEOF 1852 cat >>confdefs.h <<_ACEOF
2305 #define PACKAGE_STRING "$PACKAGE_STRING" 1853 #define PACKAGE_STRING "$PACKAGE_STRING"
2306 _ACEOF 1854 _ACEOF
2307 1855
1856
2308 cat >>confdefs.h <<_ACEOF 1857 cat >>confdefs.h <<_ACEOF
2309 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1858 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2310 _ACEOF
2311
2312 cat >>confdefs.h <<_ACEOF
2313 #define PACKAGE_URL "$PACKAGE_URL"
2314 _ACEOF 1859 _ACEOF
2315 1860
2316 1861
2317 # Let the site file select an alternate cache file if it wants to. 1862 # Let the site file select an alternate cache file if it wants to.
2318 # Prefer an explicitly selected file to automatically selected ones. 1863 # Prefer an explicitly selected file to automatically selected ones.
2329 fi 1874 fi
2330 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1875 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2331 do 1876 do
2332 test "x$ac_site_file" = xNONE && continue 1877 test "x$ac_site_file" = xNONE && continue
2333 if test -r "$ac_site_file"; then 1878 if test -r "$ac_site_file"; then
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1879 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2335 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 1880 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2336 sed 's/^/| /' "$ac_site_file" >&5 1881 sed 's/^/| /' "$ac_site_file" >&5
2337 . "$ac_site_file" 1882 . "$ac_site_file"
2338 fi 1883 fi
2339 done 1884 done
2340 1885
2341 if test -r "$cache_file"; then 1886 if test -r "$cache_file"; then
2342 # Some versions of bash will fail to source /dev/null (special 1887 # Some versions of bash will fail to source /dev/null (special
2343 # files actually), so we avoid doing that. 1888 # files actually), so we avoid doing that.
2344 if test -f "$cache_file"; then 1889 if test -f "$cache_file"; then
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1890 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2346 $as_echo "$as_me: loading cache $cache_file" >&6;} 1891 $as_echo "$as_me: loading cache $cache_file" >&6;}
2347 case $cache_file in 1892 case $cache_file in
2348 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1893 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2349 *) . "./$cache_file";; 1894 *) . "./$cache_file";;
2350 esac 1895 esac
2351 fi 1896 fi
2352 else 1897 else
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 1898 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2354 $as_echo "$as_me: creating cache $cache_file" >&6;} 1899 $as_echo "$as_me: creating cache $cache_file" >&6;}
2355 >$cache_file 1900 >$cache_file
2356 fi 1901 fi
2357 1902
2358 as_fn_append ac_header_list " sys/time.h" 1903 ac_header_list="$ac_header_list sys/time.h"
2359 as_fn_append ac_header_list " unistd.h" 1904 ac_header_list="$ac_header_list unistd.h"
2360 as_fn_append ac_func_list " alarm" 1905 ac_func_list="$ac_func_list alarm"
2361 # Check that the precious variables saved in the cache have kept the same 1906 # Check that the precious variables saved in the cache have kept the same
2362 # value. 1907 # value.
2363 ac_cache_corrupted=false 1908 ac_cache_corrupted=false
2364 for ac_var in $ac_precious_vars; do 1909 for ac_var in $ac_precious_vars; do
2365 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1910 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2366 eval ac_new_set=\$ac_env_${ac_var}_set 1911 eval ac_new_set=\$ac_env_${ac_var}_set
2367 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1912 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2368 eval ac_new_val=\$ac_env_${ac_var}_value 1913 eval ac_new_val=\$ac_env_${ac_var}_value
2369 case $ac_old_set,$ac_new_set in 1914 case $ac_old_set,$ac_new_set in
2370 set,) 1915 set,)
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1916 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2372 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1917 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2373 ac_cache_corrupted=: ;; 1918 ac_cache_corrupted=: ;;
2374 ,set) 1919 ,set)
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 1920 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2376 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1921 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2377 ac_cache_corrupted=: ;; 1922 ac_cache_corrupted=: ;;
2378 ,);; 1923 ,);;
2379 *) 1924 *)
2380 if test "x$ac_old_val" != "x$ac_new_val"; then 1925 if test "x$ac_old_val" != "x$ac_new_val"; then
2381 # differences in whitespace do not lead to failure. 1926 # differences in whitespace do not lead to failure.
2382 ac_old_val_w=`echo x $ac_old_val` 1927 ac_old_val_w=`echo x $ac_old_val`
2383 ac_new_val_w=`echo x $ac_new_val` 1928 ac_new_val_w=`echo x $ac_new_val`
2384 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1929 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 1930 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2386 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1931 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2387 ac_cache_corrupted=: 1932 ac_cache_corrupted=:
2388 else 1933 else
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1934 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2390 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1935 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2391 eval $ac_var=\$ac_old_val 1936 eval $ac_var=\$ac_old_val
2392 fi 1937 fi
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 1938 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2394 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1939 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 1940 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2396 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1941 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2397 fi;; 1942 fi;;
2398 esac 1943 esac
2399 # Pass precious variables to config.status. 1944 # Pass precious variables to config.status.
2400 if test "$ac_new_set" = set; then 1945 if test "$ac_new_set" = set; then
2402 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1947 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2403 *) ac_arg=$ac_var=$ac_new_val ;; 1948 *) ac_arg=$ac_var=$ac_new_val ;;
2404 esac 1949 esac
2405 case " $ac_configure_args " in 1950 case " $ac_configure_args " in
2406 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1951 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2407 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 1952 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2408 esac 1953 esac
2409 fi 1954 fi
2410 done 1955 done
2411 if $ac_cache_corrupted; then 1956 if $ac_cache_corrupted; then
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1957 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2415 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1958 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2416 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 1959 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2417 fi 1960 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2418 ## -------------------- ## 1961 { (exit 1); exit 1; }; }
2419 ## Main body of script. ## 1962 fi
2420 ## -------------------- ## 1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
2421 1987
2422 ac_ext=c 1988 ac_ext=c
2423 ac_cpp='$CPP $CPPFLAGS' 1989 ac_cpp='$CPP $CPPFLAGS'
2424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2454 2020
2455 2021
2456 2022
2457 2023
2458 # Check whether --with-pop was given. 2024 # Check whether --with-pop was given.
2459 if test "${with_pop+set}" = set; then : 2025 if test "${with_pop+set}" = set; then
2460 withval=$with_pop; 2026 withval=$with_pop;
2461 else 2027 else
2462 with_pop=yes 2028 with_pop=yes
2463 fi 2029 fi
2464 2030
2465 if test "$with_pop" = yes; then 2031 if test "$with_pop" = yes; then
2466 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h 2032 cat >>confdefs.h <<\_ACEOF
2467 2033 #define MAIL_USE_POP 1
2468 fi 2034 _ACEOF
2035
2036 fi
2037
2469 2038
2470 2039
2471 # Check whether --with-kerberos was given. 2040 # Check whether --with-kerberos was given.
2472 if test "${with_kerberos+set}" = set; then : 2041 if test "${with_kerberos+set}" = set; then
2473 withval=$with_kerberos; 2042 withval=$with_kerberos;
2474 else 2043 else
2475 with_kerberos=no 2044 with_kerberos=no
2476 fi 2045 fi
2477 2046
2478 if test "$with_kerberos" != no; then 2047 if test "$with_kerberos" != no; then
2479 $as_echo "#define KERBEROS 1" >>confdefs.h 2048 cat >>confdefs.h <<\_ACEOF
2480 2049 #define KERBEROS 1
2481 fi 2050 _ACEOF
2051
2052 fi
2053
2482 2054
2483 2055
2484 # Check whether --with-kerberos5 was given. 2056 # Check whether --with-kerberos5 was given.
2485 if test "${with_kerberos5+set}" = set; then : 2057 if test "${with_kerberos5+set}" = set; then
2486 withval=$with_kerberos5; 2058 withval=$with_kerberos5;
2487 else 2059 else
2488 with_kerberos5=no 2060 with_kerberos5=no
2489 fi 2061 fi
2490 2062
2491 if test "${with_kerberos5}" != no; then 2063 if test "${with_kerberos5}" != no; then
2492 if test "${with_kerberos}" = no; then 2064 if test "${with_kerberos}" = no; then
2493 with_kerberos=yes 2065 with_kerberos=yes
2494 $as_echo "#define KERBEROS 1" >>confdefs.h 2066 cat >>confdefs.h <<\_ACEOF
2067 #define KERBEROS 1
2068 _ACEOF
2495 2069
2496 fi 2070 fi
2497 2071
2498 $as_echo "#define KERBEROS5 1" >>confdefs.h 2072 cat >>confdefs.h <<\_ACEOF
2073 #define KERBEROS5 1
2074 _ACEOF
2499 2075
2500 fi 2076 fi
2501 2077
2502 2078
2503 # Check whether --with-hesiod was given. 2079 # Check whether --with-hesiod was given.
2504 if test "${with_hesiod+set}" = set; then : 2080 if test "${with_hesiod+set}" = set; then
2505 withval=$with_hesiod; 2081 withval=$with_hesiod;
2506 else 2082 else
2507 with_hesiod=no 2083 with_hesiod=no
2508 fi 2084 fi
2509 2085
2510 if test "$with_hesiod" != no; then 2086 if test "$with_hesiod" != no; then
2511 2087
2512 $as_echo "#define HESIOD 1" >>confdefs.h 2088 cat >>confdefs.h <<\_ACEOF
2513 2089 #define HESIOD 1
2514 fi 2090 _ACEOF
2091
2092 fi
2093
2094
2095 # Check whether --with-mmdf was given.
2096 if test "${with_mmdf+set}" = set; then
2097 withval=$with_mmdf;
2098 else
2099 with_mmdf=no
2100 fi
2101
2102 if test "$with_mmdf" != no; then
2103
2104 cat >>confdefs.h <<\_ACEOF
2105 #define MAIL_USE_MMDF 1
2106 _ACEOF
2107
2108 fi
2109
2110
2111 # Check whether --with-mail-unlink was given.
2112 if test "${with_mail_unlink+set}" = set; then
2113 withval=$with_mail_unlink;
2114 else
2115 with_mail_unlink=no
2116 fi
2117
2118 if test "$with_mail_unlink" != no; then
2119
2120 cat >>confdefs.h <<\_ACEOF
2121 #define MAIL_UNLINK_SPOOL 1
2122 _ACEOF
2123
2124 fi
2125
2126
2127 # Check whether --with-mailhost was given.
2128 if test "${with_mailhost+set}" = set; then
2129 withval=$with_mailhost;
2130 cat >>confdefs.h <<_ACEOF
2131 #define MAILHOST "$withval"
2132 _ACEOF
2133
2134 fi
2135
2515 2136
2516 2137
2517 # Check whether --with-sound was given. 2138 # Check whether --with-sound was given.
2518 if test "${with_sound+set}" = set; then : 2139 if test "${with_sound+set}" = set; then
2519 withval=$with_sound; 2140 withval=$with_sound;
2520 else 2141 else
2521 with_sound=yes 2142 with_sound=yes
2522 fi 2143 fi
2523 2144
2524 2145
2525 2146
2526 # Check whether --with-sync-input was given. 2147 # Check whether --with-sync-input was given.
2527 if test "${with_sync_input+set}" = set; then : 2148 if test "${with_sync_input+set}" = set; then
2528 withval=$with_sync_input; 2149 withval=$with_sync_input;
2529 else 2150 else
2530 with_sync_input=yes 2151 with_sync_input=yes
2531 fi 2152 fi
2532 2153
2533 if test "$with_sync_input" = yes; then 2154 if test "$with_sync_input" = yes; then
2534 2155
2535 $as_echo "#define SYNC_INPUT 1" >>confdefs.h 2156 cat >>confdefs.h <<\_ACEOF
2157 #define SYNC_INPUT 1
2158 _ACEOF
2536 2159
2537 fi 2160 fi
2538 2161
2539 2162
2540 # Check whether --with-x-toolkit was given. 2163 # Check whether --with-x-toolkit was given.
2541 if test "${with_x_toolkit+set}" = set; then : 2164 if test "${with_x_toolkit+set}" = set; then
2542 withval=$with_x_toolkit; case "${withval}" in 2165 withval=$with_x_toolkit; case "${withval}" in
2543 y | ye | yes ) val=gtk ;; 2166 y | ye | yes ) val=gtk ;;
2544 n | no ) val=no ;; 2167 n | no ) val=no ;;
2545 l | lu | luc | luci | lucid ) val=lucid ;; 2168 l | lu | luc | luci | lucid ) val=lucid ;;
2546 a | at | ath | athe | athen | athena ) val=athena ;; 2169 a | at | ath | athe | athen | athena ) val=athena ;;
2547 m | mo | mot | moti | motif ) val=motif ;; 2170 m | mo | mot | moti | motif ) val=motif ;;
2548 g | gt | gtk ) val=gtk ;; 2171 g | gt | gtk ) val=gtk ;;
2549 * ) 2172 * )
2550 as_fn_error "\`--with-x-toolkit=$withval' is invalid; 2173 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2551 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. 2174 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2552 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5 2175 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2176 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2177 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2178 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2179 { (exit 1); exit 1; }; }
2553 ;; 2180 ;;
2554 esac 2181 esac
2555 with_x_toolkit=$val 2182 with_x_toolkit=$val
2556 2183
2557 fi 2184 fi
2558 2185
2559 2186
2560 2187
2561 # Check whether --with-xpm was given. 2188 # Check whether --with-xpm was given.
2562 if test "${with_xpm+set}" = set; then : 2189 if test "${with_xpm+set}" = set; then
2563 withval=$with_xpm; 2190 withval=$with_xpm;
2564 else 2191 else
2565 with_xpm=yes 2192 with_xpm=yes
2566 fi 2193 fi
2567 2194
2568 2195
2569 # Check whether --with-jpeg was given. 2196 # Check whether --with-jpeg was given.
2570 if test "${with_jpeg+set}" = set; then : 2197 if test "${with_jpeg+set}" = set; then
2571 withval=$with_jpeg; 2198 withval=$with_jpeg;
2572 else 2199 else
2573 with_jpeg=yes 2200 with_jpeg=yes
2574 fi 2201 fi
2575 2202
2576 2203
2577 # Check whether --with-tiff was given. 2204 # Check whether --with-tiff was given.
2578 if test "${with_tiff+set}" = set; then : 2205 if test "${with_tiff+set}" = set; then
2579 withval=$with_tiff; 2206 withval=$with_tiff;
2580 else 2207 else
2581 with_tiff=yes 2208 with_tiff=yes
2582 fi 2209 fi
2583 2210
2584 2211
2585 # Check whether --with-gif was given. 2212 # Check whether --with-gif was given.
2586 if test "${with_gif+set}" = set; then : 2213 if test "${with_gif+set}" = set; then
2587 withval=$with_gif; 2214 withval=$with_gif;
2588 else 2215 else
2589 with_gif=yes 2216 with_gif=yes
2590 fi 2217 fi
2591 2218
2592 2219
2593 # Check whether --with-png was given. 2220 # Check whether --with-png was given.
2594 if test "${with_png+set}" = set; then : 2221 if test "${with_png+set}" = set; then
2595 withval=$with_png; 2222 withval=$with_png;
2596 else 2223 else
2597 with_png=yes 2224 with_png=yes
2598 fi 2225 fi
2599 2226
2600 2227
2601 # Check whether --with-rsvg was given. 2228 # Check whether --with-rsvg was given.
2602 if test "${with_rsvg+set}" = set; then : 2229 if test "${with_rsvg+set}" = set; then
2603 withval=$with_rsvg; 2230 withval=$with_rsvg;
2604 else 2231 else
2605 with_rsvg=yes 2232 with_rsvg=yes
2606 fi 2233 fi
2607 2234
2608 2235
2609 2236
2610 # Check whether --with-xft was given. 2237 # Check whether --with-xft was given.
2611 if test "${with_xft+set}" = set; then : 2238 if test "${with_xft+set}" = set; then
2612 withval=$with_xft; 2239 withval=$with_xft;
2613 else 2240 else
2614 with_xft=yes 2241 with_xft=yes
2615 fi 2242 fi
2616 2243
2617 2244
2618 # Check whether --with-libotf was given. 2245 # Check whether --with-libotf was given.
2619 if test "${with_libotf+set}" = set; then : 2246 if test "${with_libotf+set}" = set; then
2620 withval=$with_libotf; 2247 withval=$with_libotf;
2621 else 2248 else
2622 with_libotf=yes 2249 with_libotf=yes
2623 fi 2250 fi
2624 2251
2625 2252
2626 # Check whether --with-m17n-flt was given. 2253 # Check whether --with-m17n-flt was given.
2627 if test "${with_m17n_flt+set}" = set; then : 2254 if test "${with_m17n_flt+set}" = set; then
2628 withval=$with_m17n_flt; 2255 withval=$with_m17n_flt;
2629 else 2256 else
2630 with_m17n_flt=yes 2257 with_m17n_flt=yes
2631 fi 2258 fi
2632 2259
2633 2260
2634 2261
2635 # Check whether --with-toolkit-scroll-bars was given. 2262 # Check whether --with-toolkit-scroll-bars was given.
2636 if test "${with_toolkit_scroll_bars+set}" = set; then : 2263 if test "${with_toolkit_scroll_bars+set}" = set; then
2637 withval=$with_toolkit_scroll_bars; 2264 withval=$with_toolkit_scroll_bars;
2638 else 2265 else
2639 with_toolkit_scroll_bars=yes 2266 with_toolkit_scroll_bars=yes
2640 fi 2267 fi
2641 2268
2642 2269
2643 # Check whether --with-xaw3d was given. 2270 # Check whether --with-xaw3d was given.
2644 if test "${with_xaw3d+set}" = set; then : 2271 if test "${with_xaw3d+set}" = set; then
2645 withval=$with_xaw3d; 2272 withval=$with_xaw3d;
2646 else 2273 else
2647 with_xaw3d=yes 2274 with_xaw3d=yes
2648 fi 2275 fi
2649 2276
2650 2277
2651 # Check whether --with-xim was given. 2278 # Check whether --with-xim was given.
2652 if test "${with_xim+set}" = set; then : 2279 if test "${with_xim+set}" = set; then
2653 withval=$with_xim; 2280 withval=$with_xim;
2654 else 2281 else
2655 with_xim=yes 2282 with_xim=yes
2656 fi 2283 fi
2657 2284
2658 2285
2659 # Check whether --with-ns was given. 2286 # Check whether --with-ns was given.
2660 if test "${with_ns+set}" = set; then : 2287 if test "${with_ns+set}" = set; then
2661 withval=$with_ns; 2288 withval=$with_ns;
2662 else 2289 else
2663 with_ns=no 2290 with_ns=no
2664 fi 2291 fi
2665 2292
2666 2293
2667 2294
2668 # Check whether --with-gpm was given. 2295 # Check whether --with-gpm was given.
2669 if test "${with_gpm+set}" = set; then : 2296 if test "${with_gpm+set}" = set; then
2670 withval=$with_gpm; 2297 withval=$with_gpm;
2671 else 2298 else
2672 with_gpm=yes 2299 with_gpm=yes
2673 fi 2300 fi
2674 2301
2675 2302
2676 # Check whether --with-dbus was given. 2303 # Check whether --with-dbus was given.
2677 if test "${with_dbus+set}" = set; then : 2304 if test "${with_dbus+set}" = set; then
2678 withval=$with_dbus; 2305 withval=$with_dbus;
2679 else 2306 else
2680 with_dbus=yes 2307 with_dbus=yes
2681 fi 2308 fi
2682 2309
2683 2310
2684 # Check whether --with-gconf was given. 2311 # Check whether --with-gconf was given.
2685 if test "${with_gconf+set}" = set; then : 2312 if test "${with_gconf+set}" = set; then
2686 withval=$with_gconf; 2313 withval=$with_gconf;
2687 else 2314 else
2688 with_gconf=yes 2315 with_gconf=yes
2689 fi 2316 fi
2690 2317
2691 2318
2692 ## For the times when you want to build Emacs but don't have 2319 ## For the times when you want to build Emacs but don't have
2693 ## a suitable makeinfo, and can live without the manuals. 2320 ## a suitable makeinfo, and can live without the manuals.
2694 2321
2695 # Check whether --with-makeinfo was given. 2322 # Check whether --with-makeinfo was given.
2696 if test "${with_makeinfo+set}" = set; then : 2323 if test "${with_makeinfo+set}" = set; then
2697 withval=$with_makeinfo; 2324 withval=$with_makeinfo;
2698 else 2325 else
2699 with_makeinfo=yes 2326 with_makeinfo=yes
2700 fi 2327 fi
2701 2328
2702 2329
2703 2330
2704 # Check whether --with-gtk was given. 2331 # Check whether --with-gtk was given.
2705 if test "${with_gtk+set}" = set; then : 2332 if test "${with_gtk+set}" = set; then
2706 withval=$with_gtk; as_fn_error "--with-gtk has been removed. Use --with-x-toolkit to 2333 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2707 specify a toolkit." "$LINENO" 5 2334 specify a toolkit." >&5
2335 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2336 specify a toolkit." >&2;}
2337 { (exit 1); exit 1; }; }
2708 fi 2338 fi
2709 2339
2710 2340
2711 2341
2712 # Check whether --with-gcc was given. 2342 # Check whether --with-gcc was given.
2713 if test "${with_gcc+set}" = set; then : 2343 if test "${with_gcc+set}" = set; then
2714 withval=$with_gcc; as_fn_error "--with-gcc has been removed. Set the \`CC' environment 2344 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2715 variable to specify a compiler." "$LINENO" 5 2345 variable to specify a compiler." >&5
2346 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2347 variable to specify a compiler." >&2;}
2348 { (exit 1); exit 1; }; }
2716 fi 2349 fi
2717 2350
2718 2351
2719 2352
2720 # Check whether --with-pkg-config-prog was given. 2353 # Check whether --with-pkg-config-prog was given.
2721 if test "${with_pkg_config_prog+set}" = set; then : 2354 if test "${with_pkg_config_prog+set}" = set; then
2722 withval=$with_pkg_config_prog; 2355 withval=$with_pkg_config_prog;
2723 fi 2356 fi
2724 2357
2725 if test "X${with_pkg_config_prog}" != X; then 2358 if test "X${with_pkg_config_prog}" != X; then
2726 if test "${with_pkg_config_prog}" != yes; then 2359 if test "${with_pkg_config_prog}" != yes; then
2728 fi 2361 fi
2729 fi 2362 fi
2730 2363
2731 2364
2732 # Check whether --with-gnustep-conf was given. 2365 # Check whether --with-gnustep-conf was given.
2733 if test "${with_gnustep_conf+set}" = set; then : 2366 if test "${with_gnustep_conf+set}" = set; then
2734 withval=$with_gnustep_conf; 2367 withval=$with_gnustep_conf;
2735 fi 2368 fi
2736 2369
2737 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \ 2370 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2738 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}" 2371 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2739 test "X$GNUSTEP_CONFIG_FILE" = "X" && \ 2372 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2740 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf 2373 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2741 2374
2742 # Check whether --enable-ns-self-contained was given. 2375 # Check whether --enable-ns-self-contained was given.
2743 if test "${enable_ns_self_contained+set}" = set; then : 2376 if test "${enable_ns_self_contained+set}" = set; then
2744 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval 2377 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2745 else 2378 else
2746 EN_NS_SELF_CONTAINED=yes 2379 EN_NS_SELF_CONTAINED=yes
2747 fi 2380 fi
2748 2381
2749 2382
2750 # Check whether --enable-asserts was given. 2383 # Check whether --enable-asserts was given.
2751 if test "${enable_asserts+set}" = set; then : 2384 if test "${enable_asserts+set}" = set; then
2752 enableval=$enable_asserts; USE_XASSERTS=$enableval 2385 enableval=$enable_asserts; USE_XASSERTS=$enableval
2753 else 2386 else
2754 USE_XASSERTS=no 2387 USE_XASSERTS=no
2755 fi 2388 fi
2756 2389
2757 2390
2758 # Check whether --enable-maintainer-mode was given. 2391 # Check whether --enable-maintainer-mode was given.
2759 if test "${enable_maintainer_mode+set}" = set; then : 2392 if test "${enable_maintainer_mode+set}" = set; then
2760 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2393 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2761 else 2394 else
2762 USE_MAINTAINER_MODE=no 2395 USE_MAINTAINER_MODE=no
2763 fi 2396 fi
2764 2397
2768 MAINT=# 2401 MAINT=#
2769 fi 2402 fi
2770 2403
2771 2404
2772 # Check whether --enable-locallisppath was given. 2405 # Check whether --enable-locallisppath was given.
2773 if test "${enable_locallisppath+set}" = set; then : 2406 if test "${enable_locallisppath+set}" = set; then
2774 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then 2407 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2775 locallisppath= 2408 locallisppath=
2776 elif test "${enableval}" != "yes"; then 2409 elif test "${enableval}" != "yes"; then
2777 locallisppath=${enableval} 2410 locallisppath=${enableval}
2778 fi 2411 fi
2779 fi 2412 fi
2780 2413
2781 2414
2782 # Check whether --enable-checking was given. 2415 # Check whether --enable-checking was given.
2783 if test "${enable_checking+set}" = set; then : 2416 if test "${enable_checking+set}" = set; then
2784 enableval=$enable_checking; ac_checking_flags="${enableval}" 2417 enableval=$enable_checking; ac_checking_flags="${enableval}"
2785 fi 2418 fi
2786 2419
2787 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS," 2420 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2788 for check in $ac_checking_flags 2421 for check in $ac_checking_flags
2806 stringbytes) ac_gc_check_stringbytes=1 ;; 2439 stringbytes) ac_gc_check_stringbytes=1 ;;
2807 stringoverrun) ac_gc_check_string_overrun=1 ;; 2440 stringoverrun) ac_gc_check_string_overrun=1 ;;
2808 stringfreelist) ac_gc_check_string_free_list=1 ;; 2441 stringfreelist) ac_gc_check_string_free_list=1 ;;
2809 xmallocoverrun) ac_xmalloc_overrun=1 ;; 2442 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2810 conslist) ac_gc_check_cons_list=1 ;; 2443 conslist) ac_gc_check_cons_list=1 ;;
2811 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;; 2444 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2445 $as_echo "$as_me: error: unknown check category $check" >&2;}
2446 { (exit 1); exit 1; }; } ;;
2812 esac 2447 esac
2813 done 2448 done
2814 IFS="$ac_save_IFS" 2449 IFS="$ac_save_IFS"
2815 2450
2816 if test x$ac_enable_checking != x ; then 2451 if test x$ac_enable_checking != x ; then
2817 2452
2818 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h 2453 cat >>confdefs.h <<\_ACEOF
2454 #define ENABLE_CHECKING 1
2455 _ACEOF
2819 2456
2820 fi 2457 fi
2821 if test x$ac_gc_check_stringbytes != x ; then 2458 if test x$ac_gc_check_stringbytes != x ; then
2822 2459
2823 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h 2460 cat >>confdefs.h <<\_ACEOF
2461 #define GC_CHECK_STRING_BYTES 1
2462 _ACEOF
2824 2463
2825 fi 2464 fi
2826 if test x$ac_gc_check_stringoverrun != x ; then 2465 if test x$ac_gc_check_stringoverrun != x ; then
2827 2466
2828 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h 2467 cat >>confdefs.h <<\_ACEOF
2468 #define GC_CHECK_STRING_OVERRUN 1
2469 _ACEOF
2829 2470
2830 fi 2471 fi
2831 if test x$ac_gc_check_string_free_list != x ; then 2472 if test x$ac_gc_check_string_free_list != x ; then
2832 2473
2833 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h 2474 cat >>confdefs.h <<\_ACEOF
2475 #define GC_CHECK_STRING_FREE_LIST 1
2476 _ACEOF
2834 2477
2835 fi 2478 fi
2836 if test x$ac_xmalloc_overrun != x ; then 2479 if test x$ac_xmalloc_overrun != x ; then
2837 2480
2838 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h 2481 cat >>confdefs.h <<\_ACEOF
2482 #define XMALLOC_OVERRUN_CHECK 1
2483 _ACEOF
2839 2484
2840 fi 2485 fi
2841 if test x$ac_gc_check_cons_list != x ; then 2486 if test x$ac_gc_check_cons_list != x ; then
2842 2487
2843 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h 2488 cat >>confdefs.h <<\_ACEOF
2489 #define GC_CHECK_CONS_LIST 1
2490 _ACEOF
2844 2491
2845 fi 2492 fi
2846 2493
2847 # Check whether --enable-profiling was given. 2494 # Check whether --enable-profiling was given.
2848 if test "${enable_profiling+set}" = set; then : 2495 if test "${enable_profiling+set}" = set; then
2849 enableval=$enable_profiling; ac_enable_profiling="${enableval}" 2496 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2850 fi 2497 fi
2851 2498
2852 if test x$ac_enable_profiling != x ; then 2499 if test x$ac_enable_profiling != x ; then
2853 PROFILING_CFLAGS="-DPROFILING=1 -pg" 2500 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2856 PROFILING_CFLAGS= 2503 PROFILING_CFLAGS=
2857 PROFILING_LDFLAGS= 2504 PROFILING_LDFLAGS=
2858 fi 2505 fi
2859 2506
2860 # Check whether --enable-autodepend was given. 2507 # Check whether --enable-autodepend was given.
2861 if test "${enable_autodepend+set}" = set; then : 2508 if test "${enable_autodepend+set}" = set; then
2862 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}" 2509 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2863 else 2510 else
2864 ac_enable_autodepend=yes 2511 ac_enable_autodepend=yes
2865 fi 2512 fi
2866 2513
2890 esac 2537 esac
2891 2538
2892 #### Check if the source directory already has a configured system in it. 2539 #### Check if the source directory already has a configured system in it.
2893 if test `pwd` != `(cd ${srcdir} && pwd)` \ 2540 if test `pwd` != `(cd ${srcdir} && pwd)` \
2894 && test -f "${srcdir}/src/config.h" ; then 2541 && test -f "${srcdir}/src/config.h" ; then
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used 2542 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2896 as a build directory right now; it has been configured in its own 2543 as a build directory right now; it has been configured in its own
2897 right. To configure in another directory as well, you MUST 2544 right. To configure in another directory as well, you MUST
2898 use GNU make. If you do not have GNU make, then you must 2545 use GNU make. If you do not have GNU make, then you must
2899 now do \`make distclean' in ${srcdir}, 2546 now do \`make distclean' in ${srcdir},
2900 and then run $0 again." >&5 2547 and then run $0 again." >&5
2911 2558
2912 ### Canonicalize the configuration name. 2559 ### Canonicalize the configuration name.
2913 2560
2914 ac_aux_dir= 2561 ac_aux_dir=
2915 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2562 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2916 for ac_t in install-sh install.sh shtool; do 2563 if test -f "$ac_dir/install-sh"; then
2917 if test -f "$ac_dir/$ac_t"; then 2564 ac_aux_dir=$ac_dir
2918 ac_aux_dir=$ac_dir 2565 ac_install_sh="$ac_aux_dir/install-sh -c"
2919 ac_install_sh="$ac_aux_dir/$ac_t -c" 2566 break
2920 break 2 2567 elif test -f "$ac_dir/install.sh"; then
2921 fi 2568 ac_aux_dir=$ac_dir
2922 done 2569 ac_install_sh="$ac_aux_dir/install.sh -c"
2570 break
2571 elif test -f "$ac_dir/shtool"; then
2572 ac_aux_dir=$ac_dir
2573 ac_install_sh="$ac_aux_dir/shtool install -c"
2574 break
2575 fi
2923 done 2576 done
2924 if test -z "$ac_aux_dir"; then 2577 if test -z "$ac_aux_dir"; then
2925 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2578 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2579 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2580 { (exit 1); exit 1; }; }
2926 fi 2581 fi
2927 2582
2928 # These three variables are undocumented and unsupported, 2583 # These three variables are undocumented and unsupported,
2929 # and are intended to be withdrawn in a future Autoconf release. 2584 # and are intended to be withdrawn in a future Autoconf release.
2930 # They can cause serious problems if a builder's source tree is in a directory 2585 # They can cause serious problems if a builder's source tree is in a directory
2934 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2589 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2935 2590
2936 2591
2937 # Make sure we can run config.sub. 2592 # Make sure we can run config.sub.
2938 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2593 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2939 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2594 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2940 2595 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2596 { (exit 1); exit 1; }; }
2597
2598 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2942 $as_echo_n "checking build system type... " >&6; } 2599 $as_echo_n "checking build system type... " >&6; }
2943 if test "${ac_cv_build+set}" = set; then : 2600 if test "${ac_cv_build+set}" = set; then
2944 $as_echo_n "(cached) " >&6 2601 $as_echo_n "(cached) " >&6
2945 else 2602 else
2946 ac_build_alias=$build_alias 2603 ac_build_alias=$build_alias
2947 test "x$ac_build_alias" = x && 2604 test "x$ac_build_alias" = x &&
2948 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2605 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2949 test "x$ac_build_alias" = x && 2606 test "x$ac_build_alias" = x &&
2950 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2607 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2608 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2609 { (exit 1); exit 1; }; }
2951 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2610 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2952 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2611 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2953 2612 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2954 fi 2613 { (exit 1); exit 1; }; }
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2614
2615 fi
2616 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2956 $as_echo "$ac_cv_build" >&6; } 2617 $as_echo "$ac_cv_build" >&6; }
2957 case $ac_cv_build in 2618 case $ac_cv_build in
2958 *-*-*) ;; 2619 *-*-*) ;;
2959 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2620 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2621 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2622 { (exit 1); exit 1; }; };;
2960 esac 2623 esac
2961 build=$ac_cv_build 2624 build=$ac_cv_build
2962 ac_save_IFS=$IFS; IFS='-' 2625 ac_save_IFS=$IFS; IFS='-'
2963 set x $ac_cv_build 2626 set x $ac_cv_build
2964 shift 2627 shift
2970 build_os=$* 2633 build_os=$*
2971 IFS=$ac_save_IFS 2634 IFS=$ac_save_IFS
2972 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2635 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2973 2636
2974 2637
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2638 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2976 $as_echo_n "checking host system type... " >&6; } 2639 $as_echo_n "checking host system type... " >&6; }
2977 if test "${ac_cv_host+set}" = set; then : 2640 if test "${ac_cv_host+set}" = set; then
2978 $as_echo_n "(cached) " >&6 2641 $as_echo_n "(cached) " >&6
2979 else 2642 else
2980 if test "x$host_alias" = x; then 2643 if test "x$host_alias" = x; then
2981 ac_cv_host=$ac_cv_build 2644 ac_cv_host=$ac_cv_build
2982 else 2645 else
2983 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2646 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2984 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2647 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2985 fi 2648 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2986 2649 { (exit 1); exit 1; }; }
2987 fi 2650 fi
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2651
2652 fi
2653 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2989 $as_echo "$ac_cv_host" >&6; } 2654 $as_echo "$ac_cv_host" >&6; }
2990 case $ac_cv_host in 2655 case $ac_cv_host in
2991 *-*-*) ;; 2656 *-*-*) ;;
2992 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2657 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2658 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2659 { (exit 1); exit 1; }; };;
2993 esac 2660 esac
2994 host=$ac_cv_host 2661 host=$ac_cv_host
2995 ac_save_IFS=$IFS; IFS='-' 2662 ac_save_IFS=$IFS; IFS='-'
2996 set x $ac_cv_host 2663 set x $ac_cv_host
2997 shift 2664 shift
3067 ## NetBSD ports 2734 ## NetBSD ports
3068 *-*-netbsd* ) 2735 *-*-netbsd* )
3069 opsys=netbsd 2736 opsys=netbsd
3070 if test -f /usr/lib/crti.o; then 2737 if test -f /usr/lib/crti.o; then
3071 2738
3072 $as_echo "#define HAVE_CRTIN /**/" >>confdefs.h 2739 cat >>confdefs.h <<\_ACEOF
2740 #define HAVE_CRTIN /**/
2741 _ACEOF
3073 2742
3074 fi 2743 fi
3075 2744
3076 case "${canonical}" in 2745 case "${canonical}" in
3077 alpha*-*-netbsd*) machine=alpha ;; 2746 alpha*-*-netbsd*) machine=alpha ;;
3333 fi 3002 fi
3334 3003
3335 3004
3336 3005
3337 if test $unported = yes; then 3006 if test $unported = yes; then
3338 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems. 3007 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3339 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5 3008 Check \`etc/MACHINES' for recognized configuration names." >&5
3009 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3010 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3011 { (exit 1); exit 1; }; }
3340 fi 3012 fi
3341 3013
3342 machfile="m/${machine}.h" 3014 machfile="m/${machine}.h"
3343 opsysfile="s/${opsys}.h" 3015 opsysfile="s/${opsys}.h"
3344 3016
3355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3356 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3357 if test -n "$ac_tool_prefix"; then 3029 if test -n "$ac_tool_prefix"; then
3358 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3030 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3359 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3031 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3032 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3361 $as_echo_n "checking for $ac_word... " >&6; } 3033 $as_echo_n "checking for $ac_word... " >&6; }
3362 if test "${ac_cv_prog_CC+set}" = set; then : 3034 if test "${ac_cv_prog_CC+set}" = set; then
3363 $as_echo_n "(cached) " >&6 3035 $as_echo_n "(cached) " >&6
3364 else 3036 else
3365 if test -n "$CC"; then 3037 if test -n "$CC"; then
3366 ac_cv_prog_CC="$CC" # Let the user override the test. 3038 ac_cv_prog_CC="$CC" # Let the user override the test.
3367 else 3039 else
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 for as_dir in $PATH 3041 for as_dir in $PATH
3370 do 3042 do
3371 IFS=$as_save_IFS 3043 IFS=$as_save_IFS
3372 test -z "$as_dir" && as_dir=. 3044 test -z "$as_dir" && as_dir=.
3373 for ac_exec_ext in '' $ac_executable_extensions; do 3045 for ac_exec_ext in '' $ac_executable_extensions; do
3374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3375 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3047 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3048 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3377 break 2 3049 break 2
3378 fi 3050 fi
3379 done 3051 done
3380 done 3052 done
3381 IFS=$as_save_IFS 3053 IFS=$as_save_IFS
3382 3054
3383 fi 3055 fi
3384 fi 3056 fi
3385 CC=$ac_cv_prog_CC 3057 CC=$ac_cv_prog_CC
3386 if test -n "$CC"; then 3058 if test -n "$CC"; then
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3059 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3388 $as_echo "$CC" >&6; } 3060 $as_echo "$CC" >&6; }
3389 else 3061 else
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3062 { $as_echo "$as_me:$LINENO: result: no" >&5
3391 $as_echo "no" >&6; } 3063 $as_echo "no" >&6; }
3392 fi 3064 fi
3393 3065
3394 3066
3395 fi 3067 fi
3396 if test -z "$ac_cv_prog_CC"; then 3068 if test -z "$ac_cv_prog_CC"; then
3397 ac_ct_CC=$CC 3069 ac_ct_CC=$CC
3398 # Extract the first word of "gcc", so it can be a program name with args. 3070 # Extract the first word of "gcc", so it can be a program name with args.
3399 set dummy gcc; ac_word=$2 3071 set dummy gcc; ac_word=$2
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3072 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3401 $as_echo_n "checking for $ac_word... " >&6; } 3073 $as_echo_n "checking for $ac_word... " >&6; }
3402 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3074 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3403 $as_echo_n "(cached) " >&6 3075 $as_echo_n "(cached) " >&6
3404 else 3076 else
3405 if test -n "$ac_ct_CC"; then 3077 if test -n "$ac_ct_CC"; then
3406 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3078 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3407 else 3079 else
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 for as_dir in $PATH 3081 for as_dir in $PATH
3410 do 3082 do
3411 IFS=$as_save_IFS 3083 IFS=$as_save_IFS
3412 test -z "$as_dir" && as_dir=. 3084 test -z "$as_dir" && as_dir=.
3413 for ac_exec_ext in '' $ac_executable_extensions; do 3085 for ac_exec_ext in '' $ac_executable_extensions; do
3414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3415 ac_cv_prog_ac_ct_CC="gcc" 3087 ac_cv_prog_ac_ct_CC="gcc"
3416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3088 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 break 2 3089 break 2
3418 fi 3090 fi
3419 done 3091 done
3420 done 3092 done
3421 IFS=$as_save_IFS 3093 IFS=$as_save_IFS
3422 3094
3423 fi 3095 fi
3424 fi 3096 fi
3425 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3097 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3426 if test -n "$ac_ct_CC"; then 3098 if test -n "$ac_ct_CC"; then
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3099 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3428 $as_echo "$ac_ct_CC" >&6; } 3100 $as_echo "$ac_ct_CC" >&6; }
3429 else 3101 else
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3102 { $as_echo "$as_me:$LINENO: result: no" >&5
3431 $as_echo "no" >&6; } 3103 $as_echo "no" >&6; }
3432 fi 3104 fi
3433 3105
3434 if test "x$ac_ct_CC" = x; then 3106 if test "x$ac_ct_CC" = x; then
3435 CC="" 3107 CC=""
3436 else 3108 else
3437 case $cross_compiling:$ac_tool_warned in 3109 case $cross_compiling:$ac_tool_warned in
3438 yes:) 3110 yes:)
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3111 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3112 whose name does not start with the host triplet. If you think this
3113 configuration is useful to you, please write to autoconf@gnu.org." >&5
3114 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3115 whose name does not start with the host triplet. If you think this
3116 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3441 ac_tool_warned=yes ;; 3117 ac_tool_warned=yes ;;
3442 esac 3118 esac
3443 CC=$ac_ct_CC 3119 CC=$ac_ct_CC
3444 fi 3120 fi
3445 else 3121 else
3448 3124
3449 if test -z "$CC"; then 3125 if test -z "$CC"; then
3450 if test -n "$ac_tool_prefix"; then 3126 if test -n "$ac_tool_prefix"; then
3451 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3127 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3452 set dummy ${ac_tool_prefix}cc; ac_word=$2 3128 set dummy ${ac_tool_prefix}cc; ac_word=$2
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3129 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3454 $as_echo_n "checking for $ac_word... " >&6; } 3130 $as_echo_n "checking for $ac_word... " >&6; }
3455 if test "${ac_cv_prog_CC+set}" = set; then : 3131 if test "${ac_cv_prog_CC+set}" = set; then
3456 $as_echo_n "(cached) " >&6 3132 $as_echo_n "(cached) " >&6
3457 else 3133 else
3458 if test -n "$CC"; then 3134 if test -n "$CC"; then
3459 ac_cv_prog_CC="$CC" # Let the user override the test. 3135 ac_cv_prog_CC="$CC" # Let the user override the test.
3460 else 3136 else
3461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 for as_dir in $PATH 3138 for as_dir in $PATH
3463 do 3139 do
3464 IFS=$as_save_IFS 3140 IFS=$as_save_IFS
3465 test -z "$as_dir" && as_dir=. 3141 test -z "$as_dir" && as_dir=.
3466 for ac_exec_ext in '' $ac_executable_extensions; do 3142 for ac_exec_ext in '' $ac_executable_extensions; do
3467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3468 ac_cv_prog_CC="${ac_tool_prefix}cc" 3144 ac_cv_prog_CC="${ac_tool_prefix}cc"
3469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3145 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3470 break 2 3146 break 2
3471 fi 3147 fi
3472 done 3148 done
3473 done 3149 done
3474 IFS=$as_save_IFS 3150 IFS=$as_save_IFS
3475 3151
3476 fi 3152 fi
3477 fi 3153 fi
3478 CC=$ac_cv_prog_CC 3154 CC=$ac_cv_prog_CC
3479 if test -n "$CC"; then 3155 if test -n "$CC"; then
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3156 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3481 $as_echo "$CC" >&6; } 3157 $as_echo "$CC" >&6; }
3482 else 3158 else
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3159 { $as_echo "$as_me:$LINENO: result: no" >&5
3484 $as_echo "no" >&6; } 3160 $as_echo "no" >&6; }
3485 fi 3161 fi
3486 3162
3487 3163
3488 fi 3164 fi
3489 fi 3165 fi
3490 if test -z "$CC"; then 3166 if test -z "$CC"; then
3491 # Extract the first word of "cc", so it can be a program name with args. 3167 # Extract the first word of "cc", so it can be a program name with args.
3492 set dummy cc; ac_word=$2 3168 set dummy cc; ac_word=$2
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3169 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3494 $as_echo_n "checking for $ac_word... " >&6; } 3170 $as_echo_n "checking for $ac_word... " >&6; }
3495 if test "${ac_cv_prog_CC+set}" = set; then : 3171 if test "${ac_cv_prog_CC+set}" = set; then
3496 $as_echo_n "(cached) " >&6 3172 $as_echo_n "(cached) " >&6
3497 else 3173 else
3498 if test -n "$CC"; then 3174 if test -n "$CC"; then
3499 ac_cv_prog_CC="$CC" # Let the user override the test. 3175 ac_cv_prog_CC="$CC" # Let the user override the test.
3500 else 3176 else
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 for as_dir in $PATH 3179 for as_dir in $PATH
3504 do 3180 do
3505 IFS=$as_save_IFS 3181 IFS=$as_save_IFS
3506 test -z "$as_dir" && as_dir=. 3182 test -z "$as_dir" && as_dir=.
3507 for ac_exec_ext in '' $ac_executable_extensions; do 3183 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3509 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3185 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3510 ac_prog_rejected=yes 3186 ac_prog_rejected=yes
3511 continue 3187 continue
3512 fi 3188 fi
3513 ac_cv_prog_CC="cc" 3189 ac_cv_prog_CC="cc"
3514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3190 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 break 2 3191 break 2
3516 fi 3192 fi
3517 done 3193 done
3518 done 3194 done
3519 IFS=$as_save_IFS 3195 IFS=$as_save_IFS
3520 3196
3521 if test $ac_prog_rejected = yes; then 3197 if test $ac_prog_rejected = yes; then
3522 # We found a bogon in the path, so make sure we never use it. 3198 # We found a bogon in the path, so make sure we never use it.
3523 set dummy $ac_cv_prog_CC 3199 set dummy $ac_cv_prog_CC
3532 fi 3208 fi
3533 fi 3209 fi
3534 fi 3210 fi
3535 CC=$ac_cv_prog_CC 3211 CC=$ac_cv_prog_CC
3536 if test -n "$CC"; then 3212 if test -n "$CC"; then
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3213 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3538 $as_echo "$CC" >&6; } 3214 $as_echo "$CC" >&6; }
3539 else 3215 else
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3216 { $as_echo "$as_me:$LINENO: result: no" >&5
3541 $as_echo "no" >&6; } 3217 $as_echo "no" >&6; }
3542 fi 3218 fi
3543 3219
3544 3220
3545 fi 3221 fi
3547 if test -n "$ac_tool_prefix"; then 3223 if test -n "$ac_tool_prefix"; then
3548 for ac_prog in cl.exe 3224 for ac_prog in cl.exe
3549 do 3225 do
3550 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3551 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3228 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3553 $as_echo_n "checking for $ac_word... " >&6; } 3229 $as_echo_n "checking for $ac_word... " >&6; }
3554 if test "${ac_cv_prog_CC+set}" = set; then : 3230 if test "${ac_cv_prog_CC+set}" = set; then
3555 $as_echo_n "(cached) " >&6 3231 $as_echo_n "(cached) " >&6
3556 else 3232 else
3557 if test -n "$CC"; then 3233 if test -n "$CC"; then
3558 ac_cv_prog_CC="$CC" # Let the user override the test. 3234 ac_cv_prog_CC="$CC" # Let the user override the test.
3559 else 3235 else
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 for as_dir in $PATH 3237 for as_dir in $PATH
3562 do 3238 do
3563 IFS=$as_save_IFS 3239 IFS=$as_save_IFS
3564 test -z "$as_dir" && as_dir=. 3240 test -z "$as_dir" && as_dir=.
3565 for ac_exec_ext in '' $ac_executable_extensions; do 3241 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3567 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3243 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3244 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 break 2 3245 break 2
3570 fi 3246 fi
3571 done 3247 done
3572 done 3248 done
3573 IFS=$as_save_IFS 3249 IFS=$as_save_IFS
3574 3250
3575 fi 3251 fi
3576 fi 3252 fi
3577 CC=$ac_cv_prog_CC 3253 CC=$ac_cv_prog_CC
3578 if test -n "$CC"; then 3254 if test -n "$CC"; then
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3255 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3580 $as_echo "$CC" >&6; } 3256 $as_echo "$CC" >&6; }
3581 else 3257 else
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3258 { $as_echo "$as_me:$LINENO: result: no" >&5
3583 $as_echo "no" >&6; } 3259 $as_echo "no" >&6; }
3584 fi 3260 fi
3585 3261
3586 3262
3587 test -n "$CC" && break 3263 test -n "$CC" && break
3591 ac_ct_CC=$CC 3267 ac_ct_CC=$CC
3592 for ac_prog in cl.exe 3268 for ac_prog in cl.exe
3593 do 3269 do
3594 # Extract the first word of "$ac_prog", so it can be a program name with args. 3270 # Extract the first word of "$ac_prog", so it can be a program name with args.
3595 set dummy $ac_prog; ac_word=$2 3271 set dummy $ac_prog; ac_word=$2
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3272 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3597 $as_echo_n "checking for $ac_word... " >&6; } 3273 $as_echo_n "checking for $ac_word... " >&6; }
3598 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3274 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3599 $as_echo_n "(cached) " >&6 3275 $as_echo_n "(cached) " >&6
3600 else 3276 else
3601 if test -n "$ac_ct_CC"; then 3277 if test -n "$ac_ct_CC"; then
3602 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3603 else 3279 else
3604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605 for as_dir in $PATH 3281 for as_dir in $PATH
3606 do 3282 do
3607 IFS=$as_save_IFS 3283 IFS=$as_save_IFS
3608 test -z "$as_dir" && as_dir=. 3284 test -z "$as_dir" && as_dir=.
3609 for ac_exec_ext in '' $ac_executable_extensions; do 3285 for ac_exec_ext in '' $ac_executable_extensions; do
3610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3611 ac_cv_prog_ac_ct_CC="$ac_prog" 3287 ac_cv_prog_ac_ct_CC="$ac_prog"
3612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3288 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3613 break 2 3289 break 2
3614 fi 3290 fi
3615 done 3291 done
3616 done 3292 done
3617 IFS=$as_save_IFS 3293 IFS=$as_save_IFS
3618 3294
3619 fi 3295 fi
3620 fi 3296 fi
3621 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3297 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3622 if test -n "$ac_ct_CC"; then 3298 if test -n "$ac_ct_CC"; then
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3299 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3624 $as_echo "$ac_ct_CC" >&6; } 3300 $as_echo "$ac_ct_CC" >&6; }
3625 else 3301 else
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3302 { $as_echo "$as_me:$LINENO: result: no" >&5
3627 $as_echo "no" >&6; } 3303 $as_echo "no" >&6; }
3628 fi 3304 fi
3629 3305
3630 3306
3631 test -n "$ac_ct_CC" && break 3307 test -n "$ac_ct_CC" && break
3634 if test "x$ac_ct_CC" = x; then 3310 if test "x$ac_ct_CC" = x; then
3635 CC="" 3311 CC=""
3636 else 3312 else
3637 case $cross_compiling:$ac_tool_warned in 3313 case $cross_compiling:$ac_tool_warned in
3638 yes:) 3314 yes:)
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3315 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3316 whose name does not start with the host triplet. If you think this
3317 configuration is useful to you, please write to autoconf@gnu.org." >&5
3318 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3319 whose name does not start with the host triplet. If you think this
3320 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3641 ac_tool_warned=yes ;; 3321 ac_tool_warned=yes ;;
3642 esac 3322 esac
3643 CC=$ac_ct_CC 3323 CC=$ac_ct_CC
3644 fi 3324 fi
3645 fi 3325 fi
3646 3326
3647 fi 3327 fi
3648 3328
3649 3329
3650 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3330 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3331 See \`config.log' for more details." >&5
3652 as_fn_error "no acceptable C compiler found in \$PATH 3332 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3653 See \`config.log' for more details." "$LINENO" 5; } 3333 See \`config.log' for more details." >&2;}
3334 { (exit 1); exit 1; }; }
3654 3335
3655 # Provide some information about the compiler. 3336 # Provide some information about the compiler.
3656 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3337 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3657 set X $ac_compile 3338 set X $ac_compile
3658 ac_compiler=$2 3339 ac_compiler=$2
3659 for ac_option in --version -v -V -qversion; do 3340 { (ac_try="$ac_compiler --version >&5"
3660 { { ac_try="$ac_compiler $ac_option >&5"
3661 case "(($ac_try" in 3341 case "(($ac_try" in
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;; 3343 *) ac_try_echo=$ac_try;;
3664 esac 3344 esac
3665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3666 $as_echo "$ac_try_echo"; } >&5 3346 $as_echo "$ac_try_echo") >&5
3667 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3347 (eval "$ac_compiler --version >&5") 2>&5
3668 ac_status=$? 3348 ac_status=$?
3669 if test -s conftest.err; then 3349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 sed '10a\ 3350 (exit $ac_status); }
3671 ... rest of stderr output deleted ... 3351 { (ac_try="$ac_compiler -v >&5"
3672 10q' conftest.err >conftest.er1 3352 case "(($ac_try" in
3673 cat conftest.er1 >&5 3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674 rm -f conftest.er1 conftest.err 3354 *) ac_try_echo=$ac_try;;
3675 fi 3355 esac
3676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3677 test $ac_status = 0; } 3357 $as_echo "$ac_try_echo") >&5
3678 done 3358 (eval "$ac_compiler -v >&5") 2>&5
3679 3359 ac_status=$?
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }
3362 { (ac_try="$ac_compiler -V >&5"
3363 case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366 esac
3367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3368 $as_echo "$ac_try_echo") >&5
3369 (eval "$ac_compiler -V >&5") 2>&5
3370 ac_status=$?
3371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }
3373
3374 cat >conftest.$ac_ext <<_ACEOF
3375 /* confdefs.h. */
3376 _ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3681 /* end confdefs.h. */ 3379 /* end confdefs.h. */
3682 #include <stdio.h> 3380
3683 int 3381 int
3684 main () 3382 main ()
3685 { 3383 {
3686 FILE *f = fopen ("conftest.out", "w");
3687 return ferror (f) || fclose (f) != 0;
3688 3384
3689 ; 3385 ;
3690 return 0; 3386 return 0;
3691 } 3387 }
3692 _ACEOF 3388 _ACEOF
3693 ac_clean_files_save=$ac_clean_files 3389 ac_clean_files_save=$ac_clean_files
3694 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" 3390 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3695 # Try to create an executable without -o first, disregard a.out. 3391 # Try to create an executable without -o first, disregard a.out.
3696 # It will help us diagnose broken compilers, and finding out an intuition 3392 # It will help us diagnose broken compilers, and finding out an intuition
3697 # of exeext. 3393 # of exeext.
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3394 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3699 $as_echo_n "checking for C compiler default output file name... " >&6; } 3395 $as_echo_n "checking for C compiler default output file name... " >&6; }
3700 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3396 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3701 3397
3702 # The possible output files: 3398 # The possible output files:
3703 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3399 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3710 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3406 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3711 esac 3407 esac
3712 done 3408 done
3713 rm -f $ac_rmfiles 3409 rm -f $ac_rmfiles
3714 3410
3715 if { { ac_try="$ac_link_default" 3411 if { (ac_try="$ac_link_default"
3716 case "(($ac_try" in 3412 case "(($ac_try" in
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;; 3414 *) ac_try_echo=$ac_try;;
3719 esac 3415 esac
3720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3721 $as_echo "$ac_try_echo"; } >&5 3417 $as_echo "$ac_try_echo") >&5
3722 (eval "$ac_link_default") 2>&5 3418 (eval "$ac_link_default") 2>&5
3723 ac_status=$? 3419 ac_status=$?
3724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 test $ac_status = 0; }; then : 3421 (exit $ac_status); }; then
3726 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3422 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3727 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3423 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3728 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3424 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3729 # so that the user can short-circuit this test for compilers unknown to 3425 # so that the user can short-circuit this test for compilers unknown to
3730 # Autoconf. 3426 # Autoconf.
3737 [ab].out ) 3433 [ab].out )
3738 # We found the default executable, but exeext='' is most 3434 # We found the default executable, but exeext='' is most
3739 # certainly right. 3435 # certainly right.
3740 break;; 3436 break;;
3741 *.* ) 3437 *.* )
3742 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3438 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3743 then :; else 3439 then :; else
3744 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3440 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3745 fi 3441 fi
3746 # We set ac_cv_exeext here because the later test for it is not 3442 # We set ac_cv_exeext here because the later test for it is not
3747 # safe: cross compilers may not add the suffix if given an `-o' 3443 # safe: cross compilers may not add the suffix if given an `-o'
3756 test "$ac_cv_exeext" = no && ac_cv_exeext= 3452 test "$ac_cv_exeext" = no && ac_cv_exeext=
3757 3453
3758 else 3454 else
3759 ac_file='' 3455 ac_file=''
3760 fi 3456 fi
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3457
3458 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3762 $as_echo "$ac_file" >&6; } 3459 $as_echo "$ac_file" >&6; }
3763 if test -z "$ac_file"; then : 3460 if test -z "$ac_file"; then
3764 $as_echo "$as_me: failed program was:" >&5 3461 $as_echo "$as_me: failed program was:" >&5
3765 sed 's/^/| /' conftest.$ac_ext >&5 3462 sed 's/^/| /' conftest.$ac_ext >&5
3766 3463
3767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3464 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3465 See \`config.log' for more details." >&5
3769 { as_fn_set_status 77 3466 $as_echo "$as_me: error: C compiler cannot create executables
3770 as_fn_error "C compiler cannot create executables 3467 See \`config.log' for more details." >&2;}
3771 See \`config.log' for more details." "$LINENO" 5; }; } 3468 { (exit 77); exit 77; }; }
3772 fi 3469 fi
3470
3773 ac_exeext=$ac_cv_exeext 3471 ac_exeext=$ac_cv_exeext
3774 3472
3775 # Check that the compiler produces executables we can run. If not, either 3473 # Check that the compiler produces executables we can run. If not, either
3776 # the compiler is broken, or we cross compile. 3474 # the compiler is broken, or we cross compile.
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3475 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3778 $as_echo_n "checking whether the C compiler works... " >&6; } 3476 $as_echo_n "checking whether the C compiler works... " >&6; }
3477 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3779 # If not cross compiling, check that we can run a simple program. 3478 # If not cross compiling, check that we can run a simple program.
3780 if test "$cross_compiling" != yes; then 3479 if test "$cross_compiling" != yes; then
3781 if { ac_try='./$ac_file' 3480 if { ac_try='./$ac_file'
3782 { { case "(($ac_try" in 3481 { (case "(($ac_try" in
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;; 3483 *) ac_try_echo=$ac_try;;
3785 esac 3484 esac
3786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3787 $as_echo "$ac_try_echo"; } >&5 3486 $as_echo "$ac_try_echo") >&5
3788 (eval "$ac_try") 2>&5 3487 (eval "$ac_try") 2>&5
3789 ac_status=$? 3488 ac_status=$?
3790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 test $ac_status = 0; }; }; then 3490 (exit $ac_status); }; }; then
3792 cross_compiling=no 3491 cross_compiling=no
3793 else 3492 else
3794 if test "$cross_compiling" = maybe; then 3493 if test "$cross_compiling" = maybe; then
3795 cross_compiling=yes 3494 cross_compiling=yes
3796 else 3495 else
3797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3496 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3799 as_fn_error "cannot run C compiled programs.
3800 If you meant to cross compile, use \`--host'. 3497 If you meant to cross compile, use \`--host'.
3801 See \`config.log' for more details." "$LINENO" 5; } 3498 See \`config.log' for more details." >&5
3499 $as_echo "$as_me: error: cannot run C compiled programs.
3500 If you meant to cross compile, use \`--host'.
3501 See \`config.log' for more details." >&2;}
3502 { (exit 1); exit 1; }; }
3802 fi 3503 fi
3803 fi 3504 fi
3804 fi 3505 fi
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3506 { $as_echo "$as_me:$LINENO: result: yes" >&5
3806 $as_echo "yes" >&6; } 3507 $as_echo "yes" >&6; }
3807 3508
3808 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 3509 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3809 ac_clean_files=$ac_clean_files_save 3510 ac_clean_files=$ac_clean_files_save
3810 # Check that the compiler produces executables we can run. If not, either 3511 # Check that the compiler produces executables we can run. If not, either
3811 # the compiler is broken, or we cross compile. 3512 # the compiler is broken, or we cross compile.
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3513 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3813 $as_echo_n "checking whether we are cross compiling... " >&6; } 3514 $as_echo_n "checking whether we are cross compiling... " >&6; }
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3515 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3815 $as_echo "$cross_compiling" >&6; } 3516 $as_echo "$cross_compiling" >&6; }
3816 3517
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3518 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3818 $as_echo_n "checking for suffix of executables... " >&6; } 3519 $as_echo_n "checking for suffix of executables... " >&6; }
3819 if { { ac_try="$ac_link" 3520 if { (ac_try="$ac_link"
3820 case "(($ac_try" in 3521 case "(($ac_try" in
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;; 3523 *) ac_try_echo=$ac_try;;
3823 esac 3524 esac
3824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3825 $as_echo "$ac_try_echo"; } >&5 3526 $as_echo "$ac_try_echo") >&5
3826 (eval "$ac_link") 2>&5 3527 (eval "$ac_link") 2>&5
3827 ac_status=$? 3528 ac_status=$?
3828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 test $ac_status = 0; }; then : 3530 (exit $ac_status); }; then
3830 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3531 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3831 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3532 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3832 # work properly (i.e., refer to `conftest.exe'), while it won't with 3533 # work properly (i.e., refer to `conftest.exe'), while it won't with
3833 # `rm'. 3534 # `rm'.
3834 for ac_file in conftest.exe conftest conftest.*; do 3535 for ac_file in conftest.exe conftest conftest.*; do
3839 break;; 3540 break;;
3840 * ) break;; 3541 * ) break;;
3841 esac 3542 esac
3842 done 3543 done
3843 else 3544 else
3844 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3545 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3546 See \`config.log' for more details." >&5
3846 as_fn_error "cannot compute suffix of executables: cannot compile and link 3547 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3847 See \`config.log' for more details." "$LINENO" 5; } 3548 See \`config.log' for more details." >&2;}
3848 fi 3549 { (exit 1); exit 1; }; }
3550 fi
3551
3849 rm -f conftest$ac_cv_exeext 3552 rm -f conftest$ac_cv_exeext
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3553 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3851 $as_echo "$ac_cv_exeext" >&6; } 3554 $as_echo "$ac_cv_exeext" >&6; }
3852 3555
3853 rm -f conftest.$ac_ext 3556 rm -f conftest.$ac_ext
3854 EXEEXT=$ac_cv_exeext 3557 EXEEXT=$ac_cv_exeext
3855 ac_exeext=$EXEEXT 3558 ac_exeext=$EXEEXT
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3559 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3857 $as_echo_n "checking for suffix of object files... " >&6; } 3560 $as_echo_n "checking for suffix of object files... " >&6; }
3858 if test "${ac_cv_objext+set}" = set; then : 3561 if test "${ac_cv_objext+set}" = set; then
3859 $as_echo_n "(cached) " >&6 3562 $as_echo_n "(cached) " >&6
3860 else 3563 else
3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3564 cat >conftest.$ac_ext <<_ACEOF
3565 /* confdefs.h. */
3566 _ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3862 /* end confdefs.h. */ 3569 /* end confdefs.h. */
3863 3570
3864 int 3571 int
3865 main () 3572 main ()
3866 { 3573 {
3868 ; 3575 ;
3869 return 0; 3576 return 0;
3870 } 3577 }
3871 _ACEOF 3578 _ACEOF
3872 rm -f conftest.o conftest.obj 3579 rm -f conftest.o conftest.obj
3873 if { { ac_try="$ac_compile" 3580 if { (ac_try="$ac_compile"
3874 case "(($ac_try" in 3581 case "(($ac_try" in
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;; 3583 *) ac_try_echo=$ac_try;;
3877 esac 3584 esac
3878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3879 $as_echo "$ac_try_echo"; } >&5 3586 $as_echo "$ac_try_echo") >&5
3880 (eval "$ac_compile") 2>&5 3587 (eval "$ac_compile") 2>&5
3881 ac_status=$? 3588 ac_status=$?
3882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 test $ac_status = 0; }; then : 3590 (exit $ac_status); }; then
3884 for ac_file in conftest.o conftest.obj conftest.*; do 3591 for ac_file in conftest.o conftest.obj conftest.*; do
3885 test -f "$ac_file" || continue; 3592 test -f "$ac_file" || continue;
3886 case $ac_file in 3593 case $ac_file in
3887 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3888 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3595 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3891 done 3598 done
3892 else 3599 else
3893 $as_echo "$as_me: failed program was:" >&5 3600 $as_echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5 3601 sed 's/^/| /' conftest.$ac_ext >&5
3895 3602
3896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3603 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3604 See \`config.log' for more details." >&5
3898 as_fn_error "cannot compute suffix of object files: cannot compile 3605 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3899 See \`config.log' for more details." "$LINENO" 5; } 3606 See \`config.log' for more details." >&2;}
3900 fi 3607 { (exit 1); exit 1; }; }
3608 fi
3609
3901 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3610 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3902 fi 3611 fi
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3612 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3904 $as_echo "$ac_cv_objext" >&6; } 3613 $as_echo "$ac_cv_objext" >&6; }
3905 OBJEXT=$ac_cv_objext 3614 OBJEXT=$ac_cv_objext
3906 ac_objext=$OBJEXT 3615 ac_objext=$OBJEXT
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3616 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3908 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3617 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3909 if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3618 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3910 $as_echo_n "(cached) " >&6 3619 $as_echo_n "(cached) " >&6
3911 else 3620 else
3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3621 cat >conftest.$ac_ext <<_ACEOF
3622 /* confdefs.h. */
3623 _ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3913 /* end confdefs.h. */ 3626 /* end confdefs.h. */
3914 3627
3915 int 3628 int
3916 main () 3629 main ()
3917 { 3630 {
3921 3634
3922 ; 3635 ;
3923 return 0; 3636 return 0;
3924 } 3637 }
3925 _ACEOF 3638 _ACEOF
3926 if ac_fn_c_try_compile "$LINENO"; then : 3639 rm -f conftest.$ac_objext
3640 if { (ac_try="$ac_compile"
3641 case "(($ac_try" in
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3644 esac
3645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3646 $as_echo "$ac_try_echo") >&5
3647 (eval "$ac_compile") 2>conftest.er1
3648 ac_status=$?
3649 grep -v '^ *+' conftest.er1 >conftest.err
3650 rm -f conftest.er1
3651 cat conftest.err >&5
3652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } && {
3654 test -z "$ac_c_werror_flag" ||
3655 test ! -s conftest.err
3656 } && test -s conftest.$ac_objext; then
3927 ac_compiler_gnu=yes 3657 ac_compiler_gnu=yes
3928 else 3658 else
3929 ac_compiler_gnu=no 3659 $as_echo "$as_me: failed program was:" >&5
3930 fi 3660 sed 's/^/| /' conftest.$ac_ext >&5
3661
3662 ac_compiler_gnu=no
3663 fi
3664
3931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3932 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3666 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3933 3667
3934 fi 3668 fi
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3669 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3936 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3670 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3937 if test $ac_compiler_gnu = yes; then 3671 if test $ac_compiler_gnu = yes; then
3938 GCC=yes 3672 GCC=yes
3939 else 3673 else
3940 GCC= 3674 GCC=
3941 fi 3675 fi
3942 ac_test_CFLAGS=${CFLAGS+set} 3676 ac_test_CFLAGS=${CFLAGS+set}
3943 ac_save_CFLAGS=$CFLAGS 3677 ac_save_CFLAGS=$CFLAGS
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3678 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3945 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3679 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3946 if test "${ac_cv_prog_cc_g+set}" = set; then : 3680 if test "${ac_cv_prog_cc_g+set}" = set; then
3947 $as_echo_n "(cached) " >&6 3681 $as_echo_n "(cached) " >&6
3948 else 3682 else
3949 ac_save_c_werror_flag=$ac_c_werror_flag 3683 ac_save_c_werror_flag=$ac_c_werror_flag
3950 ac_c_werror_flag=yes 3684 ac_c_werror_flag=yes
3951 ac_cv_prog_cc_g=no 3685 ac_cv_prog_cc_g=no
3952 CFLAGS="-g" 3686 CFLAGS="-g"
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3687 cat >conftest.$ac_ext <<_ACEOF
3688 /* confdefs.h. */
3689 _ACEOF
3690 cat confdefs.h >>conftest.$ac_ext
3691 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h. */ 3692 /* end confdefs.h. */
3955 3693
3956 int 3694 int
3957 main () 3695 main ()
3958 { 3696 {
3959 3697
3960 ; 3698 ;
3961 return 0; 3699 return 0;
3962 } 3700 }
3963 _ACEOF 3701 _ACEOF
3964 if ac_fn_c_try_compile "$LINENO"; then : 3702 rm -f conftest.$ac_objext
3703 if { (ac_try="$ac_compile"
3704 case "(($ac_try" in
3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3707 esac
3708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3709 $as_echo "$ac_try_echo") >&5
3710 (eval "$ac_compile") 2>conftest.er1
3711 ac_status=$?
3712 grep -v '^ *+' conftest.er1 >conftest.err
3713 rm -f conftest.er1
3714 cat conftest.err >&5
3715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); } && {
3717 test -z "$ac_c_werror_flag" ||
3718 test ! -s conftest.err
3719 } && test -s conftest.$ac_objext; then
3965 ac_cv_prog_cc_g=yes 3720 ac_cv_prog_cc_g=yes
3966 else 3721 else
3967 CFLAGS="" 3722 $as_echo "$as_me: failed program was:" >&5
3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3723 sed 's/^/| /' conftest.$ac_ext >&5
3724
3725 CFLAGS=""
3726 cat >conftest.$ac_ext <<_ACEOF
3727 /* confdefs.h. */
3728 _ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3969 /* end confdefs.h. */ 3731 /* end confdefs.h. */
3970 3732
3971 int 3733 int
3972 main () 3734 main ()
3973 { 3735 {
3974 3736
3975 ; 3737 ;
3976 return 0; 3738 return 0;
3977 } 3739 }
3978 _ACEOF 3740 _ACEOF
3979 if ac_fn_c_try_compile "$LINENO"; then : 3741 rm -f conftest.$ac_objext
3980 3742 if { (ac_try="$ac_compile"
3981 else 3743 case "(($ac_try" in
3982 ac_c_werror_flag=$ac_save_c_werror_flag 3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3746 esac
3747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3748 $as_echo "$ac_try_echo") >&5
3749 (eval "$ac_compile") 2>conftest.er1
3750 ac_status=$?
3751 grep -v '^ *+' conftest.er1 >conftest.err
3752 rm -f conftest.er1
3753 cat conftest.err >&5
3754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } && {
3756 test -z "$ac_c_werror_flag" ||
3757 test ! -s conftest.err
3758 } && test -s conftest.$ac_objext; then
3759 :
3760 else
3761 $as_echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3763
3764 ac_c_werror_flag=$ac_save_c_werror_flag
3983 CFLAGS="-g" 3765 CFLAGS="-g"
3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3766 cat >conftest.$ac_ext <<_ACEOF
3767 /* confdefs.h. */
3768 _ACEOF
3769 cat confdefs.h >>conftest.$ac_ext
3770 cat >>conftest.$ac_ext <<_ACEOF
3985 /* end confdefs.h. */ 3771 /* end confdefs.h. */
3986 3772
3987 int 3773 int
3988 main () 3774 main ()
3989 { 3775 {
3990 3776
3991 ; 3777 ;
3992 return 0; 3778 return 0;
3993 } 3779 }
3994 _ACEOF 3780 _ACEOF
3995 if ac_fn_c_try_compile "$LINENO"; then : 3781 rm -f conftest.$ac_objext
3782 if { (ac_try="$ac_compile"
3783 case "(($ac_try" in
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3786 esac
3787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3788 $as_echo "$ac_try_echo") >&5
3789 (eval "$ac_compile") 2>conftest.er1
3790 ac_status=$?
3791 grep -v '^ *+' conftest.er1 >conftest.err
3792 rm -f conftest.er1
3793 cat conftest.err >&5
3794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } && {
3796 test -z "$ac_c_werror_flag" ||
3797 test ! -s conftest.err
3798 } && test -s conftest.$ac_objext; then
3996 ac_cv_prog_cc_g=yes 3799 ac_cv_prog_cc_g=yes
3997 fi 3800 else
3801 $as_echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3803
3804
3805 fi
3806
3998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3999 fi 3808 fi
3809
4000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4001 fi 3811 fi
3812
4002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4003 ac_c_werror_flag=$ac_save_c_werror_flag 3814 ac_c_werror_flag=$ac_save_c_werror_flag
4004 fi 3815 fi
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3816 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4006 $as_echo "$ac_cv_prog_cc_g" >&6; } 3817 $as_echo "$ac_cv_prog_cc_g" >&6; }
4007 if test "$ac_test_CFLAGS" = set; then 3818 if test "$ac_test_CFLAGS" = set; then
4008 CFLAGS=$ac_save_CFLAGS 3819 CFLAGS=$ac_save_CFLAGS
4009 elif test $ac_cv_prog_cc_g = yes; then 3820 elif test $ac_cv_prog_cc_g = yes; then
4010 if test "$GCC" = yes; then 3821 if test "$GCC" = yes; then
4017 CFLAGS="-O2" 3828 CFLAGS="-O2"
4018 else 3829 else
4019 CFLAGS= 3830 CFLAGS=
4020 fi 3831 fi
4021 fi 3832 fi
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3833 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4023 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3834 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4024 if test "${ac_cv_prog_cc_c89+set}" = set; then : 3835 if test "${ac_cv_prog_cc_c89+set}" = set; then
4025 $as_echo_n "(cached) " >&6 3836 $as_echo_n "(cached) " >&6
4026 else 3837 else
4027 ac_cv_prog_cc_c89=no 3838 ac_cv_prog_cc_c89=no
4028 ac_save_CC=$CC 3839 ac_save_CC=$CC
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3840 cat >conftest.$ac_ext <<_ACEOF
3841 /* confdefs.h. */
3842 _ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h. */ 3845 /* end confdefs.h. */
4031 #include <stdarg.h> 3846 #include <stdarg.h>
4032 #include <stdio.h> 3847 #include <stdio.h>
4033 #include <sys/types.h> 3848 #include <sys/types.h>
4034 #include <sys/stat.h> 3849 #include <sys/stat.h>
4081 _ACEOF 3896 _ACEOF
4082 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3897 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4083 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3898 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4084 do 3899 do
4085 CC="$ac_save_CC $ac_arg" 3900 CC="$ac_save_CC $ac_arg"
4086 if ac_fn_c_try_compile "$LINENO"; then : 3901 rm -f conftest.$ac_objext
3902 if { (ac_try="$ac_compile"
3903 case "(($ac_try" in
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3906 esac
3907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3908 $as_echo "$ac_try_echo") >&5
3909 (eval "$ac_compile") 2>conftest.er1
3910 ac_status=$?
3911 grep -v '^ *+' conftest.er1 >conftest.err
3912 rm -f conftest.er1
3913 cat conftest.err >&5
3914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } && {
3916 test -z "$ac_c_werror_flag" ||
3917 test ! -s conftest.err
3918 } && test -s conftest.$ac_objext; then
4087 ac_cv_prog_cc_c89=$ac_arg 3919 ac_cv_prog_cc_c89=$ac_arg
4088 fi 3920 else
3921 $as_echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3923
3924
3925 fi
3926
4089 rm -f core conftest.err conftest.$ac_objext 3927 rm -f core conftest.err conftest.$ac_objext
4090 test "x$ac_cv_prog_cc_c89" != "xno" && break 3928 test "x$ac_cv_prog_cc_c89" != "xno" && break
4091 done 3929 done
4092 rm -f conftest.$ac_ext 3930 rm -f conftest.$ac_ext
4093 CC=$ac_save_CC 3931 CC=$ac_save_CC
4094 3932
4095 fi 3933 fi
4096 # AC_CACHE_VAL 3934 # AC_CACHE_VAL
4097 case "x$ac_cv_prog_cc_c89" in 3935 case "x$ac_cv_prog_cc_c89" in
4098 x) 3936 x)
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3937 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4100 $as_echo "none needed" >&6; } ;; 3938 $as_echo "none needed" >&6; } ;;
4101 xno) 3939 xno)
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3940 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4103 $as_echo "unsupported" >&6; } ;; 3941 $as_echo "unsupported" >&6; } ;;
4104 *) 3942 *)
4105 CC="$CC $ac_cv_prog_cc_c89" 3943 CC="$CC $ac_cv_prog_cc_c89"
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3944 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4107 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3945 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4108 esac 3946 esac
4109 if test "x$ac_cv_prog_cc_c89" != xno; then : 3947
4110
4111 fi
4112 3948
4113 ac_ext=c 3949 ac_ext=c
4114 ac_cpp='$CPP $CPPFLAGS' 3950 ac_cpp='$CPP $CPPFLAGS'
4115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4124 3960
4125 ## If not using gcc, and on Solaris, and no CPP specified, see if 3961 ## If not using gcc, and on Solaris, and no CPP specified, see if
4126 ## using a Sun compiler, which needs -Xs to prevent whitespace. 3962 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4127 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \ 3963 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4128 test x"$CPP" = x; then 3964 test x"$CPP" = x; then
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5 3965 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
4130 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; } 3966 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4131 3967
4132 if test "${emacs_cv_sunpro_c+set}" = set; then : 3968 if test "${emacs_cv_sunpro_c+set}" = set; then
4133 $as_echo_n "(cached) " >&6 3969 $as_echo_n "(cached) " >&6
4134 else 3970 else
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3971 cat >conftest.$ac_ext <<_ACEOF
3972 /* confdefs.h. */
3973 _ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h. */ 3976 /* end confdefs.h. */
4137 3977
4138 int 3978 int
4139 main () 3979 main ()
4140 { 3980 {
4144 3984
4145 ; 3985 ;
4146 return 0; 3986 return 0;
4147 } 3987 }
4148 _ACEOF 3988 _ACEOF
4149 if ac_fn_c_try_link "$LINENO"; then : 3989 rm -f conftest.$ac_objext conftest$ac_exeext
3990 if { (ac_try="$ac_link"
3991 case "(($ac_try" in
3992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3993 *) ac_try_echo=$ac_try;;
3994 esac
3995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3996 $as_echo "$ac_try_echo") >&5
3997 (eval "$ac_link") 2>conftest.er1
3998 ac_status=$?
3999 grep -v '^ *+' conftest.er1 >conftest.err
4000 rm -f conftest.er1
4001 cat conftest.err >&5
4002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); } && {
4004 test -z "$ac_c_werror_flag" ||
4005 test ! -s conftest.err
4006 } && test -s conftest$ac_exeext && {
4007 test "$cross_compiling" = yes ||
4008 $as_test_x conftest$ac_exeext
4009 }; then
4150 emacs_cv_sunpro_c=yes 4010 emacs_cv_sunpro_c=yes
4151 else 4011 else
4152 emacs_cv_sunpro_c=no 4012 $as_echo "$as_me: failed program was:" >&5
4153 fi 4013 sed 's/^/| /' conftest.$ac_ext >&5
4154 rm -f core conftest.err conftest.$ac_objext \ 4014
4155 conftest$ac_exeext conftest.$ac_ext 4015 emacs_cv_sunpro_c=no
4156 fi 4016 fi
4157 4017
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5 4018 rm -rf conftest.dSYM
4019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4020 conftest$ac_exeext conftest.$ac_ext
4021 fi
4022
4023 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4159 $as_echo "$emacs_cv_sunpro_c" >&6; } 4024 $as_echo "$emacs_cv_sunpro_c" >&6; }
4160 4025
4161 if test x"$emacs_cv_sunpro_c" = xyes; then 4026 if test x"$emacs_cv_sunpro_c" = xyes; then
4162 NON_GNU_CPP="$CC -E -Xs" 4027 NON_GNU_CPP="$CC -E -Xs"
4163 fi 4028 fi
4193 ac_ext=c 4058 ac_ext=c
4194 ac_cpp='$CPP $CPPFLAGS' 4059 ac_cpp='$CPP $CPPFLAGS'
4195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4063 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4199 $as_echo_n "checking how to run the C preprocessor... " >&6; } 4064 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4200 # On Suns, sometimes $CPP names a directory. 4065 # On Suns, sometimes $CPP names a directory.
4201 if test -n "$CPP" && test -d "$CPP"; then 4066 if test -n "$CPP" && test -d "$CPP"; then
4202 CPP= 4067 CPP=
4203 fi 4068 fi
4204 if test -z "$CPP"; then 4069 if test -z "$CPP"; then
4205 if test "${ac_cv_prog_CPP+set}" = set; then : 4070 if test "${ac_cv_prog_CPP+set}" = set; then
4206 $as_echo_n "(cached) " >&6 4071 $as_echo_n "(cached) " >&6
4207 else 4072 else
4208 # Double quotes because CPP needs to be expanded 4073 # Double quotes because CPP needs to be expanded
4209 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4074 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4210 do 4075 do
4215 # with a fresh cross-compiler works. 4080 # with a fresh cross-compiler works.
4216 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4217 # <limits.h> exists even on freestanding compilers. 4082 # <limits.h> exists even on freestanding compilers.
4218 # On the NeXT, cc -E runs the code through the compiler's parser, 4083 # On the NeXT, cc -E runs the code through the compiler's parser,
4219 # not just through cpp. "Syntax error" is here to catch this case. 4084 # not just through cpp. "Syntax error" is here to catch this case.
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4085 cat >conftest.$ac_ext <<_ACEOF
4086 /* confdefs.h. */
4087 _ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4221 /* end confdefs.h. */ 4090 /* end confdefs.h. */
4222 #ifdef __STDC__ 4091 #ifdef __STDC__
4223 # include <limits.h> 4092 # include <limits.h>
4224 #else 4093 #else
4225 # include <assert.h> 4094 # include <assert.h>
4226 #endif 4095 #endif
4227 Syntax error 4096 Syntax error
4228 _ACEOF 4097 _ACEOF
4229 if ac_fn_c_try_cpp "$LINENO"; then : 4098 if { (ac_try="$ac_cpp conftest.$ac_ext"
4230 4099 case "(($ac_try" in
4231 else 4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4102 esac
4103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4104 $as_echo "$ac_try_echo") >&5
4105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4106 ac_status=$?
4107 grep -v '^ *+' conftest.er1 >conftest.err
4108 rm -f conftest.er1
4109 cat conftest.err >&5
4110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); } >/dev/null && {
4112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4113 test ! -s conftest.err
4114 }; then
4115 :
4116 else
4117 $as_echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4119
4232 # Broken: fails on valid input. 4120 # Broken: fails on valid input.
4233 continue 4121 continue
4234 fi 4122 fi
4123
4235 rm -f conftest.err conftest.$ac_ext 4124 rm -f conftest.err conftest.$ac_ext
4236 4125
4237 # OK, works on sane cases. Now check whether nonexistent headers 4126 # OK, works on sane cases. Now check whether nonexistent headers
4238 # can be detected and how. 4127 # can be detected and how.
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4128 cat >conftest.$ac_ext <<_ACEOF
4129 /* confdefs.h. */
4130 _ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h. */ 4133 /* end confdefs.h. */
4241 #include <ac_nonexistent.h> 4134 #include <ac_nonexistent.h>
4242 _ACEOF 4135 _ACEOF
4243 if ac_fn_c_try_cpp "$LINENO"; then : 4136 if { (ac_try="$ac_cpp conftest.$ac_ext"
4137 case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4140 esac
4141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4142 $as_echo "$ac_try_echo") >&5
4143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4144 ac_status=$?
4145 grep -v '^ *+' conftest.er1 >conftest.err
4146 rm -f conftest.er1
4147 cat conftest.err >&5
4148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); } >/dev/null && {
4150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4151 test ! -s conftest.err
4152 }; then
4244 # Broken: success on invalid input. 4153 # Broken: success on invalid input.
4245 continue 4154 continue
4246 else 4155 else
4156 $as_echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4158
4247 # Passes both tests. 4159 # Passes both tests.
4248 ac_preproc_ok=: 4160 ac_preproc_ok=:
4249 break 4161 break
4250 fi 4162 fi
4163
4251 rm -f conftest.err conftest.$ac_ext 4164 rm -f conftest.err conftest.$ac_ext
4252 4165
4253 done 4166 done
4254 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4255 rm -f conftest.err conftest.$ac_ext 4168 rm -f conftest.err conftest.$ac_ext
4256 if $ac_preproc_ok; then : 4169 if $ac_preproc_ok; then
4257 break 4170 break
4258 fi 4171 fi
4259 4172
4260 done 4173 done
4261 ac_cv_prog_CPP=$CPP 4174 ac_cv_prog_CPP=$CPP
4263 fi 4176 fi
4264 CPP=$ac_cv_prog_CPP 4177 CPP=$ac_cv_prog_CPP
4265 else 4178 else
4266 ac_cv_prog_CPP=$CPP 4179 ac_cv_prog_CPP=$CPP
4267 fi 4180 fi
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4181 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4269 $as_echo "$CPP" >&6; } 4182 $as_echo "$CPP" >&6; }
4270 ac_preproc_ok=false 4183 ac_preproc_ok=false
4271 for ac_c_preproc_warn_flag in '' yes 4184 for ac_c_preproc_warn_flag in '' yes
4272 do 4185 do
4273 # Use a header file that comes with gcc, so configuring glibc 4186 # Use a header file that comes with gcc, so configuring glibc
4274 # with a fresh cross-compiler works. 4187 # with a fresh cross-compiler works.
4275 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4276 # <limits.h> exists even on freestanding compilers. 4189 # <limits.h> exists even on freestanding compilers.
4277 # On the NeXT, cc -E runs the code through the compiler's parser, 4190 # On the NeXT, cc -E runs the code through the compiler's parser,
4278 # not just through cpp. "Syntax error" is here to catch this case. 4191 # not just through cpp. "Syntax error" is here to catch this case.
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4192 cat >conftest.$ac_ext <<_ACEOF
4193 /* confdefs.h. */
4194 _ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h. */ 4197 /* end confdefs.h. */
4281 #ifdef __STDC__ 4198 #ifdef __STDC__
4282 # include <limits.h> 4199 # include <limits.h>
4283 #else 4200 #else
4284 # include <assert.h> 4201 # include <assert.h>
4285 #endif 4202 #endif
4286 Syntax error 4203 Syntax error
4287 _ACEOF 4204 _ACEOF
4288 if ac_fn_c_try_cpp "$LINENO"; then : 4205 if { (ac_try="$ac_cpp conftest.$ac_ext"
4289 4206 case "(($ac_try" in
4290 else 4207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208 *) ac_try_echo=$ac_try;;
4209 esac
4210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4211 $as_echo "$ac_try_echo") >&5
4212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4213 ac_status=$?
4214 grep -v '^ *+' conftest.er1 >conftest.err
4215 rm -f conftest.er1
4216 cat conftest.err >&5
4217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } >/dev/null && {
4219 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4220 test ! -s conftest.err
4221 }; then
4222 :
4223 else
4224 $as_echo "$as_me: failed program was:" >&5
4225 sed 's/^/| /' conftest.$ac_ext >&5
4226
4291 # Broken: fails on valid input. 4227 # Broken: fails on valid input.
4292 continue 4228 continue
4293 fi 4229 fi
4230
4294 rm -f conftest.err conftest.$ac_ext 4231 rm -f conftest.err conftest.$ac_ext
4295 4232
4296 # OK, works on sane cases. Now check whether nonexistent headers 4233 # OK, works on sane cases. Now check whether nonexistent headers
4297 # can be detected and how. 4234 # can be detected and how.
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4235 cat >conftest.$ac_ext <<_ACEOF
4236 /* confdefs.h. */
4237 _ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4299 /* end confdefs.h. */ 4240 /* end confdefs.h. */
4300 #include <ac_nonexistent.h> 4241 #include <ac_nonexistent.h>
4301 _ACEOF 4242 _ACEOF
4302 if ac_fn_c_try_cpp "$LINENO"; then : 4243 if { (ac_try="$ac_cpp conftest.$ac_ext"
4244 case "(($ac_try" in
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4247 esac
4248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4249 $as_echo "$ac_try_echo") >&5
4250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4251 ac_status=$?
4252 grep -v '^ *+' conftest.er1 >conftest.err
4253 rm -f conftest.er1
4254 cat conftest.err >&5
4255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } >/dev/null && {
4257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4258 test ! -s conftest.err
4259 }; then
4303 # Broken: success on invalid input. 4260 # Broken: success on invalid input.
4304 continue 4261 continue
4305 else 4262 else
4263 $as_echo "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4265
4306 # Passes both tests. 4266 # Passes both tests.
4307 ac_preproc_ok=: 4267 ac_preproc_ok=:
4308 break 4268 break
4309 fi 4269 fi
4270
4310 rm -f conftest.err conftest.$ac_ext 4271 rm -f conftest.err conftest.$ac_ext
4311 4272
4312 done 4273 done
4313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4274 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4314 rm -f conftest.err conftest.$ac_ext 4275 rm -f conftest.err conftest.$ac_ext
4315 if $ac_preproc_ok; then : 4276 if $ac_preproc_ok; then
4316 4277 :
4317 else 4278 else
4318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4279 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4280 See \`config.log' for more details." >&5
4320 as_fn_error "C preprocessor \"$CPP\" fails sanity check 4281 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4321 See \`config.log' for more details." "$LINENO" 5; } 4282 See \`config.log' for more details." >&2;}
4283 { (exit 1); exit 1; }; }
4322 fi 4284 fi
4323 4285
4324 ac_ext=c 4286 ac_ext=c
4325 ac_cpp='$CPP $CPPFLAGS' 4287 ac_cpp='$CPP $CPPFLAGS'
4326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4329 4291
4330 4292
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4293 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4332 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4294 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4333 if test "${ac_cv_path_GREP+set}" = set; then : 4295 if test "${ac_cv_path_GREP+set}" = set; then
4334 $as_echo_n "(cached) " >&6 4296 $as_echo_n "(cached) " >&6
4335 else 4297 else
4336 if test -z "$GREP"; then 4298 if test -z "$GREP"; then
4337 ac_path_GREP_found=false 4299 ac_path_GREP_found=false
4338 # Loop through the user's path and test for each of PROGNAME-LIST 4300 # Loop through the user's path and test for each of PROGNAME-LIST
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4302 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4341 do 4303 do
4342 IFS=$as_save_IFS 4304 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=. 4305 test -z "$as_dir" && as_dir=.
4344 for ac_prog in grep ggrep; do 4306 for ac_prog in grep ggrep; do
4345 for ac_exec_ext in '' $ac_executable_extensions; do 4307 for ac_exec_ext in '' $ac_executable_extensions; do
4346 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4308 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4347 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4309 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4348 # Check for GNU ac_path_GREP and select it if it is found. 4310 # Check for GNU ac_path_GREP and select it if it is found.
4349 # Check for GNU $ac_path_GREP 4311 # Check for GNU $ac_path_GREP
4359 mv "conftest.tmp" "conftest.in" 4321 mv "conftest.tmp" "conftest.in"
4360 cp "conftest.in" "conftest.nl" 4322 cp "conftest.in" "conftest.nl"
4361 $as_echo 'GREP' >> "conftest.nl" 4323 $as_echo 'GREP' >> "conftest.nl"
4362 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4324 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4363 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4325 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4364 as_fn_arith $ac_count + 1 && ac_count=$as_val 4326 ac_count=`expr $ac_count + 1`
4365 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4327 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4366 # Best one so far, save it but keep looking for a better one 4328 # Best one so far, save it but keep looking for a better one
4367 ac_cv_path_GREP="$ac_path_GREP" 4329 ac_cv_path_GREP="$ac_path_GREP"
4368 ac_path_GREP_max=$ac_count 4330 ac_path_GREP_max=$ac_count
4369 fi 4331 fi
4374 esac 4336 esac
4375 4337
4376 $ac_path_GREP_found && break 3 4338 $ac_path_GREP_found && break 3
4377 done 4339 done
4378 done 4340 done
4379 done 4341 done
4380 IFS=$as_save_IFS 4342 IFS=$as_save_IFS
4381 if test -z "$ac_cv_path_GREP"; then 4343 if test -z "$ac_cv_path_GREP"; then
4382 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4344 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4345 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4346 { (exit 1); exit 1; }; }
4383 fi 4347 fi
4384 else 4348 else
4385 ac_cv_path_GREP=$GREP 4349 ac_cv_path_GREP=$GREP
4386 fi 4350 fi
4387 4351
4388 fi 4352 fi
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4353 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4390 $as_echo "$ac_cv_path_GREP" >&6; } 4354 $as_echo "$ac_cv_path_GREP" >&6; }
4391 GREP="$ac_cv_path_GREP" 4355 GREP="$ac_cv_path_GREP"
4392 4356
4393 4357
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4358 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4395 $as_echo_n "checking for egrep... " >&6; } 4359 $as_echo_n "checking for egrep... " >&6; }
4396 if test "${ac_cv_path_EGREP+set}" = set; then : 4360 if test "${ac_cv_path_EGREP+set}" = set; then
4397 $as_echo_n "(cached) " >&6 4361 $as_echo_n "(cached) " >&6
4398 else 4362 else
4399 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4363 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4400 then ac_cv_path_EGREP="$GREP -E" 4364 then ac_cv_path_EGREP="$GREP -E"
4401 else 4365 else
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4370 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4407 do 4371 do
4408 IFS=$as_save_IFS 4372 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=. 4373 test -z "$as_dir" && as_dir=.
4410 for ac_prog in egrep; do 4374 for ac_prog in egrep; do
4411 for ac_exec_ext in '' $ac_executable_extensions; do 4375 for ac_exec_ext in '' $ac_executable_extensions; do
4412 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4376 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4413 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4377 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4414 # Check for GNU ac_path_EGREP and select it if it is found. 4378 # Check for GNU ac_path_EGREP and select it if it is found.
4415 # Check for GNU $ac_path_EGREP 4379 # Check for GNU $ac_path_EGREP
4425 mv "conftest.tmp" "conftest.in" 4389 mv "conftest.tmp" "conftest.in"
4426 cp "conftest.in" "conftest.nl" 4390 cp "conftest.in" "conftest.nl"
4427 $as_echo 'EGREP' >> "conftest.nl" 4391 $as_echo 'EGREP' >> "conftest.nl"
4428 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4392 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4429 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4393 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4430 as_fn_arith $ac_count + 1 && ac_count=$as_val 4394 ac_count=`expr $ac_count + 1`
4431 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4395 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4432 # Best one so far, save it but keep looking for a better one 4396 # Best one so far, save it but keep looking for a better one
4433 ac_cv_path_EGREP="$ac_path_EGREP" 4397 ac_cv_path_EGREP="$ac_path_EGREP"
4434 ac_path_EGREP_max=$ac_count 4398 ac_path_EGREP_max=$ac_count
4435 fi 4399 fi
4440 esac 4404 esac
4441 4405
4442 $ac_path_EGREP_found && break 3 4406 $ac_path_EGREP_found && break 3
4443 done 4407 done
4444 done 4408 done
4445 done 4409 done
4446 IFS=$as_save_IFS 4410 IFS=$as_save_IFS
4447 if test -z "$ac_cv_path_EGREP"; then 4411 if test -z "$ac_cv_path_EGREP"; then
4448 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4412 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4413 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4414 { (exit 1); exit 1; }; }
4449 fi 4415 fi
4450 else 4416 else
4451 ac_cv_path_EGREP=$EGREP 4417 ac_cv_path_EGREP=$EGREP
4452 fi 4418 fi
4453 4419
4454 fi 4420 fi
4455 fi 4421 fi
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4422 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4457 $as_echo "$ac_cv_path_EGREP" >&6; } 4423 $as_echo "$ac_cv_path_EGREP" >&6; }
4458 EGREP="$ac_cv_path_EGREP" 4424 EGREP="$ac_cv_path_EGREP"
4459 4425
4460 4426
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4427 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4462 $as_echo_n "checking for ANSI C header files... " >&6; } 4428 $as_echo_n "checking for ANSI C header files... " >&6; }
4463 if test "${ac_cv_header_stdc+set}" = set; then : 4429 if test "${ac_cv_header_stdc+set}" = set; then
4464 $as_echo_n "(cached) " >&6 4430 $as_echo_n "(cached) " >&6
4465 else 4431 else
4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4432 cat >conftest.$ac_ext <<_ACEOF
4433 /* confdefs.h. */
4434 _ACEOF
4435 cat confdefs.h >>conftest.$ac_ext
4436 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h. */ 4437 /* end confdefs.h. */
4468 #include <stdlib.h> 4438 #include <stdlib.h>
4469 #include <stdarg.h> 4439 #include <stdarg.h>
4470 #include <string.h> 4440 #include <string.h>
4471 #include <float.h> 4441 #include <float.h>
4476 4446
4477 ; 4447 ;
4478 return 0; 4448 return 0;
4479 } 4449 }
4480 _ACEOF 4450 _ACEOF
4481 if ac_fn_c_try_compile "$LINENO"; then : 4451 rm -f conftest.$ac_objext
4452 if { (ac_try="$ac_compile"
4453 case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4456 esac
4457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4458 $as_echo "$ac_try_echo") >&5
4459 (eval "$ac_compile") 2>conftest.er1
4460 ac_status=$?
4461 grep -v '^ *+' conftest.er1 >conftest.err
4462 rm -f conftest.er1
4463 cat conftest.err >&5
4464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } && {
4466 test -z "$ac_c_werror_flag" ||
4467 test ! -s conftest.err
4468 } && test -s conftest.$ac_objext; then
4482 ac_cv_header_stdc=yes 4469 ac_cv_header_stdc=yes
4483 else 4470 else
4484 ac_cv_header_stdc=no 4471 $as_echo "$as_me: failed program was:" >&5
4485 fi 4472 sed 's/^/| /' conftest.$ac_ext >&5
4473
4474 ac_cv_header_stdc=no
4475 fi
4476
4486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4487 4478
4488 if test $ac_cv_header_stdc = yes; then 4479 if test $ac_cv_header_stdc = yes; then
4489 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4480 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4481 cat >conftest.$ac_ext <<_ACEOF
4482 /* confdefs.h. */
4483 _ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4491 /* end confdefs.h. */ 4486 /* end confdefs.h. */
4492 #include <string.h> 4487 #include <string.h>
4493 4488
4494 _ACEOF 4489 _ACEOF
4495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4496 $EGREP "memchr" >/dev/null 2>&1; then : 4491 $EGREP "memchr" >/dev/null 2>&1; then
4497 4492 :
4498 else 4493 else
4499 ac_cv_header_stdc=no 4494 ac_cv_header_stdc=no
4500 fi 4495 fi
4501 rm -f conftest* 4496 rm -f conftest*
4502 4497
4503 fi 4498 fi
4504 4499
4505 if test $ac_cv_header_stdc = yes; then 4500 if test $ac_cv_header_stdc = yes; then
4506 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4501 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4502 cat >conftest.$ac_ext <<_ACEOF
4503 /* confdefs.h. */
4504 _ACEOF
4505 cat confdefs.h >>conftest.$ac_ext
4506 cat >>conftest.$ac_ext <<_ACEOF
4508 /* end confdefs.h. */ 4507 /* end confdefs.h. */
4509 #include <stdlib.h> 4508 #include <stdlib.h>
4510 4509
4511 _ACEOF 4510 _ACEOF
4512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4513 $EGREP "free" >/dev/null 2>&1; then : 4512 $EGREP "free" >/dev/null 2>&1; then
4514 4513 :
4515 else 4514 else
4516 ac_cv_header_stdc=no 4515 ac_cv_header_stdc=no
4517 fi 4516 fi
4518 rm -f conftest* 4517 rm -f conftest*
4519 4518
4520 fi 4519 fi
4521 4520
4522 if test $ac_cv_header_stdc = yes; then 4521 if test $ac_cv_header_stdc = yes; then
4523 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4522 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4524 if test "$cross_compiling" = yes; then : 4523 if test "$cross_compiling" = yes; then
4525 : 4524 :
4526 else 4525 else
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4526 cat >conftest.$ac_ext <<_ACEOF
4527 /* confdefs.h. */
4528 _ACEOF
4529 cat confdefs.h >>conftest.$ac_ext
4530 cat >>conftest.$ac_ext <<_ACEOF
4528 /* end confdefs.h. */ 4531 /* end confdefs.h. */
4529 #include <ctype.h> 4532 #include <ctype.h>
4530 #include <stdlib.h> 4533 #include <stdlib.h>
4531 #if ((' ' & 0x0FF) == 0x020) 4534 #if ((' ' & 0x0FF) == 0x020)
4532 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4535 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4549 || toupper (i) != TOUPPER (i)) 4552 || toupper (i) != TOUPPER (i))
4550 return 2; 4553 return 2;
4551 return 0; 4554 return 0;
4552 } 4555 }
4553 _ACEOF 4556 _ACEOF
4554 if ac_fn_c_try_run "$LINENO"; then : 4557 rm -f conftest$ac_exeext
4555 4558 if { (ac_try="$ac_link"
4556 else 4559 case "(($ac_try" in
4557 ac_cv_header_stdc=no 4560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4558 fi 4561 *) ac_try_echo=$ac_try;;
4559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4562 esac
4560 conftest.$ac_objext conftest.beam conftest.$ac_ext 4563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4561 fi 4564 $as_echo "$ac_try_echo") >&5
4562 4565 (eval "$ac_link") 2>&5
4563 fi 4566 ac_status=$?
4564 fi 4567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4569 { (case "(($ac_try" in
4570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571 *) ac_try_echo=$ac_try;;
4572 esac
4573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4574 $as_echo "$ac_try_echo") >&5
4575 (eval "$ac_try") 2>&5
4576 ac_status=$?
4577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; }; then
4579 :
4580 else
4581 $as_echo "$as_me: program exited with status $ac_status" >&5
4582 $as_echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.$ac_ext >&5
4584
4585 ( exit $ac_status )
4586 ac_cv_header_stdc=no
4587 fi
4588 rm -rf conftest.dSYM
4589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4590 fi
4591
4592
4593 fi
4594 fi
4595 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4566 $as_echo "$ac_cv_header_stdc" >&6; } 4596 $as_echo "$ac_cv_header_stdc" >&6; }
4567 if test $ac_cv_header_stdc = yes; then 4597 if test $ac_cv_header_stdc = yes; then
4568 4598
4569 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 4599 cat >>confdefs.h <<\_ACEOF
4600 #define STDC_HEADERS 1
4601 _ACEOF
4570 4602
4571 fi 4603 fi
4572 4604
4573 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4605 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4606
4607
4608
4609
4610
4611
4612
4613
4614
4574 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4615 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4575 inttypes.h stdint.h unistd.h 4616 inttypes.h stdint.h unistd.h
4576 do : 4617 do
4577 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4578 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4619 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4579 " 4620 $as_echo_n "checking for $ac_header... " >&6; }
4580 eval as_val=\$$as_ac_Header 4621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4581 if test "x$as_val" = x""yes; then : 4622 $as_echo_n "(cached) " >&6
4623 else
4624 cat >conftest.$ac_ext <<_ACEOF
4625 /* confdefs.h. */
4626 _ACEOF
4627 cat confdefs.h >>conftest.$ac_ext
4628 cat >>conftest.$ac_ext <<_ACEOF
4629 /* end confdefs.h. */
4630 $ac_includes_default
4631
4632 #include <$ac_header>
4633 _ACEOF
4634 rm -f conftest.$ac_objext
4635 if { (ac_try="$ac_compile"
4636 case "(($ac_try" in
4637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4638 *) ac_try_echo=$ac_try;;
4639 esac
4640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4641 $as_echo "$ac_try_echo") >&5
4642 (eval "$ac_compile") 2>conftest.er1
4643 ac_status=$?
4644 grep -v '^ *+' conftest.er1 >conftest.err
4645 rm -f conftest.er1
4646 cat conftest.err >&5
4647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } && {
4649 test -z "$ac_c_werror_flag" ||
4650 test ! -s conftest.err
4651 } && test -s conftest.$ac_objext; then
4652 eval "$as_ac_Header=yes"
4653 else
4654 $as_echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.$ac_ext >&5
4656
4657 eval "$as_ac_Header=no"
4658 fi
4659
4660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4661 fi
4662 ac_res=`eval 'as_val=${'$as_ac_Header'}
4663 $as_echo "$as_val"'`
4664 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4665 $as_echo "$ac_res" >&6; }
4666 if test `eval 'as_val=${'$as_ac_Header'}
4667 $as_echo "$as_val"'` = yes; then
4582 cat >>confdefs.h <<_ACEOF 4668 cat >>confdefs.h <<_ACEOF
4583 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4669 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4584 _ACEOF 4670 _ACEOF
4585 4671
4586 fi 4672 fi
4587 4673
4588 done 4674 done
4589 4675
4590 4676
4591 4677
4592 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4678 if test "${ac_cv_header_minix_config_h+set}" = set; then
4593 if test "x$ac_cv_header_minix_config_h" = x""yes; then : 4679 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4680 $as_echo_n "checking for minix/config.h... " >&6; }
4681 if test "${ac_cv_header_minix_config_h+set}" = set; then
4682 $as_echo_n "(cached) " >&6
4683 fi
4684 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4685 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4686 else
4687 # Is the header compilable?
4688 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4689 $as_echo_n "checking minix/config.h usability... " >&6; }
4690 cat >conftest.$ac_ext <<_ACEOF
4691 /* confdefs.h. */
4692 _ACEOF
4693 cat confdefs.h >>conftest.$ac_ext
4694 cat >>conftest.$ac_ext <<_ACEOF
4695 /* end confdefs.h. */
4696 $ac_includes_default
4697 #include <minix/config.h>
4698 _ACEOF
4699 rm -f conftest.$ac_objext
4700 if { (ac_try="$ac_compile"
4701 case "(($ac_try" in
4702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4703 *) ac_try_echo=$ac_try;;
4704 esac
4705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4706 $as_echo "$ac_try_echo") >&5
4707 (eval "$ac_compile") 2>conftest.er1
4708 ac_status=$?
4709 grep -v '^ *+' conftest.er1 >conftest.err
4710 rm -f conftest.er1
4711 cat conftest.err >&5
4712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } && {
4714 test -z "$ac_c_werror_flag" ||
4715 test ! -s conftest.err
4716 } && test -s conftest.$ac_objext; then
4717 ac_header_compiler=yes
4718 else
4719 $as_echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.$ac_ext >&5
4721
4722 ac_header_compiler=no
4723 fi
4724
4725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4727 $as_echo "$ac_header_compiler" >&6; }
4728
4729 # Is the header present?
4730 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4731 $as_echo_n "checking minix/config.h presence... " >&6; }
4732 cat >conftest.$ac_ext <<_ACEOF
4733 /* confdefs.h. */
4734 _ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4738 #include <minix/config.h>
4739 _ACEOF
4740 if { (ac_try="$ac_cpp conftest.$ac_ext"
4741 case "(($ac_try" in
4742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4744 esac
4745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4746 $as_echo "$ac_try_echo") >&5
4747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4748 ac_status=$?
4749 grep -v '^ *+' conftest.er1 >conftest.err
4750 rm -f conftest.er1
4751 cat conftest.err >&5
4752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); } >/dev/null && {
4754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4755 test ! -s conftest.err
4756 }; then
4757 ac_header_preproc=yes
4758 else
4759 $as_echo "$as_me: failed program was:" >&5
4760 sed 's/^/| /' conftest.$ac_ext >&5
4761
4762 ac_header_preproc=no
4763 fi
4764
4765 rm -f conftest.err conftest.$ac_ext
4766 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4767 $as_echo "$ac_header_preproc" >&6; }
4768
4769 # So? What about this header?
4770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4771 yes:no: )
4772 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4773 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4774 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4775 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4776 ac_header_preproc=yes
4777 ;;
4778 no:yes:* )
4779 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4780 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4781 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4782 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4783 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4784 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4785 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4786 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4787 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4788 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4789 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4790 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4791
4792 ;;
4793 esac
4794 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4795 $as_echo_n "checking for minix/config.h... " >&6; }
4796 if test "${ac_cv_header_minix_config_h+set}" = set; then
4797 $as_echo_n "(cached) " >&6
4798 else
4799 ac_cv_header_minix_config_h=$ac_header_preproc
4800 fi
4801 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4802 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4803
4804 fi
4805 if test $ac_cv_header_minix_config_h = yes; then
4594 MINIX=yes 4806 MINIX=yes
4595 else 4807 else
4596 MINIX= 4808 MINIX=
4597 fi 4809 fi
4598 4810
4599 4811
4600 if test "$MINIX" = yes; then 4812 if test "$MINIX" = yes; then
4601 4813
4602 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4814 cat >>confdefs.h <<\_ACEOF
4603 4815 #define _POSIX_SOURCE 1
4604 4816 _ACEOF
4605 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4817
4606 4818
4607 4819 cat >>confdefs.h <<\_ACEOF
4608 $as_echo "#define _MINIX 1" >>confdefs.h 4820 #define _POSIX_1_SOURCE 2
4821 _ACEOF
4822
4823
4824 cat >>confdefs.h <<\_ACEOF
4825 #define _MINIX 1
4826 _ACEOF
4609 4827
4610 fi 4828 fi
4611 4829
4612 4830
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4831
4832 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4614 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4833 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4615 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 4834 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4616 $as_echo_n "(cached) " >&6 4835 $as_echo_n "(cached) " >&6
4617 else 4836 else
4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4837 cat >conftest.$ac_ext <<_ACEOF
4838 /* confdefs.h. */
4839 _ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4619 /* end confdefs.h. */ 4842 /* end confdefs.h. */
4620 4843
4621 # define __EXTENSIONS__ 1 4844 # define __EXTENSIONS__ 1
4622 $ac_includes_default 4845 $ac_includes_default
4623 int 4846 int
4626 4849
4627 ; 4850 ;
4628 return 0; 4851 return 0;
4629 } 4852 }
4630 _ACEOF 4853 _ACEOF
4631 if ac_fn_c_try_compile "$LINENO"; then : 4854 rm -f conftest.$ac_objext
4855 if { (ac_try="$ac_compile"
4856 case "(($ac_try" in
4857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858 *) ac_try_echo=$ac_try;;
4859 esac
4860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4861 $as_echo "$ac_try_echo") >&5
4862 (eval "$ac_compile") 2>conftest.er1
4863 ac_status=$?
4864 grep -v '^ *+' conftest.er1 >conftest.err
4865 rm -f conftest.er1
4866 cat conftest.err >&5
4867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } && {
4869 test -z "$ac_c_werror_flag" ||
4870 test ! -s conftest.err
4871 } && test -s conftest.$ac_objext; then
4632 ac_cv_safe_to_define___extensions__=yes 4872 ac_cv_safe_to_define___extensions__=yes
4633 else 4873 else
4634 ac_cv_safe_to_define___extensions__=no 4874 $as_echo "$as_me: failed program was:" >&5
4635 fi 4875 sed 's/^/| /' conftest.$ac_ext >&5
4876
4877 ac_cv_safe_to_define___extensions__=no
4878 fi
4879
4636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4637 fi 4881 fi
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4882 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4639 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4883 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4640 test $ac_cv_safe_to_define___extensions__ = yes && 4884 test $ac_cv_safe_to_define___extensions__ = yes &&
4641 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4885 cat >>confdefs.h <<\_ACEOF
4642 4886 #define __EXTENSIONS__ 1
4643 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4887 _ACEOF
4644 4888
4645 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4889 cat >>confdefs.h <<\_ACEOF
4646 4890 #define _ALL_SOURCE 1
4647 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4891 _ACEOF
4648 4892
4649 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4893 cat >>confdefs.h <<\_ACEOF
4894 #define _GNU_SOURCE 1
4895 _ACEOF
4896
4897 cat >>confdefs.h <<\_ACEOF
4898 #define _POSIX_PTHREAD_SEMANTICS 1
4899 _ACEOF
4900
4901 cat >>confdefs.h <<\_ACEOF
4902 #define _TANDEM_SOURCE 1
4903 _ACEOF
4650 4904
4651 4905
4652 4906
4653 ### Use -Wno-pointer-sign if the compiler supports it 4907 ### Use -Wno-pointer-sign if the compiler supports it
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5 4908 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4655 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; } 4909 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4656 SAVE_CFLAGS="$CFLAGS" 4910 SAVE_CFLAGS="$CFLAGS"
4657 CFLAGS="$CFLAGS -Wno-pointer-sign" 4911 CFLAGS="$CFLAGS -Wno-pointer-sign"
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4912 cat >conftest.$ac_ext <<_ACEOF
4913 /* confdefs.h. */
4914 _ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4659 /* end confdefs.h. */ 4917 /* end confdefs.h. */
4660 4918
4661 int 4919 int
4662 main () 4920 main ()
4663 { 4921 {
4664 4922
4665 ; 4923 ;
4666 return 0; 4924 return 0;
4667 } 4925 }
4668 _ACEOF 4926 _ACEOF
4669 if ac_fn_c_try_compile "$LINENO"; then : 4927 rm -f conftest.$ac_objext
4928 if { (ac_try="$ac_compile"
4929 case "(($ac_try" in
4930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4931 *) ac_try_echo=$ac_try;;
4932 esac
4933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4934 $as_echo "$ac_try_echo") >&5
4935 (eval "$ac_compile") 2>conftest.er1
4936 ac_status=$?
4937 grep -v '^ *+' conftest.er1 >conftest.err
4938 rm -f conftest.er1
4939 cat conftest.err >&5
4940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } && {
4942 test -z "$ac_c_werror_flag" ||
4943 test ! -s conftest.err
4944 } && test -s conftest.$ac_objext; then
4670 has_option=yes 4945 has_option=yes
4671 else 4946 else
4672 has_option=no 4947 $as_echo "$as_me: failed program was:" >&5
4673 fi 4948 sed 's/^/| /' conftest.$ac_ext >&5
4949
4950 has_option=no
4951 fi
4952
4674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675 if test $has_option = yes; then 4954 if test $has_option = yes; then
4676 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH" 4955 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4677 fi 4956 fi
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 4957 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4679 $as_echo "$has_option" >&6; } 4958 $as_echo "$has_option" >&6; }
4680 CFLAGS="$SAVE_CFLAGS" 4959 CFLAGS="$SAVE_CFLAGS"
4681 unset has_option 4960 unset has_option
4682 unset SAVE_CFLAGS 4961 unset SAVE_CFLAGS
4683 4962
4684 ### Use -Wdeclaration-after-statement if the compiler supports it 4963 ### Use -Wdeclaration-after-statement if the compiler supports it
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5 4964 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4686 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; } 4965 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4687 SAVE_CFLAGS="$CFLAGS" 4966 SAVE_CFLAGS="$CFLAGS"
4688 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 4967 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4968 cat >conftest.$ac_ext <<_ACEOF
4969 /* confdefs.h. */
4970 _ACEOF
4971 cat confdefs.h >>conftest.$ac_ext
4972 cat >>conftest.$ac_ext <<_ACEOF
4690 /* end confdefs.h. */ 4973 /* end confdefs.h. */
4691 4974
4692 int 4975 int
4693 main () 4976 main ()
4694 { 4977 {
4695 4978
4696 ; 4979 ;
4697 return 0; 4980 return 0;
4698 } 4981 }
4699 _ACEOF 4982 _ACEOF
4700 if ac_fn_c_try_compile "$LINENO"; then : 4983 rm -f conftest.$ac_objext
4984 if { (ac_try="$ac_compile"
4985 case "(($ac_try" in
4986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4987 *) ac_try_echo=$ac_try;;
4988 esac
4989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4990 $as_echo "$ac_try_echo") >&5
4991 (eval "$ac_compile") 2>conftest.er1
4992 ac_status=$?
4993 grep -v '^ *+' conftest.er1 >conftest.err
4994 rm -f conftest.er1
4995 cat conftest.err >&5
4996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } && {
4998 test -z "$ac_c_werror_flag" ||
4999 test ! -s conftest.err
5000 } && test -s conftest.$ac_objext; then
4701 has_option=yes 5001 has_option=yes
4702 else 5002 else
4703 has_option=no 5003 $as_echo "$as_me: failed program was:" >&5
4704 fi 5004 sed 's/^/| /' conftest.$ac_ext >&5
5005
5006 has_option=no
5007 fi
5008
4705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706 if test $has_option = yes; then 5010 if test $has_option = yes; then
4707 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH" 5011 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4708 fi 5012 fi
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 5013 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4710 $as_echo "$has_option" >&6; } 5014 $as_echo "$has_option" >&6; }
4711 CFLAGS="$SAVE_CFLAGS" 5015 CFLAGS="$SAVE_CFLAGS"
4712 unset has_option 5016 unset has_option
4713 unset SAVE_CFLAGS 5017 unset SAVE_CFLAGS
4714 5018
4715 #### Some other nice autoconf tests. 5019 #### Some other nice autoconf tests.
4716 5020
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5021 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4718 $as_echo_n "checking whether ln -s works... " >&6; } 5022 $as_echo_n "checking whether ln -s works... " >&6; }
4719 LN_S=$as_ln_s 5023 LN_S=$as_ln_s
4720 if test "$LN_S" = "ln -s"; then 5024 if test "$LN_S" = "ln -s"; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5025 { $as_echo "$as_me:$LINENO: result: yes" >&5
4722 $as_echo "yes" >&6; } 5026 $as_echo "yes" >&6; }
4723 else 5027 else
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5028 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4725 $as_echo "no, using $LN_S" >&6; } 5029 $as_echo "no, using $LN_S" >&6; }
4726 fi 5030 fi
4727 5031
4728 ac_ext=c 5032 ac_ext=c
4729 ac_cpp='$CPP $CPPFLAGS' 5033 ac_cpp='$CPP $CPPFLAGS'
4730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4732 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5037 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4734 $as_echo_n "checking how to run the C preprocessor... " >&6; } 5038 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4735 # On Suns, sometimes $CPP names a directory. 5039 # On Suns, sometimes $CPP names a directory.
4736 if test -n "$CPP" && test -d "$CPP"; then 5040 if test -n "$CPP" && test -d "$CPP"; then
4737 CPP= 5041 CPP=
4738 fi 5042 fi
4739 if test -z "$CPP"; then 5043 if test -z "$CPP"; then
4740 if test "${ac_cv_prog_CPP+set}" = set; then : 5044 if test "${ac_cv_prog_CPP+set}" = set; then
4741 $as_echo_n "(cached) " >&6 5045 $as_echo_n "(cached) " >&6
4742 else 5046 else
4743 # Double quotes because CPP needs to be expanded 5047 # Double quotes because CPP needs to be expanded
4744 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5048 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4745 do 5049 do
4750 # with a fresh cross-compiler works. 5054 # with a fresh cross-compiler works.
4751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4752 # <limits.h> exists even on freestanding compilers. 5056 # <limits.h> exists even on freestanding compilers.
4753 # On the NeXT, cc -E runs the code through the compiler's parser, 5057 # On the NeXT, cc -E runs the code through the compiler's parser,
4754 # not just through cpp. "Syntax error" is here to catch this case. 5058 # not just through cpp. "Syntax error" is here to catch this case.
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5059 cat >conftest.$ac_ext <<_ACEOF
5060 /* confdefs.h. */
5061 _ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h. */ 5064 /* end confdefs.h. */
4757 #ifdef __STDC__ 5065 #ifdef __STDC__
4758 # include <limits.h> 5066 # include <limits.h>
4759 #else 5067 #else
4760 # include <assert.h> 5068 # include <assert.h>
4761 #endif 5069 #endif
4762 Syntax error 5070 Syntax error
4763 _ACEOF 5071 _ACEOF
4764 if ac_fn_c_try_cpp "$LINENO"; then : 5072 if { (ac_try="$ac_cpp conftest.$ac_ext"
4765 5073 case "(($ac_try" in
4766 else 5074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5075 *) ac_try_echo=$ac_try;;
5076 esac
5077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5078 $as_echo "$ac_try_echo") >&5
5079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5080 ac_status=$?
5081 grep -v '^ *+' conftest.er1 >conftest.err
5082 rm -f conftest.er1
5083 cat conftest.err >&5
5084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } >/dev/null && {
5086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5087 test ! -s conftest.err
5088 }; then
5089 :
5090 else
5091 $as_echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.$ac_ext >&5
5093
4767 # Broken: fails on valid input. 5094 # Broken: fails on valid input.
4768 continue 5095 continue
4769 fi 5096 fi
5097
4770 rm -f conftest.err conftest.$ac_ext 5098 rm -f conftest.err conftest.$ac_ext
4771 5099
4772 # OK, works on sane cases. Now check whether nonexistent headers 5100 # OK, works on sane cases. Now check whether nonexistent headers
4773 # can be detected and how. 5101 # can be detected and how.
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5102 cat >conftest.$ac_ext <<_ACEOF
5103 /* confdefs.h. */
5104 _ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
4775 /* end confdefs.h. */ 5107 /* end confdefs.h. */
4776 #include <ac_nonexistent.h> 5108 #include <ac_nonexistent.h>
4777 _ACEOF 5109 _ACEOF
4778 if ac_fn_c_try_cpp "$LINENO"; then : 5110 if { (ac_try="$ac_cpp conftest.$ac_ext"
5111 case "(($ac_try" in
5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5114 esac
5115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5116 $as_echo "$ac_try_echo") >&5
5117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5118 ac_status=$?
5119 grep -v '^ *+' conftest.er1 >conftest.err
5120 rm -f conftest.er1
5121 cat conftest.err >&5
5122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } >/dev/null && {
5124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5125 test ! -s conftest.err
5126 }; then
4779 # Broken: success on invalid input. 5127 # Broken: success on invalid input.
4780 continue 5128 continue
4781 else 5129 else
5130 $as_echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5132
4782 # Passes both tests. 5133 # Passes both tests.
4783 ac_preproc_ok=: 5134 ac_preproc_ok=:
4784 break 5135 break
4785 fi 5136 fi
5137
4786 rm -f conftest.err conftest.$ac_ext 5138 rm -f conftest.err conftest.$ac_ext
4787 5139
4788 done 5140 done
4789 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5141 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4790 rm -f conftest.err conftest.$ac_ext 5142 rm -f conftest.err conftest.$ac_ext
4791 if $ac_preproc_ok; then : 5143 if $ac_preproc_ok; then
4792 break 5144 break
4793 fi 5145 fi
4794 5146
4795 done 5147 done
4796 ac_cv_prog_CPP=$CPP 5148 ac_cv_prog_CPP=$CPP
4798 fi 5150 fi
4799 CPP=$ac_cv_prog_CPP 5151 CPP=$ac_cv_prog_CPP
4800 else 5152 else
4801 ac_cv_prog_CPP=$CPP 5153 ac_cv_prog_CPP=$CPP
4802 fi 5154 fi
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5155 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4804 $as_echo "$CPP" >&6; } 5156 $as_echo "$CPP" >&6; }
4805 ac_preproc_ok=false 5157 ac_preproc_ok=false
4806 for ac_c_preproc_warn_flag in '' yes 5158 for ac_c_preproc_warn_flag in '' yes
4807 do 5159 do
4808 # Use a header file that comes with gcc, so configuring glibc 5160 # Use a header file that comes with gcc, so configuring glibc
4809 # with a fresh cross-compiler works. 5161 # with a fresh cross-compiler works.
4810 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4811 # <limits.h> exists even on freestanding compilers. 5163 # <limits.h> exists even on freestanding compilers.
4812 # On the NeXT, cc -E runs the code through the compiler's parser, 5164 # On the NeXT, cc -E runs the code through the compiler's parser,
4813 # not just through cpp. "Syntax error" is here to catch this case. 5165 # not just through cpp. "Syntax error" is here to catch this case.
4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5166 cat >conftest.$ac_ext <<_ACEOF
5167 /* confdefs.h. */
5168 _ACEOF
5169 cat confdefs.h >>conftest.$ac_ext
5170 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h. */ 5171 /* end confdefs.h. */
4816 #ifdef __STDC__ 5172 #ifdef __STDC__
4817 # include <limits.h> 5173 # include <limits.h>
4818 #else 5174 #else
4819 # include <assert.h> 5175 # include <assert.h>
4820 #endif 5176 #endif
4821 Syntax error 5177 Syntax error
4822 _ACEOF 5178 _ACEOF
4823 if ac_fn_c_try_cpp "$LINENO"; then : 5179 if { (ac_try="$ac_cpp conftest.$ac_ext"
4824 5180 case "(($ac_try" in
4825 else 5181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5182 *) ac_try_echo=$ac_try;;
5183 esac
5184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5185 $as_echo "$ac_try_echo") >&5
5186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5187 ac_status=$?
5188 grep -v '^ *+' conftest.er1 >conftest.err
5189 rm -f conftest.er1
5190 cat conftest.err >&5
5191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } >/dev/null && {
5193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5194 test ! -s conftest.err
5195 }; then
5196 :
5197 else
5198 $as_echo "$as_me: failed program was:" >&5
5199 sed 's/^/| /' conftest.$ac_ext >&5
5200
4826 # Broken: fails on valid input. 5201 # Broken: fails on valid input.
4827 continue 5202 continue
4828 fi 5203 fi
5204
4829 rm -f conftest.err conftest.$ac_ext 5205 rm -f conftest.err conftest.$ac_ext
4830 5206
4831 # OK, works on sane cases. Now check whether nonexistent headers 5207 # OK, works on sane cases. Now check whether nonexistent headers
4832 # can be detected and how. 5208 # can be detected and how.
4833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5209 cat >conftest.$ac_ext <<_ACEOF
5210 /* confdefs.h. */
5211 _ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
4834 /* end confdefs.h. */ 5214 /* end confdefs.h. */
4835 #include <ac_nonexistent.h> 5215 #include <ac_nonexistent.h>
4836 _ACEOF 5216 _ACEOF
4837 if ac_fn_c_try_cpp "$LINENO"; then : 5217 if { (ac_try="$ac_cpp conftest.$ac_ext"
5218 case "(($ac_try" in
5219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220 *) ac_try_echo=$ac_try;;
5221 esac
5222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5223 $as_echo "$ac_try_echo") >&5
5224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5225 ac_status=$?
5226 grep -v '^ *+' conftest.er1 >conftest.err
5227 rm -f conftest.er1
5228 cat conftest.err >&5
5229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } >/dev/null && {
5231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5232 test ! -s conftest.err
5233 }; then
4838 # Broken: success on invalid input. 5234 # Broken: success on invalid input.
4839 continue 5235 continue
4840 else 5236 else
5237 $as_echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5239
4841 # Passes both tests. 5240 # Passes both tests.
4842 ac_preproc_ok=: 5241 ac_preproc_ok=:
4843 break 5242 break
4844 fi 5243 fi
5244
4845 rm -f conftest.err conftest.$ac_ext 5245 rm -f conftest.err conftest.$ac_ext
4846 5246
4847 done 5247 done
4848 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5248 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4849 rm -f conftest.err conftest.$ac_ext 5249 rm -f conftest.err conftest.$ac_ext
4850 if $ac_preproc_ok; then : 5250 if $ac_preproc_ok; then
4851 5251 :
4852 else 5252 else
4853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5253 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5254 See \`config.log' for more details." >&5
4855 as_fn_error "C preprocessor \"$CPP\" fails sanity check 5255 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4856 See \`config.log' for more details." "$LINENO" 5; } 5256 See \`config.log' for more details." >&2;}
5257 { (exit 1); exit 1; }; }
4857 fi 5258 fi
4858 5259
4859 ac_ext=c 5260 ac_ext=c
4860 ac_cpp='$CPP $CPPFLAGS' 5261 ac_cpp='$CPP $CPPFLAGS'
4861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4874 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 5275 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4875 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 5276 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4876 # OS/2's system install, which has a completely different semantic 5277 # OS/2's system install, which has a completely different semantic
4877 # ./install, which can be erroneously created by make from ./install.sh. 5278 # ./install, which can be erroneously created by make from ./install.sh.
4878 # Reject install programs that cannot install multiple files. 5279 # Reject install programs that cannot install multiple files.
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 5280 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4880 $as_echo_n "checking for a BSD-compatible install... " >&6; } 5281 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4881 if test -z "$INSTALL"; then 5282 if test -z "$INSTALL"; then
4882 if test "${ac_cv_path_install+set}" = set; then : 5283 if test "${ac_cv_path_install+set}" = set; then
4883 $as_echo_n "(cached) " >&6 5284 $as_echo_n "(cached) " >&6
4884 else 5285 else
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 for as_dir in $PATH 5287 for as_dir in $PATH
4887 do 5288 do
4888 IFS=$as_save_IFS 5289 IFS=$as_save_IFS
4889 test -z "$as_dir" && as_dir=. 5290 test -z "$as_dir" && as_dir=.
4890 # Account for people who put trailing slashes in PATH elements. 5291 # Account for people who put trailing slashes in PATH elements.
4891 case $as_dir/ in #(( 5292 case $as_dir/ in
4892 ./ | .// | /[cC]/* | \ 5293 ./ | .// | /cC/* | \
4893 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 5294 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4894 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 5295 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4895 /usr/ucb/* ) ;; 5296 /usr/ucb/* ) ;;
4896 *) 5297 *)
4897 # OSF1 and SCO ODT 3.0 have their own names for install. 5298 # OSF1 and SCO ODT 3.0 have their own names for install.
4898 # Don't use installbsd from OSF since it installs stuff as root 5299 # Don't use installbsd from OSF since it installs stuff as root
4899 # by default. 5300 # by default.
4926 done 5327 done
4927 done 5328 done
4928 ;; 5329 ;;
4929 esac 5330 esac
4930 5331
4931 done 5332 done
4932 IFS=$as_save_IFS 5333 IFS=$as_save_IFS
4933 5334
4934 rm -rf conftest.one conftest.two conftest.dir 5335 rm -rf conftest.one conftest.two conftest.dir
4935 5336
4936 fi 5337 fi
4942 # break other packages using the cache if that directory is 5343 # break other packages using the cache if that directory is
4943 # removed, or if the value is a relative name. 5344 # removed, or if the value is a relative name.
4944 INSTALL=$ac_install_sh 5345 INSTALL=$ac_install_sh
4945 fi 5346 fi
4946 fi 5347 fi
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 5348 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4948 $as_echo "$INSTALL" >&6; } 5349 $as_echo "$INSTALL" >&6; }
4949 5350
4950 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 5351 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4951 # It thinks the first close brace ends the variable substitution. 5352 # It thinks the first close brace ends the variable substitution.
4952 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 5353 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4957 5358
4958 if test "x$RANLIB" = x; then 5359 if test "x$RANLIB" = x; then
4959 if test -n "$ac_tool_prefix"; then 5360 if test -n "$ac_tool_prefix"; then
4960 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5361 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4961 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5362 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5363 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4963 $as_echo_n "checking for $ac_word... " >&6; } 5364 $as_echo_n "checking for $ac_word... " >&6; }
4964 if test "${ac_cv_prog_RANLIB+set}" = set; then : 5365 if test "${ac_cv_prog_RANLIB+set}" = set; then
4965 $as_echo_n "(cached) " >&6 5366 $as_echo_n "(cached) " >&6
4966 else 5367 else
4967 if test -n "$RANLIB"; then 5368 if test -n "$RANLIB"; then
4968 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5369 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4969 else 5370 else
4970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 for as_dir in $PATH 5372 for as_dir in $PATH
4972 do 5373 do
4973 IFS=$as_save_IFS 5374 IFS=$as_save_IFS
4974 test -z "$as_dir" && as_dir=. 5375 test -z "$as_dir" && as_dir=.
4975 for ac_exec_ext in '' $ac_executable_extensions; do 5376 for ac_exec_ext in '' $ac_executable_extensions; do
4976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4977 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5378 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5379 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4979 break 2 5380 break 2
4980 fi 5381 fi
4981 done 5382 done
4982 done 5383 done
4983 IFS=$as_save_IFS 5384 IFS=$as_save_IFS
4984 5385
4985 fi 5386 fi
4986 fi 5387 fi
4987 RANLIB=$ac_cv_prog_RANLIB 5388 RANLIB=$ac_cv_prog_RANLIB
4988 if test -n "$RANLIB"; then 5389 if test -n "$RANLIB"; then
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5390 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4990 $as_echo "$RANLIB" >&6; } 5391 $as_echo "$RANLIB" >&6; }
4991 else 5392 else
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5393 { $as_echo "$as_me:$LINENO: result: no" >&5
4993 $as_echo "no" >&6; } 5394 $as_echo "no" >&6; }
4994 fi 5395 fi
4995 5396
4996 5397
4997 fi 5398 fi
4998 if test -z "$ac_cv_prog_RANLIB"; then 5399 if test -z "$ac_cv_prog_RANLIB"; then
4999 ac_ct_RANLIB=$RANLIB 5400 ac_ct_RANLIB=$RANLIB
5000 # Extract the first word of "ranlib", so it can be a program name with args. 5401 # Extract the first word of "ranlib", so it can be a program name with args.
5001 set dummy ranlib; ac_word=$2 5402 set dummy ranlib; ac_word=$2
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5403 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5003 $as_echo_n "checking for $ac_word... " >&6; } 5404 $as_echo_n "checking for $ac_word... " >&6; }
5004 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5405 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5005 $as_echo_n "(cached) " >&6 5406 $as_echo_n "(cached) " >&6
5006 else 5407 else
5007 if test -n "$ac_ct_RANLIB"; then 5408 if test -n "$ac_ct_RANLIB"; then
5008 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5409 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5009 else 5410 else
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH 5412 for as_dir in $PATH
5012 do 5413 do
5013 IFS=$as_save_IFS 5414 IFS=$as_save_IFS
5014 test -z "$as_dir" && as_dir=. 5415 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do 5416 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5017 ac_cv_prog_ac_ct_RANLIB="ranlib" 5418 ac_cv_prog_ac_ct_RANLIB="ranlib"
5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5419 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5019 break 2 5420 break 2
5020 fi 5421 fi
5021 done 5422 done
5022 done 5423 done
5023 IFS=$as_save_IFS 5424 IFS=$as_save_IFS
5024 5425
5025 fi 5426 fi
5026 fi 5427 fi
5027 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5428 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5028 if test -n "$ac_ct_RANLIB"; then 5429 if test -n "$ac_ct_RANLIB"; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5430 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5030 $as_echo "$ac_ct_RANLIB" >&6; } 5431 $as_echo "$ac_ct_RANLIB" >&6; }
5031 else 5432 else
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5433 { $as_echo "$as_me:$LINENO: result: no" >&5
5033 $as_echo "no" >&6; } 5434 $as_echo "no" >&6; }
5034 fi 5435 fi
5035 5436
5036 if test "x$ac_ct_RANLIB" = x; then 5437 if test "x$ac_ct_RANLIB" = x; then
5037 RANLIB=":" 5438 RANLIB=":"
5038 else 5439 else
5039 case $cross_compiling:$ac_tool_warned in 5440 case $cross_compiling:$ac_tool_warned in
5040 yes:) 5441 yes:)
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5442 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5443 whose name does not start with the host triplet. If you think this
5444 configuration is useful to you, please write to autoconf@gnu.org." >&5
5445 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5446 whose name does not start with the host triplet. If you think this
5447 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5043 ac_tool_warned=yes ;; 5448 ac_tool_warned=yes ;;
5044 esac 5449 esac
5045 RANLIB=$ac_ct_RANLIB 5450 RANLIB=$ac_ct_RANLIB
5046 fi 5451 fi
5047 else 5452 else
5049 fi 5454 fi
5050 5455
5051 fi 5456 fi
5052 # Extract the first word of "install-info", so it can be a program name with args. 5457 # Extract the first word of "install-info", so it can be a program name with args.
5053 set dummy install-info; ac_word=$2 5458 set dummy install-info; ac_word=$2
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5459 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5055 $as_echo_n "checking for $ac_word... " >&6; } 5460 $as_echo_n "checking for $ac_word... " >&6; }
5056 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : 5461 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5057 $as_echo_n "(cached) " >&6 5462 $as_echo_n "(cached) " >&6
5058 else 5463 else
5059 case $INSTALL_INFO in 5464 case $INSTALL_INFO in
5060 [\\/]* | ?:[\\/]*) 5465 [\\/]* | ?:[\\/]*)
5061 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. 5466 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in $PATH 5470 for as_dir in $PATH
5066 do 5471 do
5067 IFS=$as_save_IFS 5472 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=. 5473 test -z "$as_dir" && as_dir=.
5069 for ac_exec_ext in '' $ac_executable_extensions; do 5474 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5071 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" 5476 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5477 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 break 2 5478 break 2
5074 fi 5479 fi
5075 done 5480 done
5076 done 5481 done
5077 IFS=$as_save_IFS 5482 IFS=$as_save_IFS
5078 5483
5079 ;; 5484 ;;
5080 esac 5485 esac
5081 fi 5486 fi
5082 INSTALL_INFO=$ac_cv_path_INSTALL_INFO 5487 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5083 if test -n "$INSTALL_INFO"; then 5488 if test -n "$INSTALL_INFO"; then
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 5489 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5085 $as_echo "$INSTALL_INFO" >&6; } 5490 $as_echo "$INSTALL_INFO" >&6; }
5086 else 5491 else
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5492 { $as_echo "$as_me:$LINENO: result: no" >&5
5088 $as_echo "no" >&6; } 5493 $as_echo "no" >&6; }
5089 fi 5494 fi
5090 5495
5091 5496
5092 # Extract the first word of "install-info", so it can be a program name with args. 5497 # Extract the first word of "install-info", so it can be a program name with args.
5093 set dummy install-info; ac_word=$2 5498 set dummy install-info; ac_word=$2
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5499 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5095 $as_echo_n "checking for $ac_word... " >&6; } 5500 $as_echo_n "checking for $ac_word... " >&6; }
5096 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : 5501 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5097 $as_echo_n "(cached) " >&6 5502 $as_echo_n "(cached) " >&6
5098 else 5503 else
5099 case $INSTALL_INFO in 5504 case $INSTALL_INFO in
5100 [\\/]* | ?:[\\/]*) 5505 [\\/]* | ?:[\\/]*)
5101 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. 5506 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 for as_dir in /usr/sbin 5510 for as_dir in /usr/sbin
5106 do 5511 do
5107 IFS=$as_save_IFS 5512 IFS=$as_save_IFS
5108 test -z "$as_dir" && as_dir=. 5513 test -z "$as_dir" && as_dir=.
5109 for ac_exec_ext in '' $ac_executable_extensions; do 5514 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5111 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" 5516 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5517 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5113 break 2 5518 break 2
5114 fi 5519 fi
5115 done 5520 done
5116 done 5521 done
5117 IFS=$as_save_IFS 5522 IFS=$as_save_IFS
5118 5523
5119 ;; 5524 ;;
5120 esac 5525 esac
5121 fi 5526 fi
5122 INSTALL_INFO=$ac_cv_path_INSTALL_INFO 5527 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5123 if test -n "$INSTALL_INFO"; then 5528 if test -n "$INSTALL_INFO"; then
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 5529 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5125 $as_echo "$INSTALL_INFO" >&6; } 5530 $as_echo "$INSTALL_INFO" >&6; }
5126 else 5531 else
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5532 { $as_echo "$as_me:$LINENO: result: no" >&5
5128 $as_echo "no" >&6; } 5533 $as_echo "no" >&6; }
5129 fi 5534 fi
5130 5535
5131 5536
5132 # Extract the first word of "install-info", so it can be a program name with args. 5537 # Extract the first word of "install-info", so it can be a program name with args.
5133 set dummy install-info; ac_word=$2 5538 set dummy install-info; ac_word=$2
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5539 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5135 $as_echo_n "checking for $ac_word... " >&6; } 5540 $as_echo_n "checking for $ac_word... " >&6; }
5136 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : 5541 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5137 $as_echo_n "(cached) " >&6 5542 $as_echo_n "(cached) " >&6
5138 else 5543 else
5139 case $INSTALL_INFO in 5544 case $INSTALL_INFO in
5140 [\\/]* | ?:[\\/]*) 5545 [\\/]* | ?:[\\/]*)
5141 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. 5546 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 for as_dir in /sbin 5550 for as_dir in /sbin
5146 do 5551 do
5147 IFS=$as_save_IFS 5552 IFS=$as_save_IFS
5148 test -z "$as_dir" && as_dir=. 5553 test -z "$as_dir" && as_dir=.
5149 for ac_exec_ext in '' $ac_executable_extensions; do 5554 for ac_exec_ext in '' $ac_executable_extensions; do
5150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5151 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" 5556 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5557 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5153 break 2 5558 break 2
5154 fi 5559 fi
5155 done 5560 done
5156 done 5561 done
5157 IFS=$as_save_IFS 5562 IFS=$as_save_IFS
5158 5563
5159 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":" 5564 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5160 ;; 5565 ;;
5161 esac 5566 esac
5162 fi 5567 fi
5163 INSTALL_INFO=$ac_cv_path_INSTALL_INFO 5568 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5164 if test -n "$INSTALL_INFO"; then 5569 if test -n "$INSTALL_INFO"; then
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 5570 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5166 $as_echo "$INSTALL_INFO" >&6; } 5571 $as_echo "$INSTALL_INFO" >&6; }
5167 else 5572 else
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5573 { $as_echo "$as_me:$LINENO: result: no" >&5
5169 $as_echo "no" >&6; } 5574 $as_echo "no" >&6; }
5170 fi 5575 fi
5171 5576
5172 5577
5173 # Extract the first word of "gzip", so it can be a program name with args. 5578 # Extract the first word of "gzip", so it can be a program name with args.
5174 set dummy gzip; ac_word=$2 5579 set dummy gzip; ac_word=$2
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5580 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5176 $as_echo_n "checking for $ac_word... " >&6; } 5581 $as_echo_n "checking for $ac_word... " >&6; }
5177 if test "${ac_cv_path_GZIP_PROG+set}" = set; then : 5582 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5178 $as_echo_n "(cached) " >&6 5583 $as_echo_n "(cached) " >&6
5179 else 5584 else
5180 case $GZIP_PROG in 5585 case $GZIP_PROG in
5181 [\\/]* | ?:[\\/]*) 5586 [\\/]* | ?:[\\/]*)
5182 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path. 5587 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH 5591 for as_dir in $PATH
5187 do 5592 do
5188 IFS=$as_save_IFS 5593 IFS=$as_save_IFS
5189 test -z "$as_dir" && as_dir=. 5594 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do 5595 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5192 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext" 5597 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5598 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 break 2 5599 break 2
5195 fi 5600 fi
5196 done 5601 done
5197 done 5602 done
5198 IFS=$as_save_IFS 5603 IFS=$as_save_IFS
5199 5604
5200 ;; 5605 ;;
5201 esac 5606 esac
5202 fi 5607 fi
5203 GZIP_PROG=$ac_cv_path_GZIP_PROG 5608 GZIP_PROG=$ac_cv_path_GZIP_PROG
5204 if test -n "$GZIP_PROG"; then 5609 if test -n "$GZIP_PROG"; then
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5 5610 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5206 $as_echo "$GZIP_PROG" >&6; } 5611 $as_echo "$GZIP_PROG" >&6; }
5207 else 5612 else
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5613 { $as_echo "$as_me:$LINENO: result: no" >&5
5209 $as_echo "no" >&6; } 5614 $as_echo "no" >&6; }
5210 fi 5615 fi
5211 5616
5212 5617
5213 5618
5214 5619
5215 ## Need makeinfo >= 4.6 (?) to build the manuals. 5620 ## Need makeinfo >= 4.6 (?) to build the manuals.
5216 # Extract the first word of "makeinfo", so it can be a program name with args. 5621 # Extract the first word of "makeinfo", so it can be a program name with args.
5217 set dummy makeinfo; ac_word=$2 5622 set dummy makeinfo; ac_word=$2
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5623 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5219 $as_echo_n "checking for $ac_word... " >&6; } 5624 $as_echo_n "checking for $ac_word... " >&6; }
5220 if test "${ac_cv_path_MAKEINFO+set}" = set; then : 5625 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5221 $as_echo_n "(cached) " >&6 5626 $as_echo_n "(cached) " >&6
5222 else 5627 else
5223 case $MAKEINFO in 5628 case $MAKEINFO in
5224 [\\/]* | ?:[\\/]*) 5629 [\\/]* | ?:[\\/]*)
5225 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path. 5630 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH 5634 for as_dir in $PATH
5230 do 5635 do
5231 IFS=$as_save_IFS 5636 IFS=$as_save_IFS
5232 test -z "$as_dir" && as_dir=. 5637 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do 5638 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5235 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext" 5640 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5641 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5237 break 2 5642 break 2
5238 fi 5643 fi
5239 done 5644 done
5240 done 5645 done
5241 IFS=$as_save_IFS 5646 IFS=$as_save_IFS
5242 5647
5243 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no" 5648 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5244 ;; 5649 ;;
5245 esac 5650 esac
5246 fi 5651 fi
5247 MAKEINFO=$ac_cv_path_MAKEINFO 5652 MAKEINFO=$ac_cv_path_MAKEINFO
5248 if test -n "$MAKEINFO"; then 5653 if test -n "$MAKEINFO"; then
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 5654 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5250 $as_echo "$MAKEINFO" >&6; } 5655 $as_echo "$MAKEINFO" >&6; }
5251 else 5656 else
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5657 { $as_echo "$as_me:$LINENO: result: no" >&5
5253 $as_echo "no" >&6; } 5658 $as_echo "no" >&6; }
5254 fi 5659 fi
5255 5660
5256 5661
5257 if test "$MAKEINFO" != "no" && \ 5662 if test "$MAKEINFO" != "no" && \
5261 5666
5262 ## Makeinfo is unusual. For a released Emacs, the manuals are 5667 ## Makeinfo is unusual. For a released Emacs, the manuals are
5263 ## pre-built, and not deleted by the normal clean rules. makeinfo is 5668 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5264 ## therefore in the category of "special tools" not normally required, which 5669 ## therefore in the category of "special tools" not normally required, which
5265 ## configure does not have to check for (eg autoconf itself). 5670 ## configure does not have to check for (eg autoconf itself).
5266 ## In a Bazaar checkout on the other hand, the manuals are not included. 5671 ## In a CVS checkout on the other hand, the manuals are not included.
5267 ## So makeinfo is a requirement to build from Bazaar, and configure 5672 ## So makeinfo is a requirement to build from CVS, and configure
5268 ## should test for it as it does for any other build requirement. 5673 ## should test for it as it does for any other build requirement.
5269 ## We use the presence of $srcdir/info/emacs to distinguish a release, 5674 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5270 ## with pre-built manuals, from a Bazaar checkout. 5675 ## with pre-built manuals, from a CVS checkout.
5271 if test "$MAKEINFO" = "no"; then 5676 if test "$MAKEINFO" = "no"; then
5272 if test "x${with_makeinfo}" = "xno"; then 5677 if test "x${with_makeinfo}" = "xno"; then
5273 MAKEINFO=off 5678 MAKEINFO=off
5274 elif ! test -e $srcdir/info/emacs; then 5679 elif ! test -e $srcdir/info/emacs; then
5275 as_fn_error "You do not seem to have makeinfo >= 4.6, and your 5680 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5276 source tree does not seem to have pre-built manuals in the \`info' directory. 5681 source tree does not seem to have pre-built manuals in the \`info' directory.
5277 Either install a suitable version of makeinfo, or re-run configure 5682 Either install a suitable version of makeinfo, or re-run configure
5278 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5 5683 with the \`--without-makeinfo' option to build without the manuals. " >&5
5684 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5685 source tree does not seem to have pre-built manuals in the \`info' directory.
5686 Either install a suitable version of makeinfo, or re-run configure
5687 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5688 { (exit 1); exit 1; }; }
5279 fi 5689 fi
5280 fi 5690 fi
5281 5691
5282 5692
5283 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x 5693 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5296 LDFLAGS="$LDFLAGS -Wl,-znocombreloc" 5706 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5297 else 5707 else
5298 LDFLAGS="$LDFLAGS -znocombreloc" 5708 LDFLAGS="$LDFLAGS -znocombreloc"
5299 fi 5709 fi
5300 5710
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5 5711 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5302 $as_echo_n "checking for -znocombreloc... " >&6; } 5712 $as_echo_n "checking for -znocombreloc... " >&6; }
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5713 cat >conftest.$ac_ext <<_ACEOF
5304 /* end confdefs.h. */
5305 main(){return 0;} 5714 main(){return 0;}
5306 _ACEOF 5715 _ACEOF
5307 if ac_fn_c_try_link "$LINENO"; then : 5716 rm -f conftest.$ac_objext conftest$ac_exeext
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5717 if { (ac_try="$ac_link"
5718 case "(($ac_try" in
5719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720 *) ac_try_echo=$ac_try;;
5721 esac
5722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5723 $as_echo "$ac_try_echo") >&5
5724 (eval "$ac_link") 2>conftest.er1
5725 ac_status=$?
5726 grep -v '^ *+' conftest.er1 >conftest.err
5727 rm -f conftest.er1
5728 cat conftest.err >&5
5729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } && {
5731 test -z "$ac_c_werror_flag" ||
5732 test ! -s conftest.err
5733 } && test -s conftest$ac_exeext && {
5734 test "$cross_compiling" = yes ||
5735 $as_test_x conftest$ac_exeext
5736 }; then
5737 { $as_echo "$as_me:$LINENO: result: yes" >&5
5309 $as_echo "yes" >&6; } 5738 $as_echo "yes" >&6; }
5310 else 5739 else
5311 LDFLAGS=$late_LDFLAGS 5740 $as_echo "$as_me: failed program was:" >&5
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5741 sed 's/^/| /' conftest.$ac_ext >&5
5742
5743 LDFLAGS=$late_LDFLAGS
5744 { $as_echo "$as_me:$LINENO: result: no" >&5
5313 $as_echo "no" >&6; } 5745 $as_echo "no" >&6; }
5314 fi 5746 fi
5315 rm -f core conftest.err conftest.$ac_objext \ 5747
5316 conftest$ac_exeext conftest.$ac_ext 5748 rm -rf conftest.dSYM
5749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5750 conftest$ac_exeext conftest.$ac_ext
5317 5751
5318 #### Extract some information from the operating system and machine files. 5752 #### Extract some information from the operating system and machine files.
5319 5753
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the machine- and system-dependent files to find out 5754 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5321 - which libraries the lib-src programs will want, and 5755 - which libraries the lib-src programs will want, and
5322 - whether the GNU malloc routines are usable..." >&5 5756 - whether the GNU malloc routines are usable..." >&5
5323 $as_echo "$as_me: checking the machine- and system-dependent files to find out 5757 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5324 - which libraries the lib-src programs will want, and 5758 - which libraries the lib-src programs will want, and
5325 - whether the GNU malloc routines are usable..." >&6;} 5759 - whether the GNU malloc routines are usable..." >&6;}
5463 fi 5897 fi
5464 5898
5465 5899
5466 5900
5467 # Check whether --enable-largefile was given. 5901 # Check whether --enable-largefile was given.
5468 if test "${enable_largefile+set}" = set; then : 5902 if test "${enable_largefile+set}" = set; then
5469 enableval=$enable_largefile; 5903 enableval=$enable_largefile;
5470 fi 5904 fi
5471 5905
5472 if test "$enable_largefile" != no; then 5906 if test "$enable_largefile" != no; then
5473 5907
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 5908 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5475 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } 5909 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5476 if test "${ac_cv_sys_largefile_CC+set}" = set; then : 5910 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5477 $as_echo_n "(cached) " >&6 5911 $as_echo_n "(cached) " >&6
5478 else 5912 else
5479 ac_cv_sys_largefile_CC=no 5913 ac_cv_sys_largefile_CC=no
5480 if test "$GCC" != yes; then 5914 if test "$GCC" != yes; then
5481 ac_save_CC=$CC 5915 ac_save_CC=$CC
5482 while :; do 5916 while :; do
5483 # IRIX 6.2 and later do not support large files by default, 5917 # IRIX 6.2 and later do not support large files by default,
5484 # so use the C compiler's -n32 option if that helps. 5918 # so use the C compiler's -n32 option if that helps.
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5919 cat >conftest.$ac_ext <<_ACEOF
5920 /* confdefs.h. */
5921 _ACEOF
5922 cat confdefs.h >>conftest.$ac_ext
5923 cat >>conftest.$ac_ext <<_ACEOF
5486 /* end confdefs.h. */ 5924 /* end confdefs.h. */
5487 #include <sys/types.h> 5925 #include <sys/types.h>
5488 /* Check that off_t can represent 2**63 - 1 correctly. 5926 /* Check that off_t can represent 2**63 - 1 correctly.
5489 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5927 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5490 since some C++ compilers masquerading as C compilers 5928 since some C++ compilers masquerading as C compilers
5499 5937
5500 ; 5938 ;
5501 return 0; 5939 return 0;
5502 } 5940 }
5503 _ACEOF 5941 _ACEOF
5504 if ac_fn_c_try_compile "$LINENO"; then : 5942 rm -f conftest.$ac_objext
5943 if { (ac_try="$ac_compile"
5944 case "(($ac_try" in
5945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946 *) ac_try_echo=$ac_try;;
5947 esac
5948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5949 $as_echo "$ac_try_echo") >&5
5950 (eval "$ac_compile") 2>conftest.er1
5951 ac_status=$?
5952 grep -v '^ *+' conftest.er1 >conftest.err
5953 rm -f conftest.er1
5954 cat conftest.err >&5
5955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } && {
5957 test -z "$ac_c_werror_flag" ||
5958 test ! -s conftest.err
5959 } && test -s conftest.$ac_objext; then
5505 break 5960 break
5506 fi 5961 else
5962 $as_echo "$as_me: failed program was:" >&5
5963 sed 's/^/| /' conftest.$ac_ext >&5
5964
5965
5966 fi
5967
5507 rm -f core conftest.err conftest.$ac_objext 5968 rm -f core conftest.err conftest.$ac_objext
5508 CC="$CC -n32" 5969 CC="$CC -n32"
5509 if ac_fn_c_try_compile "$LINENO"; then : 5970 rm -f conftest.$ac_objext
5971 if { (ac_try="$ac_compile"
5972 case "(($ac_try" in
5973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974 *) ac_try_echo=$ac_try;;
5975 esac
5976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5977 $as_echo "$ac_try_echo") >&5
5978 (eval "$ac_compile") 2>conftest.er1
5979 ac_status=$?
5980 grep -v '^ *+' conftest.er1 >conftest.err
5981 rm -f conftest.er1
5982 cat conftest.err >&5
5983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); } && {
5985 test -z "$ac_c_werror_flag" ||
5986 test ! -s conftest.err
5987 } && test -s conftest.$ac_objext; then
5510 ac_cv_sys_largefile_CC=' -n32'; break 5988 ac_cv_sys_largefile_CC=' -n32'; break
5511 fi 5989 else
5990 $as_echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5992
5993
5994 fi
5995
5512 rm -f core conftest.err conftest.$ac_objext 5996 rm -f core conftest.err conftest.$ac_objext
5513 break 5997 break
5514 done 5998 done
5515 CC=$ac_save_CC 5999 CC=$ac_save_CC
5516 rm -f conftest.$ac_ext 6000 rm -f conftest.$ac_ext
5517 fi 6001 fi
5518 fi 6002 fi
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 6003 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5520 $as_echo "$ac_cv_sys_largefile_CC" >&6; } 6004 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5521 if test "$ac_cv_sys_largefile_CC" != no; then 6005 if test "$ac_cv_sys_largefile_CC" != no; then
5522 CC=$CC$ac_cv_sys_largefile_CC 6006 CC=$CC$ac_cv_sys_largefile_CC
5523 fi 6007 fi
5524 6008
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 6009 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5526 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 6010 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5527 if test "${ac_cv_sys_file_offset_bits+set}" = set; then : 6011 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5528 $as_echo_n "(cached) " >&6 6012 $as_echo_n "(cached) " >&6
5529 else 6013 else
5530 while :; do 6014 while :; do
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6015 cat >conftest.$ac_ext <<_ACEOF
6016 /* confdefs.h. */
6017 _ACEOF
6018 cat confdefs.h >>conftest.$ac_ext
6019 cat >>conftest.$ac_ext <<_ACEOF
5532 /* end confdefs.h. */ 6020 /* end confdefs.h. */
5533 #include <sys/types.h> 6021 #include <sys/types.h>
5534 /* Check that off_t can represent 2**63 - 1 correctly. 6022 /* Check that off_t can represent 2**63 - 1 correctly.
5535 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6023 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5536 since some C++ compilers masquerading as C compilers 6024 since some C++ compilers masquerading as C compilers
5545 6033
5546 ; 6034 ;
5547 return 0; 6035 return 0;
5548 } 6036 }
5549 _ACEOF 6037 _ACEOF
5550 if ac_fn_c_try_compile "$LINENO"; then : 6038 rm -f conftest.$ac_objext
6039 if { (ac_try="$ac_compile"
6040 case "(($ac_try" in
6041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6042 *) ac_try_echo=$ac_try;;
6043 esac
6044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6045 $as_echo "$ac_try_echo") >&5
6046 (eval "$ac_compile") 2>conftest.er1
6047 ac_status=$?
6048 grep -v '^ *+' conftest.er1 >conftest.err
6049 rm -f conftest.er1
6050 cat conftest.err >&5
6051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } && {
6053 test -z "$ac_c_werror_flag" ||
6054 test ! -s conftest.err
6055 } && test -s conftest.$ac_objext; then
5551 ac_cv_sys_file_offset_bits=no; break 6056 ac_cv_sys_file_offset_bits=no; break
5552 fi 6057 else
6058 $as_echo "$as_me: failed program was:" >&5
6059 sed 's/^/| /' conftest.$ac_ext >&5
6060
6061
6062 fi
6063
5553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6065 cat >conftest.$ac_ext <<_ACEOF
6066 /* confdefs.h. */
6067 _ACEOF
6068 cat confdefs.h >>conftest.$ac_ext
6069 cat >>conftest.$ac_ext <<_ACEOF
5555 /* end confdefs.h. */ 6070 /* end confdefs.h. */
5556 #define _FILE_OFFSET_BITS 64 6071 #define _FILE_OFFSET_BITS 64
5557 #include <sys/types.h> 6072 #include <sys/types.h>
5558 /* Check that off_t can represent 2**63 - 1 correctly. 6073 /* Check that off_t can represent 2**63 - 1 correctly.
5559 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6074 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5569 6084
5570 ; 6085 ;
5571 return 0; 6086 return 0;
5572 } 6087 }
5573 _ACEOF 6088 _ACEOF
5574 if ac_fn_c_try_compile "$LINENO"; then : 6089 rm -f conftest.$ac_objext
6090 if { (ac_try="$ac_compile"
6091 case "(($ac_try" in
6092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6093 *) ac_try_echo=$ac_try;;
6094 esac
6095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6096 $as_echo "$ac_try_echo") >&5
6097 (eval "$ac_compile") 2>conftest.er1
6098 ac_status=$?
6099 grep -v '^ *+' conftest.er1 >conftest.err
6100 rm -f conftest.er1
6101 cat conftest.err >&5
6102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); } && {
6104 test -z "$ac_c_werror_flag" ||
6105 test ! -s conftest.err
6106 } && test -s conftest.$ac_objext; then
5575 ac_cv_sys_file_offset_bits=64; break 6107 ac_cv_sys_file_offset_bits=64; break
5576 fi 6108 else
6109 $as_echo "$as_me: failed program was:" >&5
6110 sed 's/^/| /' conftest.$ac_ext >&5
6111
6112
6113 fi
6114
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578 ac_cv_sys_file_offset_bits=unknown 6116 ac_cv_sys_file_offset_bits=unknown
5579 break 6117 break
5580 done 6118 done
5581 fi 6119 fi
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 6120 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5583 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } 6121 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5584 case $ac_cv_sys_file_offset_bits in #( 6122 case $ac_cv_sys_file_offset_bits in #(
5585 no | unknown) ;; 6123 no | unknown) ;;
5586 *) 6124 *)
5587 cat >>confdefs.h <<_ACEOF 6125 cat >>confdefs.h <<_ACEOF
5589 _ACEOF 6127 _ACEOF
5590 ;; 6128 ;;
5591 esac 6129 esac
5592 rm -rf conftest* 6130 rm -rf conftest*
5593 if test $ac_cv_sys_file_offset_bits = unknown; then 6131 if test $ac_cv_sys_file_offset_bits = unknown; then
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 6132 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5595 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 6133 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5596 if test "${ac_cv_sys_large_files+set}" = set; then : 6134 if test "${ac_cv_sys_large_files+set}" = set; then
5597 $as_echo_n "(cached) " >&6 6135 $as_echo_n "(cached) " >&6
5598 else 6136 else
5599 while :; do 6137 while :; do
5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6138 cat >conftest.$ac_ext <<_ACEOF
6139 /* confdefs.h. */
6140 _ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
5601 /* end confdefs.h. */ 6143 /* end confdefs.h. */
5602 #include <sys/types.h> 6144 #include <sys/types.h>
5603 /* Check that off_t can represent 2**63 - 1 correctly. 6145 /* Check that off_t can represent 2**63 - 1 correctly.
5604 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6146 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5605 since some C++ compilers masquerading as C compilers 6147 since some C++ compilers masquerading as C compilers
5614 6156
5615 ; 6157 ;
5616 return 0; 6158 return 0;
5617 } 6159 }
5618 _ACEOF 6160 _ACEOF
5619 if ac_fn_c_try_compile "$LINENO"; then : 6161 rm -f conftest.$ac_objext
6162 if { (ac_try="$ac_compile"
6163 case "(($ac_try" in
6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6166 esac
6167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6168 $as_echo "$ac_try_echo") >&5
6169 (eval "$ac_compile") 2>conftest.er1
6170 ac_status=$?
6171 grep -v '^ *+' conftest.er1 >conftest.err
6172 rm -f conftest.er1
6173 cat conftest.err >&5
6174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); } && {
6176 test -z "$ac_c_werror_flag" ||
6177 test ! -s conftest.err
6178 } && test -s conftest.$ac_objext; then
5620 ac_cv_sys_large_files=no; break 6179 ac_cv_sys_large_files=no; break
5621 fi 6180 else
6181 $as_echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.$ac_ext >&5
6183
6184
6185 fi
6186
5622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6188 cat >conftest.$ac_ext <<_ACEOF
6189 /* confdefs.h. */
6190 _ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
5624 /* end confdefs.h. */ 6193 /* end confdefs.h. */
5625 #define _LARGE_FILES 1 6194 #define _LARGE_FILES 1
5626 #include <sys/types.h> 6195 #include <sys/types.h>
5627 /* Check that off_t can represent 2**63 - 1 correctly. 6196 /* Check that off_t can represent 2**63 - 1 correctly.
5628 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6197 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5638 6207
5639 ; 6208 ;
5640 return 0; 6209 return 0;
5641 } 6210 }
5642 _ACEOF 6211 _ACEOF
5643 if ac_fn_c_try_compile "$LINENO"; then : 6212 rm -f conftest.$ac_objext
6213 if { (ac_try="$ac_compile"
6214 case "(($ac_try" in
6215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216 *) ac_try_echo=$ac_try;;
6217 esac
6218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6219 $as_echo "$ac_try_echo") >&5
6220 (eval "$ac_compile") 2>conftest.er1
6221 ac_status=$?
6222 grep -v '^ *+' conftest.er1 >conftest.err
6223 rm -f conftest.er1
6224 cat conftest.err >&5
6225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); } && {
6227 test -z "$ac_c_werror_flag" ||
6228 test ! -s conftest.err
6229 } && test -s conftest.$ac_objext; then
5644 ac_cv_sys_large_files=1; break 6230 ac_cv_sys_large_files=1; break
5645 fi 6231 else
6232 $as_echo "$as_me: failed program was:" >&5
6233 sed 's/^/| /' conftest.$ac_ext >&5
6234
6235
6236 fi
6237
5646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5647 ac_cv_sys_large_files=unknown 6239 ac_cv_sys_large_files=unknown
5648 break 6240 break
5649 done 6241 done
5650 fi 6242 fi
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 6243 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5652 $as_echo "$ac_cv_sys_large_files" >&6; } 6244 $as_echo "$ac_cv_sys_large_files" >&6; }
5653 case $ac_cv_sys_large_files in #( 6245 case $ac_cv_sys_large_files in #(
5654 no | unknown) ;; 6246 no | unknown) ;;
5655 *) 6247 *)
5656 cat >>confdefs.h <<_ACEOF 6248 cat >>confdefs.h <<_ACEOF
5670 ### relevant files (bug#1287). Hence test for crtn.o. 6262 ### relevant files (bug#1287). Hence test for crtn.o.
5671 case "${canonical}" in 6263 case "${canonical}" in
5672 x86_64-*-linux-gnu* | s390x-*-linux-gnu* ) 6264 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5673 if test -e /usr/lib64/crtn.o; then 6265 if test -e /usr/lib64/crtn.o; then
5674 6266
5675 $as_echo "#define HAVE_LIB64_DIR 1" >>confdefs.h 6267 cat >>confdefs.h <<\_ACEOF
6268 #define HAVE_LIB64_DIR 1
6269 _ACEOF
5676 6270
5677 fi 6271 fi
5678 esac 6272 esac
5679 6273
5680 6274
5681 6275
5682 6276
5683 if test "${with_sound}" != "no"; then 6277 if test "${with_sound}" != "no"; then
5684 # Sound support for GNU/Linux and the free BSDs. 6278 # Sound support for GNU/Linux and the free BSDs.
5685 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h 6279
5686 do : 6280
5687 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6281
5688 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6282 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5689 eval as_val=\$$as_ac_Header 6283 do
5690 if test "x$as_val" = x""yes; then : 6284 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6286 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6287 $as_echo_n "checking for $ac_header... " >&6; }
6288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6289 $as_echo_n "(cached) " >&6
6290 fi
6291 ac_res=`eval 'as_val=${'$as_ac_Header'}
6292 $as_echo "$as_val"'`
6293 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6294 $as_echo "$ac_res" >&6; }
6295 else
6296 # Is the header compilable?
6297 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6298 $as_echo_n "checking $ac_header usability... " >&6; }
6299 cat >conftest.$ac_ext <<_ACEOF
6300 /* confdefs.h. */
6301 _ACEOF
6302 cat confdefs.h >>conftest.$ac_ext
6303 cat >>conftest.$ac_ext <<_ACEOF
6304 /* end confdefs.h. */
6305 $ac_includes_default
6306 #include <$ac_header>
6307 _ACEOF
6308 rm -f conftest.$ac_objext
6309 if { (ac_try="$ac_compile"
6310 case "(($ac_try" in
6311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312 *) ac_try_echo=$ac_try;;
6313 esac
6314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6315 $as_echo "$ac_try_echo") >&5
6316 (eval "$ac_compile") 2>conftest.er1
6317 ac_status=$?
6318 grep -v '^ *+' conftest.er1 >conftest.err
6319 rm -f conftest.er1
6320 cat conftest.err >&5
6321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); } && {
6323 test -z "$ac_c_werror_flag" ||
6324 test ! -s conftest.err
6325 } && test -s conftest.$ac_objext; then
6326 ac_header_compiler=yes
6327 else
6328 $as_echo "$as_me: failed program was:" >&5
6329 sed 's/^/| /' conftest.$ac_ext >&5
6330
6331 ac_header_compiler=no
6332 fi
6333
6334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6335 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6336 $as_echo "$ac_header_compiler" >&6; }
6337
6338 # Is the header present?
6339 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6340 $as_echo_n "checking $ac_header presence... " >&6; }
6341 cat >conftest.$ac_ext <<_ACEOF
6342 /* confdefs.h. */
6343 _ACEOF
6344 cat confdefs.h >>conftest.$ac_ext
6345 cat >>conftest.$ac_ext <<_ACEOF
6346 /* end confdefs.h. */
6347 #include <$ac_header>
6348 _ACEOF
6349 if { (ac_try="$ac_cpp conftest.$ac_ext"
6350 case "(($ac_try" in
6351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6352 *) ac_try_echo=$ac_try;;
6353 esac
6354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6355 $as_echo "$ac_try_echo") >&5
6356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6357 ac_status=$?
6358 grep -v '^ *+' conftest.er1 >conftest.err
6359 rm -f conftest.er1
6360 cat conftest.err >&5
6361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } >/dev/null && {
6363 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6364 test ! -s conftest.err
6365 }; then
6366 ac_header_preproc=yes
6367 else
6368 $as_echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.$ac_ext >&5
6370
6371 ac_header_preproc=no
6372 fi
6373
6374 rm -f conftest.err conftest.$ac_ext
6375 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6376 $as_echo "$ac_header_preproc" >&6; }
6377
6378 # So? What about this header?
6379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6380 yes:no: )
6381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6382 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6384 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6385 ac_header_preproc=yes
6386 ;;
6387 no:yes:* )
6388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6389 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6391 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6393 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6395 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6397 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6398 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6399 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6400
6401 ;;
6402 esac
6403 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6404 $as_echo_n "checking for $ac_header... " >&6; }
6405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6406 $as_echo_n "(cached) " >&6
6407 else
6408 eval "$as_ac_Header=\$ac_header_preproc"
6409 fi
6410 ac_res=`eval 'as_val=${'$as_ac_Header'}
6411 $as_echo "$as_val"'`
6412 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6413 $as_echo "$ac_res" >&6; }
6414
6415 fi
6416 if test `eval 'as_val=${'$as_ac_Header'}
6417 $as_echo "$as_val"'` = yes; then
5691 cat >>confdefs.h <<_ACEOF 6418 cat >>confdefs.h <<_ACEOF
5692 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6419 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5693 _ACEOF 6420 _ACEOF
5694 6421
5695 fi 6422 fi
5696 6423
5697 done 6424 done
5698 6425
5699 # Emulation library used on NetBSD. 6426 # Emulation library used on NetBSD.
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5 6427 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5701 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; } 6428 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5702 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then : 6429 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5703 $as_echo_n "(cached) " >&6 6430 $as_echo_n "(cached) " >&6
5704 else 6431 else
5705 ac_check_lib_save_LIBS=$LIBS 6432 ac_check_lib_save_LIBS=$LIBS
5706 LIBS="-lossaudio $LIBS" 6433 LIBS="-lossaudio $LIBS"
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6434 cat >conftest.$ac_ext <<_ACEOF
6435 /* confdefs.h. */
6436 _ACEOF
6437 cat confdefs.h >>conftest.$ac_ext
6438 cat >>conftest.$ac_ext <<_ACEOF
5708 /* end confdefs.h. */ 6439 /* end confdefs.h. */
5709 6440
5710 /* Override any GCC internal prototype to avoid an error. 6441 /* Override any GCC internal prototype to avoid an error.
5711 Use char because int might match the return type of a GCC 6442 Use char because int might match the return type of a GCC
5712 builtin and then its argument prototype would still apply. */ 6443 builtin and then its argument prototype would still apply. */
5720 return _oss_ioctl (); 6451 return _oss_ioctl ();
5721 ; 6452 ;
5722 return 0; 6453 return 0;
5723 } 6454 }
5724 _ACEOF 6455 _ACEOF
5725 if ac_fn_c_try_link "$LINENO"; then : 6456 rm -f conftest.$ac_objext conftest$ac_exeext
6457 if { (ac_try="$ac_link"
6458 case "(($ac_try" in
6459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6460 *) ac_try_echo=$ac_try;;
6461 esac
6462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6463 $as_echo "$ac_try_echo") >&5
6464 (eval "$ac_link") 2>conftest.er1
6465 ac_status=$?
6466 grep -v '^ *+' conftest.er1 >conftest.err
6467 rm -f conftest.er1
6468 cat conftest.err >&5
6469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } && {
6471 test -z "$ac_c_werror_flag" ||
6472 test ! -s conftest.err
6473 } && test -s conftest$ac_exeext && {
6474 test "$cross_compiling" = yes ||
6475 $as_test_x conftest$ac_exeext
6476 }; then
5726 ac_cv_lib_ossaudio__oss_ioctl=yes 6477 ac_cv_lib_ossaudio__oss_ioctl=yes
5727 else 6478 else
5728 ac_cv_lib_ossaudio__oss_ioctl=no 6479 $as_echo "$as_me: failed program was:" >&5
5729 fi 6480 sed 's/^/| /' conftest.$ac_ext >&5
5730 rm -f core conftest.err conftest.$ac_objext \ 6481
5731 conftest$ac_exeext conftest.$ac_ext 6482 ac_cv_lib_ossaudio__oss_ioctl=no
6483 fi
6484
6485 rm -rf conftest.dSYM
6486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6487 conftest$ac_exeext conftest.$ac_ext
5732 LIBS=$ac_check_lib_save_LIBS 6488 LIBS=$ac_check_lib_save_LIBS
5733 fi 6489 fi
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 6490 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5735 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; } 6491 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5736 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then : 6492 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5737 LIBSOUND=-lossaudio 6493 LIBSOUND=-lossaudio
5738 else 6494 else
5739 LIBSOUND= 6495 LIBSOUND=
5740 fi 6496 fi
5741 6497
5746 6502
5747 succeeded=no 6503 succeeded=no
5748 6504
5749 # Extract the first word of "pkg-config", so it can be a program name with args. 6505 # Extract the first word of "pkg-config", so it can be a program name with args.
5750 set dummy pkg-config; ac_word=$2 6506 set dummy pkg-config; ac_word=$2
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6507 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5752 $as_echo_n "checking for $ac_word... " >&6; } 6508 $as_echo_n "checking for $ac_word... " >&6; }
5753 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 6509 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5754 $as_echo_n "(cached) " >&6 6510 $as_echo_n "(cached) " >&6
5755 else 6511 else
5756 case $PKG_CONFIG in 6512 case $PKG_CONFIG in
5757 [\\/]* | ?:[\\/]*) 6513 [\\/]* | ?:[\\/]*)
5758 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 6514 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762 for as_dir in $PATH 6518 for as_dir in $PATH
5763 do 6519 do
5764 IFS=$as_save_IFS 6520 IFS=$as_save_IFS
5765 test -z "$as_dir" && as_dir=. 6521 test -z "$as_dir" && as_dir=.
5766 for ac_exec_ext in '' $ac_executable_extensions; do 6522 for ac_exec_ext in '' $ac_executable_extensions; do
5767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5768 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 6524 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6525 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5770 break 2 6526 break 2
5771 fi 6527 fi
5772 done 6528 done
5773 done 6529 done
5774 IFS=$as_save_IFS 6530 IFS=$as_save_IFS
5775 6531
5776 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 6532 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5777 ;; 6533 ;;
5778 esac 6534 esac
5779 fi 6535 fi
5780 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 6536 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5781 if test -n "$PKG_CONFIG"; then 6537 if test -n "$PKG_CONFIG"; then
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 6538 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5783 $as_echo "$PKG_CONFIG" >&6; } 6539 $as_echo "$PKG_CONFIG" >&6; }
5784 else 6540 else
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6541 { $as_echo "$as_me:$LINENO: result: no" >&5
5786 $as_echo "no" >&6; } 6542 $as_echo "no" >&6; }
5787 fi 6543 fi
5788 6544
5789 6545
5790 6546
5791 if test "$PKG_CONFIG" = "no" ; then 6547 if test "$PKG_CONFIG" = "no" ; then
5792 HAVE_ALSA=no 6548 HAVE_ALSA=no
5793 else 6549 else
5794 PKG_CONFIG_MIN_VERSION=0.9.0 6550 PKG_CONFIG_MIN_VERSION=0.9.0
5795 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 6551 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5 6552 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
5797 $as_echo_n "checking for $ALSA_MODULES... " >&6; } 6553 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
5798 6554
5799 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then 6555 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6556 { $as_echo "$as_me:$LINENO: result: yes" >&5
5801 $as_echo "yes" >&6; } 6557 $as_echo "yes" >&6; }
5802 succeeded=yes 6558 succeeded=yes
5803 6559
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5 6560 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
5805 $as_echo_n "checking ALSA_CFLAGS... " >&6; } 6561 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
5806 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'` 6562 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5 6563 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
5808 $as_echo "$ALSA_CFLAGS" >&6; } 6564 $as_echo "$ALSA_CFLAGS" >&6; }
5809 6565
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5 6566 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
5811 $as_echo_n "checking ALSA_LIBS... " >&6; } 6567 $as_echo_n "checking ALSA_LIBS... " >&6; }
5812 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'` 6568 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5 6569 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
5814 $as_echo "$ALSA_LIBS" >&6; } 6570 $as_echo "$ALSA_LIBS" >&6; }
5815 else 6571 else
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6572 { $as_echo "$as_me:$LINENO: result: no" >&5
5817 $as_echo "no" >&6; } 6573 $as_echo "no" >&6; }
5818 ALSA_CFLAGS="" 6574 ALSA_CFLAGS=""
5819 ALSA_LIBS="" 6575 ALSA_LIBS=""
5820 ## If we have a custom action on failure, don't print errors, but 6576 ## If we have a custom action on failure, don't print errors, but
5821 ## do set a variable so people can do so. 6577 ## do set a variable so people can do so.
5840 if test $HAVE_ALSA = yes; then 6596 if test $HAVE_ALSA = yes; then
5841 SAVE_CFLAGS="$CFLAGS" 6597 SAVE_CFLAGS="$CFLAGS"
5842 SAVE_LDFLAGS="$LDFLAGS" 6598 SAVE_LDFLAGS="$LDFLAGS"
5843 CFLAGS="$ALSA_CFLAGS $CFLAGS" 6599 CFLAGS="$ALSA_CFLAGS $CFLAGS"
5844 LDFLAGS="$ALSA_LIBS $LDFLAGS" 6600 LDFLAGS="$ALSA_LIBS $LDFLAGS"
5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6601 cat >conftest.$ac_ext <<_ACEOF
6602 /* confdefs.h. */
6603 _ACEOF
6604 cat confdefs.h >>conftest.$ac_ext
6605 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h. */ 6606 /* end confdefs.h. */
5847 #include <asoundlib.h> 6607 #include <asoundlib.h>
5848 int 6608 int
5849 main () 6609 main ()
5850 { 6610 {
5851 snd_lib_error_set_handler (0); 6611 snd_lib_error_set_handler (0);
5852 ; 6612 ;
5853 return 0; 6613 return 0;
5854 } 6614 }
5855 _ACEOF 6615 _ACEOF
5856 if ac_fn_c_try_compile "$LINENO"; then : 6616 rm -f conftest.$ac_objext
6617 if { (ac_try="$ac_compile"
6618 case "(($ac_try" in
6619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6620 *) ac_try_echo=$ac_try;;
6621 esac
6622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6623 $as_echo "$ac_try_echo") >&5
6624 (eval "$ac_compile") 2>conftest.er1
6625 ac_status=$?
6626 grep -v '^ *+' conftest.er1 >conftest.err
6627 rm -f conftest.er1
6628 cat conftest.err >&5
6629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); } && {
6631 test -z "$ac_c_werror_flag" ||
6632 test ! -s conftest.err
6633 } && test -s conftest.$ac_objext; then
5857 emacs_alsa_normal=yes 6634 emacs_alsa_normal=yes
5858 else 6635 else
5859 emacs_alsa_normal=no 6636 $as_echo "$as_me: failed program was:" >&5
5860 fi 6637 sed 's/^/| /' conftest.$ac_ext >&5
6638
6639 emacs_alsa_normal=no
6640 fi
6641
5861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5862 if test "$emacs_alsa_normal" != yes; then 6643 if test "$emacs_alsa_normal" != yes; then
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6644 cat >conftest.$ac_ext <<_ACEOF
6645 /* confdefs.h. */
6646 _ACEOF
6647 cat confdefs.h >>conftest.$ac_ext
6648 cat >>conftest.$ac_ext <<_ACEOF
5864 /* end confdefs.h. */ 6649 /* end confdefs.h. */
5865 #include <alsa/asoundlib.h> 6650 #include <alsa/asoundlib.h>
5866 int 6651 int
5867 main () 6652 main ()
5868 { 6653 {
5869 snd_lib_error_set_handler (0); 6654 snd_lib_error_set_handler (0);
5870 ; 6655 ;
5871 return 0; 6656 return 0;
5872 } 6657 }
5873 _ACEOF 6658 _ACEOF
5874 if ac_fn_c_try_compile "$LINENO"; then : 6659 rm -f conftest.$ac_objext
6660 if { (ac_try="$ac_compile"
6661 case "(($ac_try" in
6662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6663 *) ac_try_echo=$ac_try;;
6664 esac
6665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6666 $as_echo "$ac_try_echo") >&5
6667 (eval "$ac_compile") 2>conftest.er1
6668 ac_status=$?
6669 grep -v '^ *+' conftest.er1 >conftest.err
6670 rm -f conftest.er1
6671 cat conftest.err >&5
6672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); } && {
6674 test -z "$ac_c_werror_flag" ||
6675 test ! -s conftest.err
6676 } && test -s conftest.$ac_objext; then
5875 emacs_alsa_subdir=yes 6677 emacs_alsa_subdir=yes
5876 else 6678 else
5877 emacs_alsa_subdir=no 6679 $as_echo "$as_me: failed program was:" >&5
5878 fi 6680 sed 's/^/| /' conftest.$ac_ext >&5
6681
6682 emacs_alsa_subdir=no
6683 fi
6684
5879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5880 if test "$emacs_alsa_subdir" != yes; then 6686 if test "$emacs_alsa_subdir" != yes; then
5881 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5 6687 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6688 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6689 { (exit 1); exit 1; }; }
5882 fi 6690 fi
5883 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" 6691 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
5884 fi 6692 fi
5885 6693
5886 CFLAGS="$SAVE_CFLAGS" 6694 CFLAGS="$SAVE_CFLAGS"
5887 LDFLAGS="$SAVE_LDFLAGS" 6695 LDFLAGS="$SAVE_LDFLAGS"
5888 LIBSOUND="$LIBSOUND $ALSA_LIBS" 6696 LIBSOUND="$LIBSOUND $ALSA_LIBS"
5889 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS" 6697 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
5890 6698
5891 $as_echo "#define HAVE_ALSA 1" >>confdefs.h 6699 cat >>confdefs.h <<\_ACEOF
6700 #define HAVE_ALSA 1
6701 _ACEOF
5892 6702
5893 fi 6703 fi
5894 6704
5895 fi 6705 fi
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
5896 6731
5897 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ 6732 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5898 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ 6733 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5899 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ 6734 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5900 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \ 6735 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5901 sys/utsname.h pwd.h utmp.h 6736 sys/utsname.h pwd.h utmp.h
5902 do : 6737 do
5903 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6738 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5904 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5905 eval as_val=\$$as_ac_Header 6740 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5906 if test "x$as_val" = x""yes; then : 6741 $as_echo_n "checking for $ac_header... " >&6; }
6742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6743 $as_echo_n "(cached) " >&6
6744 fi
6745 ac_res=`eval 'as_val=${'$as_ac_Header'}
6746 $as_echo "$as_val"'`
6747 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6748 $as_echo "$ac_res" >&6; }
6749 else
6750 # Is the header compilable?
6751 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6752 $as_echo_n "checking $ac_header usability... " >&6; }
6753 cat >conftest.$ac_ext <<_ACEOF
6754 /* confdefs.h. */
6755 _ACEOF
6756 cat confdefs.h >>conftest.$ac_ext
6757 cat >>conftest.$ac_ext <<_ACEOF
6758 /* end confdefs.h. */
6759 $ac_includes_default
6760 #include <$ac_header>
6761 _ACEOF
6762 rm -f conftest.$ac_objext
6763 if { (ac_try="$ac_compile"
6764 case "(($ac_try" in
6765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6766 *) ac_try_echo=$ac_try;;
6767 esac
6768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6769 $as_echo "$ac_try_echo") >&5
6770 (eval "$ac_compile") 2>conftest.er1
6771 ac_status=$?
6772 grep -v '^ *+' conftest.er1 >conftest.err
6773 rm -f conftest.er1
6774 cat conftest.err >&5
6775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } && {
6777 test -z "$ac_c_werror_flag" ||
6778 test ! -s conftest.err
6779 } && test -s conftest.$ac_objext; then
6780 ac_header_compiler=yes
6781 else
6782 $as_echo "$as_me: failed program was:" >&5
6783 sed 's/^/| /' conftest.$ac_ext >&5
6784
6785 ac_header_compiler=no
6786 fi
6787
6788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6789 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6790 $as_echo "$ac_header_compiler" >&6; }
6791
6792 # Is the header present?
6793 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6794 $as_echo_n "checking $ac_header presence... " >&6; }
6795 cat >conftest.$ac_ext <<_ACEOF
6796 /* confdefs.h. */
6797 _ACEOF
6798 cat confdefs.h >>conftest.$ac_ext
6799 cat >>conftest.$ac_ext <<_ACEOF
6800 /* end confdefs.h. */
6801 #include <$ac_header>
6802 _ACEOF
6803 if { (ac_try="$ac_cpp conftest.$ac_ext"
6804 case "(($ac_try" in
6805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6806 *) ac_try_echo=$ac_try;;
6807 esac
6808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6809 $as_echo "$ac_try_echo") >&5
6810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6811 ac_status=$?
6812 grep -v '^ *+' conftest.er1 >conftest.err
6813 rm -f conftest.er1
6814 cat conftest.err >&5
6815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); } >/dev/null && {
6817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6818 test ! -s conftest.err
6819 }; then
6820 ac_header_preproc=yes
6821 else
6822 $as_echo "$as_me: failed program was:" >&5
6823 sed 's/^/| /' conftest.$ac_ext >&5
6824
6825 ac_header_preproc=no
6826 fi
6827
6828 rm -f conftest.err conftest.$ac_ext
6829 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6830 $as_echo "$ac_header_preproc" >&6; }
6831
6832 # So? What about this header?
6833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6834 yes:no: )
6835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6836 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6838 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6839 ac_header_preproc=yes
6840 ;;
6841 no:yes:* )
6842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6843 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6845 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6847 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6849 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6851 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6853 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6854
6855 ;;
6856 esac
6857 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6858 $as_echo_n "checking for $ac_header... " >&6; }
6859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6860 $as_echo_n "(cached) " >&6
6861 else
6862 eval "$as_ac_Header=\$ac_header_preproc"
6863 fi
6864 ac_res=`eval 'as_val=${'$as_ac_Header'}
6865 $as_echo "$as_val"'`
6866 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6867 $as_echo "$ac_res" >&6; }
6868
6869 fi
6870 if test `eval 'as_val=${'$as_ac_Header'}
6871 $as_echo "$as_val"'` = yes; then
5907 cat >>confdefs.h <<_ACEOF 6872 cat >>confdefs.h <<_ACEOF
5908 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6873 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5909 _ACEOF 6874 _ACEOF
5910 6875
5911 fi 6876 fi
5912 6877
5913 done 6878 done
5914 6879
5915 6880
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5 6881 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5917 $as_echo_n "checking if personality LINUX32 can be set... " >&6; } 6882 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
5918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6883 cat >conftest.$ac_ext <<_ACEOF
6884 /* confdefs.h. */
6885 _ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h. */ 6888 /* end confdefs.h. */
5920 #include <sys/personality.h> 6889 #include <sys/personality.h>
5921 int 6890 int
5922 main () 6891 main ()
5923 { 6892 {
5924 personality (PER_LINUX32) 6893 personality (PER_LINUX32)
5925 ; 6894 ;
5926 return 0; 6895 return 0;
5927 } 6896 }
5928 _ACEOF 6897 _ACEOF
5929 if ac_fn_c_try_compile "$LINENO"; then : 6898 rm -f conftest.$ac_objext
6899 if { (ac_try="$ac_compile"
6900 case "(($ac_try" in
6901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6902 *) ac_try_echo=$ac_try;;
6903 esac
6904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6905 $as_echo "$ac_try_echo") >&5
6906 (eval "$ac_compile") 2>conftest.er1
6907 ac_status=$?
6908 grep -v '^ *+' conftest.er1 >conftest.err
6909 rm -f conftest.er1
6910 cat conftest.err >&5
6911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } && {
6913 test -z "$ac_c_werror_flag" ||
6914 test ! -s conftest.err
6915 } && test -s conftest.$ac_objext; then
5930 emacs_cv_personality_linux32=yes 6916 emacs_cv_personality_linux32=yes
5931 else 6917 else
5932 emacs_cv_personality_linux32=no 6918 $as_echo "$as_me: failed program was:" >&5
5933 fi 6919 sed 's/^/| /' conftest.$ac_ext >&5
6920
6921 emacs_cv_personality_linux32=no
6922 fi
6923
5934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5 6925 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5936 $as_echo "$emacs_cv_personality_linux32" >&6; } 6926 $as_echo "$emacs_cv_personality_linux32" >&6; }
5937 6927
5938 if test $emacs_cv_personality_linux32 = yes; then 6928 if test $emacs_cv_personality_linux32 = yes; then
5939 6929
5940 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h 6930 cat >>confdefs.h <<\_ACEOF
5941 6931 #define HAVE_PERSONALITY_LINUX32 1
5942 fi 6932 _ACEOF
6933
6934 fi
6935
5943 6936
5944 for ac_header in term.h 6937 for ac_header in term.h
5945 do : 6938 do
5946 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h" 6939 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5947 if test "x$ac_cv_header_term_h" = x""yes; then : 6940 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6941 $as_echo_n "checking for $ac_header... " >&6; }
6942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6943 $as_echo_n "(cached) " >&6
6944 else
6945 cat >conftest.$ac_ext <<_ACEOF
6946 /* confdefs.h. */
6947 _ACEOF
6948 cat confdefs.h >>conftest.$ac_ext
6949 cat >>conftest.$ac_ext <<_ACEOF
6950 /* end confdefs.h. */
6951 #include <$ac_header>
6952 _ACEOF
6953 if { (ac_try="$ac_cpp conftest.$ac_ext"
6954 case "(($ac_try" in
6955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6956 *) ac_try_echo=$ac_try;;
6957 esac
6958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6959 $as_echo "$ac_try_echo") >&5
6960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6961 ac_status=$?
6962 grep -v '^ *+' conftest.er1 >conftest.err
6963 rm -f conftest.er1
6964 cat conftest.err >&5
6965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); } >/dev/null && {
6967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6968 test ! -s conftest.err
6969 }; then
6970 eval "$as_ac_Header=yes"
6971 else
6972 $as_echo "$as_me: failed program was:" >&5
6973 sed 's/^/| /' conftest.$ac_ext >&5
6974
6975 eval "$as_ac_Header=no"
6976 fi
6977
6978 rm -f conftest.err conftest.$ac_ext
6979 fi
6980 ac_res=`eval 'as_val=${'$as_ac_Header'}
6981 $as_echo "$as_val"'`
6982 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6983 $as_echo "$ac_res" >&6; }
6984 if test `eval 'as_val=${'$as_ac_Header'}
6985 $as_echo "$as_val"'` = yes; then
5948 cat >>confdefs.h <<_ACEOF 6986 cat >>confdefs.h <<_ACEOF
5949 #define HAVE_TERM_H 1 6987 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5950 _ACEOF 6988 _ACEOF
5951 6989
5952 fi 6990 fi
5953 6991
5954 done 6992 done
5955 6993
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6994 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5957 $as_echo_n "checking for ANSI C header files... " >&6; } 6995 $as_echo_n "checking for ANSI C header files... " >&6; }
5958 if test "${ac_cv_header_stdc+set}" = set; then : 6996 if test "${ac_cv_header_stdc+set}" = set; then
5959 $as_echo_n "(cached) " >&6 6997 $as_echo_n "(cached) " >&6
5960 else 6998 else
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6999 cat >conftest.$ac_ext <<_ACEOF
7000 /* confdefs.h. */
7001 _ACEOF
7002 cat confdefs.h >>conftest.$ac_ext
7003 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h. */ 7004 /* end confdefs.h. */
5963 #include <stdlib.h> 7005 #include <stdlib.h>
5964 #include <stdarg.h> 7006 #include <stdarg.h>
5965 #include <string.h> 7007 #include <string.h>
5966 #include <float.h> 7008 #include <float.h>
5971 7013
5972 ; 7014 ;
5973 return 0; 7015 return 0;
5974 } 7016 }
5975 _ACEOF 7017 _ACEOF
5976 if ac_fn_c_try_compile "$LINENO"; then : 7018 rm -f conftest.$ac_objext
7019 if { (ac_try="$ac_compile"
7020 case "(($ac_try" in
7021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7022 *) ac_try_echo=$ac_try;;
7023 esac
7024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7025 $as_echo "$ac_try_echo") >&5
7026 (eval "$ac_compile") 2>conftest.er1
7027 ac_status=$?
7028 grep -v '^ *+' conftest.er1 >conftest.err
7029 rm -f conftest.er1
7030 cat conftest.err >&5
7031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } && {
7033 test -z "$ac_c_werror_flag" ||
7034 test ! -s conftest.err
7035 } && test -s conftest.$ac_objext; then
5977 ac_cv_header_stdc=yes 7036 ac_cv_header_stdc=yes
5978 else 7037 else
5979 ac_cv_header_stdc=no 7038 $as_echo "$as_me: failed program was:" >&5
5980 fi 7039 sed 's/^/| /' conftest.$ac_ext >&5
7040
7041 ac_cv_header_stdc=no
7042 fi
7043
5981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5982 7045
5983 if test $ac_cv_header_stdc = yes; then 7046 if test $ac_cv_header_stdc = yes; then
5984 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7047 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7048 cat >conftest.$ac_ext <<_ACEOF
7049 /* confdefs.h. */
7050 _ACEOF
7051 cat confdefs.h >>conftest.$ac_ext
7052 cat >>conftest.$ac_ext <<_ACEOF
5986 /* end confdefs.h. */ 7053 /* end confdefs.h. */
5987 #include <string.h> 7054 #include <string.h>
5988 7055
5989 _ACEOF 7056 _ACEOF
5990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5991 $EGREP "memchr" >/dev/null 2>&1; then : 7058 $EGREP "memchr" >/dev/null 2>&1; then
5992 7059 :
5993 else 7060 else
5994 ac_cv_header_stdc=no 7061 ac_cv_header_stdc=no
5995 fi 7062 fi
5996 rm -f conftest* 7063 rm -f conftest*
5997 7064
5998 fi 7065 fi
5999 7066
6000 if test $ac_cv_header_stdc = yes; then 7067 if test $ac_cv_header_stdc = yes; then
6001 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7068 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7069 cat >conftest.$ac_ext <<_ACEOF
7070 /* confdefs.h. */
7071 _ACEOF
7072 cat confdefs.h >>conftest.$ac_ext
7073 cat >>conftest.$ac_ext <<_ACEOF
6003 /* end confdefs.h. */ 7074 /* end confdefs.h. */
6004 #include <stdlib.h> 7075 #include <stdlib.h>
6005 7076
6006 _ACEOF 7077 _ACEOF
6007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6008 $EGREP "free" >/dev/null 2>&1; then : 7079 $EGREP "free" >/dev/null 2>&1; then
6009 7080 :
6010 else 7081 else
6011 ac_cv_header_stdc=no 7082 ac_cv_header_stdc=no
6012 fi 7083 fi
6013 rm -f conftest* 7084 rm -f conftest*
6014 7085
6015 fi 7086 fi
6016 7087
6017 if test $ac_cv_header_stdc = yes; then 7088 if test $ac_cv_header_stdc = yes; then
6018 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7089 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6019 if test "$cross_compiling" = yes; then : 7090 if test "$cross_compiling" = yes; then
6020 : 7091 :
6021 else 7092 else
6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7093 cat >conftest.$ac_ext <<_ACEOF
7094 /* confdefs.h. */
7095 _ACEOF
7096 cat confdefs.h >>conftest.$ac_ext
7097 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h. */ 7098 /* end confdefs.h. */
6024 #include <ctype.h> 7099 #include <ctype.h>
6025 #include <stdlib.h> 7100 #include <stdlib.h>
6026 #if ((' ' & 0x0FF) == 0x020) 7101 #if ((' ' & 0x0FF) == 0x020)
6027 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7102 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6044 || toupper (i) != TOUPPER (i)) 7119 || toupper (i) != TOUPPER (i))
6045 return 2; 7120 return 2;
6046 return 0; 7121 return 0;
6047 } 7122 }
6048 _ACEOF 7123 _ACEOF
6049 if ac_fn_c_try_run "$LINENO"; then : 7124 rm -f conftest$ac_exeext
6050 7125 if { (ac_try="$ac_link"
6051 else 7126 case "(($ac_try" in
6052 ac_cv_header_stdc=no 7127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6053 fi 7128 *) ac_try_echo=$ac_try;;
6054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7129 esac
6055 conftest.$ac_objext conftest.beam conftest.$ac_ext 7130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6056 fi 7131 $as_echo "$ac_try_echo") >&5
6057 7132 (eval "$ac_link") 2>&5
6058 fi 7133 ac_status=$?
6059 fi 7134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7136 { (case "(($ac_try" in
7137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7138 *) ac_try_echo=$ac_try;;
7139 esac
7140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7141 $as_echo "$ac_try_echo") >&5
7142 (eval "$ac_try") 2>&5
7143 ac_status=$?
7144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); }; }; then
7146 :
7147 else
7148 $as_echo "$as_me: program exited with status $ac_status" >&5
7149 $as_echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.$ac_ext >&5
7151
7152 ( exit $ac_status )
7153 ac_cv_header_stdc=no
7154 fi
7155 rm -rf conftest.dSYM
7156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7157 fi
7158
7159
7160 fi
7161 fi
7162 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6061 $as_echo "$ac_cv_header_stdc" >&6; } 7163 $as_echo "$ac_cv_header_stdc" >&6; }
6062 if test $ac_cv_header_stdc = yes; then 7164 if test $ac_cv_header_stdc = yes; then
6063 7165
6064 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 7166 cat >>confdefs.h <<\_ACEOF
6065 7167 #define STDC_HEADERS 1
6066 fi 7168 _ACEOF
6067 7169
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 7170 fi
7171
7172 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6069 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 7173 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6070 if test "${ac_cv_header_time+set}" = set; then : 7174 if test "${ac_cv_header_time+set}" = set; then
6071 $as_echo_n "(cached) " >&6 7175 $as_echo_n "(cached) " >&6
6072 else 7176 else
6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7177 cat >conftest.$ac_ext <<_ACEOF
7178 /* confdefs.h. */
7179 _ACEOF
7180 cat confdefs.h >>conftest.$ac_ext
7181 cat >>conftest.$ac_ext <<_ACEOF
6074 /* end confdefs.h. */ 7182 /* end confdefs.h. */
6075 #include <sys/types.h> 7183 #include <sys/types.h>
6076 #include <sys/time.h> 7184 #include <sys/time.h>
6077 #include <time.h> 7185 #include <time.h>
6078 7186
6083 return 0; 7191 return 0;
6084 ; 7192 ;
6085 return 0; 7193 return 0;
6086 } 7194 }
6087 _ACEOF 7195 _ACEOF
6088 if ac_fn_c_try_compile "$LINENO"; then : 7196 rm -f conftest.$ac_objext
7197 if { (ac_try="$ac_compile"
7198 case "(($ac_try" in
7199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7200 *) ac_try_echo=$ac_try;;
7201 esac
7202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7203 $as_echo "$ac_try_echo") >&5
7204 (eval "$ac_compile") 2>conftest.er1
7205 ac_status=$?
7206 grep -v '^ *+' conftest.er1 >conftest.err
7207 rm -f conftest.er1
7208 cat conftest.err >&5
7209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); } && {
7211 test -z "$ac_c_werror_flag" ||
7212 test ! -s conftest.err
7213 } && test -s conftest.$ac_objext; then
6089 ac_cv_header_time=yes 7214 ac_cv_header_time=yes
6090 else 7215 else
6091 ac_cv_header_time=no 7216 $as_echo "$as_me: failed program was:" >&5
6092 fi 7217 sed 's/^/| /' conftest.$ac_ext >&5
7218
7219 ac_cv_header_time=no
7220 fi
7221
6093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6094 fi 7223 fi
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 7224 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6096 $as_echo "$ac_cv_header_time" >&6; } 7225 $as_echo "$ac_cv_header_time" >&6; }
6097 if test $ac_cv_header_time = yes; then 7226 if test $ac_cv_header_time = yes; then
6098 7227
6099 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 7228 cat >>confdefs.h <<\_ACEOF
6100 7229 #define TIME_WITH_SYS_TIME 1
6101 fi 7230 _ACEOF
6102 7231
6103 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default" 7232 fi
6104 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then : 7233
6105 ac_have_decl=1 7234 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6106 else 7235 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
6107 ac_have_decl=0 7236 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6108 fi 7237 $as_echo_n "(cached) " >&6
7238 else
7239 cat >conftest.$ac_ext <<_ACEOF
7240 /* confdefs.h. */
7241 _ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7245 $ac_includes_default
7246 int
7247 main ()
7248 {
7249 #ifndef sys_siglist
7250 (void) sys_siglist;
7251 #endif
7252
7253 ;
7254 return 0;
7255 }
7256 _ACEOF
7257 rm -f conftest.$ac_objext
7258 if { (ac_try="$ac_compile"
7259 case "(($ac_try" in
7260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7261 *) ac_try_echo=$ac_try;;
7262 esac
7263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7264 $as_echo "$ac_try_echo") >&5
7265 (eval "$ac_compile") 2>conftest.er1
7266 ac_status=$?
7267 grep -v '^ *+' conftest.er1 >conftest.err
7268 rm -f conftest.er1
7269 cat conftest.err >&5
7270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } && {
7272 test -z "$ac_c_werror_flag" ||
7273 test ! -s conftest.err
7274 } && test -s conftest.$ac_objext; then
7275 ac_cv_have_decl_sys_siglist=yes
7276 else
7277 $as_echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7279
7280 ac_cv_have_decl_sys_siglist=no
7281 fi
7282
7283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7284 fi
7285 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7286 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7287 if test $ac_cv_have_decl_sys_siglist = yes; then
6109 7288
6110 cat >>confdefs.h <<_ACEOF 7289 cat >>confdefs.h <<_ACEOF
6111 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl 7290 #define HAVE_DECL_SYS_SIGLIST 1
6112 _ACEOF 7291 _ACEOF
7292
7293
7294 else
7295 cat >>confdefs.h <<_ACEOF
7296 #define HAVE_DECL_SYS_SIGLIST 0
7297 _ACEOF
7298
7299
7300 fi
7301
6113 7302
6114 if test $ac_cv_have_decl_sys_siglist != yes; then 7303 if test $ac_cv_have_decl_sys_siglist != yes; then
6115 # For Tru64, at least: 7304 # For Tru64, at least:
6116 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default" 7305 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6117 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then : 7306 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
6118 ac_have_decl=1 7307 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6119 else 7308 $as_echo_n "(cached) " >&6
6120 ac_have_decl=0 7309 else
6121 fi 7310 cat >conftest.$ac_ext <<_ACEOF
7311 /* confdefs.h. */
7312 _ACEOF
7313 cat confdefs.h >>conftest.$ac_ext
7314 cat >>conftest.$ac_ext <<_ACEOF
7315 /* end confdefs.h. */
7316 $ac_includes_default
7317 int
7318 main ()
7319 {
7320 #ifndef __sys_siglist
7321 (void) __sys_siglist;
7322 #endif
7323
7324 ;
7325 return 0;
7326 }
7327 _ACEOF
7328 rm -f conftest.$ac_objext
7329 if { (ac_try="$ac_compile"
7330 case "(($ac_try" in
7331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7332 *) ac_try_echo=$ac_try;;
7333 esac
7334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7335 $as_echo "$ac_try_echo") >&5
7336 (eval "$ac_compile") 2>conftest.er1
7337 ac_status=$?
7338 grep -v '^ *+' conftest.er1 >conftest.err
7339 rm -f conftest.er1
7340 cat conftest.err >&5
7341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } && {
7343 test -z "$ac_c_werror_flag" ||
7344 test ! -s conftest.err
7345 } && test -s conftest.$ac_objext; then
7346 ac_cv_have_decl___sys_siglist=yes
7347 else
7348 $as_echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.$ac_ext >&5
7350
7351 ac_cv_have_decl___sys_siglist=no
7352 fi
7353
7354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7355 fi
7356 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7357 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7358 if test $ac_cv_have_decl___sys_siglist = yes; then
6122 7359
6123 cat >>confdefs.h <<_ACEOF 7360 cat >>confdefs.h <<_ACEOF
6124 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl 7361 #define HAVE_DECL___SYS_SIGLIST 1
6125 _ACEOF 7362 _ACEOF
7363
7364
7365 else
7366 cat >>confdefs.h <<_ACEOF
7367 #define HAVE_DECL___SYS_SIGLIST 0
7368 _ACEOF
7369
7370
7371 fi
7372
6126 7373
6127 if test $ac_cv_have_decl___sys_siglist = yes; then 7374 if test $ac_cv_have_decl___sys_siglist = yes; then
6128 7375
6129 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h 7376 cat >>confdefs.h <<\_ACEOF
7377 #define sys_siglist __sys_siglist
7378 _ACEOF
6130 7379
6131 fi 7380 fi
6132 fi 7381 fi
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 7382 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6134 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 7383 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6135 if test "${ac_cv_header_sys_wait_h+set}" = set; then : 7384 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6136 $as_echo_n "(cached) " >&6 7385 $as_echo_n "(cached) " >&6
6137 else 7386 else
6138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7387 cat >conftest.$ac_ext <<_ACEOF
7388 /* confdefs.h. */
7389 _ACEOF
7390 cat confdefs.h >>conftest.$ac_ext
7391 cat >>conftest.$ac_ext <<_ACEOF
6139 /* end confdefs.h. */ 7392 /* end confdefs.h. */
6140 #include <sys/types.h> 7393 #include <sys/types.h>
6141 #include <sys/wait.h> 7394 #include <sys/wait.h>
6142 #ifndef WEXITSTATUS 7395 #ifndef WEXITSTATUS
6143 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 7396 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6154 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 7407 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6155 ; 7408 ;
6156 return 0; 7409 return 0;
6157 } 7410 }
6158 _ACEOF 7411 _ACEOF
6159 if ac_fn_c_try_compile "$LINENO"; then : 7412 rm -f conftest.$ac_objext
7413 if { (ac_try="$ac_compile"
7414 case "(($ac_try" in
7415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7416 *) ac_try_echo=$ac_try;;
7417 esac
7418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7419 $as_echo "$ac_try_echo") >&5
7420 (eval "$ac_compile") 2>conftest.er1
7421 ac_status=$?
7422 grep -v '^ *+' conftest.er1 >conftest.err
7423 rm -f conftest.er1
7424 cat conftest.err >&5
7425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } && {
7427 test -z "$ac_c_werror_flag" ||
7428 test ! -s conftest.err
7429 } && test -s conftest.$ac_objext; then
6160 ac_cv_header_sys_wait_h=yes 7430 ac_cv_header_sys_wait_h=yes
6161 else 7431 else
6162 ac_cv_header_sys_wait_h=no 7432 $as_echo "$as_me: failed program was:" >&5
6163 fi 7433 sed 's/^/| /' conftest.$ac_ext >&5
7434
7435 ac_cv_header_sys_wait_h=no
7436 fi
7437
6164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165 fi 7439 fi
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 7440 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6167 $as_echo "$ac_cv_header_sys_wait_h" >&6; } 7441 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6168 if test $ac_cv_header_sys_wait_h = yes; then 7442 if test $ac_cv_header_sys_wait_h = yes; then
6169 7443
6170 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 7444 cat >>confdefs.h <<\_ACEOF
6171 7445 #define HAVE_SYS_WAIT_H 1
6172 fi 7446 _ACEOF
6173 7447
6174 7448 fi
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5 7449
7450
7451 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6176 $as_echo_n "checking for struct utimbuf... " >&6; } 7452 $as_echo_n "checking for struct utimbuf... " >&6; }
6177 if test "${emacs_cv_struct_utimbuf+set}" = set; then : 7453 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6178 $as_echo_n "(cached) " >&6 7454 $as_echo_n "(cached) " >&6
6179 else 7455 else
6180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7456 cat >conftest.$ac_ext <<_ACEOF
7457 /* confdefs.h. */
7458 _ACEOF
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
6181 /* end confdefs.h. */ 7461 /* end confdefs.h. */
6182 #ifdef TIME_WITH_SYS_TIME 7462 #ifdef TIME_WITH_SYS_TIME
6183 #include <sys/time.h> 7463 #include <sys/time.h>
6184 #include <time.h> 7464 #include <time.h>
6185 #else 7465 #else
6198 static struct utimbuf x; x.actime = x.modtime; 7478 static struct utimbuf x; x.actime = x.modtime;
6199 ; 7479 ;
6200 return 0; 7480 return 0;
6201 } 7481 }
6202 _ACEOF 7482 _ACEOF
6203 if ac_fn_c_try_compile "$LINENO"; then : 7483 rm -f conftest.$ac_objext
7484 if { (ac_try="$ac_compile"
7485 case "(($ac_try" in
7486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7487 *) ac_try_echo=$ac_try;;
7488 esac
7489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7490 $as_echo "$ac_try_echo") >&5
7491 (eval "$ac_compile") 2>conftest.er1
7492 ac_status=$?
7493 grep -v '^ *+' conftest.er1 >conftest.err
7494 rm -f conftest.er1
7495 cat conftest.err >&5
7496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); } && {
7498 test -z "$ac_c_werror_flag" ||
7499 test ! -s conftest.err
7500 } && test -s conftest.$ac_objext; then
6204 emacs_cv_struct_utimbuf=yes 7501 emacs_cv_struct_utimbuf=yes
6205 else 7502 else
6206 emacs_cv_struct_utimbuf=no 7503 $as_echo "$as_me: failed program was:" >&5
6207 fi 7504 sed 's/^/| /' conftest.$ac_ext >&5
7505
7506 emacs_cv_struct_utimbuf=no
7507 fi
7508
6208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6209 fi 7510 fi
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5 7511 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6211 $as_echo "$emacs_cv_struct_utimbuf" >&6; } 7512 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6212 if test $emacs_cv_struct_utimbuf = yes; then 7513 if test $emacs_cv_struct_utimbuf = yes; then
6213 7514
6214 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h 7515 cat >>confdefs.h <<\_ACEOF
6215 7516 #define HAVE_STRUCT_UTIMBUF 1
6216 fi 7517 _ACEOF
6217 7518
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 7519 fi
7520
7521 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6219 $as_echo_n "checking return type of signal handlers... " >&6; } 7522 $as_echo_n "checking return type of signal handlers... " >&6; }
6220 if test "${ac_cv_type_signal+set}" = set; then : 7523 if test "${ac_cv_type_signal+set}" = set; then
6221 $as_echo_n "(cached) " >&6 7524 $as_echo_n "(cached) " >&6
6222 else 7525 else
6223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7526 cat >conftest.$ac_ext <<_ACEOF
7527 /* confdefs.h. */
7528 _ACEOF
7529 cat confdefs.h >>conftest.$ac_ext
7530 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h. */ 7531 /* end confdefs.h. */
6225 #include <sys/types.h> 7532 #include <sys/types.h>
6226 #include <signal.h> 7533 #include <signal.h>
6227 7534
6228 int 7535 int
6231 return *(signal (0, 0)) (0) == 1; 7538 return *(signal (0, 0)) (0) == 1;
6232 ; 7539 ;
6233 return 0; 7540 return 0;
6234 } 7541 }
6235 _ACEOF 7542 _ACEOF
6236 if ac_fn_c_try_compile "$LINENO"; then : 7543 rm -f conftest.$ac_objext
7544 if { (ac_try="$ac_compile"
7545 case "(($ac_try" in
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7548 esac
7549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7550 $as_echo "$ac_try_echo") >&5
7551 (eval "$ac_compile") 2>conftest.er1
7552 ac_status=$?
7553 grep -v '^ *+' conftest.er1 >conftest.err
7554 rm -f conftest.er1
7555 cat conftest.err >&5
7556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); } && {
7558 test -z "$ac_c_werror_flag" ||
7559 test ! -s conftest.err
7560 } && test -s conftest.$ac_objext; then
6237 ac_cv_type_signal=int 7561 ac_cv_type_signal=int
6238 else 7562 else
6239 ac_cv_type_signal=void 7563 $as_echo "$as_me: failed program was:" >&5
6240 fi 7564 sed 's/^/| /' conftest.$ac_ext >&5
7565
7566 ac_cv_type_signal=void
7567 fi
7568
6241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6242 fi 7570 fi
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 7571 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6244 $as_echo "$ac_cv_type_signal" >&6; } 7572 $as_echo "$ac_cv_type_signal" >&6; }
6245 7573
6246 cat >>confdefs.h <<_ACEOF 7574 cat >>confdefs.h <<_ACEOF
6247 #define RETSIGTYPE $ac_cv_type_signal 7575 #define RETSIGTYPE $ac_cv_type_signal
6248 _ACEOF 7576 _ACEOF
6249 7577
6250 7578
6251 7579
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5 7580 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
6253 $as_echo_n "checking for speed_t... " >&6; } 7581 $as_echo_n "checking for speed_t... " >&6; }
6254 if test "${emacs_cv_speed_t+set}" = set; then : 7582 if test "${emacs_cv_speed_t+set}" = set; then
6255 $as_echo_n "(cached) " >&6 7583 $as_echo_n "(cached) " >&6
6256 else 7584 else
6257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7585 cat >conftest.$ac_ext <<_ACEOF
7586 /* confdefs.h. */
7587 _ACEOF
7588 cat confdefs.h >>conftest.$ac_ext
7589 cat >>conftest.$ac_ext <<_ACEOF
6258 /* end confdefs.h. */ 7590 /* end confdefs.h. */
6259 #include <termios.h> 7591 #include <termios.h>
6260 int 7592 int
6261 main () 7593 main ()
6262 { 7594 {
6263 speed_t x = 1; 7595 speed_t x = 1;
6264 ; 7596 ;
6265 return 0; 7597 return 0;
6266 } 7598 }
6267 _ACEOF 7599 _ACEOF
6268 if ac_fn_c_try_compile "$LINENO"; then : 7600 rm -f conftest.$ac_objext
7601 if { (ac_try="$ac_compile"
7602 case "(($ac_try" in
7603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7604 *) ac_try_echo=$ac_try;;
7605 esac
7606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7607 $as_echo "$ac_try_echo") >&5
7608 (eval "$ac_compile") 2>conftest.er1
7609 ac_status=$?
7610 grep -v '^ *+' conftest.er1 >conftest.err
7611 rm -f conftest.er1
7612 cat conftest.err >&5
7613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); } && {
7615 test -z "$ac_c_werror_flag" ||
7616 test ! -s conftest.err
7617 } && test -s conftest.$ac_objext; then
6269 emacs_cv_speed_t=yes 7618 emacs_cv_speed_t=yes
6270 else 7619 else
6271 emacs_cv_speed_t=no 7620 $as_echo "$as_me: failed program was:" >&5
6272 fi 7621 sed 's/^/| /' conftest.$ac_ext >&5
7622
7623 emacs_cv_speed_t=no
7624 fi
7625
6273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6274 fi 7627 fi
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5 7628 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6276 $as_echo "$emacs_cv_speed_t" >&6; } 7629 $as_echo "$emacs_cv_speed_t" >&6; }
6277 if test $emacs_cv_speed_t = yes; then 7630 if test $emacs_cv_speed_t = yes; then
6278 7631
6279 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h 7632 cat >>confdefs.h <<\_ACEOF
6280 7633 #define HAVE_SPEED_T 1
6281 fi 7634 _ACEOF
6282 7635
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 7636 fi
7637
7638 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
6284 $as_echo_n "checking for struct timeval... " >&6; } 7639 $as_echo_n "checking for struct timeval... " >&6; }
6285 if test "${emacs_cv_struct_timeval+set}" = set; then : 7640 if test "${emacs_cv_struct_timeval+set}" = set; then
6286 $as_echo_n "(cached) " >&6 7641 $as_echo_n "(cached) " >&6
6287 else 7642 else
6288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7643 cat >conftest.$ac_ext <<_ACEOF
7644 /* confdefs.h. */
7645 _ACEOF
7646 cat confdefs.h >>conftest.$ac_ext
7647 cat >>conftest.$ac_ext <<_ACEOF
6289 /* end confdefs.h. */ 7648 /* end confdefs.h. */
6290 #ifdef TIME_WITH_SYS_TIME 7649 #ifdef TIME_WITH_SYS_TIME
6291 #include <sys/time.h> 7650 #include <sys/time.h>
6292 #include <time.h> 7651 #include <time.h>
6293 #else 7652 #else
6303 static struct timeval x; x.tv_sec = x.tv_usec; 7662 static struct timeval x; x.tv_sec = x.tv_usec;
6304 ; 7663 ;
6305 return 0; 7664 return 0;
6306 } 7665 }
6307 _ACEOF 7666 _ACEOF
6308 if ac_fn_c_try_compile "$LINENO"; then : 7667 rm -f conftest.$ac_objext
7668 if { (ac_try="$ac_compile"
7669 case "(($ac_try" in
7670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7671 *) ac_try_echo=$ac_try;;
7672 esac
7673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7674 $as_echo "$ac_try_echo") >&5
7675 (eval "$ac_compile") 2>conftest.er1
7676 ac_status=$?
7677 grep -v '^ *+' conftest.er1 >conftest.err
7678 rm -f conftest.er1
7679 cat conftest.err >&5
7680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); } && {
7682 test -z "$ac_c_werror_flag" ||
7683 test ! -s conftest.err
7684 } && test -s conftest.$ac_objext; then
6309 emacs_cv_struct_timeval=yes 7685 emacs_cv_struct_timeval=yes
6310 else 7686 else
6311 emacs_cv_struct_timeval=no 7687 $as_echo "$as_me: failed program was:" >&5
6312 fi 7688 sed 's/^/| /' conftest.$ac_ext >&5
7689
7690 emacs_cv_struct_timeval=no
7691 fi
7692
6313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6314 fi 7694 fi
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5 7695 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6316 $as_echo "$emacs_cv_struct_timeval" >&6; } 7696 $as_echo "$emacs_cv_struct_timeval" >&6; }
6317 HAVE_TIMEVAL=$emacs_cv_struct_timeval 7697 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6318 if test $emacs_cv_struct_timeval = yes; then 7698 if test $emacs_cv_struct_timeval = yes; then
6319 7699
6320 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h 7700 cat >>confdefs.h <<\_ACEOF
6321 7701 #define HAVE_TIMEVAL 1
6322 fi 7702 _ACEOF
6323 7703
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5 7704 fi
7705
7706 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
6325 $as_echo_n "checking for struct exception... " >&6; } 7707 $as_echo_n "checking for struct exception... " >&6; }
6326 if test "${emacs_cv_struct_exception+set}" = set; then : 7708 if test "${emacs_cv_struct_exception+set}" = set; then
6327 $as_echo_n "(cached) " >&6 7709 $as_echo_n "(cached) " >&6
6328 else 7710 else
6329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7711 cat >conftest.$ac_ext <<_ACEOF
7712 /* confdefs.h. */
7713 _ACEOF
7714 cat confdefs.h >>conftest.$ac_ext
7715 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h. */ 7716 /* end confdefs.h. */
6331 #include <math.h> 7717 #include <math.h>
6332 int 7718 int
6333 main () 7719 main ()
6334 { 7720 {
6335 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; 7721 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6336 ; 7722 ;
6337 return 0; 7723 return 0;
6338 } 7724 }
6339 _ACEOF 7725 _ACEOF
6340 if ac_fn_c_try_compile "$LINENO"; then : 7726 rm -f conftest.$ac_objext
7727 if { (ac_try="$ac_compile"
7728 case "(($ac_try" in
7729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7730 *) ac_try_echo=$ac_try;;
7731 esac
7732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7733 $as_echo "$ac_try_echo") >&5
7734 (eval "$ac_compile") 2>conftest.er1
7735 ac_status=$?
7736 grep -v '^ *+' conftest.er1 >conftest.err
7737 rm -f conftest.er1
7738 cat conftest.err >&5
7739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); } && {
7741 test -z "$ac_c_werror_flag" ||
7742 test ! -s conftest.err
7743 } && test -s conftest.$ac_objext; then
6341 emacs_cv_struct_exception=yes 7744 emacs_cv_struct_exception=yes
6342 else 7745 else
6343 emacs_cv_struct_exception=no 7746 $as_echo "$as_me: failed program was:" >&5
6344 fi 7747 sed 's/^/| /' conftest.$ac_ext >&5
7748
7749 emacs_cv_struct_exception=no
7750 fi
7751
6345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6346 fi 7753 fi
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5 7754 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6348 $as_echo "$emacs_cv_struct_exception" >&6; } 7755 $as_echo "$emacs_cv_struct_exception" >&6; }
6349 HAVE_EXCEPTION=$emacs_cv_struct_exception 7756 HAVE_EXCEPTION=$emacs_cv_struct_exception
6350 if test $emacs_cv_struct_exception != yes; then 7757 if test $emacs_cv_struct_exception != yes; then
6351 7758
6352 $as_echo "#define NO_MATHERR 1" >>confdefs.h 7759 cat >>confdefs.h <<\_ACEOF
6353 7760 #define NO_MATHERR 1
6354 fi 7761 _ACEOF
7762
7763 fi
7764
6355 7765
6356 for ac_header in sys/socket.h 7766 for ac_header in sys/socket.h
6357 do : 7767 do
6358 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 7768 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6359 if test "x$ac_cv_header_sys_socket_h" = x""yes; then : 7769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7770 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7771 $as_echo_n "checking for $ac_header... " >&6; }
7772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7773 $as_echo_n "(cached) " >&6
7774 fi
7775 ac_res=`eval 'as_val=${'$as_ac_Header'}
7776 $as_echo "$as_val"'`
7777 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7778 $as_echo "$ac_res" >&6; }
7779 else
7780 # Is the header compilable?
7781 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7782 $as_echo_n "checking $ac_header usability... " >&6; }
7783 cat >conftest.$ac_ext <<_ACEOF
7784 /* confdefs.h. */
7785 _ACEOF
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h. */
7789 $ac_includes_default
7790 #include <$ac_header>
7791 _ACEOF
7792 rm -f conftest.$ac_objext
7793 if { (ac_try="$ac_compile"
7794 case "(($ac_try" in
7795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7796 *) ac_try_echo=$ac_try;;
7797 esac
7798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7799 $as_echo "$ac_try_echo") >&5
7800 (eval "$ac_compile") 2>conftest.er1
7801 ac_status=$?
7802 grep -v '^ *+' conftest.er1 >conftest.err
7803 rm -f conftest.er1
7804 cat conftest.err >&5
7805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); } && {
7807 test -z "$ac_c_werror_flag" ||
7808 test ! -s conftest.err
7809 } && test -s conftest.$ac_objext; then
7810 ac_header_compiler=yes
7811 else
7812 $as_echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.$ac_ext >&5
7814
7815 ac_header_compiler=no
7816 fi
7817
7818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7819 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7820 $as_echo "$ac_header_compiler" >&6; }
7821
7822 # Is the header present?
7823 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7824 $as_echo_n "checking $ac_header presence... " >&6; }
7825 cat >conftest.$ac_ext <<_ACEOF
7826 /* confdefs.h. */
7827 _ACEOF
7828 cat confdefs.h >>conftest.$ac_ext
7829 cat >>conftest.$ac_ext <<_ACEOF
7830 /* end confdefs.h. */
7831 #include <$ac_header>
7832 _ACEOF
7833 if { (ac_try="$ac_cpp conftest.$ac_ext"
7834 case "(($ac_try" in
7835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7836 *) ac_try_echo=$ac_try;;
7837 esac
7838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7839 $as_echo "$ac_try_echo") >&5
7840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7841 ac_status=$?
7842 grep -v '^ *+' conftest.er1 >conftest.err
7843 rm -f conftest.er1
7844 cat conftest.err >&5
7845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); } >/dev/null && {
7847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7848 test ! -s conftest.err
7849 }; then
7850 ac_header_preproc=yes
7851 else
7852 $as_echo "$as_me: failed program was:" >&5
7853 sed 's/^/| /' conftest.$ac_ext >&5
7854
7855 ac_header_preproc=no
7856 fi
7857
7858 rm -f conftest.err conftest.$ac_ext
7859 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7860 $as_echo "$ac_header_preproc" >&6; }
7861
7862 # So? What about this header?
7863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7864 yes:no: )
7865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7866 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7868 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7869 ac_header_preproc=yes
7870 ;;
7871 no:yes:* )
7872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7873 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7875 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7877 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7879 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7881 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7883 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7884
7885 ;;
7886 esac
7887 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7888 $as_echo_n "checking for $ac_header... " >&6; }
7889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7890 $as_echo_n "(cached) " >&6
7891 else
7892 eval "$as_ac_Header=\$ac_header_preproc"
7893 fi
7894 ac_res=`eval 'as_val=${'$as_ac_Header'}
7895 $as_echo "$as_val"'`
7896 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7897 $as_echo "$ac_res" >&6; }
7898
7899 fi
7900 if test `eval 'as_val=${'$as_ac_Header'}
7901 $as_echo "$as_val"'` = yes; then
6360 cat >>confdefs.h <<_ACEOF 7902 cat >>confdefs.h <<_ACEOF
6361 #define HAVE_SYS_SOCKET_H 1 7903 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6362 _ACEOF 7904 _ACEOF
6363 7905
6364 fi 7906 fi
6365 7907
6366 done 7908 done
6367 7909
7910
6368 for ac_header in net/if.h 7911 for ac_header in net/if.h
6369 do : 7912 do
6370 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default 7913 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7914 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7915 $as_echo_n "checking for $ac_header... " >&6; }
7916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7917 $as_echo_n "(cached) " >&6
7918 else
7919 cat >conftest.$ac_ext <<_ACEOF
7920 /* confdefs.h. */
7921 _ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h. */
7925 $ac_includes_default
6371 #if HAVE_SYS_SOCKET_H 7926 #if HAVE_SYS_SOCKET_H
6372 #include <sys/socket.h> 7927 #include <sys/socket.h>
6373 #endif 7928 #endif
6374 " 7929
6375 if test "x$ac_cv_header_net_if_h" = x""yes; then : 7930 #include <$ac_header>
7931 _ACEOF
7932 rm -f conftest.$ac_objext
7933 if { (ac_try="$ac_compile"
7934 case "(($ac_try" in
7935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7936 *) ac_try_echo=$ac_try;;
7937 esac
7938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7939 $as_echo "$ac_try_echo") >&5
7940 (eval "$ac_compile") 2>conftest.er1
7941 ac_status=$?
7942 grep -v '^ *+' conftest.er1 >conftest.err
7943 rm -f conftest.er1
7944 cat conftest.err >&5
7945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } && {
7947 test -z "$ac_c_werror_flag" ||
7948 test ! -s conftest.err
7949 } && test -s conftest.$ac_objext; then
7950 eval "$as_ac_Header=yes"
7951 else
7952 $as_echo "$as_me: failed program was:" >&5
7953 sed 's/^/| /' conftest.$ac_ext >&5
7954
7955 eval "$as_ac_Header=no"
7956 fi
7957
7958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7959 fi
7960 ac_res=`eval 'as_val=${'$as_ac_Header'}
7961 $as_echo "$as_val"'`
7962 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7963 $as_echo "$ac_res" >&6; }
7964 if test `eval 'as_val=${'$as_ac_Header'}
7965 $as_echo "$as_val"'` = yes; then
6376 cat >>confdefs.h <<_ACEOF 7966 cat >>confdefs.h <<_ACEOF
6377 #define HAVE_NET_IF_H 1 7967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6378 _ACEOF 7968 _ACEOF
6379 7969
6380 fi 7970 fi
6381 7971
6382 done 7972 done
6383 7973
6384 7974
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 7975 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6386 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 7976 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6387 if test "${ac_cv_struct_tm+set}" = set; then : 7977 if test "${ac_cv_struct_tm+set}" = set; then
6388 $as_echo_n "(cached) " >&6 7978 $as_echo_n "(cached) " >&6
6389 else 7979 else
6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7980 cat >conftest.$ac_ext <<_ACEOF
7981 /* confdefs.h. */
7982 _ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h. */ 7985 /* end confdefs.h. */
6392 #include <sys/types.h> 7986 #include <sys/types.h>
6393 #include <time.h> 7987 #include <time.h>
6394 7988
6395 int 7989 int
6400 return !p; 7994 return !p;
6401 ; 7995 ;
6402 return 0; 7996 return 0;
6403 } 7997 }
6404 _ACEOF 7998 _ACEOF
6405 if ac_fn_c_try_compile "$LINENO"; then : 7999 rm -f conftest.$ac_objext
8000 if { (ac_try="$ac_compile"
8001 case "(($ac_try" in
8002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003 *) ac_try_echo=$ac_try;;
8004 esac
8005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8006 $as_echo "$ac_try_echo") >&5
8007 (eval "$ac_compile") 2>conftest.er1
8008 ac_status=$?
8009 grep -v '^ *+' conftest.er1 >conftest.err
8010 rm -f conftest.er1
8011 cat conftest.err >&5
8012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } && {
8014 test -z "$ac_c_werror_flag" ||
8015 test ! -s conftest.err
8016 } && test -s conftest.$ac_objext; then
6406 ac_cv_struct_tm=time.h 8017 ac_cv_struct_tm=time.h
6407 else 8018 else
6408 ac_cv_struct_tm=sys/time.h 8019 $as_echo "$as_me: failed program was:" >&5
6409 fi 8020 sed 's/^/| /' conftest.$ac_ext >&5
8021
8022 ac_cv_struct_tm=sys/time.h
8023 fi
8024
6410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6411 fi 8026 fi
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 8027 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6413 $as_echo "$ac_cv_struct_tm" >&6; } 8028 $as_echo "$ac_cv_struct_tm" >&6; }
6414 if test $ac_cv_struct_tm = sys/time.h; then 8029 if test $ac_cv_struct_tm = sys/time.h; then
6415 8030
6416 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 8031 cat >>confdefs.h <<\_ACEOF
6417 8032 #define TM_IN_SYS_TIME 1
6418 fi 8033 _ACEOF
6419 8034
6420 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 8035 fi
8036
8037 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8038 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8039 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8040 $as_echo_n "(cached) " >&6
8041 else
8042 cat >conftest.$ac_ext <<_ACEOF
8043 /* confdefs.h. */
8044 _ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8048 #include <sys/types.h>
6421 #include <$ac_cv_struct_tm> 8049 #include <$ac_cv_struct_tm>
6422 8050
6423 " 8051
6424 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then : 8052 int
8053 main ()
8054 {
8055 static struct tm ac_aggr;
8056 if (ac_aggr.tm_zone)
8057 return 0;
8058 ;
8059 return 0;
8060 }
8061 _ACEOF
8062 rm -f conftest.$ac_objext
8063 if { (ac_try="$ac_compile"
8064 case "(($ac_try" in
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8067 esac
8068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8069 $as_echo "$ac_try_echo") >&5
8070 (eval "$ac_compile") 2>conftest.er1
8071 ac_status=$?
8072 grep -v '^ *+' conftest.er1 >conftest.err
8073 rm -f conftest.er1
8074 cat conftest.err >&5
8075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } && {
8077 test -z "$ac_c_werror_flag" ||
8078 test ! -s conftest.err
8079 } && test -s conftest.$ac_objext; then
8080 ac_cv_member_struct_tm_tm_zone=yes
8081 else
8082 $as_echo "$as_me: failed program was:" >&5
8083 sed 's/^/| /' conftest.$ac_ext >&5
8084
8085 cat >conftest.$ac_ext <<_ACEOF
8086 /* confdefs.h. */
8087 _ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h. */
8091 #include <sys/types.h>
8092 #include <$ac_cv_struct_tm>
8093
8094
8095 int
8096 main ()
8097 {
8098 static struct tm ac_aggr;
8099 if (sizeof ac_aggr.tm_zone)
8100 return 0;
8101 ;
8102 return 0;
8103 }
8104 _ACEOF
8105 rm -f conftest.$ac_objext
8106 if { (ac_try="$ac_compile"
8107 case "(($ac_try" in
8108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8109 *) ac_try_echo=$ac_try;;
8110 esac
8111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8112 $as_echo "$ac_try_echo") >&5
8113 (eval "$ac_compile") 2>conftest.er1
8114 ac_status=$?
8115 grep -v '^ *+' conftest.er1 >conftest.err
8116 rm -f conftest.er1
8117 cat conftest.err >&5
8118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } && {
8120 test -z "$ac_c_werror_flag" ||
8121 test ! -s conftest.err
8122 } && test -s conftest.$ac_objext; then
8123 ac_cv_member_struct_tm_tm_zone=yes
8124 else
8125 $as_echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8127
8128 ac_cv_member_struct_tm_tm_zone=no
8129 fi
8130
8131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8132 fi
8133
8134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8135 fi
8136 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8137 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8138 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6425 8139
6426 cat >>confdefs.h <<_ACEOF 8140 cat >>confdefs.h <<_ACEOF
6427 #define HAVE_STRUCT_TM_TM_ZONE 1 8141 #define HAVE_STRUCT_TM_TM_ZONE 1
6428 _ACEOF 8142 _ACEOF
6429 8143
6430 8144
6431 fi 8145 fi
6432 8146
6433 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 8147 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6434 8148
6435 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 8149 cat >>confdefs.h <<\_ACEOF
6436 8150 #define HAVE_TM_ZONE 1
6437 else 8151 _ACEOF
6438 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 8152
6439 " 8153 else
6440 if test "x$ac_cv_have_decl_tzname" = x""yes; then : 8154 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6441 ac_have_decl=1 8155 $as_echo_n "checking whether tzname is declared... " >&6; }
6442 else 8156 if test "${ac_cv_have_decl_tzname+set}" = set; then
6443 ac_have_decl=0 8157 $as_echo_n "(cached) " >&6
6444 fi 8158 else
8159 cat >conftest.$ac_ext <<_ACEOF
8160 /* confdefs.h. */
8161 _ACEOF
8162 cat confdefs.h >>conftest.$ac_ext
8163 cat >>conftest.$ac_ext <<_ACEOF
8164 /* end confdefs.h. */
8165 #include <time.h>
8166
8167 int
8168 main ()
8169 {
8170 #ifndef tzname
8171 (void) tzname;
8172 #endif
8173
8174 ;
8175 return 0;
8176 }
8177 _ACEOF
8178 rm -f conftest.$ac_objext
8179 if { (ac_try="$ac_compile"
8180 case "(($ac_try" in
8181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8182 *) ac_try_echo=$ac_try;;
8183 esac
8184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8185 $as_echo "$ac_try_echo") >&5
8186 (eval "$ac_compile") 2>conftest.er1
8187 ac_status=$?
8188 grep -v '^ *+' conftest.er1 >conftest.err
8189 rm -f conftest.er1
8190 cat conftest.err >&5
8191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } && {
8193 test -z "$ac_c_werror_flag" ||
8194 test ! -s conftest.err
8195 } && test -s conftest.$ac_objext; then
8196 ac_cv_have_decl_tzname=yes
8197 else
8198 $as_echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8200
8201 ac_cv_have_decl_tzname=no
8202 fi
8203
8204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8205 fi
8206 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8207 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8208 if test $ac_cv_have_decl_tzname = yes; then
6445 8209
6446 cat >>confdefs.h <<_ACEOF 8210 cat >>confdefs.h <<_ACEOF
6447 #define HAVE_DECL_TZNAME $ac_have_decl 8211 #define HAVE_DECL_TZNAME 1
6448 _ACEOF 8212 _ACEOF
6449 8213
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 8214
8215 else
8216 cat >>confdefs.h <<_ACEOF
8217 #define HAVE_DECL_TZNAME 0
8218 _ACEOF
8219
8220
8221 fi
8222
8223
8224 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
6451 $as_echo_n "checking for tzname... " >&6; } 8225 $as_echo_n "checking for tzname... " >&6; }
6452 if test "${ac_cv_var_tzname+set}" = set; then : 8226 if test "${ac_cv_var_tzname+set}" = set; then
6453 $as_echo_n "(cached) " >&6 8227 $as_echo_n "(cached) " >&6
6454 else 8228 else
6455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8229 cat >conftest.$ac_ext <<_ACEOF
8230 /* confdefs.h. */
8231 _ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
6456 /* end confdefs.h. */ 8234 /* end confdefs.h. */
6457 #include <time.h> 8235 #include <time.h>
6458 #if !HAVE_DECL_TZNAME 8236 #if !HAVE_DECL_TZNAME
6459 extern char *tzname[]; 8237 extern char *tzname[];
6460 #endif 8238 #endif
6465 return tzname[0][0]; 8243 return tzname[0][0];
6466 ; 8244 ;
6467 return 0; 8245 return 0;
6468 } 8246 }
6469 _ACEOF 8247 _ACEOF
6470 if ac_fn_c_try_link "$LINENO"; then : 8248 rm -f conftest.$ac_objext conftest$ac_exeext
8249 if { (ac_try="$ac_link"
8250 case "(($ac_try" in
8251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8252 *) ac_try_echo=$ac_try;;
8253 esac
8254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8255 $as_echo "$ac_try_echo") >&5
8256 (eval "$ac_link") 2>conftest.er1
8257 ac_status=$?
8258 grep -v '^ *+' conftest.er1 >conftest.err
8259 rm -f conftest.er1
8260 cat conftest.err >&5
8261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); } && {
8263 test -z "$ac_c_werror_flag" ||
8264 test ! -s conftest.err
8265 } && test -s conftest$ac_exeext && {
8266 test "$cross_compiling" = yes ||
8267 $as_test_x conftest$ac_exeext
8268 }; then
6471 ac_cv_var_tzname=yes 8269 ac_cv_var_tzname=yes
6472 else 8270 else
6473 ac_cv_var_tzname=no 8271 $as_echo "$as_me: failed program was:" >&5
6474 fi 8272 sed 's/^/| /' conftest.$ac_ext >&5
6475 rm -f core conftest.err conftest.$ac_objext \ 8273
6476 conftest$ac_exeext conftest.$ac_ext 8274 ac_cv_var_tzname=no
6477 fi 8275 fi
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 8276
8277 rm -rf conftest.dSYM
8278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8279 conftest$ac_exeext conftest.$ac_ext
8280 fi
8281 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6479 $as_echo "$ac_cv_var_tzname" >&6; } 8282 $as_echo "$ac_cv_var_tzname" >&6; }
6480 if test $ac_cv_var_tzname = yes; then 8283 if test $ac_cv_var_tzname = yes; then
6481 8284
6482 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h 8285 cat >>confdefs.h <<\_ACEOF
8286 #define HAVE_TZNAME 1
8287 _ACEOF
6483 8288
6484 fi 8289 fi
6485 fi 8290 fi
6486 8291
6487 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h> 8292 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6488 " 8293 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
6489 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then : 8294 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6490 8295 $as_echo_n "(cached) " >&6
6491 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h 8296 else
6492 8297 cat >conftest.$ac_ext <<_ACEOF
6493 fi 8298 /* confdefs.h. */
6494 8299 _ACEOF
6495 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default 8300 cat confdefs.h >>conftest.$ac_ext
8301 cat >>conftest.$ac_ext <<_ACEOF
8302 /* end confdefs.h. */
8303 #include <time.h>
8304
8305 int
8306 main ()
8307 {
8308 static struct tm ac_aggr;
8309 if (ac_aggr.tm_gmtoff)
8310 return 0;
8311 ;
8312 return 0;
8313 }
8314 _ACEOF
8315 rm -f conftest.$ac_objext
8316 if { (ac_try="$ac_compile"
8317 case "(($ac_try" in
8318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8319 *) ac_try_echo=$ac_try;;
8320 esac
8321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8322 $as_echo "$ac_try_echo") >&5
8323 (eval "$ac_compile") 2>conftest.er1
8324 ac_status=$?
8325 grep -v '^ *+' conftest.er1 >conftest.err
8326 rm -f conftest.er1
8327 cat conftest.err >&5
8328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } && {
8330 test -z "$ac_c_werror_flag" ||
8331 test ! -s conftest.err
8332 } && test -s conftest.$ac_objext; then
8333 ac_cv_member_struct_tm_tm_gmtoff=yes
8334 else
8335 $as_echo "$as_me: failed program was:" >&5
8336 sed 's/^/| /' conftest.$ac_ext >&5
8337
8338 cat >conftest.$ac_ext <<_ACEOF
8339 /* confdefs.h. */
8340 _ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h. */
8344 #include <time.h>
8345
8346 int
8347 main ()
8348 {
8349 static struct tm ac_aggr;
8350 if (sizeof ac_aggr.tm_gmtoff)
8351 return 0;
8352 ;
8353 return 0;
8354 }
8355 _ACEOF
8356 rm -f conftest.$ac_objext
8357 if { (ac_try="$ac_compile"
8358 case "(($ac_try" in
8359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360 *) ac_try_echo=$ac_try;;
8361 esac
8362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8363 $as_echo "$ac_try_echo") >&5
8364 (eval "$ac_compile") 2>conftest.er1
8365 ac_status=$?
8366 grep -v '^ *+' conftest.er1 >conftest.err
8367 rm -f conftest.er1
8368 cat conftest.err >&5
8369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } && {
8371 test -z "$ac_c_werror_flag" ||
8372 test ! -s conftest.err
8373 } && test -s conftest.$ac_objext; then
8374 ac_cv_member_struct_tm_tm_gmtoff=yes
8375 else
8376 $as_echo "$as_me: failed program was:" >&5
8377 sed 's/^/| /' conftest.$ac_ext >&5
8378
8379 ac_cv_member_struct_tm_tm_gmtoff=no
8380 fi
8381
8382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8383 fi
8384
8385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8386 fi
8387 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8388 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8389 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8390
8391 cat >>confdefs.h <<\_ACEOF
8392 #define HAVE_TM_GMTOFF 1
8393 _ACEOF
8394
8395 fi
8396
8397 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8398 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8399 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8400 $as_echo_n "(cached) " >&6
8401 else
8402 cat >conftest.$ac_ext <<_ACEOF
8403 /* confdefs.h. */
8404 _ACEOF
8405 cat confdefs.h >>conftest.$ac_ext
8406 cat >>conftest.$ac_ext <<_ACEOF
8407 /* end confdefs.h. */
8408 $ac_includes_default
6496 #if HAVE_SYS_SOCKET_H 8409 #if HAVE_SYS_SOCKET_H
6497 #include <sys/socket.h> 8410 #include <sys/socket.h>
6498 #endif 8411 #endif
6499 #if HAVE_NET_IF_H 8412 #if HAVE_NET_IF_H
6500 #include <net/if.h> 8413 #include <net/if.h>
6501 #endif 8414 #endif
6502 " 8415
6503 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then : 8416 int
6504 8417 main ()
6505 cat >>confdefs.h <<_ACEOF 8418 {
6506 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1 8419 static struct ifreq ac_aggr;
6507 _ACEOF 8420 if (ac_aggr.ifr_flags)
6508 8421 return 0;
6509 8422 ;
6510 fi 8423 return 0;
6511 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default 8424 }
8425 _ACEOF
8426 rm -f conftest.$ac_objext
8427 if { (ac_try="$ac_compile"
8428 case "(($ac_try" in
8429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430 *) ac_try_echo=$ac_try;;
8431 esac
8432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8433 $as_echo "$ac_try_echo") >&5
8434 (eval "$ac_compile") 2>conftest.er1
8435 ac_status=$?
8436 grep -v '^ *+' conftest.er1 >conftest.err
8437 rm -f conftest.er1
8438 cat conftest.err >&5
8439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } && {
8441 test -z "$ac_c_werror_flag" ||
8442 test ! -s conftest.err
8443 } && test -s conftest.$ac_objext; then
8444 ac_cv_member_struct_ifreq_ifr_flags=yes
8445 else
8446 $as_echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8448
8449 cat >conftest.$ac_ext <<_ACEOF
8450 /* confdefs.h. */
8451 _ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h. */
8455 $ac_includes_default
6512 #if HAVE_SYS_SOCKET_H 8456 #if HAVE_SYS_SOCKET_H
6513 #include <sys/socket.h> 8457 #include <sys/socket.h>
6514 #endif 8458 #endif
6515 #if HAVE_NET_IF_H 8459 #if HAVE_NET_IF_H
6516 #include <net/if.h> 8460 #include <net/if.h>
6517 #endif 8461 #endif
6518 " 8462
6519 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then : 8463 int
8464 main ()
8465 {
8466 static struct ifreq ac_aggr;
8467 if (sizeof ac_aggr.ifr_flags)
8468 return 0;
8469 ;
8470 return 0;
8471 }
8472 _ACEOF
8473 rm -f conftest.$ac_objext
8474 if { (ac_try="$ac_compile"
8475 case "(($ac_try" in
8476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8477 *) ac_try_echo=$ac_try;;
8478 esac
8479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8480 $as_echo "$ac_try_echo") >&5
8481 (eval "$ac_compile") 2>conftest.er1
8482 ac_status=$?
8483 grep -v '^ *+' conftest.er1 >conftest.err
8484 rm -f conftest.er1
8485 cat conftest.err >&5
8486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } && {
8488 test -z "$ac_c_werror_flag" ||
8489 test ! -s conftest.err
8490 } && test -s conftest.$ac_objext; then
8491 ac_cv_member_struct_ifreq_ifr_flags=yes
8492 else
8493 $as_echo "$as_me: failed program was:" >&5
8494 sed 's/^/| /' conftest.$ac_ext >&5
8495
8496 ac_cv_member_struct_ifreq_ifr_flags=no
8497 fi
8498
8499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8500 fi
8501
8502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8503 fi
8504 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8505 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8506 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
6520 8507
6521 cat >>confdefs.h <<_ACEOF 8508 cat >>confdefs.h <<_ACEOF
6522 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 8509 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6523 _ACEOF 8510 _ACEOF
6524 8511
6525 8512
6526 fi 8513 fi
6527 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default 8514 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8515 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8516 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8517 $as_echo_n "(cached) " >&6
8518 else
8519 cat >conftest.$ac_ext <<_ACEOF
8520 /* confdefs.h. */
8521 _ACEOF
8522 cat confdefs.h >>conftest.$ac_ext
8523 cat >>conftest.$ac_ext <<_ACEOF
8524 /* end confdefs.h. */
8525 $ac_includes_default
6528 #if HAVE_SYS_SOCKET_H 8526 #if HAVE_SYS_SOCKET_H
6529 #include <sys/socket.h> 8527 #include <sys/socket.h>
6530 #endif 8528 #endif
6531 #if HAVE_NET_IF_H 8529 #if HAVE_NET_IF_H
6532 #include <net/if.h> 8530 #include <net/if.h>
6533 #endif 8531 #endif
6534 " 8532
6535 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then : 8533 int
6536 8534 main ()
6537 cat >>confdefs.h <<_ACEOF 8535 {
6538 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1 8536 static struct ifreq ac_aggr;
6539 _ACEOF 8537 if (ac_aggr.ifr_hwaddr)
6540 8538 return 0;
6541 8539 ;
6542 fi 8540 return 0;
6543 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default 8541 }
8542 _ACEOF
8543 rm -f conftest.$ac_objext
8544 if { (ac_try="$ac_compile"
8545 case "(($ac_try" in
8546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547 *) ac_try_echo=$ac_try;;
8548 esac
8549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8550 $as_echo "$ac_try_echo") >&5
8551 (eval "$ac_compile") 2>conftest.er1
8552 ac_status=$?
8553 grep -v '^ *+' conftest.er1 >conftest.err
8554 rm -f conftest.er1
8555 cat conftest.err >&5
8556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } && {
8558 test -z "$ac_c_werror_flag" ||
8559 test ! -s conftest.err
8560 } && test -s conftest.$ac_objext; then
8561 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8562 else
8563 $as_echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8565
8566 cat >conftest.$ac_ext <<_ACEOF
8567 /* confdefs.h. */
8568 _ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h. */
8572 $ac_includes_default
6544 #if HAVE_SYS_SOCKET_H 8573 #if HAVE_SYS_SOCKET_H
6545 #include <sys/socket.h> 8574 #include <sys/socket.h>
6546 #endif 8575 #endif
6547 #if HAVE_NET_IF_H 8576 #if HAVE_NET_IF_H
6548 #include <net/if.h> 8577 #include <net/if.h>
6549 #endif 8578 #endif
6550 " 8579
6551 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then : 8580 int
8581 main ()
8582 {
8583 static struct ifreq ac_aggr;
8584 if (sizeof ac_aggr.ifr_hwaddr)
8585 return 0;
8586 ;
8587 return 0;
8588 }
8589 _ACEOF
8590 rm -f conftest.$ac_objext
8591 if { (ac_try="$ac_compile"
8592 case "(($ac_try" in
8593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8594 *) ac_try_echo=$ac_try;;
8595 esac
8596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8597 $as_echo "$ac_try_echo") >&5
8598 (eval "$ac_compile") 2>conftest.er1
8599 ac_status=$?
8600 grep -v '^ *+' conftest.er1 >conftest.err
8601 rm -f conftest.er1
8602 cat conftest.err >&5
8603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); } && {
8605 test -z "$ac_c_werror_flag" ||
8606 test ! -s conftest.err
8607 } && test -s conftest.$ac_objext; then
8608 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8609 else
8610 $as_echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8612
8613 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8614 fi
8615
8616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617 fi
8618
8619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620 fi
8621 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8622 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8623 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
6552 8624
6553 cat >>confdefs.h <<_ACEOF 8625 cat >>confdefs.h <<_ACEOF
6554 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1 8626 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6555 _ACEOF 8627 _ACEOF
6556 8628
6557 8629
6558 fi 8630 fi
6559 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default 8631 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8632 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8633 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8634 $as_echo_n "(cached) " >&6
8635 else
8636 cat >conftest.$ac_ext <<_ACEOF
8637 /* confdefs.h. */
8638 _ACEOF
8639 cat confdefs.h >>conftest.$ac_ext
8640 cat >>conftest.$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8642 $ac_includes_default
6560 #if HAVE_SYS_SOCKET_H 8643 #if HAVE_SYS_SOCKET_H
6561 #include <sys/socket.h> 8644 #include <sys/socket.h>
6562 #endif 8645 #endif
6563 #if HAVE_NET_IF_H 8646 #if HAVE_NET_IF_H
6564 #include <net/if.h> 8647 #include <net/if.h>
6565 #endif 8648 #endif
6566 " 8649
6567 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then : 8650 int
8651 main ()
8652 {
8653 static struct ifreq ac_aggr;
8654 if (ac_aggr.ifr_netmask)
8655 return 0;
8656 ;
8657 return 0;
8658 }
8659 _ACEOF
8660 rm -f conftest.$ac_objext
8661 if { (ac_try="$ac_compile"
8662 case "(($ac_try" in
8663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8664 *) ac_try_echo=$ac_try;;
8665 esac
8666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8667 $as_echo "$ac_try_echo") >&5
8668 (eval "$ac_compile") 2>conftest.er1
8669 ac_status=$?
8670 grep -v '^ *+' conftest.er1 >conftest.err
8671 rm -f conftest.er1
8672 cat conftest.err >&5
8673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); } && {
8675 test -z "$ac_c_werror_flag" ||
8676 test ! -s conftest.err
8677 } && test -s conftest.$ac_objext; then
8678 ac_cv_member_struct_ifreq_ifr_netmask=yes
8679 else
8680 $as_echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8682
8683 cat >conftest.$ac_ext <<_ACEOF
8684 /* confdefs.h. */
8685 _ACEOF
8686 cat confdefs.h >>conftest.$ac_ext
8687 cat >>conftest.$ac_ext <<_ACEOF
8688 /* end confdefs.h. */
8689 $ac_includes_default
8690 #if HAVE_SYS_SOCKET_H
8691 #include <sys/socket.h>
8692 #endif
8693 #if HAVE_NET_IF_H
8694 #include <net/if.h>
8695 #endif
8696
8697 int
8698 main ()
8699 {
8700 static struct ifreq ac_aggr;
8701 if (sizeof ac_aggr.ifr_netmask)
8702 return 0;
8703 ;
8704 return 0;
8705 }
8706 _ACEOF
8707 rm -f conftest.$ac_objext
8708 if { (ac_try="$ac_compile"
8709 case "(($ac_try" in
8710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8711 *) ac_try_echo=$ac_try;;
8712 esac
8713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8714 $as_echo "$ac_try_echo") >&5
8715 (eval "$ac_compile") 2>conftest.er1
8716 ac_status=$?
8717 grep -v '^ *+' conftest.er1 >conftest.err
8718 rm -f conftest.er1
8719 cat conftest.err >&5
8720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); } && {
8722 test -z "$ac_c_werror_flag" ||
8723 test ! -s conftest.err
8724 } && test -s conftest.$ac_objext; then
8725 ac_cv_member_struct_ifreq_ifr_netmask=yes
8726 else
8727 $as_echo "$as_me: failed program was:" >&5
8728 sed 's/^/| /' conftest.$ac_ext >&5
8729
8730 ac_cv_member_struct_ifreq_ifr_netmask=no
8731 fi
8732
8733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8734 fi
8735
8736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8737 fi
8738 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8739 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8740 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8741
8742 cat >>confdefs.h <<_ACEOF
8743 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8744 _ACEOF
8745
8746
8747 fi
8748 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8749 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8750 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8751 $as_echo_n "(cached) " >&6
8752 else
8753 cat >conftest.$ac_ext <<_ACEOF
8754 /* confdefs.h. */
8755 _ACEOF
8756 cat confdefs.h >>conftest.$ac_ext
8757 cat >>conftest.$ac_ext <<_ACEOF
8758 /* end confdefs.h. */
8759 $ac_includes_default
8760 #if HAVE_SYS_SOCKET_H
8761 #include <sys/socket.h>
8762 #endif
8763 #if HAVE_NET_IF_H
8764 #include <net/if.h>
8765 #endif
8766
8767 int
8768 main ()
8769 {
8770 static struct ifreq ac_aggr;
8771 if (ac_aggr.ifr_broadaddr)
8772 return 0;
8773 ;
8774 return 0;
8775 }
8776 _ACEOF
8777 rm -f conftest.$ac_objext
8778 if { (ac_try="$ac_compile"
8779 case "(($ac_try" in
8780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8781 *) ac_try_echo=$ac_try;;
8782 esac
8783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8784 $as_echo "$ac_try_echo") >&5
8785 (eval "$ac_compile") 2>conftest.er1
8786 ac_status=$?
8787 grep -v '^ *+' conftest.er1 >conftest.err
8788 rm -f conftest.er1
8789 cat conftest.err >&5
8790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); } && {
8792 test -z "$ac_c_werror_flag" ||
8793 test ! -s conftest.err
8794 } && test -s conftest.$ac_objext; then
8795 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8796 else
8797 $as_echo "$as_me: failed program was:" >&5
8798 sed 's/^/| /' conftest.$ac_ext >&5
8799
8800 cat >conftest.$ac_ext <<_ACEOF
8801 /* confdefs.h. */
8802 _ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h. */
8806 $ac_includes_default
8807 #if HAVE_SYS_SOCKET_H
8808 #include <sys/socket.h>
8809 #endif
8810 #if HAVE_NET_IF_H
8811 #include <net/if.h>
8812 #endif
8813
8814 int
8815 main ()
8816 {
8817 static struct ifreq ac_aggr;
8818 if (sizeof ac_aggr.ifr_broadaddr)
8819 return 0;
8820 ;
8821 return 0;
8822 }
8823 _ACEOF
8824 rm -f conftest.$ac_objext
8825 if { (ac_try="$ac_compile"
8826 case "(($ac_try" in
8827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8828 *) ac_try_echo=$ac_try;;
8829 esac
8830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8831 $as_echo "$ac_try_echo") >&5
8832 (eval "$ac_compile") 2>conftest.er1
8833 ac_status=$?
8834 grep -v '^ *+' conftest.er1 >conftest.err
8835 rm -f conftest.er1
8836 cat conftest.err >&5
8837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } && {
8839 test -z "$ac_c_werror_flag" ||
8840 test ! -s conftest.err
8841 } && test -s conftest.$ac_objext; then
8842 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8843 else
8844 $as_echo "$as_me: failed program was:" >&5
8845 sed 's/^/| /' conftest.$ac_ext >&5
8846
8847 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8848 fi
8849
8850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8851 fi
8852
8853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8854 fi
8855 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8856 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8857 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8858
8859 cat >>confdefs.h <<_ACEOF
8860 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8861 _ACEOF
8862
8863
8864 fi
8865 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8866 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8867 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8868 $as_echo_n "(cached) " >&6
8869 else
8870 cat >conftest.$ac_ext <<_ACEOF
8871 /* confdefs.h. */
8872 _ACEOF
8873 cat confdefs.h >>conftest.$ac_ext
8874 cat >>conftest.$ac_ext <<_ACEOF
8875 /* end confdefs.h. */
8876 $ac_includes_default
8877 #if HAVE_SYS_SOCKET_H
8878 #include <sys/socket.h>
8879 #endif
8880 #if HAVE_NET_IF_H
8881 #include <net/if.h>
8882 #endif
8883
8884 int
8885 main ()
8886 {
8887 static struct ifreq ac_aggr;
8888 if (ac_aggr.ifr_addr)
8889 return 0;
8890 ;
8891 return 0;
8892 }
8893 _ACEOF
8894 rm -f conftest.$ac_objext
8895 if { (ac_try="$ac_compile"
8896 case "(($ac_try" in
8897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8898 *) ac_try_echo=$ac_try;;
8899 esac
8900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8901 $as_echo "$ac_try_echo") >&5
8902 (eval "$ac_compile") 2>conftest.er1
8903 ac_status=$?
8904 grep -v '^ *+' conftest.er1 >conftest.err
8905 rm -f conftest.er1
8906 cat conftest.err >&5
8907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } && {
8909 test -z "$ac_c_werror_flag" ||
8910 test ! -s conftest.err
8911 } && test -s conftest.$ac_objext; then
8912 ac_cv_member_struct_ifreq_ifr_addr=yes
8913 else
8914 $as_echo "$as_me: failed program was:" >&5
8915 sed 's/^/| /' conftest.$ac_ext >&5
8916
8917 cat >conftest.$ac_ext <<_ACEOF
8918 /* confdefs.h. */
8919 _ACEOF
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h. */
8923 $ac_includes_default
8924 #if HAVE_SYS_SOCKET_H
8925 #include <sys/socket.h>
8926 #endif
8927 #if HAVE_NET_IF_H
8928 #include <net/if.h>
8929 #endif
8930
8931 int
8932 main ()
8933 {
8934 static struct ifreq ac_aggr;
8935 if (sizeof ac_aggr.ifr_addr)
8936 return 0;
8937 ;
8938 return 0;
8939 }
8940 _ACEOF
8941 rm -f conftest.$ac_objext
8942 if { (ac_try="$ac_compile"
8943 case "(($ac_try" in
8944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8945 *) ac_try_echo=$ac_try;;
8946 esac
8947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8948 $as_echo "$ac_try_echo") >&5
8949 (eval "$ac_compile") 2>conftest.er1
8950 ac_status=$?
8951 grep -v '^ *+' conftest.er1 >conftest.err
8952 rm -f conftest.er1
8953 cat conftest.err >&5
8954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); } && {
8956 test -z "$ac_c_werror_flag" ||
8957 test ! -s conftest.err
8958 } && test -s conftest.$ac_objext; then
8959 ac_cv_member_struct_ifreq_ifr_addr=yes
8960 else
8961 $as_echo "$as_me: failed program was:" >&5
8962 sed 's/^/| /' conftest.$ac_ext >&5
8963
8964 ac_cv_member_struct_ifreq_ifr_addr=no
8965 fi
8966
8967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8968 fi
8969
8970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8971 fi
8972 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8973 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8974 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
6568 8975
6569 cat >>confdefs.h <<_ACEOF 8976 cat >>confdefs.h <<_ACEOF
6570 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1 8977 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6571 _ACEOF 8978 _ACEOF
6572 8979
6573 8980
6574 fi 8981 fi
6575 8982
6576 8983
6577 8984
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5 8985 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
6579 $as_echo_n "checking for function prototypes... " >&6; } 8986 $as_echo_n "checking for function prototypes... " >&6; }
6580 if test "$ac_cv_prog_cc_c89" != no; then 8987 if test "$ac_cv_prog_cc_c89" != no; then
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8988 { $as_echo "$as_me:$LINENO: result: yes" >&5
6582 $as_echo "yes" >&6; } 8989 $as_echo "yes" >&6; }
6583 8990
6584 $as_echo "#define PROTOTYPES 1" >>confdefs.h 8991 cat >>confdefs.h <<\_ACEOF
6585 8992 #define PROTOTYPES 1
6586 8993 _ACEOF
6587 $as_echo "#define __PROTOTYPES 1" >>confdefs.h 8994
6588 8995
6589 else 8996 cat >>confdefs.h <<\_ACEOF
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8997 #define __PROTOTYPES 1
8998 _ACEOF
8999
9000 else
9001 { $as_echo "$as_me:$LINENO: result: no" >&5
6591 $as_echo "no" >&6; } 9002 $as_echo "no" >&6; }
6592 fi 9003 fi
6593 9004
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 9005 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
6595 $as_echo_n "checking for working volatile... " >&6; } 9006 $as_echo_n "checking for working volatile... " >&6; }
6596 if test "${ac_cv_c_volatile+set}" = set; then : 9007 if test "${ac_cv_c_volatile+set}" = set; then
6597 $as_echo_n "(cached) " >&6 9008 $as_echo_n "(cached) " >&6
6598 else 9009 else
6599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9010 cat >conftest.$ac_ext <<_ACEOF
9011 /* confdefs.h. */
9012 _ACEOF
9013 cat confdefs.h >>conftest.$ac_ext
9014 cat >>conftest.$ac_ext <<_ACEOF
6600 /* end confdefs.h. */ 9015 /* end confdefs.h. */
6601 9016
6602 int 9017 int
6603 main () 9018 main ()
6604 { 9019 {
6608 return !x && !y; 9023 return !x && !y;
6609 ; 9024 ;
6610 return 0; 9025 return 0;
6611 } 9026 }
6612 _ACEOF 9027 _ACEOF
6613 if ac_fn_c_try_compile "$LINENO"; then : 9028 rm -f conftest.$ac_objext
9029 if { (ac_try="$ac_compile"
9030 case "(($ac_try" in
9031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9032 *) ac_try_echo=$ac_try;;
9033 esac
9034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9035 $as_echo "$ac_try_echo") >&5
9036 (eval "$ac_compile") 2>conftest.er1
9037 ac_status=$?
9038 grep -v '^ *+' conftest.er1 >conftest.err
9039 rm -f conftest.er1
9040 cat conftest.err >&5
9041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); } && {
9043 test -z "$ac_c_werror_flag" ||
9044 test ! -s conftest.err
9045 } && test -s conftest.$ac_objext; then
6614 ac_cv_c_volatile=yes 9046 ac_cv_c_volatile=yes
6615 else 9047 else
6616 ac_cv_c_volatile=no 9048 $as_echo "$as_me: failed program was:" >&5
6617 fi 9049 sed 's/^/| /' conftest.$ac_ext >&5
9050
9051 ac_cv_c_volatile=no
9052 fi
9053
6618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619 fi 9055 fi
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 9056 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6621 $as_echo "$ac_cv_c_volatile" >&6; } 9057 $as_echo "$ac_cv_c_volatile" >&6; }
6622 if test $ac_cv_c_volatile = no; then 9058 if test $ac_cv_c_volatile = no; then
6623 9059
6624 $as_echo "#define volatile /**/" >>confdefs.h 9060 cat >>confdefs.h <<\_ACEOF
6625 9061 #define volatile /**/
6626 fi 9062 _ACEOF
6627 9063
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 9064 fi
9065
9066 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6629 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } 9067 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6630 if test "${ac_cv_c_const+set}" = set; then : 9068 if test "${ac_cv_c_const+set}" = set; then
6631 $as_echo_n "(cached) " >&6 9069 $as_echo_n "(cached) " >&6
6632 else 9070 else
6633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9071 cat >conftest.$ac_ext <<_ACEOF
9072 /* confdefs.h. */
9073 _ACEOF
9074 cat confdefs.h >>conftest.$ac_ext
9075 cat >>conftest.$ac_ext <<_ACEOF
6634 /* end confdefs.h. */ 9076 /* end confdefs.h. */
6635 9077
6636 int 9078 int
6637 main () 9079 main ()
6638 { 9080 {
6688 9130
6689 ; 9131 ;
6690 return 0; 9132 return 0;
6691 } 9133 }
6692 _ACEOF 9134 _ACEOF
6693 if ac_fn_c_try_compile "$LINENO"; then : 9135 rm -f conftest.$ac_objext
9136 if { (ac_try="$ac_compile"
9137 case "(($ac_try" in
9138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9139 *) ac_try_echo=$ac_try;;
9140 esac
9141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9142 $as_echo "$ac_try_echo") >&5
9143 (eval "$ac_compile") 2>conftest.er1
9144 ac_status=$?
9145 grep -v '^ *+' conftest.er1 >conftest.err
9146 rm -f conftest.er1
9147 cat conftest.err >&5
9148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); } && {
9150 test -z "$ac_c_werror_flag" ||
9151 test ! -s conftest.err
9152 } && test -s conftest.$ac_objext; then
6694 ac_cv_c_const=yes 9153 ac_cv_c_const=yes
6695 else 9154 else
6696 ac_cv_c_const=no 9155 $as_echo "$as_me: failed program was:" >&5
6697 fi 9156 sed 's/^/| /' conftest.$ac_ext >&5
9157
9158 ac_cv_c_const=no
9159 fi
9160
6698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6699 fi 9162 fi
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 9163 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6701 $as_echo "$ac_cv_c_const" >&6; } 9164 $as_echo "$ac_cv_c_const" >&6; }
6702 if test $ac_cv_c_const = no; then 9165 if test $ac_cv_c_const = no; then
6703 9166
6704 $as_echo "#define const /**/" >>confdefs.h 9167 cat >>confdefs.h <<\_ACEOF
6705 9168 #define const /**/
6706 fi 9169 _ACEOF
6707 9170
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5 9171 fi
9172
9173 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
6709 $as_echo_n "checking for void * support... " >&6; } 9174 $as_echo_n "checking for void * support... " >&6; }
6710 if test "${emacs_cv_void_star+set}" = set; then : 9175 if test "${emacs_cv_void_star+set}" = set; then
6711 $as_echo_n "(cached) " >&6 9176 $as_echo_n "(cached) " >&6
6712 else 9177 else
6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9178 cat >conftest.$ac_ext <<_ACEOF
9179 /* confdefs.h. */
9180 _ACEOF
9181 cat confdefs.h >>conftest.$ac_ext
9182 cat >>conftest.$ac_ext <<_ACEOF
6714 /* end confdefs.h. */ 9183 /* end confdefs.h. */
6715 9184
6716 int 9185 int
6717 main () 9186 main ()
6718 { 9187 {
6719 void * foo; 9188 void * foo;
6720 ; 9189 ;
6721 return 0; 9190 return 0;
6722 } 9191 }
6723 _ACEOF 9192 _ACEOF
6724 if ac_fn_c_try_compile "$LINENO"; then : 9193 rm -f conftest.$ac_objext
9194 if { (ac_try="$ac_compile"
9195 case "(($ac_try" in
9196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9197 *) ac_try_echo=$ac_try;;
9198 esac
9199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9200 $as_echo "$ac_try_echo") >&5
9201 (eval "$ac_compile") 2>conftest.er1
9202 ac_status=$?
9203 grep -v '^ *+' conftest.er1 >conftest.err
9204 rm -f conftest.er1
9205 cat conftest.err >&5
9206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } && {
9208 test -z "$ac_c_werror_flag" ||
9209 test ! -s conftest.err
9210 } && test -s conftest.$ac_objext; then
6725 emacs_cv_void_star=yes 9211 emacs_cv_void_star=yes
6726 else 9212 else
6727 emacs_cv_void_star=no 9213 $as_echo "$as_me: failed program was:" >&5
6728 fi 9214 sed 's/^/| /' conftest.$ac_ext >&5
9215
9216 emacs_cv_void_star=no
9217 fi
9218
6729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6730 fi 9220 fi
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5 9221 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6732 $as_echo "$emacs_cv_void_star" >&6; } 9222 $as_echo "$emacs_cv_void_star" >&6; }
6733 if test $emacs_cv_void_star = yes; then 9223 if test $emacs_cv_void_star = yes; then
6734 $as_echo "#define POINTER_TYPE void" >>confdefs.h 9224 cat >>confdefs.h <<\_ACEOF
6735 9225 #define POINTER_TYPE void
6736 else 9226 _ACEOF
6737 $as_echo "#define POINTER_TYPE char" >>confdefs.h 9227
6738 9228 else
6739 fi 9229 cat >>confdefs.h <<\_ACEOF
6740 9230 #define POINTER_TYPE char
6741 9231 _ACEOF
6742 9232
6743 9233 fi
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 9234
9235
9236
9237
9238
9239 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6745 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 9240 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6746 set x ${MAKE-make} 9241 set x ${MAKE-make}
6747 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 9242 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6748 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 9243 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6749 $as_echo_n "(cached) " >&6 9244 $as_echo_n "(cached) " >&6
6750 else 9245 else
6751 cat >conftest.make <<\_ACEOF 9246 cat >conftest.make <<\_ACEOF
6752 SHELL = /bin/sh 9247 SHELL = /bin/sh
6753 all: 9248 all:
6761 eval ac_cv_prog_make_${ac_make}_set=no;; 9256 eval ac_cv_prog_make_${ac_make}_set=no;;
6762 esac 9257 esac
6763 rm -f conftest.make 9258 rm -f conftest.make
6764 fi 9259 fi
6765 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 9260 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9261 { $as_echo "$as_me:$LINENO: result: yes" >&5
6767 $as_echo "yes" >&6; } 9262 $as_echo "yes" >&6; }
6768 SET_MAKE= 9263 SET_MAKE=
6769 else 9264 else
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9265 { $as_echo "$as_me:$LINENO: result: no" >&5
6771 $as_echo "no" >&6; } 9266 $as_echo "no" >&6; }
6772 SET_MAKE="MAKE=${MAKE-make}" 9267 SET_MAKE="MAKE=${MAKE-make}"
6773 fi 9268 fi
6774 9269
6775 9270
6776 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then 9271 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5 9272 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
6778 $as_echo_n "checking whether we are using GNU Make... " >&6; } 9273 $as_echo_n "checking whether we are using GNU Make... " >&6; }
6779 HAVE_GNU_MAKE=no 9274 HAVE_GNU_MAKE=no
6780 testval=`make --version 2>/dev/null | grep 'GNU Make'` 9275 testval=`make --version 2>/dev/null | grep 'GNU Make'`
6781 if test "x$testval" != x; then 9276 if test "x$testval" != x; then
6782 HAVE_GNU_MAKE=yes 9277 HAVE_GNU_MAKE=yes
6783 else 9278 else
6784 ac_enable_autodepend=no 9279 ac_enable_autodepend=no
6785 fi 9280 fi
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5 9281 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
6787 $as_echo "$HAVE_GNU_MAKE" >&6; } 9282 $as_echo "$HAVE_GNU_MAKE" >&6; }
6788 if test $HAVE_GNU_MAKE = yes; then 9283 if test $HAVE_GNU_MAKE = yes; then
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5 9284 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
6790 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; } 9285 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
6791 SAVE_CFLAGS="$CFLAGS" 9286 SAVE_CFLAGS="$CFLAGS"
6792 CFLAGS="$CFLAGS -MMD -MF deps.d" 9287 CFLAGS="$CFLAGS -MMD -MF deps.d"
6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9288 cat >conftest.$ac_ext <<_ACEOF
9289 /* confdefs.h. */
9290 _ACEOF
9291 cat confdefs.h >>conftest.$ac_ext
9292 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h. */ 9293 /* end confdefs.h. */
6795 9294
6796 int 9295 int
6797 main () 9296 main ()
6798 { 9297 {
6799 9298
6800 ; 9299 ;
6801 return 0; 9300 return 0;
6802 } 9301 }
6803 _ACEOF 9302 _ACEOF
6804 if ac_fn_c_try_compile "$LINENO"; then : 9303 rm -f conftest.$ac_objext
6805 9304 if { (ac_try="$ac_compile"
6806 else 9305 case "(($ac_try" in
6807 ac_enable_autodepend=no 9306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6808 fi 9307 *) ac_try_echo=$ac_try;;
9308 esac
9309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9310 $as_echo "$ac_try_echo") >&5
9311 (eval "$ac_compile") 2>conftest.er1
9312 ac_status=$?
9313 grep -v '^ *+' conftest.er1 >conftest.err
9314 rm -f conftest.er1
9315 cat conftest.err >&5
9316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } && {
9318 test -z "$ac_c_werror_flag" ||
9319 test ! -s conftest.err
9320 } && test -s conftest.$ac_objext; then
9321 :
9322 else
9323 $as_echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.$ac_ext >&5
9325
9326 ac_enable_autodepend=no
9327 fi
9328
6809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6810 CFLAGS="$SAVE_CFLAGS" 9330 CFLAGS="$SAVE_CFLAGS"
6811 test -f deps.d || ac_enable_autodepend=no 9331 test -f deps.d || ac_enable_autodepend=no
6812 rm -rf deps.d 9332 rm -rf deps.d
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5 9333 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
6814 $as_echo "$ac_enable_autodepend" >&6; } 9334 $as_echo "$ac_enable_autodepend" >&6; }
6815 fi 9335 fi
6816 if test $ac_enable_autodepend = yes; then 9336 if test $ac_enable_autodepend = yes; then
6817 9337
6818 $as_echo "#define AUTO_DEPEND 1" >>confdefs.h 9338 cat >>confdefs.h <<\_ACEOF
9339 #define AUTO_DEPEND 1
9340 _ACEOF
6819 9341
6820 fi 9342 fi
6821 fi 9343 fi
6822 9344
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5 9345 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
6824 $as_echo_n "checking for long file names... " >&6; } 9346 $as_echo_n "checking for long file names... " >&6; }
6825 if test "${ac_cv_sys_long_file_names+set}" = set; then : 9347 if test "${ac_cv_sys_long_file_names+set}" = set; then
6826 $as_echo_n "(cached) " >&6 9348 $as_echo_n "(cached) " >&6
6827 else 9349 else
6828 ac_cv_sys_long_file_names=yes 9350 ac_cv_sys_long_file_names=yes
6829 # Test for long file names in all the places we know might matter: 9351 # Test for long file names in all the places we know might matter:
6830 # . the current directory, where building will happen 9352 # . the current directory, where building will happen
6850 ac_cv_sys_long_file_names=no 9372 ac_cv_sys_long_file_names=no
6851 rm -f -r "$ac_xdir" 2>/dev/null 9373 rm -f -r "$ac_xdir" 2>/dev/null
6852 test $ac_cv_sys_long_file_names = no && break 9374 test $ac_cv_sys_long_file_names = no && break
6853 done 9375 done
6854 fi 9376 fi
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5 9377 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6856 $as_echo "$ac_cv_sys_long_file_names" >&6; } 9378 $as_echo "$ac_cv_sys_long_file_names" >&6; }
6857 if test $ac_cv_sys_long_file_names = yes; then 9379 if test $ac_cv_sys_long_file_names = yes; then
6858 9380
6859 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h 9381 cat >>confdefs.h <<\_ACEOF
9382 #define HAVE_LONG_FILE_NAMES 1
9383 _ACEOF
6860 9384
6861 fi 9385 fi
6862 9386
6863 9387
6864 #### Choose a window system. 9388 #### Choose a window system.
6865 9389
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 9390 { $as_echo "$as_me:$LINENO: checking for X" >&5
6867 $as_echo_n "checking for X... " >&6; } 9391 $as_echo_n "checking for X... " >&6; }
6868 9392
6869 9393
6870 # Check whether --with-x was given. 9394 # Check whether --with-x was given.
6871 if test "${with_x+set}" = set; then : 9395 if test "${with_x+set}" = set; then
6872 withval=$with_x; 9396 withval=$with_x;
6873 fi 9397 fi
6874 9398
6875 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 9399 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6876 if test "x$with_x" = xno; then 9400 if test "x$with_x" = xno; then
6877 # The user explicitly disabled X. 9401 # The user explicitly disabled X.
6878 have_x=disabled 9402 have_x=disabled
6879 else 9403 else
6880 case $x_includes,$x_libraries in #( 9404 case $x_includes,$x_libraries in #(
6881 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #( 9405 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
6882 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : 9406 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9407 { (exit 1); exit 1; }; };; #(
9408 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6883 $as_echo_n "(cached) " >&6 9409 $as_echo_n "(cached) " >&6
6884 else 9410 else
6885 # One or both of the vars are not set, and there is no cached value. 9411 # One or both of the vars are not set, and there is no cached value.
6886 ac_x_includes=no ac_x_libraries=no 9412 ac_x_includes=no ac_x_libraries=no
6887 rm -f -r conftest.dir 9413 rm -f -r conftest.dir
6913 case $ac_im_incroot in 9439 case $ac_im_incroot in
6914 /usr/include) ac_x_includes= ;; 9440 /usr/include) ac_x_includes= ;;
6915 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 9441 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6916 esac 9442 esac
6917 case $ac_im_usrlibdir in 9443 case $ac_im_usrlibdir in
6918 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 9444 /usr/lib | /lib) ;;
6919 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 9445 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6920 esac 9446 esac
6921 fi 9447 fi
6922 cd .. 9448 cd ..
6923 rm -f -r conftest.dir 9449 rm -f -r conftest.dir
6925 9451
6926 # Standard set of common directories for X headers. 9452 # Standard set of common directories for X headers.
6927 # Check X11 before X11Rn because it is often a symlink to the current release. 9453 # Check X11 before X11Rn because it is often a symlink to the current release.
6928 ac_x_header_dirs=' 9454 ac_x_header_dirs='
6929 /usr/X11/include 9455 /usr/X11/include
6930 /usr/X11R7/include
6931 /usr/X11R6/include 9456 /usr/X11R6/include
6932 /usr/X11R5/include 9457 /usr/X11R5/include
6933 /usr/X11R4/include 9458 /usr/X11R4/include
6934 9459
6935 /usr/include/X11 9460 /usr/include/X11
6936 /usr/include/X11R7
6937 /usr/include/X11R6 9461 /usr/include/X11R6
6938 /usr/include/X11R5 9462 /usr/include/X11R5
6939 /usr/include/X11R4 9463 /usr/include/X11R4
6940 9464
6941 /usr/local/X11/include 9465 /usr/local/X11/include
6942 /usr/local/X11R7/include
6943 /usr/local/X11R6/include 9466 /usr/local/X11R6/include
6944 /usr/local/X11R5/include 9467 /usr/local/X11R5/include
6945 /usr/local/X11R4/include 9468 /usr/local/X11R4/include
6946 9469
6947 /usr/local/include/X11 9470 /usr/local/include/X11
6948 /usr/local/include/X11R7
6949 /usr/local/include/X11R6 9471 /usr/local/include/X11R6
6950 /usr/local/include/X11R5 9472 /usr/local/include/X11R5
6951 /usr/local/include/X11R4 9473 /usr/local/include/X11R4
6952 9474
6953 /usr/X386/include 9475 /usr/X386/include
6965 /usr/openwin/share/include' 9487 /usr/openwin/share/include'
6966 9488
6967 if test "$ac_x_includes" = no; then 9489 if test "$ac_x_includes" = no; then
6968 # Guess where to find include files, by looking for Xlib.h. 9490 # Guess where to find include files, by looking for Xlib.h.
6969 # First, try using that file with no special directory specified. 9491 # First, try using that file with no special directory specified.
6970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9492 cat >conftest.$ac_ext <<_ACEOF
9493 /* confdefs.h. */
9494 _ACEOF
9495 cat confdefs.h >>conftest.$ac_ext
9496 cat >>conftest.$ac_ext <<_ACEOF
6971 /* end confdefs.h. */ 9497 /* end confdefs.h. */
6972 #include <X11/Xlib.h> 9498 #include <X11/Xlib.h>
6973 _ACEOF 9499 _ACEOF
6974 if ac_fn_c_try_cpp "$LINENO"; then : 9500 if { (ac_try="$ac_cpp conftest.$ac_ext"
9501 case "(($ac_try" in
9502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9503 *) ac_try_echo=$ac_try;;
9504 esac
9505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9506 $as_echo "$ac_try_echo") >&5
9507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9508 ac_status=$?
9509 grep -v '^ *+' conftest.er1 >conftest.err
9510 rm -f conftest.er1
9511 cat conftest.err >&5
9512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); } >/dev/null && {
9514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9515 test ! -s conftest.err
9516 }; then
6975 # We can compile using X headers with no special include directory. 9517 # We can compile using X headers with no special include directory.
6976 ac_x_includes= 9518 ac_x_includes=
6977 else 9519 else
9520 $as_echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9522
6978 for ac_dir in $ac_x_header_dirs; do 9523 for ac_dir in $ac_x_header_dirs; do
6979 if test -r "$ac_dir/X11/Xlib.h"; then 9524 if test -r "$ac_dir/X11/Xlib.h"; then
6980 ac_x_includes=$ac_dir 9525 ac_x_includes=$ac_dir
6981 break 9526 break
6982 fi 9527 fi
6983 done 9528 done
6984 fi 9529 fi
9530
6985 rm -f conftest.err conftest.$ac_ext 9531 rm -f conftest.err conftest.$ac_ext
6986 fi # $ac_x_includes = no 9532 fi # $ac_x_includes = no
6987 9533
6988 if test "$ac_x_libraries" = no; then 9534 if test "$ac_x_libraries" = no; then
6989 # Check for the libraries. 9535 # Check for the libraries.
6990 # See if we find them without any special options. 9536 # See if we find them without any special options.
6991 # Don't add to $LIBS permanently. 9537 # Don't add to $LIBS permanently.
6992 ac_save_LIBS=$LIBS 9538 ac_save_LIBS=$LIBS
6993 LIBS="-lX11 $LIBS" 9539 LIBS="-lX11 $LIBS"
6994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9540 cat >conftest.$ac_ext <<_ACEOF
9541 /* confdefs.h. */
9542 _ACEOF
9543 cat confdefs.h >>conftest.$ac_ext
9544 cat >>conftest.$ac_ext <<_ACEOF
6995 /* end confdefs.h. */ 9545 /* end confdefs.h. */
6996 #include <X11/Xlib.h> 9546 #include <X11/Xlib.h>
6997 int 9547 int
6998 main () 9548 main ()
6999 { 9549 {
7000 XrmInitialize () 9550 XrmInitialize ()
7001 ; 9551 ;
7002 return 0; 9552 return 0;
7003 } 9553 }
7004 _ACEOF 9554 _ACEOF
7005 if ac_fn_c_try_link "$LINENO"; then : 9555 rm -f conftest.$ac_objext conftest$ac_exeext
9556 if { (ac_try="$ac_link"
9557 case "(($ac_try" in
9558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9559 *) ac_try_echo=$ac_try;;
9560 esac
9561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9562 $as_echo "$ac_try_echo") >&5
9563 (eval "$ac_link") 2>conftest.er1
9564 ac_status=$?
9565 grep -v '^ *+' conftest.er1 >conftest.err
9566 rm -f conftest.er1
9567 cat conftest.err >&5
9568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); } && {
9570 test -z "$ac_c_werror_flag" ||
9571 test ! -s conftest.err
9572 } && test -s conftest$ac_exeext && {
9573 test "$cross_compiling" = yes ||
9574 $as_test_x conftest$ac_exeext
9575 }; then
7006 LIBS=$ac_save_LIBS 9576 LIBS=$ac_save_LIBS
7007 # We can link X programs with no special library path. 9577 # We can link X programs with no special library path.
7008 ac_x_libraries= 9578 ac_x_libraries=
7009 else 9579 else
7010 LIBS=$ac_save_LIBS 9580 $as_echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.$ac_ext >&5
9582
9583 LIBS=$ac_save_LIBS
7011 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 9584 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7012 do 9585 do
7013 # Don't even attempt the hair of trying to link an X program! 9586 # Don't even attempt the hair of trying to link an X program!
7014 for ac_extension in a so sl dylib la dll; do 9587 for ac_extension in a so sl dylib la dll; do
7015 if test -r "$ac_dir/libX11.$ac_extension"; then 9588 if test -r "$ac_dir/libX11.$ac_extension"; then
7017 break 2 9590 break 2
7018 fi 9591 fi
7019 done 9592 done
7020 done 9593 done
7021 fi 9594 fi
7022 rm -f core conftest.err conftest.$ac_objext \ 9595
7023 conftest$ac_exeext conftest.$ac_ext 9596 rm -rf conftest.dSYM
9597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9598 conftest$ac_exeext conftest.$ac_ext
7024 fi # $ac_x_libraries = no 9599 fi # $ac_x_libraries = no
7025 9600
7026 case $ac_x_includes,$ac_x_libraries in #( 9601 case $ac_x_includes,$ac_x_libraries in #(
7027 no,* | *,no | *\'*) 9602 no,* | *,no | *\'*)
7028 # Didn't find X, or a directory has "'" in its name. 9603 # Didn't find X, or a directory has "'" in its name.
7039 esac 9614 esac
7040 eval "$ac_cv_have_x" 9615 eval "$ac_cv_have_x"
7041 fi # $with_x != no 9616 fi # $with_x != no
7042 9617
7043 if test "$have_x" != yes; then 9618 if test "$have_x" != yes; then
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 9619 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
7045 $as_echo "$have_x" >&6; } 9620 $as_echo "$have_x" >&6; }
7046 no_x=yes 9621 no_x=yes
7047 else 9622 else
7048 # If each of the values was on the command line, it overrides each guess. 9623 # If each of the values was on the command line, it overrides each guess.
7049 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 9624 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7050 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 9625 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7051 # Update the cache value to reflect the command line values. 9626 # Update the cache value to reflect the command line values.
7052 ac_cv_have_x="have_x=yes\ 9627 ac_cv_have_x="have_x=yes\
7053 ac_x_includes='$x_includes'\ 9628 ac_x_includes='$x_includes'\
7054 ac_x_libraries='$x_libraries'" 9629 ac_x_libraries='$x_libraries'"
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 9630 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7056 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 9631 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7057 fi 9632 fi
7058 9633
7059 if test "$no_x" = yes; then 9634 if test "$no_x" = yes; then
7060 window_system=none 9635 window_system=none
7146 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" 9721 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7147 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" 9722 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7148 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" 9723 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7149 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}" 9724 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
7150 fi 9725 fi
7151 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default" 9726 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
7152 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then : 9727 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9728 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9729 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9730 $as_echo_n "(cached) " >&6
9731 fi
9732 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9733 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9734 else
9735 # Is the header compilable?
9736 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9737 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9738 cat >conftest.$ac_ext <<_ACEOF
9739 /* confdefs.h. */
9740 _ACEOF
9741 cat confdefs.h >>conftest.$ac_ext
9742 cat >>conftest.$ac_ext <<_ACEOF
9743 /* end confdefs.h. */
9744 $ac_includes_default
9745 #include <AppKit/AppKit.h>
9746 _ACEOF
9747 rm -f conftest.$ac_objext
9748 if { (ac_try="$ac_compile"
9749 case "(($ac_try" in
9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9752 esac
9753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9754 $as_echo "$ac_try_echo") >&5
9755 (eval "$ac_compile") 2>conftest.er1
9756 ac_status=$?
9757 grep -v '^ *+' conftest.er1 >conftest.err
9758 rm -f conftest.er1
9759 cat conftest.err >&5
9760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } && {
9762 test -z "$ac_c_werror_flag" ||
9763 test ! -s conftest.err
9764 } && test -s conftest.$ac_objext; then
9765 ac_header_compiler=yes
9766 else
9767 $as_echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9769
9770 ac_header_compiler=no
9771 fi
9772
9773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9774 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9775 $as_echo "$ac_header_compiler" >&6; }
9776
9777 # Is the header present?
9778 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9779 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9780 cat >conftest.$ac_ext <<_ACEOF
9781 /* confdefs.h. */
9782 _ACEOF
9783 cat confdefs.h >>conftest.$ac_ext
9784 cat >>conftest.$ac_ext <<_ACEOF
9785 /* end confdefs.h. */
9786 #include <AppKit/AppKit.h>
9787 _ACEOF
9788 if { (ac_try="$ac_cpp conftest.$ac_ext"
9789 case "(($ac_try" in
9790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791 *) ac_try_echo=$ac_try;;
9792 esac
9793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9794 $as_echo "$ac_try_echo") >&5
9795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9796 ac_status=$?
9797 grep -v '^ *+' conftest.er1 >conftest.err
9798 rm -f conftest.er1
9799 cat conftest.err >&5
9800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); } >/dev/null && {
9802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9803 test ! -s conftest.err
9804 }; then
9805 ac_header_preproc=yes
9806 else
9807 $as_echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9809
9810 ac_header_preproc=no
9811 fi
9812
9813 rm -f conftest.err conftest.$ac_ext
9814 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9815 $as_echo "$ac_header_preproc" >&6; }
9816
9817 # So? What about this header?
9818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9819 yes:no: )
9820 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9821 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9822 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9823 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9824 ac_header_preproc=yes
9825 ;;
9826 no:yes:* )
9827 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9828 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9829 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9830 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9831 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9832 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9833 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9834 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9835 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9836 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9837 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9838 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9839
9840 ;;
9841 esac
9842 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9843 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9844 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9845 $as_echo_n "(cached) " >&6
9846 else
9847 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9848 fi
9849 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9850 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9851
9852 fi
9853 if test $ac_cv_header_AppKit_AppKit_h = yes; then
7153 HAVE_NS=yes 9854 HAVE_NS=yes
7154 else 9855 else
7155 as_fn_error "\`--with-ns' was specified, but the include 9856 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
7156 files are missing or cannot be compiled." "$LINENO" 5 9857 files are missing or cannot be compiled." >&5
9858 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9859 files are missing or cannot be compiled." >&2;}
9860 { (exit 1); exit 1; }; }
7157 fi 9861 fi
7158 9862
7159 9863
7160 NS_HAVE_NSINTEGER=yes 9864 NS_HAVE_NSINTEGER=yes
7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9865 cat >conftest.$ac_ext <<_ACEOF
9866 /* confdefs.h. */
9867 _ACEOF
9868 cat confdefs.h >>conftest.$ac_ext
9869 cat >>conftest.$ac_ext <<_ACEOF
7162 /* end confdefs.h. */ 9870 /* end confdefs.h. */
7163 #include <Foundation/NSObjCRuntime.h> 9871 #include <Foundation/NSObjCRuntime.h>
7164 int 9872 int
7165 main () 9873 main ()
7166 { 9874 {
7167 NSInteger i; 9875 NSInteger i;
7168 ; 9876 ;
7169 return 0; 9877 return 0;
7170 } 9878 }
7171 _ACEOF 9879 _ACEOF
7172 if ac_fn_c_try_compile "$LINENO"; then : 9880 rm -f conftest.$ac_objext
9881 if { (ac_try="$ac_compile"
9882 case "(($ac_try" in
9883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9884 *) ac_try_echo=$ac_try;;
9885 esac
9886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9887 $as_echo "$ac_try_echo") >&5
9888 (eval "$ac_compile") 2>conftest.er1
9889 ac_status=$?
9890 grep -v '^ *+' conftest.er1 >conftest.err
9891 rm -f conftest.er1
9892 cat conftest.err >&5
9893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); } && {
9895 test -z "$ac_c_werror_flag" ||
9896 test ! -s conftest.err
9897 } && test -s conftest.$ac_objext; then
7173 ns_have_nsinteger=yes 9898 ns_have_nsinteger=yes
7174 else 9899 else
7175 ns_have_nsinteger=no 9900 $as_echo "$as_me: failed program was:" >&5
7176 fi 9901 sed 's/^/| /' conftest.$ac_ext >&5
9902
9903 ns_have_nsinteger=no
9904 fi
9905
7177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7178 if test $ns_have_nsinteger = no; then 9907 if test $ns_have_nsinteger = no; then
7179 NS_HAVE_NSINTEGER=no 9908 NS_HAVE_NSINTEGER=no
7180 fi 9909 fi
7181 fi 9910 fi
7213 esac 9942 esac
7214 9943
7215 if test "$window_system" = none && test "X$with_x" != "Xno"; then 9944 if test "$window_system" = none && test "X$with_x" != "Xno"; then
7216 # Extract the first word of "X", so it can be a program name with args. 9945 # Extract the first word of "X", so it can be a program name with args.
7217 set dummy X; ac_word=$2 9946 set dummy X; ac_word=$2
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9947 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7219 $as_echo_n "checking for $ac_word... " >&6; } 9948 $as_echo_n "checking for $ac_word... " >&6; }
7220 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then : 9949 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
7221 $as_echo_n "(cached) " >&6 9950 $as_echo_n "(cached) " >&6
7222 else 9951 else
7223 if test -n "$HAVE_XSERVER"; then 9952 if test -n "$HAVE_XSERVER"; then
7224 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test. 9953 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7225 else 9954 else
7226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227 for as_dir in $PATH 9956 for as_dir in $PATH
7228 do 9957 do
7229 IFS=$as_save_IFS 9958 IFS=$as_save_IFS
7230 test -z "$as_dir" && as_dir=. 9959 test -z "$as_dir" && as_dir=.
7231 for ac_exec_ext in '' $ac_executable_extensions; do 9960 for ac_exec_ext in '' $ac_executable_extensions; do
7232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7233 ac_cv_prog_HAVE_XSERVER="true" 9962 ac_cv_prog_HAVE_XSERVER="true"
7234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9963 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7235 break 2 9964 break 2
7236 fi 9965 fi
7237 done 9966 done
7238 done 9967 done
7239 IFS=$as_save_IFS 9968 IFS=$as_save_IFS
7240 9969
7241 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false" 9970 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
7242 fi 9971 fi
7243 fi 9972 fi
7244 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER 9973 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7245 if test -n "$HAVE_XSERVER"; then 9974 if test -n "$HAVE_XSERVER"; then
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5 9975 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
7247 $as_echo "$HAVE_XSERVER" >&6; } 9976 $as_echo "$HAVE_XSERVER" >&6; }
7248 else 9977 else
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9978 { $as_echo "$as_me:$LINENO: result: no" >&5
7250 $as_echo "no" >&6; } 9979 $as_echo "no" >&6; }
7251 fi 9980 fi
7252 9981
7253 9982
7254 if test "$HAVE_XSERVER" = true || 9983 if test "$HAVE_XSERVER" = true ||
7255 test -n "$DISPLAY" || 9984 test -n "$DISPLAY" ||
7256 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then 9985 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7257 as_fn_error "You seem to be running X, but no X development libraries 9986 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
7258 were found. You should install the relevant development files for X 9987 were found. You should install the relevant development files for X
7259 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make 9988 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7260 sure you have development files for image handling, i.e. 9989 sure you have development files for image handling, i.e.
7261 tiff, gif, jpeg, png and xpm. 9990 tiff, gif, jpeg, png and xpm.
7262 If you are sure you want Emacs compiled without X window support, pass 9991 If you are sure you want Emacs compiled without X window support, pass
7263 --without-x 9992 --without-x
7264 to configure." "$LINENO" 5 9993 to configure." >&5
9994 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
9995 were found. You should install the relevant development files for X
9996 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9997 sure you have development files for image handling, i.e.
9998 tiff, gif, jpeg, png and xpm.
9999 If you are sure you want Emacs compiled without X window support, pass
10000 --without-x
10001 to configure." >&2;}
10002 { (exit 1); exit 1; }; }
7265 fi 10003 fi
7266 fi 10004 fi
7267 10005
7268 ### If we're using X11, we should use the X menu package. 10006 ### If we're using X11, we should use the X menu package.
7269 HAVE_MENUS=no 10007 HAVE_MENUS=no
7273 10011
7274 # Do the opsystem or machine files prohibit the use of the GNU malloc? 10012 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7275 # Assume not, until told otherwise. 10013 # Assume not, until told otherwise.
7276 GNU_MALLOC=yes 10014 GNU_MALLOC=yes
7277 doug_lea_malloc=yes 10015 doug_lea_malloc=yes
7278 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state" 10016 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
7279 if test "x$ac_cv_func_malloc_get_state" = x""yes; then : 10017 $as_echo_n "checking for malloc_get_state... " >&6; }
7280 10018 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10019 $as_echo_n "(cached) " >&6
10020 else
10021 cat >conftest.$ac_ext <<_ACEOF
10022 /* confdefs.h. */
10023 _ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10027 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10029 #define malloc_get_state innocuous_malloc_get_state
10030
10031 /* System header to define __stub macros and hopefully few prototypes,
10032 which can conflict with char malloc_get_state (); below.
10033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10034 <limits.h> exists even on freestanding compilers. */
10035
10036 #ifdef __STDC__
10037 # include <limits.h>
10038 #else
10039 # include <assert.h>
10040 #endif
10041
10042 #undef malloc_get_state
10043
10044 /* Override any GCC internal prototype to avoid an error.
10045 Use char because int might match the return type of a GCC
10046 builtin and then its argument prototype would still apply. */
10047 #ifdef __cplusplus
10048 extern "C"
10049 #endif
10050 char malloc_get_state ();
10051 /* The GNU C library defines this for functions which it implements
10052 to always fail with ENOSYS. Some functions are actually named
10053 something starting with __ and the normal name is an alias. */
10054 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10055 choke me
10056 #endif
10057
10058 int
10059 main ()
10060 {
10061 return malloc_get_state ();
10062 ;
10063 return 0;
10064 }
10065 _ACEOF
10066 rm -f conftest.$ac_objext conftest$ac_exeext
10067 if { (ac_try="$ac_link"
10068 case "(($ac_try" in
10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070 *) ac_try_echo=$ac_try;;
10071 esac
10072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10073 $as_echo "$ac_try_echo") >&5
10074 (eval "$ac_link") 2>conftest.er1
10075 ac_status=$?
10076 grep -v '^ *+' conftest.er1 >conftest.err
10077 rm -f conftest.er1
10078 cat conftest.err >&5
10079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); } && {
10081 test -z "$ac_c_werror_flag" ||
10082 test ! -s conftest.err
10083 } && test -s conftest$ac_exeext && {
10084 test "$cross_compiling" = yes ||
10085 $as_test_x conftest$ac_exeext
10086 }; then
10087 ac_cv_func_malloc_get_state=yes
10088 else
10089 $as_echo "$as_me: failed program was:" >&5
10090 sed 's/^/| /' conftest.$ac_ext >&5
10091
10092 ac_cv_func_malloc_get_state=no
10093 fi
10094
10095 rm -rf conftest.dSYM
10096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10097 conftest$ac_exeext conftest.$ac_ext
10098 fi
10099 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10100 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10101 if test $ac_cv_func_malloc_get_state = yes; then
10102 :
7281 else 10103 else
7282 doug_lea_malloc=no 10104 doug_lea_malloc=no
7283 fi 10105 fi
7284 10106
7285 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state" 10107 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
7286 if test "x$ac_cv_func_malloc_set_state" = x""yes; then : 10108 $as_echo_n "checking for malloc_set_state... " >&6; }
7287 10109 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10110 $as_echo_n "(cached) " >&6
10111 else
10112 cat >conftest.$ac_ext <<_ACEOF
10113 /* confdefs.h. */
10114 _ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h. */
10118 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10120 #define malloc_set_state innocuous_malloc_set_state
10121
10122 /* System header to define __stub macros and hopefully few prototypes,
10123 which can conflict with char malloc_set_state (); below.
10124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10125 <limits.h> exists even on freestanding compilers. */
10126
10127 #ifdef __STDC__
10128 # include <limits.h>
10129 #else
10130 # include <assert.h>
10131 #endif
10132
10133 #undef malloc_set_state
10134
10135 /* Override any GCC internal prototype to avoid an error.
10136 Use char because int might match the return type of a GCC
10137 builtin and then its argument prototype would still apply. */
10138 #ifdef __cplusplus
10139 extern "C"
10140 #endif
10141 char malloc_set_state ();
10142 /* The GNU C library defines this for functions which it implements
10143 to always fail with ENOSYS. Some functions are actually named
10144 something starting with __ and the normal name is an alias. */
10145 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10146 choke me
10147 #endif
10148
10149 int
10150 main ()
10151 {
10152 return malloc_set_state ();
10153 ;
10154 return 0;
10155 }
10156 _ACEOF
10157 rm -f conftest.$ac_objext conftest$ac_exeext
10158 if { (ac_try="$ac_link"
10159 case "(($ac_try" in
10160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10161 *) ac_try_echo=$ac_try;;
10162 esac
10163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10164 $as_echo "$ac_try_echo") >&5
10165 (eval "$ac_link") 2>conftest.er1
10166 ac_status=$?
10167 grep -v '^ *+' conftest.er1 >conftest.err
10168 rm -f conftest.er1
10169 cat conftest.err >&5
10170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); } && {
10172 test -z "$ac_c_werror_flag" ||
10173 test ! -s conftest.err
10174 } && test -s conftest$ac_exeext && {
10175 test "$cross_compiling" = yes ||
10176 $as_test_x conftest$ac_exeext
10177 }; then
10178 ac_cv_func_malloc_set_state=yes
10179 else
10180 $as_echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10182
10183 ac_cv_func_malloc_set_state=no
10184 fi
10185
10186 rm -rf conftest.dSYM
10187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10188 conftest$ac_exeext conftest.$ac_ext
10189 fi
10190 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10191 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10192 if test $ac_cv_func_malloc_set_state = yes; then
10193 :
7288 else 10194 else
7289 doug_lea_malloc=no 10195 doug_lea_malloc=no
7290 fi 10196 fi
7291 10197
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5 10198 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7293 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; } 10199 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7294 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then : 10200 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7295 $as_echo_n "(cached) " >&6 10201 $as_echo_n "(cached) " >&6
7296 else 10202 else
7297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10203 cat >conftest.$ac_ext <<_ACEOF
10204 /* confdefs.h. */
10205 _ACEOF
10206 cat confdefs.h >>conftest.$ac_ext
10207 cat >>conftest.$ac_ext <<_ACEOF
7298 /* end confdefs.h. */ 10208 /* end confdefs.h. */
7299 extern void (* __after_morecore_hook)(); 10209 extern void (* __after_morecore_hook)();
7300 int 10210 int
7301 main () 10211 main ()
7302 { 10212 {
7303 __after_morecore_hook = 0 10213 __after_morecore_hook = 0
7304 ; 10214 ;
7305 return 0; 10215 return 0;
7306 } 10216 }
7307 _ACEOF 10217 _ACEOF
7308 if ac_fn_c_try_link "$LINENO"; then : 10218 rm -f conftest.$ac_objext conftest$ac_exeext
10219 if { (ac_try="$ac_link"
10220 case "(($ac_try" in
10221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10222 *) ac_try_echo=$ac_try;;
10223 esac
10224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10225 $as_echo "$ac_try_echo") >&5
10226 (eval "$ac_link") 2>conftest.er1
10227 ac_status=$?
10228 grep -v '^ *+' conftest.er1 >conftest.err
10229 rm -f conftest.er1
10230 cat conftest.err >&5
10231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); } && {
10233 test -z "$ac_c_werror_flag" ||
10234 test ! -s conftest.err
10235 } && test -s conftest$ac_exeext && {
10236 test "$cross_compiling" = yes ||
10237 $as_test_x conftest$ac_exeext
10238 }; then
7309 emacs_cv_var___after_morecore_hook=yes 10239 emacs_cv_var___after_morecore_hook=yes
7310 else 10240 else
7311 emacs_cv_var___after_morecore_hook=no 10241 $as_echo "$as_me: failed program was:" >&5
7312 fi 10242 sed 's/^/| /' conftest.$ac_ext >&5
7313 rm -f core conftest.err conftest.$ac_objext \ 10243
7314 conftest$ac_exeext conftest.$ac_ext 10244 emacs_cv_var___after_morecore_hook=no
7315 fi 10245 fi
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5 10246
10247 rm -rf conftest.dSYM
10248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10249 conftest$ac_exeext conftest.$ac_ext
10250 fi
10251 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7317 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; } 10252 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7318 if test $emacs_cv_var___after_morecore_hook = no; then 10253 if test $emacs_cv_var___after_morecore_hook = no; then
7319 doug_lea_malloc=no 10254 doug_lea_malloc=no
7320 fi 10255 fi
7321 if test "${system_malloc}" = "yes"; then 10256 if test "${system_malloc}" = "yes"; then
7327 if test "$GNU_MALLOC" = yes ; then 10262 if test "$GNU_MALLOC" = yes ; then
7328 GNU_MALLOC_reason=" 10263 GNU_MALLOC_reason="
7329 (Using Doug Lea's new malloc from the GNU C Library.)" 10264 (Using Doug Lea's new malloc from the GNU C Library.)"
7330 fi 10265 fi
7331 10266
7332 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h 10267 cat >>confdefs.h <<\_ACEOF
10268 #define DOUG_LEA_MALLOC 1
10269 _ACEOF
7333 10270
7334 fi 10271 fi
7335 10272
7336 if test x"${REL_ALLOC}" = x; then 10273 if test x"${REL_ALLOC}" = x; then
7337 REL_ALLOC=${GNU_MALLOC} 10274 REL_ALLOC=${GNU_MALLOC}
7338 fi 10275 fi
7339 10276
7340 10277
10278
10279
7341 for ac_header in stdlib.h unistd.h 10280 for ac_header in stdlib.h unistd.h
7342 do : 10281 do
7343 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10282 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7344 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7345 eval as_val=\$$as_ac_Header 10284 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7346 if test "x$as_val" = x""yes; then : 10285 $as_echo_n "checking for $ac_header... " >&6; }
10286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10287 $as_echo_n "(cached) " >&6
10288 fi
10289 ac_res=`eval 'as_val=${'$as_ac_Header'}
10290 $as_echo "$as_val"'`
10291 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10292 $as_echo "$ac_res" >&6; }
10293 else
10294 # Is the header compilable?
10295 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10296 $as_echo_n "checking $ac_header usability... " >&6; }
10297 cat >conftest.$ac_ext <<_ACEOF
10298 /* confdefs.h. */
10299 _ACEOF
10300 cat confdefs.h >>conftest.$ac_ext
10301 cat >>conftest.$ac_ext <<_ACEOF
10302 /* end confdefs.h. */
10303 $ac_includes_default
10304 #include <$ac_header>
10305 _ACEOF
10306 rm -f conftest.$ac_objext
10307 if { (ac_try="$ac_compile"
10308 case "(($ac_try" in
10309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10310 *) ac_try_echo=$ac_try;;
10311 esac
10312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10313 $as_echo "$ac_try_echo") >&5
10314 (eval "$ac_compile") 2>conftest.er1
10315 ac_status=$?
10316 grep -v '^ *+' conftest.er1 >conftest.err
10317 rm -f conftest.er1
10318 cat conftest.err >&5
10319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); } && {
10321 test -z "$ac_c_werror_flag" ||
10322 test ! -s conftest.err
10323 } && test -s conftest.$ac_objext; then
10324 ac_header_compiler=yes
10325 else
10326 $as_echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10328
10329 ac_header_compiler=no
10330 fi
10331
10332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10333 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10334 $as_echo "$ac_header_compiler" >&6; }
10335
10336 # Is the header present?
10337 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10338 $as_echo_n "checking $ac_header presence... " >&6; }
10339 cat >conftest.$ac_ext <<_ACEOF
10340 /* confdefs.h. */
10341 _ACEOF
10342 cat confdefs.h >>conftest.$ac_ext
10343 cat >>conftest.$ac_ext <<_ACEOF
10344 /* end confdefs.h. */
10345 #include <$ac_header>
10346 _ACEOF
10347 if { (ac_try="$ac_cpp conftest.$ac_ext"
10348 case "(($ac_try" in
10349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10350 *) ac_try_echo=$ac_try;;
10351 esac
10352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10353 $as_echo "$ac_try_echo") >&5
10354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10355 ac_status=$?
10356 grep -v '^ *+' conftest.er1 >conftest.err
10357 rm -f conftest.er1
10358 cat conftest.err >&5
10359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); } >/dev/null && {
10361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10362 test ! -s conftest.err
10363 }; then
10364 ac_header_preproc=yes
10365 else
10366 $as_echo "$as_me: failed program was:" >&5
10367 sed 's/^/| /' conftest.$ac_ext >&5
10368
10369 ac_header_preproc=no
10370 fi
10371
10372 rm -f conftest.err conftest.$ac_ext
10373 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10374 $as_echo "$ac_header_preproc" >&6; }
10375
10376 # So? What about this header?
10377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10378 yes:no: )
10379 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10380 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10382 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10383 ac_header_preproc=yes
10384 ;;
10385 no:yes:* )
10386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10387 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10389 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10391 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10393 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10395 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10397 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10398
10399 ;;
10400 esac
10401 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10402 $as_echo_n "checking for $ac_header... " >&6; }
10403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10404 $as_echo_n "(cached) " >&6
10405 else
10406 eval "$as_ac_Header=\$ac_header_preproc"
10407 fi
10408 ac_res=`eval 'as_val=${'$as_ac_Header'}
10409 $as_echo "$as_val"'`
10410 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10411 $as_echo "$ac_res" >&6; }
10412
10413 fi
10414 if test `eval 'as_val=${'$as_ac_Header'}
10415 $as_echo "$as_val"'` = yes; then
7347 cat >>confdefs.h <<_ACEOF 10416 cat >>confdefs.h <<_ACEOF
7348 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10417 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7349 _ACEOF 10418 _ACEOF
7350 10419
7351 fi 10420 fi
7352 10421
7353 done 10422 done
7354 10423
10424
7355 for ac_func in getpagesize 10425 for ac_func in getpagesize
7356 do : 10426 do
7357 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 10427 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7358 if test "x$ac_cv_func_getpagesize" = x""yes; then : 10428 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10429 $as_echo_n "checking for $ac_func... " >&6; }
10430 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10431 $as_echo_n "(cached) " >&6
10432 else
10433 cat >conftest.$ac_ext <<_ACEOF
10434 /* confdefs.h. */
10435 _ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10441 #define $ac_func innocuous_$ac_func
10442
10443 /* System header to define __stub macros and hopefully few prototypes,
10444 which can conflict with char $ac_func (); below.
10445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10446 <limits.h> exists even on freestanding compilers. */
10447
10448 #ifdef __STDC__
10449 # include <limits.h>
10450 #else
10451 # include <assert.h>
10452 #endif
10453
10454 #undef $ac_func
10455
10456 /* Override any GCC internal prototype to avoid an error.
10457 Use char because int might match the return type of a GCC
10458 builtin and then its argument prototype would still apply. */
10459 #ifdef __cplusplus
10460 extern "C"
10461 #endif
10462 char $ac_func ();
10463 /* The GNU C library defines this for functions which it implements
10464 to always fail with ENOSYS. Some functions are actually named
10465 something starting with __ and the normal name is an alias. */
10466 #if defined __stub_$ac_func || defined __stub___$ac_func
10467 choke me
10468 #endif
10469
10470 int
10471 main ()
10472 {
10473 return $ac_func ();
10474 ;
10475 return 0;
10476 }
10477 _ACEOF
10478 rm -f conftest.$ac_objext conftest$ac_exeext
10479 if { (ac_try="$ac_link"
10480 case "(($ac_try" in
10481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10482 *) ac_try_echo=$ac_try;;
10483 esac
10484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10485 $as_echo "$ac_try_echo") >&5
10486 (eval "$ac_link") 2>conftest.er1
10487 ac_status=$?
10488 grep -v '^ *+' conftest.er1 >conftest.err
10489 rm -f conftest.er1
10490 cat conftest.err >&5
10491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } && {
10493 test -z "$ac_c_werror_flag" ||
10494 test ! -s conftest.err
10495 } && test -s conftest$ac_exeext && {
10496 test "$cross_compiling" = yes ||
10497 $as_test_x conftest$ac_exeext
10498 }; then
10499 eval "$as_ac_var=yes"
10500 else
10501 $as_echo "$as_me: failed program was:" >&5
10502 sed 's/^/| /' conftest.$ac_ext >&5
10503
10504 eval "$as_ac_var=no"
10505 fi
10506
10507 rm -rf conftest.dSYM
10508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10509 conftest$ac_exeext conftest.$ac_ext
10510 fi
10511 ac_res=`eval 'as_val=${'$as_ac_var'}
10512 $as_echo "$as_val"'`
10513 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10514 $as_echo "$ac_res" >&6; }
10515 if test `eval 'as_val=${'$as_ac_var'}
10516 $as_echo "$as_val"'` = yes; then
7359 cat >>confdefs.h <<_ACEOF 10517 cat >>confdefs.h <<_ACEOF
7360 #define HAVE_GETPAGESIZE 1 10518 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7361 _ACEOF 10519 _ACEOF
7362 10520
7363 fi 10521 fi
7364 done 10522 done
7365 10523
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 10524 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
7367 $as_echo_n "checking for working mmap... " >&6; } 10525 $as_echo_n "checking for working mmap... " >&6; }
7368 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : 10526 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7369 $as_echo_n "(cached) " >&6 10527 $as_echo_n "(cached) " >&6
7370 else 10528 else
7371 if test "$cross_compiling" = yes; then : 10529 if test "$cross_compiling" = yes; then
7372 ac_cv_func_mmap_fixed_mapped=no 10530 ac_cv_func_mmap_fixed_mapped=no
7373 else 10531 else
7374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10532 cat >conftest.$ac_ext <<_ACEOF
10533 /* confdefs.h. */
10534 _ACEOF
10535 cat confdefs.h >>conftest.$ac_ext
10536 cat >>conftest.$ac_ext <<_ACEOF
7375 /* end confdefs.h. */ 10537 /* end confdefs.h. */
7376 $ac_includes_default 10538 $ac_includes_default
7377 /* malloc might have been renamed as rpl_malloc. */ 10539 /* malloc might have been renamed as rpl_malloc. */
7378 #undef malloc 10540 #undef malloc
7379 10541
7498 return 1; 10660 return 1;
7499 close (fd); 10661 close (fd);
7500 return 0; 10662 return 0;
7501 } 10663 }
7502 _ACEOF 10664 _ACEOF
7503 if ac_fn_c_try_run "$LINENO"; then : 10665 rm -f conftest$ac_exeext
10666 if { (ac_try="$ac_link"
10667 case "(($ac_try" in
10668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10669 *) ac_try_echo=$ac_try;;
10670 esac
10671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10672 $as_echo "$ac_try_echo") >&5
10673 (eval "$ac_link") 2>&5
10674 ac_status=$?
10675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10677 { (case "(($ac_try" in
10678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10679 *) ac_try_echo=$ac_try;;
10680 esac
10681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10682 $as_echo "$ac_try_echo") >&5
10683 (eval "$ac_try") 2>&5
10684 ac_status=$?
10685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); }; }; then
7504 ac_cv_func_mmap_fixed_mapped=yes 10687 ac_cv_func_mmap_fixed_mapped=yes
7505 else 10688 else
7506 ac_cv_func_mmap_fixed_mapped=no 10689 $as_echo "$as_me: program exited with status $ac_status" >&5
7507 fi 10690 $as_echo "$as_me: failed program was:" >&5
7508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10691 sed 's/^/| /' conftest.$ac_ext >&5
7509 conftest.$ac_objext conftest.beam conftest.$ac_ext 10692
7510 fi 10693 ( exit $ac_status )
7511 10694 ac_cv_func_mmap_fixed_mapped=no
7512 fi 10695 fi
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 10696 rm -rf conftest.dSYM
10697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10698 fi
10699
10700
10701 fi
10702 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7514 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 10703 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7515 if test $ac_cv_func_mmap_fixed_mapped = yes; then 10704 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7516 10705
7517 $as_echo "#define HAVE_MMAP 1" >>confdefs.h 10706 cat >>confdefs.h <<\_ACEOF
10707 #define HAVE_MMAP 1
10708 _ACEOF
7518 10709
7519 fi 10710 fi
7520 rm -f conftest.mmap 10711 rm -f conftest.mmap
7521 10712
7522 if test $use_mmap_for_buffers = yes; then 10713 if test $use_mmap_for_buffers = yes; then
7523 REL_ALLOC=no 10714 REL_ALLOC=no
7524 fi 10715 fi
7525 10716
7526 LIBS="$libsrc_libs $LIBS" 10717 LIBS="$libsrc_libs $LIBS"
7527 10718
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 10719
10720 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7529 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 10721 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7530 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : 10722 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7531 $as_echo_n "(cached) " >&6 10723 $as_echo_n "(cached) " >&6
7532 else 10724 else
7533 ac_check_lib_save_LIBS=$LIBS 10725 ac_check_lib_save_LIBS=$LIBS
7534 LIBS="-ldnet $LIBS" 10726 LIBS="-ldnet $LIBS"
7535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10727 cat >conftest.$ac_ext <<_ACEOF
10728 /* confdefs.h. */
10729 _ACEOF
10730 cat confdefs.h >>conftest.$ac_ext
10731 cat >>conftest.$ac_ext <<_ACEOF
7536 /* end confdefs.h. */ 10732 /* end confdefs.h. */
7537 10733
7538 /* Override any GCC internal prototype to avoid an error. 10734 /* Override any GCC internal prototype to avoid an error.
7539 Use char because int might match the return type of a GCC 10735 Use char because int might match the return type of a GCC
7540 builtin and then its argument prototype would still apply. */ 10736 builtin and then its argument prototype would still apply. */
7548 return dnet_ntoa (); 10744 return dnet_ntoa ();
7549 ; 10745 ;
7550 return 0; 10746 return 0;
7551 } 10747 }
7552 _ACEOF 10748 _ACEOF
7553 if ac_fn_c_try_link "$LINENO"; then : 10749 rm -f conftest.$ac_objext conftest$ac_exeext
10750 if { (ac_try="$ac_link"
10751 case "(($ac_try" in
10752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10753 *) ac_try_echo=$ac_try;;
10754 esac
10755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10756 $as_echo "$ac_try_echo") >&5
10757 (eval "$ac_link") 2>conftest.er1
10758 ac_status=$?
10759 grep -v '^ *+' conftest.er1 >conftest.err
10760 rm -f conftest.er1
10761 cat conftest.err >&5
10762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); } && {
10764 test -z "$ac_c_werror_flag" ||
10765 test ! -s conftest.err
10766 } && test -s conftest$ac_exeext && {
10767 test "$cross_compiling" = yes ||
10768 $as_test_x conftest$ac_exeext
10769 }; then
7554 ac_cv_lib_dnet_dnet_ntoa=yes 10770 ac_cv_lib_dnet_dnet_ntoa=yes
7555 else 10771 else
7556 ac_cv_lib_dnet_dnet_ntoa=no 10772 $as_echo "$as_me: failed program was:" >&5
7557 fi 10773 sed 's/^/| /' conftest.$ac_ext >&5
7558 rm -f core conftest.err conftest.$ac_objext \ 10774
7559 conftest$ac_exeext conftest.$ac_ext 10775 ac_cv_lib_dnet_dnet_ntoa=no
10776 fi
10777
10778 rm -rf conftest.dSYM
10779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10780 conftest$ac_exeext conftest.$ac_ext
7560 LIBS=$ac_check_lib_save_LIBS 10781 LIBS=$ac_check_lib_save_LIBS
7561 fi 10782 fi
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 10783 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7563 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 10784 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7564 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : 10785 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7565 cat >>confdefs.h <<_ACEOF 10786 cat >>confdefs.h <<_ACEOF
7566 #define HAVE_LIBDNET 1 10787 #define HAVE_LIBDNET 1
7567 _ACEOF 10788 _ACEOF
7568 10789
7569 LIBS="-ldnet $LIBS" 10790 LIBS="-ldnet $LIBS"
7570 10791
7571 fi 10792 fi
7572 10793
7573 10794
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5 10795 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7575 $as_echo_n "checking for main in -lXbsd... " >&6; } 10796 $as_echo_n "checking for main in -lXbsd... " >&6; }
7576 if test "${ac_cv_lib_Xbsd_main+set}" = set; then : 10797 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7577 $as_echo_n "(cached) " >&6 10798 $as_echo_n "(cached) " >&6
7578 else 10799 else
7579 ac_check_lib_save_LIBS=$LIBS 10800 ac_check_lib_save_LIBS=$LIBS
7580 LIBS="-lXbsd $LIBS" 10801 LIBS="-lXbsd $LIBS"
7581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10802 cat >conftest.$ac_ext <<_ACEOF
10803 /* confdefs.h. */
10804 _ACEOF
10805 cat confdefs.h >>conftest.$ac_ext
10806 cat >>conftest.$ac_ext <<_ACEOF
7582 /* end confdefs.h. */ 10807 /* end confdefs.h. */
7583 10808
7584 10809
7585 int 10810 int
7586 main () 10811 main ()
7588 return main (); 10813 return main ();
7589 ; 10814 ;
7590 return 0; 10815 return 0;
7591 } 10816 }
7592 _ACEOF 10817 _ACEOF
7593 if ac_fn_c_try_link "$LINENO"; then : 10818 rm -f conftest.$ac_objext conftest$ac_exeext
10819 if { (ac_try="$ac_link"
10820 case "(($ac_try" in
10821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10822 *) ac_try_echo=$ac_try;;
10823 esac
10824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10825 $as_echo "$ac_try_echo") >&5
10826 (eval "$ac_link") 2>conftest.er1
10827 ac_status=$?
10828 grep -v '^ *+' conftest.er1 >conftest.err
10829 rm -f conftest.er1
10830 cat conftest.err >&5
10831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); } && {
10833 test -z "$ac_c_werror_flag" ||
10834 test ! -s conftest.err
10835 } && test -s conftest$ac_exeext && {
10836 test "$cross_compiling" = yes ||
10837 $as_test_x conftest$ac_exeext
10838 }; then
7594 ac_cv_lib_Xbsd_main=yes 10839 ac_cv_lib_Xbsd_main=yes
7595 else 10840 else
7596 ac_cv_lib_Xbsd_main=no 10841 $as_echo "$as_me: failed program was:" >&5
7597 fi 10842 sed 's/^/| /' conftest.$ac_ext >&5
7598 rm -f core conftest.err conftest.$ac_objext \ 10843
7599 conftest$ac_exeext conftest.$ac_ext 10844 ac_cv_lib_Xbsd_main=no
10845 fi
10846
10847 rm -rf conftest.dSYM
10848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10849 conftest$ac_exeext conftest.$ac_ext
7600 LIBS=$ac_check_lib_save_LIBS 10850 LIBS=$ac_check_lib_save_LIBS
7601 fi 10851 fi
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5 10852 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7603 $as_echo "$ac_cv_lib_Xbsd_main" >&6; } 10853 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
7604 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then : 10854 if test $ac_cv_lib_Xbsd_main = yes; then
7605 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" 10855 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7606 fi 10856 fi
7607 10857
7608 10858
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5 10859
10860 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7610 $as_echo_n "checking for cma_open in -lpthreads... " >&6; } 10861 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
7611 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then : 10862 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7612 $as_echo_n "(cached) " >&6 10863 $as_echo_n "(cached) " >&6
7613 else 10864 else
7614 ac_check_lib_save_LIBS=$LIBS 10865 ac_check_lib_save_LIBS=$LIBS
7615 LIBS="-lpthreads $LIBS" 10866 LIBS="-lpthreads $LIBS"
7616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10867 cat >conftest.$ac_ext <<_ACEOF
10868 /* confdefs.h. */
10869 _ACEOF
10870 cat confdefs.h >>conftest.$ac_ext
10871 cat >>conftest.$ac_ext <<_ACEOF
7617 /* end confdefs.h. */ 10872 /* end confdefs.h. */
7618 10873
7619 /* Override any GCC internal prototype to avoid an error. 10874 /* Override any GCC internal prototype to avoid an error.
7620 Use char because int might match the return type of a GCC 10875 Use char because int might match the return type of a GCC
7621 builtin and then its argument prototype would still apply. */ 10876 builtin and then its argument prototype would still apply. */
7629 return cma_open (); 10884 return cma_open ();
7630 ; 10885 ;
7631 return 0; 10886 return 0;
7632 } 10887 }
7633 _ACEOF 10888 _ACEOF
7634 if ac_fn_c_try_link "$LINENO"; then : 10889 rm -f conftest.$ac_objext conftest$ac_exeext
10890 if { (ac_try="$ac_link"
10891 case "(($ac_try" in
10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10894 esac
10895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10896 $as_echo "$ac_try_echo") >&5
10897 (eval "$ac_link") 2>conftest.er1
10898 ac_status=$?
10899 grep -v '^ *+' conftest.er1 >conftest.err
10900 rm -f conftest.er1
10901 cat conftest.err >&5
10902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } && {
10904 test -z "$ac_c_werror_flag" ||
10905 test ! -s conftest.err
10906 } && test -s conftest$ac_exeext && {
10907 test "$cross_compiling" = yes ||
10908 $as_test_x conftest$ac_exeext
10909 }; then
7635 ac_cv_lib_pthreads_cma_open=yes 10910 ac_cv_lib_pthreads_cma_open=yes
7636 else 10911 else
7637 ac_cv_lib_pthreads_cma_open=no 10912 $as_echo "$as_me: failed program was:" >&5
7638 fi 10913 sed 's/^/| /' conftest.$ac_ext >&5
7639 rm -f core conftest.err conftest.$ac_objext \ 10914
7640 conftest$ac_exeext conftest.$ac_ext 10915 ac_cv_lib_pthreads_cma_open=no
10916 fi
10917
10918 rm -rf conftest.dSYM
10919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10920 conftest$ac_exeext conftest.$ac_ext
7641 LIBS=$ac_check_lib_save_LIBS 10921 LIBS=$ac_check_lib_save_LIBS
7642 fi 10922 fi
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5 10923 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7644 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; } 10924 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
7645 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then : 10925 if test $ac_cv_lib_pthreads_cma_open = yes; then
7646 cat >>confdefs.h <<_ACEOF 10926 cat >>confdefs.h <<_ACEOF
7647 #define HAVE_LIBPTHREADS 1 10927 #define HAVE_LIBPTHREADS 1
7648 _ACEOF 10928 _ACEOF
7649 10929
7650 LIBS="-lpthreads $LIBS" 10930 LIBS="-lpthreads $LIBS"
7653 10933
7654 10934
7655 10935
7656 case ${host_os} in 10936 case ${host_os} in
7657 aix*) 10937 aix*)
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5 10938 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
7659 $as_echo_n "checking for -bbigtoc option... " >&6; } 10939 $as_echo_n "checking for -bbigtoc option... " >&6; }
7660 if test "${gdb_cv_bigtoc+set}" = set; then : 10940 if test "${gdb_cv_bigtoc+set}" = set; then
7661 $as_echo_n "(cached) " >&6 10941 $as_echo_n "(cached) " >&6
7662 else 10942 else
7663 10943
7664 case $GCC in 10944 case $GCC in
7665 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; 10945 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
7666 *) gdb_cv_bigtoc=-bbigtoc ;; 10946 *) gdb_cv_bigtoc=-bbigtoc ;;
7667 esac 10947 esac
7668 10948
7669 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc 10949 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
7670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10950 cat >conftest.$ac_ext <<_ACEOF
10951 /* confdefs.h. */
10952 _ACEOF
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
7671 /* end confdefs.h. */ 10955 /* end confdefs.h. */
7672 10956
7673 int 10957 int
7674 main () 10958 main ()
7675 { 10959 {
7676 int i; 10960 int i;
7677 ; 10961 ;
7678 return 0; 10962 return 0;
7679 } 10963 }
7680 _ACEOF 10964 _ACEOF
7681 if ac_fn_c_try_link "$LINENO"; then : 10965 rm -f conftest.$ac_objext conftest$ac_exeext
7682 10966 if { (ac_try="$ac_link"
7683 else 10967 case "(($ac_try" in
7684 gdb_cv_bigtoc= 10968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7685 fi 10969 *) ac_try_echo=$ac_try;;
7686 rm -f core conftest.err conftest.$ac_objext \ 10970 esac
7687 conftest$ac_exeext conftest.$ac_ext 10971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7688 10972 $as_echo "$ac_try_echo") >&5
7689 fi 10973 (eval "$ac_link") 2>conftest.er1
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5 10974 ac_status=$?
10975 grep -v '^ *+' conftest.er1 >conftest.err
10976 rm -f conftest.er1
10977 cat conftest.err >&5
10978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } && {
10980 test -z "$ac_c_werror_flag" ||
10981 test ! -s conftest.err
10982 } && test -s conftest$ac_exeext && {
10983 test "$cross_compiling" = yes ||
10984 $as_test_x conftest$ac_exeext
10985 }; then
10986 :
10987 else
10988 $as_echo "$as_me: failed program was:" >&5
10989 sed 's/^/| /' conftest.$ac_ext >&5
10990
10991 gdb_cv_bigtoc=
10992 fi
10993
10994 rm -rf conftest.dSYM
10995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10996 conftest$ac_exeext conftest.$ac_ext
10997
10998 fi
10999 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
7691 $as_echo "$gdb_cv_bigtoc" >&6; } 11000 $as_echo "$gdb_cv_bigtoc" >&6; }
7692 ;; 11001 ;;
7693 esac 11002 esac
7694 11003
7695 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets 11004 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7713 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH 11022 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7714 export LD_RUN_PATH 11023 export LD_RUN_PATH
7715 fi 11024 fi
7716 11025
7717 if test "${opsys}" = "gnu-linux"; then 11026 if test "${opsys}" = "gnu-linux"; then
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5 11027 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7719 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; } 11028 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
7720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11029 cat >conftest.$ac_ext <<_ACEOF
11030 /* confdefs.h. */
11031 _ACEOF
11032 cat confdefs.h >>conftest.$ac_ext
11033 cat >>conftest.$ac_ext <<_ACEOF
7721 /* end confdefs.h. */ 11034 /* end confdefs.h. */
7722 11035
7723 int 11036 int
7724 main () 11037 main ()
7725 { 11038 {
7726 XOpenDisplay ("foo"); 11039 XOpenDisplay ("foo");
7727 ; 11040 ;
7728 return 0; 11041 return 0;
7729 } 11042 }
7730 _ACEOF 11043 _ACEOF
7731 if ac_fn_c_try_link "$LINENO"; then : 11044 rm -f conftest.$ac_objext conftest$ac_exeext
11045 if { (ac_try="$ac_link"
11046 case "(($ac_try" in
11047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048 *) ac_try_echo=$ac_try;;
11049 esac
11050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11051 $as_echo "$ac_try_echo") >&5
11052 (eval "$ac_link") 2>conftest.er1
11053 ac_status=$?
11054 grep -v '^ *+' conftest.er1 >conftest.err
11055 rm -f conftest.er1
11056 cat conftest.err >&5
11057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); } && {
11059 test -z "$ac_c_werror_flag" ||
11060 test ! -s conftest.err
11061 } && test -s conftest$ac_exeext && {
11062 test "$cross_compiling" = yes ||
11063 $as_test_x conftest$ac_exeext
11064 }; then
7732 xlinux_first_failure=no 11065 xlinux_first_failure=no
7733 else 11066 else
7734 xlinux_first_failure=yes 11067 $as_echo "$as_me: failed program was:" >&5
7735 fi 11068 sed 's/^/| /' conftest.$ac_ext >&5
7736 rm -f core conftest.err conftest.$ac_objext \ 11069
7737 conftest$ac_exeext conftest.$ac_ext 11070 xlinux_first_failure=yes
11071 fi
11072
11073 rm -rf conftest.dSYM
11074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11075 conftest$ac_exeext conftest.$ac_ext
7738 if test "${xlinux_first_failure}" = "yes"; then 11076 if test "${xlinux_first_failure}" = "yes"; then
7739 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" 11077 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7740 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" 11078 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
7741 OLD_CPPFLAGS="$CPPFLAGS" 11079 OLD_CPPFLAGS="$CPPFLAGS"
7742 OLD_LIBS="$LIBS" 11080 OLD_LIBS="$LIBS"
7743 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" 11081 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
7744 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" 11082 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7745 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" 11083 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7746 LIBS="$LIBS -b i486-linuxaout" 11084 LIBS="$LIBS -b i486-linuxaout"
7747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11085 cat >conftest.$ac_ext <<_ACEOF
11086 /* confdefs.h. */
11087 _ACEOF
11088 cat confdefs.h >>conftest.$ac_ext
11089 cat >>conftest.$ac_ext <<_ACEOF
7748 /* end confdefs.h. */ 11090 /* end confdefs.h. */
7749 11091
7750 int 11092 int
7751 main () 11093 main ()
7752 { 11094 {
7753 XOpenDisplay ("foo"); 11095 XOpenDisplay ("foo");
7754 ; 11096 ;
7755 return 0; 11097 return 0;
7756 } 11098 }
7757 _ACEOF 11099 _ACEOF
7758 if ac_fn_c_try_link "$LINENO"; then : 11100 rm -f conftest.$ac_objext conftest$ac_exeext
11101 if { (ac_try="$ac_link"
11102 case "(($ac_try" in
11103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11104 *) ac_try_echo=$ac_try;;
11105 esac
11106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11107 $as_echo "$ac_try_echo") >&5
11108 (eval "$ac_link") 2>conftest.er1
11109 ac_status=$?
11110 grep -v '^ *+' conftest.er1 >conftest.err
11111 rm -f conftest.er1
11112 cat conftest.err >&5
11113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); } && {
11115 test -z "$ac_c_werror_flag" ||
11116 test ! -s conftest.err
11117 } && test -s conftest$ac_exeext && {
11118 test "$cross_compiling" = yes ||
11119 $as_test_x conftest$ac_exeext
11120 }; then
7759 xlinux_second_failure=no 11121 xlinux_second_failure=no
7760 else 11122 else
7761 xlinux_second_failure=yes 11123 $as_echo "$as_me: failed program was:" >&5
7762 fi 11124 sed 's/^/| /' conftest.$ac_ext >&5
7763 rm -f core conftest.err conftest.$ac_objext \ 11125
7764 conftest$ac_exeext conftest.$ac_ext 11126 xlinux_second_failure=yes
11127 fi
11128
11129 rm -rf conftest.dSYM
11130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11131 conftest$ac_exeext conftest.$ac_ext
7765 if test "${xlinux_second_failure}" = "yes"; then 11132 if test "${xlinux_second_failure}" = "yes"; then
7766 # If we get the same failure with -b, there is no use adding -b. 11133 # If we get the same failure with -b, there is no use adding -b.
7767 # So take it out. This plays safe. 11134 # So take it out. This plays safe.
7768 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" 11135 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
7769 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" 11136 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7770 CPPFLAGS="$OLD_CPPFLAGS" 11137 CPPFLAGS="$OLD_CPPFLAGS"
7771 LIBS="$OLD_LIBS" 11138 LIBS="$OLD_LIBS"
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11139 { $as_echo "$as_me:$LINENO: result: no" >&5
7773 $as_echo "no" >&6; } 11140 $as_echo "no" >&6; }
7774 else 11141 else
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11142 { $as_echo "$as_me:$LINENO: result: yes" >&5
7776 $as_echo "yes" >&6; } 11143 $as_echo "yes" >&6; }
7777 fi 11144 fi
7778 else 11145 else
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11146 { $as_echo "$as_me:$LINENO: result: no" >&5
7780 $as_echo "no" >&6; } 11147 $as_echo "no" >&6; }
7781 fi 11148 fi
7782 fi 11149 fi
7783 11150
7784 # Reportedly, some broken Solaris systems have XKBlib.h but are missing 11151 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7785 # header files included from there. 11152 # header files included from there.
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5 11153 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
7787 $as_echo_n "checking for Xkb... " >&6; } 11154 $as_echo_n "checking for Xkb... " >&6; }
7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11155 cat >conftest.$ac_ext <<_ACEOF
11156 /* confdefs.h. */
11157 _ACEOF
11158 cat confdefs.h >>conftest.$ac_ext
11159 cat >>conftest.$ac_ext <<_ACEOF
7789 /* end confdefs.h. */ 11160 /* end confdefs.h. */
7790 #include <X11/Xlib.h> 11161 #include <X11/Xlib.h>
7791 #include <X11/XKBlib.h> 11162 #include <X11/XKBlib.h>
7792 int 11163 int
7793 main () 11164 main ()
7795 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); 11166 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7796 ; 11167 ;
7797 return 0; 11168 return 0;
7798 } 11169 }
7799 _ACEOF 11170 _ACEOF
7800 if ac_fn_c_try_link "$LINENO"; then : 11171 rm -f conftest.$ac_objext conftest$ac_exeext
11172 if { (ac_try="$ac_link"
11173 case "(($ac_try" in
11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11176 esac
11177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11178 $as_echo "$ac_try_echo") >&5
11179 (eval "$ac_link") 2>conftest.er1
11180 ac_status=$?
11181 grep -v '^ *+' conftest.er1 >conftest.err
11182 rm -f conftest.er1
11183 cat conftest.err >&5
11184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); } && {
11186 test -z "$ac_c_werror_flag" ||
11187 test ! -s conftest.err
11188 } && test -s conftest$ac_exeext && {
11189 test "$cross_compiling" = yes ||
11190 $as_test_x conftest$ac_exeext
11191 }; then
7801 emacs_xkb=yes 11192 emacs_xkb=yes
7802 else 11193 else
7803 emacs_xkb=no 11194 $as_echo "$as_me: failed program was:" >&5
7804 fi 11195 sed 's/^/| /' conftest.$ac_ext >&5
7805 rm -f core conftest.err conftest.$ac_objext \ 11196
7806 conftest$ac_exeext conftest.$ac_ext 11197 emacs_xkb=no
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5 11198 fi
11199
11200 rm -rf conftest.dSYM
11201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11202 conftest$ac_exeext conftest.$ac_ext
11203 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7808 $as_echo "$emacs_xkb" >&6; } 11204 $as_echo "$emacs_xkb" >&6; }
7809 if test $emacs_xkb = yes; then 11205 if test $emacs_xkb = yes; then
7810 11206
7811 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h 11207 cat >>confdefs.h <<\_ACEOF
11208 #define HAVE_XKBGETKEYBOARD 1
11209 _ACEOF
7812 11210
7813 fi 11211 fi
7814 11212
7815 for ac_func in XrmSetDatabase XScreenResourceString \ 11213
11214
11215
11216
11217 for ac_func in XrmSetDatabase XScreenResourceString \
7816 XScreenNumberOfScreen XSetWMProtocols 11218 XScreenNumberOfScreen XSetWMProtocols
7817 do : 11219 do
7818 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11220 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7819 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11221 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7820 eval as_val=\$$as_ac_var 11222 $as_echo_n "checking for $ac_func... " >&6; }
7821 if test "x$as_val" = x""yes; then : 11223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11224 $as_echo_n "(cached) " >&6
11225 else
11226 cat >conftest.$ac_ext <<_ACEOF
11227 /* confdefs.h. */
11228 _ACEOF
11229 cat confdefs.h >>conftest.$ac_ext
11230 cat >>conftest.$ac_ext <<_ACEOF
11231 /* end confdefs.h. */
11232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11234 #define $ac_func innocuous_$ac_func
11235
11236 /* System header to define __stub macros and hopefully few prototypes,
11237 which can conflict with char $ac_func (); below.
11238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11239 <limits.h> exists even on freestanding compilers. */
11240
11241 #ifdef __STDC__
11242 # include <limits.h>
11243 #else
11244 # include <assert.h>
11245 #endif
11246
11247 #undef $ac_func
11248
11249 /* Override any GCC internal prototype to avoid an error.
11250 Use char because int might match the return type of a GCC
11251 builtin and then its argument prototype would still apply. */
11252 #ifdef __cplusplus
11253 extern "C"
11254 #endif
11255 char $ac_func ();
11256 /* The GNU C library defines this for functions which it implements
11257 to always fail with ENOSYS. Some functions are actually named
11258 something starting with __ and the normal name is an alias. */
11259 #if defined __stub_$ac_func || defined __stub___$ac_func
11260 choke me
11261 #endif
11262
11263 int
11264 main ()
11265 {
11266 return $ac_func ();
11267 ;
11268 return 0;
11269 }
11270 _ACEOF
11271 rm -f conftest.$ac_objext conftest$ac_exeext
11272 if { (ac_try="$ac_link"
11273 case "(($ac_try" in
11274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275 *) ac_try_echo=$ac_try;;
11276 esac
11277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11278 $as_echo "$ac_try_echo") >&5
11279 (eval "$ac_link") 2>conftest.er1
11280 ac_status=$?
11281 grep -v '^ *+' conftest.er1 >conftest.err
11282 rm -f conftest.er1
11283 cat conftest.err >&5
11284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); } && {
11286 test -z "$ac_c_werror_flag" ||
11287 test ! -s conftest.err
11288 } && test -s conftest$ac_exeext && {
11289 test "$cross_compiling" = yes ||
11290 $as_test_x conftest$ac_exeext
11291 }; then
11292 eval "$as_ac_var=yes"
11293 else
11294 $as_echo "$as_me: failed program was:" >&5
11295 sed 's/^/| /' conftest.$ac_ext >&5
11296
11297 eval "$as_ac_var=no"
11298 fi
11299
11300 rm -rf conftest.dSYM
11301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11302 conftest$ac_exeext conftest.$ac_ext
11303 fi
11304 ac_res=`eval 'as_val=${'$as_ac_var'}
11305 $as_echo "$as_val"'`
11306 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11307 $as_echo "$ac_res" >&6; }
11308 if test `eval 'as_val=${'$as_ac_var'}
11309 $as_echo "$as_val"'` = yes; then
7822 cat >>confdefs.h <<_ACEOF 11310 cat >>confdefs.h <<_ACEOF
7823 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11311 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7824 _ACEOF 11312 _ACEOF
7825 11313
7826 fi 11314 fi
7827 done 11315 done
7828 11316
7829 fi 11317 fi
7830 11318
7831 if test "${window_system}" = "x11"; then 11319 if test "${window_system}" = "x11"; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5 11320 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
7833 $as_echo_n "checking X11 version 6... " >&6; } 11321 $as_echo_n "checking X11 version 6... " >&6; }
7834 if test "${emacs_cv_x11_version_6+set}" = set; then : 11322 if test "${emacs_cv_x11_version_6+set}" = set; then
7835 $as_echo_n "(cached) " >&6 11323 $as_echo_n "(cached) " >&6
7836 else 11324 else
7837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11325 cat >conftest.$ac_ext <<_ACEOF
11326 /* confdefs.h. */
11327 _ACEOF
11328 cat confdefs.h >>conftest.$ac_ext
11329 cat >>conftest.$ac_ext <<_ACEOF
7838 /* end confdefs.h. */ 11330 /* end confdefs.h. */
7839 #include <X11/Xlib.h> 11331 #include <X11/Xlib.h>
7840 int 11332 int
7841 main () 11333 main ()
7842 { 11334 {
7846 11338
7847 ; 11339 ;
7848 return 0; 11340 return 0;
7849 } 11341 }
7850 _ACEOF 11342 _ACEOF
7851 if ac_fn_c_try_link "$LINENO"; then : 11343 rm -f conftest.$ac_objext conftest$ac_exeext
11344 if { (ac_try="$ac_link"
11345 case "(($ac_try" in
11346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11347 *) ac_try_echo=$ac_try;;
11348 esac
11349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11350 $as_echo "$ac_try_echo") >&5
11351 (eval "$ac_link") 2>conftest.er1
11352 ac_status=$?
11353 grep -v '^ *+' conftest.er1 >conftest.err
11354 rm -f conftest.er1
11355 cat conftest.err >&5
11356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); } && {
11358 test -z "$ac_c_werror_flag" ||
11359 test ! -s conftest.err
11360 } && test -s conftest$ac_exeext && {
11361 test "$cross_compiling" = yes ||
11362 $as_test_x conftest$ac_exeext
11363 }; then
7852 emacs_cv_x11_version_6=yes 11364 emacs_cv_x11_version_6=yes
7853 else 11365 else
7854 emacs_cv_x11_version_6=no 11366 $as_echo "$as_me: failed program was:" >&5
7855 fi 11367 sed 's/^/| /' conftest.$ac_ext >&5
7856 rm -f core conftest.err conftest.$ac_objext \ 11368
7857 conftest$ac_exeext conftest.$ac_ext 11369 emacs_cv_x11_version_6=no
11370 fi
11371
11372 rm -rf conftest.dSYM
11373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11374 conftest$ac_exeext conftest.$ac_ext
7858 fi 11375 fi
7859 11376
7860 if test $emacs_cv_x11_version_6 = yes; then 11377 if test $emacs_cv_x11_version_6 = yes; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5 11378 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
7862 $as_echo "6 or newer" >&6; } 11379 $as_echo "6 or newer" >&6; }
7863 11380
7864 $as_echo "#define HAVE_X11R6 1" >>confdefs.h 11381 cat >>confdefs.h <<\_ACEOF
11382 #define HAVE_X11R6 1
11383 _ACEOF
7865 11384
7866 else 11385 else
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5 11386 { $as_echo "$as_me:$LINENO: result: before 6" >&5
7868 $as_echo "before 6" >&6; } 11387 $as_echo "before 6" >&6; }
7869 fi 11388 fi
7870 fi 11389 fi
7871 11390
7872 11391
7880 11399
7881 succeeded=no 11400 succeeded=no
7882 11401
7883 # Extract the first word of "pkg-config", so it can be a program name with args. 11402 # Extract the first word of "pkg-config", so it can be a program name with args.
7884 set dummy pkg-config; ac_word=$2 11403 set dummy pkg-config; ac_word=$2
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11404 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7886 $as_echo_n "checking for $ac_word... " >&6; } 11405 $as_echo_n "checking for $ac_word... " >&6; }
7887 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 11406 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7888 $as_echo_n "(cached) " >&6 11407 $as_echo_n "(cached) " >&6
7889 else 11408 else
7890 case $PKG_CONFIG in 11409 case $PKG_CONFIG in
7891 [\\/]* | ?:[\\/]*) 11410 [\\/]* | ?:[\\/]*)
7892 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11411 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7896 for as_dir in $PATH 11415 for as_dir in $PATH
7897 do 11416 do
7898 IFS=$as_save_IFS 11417 IFS=$as_save_IFS
7899 test -z "$as_dir" && as_dir=. 11418 test -z "$as_dir" && as_dir=.
7900 for ac_exec_ext in '' $ac_executable_extensions; do 11419 for ac_exec_ext in '' $ac_executable_extensions; do
7901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7902 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11421 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11422 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7904 break 2 11423 break 2
7905 fi 11424 fi
7906 done 11425 done
7907 done 11426 done
7908 IFS=$as_save_IFS 11427 IFS=$as_save_IFS
7909 11428
7910 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 11429 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7911 ;; 11430 ;;
7912 esac 11431 esac
7913 fi 11432 fi
7914 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11433 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7915 if test -n "$PKG_CONFIG"; then 11434 if test -n "$PKG_CONFIG"; then
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11435 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7917 $as_echo "$PKG_CONFIG" >&6; } 11436 $as_echo "$PKG_CONFIG" >&6; }
7918 else 11437 else
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11438 { $as_echo "$as_me:$LINENO: result: no" >&5
7920 $as_echo "no" >&6; } 11439 $as_echo "no" >&6; }
7921 fi 11440 fi
7922 11441
7923 11442
7924 11443
7925 if test "$PKG_CONFIG" = "no" ; then 11444 if test "$PKG_CONFIG" = "no" ; then
7926 : 11445 :
7927 else 11446 else
7928 PKG_CONFIG_MIN_VERSION=0.9.0 11447 PKG_CONFIG_MIN_VERSION=0.9.0
7929 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 11448 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5 11449 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
7931 $as_echo_n "checking for $RSVG_MODULE... " >&6; } 11450 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
7932 11451
7933 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then 11452 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11453 { $as_echo "$as_me:$LINENO: result: yes" >&5
7935 $as_echo "yes" >&6; } 11454 $as_echo "yes" >&6; }
7936 succeeded=yes 11455 succeeded=yes
7937 11456
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5 11457 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
7939 $as_echo_n "checking RSVG_CFLAGS... " >&6; } 11458 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
7940 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'` 11459 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5 11460 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
7942 $as_echo "$RSVG_CFLAGS" >&6; } 11461 $as_echo "$RSVG_CFLAGS" >&6; }
7943 11462
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5 11463 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
7945 $as_echo_n "checking RSVG_LIBS... " >&6; } 11464 $as_echo_n "checking RSVG_LIBS... " >&6; }
7946 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'` 11465 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5 11466 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
7948 $as_echo "$RSVG_LIBS" >&6; } 11467 $as_echo "$RSVG_LIBS" >&6; }
7949 else 11468 else
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11469 { $as_echo "$as_me:$LINENO: result: no" >&5
7951 $as_echo "no" >&6; } 11470 $as_echo "no" >&6; }
7952 RSVG_CFLAGS="" 11471 RSVG_CFLAGS=""
7953 RSVG_LIBS="" 11472 RSVG_LIBS=""
7954 ## If we have a custom action on failure, don't print errors, but 11473 ## If we have a custom action on failure, don't print errors, but
7955 ## do set a variable so people can do so. 11474 ## do set a variable so people can do so.
7975 11494
7976 11495
7977 if test ".${RSVG_CFLAGS}" != "."; then 11496 if test ".${RSVG_CFLAGS}" != "."; then
7978 HAVE_RSVG=yes 11497 HAVE_RSVG=yes
7979 11498
7980 $as_echo "#define HAVE_RSVG 1" >>confdefs.h 11499 cat >>confdefs.h <<\_ACEOF
11500 #define HAVE_RSVG 1
11501 _ACEOF
7981 11502
7982 CFLAGS="$CFLAGS $RSVG_CFLAGS" 11503 CFLAGS="$CFLAGS $RSVG_CFLAGS"
7983 LIBS="$RSVG_LIBS $LIBS" 11504 LIBS="$RSVG_LIBS $LIBS"
7984 fi 11505 fi
7985 fi 11506 fi
7995 11516
7996 succeeded=no 11517 succeeded=no
7997 11518
7998 # Extract the first word of "pkg-config", so it can be a program name with args. 11519 # Extract the first word of "pkg-config", so it can be a program name with args.
7999 set dummy pkg-config; ac_word=$2 11520 set dummy pkg-config; ac_word=$2
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11521 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8001 $as_echo_n "checking for $ac_word... " >&6; } 11522 $as_echo_n "checking for $ac_word... " >&6; }
8002 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 11523 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8003 $as_echo_n "(cached) " >&6 11524 $as_echo_n "(cached) " >&6
8004 else 11525 else
8005 case $PKG_CONFIG in 11526 case $PKG_CONFIG in
8006 [\\/]* | ?:[\\/]*) 11527 [\\/]* | ?:[\\/]*)
8007 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11528 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8011 for as_dir in $PATH 11532 for as_dir in $PATH
8012 do 11533 do
8013 IFS=$as_save_IFS 11534 IFS=$as_save_IFS
8014 test -z "$as_dir" && as_dir=. 11535 test -z "$as_dir" && as_dir=.
8015 for ac_exec_ext in '' $ac_executable_extensions; do 11536 for ac_exec_ext in '' $ac_executable_extensions; do
8016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8017 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11538 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11539 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8019 break 2 11540 break 2
8020 fi 11541 fi
8021 done 11542 done
8022 done 11543 done
8023 IFS=$as_save_IFS 11544 IFS=$as_save_IFS
8024 11545
8025 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 11546 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8026 ;; 11547 ;;
8027 esac 11548 esac
8028 fi 11549 fi
8029 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11550 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8030 if test -n "$PKG_CONFIG"; then 11551 if test -n "$PKG_CONFIG"; then
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11552 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8032 $as_echo "$PKG_CONFIG" >&6; } 11553 $as_echo "$PKG_CONFIG" >&6; }
8033 else 11554 else
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11555 { $as_echo "$as_me:$LINENO: result: no" >&5
8035 $as_echo "no" >&6; } 11556 $as_echo "no" >&6; }
8036 fi 11557 fi
8037 11558
8038 11559
8039 11560
8040 if test "$PKG_CONFIG" = "no" ; then 11561 if test "$PKG_CONFIG" = "no" ; then
8041 pkg_check_gtk=no 11562 pkg_check_gtk=no
8042 else 11563 else
8043 PKG_CONFIG_MIN_VERSION=0.9.0 11564 PKG_CONFIG_MIN_VERSION=0.9.0
8044 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 11565 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5 11566 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8046 $as_echo_n "checking for $GTK_MODULES... " >&6; } 11567 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8047 11568
8048 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then 11569 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11570 { $as_echo "$as_me:$LINENO: result: yes" >&5
8050 $as_echo "yes" >&6; } 11571 $as_echo "yes" >&6; }
8051 succeeded=yes 11572 succeeded=yes
8052 11573
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5 11574 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8054 $as_echo_n "checking GTK_CFLAGS... " >&6; } 11575 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8055 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'` 11576 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5 11577 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8057 $as_echo "$GTK_CFLAGS" >&6; } 11578 $as_echo "$GTK_CFLAGS" >&6; }
8058 11579
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5 11580 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8060 $as_echo_n "checking GTK_LIBS... " >&6; } 11581 $as_echo_n "checking GTK_LIBS... " >&6; }
8061 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'` 11582 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5 11583 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8063 $as_echo "$GTK_LIBS" >&6; } 11584 $as_echo "$GTK_LIBS" >&6; }
8064 else 11585 else
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11586 { $as_echo "$as_me:$LINENO: result: no" >&5
8066 $as_echo "no" >&6; } 11587 $as_echo "no" >&6; }
8067 GTK_CFLAGS="" 11588 GTK_CFLAGS=""
8068 GTK_LIBS="" 11589 GTK_LIBS=""
8069 ## If we have a custom action on failure, don't print errors, but 11590 ## If we have a custom action on failure, don't print errors, but
8070 ## do set a variable so people can do so. 11591 ## do set a variable so people can do so.
8085 else 11606 else
8086 pkg_check_gtk=no 11607 pkg_check_gtk=no
8087 fi 11608 fi
8088 11609
8089 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then 11610 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8090 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5 11611 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11612 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11613 { (exit 1); exit 1; }; }
8091 fi 11614 fi
8092 fi 11615 fi
8093 11616
8094 11617
8095 if test x"$pkg_check_gtk" = xyes; then 11618 if test x"$pkg_check_gtk" = xyes; then
8098 11621
8099 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS" 11622 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8100 CFLAGS="$CFLAGS $GTK_CFLAGS" 11623 CFLAGS="$CFLAGS $GTK_CFLAGS"
8101 LIBS="$GTK_LIBS $LIBS" 11624 LIBS="$GTK_LIBS $LIBS"
8102 GTK_COMPILES=no 11625 GTK_COMPILES=no
8103 for ac_func in gtk_main 11626
8104 do : 11627 for ac_func in gtk_main
8105 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main" 11628 do
8106 if test "x$ac_cv_func_gtk_main" = x""yes; then : 11629 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11630 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11631 $as_echo_n "checking for $ac_func... " >&6; }
11632 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11633 $as_echo_n "(cached) " >&6
11634 else
11635 cat >conftest.$ac_ext <<_ACEOF
11636 /* confdefs.h. */
11637 _ACEOF
11638 cat confdefs.h >>conftest.$ac_ext
11639 cat >>conftest.$ac_ext <<_ACEOF
11640 /* end confdefs.h. */
11641 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11643 #define $ac_func innocuous_$ac_func
11644
11645 /* System header to define __stub macros and hopefully few prototypes,
11646 which can conflict with char $ac_func (); below.
11647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11648 <limits.h> exists even on freestanding compilers. */
11649
11650 #ifdef __STDC__
11651 # include <limits.h>
11652 #else
11653 # include <assert.h>
11654 #endif
11655
11656 #undef $ac_func
11657
11658 /* Override any GCC internal prototype to avoid an error.
11659 Use char because int might match the return type of a GCC
11660 builtin and then its argument prototype would still apply. */
11661 #ifdef __cplusplus
11662 extern "C"
11663 #endif
11664 char $ac_func ();
11665 /* The GNU C library defines this for functions which it implements
11666 to always fail with ENOSYS. Some functions are actually named
11667 something starting with __ and the normal name is an alias. */
11668 #if defined __stub_$ac_func || defined __stub___$ac_func
11669 choke me
11670 #endif
11671
11672 int
11673 main ()
11674 {
11675 return $ac_func ();
11676 ;
11677 return 0;
11678 }
11679 _ACEOF
11680 rm -f conftest.$ac_objext conftest$ac_exeext
11681 if { (ac_try="$ac_link"
11682 case "(($ac_try" in
11683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684 *) ac_try_echo=$ac_try;;
11685 esac
11686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11687 $as_echo "$ac_try_echo") >&5
11688 (eval "$ac_link") 2>conftest.er1
11689 ac_status=$?
11690 grep -v '^ *+' conftest.er1 >conftest.err
11691 rm -f conftest.er1
11692 cat conftest.err >&5
11693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } && {
11695 test -z "$ac_c_werror_flag" ||
11696 test ! -s conftest.err
11697 } && test -s conftest$ac_exeext && {
11698 test "$cross_compiling" = yes ||
11699 $as_test_x conftest$ac_exeext
11700 }; then
11701 eval "$as_ac_var=yes"
11702 else
11703 $as_echo "$as_me: failed program was:" >&5
11704 sed 's/^/| /' conftest.$ac_ext >&5
11705
11706 eval "$as_ac_var=no"
11707 fi
11708
11709 rm -rf conftest.dSYM
11710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11711 conftest$ac_exeext conftest.$ac_ext
11712 fi
11713 ac_res=`eval 'as_val=${'$as_ac_var'}
11714 $as_echo "$as_val"'`
11715 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11716 $as_echo "$ac_res" >&6; }
11717 if test `eval 'as_val=${'$as_ac_var'}
11718 $as_echo "$as_val"'` = yes; then
8107 cat >>confdefs.h <<_ACEOF 11719 cat >>confdefs.h <<_ACEOF
8108 #define HAVE_GTK_MAIN 1 11720 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8109 _ACEOF 11721 _ACEOF
8110 GTK_COMPILES=yes 11722 GTK_COMPILES=yes
8111 fi 11723 fi
8112 done 11724 done
8113 11725
8114 if test "${GTK_COMPILES}" != "yes"; then 11726 if test "${GTK_COMPILES}" != "yes"; then
8115 if test "$USE_X_TOOLKIT" != "maybe"; then 11727 if test "$USE_X_TOOLKIT" != "maybe"; then
8116 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5; 11728 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11729 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11730 { (exit 1); exit 1; }; };
8117 fi 11731 fi
8118 else 11732 else
8119 HAVE_GTK=yes 11733 HAVE_GTK=yes
8120 11734
8121 $as_echo "#define USE_GTK 1" >>confdefs.h 11735 cat >>confdefs.h <<\_ACEOF
11736 #define USE_GTK 1
11737 _ACEOF
8122 11738
8123 USE_X_TOOLKIT=none 11739 USE_X_TOOLKIT=none
8124 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then 11740 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
8125 : 11741 :
8126 else 11742 else
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with 11743 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
8128 closing open displays. This is no problem if you just use 11744 closing open displays. This is no problem if you just use
8129 one display, but if you use more than one and close one of them 11745 one display, but if you use more than one and close one of them
8130 Emacs may crash." >&5 11746 Emacs may crash." >&5
8131 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with 11747 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8132 closing open displays. This is no problem if you just use 11748 closing open displays. This is no problem if you just use
8144 if test "$with_toolkit_scroll_bars" != no; then 11760 if test "$with_toolkit_scroll_bars" != no; then
8145 with_toolkit_scroll_bars=yes 11761 with_toolkit_scroll_bars=yes
8146 fi 11762 fi
8147 11763
8148 HAVE_GTK_MULTIDISPLAY=no 11764 HAVE_GTK_MULTIDISPLAY=no
8149 for ac_func in gdk_display_open 11765
8150 do : 11766 for ac_func in gdk_display_open
8151 ac_fn_c_check_func "$LINENO" "gdk_display_open" "ac_cv_func_gdk_display_open" 11767 do
8152 if test "x$ac_cv_func_gdk_display_open" = x""yes; then : 11768 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11769 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11770 $as_echo_n "checking for $ac_func... " >&6; }
11771 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11772 $as_echo_n "(cached) " >&6
11773 else
11774 cat >conftest.$ac_ext <<_ACEOF
11775 /* confdefs.h. */
11776 _ACEOF
11777 cat confdefs.h >>conftest.$ac_ext
11778 cat >>conftest.$ac_ext <<_ACEOF
11779 /* end confdefs.h. */
11780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11782 #define $ac_func innocuous_$ac_func
11783
11784 /* System header to define __stub macros and hopefully few prototypes,
11785 which can conflict with char $ac_func (); below.
11786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11787 <limits.h> exists even on freestanding compilers. */
11788
11789 #ifdef __STDC__
11790 # include <limits.h>
11791 #else
11792 # include <assert.h>
11793 #endif
11794
11795 #undef $ac_func
11796
11797 /* Override any GCC internal prototype to avoid an error.
11798 Use char because int might match the return type of a GCC
11799 builtin and then its argument prototype would still apply. */
11800 #ifdef __cplusplus
11801 extern "C"
11802 #endif
11803 char $ac_func ();
11804 /* The GNU C library defines this for functions which it implements
11805 to always fail with ENOSYS. Some functions are actually named
11806 something starting with __ and the normal name is an alias. */
11807 #if defined __stub_$ac_func || defined __stub___$ac_func
11808 choke me
11809 #endif
11810
11811 int
11812 main ()
11813 {
11814 return $ac_func ();
11815 ;
11816 return 0;
11817 }
11818 _ACEOF
11819 rm -f conftest.$ac_objext conftest$ac_exeext
11820 if { (ac_try="$ac_link"
11821 case "(($ac_try" in
11822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823 *) ac_try_echo=$ac_try;;
11824 esac
11825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11826 $as_echo "$ac_try_echo") >&5
11827 (eval "$ac_link") 2>conftest.er1
11828 ac_status=$?
11829 grep -v '^ *+' conftest.er1 >conftest.err
11830 rm -f conftest.er1
11831 cat conftest.err >&5
11832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); } && {
11834 test -z "$ac_c_werror_flag" ||
11835 test ! -s conftest.err
11836 } && test -s conftest$ac_exeext && {
11837 test "$cross_compiling" = yes ||
11838 $as_test_x conftest$ac_exeext
11839 }; then
11840 eval "$as_ac_var=yes"
11841 else
11842 $as_echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11844
11845 eval "$as_ac_var=no"
11846 fi
11847
11848 rm -rf conftest.dSYM
11849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11850 conftest$ac_exeext conftest.$ac_ext
11851 fi
11852 ac_res=`eval 'as_val=${'$as_ac_var'}
11853 $as_echo "$as_val"'`
11854 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11855 $as_echo "$ac_res" >&6; }
11856 if test `eval 'as_val=${'$as_ac_var'}
11857 $as_echo "$as_val"'` = yes; then
8153 cat >>confdefs.h <<_ACEOF 11858 cat >>confdefs.h <<_ACEOF
8154 #define HAVE_GDK_DISPLAY_OPEN 1 11859 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8155 _ACEOF 11860 _ACEOF
8156 HAVE_GTK_MULTIDISPLAY=yes 11861 HAVE_GTK_MULTIDISPLAY=yes
8157 fi 11862 fi
8158 done 11863 done
8159 11864
8160 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then 11865 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
8161 11866
8162 $as_echo "#define HAVE_GTK_MULTIDISPLAY 1" >>confdefs.h 11867 cat >>confdefs.h <<\_ACEOF
11868 #define HAVE_GTK_MULTIDISPLAY 1
11869 _ACEOF
8163 11870
8164 fi 11871 fi
8165 11872
8166 HAVE_GTK_FILE_SELECTION=no 11873 HAVE_GTK_FILE_SELECTION=no
8167 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default 11874 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11875 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11876 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11877 $as_echo_n "(cached) " >&6
11878 else
11879 cat >conftest.$ac_ext <<_ACEOF
11880 /* confdefs.h. */
11881 _ACEOF
11882 cat confdefs.h >>conftest.$ac_ext
11883 cat >>conftest.$ac_ext <<_ACEOF
11884 /* end confdefs.h. */
11885 $ac_includes_default
8168 #include <gtk/gtk.h> 11886 #include <gtk/gtk.h>
8169 " 11887
8170 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then : 11888 int
11889 main ()
11890 {
11891 #ifndef GTK_TYPE_FILE_SELECTION
11892 (void) GTK_TYPE_FILE_SELECTION;
11893 #endif
11894
11895 ;
11896 return 0;
11897 }
11898 _ACEOF
11899 rm -f conftest.$ac_objext
11900 if { (ac_try="$ac_compile"
11901 case "(($ac_try" in
11902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903 *) ac_try_echo=$ac_try;;
11904 esac
11905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11906 $as_echo "$ac_try_echo") >&5
11907 (eval "$ac_compile") 2>conftest.er1
11908 ac_status=$?
11909 grep -v '^ *+' conftest.er1 >conftest.err
11910 rm -f conftest.er1
11911 cat conftest.err >&5
11912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } && {
11914 test -z "$ac_c_werror_flag" ||
11915 test ! -s conftest.err
11916 } && test -s conftest.$ac_objext; then
11917 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11918 else
11919 $as_echo "$as_me: failed program was:" >&5
11920 sed 's/^/| /' conftest.$ac_ext >&5
11921
11922 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11923 fi
11924
11925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11926 fi
11927 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11928 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11929 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
8171 HAVE_GTK_FILE_SELECTION=yes 11930 HAVE_GTK_FILE_SELECTION=yes
8172 else 11931 else
8173 HAVE_GTK_FILE_SELECTION=no 11932 HAVE_GTK_FILE_SELECTION=no
8174 fi 11933 fi
8175 11934
8176 if test "$HAVE_GTK_FILE_SELECTION" = yes; then 11935 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
8177 for ac_func in gtk_file_selection_new 11936
8178 do : 11937 for ac_func in gtk_file_selection_new
8179 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new" 11938 do
8180 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then : 11939 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11940 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11941 $as_echo_n "checking for $ac_func... " >&6; }
11942 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11943 $as_echo_n "(cached) " >&6
11944 else
11945 cat >conftest.$ac_ext <<_ACEOF
11946 /* confdefs.h. */
11947 _ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h. */
11951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11953 #define $ac_func innocuous_$ac_func
11954
11955 /* System header to define __stub macros and hopefully few prototypes,
11956 which can conflict with char $ac_func (); below.
11957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11958 <limits.h> exists even on freestanding compilers. */
11959
11960 #ifdef __STDC__
11961 # include <limits.h>
11962 #else
11963 # include <assert.h>
11964 #endif
11965
11966 #undef $ac_func
11967
11968 /* Override any GCC internal prototype to avoid an error.
11969 Use char because int might match the return type of a GCC
11970 builtin and then its argument prototype would still apply. */
11971 #ifdef __cplusplus
11972 extern "C"
11973 #endif
11974 char $ac_func ();
11975 /* The GNU C library defines this for functions which it implements
11976 to always fail with ENOSYS. Some functions are actually named
11977 something starting with __ and the normal name is an alias. */
11978 #if defined __stub_$ac_func || defined __stub___$ac_func
11979 choke me
11980 #endif
11981
11982 int
11983 main ()
11984 {
11985 return $ac_func ();
11986 ;
11987 return 0;
11988 }
11989 _ACEOF
11990 rm -f conftest.$ac_objext conftest$ac_exeext
11991 if { (ac_try="$ac_link"
11992 case "(($ac_try" in
11993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994 *) ac_try_echo=$ac_try;;
11995 esac
11996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11997 $as_echo "$ac_try_echo") >&5
11998 (eval "$ac_link") 2>conftest.er1
11999 ac_status=$?
12000 grep -v '^ *+' conftest.er1 >conftest.err
12001 rm -f conftest.er1
12002 cat conftest.err >&5
12003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } && {
12005 test -z "$ac_c_werror_flag" ||
12006 test ! -s conftest.err
12007 } && test -s conftest$ac_exeext && {
12008 test "$cross_compiling" = yes ||
12009 $as_test_x conftest$ac_exeext
12010 }; then
12011 eval "$as_ac_var=yes"
12012 else
12013 $as_echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12015
12016 eval "$as_ac_var=no"
12017 fi
12018
12019 rm -rf conftest.dSYM
12020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12021 conftest$ac_exeext conftest.$ac_ext
12022 fi
12023 ac_res=`eval 'as_val=${'$as_ac_var'}
12024 $as_echo "$as_val"'`
12025 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12026 $as_echo "$ac_res" >&6; }
12027 if test `eval 'as_val=${'$as_ac_var'}
12028 $as_echo "$as_val"'` = yes; then
8181 cat >>confdefs.h <<_ACEOF 12029 cat >>confdefs.h <<_ACEOF
8182 #define HAVE_GTK_FILE_SELECTION_NEW 1 12030 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8183 _ACEOF 12031 _ACEOF
8184 HAVE_GTK_FILE_SELECTION=yes 12032 HAVE_GTK_FILE_SELECTION=yes
8185 else 12033 else
8186 HAVE_GTK_FILE_SELECTION=no 12034 HAVE_GTK_FILE_SELECTION=no
8187 fi 12035 fi
8188 done 12036 done
8189 12037
8190 fi 12038 fi
8191 12039
8192 HAVE_GTK_FILE_CHOOSER=no 12040 HAVE_GTK_FILE_CHOOSER=no
8193 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_CHOOSER" "ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" "$ac_includes_default 12041 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12042 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12043 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12044 $as_echo_n "(cached) " >&6
12045 else
12046 cat >conftest.$ac_ext <<_ACEOF
12047 /* confdefs.h. */
12048 _ACEOF
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h. */
12052 $ac_includes_default
8194 #include <gtk/gtk.h> 12053 #include <gtk/gtk.h>
8195 " 12054
8196 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x""yes; then : 12055 int
12056 main ()
12057 {
12058 #ifndef GTK_TYPE_FILE_CHOOSER
12059 (void) GTK_TYPE_FILE_CHOOSER;
12060 #endif
12061
12062 ;
12063 return 0;
12064 }
12065 _ACEOF
12066 rm -f conftest.$ac_objext
12067 if { (ac_try="$ac_compile"
12068 case "(($ac_try" in
12069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070 *) ac_try_echo=$ac_try;;
12071 esac
12072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12073 $as_echo "$ac_try_echo") >&5
12074 (eval "$ac_compile") 2>conftest.er1
12075 ac_status=$?
12076 grep -v '^ *+' conftest.er1 >conftest.err
12077 rm -f conftest.er1
12078 cat conftest.err >&5
12079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); } && {
12081 test -z "$ac_c_werror_flag" ||
12082 test ! -s conftest.err
12083 } && test -s conftest.$ac_objext; then
12084 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12085 else
12086 $as_echo "$as_me: failed program was:" >&5
12087 sed 's/^/| /' conftest.$ac_ext >&5
12088
12089 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12090 fi
12091
12092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12093 fi
12094 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12095 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12096 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
8197 HAVE_GTK_FILE_CHOOSER=yes 12097 HAVE_GTK_FILE_CHOOSER=yes
8198 else 12098 else
8199 HAVE_GTK_FILE_CHOOSER=no 12099 HAVE_GTK_FILE_CHOOSER=no
8200 fi 12100 fi
8201 12101
8202 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then 12102 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8203 for ac_func in gtk_file_chooser_dialog_new 12103
8204 do : 12104 for ac_func in gtk_file_chooser_dialog_new
8205 ac_fn_c_check_func "$LINENO" "gtk_file_chooser_dialog_new" "ac_cv_func_gtk_file_chooser_dialog_new" 12105 do
8206 if test "x$ac_cv_func_gtk_file_chooser_dialog_new" = x""yes; then : 12106 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12107 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12108 $as_echo_n "checking for $ac_func... " >&6; }
12109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12110 $as_echo_n "(cached) " >&6
12111 else
12112 cat >conftest.$ac_ext <<_ACEOF
12113 /* confdefs.h. */
12114 _ACEOF
12115 cat confdefs.h >>conftest.$ac_ext
12116 cat >>conftest.$ac_ext <<_ACEOF
12117 /* end confdefs.h. */
12118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12120 #define $ac_func innocuous_$ac_func
12121
12122 /* System header to define __stub macros and hopefully few prototypes,
12123 which can conflict with char $ac_func (); below.
12124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12125 <limits.h> exists even on freestanding compilers. */
12126
12127 #ifdef __STDC__
12128 # include <limits.h>
12129 #else
12130 # include <assert.h>
12131 #endif
12132
12133 #undef $ac_func
12134
12135 /* Override any GCC internal prototype to avoid an error.
12136 Use char because int might match the return type of a GCC
12137 builtin and then its argument prototype would still apply. */
12138 #ifdef __cplusplus
12139 extern "C"
12140 #endif
12141 char $ac_func ();
12142 /* The GNU C library defines this for functions which it implements
12143 to always fail with ENOSYS. Some functions are actually named
12144 something starting with __ and the normal name is an alias. */
12145 #if defined __stub_$ac_func || defined __stub___$ac_func
12146 choke me
12147 #endif
12148
12149 int
12150 main ()
12151 {
12152 return $ac_func ();
12153 ;
12154 return 0;
12155 }
12156 _ACEOF
12157 rm -f conftest.$ac_objext conftest$ac_exeext
12158 if { (ac_try="$ac_link"
12159 case "(($ac_try" in
12160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12161 *) ac_try_echo=$ac_try;;
12162 esac
12163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12164 $as_echo "$ac_try_echo") >&5
12165 (eval "$ac_link") 2>conftest.er1
12166 ac_status=$?
12167 grep -v '^ *+' conftest.er1 >conftest.err
12168 rm -f conftest.er1
12169 cat conftest.err >&5
12170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); } && {
12172 test -z "$ac_c_werror_flag" ||
12173 test ! -s conftest.err
12174 } && test -s conftest$ac_exeext && {
12175 test "$cross_compiling" = yes ||
12176 $as_test_x conftest$ac_exeext
12177 }; then
12178 eval "$as_ac_var=yes"
12179 else
12180 $as_echo "$as_me: failed program was:" >&5
12181 sed 's/^/| /' conftest.$ac_ext >&5
12182
12183 eval "$as_ac_var=no"
12184 fi
12185
12186 rm -rf conftest.dSYM
12187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12188 conftest$ac_exeext conftest.$ac_ext
12189 fi
12190 ac_res=`eval 'as_val=${'$as_ac_var'}
12191 $as_echo "$as_val"'`
12192 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12193 $as_echo "$ac_res" >&6; }
12194 if test `eval 'as_val=${'$as_ac_var'}
12195 $as_echo "$as_val"'` = yes; then
8207 cat >>confdefs.h <<_ACEOF 12196 cat >>confdefs.h <<_ACEOF
8208 #define HAVE_GTK_FILE_CHOOSER_DIALOG_NEW 1 12197 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8209 _ACEOF 12198 _ACEOF
8210 HAVE_GTK_FILE_CHOOSER=yes 12199 HAVE_GTK_FILE_CHOOSER=yes
8211 else 12200 else
8212 HAVE_GTK_FILE_CHOOSER=no 12201 HAVE_GTK_FILE_CHOOSER=no
8213 fi 12202 fi
8216 fi 12205 fi
8217 12206
8218 if test "$HAVE_GTK_FILE_SELECTION" = yes \ 12207 if test "$HAVE_GTK_FILE_SELECTION" = yes \
8219 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then 12208 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8220 12209
8221 $as_echo "#define HAVE_GTK_FILE_BOTH 1" >>confdefs.h 12210 cat >>confdefs.h <<\_ACEOF
12211 #define HAVE_GTK_FILE_BOTH 1
12212 _ACEOF
8222 12213
8223 fi 12214 fi
8224 12215
8225 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then 12216 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8226 HAVE_GTK_AND_PTHREAD=no 12217 HAVE_GTK_AND_PTHREAD=no
8227 for ac_header in pthread.h 12218
8228 do : 12219 for ac_header in pthread.h
8229 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 12220 do
8230 if test "x$ac_cv_header_pthread_h" = x""yes; then : 12221 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12223 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12224 $as_echo_n "checking for $ac_header... " >&6; }
12225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12226 $as_echo_n "(cached) " >&6
12227 fi
12228 ac_res=`eval 'as_val=${'$as_ac_Header'}
12229 $as_echo "$as_val"'`
12230 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12231 $as_echo "$ac_res" >&6; }
12232 else
12233 # Is the header compilable?
12234 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12235 $as_echo_n "checking $ac_header usability... " >&6; }
12236 cat >conftest.$ac_ext <<_ACEOF
12237 /* confdefs.h. */
12238 _ACEOF
12239 cat confdefs.h >>conftest.$ac_ext
12240 cat >>conftest.$ac_ext <<_ACEOF
12241 /* end confdefs.h. */
12242 $ac_includes_default
12243 #include <$ac_header>
12244 _ACEOF
12245 rm -f conftest.$ac_objext
12246 if { (ac_try="$ac_compile"
12247 case "(($ac_try" in
12248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12249 *) ac_try_echo=$ac_try;;
12250 esac
12251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12252 $as_echo "$ac_try_echo") >&5
12253 (eval "$ac_compile") 2>conftest.er1
12254 ac_status=$?
12255 grep -v '^ *+' conftest.er1 >conftest.err
12256 rm -f conftest.er1
12257 cat conftest.err >&5
12258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); } && {
12260 test -z "$ac_c_werror_flag" ||
12261 test ! -s conftest.err
12262 } && test -s conftest.$ac_objext; then
12263 ac_header_compiler=yes
12264 else
12265 $as_echo "$as_me: failed program was:" >&5
12266 sed 's/^/| /' conftest.$ac_ext >&5
12267
12268 ac_header_compiler=no
12269 fi
12270
12271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12272 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12273 $as_echo "$ac_header_compiler" >&6; }
12274
12275 # Is the header present?
12276 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12277 $as_echo_n "checking $ac_header presence... " >&6; }
12278 cat >conftest.$ac_ext <<_ACEOF
12279 /* confdefs.h. */
12280 _ACEOF
12281 cat confdefs.h >>conftest.$ac_ext
12282 cat >>conftest.$ac_ext <<_ACEOF
12283 /* end confdefs.h. */
12284 #include <$ac_header>
12285 _ACEOF
12286 if { (ac_try="$ac_cpp conftest.$ac_ext"
12287 case "(($ac_try" in
12288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12289 *) ac_try_echo=$ac_try;;
12290 esac
12291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12292 $as_echo "$ac_try_echo") >&5
12293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12294 ac_status=$?
12295 grep -v '^ *+' conftest.er1 >conftest.err
12296 rm -f conftest.er1
12297 cat conftest.err >&5
12298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); } >/dev/null && {
12300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12301 test ! -s conftest.err
12302 }; then
12303 ac_header_preproc=yes
12304 else
12305 $as_echo "$as_me: failed program was:" >&5
12306 sed 's/^/| /' conftest.$ac_ext >&5
12307
12308 ac_header_preproc=no
12309 fi
12310
12311 rm -f conftest.err conftest.$ac_ext
12312 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12313 $as_echo "$ac_header_preproc" >&6; }
12314
12315 # So? What about this header?
12316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12317 yes:no: )
12318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12319 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12321 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12322 ac_header_preproc=yes
12323 ;;
12324 no:yes:* )
12325 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12326 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12327 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12328 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12330 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12332 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12334 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12336 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12337
12338 ;;
12339 esac
12340 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12341 $as_echo_n "checking for $ac_header... " >&6; }
12342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12343 $as_echo_n "(cached) " >&6
12344 else
12345 eval "$as_ac_Header=\$ac_header_preproc"
12346 fi
12347 ac_res=`eval 'as_val=${'$as_ac_Header'}
12348 $as_echo "$as_val"'`
12349 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12350 $as_echo "$ac_res" >&6; }
12351
12352 fi
12353 if test `eval 'as_val=${'$as_ac_Header'}
12354 $as_echo "$as_val"'` = yes; then
8231 cat >>confdefs.h <<_ACEOF 12355 cat >>confdefs.h <<_ACEOF
8232 #define HAVE_PTHREAD_H 1 12356 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8233 _ACEOF 12357 _ACEOF
8234 12358
8235 fi 12359 fi
8236 12360
8237 done 12361 done
8238 12362
8239 if test "$ac_cv_header_pthread_h"; then 12363 if test "$ac_cv_header_pthread_h"; then
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5 12364 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
8241 $as_echo_n "checking for pthread_self in -lpthread... " >&6; } 12365 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
8242 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then : 12366 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
8243 $as_echo_n "(cached) " >&6 12367 $as_echo_n "(cached) " >&6
8244 else 12368 else
8245 ac_check_lib_save_LIBS=$LIBS 12369 ac_check_lib_save_LIBS=$LIBS
8246 LIBS="-lpthread $LIBS" 12370 LIBS="-lpthread $LIBS"
8247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12371 cat >conftest.$ac_ext <<_ACEOF
12372 /* confdefs.h. */
12373 _ACEOF
12374 cat confdefs.h >>conftest.$ac_ext
12375 cat >>conftest.$ac_ext <<_ACEOF
8248 /* end confdefs.h. */ 12376 /* end confdefs.h. */
8249 12377
8250 /* Override any GCC internal prototype to avoid an error. 12378 /* Override any GCC internal prototype to avoid an error.
8251 Use char because int might match the return type of a GCC 12379 Use char because int might match the return type of a GCC
8252 builtin and then its argument prototype would still apply. */ 12380 builtin and then its argument prototype would still apply. */
8260 return pthread_self (); 12388 return pthread_self ();
8261 ; 12389 ;
8262 return 0; 12390 return 0;
8263 } 12391 }
8264 _ACEOF 12392 _ACEOF
8265 if ac_fn_c_try_link "$LINENO"; then : 12393 rm -f conftest.$ac_objext conftest$ac_exeext
12394 if { (ac_try="$ac_link"
12395 case "(($ac_try" in
12396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397 *) ac_try_echo=$ac_try;;
12398 esac
12399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12400 $as_echo "$ac_try_echo") >&5
12401 (eval "$ac_link") 2>conftest.er1
12402 ac_status=$?
12403 grep -v '^ *+' conftest.er1 >conftest.err
12404 rm -f conftest.er1
12405 cat conftest.err >&5
12406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } && {
12408 test -z "$ac_c_werror_flag" ||
12409 test ! -s conftest.err
12410 } && test -s conftest$ac_exeext && {
12411 test "$cross_compiling" = yes ||
12412 $as_test_x conftest$ac_exeext
12413 }; then
8266 ac_cv_lib_pthread_pthread_self=yes 12414 ac_cv_lib_pthread_pthread_self=yes
8267 else 12415 else
8268 ac_cv_lib_pthread_pthread_self=no 12416 $as_echo "$as_me: failed program was:" >&5
8269 fi 12417 sed 's/^/| /' conftest.$ac_ext >&5
8270 rm -f core conftest.err conftest.$ac_objext \ 12418
8271 conftest$ac_exeext conftest.$ac_ext 12419 ac_cv_lib_pthread_pthread_self=no
12420 fi
12421
12422 rm -rf conftest.dSYM
12423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12424 conftest$ac_exeext conftest.$ac_ext
8272 LIBS=$ac_check_lib_save_LIBS 12425 LIBS=$ac_check_lib_save_LIBS
8273 fi 12426 fi
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5 12427 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
8275 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; } 12428 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
8276 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then : 12429 if test $ac_cv_lib_pthread_pthread_self = yes; then
8277 HAVE_GTK_AND_PTHREAD=yes 12430 HAVE_GTK_AND_PTHREAD=yes
8278 fi 12431 fi
8279 12432
8280 fi 12433 fi
8281 if test "$HAVE_GTK_AND_PTHREAD" = yes; then 12434 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
8282 case "${canonical}" in 12435 case "${canonical}" in
8283 *-hpux*) ;; 12436 *-hpux*) ;;
8284 *) GTK_LIBS="$GTK_LIBS -lpthread" ;; 12437 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
8285 esac 12438 esac
8286 12439
8287 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h 12440 cat >>confdefs.h <<\_ACEOF
12441 #define HAVE_GTK_AND_PTHREAD 1
12442 _ACEOF
8288 12443
8289 fi 12444 fi
8290 fi 12445 fi
8291 fi 12446 fi
8292 12447
8295 12450
8296 succeeded=no 12451 succeeded=no
8297 12452
8298 # Extract the first word of "pkg-config", so it can be a program name with args. 12453 # Extract the first word of "pkg-config", so it can be a program name with args.
8299 set dummy pkg-config; ac_word=$2 12454 set dummy pkg-config; ac_word=$2
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12455 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8301 $as_echo_n "checking for $ac_word... " >&6; } 12456 $as_echo_n "checking for $ac_word... " >&6; }
8302 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 12457 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8303 $as_echo_n "(cached) " >&6 12458 $as_echo_n "(cached) " >&6
8304 else 12459 else
8305 case $PKG_CONFIG in 12460 case $PKG_CONFIG in
8306 [\\/]* | ?:[\\/]*) 12461 [\\/]* | ?:[\\/]*)
8307 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12462 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311 for as_dir in $PATH 12466 for as_dir in $PATH
8312 do 12467 do
8313 IFS=$as_save_IFS 12468 IFS=$as_save_IFS
8314 test -z "$as_dir" && as_dir=. 12469 test -z "$as_dir" && as_dir=.
8315 for ac_exec_ext in '' $ac_executable_extensions; do 12470 for ac_exec_ext in '' $ac_executable_extensions; do
8316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8317 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12472 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12473 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8319 break 2 12474 break 2
8320 fi 12475 fi
8321 done 12476 done
8322 done 12477 done
8323 IFS=$as_save_IFS 12478 IFS=$as_save_IFS
8324 12479
8325 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 12480 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8326 ;; 12481 ;;
8327 esac 12482 esac
8328 fi 12483 fi
8329 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12484 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8330 if test -n "$PKG_CONFIG"; then 12485 if test -n "$PKG_CONFIG"; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12486 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8332 $as_echo "$PKG_CONFIG" >&6; } 12487 $as_echo "$PKG_CONFIG" >&6; }
8333 else 12488 else
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12489 { $as_echo "$as_me:$LINENO: result: no" >&5
8335 $as_echo "no" >&6; } 12490 $as_echo "no" >&6; }
8336 fi 12491 fi
8337 12492
8338 12493
8339 12494
8340 if test "$PKG_CONFIG" = "no" ; then 12495 if test "$PKG_CONFIG" = "no" ; then
8341 HAVE_DBUS=no 12496 HAVE_DBUS=no
8342 else 12497 else
8343 PKG_CONFIG_MIN_VERSION=0.9.0 12498 PKG_CONFIG_MIN_VERSION=0.9.0
8344 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 12499 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5 12500 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
8346 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; } 12501 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
8347 12502
8348 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then 12503 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12504 { $as_echo "$as_me:$LINENO: result: yes" >&5
8350 $as_echo "yes" >&6; } 12505 $as_echo "yes" >&6; }
8351 succeeded=yes 12506 succeeded=yes
8352 12507
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5 12508 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
8354 $as_echo_n "checking DBUS_CFLAGS... " >&6; } 12509 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
8355 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` 12510 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5 12511 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
8357 $as_echo "$DBUS_CFLAGS" >&6; } 12512 $as_echo "$DBUS_CFLAGS" >&6; }
8358 12513
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5 12514 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
8360 $as_echo_n "checking DBUS_LIBS... " >&6; } 12515 $as_echo_n "checking DBUS_LIBS... " >&6; }
8361 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` 12516 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5 12517 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
8363 $as_echo "$DBUS_LIBS" >&6; } 12518 $as_echo "$DBUS_LIBS" >&6; }
8364 else 12519 else
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12520 { $as_echo "$as_me:$LINENO: result: no" >&5
8366 $as_echo "no" >&6; } 12521 $as_echo "no" >&6; }
8367 DBUS_CFLAGS="" 12522 DBUS_CFLAGS=""
8368 DBUS_LIBS="" 12523 DBUS_LIBS=""
8369 ## If we have a custom action on failure, don't print errors, but 12524 ## If we have a custom action on failure, don't print errors, but
8370 ## do set a variable so people can do so. 12525 ## do set a variable so people can do so.
8387 fi 12542 fi
8388 12543
8389 if test "$HAVE_DBUS" = yes; then 12544 if test "$HAVE_DBUS" = yes; then
8390 LIBS="$LIBS $DBUS_LIBS" 12545 LIBS="$LIBS $DBUS_LIBS"
8391 12546
8392 $as_echo "#define HAVE_DBUS 1" >>confdefs.h 12547 cat >>confdefs.h <<\_ACEOF
8393 12548 #define HAVE_DBUS 1
8394 for ac_func in dbus_watch_get_unix_fd 12549 _ACEOF
8395 do : 12550
8396 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd" 12551
8397 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then : 12552 for ac_func in dbus_watch_get_unix_fd
12553 do
12554 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12555 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12556 $as_echo_n "checking for $ac_func... " >&6; }
12557 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12558 $as_echo_n "(cached) " >&6
12559 else
12560 cat >conftest.$ac_ext <<_ACEOF
12561 /* confdefs.h. */
12562 _ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h. */
12566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12568 #define $ac_func innocuous_$ac_func
12569
12570 /* System header to define __stub macros and hopefully few prototypes,
12571 which can conflict with char $ac_func (); below.
12572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12573 <limits.h> exists even on freestanding compilers. */
12574
12575 #ifdef __STDC__
12576 # include <limits.h>
12577 #else
12578 # include <assert.h>
12579 #endif
12580
12581 #undef $ac_func
12582
12583 /* Override any GCC internal prototype to avoid an error.
12584 Use char because int might match the return type of a GCC
12585 builtin and then its argument prototype would still apply. */
12586 #ifdef __cplusplus
12587 extern "C"
12588 #endif
12589 char $ac_func ();
12590 /* The GNU C library defines this for functions which it implements
12591 to always fail with ENOSYS. Some functions are actually named
12592 something starting with __ and the normal name is an alias. */
12593 #if defined __stub_$ac_func || defined __stub___$ac_func
12594 choke me
12595 #endif
12596
12597 int
12598 main ()
12599 {
12600 return $ac_func ();
12601 ;
12602 return 0;
12603 }
12604 _ACEOF
12605 rm -f conftest.$ac_objext conftest$ac_exeext
12606 if { (ac_try="$ac_link"
12607 case "(($ac_try" in
12608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12609 *) ac_try_echo=$ac_try;;
12610 esac
12611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12612 $as_echo "$ac_try_echo") >&5
12613 (eval "$ac_link") 2>conftest.er1
12614 ac_status=$?
12615 grep -v '^ *+' conftest.er1 >conftest.err
12616 rm -f conftest.er1
12617 cat conftest.err >&5
12618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); } && {
12620 test -z "$ac_c_werror_flag" ||
12621 test ! -s conftest.err
12622 } && test -s conftest$ac_exeext && {
12623 test "$cross_compiling" = yes ||
12624 $as_test_x conftest$ac_exeext
12625 }; then
12626 eval "$as_ac_var=yes"
12627 else
12628 $as_echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.$ac_ext >&5
12630
12631 eval "$as_ac_var=no"
12632 fi
12633
12634 rm -rf conftest.dSYM
12635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12636 conftest$ac_exeext conftest.$ac_ext
12637 fi
12638 ac_res=`eval 'as_val=${'$as_ac_var'}
12639 $as_echo "$as_val"'`
12640 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12641 $as_echo "$ac_res" >&6; }
12642 if test `eval 'as_val=${'$as_ac_var'}
12643 $as_echo "$as_val"'` = yes; then
8398 cat >>confdefs.h <<_ACEOF 12644 cat >>confdefs.h <<_ACEOF
8399 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1 12645 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8400 _ACEOF 12646 _ACEOF
8401 12647
8402 fi 12648 fi
8403 done 12649 done
8404 12650
8410 12656
8411 succeeded=no 12657 succeeded=no
8412 12658
8413 # Extract the first word of "pkg-config", so it can be a program name with args. 12659 # Extract the first word of "pkg-config", so it can be a program name with args.
8414 set dummy pkg-config; ac_word=$2 12660 set dummy pkg-config; ac_word=$2
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12661 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8416 $as_echo_n "checking for $ac_word... " >&6; } 12662 $as_echo_n "checking for $ac_word... " >&6; }
8417 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 12663 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8418 $as_echo_n "(cached) " >&6 12664 $as_echo_n "(cached) " >&6
8419 else 12665 else
8420 case $PKG_CONFIG in 12666 case $PKG_CONFIG in
8421 [\\/]* | ?:[\\/]*) 12667 [\\/]* | ?:[\\/]*)
8422 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12668 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8426 for as_dir in $PATH 12672 for as_dir in $PATH
8427 do 12673 do
8428 IFS=$as_save_IFS 12674 IFS=$as_save_IFS
8429 test -z "$as_dir" && as_dir=. 12675 test -z "$as_dir" && as_dir=.
8430 for ac_exec_ext in '' $ac_executable_extensions; do 12676 for ac_exec_ext in '' $ac_executable_extensions; do
8431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8432 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12678 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12679 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8434 break 2 12680 break 2
8435 fi 12681 fi
8436 done 12682 done
8437 done 12683 done
8438 IFS=$as_save_IFS 12684 IFS=$as_save_IFS
8439 12685
8440 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 12686 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8441 ;; 12687 ;;
8442 esac 12688 esac
8443 fi 12689 fi
8444 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12690 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8445 if test -n "$PKG_CONFIG"; then 12691 if test -n "$PKG_CONFIG"; then
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12692 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8447 $as_echo "$PKG_CONFIG" >&6; } 12693 $as_echo "$PKG_CONFIG" >&6; }
8448 else 12694 else
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12695 { $as_echo "$as_me:$LINENO: result: no" >&5
8450 $as_echo "no" >&6; } 12696 $as_echo "no" >&6; }
8451 fi 12697 fi
8452 12698
8453 12699
8454 12700
8455 if test "$PKG_CONFIG" = "no" ; then 12701 if test "$PKG_CONFIG" = "no" ; then
8456 HAVE_GCONF=no 12702 HAVE_GCONF=no
8457 else 12703 else
8458 PKG_CONFIG_MIN_VERSION=0.9.0 12704 PKG_CONFIG_MIN_VERSION=0.9.0
8459 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 12705 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5 12706 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
8461 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; } 12707 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
8462 12708
8463 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then 12709 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12710 { $as_echo "$as_me:$LINENO: result: yes" >&5
8465 $as_echo "yes" >&6; } 12711 $as_echo "yes" >&6; }
8466 succeeded=yes 12712 succeeded=yes
8467 12713
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5 12714 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
8469 $as_echo_n "checking GCONF_CFLAGS... " >&6; } 12715 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
8470 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` 12716 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5 12717 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
8472 $as_echo "$GCONF_CFLAGS" >&6; } 12718 $as_echo "$GCONF_CFLAGS" >&6; }
8473 12719
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5 12720 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
8475 $as_echo_n "checking GCONF_LIBS... " >&6; } 12721 $as_echo_n "checking GCONF_LIBS... " >&6; }
8476 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` 12722 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5 12723 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
8478 $as_echo "$GCONF_LIBS" >&6; } 12724 $as_echo "$GCONF_LIBS" >&6; }
8479 else 12725 else
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12726 { $as_echo "$as_me:$LINENO: result: no" >&5
8481 $as_echo "no" >&6; } 12727 $as_echo "no" >&6; }
8482 GCONF_CFLAGS="" 12728 GCONF_CFLAGS=""
8483 GCONF_LIBS="" 12729 GCONF_LIBS=""
8484 ## If we have a custom action on failure, don't print errors, but 12730 ## If we have a custom action on failure, don't print errors, but
8485 ## do set a variable so people can do so. 12731 ## do set a variable so people can do so.
8501 HAVE_GCONF=no 12747 HAVE_GCONF=no
8502 fi 12748 fi
8503 12749
8504 if test "$HAVE_GCONF" = yes; then 12750 if test "$HAVE_GCONF" = yes; then
8505 12751
8506 $as_echo "#define HAVE_GCONF 1" >>confdefs.h 12752 cat >>confdefs.h <<\_ACEOF
12753 #define HAVE_GCONF 1
12754 _ACEOF
8507 12755
8508 fi 12756 fi
8509 fi 12757 fi
8510 12758
8511 HAVE_XAW3D=no 12759 HAVE_XAW3D=no
8512 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then 12760 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
8513 if test "$with_xaw3d" != no; then 12761 if test "$with_xaw3d" != no; then
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5 12762 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
8515 $as_echo_n "checking for xaw3d... " >&6; } 12763 $as_echo_n "checking for xaw3d... " >&6; }
8516 if test "${emacs_cv_xaw3d+set}" = set; then : 12764 if test "${emacs_cv_xaw3d+set}" = set; then
8517 $as_echo_n "(cached) " >&6 12765 $as_echo_n "(cached) " >&6
8518 else 12766 else
8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12767 cat >conftest.$ac_ext <<_ACEOF
12768 /* confdefs.h. */
12769 _ACEOF
12770 cat confdefs.h >>conftest.$ac_ext
12771 cat >>conftest.$ac_ext <<_ACEOF
8520 /* end confdefs.h. */ 12772 /* end confdefs.h. */
8521 12773
8522 #include <X11/Intrinsic.h> 12774 #include <X11/Intrinsic.h>
8523 #include <X11/Xaw3d/Simple.h> 12775 #include <X11/Xaw3d/Simple.h>
8524 int 12776 int
8527 12779
8528 ; 12780 ;
8529 return 0; 12781 return 0;
8530 } 12782 }
8531 _ACEOF 12783 _ACEOF
8532 if ac_fn_c_try_link "$LINENO"; then : 12784 rm -f conftest.$ac_objext conftest$ac_exeext
12785 if { (ac_try="$ac_link"
12786 case "(($ac_try" in
12787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12788 *) ac_try_echo=$ac_try;;
12789 esac
12790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12791 $as_echo "$ac_try_echo") >&5
12792 (eval "$ac_link") 2>conftest.er1
12793 ac_status=$?
12794 grep -v '^ *+' conftest.er1 >conftest.err
12795 rm -f conftest.er1
12796 cat conftest.err >&5
12797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } && {
12799 test -z "$ac_c_werror_flag" ||
12800 test ! -s conftest.err
12801 } && test -s conftest$ac_exeext && {
12802 test "$cross_compiling" = yes ||
12803 $as_test_x conftest$ac_exeext
12804 }; then
8533 emacs_cv_xaw3d=yes 12805 emacs_cv_xaw3d=yes
8534 else 12806 else
8535 emacs_cv_xaw3d=no 12807 $as_echo "$as_me: failed program was:" >&5
8536 fi 12808 sed 's/^/| /' conftest.$ac_ext >&5
8537 rm -f core conftest.err conftest.$ac_objext \ 12809
8538 conftest$ac_exeext conftest.$ac_ext 12810 emacs_cv_xaw3d=no
12811 fi
12812
12813 rm -rf conftest.dSYM
12814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12815 conftest$ac_exeext conftest.$ac_ext
8539 fi 12816 fi
8540 12817
8541 else 12818 else
8542 emacs_cv_xaw3d=no 12819 emacs_cv_xaw3d=no
8543 fi 12820 fi
8544 if test $emacs_cv_xaw3d = yes; then 12821 if test $emacs_cv_xaw3d = yes; then
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5 12822 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
8546 $as_echo "yes; using Lucid toolkit" >&6; } 12823 $as_echo "yes; using Lucid toolkit" >&6; }
8547 USE_X_TOOLKIT=LUCID 12824 USE_X_TOOLKIT=LUCID
8548 HAVE_XAW3D=yes 12825 HAVE_XAW3D=yes
8549 12826
8550 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h 12827 cat >>confdefs.h <<\_ACEOF
12828 #define HAVE_XAW3D 1
12829 _ACEOF
8551 12830
8552 else 12831 else
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12832 { $as_echo "$as_me:$LINENO: result: no" >&5
8554 $as_echo "no" >&6; } 12833 $as_echo "no" >&6; }
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5 12834 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
8556 $as_echo_n "checking for libXaw... " >&6; } 12835 $as_echo_n "checking for libXaw... " >&6; }
8557 if test "${emacs_cv_xaw+set}" = set; then : 12836 if test "${emacs_cv_xaw+set}" = set; then
8558 $as_echo_n "(cached) " >&6 12837 $as_echo_n "(cached) " >&6
8559 else 12838 else
8560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12839 cat >conftest.$ac_ext <<_ACEOF
12840 /* confdefs.h. */
12841 _ACEOF
12842 cat confdefs.h >>conftest.$ac_ext
12843 cat >>conftest.$ac_ext <<_ACEOF
8561 /* end confdefs.h. */ 12844 /* end confdefs.h. */
8562 12845
8563 #include <X11/Intrinsic.h> 12846 #include <X11/Intrinsic.h>
8564 #include <X11/Xaw/Simple.h> 12847 #include <X11/Xaw/Simple.h>
8565 int 12848 int
8568 12851
8569 ; 12852 ;
8570 return 0; 12853 return 0;
8571 } 12854 }
8572 _ACEOF 12855 _ACEOF
8573 if ac_fn_c_try_link "$LINENO"; then : 12856 rm -f conftest.$ac_objext conftest$ac_exeext
12857 if { (ac_try="$ac_link"
12858 case "(($ac_try" in
12859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12860 *) ac_try_echo=$ac_try;;
12861 esac
12862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12863 $as_echo "$ac_try_echo") >&5
12864 (eval "$ac_link") 2>conftest.er1
12865 ac_status=$?
12866 grep -v '^ *+' conftest.er1 >conftest.err
12867 rm -f conftest.er1
12868 cat conftest.err >&5
12869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); } && {
12871 test -z "$ac_c_werror_flag" ||
12872 test ! -s conftest.err
12873 } && test -s conftest$ac_exeext && {
12874 test "$cross_compiling" = yes ||
12875 $as_test_x conftest$ac_exeext
12876 }; then
8574 emacs_cv_xaw=yes 12877 emacs_cv_xaw=yes
8575 else 12878 else
8576 emacs_cv_xaw=no 12879 $as_echo "$as_me: failed program was:" >&5
8577 fi 12880 sed 's/^/| /' conftest.$ac_ext >&5
8578 rm -f core conftest.err conftest.$ac_objext \ 12881
8579 conftest$ac_exeext conftest.$ac_ext 12882 emacs_cv_xaw=no
12883 fi
12884
12885 rm -rf conftest.dSYM
12886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12887 conftest$ac_exeext conftest.$ac_ext
8580 fi 12888 fi
8581 12889
8582 if test $emacs_cv_xaw = yes; then 12890 if test $emacs_cv_xaw = yes; then
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5 12891 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
8584 $as_echo "yes; using Lucid toolkit" >&6; } 12892 $as_echo "yes; using Lucid toolkit" >&6; }
8585 USE_X_TOOLKIT=LUCID 12893 USE_X_TOOLKIT=LUCID
8586 elif test x"${USE_X_TOOLKIT}" = xLUCID; then 12894 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
8587 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5 12895 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12896 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12897 { (exit 1); exit 1; }; }
8588 else 12898 else
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5 12899 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
8590 $as_echo "no; do not use toolkit by default" >&6; } 12900 $as_echo "no; do not use toolkit by default" >&6; }
8591 USE_X_TOOLKIT=none 12901 USE_X_TOOLKIT=none
8592 fi 12902 fi
8593 fi 12903 fi
8594 fi 12904 fi
8595 12905
8596 X_TOOLKIT_TYPE=$USE_X_TOOLKIT 12906 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8597 12907
8598 if test "${USE_X_TOOLKIT}" != "none"; then 12908 if test "${USE_X_TOOLKIT}" != "none"; then
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5 12909 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8600 $as_echo_n "checking X11 toolkit version... " >&6; } 12910 $as_echo_n "checking X11 toolkit version... " >&6; }
8601 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then : 12911 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8602 $as_echo_n "(cached) " >&6 12912 $as_echo_n "(cached) " >&6
8603 else 12913 else
8604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12914 cat >conftest.$ac_ext <<_ACEOF
12915 /* confdefs.h. */
12916 _ACEOF
12917 cat confdefs.h >>conftest.$ac_ext
12918 cat >>conftest.$ac_ext <<_ACEOF
8605 /* end confdefs.h. */ 12919 /* end confdefs.h. */
8606 #include <X11/Intrinsic.h> 12920 #include <X11/Intrinsic.h>
8607 int 12921 int
8608 main () 12922 main ()
8609 { 12923 {
8613 12927
8614 ; 12928 ;
8615 return 0; 12929 return 0;
8616 } 12930 }
8617 _ACEOF 12931 _ACEOF
8618 if ac_fn_c_try_link "$LINENO"; then : 12932 rm -f conftest.$ac_objext conftest$ac_exeext
12933 if { (ac_try="$ac_link"
12934 case "(($ac_try" in
12935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12936 *) ac_try_echo=$ac_try;;
12937 esac
12938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12939 $as_echo "$ac_try_echo") >&5
12940 (eval "$ac_link") 2>conftest.er1
12941 ac_status=$?
12942 grep -v '^ *+' conftest.er1 >conftest.err
12943 rm -f conftest.er1
12944 cat conftest.err >&5
12945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); } && {
12947 test -z "$ac_c_werror_flag" ||
12948 test ! -s conftest.err
12949 } && test -s conftest$ac_exeext && {
12950 test "$cross_compiling" = yes ||
12951 $as_test_x conftest$ac_exeext
12952 }; then
8619 emacs_cv_x11_toolkit_version_6=yes 12953 emacs_cv_x11_toolkit_version_6=yes
8620 else 12954 else
8621 emacs_cv_x11_toolkit_version_6=no 12955 $as_echo "$as_me: failed program was:" >&5
8622 fi 12956 sed 's/^/| /' conftest.$ac_ext >&5
8623 rm -f core conftest.err conftest.$ac_objext \ 12957
8624 conftest$ac_exeext conftest.$ac_ext 12958 emacs_cv_x11_toolkit_version_6=no
12959 fi
12960
12961 rm -rf conftest.dSYM
12962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12963 conftest$ac_exeext conftest.$ac_ext
8625 fi 12964 fi
8626 12965
8627 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 12966 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8628 if test $emacs_cv_x11_toolkit_version_6 = yes; then 12967 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5 12968 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
8630 $as_echo "6 or newer" >&6; } 12969 $as_echo "6 or newer" >&6; }
8631 12970
8632 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h 12971 cat >>confdefs.h <<\_ACEOF
12972 #define HAVE_X11XTR6 1
12973 _ACEOF
8633 12974
8634 else 12975 else
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5 12976 { $as_echo "$as_me:$LINENO: result: before 6" >&5
8636 $as_echo "before 6" >&6; } 12977 $as_echo "before 6" >&6; }
8637 fi 12978 fi
8638 12979
8639 OLDLIBS="$LIBS" 12980 OLDLIBS="$LIBS"
8640 if test x$HAVE_X11XTR6 = xyes; then 12981 if test x$HAVE_X11XTR6 = xyes; then
8641 LIBS="-lXt -lSM -lICE $LIBS" 12982 LIBS="-lXt -lSM -lICE $LIBS"
8642 else 12983 else
8643 LIBS="-lXt $LIBS" 12984 LIBS="-lXt $LIBS"
8644 fi 12985 fi
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5 12986
12987 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8646 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; } 12988 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
8647 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then : 12989 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8648 $as_echo_n "(cached) " >&6 12990 $as_echo_n "(cached) " >&6
8649 else 12991 else
8650 ac_check_lib_save_LIBS=$LIBS 12992 ac_check_lib_save_LIBS=$LIBS
8651 LIBS="-lXmu $LIBS" 12993 LIBS="-lXmu $LIBS"
8652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12994 cat >conftest.$ac_ext <<_ACEOF
12995 /* confdefs.h. */
12996 _ACEOF
12997 cat confdefs.h >>conftest.$ac_ext
12998 cat >>conftest.$ac_ext <<_ACEOF
8653 /* end confdefs.h. */ 12999 /* end confdefs.h. */
8654 13000
8655 /* Override any GCC internal prototype to avoid an error. 13001 /* Override any GCC internal prototype to avoid an error.
8656 Use char because int might match the return type of a GCC 13002 Use char because int might match the return type of a GCC
8657 builtin and then its argument prototype would still apply. */ 13003 builtin and then its argument prototype would still apply. */
8665 return XmuConvertStandardSelection (); 13011 return XmuConvertStandardSelection ();
8666 ; 13012 ;
8667 return 0; 13013 return 0;
8668 } 13014 }
8669 _ACEOF 13015 _ACEOF
8670 if ac_fn_c_try_link "$LINENO"; then : 13016 rm -f conftest.$ac_objext conftest$ac_exeext
13017 if { (ac_try="$ac_link"
13018 case "(($ac_try" in
13019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13020 *) ac_try_echo=$ac_try;;
13021 esac
13022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13023 $as_echo "$ac_try_echo") >&5
13024 (eval "$ac_link") 2>conftest.er1
13025 ac_status=$?
13026 grep -v '^ *+' conftest.er1 >conftest.err
13027 rm -f conftest.er1
13028 cat conftest.err >&5
13029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } && {
13031 test -z "$ac_c_werror_flag" ||
13032 test ! -s conftest.err
13033 } && test -s conftest$ac_exeext && {
13034 test "$cross_compiling" = yes ||
13035 $as_test_x conftest$ac_exeext
13036 }; then
8671 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes 13037 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
8672 else 13038 else
8673 ac_cv_lib_Xmu_XmuConvertStandardSelection=no 13039 $as_echo "$as_me: failed program was:" >&5
8674 fi 13040 sed 's/^/| /' conftest.$ac_ext >&5
8675 rm -f core conftest.err conftest.$ac_objext \ 13041
8676 conftest$ac_exeext conftest.$ac_ext 13042 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13043 fi
13044
13045 rm -rf conftest.dSYM
13046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13047 conftest$ac_exeext conftest.$ac_ext
8677 LIBS=$ac_check_lib_save_LIBS 13048 LIBS=$ac_check_lib_save_LIBS
8678 fi 13049 fi
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 13050 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8680 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; } 13051 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
8681 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then : 13052 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8682 cat >>confdefs.h <<_ACEOF 13053 cat >>confdefs.h <<_ACEOF
8683 #define HAVE_LIBXMU 1 13054 #define HAVE_LIBXMU 1
8684 _ACEOF 13055 _ACEOF
8685 13056
8686 LIBS="-lXmu $LIBS" 13057 LIBS="-lXmu $LIBS"
8691 fi 13062 fi
8692 13063
8693 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. 13064 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8694 if test "${HAVE_X11}" = "yes"; then 13065 if test "${HAVE_X11}" = "yes"; then
8695 if test "${USE_X_TOOLKIT}" != "none"; then 13066 if test "${USE_X_TOOLKIT}" != "none"; then
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 13067
13068 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8697 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } 13069 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8698 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then : 13070 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8699 $as_echo_n "(cached) " >&6 13071 $as_echo_n "(cached) " >&6
8700 else 13072 else
8701 ac_check_lib_save_LIBS=$LIBS 13073 ac_check_lib_save_LIBS=$LIBS
8702 LIBS="-lXext $LIBS" 13074 LIBS="-lXext $LIBS"
8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13075 cat >conftest.$ac_ext <<_ACEOF
13076 /* confdefs.h. */
13077 _ACEOF
13078 cat confdefs.h >>conftest.$ac_ext
13079 cat >>conftest.$ac_ext <<_ACEOF
8704 /* end confdefs.h. */ 13080 /* end confdefs.h. */
8705 13081
8706 /* Override any GCC internal prototype to avoid an error. 13082 /* Override any GCC internal prototype to avoid an error.
8707 Use char because int might match the return type of a GCC 13083 Use char because int might match the return type of a GCC
8708 builtin and then its argument prototype would still apply. */ 13084 builtin and then its argument prototype would still apply. */
8716 return XShapeQueryExtension (); 13092 return XShapeQueryExtension ();
8717 ; 13093 ;
8718 return 0; 13094 return 0;
8719 } 13095 }
8720 _ACEOF 13096 _ACEOF
8721 if ac_fn_c_try_link "$LINENO"; then : 13097 rm -f conftest.$ac_objext conftest$ac_exeext
13098 if { (ac_try="$ac_link"
13099 case "(($ac_try" in
13100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13101 *) ac_try_echo=$ac_try;;
13102 esac
13103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13104 $as_echo "$ac_try_echo") >&5
13105 (eval "$ac_link") 2>conftest.er1
13106 ac_status=$?
13107 grep -v '^ *+' conftest.er1 >conftest.err
13108 rm -f conftest.er1
13109 cat conftest.err >&5
13110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); } && {
13112 test -z "$ac_c_werror_flag" ||
13113 test ! -s conftest.err
13114 } && test -s conftest$ac_exeext && {
13115 test "$cross_compiling" = yes ||
13116 $as_test_x conftest$ac_exeext
13117 }; then
8722 ac_cv_lib_Xext_XShapeQueryExtension=yes 13118 ac_cv_lib_Xext_XShapeQueryExtension=yes
8723 else 13119 else
8724 ac_cv_lib_Xext_XShapeQueryExtension=no 13120 $as_echo "$as_me: failed program was:" >&5
8725 fi 13121 sed 's/^/| /' conftest.$ac_ext >&5
8726 rm -f core conftest.err conftest.$ac_objext \ 13122
8727 conftest$ac_exeext conftest.$ac_ext 13123 ac_cv_lib_Xext_XShapeQueryExtension=no
13124 fi
13125
13126 rm -rf conftest.dSYM
13127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13128 conftest$ac_exeext conftest.$ac_ext
8728 LIBS=$ac_check_lib_save_LIBS 13129 LIBS=$ac_check_lib_save_LIBS
8729 fi 13130 fi
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 13131 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8731 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } 13132 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8732 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then : 13133 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8733 cat >>confdefs.h <<_ACEOF 13134 cat >>confdefs.h <<_ACEOF
8734 #define HAVE_LIBXEXT 1 13135 #define HAVE_LIBXEXT 1
8735 _ACEOF 13136 _ACEOF
8736 13137
8737 LIBS="-lXext $LIBS" 13138 LIBS="-lXext $LIBS"
8740 13141
8741 fi 13142 fi
8742 fi 13143 fi
8743 13144
8744 if test "${USE_X_TOOLKIT}" = "MOTIF"; then 13145 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5 13146 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8746 $as_echo_n "checking for Motif version 2.1... " >&6; } 13147 $as_echo_n "checking for Motif version 2.1... " >&6; }
8747 if test "${emacs_cv_motif_version_2_1+set}" = set; then : 13148 if test "${emacs_cv_motif_version_2_1+set}" = set; then
8748 $as_echo_n "(cached) " >&6 13149 $as_echo_n "(cached) " >&6
8749 else 13150 else
8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13151 cat >conftest.$ac_ext <<_ACEOF
13152 /* confdefs.h. */
13153 _ACEOF
13154 cat confdefs.h >>conftest.$ac_ext
13155 cat >>conftest.$ac_ext <<_ACEOF
8751 /* end confdefs.h. */ 13156 /* end confdefs.h. */
8752 #include <Xm/Xm.h> 13157 #include <Xm/Xm.h>
8753 int 13158 int
8754 main () 13159 main ()
8755 { 13160 {
8760 #endif 13165 #endif
8761 ; 13166 ;
8762 return 0; 13167 return 0;
8763 } 13168 }
8764 _ACEOF 13169 _ACEOF
8765 if ac_fn_c_try_compile "$LINENO"; then : 13170 rm -f conftest.$ac_objext
13171 if { (ac_try="$ac_compile"
13172 case "(($ac_try" in
13173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174 *) ac_try_echo=$ac_try;;
13175 esac
13176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13177 $as_echo "$ac_try_echo") >&5
13178 (eval "$ac_compile") 2>conftest.er1
13179 ac_status=$?
13180 grep -v '^ *+' conftest.er1 >conftest.err
13181 rm -f conftest.er1
13182 cat conftest.err >&5
13183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); } && {
13185 test -z "$ac_c_werror_flag" ||
13186 test ! -s conftest.err
13187 } && test -s conftest.$ac_objext; then
8766 emacs_cv_motif_version_2_1=yes 13188 emacs_cv_motif_version_2_1=yes
8767 else 13189 else
8768 emacs_cv_motif_version_2_1=no 13190 $as_echo "$as_me: failed program was:" >&5
8769 fi 13191 sed 's/^/| /' conftest.$ac_ext >&5
13192
13193 emacs_cv_motif_version_2_1=no
13194 fi
13195
8770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8771 fi 13197 fi
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5 13198 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8773 $as_echo "$emacs_cv_motif_version_2_1" >&6; } 13199 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
8774 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 13200 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
8775 if test $emacs_cv_motif_version_2_1 = yes; then 13201 if test $emacs_cv_motif_version_2_1 = yes; then
8776 HAVE_LIBXP=no 13202 HAVE_LIBXP=no
8777 13203
8778 $as_echo "#define HAVE_MOTIF_2_1 1" >>confdefs.h 13204 cat >>confdefs.h <<\_ACEOF
8779 13205 #define HAVE_MOTIF_2_1 1
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5 13206 _ACEOF
13207
13208 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8781 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; } 13209 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
8782 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then : 13210 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8783 $as_echo_n "(cached) " >&6 13211 $as_echo_n "(cached) " >&6
8784 else 13212 else
8785 ac_check_lib_save_LIBS=$LIBS 13213 ac_check_lib_save_LIBS=$LIBS
8786 LIBS="-lXp $LIBS" 13214 LIBS="-lXp $LIBS"
8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13215 cat >conftest.$ac_ext <<_ACEOF
13216 /* confdefs.h. */
13217 _ACEOF
13218 cat confdefs.h >>conftest.$ac_ext
13219 cat >>conftest.$ac_ext <<_ACEOF
8788 /* end confdefs.h. */ 13220 /* end confdefs.h. */
8789 13221
8790 /* Override any GCC internal prototype to avoid an error. 13222 /* Override any GCC internal prototype to avoid an error.
8791 Use char because int might match the return type of a GCC 13223 Use char because int might match the return type of a GCC
8792 builtin and then its argument prototype would still apply. */ 13224 builtin and then its argument prototype would still apply. */
8800 return XpCreateContext (); 13232 return XpCreateContext ();
8801 ; 13233 ;
8802 return 0; 13234 return 0;
8803 } 13235 }
8804 _ACEOF 13236 _ACEOF
8805 if ac_fn_c_try_link "$LINENO"; then : 13237 rm -f conftest.$ac_objext conftest$ac_exeext
13238 if { (ac_try="$ac_link"
13239 case "(($ac_try" in
13240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13241 *) ac_try_echo=$ac_try;;
13242 esac
13243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13244 $as_echo "$ac_try_echo") >&5
13245 (eval "$ac_link") 2>conftest.er1
13246 ac_status=$?
13247 grep -v '^ *+' conftest.er1 >conftest.err
13248 rm -f conftest.er1
13249 cat conftest.err >&5
13250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); } && {
13252 test -z "$ac_c_werror_flag" ||
13253 test ! -s conftest.err
13254 } && test -s conftest$ac_exeext && {
13255 test "$cross_compiling" = yes ||
13256 $as_test_x conftest$ac_exeext
13257 }; then
8806 ac_cv_lib_Xp_XpCreateContext=yes 13258 ac_cv_lib_Xp_XpCreateContext=yes
8807 else 13259 else
8808 ac_cv_lib_Xp_XpCreateContext=no 13260 $as_echo "$as_me: failed program was:" >&5
8809 fi 13261 sed 's/^/| /' conftest.$ac_ext >&5
8810 rm -f core conftest.err conftest.$ac_objext \ 13262
8811 conftest$ac_exeext conftest.$ac_ext 13263 ac_cv_lib_Xp_XpCreateContext=no
13264 fi
13265
13266 rm -rf conftest.dSYM
13267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13268 conftest$ac_exeext conftest.$ac_ext
8812 LIBS=$ac_check_lib_save_LIBS 13269 LIBS=$ac_check_lib_save_LIBS
8813 fi 13270 fi
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5 13271 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8815 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; } 13272 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
8816 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then : 13273 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
8817 HAVE_LIBXP=yes 13274 HAVE_LIBXP=yes
8818 fi 13275 fi
8819 13276
8820 if test ${HAVE_LIBXP} = yes; then 13277 if test ${HAVE_LIBXP} = yes; then
8821 13278
8822 $as_echo "#define HAVE_LIBXP 1" >>confdefs.h 13279 cat >>confdefs.h <<\_ACEOF
13280 #define HAVE_LIBXP 1
13281 _ACEOF
8823 13282
8824 fi 13283 fi
8825 else 13284 else
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5 13285 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
8827 $as_echo_n "checking for LessTif where some systems put it... " >&6; } 13286 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
8828 if test "${emacs_cv_lesstif+set}" = set; then : 13287 if test "${emacs_cv_lesstif+set}" = set; then
8829 $as_echo_n "(cached) " >&6 13288 $as_echo_n "(cached) " >&6
8830 else 13289 else
8831 # We put this in CFLAGS temporarily to precede other -I options 13290 # We put this in CFLAGS temporarily to precede other -I options
8832 # that might be in CFLAGS temporarily. 13291 # that might be in CFLAGS temporarily.
8833 # We put this in CPPFLAGS where it precedes the other -I options. 13292 # We put this in CPPFLAGS where it precedes the other -I options.
8834 OLD_CPPFLAGS=$CPPFLAGS 13293 OLD_CPPFLAGS=$CPPFLAGS
8835 OLD_CFLAGS=$CFLAGS 13294 OLD_CFLAGS=$CFLAGS
8836 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" 13295 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8837 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" 13296 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13297 cat >conftest.$ac_ext <<_ACEOF
13298 /* confdefs.h. */
13299 _ACEOF
13300 cat confdefs.h >>conftest.$ac_ext
13301 cat >>conftest.$ac_ext <<_ACEOF
8839 /* end confdefs.h. */ 13302 /* end confdefs.h. */
8840 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h> 13303 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8841 int 13304 int
8842 main () 13305 main ()
8843 { 13306 {
8844 int x = 5; 13307 int x = 5;
8845 ; 13308 ;
8846 return 0; 13309 return 0;
8847 } 13310 }
8848 _ACEOF 13311 _ACEOF
8849 if ac_fn_c_try_compile "$LINENO"; then : 13312 rm -f conftest.$ac_objext
13313 if { (ac_try="$ac_compile"
13314 case "(($ac_try" in
13315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316 *) ac_try_echo=$ac_try;;
13317 esac
13318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13319 $as_echo "$ac_try_echo") >&5
13320 (eval "$ac_compile") 2>conftest.er1
13321 ac_status=$?
13322 grep -v '^ *+' conftest.er1 >conftest.err
13323 rm -f conftest.er1
13324 cat conftest.err >&5
13325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); } && {
13327 test -z "$ac_c_werror_flag" ||
13328 test ! -s conftest.err
13329 } && test -s conftest.$ac_objext; then
8850 emacs_cv_lesstif=yes 13330 emacs_cv_lesstif=yes
8851 else 13331 else
8852 emacs_cv_lesstif=no 13332 $as_echo "$as_me: failed program was:" >&5
8853 fi 13333 sed 's/^/| /' conftest.$ac_ext >&5
13334
13335 emacs_cv_lesstif=no
13336 fi
13337
8854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8855 fi 13339 fi
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5 13340 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
8857 $as_echo "$emacs_cv_lesstif" >&6; } 13341 $as_echo "$emacs_cv_lesstif" >&6; }
8858 if test $emacs_cv_lesstif = yes; then 13342 if test $emacs_cv_lesstif = yes; then
8859 # Make sure this -I option remains in CPPFLAGS after it is set 13343 # Make sure this -I option remains in CPPFLAGS after it is set
8860 # back to REAL_CPPFLAGS. 13344 # back to REAL_CPPFLAGS.
8861 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not 13345 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8869 fi 13353 fi
8870 fi 13354 fi
8871 fi 13355 fi
8872 13356
8873 13357
13358
8874 USE_TOOLKIT_SCROLL_BARS=no 13359 USE_TOOLKIT_SCROLL_BARS=no
8875 if test "${with_toolkit_scroll_bars}" != "no"; then 13360 if test "${with_toolkit_scroll_bars}" != "no"; then
8876 if test "${USE_X_TOOLKIT}" != "none"; then 13361 if test "${USE_X_TOOLKIT}" != "none"; then
8877 if test "${USE_X_TOOLKIT}" = "MOTIF"; then 13362 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8878 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h 13363 cat >>confdefs.h <<\_ACEOF
13364 #define USE_TOOLKIT_SCROLL_BARS 1
13365 _ACEOF
8879 13366
8880 HAVE_XAW3D=no 13367 HAVE_XAW3D=no
8881 USE_TOOLKIT_SCROLL_BARS=yes 13368 USE_TOOLKIT_SCROLL_BARS=yes
8882 elif test "${HAVE_XAW3D}" = "yes"; then 13369 elif test "${HAVE_XAW3D}" = "yes"; then
8883 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h 13370 cat >>confdefs.h <<\_ACEOF
13371 #define USE_TOOLKIT_SCROLL_BARS 1
13372 _ACEOF
8884 13373
8885 USE_TOOLKIT_SCROLL_BARS=yes 13374 USE_TOOLKIT_SCROLL_BARS=yes
8886 fi 13375 fi
8887 elif test "${HAVE_GTK}" = "yes"; then 13376 elif test "${HAVE_GTK}" = "yes"; then
8888 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h 13377 cat >>confdefs.h <<\_ACEOF
13378 #define USE_TOOLKIT_SCROLL_BARS 1
13379 _ACEOF
8889 13380
8890 USE_TOOLKIT_SCROLL_BARS=yes 13381 USE_TOOLKIT_SCROLL_BARS=yes
8891 elif test "${HAVE_NS}" = "yes"; then 13382 elif test "${HAVE_NS}" = "yes"; then
8892 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h 13383 cat >>confdefs.h <<\_ACEOF
13384 #define USE_TOOLKIT_SCROLL_BARS 1
13385 _ACEOF
8893 13386
8894 USE_TOOLKIT_SCROLL_BARS=yes 13387 USE_TOOLKIT_SCROLL_BARS=yes
8895 fi 13388 fi
8896 fi 13389 fi
8897 13390
8898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13391 cat >conftest.$ac_ext <<_ACEOF
13392 /* confdefs.h. */
13393 _ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h. */ 13396 /* end confdefs.h. */
8900 13397
8901 #include <X11/Xlib.h> 13398 #include <X11/Xlib.h>
8902 #include <X11/Xresource.h> 13399 #include <X11/Xresource.h>
8903 int 13400 int
8906 XIMProc callback; 13403 XIMProc callback;
8907 ; 13404 ;
8908 return 0; 13405 return 0;
8909 } 13406 }
8910 _ACEOF 13407 _ACEOF
8911 if ac_fn_c_try_compile "$LINENO"; then : 13408 rm -f conftest.$ac_objext
13409 if { (ac_try="$ac_compile"
13410 case "(($ac_try" in
13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13413 esac
13414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13415 $as_echo "$ac_try_echo") >&5
13416 (eval "$ac_compile") 2>conftest.er1
13417 ac_status=$?
13418 grep -v '^ *+' conftest.er1 >conftest.err
13419 rm -f conftest.er1
13420 cat conftest.err >&5
13421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } && {
13423 test -z "$ac_c_werror_flag" ||
13424 test ! -s conftest.err
13425 } && test -s conftest.$ac_objext; then
8912 HAVE_XIM=yes 13426 HAVE_XIM=yes
8913 13427
8914 $as_echo "#define HAVE_XIM 1" >>confdefs.h 13428 cat >>confdefs.h <<\_ACEOF
8915 13429 #define HAVE_XIM 1
8916 else 13430 _ACEOF
8917 HAVE_XIM=no 13431
8918 fi 13432 else
13433 $as_echo "$as_me: failed program was:" >&5
13434 sed 's/^/| /' conftest.$ac_ext >&5
13435
13436 HAVE_XIM=no
13437 fi
13438
8919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8920 13440
8921 13441
8922 if test "${with_xim}" != "no"; then 13442 if test "${with_xim}" != "no"; then
8923 13443
8924 $as_echo "#define USE_XIM 1" >>confdefs.h 13444 cat >>confdefs.h <<\_ACEOF
13445 #define USE_XIM 1
13446 _ACEOF
8925 13447
8926 fi 13448 fi
8927 13449
8928 13450
8929 if test "${HAVE_XIM}" != "no"; then 13451 if test "${HAVE_XIM}" != "no"; then
8930 late_CFLAGS=$CFLAGS 13452 late_CFLAGS=$CFLAGS
8931 if test "$GCC" = yes; then 13453 if test "$GCC" = yes; then
8932 CFLAGS="$CFLAGS --pedantic-errors" 13454 CFLAGS="$CFLAGS --pedantic-errors"
8933 fi 13455 fi
8934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13456 cat >conftest.$ac_ext <<_ACEOF
13457 /* confdefs.h. */
13458 _ACEOF
13459 cat confdefs.h >>conftest.$ac_ext
13460 cat >>conftest.$ac_ext <<_ACEOF
8935 /* end confdefs.h. */ 13461 /* end confdefs.h. */
8936 13462
8937 #include <X11/Xlib.h> 13463 #include <X11/Xlib.h>
8938 #include <X11/Xresource.h> 13464 #include <X11/Xresource.h>
8939 int 13465 int
8955 client_data); 13481 client_data);
8956 ; 13482 ;
8957 return 0; 13483 return 0;
8958 } 13484 }
8959 _ACEOF 13485 _ACEOF
8960 if ac_fn_c_try_compile "$LINENO"; then : 13486 rm -f conftest.$ac_objext
13487 if { (ac_try="$ac_compile"
13488 case "(($ac_try" in
13489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13490 *) ac_try_echo=$ac_try;;
13491 esac
13492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13493 $as_echo "$ac_try_echo") >&5
13494 (eval "$ac_compile") 2>conftest.er1
13495 ac_status=$?
13496 grep -v '^ *+' conftest.er1 >conftest.err
13497 rm -f conftest.er1
13498 cat conftest.err >&5
13499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); } && {
13501 test -z "$ac_c_werror_flag" ||
13502 test ! -s conftest.err
13503 } && test -s conftest.$ac_objext; then
8961 emacs_cv_arg6_star=yes 13504 emacs_cv_arg6_star=yes
8962 fi 13505 else
13506 $as_echo "$as_me: failed program was:" >&5
13507 sed 's/^/| /' conftest.$ac_ext >&5
13508
13509
13510 fi
13511
8963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8964 if test "$emacs_cv_arg6_star" = yes; then 13513
8965 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h 13514 if test "$emacs_cv_arg6_star" = yes; then
13515 cat >>confdefs.h <<\_ACEOF
13516 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13517 _ACEOF
8966 13518
8967 else 13519 else
8968 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h 13520 cat >>confdefs.h <<\_ACEOF
13521 #define XRegisterIMInstantiateCallback_arg6 XPointer
13522 _ACEOF
8969 13523
8970 fi 13524 fi
8971 CFLAGS=$late_CFLAGS 13525 CFLAGS=$late_CFLAGS
8972 fi 13526 fi
8973 13527
8980 13534
8981 succeeded=no 13535 succeeded=no
8982 13536
8983 # Extract the first word of "pkg-config", so it can be a program name with args. 13537 # Extract the first word of "pkg-config", so it can be a program name with args.
8984 set dummy pkg-config; ac_word=$2 13538 set dummy pkg-config; ac_word=$2
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13539 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8986 $as_echo_n "checking for $ac_word... " >&6; } 13540 $as_echo_n "checking for $ac_word... " >&6; }
8987 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 13541 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8988 $as_echo_n "(cached) " >&6 13542 $as_echo_n "(cached) " >&6
8989 else 13543 else
8990 case $PKG_CONFIG in 13544 case $PKG_CONFIG in
8991 [\\/]* | ?:[\\/]*) 13545 [\\/]* | ?:[\\/]*)
8992 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13546 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8996 for as_dir in $PATH 13550 for as_dir in $PATH
8997 do 13551 do
8998 IFS=$as_save_IFS 13552 IFS=$as_save_IFS
8999 test -z "$as_dir" && as_dir=. 13553 test -z "$as_dir" && as_dir=.
9000 for ac_exec_ext in '' $ac_executable_extensions; do 13554 for ac_exec_ext in '' $ac_executable_extensions; do
9001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9002 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13556 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13557 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9004 break 2 13558 break 2
9005 fi 13559 fi
9006 done 13560 done
9007 done 13561 done
9008 IFS=$as_save_IFS 13562 IFS=$as_save_IFS
9009 13563
9010 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 13564 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9011 ;; 13565 ;;
9012 esac 13566 esac
9013 fi 13567 fi
9014 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13568 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9015 if test -n "$PKG_CONFIG"; then 13569 if test -n "$PKG_CONFIG"; then
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13570 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9017 $as_echo "$PKG_CONFIG" >&6; } 13571 $as_echo "$PKG_CONFIG" >&6; }
9018 else 13572 else
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13573 { $as_echo "$as_me:$LINENO: result: no" >&5
9020 $as_echo "no" >&6; } 13574 $as_echo "no" >&6; }
9021 fi 13575 fi
9022 13576
9023 13577
9024 13578
9025 if test "$PKG_CONFIG" = "no" ; then 13579 if test "$PKG_CONFIG" = "no" ; then
9026 HAVE_FC=no 13580 HAVE_FC=no
9027 else 13581 else
9028 PKG_CONFIG_MIN_VERSION=0.9.0 13582 PKG_CONFIG_MIN_VERSION=0.9.0
9029 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 13583 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5 13584 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
9031 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; } 13585 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9032 13586
9033 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then 13587 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13588 { $as_echo "$as_me:$LINENO: result: yes" >&5
9035 $as_echo "yes" >&6; } 13589 $as_echo "yes" >&6; }
9036 succeeded=yes 13590 succeeded=yes
9037 13591
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5 13592 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
9039 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; } 13593 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9040 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` 13594 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5 13595 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
9042 $as_echo "$FONTCONFIG_CFLAGS" >&6; } 13596 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
9043 13597
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5 13598 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
9045 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; } 13599 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9046 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` 13600 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5 13601 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
9048 $as_echo "$FONTCONFIG_LIBS" >&6; } 13602 $as_echo "$FONTCONFIG_LIBS" >&6; }
9049 else 13603 else
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13604 { $as_echo "$as_me:$LINENO: result: no" >&5
9051 $as_echo "no" >&6; } 13605 $as_echo "no" >&6; }
9052 FONTCONFIG_CFLAGS="" 13606 FONTCONFIG_CFLAGS=""
9053 FONTCONFIG_LIBS="" 13607 FONTCONFIG_LIBS=""
9054 ## If we have a custom action on failure, don't print errors, but 13608 ## If we have a custom action on failure, don't print errors, but
9055 ## do set a variable so people can do so. 13609 ## do set a variable so people can do so.
9082 13636
9083 succeeded=no 13637 succeeded=no
9084 13638
9085 # Extract the first word of "pkg-config", so it can be a program name with args. 13639 # Extract the first word of "pkg-config", so it can be a program name with args.
9086 set dummy pkg-config; ac_word=$2 13640 set dummy pkg-config; ac_word=$2
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13641 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9088 $as_echo_n "checking for $ac_word... " >&6; } 13642 $as_echo_n "checking for $ac_word... " >&6; }
9089 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 13643 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9090 $as_echo_n "(cached) " >&6 13644 $as_echo_n "(cached) " >&6
9091 else 13645 else
9092 case $PKG_CONFIG in 13646 case $PKG_CONFIG in
9093 [\\/]* | ?:[\\/]*) 13647 [\\/]* | ?:[\\/]*)
9094 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13648 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9098 for as_dir in $PATH 13652 for as_dir in $PATH
9099 do 13653 do
9100 IFS=$as_save_IFS 13654 IFS=$as_save_IFS
9101 test -z "$as_dir" && as_dir=. 13655 test -z "$as_dir" && as_dir=.
9102 for ac_exec_ext in '' $ac_executable_extensions; do 13656 for ac_exec_ext in '' $ac_executable_extensions; do
9103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9104 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13658 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13659 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9106 break 2 13660 break 2
9107 fi 13661 fi
9108 done 13662 done
9109 done 13663 done
9110 IFS=$as_save_IFS 13664 IFS=$as_save_IFS
9111 13665
9112 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 13666 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9113 ;; 13667 ;;
9114 esac 13668 esac
9115 fi 13669 fi
9116 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13670 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9117 if test -n "$PKG_CONFIG"; then 13671 if test -n "$PKG_CONFIG"; then
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13672 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9119 $as_echo "$PKG_CONFIG" >&6; } 13673 $as_echo "$PKG_CONFIG" >&6; }
9120 else 13674 else
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13675 { $as_echo "$as_me:$LINENO: result: no" >&5
9122 $as_echo "no" >&6; } 13676 $as_echo "no" >&6; }
9123 fi 13677 fi
9124 13678
9125 13679
9126 13680
9127 if test "$PKG_CONFIG" = "no" ; then 13681 if test "$PKG_CONFIG" = "no" ; then
9128 HAVE_XFT=no 13682 HAVE_XFT=no
9129 else 13683 else
9130 PKG_CONFIG_MIN_VERSION=0.9.0 13684 PKG_CONFIG_MIN_VERSION=0.9.0
9131 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 13685 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5 13686 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
9133 $as_echo_n "checking for xft >= 0.13.0... " >&6; } 13687 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
9134 13688
9135 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then 13689 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13690 { $as_echo "$as_me:$LINENO: result: yes" >&5
9137 $as_echo "yes" >&6; } 13691 $as_echo "yes" >&6; }
9138 succeeded=yes 13692 succeeded=yes
9139 13693
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5 13694 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
9141 $as_echo_n "checking XFT_CFLAGS... " >&6; } 13695 $as_echo_n "checking XFT_CFLAGS... " >&6; }
9142 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'` 13696 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5 13697 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
9144 $as_echo "$XFT_CFLAGS" >&6; } 13698 $as_echo "$XFT_CFLAGS" >&6; }
9145 13699
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5 13700 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
9147 $as_echo_n "checking XFT_LIBS... " >&6; } 13701 $as_echo_n "checking XFT_LIBS... " >&6; }
9148 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'` 13702 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5 13703 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
9150 $as_echo "$XFT_LIBS" >&6; } 13704 $as_echo "$XFT_LIBS" >&6; }
9151 else 13705 else
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13706 { $as_echo "$as_me:$LINENO: result: no" >&5
9153 $as_echo "no" >&6; } 13707 $as_echo "no" >&6; }
9154 XFT_CFLAGS="" 13708 XFT_CFLAGS=""
9155 XFT_LIBS="" 13709 XFT_LIBS=""
9156 ## If we have a custom action on failure, don't print errors, but 13710 ## If we have a custom action on failure, don't print errors, but
9157 ## do set a variable so people can do so. 13711 ## do set a variable so people can do so.
9174 fi 13728 fi
9175 13729
9176 ## Because xftfont.c uses XRenderQueryExtension, we also 13730 ## Because xftfont.c uses XRenderQueryExtension, we also
9177 ## need to link to -lXrender. 13731 ## need to link to -lXrender.
9178 HAVE_XRENDER=no 13732 HAVE_XRENDER=no
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5 13733 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
9180 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; } 13734 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
9181 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then : 13735 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
9182 $as_echo_n "(cached) " >&6 13736 $as_echo_n "(cached) " >&6
9183 else 13737 else
9184 ac_check_lib_save_LIBS=$LIBS 13738 ac_check_lib_save_LIBS=$LIBS
9185 LIBS="-lXrender $LIBS" 13739 LIBS="-lXrender $LIBS"
9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13740 cat >conftest.$ac_ext <<_ACEOF
13741 /* confdefs.h. */
13742 _ACEOF
13743 cat confdefs.h >>conftest.$ac_ext
13744 cat >>conftest.$ac_ext <<_ACEOF
9187 /* end confdefs.h. */ 13745 /* end confdefs.h. */
9188 13746
9189 /* Override any GCC internal prototype to avoid an error. 13747 /* Override any GCC internal prototype to avoid an error.
9190 Use char because int might match the return type of a GCC 13748 Use char because int might match the return type of a GCC
9191 builtin and then its argument prototype would still apply. */ 13749 builtin and then its argument prototype would still apply. */
9199 return XRenderQueryExtension (); 13757 return XRenderQueryExtension ();
9200 ; 13758 ;
9201 return 0; 13759 return 0;
9202 } 13760 }
9203 _ACEOF 13761 _ACEOF
9204 if ac_fn_c_try_link "$LINENO"; then : 13762 rm -f conftest.$ac_objext conftest$ac_exeext
13763 if { (ac_try="$ac_link"
13764 case "(($ac_try" in
13765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13766 *) ac_try_echo=$ac_try;;
13767 esac
13768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13769 $as_echo "$ac_try_echo") >&5
13770 (eval "$ac_link") 2>conftest.er1
13771 ac_status=$?
13772 grep -v '^ *+' conftest.er1 >conftest.err
13773 rm -f conftest.er1
13774 cat conftest.err >&5
13775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); } && {
13777 test -z "$ac_c_werror_flag" ||
13778 test ! -s conftest.err
13779 } && test -s conftest$ac_exeext && {
13780 test "$cross_compiling" = yes ||
13781 $as_test_x conftest$ac_exeext
13782 }; then
9205 ac_cv_lib_Xrender_XRenderQueryExtension=yes 13783 ac_cv_lib_Xrender_XRenderQueryExtension=yes
9206 else 13784 else
9207 ac_cv_lib_Xrender_XRenderQueryExtension=no 13785 $as_echo "$as_me: failed program was:" >&5
9208 fi 13786 sed 's/^/| /' conftest.$ac_ext >&5
9209 rm -f core conftest.err conftest.$ac_objext \ 13787
9210 conftest$ac_exeext conftest.$ac_ext 13788 ac_cv_lib_Xrender_XRenderQueryExtension=no
13789 fi
13790
13791 rm -rf conftest.dSYM
13792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13793 conftest$ac_exeext conftest.$ac_ext
9211 LIBS=$ac_check_lib_save_LIBS 13794 LIBS=$ac_check_lib_save_LIBS
9212 fi 13795 fi
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5 13796 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
9214 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; } 13797 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
9215 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then : 13798 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
9216 HAVE_XRENDER=yes 13799 HAVE_XRENDER=yes
9217 fi 13800 fi
9218 13801
9219 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then 13802 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
9220 OLD_CPPFLAGS="$CPPFLAGS" 13803 OLD_CPPFLAGS="$CPPFLAGS"
9222 OLD_LIBS="$LIBS" 13805 OLD_LIBS="$LIBS"
9223 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS" 13806 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
9224 CFLAGS="$CFLAGS $XFT_CFLAGS" 13807 CFLAGS="$CFLAGS $XFT_CFLAGS"
9225 XFT_LIBS="-lXrender $XFT_LIBS" 13808 XFT_LIBS="-lXrender $XFT_LIBS"
9226 LIBS="$XFT_LIBS $LIBS" 13809 LIBS="$XFT_LIBS $LIBS"
9227 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default" 13810 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
9228 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then : 13811 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5 13812 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13813 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13814 $as_echo_n "(cached) " >&6
13815 fi
13816 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13817 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13818 else
13819 # Is the header compilable?
13820 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13821 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13822 cat >conftest.$ac_ext <<_ACEOF
13823 /* confdefs.h. */
13824 _ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h. */
13828 $ac_includes_default
13829 #include <X11/Xft/Xft.h>
13830 _ACEOF
13831 rm -f conftest.$ac_objext
13832 if { (ac_try="$ac_compile"
13833 case "(($ac_try" in
13834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13835 *) ac_try_echo=$ac_try;;
13836 esac
13837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13838 $as_echo "$ac_try_echo") >&5
13839 (eval "$ac_compile") 2>conftest.er1
13840 ac_status=$?
13841 grep -v '^ *+' conftest.er1 >conftest.err
13842 rm -f conftest.er1
13843 cat conftest.err >&5
13844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); } && {
13846 test -z "$ac_c_werror_flag" ||
13847 test ! -s conftest.err
13848 } && test -s conftest.$ac_objext; then
13849 ac_header_compiler=yes
13850 else
13851 $as_echo "$as_me: failed program was:" >&5
13852 sed 's/^/| /' conftest.$ac_ext >&5
13853
13854 ac_header_compiler=no
13855 fi
13856
13857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13858 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13859 $as_echo "$ac_header_compiler" >&6; }
13860
13861 # Is the header present?
13862 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13863 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13864 cat >conftest.$ac_ext <<_ACEOF
13865 /* confdefs.h. */
13866 _ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h. */
13870 #include <X11/Xft/Xft.h>
13871 _ACEOF
13872 if { (ac_try="$ac_cpp conftest.$ac_ext"
13873 case "(($ac_try" in
13874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13875 *) ac_try_echo=$ac_try;;
13876 esac
13877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13878 $as_echo "$ac_try_echo") >&5
13879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13880 ac_status=$?
13881 grep -v '^ *+' conftest.er1 >conftest.err
13882 rm -f conftest.er1
13883 cat conftest.err >&5
13884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); } >/dev/null && {
13886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13887 test ! -s conftest.err
13888 }; then
13889 ac_header_preproc=yes
13890 else
13891 $as_echo "$as_me: failed program was:" >&5
13892 sed 's/^/| /' conftest.$ac_ext >&5
13893
13894 ac_header_preproc=no
13895 fi
13896
13897 rm -f conftest.err conftest.$ac_ext
13898 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13899 $as_echo "$ac_header_preproc" >&6; }
13900
13901 # So? What about this header?
13902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13903 yes:no: )
13904 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13905 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13906 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13907 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13908 ac_header_preproc=yes
13909 ;;
13910 no:yes:* )
13911 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13912 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13913 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13914 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13915 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13916 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13917 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13918 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13919 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13920 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13921 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13922 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13923
13924 ;;
13925 esac
13926 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13927 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13928 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13929 $as_echo_n "(cached) " >&6
13930 else
13931 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13932 fi
13933 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13934 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13935
13936 fi
13937 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13938 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
9230 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; } 13939 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
9231 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then : 13940 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
9232 $as_echo_n "(cached) " >&6 13941 $as_echo_n "(cached) " >&6
9233 else 13942 else
9234 ac_check_lib_save_LIBS=$LIBS 13943 ac_check_lib_save_LIBS=$LIBS
9235 LIBS="-lXft $XFT_LIBS $LIBS" 13944 LIBS="-lXft $XFT_LIBS $LIBS"
9236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13945 cat >conftest.$ac_ext <<_ACEOF
13946 /* confdefs.h. */
13947 _ACEOF
13948 cat confdefs.h >>conftest.$ac_ext
13949 cat >>conftest.$ac_ext <<_ACEOF
9237 /* end confdefs.h. */ 13950 /* end confdefs.h. */
9238 13951
9239 /* Override any GCC internal prototype to avoid an error. 13952 /* Override any GCC internal prototype to avoid an error.
9240 Use char because int might match the return type of a GCC 13953 Use char because int might match the return type of a GCC
9241 builtin and then its argument prototype would still apply. */ 13954 builtin and then its argument prototype would still apply. */
9249 return XftFontOpen (); 13962 return XftFontOpen ();
9250 ; 13963 ;
9251 return 0; 13964 return 0;
9252 } 13965 }
9253 _ACEOF 13966 _ACEOF
9254 if ac_fn_c_try_link "$LINENO"; then : 13967 rm -f conftest.$ac_objext conftest$ac_exeext
13968 if { (ac_try="$ac_link"
13969 case "(($ac_try" in
13970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13971 *) ac_try_echo=$ac_try;;
13972 esac
13973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13974 $as_echo "$ac_try_echo") >&5
13975 (eval "$ac_link") 2>conftest.er1
13976 ac_status=$?
13977 grep -v '^ *+' conftest.er1 >conftest.err
13978 rm -f conftest.er1
13979 cat conftest.err >&5
13980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); } && {
13982 test -z "$ac_c_werror_flag" ||
13983 test ! -s conftest.err
13984 } && test -s conftest$ac_exeext && {
13985 test "$cross_compiling" = yes ||
13986 $as_test_x conftest$ac_exeext
13987 }; then
9255 ac_cv_lib_Xft_XftFontOpen=yes 13988 ac_cv_lib_Xft_XftFontOpen=yes
9256 else 13989 else
9257 ac_cv_lib_Xft_XftFontOpen=no 13990 $as_echo "$as_me: failed program was:" >&5
9258 fi 13991 sed 's/^/| /' conftest.$ac_ext >&5
9259 rm -f core conftest.err conftest.$ac_objext \ 13992
9260 conftest$ac_exeext conftest.$ac_ext 13993 ac_cv_lib_Xft_XftFontOpen=no
13994 fi
13995
13996 rm -rf conftest.dSYM
13997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13998 conftest$ac_exeext conftest.$ac_ext
9261 LIBS=$ac_check_lib_save_LIBS 13999 LIBS=$ac_check_lib_save_LIBS
9262 fi 14000 fi
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5 14001 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
9264 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; } 14002 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
9265 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then : 14003 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
9266 HAVE_XFT=yes 14004 HAVE_XFT=yes
9267 fi 14005 fi
9268 14006
9269 fi 14007 fi
9270 14008
9271 14009
9272 14010
9273 if test "${HAVE_XFT}" = "yes"; then 14011 if test "${HAVE_XFT}" = "yes"; then
9274 14012
9275 $as_echo "#define HAVE_XFT 1" >>confdefs.h 14013 cat >>confdefs.h <<\_ACEOF
14014 #define HAVE_XFT 1
14015 _ACEOF
9276 14016
9277 14017
9278 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS" 14018 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
9279 else 14019 else
9280 CPPFLAGS="$OLD_CPPFLAGS" 14020 CPPFLAGS="$OLD_CPPFLAGS"
9299 fi 14039 fi
9300 14040
9301 HAVE_LIBOTF=no 14041 HAVE_LIBOTF=no
9302 if test "${HAVE_FREETYPE}" = "yes"; then 14042 if test "${HAVE_FREETYPE}" = "yes"; then
9303 14043
9304 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h 14044 cat >>confdefs.h <<\_ACEOF
14045 #define HAVE_FREETYPE 1
14046 _ACEOF
9305 14047
9306 if test "${with_libotf}" != "no"; then 14048 if test "${with_libotf}" != "no"; then
9307 14049
9308 succeeded=no 14050 succeeded=no
9309 14051
9310 # Extract the first word of "pkg-config", so it can be a program name with args. 14052 # Extract the first word of "pkg-config", so it can be a program name with args.
9311 set dummy pkg-config; ac_word=$2 14053 set dummy pkg-config; ac_word=$2
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14054 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9313 $as_echo_n "checking for $ac_word... " >&6; } 14055 $as_echo_n "checking for $ac_word... " >&6; }
9314 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 14056 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9315 $as_echo_n "(cached) " >&6 14057 $as_echo_n "(cached) " >&6
9316 else 14058 else
9317 case $PKG_CONFIG in 14059 case $PKG_CONFIG in
9318 [\\/]* | ?:[\\/]*) 14060 [\\/]* | ?:[\\/]*)
9319 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 14061 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9323 for as_dir in $PATH 14065 for as_dir in $PATH
9324 do 14066 do
9325 IFS=$as_save_IFS 14067 IFS=$as_save_IFS
9326 test -z "$as_dir" && as_dir=. 14068 test -z "$as_dir" && as_dir=.
9327 for ac_exec_ext in '' $ac_executable_extensions; do 14069 for ac_exec_ext in '' $ac_executable_extensions; do
9328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9329 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14071 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14072 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9331 break 2 14073 break 2
9332 fi 14074 fi
9333 done 14075 done
9334 done 14076 done
9335 IFS=$as_save_IFS 14077 IFS=$as_save_IFS
9336 14078
9337 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 14079 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9338 ;; 14080 ;;
9339 esac 14081 esac
9340 fi 14082 fi
9341 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14083 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9342 if test -n "$PKG_CONFIG"; then 14084 if test -n "$PKG_CONFIG"; then
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14085 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9344 $as_echo "$PKG_CONFIG" >&6; } 14086 $as_echo "$PKG_CONFIG" >&6; }
9345 else 14087 else
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14088 { $as_echo "$as_me:$LINENO: result: no" >&5
9347 $as_echo "no" >&6; } 14089 $as_echo "no" >&6; }
9348 fi 14090 fi
9349 14091
9350 14092
9351 14093
9352 if test "$PKG_CONFIG" = "no" ; then 14094 if test "$PKG_CONFIG" = "no" ; then
9353 HAVE_LIBOTF=no 14095 HAVE_LIBOTF=no
9354 else 14096 else
9355 PKG_CONFIG_MIN_VERSION=0.9.0 14097 PKG_CONFIG_MIN_VERSION=0.9.0
9356 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 14098 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5 14099 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
9358 $as_echo_n "checking for libotf... " >&6; } 14100 $as_echo_n "checking for libotf... " >&6; }
9359 14101
9360 if $PKG_CONFIG --exists "libotf" 2>&5; then 14102 if $PKG_CONFIG --exists "libotf" 2>&5; then
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14103 { $as_echo "$as_me:$LINENO: result: yes" >&5
9362 $as_echo "yes" >&6; } 14104 $as_echo "yes" >&6; }
9363 succeeded=yes 14105 succeeded=yes
9364 14106
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5 14107 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
9366 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; } 14108 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
9367 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'` 14109 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5 14110 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
9369 $as_echo "$LIBOTF_CFLAGS" >&6; } 14111 $as_echo "$LIBOTF_CFLAGS" >&6; }
9370 14112
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5 14113 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
9372 $as_echo_n "checking LIBOTF_LIBS... " >&6; } 14114 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
9373 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'` 14115 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5 14116 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
9375 $as_echo "$LIBOTF_LIBS" >&6; } 14117 $as_echo "$LIBOTF_LIBS" >&6; }
9376 else 14118 else
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14119 { $as_echo "$as_me:$LINENO: result: no" >&5
9378 $as_echo "no" >&6; } 14120 $as_echo "no" >&6; }
9379 LIBOTF_CFLAGS="" 14121 LIBOTF_CFLAGS=""
9380 LIBOTF_LIBS="" 14122 LIBOTF_LIBS=""
9381 ## If we have a custom action on failure, don't print errors, but 14123 ## If we have a custom action on failure, don't print errors, but
9382 ## do set a variable so people can do so. 14124 ## do set a variable so people can do so.
9398 HAVE_LIBOTF=no 14140 HAVE_LIBOTF=no
9399 fi 14141 fi
9400 14142
9401 if test "$HAVE_LIBOTF" = "yes"; then 14143 if test "$HAVE_LIBOTF" = "yes"; then
9402 14144
9403 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h 14145 cat >>confdefs.h <<\_ACEOF
9404 14146 #define HAVE_LIBOTF 1
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5 14147 _ACEOF
14148
14149 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
9406 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; } 14150 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
9407 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then : 14151 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
9408 $as_echo_n "(cached) " >&6 14152 $as_echo_n "(cached) " >&6
9409 else 14153 else
9410 ac_check_lib_save_LIBS=$LIBS 14154 ac_check_lib_save_LIBS=$LIBS
9411 LIBS="-lotf $LIBS" 14155 LIBS="-lotf $LIBS"
9412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14156 cat >conftest.$ac_ext <<_ACEOF
14157 /* confdefs.h. */
14158 _ACEOF
14159 cat confdefs.h >>conftest.$ac_ext
14160 cat >>conftest.$ac_ext <<_ACEOF
9413 /* end confdefs.h. */ 14161 /* end confdefs.h. */
9414 14162
9415 /* Override any GCC internal prototype to avoid an error. 14163 /* Override any GCC internal prototype to avoid an error.
9416 Use char because int might match the return type of a GCC 14164 Use char because int might match the return type of a GCC
9417 builtin and then its argument prototype would still apply. */ 14165 builtin and then its argument prototype would still apply. */
9425 return OTF_get_variation_glyphs (); 14173 return OTF_get_variation_glyphs ();
9426 ; 14174 ;
9427 return 0; 14175 return 0;
9428 } 14176 }
9429 _ACEOF 14177 _ACEOF
9430 if ac_fn_c_try_link "$LINENO"; then : 14178 rm -f conftest.$ac_objext conftest$ac_exeext
14179 if { (ac_try="$ac_link"
14180 case "(($ac_try" in
14181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14182 *) ac_try_echo=$ac_try;;
14183 esac
14184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14185 $as_echo "$ac_try_echo") >&5
14186 (eval "$ac_link") 2>conftest.er1
14187 ac_status=$?
14188 grep -v '^ *+' conftest.er1 >conftest.err
14189 rm -f conftest.er1
14190 cat conftest.err >&5
14191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); } && {
14193 test -z "$ac_c_werror_flag" ||
14194 test ! -s conftest.err
14195 } && test -s conftest$ac_exeext && {
14196 test "$cross_compiling" = yes ||
14197 $as_test_x conftest$ac_exeext
14198 }; then
9431 ac_cv_lib_otf_OTF_get_variation_glyphs=yes 14199 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
9432 else 14200 else
9433 ac_cv_lib_otf_OTF_get_variation_glyphs=no 14201 $as_echo "$as_me: failed program was:" >&5
9434 fi 14202 sed 's/^/| /' conftest.$ac_ext >&5
9435 rm -f core conftest.err conftest.$ac_objext \ 14203
9436 conftest$ac_exeext conftest.$ac_ext 14204 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14205 fi
14206
14207 rm -rf conftest.dSYM
14208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14209 conftest$ac_exeext conftest.$ac_ext
9437 LIBS=$ac_check_lib_save_LIBS 14210 LIBS=$ac_check_lib_save_LIBS
9438 fi 14211 fi
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5 14212 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
9440 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; } 14213 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
9441 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then : 14214 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
9442 HAVE_OTF_GET_VARIATION_GLYPHS=yes 14215 HAVE_OTF_GET_VARIATION_GLYPHS=yes
9443 else 14216 else
9444 HAVE_OTF_GET_VARIATION_GLYPHS=no 14217 HAVE_OTF_GET_VARIATION_GLYPHS=no
9445 fi 14218 fi
9446 14219
9447 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then 14220 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
9448 14221
9449 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h 14222 cat >>confdefs.h <<\_ACEOF
14223 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14224 _ACEOF
9450 14225
9451 fi 14226 fi
9452 fi 14227 fi
9453 fi 14228 fi
9454 fi 14229 fi
9459 14234
9460 succeeded=no 14235 succeeded=no
9461 14236
9462 # Extract the first word of "pkg-config", so it can be a program name with args. 14237 # Extract the first word of "pkg-config", so it can be a program name with args.
9463 set dummy pkg-config; ac_word=$2 14238 set dummy pkg-config; ac_word=$2
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14239 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9465 $as_echo_n "checking for $ac_word... " >&6; } 14240 $as_echo_n "checking for $ac_word... " >&6; }
9466 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 14241 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9467 $as_echo_n "(cached) " >&6 14242 $as_echo_n "(cached) " >&6
9468 else 14243 else
9469 case $PKG_CONFIG in 14244 case $PKG_CONFIG in
9470 [\\/]* | ?:[\\/]*) 14245 [\\/]* | ?:[\\/]*)
9471 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 14246 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9475 for as_dir in $PATH 14250 for as_dir in $PATH
9476 do 14251 do
9477 IFS=$as_save_IFS 14252 IFS=$as_save_IFS
9478 test -z "$as_dir" && as_dir=. 14253 test -z "$as_dir" && as_dir=.
9479 for ac_exec_ext in '' $ac_executable_extensions; do 14254 for ac_exec_ext in '' $ac_executable_extensions; do
9480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9481 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14256 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14257 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9483 break 2 14258 break 2
9484 fi 14259 fi
9485 done 14260 done
9486 done 14261 done
9487 IFS=$as_save_IFS 14262 IFS=$as_save_IFS
9488 14263
9489 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 14264 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9490 ;; 14265 ;;
9491 esac 14266 esac
9492 fi 14267 fi
9493 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14268 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9494 if test -n "$PKG_CONFIG"; then 14269 if test -n "$PKG_CONFIG"; then
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14270 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9496 $as_echo "$PKG_CONFIG" >&6; } 14271 $as_echo "$PKG_CONFIG" >&6; }
9497 else 14272 else
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14273 { $as_echo "$as_me:$LINENO: result: no" >&5
9499 $as_echo "no" >&6; } 14274 $as_echo "no" >&6; }
9500 fi 14275 fi
9501 14276
9502 14277
9503 14278
9504 if test "$PKG_CONFIG" = "no" ; then 14279 if test "$PKG_CONFIG" = "no" ; then
9505 HAVE_M17N_FLT=no 14280 HAVE_M17N_FLT=no
9506 else 14281 else
9507 PKG_CONFIG_MIN_VERSION=0.9.0 14282 PKG_CONFIG_MIN_VERSION=0.9.0
9508 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 14283 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5 14284 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
9510 $as_echo_n "checking for m17n-flt... " >&6; } 14285 $as_echo_n "checking for m17n-flt... " >&6; }
9511 14286
9512 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then 14287 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14288 { $as_echo "$as_me:$LINENO: result: yes" >&5
9514 $as_echo "yes" >&6; } 14289 $as_echo "yes" >&6; }
9515 succeeded=yes 14290 succeeded=yes
9516 14291
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5 14292 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
9518 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; } 14293 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
9519 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'` 14294 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5 14295 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
9521 $as_echo "$M17N_FLT_CFLAGS" >&6; } 14296 $as_echo "$M17N_FLT_CFLAGS" >&6; }
9522 14297
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5 14298 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
9524 $as_echo_n "checking M17N_FLT_LIBS... " >&6; } 14299 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
9525 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'` 14300 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5 14301 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
9527 $as_echo "$M17N_FLT_LIBS" >&6; } 14302 $as_echo "$M17N_FLT_LIBS" >&6; }
9528 else 14303 else
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14304 { $as_echo "$as_me:$LINENO: result: no" >&5
9530 $as_echo "no" >&6; } 14305 $as_echo "no" >&6; }
9531 M17N_FLT_CFLAGS="" 14306 M17N_FLT_CFLAGS=""
9532 M17N_FLT_LIBS="" 14307 M17N_FLT_LIBS=""
9533 ## If we have a custom action on failure, don't print errors, but 14308 ## If we have a custom action on failure, don't print errors, but
9534 ## do set a variable so people can do so. 14309 ## do set a variable so people can do so.
9550 HAVE_M17N_FLT=no 14325 HAVE_M17N_FLT=no
9551 fi 14326 fi
9552 14327
9553 if test "$HAVE_M17N_FLT" = "yes"; then 14328 if test "$HAVE_M17N_FLT" = "yes"; then
9554 14329
9555 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h 14330 cat >>confdefs.h <<\_ACEOF
14331 #define HAVE_M17N_FLT 1
14332 _ACEOF
9556 14333
9557 fi 14334 fi
9558 fi 14335 fi
9559 fi 14336 fi
9560 else 14337 else
9574 14351
9575 14352
9576 14353
9577 ### Use -lXpm if available, unless `--with-xpm=no'. 14354 ### Use -lXpm if available, unless `--with-xpm=no'.
9578 HAVE_XPM=no 14355 HAVE_XPM=no
14356 LIBXPM=
9579 if test "${HAVE_X11}" = "yes"; then 14357 if test "${HAVE_X11}" = "yes"; then
9580 if test "${with_xpm}" != "no"; then 14358 if test "${with_xpm}" != "no"; then
9581 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default" 14359 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9582 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then : 14360 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5 14361 $as_echo_n "checking for X11/xpm.h... " >&6; }
14362 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14363 $as_echo_n "(cached) " >&6
14364 fi
14365 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14366 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14367 else
14368 # Is the header compilable?
14369 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14370 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14371 cat >conftest.$ac_ext <<_ACEOF
14372 /* confdefs.h. */
14373 _ACEOF
14374 cat confdefs.h >>conftest.$ac_ext
14375 cat >>conftest.$ac_ext <<_ACEOF
14376 /* end confdefs.h. */
14377 $ac_includes_default
14378 #include <X11/xpm.h>
14379 _ACEOF
14380 rm -f conftest.$ac_objext
14381 if { (ac_try="$ac_compile"
14382 case "(($ac_try" in
14383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14384 *) ac_try_echo=$ac_try;;
14385 esac
14386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14387 $as_echo "$ac_try_echo") >&5
14388 (eval "$ac_compile") 2>conftest.er1
14389 ac_status=$?
14390 grep -v '^ *+' conftest.er1 >conftest.err
14391 rm -f conftest.er1
14392 cat conftest.err >&5
14393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); } && {
14395 test -z "$ac_c_werror_flag" ||
14396 test ! -s conftest.err
14397 } && test -s conftest.$ac_objext; then
14398 ac_header_compiler=yes
14399 else
14400 $as_echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14402
14403 ac_header_compiler=no
14404 fi
14405
14406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14407 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14408 $as_echo "$ac_header_compiler" >&6; }
14409
14410 # Is the header present?
14411 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14412 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14413 cat >conftest.$ac_ext <<_ACEOF
14414 /* confdefs.h. */
14415 _ACEOF
14416 cat confdefs.h >>conftest.$ac_ext
14417 cat >>conftest.$ac_ext <<_ACEOF
14418 /* end confdefs.h. */
14419 #include <X11/xpm.h>
14420 _ACEOF
14421 if { (ac_try="$ac_cpp conftest.$ac_ext"
14422 case "(($ac_try" in
14423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424 *) ac_try_echo=$ac_try;;
14425 esac
14426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14427 $as_echo "$ac_try_echo") >&5
14428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14429 ac_status=$?
14430 grep -v '^ *+' conftest.er1 >conftest.err
14431 rm -f conftest.er1
14432 cat conftest.err >&5
14433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); } >/dev/null && {
14435 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14436 test ! -s conftest.err
14437 }; then
14438 ac_header_preproc=yes
14439 else
14440 $as_echo "$as_me: failed program was:" >&5
14441 sed 's/^/| /' conftest.$ac_ext >&5
14442
14443 ac_header_preproc=no
14444 fi
14445
14446 rm -f conftest.err conftest.$ac_ext
14447 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14448 $as_echo "$ac_header_preproc" >&6; }
14449
14450 # So? What about this header?
14451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14452 yes:no: )
14453 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14454 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14455 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14456 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14457 ac_header_preproc=yes
14458 ;;
14459 no:yes:* )
14460 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14461 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14462 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14463 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14464 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14465 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14466 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14467 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14468 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14469 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14470 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14471 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14472
14473 ;;
14474 esac
14475 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14476 $as_echo_n "checking for X11/xpm.h... " >&6; }
14477 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14478 $as_echo_n "(cached) " >&6
14479 else
14480 ac_cv_header_X11_xpm_h=$ac_header_preproc
14481 fi
14482 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14483 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14484
14485 fi
14486 if test $ac_cv_header_X11_xpm_h = yes; then
14487 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
9584 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; } 14488 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
9585 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then : 14489 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
9586 $as_echo_n "(cached) " >&6 14490 $as_echo_n "(cached) " >&6
9587 else 14491 else
9588 ac_check_lib_save_LIBS=$LIBS 14492 ac_check_lib_save_LIBS=$LIBS
9589 LIBS="-lXpm -lX11 $LIBS" 14493 LIBS="-lXpm -lX11 $LIBS"
9590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14494 cat >conftest.$ac_ext <<_ACEOF
14495 /* confdefs.h. */
14496 _ACEOF
14497 cat confdefs.h >>conftest.$ac_ext
14498 cat >>conftest.$ac_ext <<_ACEOF
9591 /* end confdefs.h. */ 14499 /* end confdefs.h. */
9592 14500
9593 /* Override any GCC internal prototype to avoid an error. 14501 /* Override any GCC internal prototype to avoid an error.
9594 Use char because int might match the return type of a GCC 14502 Use char because int might match the return type of a GCC
9595 builtin and then its argument prototype would still apply. */ 14503 builtin and then its argument prototype would still apply. */
9603 return XpmReadFileToPixmap (); 14511 return XpmReadFileToPixmap ();
9604 ; 14512 ;
9605 return 0; 14513 return 0;
9606 } 14514 }
9607 _ACEOF 14515 _ACEOF
9608 if ac_fn_c_try_link "$LINENO"; then : 14516 rm -f conftest.$ac_objext conftest$ac_exeext
14517 if { (ac_try="$ac_link"
14518 case "(($ac_try" in
14519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14520 *) ac_try_echo=$ac_try;;
14521 esac
14522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14523 $as_echo "$ac_try_echo") >&5
14524 (eval "$ac_link") 2>conftest.er1
14525 ac_status=$?
14526 grep -v '^ *+' conftest.er1 >conftest.err
14527 rm -f conftest.er1
14528 cat conftest.err >&5
14529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); } && {
14531 test -z "$ac_c_werror_flag" ||
14532 test ! -s conftest.err
14533 } && test -s conftest$ac_exeext && {
14534 test "$cross_compiling" = yes ||
14535 $as_test_x conftest$ac_exeext
14536 }; then
9609 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes 14537 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9610 else 14538 else
9611 ac_cv_lib_Xpm_XpmReadFileToPixmap=no 14539 $as_echo "$as_me: failed program was:" >&5
9612 fi 14540 sed 's/^/| /' conftest.$ac_ext >&5
9613 rm -f core conftest.err conftest.$ac_objext \ 14541
9614 conftest$ac_exeext conftest.$ac_ext 14542 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14543 fi
14544
14545 rm -rf conftest.dSYM
14546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14547 conftest$ac_exeext conftest.$ac_ext
9615 LIBS=$ac_check_lib_save_LIBS 14548 LIBS=$ac_check_lib_save_LIBS
9616 fi 14549 fi
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 14550 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9618 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; } 14551 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
9619 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then : 14552 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9620 HAVE_XPM=yes 14553 HAVE_XPM=yes
9621 fi 14554 fi
9622 14555
9623 fi 14556 fi
9624 14557
9625 14558
9626 if test "${HAVE_XPM}" = "yes"; then 14559 if test "${HAVE_XPM}" = "yes"; then
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5 14560 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9628 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; } 14561 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
9629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14562 cat >conftest.$ac_ext <<_ACEOF
14563 /* confdefs.h. */
14564 _ACEOF
14565 cat confdefs.h >>conftest.$ac_ext
14566 cat >>conftest.$ac_ext <<_ACEOF
9630 /* end confdefs.h. */ 14567 /* end confdefs.h. */
9631 #include "X11/xpm.h" 14568 #include "X11/xpm.h"
9632 #ifndef XpmReturnAllocPixels 14569 #ifndef XpmReturnAllocPixels
9633 no_return_alloc_pixels 14570 no_return_alloc_pixels
9634 #endif 14571 #endif
9635 14572
9636 _ACEOF 14573 _ACEOF
9637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9638 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then : 14575 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
9639 HAVE_XPM=no 14576 HAVE_XPM=no
9640 else 14577 else
9641 HAVE_XPM=yes 14578 HAVE_XPM=yes
9642 fi 14579 fi
9643 rm -f conftest* 14580 rm -f conftest*
9644 14581
9645 14582
9646 if test "${HAVE_XPM}" = "yes"; then 14583 if test "${HAVE_XPM}" = "yes"; then
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14584 { $as_echo "$as_me:$LINENO: result: yes" >&5
9648 $as_echo "yes" >&6; } 14585 $as_echo "yes" >&6; }
9649 else 14586 else
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14587 { $as_echo "$as_me:$LINENO: result: no" >&5
9651 $as_echo "no" >&6; } 14588 $as_echo "no" >&6; }
9652 fi 14589 fi
9653 fi 14590 fi
9654 fi 14591 fi
9655 14592
9656 if test "${HAVE_XPM}" = "yes"; then 14593 if test "${HAVE_XPM}" = "yes"; then
9657 14594
9658 $as_echo "#define HAVE_XPM 1" >>confdefs.h 14595 cat >>confdefs.h <<\_ACEOF
9659 14596 #define HAVE_XPM 1
14597 _ACEOF
14598
14599 LIBXPM=-lXpm
9660 fi 14600 fi
9661 fi 14601 fi
14602
9662 14603
9663 ### Use -ljpeg if available, unless `--with-jpeg=no'. 14604 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9664 HAVE_JPEG=no 14605 HAVE_JPEG=no
14606 LIBJPEG=
9665 if test "${HAVE_X11}" = "yes"; then 14607 if test "${HAVE_X11}" = "yes"; then
9666 if test "${with_jpeg}" != "no"; then 14608 if test "${with_jpeg}" != "no"; then
9667 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default" 14609 if test "${ac_cv_header_jerror_h+set}" = set; then
9668 if test "x$ac_cv_header_jerror_h" = x""yes; then : 14610 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5 14611 $as_echo_n "checking for jerror.h... " >&6; }
14612 if test "${ac_cv_header_jerror_h+set}" = set; then
14613 $as_echo_n "(cached) " >&6
14614 fi
14615 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14616 $as_echo "$ac_cv_header_jerror_h" >&6; }
14617 else
14618 # Is the header compilable?
14619 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14620 $as_echo_n "checking jerror.h usability... " >&6; }
14621 cat >conftest.$ac_ext <<_ACEOF
14622 /* confdefs.h. */
14623 _ACEOF
14624 cat confdefs.h >>conftest.$ac_ext
14625 cat >>conftest.$ac_ext <<_ACEOF
14626 /* end confdefs.h. */
14627 $ac_includes_default
14628 #include <jerror.h>
14629 _ACEOF
14630 rm -f conftest.$ac_objext
14631 if { (ac_try="$ac_compile"
14632 case "(($ac_try" in
14633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14634 *) ac_try_echo=$ac_try;;
14635 esac
14636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14637 $as_echo "$ac_try_echo") >&5
14638 (eval "$ac_compile") 2>conftest.er1
14639 ac_status=$?
14640 grep -v '^ *+' conftest.er1 >conftest.err
14641 rm -f conftest.er1
14642 cat conftest.err >&5
14643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); } && {
14645 test -z "$ac_c_werror_flag" ||
14646 test ! -s conftest.err
14647 } && test -s conftest.$ac_objext; then
14648 ac_header_compiler=yes
14649 else
14650 $as_echo "$as_me: failed program was:" >&5
14651 sed 's/^/| /' conftest.$ac_ext >&5
14652
14653 ac_header_compiler=no
14654 fi
14655
14656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14657 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14658 $as_echo "$ac_header_compiler" >&6; }
14659
14660 # Is the header present?
14661 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14662 $as_echo_n "checking jerror.h presence... " >&6; }
14663 cat >conftest.$ac_ext <<_ACEOF
14664 /* confdefs.h. */
14665 _ACEOF
14666 cat confdefs.h >>conftest.$ac_ext
14667 cat >>conftest.$ac_ext <<_ACEOF
14668 /* end confdefs.h. */
14669 #include <jerror.h>
14670 _ACEOF
14671 if { (ac_try="$ac_cpp conftest.$ac_ext"
14672 case "(($ac_try" in
14673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14674 *) ac_try_echo=$ac_try;;
14675 esac
14676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14677 $as_echo "$ac_try_echo") >&5
14678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14679 ac_status=$?
14680 grep -v '^ *+' conftest.er1 >conftest.err
14681 rm -f conftest.er1
14682 cat conftest.err >&5
14683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); } >/dev/null && {
14685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14686 test ! -s conftest.err
14687 }; then
14688 ac_header_preproc=yes
14689 else
14690 $as_echo "$as_me: failed program was:" >&5
14691 sed 's/^/| /' conftest.$ac_ext >&5
14692
14693 ac_header_preproc=no
14694 fi
14695
14696 rm -f conftest.err conftest.$ac_ext
14697 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14698 $as_echo "$ac_header_preproc" >&6; }
14699
14700 # So? What about this header?
14701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14702 yes:no: )
14703 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14704 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14705 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14706 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14707 ac_header_preproc=yes
14708 ;;
14709 no:yes:* )
14710 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14711 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14712 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14713 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14714 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14715 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14716 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14717 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14718 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14719 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14720 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14721 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14722
14723 ;;
14724 esac
14725 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14726 $as_echo_n "checking for jerror.h... " >&6; }
14727 if test "${ac_cv_header_jerror_h+set}" = set; then
14728 $as_echo_n "(cached) " >&6
14729 else
14730 ac_cv_header_jerror_h=$ac_header_preproc
14731 fi
14732 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14733 $as_echo "$ac_cv_header_jerror_h" >&6; }
14734
14735 fi
14736 if test $ac_cv_header_jerror_h = yes; then
14737 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9670 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; } 14738 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
9671 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then : 14739 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9672 $as_echo_n "(cached) " >&6 14740 $as_echo_n "(cached) " >&6
9673 else 14741 else
9674 ac_check_lib_save_LIBS=$LIBS 14742 ac_check_lib_save_LIBS=$LIBS
9675 LIBS="-ljpeg $LIBS" 14743 LIBS="-ljpeg $LIBS"
9676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14744 cat >conftest.$ac_ext <<_ACEOF
14745 /* confdefs.h. */
14746 _ACEOF
14747 cat confdefs.h >>conftest.$ac_ext
14748 cat >>conftest.$ac_ext <<_ACEOF
9677 /* end confdefs.h. */ 14749 /* end confdefs.h. */
9678 14750
9679 /* Override any GCC internal prototype to avoid an error. 14751 /* Override any GCC internal prototype to avoid an error.
9680 Use char because int might match the return type of a GCC 14752 Use char because int might match the return type of a GCC
9681 builtin and then its argument prototype would still apply. */ 14753 builtin and then its argument prototype would still apply. */
9689 return jpeg_destroy_compress (); 14761 return jpeg_destroy_compress ();
9690 ; 14762 ;
9691 return 0; 14763 return 0;
9692 } 14764 }
9693 _ACEOF 14765 _ACEOF
9694 if ac_fn_c_try_link "$LINENO"; then : 14766 rm -f conftest.$ac_objext conftest$ac_exeext
14767 if { (ac_try="$ac_link"
14768 case "(($ac_try" in
14769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14770 *) ac_try_echo=$ac_try;;
14771 esac
14772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14773 $as_echo "$ac_try_echo") >&5
14774 (eval "$ac_link") 2>conftest.er1
14775 ac_status=$?
14776 grep -v '^ *+' conftest.er1 >conftest.err
14777 rm -f conftest.er1
14778 cat conftest.err >&5
14779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); } && {
14781 test -z "$ac_c_werror_flag" ||
14782 test ! -s conftest.err
14783 } && test -s conftest$ac_exeext && {
14784 test "$cross_compiling" = yes ||
14785 $as_test_x conftest$ac_exeext
14786 }; then
9695 ac_cv_lib_jpeg_jpeg_destroy_compress=yes 14787 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
9696 else 14788 else
9697 ac_cv_lib_jpeg_jpeg_destroy_compress=no 14789 $as_echo "$as_me: failed program was:" >&5
9698 fi 14790 sed 's/^/| /' conftest.$ac_ext >&5
9699 rm -f core conftest.err conftest.$ac_objext \ 14791
9700 conftest$ac_exeext conftest.$ac_ext 14792 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14793 fi
14794
14795 rm -rf conftest.dSYM
14796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14797 conftest$ac_exeext conftest.$ac_ext
9701 LIBS=$ac_check_lib_save_LIBS 14798 LIBS=$ac_check_lib_save_LIBS
9702 fi 14799 fi
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 14800 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9704 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; } 14801 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
9705 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then : 14802 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9706 HAVE_JPEG=yes 14803 HAVE_JPEG=yes
9707 fi 14804 fi
9708 14805
9709 fi 14806 fi
9710 14807
9711 14808
9712 fi 14809 fi
9713 14810
9714 if test "${HAVE_JPEG}" = "yes"; then 14811
9715 $as_echo "#define HAVE_JPEG 1" >>confdefs.h 14812 if test "${HAVE_JPEG}" = "yes"; then
9716 14813 cat >>confdefs.h <<\_ACEOF
9717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14814 #define HAVE_JPEG 1
14815 _ACEOF
14816
14817 cat >conftest.$ac_ext <<_ACEOF
14818 /* confdefs.h. */
14819 _ACEOF
14820 cat confdefs.h >>conftest.$ac_ext
14821 cat >>conftest.$ac_ext <<_ACEOF
9718 /* end confdefs.h. */ 14822 /* end confdefs.h. */
9719 #include <jpeglib.h> 14823 #include <jpeglib.h>
9720 version=JPEG_LIB_VERSION 14824 version=JPEG_LIB_VERSION
9721 14825
9722 _ACEOF 14826 _ACEOF
9723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9724 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then : 14828 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
9725 $as_echo "#define HAVE_JPEG 1" >>confdefs.h 14829 cat >>confdefs.h <<\_ACEOF
9726 14830 #define HAVE_JPEG 1
9727 else 14831 _ACEOF
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5 14832
14833 else
14834 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
9729 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} 14835 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9730 HAVE_JPEG=no 14836 HAVE_JPEG=no
9731 fi 14837 fi
9732 rm -f conftest* 14838 rm -f conftest*
9733 14839
9734 fi 14840 fi
9735 fi 14841 if test "${HAVE_JPEG}" = "yes"; then
14842 LIBJPEG=-ljpeg
14843 fi
14844 fi
14845
9736 14846
9737 ### Use -lpng if available, unless `--with-png=no'. 14847 ### Use -lpng if available, unless `--with-png=no'.
9738 HAVE_PNG=no 14848 HAVE_PNG=no
14849 LIBPNG=
9739 if test "${HAVE_X11}" = "yes"; then 14850 if test "${HAVE_X11}" = "yes"; then
9740 if test "${with_png}" != "no"; then 14851 if test "${with_png}" != "no"; then
9741 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h 14852 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
9742 # in /usr/include/libpng. 14853 # in /usr/include/libpng.
9743 for ac_header in png.h libpng/png.h 14854
9744 do : 14855
9745 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14856 for ac_header in png.h libpng/png.h
9746 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14857 do
9747 eval as_val=\$$as_ac_Header 14858 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9748 if test "x$as_val" = x""yes; then : 14859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14860 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14861 $as_echo_n "checking for $ac_header... " >&6; }
14862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14863 $as_echo_n "(cached) " >&6
14864 fi
14865 ac_res=`eval 'as_val=${'$as_ac_Header'}
14866 $as_echo "$as_val"'`
14867 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14868 $as_echo "$ac_res" >&6; }
14869 else
14870 # Is the header compilable?
14871 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14872 $as_echo_n "checking $ac_header usability... " >&6; }
14873 cat >conftest.$ac_ext <<_ACEOF
14874 /* confdefs.h. */
14875 _ACEOF
14876 cat confdefs.h >>conftest.$ac_ext
14877 cat >>conftest.$ac_ext <<_ACEOF
14878 /* end confdefs.h. */
14879 $ac_includes_default
14880 #include <$ac_header>
14881 _ACEOF
14882 rm -f conftest.$ac_objext
14883 if { (ac_try="$ac_compile"
14884 case "(($ac_try" in
14885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886 *) ac_try_echo=$ac_try;;
14887 esac
14888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14889 $as_echo "$ac_try_echo") >&5
14890 (eval "$ac_compile") 2>conftest.er1
14891 ac_status=$?
14892 grep -v '^ *+' conftest.er1 >conftest.err
14893 rm -f conftest.er1
14894 cat conftest.err >&5
14895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); } && {
14897 test -z "$ac_c_werror_flag" ||
14898 test ! -s conftest.err
14899 } && test -s conftest.$ac_objext; then
14900 ac_header_compiler=yes
14901 else
14902 $as_echo "$as_me: failed program was:" >&5
14903 sed 's/^/| /' conftest.$ac_ext >&5
14904
14905 ac_header_compiler=no
14906 fi
14907
14908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14909 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14910 $as_echo "$ac_header_compiler" >&6; }
14911
14912 # Is the header present?
14913 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14914 $as_echo_n "checking $ac_header presence... " >&6; }
14915 cat >conftest.$ac_ext <<_ACEOF
14916 /* confdefs.h. */
14917 _ACEOF
14918 cat confdefs.h >>conftest.$ac_ext
14919 cat >>conftest.$ac_ext <<_ACEOF
14920 /* end confdefs.h. */
14921 #include <$ac_header>
14922 _ACEOF
14923 if { (ac_try="$ac_cpp conftest.$ac_ext"
14924 case "(($ac_try" in
14925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14926 *) ac_try_echo=$ac_try;;
14927 esac
14928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14929 $as_echo "$ac_try_echo") >&5
14930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14931 ac_status=$?
14932 grep -v '^ *+' conftest.er1 >conftest.err
14933 rm -f conftest.er1
14934 cat conftest.err >&5
14935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); } >/dev/null && {
14937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14938 test ! -s conftest.err
14939 }; then
14940 ac_header_preproc=yes
14941 else
14942 $as_echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14944
14945 ac_header_preproc=no
14946 fi
14947
14948 rm -f conftest.err conftest.$ac_ext
14949 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14950 $as_echo "$ac_header_preproc" >&6; }
14951
14952 # So? What about this header?
14953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14954 yes:no: )
14955 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14956 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14957 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14958 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14959 ac_header_preproc=yes
14960 ;;
14961 no:yes:* )
14962 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14963 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14964 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14965 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14966 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14967 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14969 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14971 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14973 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14974
14975 ;;
14976 esac
14977 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14978 $as_echo_n "checking for $ac_header... " >&6; }
14979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14980 $as_echo_n "(cached) " >&6
14981 else
14982 eval "$as_ac_Header=\$ac_header_preproc"
14983 fi
14984 ac_res=`eval 'as_val=${'$as_ac_Header'}
14985 $as_echo "$as_val"'`
14986 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14987 $as_echo "$ac_res" >&6; }
14988
14989 fi
14990 if test `eval 'as_val=${'$as_ac_Header'}
14991 $as_echo "$as_val"'` = yes; then
9749 cat >>confdefs.h <<_ACEOF 14992 cat >>confdefs.h <<_ACEOF
9750 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14993 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9751 _ACEOF 14994 _ACEOF
9752 14995
9753 fi 14996 fi
9754 14997
9755 done 14998 done
9756 14999
9757 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then 15000 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5 15001 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9759 $as_echo_n "checking for png_get_channels in -lpng... " >&6; } 15002 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
9760 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then : 15003 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9761 $as_echo_n "(cached) " >&6 15004 $as_echo_n "(cached) " >&6
9762 else 15005 else
9763 ac_check_lib_save_LIBS=$LIBS 15006 ac_check_lib_save_LIBS=$LIBS
9764 LIBS="-lpng -lz -lm $LIBS" 15007 LIBS="-lpng -lz -lm $LIBS"
9765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15008 cat >conftest.$ac_ext <<_ACEOF
15009 /* confdefs.h. */
15010 _ACEOF
15011 cat confdefs.h >>conftest.$ac_ext
15012 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h. */ 15013 /* end confdefs.h. */
9767 15014
9768 /* Override any GCC internal prototype to avoid an error. 15015 /* Override any GCC internal prototype to avoid an error.
9769 Use char because int might match the return type of a GCC 15016 Use char because int might match the return type of a GCC
9770 builtin and then its argument prototype would still apply. */ 15017 builtin and then its argument prototype would still apply. */
9778 return png_get_channels (); 15025 return png_get_channels ();
9779 ; 15026 ;
9780 return 0; 15027 return 0;
9781 } 15028 }
9782 _ACEOF 15029 _ACEOF
9783 if ac_fn_c_try_link "$LINENO"; then : 15030 rm -f conftest.$ac_objext conftest$ac_exeext
15031 if { (ac_try="$ac_link"
15032 case "(($ac_try" in
15033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15034 *) ac_try_echo=$ac_try;;
15035 esac
15036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15037 $as_echo "$ac_try_echo") >&5
15038 (eval "$ac_link") 2>conftest.er1
15039 ac_status=$?
15040 grep -v '^ *+' conftest.er1 >conftest.err
15041 rm -f conftest.er1
15042 cat conftest.err >&5
15043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } && {
15045 test -z "$ac_c_werror_flag" ||
15046 test ! -s conftest.err
15047 } && test -s conftest$ac_exeext && {
15048 test "$cross_compiling" = yes ||
15049 $as_test_x conftest$ac_exeext
15050 }; then
9784 ac_cv_lib_png_png_get_channels=yes 15051 ac_cv_lib_png_png_get_channels=yes
9785 else 15052 else
9786 ac_cv_lib_png_png_get_channels=no 15053 $as_echo "$as_me: failed program was:" >&5
9787 fi 15054 sed 's/^/| /' conftest.$ac_ext >&5
9788 rm -f core conftest.err conftest.$ac_objext \ 15055
9789 conftest$ac_exeext conftest.$ac_ext 15056 ac_cv_lib_png_png_get_channels=no
15057 fi
15058
15059 rm -rf conftest.dSYM
15060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15061 conftest$ac_exeext conftest.$ac_ext
9790 LIBS=$ac_check_lib_save_LIBS 15062 LIBS=$ac_check_lib_save_LIBS
9791 fi 15063 fi
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5 15064 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9793 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; } 15065 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
9794 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then : 15066 if test $ac_cv_lib_png_png_get_channels = yes; then
9795 HAVE_PNG=yes 15067 HAVE_PNG=yes
9796 fi 15068 fi
9797 15069
9798 fi 15070 fi
9799 fi 15071 fi
9800 15072
9801 if test "${HAVE_PNG}" = "yes"; then 15073 if test "${HAVE_PNG}" = "yes"; then
9802 15074
9803 $as_echo "#define HAVE_PNG 1" >>confdefs.h 15075 cat >>confdefs.h <<\_ACEOF
9804 15076 #define HAVE_PNG 1
15077 _ACEOF
15078
15079 LIBPNG="-lpng -lz -lm"
9805 fi 15080 fi
9806 fi 15081 fi
15082
9807 15083
9808 ### Use -ltiff if available, unless `--with-tiff=no'. 15084 ### Use -ltiff if available, unless `--with-tiff=no'.
9809 HAVE_TIFF=no 15085 HAVE_TIFF=no
15086 LIBTIFF=
9810 if test "${HAVE_X11}" = "yes"; then 15087 if test "${HAVE_X11}" = "yes"; then
9811 if test "${with_tiff}" != "no"; then 15088 if test "${with_tiff}" != "no"; then
9812 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" 15089 if test "${ac_cv_header_tiffio_h+set}" = set; then
9813 if test "x$ac_cv_header_tiffio_h" = x""yes; then : 15090 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15091 $as_echo_n "checking for tiffio.h... " >&6; }
15092 if test "${ac_cv_header_tiffio_h+set}" = set; then
15093 $as_echo_n "(cached) " >&6
15094 fi
15095 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15096 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15097 else
15098 # Is the header compilable?
15099 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15100 $as_echo_n "checking tiffio.h usability... " >&6; }
15101 cat >conftest.$ac_ext <<_ACEOF
15102 /* confdefs.h. */
15103 _ACEOF
15104 cat confdefs.h >>conftest.$ac_ext
15105 cat >>conftest.$ac_ext <<_ACEOF
15106 /* end confdefs.h. */
15107 $ac_includes_default
15108 #include <tiffio.h>
15109 _ACEOF
15110 rm -f conftest.$ac_objext
15111 if { (ac_try="$ac_compile"
15112 case "(($ac_try" in
15113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15114 *) ac_try_echo=$ac_try;;
15115 esac
15116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15117 $as_echo "$ac_try_echo") >&5
15118 (eval "$ac_compile") 2>conftest.er1
15119 ac_status=$?
15120 grep -v '^ *+' conftest.er1 >conftest.err
15121 rm -f conftest.er1
15122 cat conftest.err >&5
15123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); } && {
15125 test -z "$ac_c_werror_flag" ||
15126 test ! -s conftest.err
15127 } && test -s conftest.$ac_objext; then
15128 ac_header_compiler=yes
15129 else
15130 $as_echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15132
15133 ac_header_compiler=no
15134 fi
15135
15136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15137 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15138 $as_echo "$ac_header_compiler" >&6; }
15139
15140 # Is the header present?
15141 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15142 $as_echo_n "checking tiffio.h presence... " >&6; }
15143 cat >conftest.$ac_ext <<_ACEOF
15144 /* confdefs.h. */
15145 _ACEOF
15146 cat confdefs.h >>conftest.$ac_ext
15147 cat >>conftest.$ac_ext <<_ACEOF
15148 /* end confdefs.h. */
15149 #include <tiffio.h>
15150 _ACEOF
15151 if { (ac_try="$ac_cpp conftest.$ac_ext"
15152 case "(($ac_try" in
15153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154 *) ac_try_echo=$ac_try;;
15155 esac
15156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15157 $as_echo "$ac_try_echo") >&5
15158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15159 ac_status=$?
15160 grep -v '^ *+' conftest.er1 >conftest.err
15161 rm -f conftest.er1
15162 cat conftest.err >&5
15163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); } >/dev/null && {
15165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15166 test ! -s conftest.err
15167 }; then
15168 ac_header_preproc=yes
15169 else
15170 $as_echo "$as_me: failed program was:" >&5
15171 sed 's/^/| /' conftest.$ac_ext >&5
15172
15173 ac_header_preproc=no
15174 fi
15175
15176 rm -f conftest.err conftest.$ac_ext
15177 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15178 $as_echo "$ac_header_preproc" >&6; }
15179
15180 # So? What about this header?
15181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15182 yes:no: )
15183 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15184 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15185 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15186 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15187 ac_header_preproc=yes
15188 ;;
15189 no:yes:* )
15190 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15191 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15192 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15193 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15194 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15195 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15196 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15197 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15198 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15199 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15200 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15201 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15202
15203 ;;
15204 esac
15205 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15206 $as_echo_n "checking for tiffio.h... " >&6; }
15207 if test "${ac_cv_header_tiffio_h+set}" = set; then
15208 $as_echo_n "(cached) " >&6
15209 else
15210 ac_cv_header_tiffio_h=$ac_header_preproc
15211 fi
15212 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15213 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15214
15215 fi
15216 if test $ac_cv_header_tiffio_h = yes; then
9814 tifflibs="-lz -lm" 15217 tifflibs="-lz -lm"
9815 # At least one tiff package requires the jpeg library. 15218 # At least one tiff package requires the jpeg library.
9816 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi 15219 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5 15220 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9818 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; } 15221 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
9819 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then : 15222 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9820 $as_echo_n "(cached) " >&6 15223 $as_echo_n "(cached) " >&6
9821 else 15224 else
9822 ac_check_lib_save_LIBS=$LIBS 15225 ac_check_lib_save_LIBS=$LIBS
9823 LIBS="-ltiff $tifflibs $LIBS" 15226 LIBS="-ltiff $tifflibs $LIBS"
9824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15227 cat >conftest.$ac_ext <<_ACEOF
15228 /* confdefs.h. */
15229 _ACEOF
15230 cat confdefs.h >>conftest.$ac_ext
15231 cat >>conftest.$ac_ext <<_ACEOF
9825 /* end confdefs.h. */ 15232 /* end confdefs.h. */
9826 15233
9827 /* Override any GCC internal prototype to avoid an error. 15234 /* Override any GCC internal prototype to avoid an error.
9828 Use char because int might match the return type of a GCC 15235 Use char because int might match the return type of a GCC
9829 builtin and then its argument prototype would still apply. */ 15236 builtin and then its argument prototype would still apply. */
9837 return TIFFGetVersion (); 15244 return TIFFGetVersion ();
9838 ; 15245 ;
9839 return 0; 15246 return 0;
9840 } 15247 }
9841 _ACEOF 15248 _ACEOF
9842 if ac_fn_c_try_link "$LINENO"; then : 15249 rm -f conftest.$ac_objext conftest$ac_exeext
15250 if { (ac_try="$ac_link"
15251 case "(($ac_try" in
15252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15253 *) ac_try_echo=$ac_try;;
15254 esac
15255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15256 $as_echo "$ac_try_echo") >&5
15257 (eval "$ac_link") 2>conftest.er1
15258 ac_status=$?
15259 grep -v '^ *+' conftest.er1 >conftest.err
15260 rm -f conftest.er1
15261 cat conftest.err >&5
15262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); } && {
15264 test -z "$ac_c_werror_flag" ||
15265 test ! -s conftest.err
15266 } && test -s conftest$ac_exeext && {
15267 test "$cross_compiling" = yes ||
15268 $as_test_x conftest$ac_exeext
15269 }; then
9843 ac_cv_lib_tiff_TIFFGetVersion=yes 15270 ac_cv_lib_tiff_TIFFGetVersion=yes
9844 else 15271 else
9845 ac_cv_lib_tiff_TIFFGetVersion=no 15272 $as_echo "$as_me: failed program was:" >&5
9846 fi 15273 sed 's/^/| /' conftest.$ac_ext >&5
9847 rm -f core conftest.err conftest.$ac_objext \ 15274
9848 conftest$ac_exeext conftest.$ac_ext 15275 ac_cv_lib_tiff_TIFFGetVersion=no
15276 fi
15277
15278 rm -rf conftest.dSYM
15279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15280 conftest$ac_exeext conftest.$ac_ext
9849 LIBS=$ac_check_lib_save_LIBS 15281 LIBS=$ac_check_lib_save_LIBS
9850 fi 15282 fi
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 15283 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9852 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; } 15284 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
9853 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then : 15285 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9854 HAVE_TIFF=yes 15286 HAVE_TIFF=yes
9855 fi 15287 fi
9856 15288
9857 fi 15289 fi
9858 15290
9859 15291
9860 fi 15292 fi
9861 15293
9862 if test "${HAVE_TIFF}" = "yes"; then 15294 if test "${HAVE_TIFF}" = "yes"; then
9863 15295
9864 $as_echo "#define HAVE_TIFF 1" >>confdefs.h 15296 cat >>confdefs.h <<\_ACEOF
9865 15297 #define HAVE_TIFF 1
15298 _ACEOF
15299
15300 LIBTIFF=-ltiff
9866 fi 15301 fi
9867 fi 15302 fi
15303
9868 15304
9869 ### Use -lgif or -lungif if available, unless `--with-gif=no'. 15305 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
9870 HAVE_GIF=no 15306 HAVE_GIF=no
15307 LIBGIF=
9871 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then 15308 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
9872 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 15309 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9873 if test "x$ac_cv_header_gif_lib_h" = x""yes; then : 15310 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15311 $as_echo_n "checking for gif_lib.h... " >&6; }
15312 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15313 $as_echo_n "(cached) " >&6
15314 fi
15315 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15316 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15317 else
15318 # Is the header compilable?
15319 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15320 $as_echo_n "checking gif_lib.h usability... " >&6; }
15321 cat >conftest.$ac_ext <<_ACEOF
15322 /* confdefs.h. */
15323 _ACEOF
15324 cat confdefs.h >>conftest.$ac_ext
15325 cat >>conftest.$ac_ext <<_ACEOF
15326 /* end confdefs.h. */
15327 $ac_includes_default
15328 #include <gif_lib.h>
15329 _ACEOF
15330 rm -f conftest.$ac_objext
15331 if { (ac_try="$ac_compile"
15332 case "(($ac_try" in
15333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15334 *) ac_try_echo=$ac_try;;
15335 esac
15336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15337 $as_echo "$ac_try_echo") >&5
15338 (eval "$ac_compile") 2>conftest.er1
15339 ac_status=$?
15340 grep -v '^ *+' conftest.er1 >conftest.err
15341 rm -f conftest.er1
15342 cat conftest.err >&5
15343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); } && {
15345 test -z "$ac_c_werror_flag" ||
15346 test ! -s conftest.err
15347 } && test -s conftest.$ac_objext; then
15348 ac_header_compiler=yes
15349 else
15350 $as_echo "$as_me: failed program was:" >&5
15351 sed 's/^/| /' conftest.$ac_ext >&5
15352
15353 ac_header_compiler=no
15354 fi
15355
15356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15357 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15358 $as_echo "$ac_header_compiler" >&6; }
15359
15360 # Is the header present?
15361 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15362 $as_echo_n "checking gif_lib.h presence... " >&6; }
15363 cat >conftest.$ac_ext <<_ACEOF
15364 /* confdefs.h. */
15365 _ACEOF
15366 cat confdefs.h >>conftest.$ac_ext
15367 cat >>conftest.$ac_ext <<_ACEOF
15368 /* end confdefs.h. */
15369 #include <gif_lib.h>
15370 _ACEOF
15371 if { (ac_try="$ac_cpp conftest.$ac_ext"
15372 case "(($ac_try" in
15373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15374 *) ac_try_echo=$ac_try;;
15375 esac
15376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15377 $as_echo "$ac_try_echo") >&5
15378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15379 ac_status=$?
15380 grep -v '^ *+' conftest.er1 >conftest.err
15381 rm -f conftest.er1
15382 cat conftest.err >&5
15383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); } >/dev/null && {
15385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15386 test ! -s conftest.err
15387 }; then
15388 ac_header_preproc=yes
15389 else
15390 $as_echo "$as_me: failed program was:" >&5
15391 sed 's/^/| /' conftest.$ac_ext >&5
15392
15393 ac_header_preproc=no
15394 fi
15395
15396 rm -f conftest.err conftest.$ac_ext
15397 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15398 $as_echo "$ac_header_preproc" >&6; }
15399
15400 # So? What about this header?
15401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15402 yes:no: )
15403 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15404 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15405 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15406 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15407 ac_header_preproc=yes
15408 ;;
15409 no:yes:* )
15410 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15411 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15412 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15413 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15414 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15415 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15416 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15417 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15418 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15419 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15420 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15421 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15422
15423 ;;
15424 esac
15425 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15426 $as_echo_n "checking for gif_lib.h... " >&6; }
15427 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15428 $as_echo_n "(cached) " >&6
15429 else
15430 ac_cv_header_gif_lib_h=$ac_header_preproc
15431 fi
15432 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15433 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15434
15435 fi
15436 if test $ac_cv_header_gif_lib_h = yes; then
9874 # EGifPutExtensionLast only exists from version libungif-4.1.0b1. 15437 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9875 # Earlier versions can crash Emacs. 15438 # Earlier versions can crash Emacs.
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5 15439 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
9877 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; } 15440 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
9878 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then : 15441 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
9879 $as_echo_n "(cached) " >&6 15442 $as_echo_n "(cached) " >&6
9880 else 15443 else
9881 ac_check_lib_save_LIBS=$LIBS 15444 ac_check_lib_save_LIBS=$LIBS
9882 LIBS="-lgif $LIBS" 15445 LIBS="-lgif $LIBS"
9883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15446 cat >conftest.$ac_ext <<_ACEOF
15447 /* confdefs.h. */
15448 _ACEOF
15449 cat confdefs.h >>conftest.$ac_ext
15450 cat >>conftest.$ac_ext <<_ACEOF
9884 /* end confdefs.h. */ 15451 /* end confdefs.h. */
9885 15452
9886 /* Override any GCC internal prototype to avoid an error. 15453 /* Override any GCC internal prototype to avoid an error.
9887 Use char because int might match the return type of a GCC 15454 Use char because int might match the return type of a GCC
9888 builtin and then its argument prototype would still apply. */ 15455 builtin and then its argument prototype would still apply. */
9896 return EGifPutExtensionLast (); 15463 return EGifPutExtensionLast ();
9897 ; 15464 ;
9898 return 0; 15465 return 0;
9899 } 15466 }
9900 _ACEOF 15467 _ACEOF
9901 if ac_fn_c_try_link "$LINENO"; then : 15468 rm -f conftest.$ac_objext conftest$ac_exeext
15469 if { (ac_try="$ac_link"
15470 case "(($ac_try" in
15471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15472 *) ac_try_echo=$ac_try;;
15473 esac
15474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15475 $as_echo "$ac_try_echo") >&5
15476 (eval "$ac_link") 2>conftest.er1
15477 ac_status=$?
15478 grep -v '^ *+' conftest.er1 >conftest.err
15479 rm -f conftest.er1
15480 cat conftest.err >&5
15481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } && {
15483 test -z "$ac_c_werror_flag" ||
15484 test ! -s conftest.err
15485 } && test -s conftest$ac_exeext && {
15486 test "$cross_compiling" = yes ||
15487 $as_test_x conftest$ac_exeext
15488 }; then
9902 ac_cv_lib_gif_EGifPutExtensionLast=yes 15489 ac_cv_lib_gif_EGifPutExtensionLast=yes
9903 else 15490 else
9904 ac_cv_lib_gif_EGifPutExtensionLast=no 15491 $as_echo "$as_me: failed program was:" >&5
9905 fi 15492 sed 's/^/| /' conftest.$ac_ext >&5
9906 rm -f core conftest.err conftest.$ac_objext \ 15493
9907 conftest$ac_exeext conftest.$ac_ext 15494 ac_cv_lib_gif_EGifPutExtensionLast=no
15495 fi
15496
15497 rm -rf conftest.dSYM
15498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15499 conftest$ac_exeext conftest.$ac_ext
9908 LIBS=$ac_check_lib_save_LIBS 15500 LIBS=$ac_check_lib_save_LIBS
9909 fi 15501 fi
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5 15502 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
9911 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; } 15503 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
9912 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then : 15504 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
9913 HAVE_GIF=yes 15505 HAVE_GIF=yes
9914 else 15506 else
9915 try_libungif=yes 15507 HAVE_GIF=maybe
9916 fi 15508 fi
9917 15509
9918 fi 15510 fi
9919 15511
9920 15512
9921 15513
9922 if test "$HAVE_GIF" = yes; then 15514 if test "$HAVE_GIF" = yes; then
9923 ac_gif_lib_name="-lgif" 15515 LIBGIF=-lgif
9924 fi 15516 elif test "$HAVE_GIF" = maybe; then
9925
9926 # If gif_lib.h but no libgif, try libungif. 15517 # If gif_lib.h but no libgif, try libungif.
9927 if test x"$try_libungif" = xyes; then 15518 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
9929 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; } 15519 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
9930 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then : 15520 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
9931 $as_echo_n "(cached) " >&6 15521 $as_echo_n "(cached) " >&6
9932 else 15522 else
9933 ac_check_lib_save_LIBS=$LIBS 15523 ac_check_lib_save_LIBS=$LIBS
9934 LIBS="-lungif $LIBS" 15524 LIBS="-lungif $LIBS"
9935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15525 cat >conftest.$ac_ext <<_ACEOF
15526 /* confdefs.h. */
15527 _ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
9936 /* end confdefs.h. */ 15530 /* end confdefs.h. */
9937 15531
9938 /* Override any GCC internal prototype to avoid an error. 15532 /* Override any GCC internal prototype to avoid an error.
9939 Use char because int might match the return type of a GCC 15533 Use char because int might match the return type of a GCC
9940 builtin and then its argument prototype would still apply. */ 15534 builtin and then its argument prototype would still apply. */
9948 return EGifPutExtensionLast (); 15542 return EGifPutExtensionLast ();
9949 ; 15543 ;
9950 return 0; 15544 return 0;
9951 } 15545 }
9952 _ACEOF 15546 _ACEOF
9953 if ac_fn_c_try_link "$LINENO"; then : 15547 rm -f conftest.$ac_objext conftest$ac_exeext
15548 if { (ac_try="$ac_link"
15549 case "(($ac_try" in
15550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551 *) ac_try_echo=$ac_try;;
15552 esac
15553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15554 $as_echo "$ac_try_echo") >&5
15555 (eval "$ac_link") 2>conftest.er1
15556 ac_status=$?
15557 grep -v '^ *+' conftest.er1 >conftest.err
15558 rm -f conftest.er1
15559 cat conftest.err >&5
15560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); } && {
15562 test -z "$ac_c_werror_flag" ||
15563 test ! -s conftest.err
15564 } && test -s conftest$ac_exeext && {
15565 test "$cross_compiling" = yes ||
15566 $as_test_x conftest$ac_exeext
15567 }; then
9954 ac_cv_lib_ungif_EGifPutExtensionLast=yes 15568 ac_cv_lib_ungif_EGifPutExtensionLast=yes
9955 else 15569 else
9956 ac_cv_lib_ungif_EGifPutExtensionLast=no 15570 $as_echo "$as_me: failed program was:" >&5
9957 fi 15571 sed 's/^/| /' conftest.$ac_ext >&5
9958 rm -f core conftest.err conftest.$ac_objext \ 15572
9959 conftest$ac_exeext conftest.$ac_ext 15573 ac_cv_lib_ungif_EGifPutExtensionLast=no
15574 fi
15575
15576 rm -rf conftest.dSYM
15577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15578 conftest$ac_exeext conftest.$ac_ext
9960 LIBS=$ac_check_lib_save_LIBS 15579 LIBS=$ac_check_lib_save_LIBS
9961 fi 15580 fi
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 15581 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
9963 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; } 15582 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
9964 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then : 15583 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
9965 HAVE_GIF=yes 15584 HAVE_GIF=yes
9966 fi 15585 else
9967 15586 HAVE_GIF=no
9968 15587 fi
9969 if test "$HAVE_GIF" = yes; then 15588
9970 15589 test "$HAVE_GIF" = yes && LIBGIF=-lungif
9971 $as_echo "#define LIBGIF -lungif" >>confdefs.h
9972
9973 ac_gif_lib_name="-lungif"
9974 fi
9975 fi 15590 fi
9976 15591
9977 if test "${HAVE_GIF}" = "yes"; then 15592 if test "${HAVE_GIF}" = "yes"; then
9978 15593
9979 $as_echo "#define HAVE_GIF 1" >>confdefs.h 15594 cat >>confdefs.h <<\_ACEOF
15595 #define HAVE_GIF 1
15596 _ACEOF
9980 15597
9981 fi 15598 fi
9982 fi 15599 fi
15600
9983 15601
9984 if test "${HAVE_X11}" = "yes"; then 15602 if test "${HAVE_X11}" = "yes"; then
9985 MISSING="" 15603 MISSING=""
9986 WITH_NO="" 15604 WITH_NO=""
9987 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" && 15605 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
9994 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no" 15612 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
9995 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" && 15613 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
9996 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no" 15614 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
9997 15615
9998 if test "X${MISSING}" != X; then 15616 if test "X${MISSING}" != X; then
9999 as_fn_error "The following required libraries were not found: 15617 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
10000 $MISSING 15618 $MISSING
10001 Maybe some development libraries/packages are missing? 15619 Maybe some development libraries/packages are missing?
10002 If you don't want to link with them give 15620 If you don't want to link with them give
10003 $WITH_NO 15621 $WITH_NO
10004 as options to configure" "$LINENO" 5 15622 as options to configure" >&5
15623 $as_echo "$as_me: error: The following required libraries were not found:
15624 $MISSING
15625 Maybe some development libraries/packages are missing?
15626 If you don't want to link with them give
15627 $WITH_NO
15628 as options to configure" >&2;}
15629 { (exit 1); exit 1; }; }
10005 fi 15630 fi
10006 fi 15631 fi
10007 15632
10008 ### Use -lgpm if available, unless `--with-gpm=no'. 15633 ### Use -lgpm if available, unless `--with-gpm=no'.
10009 HAVE_GPM=no 15634 HAVE_GPM=no
15635 LIBGPM=
10010 if test "${with_gpm}" != "no"; then 15636 if test "${with_gpm}" != "no"; then
10011 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default" 15637 if test "${ac_cv_header_gpm_h+set}" = set; then
10012 if test "x$ac_cv_header_gpm_h" = x""yes; then : 15638 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5 15639 $as_echo_n "checking for gpm.h... " >&6; }
15640 if test "${ac_cv_header_gpm_h+set}" = set; then
15641 $as_echo_n "(cached) " >&6
15642 fi
15643 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15644 $as_echo "$ac_cv_header_gpm_h" >&6; }
15645 else
15646 # Is the header compilable?
15647 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15648 $as_echo_n "checking gpm.h usability... " >&6; }
15649 cat >conftest.$ac_ext <<_ACEOF
15650 /* confdefs.h. */
15651 _ACEOF
15652 cat confdefs.h >>conftest.$ac_ext
15653 cat >>conftest.$ac_ext <<_ACEOF
15654 /* end confdefs.h. */
15655 $ac_includes_default
15656 #include <gpm.h>
15657 _ACEOF
15658 rm -f conftest.$ac_objext
15659 if { (ac_try="$ac_compile"
15660 case "(($ac_try" in
15661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15662 *) ac_try_echo=$ac_try;;
15663 esac
15664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15665 $as_echo "$ac_try_echo") >&5
15666 (eval "$ac_compile") 2>conftest.er1
15667 ac_status=$?
15668 grep -v '^ *+' conftest.er1 >conftest.err
15669 rm -f conftest.er1
15670 cat conftest.err >&5
15671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); } && {
15673 test -z "$ac_c_werror_flag" ||
15674 test ! -s conftest.err
15675 } && test -s conftest.$ac_objext; then
15676 ac_header_compiler=yes
15677 else
15678 $as_echo "$as_me: failed program was:" >&5
15679 sed 's/^/| /' conftest.$ac_ext >&5
15680
15681 ac_header_compiler=no
15682 fi
15683
15684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15685 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15686 $as_echo "$ac_header_compiler" >&6; }
15687
15688 # Is the header present?
15689 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15690 $as_echo_n "checking gpm.h presence... " >&6; }
15691 cat >conftest.$ac_ext <<_ACEOF
15692 /* confdefs.h. */
15693 _ACEOF
15694 cat confdefs.h >>conftest.$ac_ext
15695 cat >>conftest.$ac_ext <<_ACEOF
15696 /* end confdefs.h. */
15697 #include <gpm.h>
15698 _ACEOF
15699 if { (ac_try="$ac_cpp conftest.$ac_ext"
15700 case "(($ac_try" in
15701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15702 *) ac_try_echo=$ac_try;;
15703 esac
15704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15705 $as_echo "$ac_try_echo") >&5
15706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15707 ac_status=$?
15708 grep -v '^ *+' conftest.er1 >conftest.err
15709 rm -f conftest.er1
15710 cat conftest.err >&5
15711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); } >/dev/null && {
15713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15714 test ! -s conftest.err
15715 }; then
15716 ac_header_preproc=yes
15717 else
15718 $as_echo "$as_me: failed program was:" >&5
15719 sed 's/^/| /' conftest.$ac_ext >&5
15720
15721 ac_header_preproc=no
15722 fi
15723
15724 rm -f conftest.err conftest.$ac_ext
15725 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15726 $as_echo "$ac_header_preproc" >&6; }
15727
15728 # So? What about this header?
15729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15730 yes:no: )
15731 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15732 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15733 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15734 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15735 ac_header_preproc=yes
15736 ;;
15737 no:yes:* )
15738 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15739 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15740 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15741 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15742 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15743 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15744 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15745 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15746 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15747 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15748 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15749 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15750
15751 ;;
15752 esac
15753 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15754 $as_echo_n "checking for gpm.h... " >&6; }
15755 if test "${ac_cv_header_gpm_h+set}" = set; then
15756 $as_echo_n "(cached) " >&6
15757 else
15758 ac_cv_header_gpm_h=$ac_header_preproc
15759 fi
15760 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15761 $as_echo "$ac_cv_header_gpm_h" >&6; }
15762
15763 fi
15764 if test $ac_cv_header_gpm_h = yes; then
15765 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
10014 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; } 15766 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10015 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then : 15767 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
10016 $as_echo_n "(cached) " >&6 15768 $as_echo_n "(cached) " >&6
10017 else 15769 else
10018 ac_check_lib_save_LIBS=$LIBS 15770 ac_check_lib_save_LIBS=$LIBS
10019 LIBS="-lgpm $LIBS" 15771 LIBS="-lgpm $LIBS"
10020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15772 cat >conftest.$ac_ext <<_ACEOF
15773 /* confdefs.h. */
15774 _ACEOF
15775 cat confdefs.h >>conftest.$ac_ext
15776 cat >>conftest.$ac_ext <<_ACEOF
10021 /* end confdefs.h. */ 15777 /* end confdefs.h. */
10022 15778
10023 /* Override any GCC internal prototype to avoid an error. 15779 /* Override any GCC internal prototype to avoid an error.
10024 Use char because int might match the return type of a GCC 15780 Use char because int might match the return type of a GCC
10025 builtin and then its argument prototype would still apply. */ 15781 builtin and then its argument prototype would still apply. */
10033 return Gpm_Open (); 15789 return Gpm_Open ();
10034 ; 15790 ;
10035 return 0; 15791 return 0;
10036 } 15792 }
10037 _ACEOF 15793 _ACEOF
10038 if ac_fn_c_try_link "$LINENO"; then : 15794 rm -f conftest.$ac_objext conftest$ac_exeext
15795 if { (ac_try="$ac_link"
15796 case "(($ac_try" in
15797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15798 *) ac_try_echo=$ac_try;;
15799 esac
15800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15801 $as_echo "$ac_try_echo") >&5
15802 (eval "$ac_link") 2>conftest.er1
15803 ac_status=$?
15804 grep -v '^ *+' conftest.er1 >conftest.err
15805 rm -f conftest.er1
15806 cat conftest.err >&5
15807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } && {
15809 test -z "$ac_c_werror_flag" ||
15810 test ! -s conftest.err
15811 } && test -s conftest$ac_exeext && {
15812 test "$cross_compiling" = yes ||
15813 $as_test_x conftest$ac_exeext
15814 }; then
10039 ac_cv_lib_gpm_Gpm_Open=yes 15815 ac_cv_lib_gpm_Gpm_Open=yes
10040 else 15816 else
10041 ac_cv_lib_gpm_Gpm_Open=no 15817 $as_echo "$as_me: failed program was:" >&5
10042 fi 15818 sed 's/^/| /' conftest.$ac_ext >&5
10043 rm -f core conftest.err conftest.$ac_objext \ 15819
10044 conftest$ac_exeext conftest.$ac_ext 15820 ac_cv_lib_gpm_Gpm_Open=no
15821 fi
15822
15823 rm -rf conftest.dSYM
15824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15825 conftest$ac_exeext conftest.$ac_ext
10045 LIBS=$ac_check_lib_save_LIBS 15826 LIBS=$ac_check_lib_save_LIBS
10046 fi 15827 fi
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5 15828 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10048 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; } 15829 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10049 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then : 15830 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
10050 HAVE_GPM=yes 15831 HAVE_GPM=yes
10051 fi 15832 fi
10052 15833
10053 fi 15834 fi
10054 15835
10055 15836
10056 fi 15837
10057 15838 if test "${HAVE_GPM}" = "yes"; then
10058 if test "${HAVE_GPM}" = "yes"; then 15839
10059 15840 cat >>confdefs.h <<\_ACEOF
10060 $as_echo "#define HAVE_GPM 1" >>confdefs.h 15841 #define HAVE_GPM 1
10061 15842 _ACEOF
10062 fi 15843
10063 15844 LIBGPM=-lgpm
10064 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default" 15845 fi
10065 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then : 15846 fi
10066 15847
10067 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h 15848
15849 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15850 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15851 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15852 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15853 $as_echo_n "(cached) " >&6
15854 fi
15855 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15856 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15857 else
15858 # Is the header compilable?
15859 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15860 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
15861 cat >conftest.$ac_ext <<_ACEOF
15862 /* confdefs.h. */
15863 _ACEOF
15864 cat confdefs.h >>conftest.$ac_ext
15865 cat >>conftest.$ac_ext <<_ACEOF
15866 /* end confdefs.h. */
15867 $ac_includes_default
15868 #include <malloc/malloc.h>
15869 _ACEOF
15870 rm -f conftest.$ac_objext
15871 if { (ac_try="$ac_compile"
15872 case "(($ac_try" in
15873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15874 *) ac_try_echo=$ac_try;;
15875 esac
15876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15877 $as_echo "$ac_try_echo") >&5
15878 (eval "$ac_compile") 2>conftest.er1
15879 ac_status=$?
15880 grep -v '^ *+' conftest.er1 >conftest.err
15881 rm -f conftest.er1
15882 cat conftest.err >&5
15883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); } && {
15885 test -z "$ac_c_werror_flag" ||
15886 test ! -s conftest.err
15887 } && test -s conftest.$ac_objext; then
15888 ac_header_compiler=yes
15889 else
15890 $as_echo "$as_me: failed program was:" >&5
15891 sed 's/^/| /' conftest.$ac_ext >&5
15892
15893 ac_header_compiler=no
15894 fi
15895
15896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15897 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15898 $as_echo "$ac_header_compiler" >&6; }
15899
15900 # Is the header present?
15901 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15902 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
15903 cat >conftest.$ac_ext <<_ACEOF
15904 /* confdefs.h. */
15905 _ACEOF
15906 cat confdefs.h >>conftest.$ac_ext
15907 cat >>conftest.$ac_ext <<_ACEOF
15908 /* end confdefs.h. */
15909 #include <malloc/malloc.h>
15910 _ACEOF
15911 if { (ac_try="$ac_cpp conftest.$ac_ext"
15912 case "(($ac_try" in
15913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15914 *) ac_try_echo=$ac_try;;
15915 esac
15916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15917 $as_echo "$ac_try_echo") >&5
15918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15919 ac_status=$?
15920 grep -v '^ *+' conftest.er1 >conftest.err
15921 rm -f conftest.er1
15922 cat conftest.err >&5
15923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); } >/dev/null && {
15925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15926 test ! -s conftest.err
15927 }; then
15928 ac_header_preproc=yes
15929 else
15930 $as_echo "$as_me: failed program was:" >&5
15931 sed 's/^/| /' conftest.$ac_ext >&5
15932
15933 ac_header_preproc=no
15934 fi
15935
15936 rm -f conftest.err conftest.$ac_ext
15937 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15938 $as_echo "$ac_header_preproc" >&6; }
15939
15940 # So? What about this header?
15941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15942 yes:no: )
15943 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
15944 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15945 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
15946 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
15947 ac_header_preproc=yes
15948 ;;
15949 no:yes:* )
15950 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
15951 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
15952 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
15953 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
15954 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
15955 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
15956 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
15957 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
15958 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
15959 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
15960 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
15961 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
15962
15963 ;;
15964 esac
15965 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15966 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15967 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15968 $as_echo_n "(cached) " >&6
15969 else
15970 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15971 fi
15972 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15973 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15974
15975 fi
15976 if test $ac_cv_header_malloc_malloc_h = yes; then
15977
15978 cat >>confdefs.h <<\_ACEOF
15979 #define HAVE_MALLOC_MALLOC_H 1
15980 _ACEOF
10068 15981
10069 fi 15982 fi
10070 15983
10071 15984
10072 15985
10073 ### Use NeXTstep API to implement GUI. 15986 ### Use NeXTstep API to implement GUI.
10074 if test "${HAVE_NS}" = "yes"; then 15987 if test "${HAVE_NS}" = "yes"; then
10075 15988
10076 $as_echo "#define HAVE_NS 1" >>confdefs.h 15989 cat >>confdefs.h <<\_ACEOF
15990 #define HAVE_NS 1
15991 _ACEOF
10077 15992
10078 if test "${NS_IMPL_COCOA}" = "yes"; then 15993 if test "${NS_IMPL_COCOA}" = "yes"; then
10079 15994
10080 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h 15995 cat >>confdefs.h <<\_ACEOF
15996 #define NS_IMPL_COCOA 1
15997 _ACEOF
10081 15998
10082 GNU_OBJC_CFLAGS= 15999 GNU_OBJC_CFLAGS=
10083 fi 16000 fi
10084 if test "${NS_IMPL_GNUSTEP}" = "yes"; then 16001 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
10085 16002
10086 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h 16003 cat >>confdefs.h <<\_ACEOF
16004 #define NS_IMPL_GNUSTEP 1
16005 _ACEOF
10087 16006
10088 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE" 16007 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
10089 fi 16008 fi
10090 if test "${NS_HAVE_NSINTEGER}" = "yes"; then 16009 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
10091 16010
10092 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h 16011 cat >>confdefs.h <<\_ACEOF
16012 #define NS_HAVE_NSINTEGER 1
16013 _ACEOF
10093 16014
10094 fi 16015 fi
10095 # We also have mouse menus. 16016 # We also have mouse menus.
10096 HAVE_MENUS=yes 16017 HAVE_MENUS=yes
10097 OTHER_FILES=ns-app 16018 OTHER_FILES=ns-app
10099 16020
10100 16021
10101 ### Use session management (-lSM -lICE) if available 16022 ### Use session management (-lSM -lICE) if available
10102 HAVE_X_SM=no 16023 HAVE_X_SM=no
10103 if test "${HAVE_X11}" = "yes"; then 16024 if test "${HAVE_X11}" = "yes"; then
10104 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default" 16025 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10105 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then : 16026 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5 16027 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16028 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16029 $as_echo_n "(cached) " >&6
16030 fi
16031 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16032 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16033 else
16034 # Is the header compilable?
16035 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16036 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16037 cat >conftest.$ac_ext <<_ACEOF
16038 /* confdefs.h. */
16039 _ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h. */
16043 $ac_includes_default
16044 #include <X11/SM/SMlib.h>
16045 _ACEOF
16046 rm -f conftest.$ac_objext
16047 if { (ac_try="$ac_compile"
16048 case "(($ac_try" in
16049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050 *) ac_try_echo=$ac_try;;
16051 esac
16052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16053 $as_echo "$ac_try_echo") >&5
16054 (eval "$ac_compile") 2>conftest.er1
16055 ac_status=$?
16056 grep -v '^ *+' conftest.er1 >conftest.err
16057 rm -f conftest.er1
16058 cat conftest.err >&5
16059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); } && {
16061 test -z "$ac_c_werror_flag" ||
16062 test ! -s conftest.err
16063 } && test -s conftest.$ac_objext; then
16064 ac_header_compiler=yes
16065 else
16066 $as_echo "$as_me: failed program was:" >&5
16067 sed 's/^/| /' conftest.$ac_ext >&5
16068
16069 ac_header_compiler=no
16070 fi
16071
16072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16073 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16074 $as_echo "$ac_header_compiler" >&6; }
16075
16076 # Is the header present?
16077 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16078 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16079 cat >conftest.$ac_ext <<_ACEOF
16080 /* confdefs.h. */
16081 _ACEOF
16082 cat confdefs.h >>conftest.$ac_ext
16083 cat >>conftest.$ac_ext <<_ACEOF
16084 /* end confdefs.h. */
16085 #include <X11/SM/SMlib.h>
16086 _ACEOF
16087 if { (ac_try="$ac_cpp conftest.$ac_ext"
16088 case "(($ac_try" in
16089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16090 *) ac_try_echo=$ac_try;;
16091 esac
16092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16093 $as_echo "$ac_try_echo") >&5
16094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16095 ac_status=$?
16096 grep -v '^ *+' conftest.er1 >conftest.err
16097 rm -f conftest.er1
16098 cat conftest.err >&5
16099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); } >/dev/null && {
16101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16102 test ! -s conftest.err
16103 }; then
16104 ac_header_preproc=yes
16105 else
16106 $as_echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.$ac_ext >&5
16108
16109 ac_header_preproc=no
16110 fi
16111
16112 rm -f conftest.err conftest.$ac_ext
16113 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16114 $as_echo "$ac_header_preproc" >&6; }
16115
16116 # So? What about this header?
16117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16118 yes:no: )
16119 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16120 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16121 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16122 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16123 ac_header_preproc=yes
16124 ;;
16125 no:yes:* )
16126 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16127 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16128 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16129 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16130 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16131 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16132 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16133 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16134 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16135 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16136 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16137 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16138
16139 ;;
16140 esac
16141 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16142 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16143 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16144 $as_echo_n "(cached) " >&6
16145 else
16146 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16147 fi
16148 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16149 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16150
16151 fi
16152 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16153 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10107 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; } 16154 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
10108 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then : 16155 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10109 $as_echo_n "(cached) " >&6 16156 $as_echo_n "(cached) " >&6
10110 else 16157 else
10111 ac_check_lib_save_LIBS=$LIBS 16158 ac_check_lib_save_LIBS=$LIBS
10112 LIBS="-lSM -lICE $LIBS" 16159 LIBS="-lSM -lICE $LIBS"
10113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16160 cat >conftest.$ac_ext <<_ACEOF
16161 /* confdefs.h. */
16162 _ACEOF
16163 cat confdefs.h >>conftest.$ac_ext
16164 cat >>conftest.$ac_ext <<_ACEOF
10114 /* end confdefs.h. */ 16165 /* end confdefs.h. */
10115 16166
10116 /* Override any GCC internal prototype to avoid an error. 16167 /* Override any GCC internal prototype to avoid an error.
10117 Use char because int might match the return type of a GCC 16168 Use char because int might match the return type of a GCC
10118 builtin and then its argument prototype would still apply. */ 16169 builtin and then its argument prototype would still apply. */
10126 return SmcOpenConnection (); 16177 return SmcOpenConnection ();
10127 ; 16178 ;
10128 return 0; 16179 return 0;
10129 } 16180 }
10130 _ACEOF 16181 _ACEOF
10131 if ac_fn_c_try_link "$LINENO"; then : 16182 rm -f conftest.$ac_objext conftest$ac_exeext
16183 if { (ac_try="$ac_link"
16184 case "(($ac_try" in
16185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16186 *) ac_try_echo=$ac_try;;
16187 esac
16188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16189 $as_echo "$ac_try_echo") >&5
16190 (eval "$ac_link") 2>conftest.er1
16191 ac_status=$?
16192 grep -v '^ *+' conftest.er1 >conftest.err
16193 rm -f conftest.er1
16194 cat conftest.err >&5
16195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); } && {
16197 test -z "$ac_c_werror_flag" ||
16198 test ! -s conftest.err
16199 } && test -s conftest$ac_exeext && {
16200 test "$cross_compiling" = yes ||
16201 $as_test_x conftest$ac_exeext
16202 }; then
10132 ac_cv_lib_SM_SmcOpenConnection=yes 16203 ac_cv_lib_SM_SmcOpenConnection=yes
10133 else 16204 else
10134 ac_cv_lib_SM_SmcOpenConnection=no 16205 $as_echo "$as_me: failed program was:" >&5
10135 fi 16206 sed 's/^/| /' conftest.$ac_ext >&5
10136 rm -f core conftest.err conftest.$ac_objext \ 16207
10137 conftest$ac_exeext conftest.$ac_ext 16208 ac_cv_lib_SM_SmcOpenConnection=no
16209 fi
16210
16211 rm -rf conftest.dSYM
16212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16213 conftest$ac_exeext conftest.$ac_ext
10138 LIBS=$ac_check_lib_save_LIBS 16214 LIBS=$ac_check_lib_save_LIBS
10139 fi 16215 fi
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 16216 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10141 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; } 16217 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
10142 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then : 16218 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10143 HAVE_X_SM=yes 16219 HAVE_X_SM=yes
10144 fi 16220 fi
10145 16221
10146 fi 16222 fi
10147 16223
10148 16224
10149 16225
10150 if test "${HAVE_X_SM}" = "yes"; then 16226 if test "${HAVE_X_SM}" = "yes"; then
10151 16227
10152 $as_echo "#define HAVE_X_SM 1" >>confdefs.h 16228 cat >>confdefs.h <<\_ACEOF
16229 #define HAVE_X_SM 1
16230 _ACEOF
10153 16231
10154 case "$LIBS" in 16232 case "$LIBS" in
10155 *-lSM*) ;; 16233 *-lSM*) ;;
10156 *) LIBS="-lSM -lICE $LIBS" ;; 16234 *) LIBS="-lSM -lICE $LIBS" ;;
10157 esac 16235 esac
10158 fi 16236 fi
10159 fi 16237 fi
10160 16238
10161 # If netdb.h doesn't declare h_errno, we must declare it by hand. 16239 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5 16240 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10163 $as_echo_n "checking whether netdb declares h_errno... " >&6; } 16241 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
10164 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then : 16242 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10165 $as_echo_n "(cached) " >&6 16243 $as_echo_n "(cached) " >&6
10166 else 16244 else
10167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16245 cat >conftest.$ac_ext <<_ACEOF
16246 /* confdefs.h. */
16247 _ACEOF
16248 cat confdefs.h >>conftest.$ac_ext
16249 cat >>conftest.$ac_ext <<_ACEOF
10168 /* end confdefs.h. */ 16250 /* end confdefs.h. */
10169 #include <netdb.h> 16251 #include <netdb.h>
10170 int 16252 int
10171 main () 16253 main ()
10172 { 16254 {
10173 return h_errno; 16255 return h_errno;
10174 ; 16256 ;
10175 return 0; 16257 return 0;
10176 } 16258 }
10177 _ACEOF 16259 _ACEOF
10178 if ac_fn_c_try_link "$LINENO"; then : 16260 rm -f conftest.$ac_objext conftest$ac_exeext
16261 if { (ac_try="$ac_link"
16262 case "(($ac_try" in
16263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16265 esac
16266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16267 $as_echo "$ac_try_echo") >&5
16268 (eval "$ac_link") 2>conftest.er1
16269 ac_status=$?
16270 grep -v '^ *+' conftest.er1 >conftest.err
16271 rm -f conftest.er1
16272 cat conftest.err >&5
16273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); } && {
16275 test -z "$ac_c_werror_flag" ||
16276 test ! -s conftest.err
16277 } && test -s conftest$ac_exeext && {
16278 test "$cross_compiling" = yes ||
16279 $as_test_x conftest$ac_exeext
16280 }; then
10179 emacs_cv_netdb_declares_h_errno=yes 16281 emacs_cv_netdb_declares_h_errno=yes
10180 else 16282 else
10181 emacs_cv_netdb_declares_h_errno=no 16283 $as_echo "$as_me: failed program was:" >&5
10182 fi 16284 sed 's/^/| /' conftest.$ac_ext >&5
10183 rm -f core conftest.err conftest.$ac_objext \ 16285
10184 conftest$ac_exeext conftest.$ac_ext 16286 emacs_cv_netdb_declares_h_errno=no
10185 fi 16287 fi
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5 16288
16289 rm -rf conftest.dSYM
16290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16291 conftest$ac_exeext conftest.$ac_ext
16292 fi
16293 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10187 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; } 16294 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
10188 if test $emacs_cv_netdb_declares_h_errno = yes; then 16295 if test $emacs_cv_netdb_declares_h_errno = yes; then
10189 16296
10190 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h 16297 cat >>confdefs.h <<\_ACEOF
16298 #define HAVE_H_ERRNO 1
16299 _ACEOF
10191 16300
10192 fi 16301 fi
10193 16302
10194 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 16303 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10195 # for constant arguments. Useless! 16304 # for constant arguments. Useless!
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 16305 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
10197 $as_echo_n "checking for working alloca.h... " >&6; } 16306 $as_echo_n "checking for working alloca.h... " >&6; }
10198 if test "${ac_cv_working_alloca_h+set}" = set; then : 16307 if test "${ac_cv_working_alloca_h+set}" = set; then
10199 $as_echo_n "(cached) " >&6 16308 $as_echo_n "(cached) " >&6
10200 else 16309 else
10201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16310 cat >conftest.$ac_ext <<_ACEOF
16311 /* confdefs.h. */
16312 _ACEOF
16313 cat confdefs.h >>conftest.$ac_ext
16314 cat >>conftest.$ac_ext <<_ACEOF
10202 /* end confdefs.h. */ 16315 /* end confdefs.h. */
10203 #include <alloca.h> 16316 #include <alloca.h>
10204 int 16317 int
10205 main () 16318 main ()
10206 { 16319 {
10208 if (p) return 0; 16321 if (p) return 0;
10209 ; 16322 ;
10210 return 0; 16323 return 0;
10211 } 16324 }
10212 _ACEOF 16325 _ACEOF
10213 if ac_fn_c_try_link "$LINENO"; then : 16326 rm -f conftest.$ac_objext conftest$ac_exeext
16327 if { (ac_try="$ac_link"
16328 case "(($ac_try" in
16329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16330 *) ac_try_echo=$ac_try;;
16331 esac
16332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16333 $as_echo "$ac_try_echo") >&5
16334 (eval "$ac_link") 2>conftest.er1
16335 ac_status=$?
16336 grep -v '^ *+' conftest.er1 >conftest.err
16337 rm -f conftest.er1
16338 cat conftest.err >&5
16339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); } && {
16341 test -z "$ac_c_werror_flag" ||
16342 test ! -s conftest.err
16343 } && test -s conftest$ac_exeext && {
16344 test "$cross_compiling" = yes ||
16345 $as_test_x conftest$ac_exeext
16346 }; then
10214 ac_cv_working_alloca_h=yes 16347 ac_cv_working_alloca_h=yes
10215 else 16348 else
10216 ac_cv_working_alloca_h=no 16349 $as_echo "$as_me: failed program was:" >&5
10217 fi 16350 sed 's/^/| /' conftest.$ac_ext >&5
10218 rm -f core conftest.err conftest.$ac_objext \ 16351
10219 conftest$ac_exeext conftest.$ac_ext 16352 ac_cv_working_alloca_h=no
10220 fi 16353 fi
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 16354
16355 rm -rf conftest.dSYM
16356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16357 conftest$ac_exeext conftest.$ac_ext
16358 fi
16359 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10222 $as_echo "$ac_cv_working_alloca_h" >&6; } 16360 $as_echo "$ac_cv_working_alloca_h" >&6; }
10223 if test $ac_cv_working_alloca_h = yes; then 16361 if test $ac_cv_working_alloca_h = yes; then
10224 16362
10225 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 16363 cat >>confdefs.h <<\_ACEOF
10226 16364 #define HAVE_ALLOCA_H 1
10227 fi 16365 _ACEOF
10228 16366
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 16367 fi
16368
16369 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
10230 $as_echo_n "checking for alloca... " >&6; } 16370 $as_echo_n "checking for alloca... " >&6; }
10231 if test "${ac_cv_func_alloca_works+set}" = set; then : 16371 if test "${ac_cv_func_alloca_works+set}" = set; then
10232 $as_echo_n "(cached) " >&6 16372 $as_echo_n "(cached) " >&6
10233 else 16373 else
10234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16374 cat >conftest.$ac_ext <<_ACEOF
16375 /* confdefs.h. */
16376 _ACEOF
16377 cat confdefs.h >>conftest.$ac_ext
16378 cat >>conftest.$ac_ext <<_ACEOF
10235 /* end confdefs.h. */ 16379 /* end confdefs.h. */
10236 #ifdef __GNUC__ 16380 #ifdef __GNUC__
10237 # define alloca __builtin_alloca 16381 # define alloca __builtin_alloca
10238 #else 16382 #else
10239 # ifdef _MSC_VER 16383 # ifdef _MSC_VER
10261 if (p) return 0; 16405 if (p) return 0;
10262 ; 16406 ;
10263 return 0; 16407 return 0;
10264 } 16408 }
10265 _ACEOF 16409 _ACEOF
10266 if ac_fn_c_try_link "$LINENO"; then : 16410 rm -f conftest.$ac_objext conftest$ac_exeext
16411 if { (ac_try="$ac_link"
16412 case "(($ac_try" in
16413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16414 *) ac_try_echo=$ac_try;;
16415 esac
16416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16417 $as_echo "$ac_try_echo") >&5
16418 (eval "$ac_link") 2>conftest.er1
16419 ac_status=$?
16420 grep -v '^ *+' conftest.er1 >conftest.err
16421 rm -f conftest.er1
16422 cat conftest.err >&5
16423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); } && {
16425 test -z "$ac_c_werror_flag" ||
16426 test ! -s conftest.err
16427 } && test -s conftest$ac_exeext && {
16428 test "$cross_compiling" = yes ||
16429 $as_test_x conftest$ac_exeext
16430 }; then
10267 ac_cv_func_alloca_works=yes 16431 ac_cv_func_alloca_works=yes
10268 else 16432 else
10269 ac_cv_func_alloca_works=no 16433 $as_echo "$as_me: failed program was:" >&5
10270 fi 16434 sed 's/^/| /' conftest.$ac_ext >&5
10271 rm -f core conftest.err conftest.$ac_objext \ 16435
10272 conftest$ac_exeext conftest.$ac_ext 16436 ac_cv_func_alloca_works=no
10273 fi 16437 fi
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 16438
16439 rm -rf conftest.dSYM
16440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16441 conftest$ac_exeext conftest.$ac_ext
16442 fi
16443 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10275 $as_echo "$ac_cv_func_alloca_works" >&6; } 16444 $as_echo "$ac_cv_func_alloca_works" >&6; }
10276 16445
10277 if test $ac_cv_func_alloca_works = yes; then 16446 if test $ac_cv_func_alloca_works = yes; then
10278 16447
10279 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 16448 cat >>confdefs.h <<\_ACEOF
16449 #define HAVE_ALLOCA 1
16450 _ACEOF
10280 16451
10281 else 16452 else
10282 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 16453 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10283 # that cause trouble. Some versions do not even contain alloca or 16454 # that cause trouble. Some versions do not even contain alloca or
10284 # contain a buggy version. If you still want to use their alloca, 16455 # contain a buggy version. If you still want to use their alloca,
10285 # use ar to extract alloca.o from them instead of compiling alloca.c. 16456 # use ar to extract alloca.o from them instead of compiling alloca.c.
10286 16457
10287 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 16458 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10288 16459
10289 $as_echo "#define C_ALLOCA 1" >>confdefs.h 16460 cat >>confdefs.h <<\_ACEOF
10290 16461 #define C_ALLOCA 1
10291 16462 _ACEOF
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 16463
16464
16465 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10293 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 16466 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10294 if test "${ac_cv_os_cray+set}" = set; then : 16467 if test "${ac_cv_os_cray+set}" = set; then
10295 $as_echo_n "(cached) " >&6 16468 $as_echo_n "(cached) " >&6
10296 else 16469 else
10297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16470 cat >conftest.$ac_ext <<_ACEOF
16471 /* confdefs.h. */
16472 _ACEOF
16473 cat confdefs.h >>conftest.$ac_ext
16474 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h. */ 16475 /* end confdefs.h. */
10299 #if defined CRAY && ! defined CRAY2 16476 #if defined CRAY && ! defined CRAY2
10300 webecray 16477 webecray
10301 #else 16478 #else
10302 wenotbecray 16479 wenotbecray
10303 #endif 16480 #endif
10304 16481
10305 _ACEOF 16482 _ACEOF
10306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10307 $EGREP "webecray" >/dev/null 2>&1; then : 16484 $EGREP "webecray" >/dev/null 2>&1; then
10308 ac_cv_os_cray=yes 16485 ac_cv_os_cray=yes
10309 else 16486 else
10310 ac_cv_os_cray=no 16487 ac_cv_os_cray=no
10311 fi 16488 fi
10312 rm -f conftest* 16489 rm -f conftest*
10313 16490
10314 fi 16491 fi
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 16492 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10316 $as_echo "$ac_cv_os_cray" >&6; } 16493 $as_echo "$ac_cv_os_cray" >&6; }
10317 if test $ac_cv_os_cray = yes; then 16494 if test $ac_cv_os_cray = yes; then
10318 for ac_func in _getb67 GETB67 getb67; do 16495 for ac_func in _getb67 GETB67 getb67; do
10319 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16496 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10320 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16497 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10321 eval as_val=\$$as_ac_var 16498 $as_echo_n "checking for $ac_func... " >&6; }
10322 if test "x$as_val" = x""yes; then : 16499 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16500 $as_echo_n "(cached) " >&6
16501 else
16502 cat >conftest.$ac_ext <<_ACEOF
16503 /* confdefs.h. */
16504 _ACEOF
16505 cat confdefs.h >>conftest.$ac_ext
16506 cat >>conftest.$ac_ext <<_ACEOF
16507 /* end confdefs.h. */
16508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16510 #define $ac_func innocuous_$ac_func
16511
16512 /* System header to define __stub macros and hopefully few prototypes,
16513 which can conflict with char $ac_func (); below.
16514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16515 <limits.h> exists even on freestanding compilers. */
16516
16517 #ifdef __STDC__
16518 # include <limits.h>
16519 #else
16520 # include <assert.h>
16521 #endif
16522
16523 #undef $ac_func
16524
16525 /* Override any GCC internal prototype to avoid an error.
16526 Use char because int might match the return type of a GCC
16527 builtin and then its argument prototype would still apply. */
16528 #ifdef __cplusplus
16529 extern "C"
16530 #endif
16531 char $ac_func ();
16532 /* The GNU C library defines this for functions which it implements
16533 to always fail with ENOSYS. Some functions are actually named
16534 something starting with __ and the normal name is an alias. */
16535 #if defined __stub_$ac_func || defined __stub___$ac_func
16536 choke me
16537 #endif
16538
16539 int
16540 main ()
16541 {
16542 return $ac_func ();
16543 ;
16544 return 0;
16545 }
16546 _ACEOF
16547 rm -f conftest.$ac_objext conftest$ac_exeext
16548 if { (ac_try="$ac_link"
16549 case "(($ac_try" in
16550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16551 *) ac_try_echo=$ac_try;;
16552 esac
16553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16554 $as_echo "$ac_try_echo") >&5
16555 (eval "$ac_link") 2>conftest.er1
16556 ac_status=$?
16557 grep -v '^ *+' conftest.er1 >conftest.err
16558 rm -f conftest.er1
16559 cat conftest.err >&5
16560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); } && {
16562 test -z "$ac_c_werror_flag" ||
16563 test ! -s conftest.err
16564 } && test -s conftest$ac_exeext && {
16565 test "$cross_compiling" = yes ||
16566 $as_test_x conftest$ac_exeext
16567 }; then
16568 eval "$as_ac_var=yes"
16569 else
16570 $as_echo "$as_me: failed program was:" >&5
16571 sed 's/^/| /' conftest.$ac_ext >&5
16572
16573 eval "$as_ac_var=no"
16574 fi
16575
16576 rm -rf conftest.dSYM
16577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16578 conftest$ac_exeext conftest.$ac_ext
16579 fi
16580 ac_res=`eval 'as_val=${'$as_ac_var'}
16581 $as_echo "$as_val"'`
16582 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16583 $as_echo "$ac_res" >&6; }
16584 if test `eval 'as_val=${'$as_ac_var'}
16585 $as_echo "$as_val"'` = yes; then
10323 16586
10324 cat >>confdefs.h <<_ACEOF 16587 cat >>confdefs.h <<_ACEOF
10325 #define CRAY_STACKSEG_END $ac_func 16588 #define CRAY_STACKSEG_END $ac_func
10326 _ACEOF 16589 _ACEOF
10327 16590
10329 fi 16592 fi
10330 16593
10331 done 16594 done
10332 fi 16595 fi
10333 16596
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 16597 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10335 $as_echo_n "checking stack direction for C alloca... " >&6; } 16598 $as_echo_n "checking stack direction for C alloca... " >&6; }
10336 if test "${ac_cv_c_stack_direction+set}" = set; then : 16599 if test "${ac_cv_c_stack_direction+set}" = set; then
10337 $as_echo_n "(cached) " >&6 16600 $as_echo_n "(cached) " >&6
10338 else 16601 else
10339 if test "$cross_compiling" = yes; then : 16602 if test "$cross_compiling" = yes; then
10340 ac_cv_c_stack_direction=0 16603 ac_cv_c_stack_direction=0
10341 else 16604 else
10342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16605 cat >conftest.$ac_ext <<_ACEOF
16606 /* confdefs.h. */
16607 _ACEOF
16608 cat confdefs.h >>conftest.$ac_ext
16609 cat >>conftest.$ac_ext <<_ACEOF
10343 /* end confdefs.h. */ 16610 /* end confdefs.h. */
10344 $ac_includes_default 16611 $ac_includes_default
10345 int 16612 int
10346 find_stack_direction () 16613 find_stack_direction ()
10347 { 16614 {
10360 main () 16627 main ()
10361 { 16628 {
10362 return find_stack_direction () < 0; 16629 return find_stack_direction () < 0;
10363 } 16630 }
10364 _ACEOF 16631 _ACEOF
10365 if ac_fn_c_try_run "$LINENO"; then : 16632 rm -f conftest$ac_exeext
16633 if { (ac_try="$ac_link"
16634 case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16637 esac
16638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16639 $as_echo "$ac_try_echo") >&5
16640 (eval "$ac_link") 2>&5
16641 ac_status=$?
16642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16644 { (case "(($ac_try" in
16645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16646 *) ac_try_echo=$ac_try;;
16647 esac
16648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16649 $as_echo "$ac_try_echo") >&5
16650 (eval "$ac_try") 2>&5
16651 ac_status=$?
16652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); }; }; then
10366 ac_cv_c_stack_direction=1 16654 ac_cv_c_stack_direction=1
10367 else 16655 else
10368 ac_cv_c_stack_direction=-1 16656 $as_echo "$as_me: program exited with status $ac_status" >&5
10369 fi 16657 $as_echo "$as_me: failed program was:" >&5
10370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16658 sed 's/^/| /' conftest.$ac_ext >&5
10371 conftest.$ac_objext conftest.beam conftest.$ac_ext 16659
10372 fi 16660 ( exit $ac_status )
10373 16661 ac_cv_c_stack_direction=-1
10374 fi 16662 fi
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 16663 rm -rf conftest.dSYM
16664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16665 fi
16666
16667
16668 fi
16669 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10376 $as_echo "$ac_cv_c_stack_direction" >&6; } 16670 $as_echo "$ac_cv_c_stack_direction" >&6; }
16671
10377 cat >>confdefs.h <<_ACEOF 16672 cat >>confdefs.h <<_ACEOF
10378 #define STACK_DIRECTION $ac_cv_c_stack_direction 16673 #define STACK_DIRECTION $ac_cv_c_stack_direction
10379 _ACEOF 16674 _ACEOF
10380 16675
10381 16676
10382 fi 16677 fi
10383 16678
10384 16679
10385 if test x"$ac_cv_func_alloca_works" != xyes; then 16680 if test x"$ac_cv_func_alloca_works" != xyes; then
10386 as_fn_error "a system implementation of alloca is required " "$LINENO" 5 16681 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16682 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16683 { (exit 1); exit 1; }; }
10387 fi 16684 fi
10388 16685
10389 # fmod, logb, and frexp are found in -lm on most systems. 16686 # fmod, logb, and frexp are found in -lm on most systems.
10390 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. 16687 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 16688
16689 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10392 $as_echo_n "checking for sqrt in -lm... " >&6; } 16690 $as_echo_n "checking for sqrt in -lm... " >&6; }
10393 if test "${ac_cv_lib_m_sqrt+set}" = set; then : 16691 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10394 $as_echo_n "(cached) " >&6 16692 $as_echo_n "(cached) " >&6
10395 else 16693 else
10396 ac_check_lib_save_LIBS=$LIBS 16694 ac_check_lib_save_LIBS=$LIBS
10397 LIBS="-lm $LIBS" 16695 LIBS="-lm $LIBS"
10398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16696 cat >conftest.$ac_ext <<_ACEOF
16697 /* confdefs.h. */
16698 _ACEOF
16699 cat confdefs.h >>conftest.$ac_ext
16700 cat >>conftest.$ac_ext <<_ACEOF
10399 /* end confdefs.h. */ 16701 /* end confdefs.h. */
10400 16702
10401 /* Override any GCC internal prototype to avoid an error. 16703 /* Override any GCC internal prototype to avoid an error.
10402 Use char because int might match the return type of a GCC 16704 Use char because int might match the return type of a GCC
10403 builtin and then its argument prototype would still apply. */ 16705 builtin and then its argument prototype would still apply. */
10411 return sqrt (); 16713 return sqrt ();
10412 ; 16714 ;
10413 return 0; 16715 return 0;
10414 } 16716 }
10415 _ACEOF 16717 _ACEOF
10416 if ac_fn_c_try_link "$LINENO"; then : 16718 rm -f conftest.$ac_objext conftest$ac_exeext
16719 if { (ac_try="$ac_link"
16720 case "(($ac_try" in
16721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722 *) ac_try_echo=$ac_try;;
16723 esac
16724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16725 $as_echo "$ac_try_echo") >&5
16726 (eval "$ac_link") 2>conftest.er1
16727 ac_status=$?
16728 grep -v '^ *+' conftest.er1 >conftest.err
16729 rm -f conftest.er1
16730 cat conftest.err >&5
16731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } && {
16733 test -z "$ac_c_werror_flag" ||
16734 test ! -s conftest.err
16735 } && test -s conftest$ac_exeext && {
16736 test "$cross_compiling" = yes ||
16737 $as_test_x conftest$ac_exeext
16738 }; then
10417 ac_cv_lib_m_sqrt=yes 16739 ac_cv_lib_m_sqrt=yes
10418 else 16740 else
10419 ac_cv_lib_m_sqrt=no 16741 $as_echo "$as_me: failed program was:" >&5
10420 fi 16742 sed 's/^/| /' conftest.$ac_ext >&5
10421 rm -f core conftest.err conftest.$ac_objext \ 16743
10422 conftest$ac_exeext conftest.$ac_ext 16744 ac_cv_lib_m_sqrt=no
16745 fi
16746
16747 rm -rf conftest.dSYM
16748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16749 conftest$ac_exeext conftest.$ac_ext
10423 LIBS=$ac_check_lib_save_LIBS 16750 LIBS=$ac_check_lib_save_LIBS
10424 fi 16751 fi
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 16752 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10426 $as_echo "$ac_cv_lib_m_sqrt" >&6; } 16753 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
10427 if test "x$ac_cv_lib_m_sqrt" = x""yes; then : 16754 if test $ac_cv_lib_m_sqrt = yes; then
10428 cat >>confdefs.h <<_ACEOF 16755 cat >>confdefs.h <<_ACEOF
10429 #define HAVE_LIBM 1 16756 #define HAVE_LIBM 1
10430 _ACEOF 16757 _ACEOF
10431 16758
10432 LIBS="-lm $LIBS" 16759 LIBS="-lm $LIBS"
10434 fi 16761 fi
10435 16762
10436 16763
10437 # Check for mail-locking functions in a "mail" library. Probably this should 16764 # Check for mail-locking functions in a "mail" library. Probably this should
10438 # have the same check as for liblockfile below. 16765 # have the same check as for liblockfile below.
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5 16766 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10440 $as_echo_n "checking for maillock in -lmail... " >&6; } 16767 $as_echo_n "checking for maillock in -lmail... " >&6; }
10441 if test "${ac_cv_lib_mail_maillock+set}" = set; then : 16768 if test "${ac_cv_lib_mail_maillock+set}" = set; then
10442 $as_echo_n "(cached) " >&6 16769 $as_echo_n "(cached) " >&6
10443 else 16770 else
10444 ac_check_lib_save_LIBS=$LIBS 16771 ac_check_lib_save_LIBS=$LIBS
10445 LIBS="-lmail $LIBS" 16772 LIBS="-lmail $LIBS"
10446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16773 cat >conftest.$ac_ext <<_ACEOF
16774 /* confdefs.h. */
16775 _ACEOF
16776 cat confdefs.h >>conftest.$ac_ext
16777 cat >>conftest.$ac_ext <<_ACEOF
10447 /* end confdefs.h. */ 16778 /* end confdefs.h. */
10448 16779
10449 /* Override any GCC internal prototype to avoid an error. 16780 /* Override any GCC internal prototype to avoid an error.
10450 Use char because int might match the return type of a GCC 16781 Use char because int might match the return type of a GCC
10451 builtin and then its argument prototype would still apply. */ 16782 builtin and then its argument prototype would still apply. */
10459 return maillock (); 16790 return maillock ();
10460 ; 16791 ;
10461 return 0; 16792 return 0;
10462 } 16793 }
10463 _ACEOF 16794 _ACEOF
10464 if ac_fn_c_try_link "$LINENO"; then : 16795 rm -f conftest.$ac_objext conftest$ac_exeext
16796 if { (ac_try="$ac_link"
16797 case "(($ac_try" in
16798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799 *) ac_try_echo=$ac_try;;
16800 esac
16801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16802 $as_echo "$ac_try_echo") >&5
16803 (eval "$ac_link") 2>conftest.er1
16804 ac_status=$?
16805 grep -v '^ *+' conftest.er1 >conftest.err
16806 rm -f conftest.er1
16807 cat conftest.err >&5
16808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); } && {
16810 test -z "$ac_c_werror_flag" ||
16811 test ! -s conftest.err
16812 } && test -s conftest$ac_exeext && {
16813 test "$cross_compiling" = yes ||
16814 $as_test_x conftest$ac_exeext
16815 }; then
10465 ac_cv_lib_mail_maillock=yes 16816 ac_cv_lib_mail_maillock=yes
10466 else 16817 else
10467 ac_cv_lib_mail_maillock=no 16818 $as_echo "$as_me: failed program was:" >&5
10468 fi 16819 sed 's/^/| /' conftest.$ac_ext >&5
10469 rm -f core conftest.err conftest.$ac_objext \ 16820
10470 conftest$ac_exeext conftest.$ac_ext 16821 ac_cv_lib_mail_maillock=no
16822 fi
16823
16824 rm -rf conftest.dSYM
16825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16826 conftest$ac_exeext conftest.$ac_ext
10471 LIBS=$ac_check_lib_save_LIBS 16827 LIBS=$ac_check_lib_save_LIBS
10472 fi 16828 fi
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5 16829 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10474 $as_echo "$ac_cv_lib_mail_maillock" >&6; } 16830 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
10475 if test "x$ac_cv_lib_mail_maillock" = x""yes; then : 16831 if test $ac_cv_lib_mail_maillock = yes; then
10476 cat >>confdefs.h <<_ACEOF 16832 have_mail=yes
16833 else
16834 have_mail=no
16835 fi
16836
16837 if test $have_mail = yes; then
16838 LIBS_MAIL=-lmail
16839 LIBS="$LIBS_MAIL $LIBS"
16840
16841 cat >>confdefs.h <<\_ACEOF
10477 #define HAVE_LIBMAIL 1 16842 #define HAVE_LIBMAIL 1
10478 _ACEOF 16843 _ACEOF
10479 16844
10480 LIBS="-lmail $LIBS" 16845 else
10481 16846 LIBS_MAIL=
10482 fi 16847 fi
10483 16848 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
10485 $as_echo_n "checking for maillock in -llockfile... " >&6; } 16849 $as_echo_n "checking for maillock in -llockfile... " >&6; }
10486 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then : 16850 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10487 $as_echo_n "(cached) " >&6 16851 $as_echo_n "(cached) " >&6
10488 else 16852 else
10489 ac_check_lib_save_LIBS=$LIBS 16853 ac_check_lib_save_LIBS=$LIBS
10490 LIBS="-llockfile $LIBS" 16854 LIBS="-llockfile $LIBS"
10491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16855 cat >conftest.$ac_ext <<_ACEOF
16856 /* confdefs.h. */
16857 _ACEOF
16858 cat confdefs.h >>conftest.$ac_ext
16859 cat >>conftest.$ac_ext <<_ACEOF
10492 /* end confdefs.h. */ 16860 /* end confdefs.h. */
10493 16861
10494 /* Override any GCC internal prototype to avoid an error. 16862 /* Override any GCC internal prototype to avoid an error.
10495 Use char because int might match the return type of a GCC 16863 Use char because int might match the return type of a GCC
10496 builtin and then its argument prototype would still apply. */ 16864 builtin and then its argument prototype would still apply. */
10504 return maillock (); 16872 return maillock ();
10505 ; 16873 ;
10506 return 0; 16874 return 0;
10507 } 16875 }
10508 _ACEOF 16876 _ACEOF
10509 if ac_fn_c_try_link "$LINENO"; then : 16877 rm -f conftest.$ac_objext conftest$ac_exeext
16878 if { (ac_try="$ac_link"
16879 case "(($ac_try" in
16880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16881 *) ac_try_echo=$ac_try;;
16882 esac
16883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16884 $as_echo "$ac_try_echo") >&5
16885 (eval "$ac_link") 2>conftest.er1
16886 ac_status=$?
16887 grep -v '^ *+' conftest.er1 >conftest.err
16888 rm -f conftest.er1
16889 cat conftest.err >&5
16890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); } && {
16892 test -z "$ac_c_werror_flag" ||
16893 test ! -s conftest.err
16894 } && test -s conftest$ac_exeext && {
16895 test "$cross_compiling" = yes ||
16896 $as_test_x conftest$ac_exeext
16897 }; then
10510 ac_cv_lib_lockfile_maillock=yes 16898 ac_cv_lib_lockfile_maillock=yes
10511 else 16899 else
10512 ac_cv_lib_lockfile_maillock=no 16900 $as_echo "$as_me: failed program was:" >&5
10513 fi 16901 sed 's/^/| /' conftest.$ac_ext >&5
10514 rm -f core conftest.err conftest.$ac_objext \ 16902
10515 conftest$ac_exeext conftest.$ac_ext 16903 ac_cv_lib_lockfile_maillock=no
16904 fi
16905
16906 rm -rf conftest.dSYM
16907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16908 conftest$ac_exeext conftest.$ac_ext
10516 LIBS=$ac_check_lib_save_LIBS 16909 LIBS=$ac_check_lib_save_LIBS
10517 fi 16910 fi
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5 16911 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10519 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; } 16912 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
10520 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then : 16913 if test $ac_cv_lib_lockfile_maillock = yes; then
10521 cat >>confdefs.h <<_ACEOF 16914 have_lockfile=yes
16915 else
16916 have_lockfile=no
16917 fi
16918
16919 if test $have_lockfile = yes; then
16920 LIBS_MAIL=-llockfile
16921 LIBS="$LIBS_MAIL $LIBS"
16922
16923 cat >>confdefs.h <<\_ACEOF
10522 #define HAVE_LIBLOCKFILE 1 16924 #define HAVE_LIBLOCKFILE 1
10523 _ACEOF 16925 _ACEOF
10524 16926
10525 LIBS="-llockfile $LIBS" 16927 else
10526
10527 fi
10528
10529 # If we have the shared liblockfile, assume we must use it for mail 16928 # If we have the shared liblockfile, assume we must use it for mail
10530 # locking (e.g. Debian). If we couldn't link against liblockfile 16929 # locking (e.g. Debian). If we couldn't link against liblockfile
10531 # (no liblockfile.a installed), ensure that we don't need to. 16930 # (no liblockfile.a installed), ensure that we don't need to.
10532 if test "$ac_cv_lib_lockfile_maillock" = no; then
10533 # Extract the first word of "liblockfile.so", so it can be a program name with args. 16931 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10534 set dummy liblockfile.so; ac_word=$2 16932 set dummy liblockfile.so; ac_word=$2
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16933 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10536 $as_echo_n "checking for $ac_word... " >&6; } 16934 $as_echo_n "checking for $ac_word... " >&6; }
10537 if test "${ac_cv_prog_liblockfile+set}" = set; then : 16935 if test "${ac_cv_prog_liblockfile+set}" = set; then
10538 $as_echo_n "(cached) " >&6 16936 $as_echo_n "(cached) " >&6
10539 else 16937 else
10540 if test -n "$liblockfile"; then 16938 if test -n "$liblockfile"; then
10541 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. 16939 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
10542 else 16940 else
10544 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" 16942 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10545 for as_dir in $as_dummy 16943 for as_dir in $as_dummy
10546 do 16944 do
10547 IFS=$as_save_IFS 16945 IFS=$as_save_IFS
10548 test -z "$as_dir" && as_dir=. 16946 test -z "$as_dir" && as_dir=.
10549 for ac_exec_ext in '' $ac_executable_extensions; do 16947 for ac_exec_ext in '' $ac_executable_extensions; do
10550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10551 ac_cv_prog_liblockfile="yes" 16949 ac_cv_prog_liblockfile="yes"
10552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16950 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10553 break 2 16951 break 2
10554 fi 16952 fi
10555 done 16953 done
10556 done 16954 done
10557 IFS=$as_save_IFS 16955 IFS=$as_save_IFS
10558 16956
10559 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" 16957 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
10560 fi 16958 fi
10561 fi 16959 fi
10562 liblockfile=$ac_cv_prog_liblockfile 16960 liblockfile=$ac_cv_prog_liblockfile
10563 if test -n "$liblockfile"; then 16961 if test -n "$liblockfile"; then
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5 16962 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
10565 $as_echo "$liblockfile" >&6; } 16963 $as_echo "$liblockfile" >&6; }
10566 else 16964 else
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16965 { $as_echo "$as_me:$LINENO: result: no" >&5
10568 $as_echo "no" >&6; } 16966 $as_echo "no" >&6; }
10569 fi 16967 fi
10570 16968
10571 16969
10572 if test $ac_cv_prog_liblockfile = yes; then 16970 if test $ac_cv_prog_liblockfile = yes; then
10573 as_fn_error "Shared liblockfile found but can't link against it. 16971 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
10574 This probably means that movemail could lose mail. 16972 This probably means that movemail could lose mail.
10575 There may be a \`development' package to install containing liblockfile." "$LINENO" 5 16973 There may be a \`development' package to install containing liblockfile." >&5
10576 else : 16974 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
16975 This probably means that movemail could lose mail.
16976 There may be a \`development' package to install containing liblockfile." >&2;}
16977 { (exit 1); exit 1; }; }
10577 fi 16978 fi
10578 fi 16979 fi
16980
10579 for ac_func in touchlock 16981 for ac_func in touchlock
10580 do : 16982 do
10581 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock" 16983 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10582 if test "x$ac_cv_func_touchlock" = x""yes; then : 16984 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16985 $as_echo_n "checking for $ac_func... " >&6; }
16986 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16987 $as_echo_n "(cached) " >&6
16988 else
16989 cat >conftest.$ac_ext <<_ACEOF
16990 /* confdefs.h. */
16991 _ACEOF
16992 cat confdefs.h >>conftest.$ac_ext
16993 cat >>conftest.$ac_ext <<_ACEOF
16994 /* end confdefs.h. */
16995 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16997 #define $ac_func innocuous_$ac_func
16998
16999 /* System header to define __stub macros and hopefully few prototypes,
17000 which can conflict with char $ac_func (); below.
17001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17002 <limits.h> exists even on freestanding compilers. */
17003
17004 #ifdef __STDC__
17005 # include <limits.h>
17006 #else
17007 # include <assert.h>
17008 #endif
17009
17010 #undef $ac_func
17011
17012 /* Override any GCC internal prototype to avoid an error.
17013 Use char because int might match the return type of a GCC
17014 builtin and then its argument prototype would still apply. */
17015 #ifdef __cplusplus
17016 extern "C"
17017 #endif
17018 char $ac_func ();
17019 /* The GNU C library defines this for functions which it implements
17020 to always fail with ENOSYS. Some functions are actually named
17021 something starting with __ and the normal name is an alias. */
17022 #if defined __stub_$ac_func || defined __stub___$ac_func
17023 choke me
17024 #endif
17025
17026 int
17027 main ()
17028 {
17029 return $ac_func ();
17030 ;
17031 return 0;
17032 }
17033 _ACEOF
17034 rm -f conftest.$ac_objext conftest$ac_exeext
17035 if { (ac_try="$ac_link"
17036 case "(($ac_try" in
17037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038 *) ac_try_echo=$ac_try;;
17039 esac
17040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17041 $as_echo "$ac_try_echo") >&5
17042 (eval "$ac_link") 2>conftest.er1
17043 ac_status=$?
17044 grep -v '^ *+' conftest.er1 >conftest.err
17045 rm -f conftest.er1
17046 cat conftest.err >&5
17047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); } && {
17049 test -z "$ac_c_werror_flag" ||
17050 test ! -s conftest.err
17051 } && test -s conftest$ac_exeext && {
17052 test "$cross_compiling" = yes ||
17053 $as_test_x conftest$ac_exeext
17054 }; then
17055 eval "$as_ac_var=yes"
17056 else
17057 $as_echo "$as_me: failed program was:" >&5
17058 sed 's/^/| /' conftest.$ac_ext >&5
17059
17060 eval "$as_ac_var=no"
17061 fi
17062
17063 rm -rf conftest.dSYM
17064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17065 conftest$ac_exeext conftest.$ac_ext
17066 fi
17067 ac_res=`eval 'as_val=${'$as_ac_var'}
17068 $as_echo "$as_val"'`
17069 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17070 $as_echo "$ac_res" >&6; }
17071 if test `eval 'as_val=${'$as_ac_var'}
17072 $as_echo "$as_val"'` = yes; then
10583 cat >>confdefs.h <<_ACEOF 17073 cat >>confdefs.h <<_ACEOF
10584 #define HAVE_TOUCHLOCK 1 17074 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10585 _ACEOF 17075 _ACEOF
10586 17076
10587 fi 17077 fi
10588 done 17078 done
10589 17079
17080
10590 for ac_header in maillock.h 17081 for ac_header in maillock.h
10591 do : 17082 do
10592 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default" 17083 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10593 if test "x$ac_cv_header_maillock_h" = x""yes; then : 17084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17085 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17086 $as_echo_n "checking for $ac_header... " >&6; }
17087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17088 $as_echo_n "(cached) " >&6
17089 fi
17090 ac_res=`eval 'as_val=${'$as_ac_Header'}
17091 $as_echo "$as_val"'`
17092 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17093 $as_echo "$ac_res" >&6; }
17094 else
17095 # Is the header compilable?
17096 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17097 $as_echo_n "checking $ac_header usability... " >&6; }
17098 cat >conftest.$ac_ext <<_ACEOF
17099 /* confdefs.h. */
17100 _ACEOF
17101 cat confdefs.h >>conftest.$ac_ext
17102 cat >>conftest.$ac_ext <<_ACEOF
17103 /* end confdefs.h. */
17104 $ac_includes_default
17105 #include <$ac_header>
17106 _ACEOF
17107 rm -f conftest.$ac_objext
17108 if { (ac_try="$ac_compile"
17109 case "(($ac_try" in
17110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17111 *) ac_try_echo=$ac_try;;
17112 esac
17113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17114 $as_echo "$ac_try_echo") >&5
17115 (eval "$ac_compile") 2>conftest.er1
17116 ac_status=$?
17117 grep -v '^ *+' conftest.er1 >conftest.err
17118 rm -f conftest.er1
17119 cat conftest.err >&5
17120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); } && {
17122 test -z "$ac_c_werror_flag" ||
17123 test ! -s conftest.err
17124 } && test -s conftest.$ac_objext; then
17125 ac_header_compiler=yes
17126 else
17127 $as_echo "$as_me: failed program was:" >&5
17128 sed 's/^/| /' conftest.$ac_ext >&5
17129
17130 ac_header_compiler=no
17131 fi
17132
17133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17134 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17135 $as_echo "$ac_header_compiler" >&6; }
17136
17137 # Is the header present?
17138 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17139 $as_echo_n "checking $ac_header presence... " >&6; }
17140 cat >conftest.$ac_ext <<_ACEOF
17141 /* confdefs.h. */
17142 _ACEOF
17143 cat confdefs.h >>conftest.$ac_ext
17144 cat >>conftest.$ac_ext <<_ACEOF
17145 /* end confdefs.h. */
17146 #include <$ac_header>
17147 _ACEOF
17148 if { (ac_try="$ac_cpp conftest.$ac_ext"
17149 case "(($ac_try" in
17150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151 *) ac_try_echo=$ac_try;;
17152 esac
17153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17154 $as_echo "$ac_try_echo") >&5
17155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17156 ac_status=$?
17157 grep -v '^ *+' conftest.er1 >conftest.err
17158 rm -f conftest.er1
17159 cat conftest.err >&5
17160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); } >/dev/null && {
17162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17163 test ! -s conftest.err
17164 }; then
17165 ac_header_preproc=yes
17166 else
17167 $as_echo "$as_me: failed program was:" >&5
17168 sed 's/^/| /' conftest.$ac_ext >&5
17169
17170 ac_header_preproc=no
17171 fi
17172
17173 rm -f conftest.err conftest.$ac_ext
17174 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17175 $as_echo "$ac_header_preproc" >&6; }
17176
17177 # So? What about this header?
17178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17179 yes:no: )
17180 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17181 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17182 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17183 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17184 ac_header_preproc=yes
17185 ;;
17186 no:yes:* )
17187 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17188 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17189 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17190 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17191 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17192 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17194 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17196 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17198 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17199
17200 ;;
17201 esac
17202 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17203 $as_echo_n "checking for $ac_header... " >&6; }
17204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17205 $as_echo_n "(cached) " >&6
17206 else
17207 eval "$as_ac_Header=\$ac_header_preproc"
17208 fi
17209 ac_res=`eval 'as_val=${'$as_ac_Header'}
17210 $as_echo "$as_val"'`
17211 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17212 $as_echo "$ac_res" >&6; }
17213
17214 fi
17215 if test `eval 'as_val=${'$as_ac_Header'}
17216 $as_echo "$as_val"'` = yes; then
10594 cat >>confdefs.h <<_ACEOF 17217 cat >>confdefs.h <<_ACEOF
10595 #define HAVE_MAILLOCK_H 1 17218 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10596 _ACEOF 17219 _ACEOF
10597 17220
10598 fi 17221 fi
10599 17222
10600 done 17223 done
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
10601 17296
10602 17297
10603 for ac_func in gethostname getdomainname dup2 \ 17298 for ac_func in gethostname getdomainname dup2 \
10604 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \ 17299 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
10605 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \ 17300 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
10608 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ 17303 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
10609 sendto recvfrom getsockopt setsockopt getsockname getpeername \ 17304 sendto recvfrom getsockopt setsockopt getsockname getpeername \
10610 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \ 17305 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
10611 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \ 17306 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
10612 cfmakeraw cfsetspeed 17307 cfmakeraw cfsetspeed
10613 do : 17308 do
10614 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17309 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10615 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17310 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10616 eval as_val=\$$as_ac_var 17311 $as_echo_n "checking for $ac_func... " >&6; }
10617 if test "x$as_val" = x""yes; then : 17312 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17313 $as_echo_n "(cached) " >&6
17314 else
17315 cat >conftest.$ac_ext <<_ACEOF
17316 /* confdefs.h. */
17317 _ACEOF
17318 cat confdefs.h >>conftest.$ac_ext
17319 cat >>conftest.$ac_ext <<_ACEOF
17320 /* end confdefs.h. */
17321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17323 #define $ac_func innocuous_$ac_func
17324
17325 /* System header to define __stub macros and hopefully few prototypes,
17326 which can conflict with char $ac_func (); below.
17327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17328 <limits.h> exists even on freestanding compilers. */
17329
17330 #ifdef __STDC__
17331 # include <limits.h>
17332 #else
17333 # include <assert.h>
17334 #endif
17335
17336 #undef $ac_func
17337
17338 /* Override any GCC internal prototype to avoid an error.
17339 Use char because int might match the return type of a GCC
17340 builtin and then its argument prototype would still apply. */
17341 #ifdef __cplusplus
17342 extern "C"
17343 #endif
17344 char $ac_func ();
17345 /* The GNU C library defines this for functions which it implements
17346 to always fail with ENOSYS. Some functions are actually named
17347 something starting with __ and the normal name is an alias. */
17348 #if defined __stub_$ac_func || defined __stub___$ac_func
17349 choke me
17350 #endif
17351
17352 int
17353 main ()
17354 {
17355 return $ac_func ();
17356 ;
17357 return 0;
17358 }
17359 _ACEOF
17360 rm -f conftest.$ac_objext conftest$ac_exeext
17361 if { (ac_try="$ac_link"
17362 case "(($ac_try" in
17363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17364 *) ac_try_echo=$ac_try;;
17365 esac
17366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17367 $as_echo "$ac_try_echo") >&5
17368 (eval "$ac_link") 2>conftest.er1
17369 ac_status=$?
17370 grep -v '^ *+' conftest.er1 >conftest.err
17371 rm -f conftest.er1
17372 cat conftest.err >&5
17373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); } && {
17375 test -z "$ac_c_werror_flag" ||
17376 test ! -s conftest.err
17377 } && test -s conftest$ac_exeext && {
17378 test "$cross_compiling" = yes ||
17379 $as_test_x conftest$ac_exeext
17380 }; then
17381 eval "$as_ac_var=yes"
17382 else
17383 $as_echo "$as_me: failed program was:" >&5
17384 sed 's/^/| /' conftest.$ac_ext >&5
17385
17386 eval "$as_ac_var=no"
17387 fi
17388
17389 rm -rf conftest.dSYM
17390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17391 conftest$ac_exeext conftest.$ac_ext
17392 fi
17393 ac_res=`eval 'as_val=${'$as_ac_var'}
17394 $as_echo "$as_val"'`
17395 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17396 $as_echo "$ac_res" >&6; }
17397 if test `eval 'as_val=${'$as_ac_var'}
17398 $as_echo "$as_val"'` = yes; then
10618 cat >>confdefs.h <<_ACEOF 17399 cat >>confdefs.h <<_ACEOF
10619 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17400 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10620 _ACEOF 17401 _ACEOF
10621 17402
10622 fi 17403 fi
10623 done 17404 done
10624 17405
10625 17406
17407
10626 for ac_header in sys/un.h 17408 for ac_header in sys/un.h
10627 do : 17409 do
10628 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default" 17410 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10629 if test "x$ac_cv_header_sys_un_h" = x""yes; then : 17411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10630 cat >>confdefs.h <<_ACEOF 17412 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10631 #define HAVE_SYS_UN_H 1 17413 $as_echo_n "checking for $ac_header... " >&6; }
10632 _ACEOF 17414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10633 17415 $as_echo_n "(cached) " >&6
10634 fi 17416 fi
10635 17417 ac_res=`eval 'as_val=${'$as_ac_Header'}
10636 done 17418 $as_echo "$as_val"'`
10637 17419 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10638 17420 $as_echo "$ac_res" >&6; }
10639 17421 else
10640 17422 # Is the header compilable?
10641 17423 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10642 for ac_header in $ac_header_list 17424 $as_echo_n "checking $ac_header usability... " >&6; }
10643 do : 17425 cat >conftest.$ac_ext <<_ACEOF
10644 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17426 /* confdefs.h. */
10645 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 17427 _ACEOF
10646 " 17428 cat confdefs.h >>conftest.$ac_ext
10647 eval as_val=\$$as_ac_Header 17429 cat >>conftest.$ac_ext <<_ACEOF
10648 if test "x$as_val" = x""yes; then : 17430 /* end confdefs.h. */
17431 $ac_includes_default
17432 #include <$ac_header>
17433 _ACEOF
17434 rm -f conftest.$ac_objext
17435 if { (ac_try="$ac_compile"
17436 case "(($ac_try" in
17437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438 *) ac_try_echo=$ac_try;;
17439 esac
17440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17441 $as_echo "$ac_try_echo") >&5
17442 (eval "$ac_compile") 2>conftest.er1
17443 ac_status=$?
17444 grep -v '^ *+' conftest.er1 >conftest.err
17445 rm -f conftest.er1
17446 cat conftest.err >&5
17447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); } && {
17449 test -z "$ac_c_werror_flag" ||
17450 test ! -s conftest.err
17451 } && test -s conftest.$ac_objext; then
17452 ac_header_compiler=yes
17453 else
17454 $as_echo "$as_me: failed program was:" >&5
17455 sed 's/^/| /' conftest.$ac_ext >&5
17456
17457 ac_header_compiler=no
17458 fi
17459
17460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17461 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17462 $as_echo "$ac_header_compiler" >&6; }
17463
17464 # Is the header present?
17465 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17466 $as_echo_n "checking $ac_header presence... " >&6; }
17467 cat >conftest.$ac_ext <<_ACEOF
17468 /* confdefs.h. */
17469 _ACEOF
17470 cat confdefs.h >>conftest.$ac_ext
17471 cat >>conftest.$ac_ext <<_ACEOF
17472 /* end confdefs.h. */
17473 #include <$ac_header>
17474 _ACEOF
17475 if { (ac_try="$ac_cpp conftest.$ac_ext"
17476 case "(($ac_try" in
17477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17478 *) ac_try_echo=$ac_try;;
17479 esac
17480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17481 $as_echo "$ac_try_echo") >&5
17482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17483 ac_status=$?
17484 grep -v '^ *+' conftest.er1 >conftest.err
17485 rm -f conftest.er1
17486 cat conftest.err >&5
17487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); } >/dev/null && {
17489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17490 test ! -s conftest.err
17491 }; then
17492 ac_header_preproc=yes
17493 else
17494 $as_echo "$as_me: failed program was:" >&5
17495 sed 's/^/| /' conftest.$ac_ext >&5
17496
17497 ac_header_preproc=no
17498 fi
17499
17500 rm -f conftest.err conftest.$ac_ext
17501 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17502 $as_echo "$ac_header_preproc" >&6; }
17503
17504 # So? What about this header?
17505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17506 yes:no: )
17507 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17508 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17509 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17510 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17511 ac_header_preproc=yes
17512 ;;
17513 no:yes:* )
17514 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17515 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17516 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17517 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17518 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17519 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17520 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17521 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17522 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17523 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17524 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17525 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17526
17527 ;;
17528 esac
17529 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17530 $as_echo_n "checking for $ac_header... " >&6; }
17531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17532 $as_echo_n "(cached) " >&6
17533 else
17534 eval "$as_ac_Header=\$ac_header_preproc"
17535 fi
17536 ac_res=`eval 'as_val=${'$as_ac_Header'}
17537 $as_echo "$as_val"'`
17538 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17539 $as_echo "$ac_res" >&6; }
17540
17541 fi
17542 if test `eval 'as_val=${'$as_ac_Header'}
17543 $as_echo "$as_val"'` = yes; then
10649 cat >>confdefs.h <<_ACEOF 17544 cat >>confdefs.h <<_ACEOF
10650 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17545 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10651 _ACEOF 17546 _ACEOF
10652 17547
10653 fi 17548 fi
10657 17552
10658 17553
10659 17554
10660 17555
10661 17556
10662 17557 for ac_header in $ac_header_list
10663 17558 do
10664 for ac_func in $ac_func_list 17559 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10665 do : 17560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10666 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17561 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10667 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17562 $as_echo_n "checking for $ac_header... " >&6; }
10668 eval as_val=\$$as_ac_var 17563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10669 if test "x$as_val" = x""yes; then : 17564 $as_echo_n "(cached) " >&6
17565 fi
17566 ac_res=`eval 'as_val=${'$as_ac_Header'}
17567 $as_echo "$as_val"'`
17568 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17569 $as_echo "$ac_res" >&6; }
17570 else
17571 # Is the header compilable?
17572 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17573 $as_echo_n "checking $ac_header usability... " >&6; }
17574 cat >conftest.$ac_ext <<_ACEOF
17575 /* confdefs.h. */
17576 _ACEOF
17577 cat confdefs.h >>conftest.$ac_ext
17578 cat >>conftest.$ac_ext <<_ACEOF
17579 /* end confdefs.h. */
17580 $ac_includes_default
17581 #include <$ac_header>
17582 _ACEOF
17583 rm -f conftest.$ac_objext
17584 if { (ac_try="$ac_compile"
17585 case "(($ac_try" in
17586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587 *) ac_try_echo=$ac_try;;
17588 esac
17589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17590 $as_echo "$ac_try_echo") >&5
17591 (eval "$ac_compile") 2>conftest.er1
17592 ac_status=$?
17593 grep -v '^ *+' conftest.er1 >conftest.err
17594 rm -f conftest.er1
17595 cat conftest.err >&5
17596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); } && {
17598 test -z "$ac_c_werror_flag" ||
17599 test ! -s conftest.err
17600 } && test -s conftest.$ac_objext; then
17601 ac_header_compiler=yes
17602 else
17603 $as_echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17605
17606 ac_header_compiler=no
17607 fi
17608
17609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17610 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17611 $as_echo "$ac_header_compiler" >&6; }
17612
17613 # Is the header present?
17614 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17615 $as_echo_n "checking $ac_header presence... " >&6; }
17616 cat >conftest.$ac_ext <<_ACEOF
17617 /* confdefs.h. */
17618 _ACEOF
17619 cat confdefs.h >>conftest.$ac_ext
17620 cat >>conftest.$ac_ext <<_ACEOF
17621 /* end confdefs.h. */
17622 #include <$ac_header>
17623 _ACEOF
17624 if { (ac_try="$ac_cpp conftest.$ac_ext"
17625 case "(($ac_try" in
17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627 *) ac_try_echo=$ac_try;;
17628 esac
17629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17630 $as_echo "$ac_try_echo") >&5
17631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17632 ac_status=$?
17633 grep -v '^ *+' conftest.er1 >conftest.err
17634 rm -f conftest.er1
17635 cat conftest.err >&5
17636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); } >/dev/null && {
17638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17639 test ! -s conftest.err
17640 }; then
17641 ac_header_preproc=yes
17642 else
17643 $as_echo "$as_me: failed program was:" >&5
17644 sed 's/^/| /' conftest.$ac_ext >&5
17645
17646 ac_header_preproc=no
17647 fi
17648
17649 rm -f conftest.err conftest.$ac_ext
17650 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17651 $as_echo "$ac_header_preproc" >&6; }
17652
17653 # So? What about this header?
17654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17655 yes:no: )
17656 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17657 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17658 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17659 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17660 ac_header_preproc=yes
17661 ;;
17662 no:yes:* )
17663 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17664 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17665 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17666 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17667 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17668 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17670 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17671 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17672 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17674 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17675
17676 ;;
17677 esac
17678 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17679 $as_echo_n "checking for $ac_header... " >&6; }
17680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17681 $as_echo_n "(cached) " >&6
17682 else
17683 eval "$as_ac_Header=\$ac_header_preproc"
17684 fi
17685 ac_res=`eval 'as_val=${'$as_ac_Header'}
17686 $as_echo "$as_val"'`
17687 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17688 $as_echo "$ac_res" >&6; }
17689
17690 fi
17691 if test `eval 'as_val=${'$as_ac_Header'}
17692 $as_echo "$as_val"'` = yes; then
17693 cat >>confdefs.h <<_ACEOF
17694 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17695 _ACEOF
17696
17697 fi
17698
17699 done
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709 for ac_func in $ac_func_list
17710 do
17711 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17712 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17713 $as_echo_n "checking for $ac_func... " >&6; }
17714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17715 $as_echo_n "(cached) " >&6
17716 else
17717 cat >conftest.$ac_ext <<_ACEOF
17718 /* confdefs.h. */
17719 _ACEOF
17720 cat confdefs.h >>conftest.$ac_ext
17721 cat >>conftest.$ac_ext <<_ACEOF
17722 /* end confdefs.h. */
17723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17725 #define $ac_func innocuous_$ac_func
17726
17727 /* System header to define __stub macros and hopefully few prototypes,
17728 which can conflict with char $ac_func (); below.
17729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17730 <limits.h> exists even on freestanding compilers. */
17731
17732 #ifdef __STDC__
17733 # include <limits.h>
17734 #else
17735 # include <assert.h>
17736 #endif
17737
17738 #undef $ac_func
17739
17740 /* Override any GCC internal prototype to avoid an error.
17741 Use char because int might match the return type of a GCC
17742 builtin and then its argument prototype would still apply. */
17743 #ifdef __cplusplus
17744 extern "C"
17745 #endif
17746 char $ac_func ();
17747 /* The GNU C library defines this for functions which it implements
17748 to always fail with ENOSYS. Some functions are actually named
17749 something starting with __ and the normal name is an alias. */
17750 #if defined __stub_$ac_func || defined __stub___$ac_func
17751 choke me
17752 #endif
17753
17754 int
17755 main ()
17756 {
17757 return $ac_func ();
17758 ;
17759 return 0;
17760 }
17761 _ACEOF
17762 rm -f conftest.$ac_objext conftest$ac_exeext
17763 if { (ac_try="$ac_link"
17764 case "(($ac_try" in
17765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17766 *) ac_try_echo=$ac_try;;
17767 esac
17768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17769 $as_echo "$ac_try_echo") >&5
17770 (eval "$ac_link") 2>conftest.er1
17771 ac_status=$?
17772 grep -v '^ *+' conftest.er1 >conftest.err
17773 rm -f conftest.er1
17774 cat conftest.err >&5
17775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); } && {
17777 test -z "$ac_c_werror_flag" ||
17778 test ! -s conftest.err
17779 } && test -s conftest$ac_exeext && {
17780 test "$cross_compiling" = yes ||
17781 $as_test_x conftest$ac_exeext
17782 }; then
17783 eval "$as_ac_var=yes"
17784 else
17785 $as_echo "$as_me: failed program was:" >&5
17786 sed 's/^/| /' conftest.$ac_ext >&5
17787
17788 eval "$as_ac_var=no"
17789 fi
17790
17791 rm -rf conftest.dSYM
17792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17793 conftest$ac_exeext conftest.$ac_ext
17794 fi
17795 ac_res=`eval 'as_val=${'$as_ac_var'}
17796 $as_echo "$as_val"'`
17797 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17798 $as_echo "$ac_res" >&6; }
17799 if test `eval 'as_val=${'$as_ac_var'}
17800 $as_echo "$as_val"'` = yes; then
10670 cat >>confdefs.h <<_ACEOF 17801 cat >>confdefs.h <<_ACEOF
10671 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17802 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10672 _ACEOF 17803 _ACEOF
10673 17804
10674 fi 17805 fi
10676 17807
10677 17808
10678 17809
10679 17810
10680 17811
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5 17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
10682 $as_echo_n "checking for working mktime... " >&6; } 17825 $as_echo_n "checking for working mktime... " >&6; }
10683 if test "${ac_cv_func_working_mktime+set}" = set; then : 17826 if test "${ac_cv_func_working_mktime+set}" = set; then
10684 $as_echo_n "(cached) " >&6 17827 $as_echo_n "(cached) " >&6
10685 else 17828 else
10686 if test "$cross_compiling" = yes; then : 17829 if test "$cross_compiling" = yes; then
10687 ac_cv_func_working_mktime=no 17830 ac_cv_func_working_mktime=no
10688 else 17831 else
10689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17832 cat >conftest.$ac_ext <<_ACEOF
17833 /* confdefs.h. */
17834 _ACEOF
17835 cat confdefs.h >>conftest.$ac_ext
17836 cat >>conftest.$ac_ext <<_ACEOF
10690 /* end confdefs.h. */ 17837 /* end confdefs.h. */
10691 /* Test program from Paul Eggert and Tony Leneis. */ 17838 /* Test program from Paul Eggert and Tony Leneis. */
10692 #ifdef TIME_WITH_SYS_TIME 17839 #ifdef TIME_WITH_SYS_TIME
10693 # include <sys/time.h> 17840 # include <sys/time.h>
10694 # include <time.h> 17841 # include <time.h>
10881 return 1; 18028 return 1;
10882 } 18029 }
10883 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); 18030 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
10884 } 18031 }
10885 _ACEOF 18032 _ACEOF
10886 if ac_fn_c_try_run "$LINENO"; then : 18033 rm -f conftest$ac_exeext
18034 if { (ac_try="$ac_link"
18035 case "(($ac_try" in
18036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18037 *) ac_try_echo=$ac_try;;
18038 esac
18039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18040 $as_echo "$ac_try_echo") >&5
18041 (eval "$ac_link") 2>&5
18042 ac_status=$?
18043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18045 { (case "(($ac_try" in
18046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18047 *) ac_try_echo=$ac_try;;
18048 esac
18049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18050 $as_echo "$ac_try_echo") >&5
18051 (eval "$ac_try") 2>&5
18052 ac_status=$?
18053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); }; }; then
10887 ac_cv_func_working_mktime=yes 18055 ac_cv_func_working_mktime=yes
10888 else 18056 else
10889 ac_cv_func_working_mktime=no 18057 $as_echo "$as_me: program exited with status $ac_status" >&5
10890 fi 18058 $as_echo "$as_me: failed program was:" >&5
10891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18059 sed 's/^/| /' conftest.$ac_ext >&5
10892 conftest.$ac_objext conftest.beam conftest.$ac_ext 18060
10893 fi 18061 ( exit $ac_status )
10894 18062 ac_cv_func_working_mktime=no
10895 fi 18063 fi
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5 18064 rm -rf conftest.dSYM
18065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18066 fi
18067
18068
18069 fi
18070 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
10897 $as_echo "$ac_cv_func_working_mktime" >&6; } 18071 $as_echo "$ac_cv_func_working_mktime" >&6; }
10898 if test $ac_cv_func_working_mktime = no; then 18072 if test $ac_cv_func_working_mktime = no; then
10899 case " $LIBOBJS " in 18073 case " $LIBOBJS " in
10900 *" mktime.$ac_objext "* ) ;; 18074 *" mktime.$ac_objext "* ) ;;
10901 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" 18075 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
10904 18078
10905 fi 18079 fi
10906 18080
10907 if test "$ac_cv_func_working_mktime" = no; then 18081 if test "$ac_cv_func_working_mktime" = no; then
10908 18082
10909 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h 18083 cat >>confdefs.h <<\_ACEOF
18084 #define BROKEN_MKTIME 1
18085 _ACEOF
10910 18086
10911 fi 18087 fi
10912 18088
10913 ac_have_func=no # yes means we've found a way to get the load average. 18089 ac_have_func=no # yes means we've found a way to get the load average.
10914 18090
10915 # Make sure getloadavg.c is where it belongs, at configure-time. 18091 # Make sure getloadavg.c is where it belongs, at configure-time.
10916 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || 18092 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
10917 as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5 18093 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18094 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18095 { (exit 1); exit 1; }; }
10918 18096
10919 ac_save_LIBS=$LIBS 18097 ac_save_LIBS=$LIBS
10920 18098
10921 # Check for getloadavg, but be sure not to touch the cache variable. 18099 # Check for getloadavg, but be sure not to touch the cache variable.
10922 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" 18100 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
10923 if test "x$ac_cv_func_getloadavg" = x""yes; then : 18101 $as_echo_n "checking for getloadavg... " >&6; }
18102 if test "${ac_cv_func_getloadavg+set}" = set; then
18103 $as_echo_n "(cached) " >&6
18104 else
18105 cat >conftest.$ac_ext <<_ACEOF
18106 /* confdefs.h. */
18107 _ACEOF
18108 cat confdefs.h >>conftest.$ac_ext
18109 cat >>conftest.$ac_ext <<_ACEOF
18110 /* end confdefs.h. */
18111 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18113 #define getloadavg innocuous_getloadavg
18114
18115 /* System header to define __stub macros and hopefully few prototypes,
18116 which can conflict with char getloadavg (); below.
18117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18118 <limits.h> exists even on freestanding compilers. */
18119
18120 #ifdef __STDC__
18121 # include <limits.h>
18122 #else
18123 # include <assert.h>
18124 #endif
18125
18126 #undef getloadavg
18127
18128 /* Override any GCC internal prototype to avoid an error.
18129 Use char because int might match the return type of a GCC
18130 builtin and then its argument prototype would still apply. */
18131 #ifdef __cplusplus
18132 extern "C"
18133 #endif
18134 char getloadavg ();
18135 /* The GNU C library defines this for functions which it implements
18136 to always fail with ENOSYS. Some functions are actually named
18137 something starting with __ and the normal name is an alias. */
18138 #if defined __stub_getloadavg || defined __stub___getloadavg
18139 choke me
18140 #endif
18141
18142 int
18143 main ()
18144 {
18145 return getloadavg ();
18146 ;
18147 return 0;
18148 }
18149 _ACEOF
18150 rm -f conftest.$ac_objext conftest$ac_exeext
18151 if { (ac_try="$ac_link"
18152 case "(($ac_try" in
18153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18154 *) ac_try_echo=$ac_try;;
18155 esac
18156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18157 $as_echo "$ac_try_echo") >&5
18158 (eval "$ac_link") 2>conftest.er1
18159 ac_status=$?
18160 grep -v '^ *+' conftest.er1 >conftest.err
18161 rm -f conftest.er1
18162 cat conftest.err >&5
18163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); } && {
18165 test -z "$ac_c_werror_flag" ||
18166 test ! -s conftest.err
18167 } && test -s conftest$ac_exeext && {
18168 test "$cross_compiling" = yes ||
18169 $as_test_x conftest$ac_exeext
18170 }; then
18171 ac_cv_func_getloadavg=yes
18172 else
18173 $as_echo "$as_me: failed program was:" >&5
18174 sed 's/^/| /' conftest.$ac_ext >&5
18175
18176 ac_cv_func_getloadavg=no
18177 fi
18178
18179 rm -rf conftest.dSYM
18180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18181 conftest$ac_exeext conftest.$ac_ext
18182 fi
18183 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18184 $as_echo "$ac_cv_func_getloadavg" >&6; }
18185 if test $ac_cv_func_getloadavg = yes; then
10924 exit 0 18186 exit 0
10925 else 18187 else
10926 exit 1 18188 exit 1
10927 fi 18189 fi
10928 ) && ac_have_func=yes 18190 ) && ac_have_func=yes
10929 18191
10930 # On HPUX9, an unprivileged user can get load averages through this function. 18192 # On HPUX9, an unprivileged user can get load averages through this function.
18193
10931 for ac_func in pstat_getdynamic 18194 for ac_func in pstat_getdynamic
10932 do : 18195 do
10933 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic" 18196 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10934 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then : 18197 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18198 $as_echo_n "checking for $ac_func... " >&6; }
18199 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18200 $as_echo_n "(cached) " >&6
18201 else
18202 cat >conftest.$ac_ext <<_ACEOF
18203 /* confdefs.h. */
18204 _ACEOF
18205 cat confdefs.h >>conftest.$ac_ext
18206 cat >>conftest.$ac_ext <<_ACEOF
18207 /* end confdefs.h. */
18208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18210 #define $ac_func innocuous_$ac_func
18211
18212 /* System header to define __stub macros and hopefully few prototypes,
18213 which can conflict with char $ac_func (); below.
18214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18215 <limits.h> exists even on freestanding compilers. */
18216
18217 #ifdef __STDC__
18218 # include <limits.h>
18219 #else
18220 # include <assert.h>
18221 #endif
18222
18223 #undef $ac_func
18224
18225 /* Override any GCC internal prototype to avoid an error.
18226 Use char because int might match the return type of a GCC
18227 builtin and then its argument prototype would still apply. */
18228 #ifdef __cplusplus
18229 extern "C"
18230 #endif
18231 char $ac_func ();
18232 /* The GNU C library defines this for functions which it implements
18233 to always fail with ENOSYS. Some functions are actually named
18234 something starting with __ and the normal name is an alias. */
18235 #if defined __stub_$ac_func || defined __stub___$ac_func
18236 choke me
18237 #endif
18238
18239 int
18240 main ()
18241 {
18242 return $ac_func ();
18243 ;
18244 return 0;
18245 }
18246 _ACEOF
18247 rm -f conftest.$ac_objext conftest$ac_exeext
18248 if { (ac_try="$ac_link"
18249 case "(($ac_try" in
18250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18251 *) ac_try_echo=$ac_try;;
18252 esac
18253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18254 $as_echo "$ac_try_echo") >&5
18255 (eval "$ac_link") 2>conftest.er1
18256 ac_status=$?
18257 grep -v '^ *+' conftest.er1 >conftest.err
18258 rm -f conftest.er1
18259 cat conftest.err >&5
18260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); } && {
18262 test -z "$ac_c_werror_flag" ||
18263 test ! -s conftest.err
18264 } && test -s conftest$ac_exeext && {
18265 test "$cross_compiling" = yes ||
18266 $as_test_x conftest$ac_exeext
18267 }; then
18268 eval "$as_ac_var=yes"
18269 else
18270 $as_echo "$as_me: failed program was:" >&5
18271 sed 's/^/| /' conftest.$ac_ext >&5
18272
18273 eval "$as_ac_var=no"
18274 fi
18275
18276 rm -rf conftest.dSYM
18277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18278 conftest$ac_exeext conftest.$ac_ext
18279 fi
18280 ac_res=`eval 'as_val=${'$as_ac_var'}
18281 $as_echo "$as_val"'`
18282 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18283 $as_echo "$ac_res" >&6; }
18284 if test `eval 'as_val=${'$as_ac_var'}
18285 $as_echo "$as_val"'` = yes; then
10935 cat >>confdefs.h <<_ACEOF 18286 cat >>confdefs.h <<_ACEOF
10936 #define HAVE_PSTAT_GETDYNAMIC 1 18287 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10937 _ACEOF 18288 _ACEOF
10938 18289
10939 fi 18290 fi
10940 done 18291 done
10941 18292
10942 18293
10943 # Solaris has libkstat which does not require root. 18294 # Solaris has libkstat which does not require root.
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5 18295
18296 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
10945 $as_echo_n "checking for kstat_open in -lkstat... " >&6; } 18297 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
10946 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then : 18298 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
10947 $as_echo_n "(cached) " >&6 18299 $as_echo_n "(cached) " >&6
10948 else 18300 else
10949 ac_check_lib_save_LIBS=$LIBS 18301 ac_check_lib_save_LIBS=$LIBS
10950 LIBS="-lkstat $LIBS" 18302 LIBS="-lkstat $LIBS"
10951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18303 cat >conftest.$ac_ext <<_ACEOF
18304 /* confdefs.h. */
18305 _ACEOF
18306 cat confdefs.h >>conftest.$ac_ext
18307 cat >>conftest.$ac_ext <<_ACEOF
10952 /* end confdefs.h. */ 18308 /* end confdefs.h. */
10953 18309
10954 /* Override any GCC internal prototype to avoid an error. 18310 /* Override any GCC internal prototype to avoid an error.
10955 Use char because int might match the return type of a GCC 18311 Use char because int might match the return type of a GCC
10956 builtin and then its argument prototype would still apply. */ 18312 builtin and then its argument prototype would still apply. */
10964 return kstat_open (); 18320 return kstat_open ();
10965 ; 18321 ;
10966 return 0; 18322 return 0;
10967 } 18323 }
10968 _ACEOF 18324 _ACEOF
10969 if ac_fn_c_try_link "$LINENO"; then : 18325 rm -f conftest.$ac_objext conftest$ac_exeext
18326 if { (ac_try="$ac_link"
18327 case "(($ac_try" in
18328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329 *) ac_try_echo=$ac_try;;
18330 esac
18331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18332 $as_echo "$ac_try_echo") >&5
18333 (eval "$ac_link") 2>conftest.er1
18334 ac_status=$?
18335 grep -v '^ *+' conftest.er1 >conftest.err
18336 rm -f conftest.er1
18337 cat conftest.err >&5
18338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); } && {
18340 test -z "$ac_c_werror_flag" ||
18341 test ! -s conftest.err
18342 } && test -s conftest$ac_exeext && {
18343 test "$cross_compiling" = yes ||
18344 $as_test_x conftest$ac_exeext
18345 }; then
10970 ac_cv_lib_kstat_kstat_open=yes 18346 ac_cv_lib_kstat_kstat_open=yes
10971 else 18347 else
10972 ac_cv_lib_kstat_kstat_open=no 18348 $as_echo "$as_me: failed program was:" >&5
10973 fi 18349 sed 's/^/| /' conftest.$ac_ext >&5
10974 rm -f core conftest.err conftest.$ac_objext \ 18350
10975 conftest$ac_exeext conftest.$ac_ext 18351 ac_cv_lib_kstat_kstat_open=no
18352 fi
18353
18354 rm -rf conftest.dSYM
18355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18356 conftest$ac_exeext conftest.$ac_ext
10976 LIBS=$ac_check_lib_save_LIBS 18357 LIBS=$ac_check_lib_save_LIBS
10977 fi 18358 fi
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5 18359 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
10979 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; } 18360 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
10980 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then : 18361 if test $ac_cv_lib_kstat_kstat_open = yes; then
10981 cat >>confdefs.h <<_ACEOF 18362 cat >>confdefs.h <<_ACEOF
10982 #define HAVE_LIBKSTAT 1 18363 #define HAVE_LIBKSTAT 1
10983 _ACEOF 18364 _ACEOF
10984 18365
10985 LIBS="-lkstat $LIBS" 18366 LIBS="-lkstat $LIBS"
10991 # Some systems with -lutil have (and need) -lkvm as well, some do not. 18372 # Some systems with -lutil have (and need) -lkvm as well, some do not.
10992 # On Solaris, -lkvm requires nlist from -lelf, so check that first 18373 # On Solaris, -lkvm requires nlist from -lelf, so check that first
10993 # to get the right answer into the cache. 18374 # to get the right answer into the cache.
10994 # For kstat on solaris, we need libelf to force the definition of SVR4 below. 18375 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
10995 if test $ac_have_func = no; then 18376 if test $ac_have_func = no; then
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5 18377 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
10997 $as_echo_n "checking for elf_begin in -lelf... " >&6; } 18378 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
10998 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then : 18379 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
10999 $as_echo_n "(cached) " >&6 18380 $as_echo_n "(cached) " >&6
11000 else 18381 else
11001 ac_check_lib_save_LIBS=$LIBS 18382 ac_check_lib_save_LIBS=$LIBS
11002 LIBS="-lelf $LIBS" 18383 LIBS="-lelf $LIBS"
11003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18384 cat >conftest.$ac_ext <<_ACEOF
18385 /* confdefs.h. */
18386 _ACEOF
18387 cat confdefs.h >>conftest.$ac_ext
18388 cat >>conftest.$ac_ext <<_ACEOF
11004 /* end confdefs.h. */ 18389 /* end confdefs.h. */
11005 18390
11006 /* Override any GCC internal prototype to avoid an error. 18391 /* Override any GCC internal prototype to avoid an error.
11007 Use char because int might match the return type of a GCC 18392 Use char because int might match the return type of a GCC
11008 builtin and then its argument prototype would still apply. */ 18393 builtin and then its argument prototype would still apply. */
11016 return elf_begin (); 18401 return elf_begin ();
11017 ; 18402 ;
11018 return 0; 18403 return 0;
11019 } 18404 }
11020 _ACEOF 18405 _ACEOF
11021 if ac_fn_c_try_link "$LINENO"; then : 18406 rm -f conftest.$ac_objext conftest$ac_exeext
18407 if { (ac_try="$ac_link"
18408 case "(($ac_try" in
18409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18410 *) ac_try_echo=$ac_try;;
18411 esac
18412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18413 $as_echo "$ac_try_echo") >&5
18414 (eval "$ac_link") 2>conftest.er1
18415 ac_status=$?
18416 grep -v '^ *+' conftest.er1 >conftest.err
18417 rm -f conftest.er1
18418 cat conftest.err >&5
18419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); } && {
18421 test -z "$ac_c_werror_flag" ||
18422 test ! -s conftest.err
18423 } && test -s conftest$ac_exeext && {
18424 test "$cross_compiling" = yes ||
18425 $as_test_x conftest$ac_exeext
18426 }; then
11022 ac_cv_lib_elf_elf_begin=yes 18427 ac_cv_lib_elf_elf_begin=yes
11023 else 18428 else
11024 ac_cv_lib_elf_elf_begin=no 18429 $as_echo "$as_me: failed program was:" >&5
11025 fi 18430 sed 's/^/| /' conftest.$ac_ext >&5
11026 rm -f core conftest.err conftest.$ac_objext \ 18431
11027 conftest$ac_exeext conftest.$ac_ext 18432 ac_cv_lib_elf_elf_begin=no
18433 fi
18434
18435 rm -rf conftest.dSYM
18436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18437 conftest$ac_exeext conftest.$ac_ext
11028 LIBS=$ac_check_lib_save_LIBS 18438 LIBS=$ac_check_lib_save_LIBS
11029 fi 18439 fi
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5 18440 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
11031 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; } 18441 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11032 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then : 18442 if test $ac_cv_lib_elf_elf_begin = yes; then
11033 LIBS="-lelf $LIBS" 18443 LIBS="-lelf $LIBS"
11034 fi 18444 fi
11035 18445
11036 fi 18446 fi
11037 if test $ac_have_func = no; then 18447 if test $ac_have_func = no; then
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5 18448 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
11039 $as_echo_n "checking for kvm_open in -lkvm... " >&6; } 18449 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11040 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then : 18450 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
11041 $as_echo_n "(cached) " >&6 18451 $as_echo_n "(cached) " >&6
11042 else 18452 else
11043 ac_check_lib_save_LIBS=$LIBS 18453 ac_check_lib_save_LIBS=$LIBS
11044 LIBS="-lkvm $LIBS" 18454 LIBS="-lkvm $LIBS"
11045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18455 cat >conftest.$ac_ext <<_ACEOF
18456 /* confdefs.h. */
18457 _ACEOF
18458 cat confdefs.h >>conftest.$ac_ext
18459 cat >>conftest.$ac_ext <<_ACEOF
11046 /* end confdefs.h. */ 18460 /* end confdefs.h. */
11047 18461
11048 /* Override any GCC internal prototype to avoid an error. 18462 /* Override any GCC internal prototype to avoid an error.
11049 Use char because int might match the return type of a GCC 18463 Use char because int might match the return type of a GCC
11050 builtin and then its argument prototype would still apply. */ 18464 builtin and then its argument prototype would still apply. */
11058 return kvm_open (); 18472 return kvm_open ();
11059 ; 18473 ;
11060 return 0; 18474 return 0;
11061 } 18475 }
11062 _ACEOF 18476 _ACEOF
11063 if ac_fn_c_try_link "$LINENO"; then : 18477 rm -f conftest.$ac_objext conftest$ac_exeext
18478 if { (ac_try="$ac_link"
18479 case "(($ac_try" in
18480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18481 *) ac_try_echo=$ac_try;;
18482 esac
18483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18484 $as_echo "$ac_try_echo") >&5
18485 (eval "$ac_link") 2>conftest.er1
18486 ac_status=$?
18487 grep -v '^ *+' conftest.er1 >conftest.err
18488 rm -f conftest.er1
18489 cat conftest.err >&5
18490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); } && {
18492 test -z "$ac_c_werror_flag" ||
18493 test ! -s conftest.err
18494 } && test -s conftest$ac_exeext && {
18495 test "$cross_compiling" = yes ||
18496 $as_test_x conftest$ac_exeext
18497 }; then
11064 ac_cv_lib_kvm_kvm_open=yes 18498 ac_cv_lib_kvm_kvm_open=yes
11065 else 18499 else
11066 ac_cv_lib_kvm_kvm_open=no 18500 $as_echo "$as_me: failed program was:" >&5
11067 fi 18501 sed 's/^/| /' conftest.$ac_ext >&5
11068 rm -f core conftest.err conftest.$ac_objext \ 18502
11069 conftest$ac_exeext conftest.$ac_ext 18503 ac_cv_lib_kvm_kvm_open=no
18504 fi
18505
18506 rm -rf conftest.dSYM
18507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18508 conftest$ac_exeext conftest.$ac_ext
11070 LIBS=$ac_check_lib_save_LIBS 18509 LIBS=$ac_check_lib_save_LIBS
11071 fi 18510 fi
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5 18511 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
11073 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; } 18512 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11074 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then : 18513 if test $ac_cv_lib_kvm_kvm_open = yes; then
11075 LIBS="-lkvm $LIBS" 18514 LIBS="-lkvm $LIBS"
11076 fi 18515 fi
11077 18516
11078 # Check for the 4.4BSD definition of getloadavg. 18517 # Check for the 4.4BSD definition of getloadavg.
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5 18518 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
11080 $as_echo_n "checking for getloadavg in -lutil... " >&6; } 18519 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
11081 if test "${ac_cv_lib_util_getloadavg+set}" = set; then : 18520 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
11082 $as_echo_n "(cached) " >&6 18521 $as_echo_n "(cached) " >&6
11083 else 18522 else
11084 ac_check_lib_save_LIBS=$LIBS 18523 ac_check_lib_save_LIBS=$LIBS
11085 LIBS="-lutil $LIBS" 18524 LIBS="-lutil $LIBS"
11086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18525 cat >conftest.$ac_ext <<_ACEOF
18526 /* confdefs.h. */
18527 _ACEOF
18528 cat confdefs.h >>conftest.$ac_ext
18529 cat >>conftest.$ac_ext <<_ACEOF
11087 /* end confdefs.h. */ 18530 /* end confdefs.h. */
11088 18531
11089 /* Override any GCC internal prototype to avoid an error. 18532 /* Override any GCC internal prototype to avoid an error.
11090 Use char because int might match the return type of a GCC 18533 Use char because int might match the return type of a GCC
11091 builtin and then its argument prototype would still apply. */ 18534 builtin and then its argument prototype would still apply. */
11099 return getloadavg (); 18542 return getloadavg ();
11100 ; 18543 ;
11101 return 0; 18544 return 0;
11102 } 18545 }
11103 _ACEOF 18546 _ACEOF
11104 if ac_fn_c_try_link "$LINENO"; then : 18547 rm -f conftest.$ac_objext conftest$ac_exeext
18548 if { (ac_try="$ac_link"
18549 case "(($ac_try" in
18550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18551 *) ac_try_echo=$ac_try;;
18552 esac
18553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18554 $as_echo "$ac_try_echo") >&5
18555 (eval "$ac_link") 2>conftest.er1
18556 ac_status=$?
18557 grep -v '^ *+' conftest.er1 >conftest.err
18558 rm -f conftest.er1
18559 cat conftest.err >&5
18560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); } && {
18562 test -z "$ac_c_werror_flag" ||
18563 test ! -s conftest.err
18564 } && test -s conftest$ac_exeext && {
18565 test "$cross_compiling" = yes ||
18566 $as_test_x conftest$ac_exeext
18567 }; then
11105 ac_cv_lib_util_getloadavg=yes 18568 ac_cv_lib_util_getloadavg=yes
11106 else 18569 else
11107 ac_cv_lib_util_getloadavg=no 18570 $as_echo "$as_me: failed program was:" >&5
11108 fi 18571 sed 's/^/| /' conftest.$ac_ext >&5
11109 rm -f core conftest.err conftest.$ac_objext \ 18572
11110 conftest$ac_exeext conftest.$ac_ext 18573 ac_cv_lib_util_getloadavg=no
18574 fi
18575
18576 rm -rf conftest.dSYM
18577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18578 conftest$ac_exeext conftest.$ac_ext
11111 LIBS=$ac_check_lib_save_LIBS 18579 LIBS=$ac_check_lib_save_LIBS
11112 fi 18580 fi
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5 18581 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
11114 $as_echo "$ac_cv_lib_util_getloadavg" >&6; } 18582 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
11115 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then : 18583 if test $ac_cv_lib_util_getloadavg = yes; then
11116 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes 18584 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
11117 fi 18585 fi
11118 18586
11119 fi 18587 fi
11120 18588
11121 if test $ac_have_func = no; then 18589 if test $ac_have_func = no; then
11122 # There is a commonly available library for RS/6000 AIX. 18590 # There is a commonly available library for RS/6000 AIX.
11123 # Since it is not a standard part of AIX, it might be installed locally. 18591 # Since it is not a standard part of AIX, it might be installed locally.
11124 ac_getloadavg_LIBS=$LIBS 18592 ac_getloadavg_LIBS=$LIBS
11125 LIBS="-L/usr/local/lib $LIBS" 18593 LIBS="-L/usr/local/lib $LIBS"
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5 18594 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
11127 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; } 18595 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
11128 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then : 18596 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
11129 $as_echo_n "(cached) " >&6 18597 $as_echo_n "(cached) " >&6
11130 else 18598 else
11131 ac_check_lib_save_LIBS=$LIBS 18599 ac_check_lib_save_LIBS=$LIBS
11132 LIBS="-lgetloadavg $LIBS" 18600 LIBS="-lgetloadavg $LIBS"
11133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18601 cat >conftest.$ac_ext <<_ACEOF
18602 /* confdefs.h. */
18603 _ACEOF
18604 cat confdefs.h >>conftest.$ac_ext
18605 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h. */ 18606 /* end confdefs.h. */
11135 18607
11136 /* Override any GCC internal prototype to avoid an error. 18608 /* Override any GCC internal prototype to avoid an error.
11137 Use char because int might match the return type of a GCC 18609 Use char because int might match the return type of a GCC
11138 builtin and then its argument prototype would still apply. */ 18610 builtin and then its argument prototype would still apply. */
11146 return getloadavg (); 18618 return getloadavg ();
11147 ; 18619 ;
11148 return 0; 18620 return 0;
11149 } 18621 }
11150 _ACEOF 18622 _ACEOF
11151 if ac_fn_c_try_link "$LINENO"; then : 18623 rm -f conftest.$ac_objext conftest$ac_exeext
18624 if { (ac_try="$ac_link"
18625 case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18628 esac
18629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18630 $as_echo "$ac_try_echo") >&5
18631 (eval "$ac_link") 2>conftest.er1
18632 ac_status=$?
18633 grep -v '^ *+' conftest.er1 >conftest.err
18634 rm -f conftest.er1
18635 cat conftest.err >&5
18636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 (exit $ac_status); } && {
18638 test -z "$ac_c_werror_flag" ||
18639 test ! -s conftest.err
18640 } && test -s conftest$ac_exeext && {
18641 test "$cross_compiling" = yes ||
18642 $as_test_x conftest$ac_exeext
18643 }; then
11152 ac_cv_lib_getloadavg_getloadavg=yes 18644 ac_cv_lib_getloadavg_getloadavg=yes
11153 else 18645 else
11154 ac_cv_lib_getloadavg_getloadavg=no 18646 $as_echo "$as_me: failed program was:" >&5
11155 fi 18647 sed 's/^/| /' conftest.$ac_ext >&5
11156 rm -f core conftest.err conftest.$ac_objext \ 18648
11157 conftest$ac_exeext conftest.$ac_ext 18649 ac_cv_lib_getloadavg_getloadavg=no
18650 fi
18651
18652 rm -rf conftest.dSYM
18653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18654 conftest$ac_exeext conftest.$ac_ext
11158 LIBS=$ac_check_lib_save_LIBS 18655 LIBS=$ac_check_lib_save_LIBS
11159 fi 18656 fi
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5 18657 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11161 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; } 18658 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
11162 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then : 18659 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
11163 LIBS="-lgetloadavg $LIBS" 18660 LIBS="-lgetloadavg $LIBS"
11164 else 18661 else
11165 LIBS=$ac_getloadavg_LIBS 18662 LIBS=$ac_getloadavg_LIBS
11166 fi 18663 fi
11167 18664
11168 fi 18665 fi
11169 18666
11170 # Make sure it is really in the library, if we think we found it, 18667 # Make sure it is really in the library, if we think we found it,
11171 # otherwise set up the replacement function. 18668 # otherwise set up the replacement function.
18669
11172 for ac_func in getloadavg 18670 for ac_func in getloadavg
11173 do : 18671 do
11174 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" 18672 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11175 if test "x$ac_cv_func_getloadavg" = x""yes; then : 18673 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18674 $as_echo_n "checking for $ac_func... " >&6; }
18675 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18676 $as_echo_n "(cached) " >&6
18677 else
18678 cat >conftest.$ac_ext <<_ACEOF
18679 /* confdefs.h. */
18680 _ACEOF
18681 cat confdefs.h >>conftest.$ac_ext
18682 cat >>conftest.$ac_ext <<_ACEOF
18683 /* end confdefs.h. */
18684 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18686 #define $ac_func innocuous_$ac_func
18687
18688 /* System header to define __stub macros and hopefully few prototypes,
18689 which can conflict with char $ac_func (); below.
18690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18691 <limits.h> exists even on freestanding compilers. */
18692
18693 #ifdef __STDC__
18694 # include <limits.h>
18695 #else
18696 # include <assert.h>
18697 #endif
18698
18699 #undef $ac_func
18700
18701 /* Override any GCC internal prototype to avoid an error.
18702 Use char because int might match the return type of a GCC
18703 builtin and then its argument prototype would still apply. */
18704 #ifdef __cplusplus
18705 extern "C"
18706 #endif
18707 char $ac_func ();
18708 /* The GNU C library defines this for functions which it implements
18709 to always fail with ENOSYS. Some functions are actually named
18710 something starting with __ and the normal name is an alias. */
18711 #if defined __stub_$ac_func || defined __stub___$ac_func
18712 choke me
18713 #endif
18714
18715 int
18716 main ()
18717 {
18718 return $ac_func ();
18719 ;
18720 return 0;
18721 }
18722 _ACEOF
18723 rm -f conftest.$ac_objext conftest$ac_exeext
18724 if { (ac_try="$ac_link"
18725 case "(($ac_try" in
18726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18727 *) ac_try_echo=$ac_try;;
18728 esac
18729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18730 $as_echo "$ac_try_echo") >&5
18731 (eval "$ac_link") 2>conftest.er1
18732 ac_status=$?
18733 grep -v '^ *+' conftest.er1 >conftest.err
18734 rm -f conftest.er1
18735 cat conftest.err >&5
18736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); } && {
18738 test -z "$ac_c_werror_flag" ||
18739 test ! -s conftest.err
18740 } && test -s conftest$ac_exeext && {
18741 test "$cross_compiling" = yes ||
18742 $as_test_x conftest$ac_exeext
18743 }; then
18744 eval "$as_ac_var=yes"
18745 else
18746 $as_echo "$as_me: failed program was:" >&5
18747 sed 's/^/| /' conftest.$ac_ext >&5
18748
18749 eval "$as_ac_var=no"
18750 fi
18751
18752 rm -rf conftest.dSYM
18753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18754 conftest$ac_exeext conftest.$ac_ext
18755 fi
18756 ac_res=`eval 'as_val=${'$as_ac_var'}
18757 $as_echo "$as_val"'`
18758 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18759 $as_echo "$ac_res" >&6; }
18760 if test `eval 'as_val=${'$as_ac_var'}
18761 $as_echo "$as_val"'` = yes; then
11176 cat >>confdefs.h <<_ACEOF 18762 cat >>confdefs.h <<_ACEOF
11177 #define HAVE_GETLOADAVG 1 18763 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11178 _ACEOF 18764 _ACEOF
11179 18765
11180 else 18766 else
11181 case " $LIBOBJS " in 18767 case " $LIBOBJS " in
11182 *" getloadavg.$ac_objext "* ) ;; 18768 *" getloadavg.$ac_objext "* ) ;;
11183 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" 18769 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
11184 ;; 18770 ;;
11185 esac 18771 esac
11186 18772
11187 18773
11188 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h 18774 cat >>confdefs.h <<\_ACEOF
18775 #define C_GETLOADAVG 1
18776 _ACEOF
11189 18777
11190 # Figure out what our getloadavg.c needs. 18778 # Figure out what our getloadavg.c needs.
11191 ac_have_func=no 18779 ac_have_func=no
11192 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default" 18780 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11193 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then : 18781 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18782 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18783 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18784 $as_echo_n "(cached) " >&6
18785 fi
18786 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18787 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18788 else
18789 # Is the header compilable?
18790 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18791 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
18792 cat >conftest.$ac_ext <<_ACEOF
18793 /* confdefs.h. */
18794 _ACEOF
18795 cat confdefs.h >>conftest.$ac_ext
18796 cat >>conftest.$ac_ext <<_ACEOF
18797 /* end confdefs.h. */
18798 $ac_includes_default
18799 #include <sys/dg_sys_info.h>
18800 _ACEOF
18801 rm -f conftest.$ac_objext
18802 if { (ac_try="$ac_compile"
18803 case "(($ac_try" in
18804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805 *) ac_try_echo=$ac_try;;
18806 esac
18807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18808 $as_echo "$ac_try_echo") >&5
18809 (eval "$ac_compile") 2>conftest.er1
18810 ac_status=$?
18811 grep -v '^ *+' conftest.er1 >conftest.err
18812 rm -f conftest.er1
18813 cat conftest.err >&5
18814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); } && {
18816 test -z "$ac_c_werror_flag" ||
18817 test ! -s conftest.err
18818 } && test -s conftest.$ac_objext; then
18819 ac_header_compiler=yes
18820 else
18821 $as_echo "$as_me: failed program was:" >&5
18822 sed 's/^/| /' conftest.$ac_ext >&5
18823
18824 ac_header_compiler=no
18825 fi
18826
18827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18828 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18829 $as_echo "$ac_header_compiler" >&6; }
18830
18831 # Is the header present?
18832 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18833 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
18834 cat >conftest.$ac_ext <<_ACEOF
18835 /* confdefs.h. */
18836 _ACEOF
18837 cat confdefs.h >>conftest.$ac_ext
18838 cat >>conftest.$ac_ext <<_ACEOF
18839 /* end confdefs.h. */
18840 #include <sys/dg_sys_info.h>
18841 _ACEOF
18842 if { (ac_try="$ac_cpp conftest.$ac_ext"
18843 case "(($ac_try" in
18844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845 *) ac_try_echo=$ac_try;;
18846 esac
18847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18848 $as_echo "$ac_try_echo") >&5
18849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18850 ac_status=$?
18851 grep -v '^ *+' conftest.er1 >conftest.err
18852 rm -f conftest.er1
18853 cat conftest.err >&5
18854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); } >/dev/null && {
18856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18857 test ! -s conftest.err
18858 }; then
18859 ac_header_preproc=yes
18860 else
18861 $as_echo "$as_me: failed program was:" >&5
18862 sed 's/^/| /' conftest.$ac_ext >&5
18863
18864 ac_header_preproc=no
18865 fi
18866
18867 rm -f conftest.err conftest.$ac_ext
18868 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18869 $as_echo "$ac_header_preproc" >&6; }
18870
18871 # So? What about this header?
18872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18873 yes:no: )
18874 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18875 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18876 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18877 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18878 ac_header_preproc=yes
18879 ;;
18880 no:yes:* )
18881 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18882 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18883 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18884 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18885 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18886 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18887 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18888 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18889 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18890 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18891 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
18892 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
18893
18894 ;;
18895 esac
18896 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18897 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18898 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18899 $as_echo_n "(cached) " >&6
18900 else
18901 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18902 fi
18903 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18904 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18905
18906 fi
18907 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
11194 ac_have_func=yes 18908 ac_have_func=yes
11195 18909
11196 $as_echo "#define DGUX 1" >>confdefs.h 18910 cat >>confdefs.h <<\_ACEOF
11197 18911 #define DGUX 1
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5 18912 _ACEOF
18913
18914
18915 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
11199 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; } 18916 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11200 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then : 18917 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
11201 $as_echo_n "(cached) " >&6 18918 $as_echo_n "(cached) " >&6
11202 else 18919 else
11203 ac_check_lib_save_LIBS=$LIBS 18920 ac_check_lib_save_LIBS=$LIBS
11204 LIBS="-ldgc $LIBS" 18921 LIBS="-ldgc $LIBS"
11205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18922 cat >conftest.$ac_ext <<_ACEOF
18923 /* confdefs.h. */
18924 _ACEOF
18925 cat confdefs.h >>conftest.$ac_ext
18926 cat >>conftest.$ac_ext <<_ACEOF
11206 /* end confdefs.h. */ 18927 /* end confdefs.h. */
11207 18928
11208 /* Override any GCC internal prototype to avoid an error. 18929 /* Override any GCC internal prototype to avoid an error.
11209 Use char because int might match the return type of a GCC 18930 Use char because int might match the return type of a GCC
11210 builtin and then its argument prototype would still apply. */ 18931 builtin and then its argument prototype would still apply. */
11218 return dg_sys_info (); 18939 return dg_sys_info ();
11219 ; 18940 ;
11220 return 0; 18941 return 0;
11221 } 18942 }
11222 _ACEOF 18943 _ACEOF
11223 if ac_fn_c_try_link "$LINENO"; then : 18944 rm -f conftest.$ac_objext conftest$ac_exeext
18945 if { (ac_try="$ac_link"
18946 case "(($ac_try" in
18947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18948 *) ac_try_echo=$ac_try;;
18949 esac
18950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18951 $as_echo "$ac_try_echo") >&5
18952 (eval "$ac_link") 2>conftest.er1
18953 ac_status=$?
18954 grep -v '^ *+' conftest.er1 >conftest.err
18955 rm -f conftest.er1
18956 cat conftest.err >&5
18957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); } && {
18959 test -z "$ac_c_werror_flag" ||
18960 test ! -s conftest.err
18961 } && test -s conftest$ac_exeext && {
18962 test "$cross_compiling" = yes ||
18963 $as_test_x conftest$ac_exeext
18964 }; then
11224 ac_cv_lib_dgc_dg_sys_info=yes 18965 ac_cv_lib_dgc_dg_sys_info=yes
11225 else 18966 else
11226 ac_cv_lib_dgc_dg_sys_info=no 18967 $as_echo "$as_me: failed program was:" >&5
11227 fi 18968 sed 's/^/| /' conftest.$ac_ext >&5
11228 rm -f core conftest.err conftest.$ac_objext \ 18969
11229 conftest$ac_exeext conftest.$ac_ext 18970 ac_cv_lib_dgc_dg_sys_info=no
18971 fi
18972
18973 rm -rf conftest.dSYM
18974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18975 conftest$ac_exeext conftest.$ac_ext
11230 LIBS=$ac_check_lib_save_LIBS 18976 LIBS=$ac_check_lib_save_LIBS
11231 fi 18977 fi
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5 18978 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11233 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; } 18979 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11234 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then : 18980 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
11235 cat >>confdefs.h <<_ACEOF 18981 cat >>confdefs.h <<_ACEOF
11236 #define HAVE_LIBDGC 1 18982 #define HAVE_LIBDGC 1
11237 _ACEOF 18983 _ACEOF
11238 18984
11239 LIBS="-ldgc $LIBS" 18985 LIBS="-ldgc $LIBS"
11242 18988
11243 fi 18989 fi
11244 18990
11245 18991
11246 18992
11247 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" 18993 if test "${ac_cv_header_locale_h+set}" = set; then
11248 if test "x$ac_cv_header_locale_h" = x""yes; then : 18994 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
11249 18995 $as_echo_n "checking for locale.h... " >&6; }
11250 fi 18996 if test "${ac_cv_header_locale_h+set}" = set; then
18997 $as_echo_n "(cached) " >&6
18998 fi
18999 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19000 $as_echo "$ac_cv_header_locale_h" >&6; }
19001 else
19002 # Is the header compilable?
19003 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19004 $as_echo_n "checking locale.h usability... " >&6; }
19005 cat >conftest.$ac_ext <<_ACEOF
19006 /* confdefs.h. */
19007 _ACEOF
19008 cat confdefs.h >>conftest.$ac_ext
19009 cat >>conftest.$ac_ext <<_ACEOF
19010 /* end confdefs.h. */
19011 $ac_includes_default
19012 #include <locale.h>
19013 _ACEOF
19014 rm -f conftest.$ac_objext
19015 if { (ac_try="$ac_compile"
19016 case "(($ac_try" in
19017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19018 *) ac_try_echo=$ac_try;;
19019 esac
19020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19021 $as_echo "$ac_try_echo") >&5
19022 (eval "$ac_compile") 2>conftest.er1
19023 ac_status=$?
19024 grep -v '^ *+' conftest.er1 >conftest.err
19025 rm -f conftest.er1
19026 cat conftest.err >&5
19027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); } && {
19029 test -z "$ac_c_werror_flag" ||
19030 test ! -s conftest.err
19031 } && test -s conftest.$ac_objext; then
19032 ac_header_compiler=yes
19033 else
19034 $as_echo "$as_me: failed program was:" >&5
19035 sed 's/^/| /' conftest.$ac_ext >&5
19036
19037 ac_header_compiler=no
19038 fi
19039
19040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19041 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19042 $as_echo "$ac_header_compiler" >&6; }
19043
19044 # Is the header present?
19045 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19046 $as_echo_n "checking locale.h presence... " >&6; }
19047 cat >conftest.$ac_ext <<_ACEOF
19048 /* confdefs.h. */
19049 _ACEOF
19050 cat confdefs.h >>conftest.$ac_ext
19051 cat >>conftest.$ac_ext <<_ACEOF
19052 /* end confdefs.h. */
19053 #include <locale.h>
19054 _ACEOF
19055 if { (ac_try="$ac_cpp conftest.$ac_ext"
19056 case "(($ac_try" in
19057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058 *) ac_try_echo=$ac_try;;
19059 esac
19060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19061 $as_echo "$ac_try_echo") >&5
19062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19063 ac_status=$?
19064 grep -v '^ *+' conftest.er1 >conftest.err
19065 rm -f conftest.er1
19066 cat conftest.err >&5
19067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); } >/dev/null && {
19069 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19070 test ! -s conftest.err
19071 }; then
19072 ac_header_preproc=yes
19073 else
19074 $as_echo "$as_me: failed program was:" >&5
19075 sed 's/^/| /' conftest.$ac_ext >&5
19076
19077 ac_header_preproc=no
19078 fi
19079
19080 rm -f conftest.err conftest.$ac_ext
19081 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19082 $as_echo "$ac_header_preproc" >&6; }
19083
19084 # So? What about this header?
19085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19086 yes:no: )
19087 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19088 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19089 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19090 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19091 ac_header_preproc=yes
19092 ;;
19093 no:yes:* )
19094 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19095 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19096 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19097 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19098 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19099 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19100 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19101 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19102 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19103 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19104 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19105 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19106
19107 ;;
19108 esac
19109 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19110 $as_echo_n "checking for locale.h... " >&6; }
19111 if test "${ac_cv_header_locale_h+set}" = set; then
19112 $as_echo_n "(cached) " >&6
19113 else
19114 ac_cv_header_locale_h=$ac_header_preproc
19115 fi
19116 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19117 $as_echo "$ac_cv_header_locale_h" >&6; }
19118
19119 fi
19120
11251 19121
11252 19122
11253 for ac_func in setlocale 19123 for ac_func in setlocale
11254 do : 19124 do
11255 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" 19125 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11256 if test "x$ac_cv_func_setlocale" = x""yes; then : 19126 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19127 $as_echo_n "checking for $ac_func... " >&6; }
19128 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19129 $as_echo_n "(cached) " >&6
19130 else
19131 cat >conftest.$ac_ext <<_ACEOF
19132 /* confdefs.h. */
19133 _ACEOF
19134 cat confdefs.h >>conftest.$ac_ext
19135 cat >>conftest.$ac_ext <<_ACEOF
19136 /* end confdefs.h. */
19137 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19139 #define $ac_func innocuous_$ac_func
19140
19141 /* System header to define __stub macros and hopefully few prototypes,
19142 which can conflict with char $ac_func (); below.
19143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19144 <limits.h> exists even on freestanding compilers. */
19145
19146 #ifdef __STDC__
19147 # include <limits.h>
19148 #else
19149 # include <assert.h>
19150 #endif
19151
19152 #undef $ac_func
19153
19154 /* Override any GCC internal prototype to avoid an error.
19155 Use char because int might match the return type of a GCC
19156 builtin and then its argument prototype would still apply. */
19157 #ifdef __cplusplus
19158 extern "C"
19159 #endif
19160 char $ac_func ();
19161 /* The GNU C library defines this for functions which it implements
19162 to always fail with ENOSYS. Some functions are actually named
19163 something starting with __ and the normal name is an alias. */
19164 #if defined __stub_$ac_func || defined __stub___$ac_func
19165 choke me
19166 #endif
19167
19168 int
19169 main ()
19170 {
19171 return $ac_func ();
19172 ;
19173 return 0;
19174 }
19175 _ACEOF
19176 rm -f conftest.$ac_objext conftest$ac_exeext
19177 if { (ac_try="$ac_link"
19178 case "(($ac_try" in
19179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19180 *) ac_try_echo=$ac_try;;
19181 esac
19182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19183 $as_echo "$ac_try_echo") >&5
19184 (eval "$ac_link") 2>conftest.er1
19185 ac_status=$?
19186 grep -v '^ *+' conftest.er1 >conftest.err
19187 rm -f conftest.er1
19188 cat conftest.err >&5
19189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); } && {
19191 test -z "$ac_c_werror_flag" ||
19192 test ! -s conftest.err
19193 } && test -s conftest$ac_exeext && {
19194 test "$cross_compiling" = yes ||
19195 $as_test_x conftest$ac_exeext
19196 }; then
19197 eval "$as_ac_var=yes"
19198 else
19199 $as_echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19201
19202 eval "$as_ac_var=no"
19203 fi
19204
19205 rm -rf conftest.dSYM
19206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19207 conftest$ac_exeext conftest.$ac_ext
19208 fi
19209 ac_res=`eval 'as_val=${'$as_ac_var'}
19210 $as_echo "$as_val"'`
19211 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19212 $as_echo "$ac_res" >&6; }
19213 if test `eval 'as_val=${'$as_ac_var'}
19214 $as_echo "$as_val"'` = yes; then
11257 cat >>confdefs.h <<_ACEOF 19215 cat >>confdefs.h <<_ACEOF
11258 #define HAVE_SETLOCALE 1 19216 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11259 _ACEOF 19217 _ACEOF
11260 19218
11261 fi 19219 fi
11262 done 19220 done
11263 19221
11266 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because 19224 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11267 # Irix 4.0.5F has the header but not the library. 19225 # Irix 4.0.5F has the header but not the library.
11268 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then 19226 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
11269 ac_have_func=yes 19227 ac_have_func=yes
11270 19228
11271 $as_echo "#define SVR4 1" >>confdefs.h 19229 cat >>confdefs.h <<\_ACEOF
19230 #define SVR4 1
19231 _ACEOF
11272 19232
11273 fi 19233 fi
11274 19234
11275 if test $ac_have_func = no; then 19235 if test $ac_have_func = no; then
11276 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default" 19236 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11277 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then : 19237 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19238 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19239 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19240 $as_echo_n "(cached) " >&6
19241 fi
19242 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19243 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19244 else
19245 # Is the header compilable?
19246 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19247 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19248 cat >conftest.$ac_ext <<_ACEOF
19249 /* confdefs.h. */
19250 _ACEOF
19251 cat confdefs.h >>conftest.$ac_ext
19252 cat >>conftest.$ac_ext <<_ACEOF
19253 /* end confdefs.h. */
19254 $ac_includes_default
19255 #include <inq_stats/cpustats.h>
19256 _ACEOF
19257 rm -f conftest.$ac_objext
19258 if { (ac_try="$ac_compile"
19259 case "(($ac_try" in
19260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19261 *) ac_try_echo=$ac_try;;
19262 esac
19263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19264 $as_echo "$ac_try_echo") >&5
19265 (eval "$ac_compile") 2>conftest.er1
19266 ac_status=$?
19267 grep -v '^ *+' conftest.er1 >conftest.err
19268 rm -f conftest.er1
19269 cat conftest.err >&5
19270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); } && {
19272 test -z "$ac_c_werror_flag" ||
19273 test ! -s conftest.err
19274 } && test -s conftest.$ac_objext; then
19275 ac_header_compiler=yes
19276 else
19277 $as_echo "$as_me: failed program was:" >&5
19278 sed 's/^/| /' conftest.$ac_ext >&5
19279
19280 ac_header_compiler=no
19281 fi
19282
19283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19284 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19285 $as_echo "$ac_header_compiler" >&6; }
19286
19287 # Is the header present?
19288 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19289 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19290 cat >conftest.$ac_ext <<_ACEOF
19291 /* confdefs.h. */
19292 _ACEOF
19293 cat confdefs.h >>conftest.$ac_ext
19294 cat >>conftest.$ac_ext <<_ACEOF
19295 /* end confdefs.h. */
19296 #include <inq_stats/cpustats.h>
19297 _ACEOF
19298 if { (ac_try="$ac_cpp conftest.$ac_ext"
19299 case "(($ac_try" in
19300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19301 *) ac_try_echo=$ac_try;;
19302 esac
19303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19304 $as_echo "$ac_try_echo") >&5
19305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19306 ac_status=$?
19307 grep -v '^ *+' conftest.er1 >conftest.err
19308 rm -f conftest.er1
19309 cat conftest.err >&5
19310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); } >/dev/null && {
19312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19313 test ! -s conftest.err
19314 }; then
19315 ac_header_preproc=yes
19316 else
19317 $as_echo "$as_me: failed program was:" >&5
19318 sed 's/^/| /' conftest.$ac_ext >&5
19319
19320 ac_header_preproc=no
19321 fi
19322
19323 rm -f conftest.err conftest.$ac_ext
19324 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19325 $as_echo "$ac_header_preproc" >&6; }
19326
19327 # So? What about this header?
19328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19329 yes:no: )
19330 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19331 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19332 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19333 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19334 ac_header_preproc=yes
19335 ;;
19336 no:yes:* )
19337 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19338 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19339 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19340 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19341 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19342 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19343 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19344 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19345 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19346 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19347 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19348 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19349
19350 ;;
19351 esac
19352 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19353 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19354 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19355 $as_echo_n "(cached) " >&6
19356 else
19357 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19358 fi
19359 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19360 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19361
19362 fi
19363 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
11278 ac_have_func=yes 19364 ac_have_func=yes
11279 19365
11280 $as_echo "#define UMAX 1" >>confdefs.h 19366 cat >>confdefs.h <<\_ACEOF
11281 19367 #define UMAX 1
11282 19368 _ACEOF
11283 $as_echo "#define UMAX4_3 1" >>confdefs.h 19369
19370
19371 cat >>confdefs.h <<\_ACEOF
19372 #define UMAX4_3 1
19373 _ACEOF
11284 19374
11285 fi 19375 fi
11286 19376
11287 19377
11288 fi 19378 fi
11289 19379
11290 if test $ac_have_func = no; then 19380 if test $ac_have_func = no; then
11291 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default" 19381 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11292 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then : 19382 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11293 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h 19383 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19384 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19385 $as_echo_n "(cached) " >&6
19386 fi
19387 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19388 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19389 else
19390 # Is the header compilable?
19391 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19392 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
19393 cat >conftest.$ac_ext <<_ACEOF
19394 /* confdefs.h. */
19395 _ACEOF
19396 cat confdefs.h >>conftest.$ac_ext
19397 cat >>conftest.$ac_ext <<_ACEOF
19398 /* end confdefs.h. */
19399 $ac_includes_default
19400 #include <sys/cpustats.h>
19401 _ACEOF
19402 rm -f conftest.$ac_objext
19403 if { (ac_try="$ac_compile"
19404 case "(($ac_try" in
19405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19406 *) ac_try_echo=$ac_try;;
19407 esac
19408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19409 $as_echo "$ac_try_echo") >&5
19410 (eval "$ac_compile") 2>conftest.er1
19411 ac_status=$?
19412 grep -v '^ *+' conftest.er1 >conftest.err
19413 rm -f conftest.er1
19414 cat conftest.err >&5
19415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); } && {
19417 test -z "$ac_c_werror_flag" ||
19418 test ! -s conftest.err
19419 } && test -s conftest.$ac_objext; then
19420 ac_header_compiler=yes
19421 else
19422 $as_echo "$as_me: failed program was:" >&5
19423 sed 's/^/| /' conftest.$ac_ext >&5
19424
19425 ac_header_compiler=no
19426 fi
19427
19428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19429 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19430 $as_echo "$ac_header_compiler" >&6; }
19431
19432 # Is the header present?
19433 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19434 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19435 cat >conftest.$ac_ext <<_ACEOF
19436 /* confdefs.h. */
19437 _ACEOF
19438 cat confdefs.h >>conftest.$ac_ext
19439 cat >>conftest.$ac_ext <<_ACEOF
19440 /* end confdefs.h. */
19441 #include <sys/cpustats.h>
19442 _ACEOF
19443 if { (ac_try="$ac_cpp conftest.$ac_ext"
19444 case "(($ac_try" in
19445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19446 *) ac_try_echo=$ac_try;;
19447 esac
19448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19449 $as_echo "$ac_try_echo") >&5
19450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19451 ac_status=$?
19452 grep -v '^ *+' conftest.er1 >conftest.err
19453 rm -f conftest.er1
19454 cat conftest.err >&5
19455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); } >/dev/null && {
19457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19458 test ! -s conftest.err
19459 }; then
19460 ac_header_preproc=yes
19461 else
19462 $as_echo "$as_me: failed program was:" >&5
19463 sed 's/^/| /' conftest.$ac_ext >&5
19464
19465 ac_header_preproc=no
19466 fi
19467
19468 rm -f conftest.err conftest.$ac_ext
19469 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19470 $as_echo "$ac_header_preproc" >&6; }
19471
19472 # So? What about this header?
19473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19474 yes:no: )
19475 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19476 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19477 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19478 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19479 ac_header_preproc=yes
19480 ;;
19481 no:yes:* )
19482 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19483 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19484 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19485 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19486 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19487 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19488 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19489 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19490 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19491 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19492 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19493 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19494
19495 ;;
19496 esac
19497 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19498 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19499 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19500 $as_echo_n "(cached) " >&6
19501 else
19502 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19503 fi
19504 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19505 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19506
19507 fi
19508 if test $ac_cv_header_sys_cpustats_h = yes; then
19509 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19510 #define UMAX 1
19511 _ACEOF
11294 19512
11295 fi 19513 fi
11296 19514
11297 19515
11298 fi 19516 fi
11299 19517
11300 if test $ac_have_func = no; then 19518 if test $ac_have_func = no; then
11301 for ac_header in mach/mach.h 19519
11302 do : 19520 for ac_header in mach/mach.h
11303 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" 19521 do
11304 if test "x$ac_cv_header_mach_mach_h" = x""yes; then : 19522 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19524 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19525 $as_echo_n "checking for $ac_header... " >&6; }
19526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19527 $as_echo_n "(cached) " >&6
19528 fi
19529 ac_res=`eval 'as_val=${'$as_ac_Header'}
19530 $as_echo "$as_val"'`
19531 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19532 $as_echo "$ac_res" >&6; }
19533 else
19534 # Is the header compilable?
19535 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19536 $as_echo_n "checking $ac_header usability... " >&6; }
19537 cat >conftest.$ac_ext <<_ACEOF
19538 /* confdefs.h. */
19539 _ACEOF
19540 cat confdefs.h >>conftest.$ac_ext
19541 cat >>conftest.$ac_ext <<_ACEOF
19542 /* end confdefs.h. */
19543 $ac_includes_default
19544 #include <$ac_header>
19545 _ACEOF
19546 rm -f conftest.$ac_objext
19547 if { (ac_try="$ac_compile"
19548 case "(($ac_try" in
19549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550 *) ac_try_echo=$ac_try;;
19551 esac
19552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19553 $as_echo "$ac_try_echo") >&5
19554 (eval "$ac_compile") 2>conftest.er1
19555 ac_status=$?
19556 grep -v '^ *+' conftest.er1 >conftest.err
19557 rm -f conftest.er1
19558 cat conftest.err >&5
19559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); } && {
19561 test -z "$ac_c_werror_flag" ||
19562 test ! -s conftest.err
19563 } && test -s conftest.$ac_objext; then
19564 ac_header_compiler=yes
19565 else
19566 $as_echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19568
19569 ac_header_compiler=no
19570 fi
19571
19572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19573 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19574 $as_echo "$ac_header_compiler" >&6; }
19575
19576 # Is the header present?
19577 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19578 $as_echo_n "checking $ac_header presence... " >&6; }
19579 cat >conftest.$ac_ext <<_ACEOF
19580 /* confdefs.h. */
19581 _ACEOF
19582 cat confdefs.h >>conftest.$ac_ext
19583 cat >>conftest.$ac_ext <<_ACEOF
19584 /* end confdefs.h. */
19585 #include <$ac_header>
19586 _ACEOF
19587 if { (ac_try="$ac_cpp conftest.$ac_ext"
19588 case "(($ac_try" in
19589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590 *) ac_try_echo=$ac_try;;
19591 esac
19592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19593 $as_echo "$ac_try_echo") >&5
19594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19595 ac_status=$?
19596 grep -v '^ *+' conftest.er1 >conftest.err
19597 rm -f conftest.er1
19598 cat conftest.err >&5
19599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } >/dev/null && {
19601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19602 test ! -s conftest.err
19603 }; then
19604 ac_header_preproc=yes
19605 else
19606 $as_echo "$as_me: failed program was:" >&5
19607 sed 's/^/| /' conftest.$ac_ext >&5
19608
19609 ac_header_preproc=no
19610 fi
19611
19612 rm -f conftest.err conftest.$ac_ext
19613 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19614 $as_echo "$ac_header_preproc" >&6; }
19615
19616 # So? What about this header?
19617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19618 yes:no: )
19619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19620 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19622 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19623 ac_header_preproc=yes
19624 ;;
19625 no:yes:* )
19626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19627 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19629 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19631 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19633 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19635 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19637 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19638
19639 ;;
19640 esac
19641 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19642 $as_echo_n "checking for $ac_header... " >&6; }
19643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19644 $as_echo_n "(cached) " >&6
19645 else
19646 eval "$as_ac_Header=\$ac_header_preproc"
19647 fi
19648 ac_res=`eval 'as_val=${'$as_ac_Header'}
19649 $as_echo "$as_val"'`
19650 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19651 $as_echo "$ac_res" >&6; }
19652
19653 fi
19654 if test `eval 'as_val=${'$as_ac_Header'}
19655 $as_echo "$as_val"'` = yes; then
11305 cat >>confdefs.h <<_ACEOF 19656 cat >>confdefs.h <<_ACEOF
11306 #define HAVE_MACH_MACH_H 1 19657 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11307 _ACEOF 19658 _ACEOF
11308 19659
11309 fi 19660 fi
11310 19661
11311 done 19662 done
11312 19663
11313 fi 19664 fi
11314 19665
19666
11315 for ac_header in nlist.h 19667 for ac_header in nlist.h
11316 do : 19668 do
11317 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default" 19669 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11318 if test "x$ac_cv_header_nlist_h" = x""yes; then : 19670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19671 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19672 $as_echo_n "checking for $ac_header... " >&6; }
19673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19674 $as_echo_n "(cached) " >&6
19675 fi
19676 ac_res=`eval 'as_val=${'$as_ac_Header'}
19677 $as_echo "$as_val"'`
19678 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19679 $as_echo "$ac_res" >&6; }
19680 else
19681 # Is the header compilable?
19682 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19683 $as_echo_n "checking $ac_header usability... " >&6; }
19684 cat >conftest.$ac_ext <<_ACEOF
19685 /* confdefs.h. */
19686 _ACEOF
19687 cat confdefs.h >>conftest.$ac_ext
19688 cat >>conftest.$ac_ext <<_ACEOF
19689 /* end confdefs.h. */
19690 $ac_includes_default
19691 #include <$ac_header>
19692 _ACEOF
19693 rm -f conftest.$ac_objext
19694 if { (ac_try="$ac_compile"
19695 case "(($ac_try" in
19696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19697 *) ac_try_echo=$ac_try;;
19698 esac
19699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19700 $as_echo "$ac_try_echo") >&5
19701 (eval "$ac_compile") 2>conftest.er1
19702 ac_status=$?
19703 grep -v '^ *+' conftest.er1 >conftest.err
19704 rm -f conftest.er1
19705 cat conftest.err >&5
19706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); } && {
19708 test -z "$ac_c_werror_flag" ||
19709 test ! -s conftest.err
19710 } && test -s conftest.$ac_objext; then
19711 ac_header_compiler=yes
19712 else
19713 $as_echo "$as_me: failed program was:" >&5
19714 sed 's/^/| /' conftest.$ac_ext >&5
19715
19716 ac_header_compiler=no
19717 fi
19718
19719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19720 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19721 $as_echo "$ac_header_compiler" >&6; }
19722
19723 # Is the header present?
19724 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19725 $as_echo_n "checking $ac_header presence... " >&6; }
19726 cat >conftest.$ac_ext <<_ACEOF
19727 /* confdefs.h. */
19728 _ACEOF
19729 cat confdefs.h >>conftest.$ac_ext
19730 cat >>conftest.$ac_ext <<_ACEOF
19731 /* end confdefs.h. */
19732 #include <$ac_header>
19733 _ACEOF
19734 if { (ac_try="$ac_cpp conftest.$ac_ext"
19735 case "(($ac_try" in
19736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19737 *) ac_try_echo=$ac_try;;
19738 esac
19739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19740 $as_echo "$ac_try_echo") >&5
19741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19742 ac_status=$?
19743 grep -v '^ *+' conftest.er1 >conftest.err
19744 rm -f conftest.er1
19745 cat conftest.err >&5
19746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); } >/dev/null && {
19748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19749 test ! -s conftest.err
19750 }; then
19751 ac_header_preproc=yes
19752 else
19753 $as_echo "$as_me: failed program was:" >&5
19754 sed 's/^/| /' conftest.$ac_ext >&5
19755
19756 ac_header_preproc=no
19757 fi
19758
19759 rm -f conftest.err conftest.$ac_ext
19760 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19761 $as_echo "$ac_header_preproc" >&6; }
19762
19763 # So? What about this header?
19764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19765 yes:no: )
19766 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19767 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19768 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19769 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19770 ac_header_preproc=yes
19771 ;;
19772 no:yes:* )
19773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19774 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19776 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19778 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19780 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19782 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19784 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19785
19786 ;;
19787 esac
19788 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19789 $as_echo_n "checking for $ac_header... " >&6; }
19790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19791 $as_echo_n "(cached) " >&6
19792 else
19793 eval "$as_ac_Header=\$ac_header_preproc"
19794 fi
19795 ac_res=`eval 'as_val=${'$as_ac_Header'}
19796 $as_echo "$as_val"'`
19797 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19798 $as_echo "$ac_res" >&6; }
19799
19800 fi
19801 if test `eval 'as_val=${'$as_ac_Header'}
19802 $as_echo "$as_val"'` = yes; then
11319 cat >>confdefs.h <<_ACEOF 19803 cat >>confdefs.h <<_ACEOF
11320 #define HAVE_NLIST_H 1 19804 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11321 _ACEOF 19805 _ACEOF
11322 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h> 19806 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
11323 " 19807 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
11324 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then : 19808 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19809 $as_echo_n "(cached) " >&6
19810 else
19811 cat >conftest.$ac_ext <<_ACEOF
19812 /* confdefs.h. */
19813 _ACEOF
19814 cat confdefs.h >>conftest.$ac_ext
19815 cat >>conftest.$ac_ext <<_ACEOF
19816 /* end confdefs.h. */
19817 #include <nlist.h>
19818
19819 int
19820 main ()
19821 {
19822 static struct nlist ac_aggr;
19823 if (ac_aggr.n_un.n_name)
19824 return 0;
19825 ;
19826 return 0;
19827 }
19828 _ACEOF
19829 rm -f conftest.$ac_objext
19830 if { (ac_try="$ac_compile"
19831 case "(($ac_try" in
19832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19833 *) ac_try_echo=$ac_try;;
19834 esac
19835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19836 $as_echo "$ac_try_echo") >&5
19837 (eval "$ac_compile") 2>conftest.er1
19838 ac_status=$?
19839 grep -v '^ *+' conftest.er1 >conftest.err
19840 rm -f conftest.er1
19841 cat conftest.err >&5
19842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); } && {
19844 test -z "$ac_c_werror_flag" ||
19845 test ! -s conftest.err
19846 } && test -s conftest.$ac_objext; then
19847 ac_cv_member_struct_nlist_n_un_n_name=yes
19848 else
19849 $as_echo "$as_me: failed program was:" >&5
19850 sed 's/^/| /' conftest.$ac_ext >&5
19851
19852 cat >conftest.$ac_ext <<_ACEOF
19853 /* confdefs.h. */
19854 _ACEOF
19855 cat confdefs.h >>conftest.$ac_ext
19856 cat >>conftest.$ac_ext <<_ACEOF
19857 /* end confdefs.h. */
19858 #include <nlist.h>
19859
19860 int
19861 main ()
19862 {
19863 static struct nlist ac_aggr;
19864 if (sizeof ac_aggr.n_un.n_name)
19865 return 0;
19866 ;
19867 return 0;
19868 }
19869 _ACEOF
19870 rm -f conftest.$ac_objext
19871 if { (ac_try="$ac_compile"
19872 case "(($ac_try" in
19873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19874 *) ac_try_echo=$ac_try;;
19875 esac
19876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19877 $as_echo "$ac_try_echo") >&5
19878 (eval "$ac_compile") 2>conftest.er1
19879 ac_status=$?
19880 grep -v '^ *+' conftest.er1 >conftest.err
19881 rm -f conftest.er1
19882 cat conftest.err >&5
19883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); } && {
19885 test -z "$ac_c_werror_flag" ||
19886 test ! -s conftest.err
19887 } && test -s conftest.$ac_objext; then
19888 ac_cv_member_struct_nlist_n_un_n_name=yes
19889 else
19890 $as_echo "$as_me: failed program was:" >&5
19891 sed 's/^/| /' conftest.$ac_ext >&5
19892
19893 ac_cv_member_struct_nlist_n_un_n_name=no
19894 fi
19895
19896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19897 fi
19898
19899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19900 fi
19901 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19902 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19903 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
11325 19904
11326 cat >>confdefs.h <<_ACEOF 19905 cat >>confdefs.h <<_ACEOF
11327 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 19906 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11328 _ACEOF 19907 _ACEOF
11329 19908
11330 19909
11331 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h 19910 cat >>confdefs.h <<\_ACEOF
19911 #define NLIST_NAME_UNION 1
19912 _ACEOF
11332 19913
11333 fi 19914 fi
11334 19915
11335 19916
11336 fi 19917 fi
11340 fi 19921 fi
11341 done 19922 done
11342 19923
11343 19924
11344 # Some definitions of getloadavg require that the program be installed setgid. 19925 # Some definitions of getloadavg require that the program be installed setgid.
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5 19926 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
11346 $as_echo_n "checking whether getloadavg requires setgid... " >&6; } 19927 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
11347 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then : 19928 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
11348 $as_echo_n "(cached) " >&6 19929 $as_echo_n "(cached) " >&6
11349 else 19930 else
11350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19931 cat >conftest.$ac_ext <<_ACEOF
19932 /* confdefs.h. */
19933 _ACEOF
19934 cat confdefs.h >>conftest.$ac_ext
19935 cat >>conftest.$ac_ext <<_ACEOF
11351 /* end confdefs.h. */ 19936 /* end confdefs.h. */
11352 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c" 19937 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11353 #ifdef LDAV_PRIVILEGED 19938 #ifdef LDAV_PRIVILEGED
11354 Yowza Am I SETGID yet 19939 Yowza Am I SETGID yet
11355 #endif 19940 #endif
11356 _ACEOF 19941 _ACEOF
11357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11358 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then : 19943 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
11359 ac_cv_func_getloadavg_setgid=yes 19944 ac_cv_func_getloadavg_setgid=yes
11360 else 19945 else
11361 ac_cv_func_getloadavg_setgid=no 19946 ac_cv_func_getloadavg_setgid=no
11362 fi 19947 fi
11363 rm -f conftest* 19948 rm -f conftest*
11364 19949
11365 fi 19950 fi
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5 19951 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
11367 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; } 19952 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
11368 if test $ac_cv_func_getloadavg_setgid = yes; then 19953 if test $ac_cv_func_getloadavg_setgid = yes; then
11369 NEED_SETGID=true 19954 NEED_SETGID=true
11370 19955
11371 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h 19956 cat >>confdefs.h <<\_ACEOF
19957 #define GETLOADAVG_PRIVILEGED 1
19958 _ACEOF
11372 19959
11373 else 19960 else
11374 NEED_SETGID=false 19961 NEED_SETGID=false
11375 fi 19962 fi
11376 19963
11377 if test $ac_cv_func_getloadavg_setgid = yes; then 19964 if test $ac_cv_func_getloadavg_setgid = yes; then
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5 19965 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
11379 $as_echo_n "checking group of /dev/kmem... " >&6; } 19966 $as_echo_n "checking group of /dev/kmem... " >&6; }
11380 if test "${ac_cv_group_kmem+set}" = set; then : 19967 if test "${ac_cv_group_kmem+set}" = set; then
11381 $as_echo_n "(cached) " >&6 19968 $as_echo_n "(cached) " >&6
11382 else 19969 else
11383 # On Solaris, /dev/kmem is a symlink. Get info on the real file. 19970 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
11384 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` 19971 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
11385 # If we got an error (system does not support symlinks), try without -L. 19972 # If we got an error (system does not support symlinks), try without -L.
11388 | sed -ne 's/[ ][ ]*/ /g; 19975 | sed -ne 's/[ ][ ]*/ /g;
11389 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; 19976 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
11390 / /s/.* //;p;'` 19977 / /s/.* //;p;'`
11391 19978
11392 fi 19979 fi
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5 19980 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
11394 $as_echo "$ac_cv_group_kmem" >&6; } 19981 $as_echo "$ac_cv_group_kmem" >&6; }
11395 KMEM_GROUP=$ac_cv_group_kmem 19982 KMEM_GROUP=$ac_cv_group_kmem
11396 fi 19983 fi
11397 if test "x$ac_save_LIBS" = x; then 19984 if test "x$ac_save_LIBS" = x; then
11398 GETLOADAVG_LIBS=$LIBS 19985 GETLOADAVG_LIBS=$LIBS
11401 fi 19988 fi
11402 LIBS=$ac_save_LIBS 19989 LIBS=$ac_save_LIBS
11403 19990
11404 19991
11405 19992
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 19993 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11407 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 19994 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11408 if test "${ac_cv_sys_largefile_source+set}" = set; then : 19995 if test "${ac_cv_sys_largefile_source+set}" = set; then
11409 $as_echo_n "(cached) " >&6 19996 $as_echo_n "(cached) " >&6
11410 else 19997 else
11411 while :; do 19998 while :; do
11412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19999 cat >conftest.$ac_ext <<_ACEOF
20000 /* confdefs.h. */
20001 _ACEOF
20002 cat confdefs.h >>conftest.$ac_ext
20003 cat >>conftest.$ac_ext <<_ACEOF
11413 /* end confdefs.h. */ 20004 /* end confdefs.h. */
11414 #include <sys/types.h> /* for off_t */ 20005 #include <sys/types.h> /* for off_t */
11415 #include <stdio.h> 20006 #include <stdio.h>
11416 int 20007 int
11417 main () 20008 main ()
11420 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 20011 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11421 ; 20012 ;
11422 return 0; 20013 return 0;
11423 } 20014 }
11424 _ACEOF 20015 _ACEOF
11425 if ac_fn_c_try_link "$LINENO"; then : 20016 rm -f conftest.$ac_objext conftest$ac_exeext
20017 if { (ac_try="$ac_link"
20018 case "(($ac_try" in
20019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20020 *) ac_try_echo=$ac_try;;
20021 esac
20022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20023 $as_echo "$ac_try_echo") >&5
20024 (eval "$ac_link") 2>conftest.er1
20025 ac_status=$?
20026 grep -v '^ *+' conftest.er1 >conftest.err
20027 rm -f conftest.er1
20028 cat conftest.err >&5
20029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); } && {
20031 test -z "$ac_c_werror_flag" ||
20032 test ! -s conftest.err
20033 } && test -s conftest$ac_exeext && {
20034 test "$cross_compiling" = yes ||
20035 $as_test_x conftest$ac_exeext
20036 }; then
11426 ac_cv_sys_largefile_source=no; break 20037 ac_cv_sys_largefile_source=no; break
11427 fi 20038 else
11428 rm -f core conftest.err conftest.$ac_objext \ 20039 $as_echo "$as_me: failed program was:" >&5
11429 conftest$ac_exeext conftest.$ac_ext 20040 sed 's/^/| /' conftest.$ac_ext >&5
11430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20041
20042
20043 fi
20044
20045 rm -rf conftest.dSYM
20046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20047 conftest$ac_exeext conftest.$ac_ext
20048 cat >conftest.$ac_ext <<_ACEOF
20049 /* confdefs.h. */
20050 _ACEOF
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
11431 /* end confdefs.h. */ 20053 /* end confdefs.h. */
11432 #define _LARGEFILE_SOURCE 1 20054 #define _LARGEFILE_SOURCE 1
11433 #include <sys/types.h> /* for off_t */ 20055 #include <sys/types.h> /* for off_t */
11434 #include <stdio.h> 20056 #include <stdio.h>
11435 int 20057 int
11439 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 20061 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11440 ; 20062 ;
11441 return 0; 20063 return 0;
11442 } 20064 }
11443 _ACEOF 20065 _ACEOF
11444 if ac_fn_c_try_link "$LINENO"; then : 20066 rm -f conftest.$ac_objext conftest$ac_exeext
20067 if { (ac_try="$ac_link"
20068 case "(($ac_try" in
20069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20070 *) ac_try_echo=$ac_try;;
20071 esac
20072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20073 $as_echo "$ac_try_echo") >&5
20074 (eval "$ac_link") 2>conftest.er1
20075 ac_status=$?
20076 grep -v '^ *+' conftest.er1 >conftest.err
20077 rm -f conftest.er1
20078 cat conftest.err >&5
20079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); } && {
20081 test -z "$ac_c_werror_flag" ||
20082 test ! -s conftest.err
20083 } && test -s conftest$ac_exeext && {
20084 test "$cross_compiling" = yes ||
20085 $as_test_x conftest$ac_exeext
20086 }; then
11445 ac_cv_sys_largefile_source=1; break 20087 ac_cv_sys_largefile_source=1; break
11446 fi 20088 else
11447 rm -f core conftest.err conftest.$ac_objext \ 20089 $as_echo "$as_me: failed program was:" >&5
11448 conftest$ac_exeext conftest.$ac_ext 20090 sed 's/^/| /' conftest.$ac_ext >&5
20091
20092
20093 fi
20094
20095 rm -rf conftest.dSYM
20096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20097 conftest$ac_exeext conftest.$ac_ext
11449 ac_cv_sys_largefile_source=unknown 20098 ac_cv_sys_largefile_source=unknown
11450 break 20099 break
11451 done 20100 done
11452 fi 20101 fi
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 20102 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11454 $as_echo "$ac_cv_sys_largefile_source" >&6; } 20103 $as_echo "$ac_cv_sys_largefile_source" >&6; }
11455 case $ac_cv_sys_largefile_source in #( 20104 case $ac_cv_sys_largefile_source in #(
11456 no | unknown) ;; 20105 no | unknown) ;;
11457 *) 20106 *)
11458 cat >>confdefs.h <<_ACEOF 20107 cat >>confdefs.h <<_ACEOF
11465 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 20114 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11466 # in glibc 2.1.3, but that breaks too many other things. 20115 # in glibc 2.1.3, but that breaks too many other things.
11467 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 20116 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11468 if test $ac_cv_sys_largefile_source != unknown; then 20117 if test $ac_cv_sys_largefile_source != unknown; then
11469 20118
11470 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 20119 cat >>confdefs.h <<\_ACEOF
20120 #define HAVE_FSEEKO 1
20121 _ACEOF
11471 20122
11472 fi 20123 fi
11473 20124
11474 20125
11475 # Configure getopt. 20126 # Configure getopt.
11493 20144
11494 20145
11495 20146
11496 20147
11497 GETOPT_H= 20148 GETOPT_H=
11498 for ac_header in getopt.h 20149
11499 do : 20150 for ac_header in getopt.h
11500 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" 20151 do
11501 if test "x$ac_cv_header_getopt_h" = x""yes; then : 20152 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20154 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20155 $as_echo_n "checking for $ac_header... " >&6; }
20156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20157 $as_echo_n "(cached) " >&6
20158 fi
20159 ac_res=`eval 'as_val=${'$as_ac_Header'}
20160 $as_echo "$as_val"'`
20161 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20162 $as_echo "$ac_res" >&6; }
20163 else
20164 # Is the header compilable?
20165 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20166 $as_echo_n "checking $ac_header usability... " >&6; }
20167 cat >conftest.$ac_ext <<_ACEOF
20168 /* confdefs.h. */
20169 _ACEOF
20170 cat confdefs.h >>conftest.$ac_ext
20171 cat >>conftest.$ac_ext <<_ACEOF
20172 /* end confdefs.h. */
20173 $ac_includes_default
20174 #include <$ac_header>
20175 _ACEOF
20176 rm -f conftest.$ac_objext
20177 if { (ac_try="$ac_compile"
20178 case "(($ac_try" in
20179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20180 *) ac_try_echo=$ac_try;;
20181 esac
20182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20183 $as_echo "$ac_try_echo") >&5
20184 (eval "$ac_compile") 2>conftest.er1
20185 ac_status=$?
20186 grep -v '^ *+' conftest.er1 >conftest.err
20187 rm -f conftest.er1
20188 cat conftest.err >&5
20189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); } && {
20191 test -z "$ac_c_werror_flag" ||
20192 test ! -s conftest.err
20193 } && test -s conftest.$ac_objext; then
20194 ac_header_compiler=yes
20195 else
20196 $as_echo "$as_me: failed program was:" >&5
20197 sed 's/^/| /' conftest.$ac_ext >&5
20198
20199 ac_header_compiler=no
20200 fi
20201
20202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20203 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20204 $as_echo "$ac_header_compiler" >&6; }
20205
20206 # Is the header present?
20207 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20208 $as_echo_n "checking $ac_header presence... " >&6; }
20209 cat >conftest.$ac_ext <<_ACEOF
20210 /* confdefs.h. */
20211 _ACEOF
20212 cat confdefs.h >>conftest.$ac_ext
20213 cat >>conftest.$ac_ext <<_ACEOF
20214 /* end confdefs.h. */
20215 #include <$ac_header>
20216 _ACEOF
20217 if { (ac_try="$ac_cpp conftest.$ac_ext"
20218 case "(($ac_try" in
20219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20220 *) ac_try_echo=$ac_try;;
20221 esac
20222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20223 $as_echo "$ac_try_echo") >&5
20224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20225 ac_status=$?
20226 grep -v '^ *+' conftest.er1 >conftest.err
20227 rm -f conftest.er1
20228 cat conftest.err >&5
20229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); } >/dev/null && {
20231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20232 test ! -s conftest.err
20233 }; then
20234 ac_header_preproc=yes
20235 else
20236 $as_echo "$as_me: failed program was:" >&5
20237 sed 's/^/| /' conftest.$ac_ext >&5
20238
20239 ac_header_preproc=no
20240 fi
20241
20242 rm -f conftest.err conftest.$ac_ext
20243 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20244 $as_echo "$ac_header_preproc" >&6; }
20245
20246 # So? What about this header?
20247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20248 yes:no: )
20249 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20250 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20252 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20253 ac_header_preproc=yes
20254 ;;
20255 no:yes:* )
20256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20257 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20258 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20259 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20261 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20263 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20265 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20267 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20268
20269 ;;
20270 esac
20271 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20272 $as_echo_n "checking for $ac_header... " >&6; }
20273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20274 $as_echo_n "(cached) " >&6
20275 else
20276 eval "$as_ac_Header=\$ac_header_preproc"
20277 fi
20278 ac_res=`eval 'as_val=${'$as_ac_Header'}
20279 $as_echo "$as_val"'`
20280 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20281 $as_echo "$ac_res" >&6; }
20282
20283 fi
20284 if test `eval 'as_val=${'$as_ac_Header'}
20285 $as_echo "$as_val"'` = yes; then
11502 cat >>confdefs.h <<_ACEOF 20286 cat >>confdefs.h <<_ACEOF
11503 #define HAVE_GETOPT_H 1 20287 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11504 _ACEOF 20288 _ACEOF
11505 20289
11506 else 20290 else
11507 GETOPT_H=getopt.h 20291 GETOPT_H=getopt.h
11508 fi 20292 fi
11509 20293
11510 done 20294 done
11511 20295
11512 if test -z "$GETOPT_H"; then 20296 if test -z "$GETOPT_H"; then
11513 for ac_func in getopt_long_only 20297
11514 do : 20298 for ac_func in getopt_long_only
11515 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" 20299 do
11516 if test "x$ac_cv_func_getopt_long_only" = x""yes; then : 20300 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20301 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20302 $as_echo_n "checking for $ac_func... " >&6; }
20303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20304 $as_echo_n "(cached) " >&6
20305 else
20306 cat >conftest.$ac_ext <<_ACEOF
20307 /* confdefs.h. */
20308 _ACEOF
20309 cat confdefs.h >>conftest.$ac_ext
20310 cat >>conftest.$ac_ext <<_ACEOF
20311 /* end confdefs.h. */
20312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20314 #define $ac_func innocuous_$ac_func
20315
20316 /* System header to define __stub macros and hopefully few prototypes,
20317 which can conflict with char $ac_func (); below.
20318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20319 <limits.h> exists even on freestanding compilers. */
20320
20321 #ifdef __STDC__
20322 # include <limits.h>
20323 #else
20324 # include <assert.h>
20325 #endif
20326
20327 #undef $ac_func
20328
20329 /* Override any GCC internal prototype to avoid an error.
20330 Use char because int might match the return type of a GCC
20331 builtin and then its argument prototype would still apply. */
20332 #ifdef __cplusplus
20333 extern "C"
20334 #endif
20335 char $ac_func ();
20336 /* The GNU C library defines this for functions which it implements
20337 to always fail with ENOSYS. Some functions are actually named
20338 something starting with __ and the normal name is an alias. */
20339 #if defined __stub_$ac_func || defined __stub___$ac_func
20340 choke me
20341 #endif
20342
20343 int
20344 main ()
20345 {
20346 return $ac_func ();
20347 ;
20348 return 0;
20349 }
20350 _ACEOF
20351 rm -f conftest.$ac_objext conftest$ac_exeext
20352 if { (ac_try="$ac_link"
20353 case "(($ac_try" in
20354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20355 *) ac_try_echo=$ac_try;;
20356 esac
20357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20358 $as_echo "$ac_try_echo") >&5
20359 (eval "$ac_link") 2>conftest.er1
20360 ac_status=$?
20361 grep -v '^ *+' conftest.er1 >conftest.err
20362 rm -f conftest.er1
20363 cat conftest.err >&5
20364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } && {
20366 test -z "$ac_c_werror_flag" ||
20367 test ! -s conftest.err
20368 } && test -s conftest$ac_exeext && {
20369 test "$cross_compiling" = yes ||
20370 $as_test_x conftest$ac_exeext
20371 }; then
20372 eval "$as_ac_var=yes"
20373 else
20374 $as_echo "$as_me: failed program was:" >&5
20375 sed 's/^/| /' conftest.$ac_ext >&5
20376
20377 eval "$as_ac_var=no"
20378 fi
20379
20380 rm -rf conftest.dSYM
20381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20382 conftest$ac_exeext conftest.$ac_ext
20383 fi
20384 ac_res=`eval 'as_val=${'$as_ac_var'}
20385 $as_echo "$as_val"'`
20386 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20387 $as_echo "$ac_res" >&6; }
20388 if test `eval 'as_val=${'$as_ac_var'}
20389 $as_echo "$as_val"'` = yes; then
11517 cat >>confdefs.h <<_ACEOF 20390 cat >>confdefs.h <<_ACEOF
11518 #define HAVE_GETOPT_LONG_ONLY 1 20391 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11519 _ACEOF 20392 _ACEOF
11520 20393
11521 else 20394 else
11522 GETOPT_H=getopt.h 20395 GETOPT_H=getopt.h
11523 fi 20396 fi
11524 done 20397 done
11525 20398
11526 fi 20399 fi
11527 20400
11528 if test -z "$GETOPT_H"; then 20401 if test -z "$GETOPT_H"; then
11529 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h> 20402 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
11530 " 20403 $as_echo_n "checking whether optreset is declared... " >&6; }
11531 if test "x$ac_cv_have_decl_optreset" = x""yes; then : 20404 if test "${ac_cv_have_decl_optreset+set}" = set; then
20405 $as_echo_n "(cached) " >&6
20406 else
20407 cat >conftest.$ac_ext <<_ACEOF
20408 /* confdefs.h. */
20409 _ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h. */
20413 #include <getopt.h>
20414
20415 int
20416 main ()
20417 {
20418 #ifndef optreset
20419 (void) optreset;
20420 #endif
20421
20422 ;
20423 return 0;
20424 }
20425 _ACEOF
20426 rm -f conftest.$ac_objext
20427 if { (ac_try="$ac_compile"
20428 case "(($ac_try" in
20429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20430 *) ac_try_echo=$ac_try;;
20431 esac
20432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20433 $as_echo "$ac_try_echo") >&5
20434 (eval "$ac_compile") 2>conftest.er1
20435 ac_status=$?
20436 grep -v '^ *+' conftest.er1 >conftest.err
20437 rm -f conftest.er1
20438 cat conftest.err >&5
20439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); } && {
20441 test -z "$ac_c_werror_flag" ||
20442 test ! -s conftest.err
20443 } && test -s conftest.$ac_objext; then
20444 ac_cv_have_decl_optreset=yes
20445 else
20446 $as_echo "$as_me: failed program was:" >&5
20447 sed 's/^/| /' conftest.$ac_ext >&5
20448
20449 ac_cv_have_decl_optreset=no
20450 fi
20451
20452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20453 fi
20454 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20455 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20456 if test $ac_cv_have_decl_optreset = yes; then
11532 GETOPT_H=getopt.h 20457 GETOPT_H=getopt.h
11533 fi 20458 fi
11534 20459
11535 fi 20460 fi
11536 20461
11537 if test -z "$GETOPT_H"; then 20462 if test -z "$GETOPT_H"; then
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5 20463 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
11539 $as_echo_n "checking for working GNU getopt function... " >&6; } 20464 $as_echo_n "checking for working GNU getopt function... " >&6; }
11540 if test "${gl_cv_func_gnu_getopt+set}" = set; then : 20465 if test "${gl_cv_func_gnu_getopt+set}" = set; then
11541 $as_echo_n "(cached) " >&6 20466 $as_echo_n "(cached) " >&6
11542 else 20467 else
11543 if test "$cross_compiling" = yes; then : 20468 if test "$cross_compiling" = yes; then
11544 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h> 20469 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
11545 " 20470 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
11546 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then : 20471 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20472 $as_echo_n "(cached) " >&6
20473 else
20474 cat >conftest.$ac_ext <<_ACEOF
20475 /* confdefs.h. */
20476 _ACEOF
20477 cat confdefs.h >>conftest.$ac_ext
20478 cat >>conftest.$ac_ext <<_ACEOF
20479 /* end confdefs.h. */
20480 #include <getopt.h>
20481
20482 int
20483 main ()
20484 {
20485 #ifndef getopt_clip
20486 (void) getopt_clip;
20487 #endif
20488
20489 ;
20490 return 0;
20491 }
20492 _ACEOF
20493 rm -f conftest.$ac_objext
20494 if { (ac_try="$ac_compile"
20495 case "(($ac_try" in
20496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20497 *) ac_try_echo=$ac_try;;
20498 esac
20499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20500 $as_echo "$ac_try_echo") >&5
20501 (eval "$ac_compile") 2>conftest.er1
20502 ac_status=$?
20503 grep -v '^ *+' conftest.er1 >conftest.err
20504 rm -f conftest.er1
20505 cat conftest.err >&5
20506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); } && {
20508 test -z "$ac_c_werror_flag" ||
20509 test ! -s conftest.err
20510 } && test -s conftest.$ac_objext; then
20511 ac_cv_have_decl_getopt_clip=yes
20512 else
20513 $as_echo "$as_me: failed program was:" >&5
20514 sed 's/^/| /' conftest.$ac_ext >&5
20515
20516 ac_cv_have_decl_getopt_clip=no
20517 fi
20518
20519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20520 fi
20521 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20522 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20523 if test $ac_cv_have_decl_getopt_clip = yes; then
11547 gl_cv_func_gnu_getopt=no 20524 gl_cv_func_gnu_getopt=no
11548 else 20525 else
11549 gl_cv_func_gnu_getopt=yes 20526 gl_cv_func_gnu_getopt=yes
11550 fi 20527 fi
11551 20528
11552 else 20529 else
11553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20530 cat >conftest.$ac_ext <<_ACEOF
20531 /* confdefs.h. */
20532 _ACEOF
20533 cat confdefs.h >>conftest.$ac_ext
20534 cat >>conftest.$ac_ext <<_ACEOF
11554 /* end confdefs.h. */ 20535 /* end confdefs.h. */
11555 #include <getopt.h> 20536 #include <getopt.h>
11556 int 20537 int
11557 main () 20538 main ()
11558 { 20539 {
11565 20546
11566 ; 20547 ;
11567 return 0; 20548 return 0;
11568 } 20549 }
11569 _ACEOF 20550 _ACEOF
11570 if ac_fn_c_try_run "$LINENO"; then : 20551 rm -f conftest$ac_exeext
20552 if { (ac_try="$ac_link"
20553 case "(($ac_try" in
20554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20555 *) ac_try_echo=$ac_try;;
20556 esac
20557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20558 $as_echo "$ac_try_echo") >&5
20559 (eval "$ac_link") 2>&5
20560 ac_status=$?
20561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20563 { (case "(($ac_try" in
20564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20565 *) ac_try_echo=$ac_try;;
20566 esac
20567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20568 $as_echo "$ac_try_echo") >&5
20569 (eval "$ac_try") 2>&5
20570 ac_status=$?
20571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); }; }; then
11571 gl_cv_func_gnu_getopt=yes 20573 gl_cv_func_gnu_getopt=yes
11572 else 20574 else
11573 gl_cv_func_gnu_getopt=no 20575 $as_echo "$as_me: program exited with status $ac_status" >&5
11574 fi 20576 $as_echo "$as_me: failed program was:" >&5
11575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20577 sed 's/^/| /' conftest.$ac_ext >&5
11576 conftest.$ac_objext conftest.beam conftest.$ac_ext 20578
11577 fi 20579 ( exit $ac_status )
11578 20580 gl_cv_func_gnu_getopt=no
11579 fi 20581 fi
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5 20582 rm -rf conftest.dSYM
20583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20584 fi
20585
20586
20587 fi
20588 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
11581 $as_echo "$gl_cv_func_gnu_getopt" >&6; } 20589 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
11582 if test "$gl_cv_func_gnu_getopt" = "no"; then 20590 if test "$gl_cv_func_gnu_getopt" = "no"; then
11583 GETOPT_H=getopt.h 20591 GETOPT_H=getopt.h
11584 fi 20592 fi
11585 fi 20593 fi
11586 20594
11587 20595
11588 20596
11589 if test -n "$GETOPT_H"; then : 20597 if test -n "$GETOPT_H"; then
11590 20598
11591 20599
11592 GETOPT_H=getopt.h 20600 GETOPT_H=getopt.h
11593 20601
11594 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h 20602 cat >>confdefs.h <<\_ACEOF
20603 #define __GETOPT_PREFIX rpl_
20604 _ACEOF
11595 20605
11596 20606
11597 20607
11598 : 20608 :
11599 GETOPTOBJS='getopt.o getopt1.o' 20609 GETOPTOBJS='getopt.o getopt1.o'
11600 20610
11601 fi 20611 fi
11602 20612
11603 20613
11604 20614
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 20615
20616 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
11606 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } 20617 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
11607 if test "${ac_cv_func_getpgrp_void+set}" = set; then : 20618 if test "${ac_cv_func_getpgrp_void+set}" = set; then
11608 $as_echo_n "(cached) " >&6 20619 $as_echo_n "(cached) " >&6
11609 else 20620 else
11610 # Use it with a single arg. 20621 # Use it with a single arg.
11611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20622 cat >conftest.$ac_ext <<_ACEOF
20623 /* confdefs.h. */
20624 _ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
11612 /* end confdefs.h. */ 20627 /* end confdefs.h. */
11613 $ac_includes_default 20628 $ac_includes_default
11614 int 20629 int
11615 main () 20630 main ()
11616 { 20631 {
11617 getpgrp (0); 20632 getpgrp (0);
11618 ; 20633 ;
11619 return 0; 20634 return 0;
11620 } 20635 }
11621 _ACEOF 20636 _ACEOF
11622 if ac_fn_c_try_compile "$LINENO"; then : 20637 rm -f conftest.$ac_objext
20638 if { (ac_try="$ac_compile"
20639 case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20642 esac
20643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20644 $as_echo "$ac_try_echo") >&5
20645 (eval "$ac_compile") 2>conftest.er1
20646 ac_status=$?
20647 grep -v '^ *+' conftest.er1 >conftest.err
20648 rm -f conftest.er1
20649 cat conftest.err >&5
20650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); } && {
20652 test -z "$ac_c_werror_flag" ||
20653 test ! -s conftest.err
20654 } && test -s conftest.$ac_objext; then
11623 ac_cv_func_getpgrp_void=no 20655 ac_cv_func_getpgrp_void=no
11624 else 20656 else
11625 ac_cv_func_getpgrp_void=yes 20657 $as_echo "$as_me: failed program was:" >&5
11626 fi 20658 sed 's/^/| /' conftest.$ac_ext >&5
20659
20660 ac_cv_func_getpgrp_void=yes
20661 fi
20662
11627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11628 20664
11629 fi 20665 fi
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 20666 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
11631 $as_echo "$ac_cv_func_getpgrp_void" >&6; } 20667 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
11632 if test $ac_cv_func_getpgrp_void = yes; then 20668 if test $ac_cv_func_getpgrp_void = yes; then
11633 20669
11634 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h 20670 cat >>confdefs.h <<\_ACEOF
11635 20671 #define GETPGRP_VOID 1
11636 fi 20672 _ACEOF
20673
20674 fi
20675
11637 20676
11638 20677
11639 for ac_func in strftime 20678 for ac_func in strftime
11640 do : 20679 do
11641 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 20680 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11642 if test "x$ac_cv_func_strftime" = x""yes; then : 20681 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20682 $as_echo_n "checking for $ac_func... " >&6; }
20683 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20684 $as_echo_n "(cached) " >&6
20685 else
20686 cat >conftest.$ac_ext <<_ACEOF
20687 /* confdefs.h. */
20688 _ACEOF
20689 cat confdefs.h >>conftest.$ac_ext
20690 cat >>conftest.$ac_ext <<_ACEOF
20691 /* end confdefs.h. */
20692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20694 #define $ac_func innocuous_$ac_func
20695
20696 /* System header to define __stub macros and hopefully few prototypes,
20697 which can conflict with char $ac_func (); below.
20698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20699 <limits.h> exists even on freestanding compilers. */
20700
20701 #ifdef __STDC__
20702 # include <limits.h>
20703 #else
20704 # include <assert.h>
20705 #endif
20706
20707 #undef $ac_func
20708
20709 /* Override any GCC internal prototype to avoid an error.
20710 Use char because int might match the return type of a GCC
20711 builtin and then its argument prototype would still apply. */
20712 #ifdef __cplusplus
20713 extern "C"
20714 #endif
20715 char $ac_func ();
20716 /* The GNU C library defines this for functions which it implements
20717 to always fail with ENOSYS. Some functions are actually named
20718 something starting with __ and the normal name is an alias. */
20719 #if defined __stub_$ac_func || defined __stub___$ac_func
20720 choke me
20721 #endif
20722
20723 int
20724 main ()
20725 {
20726 return $ac_func ();
20727 ;
20728 return 0;
20729 }
20730 _ACEOF
20731 rm -f conftest.$ac_objext conftest$ac_exeext
20732 if { (ac_try="$ac_link"
20733 case "(($ac_try" in
20734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20735 *) ac_try_echo=$ac_try;;
20736 esac
20737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20738 $as_echo "$ac_try_echo") >&5
20739 (eval "$ac_link") 2>conftest.er1
20740 ac_status=$?
20741 grep -v '^ *+' conftest.er1 >conftest.err
20742 rm -f conftest.er1
20743 cat conftest.err >&5
20744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); } && {
20746 test -z "$ac_c_werror_flag" ||
20747 test ! -s conftest.err
20748 } && test -s conftest$ac_exeext && {
20749 test "$cross_compiling" = yes ||
20750 $as_test_x conftest$ac_exeext
20751 }; then
20752 eval "$as_ac_var=yes"
20753 else
20754 $as_echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.$ac_ext >&5
20756
20757 eval "$as_ac_var=no"
20758 fi
20759
20760 rm -rf conftest.dSYM
20761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20762 conftest$ac_exeext conftest.$ac_ext
20763 fi
20764 ac_res=`eval 'as_val=${'$as_ac_var'}
20765 $as_echo "$as_val"'`
20766 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20767 $as_echo "$ac_res" >&6; }
20768 if test `eval 'as_val=${'$as_ac_var'}
20769 $as_echo "$as_val"'` = yes; then
11643 cat >>confdefs.h <<_ACEOF 20770 cat >>confdefs.h <<_ACEOF
11644 #define HAVE_STRFTIME 1 20771 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11645 _ACEOF 20772 _ACEOF
11646 20773
11647 else 20774 else
11648 # strftime is in -lintl on SCO UNIX. 20775 # strftime is in -lintl on SCO UNIX.
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 20776 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
11650 $as_echo_n "checking for strftime in -lintl... " >&6; } 20777 $as_echo_n "checking for strftime in -lintl... " >&6; }
11651 if test "${ac_cv_lib_intl_strftime+set}" = set; then : 20778 if test "${ac_cv_lib_intl_strftime+set}" = set; then
11652 $as_echo_n "(cached) " >&6 20779 $as_echo_n "(cached) " >&6
11653 else 20780 else
11654 ac_check_lib_save_LIBS=$LIBS 20781 ac_check_lib_save_LIBS=$LIBS
11655 LIBS="-lintl $LIBS" 20782 LIBS="-lintl $LIBS"
11656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20783 cat >conftest.$ac_ext <<_ACEOF
20784 /* confdefs.h. */
20785 _ACEOF
20786 cat confdefs.h >>conftest.$ac_ext
20787 cat >>conftest.$ac_ext <<_ACEOF
11657 /* end confdefs.h. */ 20788 /* end confdefs.h. */
11658 20789
11659 /* Override any GCC internal prototype to avoid an error. 20790 /* Override any GCC internal prototype to avoid an error.
11660 Use char because int might match the return type of a GCC 20791 Use char because int might match the return type of a GCC
11661 builtin and then its argument prototype would still apply. */ 20792 builtin and then its argument prototype would still apply. */
11669 return strftime (); 20800 return strftime ();
11670 ; 20801 ;
11671 return 0; 20802 return 0;
11672 } 20803 }
11673 _ACEOF 20804 _ACEOF
11674 if ac_fn_c_try_link "$LINENO"; then : 20805 rm -f conftest.$ac_objext conftest$ac_exeext
20806 if { (ac_try="$ac_link"
20807 case "(($ac_try" in
20808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20809 *) ac_try_echo=$ac_try;;
20810 esac
20811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20812 $as_echo "$ac_try_echo") >&5
20813 (eval "$ac_link") 2>conftest.er1
20814 ac_status=$?
20815 grep -v '^ *+' conftest.er1 >conftest.err
20816 rm -f conftest.er1
20817 cat conftest.err >&5
20818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); } && {
20820 test -z "$ac_c_werror_flag" ||
20821 test ! -s conftest.err
20822 } && test -s conftest$ac_exeext && {
20823 test "$cross_compiling" = yes ||
20824 $as_test_x conftest$ac_exeext
20825 }; then
11675 ac_cv_lib_intl_strftime=yes 20826 ac_cv_lib_intl_strftime=yes
11676 else 20827 else
11677 ac_cv_lib_intl_strftime=no 20828 $as_echo "$as_me: failed program was:" >&5
11678 fi 20829 sed 's/^/| /' conftest.$ac_ext >&5
11679 rm -f core conftest.err conftest.$ac_objext \ 20830
11680 conftest$ac_exeext conftest.$ac_ext 20831 ac_cv_lib_intl_strftime=no
20832 fi
20833
20834 rm -rf conftest.dSYM
20835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20836 conftest$ac_exeext conftest.$ac_ext
11681 LIBS=$ac_check_lib_save_LIBS 20837 LIBS=$ac_check_lib_save_LIBS
11682 fi 20838 fi
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 20839 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
11684 $as_echo "$ac_cv_lib_intl_strftime" >&6; } 20840 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
11685 if test "x$ac_cv_lib_intl_strftime" = x""yes; then : 20841 if test $ac_cv_lib_intl_strftime = yes; then
11686 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 20842 cat >>confdefs.h <<\_ACEOF
20843 #define HAVE_STRFTIME 1
20844 _ACEOF
11687 20845
11688 LIBS="-lintl $LIBS" 20846 LIBS="-lintl $LIBS"
11689 fi 20847 fi
11690 20848
11691 fi 20849 fi
11692 done 20850 done
11693 20851
11694 20852
11695 # UNIX98 PTYs. 20853 # UNIX98 PTYs.
20854
11696 for ac_func in grantpt 20855 for ac_func in grantpt
11697 do : 20856 do
11698 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt" 20857 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11699 if test "x$ac_cv_func_grantpt" = x""yes; then : 20858 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20859 $as_echo_n "checking for $ac_func... " >&6; }
20860 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20861 $as_echo_n "(cached) " >&6
20862 else
20863 cat >conftest.$ac_ext <<_ACEOF
20864 /* confdefs.h. */
20865 _ACEOF
20866 cat confdefs.h >>conftest.$ac_ext
20867 cat >>conftest.$ac_ext <<_ACEOF
20868 /* end confdefs.h. */
20869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20871 #define $ac_func innocuous_$ac_func
20872
20873 /* System header to define __stub macros and hopefully few prototypes,
20874 which can conflict with char $ac_func (); below.
20875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20876 <limits.h> exists even on freestanding compilers. */
20877
20878 #ifdef __STDC__
20879 # include <limits.h>
20880 #else
20881 # include <assert.h>
20882 #endif
20883
20884 #undef $ac_func
20885
20886 /* Override any GCC internal prototype to avoid an error.
20887 Use char because int might match the return type of a GCC
20888 builtin and then its argument prototype would still apply. */
20889 #ifdef __cplusplus
20890 extern "C"
20891 #endif
20892 char $ac_func ();
20893 /* The GNU C library defines this for functions which it implements
20894 to always fail with ENOSYS. Some functions are actually named
20895 something starting with __ and the normal name is an alias. */
20896 #if defined __stub_$ac_func || defined __stub___$ac_func
20897 choke me
20898 #endif
20899
20900 int
20901 main ()
20902 {
20903 return $ac_func ();
20904 ;
20905 return 0;
20906 }
20907 _ACEOF
20908 rm -f conftest.$ac_objext conftest$ac_exeext
20909 if { (ac_try="$ac_link"
20910 case "(($ac_try" in
20911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20912 *) ac_try_echo=$ac_try;;
20913 esac
20914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20915 $as_echo "$ac_try_echo") >&5
20916 (eval "$ac_link") 2>conftest.er1
20917 ac_status=$?
20918 grep -v '^ *+' conftest.er1 >conftest.err
20919 rm -f conftest.er1
20920 cat conftest.err >&5
20921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); } && {
20923 test -z "$ac_c_werror_flag" ||
20924 test ! -s conftest.err
20925 } && test -s conftest$ac_exeext && {
20926 test "$cross_compiling" = yes ||
20927 $as_test_x conftest$ac_exeext
20928 }; then
20929 eval "$as_ac_var=yes"
20930 else
20931 $as_echo "$as_me: failed program was:" >&5
20932 sed 's/^/| /' conftest.$ac_ext >&5
20933
20934 eval "$as_ac_var=no"
20935 fi
20936
20937 rm -rf conftest.dSYM
20938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20939 conftest$ac_exeext conftest.$ac_ext
20940 fi
20941 ac_res=`eval 'as_val=${'$as_ac_var'}
20942 $as_echo "$as_val"'`
20943 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20944 $as_echo "$ac_res" >&6; }
20945 if test `eval 'as_val=${'$as_ac_var'}
20946 $as_echo "$as_val"'` = yes; then
11700 cat >>confdefs.h <<_ACEOF 20947 cat >>confdefs.h <<_ACEOF
11701 #define HAVE_GRANTPT 1 20948 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11702 _ACEOF 20949 _ACEOF
11703 20950
11704 fi 20951 fi
11705 done 20952 done
11706 20953
11707 20954
11708 # PTY-related GNU extensions. 20955 # PTY-related GNU extensions.
20956
11709 for ac_func in getpt 20957 for ac_func in getpt
11710 do : 20958 do
11711 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt" 20959 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11712 if test "x$ac_cv_func_getpt" = x""yes; then : 20960 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20961 $as_echo_n "checking for $ac_func... " >&6; }
20962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20963 $as_echo_n "(cached) " >&6
20964 else
20965 cat >conftest.$ac_ext <<_ACEOF
20966 /* confdefs.h. */
20967 _ACEOF
20968 cat confdefs.h >>conftest.$ac_ext
20969 cat >>conftest.$ac_ext <<_ACEOF
20970 /* end confdefs.h. */
20971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20973 #define $ac_func innocuous_$ac_func
20974
20975 /* System header to define __stub macros and hopefully few prototypes,
20976 which can conflict with char $ac_func (); below.
20977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20978 <limits.h> exists even on freestanding compilers. */
20979
20980 #ifdef __STDC__
20981 # include <limits.h>
20982 #else
20983 # include <assert.h>
20984 #endif
20985
20986 #undef $ac_func
20987
20988 /* Override any GCC internal prototype to avoid an error.
20989 Use char because int might match the return type of a GCC
20990 builtin and then its argument prototype would still apply. */
20991 #ifdef __cplusplus
20992 extern "C"
20993 #endif
20994 char $ac_func ();
20995 /* The GNU C library defines this for functions which it implements
20996 to always fail with ENOSYS. Some functions are actually named
20997 something starting with __ and the normal name is an alias. */
20998 #if defined __stub_$ac_func || defined __stub___$ac_func
20999 choke me
21000 #endif
21001
21002 int
21003 main ()
21004 {
21005 return $ac_func ();
21006 ;
21007 return 0;
21008 }
21009 _ACEOF
21010 rm -f conftest.$ac_objext conftest$ac_exeext
21011 if { (ac_try="$ac_link"
21012 case "(($ac_try" in
21013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21014 *) ac_try_echo=$ac_try;;
21015 esac
21016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21017 $as_echo "$ac_try_echo") >&5
21018 (eval "$ac_link") 2>conftest.er1
21019 ac_status=$?
21020 grep -v '^ *+' conftest.er1 >conftest.err
21021 rm -f conftest.er1
21022 cat conftest.err >&5
21023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); } && {
21025 test -z "$ac_c_werror_flag" ||
21026 test ! -s conftest.err
21027 } && test -s conftest$ac_exeext && {
21028 test "$cross_compiling" = yes ||
21029 $as_test_x conftest$ac_exeext
21030 }; then
21031 eval "$as_ac_var=yes"
21032 else
21033 $as_echo "$as_me: failed program was:" >&5
21034 sed 's/^/| /' conftest.$ac_ext >&5
21035
21036 eval "$as_ac_var=no"
21037 fi
21038
21039 rm -rf conftest.dSYM
21040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21041 conftest$ac_exeext conftest.$ac_ext
21042 fi
21043 ac_res=`eval 'as_val=${'$as_ac_var'}
21044 $as_echo "$as_val"'`
21045 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21046 $as_echo "$ac_res" >&6; }
21047 if test `eval 'as_val=${'$as_ac_var'}
21048 $as_echo "$as_val"'` = yes; then
11713 cat >>confdefs.h <<_ACEOF 21049 cat >>confdefs.h <<_ACEOF
11714 #define HAVE_GETPT 1 21050 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11715 _ACEOF 21051 _ACEOF
11716 21052
11717 fi 21053 fi
11718 done 21054 done
11719 21055
11720 21056
11721 # Check this now, so that we will NOT find the above functions in ncurses. 21057 # Check this now, so that we will NOT find the above functions in ncurses.
11722 # That is because we have not set up to link ncurses in lib-src. 21058 # That is because we have not set up to link ncurses in lib-src.
11723 # It's better to believe a function is not available 21059 # It's better to believe a function is not available
11724 # than to expect to find it in ncurses. 21060 # than to expect to find it in ncurses.
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tparm in -lncurses" >&5 21061
21062 { $as_echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
11726 $as_echo_n "checking for tparm in -lncurses... " >&6; } 21063 $as_echo_n "checking for tparm in -lncurses... " >&6; }
11727 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then : 21064 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
11728 $as_echo_n "(cached) " >&6 21065 $as_echo_n "(cached) " >&6
11729 else 21066 else
11730 ac_check_lib_save_LIBS=$LIBS 21067 ac_check_lib_save_LIBS=$LIBS
11731 LIBS="-lncurses $LIBS" 21068 LIBS="-lncurses $LIBS"
11732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21069 cat >conftest.$ac_ext <<_ACEOF
21070 /* confdefs.h. */
21071 _ACEOF
21072 cat confdefs.h >>conftest.$ac_ext
21073 cat >>conftest.$ac_ext <<_ACEOF
11733 /* end confdefs.h. */ 21074 /* end confdefs.h. */
11734 21075
11735 /* Override any GCC internal prototype to avoid an error. 21076 /* Override any GCC internal prototype to avoid an error.
11736 Use char because int might match the return type of a GCC 21077 Use char because int might match the return type of a GCC
11737 builtin and then its argument prototype would still apply. */ 21078 builtin and then its argument prototype would still apply. */
11745 return tparm (); 21086 return tparm ();
11746 ; 21087 ;
11747 return 0; 21088 return 0;
11748 } 21089 }
11749 _ACEOF 21090 _ACEOF
11750 if ac_fn_c_try_link "$LINENO"; then : 21091 rm -f conftest.$ac_objext conftest$ac_exeext
21092 if { (ac_try="$ac_link"
21093 case "(($ac_try" in
21094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21095 *) ac_try_echo=$ac_try;;
21096 esac
21097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21098 $as_echo "$ac_try_echo") >&5
21099 (eval "$ac_link") 2>conftest.er1
21100 ac_status=$?
21101 grep -v '^ *+' conftest.er1 >conftest.err
21102 rm -f conftest.er1
21103 cat conftest.err >&5
21104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); } && {
21106 test -z "$ac_c_werror_flag" ||
21107 test ! -s conftest.err
21108 } && test -s conftest$ac_exeext && {
21109 test "$cross_compiling" = yes ||
21110 $as_test_x conftest$ac_exeext
21111 }; then
11751 ac_cv_lib_ncurses_tparm=yes 21112 ac_cv_lib_ncurses_tparm=yes
11752 else 21113 else
11753 ac_cv_lib_ncurses_tparm=no 21114 $as_echo "$as_me: failed program was:" >&5
11754 fi 21115 sed 's/^/| /' conftest.$ac_ext >&5
11755 rm -f core conftest.err conftest.$ac_objext \ 21116
11756 conftest$ac_exeext conftest.$ac_ext 21117 ac_cv_lib_ncurses_tparm=no
21118 fi
21119
21120 rm -rf conftest.dSYM
21121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21122 conftest$ac_exeext conftest.$ac_ext
11757 LIBS=$ac_check_lib_save_LIBS 21123 LIBS=$ac_check_lib_save_LIBS
11758 fi 21124 fi
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tparm" >&5 21125 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
11760 $as_echo "$ac_cv_lib_ncurses_tparm" >&6; } 21126 $as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
11761 if test "x$ac_cv_lib_ncurses_tparm" = x""yes; then : 21127 if test $ac_cv_lib_ncurses_tparm = yes; then
11762 cat >>confdefs.h <<_ACEOF 21128 cat >>confdefs.h <<_ACEOF
11763 #define HAVE_LIBNCURSES 1 21129 #define HAVE_LIBNCURSES 1
11764 _ACEOF 21130 _ACEOF
11765 21131
11766 LIBS="-lncurses $LIBS" 21132 LIBS="-lncurses $LIBS"
11769 21135
11770 21136
11771 # Do we have res_init, for detecting changes in /etc/resolv.conf? 21137 # Do we have res_init, for detecting changes in /etc/resolv.conf?
11772 21138
11773 resolv=no 21139 resolv=no
11774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21140 cat >conftest.$ac_ext <<_ACEOF
21141 /* confdefs.h. */
21142 _ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
11775 /* end confdefs.h. */ 21145 /* end confdefs.h. */
11776 #include <netinet/in.h> 21146 #include <netinet/in.h>
11777 #include <arpa/nameser.h> 21147 #include <arpa/nameser.h>
11778 #include <resolv.h> 21148 #include <resolv.h>
11779 int 21149 int
11782 return res_init(); 21152 return res_init();
11783 ; 21153 ;
11784 return 0; 21154 return 0;
11785 } 21155 }
11786 _ACEOF 21156 _ACEOF
11787 if ac_fn_c_try_link "$LINENO"; then : 21157 rm -f conftest.$ac_objext conftest$ac_exeext
21158 if { (ac_try="$ac_link"
21159 case "(($ac_try" in
21160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21161 *) ac_try_echo=$ac_try;;
21162 esac
21163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21164 $as_echo "$ac_try_echo") >&5
21165 (eval "$ac_link") 2>conftest.er1
21166 ac_status=$?
21167 grep -v '^ *+' conftest.er1 >conftest.err
21168 rm -f conftest.er1
21169 cat conftest.err >&5
21170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); } && {
21172 test -z "$ac_c_werror_flag" ||
21173 test ! -s conftest.err
21174 } && test -s conftest$ac_exeext && {
21175 test "$cross_compiling" = yes ||
21176 $as_test_x conftest$ac_exeext
21177 }; then
11788 have_res_init=yes 21178 have_res_init=yes
11789 else 21179 else
11790 have_res_init=no 21180 $as_echo "$as_me: failed program was:" >&5
11791 fi 21181 sed 's/^/| /' conftest.$ac_ext >&5
11792 rm -f core conftest.err conftest.$ac_objext \ 21182
11793 conftest$ac_exeext conftest.$ac_ext 21183 have_res_init=no
21184 fi
21185
21186 rm -rf conftest.dSYM
21187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21188 conftest$ac_exeext conftest.$ac_ext
11794 if test "$have_res_init" = no; then 21189 if test "$have_res_init" = no; then
11795 OLIBS="$LIBS" 21190 OLIBS="$LIBS"
11796 LIBS="$LIBS -lresolv" 21191 LIBS="$LIBS -lresolv"
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5 21192 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
11798 $as_echo_n "checking for res_init with -lresolv... " >&6; } 21193 $as_echo_n "checking for res_init with -lresolv... " >&6; }
11799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21194 cat >conftest.$ac_ext <<_ACEOF
21195 /* confdefs.h. */
21196 _ACEOF
21197 cat confdefs.h >>conftest.$ac_ext
21198 cat >>conftest.$ac_ext <<_ACEOF
11800 /* end confdefs.h. */ 21199 /* end confdefs.h. */
11801 #include <netinet/in.h> 21200 #include <netinet/in.h>
11802 #include <arpa/nameser.h> 21201 #include <arpa/nameser.h>
11803 #include <resolv.h> 21202 #include <resolv.h>
11804 int 21203 int
11807 return res_init(); 21206 return res_init();
11808 ; 21207 ;
11809 return 0; 21208 return 0;
11810 } 21209 }
11811 _ACEOF 21210 _ACEOF
11812 if ac_fn_c_try_link "$LINENO"; then : 21211 rm -f conftest.$ac_objext conftest$ac_exeext
21212 if { (ac_try="$ac_link"
21213 case "(($ac_try" in
21214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21215 *) ac_try_echo=$ac_try;;
21216 esac
21217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21218 $as_echo "$ac_try_echo") >&5
21219 (eval "$ac_link") 2>conftest.er1
21220 ac_status=$?
21221 grep -v '^ *+' conftest.er1 >conftest.err
21222 rm -f conftest.er1
21223 cat conftest.err >&5
21224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225 (exit $ac_status); } && {
21226 test -z "$ac_c_werror_flag" ||
21227 test ! -s conftest.err
21228 } && test -s conftest$ac_exeext && {
21229 test "$cross_compiling" = yes ||
21230 $as_test_x conftest$ac_exeext
21231 }; then
11813 have_res_init=yes 21232 have_res_init=yes
11814 else 21233 else
11815 have_res_init=no 21234 $as_echo "$as_me: failed program was:" >&5
11816 fi 21235 sed 's/^/| /' conftest.$ac_ext >&5
11817 rm -f core conftest.err conftest.$ac_objext \ 21236
11818 conftest$ac_exeext conftest.$ac_ext 21237 have_res_init=no
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5 21238 fi
21239
21240 rm -rf conftest.dSYM
21241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21242 conftest$ac_exeext conftest.$ac_ext
21243 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
11820 $as_echo "$have_res_init" >&6; } 21244 $as_echo "$have_res_init" >&6; }
11821 if test "$have_res_init" = yes ; then 21245 if test "$have_res_init" = yes ; then
11822 resolv=yes 21246 resolv=yes
11823 fi 21247 fi
11824 LIBS="$OLIBS" 21248 LIBS="$OLIBS"
11825 fi 21249 fi
11826 21250
11827 if test "$have_res_init" = yes; then 21251 if test "$have_res_init" = yes; then
11828 21252
11829 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h 21253 cat >>confdefs.h <<\_ACEOF
21254 #define HAVE_RES_INIT 1
21255 _ACEOF
11830 21256
11831 fi 21257 fi
11832 21258
11833 # Do we need the Hesiod library to provide the support routines? 21259 # Do we need the Hesiod library to provide the support routines?
21260 LIBHESIOD=
11834 if test "$with_hesiod" != no ; then 21261 if test "$with_hesiod" != no ; then
11835 # Don't set $LIBS here -- see comments above. 21262 # Don't set $LIBS here -- see comments above. FIXME which comments?
11836 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send" 21263 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
11837 if test "x$ac_cv_func_res_send" = x""yes; then : 21264 $as_echo_n "checking for res_send... " >&6; }
11838 21265 if test "${ac_cv_func_res_send+set}" = set; then
11839 else 21266 $as_echo_n "(cached) " >&6
11840 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send" 21267 else
11841 if test "x$ac_cv_func___res_send" = x""yes; then : 21268 cat >conftest.$ac_ext <<_ACEOF
11842 21269 /* confdefs.h. */
11843 else 21270 _ACEOF
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5 21271 cat confdefs.h >>conftest.$ac_ext
21272 cat >>conftest.$ac_ext <<_ACEOF
21273 /* end confdefs.h. */
21274 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21276 #define res_send innocuous_res_send
21277
21278 /* System header to define __stub macros and hopefully few prototypes,
21279 which can conflict with char res_send (); below.
21280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21281 <limits.h> exists even on freestanding compilers. */
21282
21283 #ifdef __STDC__
21284 # include <limits.h>
21285 #else
21286 # include <assert.h>
21287 #endif
21288
21289 #undef res_send
21290
21291 /* Override any GCC internal prototype to avoid an error.
21292 Use char because int might match the return type of a GCC
21293 builtin and then its argument prototype would still apply. */
21294 #ifdef __cplusplus
21295 extern "C"
21296 #endif
21297 char res_send ();
21298 /* The GNU C library defines this for functions which it implements
21299 to always fail with ENOSYS. Some functions are actually named
21300 something starting with __ and the normal name is an alias. */
21301 #if defined __stub_res_send || defined __stub___res_send
21302 choke me
21303 #endif
21304
21305 int
21306 main ()
21307 {
21308 return res_send ();
21309 ;
21310 return 0;
21311 }
21312 _ACEOF
21313 rm -f conftest.$ac_objext conftest$ac_exeext
21314 if { (ac_try="$ac_link"
21315 case "(($ac_try" in
21316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21317 *) ac_try_echo=$ac_try;;
21318 esac
21319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21320 $as_echo "$ac_try_echo") >&5
21321 (eval "$ac_link") 2>conftest.er1
21322 ac_status=$?
21323 grep -v '^ *+' conftest.er1 >conftest.err
21324 rm -f conftest.er1
21325 cat conftest.err >&5
21326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327 (exit $ac_status); } && {
21328 test -z "$ac_c_werror_flag" ||
21329 test ! -s conftest.err
21330 } && test -s conftest$ac_exeext && {
21331 test "$cross_compiling" = yes ||
21332 $as_test_x conftest$ac_exeext
21333 }; then
21334 ac_cv_func_res_send=yes
21335 else
21336 $as_echo "$as_me: failed program was:" >&5
21337 sed 's/^/| /' conftest.$ac_ext >&5
21338
21339 ac_cv_func_res_send=no
21340 fi
21341
21342 rm -rf conftest.dSYM
21343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21344 conftest$ac_exeext conftest.$ac_ext
21345 fi
21346 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21347 $as_echo "$ac_cv_func_res_send" >&6; }
21348 if test $ac_cv_func_res_send = yes; then
21349 :
21350 else
21351 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21352 $as_echo_n "checking for __res_send... " >&6; }
21353 if test "${ac_cv_func___res_send+set}" = set; then
21354 $as_echo_n "(cached) " >&6
21355 else
21356 cat >conftest.$ac_ext <<_ACEOF
21357 /* confdefs.h. */
21358 _ACEOF
21359 cat confdefs.h >>conftest.$ac_ext
21360 cat >>conftest.$ac_ext <<_ACEOF
21361 /* end confdefs.h. */
21362 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21364 #define __res_send innocuous___res_send
21365
21366 /* System header to define __stub macros and hopefully few prototypes,
21367 which can conflict with char __res_send (); below.
21368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21369 <limits.h> exists even on freestanding compilers. */
21370
21371 #ifdef __STDC__
21372 # include <limits.h>
21373 #else
21374 # include <assert.h>
21375 #endif
21376
21377 #undef __res_send
21378
21379 /* Override any GCC internal prototype to avoid an error.
21380 Use char because int might match the return type of a GCC
21381 builtin and then its argument prototype would still apply. */
21382 #ifdef __cplusplus
21383 extern "C"
21384 #endif
21385 char __res_send ();
21386 /* The GNU C library defines this for functions which it implements
21387 to always fail with ENOSYS. Some functions are actually named
21388 something starting with __ and the normal name is an alias. */
21389 #if defined __stub___res_send || defined __stub_____res_send
21390 choke me
21391 #endif
21392
21393 int
21394 main ()
21395 {
21396 return __res_send ();
21397 ;
21398 return 0;
21399 }
21400 _ACEOF
21401 rm -f conftest.$ac_objext conftest$ac_exeext
21402 if { (ac_try="$ac_link"
21403 case "(($ac_try" in
21404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21405 *) ac_try_echo=$ac_try;;
21406 esac
21407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21408 $as_echo "$ac_try_echo") >&5
21409 (eval "$ac_link") 2>conftest.er1
21410 ac_status=$?
21411 grep -v '^ *+' conftest.er1 >conftest.err
21412 rm -f conftest.er1
21413 cat conftest.err >&5
21414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); } && {
21416 test -z "$ac_c_werror_flag" ||
21417 test ! -s conftest.err
21418 } && test -s conftest$ac_exeext && {
21419 test "$cross_compiling" = yes ||
21420 $as_test_x conftest$ac_exeext
21421 }; then
21422 ac_cv_func___res_send=yes
21423 else
21424 $as_echo "$as_me: failed program was:" >&5
21425 sed 's/^/| /' conftest.$ac_ext >&5
21426
21427 ac_cv_func___res_send=no
21428 fi
21429
21430 rm -rf conftest.dSYM
21431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21432 conftest$ac_exeext conftest.$ac_ext
21433 fi
21434 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21435 $as_echo "$ac_cv_func___res_send" >&6; }
21436 if test $ac_cv_func___res_send = yes; then
21437 :
21438 else
21439 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
11845 $as_echo_n "checking for res_send in -lresolv... " >&6; } 21440 $as_echo_n "checking for res_send in -lresolv... " >&6; }
11846 if test "${ac_cv_lib_resolv_res_send+set}" = set; then : 21441 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
11847 $as_echo_n "(cached) " >&6 21442 $as_echo_n "(cached) " >&6
11848 else 21443 else
11849 ac_check_lib_save_LIBS=$LIBS 21444 ac_check_lib_save_LIBS=$LIBS
11850 LIBS="-lresolv $LIBS" 21445 LIBS="-lresolv $LIBS"
11851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21446 cat >conftest.$ac_ext <<_ACEOF
21447 /* confdefs.h. */
21448 _ACEOF
21449 cat confdefs.h >>conftest.$ac_ext
21450 cat >>conftest.$ac_ext <<_ACEOF
11852 /* end confdefs.h. */ 21451 /* end confdefs.h. */
11853 21452
11854 /* Override any GCC internal prototype to avoid an error. 21453 /* Override any GCC internal prototype to avoid an error.
11855 Use char because int might match the return type of a GCC 21454 Use char because int might match the return type of a GCC
11856 builtin and then its argument prototype would still apply. */ 21455 builtin and then its argument prototype would still apply. */
11864 return res_send (); 21463 return res_send ();
11865 ; 21464 ;
11866 return 0; 21465 return 0;
11867 } 21466 }
11868 _ACEOF 21467 _ACEOF
11869 if ac_fn_c_try_link "$LINENO"; then : 21468 rm -f conftest.$ac_objext conftest$ac_exeext
21469 if { (ac_try="$ac_link"
21470 case "(($ac_try" in
21471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21472 *) ac_try_echo=$ac_try;;
21473 esac
21474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21475 $as_echo "$ac_try_echo") >&5
21476 (eval "$ac_link") 2>conftest.er1
21477 ac_status=$?
21478 grep -v '^ *+' conftest.er1 >conftest.err
21479 rm -f conftest.er1
21480 cat conftest.err >&5
21481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482 (exit $ac_status); } && {
21483 test -z "$ac_c_werror_flag" ||
21484 test ! -s conftest.err
21485 } && test -s conftest$ac_exeext && {
21486 test "$cross_compiling" = yes ||
21487 $as_test_x conftest$ac_exeext
21488 }; then
11870 ac_cv_lib_resolv_res_send=yes 21489 ac_cv_lib_resolv_res_send=yes
11871 else 21490 else
11872 ac_cv_lib_resolv_res_send=no 21491 $as_echo "$as_me: failed program was:" >&5
11873 fi 21492 sed 's/^/| /' conftest.$ac_ext >&5
11874 rm -f core conftest.err conftest.$ac_objext \ 21493
11875 conftest$ac_exeext conftest.$ac_ext 21494 ac_cv_lib_resolv_res_send=no
21495 fi
21496
21497 rm -rf conftest.dSYM
21498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21499 conftest$ac_exeext conftest.$ac_ext
11876 LIBS=$ac_check_lib_save_LIBS 21500 LIBS=$ac_check_lib_save_LIBS
11877 fi 21501 fi
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5 21502 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
11879 $as_echo "$ac_cv_lib_resolv_res_send" >&6; } 21503 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
11880 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then : 21504 if test $ac_cv_lib_resolv_res_send = yes; then
11881 resolv=yes 21505 resolv=yes
11882 else 21506 else
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5 21507 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
11884 $as_echo_n "checking for __res_send in -lresolv... " >&6; } 21508 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
11885 if test "${ac_cv_lib_resolv___res_send+set}" = set; then : 21509 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
11886 $as_echo_n "(cached) " >&6 21510 $as_echo_n "(cached) " >&6
11887 else 21511 else
11888 ac_check_lib_save_LIBS=$LIBS 21512 ac_check_lib_save_LIBS=$LIBS
11889 LIBS="-lresolv $LIBS" 21513 LIBS="-lresolv $LIBS"
11890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21514 cat >conftest.$ac_ext <<_ACEOF
21515 /* confdefs.h. */
21516 _ACEOF
21517 cat confdefs.h >>conftest.$ac_ext
21518 cat >>conftest.$ac_ext <<_ACEOF
11891 /* end confdefs.h. */ 21519 /* end confdefs.h. */
11892 21520
11893 /* Override any GCC internal prototype to avoid an error. 21521 /* Override any GCC internal prototype to avoid an error.
11894 Use char because int might match the return type of a GCC 21522 Use char because int might match the return type of a GCC
11895 builtin and then its argument prototype would still apply. */ 21523 builtin and then its argument prototype would still apply. */
11903 return __res_send (); 21531 return __res_send ();
11904 ; 21532 ;
11905 return 0; 21533 return 0;
11906 } 21534 }
11907 _ACEOF 21535 _ACEOF
11908 if ac_fn_c_try_link "$LINENO"; then : 21536 rm -f conftest.$ac_objext conftest$ac_exeext
21537 if { (ac_try="$ac_link"
21538 case "(($ac_try" in
21539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21540 *) ac_try_echo=$ac_try;;
21541 esac
21542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21543 $as_echo "$ac_try_echo") >&5
21544 (eval "$ac_link") 2>conftest.er1
21545 ac_status=$?
21546 grep -v '^ *+' conftest.er1 >conftest.err
21547 rm -f conftest.er1
21548 cat conftest.err >&5
21549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550 (exit $ac_status); } && {
21551 test -z "$ac_c_werror_flag" ||
21552 test ! -s conftest.err
21553 } && test -s conftest$ac_exeext && {
21554 test "$cross_compiling" = yes ||
21555 $as_test_x conftest$ac_exeext
21556 }; then
11909 ac_cv_lib_resolv___res_send=yes 21557 ac_cv_lib_resolv___res_send=yes
11910 else 21558 else
11911 ac_cv_lib_resolv___res_send=no 21559 $as_echo "$as_me: failed program was:" >&5
11912 fi 21560 sed 's/^/| /' conftest.$ac_ext >&5
11913 rm -f core conftest.err conftest.$ac_objext \ 21561
11914 conftest$ac_exeext conftest.$ac_ext 21562 ac_cv_lib_resolv___res_send=no
21563 fi
21564
21565 rm -rf conftest.dSYM
21566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21567 conftest$ac_exeext conftest.$ac_ext
11915 LIBS=$ac_check_lib_save_LIBS 21568 LIBS=$ac_check_lib_save_LIBS
11916 fi 21569 fi
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5 21570 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
11918 $as_echo "$ac_cv_lib_resolv___res_send" >&6; } 21571 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
11919 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then : 21572 if test $ac_cv_lib_resolv___res_send = yes; then
11920 resolv=yes 21573 resolv=yes
11921 fi 21574 fi
11922 21575
11923 fi 21576 fi
11924 21577
11929 if test "$resolv" = yes ; then 21582 if test "$resolv" = yes ; then
11930 RESOLVLIB=-lresolv 21583 RESOLVLIB=-lresolv
11931 else 21584 else
11932 RESOLVLIB= 21585 RESOLVLIB=
11933 fi 21586 fi
11934 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost" 21587 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
11935 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then : 21588 $as_echo_n "checking for hes_getmailhost... " >&6; }
11936 21589 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
11937 else 21590 $as_echo_n "(cached) " >&6
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5 21591 else
21592 cat >conftest.$ac_ext <<_ACEOF
21593 /* confdefs.h. */
21594 _ACEOF
21595 cat confdefs.h >>conftest.$ac_ext
21596 cat >>conftest.$ac_ext <<_ACEOF
21597 /* end confdefs.h. */
21598 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21600 #define hes_getmailhost innocuous_hes_getmailhost
21601
21602 /* System header to define __stub macros and hopefully few prototypes,
21603 which can conflict with char hes_getmailhost (); below.
21604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21605 <limits.h> exists even on freestanding compilers. */
21606
21607 #ifdef __STDC__
21608 # include <limits.h>
21609 #else
21610 # include <assert.h>
21611 #endif
21612
21613 #undef hes_getmailhost
21614
21615 /* Override any GCC internal prototype to avoid an error.
21616 Use char because int might match the return type of a GCC
21617 builtin and then its argument prototype would still apply. */
21618 #ifdef __cplusplus
21619 extern "C"
21620 #endif
21621 char hes_getmailhost ();
21622 /* The GNU C library defines this for functions which it implements
21623 to always fail with ENOSYS. Some functions are actually named
21624 something starting with __ and the normal name is an alias. */
21625 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21626 choke me
21627 #endif
21628
21629 int
21630 main ()
21631 {
21632 return hes_getmailhost ();
21633 ;
21634 return 0;
21635 }
21636 _ACEOF
21637 rm -f conftest.$ac_objext conftest$ac_exeext
21638 if { (ac_try="$ac_link"
21639 case "(($ac_try" in
21640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21641 *) ac_try_echo=$ac_try;;
21642 esac
21643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21644 $as_echo "$ac_try_echo") >&5
21645 (eval "$ac_link") 2>conftest.er1
21646 ac_status=$?
21647 grep -v '^ *+' conftest.er1 >conftest.err
21648 rm -f conftest.er1
21649 cat conftest.err >&5
21650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); } && {
21652 test -z "$ac_c_werror_flag" ||
21653 test ! -s conftest.err
21654 } && test -s conftest$ac_exeext && {
21655 test "$cross_compiling" = yes ||
21656 $as_test_x conftest$ac_exeext
21657 }; then
21658 ac_cv_func_hes_getmailhost=yes
21659 else
21660 $as_echo "$as_me: failed program was:" >&5
21661 sed 's/^/| /' conftest.$ac_ext >&5
21662
21663 ac_cv_func_hes_getmailhost=no
21664 fi
21665
21666 rm -rf conftest.dSYM
21667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21668 conftest$ac_exeext conftest.$ac_ext
21669 fi
21670 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21671 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21672 if test $ac_cv_func_hes_getmailhost = yes; then
21673 :
21674 else
21675 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
11939 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; } 21676 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
11940 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then : 21677 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
11941 $as_echo_n "(cached) " >&6 21678 $as_echo_n "(cached) " >&6
11942 else 21679 else
11943 ac_check_lib_save_LIBS=$LIBS 21680 ac_check_lib_save_LIBS=$LIBS
11944 LIBS="-lhesiod $RESOLVLIB $LIBS" 21681 LIBS="-lhesiod $RESOLVLIB $LIBS"
11945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21682 cat >conftest.$ac_ext <<_ACEOF
21683 /* confdefs.h. */
21684 _ACEOF
21685 cat confdefs.h >>conftest.$ac_ext
21686 cat >>conftest.$ac_ext <<_ACEOF
11946 /* end confdefs.h. */ 21687 /* end confdefs.h. */
11947 21688
11948 /* Override any GCC internal prototype to avoid an error. 21689 /* Override any GCC internal prototype to avoid an error.
11949 Use char because int might match the return type of a GCC 21690 Use char because int might match the return type of a GCC
11950 builtin and then its argument prototype would still apply. */ 21691 builtin and then its argument prototype would still apply. */
11958 return hes_getmailhost (); 21699 return hes_getmailhost ();
11959 ; 21700 ;
11960 return 0; 21701 return 0;
11961 } 21702 }
11962 _ACEOF 21703 _ACEOF
11963 if ac_fn_c_try_link "$LINENO"; then : 21704 rm -f conftest.$ac_objext conftest$ac_exeext
21705 if { (ac_try="$ac_link"
21706 case "(($ac_try" in
21707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21708 *) ac_try_echo=$ac_try;;
21709 esac
21710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21711 $as_echo "$ac_try_echo") >&5
21712 (eval "$ac_link") 2>conftest.er1
21713 ac_status=$?
21714 grep -v '^ *+' conftest.er1 >conftest.err
21715 rm -f conftest.er1
21716 cat conftest.err >&5
21717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); } && {
21719 test -z "$ac_c_werror_flag" ||
21720 test ! -s conftest.err
21721 } && test -s conftest$ac_exeext && {
21722 test "$cross_compiling" = yes ||
21723 $as_test_x conftest$ac_exeext
21724 }; then
11964 ac_cv_lib_hesiod_hes_getmailhost=yes 21725 ac_cv_lib_hesiod_hes_getmailhost=yes
11965 else 21726 else
11966 ac_cv_lib_hesiod_hes_getmailhost=no 21727 $as_echo "$as_me: failed program was:" >&5
11967 fi 21728 sed 's/^/| /' conftest.$ac_ext >&5
11968 rm -f core conftest.err conftest.$ac_objext \ 21729
11969 conftest$ac_exeext conftest.$ac_ext 21730 ac_cv_lib_hesiod_hes_getmailhost=no
21731 fi
21732
21733 rm -rf conftest.dSYM
21734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21735 conftest$ac_exeext conftest.$ac_ext
11970 LIBS=$ac_check_lib_save_LIBS 21736 LIBS=$ac_check_lib_save_LIBS
11971 fi 21737 fi
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 21738 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
11973 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; } 21739 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
11974 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then : 21740 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
11975 21741 hesiod=yes
11976 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
11977
11978 else 21742 else
11979 : 21743 :
11980 fi 21744 fi
11981 21745
11982 fi 21746 fi
11983 21747
11984 fi 21748
21749 if test x"$hesiod" = xyes; then
21750
21751 cat >>confdefs.h <<\_ACEOF
21752 #define HAVE_LIBHESIOD 1
21753 _ACEOF
21754
21755 LIBHESIOD=-lhesiod
21756 fi
21757 fi
21758
11985 21759
11986 # Do we need libresolv (due to res_init or Hesiod)? 21760 # Do we need libresolv (due to res_init or Hesiod)?
11987 if test "$resolv" = yes ; then 21761 if test "$resolv" = yes ; then
11988 21762
11989 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h 21763 cat >>confdefs.h <<\_ACEOF
11990 21764 #define HAVE_LIBRESOLV 1
11991 fi 21765 _ACEOF
21766
21767 LIBRESOLV=-lresolv
21768 else
21769 LIBRESOLV=
21770 fi
21771
11992 21772
11993 # These tell us which Kerberos-related libraries to use. 21773 # These tell us which Kerberos-related libraries to use.
21774 COM_ERRLIB=
21775 CRYPTOLIB=
21776 KRB5LIB=
21777 DESLIB=
21778 KRB4LIB=
21779
11994 if test "${with_kerberos}" != no; then 21780 if test "${with_kerberos}" != no; then
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5 21781 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
11996 $as_echo_n "checking for com_err in -lcom_err... " >&6; } 21782 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
11997 if test "${ac_cv_lib_com_err_com_err+set}" = set; then : 21783 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
11998 $as_echo_n "(cached) " >&6 21784 $as_echo_n "(cached) " >&6
11999 else 21785 else
12000 ac_check_lib_save_LIBS=$LIBS 21786 ac_check_lib_save_LIBS=$LIBS
12001 LIBS="-lcom_err $LIBS" 21787 LIBS="-lcom_err $LIBS"
12002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21788 cat >conftest.$ac_ext <<_ACEOF
21789 /* confdefs.h. */
21790 _ACEOF
21791 cat confdefs.h >>conftest.$ac_ext
21792 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h. */ 21793 /* end confdefs.h. */
12004 21794
12005 /* Override any GCC internal prototype to avoid an error. 21795 /* Override any GCC internal prototype to avoid an error.
12006 Use char because int might match the return type of a GCC 21796 Use char because int might match the return type of a GCC
12007 builtin and then its argument prototype would still apply. */ 21797 builtin and then its argument prototype would still apply. */
12015 return com_err (); 21805 return com_err ();
12016 ; 21806 ;
12017 return 0; 21807 return 0;
12018 } 21808 }
12019 _ACEOF 21809 _ACEOF
12020 if ac_fn_c_try_link "$LINENO"; then : 21810 rm -f conftest.$ac_objext conftest$ac_exeext
21811 if { (ac_try="$ac_link"
21812 case "(($ac_try" in
21813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21814 *) ac_try_echo=$ac_try;;
21815 esac
21816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21817 $as_echo "$ac_try_echo") >&5
21818 (eval "$ac_link") 2>conftest.er1
21819 ac_status=$?
21820 grep -v '^ *+' conftest.er1 >conftest.err
21821 rm -f conftest.er1
21822 cat conftest.err >&5
21823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824 (exit $ac_status); } && {
21825 test -z "$ac_c_werror_flag" ||
21826 test ! -s conftest.err
21827 } && test -s conftest$ac_exeext && {
21828 test "$cross_compiling" = yes ||
21829 $as_test_x conftest$ac_exeext
21830 }; then
12021 ac_cv_lib_com_err_com_err=yes 21831 ac_cv_lib_com_err_com_err=yes
12022 else 21832 else
12023 ac_cv_lib_com_err_com_err=no 21833 $as_echo "$as_me: failed program was:" >&5
12024 fi 21834 sed 's/^/| /' conftest.$ac_ext >&5
12025 rm -f core conftest.err conftest.$ac_objext \ 21835
12026 conftest$ac_exeext conftest.$ac_ext 21836 ac_cv_lib_com_err_com_err=no
21837 fi
21838
21839 rm -rf conftest.dSYM
21840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21841 conftest$ac_exeext conftest.$ac_ext
12027 LIBS=$ac_check_lib_save_LIBS 21842 LIBS=$ac_check_lib_save_LIBS
12028 fi 21843 fi
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5 21844 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
12030 $as_echo "$ac_cv_lib_com_err_com_err" >&6; } 21845 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
12031 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then : 21846 if test $ac_cv_lib_com_err_com_err = yes; then
12032 cat >>confdefs.h <<_ACEOF 21847 have_com_err=yes
21848 else
21849 have_com_err=no
21850 fi
21851
21852 if test $have_com_err = yes; then
21853 COM_ERRLIB=-lcom_err
21854 LIBS="$COM_ERRLIB $LIBS"
21855
21856 cat >>confdefs.h <<\_ACEOF
12033 #define HAVE_LIBCOM_ERR 1 21857 #define HAVE_LIBCOM_ERR 1
12034 _ACEOF 21858 _ACEOF
12035 21859
12036 LIBS="-lcom_err $LIBS" 21860 fi
12037 21861 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12038 fi 21862 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
12039 21863 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12041 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
12042 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
12043 $as_echo_n "(cached) " >&6 21864 $as_echo_n "(cached) " >&6
12044 else 21865 else
12045 ac_check_lib_save_LIBS=$LIBS 21866 ac_check_lib_save_LIBS=$LIBS
12046 LIBS="-lk5crypto $LIBS" 21867 LIBS="-lcrypto $LIBS"
12047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21868 cat >conftest.$ac_ext <<_ACEOF
21869 /* confdefs.h. */
21870 _ACEOF
21871 cat confdefs.h >>conftest.$ac_ext
21872 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h. */ 21873 /* end confdefs.h. */
12049 21874
12050 /* Override any GCC internal prototype to avoid an error. 21875 /* Override any GCC internal prototype to avoid an error.
12051 Use char because int might match the return type of a GCC 21876 Use char because int might match the return type of a GCC
12052 builtin and then its argument prototype would still apply. */ 21877 builtin and then its argument prototype would still apply. */
12060 return mit_des_cbc_encrypt (); 21885 return mit_des_cbc_encrypt ();
12061 ; 21886 ;
12062 return 0; 21887 return 0;
12063 } 21888 }
12064 _ACEOF 21889 _ACEOF
12065 if ac_fn_c_try_link "$LINENO"; then : 21890 rm -f conftest.$ac_objext conftest$ac_exeext
12066 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes 21891 if { (ac_try="$ac_link"
12067 else 21892 case "(($ac_try" in
12068 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no 21893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069 fi 21894 *) ac_try_echo=$ac_try;;
12070 rm -f core conftest.err conftest.$ac_objext \ 21895 esac
12071 conftest$ac_exeext conftest.$ac_ext 21896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21897 $as_echo "$ac_try_echo") >&5
21898 (eval "$ac_link") 2>conftest.er1
21899 ac_status=$?
21900 grep -v '^ *+' conftest.er1 >conftest.err
21901 rm -f conftest.er1
21902 cat conftest.err >&5
21903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904 (exit $ac_status); } && {
21905 test -z "$ac_c_werror_flag" ||
21906 test ! -s conftest.err
21907 } && test -s conftest$ac_exeext && {
21908 test "$cross_compiling" = yes ||
21909 $as_test_x conftest$ac_exeext
21910 }; then
21911 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21912 else
21913 $as_echo "$as_me: failed program was:" >&5
21914 sed 's/^/| /' conftest.$ac_ext >&5
21915
21916 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21917 fi
21918
21919 rm -rf conftest.dSYM
21920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21921 conftest$ac_exeext conftest.$ac_ext
12072 LIBS=$ac_check_lib_save_LIBS 21922 LIBS=$ac_check_lib_save_LIBS
12073 fi 21923 fi
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 21924 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12075 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; } 21925 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
12076 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then : 21926 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
12077 cat >>confdefs.h <<_ACEOF 21927 have_crypto=yes
12078 #define HAVE_LIBK5CRYPTO 1 21928 else
12079 _ACEOF 21929 have_crypto=no
12080 21930 fi
12081 LIBS="-lk5crypto $LIBS" 21931
12082 21932 if test $have_crypto = yes; then
12083 fi 21933 CRYPTOLIB=-lcrypto
12084 21934 LIBS="$CRYPTOLIB $LIBS"
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5 21935
12086 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; } 21936 cat >>confdefs.h <<\_ACEOF
12087 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then : 21937 #define HAVE_LIBCRYPTO 1
21938 _ACEOF
21939
21940 fi
21941 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
21942 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
21943 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
12088 $as_echo_n "(cached) " >&6 21944 $as_echo_n "(cached) " >&6
12089 else 21945 else
12090 ac_check_lib_save_LIBS=$LIBS 21946 ac_check_lib_save_LIBS=$LIBS
12091 LIBS="-lcrypto $LIBS" 21947 LIBS="-lk5crypto $LIBS"
12092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21948 cat >conftest.$ac_ext <<_ACEOF
21949 /* confdefs.h. */
21950 _ACEOF
21951 cat confdefs.h >>conftest.$ac_ext
21952 cat >>conftest.$ac_ext <<_ACEOF
12093 /* end confdefs.h. */ 21953 /* end confdefs.h. */
12094 21954
12095 /* Override any GCC internal prototype to avoid an error. 21955 /* Override any GCC internal prototype to avoid an error.
12096 Use char because int might match the return type of a GCC 21956 Use char because int might match the return type of a GCC
12097 builtin and then its argument prototype would still apply. */ 21957 builtin and then its argument prototype would still apply. */
12105 return mit_des_cbc_encrypt (); 21965 return mit_des_cbc_encrypt ();
12106 ; 21966 ;
12107 return 0; 21967 return 0;
12108 } 21968 }
12109 _ACEOF 21969 _ACEOF
12110 if ac_fn_c_try_link "$LINENO"; then : 21970 rm -f conftest.$ac_objext conftest$ac_exeext
12111 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes 21971 if { (ac_try="$ac_link"
12112 else 21972 case "(($ac_try" in
12113 ac_cv_lib_crypto_mit_des_cbc_encrypt=no 21973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12114 fi 21974 *) ac_try_echo=$ac_try;;
12115 rm -f core conftest.err conftest.$ac_objext \ 21975 esac
12116 conftest$ac_exeext conftest.$ac_ext 21976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21977 $as_echo "$ac_try_echo") >&5
21978 (eval "$ac_link") 2>conftest.er1
21979 ac_status=$?
21980 grep -v '^ *+' conftest.er1 >conftest.err
21981 rm -f conftest.er1
21982 cat conftest.err >&5
21983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984 (exit $ac_status); } && {
21985 test -z "$ac_c_werror_flag" ||
21986 test ! -s conftest.err
21987 } && test -s conftest$ac_exeext && {
21988 test "$cross_compiling" = yes ||
21989 $as_test_x conftest$ac_exeext
21990 }; then
21991 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
21992 else
21993 $as_echo "$as_me: failed program was:" >&5
21994 sed 's/^/| /' conftest.$ac_ext >&5
21995
21996 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
21997 fi
21998
21999 rm -rf conftest.dSYM
22000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22001 conftest$ac_exeext conftest.$ac_ext
12117 LIBS=$ac_check_lib_save_LIBS 22002 LIBS=$ac_check_lib_save_LIBS
12118 fi 22003 fi
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 22004 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12120 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; } 22005 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
12121 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then : 22006 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
12122 cat >>confdefs.h <<_ACEOF 22007 have_k5crypto=yes
12123 #define HAVE_LIBCRYPTO 1 22008 else
12124 _ACEOF 22009 have_k5crypto=no
12125 22010 fi
12126 LIBS="-lcrypto $LIBS" 22011
12127 22012 if test $have_k5crypto = yes; then
12128 fi 22013 CRYPTOLIB=-lk5crypto
12129 22014 LIBS="$CRYPTOLIB $LIBS"
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5 22015
22016 cat >>confdefs.h <<\_ACEOF
22017 #define HAVE_LIBK5CRYPTO 1
22018 _ACEOF
22019
22020 fi
22021 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
12131 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; } 22022 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12132 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then : 22023 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
12133 $as_echo_n "(cached) " >&6 22024 $as_echo_n "(cached) " >&6
12134 else 22025 else
12135 ac_check_lib_save_LIBS=$LIBS 22026 ac_check_lib_save_LIBS=$LIBS
12136 LIBS="-lkrb5 $LIBS" 22027 LIBS="-lkrb5 $LIBS"
12137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22028 cat >conftest.$ac_ext <<_ACEOF
22029 /* confdefs.h. */
22030 _ACEOF
22031 cat confdefs.h >>conftest.$ac_ext
22032 cat >>conftest.$ac_ext <<_ACEOF
12138 /* end confdefs.h. */ 22033 /* end confdefs.h. */
12139 22034
12140 /* Override any GCC internal prototype to avoid an error. 22035 /* Override any GCC internal prototype to avoid an error.
12141 Use char because int might match the return type of a GCC 22036 Use char because int might match the return type of a GCC
12142 builtin and then its argument prototype would still apply. */ 22037 builtin and then its argument prototype would still apply. */
12150 return krb5_init_context (); 22045 return krb5_init_context ();
12151 ; 22046 ;
12152 return 0; 22047 return 0;
12153 } 22048 }
12154 _ACEOF 22049 _ACEOF
12155 if ac_fn_c_try_link "$LINENO"; then : 22050 rm -f conftest.$ac_objext conftest$ac_exeext
22051 if { (ac_try="$ac_link"
22052 case "(($ac_try" in
22053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22054 *) ac_try_echo=$ac_try;;
22055 esac
22056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22057 $as_echo "$ac_try_echo") >&5
22058 (eval "$ac_link") 2>conftest.er1
22059 ac_status=$?
22060 grep -v '^ *+' conftest.er1 >conftest.err
22061 rm -f conftest.er1
22062 cat conftest.err >&5
22063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064 (exit $ac_status); } && {
22065 test -z "$ac_c_werror_flag" ||
22066 test ! -s conftest.err
22067 } && test -s conftest$ac_exeext && {
22068 test "$cross_compiling" = yes ||
22069 $as_test_x conftest$ac_exeext
22070 }; then
12156 ac_cv_lib_krb5_krb5_init_context=yes 22071 ac_cv_lib_krb5_krb5_init_context=yes
12157 else 22072 else
12158 ac_cv_lib_krb5_krb5_init_context=no 22073 $as_echo "$as_me: failed program was:" >&5
12159 fi 22074 sed 's/^/| /' conftest.$ac_ext >&5
12160 rm -f core conftest.err conftest.$ac_objext \ 22075
12161 conftest$ac_exeext conftest.$ac_ext 22076 ac_cv_lib_krb5_krb5_init_context=no
22077 fi
22078
22079 rm -rf conftest.dSYM
22080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22081 conftest$ac_exeext conftest.$ac_ext
12162 LIBS=$ac_check_lib_save_LIBS 22082 LIBS=$ac_check_lib_save_LIBS
12163 fi 22083 fi
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5 22084 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12165 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; } 22085 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12166 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then : 22086 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
12167 cat >>confdefs.h <<_ACEOF 22087 have_krb5=yes
22088 else
22089 have_krb5=no
22090 fi
22091
22092 if test $have_krb5=yes; then
22093 KRB5LIB=-lkrb5
22094 LIBS="$KRB5LIB $LIBS"
22095
22096 cat >>confdefs.h <<\_ACEOF
12168 #define HAVE_LIBKRB5 1 22097 #define HAVE_LIBKRB5 1
12169 _ACEOF 22098 _ACEOF
12170 22099
12171 LIBS="-lkrb5 $LIBS" 22100 fi
12172 22101 if test "${with_kerberos5}" = no; then
12173 fi 22102 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
12174
12175 if test "${with_kerberos5}" = no; then
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
12177 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; } 22103 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
12178 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then : 22104 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
12179 $as_echo_n "(cached) " >&6 22105 $as_echo_n "(cached) " >&6
12180 else 22106 else
12181 ac_check_lib_save_LIBS=$LIBS 22107 ac_check_lib_save_LIBS=$LIBS
12182 LIBS="-ldes425 $LIBS" 22108 LIBS="-ldes425 $LIBS"
12183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22109 cat >conftest.$ac_ext <<_ACEOF
22110 /* confdefs.h. */
22111 _ACEOF
22112 cat confdefs.h >>conftest.$ac_ext
22113 cat >>conftest.$ac_ext <<_ACEOF
12184 /* end confdefs.h. */ 22114 /* end confdefs.h. */
12185 22115
12186 /* Override any GCC internal prototype to avoid an error. 22116 /* Override any GCC internal prototype to avoid an error.
12187 Use char because int might match the return type of a GCC 22117 Use char because int might match the return type of a GCC
12188 builtin and then its argument prototype would still apply. */ 22118 builtin and then its argument prototype would still apply. */
12196 return des_cbc_encrypt (); 22126 return des_cbc_encrypt ();
12197 ; 22127 ;
12198 return 0; 22128 return 0;
12199 } 22129 }
12200 _ACEOF 22130 _ACEOF
12201 if ac_fn_c_try_link "$LINENO"; then : 22131 rm -f conftest.$ac_objext conftest$ac_exeext
22132 if { (ac_try="$ac_link"
22133 case "(($ac_try" in
22134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22135 *) ac_try_echo=$ac_try;;
22136 esac
22137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22138 $as_echo "$ac_try_echo") >&5
22139 (eval "$ac_link") 2>conftest.er1
22140 ac_status=$?
22141 grep -v '^ *+' conftest.er1 >conftest.err
22142 rm -f conftest.er1
22143 cat conftest.err >&5
22144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145 (exit $ac_status); } && {
22146 test -z "$ac_c_werror_flag" ||
22147 test ! -s conftest.err
22148 } && test -s conftest$ac_exeext && {
22149 test "$cross_compiling" = yes ||
22150 $as_test_x conftest$ac_exeext
22151 }; then
12202 ac_cv_lib_des425_des_cbc_encrypt=yes 22152 ac_cv_lib_des425_des_cbc_encrypt=yes
12203 else 22153 else
12204 ac_cv_lib_des425_des_cbc_encrypt=no 22154 $as_echo "$as_me: failed program was:" >&5
12205 fi 22155 sed 's/^/| /' conftest.$ac_ext >&5
12206 rm -f core conftest.err conftest.$ac_objext \ 22156
12207 conftest$ac_exeext conftest.$ac_ext 22157 ac_cv_lib_des425_des_cbc_encrypt=no
22158 fi
22159
22160 rm -rf conftest.dSYM
22161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22162 conftest$ac_exeext conftest.$ac_ext
12208 LIBS=$ac_check_lib_save_LIBS 22163 LIBS=$ac_check_lib_save_LIBS
12209 fi 22164 fi
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 22165 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
12211 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; } 22166 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
12212 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then : 22167 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
12213 cat >>confdefs.h <<_ACEOF 22168 have_des425=yes
22169 else
22170 have_des425=no
22171 fi
22172
22173 if test $have_des425 = yes; then
22174 DESLIB=-ldes425
22175 LIBS="$DESLIB $LIBS"
22176
22177 cat >>confdefs.h <<\_ACEOF
12214 #define HAVE_LIBDES425 1 22178 #define HAVE_LIBDES425 1
12215 _ACEOF 22179 _ACEOF
12216 22180
12217 LIBS="-ldes425 $LIBS" 22181 else
12218 22182 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
12219 else
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
12221 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } 22183 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
12222 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then : 22184 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
12223 $as_echo_n "(cached) " >&6 22185 $as_echo_n "(cached) " >&6
12224 else 22186 else
12225 ac_check_lib_save_LIBS=$LIBS 22187 ac_check_lib_save_LIBS=$LIBS
12226 LIBS="-ldes $LIBS" 22188 LIBS="-ldes $LIBS"
12227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22189 cat >conftest.$ac_ext <<_ACEOF
22190 /* confdefs.h. */
22191 _ACEOF
22192 cat confdefs.h >>conftest.$ac_ext
22193 cat >>conftest.$ac_ext <<_ACEOF
12228 /* end confdefs.h. */ 22194 /* end confdefs.h. */
12229 22195
12230 /* Override any GCC internal prototype to avoid an error. 22196 /* Override any GCC internal prototype to avoid an error.
12231 Use char because int might match the return type of a GCC 22197 Use char because int might match the return type of a GCC
12232 builtin and then its argument prototype would still apply. */ 22198 builtin and then its argument prototype would still apply. */
12240 return des_cbc_encrypt (); 22206 return des_cbc_encrypt ();
12241 ; 22207 ;
12242 return 0; 22208 return 0;
12243 } 22209 }
12244 _ACEOF 22210 _ACEOF
12245 if ac_fn_c_try_link "$LINENO"; then : 22211 rm -f conftest.$ac_objext conftest$ac_exeext
22212 if { (ac_try="$ac_link"
22213 case "(($ac_try" in
22214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22215 *) ac_try_echo=$ac_try;;
22216 esac
22217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22218 $as_echo "$ac_try_echo") >&5
22219 (eval "$ac_link") 2>conftest.er1
22220 ac_status=$?
22221 grep -v '^ *+' conftest.er1 >conftest.err
22222 rm -f conftest.er1
22223 cat conftest.err >&5
22224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); } && {
22226 test -z "$ac_c_werror_flag" ||
22227 test ! -s conftest.err
22228 } && test -s conftest$ac_exeext && {
22229 test "$cross_compiling" = yes ||
22230 $as_test_x conftest$ac_exeext
22231 }; then
12246 ac_cv_lib_des_des_cbc_encrypt=yes 22232 ac_cv_lib_des_des_cbc_encrypt=yes
12247 else 22233 else
12248 ac_cv_lib_des_des_cbc_encrypt=no 22234 $as_echo "$as_me: failed program was:" >&5
12249 fi 22235 sed 's/^/| /' conftest.$ac_ext >&5
12250 rm -f core conftest.err conftest.$ac_objext \ 22236
12251 conftest$ac_exeext conftest.$ac_ext 22237 ac_cv_lib_des_des_cbc_encrypt=no
22238 fi
22239
22240 rm -rf conftest.dSYM
22241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22242 conftest$ac_exeext conftest.$ac_ext
12252 LIBS=$ac_check_lib_save_LIBS 22243 LIBS=$ac_check_lib_save_LIBS
12253 fi 22244 fi
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 22245 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
12255 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } 22246 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
12256 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then : 22247 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
12257 cat >>confdefs.h <<_ACEOF 22248 have_des=yes
22249 else
22250 have_des=no
22251 fi
22252
22253 if test $have_des = yes; then
22254 DESLIB=-ldes
22255 LIBS="$DESLIB $LIBS"
22256
22257 cat >>confdefs.h <<\_ACEOF
12258 #define HAVE_LIBDES 1 22258 #define HAVE_LIBDES 1
12259 _ACEOF 22259 _ACEOF
12260 22260
12261 LIBS="-ldes $LIBS" 22261 fi
12262 22262 fi
12263 fi 22263 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
12264
12265 fi
12266
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
12268 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; } 22264 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
12269 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then : 22265 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
12270 $as_echo_n "(cached) " >&6 22266 $as_echo_n "(cached) " >&6
12271 else 22267 else
12272 ac_check_lib_save_LIBS=$LIBS 22268 ac_check_lib_save_LIBS=$LIBS
12273 LIBS="-lkrb4 $LIBS" 22269 LIBS="-lkrb4 $LIBS"
12274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22270 cat >conftest.$ac_ext <<_ACEOF
22271 /* confdefs.h. */
22272 _ACEOF
22273 cat confdefs.h >>conftest.$ac_ext
22274 cat >>conftest.$ac_ext <<_ACEOF
12275 /* end confdefs.h. */ 22275 /* end confdefs.h. */
12276 22276
12277 /* Override any GCC internal prototype to avoid an error. 22277 /* Override any GCC internal prototype to avoid an error.
12278 Use char because int might match the return type of a GCC 22278 Use char because int might match the return type of a GCC
12279 builtin and then its argument prototype would still apply. */ 22279 builtin and then its argument prototype would still apply. */
12287 return krb_get_cred (); 22287 return krb_get_cred ();
12288 ; 22288 ;
12289 return 0; 22289 return 0;
12290 } 22290 }
12291 _ACEOF 22291 _ACEOF
12292 if ac_fn_c_try_link "$LINENO"; then : 22292 rm -f conftest.$ac_objext conftest$ac_exeext
22293 if { (ac_try="$ac_link"
22294 case "(($ac_try" in
22295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22296 *) ac_try_echo=$ac_try;;
22297 esac
22298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22299 $as_echo "$ac_try_echo") >&5
22300 (eval "$ac_link") 2>conftest.er1
22301 ac_status=$?
22302 grep -v '^ *+' conftest.er1 >conftest.err
22303 rm -f conftest.er1
22304 cat conftest.err >&5
22305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); } && {
22307 test -z "$ac_c_werror_flag" ||
22308 test ! -s conftest.err
22309 } && test -s conftest$ac_exeext && {
22310 test "$cross_compiling" = yes ||
22311 $as_test_x conftest$ac_exeext
22312 }; then
12293 ac_cv_lib_krb4_krb_get_cred=yes 22313 ac_cv_lib_krb4_krb_get_cred=yes
12294 else 22314 else
12295 ac_cv_lib_krb4_krb_get_cred=no 22315 $as_echo "$as_me: failed program was:" >&5
12296 fi 22316 sed 's/^/| /' conftest.$ac_ext >&5
12297 rm -f core conftest.err conftest.$ac_objext \ 22317
12298 conftest$ac_exeext conftest.$ac_ext 22318 ac_cv_lib_krb4_krb_get_cred=no
22319 fi
22320
22321 rm -rf conftest.dSYM
22322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22323 conftest$ac_exeext conftest.$ac_ext
12299 LIBS=$ac_check_lib_save_LIBS 22324 LIBS=$ac_check_lib_save_LIBS
12300 fi 22325 fi
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5 22326 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
12302 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; } 22327 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
12303 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then : 22328 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
12304 cat >>confdefs.h <<_ACEOF 22329 have_krb4=yes
22330 else
22331 have_krb4=no
22332 fi
22333
22334 if test $have_krb4 = yes; then
22335 KRB4LIB=-lkrb4
22336 LIBS="$KRB4LIB $LIBS"
22337
22338 cat >>confdefs.h <<\_ACEOF
12305 #define HAVE_LIBKRB4 1 22339 #define HAVE_LIBKRB4 1
12306 _ACEOF 22340 _ACEOF
12307 22341
12308 LIBS="-lkrb4 $LIBS" 22342 else
12309 22343 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
12310 else
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
12312 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; } 22344 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
12313 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then : 22345 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
12314 $as_echo_n "(cached) " >&6 22346 $as_echo_n "(cached) " >&6
12315 else 22347 else
12316 ac_check_lib_save_LIBS=$LIBS 22348 ac_check_lib_save_LIBS=$LIBS
12317 LIBS="-lkrb $LIBS" 22349 LIBS="-lkrb $LIBS"
12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22350 cat >conftest.$ac_ext <<_ACEOF
22351 /* confdefs.h. */
22352 _ACEOF
22353 cat confdefs.h >>conftest.$ac_ext
22354 cat >>conftest.$ac_ext <<_ACEOF
12319 /* end confdefs.h. */ 22355 /* end confdefs.h. */
12320 22356
12321 /* Override any GCC internal prototype to avoid an error. 22357 /* Override any GCC internal prototype to avoid an error.
12322 Use char because int might match the return type of a GCC 22358 Use char because int might match the return type of a GCC
12323 builtin and then its argument prototype would still apply. */ 22359 builtin and then its argument prototype would still apply. */
12331 return krb_get_cred (); 22367 return krb_get_cred ();
12332 ; 22368 ;
12333 return 0; 22369 return 0;
12334 } 22370 }
12335 _ACEOF 22371 _ACEOF
12336 if ac_fn_c_try_link "$LINENO"; then : 22372 rm -f conftest.$ac_objext conftest$ac_exeext
22373 if { (ac_try="$ac_link"
22374 case "(($ac_try" in
22375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22376 *) ac_try_echo=$ac_try;;
22377 esac
22378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22379 $as_echo "$ac_try_echo") >&5
22380 (eval "$ac_link") 2>conftest.er1
22381 ac_status=$?
22382 grep -v '^ *+' conftest.er1 >conftest.err
22383 rm -f conftest.er1
22384 cat conftest.err >&5
22385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386 (exit $ac_status); } && {
22387 test -z "$ac_c_werror_flag" ||
22388 test ! -s conftest.err
22389 } && test -s conftest$ac_exeext && {
22390 test "$cross_compiling" = yes ||
22391 $as_test_x conftest$ac_exeext
22392 }; then
12337 ac_cv_lib_krb_krb_get_cred=yes 22393 ac_cv_lib_krb_krb_get_cred=yes
12338 else 22394 else
12339 ac_cv_lib_krb_krb_get_cred=no 22395 $as_echo "$as_me: failed program was:" >&5
12340 fi 22396 sed 's/^/| /' conftest.$ac_ext >&5
12341 rm -f core conftest.err conftest.$ac_objext \ 22397
12342 conftest$ac_exeext conftest.$ac_ext 22398 ac_cv_lib_krb_krb_get_cred=no
22399 fi
22400
22401 rm -rf conftest.dSYM
22402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22403 conftest$ac_exeext conftest.$ac_ext
12343 LIBS=$ac_check_lib_save_LIBS 22404 LIBS=$ac_check_lib_save_LIBS
12344 fi 22405 fi
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5 22406 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
12346 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; } 22407 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
12347 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then : 22408 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22409 have_krb=yes
22410 else
22411 have_krb=no
22412 fi
22413
22414 if test $have_krb = yes; then
22415 KRB4LIB=-lkrb
22416 LIBS="$KRB4LIB $LIBS"
22417
22418 cat >>confdefs.h <<\_ACEOF
22419 #define HAVE_LIBKRB 1
22420 _ACEOF
22421
22422 fi
22423 fi
22424 fi
22425
22426 if test "${with_kerberos5}" != no; then
22427
22428 for ac_header in krb5.h
22429 do
22430 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22432 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22433 $as_echo_n "checking for $ac_header... " >&6; }
22434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22435 $as_echo_n "(cached) " >&6
22436 fi
22437 ac_res=`eval 'as_val=${'$as_ac_Header'}
22438 $as_echo "$as_val"'`
22439 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22440 $as_echo "$ac_res" >&6; }
22441 else
22442 # Is the header compilable?
22443 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22444 $as_echo_n "checking $ac_header usability... " >&6; }
22445 cat >conftest.$ac_ext <<_ACEOF
22446 /* confdefs.h. */
22447 _ACEOF
22448 cat confdefs.h >>conftest.$ac_ext
22449 cat >>conftest.$ac_ext <<_ACEOF
22450 /* end confdefs.h. */
22451 $ac_includes_default
22452 #include <$ac_header>
22453 _ACEOF
22454 rm -f conftest.$ac_objext
22455 if { (ac_try="$ac_compile"
22456 case "(($ac_try" in
22457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22458 *) ac_try_echo=$ac_try;;
22459 esac
22460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22461 $as_echo "$ac_try_echo") >&5
22462 (eval "$ac_compile") 2>conftest.er1
22463 ac_status=$?
22464 grep -v '^ *+' conftest.er1 >conftest.err
22465 rm -f conftest.er1
22466 cat conftest.err >&5
22467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468 (exit $ac_status); } && {
22469 test -z "$ac_c_werror_flag" ||
22470 test ! -s conftest.err
22471 } && test -s conftest.$ac_objext; then
22472 ac_header_compiler=yes
22473 else
22474 $as_echo "$as_me: failed program was:" >&5
22475 sed 's/^/| /' conftest.$ac_ext >&5
22476
22477 ac_header_compiler=no
22478 fi
22479
22480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22481 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22482 $as_echo "$ac_header_compiler" >&6; }
22483
22484 # Is the header present?
22485 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22486 $as_echo_n "checking $ac_header presence... " >&6; }
22487 cat >conftest.$ac_ext <<_ACEOF
22488 /* confdefs.h. */
22489 _ACEOF
22490 cat confdefs.h >>conftest.$ac_ext
22491 cat >>conftest.$ac_ext <<_ACEOF
22492 /* end confdefs.h. */
22493 #include <$ac_header>
22494 _ACEOF
22495 if { (ac_try="$ac_cpp conftest.$ac_ext"
22496 case "(($ac_try" in
22497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22498 *) ac_try_echo=$ac_try;;
22499 esac
22500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22501 $as_echo "$ac_try_echo") >&5
22502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22503 ac_status=$?
22504 grep -v '^ *+' conftest.er1 >conftest.err
22505 rm -f conftest.er1
22506 cat conftest.err >&5
22507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22508 (exit $ac_status); } >/dev/null && {
22509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22510 test ! -s conftest.err
22511 }; then
22512 ac_header_preproc=yes
22513 else
22514 $as_echo "$as_me: failed program was:" >&5
22515 sed 's/^/| /' conftest.$ac_ext >&5
22516
22517 ac_header_preproc=no
22518 fi
22519
22520 rm -f conftest.err conftest.$ac_ext
22521 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22522 $as_echo "$ac_header_preproc" >&6; }
22523
22524 # So? What about this header?
22525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22526 yes:no: )
22527 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22528 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22529 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22530 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22531 ac_header_preproc=yes
22532 ;;
22533 no:yes:* )
22534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22535 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22537 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22539 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22541 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22543 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22545 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22546
22547 ;;
22548 esac
22549 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22550 $as_echo_n "checking for $ac_header... " >&6; }
22551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22552 $as_echo_n "(cached) " >&6
22553 else
22554 eval "$as_ac_Header=\$ac_header_preproc"
22555 fi
22556 ac_res=`eval 'as_val=${'$as_ac_Header'}
22557 $as_echo "$as_val"'`
22558 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22559 $as_echo "$ac_res" >&6; }
22560
22561 fi
22562 if test `eval 'as_val=${'$as_ac_Header'}
22563 $as_echo "$as_val"'` = yes; then
12348 cat >>confdefs.h <<_ACEOF 22564 cat >>confdefs.h <<_ACEOF
12349 #define HAVE_LIBKRB 1 22565 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12350 _ACEOF 22566 _ACEOF
12351 22567 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
12352 LIBS="-lkrb $LIBS" 22568 $as_echo_n "checking for krb5_error.text... " >&6; }
12353 22569 if test "${ac_cv_member_krb5_error_text+set}" = set; then
12354 fi 22570 $as_echo_n "(cached) " >&6
12355 22571 else
12356 fi 22572 cat >conftest.$ac_ext <<_ACEOF
12357 22573 /* confdefs.h. */
12358 fi 22574 _ACEOF
12359 22575 cat confdefs.h >>conftest.$ac_ext
12360 if test "${with_kerberos5}" != no; then 22576 cat >>conftest.$ac_ext <<_ACEOF
12361 for ac_header in krb5.h 22577 /* end confdefs.h. */
12362 do : 22578 #include <krb5.h>
12363 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default" 22579
12364 if test "x$ac_cv_header_krb5_h" = x""yes; then : 22580 int
12365 cat >>confdefs.h <<_ACEOF 22581 main ()
12366 #define HAVE_KRB5_H 1 22582 {
12367 _ACEOF 22583 static krb5_error ac_aggr;
12368 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h> 22584 if (ac_aggr.text)
12369 " 22585 return 0;
12370 if test "x$ac_cv_member_krb5_error_text" = x""yes; then : 22586 ;
22587 return 0;
22588 }
22589 _ACEOF
22590 rm -f conftest.$ac_objext
22591 if { (ac_try="$ac_compile"
22592 case "(($ac_try" in
22593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22594 *) ac_try_echo=$ac_try;;
22595 esac
22596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22597 $as_echo "$ac_try_echo") >&5
22598 (eval "$ac_compile") 2>conftest.er1
22599 ac_status=$?
22600 grep -v '^ *+' conftest.er1 >conftest.err
22601 rm -f conftest.er1
22602 cat conftest.err >&5
22603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); } && {
22605 test -z "$ac_c_werror_flag" ||
22606 test ! -s conftest.err
22607 } && test -s conftest.$ac_objext; then
22608 ac_cv_member_krb5_error_text=yes
22609 else
22610 $as_echo "$as_me: failed program was:" >&5
22611 sed 's/^/| /' conftest.$ac_ext >&5
22612
22613 cat >conftest.$ac_ext <<_ACEOF
22614 /* confdefs.h. */
22615 _ACEOF
22616 cat confdefs.h >>conftest.$ac_ext
22617 cat >>conftest.$ac_ext <<_ACEOF
22618 /* end confdefs.h. */
22619 #include <krb5.h>
22620
22621 int
22622 main ()
22623 {
22624 static krb5_error ac_aggr;
22625 if (sizeof ac_aggr.text)
22626 return 0;
22627 ;
22628 return 0;
22629 }
22630 _ACEOF
22631 rm -f conftest.$ac_objext
22632 if { (ac_try="$ac_compile"
22633 case "(($ac_try" in
22634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22635 *) ac_try_echo=$ac_try;;
22636 esac
22637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22638 $as_echo "$ac_try_echo") >&5
22639 (eval "$ac_compile") 2>conftest.er1
22640 ac_status=$?
22641 grep -v '^ *+' conftest.er1 >conftest.err
22642 rm -f conftest.er1
22643 cat conftest.err >&5
22644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); } && {
22646 test -z "$ac_c_werror_flag" ||
22647 test ! -s conftest.err
22648 } && test -s conftest.$ac_objext; then
22649 ac_cv_member_krb5_error_text=yes
22650 else
22651 $as_echo "$as_me: failed program was:" >&5
22652 sed 's/^/| /' conftest.$ac_ext >&5
22653
22654 ac_cv_member_krb5_error_text=no
22655 fi
22656
22657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22658 fi
22659
22660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22661 fi
22662 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22663 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22664 if test $ac_cv_member_krb5_error_text = yes; then
12371 22665
12372 cat >>confdefs.h <<_ACEOF 22666 cat >>confdefs.h <<_ACEOF
12373 #define HAVE_KRB5_ERROR_TEXT 1 22667 #define HAVE_KRB5_ERROR_TEXT 1
12374 _ACEOF 22668 _ACEOF
12375 22669
12376 22670
12377 fi 22671 fi
12378 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h> 22672 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
12379 " 22673 $as_echo_n "checking for krb5_error.e_text... " >&6; }
12380 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then : 22674 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22675 $as_echo_n "(cached) " >&6
22676 else
22677 cat >conftest.$ac_ext <<_ACEOF
22678 /* confdefs.h. */
22679 _ACEOF
22680 cat confdefs.h >>conftest.$ac_ext
22681 cat >>conftest.$ac_ext <<_ACEOF
22682 /* end confdefs.h. */
22683 #include <krb5.h>
22684
22685 int
22686 main ()
22687 {
22688 static krb5_error ac_aggr;
22689 if (ac_aggr.e_text)
22690 return 0;
22691 ;
22692 return 0;
22693 }
22694 _ACEOF
22695 rm -f conftest.$ac_objext
22696 if { (ac_try="$ac_compile"
22697 case "(($ac_try" in
22698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22699 *) ac_try_echo=$ac_try;;
22700 esac
22701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22702 $as_echo "$ac_try_echo") >&5
22703 (eval "$ac_compile") 2>conftest.er1
22704 ac_status=$?
22705 grep -v '^ *+' conftest.er1 >conftest.err
22706 rm -f conftest.er1
22707 cat conftest.err >&5
22708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709 (exit $ac_status); } && {
22710 test -z "$ac_c_werror_flag" ||
22711 test ! -s conftest.err
22712 } && test -s conftest.$ac_objext; then
22713 ac_cv_member_krb5_error_e_text=yes
22714 else
22715 $as_echo "$as_me: failed program was:" >&5
22716 sed 's/^/| /' conftest.$ac_ext >&5
22717
22718 cat >conftest.$ac_ext <<_ACEOF
22719 /* confdefs.h. */
22720 _ACEOF
22721 cat confdefs.h >>conftest.$ac_ext
22722 cat >>conftest.$ac_ext <<_ACEOF
22723 /* end confdefs.h. */
22724 #include <krb5.h>
22725
22726 int
22727 main ()
22728 {
22729 static krb5_error ac_aggr;
22730 if (sizeof ac_aggr.e_text)
22731 return 0;
22732 ;
22733 return 0;
22734 }
22735 _ACEOF
22736 rm -f conftest.$ac_objext
22737 if { (ac_try="$ac_compile"
22738 case "(($ac_try" in
22739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22740 *) ac_try_echo=$ac_try;;
22741 esac
22742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22743 $as_echo "$ac_try_echo") >&5
22744 (eval "$ac_compile") 2>conftest.er1
22745 ac_status=$?
22746 grep -v '^ *+' conftest.er1 >conftest.err
22747 rm -f conftest.er1
22748 cat conftest.err >&5
22749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); } && {
22751 test -z "$ac_c_werror_flag" ||
22752 test ! -s conftest.err
22753 } && test -s conftest.$ac_objext; then
22754 ac_cv_member_krb5_error_e_text=yes
22755 else
22756 $as_echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22758
22759 ac_cv_member_krb5_error_e_text=no
22760 fi
22761
22762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22763 fi
22764
22765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22766 fi
22767 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
22768 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22769 if test $ac_cv_member_krb5_error_e_text = yes; then
12381 22770
12382 cat >>confdefs.h <<_ACEOF 22771 cat >>confdefs.h <<_ACEOF
12383 #define HAVE_KRB5_ERROR_E_TEXT 1 22772 #define HAVE_KRB5_ERROR_E_TEXT 1
12384 _ACEOF 22773 _ACEOF
12385 22774
12389 fi 22778 fi
12390 22779
12391 done 22780 done
12392 22781
12393 else 22782 else
12394 for ac_header in des.h 22783
12395 do : 22784 for ac_header in des.h
12396 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default" 22785 do
12397 if test "x$ac_cv_header_des_h" = x""yes; then : 22786 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22788 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22789 $as_echo_n "checking for $ac_header... " >&6; }
22790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22791 $as_echo_n "(cached) " >&6
22792 fi
22793 ac_res=`eval 'as_val=${'$as_ac_Header'}
22794 $as_echo "$as_val"'`
22795 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22796 $as_echo "$ac_res" >&6; }
22797 else
22798 # Is the header compilable?
22799 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22800 $as_echo_n "checking $ac_header usability... " >&6; }
22801 cat >conftest.$ac_ext <<_ACEOF
22802 /* confdefs.h. */
22803 _ACEOF
22804 cat confdefs.h >>conftest.$ac_ext
22805 cat >>conftest.$ac_ext <<_ACEOF
22806 /* end confdefs.h. */
22807 $ac_includes_default
22808 #include <$ac_header>
22809 _ACEOF
22810 rm -f conftest.$ac_objext
22811 if { (ac_try="$ac_compile"
22812 case "(($ac_try" in
22813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22814 *) ac_try_echo=$ac_try;;
22815 esac
22816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22817 $as_echo "$ac_try_echo") >&5
22818 (eval "$ac_compile") 2>conftest.er1
22819 ac_status=$?
22820 grep -v '^ *+' conftest.er1 >conftest.err
22821 rm -f conftest.er1
22822 cat conftest.err >&5
22823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824 (exit $ac_status); } && {
22825 test -z "$ac_c_werror_flag" ||
22826 test ! -s conftest.err
22827 } && test -s conftest.$ac_objext; then
22828 ac_header_compiler=yes
22829 else
22830 $as_echo "$as_me: failed program was:" >&5
22831 sed 's/^/| /' conftest.$ac_ext >&5
22832
22833 ac_header_compiler=no
22834 fi
22835
22836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22837 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22838 $as_echo "$ac_header_compiler" >&6; }
22839
22840 # Is the header present?
22841 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22842 $as_echo_n "checking $ac_header presence... " >&6; }
22843 cat >conftest.$ac_ext <<_ACEOF
22844 /* confdefs.h. */
22845 _ACEOF
22846 cat confdefs.h >>conftest.$ac_ext
22847 cat >>conftest.$ac_ext <<_ACEOF
22848 /* end confdefs.h. */
22849 #include <$ac_header>
22850 _ACEOF
22851 if { (ac_try="$ac_cpp conftest.$ac_ext"
22852 case "(($ac_try" in
22853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22854 *) ac_try_echo=$ac_try;;
22855 esac
22856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22857 $as_echo "$ac_try_echo") >&5
22858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22859 ac_status=$?
22860 grep -v '^ *+' conftest.er1 >conftest.err
22861 rm -f conftest.er1
22862 cat conftest.err >&5
22863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22864 (exit $ac_status); } >/dev/null && {
22865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22866 test ! -s conftest.err
22867 }; then
22868 ac_header_preproc=yes
22869 else
22870 $as_echo "$as_me: failed program was:" >&5
22871 sed 's/^/| /' conftest.$ac_ext >&5
22872
22873 ac_header_preproc=no
22874 fi
22875
22876 rm -f conftest.err conftest.$ac_ext
22877 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22878 $as_echo "$ac_header_preproc" >&6; }
22879
22880 # So? What about this header?
22881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22882 yes:no: )
22883 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22884 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22885 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22886 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22887 ac_header_preproc=yes
22888 ;;
22889 no:yes:* )
22890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22891 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22892 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22893 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22895 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22897 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22899 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22901 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22902
22903 ;;
22904 esac
22905 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22906 $as_echo_n "checking for $ac_header... " >&6; }
22907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22908 $as_echo_n "(cached) " >&6
22909 else
22910 eval "$as_ac_Header=\$ac_header_preproc"
22911 fi
22912 ac_res=`eval 'as_val=${'$as_ac_Header'}
22913 $as_echo "$as_val"'`
22914 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22915 $as_echo "$ac_res" >&6; }
22916
22917 fi
22918 if test `eval 'as_val=${'$as_ac_Header'}
22919 $as_echo "$as_val"'` = yes; then
12398 cat >>confdefs.h <<_ACEOF 22920 cat >>confdefs.h <<_ACEOF
12399 #define HAVE_DES_H 1 22921 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12400 _ACEOF 22922 _ACEOF
12401 22923
12402 else 22924 else
12403 for ac_header in kerberosIV/des.h 22925
12404 do : 22926 for ac_header in kerberosIV/des.h
12405 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default" 22927 do
12406 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then : 22928 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22930 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22931 $as_echo_n "checking for $ac_header... " >&6; }
22932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22933 $as_echo_n "(cached) " >&6
22934 fi
22935 ac_res=`eval 'as_val=${'$as_ac_Header'}
22936 $as_echo "$as_val"'`
22937 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22938 $as_echo "$ac_res" >&6; }
22939 else
22940 # Is the header compilable?
22941 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22942 $as_echo_n "checking $ac_header usability... " >&6; }
22943 cat >conftest.$ac_ext <<_ACEOF
22944 /* confdefs.h. */
22945 _ACEOF
22946 cat confdefs.h >>conftest.$ac_ext
22947 cat >>conftest.$ac_ext <<_ACEOF
22948 /* end confdefs.h. */
22949 $ac_includes_default
22950 #include <$ac_header>
22951 _ACEOF
22952 rm -f conftest.$ac_objext
22953 if { (ac_try="$ac_compile"
22954 case "(($ac_try" in
22955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22956 *) ac_try_echo=$ac_try;;
22957 esac
22958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22959 $as_echo "$ac_try_echo") >&5
22960 (eval "$ac_compile") 2>conftest.er1
22961 ac_status=$?
22962 grep -v '^ *+' conftest.er1 >conftest.err
22963 rm -f conftest.er1
22964 cat conftest.err >&5
22965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22966 (exit $ac_status); } && {
22967 test -z "$ac_c_werror_flag" ||
22968 test ! -s conftest.err
22969 } && test -s conftest.$ac_objext; then
22970 ac_header_compiler=yes
22971 else
22972 $as_echo "$as_me: failed program was:" >&5
22973 sed 's/^/| /' conftest.$ac_ext >&5
22974
22975 ac_header_compiler=no
22976 fi
22977
22978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22979 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22980 $as_echo "$ac_header_compiler" >&6; }
22981
22982 # Is the header present?
22983 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22984 $as_echo_n "checking $ac_header presence... " >&6; }
22985 cat >conftest.$ac_ext <<_ACEOF
22986 /* confdefs.h. */
22987 _ACEOF
22988 cat confdefs.h >>conftest.$ac_ext
22989 cat >>conftest.$ac_ext <<_ACEOF
22990 /* end confdefs.h. */
22991 #include <$ac_header>
22992 _ACEOF
22993 if { (ac_try="$ac_cpp conftest.$ac_ext"
22994 case "(($ac_try" in
22995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22996 *) ac_try_echo=$ac_try;;
22997 esac
22998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22999 $as_echo "$ac_try_echo") >&5
23000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23001 ac_status=$?
23002 grep -v '^ *+' conftest.er1 >conftest.err
23003 rm -f conftest.er1
23004 cat conftest.err >&5
23005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006 (exit $ac_status); } >/dev/null && {
23007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23008 test ! -s conftest.err
23009 }; then
23010 ac_header_preproc=yes
23011 else
23012 $as_echo "$as_me: failed program was:" >&5
23013 sed 's/^/| /' conftest.$ac_ext >&5
23014
23015 ac_header_preproc=no
23016 fi
23017
23018 rm -f conftest.err conftest.$ac_ext
23019 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23020 $as_echo "$ac_header_preproc" >&6; }
23021
23022 # So? What about this header?
23023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23024 yes:no: )
23025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23026 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23028 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23029 ac_header_preproc=yes
23030 ;;
23031 no:yes:* )
23032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23033 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23035 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23037 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23039 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23040 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23041 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23042 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23043 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23044
23045 ;;
23046 esac
23047 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23048 $as_echo_n "checking for $ac_header... " >&6; }
23049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23050 $as_echo_n "(cached) " >&6
23051 else
23052 eval "$as_ac_Header=\$ac_header_preproc"
23053 fi
23054 ac_res=`eval 'as_val=${'$as_ac_Header'}
23055 $as_echo "$as_val"'`
23056 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23057 $as_echo "$ac_res" >&6; }
23058
23059 fi
23060 if test `eval 'as_val=${'$as_ac_Header'}
23061 $as_echo "$as_val"'` = yes; then
12407 cat >>confdefs.h <<_ACEOF 23062 cat >>confdefs.h <<_ACEOF
12408 #define HAVE_KERBEROSIV_DES_H 1 23063 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12409 _ACEOF 23064 _ACEOF
12410 23065
12411 else 23066 else
12412 for ac_header in kerberos/des.h 23067
12413 do : 23068 for ac_header in kerberos/des.h
12414 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default" 23069 do
12415 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then : 23070 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23072 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23073 $as_echo_n "checking for $ac_header... " >&6; }
23074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23075 $as_echo_n "(cached) " >&6
23076 fi
23077 ac_res=`eval 'as_val=${'$as_ac_Header'}
23078 $as_echo "$as_val"'`
23079 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23080 $as_echo "$ac_res" >&6; }
23081 else
23082 # Is the header compilable?
23083 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23084 $as_echo_n "checking $ac_header usability... " >&6; }
23085 cat >conftest.$ac_ext <<_ACEOF
23086 /* confdefs.h. */
23087 _ACEOF
23088 cat confdefs.h >>conftest.$ac_ext
23089 cat >>conftest.$ac_ext <<_ACEOF
23090 /* end confdefs.h. */
23091 $ac_includes_default
23092 #include <$ac_header>
23093 _ACEOF
23094 rm -f conftest.$ac_objext
23095 if { (ac_try="$ac_compile"
23096 case "(($ac_try" in
23097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23098 *) ac_try_echo=$ac_try;;
23099 esac
23100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23101 $as_echo "$ac_try_echo") >&5
23102 (eval "$ac_compile") 2>conftest.er1
23103 ac_status=$?
23104 grep -v '^ *+' conftest.er1 >conftest.err
23105 rm -f conftest.er1
23106 cat conftest.err >&5
23107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108 (exit $ac_status); } && {
23109 test -z "$ac_c_werror_flag" ||
23110 test ! -s conftest.err
23111 } && test -s conftest.$ac_objext; then
23112 ac_header_compiler=yes
23113 else
23114 $as_echo "$as_me: failed program was:" >&5
23115 sed 's/^/| /' conftest.$ac_ext >&5
23116
23117 ac_header_compiler=no
23118 fi
23119
23120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23121 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23122 $as_echo "$ac_header_compiler" >&6; }
23123
23124 # Is the header present?
23125 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23126 $as_echo_n "checking $ac_header presence... " >&6; }
23127 cat >conftest.$ac_ext <<_ACEOF
23128 /* confdefs.h. */
23129 _ACEOF
23130 cat confdefs.h >>conftest.$ac_ext
23131 cat >>conftest.$ac_ext <<_ACEOF
23132 /* end confdefs.h. */
23133 #include <$ac_header>
23134 _ACEOF
23135 if { (ac_try="$ac_cpp conftest.$ac_ext"
23136 case "(($ac_try" in
23137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23138 *) ac_try_echo=$ac_try;;
23139 esac
23140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23141 $as_echo "$ac_try_echo") >&5
23142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23143 ac_status=$?
23144 grep -v '^ *+' conftest.er1 >conftest.err
23145 rm -f conftest.er1
23146 cat conftest.err >&5
23147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148 (exit $ac_status); } >/dev/null && {
23149 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23150 test ! -s conftest.err
23151 }; then
23152 ac_header_preproc=yes
23153 else
23154 $as_echo "$as_me: failed program was:" >&5
23155 sed 's/^/| /' conftest.$ac_ext >&5
23156
23157 ac_header_preproc=no
23158 fi
23159
23160 rm -f conftest.err conftest.$ac_ext
23161 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23162 $as_echo "$ac_header_preproc" >&6; }
23163
23164 # So? What about this header?
23165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23166 yes:no: )
23167 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23168 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23169 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23170 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23171 ac_header_preproc=yes
23172 ;;
23173 no:yes:* )
23174 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23175 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23176 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23177 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23178 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23179 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23180 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23181 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23182 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23183 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23184 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23185 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23186
23187 ;;
23188 esac
23189 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23190 $as_echo_n "checking for $ac_header... " >&6; }
23191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23192 $as_echo_n "(cached) " >&6
23193 else
23194 eval "$as_ac_Header=\$ac_header_preproc"
23195 fi
23196 ac_res=`eval 'as_val=${'$as_ac_Header'}
23197 $as_echo "$as_val"'`
23198 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23199 $as_echo "$ac_res" >&6; }
23200
23201 fi
23202 if test `eval 'as_val=${'$as_ac_Header'}
23203 $as_echo "$as_val"'` = yes; then
12416 cat >>confdefs.h <<_ACEOF 23204 cat >>confdefs.h <<_ACEOF
12417 #define HAVE_KERBEROS_DES_H 1 23205 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12418 _ACEOF 23206 _ACEOF
12419 23207
12420 fi 23208 fi
12421 23209
12422 done 23210 done
12427 23215
12428 fi 23216 fi
12429 23217
12430 done 23218 done
12431 23219
12432 for ac_header in krb.h 23220
12433 do : 23221 for ac_header in krb.h
12434 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default" 23222 do
12435 if test "x$ac_cv_header_krb_h" = x""yes; then : 23223 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23225 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23226 $as_echo_n "checking for $ac_header... " >&6; }
23227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23228 $as_echo_n "(cached) " >&6
23229 fi
23230 ac_res=`eval 'as_val=${'$as_ac_Header'}
23231 $as_echo "$as_val"'`
23232 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23233 $as_echo "$ac_res" >&6; }
23234 else
23235 # Is the header compilable?
23236 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23237 $as_echo_n "checking $ac_header usability... " >&6; }
23238 cat >conftest.$ac_ext <<_ACEOF
23239 /* confdefs.h. */
23240 _ACEOF
23241 cat confdefs.h >>conftest.$ac_ext
23242 cat >>conftest.$ac_ext <<_ACEOF
23243 /* end confdefs.h. */
23244 $ac_includes_default
23245 #include <$ac_header>
23246 _ACEOF
23247 rm -f conftest.$ac_objext
23248 if { (ac_try="$ac_compile"
23249 case "(($ac_try" in
23250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23251 *) ac_try_echo=$ac_try;;
23252 esac
23253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23254 $as_echo "$ac_try_echo") >&5
23255 (eval "$ac_compile") 2>conftest.er1
23256 ac_status=$?
23257 grep -v '^ *+' conftest.er1 >conftest.err
23258 rm -f conftest.er1
23259 cat conftest.err >&5
23260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23261 (exit $ac_status); } && {
23262 test -z "$ac_c_werror_flag" ||
23263 test ! -s conftest.err
23264 } && test -s conftest.$ac_objext; then
23265 ac_header_compiler=yes
23266 else
23267 $as_echo "$as_me: failed program was:" >&5
23268 sed 's/^/| /' conftest.$ac_ext >&5
23269
23270 ac_header_compiler=no
23271 fi
23272
23273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23274 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23275 $as_echo "$ac_header_compiler" >&6; }
23276
23277 # Is the header present?
23278 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23279 $as_echo_n "checking $ac_header presence... " >&6; }
23280 cat >conftest.$ac_ext <<_ACEOF
23281 /* confdefs.h. */
23282 _ACEOF
23283 cat confdefs.h >>conftest.$ac_ext
23284 cat >>conftest.$ac_ext <<_ACEOF
23285 /* end confdefs.h. */
23286 #include <$ac_header>
23287 _ACEOF
23288 if { (ac_try="$ac_cpp conftest.$ac_ext"
23289 case "(($ac_try" in
23290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23291 *) ac_try_echo=$ac_try;;
23292 esac
23293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23294 $as_echo "$ac_try_echo") >&5
23295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23296 ac_status=$?
23297 grep -v '^ *+' conftest.er1 >conftest.err
23298 rm -f conftest.er1
23299 cat conftest.err >&5
23300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301 (exit $ac_status); } >/dev/null && {
23302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23303 test ! -s conftest.err
23304 }; then
23305 ac_header_preproc=yes
23306 else
23307 $as_echo "$as_me: failed program was:" >&5
23308 sed 's/^/| /' conftest.$ac_ext >&5
23309
23310 ac_header_preproc=no
23311 fi
23312
23313 rm -f conftest.err conftest.$ac_ext
23314 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23315 $as_echo "$ac_header_preproc" >&6; }
23316
23317 # So? What about this header?
23318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23319 yes:no: )
23320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23321 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23323 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23324 ac_header_preproc=yes
23325 ;;
23326 no:yes:* )
23327 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23328 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23330 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23332 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23334 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23336 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23338 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23339
23340 ;;
23341 esac
23342 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23343 $as_echo_n "checking for $ac_header... " >&6; }
23344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23345 $as_echo_n "(cached) " >&6
23346 else
23347 eval "$as_ac_Header=\$ac_header_preproc"
23348 fi
23349 ac_res=`eval 'as_val=${'$as_ac_Header'}
23350 $as_echo "$as_val"'`
23351 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23352 $as_echo "$ac_res" >&6; }
23353
23354 fi
23355 if test `eval 'as_val=${'$as_ac_Header'}
23356 $as_echo "$as_val"'` = yes; then
12436 cat >>confdefs.h <<_ACEOF 23357 cat >>confdefs.h <<_ACEOF
12437 #define HAVE_KRB_H 1 23358 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12438 _ACEOF 23359 _ACEOF
12439 23360
12440 else 23361 else
12441 for ac_header in kerberosIV/krb.h 23362
12442 do : 23363 for ac_header in kerberosIV/krb.h
12443 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default" 23364 do
12444 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then : 23365 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23367 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23368 $as_echo_n "checking for $ac_header... " >&6; }
23369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23370 $as_echo_n "(cached) " >&6
23371 fi
23372 ac_res=`eval 'as_val=${'$as_ac_Header'}
23373 $as_echo "$as_val"'`
23374 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23375 $as_echo "$ac_res" >&6; }
23376 else
23377 # Is the header compilable?
23378 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23379 $as_echo_n "checking $ac_header usability... " >&6; }
23380 cat >conftest.$ac_ext <<_ACEOF
23381 /* confdefs.h. */
23382 _ACEOF
23383 cat confdefs.h >>conftest.$ac_ext
23384 cat >>conftest.$ac_ext <<_ACEOF
23385 /* end confdefs.h. */
23386 $ac_includes_default
23387 #include <$ac_header>
23388 _ACEOF
23389 rm -f conftest.$ac_objext
23390 if { (ac_try="$ac_compile"
23391 case "(($ac_try" in
23392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23393 *) ac_try_echo=$ac_try;;
23394 esac
23395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23396 $as_echo "$ac_try_echo") >&5
23397 (eval "$ac_compile") 2>conftest.er1
23398 ac_status=$?
23399 grep -v '^ *+' conftest.er1 >conftest.err
23400 rm -f conftest.er1
23401 cat conftest.err >&5
23402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403 (exit $ac_status); } && {
23404 test -z "$ac_c_werror_flag" ||
23405 test ! -s conftest.err
23406 } && test -s conftest.$ac_objext; then
23407 ac_header_compiler=yes
23408 else
23409 $as_echo "$as_me: failed program was:" >&5
23410 sed 's/^/| /' conftest.$ac_ext >&5
23411
23412 ac_header_compiler=no
23413 fi
23414
23415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23416 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23417 $as_echo "$ac_header_compiler" >&6; }
23418
23419 # Is the header present?
23420 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23421 $as_echo_n "checking $ac_header presence... " >&6; }
23422 cat >conftest.$ac_ext <<_ACEOF
23423 /* confdefs.h. */
23424 _ACEOF
23425 cat confdefs.h >>conftest.$ac_ext
23426 cat >>conftest.$ac_ext <<_ACEOF
23427 /* end confdefs.h. */
23428 #include <$ac_header>
23429 _ACEOF
23430 if { (ac_try="$ac_cpp conftest.$ac_ext"
23431 case "(($ac_try" in
23432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23433 *) ac_try_echo=$ac_try;;
23434 esac
23435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23436 $as_echo "$ac_try_echo") >&5
23437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23438 ac_status=$?
23439 grep -v '^ *+' conftest.er1 >conftest.err
23440 rm -f conftest.er1
23441 cat conftest.err >&5
23442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443 (exit $ac_status); } >/dev/null && {
23444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23445 test ! -s conftest.err
23446 }; then
23447 ac_header_preproc=yes
23448 else
23449 $as_echo "$as_me: failed program was:" >&5
23450 sed 's/^/| /' conftest.$ac_ext >&5
23451
23452 ac_header_preproc=no
23453 fi
23454
23455 rm -f conftest.err conftest.$ac_ext
23456 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23457 $as_echo "$ac_header_preproc" >&6; }
23458
23459 # So? What about this header?
23460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23461 yes:no: )
23462 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23463 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23464 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23465 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23466 ac_header_preproc=yes
23467 ;;
23468 no:yes:* )
23469 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23470 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23471 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23472 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23473 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23474 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23475 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23476 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23477 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23478 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23479 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23480 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23481
23482 ;;
23483 esac
23484 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23485 $as_echo_n "checking for $ac_header... " >&6; }
23486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23487 $as_echo_n "(cached) " >&6
23488 else
23489 eval "$as_ac_Header=\$ac_header_preproc"
23490 fi
23491 ac_res=`eval 'as_val=${'$as_ac_Header'}
23492 $as_echo "$as_val"'`
23493 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23494 $as_echo "$ac_res" >&6; }
23495
23496 fi
23497 if test `eval 'as_val=${'$as_ac_Header'}
23498 $as_echo "$as_val"'` = yes; then
12445 cat >>confdefs.h <<_ACEOF 23499 cat >>confdefs.h <<_ACEOF
12446 #define HAVE_KERBEROSIV_KRB_H 1 23500 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12447 _ACEOF 23501 _ACEOF
12448 23502
12449 else 23503 else
12450 for ac_header in kerberos/krb.h 23504
12451 do : 23505 for ac_header in kerberos/krb.h
12452 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default" 23506 do
12453 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then : 23507 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23509 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23510 $as_echo_n "checking for $ac_header... " >&6; }
23511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23512 $as_echo_n "(cached) " >&6
23513 fi
23514 ac_res=`eval 'as_val=${'$as_ac_Header'}
23515 $as_echo "$as_val"'`
23516 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23517 $as_echo "$ac_res" >&6; }
23518 else
23519 # Is the header compilable?
23520 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23521 $as_echo_n "checking $ac_header usability... " >&6; }
23522 cat >conftest.$ac_ext <<_ACEOF
23523 /* confdefs.h. */
23524 _ACEOF
23525 cat confdefs.h >>conftest.$ac_ext
23526 cat >>conftest.$ac_ext <<_ACEOF
23527 /* end confdefs.h. */
23528 $ac_includes_default
23529 #include <$ac_header>
23530 _ACEOF
23531 rm -f conftest.$ac_objext
23532 if { (ac_try="$ac_compile"
23533 case "(($ac_try" in
23534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23535 *) ac_try_echo=$ac_try;;
23536 esac
23537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23538 $as_echo "$ac_try_echo") >&5
23539 (eval "$ac_compile") 2>conftest.er1
23540 ac_status=$?
23541 grep -v '^ *+' conftest.er1 >conftest.err
23542 rm -f conftest.er1
23543 cat conftest.err >&5
23544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23545 (exit $ac_status); } && {
23546 test -z "$ac_c_werror_flag" ||
23547 test ! -s conftest.err
23548 } && test -s conftest.$ac_objext; then
23549 ac_header_compiler=yes
23550 else
23551 $as_echo "$as_me: failed program was:" >&5
23552 sed 's/^/| /' conftest.$ac_ext >&5
23553
23554 ac_header_compiler=no
23555 fi
23556
23557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23558 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23559 $as_echo "$ac_header_compiler" >&6; }
23560
23561 # Is the header present?
23562 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23563 $as_echo_n "checking $ac_header presence... " >&6; }
23564 cat >conftest.$ac_ext <<_ACEOF
23565 /* confdefs.h. */
23566 _ACEOF
23567 cat confdefs.h >>conftest.$ac_ext
23568 cat >>conftest.$ac_ext <<_ACEOF
23569 /* end confdefs.h. */
23570 #include <$ac_header>
23571 _ACEOF
23572 if { (ac_try="$ac_cpp conftest.$ac_ext"
23573 case "(($ac_try" in
23574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23575 *) ac_try_echo=$ac_try;;
23576 esac
23577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23578 $as_echo "$ac_try_echo") >&5
23579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23580 ac_status=$?
23581 grep -v '^ *+' conftest.er1 >conftest.err
23582 rm -f conftest.er1
23583 cat conftest.err >&5
23584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); } >/dev/null && {
23586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23587 test ! -s conftest.err
23588 }; then
23589 ac_header_preproc=yes
23590 else
23591 $as_echo "$as_me: failed program was:" >&5
23592 sed 's/^/| /' conftest.$ac_ext >&5
23593
23594 ac_header_preproc=no
23595 fi
23596
23597 rm -f conftest.err conftest.$ac_ext
23598 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23599 $as_echo "$ac_header_preproc" >&6; }
23600
23601 # So? What about this header?
23602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23603 yes:no: )
23604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23605 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23607 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23608 ac_header_preproc=yes
23609 ;;
23610 no:yes:* )
23611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23612 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23614 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23616 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23618 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23620 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23622 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23623
23624 ;;
23625 esac
23626 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23627 $as_echo_n "checking for $ac_header... " >&6; }
23628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23629 $as_echo_n "(cached) " >&6
23630 else
23631 eval "$as_ac_Header=\$ac_header_preproc"
23632 fi
23633 ac_res=`eval 'as_val=${'$as_ac_Header'}
23634 $as_echo "$as_val"'`
23635 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23636 $as_echo "$ac_res" >&6; }
23637
23638 fi
23639 if test `eval 'as_val=${'$as_ac_Header'}
23640 $as_echo "$as_val"'` = yes; then
12454 cat >>confdefs.h <<_ACEOF 23641 cat >>confdefs.h <<_ACEOF
12455 #define HAVE_KERBEROS_KRB_H 1 23642 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12456 _ACEOF 23643 _ACEOF
12457 23644
12458 fi 23645 fi
12459 23646
12460 done 23647 done
12466 fi 23653 fi
12467 23654
12468 done 23655 done
12469 23656
12470 fi 23657 fi
12471 for ac_header in com_err.h 23658
12472 do : 23659 for ac_header in com_err.h
12473 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default" 23660 do
12474 if test "x$ac_cv_header_com_err_h" = x""yes; then : 23661 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23663 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23664 $as_echo_n "checking for $ac_header... " >&6; }
23665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23666 $as_echo_n "(cached) " >&6
23667 fi
23668 ac_res=`eval 'as_val=${'$as_ac_Header'}
23669 $as_echo "$as_val"'`
23670 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23671 $as_echo "$ac_res" >&6; }
23672 else
23673 # Is the header compilable?
23674 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23675 $as_echo_n "checking $ac_header usability... " >&6; }
23676 cat >conftest.$ac_ext <<_ACEOF
23677 /* confdefs.h. */
23678 _ACEOF
23679 cat confdefs.h >>conftest.$ac_ext
23680 cat >>conftest.$ac_ext <<_ACEOF
23681 /* end confdefs.h. */
23682 $ac_includes_default
23683 #include <$ac_header>
23684 _ACEOF
23685 rm -f conftest.$ac_objext
23686 if { (ac_try="$ac_compile"
23687 case "(($ac_try" in
23688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23689 *) ac_try_echo=$ac_try;;
23690 esac
23691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23692 $as_echo "$ac_try_echo") >&5
23693 (eval "$ac_compile") 2>conftest.er1
23694 ac_status=$?
23695 grep -v '^ *+' conftest.er1 >conftest.err
23696 rm -f conftest.er1
23697 cat conftest.err >&5
23698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699 (exit $ac_status); } && {
23700 test -z "$ac_c_werror_flag" ||
23701 test ! -s conftest.err
23702 } && test -s conftest.$ac_objext; then
23703 ac_header_compiler=yes
23704 else
23705 $as_echo "$as_me: failed program was:" >&5
23706 sed 's/^/| /' conftest.$ac_ext >&5
23707
23708 ac_header_compiler=no
23709 fi
23710
23711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23712 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23713 $as_echo "$ac_header_compiler" >&6; }
23714
23715 # Is the header present?
23716 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23717 $as_echo_n "checking $ac_header presence... " >&6; }
23718 cat >conftest.$ac_ext <<_ACEOF
23719 /* confdefs.h. */
23720 _ACEOF
23721 cat confdefs.h >>conftest.$ac_ext
23722 cat >>conftest.$ac_ext <<_ACEOF
23723 /* end confdefs.h. */
23724 #include <$ac_header>
23725 _ACEOF
23726 if { (ac_try="$ac_cpp conftest.$ac_ext"
23727 case "(($ac_try" in
23728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23729 *) ac_try_echo=$ac_try;;
23730 esac
23731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23732 $as_echo "$ac_try_echo") >&5
23733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23734 ac_status=$?
23735 grep -v '^ *+' conftest.er1 >conftest.err
23736 rm -f conftest.er1
23737 cat conftest.err >&5
23738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); } >/dev/null && {
23740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23741 test ! -s conftest.err
23742 }; then
23743 ac_header_preproc=yes
23744 else
23745 $as_echo "$as_me: failed program was:" >&5
23746 sed 's/^/| /' conftest.$ac_ext >&5
23747
23748 ac_header_preproc=no
23749 fi
23750
23751 rm -f conftest.err conftest.$ac_ext
23752 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23753 $as_echo "$ac_header_preproc" >&6; }
23754
23755 # So? What about this header?
23756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23757 yes:no: )
23758 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23759 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23760 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23761 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23762 ac_header_preproc=yes
23763 ;;
23764 no:yes:* )
23765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23766 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23768 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23770 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23772 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23774 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23776 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23777
23778 ;;
23779 esac
23780 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23781 $as_echo_n "checking for $ac_header... " >&6; }
23782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23783 $as_echo_n "(cached) " >&6
23784 else
23785 eval "$as_ac_Header=\$ac_header_preproc"
23786 fi
23787 ac_res=`eval 'as_val=${'$as_ac_Header'}
23788 $as_echo "$as_val"'`
23789 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23790 $as_echo "$ac_res" >&6; }
23791
23792 fi
23793 if test `eval 'as_val=${'$as_ac_Header'}
23794 $as_echo "$as_val"'` = yes; then
12475 cat >>confdefs.h <<_ACEOF 23795 cat >>confdefs.h <<_ACEOF
12476 #define HAVE_COM_ERR_H 1 23796 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12477 _ACEOF 23797 _ACEOF
12478 23798
12479 fi 23799 fi
12480 23800
12481 done 23801 done
12482 23802
12483 fi 23803 fi
23804
23805
23806
23807
23808
23809
12484 23810
12485 # Solaris requires -lintl if you want strerror (which calls dgettext) 23811 # Solaris requires -lintl if you want strerror (which calls dgettext)
12486 # to return localized messages. 23812 # to return localized messages.
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5 23813
23814 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
12488 $as_echo_n "checking for dgettext in -lintl... " >&6; } 23815 $as_echo_n "checking for dgettext in -lintl... " >&6; }
12489 if test "${ac_cv_lib_intl_dgettext+set}" = set; then : 23816 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
12490 $as_echo_n "(cached) " >&6 23817 $as_echo_n "(cached) " >&6
12491 else 23818 else
12492 ac_check_lib_save_LIBS=$LIBS 23819 ac_check_lib_save_LIBS=$LIBS
12493 LIBS="-lintl $LIBS" 23820 LIBS="-lintl $LIBS"
12494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23821 cat >conftest.$ac_ext <<_ACEOF
23822 /* confdefs.h. */
23823 _ACEOF
23824 cat confdefs.h >>conftest.$ac_ext
23825 cat >>conftest.$ac_ext <<_ACEOF
12495 /* end confdefs.h. */ 23826 /* end confdefs.h. */
12496 23827
12497 /* Override any GCC internal prototype to avoid an error. 23828 /* Override any GCC internal prototype to avoid an error.
12498 Use char because int might match the return type of a GCC 23829 Use char because int might match the return type of a GCC
12499 builtin and then its argument prototype would still apply. */ 23830 builtin and then its argument prototype would still apply. */
12507 return dgettext (); 23838 return dgettext ();
12508 ; 23839 ;
12509 return 0; 23840 return 0;
12510 } 23841 }
12511 _ACEOF 23842 _ACEOF
12512 if ac_fn_c_try_link "$LINENO"; then : 23843 rm -f conftest.$ac_objext conftest$ac_exeext
23844 if { (ac_try="$ac_link"
23845 case "(($ac_try" in
23846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23847 *) ac_try_echo=$ac_try;;
23848 esac
23849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23850 $as_echo "$ac_try_echo") >&5
23851 (eval "$ac_link") 2>conftest.er1
23852 ac_status=$?
23853 grep -v '^ *+' conftest.er1 >conftest.err
23854 rm -f conftest.er1
23855 cat conftest.err >&5
23856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857 (exit $ac_status); } && {
23858 test -z "$ac_c_werror_flag" ||
23859 test ! -s conftest.err
23860 } && test -s conftest$ac_exeext && {
23861 test "$cross_compiling" = yes ||
23862 $as_test_x conftest$ac_exeext
23863 }; then
12513 ac_cv_lib_intl_dgettext=yes 23864 ac_cv_lib_intl_dgettext=yes
12514 else 23865 else
12515 ac_cv_lib_intl_dgettext=no 23866 $as_echo "$as_me: failed program was:" >&5
12516 fi 23867 sed 's/^/| /' conftest.$ac_ext >&5
12517 rm -f core conftest.err conftest.$ac_objext \ 23868
12518 conftest$ac_exeext conftest.$ac_ext 23869 ac_cv_lib_intl_dgettext=no
23870 fi
23871
23872 rm -rf conftest.dSYM
23873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23874 conftest$ac_exeext conftest.$ac_ext
12519 LIBS=$ac_check_lib_save_LIBS 23875 LIBS=$ac_check_lib_save_LIBS
12520 fi 23876 fi
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5 23877 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
12522 $as_echo "$ac_cv_lib_intl_dgettext" >&6; } 23878 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
12523 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then : 23879 if test $ac_cv_lib_intl_dgettext = yes; then
12524 cat >>confdefs.h <<_ACEOF 23880 cat >>confdefs.h <<_ACEOF
12525 #define HAVE_LIBINTL 1 23881 #define HAVE_LIBINTL 1
12526 _ACEOF 23882 _ACEOF
12527 23883
12528 LIBS="-lintl $LIBS" 23884 LIBS="-lintl $LIBS"
12529 23885
12530 fi 23886 fi
12531 23887
12532 23888
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5 23889 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
12534 $as_echo_n "checking whether localtime caches TZ... " >&6; } 23890 $as_echo_n "checking whether localtime caches TZ... " >&6; }
12535 if test "${emacs_cv_localtime_cache+set}" = set; then : 23891 if test "${emacs_cv_localtime_cache+set}" = set; then
12536 $as_echo_n "(cached) " >&6 23892 $as_echo_n "(cached) " >&6
12537 else 23893 else
12538 if test x$ac_cv_func_tzset = xyes; then 23894 if test x$ac_cv_func_tzset = xyes; then
12539 if test "$cross_compiling" = yes; then : 23895 if test "$cross_compiling" = yes; then
12540 # If we have tzset, assume the worst when cross-compiling. 23896 # If we have tzset, assume the worst when cross-compiling.
12541 emacs_cv_localtime_cache=yes 23897 emacs_cv_localtime_cache=yes
12542 else 23898 else
12543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23899 cat >conftest.$ac_ext <<_ACEOF
23900 /* confdefs.h. */
23901 _ACEOF
23902 cat confdefs.h >>conftest.$ac_ext
23903 cat >>conftest.$ac_ext <<_ACEOF
12544 /* end confdefs.h. */ 23904 /* end confdefs.h. */
12545 #include <time.h> 23905 #include <time.h>
12546 extern char **environ; 23906 extern char **environ;
12547 unset_TZ () 23907 unset_TZ ()
12548 { 23908 {
12570 if (localtime (&now)->tm_hour != hour_unset) 23930 if (localtime (&now)->tm_hour != hour_unset)
12571 exit (1); 23931 exit (1);
12572 exit (0); 23932 exit (0);
12573 } 23933 }
12574 _ACEOF 23934 _ACEOF
12575 if ac_fn_c_try_run "$LINENO"; then : 23935 rm -f conftest$ac_exeext
23936 if { (ac_try="$ac_link"
23937 case "(($ac_try" in
23938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23939 *) ac_try_echo=$ac_try;;
23940 esac
23941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23942 $as_echo "$ac_try_echo") >&5
23943 (eval "$ac_link") 2>&5
23944 ac_status=$?
23945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23947 { (case "(($ac_try" in
23948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23949 *) ac_try_echo=$ac_try;;
23950 esac
23951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23952 $as_echo "$ac_try_echo") >&5
23953 (eval "$ac_try") 2>&5
23954 ac_status=$?
23955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23956 (exit $ac_status); }; }; then
12576 emacs_cv_localtime_cache=no 23957 emacs_cv_localtime_cache=no
12577 else 23958 else
12578 emacs_cv_localtime_cache=yes 23959 $as_echo "$as_me: program exited with status $ac_status" >&5
12579 fi 23960 $as_echo "$as_me: failed program was:" >&5
12580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23961 sed 's/^/| /' conftest.$ac_ext >&5
12581 conftest.$ac_objext conftest.beam conftest.$ac_ext 23962
12582 fi 23963 ( exit $ac_status )
23964 emacs_cv_localtime_cache=yes
23965 fi
23966 rm -rf conftest.dSYM
23967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23968 fi
23969
12583 23970
12584 else 23971 else
12585 # If we lack tzset, report that localtime does not cache TZ, 23972 # If we lack tzset, report that localtime does not cache TZ,
12586 # since we can't invalidate the cache if we don't have tzset. 23973 # since we can't invalidate the cache if we don't have tzset.
12587 emacs_cv_localtime_cache=no 23974 emacs_cv_localtime_cache=no
12588 fi 23975 fi
12589 fi 23976 fi
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5 23977 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
12591 $as_echo "$emacs_cv_localtime_cache" >&6; } 23978 $as_echo "$emacs_cv_localtime_cache" >&6; }
12592 if test $emacs_cv_localtime_cache = yes; then 23979 if test $emacs_cv_localtime_cache = yes; then
12593 23980
12594 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h 23981 cat >>confdefs.h <<\_ACEOF
23982 #define LOCALTIME_CACHE 1
23983 _ACEOF
12595 23984
12596 fi 23985 fi
12597 23986
12598 if test "x$HAVE_TIMEVAL" = xyes; then 23987 if test "x$HAVE_TIMEVAL" = xyes; then
12599 for ac_func in gettimeofday 23988
12600 do : 23989 for ac_func in gettimeofday
12601 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 23990 do
12602 if test "x$ac_cv_func_gettimeofday" = x""yes; then : 23991 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23992 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23993 $as_echo_n "checking for $ac_func... " >&6; }
23994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23995 $as_echo_n "(cached) " >&6
23996 else
23997 cat >conftest.$ac_ext <<_ACEOF
23998 /* confdefs.h. */
23999 _ACEOF
24000 cat confdefs.h >>conftest.$ac_ext
24001 cat >>conftest.$ac_ext <<_ACEOF
24002 /* end confdefs.h. */
24003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24005 #define $ac_func innocuous_$ac_func
24006
24007 /* System header to define __stub macros and hopefully few prototypes,
24008 which can conflict with char $ac_func (); below.
24009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24010 <limits.h> exists even on freestanding compilers. */
24011
24012 #ifdef __STDC__
24013 # include <limits.h>
24014 #else
24015 # include <assert.h>
24016 #endif
24017
24018 #undef $ac_func
24019
24020 /* Override any GCC internal prototype to avoid an error.
24021 Use char because int might match the return type of a GCC
24022 builtin and then its argument prototype would still apply. */
24023 #ifdef __cplusplus
24024 extern "C"
24025 #endif
24026 char $ac_func ();
24027 /* The GNU C library defines this for functions which it implements
24028 to always fail with ENOSYS. Some functions are actually named
24029 something starting with __ and the normal name is an alias. */
24030 #if defined __stub_$ac_func || defined __stub___$ac_func
24031 choke me
24032 #endif
24033
24034 int
24035 main ()
24036 {
24037 return $ac_func ();
24038 ;
24039 return 0;
24040 }
24041 _ACEOF
24042 rm -f conftest.$ac_objext conftest$ac_exeext
24043 if { (ac_try="$ac_link"
24044 case "(($ac_try" in
24045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24046 *) ac_try_echo=$ac_try;;
24047 esac
24048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24049 $as_echo "$ac_try_echo") >&5
24050 (eval "$ac_link") 2>conftest.er1
24051 ac_status=$?
24052 grep -v '^ *+' conftest.er1 >conftest.err
24053 rm -f conftest.er1
24054 cat conftest.err >&5
24055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24056 (exit $ac_status); } && {
24057 test -z "$ac_c_werror_flag" ||
24058 test ! -s conftest.err
24059 } && test -s conftest$ac_exeext && {
24060 test "$cross_compiling" = yes ||
24061 $as_test_x conftest$ac_exeext
24062 }; then
24063 eval "$as_ac_var=yes"
24064 else
24065 $as_echo "$as_me: failed program was:" >&5
24066 sed 's/^/| /' conftest.$ac_ext >&5
24067
24068 eval "$as_ac_var=no"
24069 fi
24070
24071 rm -rf conftest.dSYM
24072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24073 conftest$ac_exeext conftest.$ac_ext
24074 fi
24075 ac_res=`eval 'as_val=${'$as_ac_var'}
24076 $as_echo "$as_val"'`
24077 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24078 $as_echo "$ac_res" >&6; }
24079 if test `eval 'as_val=${'$as_ac_var'}
24080 $as_echo "$as_val"'` = yes; then
12603 cat >>confdefs.h <<_ACEOF 24081 cat >>confdefs.h <<_ACEOF
12604 #define HAVE_GETTIMEOFDAY 1 24082 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12605 _ACEOF 24083 _ACEOF
12606 24084
12607 fi 24085 fi
12608 done 24086 done
12609 24087
12610 if test $ac_cv_func_gettimeofday = yes; then 24088 if test $ac_cv_func_gettimeofday = yes; then
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5 24089 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
12612 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; } 24090 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
12613 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then : 24091 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
12614 $as_echo_n "(cached) " >&6 24092 $as_echo_n "(cached) " >&6
12615 else 24093 else
12616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24094 cat >conftest.$ac_ext <<_ACEOF
24095 /* confdefs.h. */
24096 _ACEOF
24097 cat confdefs.h >>conftest.$ac_ext
24098 cat >>conftest.$ac_ext <<_ACEOF
12617 /* end confdefs.h. */ 24099 /* end confdefs.h. */
12618 24100
12619 #ifdef TIME_WITH_SYS_TIME 24101 #ifdef TIME_WITH_SYS_TIME
12620 #include <sys/time.h> 24102 #include <sys/time.h>
12621 #include <time.h> 24103 #include <time.h>
12633 gettimeofday (&time, 0); 24115 gettimeofday (&time, 0);
12634 ; 24116 ;
12635 return 0; 24117 return 0;
12636 } 24118 }
12637 _ACEOF 24119 _ACEOF
12638 if ac_fn_c_try_compile "$LINENO"; then : 24120 rm -f conftest.$ac_objext
24121 if { (ac_try="$ac_compile"
24122 case "(($ac_try" in
24123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24124 *) ac_try_echo=$ac_try;;
24125 esac
24126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24127 $as_echo "$ac_try_echo") >&5
24128 (eval "$ac_compile") 2>conftest.er1
24129 ac_status=$?
24130 grep -v '^ *+' conftest.er1 >conftest.err
24131 rm -f conftest.er1
24132 cat conftest.err >&5
24133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24134 (exit $ac_status); } && {
24135 test -z "$ac_c_werror_flag" ||
24136 test ! -s conftest.err
24137 } && test -s conftest.$ac_objext; then
12639 emacs_cv_gettimeofday_two_arguments=yes 24138 emacs_cv_gettimeofday_two_arguments=yes
12640 else 24139 else
12641 emacs_cv_gettimeofday_two_arguments=no 24140 $as_echo "$as_me: failed program was:" >&5
12642 fi 24141 sed 's/^/| /' conftest.$ac_ext >&5
24142
24143 emacs_cv_gettimeofday_two_arguments=no
24144 fi
24145
12643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12644 fi 24147 fi
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5 24148 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
12646 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; } 24149 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
12647 if test $emacs_cv_gettimeofday_two_arguments = no; then 24150 if test $emacs_cv_gettimeofday_two_arguments = no; then
12648 24151
12649 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h 24152 cat >>confdefs.h <<\_ACEOF
24153 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24154 _ACEOF
12650 24155
12651 fi 24156 fi
12652 fi 24157 fi
12653 fi 24158 fi
12654 24159
12655 ok_so_far=yes 24160 ok_so_far=yes
12656 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" 24161 { $as_echo "$as_me:$LINENO: checking for socket" >&5
12657 if test "x$ac_cv_func_socket" = x""yes; then : 24162 $as_echo_n "checking for socket... " >&6; }
12658 24163 if test "${ac_cv_func_socket+set}" = set; then
24164 $as_echo_n "(cached) " >&6
24165 else
24166 cat >conftest.$ac_ext <<_ACEOF
24167 /* confdefs.h. */
24168 _ACEOF
24169 cat confdefs.h >>conftest.$ac_ext
24170 cat >>conftest.$ac_ext <<_ACEOF
24171 /* end confdefs.h. */
24172 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24174 #define socket innocuous_socket
24175
24176 /* System header to define __stub macros and hopefully few prototypes,
24177 which can conflict with char socket (); below.
24178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24179 <limits.h> exists even on freestanding compilers. */
24180
24181 #ifdef __STDC__
24182 # include <limits.h>
24183 #else
24184 # include <assert.h>
24185 #endif
24186
24187 #undef socket
24188
24189 /* Override any GCC internal prototype to avoid an error.
24190 Use char because int might match the return type of a GCC
24191 builtin and then its argument prototype would still apply. */
24192 #ifdef __cplusplus
24193 extern "C"
24194 #endif
24195 char socket ();
24196 /* The GNU C library defines this for functions which it implements
24197 to always fail with ENOSYS. Some functions are actually named
24198 something starting with __ and the normal name is an alias. */
24199 #if defined __stub_socket || defined __stub___socket
24200 choke me
24201 #endif
24202
24203 int
24204 main ()
24205 {
24206 return socket ();
24207 ;
24208 return 0;
24209 }
24210 _ACEOF
24211 rm -f conftest.$ac_objext conftest$ac_exeext
24212 if { (ac_try="$ac_link"
24213 case "(($ac_try" in
24214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24215 *) ac_try_echo=$ac_try;;
24216 esac
24217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24218 $as_echo "$ac_try_echo") >&5
24219 (eval "$ac_link") 2>conftest.er1
24220 ac_status=$?
24221 grep -v '^ *+' conftest.er1 >conftest.err
24222 rm -f conftest.er1
24223 cat conftest.err >&5
24224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24225 (exit $ac_status); } && {
24226 test -z "$ac_c_werror_flag" ||
24227 test ! -s conftest.err
24228 } && test -s conftest$ac_exeext && {
24229 test "$cross_compiling" = yes ||
24230 $as_test_x conftest$ac_exeext
24231 }; then
24232 ac_cv_func_socket=yes
24233 else
24234 $as_echo "$as_me: failed program was:" >&5
24235 sed 's/^/| /' conftest.$ac_ext >&5
24236
24237 ac_cv_func_socket=no
24238 fi
24239
24240 rm -rf conftest.dSYM
24241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24242 conftest$ac_exeext conftest.$ac_ext
24243 fi
24244 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24245 $as_echo "$ac_cv_func_socket" >&6; }
24246 if test $ac_cv_func_socket = yes; then
24247 :
12659 else 24248 else
12660 ok_so_far=no 24249 ok_so_far=no
12661 fi 24250 fi
12662 24251
12663 if test $ok_so_far = yes; then 24252 if test $ok_so_far = yes; then
12664 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" 24253 if test "${ac_cv_header_netinet_in_h+set}" = set; then
12665 if test "x$ac_cv_header_netinet_in_h" = x""yes; then : 24254 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
12666 24255 $as_echo_n "checking for netinet/in.h... " >&6; }
24256 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24257 $as_echo_n "(cached) " >&6
24258 fi
24259 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24260 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24261 else
24262 # Is the header compilable?
24263 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24264 $as_echo_n "checking netinet/in.h usability... " >&6; }
24265 cat >conftest.$ac_ext <<_ACEOF
24266 /* confdefs.h. */
24267 _ACEOF
24268 cat confdefs.h >>conftest.$ac_ext
24269 cat >>conftest.$ac_ext <<_ACEOF
24270 /* end confdefs.h. */
24271 $ac_includes_default
24272 #include <netinet/in.h>
24273 _ACEOF
24274 rm -f conftest.$ac_objext
24275 if { (ac_try="$ac_compile"
24276 case "(($ac_try" in
24277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24278 *) ac_try_echo=$ac_try;;
24279 esac
24280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24281 $as_echo "$ac_try_echo") >&5
24282 (eval "$ac_compile") 2>conftest.er1
24283 ac_status=$?
24284 grep -v '^ *+' conftest.er1 >conftest.err
24285 rm -f conftest.er1
24286 cat conftest.err >&5
24287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24288 (exit $ac_status); } && {
24289 test -z "$ac_c_werror_flag" ||
24290 test ! -s conftest.err
24291 } && test -s conftest.$ac_objext; then
24292 ac_header_compiler=yes
24293 else
24294 $as_echo "$as_me: failed program was:" >&5
24295 sed 's/^/| /' conftest.$ac_ext >&5
24296
24297 ac_header_compiler=no
24298 fi
24299
24300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24301 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24302 $as_echo "$ac_header_compiler" >&6; }
24303
24304 # Is the header present?
24305 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24306 $as_echo_n "checking netinet/in.h presence... " >&6; }
24307 cat >conftest.$ac_ext <<_ACEOF
24308 /* confdefs.h. */
24309 _ACEOF
24310 cat confdefs.h >>conftest.$ac_ext
24311 cat >>conftest.$ac_ext <<_ACEOF
24312 /* end confdefs.h. */
24313 #include <netinet/in.h>
24314 _ACEOF
24315 if { (ac_try="$ac_cpp conftest.$ac_ext"
24316 case "(($ac_try" in
24317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24318 *) ac_try_echo=$ac_try;;
24319 esac
24320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24321 $as_echo "$ac_try_echo") >&5
24322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24323 ac_status=$?
24324 grep -v '^ *+' conftest.er1 >conftest.err
24325 rm -f conftest.er1
24326 cat conftest.err >&5
24327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24328 (exit $ac_status); } >/dev/null && {
24329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24330 test ! -s conftest.err
24331 }; then
24332 ac_header_preproc=yes
24333 else
24334 $as_echo "$as_me: failed program was:" >&5
24335 sed 's/^/| /' conftest.$ac_ext >&5
24336
24337 ac_header_preproc=no
24338 fi
24339
24340 rm -f conftest.err conftest.$ac_ext
24341 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24342 $as_echo "$ac_header_preproc" >&6; }
24343
24344 # So? What about this header?
24345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24346 yes:no: )
24347 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24348 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24349 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24350 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24351 ac_header_preproc=yes
24352 ;;
24353 no:yes:* )
24354 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24355 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24356 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24357 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24358 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24359 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24360 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24361 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24362 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24363 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24364 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24365 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24366
24367 ;;
24368 esac
24369 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24370 $as_echo_n "checking for netinet/in.h... " >&6; }
24371 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24372 $as_echo_n "(cached) " >&6
24373 else
24374 ac_cv_header_netinet_in_h=$ac_header_preproc
24375 fi
24376 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24377 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24378
24379 fi
24380 if test $ac_cv_header_netinet_in_h = yes; then
24381 :
12667 else 24382 else
12668 ok_so_far=no 24383 ok_so_far=no
12669 fi 24384 fi
12670 24385
12671 24386
12672 fi 24387 fi
12673 if test $ok_so_far = yes; then 24388 if test $ok_so_far = yes; then
12674 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" 24389 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
12675 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then : 24390 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
12676 24391 $as_echo_n "checking for arpa/inet.h... " >&6; }
24392 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24393 $as_echo_n "(cached) " >&6
24394 fi
24395 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24396 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24397 else
24398 # Is the header compilable?
24399 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24400 $as_echo_n "checking arpa/inet.h usability... " >&6; }
24401 cat >conftest.$ac_ext <<_ACEOF
24402 /* confdefs.h. */
24403 _ACEOF
24404 cat confdefs.h >>conftest.$ac_ext
24405 cat >>conftest.$ac_ext <<_ACEOF
24406 /* end confdefs.h. */
24407 $ac_includes_default
24408 #include <arpa/inet.h>
24409 _ACEOF
24410 rm -f conftest.$ac_objext
24411 if { (ac_try="$ac_compile"
24412 case "(($ac_try" in
24413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24414 *) ac_try_echo=$ac_try;;
24415 esac
24416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24417 $as_echo "$ac_try_echo") >&5
24418 (eval "$ac_compile") 2>conftest.er1
24419 ac_status=$?
24420 grep -v '^ *+' conftest.er1 >conftest.err
24421 rm -f conftest.er1
24422 cat conftest.err >&5
24423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424 (exit $ac_status); } && {
24425 test -z "$ac_c_werror_flag" ||
24426 test ! -s conftest.err
24427 } && test -s conftest.$ac_objext; then
24428 ac_header_compiler=yes
24429 else
24430 $as_echo "$as_me: failed program was:" >&5
24431 sed 's/^/| /' conftest.$ac_ext >&5
24432
24433 ac_header_compiler=no
24434 fi
24435
24436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24437 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24438 $as_echo "$ac_header_compiler" >&6; }
24439
24440 # Is the header present?
24441 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
24442 $as_echo_n "checking arpa/inet.h presence... " >&6; }
24443 cat >conftest.$ac_ext <<_ACEOF
24444 /* confdefs.h. */
24445 _ACEOF
24446 cat confdefs.h >>conftest.$ac_ext
24447 cat >>conftest.$ac_ext <<_ACEOF
24448 /* end confdefs.h. */
24449 #include <arpa/inet.h>
24450 _ACEOF
24451 if { (ac_try="$ac_cpp conftest.$ac_ext"
24452 case "(($ac_try" in
24453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24454 *) ac_try_echo=$ac_try;;
24455 esac
24456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24457 $as_echo "$ac_try_echo") >&5
24458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24459 ac_status=$?
24460 grep -v '^ *+' conftest.er1 >conftest.err
24461 rm -f conftest.er1
24462 cat conftest.err >&5
24463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24464 (exit $ac_status); } >/dev/null && {
24465 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24466 test ! -s conftest.err
24467 }; then
24468 ac_header_preproc=yes
24469 else
24470 $as_echo "$as_me: failed program was:" >&5
24471 sed 's/^/| /' conftest.$ac_ext >&5
24472
24473 ac_header_preproc=no
24474 fi
24475
24476 rm -f conftest.err conftest.$ac_ext
24477 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24478 $as_echo "$ac_header_preproc" >&6; }
24479
24480 # So? What about this header?
24481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24482 yes:no: )
24483 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24484 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24485 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24486 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24487 ac_header_preproc=yes
24488 ;;
24489 no:yes:* )
24490 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24491 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24492 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24493 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24494 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24495 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24496 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24497 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24498 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24499 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24500 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24501 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24502
24503 ;;
24504 esac
24505 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24506 $as_echo_n "checking for arpa/inet.h... " >&6; }
24507 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24508 $as_echo_n "(cached) " >&6
24509 else
24510 ac_cv_header_arpa_inet_h=$ac_header_preproc
24511 fi
24512 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24513 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24514
24515 fi
24516 if test $ac_cv_header_arpa_inet_h = yes; then
24517 :
12677 else 24518 else
12678 ok_so_far=no 24519 ok_so_far=no
12679 fi 24520 fi
12680 24521
12681 24522
12682 fi 24523 fi
12683 if test $ok_so_far = yes; then 24524 if test $ok_so_far = yes; then
12684 24525
12685 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h 24526 cat >>confdefs.h <<\_ACEOF
12686 24527 #define HAVE_INET_SOCKETS 1
12687 fi 24528 _ACEOF
24529
24530 fi
24531
12688 24532
12689 for ac_header in sys/ioctl.h 24533 for ac_header in sys/ioctl.h
12690 do : 24534 do
12691 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 24535 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12692 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then : 24536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24537 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24538 $as_echo_n "checking for $ac_header... " >&6; }
24539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24540 $as_echo_n "(cached) " >&6
24541 fi
24542 ac_res=`eval 'as_val=${'$as_ac_Header'}
24543 $as_echo "$as_val"'`
24544 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24545 $as_echo "$ac_res" >&6; }
24546 else
24547 # Is the header compilable?
24548 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24549 $as_echo_n "checking $ac_header usability... " >&6; }
24550 cat >conftest.$ac_ext <<_ACEOF
24551 /* confdefs.h. */
24552 _ACEOF
24553 cat confdefs.h >>conftest.$ac_ext
24554 cat >>conftest.$ac_ext <<_ACEOF
24555 /* end confdefs.h. */
24556 $ac_includes_default
24557 #include <$ac_header>
24558 _ACEOF
24559 rm -f conftest.$ac_objext
24560 if { (ac_try="$ac_compile"
24561 case "(($ac_try" in
24562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24563 *) ac_try_echo=$ac_try;;
24564 esac
24565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24566 $as_echo "$ac_try_echo") >&5
24567 (eval "$ac_compile") 2>conftest.er1
24568 ac_status=$?
24569 grep -v '^ *+' conftest.er1 >conftest.err
24570 rm -f conftest.er1
24571 cat conftest.err >&5
24572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24573 (exit $ac_status); } && {
24574 test -z "$ac_c_werror_flag" ||
24575 test ! -s conftest.err
24576 } && test -s conftest.$ac_objext; then
24577 ac_header_compiler=yes
24578 else
24579 $as_echo "$as_me: failed program was:" >&5
24580 sed 's/^/| /' conftest.$ac_ext >&5
24581
24582 ac_header_compiler=no
24583 fi
24584
24585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24586 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24587 $as_echo "$ac_header_compiler" >&6; }
24588
24589 # Is the header present?
24590 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24591 $as_echo_n "checking $ac_header presence... " >&6; }
24592 cat >conftest.$ac_ext <<_ACEOF
24593 /* confdefs.h. */
24594 _ACEOF
24595 cat confdefs.h >>conftest.$ac_ext
24596 cat >>conftest.$ac_ext <<_ACEOF
24597 /* end confdefs.h. */
24598 #include <$ac_header>
24599 _ACEOF
24600 if { (ac_try="$ac_cpp conftest.$ac_ext"
24601 case "(($ac_try" in
24602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24603 *) ac_try_echo=$ac_try;;
24604 esac
24605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24606 $as_echo "$ac_try_echo") >&5
24607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24608 ac_status=$?
24609 grep -v '^ *+' conftest.er1 >conftest.err
24610 rm -f conftest.er1
24611 cat conftest.err >&5
24612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24613 (exit $ac_status); } >/dev/null && {
24614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24615 test ! -s conftest.err
24616 }; then
24617 ac_header_preproc=yes
24618 else
24619 $as_echo "$as_me: failed program was:" >&5
24620 sed 's/^/| /' conftest.$ac_ext >&5
24621
24622 ac_header_preproc=no
24623 fi
24624
24625 rm -f conftest.err conftest.$ac_ext
24626 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24627 $as_echo "$ac_header_preproc" >&6; }
24628
24629 # So? What about this header?
24630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24631 yes:no: )
24632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24633 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24635 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24636 ac_header_preproc=yes
24637 ;;
24638 no:yes:* )
24639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24640 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24642 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24644 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24645 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24646 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24647 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24648 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24649 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24650 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24651
24652 ;;
24653 esac
24654 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24655 $as_echo_n "checking for $ac_header... " >&6; }
24656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24657 $as_echo_n "(cached) " >&6
24658 else
24659 eval "$as_ac_Header=\$ac_header_preproc"
24660 fi
24661 ac_res=`eval 'as_val=${'$as_ac_Header'}
24662 $as_echo "$as_val"'`
24663 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24664 $as_echo "$ac_res" >&6; }
24665
24666 fi
24667 if test `eval 'as_val=${'$as_ac_Header'}
24668 $as_echo "$as_val"'` = yes; then
12693 cat >>confdefs.h <<_ACEOF 24669 cat >>confdefs.h <<_ACEOF
12694 #define HAVE_SYS_IOCTL_H 1 24670 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12695 _ACEOF 24671 _ACEOF
12696 24672
12697 fi 24673 fi
12698 24674
12699 done 24675 done
12700 24676
12701 24677
12702 if test -f /usr/lpp/X11/bin/smt.exp; then 24678 if test -f /usr/lpp/X11/bin/smt.exp; then
12703 24679
12704 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h 24680 cat >>confdefs.h <<\_ACEOF
12705 24681 #define HAVE_AIX_SMT_EXP 1
12706 fi 24682 _ACEOF
12707 24683
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5 24684 fi
24685
24686 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
12709 $as_echo_n "checking whether system supports dynamic ptys... " >&6; } 24687 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
12710 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then 24688 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24689 { $as_echo "$as_me:$LINENO: result: yes" >&5
12712 $as_echo "yes" >&6; } 24690 $as_echo "yes" >&6; }
12713 24691
12714 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h 24692 cat >>confdefs.h <<\_ACEOF
12715 24693 #define HAVE_DEV_PTMX 1
12716 else 24694 _ACEOF
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24695
24696 else
24697 { $as_echo "$as_me:$LINENO: result: no" >&5
12718 $as_echo "no" >&6; } 24698 $as_echo "no" >&6; }
12719 fi 24699 fi
12720 24700
12721 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 24701 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
12722 if test "x$ac_cv_type_pid_t" = x""yes; then : 24702 $as_echo_n "checking for pid_t... " >&6; }
12723 24703 if test "${ac_cv_type_pid_t+set}" = set; then
12724 else
12725
12726 cat >>confdefs.h <<_ACEOF
12727 #define pid_t int
12728 _ACEOF
12729
12730 fi
12731
12732 for ac_header in vfork.h
12733 do :
12734 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12735 if test "x$ac_cv_header_vfork_h" = x""yes; then :
12736 cat >>confdefs.h <<_ACEOF
12737 #define HAVE_VFORK_H 1
12738 _ACEOF
12739
12740 fi
12741
12742 done
12743
12744 for ac_func in fork vfork
12745 do :
12746 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12747 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12748 eval as_val=\$$as_ac_var
12749 if test "x$as_val" = x""yes; then :
12750 cat >>confdefs.h <<_ACEOF
12751 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12752 _ACEOF
12753
12754 fi
12755 done
12756
12757 if test "x$ac_cv_func_fork" = xyes; then
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12759 $as_echo_n "checking for working fork... " >&6; }
12760 if test "${ac_cv_func_fork_works+set}" = set; then :
12761 $as_echo_n "(cached) " >&6 24704 $as_echo_n "(cached) " >&6
12762 else 24705 else
12763 if test "$cross_compiling" = yes; then : 24706 ac_cv_type_pid_t=no
12764 ac_cv_func_fork_works=cross 24707 cat >conftest.$ac_ext <<_ACEOF
12765 else 24708 /* confdefs.h. */
12766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24709 _ACEOF
24710 cat confdefs.h >>conftest.$ac_ext
24711 cat >>conftest.$ac_ext <<_ACEOF
12767 /* end confdefs.h. */ 24712 /* end confdefs.h. */
12768 $ac_includes_default 24713 $ac_includes_default
12769 int 24714 int
12770 main () 24715 main ()
12771 { 24716 {
12772 24717 if (sizeof (pid_t))
12773 /* By Ruediger Kuhlmann. */ 24718 return 0;
12774 return fork () < 0;
12775
12776 ; 24719 ;
12777 return 0; 24720 return 0;
12778 } 24721 }
12779 _ACEOF 24722 _ACEOF
12780 if ac_fn_c_try_run "$LINENO"; then : 24723 rm -f conftest.$ac_objext
24724 if { (ac_try="$ac_compile"
24725 case "(($ac_try" in
24726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24727 *) ac_try_echo=$ac_try;;
24728 esac
24729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24730 $as_echo "$ac_try_echo") >&5
24731 (eval "$ac_compile") 2>conftest.er1
24732 ac_status=$?
24733 grep -v '^ *+' conftest.er1 >conftest.err
24734 rm -f conftest.er1
24735 cat conftest.err >&5
24736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24737 (exit $ac_status); } && {
24738 test -z "$ac_c_werror_flag" ||
24739 test ! -s conftest.err
24740 } && test -s conftest.$ac_objext; then
24741 cat >conftest.$ac_ext <<_ACEOF
24742 /* confdefs.h. */
24743 _ACEOF
24744 cat confdefs.h >>conftest.$ac_ext
24745 cat >>conftest.$ac_ext <<_ACEOF
24746 /* end confdefs.h. */
24747 $ac_includes_default
24748 int
24749 main ()
24750 {
24751 if (sizeof ((pid_t)))
24752 return 0;
24753 ;
24754 return 0;
24755 }
24756 _ACEOF
24757 rm -f conftest.$ac_objext
24758 if { (ac_try="$ac_compile"
24759 case "(($ac_try" in
24760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24761 *) ac_try_echo=$ac_try;;
24762 esac
24763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24764 $as_echo "$ac_try_echo") >&5
24765 (eval "$ac_compile") 2>conftest.er1
24766 ac_status=$?
24767 grep -v '^ *+' conftest.er1 >conftest.err
24768 rm -f conftest.er1
24769 cat conftest.err >&5
24770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24771 (exit $ac_status); } && {
24772 test -z "$ac_c_werror_flag" ||
24773 test ! -s conftest.err
24774 } && test -s conftest.$ac_objext; then
24775 :
24776 else
24777 $as_echo "$as_me: failed program was:" >&5
24778 sed 's/^/| /' conftest.$ac_ext >&5
24779
24780 ac_cv_type_pid_t=yes
24781 fi
24782
24783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24784 else
24785 $as_echo "$as_me: failed program was:" >&5
24786 sed 's/^/| /' conftest.$ac_ext >&5
24787
24788
24789 fi
24790
24791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24792 fi
24793 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24794 $as_echo "$ac_cv_type_pid_t" >&6; }
24795 if test $ac_cv_type_pid_t = yes; then
24796 :
24797 else
24798
24799 cat >>confdefs.h <<_ACEOF
24800 #define pid_t int
24801 _ACEOF
24802
24803 fi
24804
24805
24806 for ac_header in vfork.h
24807 do
24808 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24810 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24811 $as_echo_n "checking for $ac_header... " >&6; }
24812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24813 $as_echo_n "(cached) " >&6
24814 fi
24815 ac_res=`eval 'as_val=${'$as_ac_Header'}
24816 $as_echo "$as_val"'`
24817 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24818 $as_echo "$ac_res" >&6; }
24819 else
24820 # Is the header compilable?
24821 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24822 $as_echo_n "checking $ac_header usability... " >&6; }
24823 cat >conftest.$ac_ext <<_ACEOF
24824 /* confdefs.h. */
24825 _ACEOF
24826 cat confdefs.h >>conftest.$ac_ext
24827 cat >>conftest.$ac_ext <<_ACEOF
24828 /* end confdefs.h. */
24829 $ac_includes_default
24830 #include <$ac_header>
24831 _ACEOF
24832 rm -f conftest.$ac_objext
24833 if { (ac_try="$ac_compile"
24834 case "(($ac_try" in
24835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24836 *) ac_try_echo=$ac_try;;
24837 esac
24838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24839 $as_echo "$ac_try_echo") >&5
24840 (eval "$ac_compile") 2>conftest.er1
24841 ac_status=$?
24842 grep -v '^ *+' conftest.er1 >conftest.err
24843 rm -f conftest.er1
24844 cat conftest.err >&5
24845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846 (exit $ac_status); } && {
24847 test -z "$ac_c_werror_flag" ||
24848 test ! -s conftest.err
24849 } && test -s conftest.$ac_objext; then
24850 ac_header_compiler=yes
24851 else
24852 $as_echo "$as_me: failed program was:" >&5
24853 sed 's/^/| /' conftest.$ac_ext >&5
24854
24855 ac_header_compiler=no
24856 fi
24857
24858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24859 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24860 $as_echo "$ac_header_compiler" >&6; }
24861
24862 # Is the header present?
24863 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24864 $as_echo_n "checking $ac_header presence... " >&6; }
24865 cat >conftest.$ac_ext <<_ACEOF
24866 /* confdefs.h. */
24867 _ACEOF
24868 cat confdefs.h >>conftest.$ac_ext
24869 cat >>conftest.$ac_ext <<_ACEOF
24870 /* end confdefs.h. */
24871 #include <$ac_header>
24872 _ACEOF
24873 if { (ac_try="$ac_cpp conftest.$ac_ext"
24874 case "(($ac_try" in
24875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24876 *) ac_try_echo=$ac_try;;
24877 esac
24878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24879 $as_echo "$ac_try_echo") >&5
24880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24881 ac_status=$?
24882 grep -v '^ *+' conftest.er1 >conftest.err
24883 rm -f conftest.er1
24884 cat conftest.err >&5
24885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24886 (exit $ac_status); } >/dev/null && {
24887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24888 test ! -s conftest.err
24889 }; then
24890 ac_header_preproc=yes
24891 else
24892 $as_echo "$as_me: failed program was:" >&5
24893 sed 's/^/| /' conftest.$ac_ext >&5
24894
24895 ac_header_preproc=no
24896 fi
24897
24898 rm -f conftest.err conftest.$ac_ext
24899 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24900 $as_echo "$ac_header_preproc" >&6; }
24901
24902 # So? What about this header?
24903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24904 yes:no: )
24905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24906 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24908 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24909 ac_header_preproc=yes
24910 ;;
24911 no:yes:* )
24912 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24913 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24914 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24915 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24916 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24917 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24918 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24919 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24920 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24921 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24923 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24924
24925 ;;
24926 esac
24927 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24928 $as_echo_n "checking for $ac_header... " >&6; }
24929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24930 $as_echo_n "(cached) " >&6
24931 else
24932 eval "$as_ac_Header=\$ac_header_preproc"
24933 fi
24934 ac_res=`eval 'as_val=${'$as_ac_Header'}
24935 $as_echo "$as_val"'`
24936 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24937 $as_echo "$ac_res" >&6; }
24938
24939 fi
24940 if test `eval 'as_val=${'$as_ac_Header'}
24941 $as_echo "$as_val"'` = yes; then
24942 cat >>confdefs.h <<_ACEOF
24943 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24944 _ACEOF
24945
24946 fi
24947
24948 done
24949
24950
24951
24952 for ac_func in fork vfork
24953 do
24954 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24955 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24956 $as_echo_n "checking for $ac_func... " >&6; }
24957 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24958 $as_echo_n "(cached) " >&6
24959 else
24960 cat >conftest.$ac_ext <<_ACEOF
24961 /* confdefs.h. */
24962 _ACEOF
24963 cat confdefs.h >>conftest.$ac_ext
24964 cat >>conftest.$ac_ext <<_ACEOF
24965 /* end confdefs.h. */
24966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24968 #define $ac_func innocuous_$ac_func
24969
24970 /* System header to define __stub macros and hopefully few prototypes,
24971 which can conflict with char $ac_func (); below.
24972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24973 <limits.h> exists even on freestanding compilers. */
24974
24975 #ifdef __STDC__
24976 # include <limits.h>
24977 #else
24978 # include <assert.h>
24979 #endif
24980
24981 #undef $ac_func
24982
24983 /* Override any GCC internal prototype to avoid an error.
24984 Use char because int might match the return type of a GCC
24985 builtin and then its argument prototype would still apply. */
24986 #ifdef __cplusplus
24987 extern "C"
24988 #endif
24989 char $ac_func ();
24990 /* The GNU C library defines this for functions which it implements
24991 to always fail with ENOSYS. Some functions are actually named
24992 something starting with __ and the normal name is an alias. */
24993 #if defined __stub_$ac_func || defined __stub___$ac_func
24994 choke me
24995 #endif
24996
24997 int
24998 main ()
24999 {
25000 return $ac_func ();
25001 ;
25002 return 0;
25003 }
25004 _ACEOF
25005 rm -f conftest.$ac_objext conftest$ac_exeext
25006 if { (ac_try="$ac_link"
25007 case "(($ac_try" in
25008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25009 *) ac_try_echo=$ac_try;;
25010 esac
25011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25012 $as_echo "$ac_try_echo") >&5
25013 (eval "$ac_link") 2>conftest.er1
25014 ac_status=$?
25015 grep -v '^ *+' conftest.er1 >conftest.err
25016 rm -f conftest.er1
25017 cat conftest.err >&5
25018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019 (exit $ac_status); } && {
25020 test -z "$ac_c_werror_flag" ||
25021 test ! -s conftest.err
25022 } && test -s conftest$ac_exeext && {
25023 test "$cross_compiling" = yes ||
25024 $as_test_x conftest$ac_exeext
25025 }; then
25026 eval "$as_ac_var=yes"
25027 else
25028 $as_echo "$as_me: failed program was:" >&5
25029 sed 's/^/| /' conftest.$ac_ext >&5
25030
25031 eval "$as_ac_var=no"
25032 fi
25033
25034 rm -rf conftest.dSYM
25035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25036 conftest$ac_exeext conftest.$ac_ext
25037 fi
25038 ac_res=`eval 'as_val=${'$as_ac_var'}
25039 $as_echo "$as_val"'`
25040 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25041 $as_echo "$ac_res" >&6; }
25042 if test `eval 'as_val=${'$as_ac_var'}
25043 $as_echo "$as_val"'` = yes; then
25044 cat >>confdefs.h <<_ACEOF
25045 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25046 _ACEOF
25047
25048 fi
25049 done
25050
25051 if test "x$ac_cv_func_fork" = xyes; then
25052 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
25053 $as_echo_n "checking for working fork... " >&6; }
25054 if test "${ac_cv_func_fork_works+set}" = set; then
25055 $as_echo_n "(cached) " >&6
25056 else
25057 if test "$cross_compiling" = yes; then
25058 ac_cv_func_fork_works=cross
25059 else
25060 cat >conftest.$ac_ext <<_ACEOF
25061 /* confdefs.h. */
25062 _ACEOF
25063 cat confdefs.h >>conftest.$ac_ext
25064 cat >>conftest.$ac_ext <<_ACEOF
25065 /* end confdefs.h. */
25066 $ac_includes_default
25067 int
25068 main ()
25069 {
25070
25071 /* By Ruediger Kuhlmann. */
25072 return fork () < 0;
25073
25074 ;
25075 return 0;
25076 }
25077 _ACEOF
25078 rm -f conftest$ac_exeext
25079 if { (ac_try="$ac_link"
25080 case "(($ac_try" in
25081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25082 *) ac_try_echo=$ac_try;;
25083 esac
25084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25085 $as_echo "$ac_try_echo") >&5
25086 (eval "$ac_link") 2>&5
25087 ac_status=$?
25088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25090 { (case "(($ac_try" in
25091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25092 *) ac_try_echo=$ac_try;;
25093 esac
25094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25095 $as_echo "$ac_try_echo") >&5
25096 (eval "$ac_try") 2>&5
25097 ac_status=$?
25098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099 (exit $ac_status); }; }; then
12781 ac_cv_func_fork_works=yes 25100 ac_cv_func_fork_works=yes
12782 else 25101 else
12783 ac_cv_func_fork_works=no 25102 $as_echo "$as_me: program exited with status $ac_status" >&5
12784 fi 25103 $as_echo "$as_me: failed program was:" >&5
12785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25104 sed 's/^/| /' conftest.$ac_ext >&5
12786 conftest.$ac_objext conftest.beam conftest.$ac_ext 25105
12787 fi 25106 ( exit $ac_status )
12788 25107 ac_cv_func_fork_works=no
12789 fi 25108 fi
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 25109 rm -rf conftest.dSYM
25110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25111 fi
25112
25113
25114 fi
25115 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
12791 $as_echo "$ac_cv_func_fork_works" >&6; } 25116 $as_echo "$ac_cv_func_fork_works" >&6; }
12792 25117
12793 else 25118 else
12794 ac_cv_func_fork_works=$ac_cv_func_fork 25119 ac_cv_func_fork_works=$ac_cv_func_fork
12795 fi 25120 fi
12801 ;; 25126 ;;
12802 *) 25127 *)
12803 ac_cv_func_fork_works=yes 25128 ac_cv_func_fork_works=yes
12804 ;; 25129 ;;
12805 esac 25130 esac
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 25131 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12807 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 25132 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12808 fi 25133 fi
12809 ac_cv_func_vfork_works=$ac_cv_func_vfork 25134 ac_cv_func_vfork_works=$ac_cv_func_vfork
12810 if test "x$ac_cv_func_vfork" = xyes; then 25135 if test "x$ac_cv_func_vfork" = xyes; then
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 25136 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
12812 $as_echo_n "checking for working vfork... " >&6; } 25137 $as_echo_n "checking for working vfork... " >&6; }
12813 if test "${ac_cv_func_vfork_works+set}" = set; then : 25138 if test "${ac_cv_func_vfork_works+set}" = set; then
12814 $as_echo_n "(cached) " >&6 25139 $as_echo_n "(cached) " >&6
12815 else 25140 else
12816 if test "$cross_compiling" = yes; then : 25141 if test "$cross_compiling" = yes; then
12817 ac_cv_func_vfork_works=cross 25142 ac_cv_func_vfork_works=cross
12818 else 25143 else
12819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25144 cat >conftest.$ac_ext <<_ACEOF
25145 /* confdefs.h. */
25146 _ACEOF
25147 cat confdefs.h >>conftest.$ac_ext
25148 cat >>conftest.$ac_ext <<_ACEOF
12820 /* end confdefs.h. */ 25149 /* end confdefs.h. */
12821 /* Thanks to Paul Eggert for this test. */ 25150 /* Thanks to Paul Eggert for this test. */
12822 $ac_includes_default 25151 $ac_includes_default
12823 #include <sys/wait.h> 25152 #include <sys/wait.h>
12824 #ifdef HAVE_VFORK_H 25153 #ifdef HAVE_VFORK_H
12906 || fstat(fileno(stdout), &st) != 0 25235 || fstat(fileno(stdout), &st) != 0
12907 ); 25236 );
12908 } 25237 }
12909 } 25238 }
12910 _ACEOF 25239 _ACEOF
12911 if ac_fn_c_try_run "$LINENO"; then : 25240 rm -f conftest$ac_exeext
25241 if { (ac_try="$ac_link"
25242 case "(($ac_try" in
25243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25244 *) ac_try_echo=$ac_try;;
25245 esac
25246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25247 $as_echo "$ac_try_echo") >&5
25248 (eval "$ac_link") 2>&5
25249 ac_status=$?
25250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25252 { (case "(($ac_try" in
25253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25254 *) ac_try_echo=$ac_try;;
25255 esac
25256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25257 $as_echo "$ac_try_echo") >&5
25258 (eval "$ac_try") 2>&5
25259 ac_status=$?
25260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261 (exit $ac_status); }; }; then
12912 ac_cv_func_vfork_works=yes 25262 ac_cv_func_vfork_works=yes
12913 else 25263 else
12914 ac_cv_func_vfork_works=no 25264 $as_echo "$as_me: program exited with status $ac_status" >&5
12915 fi 25265 $as_echo "$as_me: failed program was:" >&5
12916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25266 sed 's/^/| /' conftest.$ac_ext >&5
12917 conftest.$ac_objext conftest.beam conftest.$ac_ext 25267
12918 fi 25268 ( exit $ac_status )
12919 25269 ac_cv_func_vfork_works=no
12920 fi 25270 fi
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 25271 rm -rf conftest.dSYM
25272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25273 fi
25274
25275
25276 fi
25277 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
12922 $as_echo "$ac_cv_func_vfork_works" >&6; } 25278 $as_echo "$ac_cv_func_vfork_works" >&6; }
12923 25279
12924 fi; 25280 fi;
12925 if test "x$ac_cv_func_fork_works" = xcross; then 25281 if test "x$ac_cv_func_fork_works" = xcross; then
12926 ac_cv_func_vfork_works=$ac_cv_func_vfork 25282 ac_cv_func_vfork_works=$ac_cv_func_vfork
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 25283 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12928 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 25284 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12929 fi 25285 fi
12930 25286
12931 if test "x$ac_cv_func_vfork_works" = xyes; then 25287 if test "x$ac_cv_func_vfork_works" = xyes; then
12932 25288
12933 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 25289 cat >>confdefs.h <<\_ACEOF
12934 25290 #define HAVE_WORKING_VFORK 1
12935 else 25291 _ACEOF
12936 25292
12937 $as_echo "#define vfork fork" >>confdefs.h 25293 else
25294
25295 cat >>confdefs.h <<\_ACEOF
25296 #define vfork fork
25297 _ACEOF
12938 25298
12939 fi 25299 fi
12940 if test "x$ac_cv_func_fork_works" = xyes; then 25300 if test "x$ac_cv_func_fork_works" = xyes; then
12941 25301
12942 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 25302 cat >>confdefs.h <<\_ACEOF
12943 25303 #define HAVE_WORKING_FORK 1
12944 fi 25304 _ACEOF
12945 25305
12946 25306 fi
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 25307
25308
25309 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12948 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 25310 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12949 if test "${emacs_cv_langinfo_codeset+set}" = set; then : 25311 if test "${emacs_cv_langinfo_codeset+set}" = set; then
12950 $as_echo_n "(cached) " >&6 25312 $as_echo_n "(cached) " >&6
12951 else 25313 else
12952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25314 cat >conftest.$ac_ext <<_ACEOF
25315 /* confdefs.h. */
25316 _ACEOF
25317 cat confdefs.h >>conftest.$ac_ext
25318 cat >>conftest.$ac_ext <<_ACEOF
12953 /* end confdefs.h. */ 25319 /* end confdefs.h. */
12954 #include <langinfo.h> 25320 #include <langinfo.h>
12955 int 25321 int
12956 main () 25322 main ()
12957 { 25323 {
12958 char* cs = nl_langinfo(CODESET); 25324 char* cs = nl_langinfo(CODESET);
12959 ; 25325 ;
12960 return 0; 25326 return 0;
12961 } 25327 }
12962 _ACEOF 25328 _ACEOF
12963 if ac_fn_c_try_link "$LINENO"; then : 25329 rm -f conftest.$ac_objext conftest$ac_exeext
25330 if { (ac_try="$ac_link"
25331 case "(($ac_try" in
25332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25333 *) ac_try_echo=$ac_try;;
25334 esac
25335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25336 $as_echo "$ac_try_echo") >&5
25337 (eval "$ac_link") 2>conftest.er1
25338 ac_status=$?
25339 grep -v '^ *+' conftest.er1 >conftest.err
25340 rm -f conftest.er1
25341 cat conftest.err >&5
25342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343 (exit $ac_status); } && {
25344 test -z "$ac_c_werror_flag" ||
25345 test ! -s conftest.err
25346 } && test -s conftest$ac_exeext && {
25347 test "$cross_compiling" = yes ||
25348 $as_test_x conftest$ac_exeext
25349 }; then
12964 emacs_cv_langinfo_codeset=yes 25350 emacs_cv_langinfo_codeset=yes
12965 else 25351 else
12966 emacs_cv_langinfo_codeset=no 25352 $as_echo "$as_me: failed program was:" >&5
12967 fi 25353 sed 's/^/| /' conftest.$ac_ext >&5
12968 rm -f core conftest.err conftest.$ac_objext \ 25354
12969 conftest$ac_exeext conftest.$ac_ext 25355 emacs_cv_langinfo_codeset=no
12970 25356 fi
12971 fi 25357
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5 25358 rm -rf conftest.dSYM
25359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25360 conftest$ac_exeext conftest.$ac_ext
25361
25362 fi
25363 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
12973 $as_echo "$emacs_cv_langinfo_codeset" >&6; } 25364 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
12974 if test $emacs_cv_langinfo_codeset = yes; then 25365 if test $emacs_cv_langinfo_codeset = yes; then
12975 25366
12976 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 25367 cat >>confdefs.h <<\_ACEOF
12977 25368 #define HAVE_LANGINFO_CODESET 1
12978 fi 25369 _ACEOF
12979 25370
12980 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 25371 fi
12981 if test "x$ac_cv_type_size_t" = x""yes; then : 25372
25373 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
25374 $as_echo_n "checking for size_t... " >&6; }
25375 if test "${ac_cv_type_size_t+set}" = set; then
25376 $as_echo_n "(cached) " >&6
25377 else
25378 ac_cv_type_size_t=no
25379 cat >conftest.$ac_ext <<_ACEOF
25380 /* confdefs.h. */
25381 _ACEOF
25382 cat confdefs.h >>conftest.$ac_ext
25383 cat >>conftest.$ac_ext <<_ACEOF
25384 /* end confdefs.h. */
25385 $ac_includes_default
25386 int
25387 main ()
25388 {
25389 if (sizeof (size_t))
25390 return 0;
25391 ;
25392 return 0;
25393 }
25394 _ACEOF
25395 rm -f conftest.$ac_objext
25396 if { (ac_try="$ac_compile"
25397 case "(($ac_try" in
25398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25399 *) ac_try_echo=$ac_try;;
25400 esac
25401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25402 $as_echo "$ac_try_echo") >&5
25403 (eval "$ac_compile") 2>conftest.er1
25404 ac_status=$?
25405 grep -v '^ *+' conftest.er1 >conftest.err
25406 rm -f conftest.er1
25407 cat conftest.err >&5
25408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409 (exit $ac_status); } && {
25410 test -z "$ac_c_werror_flag" ||
25411 test ! -s conftest.err
25412 } && test -s conftest.$ac_objext; then
25413 cat >conftest.$ac_ext <<_ACEOF
25414 /* confdefs.h. */
25415 _ACEOF
25416 cat confdefs.h >>conftest.$ac_ext
25417 cat >>conftest.$ac_ext <<_ACEOF
25418 /* end confdefs.h. */
25419 $ac_includes_default
25420 int
25421 main ()
25422 {
25423 if (sizeof ((size_t)))
25424 return 0;
25425 ;
25426 return 0;
25427 }
25428 _ACEOF
25429 rm -f conftest.$ac_objext
25430 if { (ac_try="$ac_compile"
25431 case "(($ac_try" in
25432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25433 *) ac_try_echo=$ac_try;;
25434 esac
25435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25436 $as_echo "$ac_try_echo") >&5
25437 (eval "$ac_compile") 2>conftest.er1
25438 ac_status=$?
25439 grep -v '^ *+' conftest.er1 >conftest.err
25440 rm -f conftest.er1
25441 cat conftest.err >&5
25442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25443 (exit $ac_status); } && {
25444 test -z "$ac_c_werror_flag" ||
25445 test ! -s conftest.err
25446 } && test -s conftest.$ac_objext; then
25447 :
25448 else
25449 $as_echo "$as_me: failed program was:" >&5
25450 sed 's/^/| /' conftest.$ac_ext >&5
25451
25452 ac_cv_type_size_t=yes
25453 fi
25454
25455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25456 else
25457 $as_echo "$as_me: failed program was:" >&5
25458 sed 's/^/| /' conftest.$ac_ext >&5
25459
25460
25461 fi
25462
25463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25464 fi
25465 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25466 $as_echo "$ac_cv_type_size_t" >&6; }
25467 if test $ac_cv_type_size_t = yes; then
12982 25468
12983 cat >>confdefs.h <<_ACEOF 25469 cat >>confdefs.h <<_ACEOF
12984 #define HAVE_SIZE_T 1 25470 #define HAVE_SIZE_T 1
12985 _ACEOF 25471 _ACEOF
12986 25472
12987 25473
12988 fi 25474 fi
12989 25475
12990 25476
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 25477 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
12992 $as_echo_n "checking for mbstate_t... " >&6; } 25478 $as_echo_n "checking for mbstate_t... " >&6; }
12993 if test "${ac_cv_type_mbstate_t+set}" = set; then : 25479 if test "${ac_cv_type_mbstate_t+set}" = set; then
12994 $as_echo_n "(cached) " >&6 25480 $as_echo_n "(cached) " >&6
12995 else 25481 else
12996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25482 cat >conftest.$ac_ext <<_ACEOF
25483 /* confdefs.h. */
25484 _ACEOF
25485 cat confdefs.h >>conftest.$ac_ext
25486 cat >>conftest.$ac_ext <<_ACEOF
12997 /* end confdefs.h. */ 25487 /* end confdefs.h. */
12998 $ac_includes_default 25488 $ac_includes_default
12999 # include <wchar.h> 25489 # include <wchar.h>
13000 int 25490 int
13001 main () 25491 main ()
13003 mbstate_t x; return sizeof x; 25493 mbstate_t x; return sizeof x;
13004 ; 25494 ;
13005 return 0; 25495 return 0;
13006 } 25496 }
13007 _ACEOF 25497 _ACEOF
13008 if ac_fn_c_try_compile "$LINENO"; then : 25498 rm -f conftest.$ac_objext
25499 if { (ac_try="$ac_compile"
25500 case "(($ac_try" in
25501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25502 *) ac_try_echo=$ac_try;;
25503 esac
25504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25505 $as_echo "$ac_try_echo") >&5
25506 (eval "$ac_compile") 2>conftest.er1
25507 ac_status=$?
25508 grep -v '^ *+' conftest.er1 >conftest.err
25509 rm -f conftest.er1
25510 cat conftest.err >&5
25511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25512 (exit $ac_status); } && {
25513 test -z "$ac_c_werror_flag" ||
25514 test ! -s conftest.err
25515 } && test -s conftest.$ac_objext; then
13009 ac_cv_type_mbstate_t=yes 25516 ac_cv_type_mbstate_t=yes
13010 else 25517 else
13011 ac_cv_type_mbstate_t=no 25518 $as_echo "$as_me: failed program was:" >&5
13012 fi 25519 sed 's/^/| /' conftest.$ac_ext >&5
25520
25521 ac_cv_type_mbstate_t=no
25522 fi
25523
13013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13014 fi 25525 fi
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 25526 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
13016 $as_echo "$ac_cv_type_mbstate_t" >&6; } 25527 $as_echo "$ac_cv_type_mbstate_t" >&6; }
13017 if test $ac_cv_type_mbstate_t = yes; then 25528 if test $ac_cv_type_mbstate_t = yes; then
13018 25529
13019 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h 25530 cat >>confdefs.h <<\_ACEOF
25531 #define HAVE_MBSTATE_T 1
25532 _ACEOF
13020 25533
13021 else 25534 else
13022 25535
13023 $as_echo "#define mbstate_t int" >>confdefs.h 25536 cat >>confdefs.h <<\_ACEOF
25537 #define mbstate_t int
25538 _ACEOF
13024 25539
13025 fi 25540 fi
13026 25541
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5 25542 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
13028 $as_echo_n "checking for C restrict keyword... " >&6; } 25543 $as_echo_n "checking for C restrict keyword... " >&6; }
13029 if test "${emacs_cv_c_restrict+set}" = set; then : 25544 if test "${emacs_cv_c_restrict+set}" = set; then
13030 $as_echo_n "(cached) " >&6 25545 $as_echo_n "(cached) " >&6
13031 else 25546 else
13032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25547 cat >conftest.$ac_ext <<_ACEOF
25548 /* confdefs.h. */
25549 _ACEOF
25550 cat confdefs.h >>conftest.$ac_ext
25551 cat >>conftest.$ac_ext <<_ACEOF
13033 /* end confdefs.h. */ 25552 /* end confdefs.h. */
13034 void fred (int *restrict x); 25553 void fred (int *restrict x);
13035 int 25554 int
13036 main () 25555 main ()
13037 { 25556 {
13038 25557
13039 ; 25558 ;
13040 return 0; 25559 return 0;
13041 } 25560 }
13042 _ACEOF 25561 _ACEOF
13043 if ac_fn_c_try_compile "$LINENO"; then : 25562 rm -f conftest.$ac_objext
25563 if { (ac_try="$ac_compile"
25564 case "(($ac_try" in
25565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25566 *) ac_try_echo=$ac_try;;
25567 esac
25568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25569 $as_echo "$ac_try_echo") >&5
25570 (eval "$ac_compile") 2>conftest.er1
25571 ac_status=$?
25572 grep -v '^ *+' conftest.er1 >conftest.err
25573 rm -f conftest.er1
25574 cat conftest.err >&5
25575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25576 (exit $ac_status); } && {
25577 test -z "$ac_c_werror_flag" ||
25578 test ! -s conftest.err
25579 } && test -s conftest.$ac_objext; then
13044 emacs_cv_c_restrict=yes 25580 emacs_cv_c_restrict=yes
13045 else 25581 else
13046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25582 $as_echo "$as_me: failed program was:" >&5
25583 sed 's/^/| /' conftest.$ac_ext >&5
25584
25585 cat >conftest.$ac_ext <<_ACEOF
25586 /* confdefs.h. */
25587 _ACEOF
25588 cat confdefs.h >>conftest.$ac_ext
25589 cat >>conftest.$ac_ext <<_ACEOF
13047 /* end confdefs.h. */ 25590 /* end confdefs.h. */
13048 void fred (int *__restrict x); 25591 void fred (int *__restrict x);
13049 int 25592 int
13050 main () 25593 main ()
13051 { 25594 {
13052 25595
13053 ; 25596 ;
13054 return 0; 25597 return 0;
13055 } 25598 }
13056 _ACEOF 25599 _ACEOF
13057 if ac_fn_c_try_compile "$LINENO"; then : 25600 rm -f conftest.$ac_objext
25601 if { (ac_try="$ac_compile"
25602 case "(($ac_try" in
25603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25604 *) ac_try_echo=$ac_try;;
25605 esac
25606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25607 $as_echo "$ac_try_echo") >&5
25608 (eval "$ac_compile") 2>conftest.er1
25609 ac_status=$?
25610 grep -v '^ *+' conftest.er1 >conftest.err
25611 rm -f conftest.er1
25612 cat conftest.err >&5
25613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25614 (exit $ac_status); } && {
25615 test -z "$ac_c_werror_flag" ||
25616 test ! -s conftest.err
25617 } && test -s conftest.$ac_objext; then
13058 emacs_cv_c_restrict=__restrict 25618 emacs_cv_c_restrict=__restrict
13059 else 25619 else
13060 emacs_cv_c_restrict=no 25620 $as_echo "$as_me: failed program was:" >&5
13061 fi 25621 sed 's/^/| /' conftest.$ac_ext >&5
25622
25623 emacs_cv_c_restrict=no
25624 fi
25625
13062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13063 fi 25627 fi
25628
13064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13065 fi 25630 fi
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5 25631 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
13067 $as_echo "$emacs_cv_c_restrict" >&6; } 25632 $as_echo "$emacs_cv_c_restrict" >&6; }
13068 case "$emacs_cv_c_restrict" in 25633 case "$emacs_cv_c_restrict" in
13069 yes) emacs_restrict=restrict;; 25634 yes) emacs_restrict=restrict;;
13070 no) emacs_restrict="";; 25635 no) emacs_restrict="";;
13071 *) emacs_restrict="$emacs_cv_c_restrict";; 25636 *) emacs_restrict="$emacs_cv_c_restrict";;
13076 #define __restrict $emacs_restrict 25641 #define __restrict $emacs_restrict
13077 _ACEOF 25642 _ACEOF
13078 25643
13079 fi 25644 fi
13080 25645
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5 25646 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
13082 $as_echo_n "checking for C restricted array declarations... " >&6; } 25647 $as_echo_n "checking for C restricted array declarations... " >&6; }
13083 if test "${emacs_cv_c_restrict_arr+set}" = set; then : 25648 if test "${emacs_cv_c_restrict_arr+set}" = set; then
13084 $as_echo_n "(cached) " >&6 25649 $as_echo_n "(cached) " >&6
13085 else 25650 else
13086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25651 cat >conftest.$ac_ext <<_ACEOF
25652 /* confdefs.h. */
25653 _ACEOF
25654 cat confdefs.h >>conftest.$ac_ext
25655 cat >>conftest.$ac_ext <<_ACEOF
13087 /* end confdefs.h. */ 25656 /* end confdefs.h. */
13088 void fred (int x[__restrict]); 25657 void fred (int x[__restrict]);
13089 int 25658 int
13090 main () 25659 main ()
13091 { 25660 {
13092 25661
13093 ; 25662 ;
13094 return 0; 25663 return 0;
13095 } 25664 }
13096 _ACEOF 25665 _ACEOF
13097 if ac_fn_c_try_compile "$LINENO"; then : 25666 rm -f conftest.$ac_objext
25667 if { (ac_try="$ac_compile"
25668 case "(($ac_try" in
25669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25670 *) ac_try_echo=$ac_try;;
25671 esac
25672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25673 $as_echo "$ac_try_echo") >&5
25674 (eval "$ac_compile") 2>conftest.er1
25675 ac_status=$?
25676 grep -v '^ *+' conftest.er1 >conftest.err
25677 rm -f conftest.er1
25678 cat conftest.err >&5
25679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25680 (exit $ac_status); } && {
25681 test -z "$ac_c_werror_flag" ||
25682 test ! -s conftest.err
25683 } && test -s conftest.$ac_objext; then
13098 emacs_cv_c_restrict_arr=yes 25684 emacs_cv_c_restrict_arr=yes
13099 else 25685 else
13100 emacs_cv_c_restrict_arr=no 25686 $as_echo "$as_me: failed program was:" >&5
13101 fi 25687 sed 's/^/| /' conftest.$ac_ext >&5
25688
25689 emacs_cv_c_restrict_arr=no
25690 fi
25691
13102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13103 fi 25693 fi
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5 25694 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
13105 $as_echo "$emacs_cv_c_restrict_arr" >&6; } 25695 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
13106 if test "$emacs_cv_c_restrict_arr" = yes; then 25696 if test "$emacs_cv_c_restrict_arr" = yes; then
13107 25697
13108 $as_echo "#define __restrict_arr __restrict" >>confdefs.h 25698 cat >>confdefs.h <<\_ACEOF
25699 #define __restrict_arr __restrict
25700 _ACEOF
13109 25701
13110 fi 25702 fi
13111 25703
13112 25704
13113 25705
13117 25709
13118 #### Find out which version of Emacs this is. 25710 #### Find out which version of Emacs this is.
13119 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ 25711 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
13120 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` 25712 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
13121 if test x"${version}" = x; then 25713 if test x"${version}" = x; then
13122 as_fn_error "can't find current emacs version in \`${srcdir}/lisp/version.el'." "$LINENO" 5 25714 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25715 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25716 { (exit 1); exit 1; }; }
13123 fi 25717 fi
13124 if test x"${version}" != x"$PACKAGE_VERSION"; then 25718 if test x"${version}" != x"$PACKAGE_VERSION"; then
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5 25719 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
13126 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;} 25720 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
13127 fi 25721 fi
13128 25722
13129 ### Specify what sort of things we'll be editing into Makefile and config.h. 25723 ### Specify what sort of things we'll be editing into Makefile and config.h.
13130 ### Use configuration here uncanonicalized to avoid exceeding size limits. 25724 ### Use configuration here uncanonicalized to avoid exceeding size limits.
13212 _ACEOF 25806 _ACEOF
13213 25807
13214 25808
13215 if test "${HAVE_X_WINDOWS}" = "yes" ; then 25809 if test "${HAVE_X_WINDOWS}" = "yes" ; then
13216 25810
13217 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h 25811 cat >>confdefs.h <<\_ACEOF
25812 #define HAVE_X_WINDOWS 1
25813 _ACEOF
13218 25814
13219 fi 25815 fi
13220 if test "${USE_X_TOOLKIT}" != "none" ; then 25816 if test "${USE_X_TOOLKIT}" != "none" ; then
13221 25817
13222 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h 25818 cat >>confdefs.h <<\_ACEOF
25819 #define USE_X_TOOLKIT 1
25820 _ACEOF
13223 25821
13224 if test "${USE_X_TOOLKIT}" = "LUCID"; then 25822 if test "${USE_X_TOOLKIT}" = "LUCID"; then
13225 25823
13226 $as_echo "#define USE_LUCID 1" >>confdefs.h 25824 cat >>confdefs.h <<\_ACEOF
25825 #define USE_LUCID 1
25826 _ACEOF
13227 25827
13228 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then 25828 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
13229 25829
13230 $as_echo "#define USE_MOTIF 1" >>confdefs.h 25830 cat >>confdefs.h <<\_ACEOF
25831 #define USE_MOTIF 1
25832 _ACEOF
13231 25833
13232 fi 25834 fi
13233 fi 25835 fi
13234 if test "${HAVE_X11}" = "yes" ; then 25836 if test "${HAVE_X11}" = "yes" ; then
13235 25837
13236 $as_echo "#define HAVE_X11 1" >>confdefs.h 25838 cat >>confdefs.h <<\_ACEOF
25839 #define HAVE_X11 1
25840 _ACEOF
13237 25841
13238 fi 25842 fi
13239 if test "${HAVE_MENUS}" = "yes" ; then 25843 if test "${HAVE_MENUS}" = "yes" ; then
13240 25844
13241 $as_echo "#define HAVE_MENUS 1" >>confdefs.h 25845 cat >>confdefs.h <<\_ACEOF
25846 #define HAVE_MENUS 1
25847 _ACEOF
13242 25848
13243 fi 25849 fi
13244 if test "${GNU_MALLOC}" = "yes" ; then 25850 if test "${GNU_MALLOC}" = "yes" ; then
13245 25851
13246 $as_echo "#define GNU_MALLOC 1" >>confdefs.h 25852 cat >>confdefs.h <<\_ACEOF
25853 #define GNU_MALLOC 1
25854 _ACEOF
13247 25855
13248 fi 25856 fi
13249 if test "${REL_ALLOC}" = "yes" ; then 25857 if test "${REL_ALLOC}" = "yes" ; then
13250 25858
13251 $as_echo "#define REL_ALLOC 1" >>confdefs.h 25859 cat >>confdefs.h <<\_ACEOF
13252 25860 #define REL_ALLOC 1
13253 fi 25861 _ACEOF
25862
25863 fi
25864
25865
13254 25866
13255 25867
13256 25868
13257 25869
13258 #### Report on what we decided to do. 25870 #### Report on what we decided to do.
13289 25901
13290 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}" 25902 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
13291 echo " Does Emacs use -lXpm? ${HAVE_XPM}" 25903 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
13292 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" 25904 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
13293 echo " Does Emacs use -ltiff? ${HAVE_TIFF}" 25905 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
13294 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name" 25906 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
13295 echo " Does Emacs use -lpng? ${HAVE_PNG}" 25907 echo " Does Emacs use -lpng? ${HAVE_PNG}"
13296 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}" 25908 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
13297 echo " Does Emacs use -lgpm? ${HAVE_GPM}" 25909 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
13298 echo " Does Emacs use -ldbus? ${HAVE_DBUS}" 25910 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
13299 echo " Does Emacs use -lgconf? ${HAVE_GCONF}" 25911 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
13353 ## Check if the C preprocessor will convert `..' to `. .'. If so, set 25965 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
13354 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile 25966 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
13355 ## from Makefile.c can correctly provide the arg `-traditional' to the 25967 ## from Makefile.c can correctly provide the arg `-traditional' to the
13356 ## C preprocessor. 25968 ## C preprocessor.
13357 25969
13358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25970 cat >conftest.$ac_ext <<_ACEOF
25971 /* confdefs.h. */
25972 _ACEOF
25973 cat confdefs.h >>conftest.$ac_ext
25974 cat >>conftest.$ac_ext <<_ACEOF
13359 /* end confdefs.h. */ 25975 /* end confdefs.h. */
13360 yes..yes 25976 yes..yes
13361 _ACEOF 25977 _ACEOF
13362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 25978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13363 $EGREP "yes..yes" >/dev/null 2>&1; then : 25979 $EGREP "yes..yes" >/dev/null 2>&1; then
13364 CPP_NEED_TRADITIONAL=no 25980 CPP_NEED_TRADITIONAL=no
13365 else 25981 else
13366 CPP_NEED_TRADITIONAL=yes 25982 CPP_NEED_TRADITIONAL=yes
13367 fi 25983 fi
13368 rm -f conftest* 25984 rm -f conftest*
13397 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 26013 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13398 eval ac_val=\$$ac_var 26014 eval ac_val=\$$ac_var
13399 case $ac_val in #( 26015 case $ac_val in #(
13400 *${as_nl}*) 26016 *${as_nl}*)
13401 case $ac_var in #( 26017 case $ac_var in #(
13402 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 26018 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13403 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 26019 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13404 esac 26020 esac
13405 case $ac_var in #( 26021 case $ac_var in #(
13406 _ | IFS | as_nl) ;; #( 26022 _ | IFS | as_nl) ;; #(
13407 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 26023 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13408 *) { eval $ac_var=; unset $ac_var;} ;; 26024 *) $as_unset $ac_var ;;
13409 esac ;; 26025 esac ;;
13410 esac 26026 esac
13411 done 26027 done
13412 26028
13413 (set) 2>&1 | 26029 (set) 2>&1 |
13414 case $as_nl`(ac_space=' '; set) 2>&1` in #( 26030 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13415 *${as_nl}ac_space=\ *) 26031 *${as_nl}ac_space=\ *)
13416 # `set' does not quote correctly, so add quotes: double-quote 26032 # `set' does not quote correctly, so add quotes (double-quote
13417 # substitution turns \\\\ into \\, and sed turns \\ into \. 26033 # substitution turns \\\\ into \\, and sed turns \\ into \).
13418 sed -n \ 26034 sed -n \
13419 "s/'/'\\\\''/g; 26035 "s/'/'\\\\''/g;
13420 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 26036 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13421 ;; #( 26037 ;; #(
13422 *) 26038 *)
13435 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 26051 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13436 :end' >>confcache 26052 :end' >>confcache
13437 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 26053 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13438 if test -w "$cache_file"; then 26054 if test -w "$cache_file"; then
13439 test "x$cache_file" != "x/dev/null" && 26055 test "x$cache_file" != "x/dev/null" &&
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 26056 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13441 $as_echo "$as_me: updating cache $cache_file" >&6;} 26057 $as_echo "$as_me: updating cache $cache_file" >&6;}
13442 cat confcache >$cache_file 26058 cat confcache >$cache_file
13443 else 26059 else
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 26060 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13445 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 26061 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13446 fi 26062 fi
13447 fi 26063 fi
13448 rm -f confcache 26064 rm -f confcache
13449 26065
13459 # 1. Remove the extension, and $U if already installed. 26075 # 1. Remove the extension, and $U if already installed.
13460 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 26076 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13461 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 26077 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13462 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 26078 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13463 # will be set to the directory where LIBOBJS objects are built. 26079 # will be set to the directory where LIBOBJS objects are built.
13464 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 26080 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13465 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 26081 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13466 done 26082 done
13467 LIBOBJS=$ac_libobjs 26083 LIBOBJS=$ac_libobjs
13468 26084
13469 LTLIBOBJS=$ac_ltlibobjs 26085 LTLIBOBJS=$ac_ltlibobjs
13470 26086
13472 26088
13473 : ${CONFIG_STATUS=./config.status} 26089 : ${CONFIG_STATUS=./config.status}
13474 ac_write_fail=0 26090 ac_write_fail=0
13475 ac_clean_files_save=$ac_clean_files 26091 ac_clean_files_save=$ac_clean_files
13476 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 26092 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 26093 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13478 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 26094 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13479 as_write_fail=0 26095 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13480 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13481 #! $SHELL 26096 #! $SHELL
13482 # Generated by $as_me. 26097 # Generated by $as_me.
13483 # Run this file to recreate the current configuration. 26098 # Run this file to recreate the current configuration.
13484 # Compiler output produced by configure, useful for debugging 26099 # Compiler output produced by configure, useful for debugging
13485 # configure, is in config.log if it exists. 26100 # configure, is in config.log if it exists.
13486 26101
13487 debug=false 26102 debug=false
13488 ac_cs_recheck=false 26103 ac_cs_recheck=false
13489 ac_cs_silent=false 26104 ac_cs_silent=false
13490
13491 SHELL=\${CONFIG_SHELL-$SHELL} 26105 SHELL=\${CONFIG_SHELL-$SHELL}
13492 export SHELL 26106 _ACEOF
13493 _ASEOF 26107
13494 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 26108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13495 ## -------------------- ## 26109 ## --------------------- ##
13496 ## M4sh Initialization. ## 26110 ## M4sh Initialization. ##
13497 ## -------------------- ## 26111 ## --------------------- ##
13498 26112
13499 # Be more Bourne compatible 26113 # Be more Bourne compatible
13500 DUALCASE=1; export DUALCASE # for MKS sh 26114 DUALCASE=1; export DUALCASE # for MKS sh
13501 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 26115 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13502 emulate sh 26116 emulate sh
13503 NULLCMD=: 26117 NULLCMD=:
13504 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26118 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13505 # is contrary to our usage. Disable this feature. 26119 # is contrary to our usage. Disable this feature.
13506 alias -g '${1+"$@"}'='"$@"' 26120 alias -g '${1+"$@"}'='"$@"'
13507 setopt NO_GLOB_SUBST 26121 setopt NO_GLOB_SUBST
13508 else 26122 else
13509 case `(set -o) 2>/dev/null` in #( 26123 case `(set -o) 2>/dev/null` in
13510 *posix*) : 26124 *posix*) set -o posix ;;
13511 set -o posix ;; #( 26125 esac
13512 *) : 26126
13513 ;; 26127 fi
13514 esac 26128
13515 fi 26129
13516 26130
26131
26132 # PATH needs CR
26133 # Avoid depending upon Character Ranges.
26134 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26135 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26136 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26137 as_cr_digits='0123456789'
26138 as_cr_alnum=$as_cr_Letters$as_cr_digits
13517 26139
13518 as_nl=' 26140 as_nl='
13519 ' 26141 '
13520 export as_nl 26142 export as_nl
13521 # Printing a long string crashes Solaris 7 /usr/bin/printf. 26143 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13522 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 26144 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13523 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 26145 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13524 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 26146 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13525 # Prefer a ksh shell builtin over an external printf program on Solaris, 26147 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13526 # but without wasting forks for bash or zsh.
13527 if test -z "$BASH_VERSION$ZSH_VERSION" \
13528 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13529 as_echo='print -r --'
13530 as_echo_n='print -rn --'
13531 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13532 as_echo='printf %s\n' 26148 as_echo='printf %s\n'
13533 as_echo_n='printf %s' 26149 as_echo_n='printf %s'
13534 else 26150 else
13535 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 26151 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13536 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 26152 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13537 as_echo_n='/usr/ucb/echo -n' 26153 as_echo_n='/usr/ucb/echo -n'
13538 else 26154 else
13539 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 26155 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13540 as_echo_n_body='eval 26156 as_echo_n_body='eval
13541 arg=$1; 26157 arg=$1;
13542 case $arg in #( 26158 case $arg in
13543 *"$as_nl"*) 26159 *"$as_nl"*)
13544 expr "X$arg" : "X\\(.*\\)$as_nl"; 26160 expr "X$arg" : "X\\(.*\\)$as_nl";
13545 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 26161 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13546 esac; 26162 esac;
13547 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 26163 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13560 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 26176 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13561 PATH_SEPARATOR=';' 26177 PATH_SEPARATOR=';'
13562 } 26178 }
13563 fi 26179 fi
13564 26180
26181 # Support unset when possible.
26182 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26183 as_unset=unset
26184 else
26185 as_unset=false
26186 fi
26187
13565 26188
13566 # IFS 26189 # IFS
13567 # We need space, tab and new line, in precisely that order. Quoting is 26190 # We need space, tab and new line, in precisely that order. Quoting is
13568 # there to prevent editors from complaining about space-tab. 26191 # there to prevent editors from complaining about space-tab.
13569 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 26192 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13570 # splitting by setting IFS to empty value.) 26193 # splitting by setting IFS to empty value.)
13571 IFS=" "" $as_nl" 26194 IFS=" "" $as_nl"
13572 26195
13573 # Find who we are. Look in the path if we contain no directory separator. 26196 # Find who we are. Look in the path if we contain no directory separator.
13574 case $0 in #(( 26197 case $0 in
13575 *[\\/]* ) as_myself=$0 ;; 26198 *[\\/]* ) as_myself=$0 ;;
13576 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26199 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13577 for as_dir in $PATH 26200 for as_dir in $PATH
13578 do 26201 do
13579 IFS=$as_save_IFS 26202 IFS=$as_save_IFS
13580 test -z "$as_dir" && as_dir=. 26203 test -z "$as_dir" && as_dir=.
13581 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 26204 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13582 done 26205 done
13583 IFS=$as_save_IFS 26206 IFS=$as_save_IFS
13584 26207
13585 ;; 26208 ;;
13586 esac 26209 esac
13587 # We did not find ourselves, most probably we were run as `sh COMMAND' 26210 # We did not find ourselves, most probably we were run as `sh COMMAND'
13589 if test "x$as_myself" = x; then 26212 if test "x$as_myself" = x; then
13590 as_myself=$0 26213 as_myself=$0
13591 fi 26214 fi
13592 if test ! -f "$as_myself"; then 26215 if test ! -f "$as_myself"; then
13593 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 26216 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13594 exit 1 26217 { (exit 1); exit 1; }
13595 fi 26218 fi
13596 26219
13597 # Unset variables that we do not need and which cause bugs (e.g. in 26220 # Work around bugs in pre-3.0 UWIN ksh.
13598 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 26221 for as_var in ENV MAIL MAILPATH
13599 # suppresses any "Segmentation fault" message there. '((' could 26222 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13600 # trigger a bug in pdksh 5.2.14.
13601 for as_var in BASH_ENV ENV MAIL MAILPATH
13602 do eval test x\${$as_var+set} = xset \
13603 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13604 done 26223 done
13605 PS1='$ ' 26224 PS1='$ '
13606 PS2='> ' 26225 PS2='> '
13607 PS4='+ ' 26226 PS4='+ '
13608 26227
13610 LC_ALL=C 26229 LC_ALL=C
13611 export LC_ALL 26230 export LC_ALL
13612 LANGUAGE=C 26231 LANGUAGE=C
13613 export LANGUAGE 26232 export LANGUAGE
13614 26233
13615 # CDPATH. 26234 # Required to use basename.
13616 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13617
13618
13619 # as_fn_error ERROR [LINENO LOG_FD]
13620 # ---------------------------------
13621 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13622 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13623 # script with status $?, using 1 if that was 0.
13624 as_fn_error ()
13625 {
13626 as_status=$?; test $as_status -eq 0 && as_status=1
13627 if test "$3"; then
13628 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13629 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13630 fi
13631 $as_echo "$as_me: error: $1" >&2
13632 as_fn_exit $as_status
13633 } # as_fn_error
13634
13635
13636 # as_fn_set_status STATUS
13637 # -----------------------
13638 # Set $? to STATUS, without forking.
13639 as_fn_set_status ()
13640 {
13641 return $1
13642 } # as_fn_set_status
13643
13644 # as_fn_exit STATUS
13645 # -----------------
13646 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13647 as_fn_exit ()
13648 {
13649 set +e
13650 as_fn_set_status $1
13651 exit $1
13652 } # as_fn_exit
13653
13654 # as_fn_unset VAR
13655 # ---------------
13656 # Portably unset VAR.
13657 as_fn_unset ()
13658 {
13659 { eval $1=; unset $1;}
13660 }
13661 as_unset=as_fn_unset
13662 # as_fn_append VAR VALUE
13663 # ----------------------
13664 # Append the text in VALUE to the end of the definition contained in VAR. Take
13665 # advantage of any shell optimizations that allow amortized linear growth over
13666 # repeated appends, instead of the typical quadratic growth present in naive
13667 # implementations.
13668 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13669 eval 'as_fn_append ()
13670 {
13671 eval $1+=\$2
13672 }'
13673 else
13674 as_fn_append ()
13675 {
13676 eval $1=\$$1\$2
13677 }
13678 fi # as_fn_append
13679
13680 # as_fn_arith ARG...
13681 # ------------------
13682 # Perform arithmetic evaluation on the ARGs, and store the result in the
13683 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13684 # must be portable across $(()) and expr.
13685 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13686 eval 'as_fn_arith ()
13687 {
13688 as_val=$(( $* ))
13689 }'
13690 else
13691 as_fn_arith ()
13692 {
13693 as_val=`expr "$@" || test $? -eq 1`
13694 }
13695 fi # as_fn_arith
13696
13697
13698 if expr a : '\(a\)' >/dev/null 2>&1 && 26235 if expr a : '\(a\)' >/dev/null 2>&1 &&
13699 test "X`expr 00001 : '.*\(...\)'`" = X001; then 26236 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13700 as_expr=expr 26237 as_expr=expr
13701 else 26238 else
13702 as_expr=false 26239 as_expr=false
13706 as_basename=basename 26243 as_basename=basename
13707 else 26244 else
13708 as_basename=false 26245 as_basename=false
13709 fi 26246 fi
13710 26247
13711 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 26248
13712 as_dirname=dirname 26249 # Name of the executable.
13713 else
13714 as_dirname=false
13715 fi
13716
13717 as_me=`$as_basename -- "$0" || 26250 as_me=`$as_basename -- "$0" ||
13718 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 26251 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13719 X"$0" : 'X\(//\)$' \| \ 26252 X"$0" : 'X\(//\)$' \| \
13720 X"$0" : 'X\(/\)' \| . 2>/dev/null || 26253 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13721 $as_echo X/"$0" | 26254 $as_echo X/"$0" |
13731 s//\1/ 26264 s//\1/
13732 q 26265 q
13733 } 26266 }
13734 s/.*/./; q'` 26267 s/.*/./; q'`
13735 26268
13736 # Avoid depending upon Character Ranges. 26269 # CDPATH.
13737 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 26270 $as_unset CDPATH
13738 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 26271
13739 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 26272
13740 as_cr_digits='0123456789' 26273
13741 as_cr_alnum=$as_cr_Letters$as_cr_digits 26274 as_lineno_1=$LINENO
26275 as_lineno_2=$LINENO
26276 test "x$as_lineno_1" != "x$as_lineno_2" &&
26277 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26278
26279 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26280 # uniformly replaced by the line number. The first 'sed' inserts a
26281 # line-number line after each line using $LINENO; the second 'sed'
26282 # does the real work. The second script uses 'N' to pair each
26283 # line-number line with the line containing $LINENO, and appends
26284 # trailing '-' during substitution so that $LINENO is not a special
26285 # case at line end.
26286 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26287 # scripts with optimization help from Paolo Bonzini. Blame Lee
26288 # E. McMahon (1931-1989) for sed's syntax. :-)
26289 sed -n '
26290 p
26291 /[$]LINENO/=
26292 ' <$as_myself |
26293 sed '
26294 s/[$]LINENO.*/&-/
26295 t lineno
26296 b
26297 :lineno
26298 N
26299 :loop
26300 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26301 t loop
26302 s/-\n.*//
26303 ' >$as_me.lineno &&
26304 chmod +x "$as_me.lineno" ||
26305 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26306 { (exit 1); exit 1; }; }
26307
26308 # Don't try to exec as it changes $[0], causing all sort of problems
26309 # (the dirname of $[0] is not the place where we might find the
26310 # original and so on. Autoconf is especially sensitive to this).
26311 . "./$as_me.lineno"
26312 # Exit status is that of the last command.
26313 exit
26314 }
26315
26316
26317 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26318 as_dirname=dirname
26319 else
26320 as_dirname=false
26321 fi
13742 26322
13743 ECHO_C= ECHO_N= ECHO_T= 26323 ECHO_C= ECHO_N= ECHO_T=
13744 case `echo -n x` in #((((( 26324 case `echo -n x` in
13745 -n*) 26325 -n*)
13746 case `echo 'xy\c'` in 26326 case `echo 'x\c'` in
13747 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 26327 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13748 xy) ECHO_C='\c';; 26328 *) ECHO_C='\c';;
13749 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13750 ECHO_T=' ';;
13751 esac;; 26329 esac;;
13752 *) 26330 *)
13753 ECHO_N='-n';; 26331 ECHO_N='-n';;
13754 esac 26332 esac
26333 if expr a : '\(a\)' >/dev/null 2>&1 &&
26334 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26335 as_expr=expr
26336 else
26337 as_expr=false
26338 fi
13755 26339
13756 rm -f conf$$ conf$$.exe conf$$.file 26340 rm -f conf$$ conf$$.exe conf$$.file
13757 if test -d conf$$.dir; then 26341 if test -d conf$$.dir; then
13758 rm -f conf$$.dir/conf$$.file 26342 rm -f conf$$.dir/conf$$.file
13759 else 26343 else
13778 as_ln_s='cp -p' 26362 as_ln_s='cp -p'
13779 fi 26363 fi
13780 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 26364 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13781 rmdir conf$$.dir 2>/dev/null 26365 rmdir conf$$.dir 2>/dev/null
13782 26366
13783
13784 # as_fn_mkdir_p
13785 # -------------
13786 # Create "$as_dir" as a directory, including parents if necessary.
13787 as_fn_mkdir_p ()
13788 {
13789
13790 case $as_dir in #(
13791 -*) as_dir=./$as_dir;;
13792 esac
13793 test -d "$as_dir" || eval $as_mkdir_p || {
13794 as_dirs=
13795 while :; do
13796 case $as_dir in #(
13797 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13798 *) as_qdir=$as_dir;;
13799 esac
13800 as_dirs="'$as_qdir' $as_dirs"
13801 as_dir=`$as_dirname -- "$as_dir" ||
13802 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13803 X"$as_dir" : 'X\(//\)[^/]' \| \
13804 X"$as_dir" : 'X\(//\)$' \| \
13805 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13806 $as_echo X"$as_dir" |
13807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13808 s//\1/
13809 q
13810 }
13811 /^X\(\/\/\)[^/].*/{
13812 s//\1/
13813 q
13814 }
13815 /^X\(\/\/\)$/{
13816 s//\1/
13817 q
13818 }
13819 /^X\(\/\).*/{
13820 s//\1/
13821 q
13822 }
13823 s/.*/./; q'`
13824 test -d "$as_dir" && break
13825 done
13826 test -z "$as_dirs" || eval "mkdir $as_dirs"
13827 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13828
13829
13830 } # as_fn_mkdir_p
13831 if mkdir -p . 2>/dev/null; then 26367 if mkdir -p . 2>/dev/null; then
13832 as_mkdir_p='mkdir -p "$as_dir"' 26368 as_mkdir_p=:
13833 else 26369 else
13834 test -d ./-p && rmdir ./-p 26370 test -d ./-p && rmdir ./-p
13835 as_mkdir_p=false 26371 as_mkdir_p=false
13836 fi 26372 fi
13837 26373
13846 as_test_x=' 26382 as_test_x='
13847 eval sh -c '\'' 26383 eval sh -c '\''
13848 if test -d "$1"; then 26384 if test -d "$1"; then
13849 test -d "$1/."; 26385 test -d "$1/.";
13850 else 26386 else
13851 case $1 in #( 26387 case $1 in
13852 -*)set "./$1";; 26388 -*)set "./$1";;
13853 esac; 26389 esac;
13854 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 26390 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13855 ???[sx]*):;;*)false;;esac;fi 26391 ???[sx]*):;;*)false;;esac;fi
13856 '\'' sh 26392 '\'' sh
13857 ' 26393 '
13858 fi 26394 fi
13859 as_executable_p=$as_test_x 26395 as_executable_p=$as_test_x
13864 # Sed expression to map a string onto a valid variable name. 26400 # Sed expression to map a string onto a valid variable name.
13865 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 26401 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13866 26402
13867 26403
13868 exec 6>&1 26404 exec 6>&1
13869 ## ----------------------------------- ## 26405
13870 ## Main body of $CONFIG_STATUS script. ## 26406 # Save the log message, to keep $[0] and so on meaningful, and to
13871 ## ----------------------------------- ##
13872 _ASEOF
13873 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13874
13875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13876 # Save the log message, to keep $0 and so on meaningful, and to
13877 # report actual input values of CONFIG_FILES etc. instead of their 26407 # report actual input values of CONFIG_FILES etc. instead of their
13878 # values after options handling. 26408 # values after options handling.
13879 ac_log=" 26409 ac_log="
13880 This file was extended by emacs $as_me 24.0.50, which was 26410 This file was extended by emacs $as_me 24.0.50, which was
13881 generated by GNU Autoconf 2.64. Invocation command line was 26411 generated by GNU Autoconf 2.62. Invocation command line was
13882 26412
13883 CONFIG_FILES = $CONFIG_FILES 26413 CONFIG_FILES = $CONFIG_FILES
13884 CONFIG_HEADERS = $CONFIG_HEADERS 26414 CONFIG_HEADERS = $CONFIG_HEADERS
13885 CONFIG_LINKS = $CONFIG_LINKS 26415 CONFIG_LINKS = $CONFIG_LINKS
13886 CONFIG_COMMANDS = $CONFIG_COMMANDS 26416 CONFIG_COMMANDS = $CONFIG_COMMANDS
13889 on `(hostname || uname -n) 2>/dev/null | sed 1q` 26419 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13890 " 26420 "
13891 26421
13892 _ACEOF 26422 _ACEOF
13893 26423
13894 case $ac_config_files in *"
13895 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13896 esac
13897
13898 case $ac_config_headers in *"
13899 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13900 esac
13901
13902
13903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13904 # Files that config.status was made for. 26425 # Files that config.status was made for.
13905 config_files="$ac_config_files" 26426 config_files="$ac_config_files"
13906 config_headers="$ac_config_headers" 26427 config_headers="$ac_config_headers"
13907 config_commands="$ac_config_commands" 26428 config_commands="$ac_config_commands"
13908 26429
13909 _ACEOF 26430 _ACEOF
13910 26431
13911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13912 ac_cs_usage="\ 26433 ac_cs_usage="\
13913 \`$as_me' instantiates files and other configuration actions 26434 \`$as_me' instantiates files from templates according to the
13914 from templates according to the current configuration. Unless the files 26435 current configuration.
13915 and actions are specified as TAGs, all are instantiated by default. 26436
13916 26437 Usage: $0 [OPTIONS] [FILE]...
13917 Usage: $0 [OPTION]... [TAG]...
13918 26438
13919 -h, --help print this help, then exit 26439 -h, --help print this help, then exit
13920 -V, --version print version number and configuration settings, then exit 26440 -V, --version print version number and configuration settings, then exit
13921 -q, --quiet, --silent 26441 -q, --quiet do not print progress messages
13922 do not print progress messages
13923 -d, --debug don't remove temporary files 26442 -d, --debug don't remove temporary files
13924 --recheck update $as_me by reconfiguring in the same conditions 26443 --recheck update $as_me by reconfiguring in the same conditions
13925 --file=FILE[:TEMPLATE] 26444 --file=FILE[:TEMPLATE]
13926 instantiate the configuration file FILE 26445 instantiate the configuration file FILE
13927 --header=FILE[:TEMPLATE] 26446 --header=FILE[:TEMPLATE]
13928 instantiate the configuration header FILE 26447 instantiate the configuration header FILE
13929 26448
13930 Configuration files: 26449 Configuration files:
13931 $config_files 26450 $config_files
13932 26451
13934 $config_headers 26453 $config_headers
13935 26454
13936 Configuration commands: 26455 Configuration commands:
13937 $config_commands 26456 $config_commands
13938 26457
13939 Report bugs to the package provider." 26458 Report bugs to <bug-autoconf@gnu.org>."
13940 26459
13941 _ACEOF 26460 _ACEOF
13942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13943 ac_cs_version="\\ 26462 ac_cs_version="\\
13944 emacs config.status 24.0.50 26463 emacs config.status 24.0.50
13945 configured by $0, generated by GNU Autoconf 2.64, 26464 configured by $0, generated by GNU Autoconf 2.62,
13946 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 26465 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13947 26466
13948 Copyright (C) 2009 Free Software Foundation, Inc. 26467 Copyright (C) 2008 Free Software Foundation, Inc.
13949 This config.status script is free software; the Free Software Foundation 26468 This config.status script is free software; the Free Software Foundation
13950 gives unlimited permission to copy, distribute and modify it." 26469 gives unlimited permission to copy, distribute and modify it."
13951 26470
13952 ac_pwd='$ac_pwd' 26471 ac_pwd='$ac_pwd'
13953 srcdir='$srcdir' 26472 srcdir='$srcdir'
13984 --file | --fil | --fi | --f ) 26503 --file | --fil | --fi | --f )
13985 $ac_shift 26504 $ac_shift
13986 case $ac_optarg in 26505 case $ac_optarg in
13987 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 26506 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13988 esac 26507 esac
13989 as_fn_append CONFIG_FILES " '$ac_optarg'" 26508 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13990 ac_need_defaults=false;; 26509 ac_need_defaults=false;;
13991 --header | --heade | --head | --hea ) 26510 --header | --heade | --head | --hea )
13992 $ac_shift 26511 $ac_shift
13993 case $ac_optarg in 26512 case $ac_optarg in
13994 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 26513 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13995 esac 26514 esac
13996 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 26515 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13997 ac_need_defaults=false;; 26516 ac_need_defaults=false;;
13998 --he | --h) 26517 --he | --h)
13999 # Conflict between --help and --header 26518 # Conflict between --help and --header
14000 as_fn_error "ambiguous option: \`$1' 26519 { $as_echo "$as_me: error: ambiguous option: $1
14001 Try \`$0 --help' for more information.";; 26520 Try \`$0 --help' for more information." >&2
26521 { (exit 1); exit 1; }; };;
14002 --help | --hel | -h ) 26522 --help | --hel | -h )
14003 $as_echo "$ac_cs_usage"; exit ;; 26523 $as_echo "$ac_cs_usage"; exit ;;
14004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 26524 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14005 | -silent | --silent | --silen | --sile | --sil | --si | --s) 26525 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14006 ac_cs_silent=: ;; 26526 ac_cs_silent=: ;;
14007 26527
14008 # This is an error. 26528 # This is an error.
14009 -*) as_fn_error "unrecognized option: \`$1' 26529 -*) { $as_echo "$as_me: error: unrecognized option: $1
14010 Try \`$0 --help' for more information." ;; 26530 Try \`$0 --help' for more information." >&2
14011 26531 { (exit 1); exit 1; }; } ;;
14012 *) as_fn_append ac_config_targets " $1" 26532
26533 *) ac_config_targets="$ac_config_targets $1"
14013 ac_need_defaults=false ;; 26534 ac_need_defaults=false ;;
14014 26535
14015 esac 26536 esac
14016 shift 26537 shift
14017 done 26538 done
14072 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; 26593 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
14073 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; 26594 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
14074 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; 26595 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
14075 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 26596 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14076 26597
14077 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 26598 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26599 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26600 { (exit 1); exit 1; }; };;
14078 esac 26601 esac
14079 done 26602 done
14080 26603
14081 26604
14082 # If the user did not use the arguments to specify the items to instantiate, 26605 # If the user did not use the arguments to specify the items to instantiate,
14099 { 26622 {
14100 tmp= 26623 tmp=
14101 trap 'exit_status=$? 26624 trap 'exit_status=$?
14102 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 26625 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14103 ' 0 26626 ' 0
14104 trap 'as_fn_exit 1' 1 2 13 15 26627 trap '{ (exit 1); exit 1; }' 1 2 13 15
14105 } 26628 }
14106 # Create a (secure) tmp directory for tmp files. 26629 # Create a (secure) tmp directory for tmp files.
14107 26630
14108 { 26631 {
14109 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 26632 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14110 test -n "$tmp" && test -d "$tmp" 26633 test -n "$tmp" && test -d "$tmp"
14111 } || 26634 } ||
14112 { 26635 {
14113 tmp=./conf$$-$RANDOM 26636 tmp=./conf$$-$RANDOM
14114 (umask 077 && mkdir "$tmp") 26637 (umask 077 && mkdir "$tmp")
14115 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 26638 } ||
26639 {
26640 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26641 { (exit 1); exit 1; }
26642 }
14116 26643
14117 # Set up the scripts for CONFIG_FILES section. 26644 # Set up the scripts for CONFIG_FILES section.
14118 # No need to generate them if there are no CONFIG_FILES. 26645 # No need to generate them if there are no CONFIG_FILES.
14119 # This happens for instance with `./config.status config.h'. 26646 # This happens for instance with `./config.status config.h'.
14120 if test -n "$CONFIG_FILES"; then 26647 if test -n "$CONFIG_FILES"; then
14121 26648
14122 26649
14123 ac_cr=`echo X | tr X '\015'` 26650 ac_cr='
14124 # On cygwin, bash can eat \r inside `` if the user requested igncr. 26651 '
14125 # But we know of no other shell where ac_cr would be empty at this
14126 # point, so we can use a bashism as a fallback.
14127 if test "x$ac_cr" = x; then
14128 eval ac_cr=\$\'\\r\'
14129 fi
14130 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 26652 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14131 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 26653 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14132 ac_cs_awk_cr='\r' 26654 ac_cs_awk_cr='\\r'
14133 else 26655 else
14134 ac_cs_awk_cr=$ac_cr 26656 ac_cs_awk_cr=$ac_cr
14135 fi 26657 fi
14136 26658
14137 echo 'BEGIN {' >"$tmp/subs1.awk" && 26659 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14141 { 26663 {
14142 echo "cat >conf$$subs.awk <<_ACEOF" && 26664 echo "cat >conf$$subs.awk <<_ACEOF" &&
14143 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 26665 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14144 echo "_ACEOF" 26666 echo "_ACEOF"
14145 } >conf$$subs.sh || 26667 } >conf$$subs.sh ||
14146 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 26668 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26669 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26670 { (exit 1); exit 1; }; }
14147 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 26671 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14148 ac_delim='%!_!# ' 26672 ac_delim='%!_!# '
14149 for ac_last_try in false false false false false :; do 26673 for ac_last_try in false false false false false :; do
14150 . ./conf$$subs.sh || 26674 . ./conf$$subs.sh ||
14151 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 26675 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14152 26676 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14153 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 26677 { (exit 1); exit 1; }; }
14154 if test $ac_delim_n = $ac_delim_num; then 26678
26679 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
14155 break 26680 break
14156 elif $ac_last_try; then 26681 elif $ac_last_try; then
14157 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 26682 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26683 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26684 { (exit 1); exit 1; }; }
14158 else 26685 else
14159 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 26686 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14160 fi 26687 fi
14161 done 26688 done
14162 rm -f conf$$subs.sh 26689 rm -f conf$$subs.sh
14241 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 26768 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14242 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 26769 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14243 else 26770 else
14244 cat 26771 cat
14245 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 26772 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14246 || as_fn_error "could not setup config files machinery" "$LINENO" 5 26773 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
26774 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
26775 { (exit 1); exit 1; }; }
14247 _ACEOF 26776 _ACEOF
14248 26777
14249 # VPATH may cause trouble with some makes, so we remove $(srcdir), 26778 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14250 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 26779 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14251 # trailing colons and then remove the whole line if VPATH becomes empty 26780 # trailing colons and then remove the whole line if VPATH becomes empty
14282 for ac_last_try in false false :; do 26811 for ac_last_try in false false :; do
14283 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 26812 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14284 if test -z "$ac_t"; then 26813 if test -z "$ac_t"; then
14285 break 26814 break
14286 elif $ac_last_try; then 26815 elif $ac_last_try; then
14287 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 26816 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
26817 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
26818 { (exit 1); exit 1; }; }
14288 else 26819 else
14289 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 26820 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14290 fi 26821 fi
14291 done 26822 done
14292 26823
14348 defundef = substr(arg[1], 2) 26879 defundef = substr(arg[1], 2)
14349 mac1 = arg[2] 26880 mac1 = arg[2]
14350 } 26881 }
14351 split(mac1, mac2, "(") #) 26882 split(mac1, mac2, "(") #)
14352 macro = mac2[1] 26883 macro = mac2[1]
14353 prefix = substr(line, 1, index(line, defundef) - 1)
14354 if (D_is_set[macro]) { 26884 if (D_is_set[macro]) {
14355 # Preserve the white space surrounding the "#". 26885 # Preserve the white space surrounding the "#".
26886 prefix = substr(line, 1, index(line, defundef) - 1)
14356 print prefix "define", macro P[macro] D[macro] 26887 print prefix "define", macro P[macro] D[macro]
14357 next 26888 next
14358 } else { 26889 } else {
14359 # Replace #undef with comments. This is necessary, for example, 26890 # Replace #undef with comments. This is necessary, for example,
14360 # in the case of _POSIX_SOURCE, which is predefined and required 26891 # in the case of _POSIX_SOURCE, which is predefined and required
14361 # on some systems where configure will not decide to define it. 26892 # on some systems where configure will not decide to define it.
14362 if (defundef == "undef") { 26893 if (defundef == "undef") {
14363 print "/*", prefix defundef, macro, "*/" 26894 print "/*", line, "*/"
14364 next 26895 next
14365 } 26896 }
14366 } 26897 }
14367 } 26898 }
14368 { print } 26899 { print }
14369 _ACAWK 26900 _ACAWK
14370 _ACEOF 26901 _ACEOF
14371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14372 as_fn_error "could not setup config headers machinery" "$LINENO" 5 26903 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26904 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26905 { (exit 1); exit 1; }; }
14373 fi # test -n "$CONFIG_HEADERS" 26906 fi # test -n "$CONFIG_HEADERS"
14374 26907
14375 26908
14376 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 26909 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14377 shift 26910 shift
14380 case $ac_tag in 26913 case $ac_tag in
14381 :[FHLC]) ac_mode=$ac_tag; continue;; 26914 :[FHLC]) ac_mode=$ac_tag; continue;;
14382 esac 26915 esac
14383 case $ac_mode$ac_tag in 26916 case $ac_mode$ac_tag in
14384 :[FHL]*:*);; 26917 :[FHL]*:*);;
14385 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 26918 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26919 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26920 { (exit 1); exit 1; }; };;
14386 :[FH]-) ac_tag=-:-;; 26921 :[FH]-) ac_tag=-:-;;
14387 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 26922 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14388 esac 26923 esac
14389 ac_save_IFS=$IFS 26924 ac_save_IFS=$IFS
14390 IFS=: 26925 IFS=:
14408 test -f "$ac_f" || 26943 test -f "$ac_f" ||
14409 case $ac_f in 26944 case $ac_f in
14410 [\\/$]*) false;; 26945 [\\/$]*) false;;
14411 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 26946 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14412 esac || 26947 esac ||
14413 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 26948 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26949 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26950 { (exit 1); exit 1; }; };;
14414 esac 26951 esac
14415 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 26952 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14416 as_fn_append ac_file_inputs " '$ac_f'" 26953 ac_file_inputs="$ac_file_inputs '$ac_f'"
14417 done 26954 done
14418 26955
14419 # Let's still pretend it is `configure' which instantiates (i.e., don't 26956 # Let's still pretend it is `configure' which instantiates (i.e., don't
14420 # use $as_me), people would be surprised to read: 26957 # use $as_me), people would be surprised to read:
14421 # /* config.h. Generated by config.status. */ 26958 # /* config.h. Generated by config.status. */
14422 configure_input='Generated from '` 26959 configure_input='Generated from '`
14423 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 26960 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14424 `' by configure.' 26961 `' by configure.'
14425 if test x"$ac_file" != x-; then 26962 if test x"$ac_file" != x-; then
14426 configure_input="$ac_file. $configure_input" 26963 configure_input="$ac_file. $configure_input"
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 26964 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14428 $as_echo "$as_me: creating $ac_file" >&6;} 26965 $as_echo "$as_me: creating $ac_file" >&6;}
14429 fi 26966 fi
14430 # Neutralize special characters interpreted by sed in replacement strings. 26967 # Neutralize special characters interpreted by sed in replacement strings.
14431 case $configure_input in #( 26968 case $configure_input in #(
14432 *\&* | *\|* | *\\* ) 26969 *\&* | *\|* | *\\* )
14435 *) ac_sed_conf_input=$configure_input;; 26972 *) ac_sed_conf_input=$configure_input;;
14436 esac 26973 esac
14437 26974
14438 case $ac_tag in 26975 case $ac_tag in
14439 *:-:* | *:-) cat >"$tmp/stdin" \ 26976 *:-:* | *:-) cat >"$tmp/stdin" \
14440 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 26977 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26978 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26979 { (exit 1); exit 1; }; } ;;
14441 esac 26980 esac
14442 ;; 26981 ;;
14443 esac 26982 esac
14444 26983
14445 ac_dir=`$as_dirname -- "$ac_file" || 26984 ac_dir=`$as_dirname -- "$ac_file" ||
14463 /^X\(\/\).*/{ 27002 /^X\(\/\).*/{
14464 s//\1/ 27003 s//\1/
14465 q 27004 q
14466 } 27005 }
14467 s/.*/./; q'` 27006 s/.*/./; q'`
14468 as_dir="$ac_dir"; as_fn_mkdir_p 27007 { as_dir="$ac_dir"
27008 case $as_dir in #(
27009 -*) as_dir=./$as_dir;;
27010 esac
27011 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27012 as_dirs=
27013 while :; do
27014 case $as_dir in #(
27015 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27016 *) as_qdir=$as_dir;;
27017 esac
27018 as_dirs="'$as_qdir' $as_dirs"
27019 as_dir=`$as_dirname -- "$as_dir" ||
27020 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27021 X"$as_dir" : 'X\(//\)[^/]' \| \
27022 X"$as_dir" : 'X\(//\)$' \| \
27023 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27024 $as_echo X"$as_dir" |
27025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27026 s//\1/
27027 q
27028 }
27029 /^X\(\/\/\)[^/].*/{
27030 s//\1/
27031 q
27032 }
27033 /^X\(\/\/\)$/{
27034 s//\1/
27035 q
27036 }
27037 /^X\(\/\).*/{
27038 s//\1/
27039 q
27040 }
27041 s/.*/./; q'`
27042 test -d "$as_dir" && break
27043 done
27044 test -z "$as_dirs" || eval "mkdir $as_dirs"
27045 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27046 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27047 { (exit 1); exit 1; }; }; }
14469 ac_builddir=. 27048 ac_builddir=.
14470 27049
14471 case "$ac_dir" in 27050 case "$ac_dir" in
14472 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 27051 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14473 *) 27052 *)
14515 27094
14516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14517 # If the template does not know about datarootdir, expand it. 27096 # If the template does not know about datarootdir, expand it.
14518 # FIXME: This hack should be removed a few years after 2.60. 27097 # FIXME: This hack should be removed a few years after 2.60.
14519 ac_datarootdir_hack=; ac_datarootdir_seen= 27098 ac_datarootdir_hack=; ac_datarootdir_seen=
27099
14520 ac_sed_dataroot=' 27100 ac_sed_dataroot='
14521 /datarootdir/ { 27101 /datarootdir/ {
14522 p 27102 p
14523 q 27103 q
14524 } 27104 }
14525 /@datadir@/p 27105 /@datadir@/p
14526 /@docdir@/p 27106 /@docdir@/p
14527 /@infodir@/p 27107 /@infodir@/p
14528 /@localedir@/p 27108 /@localedir@/p
14529 /@mandir@/p' 27109 /@mandir@/p
27110 '
14530 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 27111 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14531 *datarootdir*) ac_datarootdir_seen=yes;; 27112 *datarootdir*) ac_datarootdir_seen=yes;;
14532 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 27113 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 27114 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14534 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 27115 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14535 _ACEOF 27116 _ACEOF
14536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14537 ac_datarootdir_hack=' 27118 ac_datarootdir_hack='
14538 s&@datadir@&$datadir&g 27119 s&@datadir@&$datadir&g
14539 s&@docdir@&$docdir&g 27120 s&@docdir@&$docdir&g
14540 s&@infodir@&$infodir&g 27121 s&@infodir@&$infodir&g
14541 s&@localedir@&$localedir&g 27122 s&@localedir@&$localedir&g
14542 s&@mandir@&$mandir&g 27123 s&@mandir@&$mandir&g
14543 s&\\\${datarootdir}&$datarootdir&g' ;; 27124 s&\\\${datarootdir}&$datarootdir&g' ;;
14544 esac 27125 esac
14545 _ACEOF 27126 _ACEOF
14546 27127
14547 # Neutralize VPATH when `$srcdir' = `.'. 27128 # Neutralize VPATH when `$srcdir' = `.'.
14548 # Shell code in configure.ac might set extrasub. 27129 # Shell code in configure.ac might set extrasub.
14566 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 27147 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14567 s&@INSTALL@&$ac_INSTALL&;t t 27148 s&@INSTALL@&$ac_INSTALL&;t t
14568 $ac_datarootdir_hack 27149 $ac_datarootdir_hack
14569 " 27150 "
14570 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 27151 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14571 || as_fn_error "could not create $ac_file" "$LINENO" 5 27152 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27153 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27154 { (exit 1); exit 1; }; }
14572 27155
14573 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 27156 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14574 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 27157 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14575 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 27158 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 27159 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14577 which seems to be undefined. Please make sure it is defined." >&5 27160 which seems to be undefined. Please make sure it is defined." >&5
14578 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 27161 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14579 which seems to be undefined. Please make sure it is defined." >&2;} 27162 which seems to be undefined. Please make sure it is defined." >&2;}
14580 27163
14581 rm -f "$tmp/stdin" 27164 rm -f "$tmp/stdin"
14582 case $ac_file in 27165 case $ac_file in
14583 -) cat "$tmp/out" && rm -f "$tmp/out";; 27166 -) cat "$tmp/out" && rm -f "$tmp/out";;
14584 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 27167 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14585 esac \ 27168 esac \
14586 || as_fn_error "could not create $ac_file" "$LINENO" 5 27169 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27170 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27171 { (exit 1); exit 1; }; }
14587 ;; 27172 ;;
14588 :H) 27173 :H)
14589 # 27174 #
14590 # CONFIG_HEADER 27175 # CONFIG_HEADER
14591 # 27176 #
14592 if test x"$ac_file" != x-; then 27177 if test x"$ac_file" != x-; then
14593 { 27178 {
14594 $as_echo "/* $configure_input */" \ 27179 $as_echo "/* $configure_input */" \
14595 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 27180 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14596 } >"$tmp/config.h" \ 27181 } >"$tmp/config.h" \
14597 || as_fn_error "could not create $ac_file" "$LINENO" 5 27182 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27183 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27184 { (exit 1); exit 1; }; }
14598 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 27185 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 27186 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14600 $as_echo "$as_me: $ac_file is unchanged" >&6;} 27187 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14601 else 27188 else
14602 rm -f "$ac_file" 27189 rm -f "$ac_file"
14603 mv "$tmp/config.h" "$ac_file" \ 27190 mv "$tmp/config.h" "$ac_file" \
14604 || as_fn_error "could not create $ac_file" "$LINENO" 5 27191 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27192 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27193 { (exit 1); exit 1; }; }
14605 fi 27194 fi
14606 else 27195 else
14607 $as_echo "/* $configure_input */" \ 27196 $as_echo "/* $configure_input */" \
14608 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 27197 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14609 || as_fn_error "could not create -" "$LINENO" 5 27198 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27199 $as_echo "$as_me: error: could not create -" >&2;}
27200 { (exit 1); exit 1; }; }
14610 fi 27201 fi
14611 ;; 27202 ;;
14612 27203
14613 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 27204 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14614 $as_echo "$as_me: executing $ac_file commands" >&6;} 27205 $as_echo "$as_me: executing $ac_file commands" >&6;}
14615 ;; 27206 ;;
14616 esac 27207 esac
14617 27208
14618 27209
14679 27270
14680 esac 27271 esac
14681 done # for ac_tag 27272 done # for ac_tag
14682 27273
14683 27274
14684 as_fn_exit 0 27275 { (exit 0); exit 0; }
14685 _ACEOF 27276 _ACEOF
27277 chmod +x $CONFIG_STATUS
14686 ac_clean_files=$ac_clean_files_save 27278 ac_clean_files=$ac_clean_files_save
14687 27279
14688 test $ac_write_fail = 0 || 27280 test $ac_write_fail = 0 ||
14689 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 27281 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27282 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27283 { (exit 1); exit 1; }; }
14690 27284
14691 27285
14692 # configure is writing to config.log, and then calls config.status. 27286 # configure is writing to config.log, and then calls config.status.
14693 # config.status does its own redirection, appending to config.log. 27287 # config.status does its own redirection, appending to config.log.
14694 # Unfortunately, on DOS this fails, as config.log is still kept open 27288 # Unfortunately, on DOS this fails, as config.log is still kept open
14705 exec 5>/dev/null 27299 exec 5>/dev/null
14706 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 27300 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14707 exec 5>>config.log 27301 exec 5>>config.log
14708 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 27302 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14709 # would make configure fail if this is the last instruction. 27303 # would make configure fail if this is the last instruction.
14710 $ac_cs_success || as_fn_exit $? 27304 $ac_cs_success || { (exit 1); exit 1; }
14711 fi 27305 fi
14712 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 27306 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 27307 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
14714 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 27308 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
14715 fi 27309 fi
14716 27310
14717 27311