]> code.delx.au - gnu-emacs/blob - autogen/configure
Auto-commit of generated files.
[gnu-emacs] / autogen / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.3.50.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.3.50'
553 PACKAGE_STRING='emacs 24.3.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
556
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_header_list=
595 ac_func_list=
596 gl_getopt_required=POSIX
597 gl_getopt_required=POSIX
598 ac_subst_vars='gltests_LTLIBOBJS
599 gltests_LIBOBJS
600 gl_LTLIBOBJS
601 gl_LIBOBJS
602 am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 SUBDIR_MAKEFILES_IN
607 WINDOW_SYSTEM_OBJ
608 LIB_GCC
609 LD_FIRSTFLAG
610 LD_SWITCH_SYSTEM_TEMACS
611 LIBGNU_LTLIBDEPS
612 LIBGNU_LIBDEPS
613 gltests_WITNESS
614 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
615 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
616 gl_GNULIB_ENABLED_verify_FALSE
617 gl_GNULIB_ENABLED_verify_TRUE
618 gl_GNULIB_ENABLED_strtoull_FALSE
619 gl_GNULIB_ENABLED_strtoull_TRUE
620 gl_GNULIB_ENABLED_strtoll_FALSE
621 gl_GNULIB_ENABLED_strtoll_TRUE
622 gl_GNULIB_ENABLED_stat_FALSE
623 gl_GNULIB_ENABLED_stat_TRUE
624 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
625 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
626 gl_GNULIB_ENABLED_pathmax_FALSE
627 gl_GNULIB_ENABLED_pathmax_TRUE
628 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
629 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
630 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
631 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
632 gl_GNULIB_ENABLED_getgroups_FALSE
633 gl_GNULIB_ENABLED_getgroups_TRUE
634 gl_GNULIB_ENABLED_euidaccess_FALSE
635 gl_GNULIB_ENABLED_euidaccess_TRUE
636 gl_GNULIB_ENABLED_dosname_FALSE
637 gl_GNULIB_ENABLED_dosname_TRUE
638 LTLIBINTL
639 LIBINTL
640 LIB_EACCESS
641 WINDOWS_64_BIT_OFF_T
642 HAVE_UNISTD_H
643 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
644 NEXT_UNISTD_H
645 LIB_TIMER_TIME
646 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
647 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
648 TIME_H_DEFINES_STRUCT_TIMESPEC
649 NEXT_AS_FIRST_DIRECTIVE_TIME_H
650 NEXT_TIME_H
651 WINDOWS_64_BIT_ST_SIZE
652 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
653 NEXT_SYS_STAT_H
654 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
655 NEXT_STDLIB_H
656 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
657 NEXT_STDIO_H
658 REPLACE_VSPRINTF
659 REPLACE_VSNPRINTF
660 REPLACE_VPRINTF
661 REPLACE_VFPRINTF
662 REPLACE_VDPRINTF
663 REPLACE_VASPRINTF
664 REPLACE_TMPFILE
665 REPLACE_STDIO_WRITE_FUNCS
666 REPLACE_STDIO_READ_FUNCS
667 REPLACE_SPRINTF
668 REPLACE_SNPRINTF
669 REPLACE_RENAMEAT
670 REPLACE_RENAME
671 REPLACE_REMOVE
672 REPLACE_PRINTF
673 REPLACE_POPEN
674 REPLACE_PERROR
675 REPLACE_OBSTACK_PRINTF
676 REPLACE_GETLINE
677 REPLACE_GETDELIM
678 REPLACE_FTELLO
679 REPLACE_FTELL
680 REPLACE_FSEEKO
681 REPLACE_FSEEK
682 REPLACE_FREOPEN
683 REPLACE_FPURGE
684 REPLACE_FPRINTF
685 REPLACE_FOPEN
686 REPLACE_FFLUSH
687 REPLACE_FDOPEN
688 REPLACE_FCLOSE
689 REPLACE_DPRINTF
690 HAVE_VDPRINTF
691 HAVE_VASPRINTF
692 HAVE_RENAMEAT
693 HAVE_POPEN
694 HAVE_PCLOSE
695 HAVE_FTELLO
696 HAVE_FSEEKO
697 HAVE_DPRINTF
698 HAVE_DECL_VSNPRINTF
699 HAVE_DECL_SNPRINTF
700 HAVE_DECL_OBSTACK_PRINTF
701 HAVE_DECL_GETLINE
702 HAVE_DECL_GETDELIM
703 HAVE_DECL_FTELLO
704 HAVE_DECL_FSEEKO
705 HAVE_DECL_FPURGE
706 GNULIB_VSPRINTF_POSIX
707 GNULIB_VSNPRINTF
708 GNULIB_VPRINTF_POSIX
709 GNULIB_VPRINTF
710 GNULIB_VFPRINTF_POSIX
711 GNULIB_VFPRINTF
712 GNULIB_VDPRINTF
713 GNULIB_VSCANF
714 GNULIB_VFSCANF
715 GNULIB_VASPRINTF
716 GNULIB_TMPFILE
717 GNULIB_STDIO_H_SIGPIPE
718 GNULIB_STDIO_H_NONBLOCKING
719 GNULIB_SPRINTF_POSIX
720 GNULIB_SNPRINTF
721 GNULIB_SCANF
722 GNULIB_RENAMEAT
723 GNULIB_RENAME
724 GNULIB_REMOVE
725 GNULIB_PUTS
726 GNULIB_PUTCHAR
727 GNULIB_PUTC
728 GNULIB_PRINTF_POSIX
729 GNULIB_PRINTF
730 GNULIB_POPEN
731 GNULIB_PERROR
732 GNULIB_PCLOSE
733 GNULIB_OBSTACK_PRINTF_POSIX
734 GNULIB_OBSTACK_PRINTF
735 GNULIB_GETLINE
736 GNULIB_GETDELIM
737 GNULIB_GETCHAR
738 GNULIB_GETC
739 GNULIB_FWRITE
740 GNULIB_FTELLO
741 GNULIB_FTELL
742 GNULIB_FSEEKO
743 GNULIB_FSEEK
744 GNULIB_FSCANF
745 GNULIB_FREOPEN
746 GNULIB_FREAD
747 GNULIB_FPUTS
748 GNULIB_FPUTC
749 GNULIB_FPURGE
750 GNULIB_FPRINTF_POSIX
751 GNULIB_FPRINTF
752 GNULIB_FOPEN
753 GNULIB_FGETS
754 GNULIB_FGETC
755 GNULIB_FFLUSH
756 GNULIB_FDOPEN
757 GNULIB_FCLOSE
758 GNULIB_DPRINTF
759 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
760 NEXT_STDDEF_H
761 GL_GENERATE_STDDEF_H_FALSE
762 GL_GENERATE_STDDEF_H_TRUE
763 STDDEF_H
764 HAVE_WCHAR_T
765 REPLACE_NULL
766 HAVE__BOOL
767 GL_GENERATE_STDBOOL_H_FALSE
768 GL_GENERATE_STDBOOL_H_TRUE
769 STDBOOL_H
770 GL_GENERATE_STDARG_H_FALSE
771 GL_GENERATE_STDARG_H_TRUE
772 STDARG_H
773 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
774 NEXT_STDARG_H
775 GL_GENERATE_STDALIGN_H_FALSE
776 GL_GENERATE_STDALIGN_H_TRUE
777 STDALIGN_H
778 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
779 NEXT_SIGNAL_H
780 LIB_PTHREAD_SIGMASK
781 REPLACE_RAISE
782 REPLACE_PTHREAD_SIGMASK
783 HAVE_SIGHANDLER_T
784 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
785 HAVE_STRUCT_SIGACTION_SA_SIGACTION
786 HAVE_SIGACTION
787 HAVE_SIGINFO_T
788 HAVE_SIGSET_T
789 HAVE_RAISE
790 HAVE_PTHREAD_SIGMASK
791 HAVE_POSIX_SIGNALBLOCKING
792 GNULIB_SIGACTION
793 GNULIB_SIGPROCMASK
794 GNULIB_SIGNAL_H_SIGPIPE
795 GNULIB_RAISE
796 GNULIB_PTHREAD_SIGMASK
797 HAVE_SYS_SELECT_H
798 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
799 NEXT_SYS_SELECT_H
800 REPLACE_SELECT
801 REPLACE_PSELECT
802 HAVE_PSELECT
803 GNULIB_SELECT
804 GNULIB_PSELECT
805 REPLACE_TIMEGM
806 REPLACE_NANOSLEEP
807 REPLACE_MKTIME
808 REPLACE_LOCALTIME_R
809 HAVE_TIMEGM
810 HAVE_STRPTIME
811 HAVE_NANOSLEEP
812 HAVE_DECL_LOCALTIME_R
813 GNULIB_TIME_R
814 GNULIB_TIMEGM
815 GNULIB_STRPTIME
816 GNULIB_NANOSLEEP
817 GNULIB_MKTIME
818 REPLACE_UTIMENSAT
819 REPLACE_STAT
820 REPLACE_MKNOD
821 REPLACE_MKFIFO
822 REPLACE_MKDIR
823 REPLACE_LSTAT
824 REPLACE_FUTIMENS
825 REPLACE_FSTATAT
826 REPLACE_FSTAT
827 HAVE_UTIMENSAT
828 HAVE_MKNODAT
829 HAVE_MKNOD
830 HAVE_MKFIFOAT
831 HAVE_MKFIFO
832 HAVE_MKDIRAT
833 HAVE_LSTAT
834 HAVE_LCHMOD
835 HAVE_FUTIMENS
836 HAVE_FSTATAT
837 HAVE_FCHMODAT
838 GNULIB_UTIMENSAT
839 GNULIB_STAT
840 GNULIB_MKNODAT
841 GNULIB_MKNOD
842 GNULIB_MKFIFOAT
843 GNULIB_MKFIFO
844 GNULIB_MKDIRAT
845 GNULIB_LSTAT
846 GNULIB_LCHMOD
847 GNULIB_FUTIMENS
848 GNULIB_FSTATAT
849 GNULIB_FSTAT
850 GNULIB_FCHMODAT
851 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
852 NEXT_INTTYPES_H
853 UINT64_MAX_EQ_ULONG_MAX
854 UINT32_MAX_LT_UINTMAX_MAX
855 PRIPTR_PREFIX
856 PRI_MACROS_BROKEN
857 INT64_MAX_EQ_LONG_MAX
858 INT32_MAX_LT_INTMAX_MAX
859 REPLACE_STRTOIMAX
860 HAVE_DECL_STRTOUMAX
861 HAVE_DECL_STRTOIMAX
862 HAVE_DECL_IMAXDIV
863 HAVE_DECL_IMAXABS
864 GNULIB_STRTOUMAX
865 GNULIB_STRTOIMAX
866 GNULIB_IMAXDIV
867 GNULIB_IMAXABS
868 GL_GENERATE_STDINT_H_FALSE
869 GL_GENERATE_STDINT_H_TRUE
870 STDINT_H
871 WINT_T_SUFFIX
872 WCHAR_T_SUFFIX
873 SIG_ATOMIC_T_SUFFIX
874 SIZE_T_SUFFIX
875 PTRDIFF_T_SUFFIX
876 HAVE_SIGNED_WINT_T
877 HAVE_SIGNED_WCHAR_T
878 HAVE_SIGNED_SIG_ATOMIC_T
879 BITSIZEOF_WINT_T
880 BITSIZEOF_WCHAR_T
881 BITSIZEOF_SIG_ATOMIC_T
882 BITSIZEOF_SIZE_T
883 BITSIZEOF_PTRDIFF_T
884 APPLE_UNIVERSAL_BUILD
885 HAVE_SYS_BITYPES_H
886 HAVE_SYS_INTTYPES_H
887 HAVE_STDINT_H
888 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
889 NEXT_STDINT_H
890 HAVE_SYS_TYPES_H
891 HAVE_INTTYPES_H
892 HAVE_WCHAR_H
893 HAVE_UNSIGNED_LONG_LONG_INT
894 HAVE_LONG_LONG_INT
895 HAVE_WINSOCK2_H
896 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
897 NEXT_SYS_TIME_H
898 REPLACE_STRUCT_TIMEVAL
899 REPLACE_GETTIMEOFDAY
900 HAVE_SYS_TIME_H
901 HAVE_STRUCT_TIMEVAL
902 HAVE_GETTIMEOFDAY
903 GNULIB_GETTIMEOFDAY
904 GNULIB_GL_UNISTD_H_GETOPT
905 GETOPT_H
906 HAVE_GETOPT_H
907 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
908 NEXT_GETOPT_H
909 GETLOADAVG_LIBS
910 REPLACE_WCTOMB
911 REPLACE_UNSETENV
912 REPLACE_STRTOD
913 REPLACE_SETENV
914 REPLACE_REALPATH
915 REPLACE_REALLOC
916 REPLACE_RANDOM_R
917 REPLACE_PUTENV
918 REPLACE_PTSNAME_R
919 REPLACE_PTSNAME
920 REPLACE_MKSTEMP
921 REPLACE_MBTOWC
922 REPLACE_MALLOC
923 REPLACE_CANONICALIZE_FILE_NAME
924 REPLACE_CALLOC
925 HAVE_DECL_UNSETENV
926 HAVE_UNLOCKPT
927 HAVE_SYS_LOADAVG_H
928 HAVE_STRUCT_RANDOM_DATA
929 HAVE_STRTOULL
930 HAVE_STRTOLL
931 HAVE_STRTOD
932 HAVE_DECL_SETENV
933 HAVE_SETENV
934 HAVE_RPMATCH
935 HAVE_REALPATH
936 HAVE_RANDOM_R
937 HAVE_RANDOM_H
938 HAVE_RANDOM
939 HAVE_PTSNAME_R
940 HAVE_PTSNAME
941 HAVE_POSIX_OPENPT
942 HAVE_MKSTEMPS
943 HAVE_MKSTEMP
944 HAVE_MKOSTEMPS
945 HAVE_MKOSTEMP
946 HAVE_MKDTEMP
947 HAVE_GRANTPT
948 HAVE_GETSUBOPT
949 HAVE_DECL_GETLOADAVG
950 HAVE_CANONICALIZE_FILE_NAME
951 HAVE_ATOLL
952 HAVE__EXIT
953 GNULIB_WCTOMB
954 GNULIB_UNSETENV
955 GNULIB_UNLOCKPT
956 GNULIB_SYSTEM_POSIX
957 GNULIB_STRTOULL
958 GNULIB_STRTOLL
959 GNULIB_STRTOD
960 GNULIB_SETENV
961 GNULIB_RPMATCH
962 GNULIB_REALPATH
963 GNULIB_REALLOC_POSIX
964 GNULIB_RANDOM_R
965 GNULIB_RANDOM
966 GNULIB_PUTENV
967 GNULIB_PTSNAME_R
968 GNULIB_PTSNAME
969 GNULIB_POSIX_OPENPT
970 GNULIB_MKSTEMPS
971 GNULIB_MKSTEMP
972 GNULIB_MKOSTEMPS
973 GNULIB_MKOSTEMP
974 GNULIB_MKDTEMP
975 GNULIB_MBTOWC
976 GNULIB_MALLOC_POSIX
977 GNULIB_GRANTPT
978 GNULIB_GETSUBOPT
979 GNULIB_GETLOADAVG
980 GNULIB_CANONICALIZE_FILE_NAME
981 GNULIB_CALLOC_POSIX
982 GNULIB_ATOLL
983 GNULIB__EXIT
984 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
985 NEXT_FCNTL_H
986 PRAGMA_COLUMNS
987 PRAGMA_SYSTEM_HEADER
988 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
989 INCLUDE_NEXT
990 REPLACE_OPENAT
991 REPLACE_OPEN
992 REPLACE_FCNTL
993 HAVE_OPENAT
994 HAVE_FCNTL
995 GNULIB_OPENAT
996 GNULIB_OPEN
997 GNULIB_NONBLOCKING
998 GNULIB_FCNTL
999 GL_GENERATE_EXECINFO_H_FALSE
1000 GL_GENERATE_EXECINFO_H_TRUE
1001 LIB_EXECINFO
1002 EXECINFO_H
1003 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1004 UNISTD_H_HAVE_WINSOCK2_H
1005 REPLACE_WRITE
1006 REPLACE_USLEEP
1007 REPLACE_UNLINKAT
1008 REPLACE_UNLINK
1009 REPLACE_TTYNAME_R
1010 REPLACE_SYMLINK
1011 REPLACE_SLEEP
1012 REPLACE_RMDIR
1013 REPLACE_READLINK
1014 REPLACE_READ
1015 REPLACE_PWRITE
1016 REPLACE_PREAD
1017 REPLACE_LSEEK
1018 REPLACE_LINKAT
1019 REPLACE_LINK
1020 REPLACE_LCHOWN
1021 REPLACE_ISATTY
1022 REPLACE_GETPAGESIZE
1023 REPLACE_GETGROUPS
1024 REPLACE_GETLOGIN_R
1025 REPLACE_GETDOMAINNAME
1026 REPLACE_GETCWD
1027 REPLACE_FTRUNCATE
1028 REPLACE_FCHOWNAT
1029 REPLACE_DUP2
1030 REPLACE_DUP
1031 REPLACE_CLOSE
1032 REPLACE_CHOWN
1033 HAVE_SYS_PARAM_H
1034 HAVE_OS_H
1035 HAVE_DECL_TTYNAME_R
1036 HAVE_DECL_SETHOSTNAME
1037 HAVE_DECL_GETUSERSHELL
1038 HAVE_DECL_GETPAGESIZE
1039 HAVE_DECL_GETLOGIN_R
1040 HAVE_DECL_GETDOMAINNAME
1041 HAVE_DECL_FDATASYNC
1042 HAVE_DECL_FCHDIR
1043 HAVE_DECL_ENVIRON
1044 HAVE_USLEEP
1045 HAVE_UNLINKAT
1046 HAVE_SYMLINKAT
1047 HAVE_SYMLINK
1048 HAVE_SLEEP
1049 HAVE_SETHOSTNAME
1050 HAVE_READLINKAT
1051 HAVE_READLINK
1052 HAVE_PWRITE
1053 HAVE_PREAD
1054 HAVE_PIPE2
1055 HAVE_PIPE
1056 HAVE_LINKAT
1057 HAVE_LINK
1058 HAVE_LCHOWN
1059 HAVE_GROUP_MEMBER
1060 HAVE_GETPAGESIZE
1061 HAVE_GETLOGIN
1062 HAVE_GETHOSTNAME
1063 HAVE_GETGROUPS
1064 HAVE_GETDTABLESIZE
1065 HAVE_FTRUNCATE
1066 HAVE_FSYNC
1067 HAVE_FDATASYNC
1068 HAVE_FCHOWNAT
1069 HAVE_FCHDIR
1070 HAVE_FACCESSAT
1071 HAVE_EUIDACCESS
1072 HAVE_DUP3
1073 HAVE_DUP2
1074 HAVE_CHOWN
1075 GNULIB_WRITE
1076 GNULIB_USLEEP
1077 GNULIB_UNLINKAT
1078 GNULIB_UNLINK
1079 GNULIB_UNISTD_H_SIGPIPE
1080 GNULIB_UNISTD_H_NONBLOCKING
1081 GNULIB_TTYNAME_R
1082 GNULIB_SYMLINKAT
1083 GNULIB_SYMLINK
1084 GNULIB_SLEEP
1085 GNULIB_SETHOSTNAME
1086 GNULIB_RMDIR
1087 GNULIB_READLINKAT
1088 GNULIB_READLINK
1089 GNULIB_READ
1090 GNULIB_PWRITE
1091 GNULIB_PREAD
1092 GNULIB_PIPE2
1093 GNULIB_PIPE
1094 GNULIB_LSEEK
1095 GNULIB_LINKAT
1096 GNULIB_LINK
1097 GNULIB_LCHOWN
1098 GNULIB_ISATTY
1099 GNULIB_GROUP_MEMBER
1100 GNULIB_GETUSERSHELL
1101 GNULIB_GETPAGESIZE
1102 GNULIB_GETLOGIN_R
1103 GNULIB_GETLOGIN
1104 GNULIB_GETHOSTNAME
1105 GNULIB_GETGROUPS
1106 GNULIB_GETDTABLESIZE
1107 GNULIB_GETDOMAINNAME
1108 GNULIB_GETCWD
1109 GNULIB_FTRUNCATE
1110 GNULIB_FSYNC
1111 GNULIB_FDATASYNC
1112 GNULIB_FCHOWNAT
1113 GNULIB_FCHDIR
1114 GNULIB_FACCESSAT
1115 GNULIB_EUIDACCESS
1116 GNULIB_ENVIRON
1117 GNULIB_DUP3
1118 GNULIB_DUP2
1119 GNULIB_DUP
1120 GNULIB_CLOSE
1121 GNULIB_CHOWN
1122 GNULIB_CHDIR
1123 LIB_CLOCK_GETTIME
1124 GL_GENERATE_ALLOCA_H_FALSE
1125 GL_GENERATE_ALLOCA_H_TRUE
1126 ALLOCA_H
1127 ALLOCA
1128 GL_COND_LIBTOOL_FALSE
1129 GL_COND_LIBTOOL_TRUE
1130 POST_ALLOC_OBJ
1131 PRE_ALLOC_OBJ
1132 CYGWIN_OBJ
1133 RALLOC_OBJ
1134 OLDXMENU_DEPS
1135 LIBX_OTHER
1136 LIBXMENU
1137 OLDXMENU
1138 OLDXMENU_TARGET
1139 LIBXT_OTHER
1140 TOOLKIT_LIBW
1141 WIDGET_OBJ
1142 XOBJ
1143 XMENU_OBJ
1144 FONT_OBJ
1145 OTHER_FILES
1146 GNU_OBJC_CFLAGS
1147 ns_appsrc
1148 ns_appresdir
1149 ns_appbindir
1150 ns_appdir
1151 X_TOOLKIT_TYPE
1152 GNUSTEP_CFLAGS
1153 C_SWITCH_X_SITE
1154 LD_SWITCH_X_SITE
1155 gameuser
1156 gamedir
1157 bitmapdir
1158 archlibdir
1159 etcdir
1160 x_default_search_path
1161 lisppath
1162 locallisppath
1163 standardlisppath
1164 leimdir
1165 lispdir
1166 srcdir
1167 canonical
1168 configuration
1169 version
1170 copyright
1171 KRB4LIB
1172 DESLIB
1173 KRB5LIB
1174 CRYPTOLIB
1175 COM_ERRLIB
1176 LIBRESOLV
1177 LIBHESIOD
1178 TERMCAP_OBJ
1179 LIBS_TERMCAP
1180 BLESSMAIL_TARGET
1181 LIBS_MAIL
1182 liblockfile
1183 LIBXML2_LIBS
1184 LIBXML2_CFLAGS
1185 LIBXSM
1186 LIBGPM
1187 LIBGIF
1188 LIBTIFF
1189 LIBPNG
1190 LIBJPEG
1191 LIBXPM
1192 M17N_FLT_LIBS
1193 M17N_FLT_CFLAGS
1194 LIBOTF_LIBS
1195 LIBOTF_CFLAGS
1196 FREETYPE_LIBS
1197 FREETYPE_CFLAGS
1198 XFT_LIBS
1199 XFT_CFLAGS
1200 FONTCONFIG_LIBS
1201 FONTCONFIG_CFLAGS
1202 LIBXMU
1203 LIBXTR6
1204 LIBGNUTLS_LIBS
1205 LIBGNUTLS_CFLAGS
1206 LIBSELINUX_LIBS
1207 SETTINGS_LIBS
1208 SETTINGS_CFLAGS
1209 GOBJECT_LIBS
1210 GOBJECT_CFLAGS
1211 GCONF_LIBS
1212 GCONF_CFLAGS
1213 GSETTINGS_LIBS
1214 GSETTINGS_CFLAGS
1215 DBUS_OBJ
1216 DBUS_LIBS
1217 DBUS_CFLAGS
1218 GTK_OBJ
1219 GTK_LIBS
1220 GTK_CFLAGS
1221 IMAGEMAGICK_LIBS
1222 IMAGEMAGICK_CFLAGS
1223 RSVG_LIBS
1224 RSVG_CFLAGS
1225 LIB_PTHREAD
1226 VMLIMIT_OBJ
1227 GMALLOC_OBJ
1228 HAVE_XSERVER
1229 W32_LIBS
1230 W32_OBJ
1231 LIB_STANDARD
1232 NS_OBJC_OBJ
1233 NS_OBJ
1234 ns_self_contained
1235 INSTALL_ARCH_INDEP_EXTRA
1236 TEMACS_LDFLAGS2
1237 LD_SWITCH_X_SITE_RPATH
1238 XMKMF
1239 DEPFLAGS
1240 MKDEPDIR
1241 CFLAGS_SOUND
1242 ALSA_LIBS
1243 ALSA_CFLAGS
1244 LIBSOUND
1245 PKG_CONFIG
1246 CRT_DIR
1247 START_FILES
1248 LIB_MATH
1249 LIBS_SYSTEM
1250 C_SWITCH_SYSTEM
1251 UNEXEC_OBJ
1252 C_SWITCH_MACHINE
1253 LD_SWITCH_SYSTEM
1254 CANNOT_DUMP
1255 INFO_OPTS
1256 INFO_EXT
1257 HAVE_MAKEINFO
1258 PAXCTL
1259 GZIP_PROG
1260 INSTALL_INFO
1261 LN_S
1262 GNULIB_WARN_CFLAGS
1263 WARN_CFLAGS
1264 WERROR_CFLAGS
1265 RANLIB
1266 ARFLAGS
1267 AR
1268 EGREP
1269 GREP
1270 CPP
1271 am__fastdepCC_FALSE
1272 am__fastdepCC_TRUE
1273 CCDEPMODE
1274 AMDEPBACKSLASH
1275 AMDEP_FALSE
1276 AMDEP_TRUE
1277 am__quote
1278 am__include
1279 DEPDIR
1280 OBJEXT
1281 EXEEXT
1282 ac_ct_CC
1283 CPPFLAGS
1284 LDFLAGS
1285 CFLAGS
1286 CC
1287 host_os
1288 host_vendor
1289 host_cpu
1290 host
1291 build_os
1292 build_vendor
1293 build_cpu
1294 build
1295 PROFILING_CFLAGS
1296 GZIP_INFO
1297 cache_file
1298 am__untar
1299 am__tar
1300 AMTAR
1301 am__leading_dot
1302 SET_MAKE
1303 AWK
1304 mkdir_p
1305 MKDIR_P
1306 INSTALL_STRIP_PROGRAM
1307 STRIP
1308 install_sh
1309 MAKEINFO
1310 AUTOHEADER
1311 AUTOMAKE
1312 AUTOCONF
1313 ACLOCAL
1314 VERSION
1315 PACKAGE
1316 CYGPATH_W
1317 am__isrc
1318 INSTALL_DATA
1319 INSTALL_SCRIPT
1320 INSTALL_PROGRAM
1321 target_alias
1322 host_alias
1323 build_alias
1324 LIBS
1325 ECHO_T
1326 ECHO_N
1327 ECHO_C
1328 DEFS
1329 mandir
1330 localedir
1331 libdir
1332 psdir
1333 pdfdir
1334 dvidir
1335 htmldir
1336 infodir
1337 docdir
1338 oldincludedir
1339 includedir
1340 localstatedir
1341 sharedstatedir
1342 sysconfdir
1343 datadir
1344 datarootdir
1345 libexecdir
1346 sbindir
1347 bindir
1348 program_transform_name
1349 prefix
1350 exec_prefix
1351 PACKAGE_URL
1352 PACKAGE_BUGREPORT
1353 PACKAGE_STRING
1354 PACKAGE_VERSION
1355 PACKAGE_TARNAME
1356 PACKAGE_NAME
1357 PATH_SEPARATOR
1358 SHELL'
1359 ac_subst_files='deps_frag
1360 lisp_frag'
1361 ac_user_opts='
1362 enable_option_checking
1363 with_all
1364 with_pop
1365 with_kerberos
1366 with_kerberos5
1367 with_hesiod
1368 with_mmdf
1369 with_mail_unlink
1370 with_mailhost
1371 with_sound
1372 with_x_toolkit
1373 with_wide_int
1374 with_xpm
1375 with_jpeg
1376 with_tiff
1377 with_gif
1378 with_png
1379 with_rsvg
1380 with_xml2
1381 with_imagemagick
1382 with_xft
1383 with_libotf
1384 with_m17n_flt
1385 with_toolkit_scroll_bars
1386 with_xaw3d
1387 with_xim
1388 with_ns
1389 with_w32
1390 with_gpm
1391 with_dbus
1392 with_gconf
1393 with_gsettings
1394 with_selinux
1395 with_gnutls
1396 with_makeinfo
1397 with_compress_info
1398 with_pkg_config_prog
1399 with_crt_dir
1400 with_gameuser
1401 with_gnustep_conf
1402 enable_ns_self_contained
1403 enable_locallisppath
1404 enable_checking
1405 enable_check_lisp_object_type
1406 enable_profiling
1407 enable_autodepend
1408 enable_dependency_tracking
1409 enable_largefile
1410 enable_gcc_warnings
1411 enable_link_time_optimization
1412 with_x
1413 '
1414 ac_precious_vars='build_alias
1415 host_alias
1416 target_alias
1417 CC
1418 CFLAGS
1419 LDFLAGS
1420 LIBS
1421 CPPFLAGS
1422 CPP
1423 XMKMF'
1424
1425
1426 # Initialize some variables set by options.
1427 ac_init_help=
1428 ac_init_version=false
1429 ac_unrecognized_opts=
1430 ac_unrecognized_sep=
1431 # The variables have the same names as the options, with
1432 # dashes changed to underlines.
1433 cache_file=/dev/null
1434 exec_prefix=NONE
1435 no_create=
1436 no_recursion=
1437 prefix=NONE
1438 program_prefix=NONE
1439 program_suffix=NONE
1440 program_transform_name=s,x,x,
1441 silent=
1442 site=
1443 srcdir=
1444 verbose=
1445 x_includes=NONE
1446 x_libraries=NONE
1447
1448 # Installation directory options.
1449 # These are left unexpanded so users can "make install exec_prefix=/foo"
1450 # and all the variables that are supposed to be based on exec_prefix
1451 # by default will actually change.
1452 # Use braces instead of parens because sh, perl, etc. also accept them.
1453 # (The list follows the same order as the GNU Coding Standards.)
1454 bindir='${exec_prefix}/bin'
1455 sbindir='${exec_prefix}/sbin'
1456 libexecdir='${exec_prefix}/libexec'
1457 datarootdir='${prefix}/share'
1458 datadir='${datarootdir}'
1459 sysconfdir='${prefix}/etc'
1460 sharedstatedir='${prefix}/com'
1461 localstatedir='${prefix}/var'
1462 includedir='${prefix}/include'
1463 oldincludedir='/usr/include'
1464 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1465 infodir='${datarootdir}/info'
1466 htmldir='${docdir}'
1467 dvidir='${docdir}'
1468 pdfdir='${docdir}'
1469 psdir='${docdir}'
1470 libdir='${exec_prefix}/lib'
1471 localedir='${datarootdir}/locale'
1472 mandir='${datarootdir}/man'
1473
1474 ac_prev=
1475 ac_dashdash=
1476 for ac_option
1477 do
1478 # If the previous option needs an argument, assign it.
1479 if test -n "$ac_prev"; then
1480 eval $ac_prev=\$ac_option
1481 ac_prev=
1482 continue
1483 fi
1484
1485 case $ac_option in
1486 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1487 *) ac_optarg=yes ;;
1488 esac
1489
1490 # Accept the important Cygnus configure options, so we can diagnose typos.
1491
1492 case $ac_dashdash$ac_option in
1493 --)
1494 ac_dashdash=yes ;;
1495
1496 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1497 ac_prev=bindir ;;
1498 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1499 bindir=$ac_optarg ;;
1500
1501 -build | --build | --buil | --bui | --bu)
1502 ac_prev=build_alias ;;
1503 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1504 build_alias=$ac_optarg ;;
1505
1506 -cache-file | --cache-file | --cache-fil | --cache-fi \
1507 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1508 ac_prev=cache_file ;;
1509 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1510 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1511 cache_file=$ac_optarg ;;
1512
1513 --config-cache | -C)
1514 cache_file=config.cache ;;
1515
1516 -datadir | --datadir | --datadi | --datad)
1517 ac_prev=datadir ;;
1518 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1519 datadir=$ac_optarg ;;
1520
1521 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1522 | --dataroo | --dataro | --datar)
1523 ac_prev=datarootdir ;;
1524 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1525 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1526 datarootdir=$ac_optarg ;;
1527
1528 -disable-* | --disable-*)
1529 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1530 # Reject names that are not valid shell variable names.
1531 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1532 as_fn_error "invalid feature name: $ac_useropt"
1533 ac_useropt_orig=$ac_useropt
1534 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1535 case $ac_user_opts in
1536 *"
1537 "enable_$ac_useropt"
1538 "*) ;;
1539 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1540 ac_unrecognized_sep=', ';;
1541 esac
1542 eval enable_$ac_useropt=no ;;
1543
1544 -docdir | --docdir | --docdi | --doc | --do)
1545 ac_prev=docdir ;;
1546 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1547 docdir=$ac_optarg ;;
1548
1549 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1550 ac_prev=dvidir ;;
1551 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1552 dvidir=$ac_optarg ;;
1553
1554 -enable-* | --enable-*)
1555 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1556 # Reject names that are not valid shell variable names.
1557 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1558 as_fn_error "invalid feature name: $ac_useropt"
1559 ac_useropt_orig=$ac_useropt
1560 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1561 case $ac_user_opts in
1562 *"
1563 "enable_$ac_useropt"
1564 "*) ;;
1565 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1566 ac_unrecognized_sep=', ';;
1567 esac
1568 eval enable_$ac_useropt=\$ac_optarg ;;
1569
1570 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1571 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1572 | --exec | --exe | --ex)
1573 ac_prev=exec_prefix ;;
1574 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1575 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1576 | --exec=* | --exe=* | --ex=*)
1577 exec_prefix=$ac_optarg ;;
1578
1579 -gas | --gas | --ga | --g)
1580 # Obsolete; use --with-gas.
1581 with_gas=yes ;;
1582
1583 -help | --help | --hel | --he | -h)
1584 ac_init_help=long ;;
1585 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1586 ac_init_help=recursive ;;
1587 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1588 ac_init_help=short ;;
1589
1590 -host | --host | --hos | --ho)
1591 ac_prev=host_alias ;;
1592 -host=* | --host=* | --hos=* | --ho=*)
1593 host_alias=$ac_optarg ;;
1594
1595 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1596 ac_prev=htmldir ;;
1597 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1598 | --ht=*)
1599 htmldir=$ac_optarg ;;
1600
1601 -includedir | --includedir | --includedi | --included | --include \
1602 | --includ | --inclu | --incl | --inc)
1603 ac_prev=includedir ;;
1604 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1605 | --includ=* | --inclu=* | --incl=* | --inc=*)
1606 includedir=$ac_optarg ;;
1607
1608 -infodir | --infodir | --infodi | --infod | --info | --inf)
1609 ac_prev=infodir ;;
1610 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1611 infodir=$ac_optarg ;;
1612
1613 -libdir | --libdir | --libdi | --libd)
1614 ac_prev=libdir ;;
1615 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1616 libdir=$ac_optarg ;;
1617
1618 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1619 | --libexe | --libex | --libe)
1620 ac_prev=libexecdir ;;
1621 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1622 | --libexe=* | --libex=* | --libe=*)
1623 libexecdir=$ac_optarg ;;
1624
1625 -localedir | --localedir | --localedi | --localed | --locale)
1626 ac_prev=localedir ;;
1627 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1628 localedir=$ac_optarg ;;
1629
1630 -localstatedir | --localstatedir | --localstatedi | --localstated \
1631 | --localstate | --localstat | --localsta | --localst | --locals)
1632 ac_prev=localstatedir ;;
1633 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1634 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1635 localstatedir=$ac_optarg ;;
1636
1637 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1638 ac_prev=mandir ;;
1639 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1640 mandir=$ac_optarg ;;
1641
1642 -nfp | --nfp | --nf)
1643 # Obsolete; use --without-fp.
1644 with_fp=no ;;
1645
1646 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1647 | --no-cr | --no-c | -n)
1648 no_create=yes ;;
1649
1650 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1651 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1652 no_recursion=yes ;;
1653
1654 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1655 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1656 | --oldin | --oldi | --old | --ol | --o)
1657 ac_prev=oldincludedir ;;
1658 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1659 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1660 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1661 oldincludedir=$ac_optarg ;;
1662
1663 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1664 ac_prev=prefix ;;
1665 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1666 prefix=$ac_optarg ;;
1667
1668 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1669 | --program-pre | --program-pr | --program-p)
1670 ac_prev=program_prefix ;;
1671 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1672 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1673 program_prefix=$ac_optarg ;;
1674
1675 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1676 | --program-suf | --program-su | --program-s)
1677 ac_prev=program_suffix ;;
1678 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1679 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1680 program_suffix=$ac_optarg ;;
1681
1682 -program-transform-name | --program-transform-name \
1683 | --program-transform-nam | --program-transform-na \
1684 | --program-transform-n | --program-transform- \
1685 | --program-transform | --program-transfor \
1686 | --program-transfo | --program-transf \
1687 | --program-trans | --program-tran \
1688 | --progr-tra | --program-tr | --program-t)
1689 ac_prev=program_transform_name ;;
1690 -program-transform-name=* | --program-transform-name=* \
1691 | --program-transform-nam=* | --program-transform-na=* \
1692 | --program-transform-n=* | --program-transform-=* \
1693 | --program-transform=* | --program-transfor=* \
1694 | --program-transfo=* | --program-transf=* \
1695 | --program-trans=* | --program-tran=* \
1696 | --progr-tra=* | --program-tr=* | --program-t=*)
1697 program_transform_name=$ac_optarg ;;
1698
1699 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1700 ac_prev=pdfdir ;;
1701 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1702 pdfdir=$ac_optarg ;;
1703
1704 -psdir | --psdir | --psdi | --psd | --ps)
1705 ac_prev=psdir ;;
1706 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1707 psdir=$ac_optarg ;;
1708
1709 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1710 | -silent | --silent | --silen | --sile | --sil)
1711 silent=yes ;;
1712
1713 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1714 ac_prev=sbindir ;;
1715 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1716 | --sbi=* | --sb=*)
1717 sbindir=$ac_optarg ;;
1718
1719 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1720 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1721 | --sharedst | --shareds | --shared | --share | --shar \
1722 | --sha | --sh)
1723 ac_prev=sharedstatedir ;;
1724 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1725 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1726 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1727 | --sha=* | --sh=*)
1728 sharedstatedir=$ac_optarg ;;
1729
1730 -site | --site | --sit)
1731 ac_prev=site ;;
1732 -site=* | --site=* | --sit=*)
1733 site=$ac_optarg ;;
1734
1735 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1736 ac_prev=srcdir ;;
1737 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1738 srcdir=$ac_optarg ;;
1739
1740 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1741 | --syscon | --sysco | --sysc | --sys | --sy)
1742 ac_prev=sysconfdir ;;
1743 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1744 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1745 sysconfdir=$ac_optarg ;;
1746
1747 -target | --target | --targe | --targ | --tar | --ta | --t)
1748 ac_prev=target_alias ;;
1749 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1750 target_alias=$ac_optarg ;;
1751
1752 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1753 verbose=yes ;;
1754
1755 -version | --version | --versio | --versi | --vers | -V)
1756 ac_init_version=: ;;
1757
1758 -with-* | --with-*)
1759 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1760 # Reject names that are not valid shell variable names.
1761 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1762 as_fn_error "invalid package name: $ac_useropt"
1763 ac_useropt_orig=$ac_useropt
1764 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1765 case $ac_user_opts in
1766 *"
1767 "with_$ac_useropt"
1768 "*) ;;
1769 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1770 ac_unrecognized_sep=', ';;
1771 esac
1772 eval with_$ac_useropt=\$ac_optarg ;;
1773
1774 -without-* | --without-*)
1775 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1776 # Reject names that are not valid shell variable names.
1777 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1778 as_fn_error "invalid package name: $ac_useropt"
1779 ac_useropt_orig=$ac_useropt
1780 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1781 case $ac_user_opts in
1782 *"
1783 "with_$ac_useropt"
1784 "*) ;;
1785 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1786 ac_unrecognized_sep=', ';;
1787 esac
1788 eval with_$ac_useropt=no ;;
1789
1790 --x)
1791 # Obsolete; use --with-x.
1792 with_x=yes ;;
1793
1794 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1795 | --x-incl | --x-inc | --x-in | --x-i)
1796 ac_prev=x_includes ;;
1797 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1798 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1799 x_includes=$ac_optarg ;;
1800
1801 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1802 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1803 ac_prev=x_libraries ;;
1804 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1805 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1806 x_libraries=$ac_optarg ;;
1807
1808 -*) as_fn_error "unrecognized option: \`$ac_option'
1809 Try \`$0 --help' for more information."
1810 ;;
1811
1812 *=*)
1813 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1814 # Reject names that are not valid shell variable names.
1815 case $ac_envvar in #(
1816 '' | [0-9]* | *[!_$as_cr_alnum]* )
1817 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1818 esac
1819 eval $ac_envvar=\$ac_optarg
1820 export $ac_envvar ;;
1821
1822 *)
1823 # FIXME: should be removed in autoconf 3.0.
1824 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1825 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1826 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1827 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1828 ;;
1829
1830 esac
1831 done
1832
1833 if test -n "$ac_prev"; then
1834 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1835 as_fn_error "missing argument to $ac_option"
1836 fi
1837
1838 if test -n "$ac_unrecognized_opts"; then
1839 case $enable_option_checking in
1840 no) ;;
1841 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1842 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1843 esac
1844 fi
1845
1846 # Check all directory arguments for consistency.
1847 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1848 datadir sysconfdir sharedstatedir localstatedir includedir \
1849 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1850 libdir localedir mandir
1851 do
1852 eval ac_val=\$$ac_var
1853 # Remove trailing slashes.
1854 case $ac_val in
1855 */ )
1856 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1857 eval $ac_var=\$ac_val;;
1858 esac
1859 # Be sure to have absolute directory names.
1860 case $ac_val in
1861 [\\/$]* | ?:[\\/]* ) continue;;
1862 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1863 esac
1864 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1865 done
1866
1867 # There might be people who depend on the old broken behavior: `$host'
1868 # used to hold the argument of --host etc.
1869 # FIXME: To remove some day.
1870 build=$build_alias
1871 host=$host_alias
1872 target=$target_alias
1873
1874 # FIXME: To remove some day.
1875 if test "x$host_alias" != x; then
1876 if test "x$build_alias" = x; then
1877 cross_compiling=maybe
1878 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1879 If a cross compiler is detected then cross compile mode will be used." >&2
1880 elif test "x$build_alias" != "x$host_alias"; then
1881 cross_compiling=yes
1882 fi
1883 fi
1884
1885 ac_tool_prefix=
1886 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1887
1888 test "$silent" = yes && exec 6>/dev/null
1889
1890
1891 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1892 ac_ls_di=`ls -di .` &&
1893 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1894 as_fn_error "working directory cannot be determined"
1895 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1896 as_fn_error "pwd does not report name of working directory"
1897
1898
1899 # Find the source files, if location was not specified.
1900 if test -z "$srcdir"; then
1901 ac_srcdir_defaulted=yes
1902 # Try the directory containing this script, then the parent directory.
1903 ac_confdir=`$as_dirname -- "$as_myself" ||
1904 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1905 X"$as_myself" : 'X\(//\)[^/]' \| \
1906 X"$as_myself" : 'X\(//\)$' \| \
1907 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1908 $as_echo X"$as_myself" |
1909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1910 s//\1/
1911 q
1912 }
1913 /^X\(\/\/\)[^/].*/{
1914 s//\1/
1915 q
1916 }
1917 /^X\(\/\/\)$/{
1918 s//\1/
1919 q
1920 }
1921 /^X\(\/\).*/{
1922 s//\1/
1923 q
1924 }
1925 s/.*/./; q'`
1926 srcdir=$ac_confdir
1927 if test ! -r "$srcdir/$ac_unique_file"; then
1928 srcdir=..
1929 fi
1930 else
1931 ac_srcdir_defaulted=no
1932 fi
1933 if test ! -r "$srcdir/$ac_unique_file"; then
1934 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1935 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1936 fi
1937 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1938 ac_abs_confdir=`(
1939 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1940 pwd)`
1941 # When building in place, set srcdir=.
1942 if test "$ac_abs_confdir" = "$ac_pwd"; then
1943 srcdir=.
1944 fi
1945 # Remove unnecessary trailing slashes from srcdir.
1946 # Double slashes in file names in object file debugging info
1947 # mess up M-x gdb in Emacs.
1948 case $srcdir in
1949 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1950 esac
1951 for ac_var in $ac_precious_vars; do
1952 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1953 eval ac_env_${ac_var}_value=\$${ac_var}
1954 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1955 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1956 done
1957
1958 #
1959 # Report the --help message.
1960 #
1961 if test "$ac_init_help" = "long"; then
1962 # Omit some internal or obsolete options to make the list less imposing.
1963 # This message is too long to be a string in the A/UX 3.1 sh.
1964 cat <<_ACEOF
1965 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
1966
1967 Usage: $0 [OPTION]... [VAR=VALUE]...
1968
1969 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1970 VAR=VALUE. See below for descriptions of some of the useful variables.
1971
1972 Defaults for the options are specified in brackets.
1973
1974 Configuration:
1975 -h, --help display this help and exit
1976 --help=short display options specific to this package
1977 --help=recursive display the short help of all the included packages
1978 -V, --version display version information and exit
1979 -q, --quiet, --silent do not print \`checking...' messages
1980 --cache-file=FILE cache test results in FILE [disabled]
1981 -C, --config-cache alias for \`--cache-file=config.cache'
1982 -n, --no-create do not create output files
1983 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1984
1985 Installation directories:
1986 --prefix=PREFIX install architecture-independent files in PREFIX
1987 [$ac_default_prefix]
1988 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1989 [PREFIX]
1990
1991 By default, \`make install' will install all the files in
1992 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1993 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1994 for instance \`--prefix=\$HOME'.
1995
1996 For better control, use the options below.
1997
1998 Fine tuning of the installation directories:
1999 --bindir=DIR user executables [EPREFIX/bin]
2000 --sbindir=DIR system admin executables [EPREFIX/sbin]
2001 --libexecdir=DIR program executables [EPREFIX/libexec]
2002 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2003 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2004 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2005 --libdir=DIR object code libraries [EPREFIX/lib]
2006 --includedir=DIR C header files [PREFIX/include]
2007 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2008 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2009 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2010 --infodir=DIR info documentation [DATAROOTDIR/info]
2011 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2012 --mandir=DIR man documentation [DATAROOTDIR/man]
2013 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2014 --htmldir=DIR html documentation [DOCDIR]
2015 --dvidir=DIR dvi documentation [DOCDIR]
2016 --pdfdir=DIR pdf documentation [DOCDIR]
2017 --psdir=DIR ps documentation [DOCDIR]
2018 _ACEOF
2019
2020 cat <<\_ACEOF
2021
2022 Program names:
2023 --program-prefix=PREFIX prepend PREFIX to installed program names
2024 --program-suffix=SUFFIX append SUFFIX to installed program names
2025 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2026
2027 X features:
2028 --x-includes=DIR X include files are in DIR
2029 --x-libraries=DIR X library files are in DIR
2030
2031 System types:
2032 --build=BUILD configure for building on BUILD [guessed]
2033 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2034 _ACEOF
2035 fi
2036
2037 if test -n "$ac_init_help"; then
2038 case $ac_init_help in
2039 short | recursive ) echo "Configuration of emacs 24.3.50:";;
2040 esac
2041 cat <<\_ACEOF
2042
2043 Optional Features:
2044 --disable-option-checking ignore unrecognized --enable/--with options
2045 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2046 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2047 --disable-ns-self-contained
2048 disable self contained build under NeXTstep
2049 --enable-locallisppath=PATH
2050 directories Emacs should search for lisp files
2051 specific to this site
2052 --enable-checking[=LIST]
2053 enable expensive run-time checks. With LIST, enable
2054 only specific categories of checks. Categories are:
2055 all,yes,no. Flags are: stringbytes, stringoverrun,
2056 stringfreelist, xmallocoverrun, conslist, glyphs
2057 --enable-check-lisp-object-type
2058 enable compile time checks for the Lisp_Object data
2059 type. This is useful for development for catching
2060 certain types of bugs.
2061 --enable-profiling build emacs with low-level, gprof profiling support.
2062 Mainly useful for debugging Emacs itself. May not
2063 work on all platforms. Stops profiler.el working.
2064 --enable-autodepend automatically generate dependencies to .h-files.
2065 Requires GNU Make and Gcc. Enabled if GNU Make and
2066 Gcc is found
2067 --disable-dependency-tracking speeds up one-time build
2068 --enable-dependency-tracking do not reject slow dependency extractors
2069 --disable-largefile omit support for large files
2070 --enable-gcc-warnings turn on lots of GCC warnings. This is intended for
2071 developers, and may generate false alarms when used
2072 with older or non-GNU development tools.
2073 --enable-link-time-optimization
2074 build emacs with link-time optimization. This is
2075 supported only for GCC since 4.5.0.
2076
2077 Optional Packages:
2078 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2079 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2080 --without-all omit almost all features and build small executable
2081 with minimal dependencies
2082 --without-pop don't support POP mail retrieval with movemail
2083 --with-kerberos support Kerberos-authenticated POP
2084 --with-kerberos5 support Kerberos version 5 authenticated POP
2085 --with-hesiod support Hesiod to get the POP server host
2086 --with-mmdf support MMDF mailboxes
2087 --with-mail-unlink unlink, rather than empty, mail spool after reading
2088 --with-mailhost=HOSTNAME
2089 string giving default POP mail host
2090 --without-sound don't compile with sound support
2091 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2,
2092 gtk3, lucid or athena, motif, no)
2093 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2094 --without-xpm don't compile with XPM image support
2095 --without-jpeg don't compile with JPEG image support
2096 --without-tiff don't compile with TIFF image support
2097 --without-gif don't compile with GIF image support
2098 --without-png don't compile with PNG image support
2099 --without-rsvg don't compile with SVG image support
2100 --without-xml2 don't compile with XML parsing support
2101 --without-imagemagick don't compile with ImageMagick image support
2102 --without-xft don't use XFT for anti aliased fonts
2103 --without-libotf don't use libotf for OpenType font support
2104 --without-m17n-flt don't use m17n-flt for text shaping
2105 --without-toolkit-scroll-bars
2106 don't use Motif or Xaw3d scroll bars
2107 --without-xaw3d don't use Xaw3d
2108 --without-xim don't use X11 XIM
2109 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2110 --with-w32 use native MS Windows GUI
2111 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2112 console
2113 --without-dbus don't compile with D-Bus support
2114 --without-gconf don't compile with GConf support
2115 --without-gsettings don't compile with GSettings support
2116 --without-selinux don't compile with SELinux support
2117 --without-gnutls don't use -lgnutls for SSL/TLS support
2118 --without-makeinfo don't require makeinfo for building manuals
2119 --without-compress-info don't compress the installed Info pages
2120 --with-pkg-config-prog=PATH
2121 path to pkg-config for finding GTK and librsvg
2122 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2123 /usr/lib, or /usr/lib64 on some platforms.
2124 --with-gameuser=USER user for shared game score files
2125 --with-gnustep-conf=PATH
2126 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2127 or /etc/GNUstep/GNUstep.conf
2128 --with-x use the X Window System
2129
2130 Some influential environment variables:
2131 CC C compiler command
2132 CFLAGS C compiler flags
2133 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2134 nonstandard directory <lib dir>
2135 LIBS libraries to pass to the linker, e.g. -l<library>
2136 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2137 you have headers in a nonstandard directory <include dir>
2138 CPP C preprocessor
2139 XMKMF Path to xmkmf, Makefile generator for X Window System
2140
2141 Use these variables to override the choices made by `configure' or to help
2142 it to find libraries and programs with nonstandard names/locations.
2143
2144 Report bugs to the package provider.
2145 _ACEOF
2146 ac_status=$?
2147 fi
2148
2149 if test "$ac_init_help" = "recursive"; then
2150 # If there are subdirs, report their specific --help.
2151 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2152 test -d "$ac_dir" ||
2153 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2154 continue
2155 ac_builddir=.
2156
2157 case "$ac_dir" in
2158 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2159 *)
2160 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2161 # A ".." for each directory in $ac_dir_suffix.
2162 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2163 case $ac_top_builddir_sub in
2164 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2165 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2166 esac ;;
2167 esac
2168 ac_abs_top_builddir=$ac_pwd
2169 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2170 # for backward compatibility:
2171 ac_top_builddir=$ac_top_build_prefix
2172
2173 case $srcdir in
2174 .) # We are building in place.
2175 ac_srcdir=.
2176 ac_top_srcdir=$ac_top_builddir_sub
2177 ac_abs_top_srcdir=$ac_pwd ;;
2178 [\\/]* | ?:[\\/]* ) # Absolute name.
2179 ac_srcdir=$srcdir$ac_dir_suffix;
2180 ac_top_srcdir=$srcdir
2181 ac_abs_top_srcdir=$srcdir ;;
2182 *) # Relative name.
2183 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2184 ac_top_srcdir=$ac_top_build_prefix$srcdir
2185 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2186 esac
2187 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2188
2189 cd "$ac_dir" || { ac_status=$?; continue; }
2190 # Check for guested configure.
2191 if test -f "$ac_srcdir/configure.gnu"; then
2192 echo &&
2193 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2194 elif test -f "$ac_srcdir/configure"; then
2195 echo &&
2196 $SHELL "$ac_srcdir/configure" --help=recursive
2197 else
2198 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2199 fi || ac_status=$?
2200 cd "$ac_pwd" || { ac_status=$?; break; }
2201 done
2202 fi
2203
2204 test -n "$ac_init_help" && exit $ac_status
2205 if $ac_init_version; then
2206 cat <<\_ACEOF
2207 emacs configure 24.3.50
2208 generated by GNU Autoconf 2.65
2209
2210 Copyright (C) 2009 Free Software Foundation, Inc.
2211 This configure script is free software; the Free Software Foundation
2212 gives unlimited permission to copy, distribute and modify it.
2213 _ACEOF
2214 exit
2215 fi
2216
2217 ## ------------------------ ##
2218 ## Autoconf initialization. ##
2219 ## ------------------------ ##
2220
2221 # ac_fn_c_try_compile LINENO
2222 # --------------------------
2223 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2224 ac_fn_c_try_compile ()
2225 {
2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227 rm -f conftest.$ac_objext
2228 if { { ac_try="$ac_compile"
2229 case "(($ac_try" in
2230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231 *) ac_try_echo=$ac_try;;
2232 esac
2233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2234 $as_echo "$ac_try_echo"; } >&5
2235 (eval "$ac_compile") 2>conftest.err
2236 ac_status=$?
2237 if test -s conftest.err; then
2238 grep -v '^ *+' conftest.err >conftest.er1
2239 cat conftest.er1 >&5
2240 mv -f conftest.er1 conftest.err
2241 fi
2242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2243 test $ac_status = 0; } && {
2244 test -z "$ac_c_werror_flag" ||
2245 test ! -s conftest.err
2246 } && test -s conftest.$ac_objext; then :
2247 ac_retval=0
2248 else
2249 $as_echo "$as_me: failed program was:" >&5
2250 sed 's/^/| /' conftest.$ac_ext >&5
2251
2252 ac_retval=1
2253 fi
2254 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2255 as_fn_set_status $ac_retval
2256
2257 } # ac_fn_c_try_compile
2258
2259 # ac_fn_c_try_cpp LINENO
2260 # ----------------------
2261 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2262 ac_fn_c_try_cpp ()
2263 {
2264 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2265 if { { ac_try="$ac_cpp conftest.$ac_ext"
2266 case "(($ac_try" in
2267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268 *) ac_try_echo=$ac_try;;
2269 esac
2270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2271 $as_echo "$ac_try_echo"; } >&5
2272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2273 ac_status=$?
2274 if test -s conftest.err; then
2275 grep -v '^ *+' conftest.err >conftest.er1
2276 cat conftest.er1 >&5
2277 mv -f conftest.er1 conftest.err
2278 fi
2279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2280 test $ac_status = 0; } >/dev/null && {
2281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2282 test ! -s conftest.err
2283 }; then :
2284 ac_retval=0
2285 else
2286 $as_echo "$as_me: failed program was:" >&5
2287 sed 's/^/| /' conftest.$ac_ext >&5
2288
2289 ac_retval=1
2290 fi
2291 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2292 as_fn_set_status $ac_retval
2293
2294 } # ac_fn_c_try_cpp
2295
2296 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2297 # -------------------------------------------------------
2298 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2299 # the include files in INCLUDES and setting the cache variable VAR
2300 # accordingly.
2301 ac_fn_c_check_header_mongrel ()
2302 {
2303 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2304 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2306 $as_echo_n "checking for $2... " >&6; }
2307 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2308 $as_echo_n "(cached) " >&6
2309 fi
2310 eval ac_res=\$$3
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2312 $as_echo "$ac_res" >&6; }
2313 else
2314 # Is the header compilable?
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2316 $as_echo_n "checking $2 usability... " >&6; }
2317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2318 /* end confdefs.h. */
2319 $4
2320 #include <$2>
2321 _ACEOF
2322 if ac_fn_c_try_compile "$LINENO"; then :
2323 ac_header_compiler=yes
2324 else
2325 ac_header_compiler=no
2326 fi
2327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2329 $as_echo "$ac_header_compiler" >&6; }
2330
2331 # Is the header present?
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2333 $as_echo_n "checking $2 presence... " >&6; }
2334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2335 /* end confdefs.h. */
2336 #include <$2>
2337 _ACEOF
2338 if ac_fn_c_try_cpp "$LINENO"; then :
2339 ac_header_preproc=yes
2340 else
2341 ac_header_preproc=no
2342 fi
2343 rm -f conftest.err conftest.$ac_ext
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2345 $as_echo "$ac_header_preproc" >&6; }
2346
2347 # So? What about this header?
2348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2349 yes:no: )
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2351 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2353 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2354 ;;
2355 no:yes:* )
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2357 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2359 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2361 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2363 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2365 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2366 ;;
2367 esac
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2369 $as_echo_n "checking for $2... " >&6; }
2370 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2371 $as_echo_n "(cached) " >&6
2372 else
2373 eval "$3=\$ac_header_compiler"
2374 fi
2375 eval ac_res=\$$3
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2377 $as_echo "$ac_res" >&6; }
2378 fi
2379 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2380
2381 } # ac_fn_c_check_header_mongrel
2382
2383 # ac_fn_c_try_run LINENO
2384 # ----------------------
2385 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2386 # that executables *can* be run.
2387 ac_fn_c_try_run ()
2388 {
2389 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2390 if { { ac_try="$ac_link"
2391 case "(($ac_try" in
2392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393 *) ac_try_echo=$ac_try;;
2394 esac
2395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2396 $as_echo "$ac_try_echo"; } >&5
2397 (eval "$ac_link") 2>&5
2398 ac_status=$?
2399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2400 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2401 { { case "(($ac_try" in
2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2404 esac
2405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2406 $as_echo "$ac_try_echo"; } >&5
2407 (eval "$ac_try") 2>&5
2408 ac_status=$?
2409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2410 test $ac_status = 0; }; }; then :
2411 ac_retval=0
2412 else
2413 $as_echo "$as_me: program exited with status $ac_status" >&5
2414 $as_echo "$as_me: failed program was:" >&5
2415 sed 's/^/| /' conftest.$ac_ext >&5
2416
2417 ac_retval=$ac_status
2418 fi
2419 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2420 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2421 as_fn_set_status $ac_retval
2422
2423 } # ac_fn_c_try_run
2424
2425 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2426 # -------------------------------------------------------
2427 # Tests whether HEADER exists and can be compiled using the include files in
2428 # INCLUDES, setting the cache variable VAR accordingly.
2429 ac_fn_c_check_header_compile ()
2430 {
2431 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2433 $as_echo_n "checking for $2... " >&6; }
2434 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2435 $as_echo_n "(cached) " >&6
2436 else
2437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2438 /* end confdefs.h. */
2439 $4
2440 #include <$2>
2441 _ACEOF
2442 if ac_fn_c_try_compile "$LINENO"; then :
2443 eval "$3=yes"
2444 else
2445 eval "$3=no"
2446 fi
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 fi
2449 eval ac_res=\$$3
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2451 $as_echo "$ac_res" >&6; }
2452 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2453
2454 } # ac_fn_c_check_header_compile
2455
2456 # ac_fn_c_try_link LINENO
2457 # -----------------------
2458 # Try to link conftest.$ac_ext, and return whether this succeeded.
2459 ac_fn_c_try_link ()
2460 {
2461 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2462 rm -f conftest.$ac_objext conftest$ac_exeext
2463 if { { ac_try="$ac_link"
2464 case "(($ac_try" in
2465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466 *) ac_try_echo=$ac_try;;
2467 esac
2468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2469 $as_echo "$ac_try_echo"; } >&5
2470 (eval "$ac_link") 2>conftest.err
2471 ac_status=$?
2472 if test -s conftest.err; then
2473 grep -v '^ *+' conftest.err >conftest.er1
2474 cat conftest.er1 >&5
2475 mv -f conftest.er1 conftest.err
2476 fi
2477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2478 test $ac_status = 0; } && {
2479 test -z "$ac_c_werror_flag" ||
2480 test ! -s conftest.err
2481 } && test -s conftest$ac_exeext && {
2482 test "$cross_compiling" = yes ||
2483 $as_test_x conftest$ac_exeext
2484 }; then :
2485 ac_retval=0
2486 else
2487 $as_echo "$as_me: failed program was:" >&5
2488 sed 's/^/| /' conftest.$ac_ext >&5
2489
2490 ac_retval=1
2491 fi
2492 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2493 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2494 # interfere with the next link command; also delete a directory that is
2495 # left behind by Apple's compiler. We do this before executing the actions.
2496 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2497 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2498 as_fn_set_status $ac_retval
2499
2500 } # ac_fn_c_try_link
2501
2502 # ac_fn_c_check_decl LINENO SYMBOL VAR
2503 # ------------------------------------
2504 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2505 ac_fn_c_check_decl ()
2506 {
2507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2509 $as_echo_n "checking whether $2 is declared... " >&6; }
2510 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2511 $as_echo_n "(cached) " >&6
2512 else
2513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2514 /* end confdefs.h. */
2515 $4
2516 int
2517 main ()
2518 {
2519 #ifndef $2
2520 (void) $2;
2521 #endif
2522
2523 ;
2524 return 0;
2525 }
2526 _ACEOF
2527 if ac_fn_c_try_compile "$LINENO"; then :
2528 eval "$3=yes"
2529 else
2530 eval "$3=no"
2531 fi
2532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2533 fi
2534 eval ac_res=\$$3
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2536 $as_echo "$ac_res" >&6; }
2537 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2538
2539 } # ac_fn_c_check_decl
2540
2541 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2542 # ----------------------------------------------
2543 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2544 ac_fn_c_check_header_preproc ()
2545 {
2546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2548 $as_echo_n "checking for $2... " >&6; }
2549 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2550 $as_echo_n "(cached) " >&6
2551 else
2552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2553 /* end confdefs.h. */
2554 #include <$2>
2555 _ACEOF
2556 if ac_fn_c_try_cpp "$LINENO"; then :
2557 eval "$3=yes"
2558 else
2559 eval "$3=no"
2560 fi
2561 rm -f conftest.err conftest.$ac_ext
2562 fi
2563 eval ac_res=\$$3
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2565 $as_echo "$ac_res" >&6; }
2566 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2567
2568 } # ac_fn_c_check_header_preproc
2569
2570 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2571 # ----------------------------------------------------
2572 # Tries to find if the field MEMBER exists in type AGGR, after including
2573 # INCLUDES, setting cache variable VAR accordingly.
2574 ac_fn_c_check_member ()
2575 {
2576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2578 $as_echo_n "checking for $2.$3... " >&6; }
2579 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2580 $as_echo_n "(cached) " >&6
2581 else
2582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2583 /* end confdefs.h. */
2584 $5
2585 int
2586 main ()
2587 {
2588 static $2 ac_aggr;
2589 if (ac_aggr.$3)
2590 return 0;
2591 ;
2592 return 0;
2593 }
2594 _ACEOF
2595 if ac_fn_c_try_compile "$LINENO"; then :
2596 eval "$4=yes"
2597 else
2598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2599 /* end confdefs.h. */
2600 $5
2601 int
2602 main ()
2603 {
2604 static $2 ac_aggr;
2605 if (sizeof ac_aggr.$3)
2606 return 0;
2607 ;
2608 return 0;
2609 }
2610 _ACEOF
2611 if ac_fn_c_try_compile "$LINENO"; then :
2612 eval "$4=yes"
2613 else
2614 eval "$4=no"
2615 fi
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 fi
2618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619 fi
2620 eval ac_res=\$$4
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2622 $as_echo "$ac_res" >&6; }
2623 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2624
2625 } # ac_fn_c_check_member
2626
2627 # ac_fn_c_check_func LINENO FUNC VAR
2628 # ----------------------------------
2629 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2630 ac_fn_c_check_func ()
2631 {
2632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2634 $as_echo_n "checking for $2... " >&6; }
2635 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2636 $as_echo_n "(cached) " >&6
2637 else
2638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2639 /* end confdefs.h. */
2640 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2642 #define $2 innocuous_$2
2643
2644 /* System header to define __stub macros and hopefully few prototypes,
2645 which can conflict with char $2 (); below.
2646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2647 <limits.h> exists even on freestanding compilers. */
2648
2649 #ifdef __STDC__
2650 # include <limits.h>
2651 #else
2652 # include <assert.h>
2653 #endif
2654
2655 #undef $2
2656
2657 /* Override any GCC internal prototype to avoid an error.
2658 Use char because int might match the return type of a GCC
2659 builtin and then its argument prototype would still apply. */
2660 #ifdef __cplusplus
2661 extern "C"
2662 #endif
2663 char $2 ();
2664 /* The GNU C library defines this for functions which it implements
2665 to always fail with ENOSYS. Some functions are actually named
2666 something starting with __ and the normal name is an alias. */
2667 #if defined __stub_$2 || defined __stub___$2
2668 choke me
2669 #endif
2670
2671 int
2672 main ()
2673 {
2674 return $2 ();
2675 ;
2676 return 0;
2677 }
2678 _ACEOF
2679 if ac_fn_c_try_link "$LINENO"; then :
2680 eval "$3=yes"
2681 else
2682 eval "$3=no"
2683 fi
2684 rm -f core conftest.err conftest.$ac_objext \
2685 conftest$ac_exeext conftest.$ac_ext
2686 fi
2687 eval ac_res=\$$3
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2689 $as_echo "$ac_res" >&6; }
2690 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2691
2692 } # ac_fn_c_check_func
2693
2694 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2695 # -------------------------------------------
2696 # Tests whether TYPE exists after having included INCLUDES, setting cache
2697 # variable VAR accordingly.
2698 ac_fn_c_check_type ()
2699 {
2700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2702 $as_echo_n "checking for $2... " >&6; }
2703 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2704 $as_echo_n "(cached) " >&6
2705 else
2706 eval "$3=no"
2707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2708 /* end confdefs.h. */
2709 $4
2710 int
2711 main ()
2712 {
2713 if (sizeof ($2))
2714 return 0;
2715 ;
2716 return 0;
2717 }
2718 _ACEOF
2719 if ac_fn_c_try_compile "$LINENO"; then :
2720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2721 /* end confdefs.h. */
2722 $4
2723 int
2724 main ()
2725 {
2726 if (sizeof (($2)))
2727 return 0;
2728 ;
2729 return 0;
2730 }
2731 _ACEOF
2732 if ac_fn_c_try_compile "$LINENO"; then :
2733
2734 else
2735 eval "$3=yes"
2736 fi
2737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738 fi
2739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740 fi
2741 eval ac_res=\$$3
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2743 $as_echo "$ac_res" >&6; }
2744 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2745
2746 } # ac_fn_c_check_type
2747
2748 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2749 # --------------------------------------------
2750 # Tries to find the compile-time value of EXPR in a program that includes
2751 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2752 # computed
2753 ac_fn_c_compute_int ()
2754 {
2755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2756 if test "$cross_compiling" = yes; then
2757 # Depending upon the size, compute the lo and hi bounds.
2758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2759 /* end confdefs.h. */
2760 $4
2761 int
2762 main ()
2763 {
2764 static int test_array [1 - 2 * !(($2) >= 0)];
2765 test_array [0] = 0
2766
2767 ;
2768 return 0;
2769 }
2770 _ACEOF
2771 if ac_fn_c_try_compile "$LINENO"; then :
2772 ac_lo=0 ac_mid=0
2773 while :; do
2774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2775 /* end confdefs.h. */
2776 $4
2777 int
2778 main ()
2779 {
2780 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2781 test_array [0] = 0
2782
2783 ;
2784 return 0;
2785 }
2786 _ACEOF
2787 if ac_fn_c_try_compile "$LINENO"; then :
2788 ac_hi=$ac_mid; break
2789 else
2790 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2791 if test $ac_lo -le $ac_mid; then
2792 ac_lo= ac_hi=
2793 break
2794 fi
2795 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2796 fi
2797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2798 done
2799 else
2800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2801 /* end confdefs.h. */
2802 $4
2803 int
2804 main ()
2805 {
2806 static int test_array [1 - 2 * !(($2) < 0)];
2807 test_array [0] = 0
2808
2809 ;
2810 return 0;
2811 }
2812 _ACEOF
2813 if ac_fn_c_try_compile "$LINENO"; then :
2814 ac_hi=-1 ac_mid=-1
2815 while :; do
2816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2817 /* end confdefs.h. */
2818 $4
2819 int
2820 main ()
2821 {
2822 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2823 test_array [0] = 0
2824
2825 ;
2826 return 0;
2827 }
2828 _ACEOF
2829 if ac_fn_c_try_compile "$LINENO"; then :
2830 ac_lo=$ac_mid; break
2831 else
2832 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2833 if test $ac_mid -le $ac_hi; then
2834 ac_lo= ac_hi=
2835 break
2836 fi
2837 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2838 fi
2839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2840 done
2841 else
2842 ac_lo= ac_hi=
2843 fi
2844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2845 fi
2846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2847 # Binary search between lo and hi bounds.
2848 while test "x$ac_lo" != "x$ac_hi"; do
2849 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2851 /* end confdefs.h. */
2852 $4
2853 int
2854 main ()
2855 {
2856 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2857 test_array [0] = 0
2858
2859 ;
2860 return 0;
2861 }
2862 _ACEOF
2863 if ac_fn_c_try_compile "$LINENO"; then :
2864 ac_hi=$ac_mid
2865 else
2866 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2867 fi
2868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2869 done
2870 case $ac_lo in #((
2871 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2872 '') ac_retval=1 ;;
2873 esac
2874 else
2875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2876 /* end confdefs.h. */
2877 $4
2878 static long int longval () { return $2; }
2879 static unsigned long int ulongval () { return $2; }
2880 #include <stdio.h>
2881 #include <stdlib.h>
2882 int
2883 main ()
2884 {
2885
2886 FILE *f = fopen ("conftest.val", "w");
2887 if (! f)
2888 return 1;
2889 if (($2) < 0)
2890 {
2891 long int i = longval ();
2892 if (i != ($2))
2893 return 1;
2894 fprintf (f, "%ld", i);
2895 }
2896 else
2897 {
2898 unsigned long int i = ulongval ();
2899 if (i != ($2))
2900 return 1;
2901 fprintf (f, "%lu", i);
2902 }
2903 /* Do not output a trailing newline, as this causes \r\n confusion
2904 on some platforms. */
2905 return ferror (f) || fclose (f) != 0;
2906
2907 ;
2908 return 0;
2909 }
2910 _ACEOF
2911 if ac_fn_c_try_run "$LINENO"; then :
2912 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2913 else
2914 ac_retval=1
2915 fi
2916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2917 conftest.$ac_objext conftest.beam conftest.$ac_ext
2918 rm -f conftest.val
2919
2920 fi
2921 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2922 as_fn_set_status $ac_retval
2923
2924 } # ac_fn_c_compute_int
2925 cat >config.log <<_ACEOF
2926 This file contains any messages produced by compilers while
2927 running configure, to aid debugging if configure makes a mistake.
2928
2929 It was created by emacs $as_me 24.3.50, which was
2930 generated by GNU Autoconf 2.65. Invocation command line was
2931
2932 $ $0 $@
2933
2934 _ACEOF
2935 exec 5>>config.log
2936 {
2937 cat <<_ASUNAME
2938 ## --------- ##
2939 ## Platform. ##
2940 ## --------- ##
2941
2942 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2943 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2944 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2945 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2946 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2947
2948 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2949 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2950
2951 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2952 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2953 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2954 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2955 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2956 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2957 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2958
2959 _ASUNAME
2960
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH
2963 do
2964 IFS=$as_save_IFS
2965 test -z "$as_dir" && as_dir=.
2966 $as_echo "PATH: $as_dir"
2967 done
2968 IFS=$as_save_IFS
2969
2970 } >&5
2971
2972 cat >&5 <<_ACEOF
2973
2974
2975 ## ----------- ##
2976 ## Core tests. ##
2977 ## ----------- ##
2978
2979 _ACEOF
2980
2981
2982 # Keep a trace of the command line.
2983 # Strip out --no-create and --no-recursion so they do not pile up.
2984 # Strip out --silent because we don't want to record it for future runs.
2985 # Also quote any args containing shell meta-characters.
2986 # Make two passes to allow for proper duplicate-argument suppression.
2987 ac_configure_args=
2988 ac_configure_args0=
2989 ac_configure_args1=
2990 ac_must_keep_next=false
2991 for ac_pass in 1 2
2992 do
2993 for ac_arg
2994 do
2995 case $ac_arg in
2996 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2997 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2998 | -silent | --silent | --silen | --sile | --sil)
2999 continue ;;
3000 *\'*)
3001 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3002 esac
3003 case $ac_pass in
3004 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3005 2)
3006 as_fn_append ac_configure_args1 " '$ac_arg'"
3007 if test $ac_must_keep_next = true; then
3008 ac_must_keep_next=false # Got value, back to normal.
3009 else
3010 case $ac_arg in
3011 *=* | --config-cache | -C | -disable-* | --disable-* \
3012 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3013 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3014 | -with-* | --with-* | -without-* | --without-* | --x)
3015 case "$ac_configure_args0 " in
3016 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3017 esac
3018 ;;
3019 -* ) ac_must_keep_next=true ;;
3020 esac
3021 fi
3022 as_fn_append ac_configure_args " '$ac_arg'"
3023 ;;
3024 esac
3025 done
3026 done
3027 { ac_configure_args0=; unset ac_configure_args0;}
3028 { ac_configure_args1=; unset ac_configure_args1;}
3029
3030 # When interrupted or exit'd, cleanup temporary files, and complete
3031 # config.log. We remove comments because anyway the quotes in there
3032 # would cause problems or look ugly.
3033 # WARNING: Use '\'' to represent an apostrophe within the trap.
3034 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3035 trap 'exit_status=$?
3036 # Save into config.log some information that might help in debugging.
3037 {
3038 echo
3039
3040 cat <<\_ASBOX
3041 ## ---------------- ##
3042 ## Cache variables. ##
3043 ## ---------------- ##
3044 _ASBOX
3045 echo
3046 # The following way of writing the cache mishandles newlines in values,
3047 (
3048 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3049 eval ac_val=\$$ac_var
3050 case $ac_val in #(
3051 *${as_nl}*)
3052 case $ac_var in #(
3053 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3054 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3055 esac
3056 case $ac_var in #(
3057 _ | IFS | as_nl) ;; #(
3058 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3059 *) { eval $ac_var=; unset $ac_var;} ;;
3060 esac ;;
3061 esac
3062 done
3063 (set) 2>&1 |
3064 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3065 *${as_nl}ac_space=\ *)
3066 sed -n \
3067 "s/'\''/'\''\\\\'\'''\''/g;
3068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3069 ;; #(
3070 *)
3071 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3072 ;;
3073 esac |
3074 sort
3075 )
3076 echo
3077
3078 cat <<\_ASBOX
3079 ## ----------------- ##
3080 ## Output variables. ##
3081 ## ----------------- ##
3082 _ASBOX
3083 echo
3084 for ac_var in $ac_subst_vars
3085 do
3086 eval ac_val=\$$ac_var
3087 case $ac_val in
3088 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3089 esac
3090 $as_echo "$ac_var='\''$ac_val'\''"
3091 done | sort
3092 echo
3093
3094 if test -n "$ac_subst_files"; then
3095 cat <<\_ASBOX
3096 ## ------------------- ##
3097 ## File substitutions. ##
3098 ## ------------------- ##
3099 _ASBOX
3100 echo
3101 for ac_var in $ac_subst_files
3102 do
3103 eval ac_val=\$$ac_var
3104 case $ac_val in
3105 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3106 esac
3107 $as_echo "$ac_var='\''$ac_val'\''"
3108 done | sort
3109 echo
3110 fi
3111
3112 if test -s confdefs.h; then
3113 cat <<\_ASBOX
3114 ## ----------- ##
3115 ## confdefs.h. ##
3116 ## ----------- ##
3117 _ASBOX
3118 echo
3119 cat confdefs.h
3120 echo
3121 fi
3122 test "$ac_signal" != 0 &&
3123 $as_echo "$as_me: caught signal $ac_signal"
3124 $as_echo "$as_me: exit $exit_status"
3125 } >&5
3126 rm -f core *.core core.conftest.* &&
3127 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3128 exit $exit_status
3129 ' 0
3130 for ac_signal in 1 2 13 15; do
3131 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3132 done
3133 ac_signal=0
3134
3135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3136 rm -f -r conftest* confdefs.h
3137
3138 $as_echo "/* confdefs.h */" > confdefs.h
3139
3140 # Predefined preprocessor variables.
3141
3142 cat >>confdefs.h <<_ACEOF
3143 #define PACKAGE_NAME "$PACKAGE_NAME"
3144 _ACEOF
3145
3146 cat >>confdefs.h <<_ACEOF
3147 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3148 _ACEOF
3149
3150 cat >>confdefs.h <<_ACEOF
3151 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3152 _ACEOF
3153
3154 cat >>confdefs.h <<_ACEOF
3155 #define PACKAGE_STRING "$PACKAGE_STRING"
3156 _ACEOF
3157
3158 cat >>confdefs.h <<_ACEOF
3159 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3160 _ACEOF
3161
3162 cat >>confdefs.h <<_ACEOF
3163 #define PACKAGE_URL "$PACKAGE_URL"
3164 _ACEOF
3165
3166
3167 # Let the site file select an alternate cache file if it wants to.
3168 # Prefer an explicitly selected file to automatically selected ones.
3169 ac_site_file1=NONE
3170 ac_site_file2=NONE
3171 if test -n "$CONFIG_SITE"; then
3172 ac_site_file1=$CONFIG_SITE
3173 elif test "x$prefix" != xNONE; then
3174 ac_site_file1=$prefix/share/config.site
3175 ac_site_file2=$prefix/etc/config.site
3176 else
3177 ac_site_file1=$ac_default_prefix/share/config.site
3178 ac_site_file2=$ac_default_prefix/etc/config.site
3179 fi
3180 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3181 do
3182 test "x$ac_site_file" = xNONE && continue
3183 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3185 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3186 sed 's/^/| /' "$ac_site_file" >&5
3187 . "$ac_site_file"
3188 fi
3189 done
3190
3191 if test -r "$cache_file"; then
3192 # Some versions of bash will fail to source /dev/null (special files
3193 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3194 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3196 $as_echo "$as_me: loading cache $cache_file" >&6;}
3197 case $cache_file in
3198 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3199 *) . "./$cache_file";;
3200 esac
3201 fi
3202 else
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3204 $as_echo "$as_me: creating cache $cache_file" >&6;}
3205 >$cache_file
3206 fi
3207
3208 as_fn_append ac_header_list " linux/version.h"
3209 as_fn_append ac_header_list " sys/systeminfo.h"
3210 as_fn_append ac_header_list " coff.h"
3211 as_fn_append ac_header_list " pty.h"
3212 as_fn_append ac_header_list " sys/vlimit.h"
3213 as_fn_append ac_header_list " sys/resource.h"
3214 as_fn_append ac_header_list " sys/utsname.h"
3215 as_fn_append ac_header_list " pwd.h"
3216 as_fn_append ac_header_list " utmp.h"
3217 as_fn_append ac_header_list " util.h"
3218 as_fn_append ac_header_list " sys/socket.h"
3219 as_fn_append ac_header_list " stdlib.h"
3220 as_fn_append ac_header_list " unistd.h"
3221 as_fn_append ac_header_list " sys/param.h"
3222 as_fn_append ac_header_list " pthread.h"
3223 as_fn_append ac_header_list " malloc/malloc.h"
3224 as_fn_append ac_header_list " maillock.h"
3225 as_fn_append ac_header_list " sys/un.h"
3226 as_fn_append ac_func_list " tzset"
3227 as_fn_append ac_func_list " readlinkat"
3228 as_fn_append ac_header_list " execinfo.h"
3229 as_fn_append ac_func_list " faccessat"
3230 as_fn_append ac_header_list " stdio_ext.h"
3231 as_fn_append ac_func_list " __fpending"
3232 gl_getopt_required=GNU
3233 as_fn_append ac_header_list " getopt.h"
3234 as_fn_append ac_func_list " gettimeofday"
3235 as_fn_append ac_func_list " nanotime"
3236 as_fn_append ac_header_list " sys/time.h"
3237 as_fn_append ac_header_list " wchar.h"
3238 as_fn_append ac_header_list " stdint.h"
3239 as_fn_append ac_header_list " inttypes.h"
3240 as_fn_append ac_func_list " lstat"
3241 as_fn_append ac_func_list " alarm"
3242 as_fn_append ac_header_list " sys/select.h"
3243 as_fn_append ac_func_list " pselect"
3244 as_fn_append ac_func_list " pthread_sigmask"
3245 as_fn_append ac_func_list " readlink"
3246 as_fn_append ac_func_list " strtoimax"
3247 as_fn_append ac_func_list " strtoumax"
3248 as_fn_append ac_func_list " symlink"
3249 as_fn_append ac_header_list " sys/stat.h"
3250 as_fn_append ac_func_list " localtime_r"
3251 as_fn_append ac_header_list " utime.h"
3252 as_fn_append ac_func_list " futimes"
3253 as_fn_append ac_func_list " futimesat"
3254 as_fn_append ac_func_list " futimens"
3255 as_fn_append ac_func_list " utimensat"
3256 as_fn_append ac_func_list " lutimes"
3257 # Check that the precious variables saved in the cache have kept the same
3258 # value.
3259 ac_cache_corrupted=false
3260 for ac_var in $ac_precious_vars; do
3261 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3262 eval ac_new_set=\$ac_env_${ac_var}_set
3263 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3264 eval ac_new_val=\$ac_env_${ac_var}_value
3265 case $ac_old_set,$ac_new_set in
3266 set,)
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3268 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3269 ac_cache_corrupted=: ;;
3270 ,set)
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3272 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3273 ac_cache_corrupted=: ;;
3274 ,);;
3275 *)
3276 if test "x$ac_old_val" != "x$ac_new_val"; then
3277 # differences in whitespace do not lead to failure.
3278 ac_old_val_w=`echo x $ac_old_val`
3279 ac_new_val_w=`echo x $ac_new_val`
3280 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3282 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3283 ac_cache_corrupted=:
3284 else
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3286 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3287 eval $ac_var=\$ac_old_val
3288 fi
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3290 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3292 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3293 fi;;
3294 esac
3295 # Pass precious variables to config.status.
3296 if test "$ac_new_set" = set; then
3297 case $ac_new_val in
3298 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3299 *) ac_arg=$ac_var=$ac_new_val ;;
3300 esac
3301 case " $ac_configure_args " in
3302 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3303 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3304 esac
3305 fi
3306 done
3307 if $ac_cache_corrupted; then
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3311 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3312 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3313 fi
3314 ## -------------------- ##
3315 ## Main body of script. ##
3316 ## -------------------- ##
3317
3318 ac_ext=c
3319 ac_cpp='$CPP $CPPFLAGS'
3320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3323
3324
3325 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3326
3327
3328 ac_aux_dir=
3329 for ac_dir in build-aux "$srcdir"/build-aux; do
3330 for ac_t in install-sh install.sh shtool; do
3331 if test -f "$ac_dir/$ac_t"; then
3332 ac_aux_dir=$ac_dir
3333 ac_install_sh="$ac_aux_dir/$ac_t -c"
3334 break 2
3335 fi
3336 done
3337 done
3338 if test -z "$ac_aux_dir"; then
3339 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3340 fi
3341
3342 # These three variables are undocumented and unsupported,
3343 # and are intended to be withdrawn in a future Autoconf release.
3344 # They can cause serious problems if a builder's source tree is in a directory
3345 # whose full name contains unusual characters.
3346 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3347 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3348 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3349
3350
3351 am__api_version='1.11'
3352
3353 # Find a good install program. We prefer a C program (faster),
3354 # so one script is as good as another. But avoid the broken or
3355 # incompatible versions:
3356 # SysV /etc/install, /usr/sbin/install
3357 # SunOS /usr/etc/install
3358 # IRIX /sbin/install
3359 # AIX /bin/install
3360 # AmigaOS /C/install, which installs bootblocks on floppy discs
3361 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3362 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3363 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3364 # OS/2's system install, which has a completely different semantic
3365 # ./install, which can be erroneously created by make from ./install.sh.
3366 # Reject install programs that cannot install multiple files.
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3368 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3369 if test -z "$INSTALL"; then
3370 if test "${ac_cv_path_install+set}" = set; then :
3371 $as_echo_n "(cached) " >&6
3372 else
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH
3375 do
3376 IFS=$as_save_IFS
3377 test -z "$as_dir" && as_dir=.
3378 # Account for people who put trailing slashes in PATH elements.
3379 case $as_dir/ in #((
3380 ./ | .// | /[cC]/* | \
3381 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3382 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3383 /usr/ucb/* ) ;;
3384 *)
3385 # OSF1 and SCO ODT 3.0 have their own names for install.
3386 # Don't use installbsd from OSF since it installs stuff as root
3387 # by default.
3388 for ac_prog in ginstall scoinst install; do
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3391 if test $ac_prog = install &&
3392 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3393 # AIX install. It has an incompatible calling convention.
3394 :
3395 elif test $ac_prog = install &&
3396 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3397 # program-specific install script used by HP pwplus--don't use.
3398 :
3399 else
3400 rm -rf conftest.one conftest.two conftest.dir
3401 echo one > conftest.one
3402 echo two > conftest.two
3403 mkdir conftest.dir
3404 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3405 test -s conftest.one && test -s conftest.two &&
3406 test -s conftest.dir/conftest.one &&
3407 test -s conftest.dir/conftest.two
3408 then
3409 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3410 break 3
3411 fi
3412 fi
3413 fi
3414 done
3415 done
3416 ;;
3417 esac
3418
3419 done
3420 IFS=$as_save_IFS
3421
3422 rm -rf conftest.one conftest.two conftest.dir
3423
3424 fi
3425 if test "${ac_cv_path_install+set}" = set; then
3426 INSTALL=$ac_cv_path_install
3427 else
3428 # As a last resort, use the slow shell script. Don't cache a
3429 # value for INSTALL within a source directory, because that will
3430 # break other packages using the cache if that directory is
3431 # removed, or if the value is a relative name.
3432 INSTALL=$ac_install_sh
3433 fi
3434 fi
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3436 $as_echo "$INSTALL" >&6; }
3437
3438 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3439 # It thinks the first close brace ends the variable substitution.
3440 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3441
3442 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3443
3444 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3445
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3447 $as_echo_n "checking whether build environment is sane... " >&6; }
3448 # Just in case
3449 sleep 1
3450 echo timestamp > conftest.file
3451 # Reject unsafe characters in $srcdir or the absolute working directory
3452 # name. Accept space and tab only in the latter.
3453 am_lf='
3454 '
3455 case `pwd` in
3456 *[\\\"\#\$\&\'\`$am_lf]*)
3457 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3458 esac
3459 case $srcdir in
3460 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3461 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3462 esac
3463
3464 # Do `set' in a subshell so we don't clobber the current shell's
3465 # arguments. Must try -L first in case configure is actually a
3466 # symlink; some systems play weird games with the mod time of symlinks
3467 # (eg FreeBSD returns the mod time of the symlink's containing
3468 # directory).
3469 if (
3470 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3471 if test "$*" = "X"; then
3472 # -L didn't work.
3473 set X `ls -t "$srcdir/configure" conftest.file`
3474 fi
3475 rm -f conftest.file
3476 if test "$*" != "X $srcdir/configure conftest.file" \
3477 && test "$*" != "X conftest.file $srcdir/configure"; then
3478
3479 # If neither matched, then we have a broken ls. This can happen
3480 # if, for instance, CONFIG_SHELL is bash and it inherits a
3481 # broken ls alias from the environment. This has actually
3482 # happened. Such a system could not be considered "sane".
3483 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3484 alias in your environment" "$LINENO" 5
3485 fi
3486
3487 test "$2" = conftest.file
3488 )
3489 then
3490 # Ok.
3491 :
3492 else
3493 as_fn_error "newly created file is older than distributed files!
3494 Check your system clock" "$LINENO" 5
3495 fi
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3497 $as_echo "yes" >&6; }
3498 test "$program_prefix" != NONE &&
3499 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3500 # Use a double $ so make ignores it.
3501 test "$program_suffix" != NONE &&
3502 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3503 # Double any \ or $.
3504 # By default was `s,x,x', remove it if useless.
3505 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3506 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3507
3508 # expand $ac_aux_dir to an absolute path
3509 am_aux_dir=`cd $ac_aux_dir && pwd`
3510
3511 if test x"${MISSING+set}" != xset; then
3512 case $am_aux_dir in
3513 *\ * | *\ *)
3514 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3515 *)
3516 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3517 esac
3518 fi
3519 # Use eval to expand $SHELL
3520 if eval "$MISSING --run true"; then
3521 am_missing_run="$MISSING --run "
3522 else
3523 am_missing_run=
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3525 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3526 fi
3527
3528 if test x"${install_sh}" != xset; then
3529 case $am_aux_dir in
3530 *\ * | *\ *)
3531 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3532 *)
3533 install_sh="\${SHELL} $am_aux_dir/install-sh"
3534 esac
3535 fi
3536
3537 # Installed binaries are usually stripped using `strip' when the user
3538 # run `make install-strip'. However `strip' might not be the right
3539 # tool to use in cross-compilation environments, therefore Automake
3540 # will honor the `STRIP' environment variable to overrule this program.
3541 if test "$cross_compiling" != no; then
3542 if test -n "$ac_tool_prefix"; then
3543 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3544 set dummy ${ac_tool_prefix}strip; ac_word=$2
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546 $as_echo_n "checking for $ac_word... " >&6; }
3547 if test "${ac_cv_prog_STRIP+set}" = set; then :
3548 $as_echo_n "(cached) " >&6
3549 else
3550 if test -n "$STRIP"; then
3551 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3552 else
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH
3555 do
3556 IFS=$as_save_IFS
3557 test -z "$as_dir" && as_dir=.
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3560 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 break 2
3563 fi
3564 done
3565 done
3566 IFS=$as_save_IFS
3567
3568 fi
3569 fi
3570 STRIP=$ac_cv_prog_STRIP
3571 if test -n "$STRIP"; then
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3573 $as_echo "$STRIP" >&6; }
3574 else
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 $as_echo "no" >&6; }
3577 fi
3578
3579
3580 fi
3581 if test -z "$ac_cv_prog_STRIP"; then
3582 ac_ct_STRIP=$STRIP
3583 # Extract the first word of "strip", so it can be a program name with args.
3584 set dummy strip; ac_word=$2
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3586 $as_echo_n "checking for $ac_word... " >&6; }
3587 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3588 $as_echo_n "(cached) " >&6
3589 else
3590 if test -n "$ac_ct_STRIP"; then
3591 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3592 else
3593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 for as_dir in $PATH
3595 do
3596 IFS=$as_save_IFS
3597 test -z "$as_dir" && as_dir=.
3598 for ac_exec_ext in '' $ac_executable_extensions; do
3599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3600 ac_cv_prog_ac_ct_STRIP="strip"
3601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3602 break 2
3603 fi
3604 done
3605 done
3606 IFS=$as_save_IFS
3607
3608 fi
3609 fi
3610 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3611 if test -n "$ac_ct_STRIP"; then
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3613 $as_echo "$ac_ct_STRIP" >&6; }
3614 else
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616 $as_echo "no" >&6; }
3617 fi
3618
3619 if test "x$ac_ct_STRIP" = x; then
3620 STRIP=":"
3621 else
3622 case $cross_compiling:$ac_tool_warned in
3623 yes:)
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3626 ac_tool_warned=yes ;;
3627 esac
3628 STRIP=$ac_ct_STRIP
3629 fi
3630 else
3631 STRIP="$ac_cv_prog_STRIP"
3632 fi
3633
3634 fi
3635 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3636
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3638 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3639 if test -z "$MKDIR_P"; then
3640 if test "${ac_cv_path_mkdir+set}" = set; then :
3641 $as_echo_n "(cached) " >&6
3642 else
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3645 do
3646 IFS=$as_save_IFS
3647 test -z "$as_dir" && as_dir=.
3648 for ac_prog in mkdir gmkdir; do
3649 for ac_exec_ext in '' $ac_executable_extensions; do
3650 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3651 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3652 'mkdir (GNU coreutils) '* | \
3653 'mkdir (coreutils) '* | \
3654 'mkdir (fileutils) '4.1*)
3655 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3656 break 3;;
3657 esac
3658 done
3659 done
3660 done
3661 IFS=$as_save_IFS
3662
3663 fi
3664
3665 test -d ./--version && rmdir ./--version
3666 if test "${ac_cv_path_mkdir+set}" = set; then
3667 MKDIR_P="$ac_cv_path_mkdir -p"
3668 else
3669 # As a last resort, use the slow shell script. Don't cache a
3670 # value for MKDIR_P within a source directory, because that will
3671 # break other packages using the cache if that directory is
3672 # removed, or if the value is a relative name.
3673 MKDIR_P="$ac_install_sh -d"
3674 fi
3675 fi
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3677 $as_echo "$MKDIR_P" >&6; }
3678
3679
3680 mkdir_p="$MKDIR_P"
3681 case $mkdir_p in
3682 [\\/$]* | ?:[\\/]*) ;;
3683 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3684 esac
3685
3686 for ac_prog in gawk mawk nawk awk
3687 do
3688 # Extract the first word of "$ac_prog", so it can be a program name with args.
3689 set dummy $ac_prog; ac_word=$2
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3691 $as_echo_n "checking for $ac_word... " >&6; }
3692 if test "${ac_cv_prog_AWK+set}" = set; then :
3693 $as_echo_n "(cached) " >&6
3694 else
3695 if test -n "$AWK"; then
3696 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3697 else
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 for as_dir in $PATH
3700 do
3701 IFS=$as_save_IFS
3702 test -z "$as_dir" && as_dir=.
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3705 ac_cv_prog_AWK="$ac_prog"
3706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3707 break 2
3708 fi
3709 done
3710 done
3711 IFS=$as_save_IFS
3712
3713 fi
3714 fi
3715 AWK=$ac_cv_prog_AWK
3716 if test -n "$AWK"; then
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3718 $as_echo "$AWK" >&6; }
3719 else
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721 $as_echo "no" >&6; }
3722 fi
3723
3724
3725 test -n "$AWK" && break
3726 done
3727
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3729 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3730 set x ${MAKE-make}
3731 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3732 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3733 $as_echo_n "(cached) " >&6
3734 else
3735 cat >conftest.make <<\_ACEOF
3736 SHELL = /bin/sh
3737 all:
3738 @echo '@@@%%%=$(MAKE)=@@@%%%'
3739 _ACEOF
3740 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3741 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3742 *@@@%%%=?*=@@@%%%*)
3743 eval ac_cv_prog_make_${ac_make}_set=yes;;
3744 *)
3745 eval ac_cv_prog_make_${ac_make}_set=no;;
3746 esac
3747 rm -f conftest.make
3748 fi
3749 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3751 $as_echo "yes" >&6; }
3752 SET_MAKE=
3753 else
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755 $as_echo "no" >&6; }
3756 SET_MAKE="MAKE=${MAKE-make}"
3757 fi
3758
3759 rm -rf .tst 2>/dev/null
3760 mkdir .tst 2>/dev/null
3761 if test -d .tst; then
3762 am__leading_dot=.
3763 else
3764 am__leading_dot=_
3765 fi
3766 rmdir .tst 2>/dev/null
3767
3768 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3769 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3770 # is not polluted with repeated "-I."
3771 am__isrc=' -I$(srcdir)'
3772 # test to see if srcdir already configured
3773 if test -f $srcdir/config.status; then
3774 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3775 fi
3776 fi
3777
3778 # test whether we have cygpath
3779 if test -z "$CYGPATH_W"; then
3780 if (cygpath --version) >/dev/null 2>/dev/null; then
3781 CYGPATH_W='cygpath -w'
3782 else
3783 CYGPATH_W=echo
3784 fi
3785 fi
3786
3787
3788 # Define the identity of the package.
3789 PACKAGE='emacs'
3790 VERSION='24.3.50'
3791
3792
3793 cat >>confdefs.h <<_ACEOF
3794 #define PACKAGE "$PACKAGE"
3795 _ACEOF
3796
3797
3798 cat >>confdefs.h <<_ACEOF
3799 #define VERSION "$VERSION"
3800 _ACEOF
3801
3802 # Some tools Automake needs.
3803
3804 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3805
3806
3807 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3808
3809
3810 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3811
3812
3813 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3814
3815
3816 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3817
3818 # We need awk for the "check" target. The system "awk" is bad on
3819 # some platforms.
3820 # Always define AMTAR for backward compatibility.
3821
3822 AMTAR=${AMTAR-"${am_missing_run}tar"}
3823
3824 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3825
3826
3827
3828
3829
3830
3831
3832
3833 lispdir='${datadir}/emacs/${version}/lisp'
3834 leimdir='${datadir}/emacs/${version}/leim'
3835 standardlisppath='${lispdir}:${leimdir}'
3836 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3837 '${datadir}/emacs/site-lisp'
3838 lisppath='${locallisppath}:${standardlisppath}'
3839 etcdir='${datadir}/emacs/${version}/etc'
3840 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3841 docdir='${datadir}/emacs/${version}/etc'
3842 gamedir='${localstatedir}/games/emacs'
3843
3844
3845 # Check whether --with-all was given.
3846 if test "${with_all+set}" = set; then :
3847 withval=$with_all; with_features=$withval
3848 else
3849 with_features=yes
3850 fi
3851
3852
3853
3854
3855
3856 # Check whether --with-pop was given.
3857 if test "${with_pop+set}" = set; then :
3858 withval=$with_pop;
3859 else
3860 with_pop=$with_features
3861 fi
3862
3863 if test "$with_pop" = yes; then
3864 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3865
3866 fi
3867
3868
3869 # Check whether --with-kerberos was given.
3870 if test "${with_kerberos+set}" = set; then :
3871 withval=$with_kerberos;
3872 else
3873 with_kerberos=no
3874 fi
3875
3876 if test "$with_kerberos" != no; then
3877 $as_echo "#define KERBEROS 1" >>confdefs.h
3878
3879 fi
3880
3881
3882 # Check whether --with-kerberos5 was given.
3883 if test "${with_kerberos5+set}" = set; then :
3884 withval=$with_kerberos5;
3885 else
3886 with_kerberos5=no
3887 fi
3888
3889 if test "${with_kerberos5}" != no; then
3890 if test "${with_kerberos}" = no; then
3891 with_kerberos=yes
3892 $as_echo "#define KERBEROS 1" >>confdefs.h
3893
3894 fi
3895
3896 $as_echo "#define KERBEROS5 1" >>confdefs.h
3897
3898 fi
3899
3900
3901 # Check whether --with-hesiod was given.
3902 if test "${with_hesiod+set}" = set; then :
3903 withval=$with_hesiod;
3904 else
3905 with_hesiod=no
3906 fi
3907
3908 if test "$with_hesiod" != no; then
3909
3910 $as_echo "#define HESIOD 1" >>confdefs.h
3911
3912 fi
3913
3914
3915 # Check whether --with-mmdf was given.
3916 if test "${with_mmdf+set}" = set; then :
3917 withval=$with_mmdf;
3918 else
3919 with_mmdf=no
3920 fi
3921
3922 if test "$with_mmdf" != no; then
3923
3924 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3925
3926 fi
3927
3928
3929 # Check whether --with-mail-unlink was given.
3930 if test "${with_mail_unlink+set}" = set; then :
3931 withval=$with_mail_unlink;
3932 else
3933 with_mail_unlink=no
3934 fi
3935
3936 if test "$with_mail_unlink" != no; then
3937
3938 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3939
3940 fi
3941
3942
3943 # Check whether --with-mailhost was given.
3944 if test "${with_mailhost+set}" = set; then :
3945 withval=$with_mailhost;
3946 cat >>confdefs.h <<_ACEOF
3947 #define MAILHOST "$withval"
3948 _ACEOF
3949
3950 fi
3951
3952
3953
3954 # Check whether --with-sound was given.
3955 if test "${with_sound+set}" = set; then :
3956 withval=$with_sound;
3957 else
3958 with_sound=$with_features
3959 fi
3960
3961
3962
3963 # Check whether --with-x-toolkit was given.
3964 if test "${with_x_toolkit+set}" = set; then :
3965 withval=$with_x_toolkit; case "${withval}" in
3966 y | ye | yes ) val=gtk ;;
3967 n | no ) val=no ;;
3968 l | lu | luc | luci | lucid ) val=lucid ;;
3969 a | at | ath | athe | athen | athena ) val=athena ;;
3970 m | mo | mot | moti | motif ) val=motif ;;
3971 g | gt | gtk ) val=gtk ;;
3972 gtk2 ) val=gtk2 ;;
3973 gtk3 ) val=gtk3 ;;
3974 * )
3975 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3976 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
3977 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
3978 \`athena' and \`lucid' are synonyms." "$LINENO" 5
3979 ;;
3980 esac
3981 with_x_toolkit=$val
3982
3983 fi
3984
3985
3986
3987 # Check whether --with-wide-int was given.
3988 if test "${with_wide_int+set}" = set; then :
3989 withval=$with_wide_int;
3990 else
3991 with_wide_int=no
3992 fi
3993
3994 if test "$with_wide_int" = yes; then
3995
3996 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3997
3998 fi
3999
4000
4001 # Check whether --with-xpm was given.
4002 if test "${with_xpm+set}" = set; then :
4003 withval=$with_xpm;
4004 else
4005 with_xpm=$with_features
4006 fi
4007
4008
4009 # Check whether --with-jpeg was given.
4010 if test "${with_jpeg+set}" = set; then :
4011 withval=$with_jpeg;
4012 else
4013 with_jpeg=$with_features
4014 fi
4015
4016
4017 # Check whether --with-tiff was given.
4018 if test "${with_tiff+set}" = set; then :
4019 withval=$with_tiff;
4020 else
4021 with_tiff=$with_features
4022 fi
4023
4024
4025 # Check whether --with-gif was given.
4026 if test "${with_gif+set}" = set; then :
4027 withval=$with_gif;
4028 else
4029 with_gif=$with_features
4030 fi
4031
4032
4033 # Check whether --with-png was given.
4034 if test "${with_png+set}" = set; then :
4035 withval=$with_png;
4036 else
4037 with_png=$with_features
4038 fi
4039
4040
4041 # Check whether --with-rsvg was given.
4042 if test "${with_rsvg+set}" = set; then :
4043 withval=$with_rsvg;
4044 else
4045 with_rsvg=$with_features
4046 fi
4047
4048
4049 # Check whether --with-xml2 was given.
4050 if test "${with_xml2+set}" = set; then :
4051 withval=$with_xml2;
4052 else
4053 with_xml2=$with_features
4054 fi
4055
4056
4057 # Check whether --with-imagemagick was given.
4058 if test "${with_imagemagick+set}" = set; then :
4059 withval=$with_imagemagick;
4060 else
4061 with_imagemagick=$with_features
4062 fi
4063
4064
4065
4066 # Check whether --with-xft was given.
4067 if test "${with_xft+set}" = set; then :
4068 withval=$with_xft;
4069 else
4070 with_xft=$with_features
4071 fi
4072
4073
4074 # Check whether --with-libotf was given.
4075 if test "${with_libotf+set}" = set; then :
4076 withval=$with_libotf;
4077 else
4078 with_libotf=$with_features
4079 fi
4080
4081
4082 # Check whether --with-m17n-flt was given.
4083 if test "${with_m17n_flt+set}" = set; then :
4084 withval=$with_m17n_flt;
4085 else
4086 with_m17n_flt=$with_features
4087 fi
4088
4089
4090
4091 # Check whether --with-toolkit-scroll-bars was given.
4092 if test "${with_toolkit_scroll_bars+set}" = set; then :
4093 withval=$with_toolkit_scroll_bars;
4094 else
4095 with_toolkit_scroll_bars=$with_features
4096 fi
4097
4098
4099 # Check whether --with-xaw3d was given.
4100 if test "${with_xaw3d+set}" = set; then :
4101 withval=$with_xaw3d;
4102 else
4103 with_xaw3d=$with_features
4104 fi
4105
4106
4107 # Check whether --with-xim was given.
4108 if test "${with_xim+set}" = set; then :
4109 withval=$with_xim;
4110 else
4111 with_xim=$with_features
4112 fi
4113
4114
4115 # Check whether --with-ns was given.
4116 if test "${with_ns+set}" = set; then :
4117 withval=$with_ns;
4118 else
4119 with_ns=no
4120 fi
4121
4122
4123 # Check whether --with-w32 was given.
4124 if test "${with_w32+set}" = set; then :
4125 withval=$with_w32;
4126 else
4127 with_w32=no
4128 fi
4129
4130
4131
4132 # Check whether --with-gpm was given.
4133 if test "${with_gpm+set}" = set; then :
4134 withval=$with_gpm;
4135 else
4136 with_gpm=$with_features
4137 fi
4138
4139
4140 # Check whether --with-dbus was given.
4141 if test "${with_dbus+set}" = set; then :
4142 withval=$with_dbus;
4143 else
4144 with_dbus=$with_features
4145 fi
4146
4147
4148 # Check whether --with-gconf was given.
4149 if test "${with_gconf+set}" = set; then :
4150 withval=$with_gconf;
4151 else
4152 with_gconf=$with_features
4153 fi
4154
4155
4156 # Check whether --with-gsettings was given.
4157 if test "${with_gsettings+set}" = set; then :
4158 withval=$with_gsettings;
4159 else
4160 with_gsettings=$with_features
4161 fi
4162
4163
4164 # Check whether --with-selinux was given.
4165 if test "${with_selinux+set}" = set; then :
4166 withval=$with_selinux;
4167 else
4168 with_selinux=$with_features
4169 fi
4170
4171
4172 # Check whether --with-gnutls was given.
4173 if test "${with_gnutls+set}" = set; then :
4174 withval=$with_gnutls;
4175 else
4176 with_gnutls=$with_features
4177 fi
4178
4179
4180 ## For the times when you want to build Emacs but don't have
4181 ## a suitable makeinfo, and can live without the manuals.
4182
4183 # Check whether --with-makeinfo was given.
4184 if test "${with_makeinfo+set}" = set; then :
4185 withval=$with_makeinfo;
4186 else
4187 with_makeinfo=$with_features
4188 fi
4189
4190
4191 ## Makefile.in needs the cache file name.
4192
4193
4194 ## This is an option because I do not know if all info/man support
4195 ## compressed files, nor how to test if they do so.
4196
4197 # Check whether --with-compress-info was given.
4198 if test "${with_compress_info+set}" = set; then :
4199 withval=$with_compress_info;
4200 else
4201 with_compress_info=$with_features
4202 fi
4203
4204 if test $with_compress_info = yes; then
4205 GZIP_INFO=yes
4206 else
4207 GZIP_INFO=
4208 fi
4209
4210
4211
4212 # Check whether --with-pkg-config-prog was given.
4213 if test "${with_pkg_config_prog+set}" = set; then :
4214 withval=$with_pkg_config_prog;
4215 fi
4216
4217 if test "X${with_pkg_config_prog}" != X; then
4218 if test "${with_pkg_config_prog}" != yes; then
4219 PKG_CONFIG="${with_pkg_config_prog}"
4220 fi
4221 fi
4222
4223 CRT_DIR=
4224
4225 # Check whether --with-crt-dir was given.
4226 if test "${with_crt_dir+set}" = set; then :
4227 withval=$with_crt_dir;
4228 fi
4229
4230 CRT_DIR="${with_crt_dir}"
4231
4232
4233 # Check whether --with-gameuser was given.
4234 if test "${with_gameuser+set}" = set; then :
4235 withval=$with_gameuser;
4236 fi
4237
4238 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4239 && gameuser="${with_gameuser}"
4240 test "X$gameuser" = X && gameuser=games
4241
4242
4243 # Check whether --with-gnustep-conf was given.
4244 if test "${with_gnustep_conf+set}" = set; then :
4245 withval=$with_gnustep_conf;
4246 fi
4247
4248 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4249 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4250 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4251 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4252
4253 # Check whether --enable-ns-self-contained was given.
4254 if test "${enable_ns_self_contained+set}" = set; then :
4255 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4256 else
4257 EN_NS_SELF_CONTAINED=yes
4258 fi
4259
4260
4261 # Check whether --enable-locallisppath was given.
4262 if test "${enable_locallisppath+set}" = set; then :
4263 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4264 locallisppath=
4265 elif test "${enableval}" != "yes"; then
4266 locallisppath=${enableval}
4267 fi
4268 fi
4269
4270
4271 # Check whether --enable-checking was given.
4272 if test "${enable_checking+set}" = set; then :
4273 enableval=$enable_checking; ac_checking_flags="${enableval}"
4274 fi
4275
4276 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4277 for check in $ac_checking_flags
4278 do
4279 case $check in
4280 # these set all the flags to specific states
4281 yes) ac_enable_checking=1 ;;
4282 no) ac_enable_checking= ;
4283 ac_gc_check_stringbytes= ;
4284 ac_gc_check_string_overrun= ;
4285 ac_gc_check_string_free_list= ;
4286 ac_xmalloc_overrun= ;
4287 ac_gc_check_cons_list= ;
4288 ac_glyphs_debug= ;;
4289 all) ac_enable_checking=1 ;
4290 ac_gc_check_stringbytes=1 ;
4291 ac_gc_check_string_overrun=1 ;
4292 ac_gc_check_string_free_list=1 ;
4293 ac_xmalloc_overrun=1 ;
4294 ac_gc_check_cons_list=1 ;
4295 ac_glyphs_debug=1 ;;
4296 # these enable particular checks
4297 stringbytes) ac_gc_check_stringbytes=1 ;;
4298 stringoverrun) ac_gc_check_string_overrun=1 ;;
4299 stringfreelist) ac_gc_check_string_free_list=1 ;;
4300 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4301 conslist) ac_gc_check_cons_list=1 ;;
4302 glyphs) ac_glyphs_debug=1 ;;
4303 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4304 esac
4305 done
4306 IFS="$ac_save_IFS"
4307
4308 if test x$ac_enable_checking != x ; then
4309
4310 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4311
4312 fi
4313 if test x$ac_gc_check_stringbytes != x ; then
4314
4315 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4316
4317 fi
4318 if test x$ac_gc_check_string_overrun != x ; then
4319
4320 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4321
4322 fi
4323 if test x$ac_gc_check_string_free_list != x ; then
4324
4325 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4326
4327 fi
4328 if test x$ac_xmalloc_overrun != x ; then
4329
4330 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4331
4332 fi
4333 if test x$ac_gc_check_cons_list != x ; then
4334
4335 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4336
4337 fi
4338 if test x$ac_glyphs_debug != x ; then
4339
4340 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4341
4342 fi
4343
4344 # Check whether --enable-check-lisp-object-type was given.
4345 if test "${enable_check_lisp_object_type+set}" = set; then :
4346 enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4347
4348 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4349
4350 fi
4351 fi
4352
4353
4354
4355 # Check whether --enable-profiling was given.
4356 if test "${enable_profiling+set}" = set; then :
4357 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4358 fi
4359
4360 if test x$ac_enable_profiling != x ; then
4361 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4362 else
4363 PROFILING_CFLAGS=
4364 fi
4365
4366
4367 # Check whether --enable-autodepend was given.
4368 if test "${enable_autodepend+set}" = set; then :
4369 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4370 else
4371 ac_enable_autodepend=yes
4372 fi
4373
4374
4375 #### Make srcdir absolute, if it isn't already. It's important to
4376 #### avoid running the path through pwd unnecessarily, since pwd can
4377 #### give you automounter prefixes, which can go away. We do all this
4378 #### so Emacs can find its files when run uninstalled.
4379 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4380 unset CDPATH
4381 case "${srcdir}" in
4382 /* ) ;;
4383 . )
4384 ## We may be able to use the $PWD environment variable to make this
4385 ## absolute. But sometimes PWD is inaccurate.
4386 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4387 ## but that tested only for a well-formed and valid PWD,
4388 ## it did not object when PWD was well-formed and valid but just wrong.
4389 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4390 then
4391 srcdir="$PWD"
4392 else
4393 srcdir="`(cd ${srcdir}; pwd)`"
4394 fi
4395 ;;
4396 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4397 esac
4398
4399 ### Canonicalize the configuration name.
4400
4401 # Make sure we can run config.sub.
4402 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4403 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4404
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4406 $as_echo_n "checking build system type... " >&6; }
4407 if test "${ac_cv_build+set}" = set; then :
4408 $as_echo_n "(cached) " >&6
4409 else
4410 ac_build_alias=$build_alias
4411 test "x$ac_build_alias" = x &&
4412 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4413 test "x$ac_build_alias" = x &&
4414 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4415 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4416 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4417
4418 fi
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4420 $as_echo "$ac_cv_build" >&6; }
4421 case $ac_cv_build in
4422 *-*-*) ;;
4423 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4424 esac
4425 build=$ac_cv_build
4426 ac_save_IFS=$IFS; IFS='-'
4427 set x $ac_cv_build
4428 shift
4429 build_cpu=$1
4430 build_vendor=$2
4431 shift; shift
4432 # Remember, the first character of IFS is used to create $*,
4433 # except with old shells:
4434 build_os=$*
4435 IFS=$ac_save_IFS
4436 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4437
4438
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4440 $as_echo_n "checking host system type... " >&6; }
4441 if test "${ac_cv_host+set}" = set; then :
4442 $as_echo_n "(cached) " >&6
4443 else
4444 if test "x$host_alias" = x; then
4445 ac_cv_host=$ac_cv_build
4446 else
4447 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4448 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4449 fi
4450
4451 fi
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4453 $as_echo "$ac_cv_host" >&6; }
4454 case $ac_cv_host in
4455 *-*-*) ;;
4456 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4457 esac
4458 host=$ac_cv_host
4459 ac_save_IFS=$IFS; IFS='-'
4460 set x $ac_cv_host
4461 shift
4462 host_cpu=$1
4463 host_vendor=$2
4464 shift; shift
4465 # Remember, the first character of IFS is used to create $*,
4466 # except with old shells:
4467 host_os=$*
4468 IFS=$ac_save_IFS
4469 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4470
4471
4472 canonical=$host
4473 configuration=${host_alias-${build_alias-$host}}
4474
4475
4476
4477 ### If you add support for a new configuration, add code to this
4478 ### switch statement to recognize your configuration name and select
4479 ### the appropriate operating system file.
4480
4481 ### You would hope that you could choose an s/*.h
4482 ### file based on the operating system portion. However, it turns out
4483 ### that each s/*.h file is pretty manufacturer-specific.
4484 ### So we basically have to have a special case for each
4485 ### configuration name.
4486 ###
4487 ### As far as handling version numbers on operating systems is
4488 ### concerned, make sure things will fail in a fixable way. If
4489 ### /etc/MACHINES doesn't say anything about version numbers, be
4490 ### prepared to handle anything reasonably. If version numbers
4491 ### matter, be sure /etc/MACHINES says something about it.
4492
4493 opsys='' unported=no
4494 case "${canonical}" in
4495
4496 ## GNU/Linux and similar ports
4497 *-*-linux* )
4498 opsys=gnu-linux
4499 ;;
4500
4501 ## FreeBSD ports
4502 *-*-freebsd* )
4503 opsys=freebsd
4504 ;;
4505
4506 ## FreeBSD kernel + glibc based userland
4507 *-*-kfreebsd*gnu* )
4508 opsys=gnu-kfreebsd
4509 ;;
4510
4511 ## NetBSD ports
4512 *-*-netbsd* )
4513 opsys=netbsd
4514 ;;
4515
4516 ## OpenBSD ports
4517 *-*-openbsd* )
4518 opsys=openbsd
4519 ;;
4520
4521 ## Apple Darwin / Mac OS X
4522 *-apple-darwin* )
4523 case "${canonical}" in
4524 i[3456]86-* ) ;;
4525 powerpc-* ) ;;
4526 x86_64-* ) ;;
4527 * ) unported=yes ;;
4528 esac
4529 opsys=darwin
4530 ## Use fink packages if available.
4531 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4532 ## if test -d /sw/include && test -d /sw/lib; then
4533 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4534 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4535 ## fi
4536 ;;
4537
4538 ## HP 9000 series 700 and 800, running HP/UX
4539 hppa*-hp-hpux10.2* )
4540 opsys=hpux10-20
4541 ;;
4542 hppa*-hp-hpux1[1-9]* )
4543 opsys=hpux11
4544 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4545 ;;
4546
4547 ## IBM machines
4548 rs6000-ibm-aix4.[23]* )
4549 opsys=aix4-2
4550 ;;
4551 powerpc-ibm-aix4.[23]* )
4552 opsys=aix4-2
4553 ;;
4554 rs6000-ibm-aix[56]* )
4555 opsys=aix4-2
4556 ;;
4557 powerpc-ibm-aix[56]* )
4558 opsys=aix4-2
4559 ;;
4560
4561 ## Silicon Graphics machines
4562 ## Iris 4D
4563 mips-sgi-irix6.5 )
4564 opsys=irix6-5
4565 # Without defining _LANGUAGE_C, things get masked out in the headers
4566 # so that, for instance, grepping for `free' in stdlib.h fails and
4567 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4568 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4569 ;;
4570
4571 ## Suns
4572 *-sun-solaris* \
4573 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4574 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4575 case "${canonical}" in
4576 i[3456]86-*-* ) ;;
4577 amd64-*-*|x86_64-*-*) ;;
4578 sparc* ) ;;
4579 * ) unported=yes ;;
4580 esac
4581 case "${canonical}" in
4582 *-sunos5.6* | *-solaris2.6* )
4583 opsys=sol2-6
4584 RANLIB="ar -ts"
4585 ;;
4586 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4587 opsys=sol2-6
4588 emacs_check_sunpro_c=yes
4589 ;;
4590 *-sunos5* | *-solaris* )
4591 opsys=sol2-10
4592 emacs_check_sunpro_c=yes
4593 ;;
4594 esac
4595 ## Watch out for a compiler that we know will not work.
4596 case "${canonical}" in
4597 *-solaris* | *-sunos5* )
4598 if [ "x$CC" = x/usr/ucb/cc ]; then
4599 ## /usr/ucb/cc doesn't work;
4600 ## we should find some other compiler that does work.
4601 unset CC
4602 fi
4603 ;;
4604 *) ;;
4605 esac
4606 ;;
4607
4608 ## Intel 386 machines where we don't care about the manufacturer.
4609 i[3456]86-*-* )
4610 case "${canonical}" in
4611 *-cygwin ) opsys=cygwin ;;
4612 *-darwin* ) opsys=darwin ;;
4613 *-sysv4.2uw* ) opsys=unixware ;;
4614 *-sysv5uw* ) opsys=unixware ;;
4615 *-sysv5OpenUNIX* ) opsys=unixware ;;
4616 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4617 esac
4618 ;;
4619
4620 * )
4621 unported=yes
4622 ;;
4623 esac
4624
4625 ### If the code above didn't choose an operating system, just choose
4626 ### an operating system based on the configuration name. You really
4627 ### only want to use this when you have no idea what the right
4628 ### operating system is; if you know what operating systems a machine
4629 ### runs, it's cleaner to make it explicit in the case statement
4630 ### above.
4631 if test x"${opsys}" = x; then
4632 case "${canonical}" in
4633 *-gnu* ) opsys=gnu ;;
4634 * )
4635 unported=yes
4636 ;;
4637 esac
4638 fi
4639
4640
4641
4642 if test $unported = yes; then
4643 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4644 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4645 fi
4646
4647
4648 #### Choose a compiler.
4649
4650 ac_ext=c
4651 ac_cpp='$CPP $CPPFLAGS'
4652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4655 if test -n "$ac_tool_prefix"; then
4656 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4657 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659 $as_echo_n "checking for $ac_word... " >&6; }
4660 if test "${ac_cv_prog_CC+set}" = set; then :
4661 $as_echo_n "(cached) " >&6
4662 else
4663 if test -n "$CC"; then
4664 ac_cv_prog_CC="$CC" # Let the user override the test.
4665 else
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4668 do
4669 IFS=$as_save_IFS
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4673 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 break 2
4676 fi
4677 done
4678 done
4679 IFS=$as_save_IFS
4680
4681 fi
4682 fi
4683 CC=$ac_cv_prog_CC
4684 if test -n "$CC"; then
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4686 $as_echo "$CC" >&6; }
4687 else
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689 $as_echo "no" >&6; }
4690 fi
4691
4692
4693 fi
4694 if test -z "$ac_cv_prog_CC"; then
4695 ac_ct_CC=$CC
4696 # Extract the first word of "gcc", so it can be a program name with args.
4697 set dummy gcc; ac_word=$2
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699 $as_echo_n "checking for $ac_word... " >&6; }
4700 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4701 $as_echo_n "(cached) " >&6
4702 else
4703 if test -n "$ac_ct_CC"; then
4704 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4705 else
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4708 do
4709 IFS=$as_save_IFS
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4713 ac_cv_prog_ac_ct_CC="gcc"
4714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 break 2
4716 fi
4717 done
4718 done
4719 IFS=$as_save_IFS
4720
4721 fi
4722 fi
4723 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4724 if test -n "$ac_ct_CC"; then
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4726 $as_echo "$ac_ct_CC" >&6; }
4727 else
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729 $as_echo "no" >&6; }
4730 fi
4731
4732 if test "x$ac_ct_CC" = x; then
4733 CC=""
4734 else
4735 case $cross_compiling:$ac_tool_warned in
4736 yes:)
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4739 ac_tool_warned=yes ;;
4740 esac
4741 CC=$ac_ct_CC
4742 fi
4743 else
4744 CC="$ac_cv_prog_CC"
4745 fi
4746
4747 if test -z "$CC"; then
4748 if test -n "$ac_tool_prefix"; then
4749 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4750 set dummy ${ac_tool_prefix}cc; ac_word=$2
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4752 $as_echo_n "checking for $ac_word... " >&6; }
4753 if test "${ac_cv_prog_CC+set}" = set; then :
4754 $as_echo_n "(cached) " >&6
4755 else
4756 if test -n "$CC"; then
4757 ac_cv_prog_CC="$CC" # Let the user override the test.
4758 else
4759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760 for as_dir in $PATH
4761 do
4762 IFS=$as_save_IFS
4763 test -z "$as_dir" && as_dir=.
4764 for ac_exec_ext in '' $ac_executable_extensions; do
4765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4766 ac_cv_prog_CC="${ac_tool_prefix}cc"
4767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4768 break 2
4769 fi
4770 done
4771 done
4772 IFS=$as_save_IFS
4773
4774 fi
4775 fi
4776 CC=$ac_cv_prog_CC
4777 if test -n "$CC"; then
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4779 $as_echo "$CC" >&6; }
4780 else
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4782 $as_echo "no" >&6; }
4783 fi
4784
4785
4786 fi
4787 fi
4788 if test -z "$CC"; then
4789 # Extract the first word of "cc", so it can be a program name with args.
4790 set dummy cc; ac_word=$2
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4792 $as_echo_n "checking for $ac_word... " >&6; }
4793 if test "${ac_cv_prog_CC+set}" = set; then :
4794 $as_echo_n "(cached) " >&6
4795 else
4796 if test -n "$CC"; then
4797 ac_cv_prog_CC="$CC" # Let the user override the test.
4798 else
4799 ac_prog_rejected=no
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4802 do
4803 IFS=$as_save_IFS
4804 test -z "$as_dir" && as_dir=.
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4807 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4808 ac_prog_rejected=yes
4809 continue
4810 fi
4811 ac_cv_prog_CC="cc"
4812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4813 break 2
4814 fi
4815 done
4816 done
4817 IFS=$as_save_IFS
4818
4819 if test $ac_prog_rejected = yes; then
4820 # We found a bogon in the path, so make sure we never use it.
4821 set dummy $ac_cv_prog_CC
4822 shift
4823 if test $# != 0; then
4824 # We chose a different compiler from the bogus one.
4825 # However, it has the same basename, so the bogon will be chosen
4826 # first if we set CC to just the basename; use the full file name.
4827 shift
4828 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4829 fi
4830 fi
4831 fi
4832 fi
4833 CC=$ac_cv_prog_CC
4834 if test -n "$CC"; then
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4836 $as_echo "$CC" >&6; }
4837 else
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839 $as_echo "no" >&6; }
4840 fi
4841
4842
4843 fi
4844 if test -z "$CC"; then
4845 if test -n "$ac_tool_prefix"; then
4846 for ac_prog in cl.exe
4847 do
4848 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4849 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4851 $as_echo_n "checking for $ac_word... " >&6; }
4852 if test "${ac_cv_prog_CC+set}" = set; then :
4853 $as_echo_n "(cached) " >&6
4854 else
4855 if test -n "$CC"; then
4856 ac_cv_prog_CC="$CC" # Let the user override the test.
4857 else
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 for as_dir in $PATH
4860 do
4861 IFS=$as_save_IFS
4862 test -z "$as_dir" && as_dir=.
4863 for ac_exec_ext in '' $ac_executable_extensions; do
4864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4865 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 break 2
4868 fi
4869 done
4870 done
4871 IFS=$as_save_IFS
4872
4873 fi
4874 fi
4875 CC=$ac_cv_prog_CC
4876 if test -n "$CC"; then
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4878 $as_echo "$CC" >&6; }
4879 else
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4881 $as_echo "no" >&6; }
4882 fi
4883
4884
4885 test -n "$CC" && break
4886 done
4887 fi
4888 if test -z "$CC"; then
4889 ac_ct_CC=$CC
4890 for ac_prog in cl.exe
4891 do
4892 # Extract the first word of "$ac_prog", so it can be a program name with args.
4893 set dummy $ac_prog; ac_word=$2
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895 $as_echo_n "checking for $ac_word... " >&6; }
4896 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4897 $as_echo_n "(cached) " >&6
4898 else
4899 if test -n "$ac_ct_CC"; then
4900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4901 else
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4904 do
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4909 ac_cv_prog_ac_ct_CC="$ac_prog"
4910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 break 2
4912 fi
4913 done
4914 done
4915 IFS=$as_save_IFS
4916
4917 fi
4918 fi
4919 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4920 if test -n "$ac_ct_CC"; then
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4922 $as_echo "$ac_ct_CC" >&6; }
4923 else
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925 $as_echo "no" >&6; }
4926 fi
4927
4928
4929 test -n "$ac_ct_CC" && break
4930 done
4931
4932 if test "x$ac_ct_CC" = x; then
4933 CC=""
4934 else
4935 case $cross_compiling:$ac_tool_warned in
4936 yes:)
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4939 ac_tool_warned=yes ;;
4940 esac
4941 CC=$ac_ct_CC
4942 fi
4943 fi
4944
4945 fi
4946
4947
4948 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4950 as_fn_error "no acceptable C compiler found in \$PATH
4951 See \`config.log' for more details." "$LINENO" 5; }
4952
4953 # Provide some information about the compiler.
4954 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4955 set X $ac_compile
4956 ac_compiler=$2
4957 for ac_option in --version -v -V -qversion; do
4958 { { ac_try="$ac_compiler $ac_option >&5"
4959 case "(($ac_try" in
4960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4961 *) ac_try_echo=$ac_try;;
4962 esac
4963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4964 $as_echo "$ac_try_echo"; } >&5
4965 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4966 ac_status=$?
4967 if test -s conftest.err; then
4968 sed '10a\
4969 ... rest of stderr output deleted ...
4970 10q' conftest.err >conftest.er1
4971 cat conftest.er1 >&5
4972 fi
4973 rm -f conftest.er1 conftest.err
4974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4975 test $ac_status = 0; }
4976 done
4977
4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h. */
4980
4981 int
4982 main ()
4983 {
4984
4985 ;
4986 return 0;
4987 }
4988 _ACEOF
4989 ac_clean_files_save=$ac_clean_files
4990 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4991 # Try to create an executable without -o first, disregard a.out.
4992 # It will help us diagnose broken compilers, and finding out an intuition
4993 # of exeext.
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4995 $as_echo_n "checking whether the C compiler works... " >&6; }
4996 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4997
4998 # The possible output files:
4999 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5000
5001 ac_rmfiles=
5002 for ac_file in $ac_files
5003 do
5004 case $ac_file in
5005 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5006 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5007 esac
5008 done
5009 rm -f $ac_rmfiles
5010
5011 if { { ac_try="$ac_link_default"
5012 case "(($ac_try" in
5013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5014 *) ac_try_echo=$ac_try;;
5015 esac
5016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5017 $as_echo "$ac_try_echo"; } >&5
5018 (eval "$ac_link_default") 2>&5
5019 ac_status=$?
5020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5021 test $ac_status = 0; }; then :
5022 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5023 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5024 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5025 # so that the user can short-circuit this test for compilers unknown to
5026 # Autoconf.
5027 for ac_file in $ac_files ''
5028 do
5029 test -f "$ac_file" || continue
5030 case $ac_file in
5031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5032 ;;
5033 [ab].out )
5034 # We found the default executable, but exeext='' is most
5035 # certainly right.
5036 break;;
5037 *.* )
5038 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5039 then :; else
5040 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5041 fi
5042 # We set ac_cv_exeext here because the later test for it is not
5043 # safe: cross compilers may not add the suffix if given an `-o'
5044 # argument, so we may need to know it at that point already.
5045 # Even if this section looks crufty: it has the advantage of
5046 # actually working.
5047 break;;
5048 * )
5049 break;;
5050 esac
5051 done
5052 test "$ac_cv_exeext" = no && ac_cv_exeext=
5053
5054 else
5055 ac_file=''
5056 fi
5057 if test -z "$ac_file"; then :
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5059 $as_echo "no" >&6; }
5060 $as_echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.$ac_ext >&5
5062
5063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5065 { as_fn_set_status 77
5066 as_fn_error "C compiler cannot create executables
5067 See \`config.log' for more details." "$LINENO" 5; }; }
5068 else
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5070 $as_echo "yes" >&6; }
5071 fi
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5073 $as_echo_n "checking for C compiler default output file name... " >&6; }
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5075 $as_echo "$ac_file" >&6; }
5076 ac_exeext=$ac_cv_exeext
5077
5078 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5079 ac_clean_files=$ac_clean_files_save
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5081 $as_echo_n "checking for suffix of executables... " >&6; }
5082 if { { ac_try="$ac_link"
5083 case "(($ac_try" in
5084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5085 *) ac_try_echo=$ac_try;;
5086 esac
5087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5088 $as_echo "$ac_try_echo"; } >&5
5089 (eval "$ac_link") 2>&5
5090 ac_status=$?
5091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5092 test $ac_status = 0; }; then :
5093 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5094 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5095 # work properly (i.e., refer to `conftest.exe'), while it won't with
5096 # `rm'.
5097 for ac_file in conftest.exe conftest conftest.*; do
5098 test -f "$ac_file" || continue
5099 case $ac_file in
5100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5101 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5102 break;;
5103 * ) break;;
5104 esac
5105 done
5106 else
5107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5109 as_fn_error "cannot compute suffix of executables: cannot compile and link
5110 See \`config.log' for more details." "$LINENO" 5; }
5111 fi
5112 rm -f conftest conftest$ac_cv_exeext
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5114 $as_echo "$ac_cv_exeext" >&6; }
5115
5116 rm -f conftest.$ac_ext
5117 EXEEXT=$ac_cv_exeext
5118 ac_exeext=$EXEEXT
5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h. */
5121 #include <stdio.h>
5122 int
5123 main ()
5124 {
5125 FILE *f = fopen ("conftest.out", "w");
5126 return ferror (f) || fclose (f) != 0;
5127
5128 ;
5129 return 0;
5130 }
5131 _ACEOF
5132 ac_clean_files="$ac_clean_files conftest.out"
5133 # Check that the compiler produces executables we can run. If not, either
5134 # the compiler is broken, or we cross compile.
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5136 $as_echo_n "checking whether we are cross compiling... " >&6; }
5137 if test "$cross_compiling" != yes; then
5138 { { ac_try="$ac_link"
5139 case "(($ac_try" in
5140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5141 *) ac_try_echo=$ac_try;;
5142 esac
5143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5144 $as_echo "$ac_try_echo"; } >&5
5145 (eval "$ac_link") 2>&5
5146 ac_status=$?
5147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5148 test $ac_status = 0; }
5149 if { ac_try='./conftest$ac_cv_exeext'
5150 { { case "(($ac_try" in
5151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5152 *) ac_try_echo=$ac_try;;
5153 esac
5154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5155 $as_echo "$ac_try_echo"; } >&5
5156 (eval "$ac_try") 2>&5
5157 ac_status=$?
5158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5159 test $ac_status = 0; }; }; then
5160 cross_compiling=no
5161 else
5162 if test "$cross_compiling" = maybe; then
5163 cross_compiling=yes
5164 else
5165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5167 as_fn_error "cannot run C compiled programs.
5168 If you meant to cross compile, use \`--host'.
5169 See \`config.log' for more details." "$LINENO" 5; }
5170 fi
5171 fi
5172 fi
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5174 $as_echo "$cross_compiling" >&6; }
5175
5176 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5177 ac_clean_files=$ac_clean_files_save
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5179 $as_echo_n "checking for suffix of object files... " >&6; }
5180 if test "${ac_cv_objext+set}" = set; then :
5181 $as_echo_n "(cached) " >&6
5182 else
5183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184 /* end confdefs.h. */
5185
5186 int
5187 main ()
5188 {
5189
5190 ;
5191 return 0;
5192 }
5193 _ACEOF
5194 rm -f conftest.o conftest.obj
5195 if { { ac_try="$ac_compile"
5196 case "(($ac_try" in
5197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5198 *) ac_try_echo=$ac_try;;
5199 esac
5200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5201 $as_echo "$ac_try_echo"; } >&5
5202 (eval "$ac_compile") 2>&5
5203 ac_status=$?
5204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5205 test $ac_status = 0; }; then :
5206 for ac_file in conftest.o conftest.obj conftest.*; do
5207 test -f "$ac_file" || continue;
5208 case $ac_file in
5209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5210 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5211 break;;
5212 esac
5213 done
5214 else
5215 $as_echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.$ac_ext >&5
5217
5218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5220 as_fn_error "cannot compute suffix of object files: cannot compile
5221 See \`config.log' for more details." "$LINENO" 5; }
5222 fi
5223 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5224 fi
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5226 $as_echo "$ac_cv_objext" >&6; }
5227 OBJEXT=$ac_cv_objext
5228 ac_objext=$OBJEXT
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5230 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5231 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5232 $as_echo_n "(cached) " >&6
5233 else
5234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5235 /* end confdefs.h. */
5236
5237 int
5238 main ()
5239 {
5240 #ifndef __GNUC__
5241 choke me
5242 #endif
5243
5244 ;
5245 return 0;
5246 }
5247 _ACEOF
5248 if ac_fn_c_try_compile "$LINENO"; then :
5249 ac_compiler_gnu=yes
5250 else
5251 ac_compiler_gnu=no
5252 fi
5253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5254 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5255
5256 fi
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5258 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5259 if test $ac_compiler_gnu = yes; then
5260 GCC=yes
5261 else
5262 GCC=
5263 fi
5264 ac_test_CFLAGS=${CFLAGS+set}
5265 ac_save_CFLAGS=$CFLAGS
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5267 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5268 if test "${ac_cv_prog_cc_g+set}" = set; then :
5269 $as_echo_n "(cached) " >&6
5270 else
5271 ac_save_c_werror_flag=$ac_c_werror_flag
5272 ac_c_werror_flag=yes
5273 ac_cv_prog_cc_g=no
5274 CFLAGS="-g"
5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h. */
5277
5278 int
5279 main ()
5280 {
5281
5282 ;
5283 return 0;
5284 }
5285 _ACEOF
5286 if ac_fn_c_try_compile "$LINENO"; then :
5287 ac_cv_prog_cc_g=yes
5288 else
5289 CFLAGS=""
5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h. */
5292
5293 int
5294 main ()
5295 {
5296
5297 ;
5298 return 0;
5299 }
5300 _ACEOF
5301 if ac_fn_c_try_compile "$LINENO"; then :
5302
5303 else
5304 ac_c_werror_flag=$ac_save_c_werror_flag
5305 CFLAGS="-g"
5306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307 /* end confdefs.h. */
5308
5309 int
5310 main ()
5311 {
5312
5313 ;
5314 return 0;
5315 }
5316 _ACEOF
5317 if ac_fn_c_try_compile "$LINENO"; then :
5318 ac_cv_prog_cc_g=yes
5319 fi
5320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5321 fi
5322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5323 fi
5324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5325 ac_c_werror_flag=$ac_save_c_werror_flag
5326 fi
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5328 $as_echo "$ac_cv_prog_cc_g" >&6; }
5329 if test "$ac_test_CFLAGS" = set; then
5330 CFLAGS=$ac_save_CFLAGS
5331 elif test $ac_cv_prog_cc_g = yes; then
5332 if test "$GCC" = yes; then
5333 CFLAGS="-g -O2"
5334 else
5335 CFLAGS="-g"
5336 fi
5337 else
5338 if test "$GCC" = yes; then
5339 CFLAGS="-O2"
5340 else
5341 CFLAGS=
5342 fi
5343 fi
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5345 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5346 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5347 $as_echo_n "(cached) " >&6
5348 else
5349 ac_cv_prog_cc_c89=no
5350 ac_save_CC=$CC
5351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5352 /* end confdefs.h. */
5353 #include <stdarg.h>
5354 #include <stdio.h>
5355 #include <sys/types.h>
5356 #include <sys/stat.h>
5357 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5358 struct buf { int x; };
5359 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5360 static char *e (p, i)
5361 char **p;
5362 int i;
5363 {
5364 return p[i];
5365 }
5366 static char *f (char * (*g) (char **, int), char **p, ...)
5367 {
5368 char *s;
5369 va_list v;
5370 va_start (v,p);
5371 s = g (p, va_arg (v,int));
5372 va_end (v);
5373 return s;
5374 }
5375
5376 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5377 function prototypes and stuff, but not '\xHH' hex character constants.
5378 These don't provoke an error unfortunately, instead are silently treated
5379 as 'x'. The following induces an error, until -std is added to get
5380 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5381 array size at least. It's necessary to write '\x00'==0 to get something
5382 that's true only with -std. */
5383 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5384
5385 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5386 inside strings and character constants. */
5387 #define FOO(x) 'x'
5388 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5389
5390 int test (int i, double x);
5391 struct s1 {int (*f) (int a);};
5392 struct s2 {int (*f) (double a);};
5393 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5394 int argc;
5395 char **argv;
5396 int
5397 main ()
5398 {
5399 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5400 ;
5401 return 0;
5402 }
5403 _ACEOF
5404 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5405 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5406 do
5407 CC="$ac_save_CC $ac_arg"
5408 if ac_fn_c_try_compile "$LINENO"; then :
5409 ac_cv_prog_cc_c89=$ac_arg
5410 fi
5411 rm -f core conftest.err conftest.$ac_objext
5412 test "x$ac_cv_prog_cc_c89" != "xno" && break
5413 done
5414 rm -f conftest.$ac_ext
5415 CC=$ac_save_CC
5416
5417 fi
5418 # AC_CACHE_VAL
5419 case "x$ac_cv_prog_cc_c89" in
5420 x)
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5422 $as_echo "none needed" >&6; } ;;
5423 xno)
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5425 $as_echo "unsupported" >&6; } ;;
5426 *)
5427 CC="$CC $ac_cv_prog_cc_c89"
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5429 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5430 esac
5431 if test "x$ac_cv_prog_cc_c89" != xno; then :
5432
5433 fi
5434
5435 ac_ext=c
5436 ac_cpp='$CPP $CPPFLAGS'
5437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5440 DEPDIR="${am__leading_dot}deps"
5441
5442 ac_config_commands="$ac_config_commands depfiles"
5443
5444
5445 am_make=${MAKE-make}
5446 cat > confinc << 'END'
5447 am__doit:
5448 @echo this is the am__doit target
5449 .PHONY: am__doit
5450 END
5451 # If we don't find an include directive, just comment out the code.
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5453 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5454 am__include="#"
5455 am__quote=
5456 _am_result=none
5457 # First try GNU make style include.
5458 echo "include confinc" > confmf
5459 # Ignore all kinds of additional output from `make'.
5460 case `$am_make -s -f confmf 2> /dev/null` in #(
5461 *the\ am__doit\ target*)
5462 am__include=include
5463 am__quote=
5464 _am_result=GNU
5465 ;;
5466 esac
5467 # Now try BSD make style include.
5468 if test "$am__include" = "#"; then
5469 echo '.include "confinc"' > confmf
5470 case `$am_make -s -f confmf 2> /dev/null` in #(
5471 *the\ am__doit\ target*)
5472 am__include=.include
5473 am__quote="\""
5474 _am_result=BSD
5475 ;;
5476 esac
5477 fi
5478
5479
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5481 $as_echo "$_am_result" >&6; }
5482 rm -f confinc confmf
5483
5484 # Check whether --enable-dependency-tracking was given.
5485 if test "${enable_dependency_tracking+set}" = set; then :
5486 enableval=$enable_dependency_tracking;
5487 fi
5488
5489 if test "x$enable_dependency_tracking" != xno; then
5490 am_depcomp="$ac_aux_dir/depcomp"
5491 AMDEPBACKSLASH='\'
5492 fi
5493 if test "x$enable_dependency_tracking" != xno; then
5494 AMDEP_TRUE=
5495 AMDEP_FALSE='#'
5496 else
5497 AMDEP_TRUE='#'
5498 AMDEP_FALSE=
5499 fi
5500
5501
5502
5503 depcc="$CC" am_compiler_list=
5504
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5506 $as_echo_n "checking dependency style of $depcc... " >&6; }
5507 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5508 $as_echo_n "(cached) " >&6
5509 else
5510 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5511 # We make a subdir and do the tests there. Otherwise we can end up
5512 # making bogus files that we don't know about and never remove. For
5513 # instance it was reported that on HP-UX the gcc test will end up
5514 # making a dummy file named `D' -- because `-MD' means `put the output
5515 # in D'.
5516 mkdir conftest.dir
5517 # Copy depcomp to subdir because otherwise we won't find it if we're
5518 # using a relative directory.
5519 cp "$am_depcomp" conftest.dir
5520 cd conftest.dir
5521 # We will build objects and dependencies in a subdirectory because
5522 # it helps to detect inapplicable dependency modes. For instance
5523 # both Tru64's cc and ICC support -MD to output dependencies as a
5524 # side effect of compilation, but ICC will put the dependencies in
5525 # the current directory while Tru64 will put them in the object
5526 # directory.
5527 mkdir sub
5528
5529 am_cv_CC_dependencies_compiler_type=none
5530 if test "$am_compiler_list" = ""; then
5531 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5532 fi
5533 am__universal=false
5534 case " $depcc " in #(
5535 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5536 esac
5537
5538 for depmode in $am_compiler_list; do
5539 # Setup a source with many dependencies, because some compilers
5540 # like to wrap large dependency lists on column 80 (with \), and
5541 # we should not choose a depcomp mode which is confused by this.
5542 #
5543 # We need to recreate these files for each test, as the compiler may
5544 # overwrite some of them when testing with obscure command lines.
5545 # This happens at least with the AIX C compiler.
5546 : > sub/conftest.c
5547 for i in 1 2 3 4 5 6; do
5548 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5549 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5550 # Solaris 8's {/usr,}/bin/sh.
5551 touch sub/conftst$i.h
5552 done
5553 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5554
5555 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5556 # mode. It turns out that the SunPro C++ compiler does not properly
5557 # handle `-M -o', and we need to detect this. Also, some Intel
5558 # versions had trouble with output in subdirs
5559 am__obj=sub/conftest.${OBJEXT-o}
5560 am__minus_obj="-o $am__obj"
5561 case $depmode in
5562 gcc)
5563 # This depmode causes a compiler race in universal mode.
5564 test "$am__universal" = false || continue
5565 ;;
5566 nosideeffect)
5567 # after this tag, mechanisms are not by side-effect, so they'll
5568 # only be used when explicitly requested
5569 if test "x$enable_dependency_tracking" = xyes; then
5570 continue
5571 else
5572 break
5573 fi
5574 ;;
5575 msvisualcpp | msvcmsys)
5576 # This compiler won't grok `-c -o', but also, the minuso test has
5577 # not run yet. These depmodes are late enough in the game, and
5578 # so weak that their functioning should not be impacted.
5579 am__obj=conftest.${OBJEXT-o}
5580 am__minus_obj=
5581 ;;
5582 none) break ;;
5583 esac
5584 if depmode=$depmode \
5585 source=sub/conftest.c object=$am__obj \
5586 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5587 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5588 >/dev/null 2>conftest.err &&
5589 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5590 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5591 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5592 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5593 # icc doesn't choke on unknown options, it will just issue warnings
5594 # or remarks (even with -Werror). So we grep stderr for any message
5595 # that says an option was ignored or not supported.
5596 # When given -MP, icc 7.0 and 7.1 complain thusly:
5597 # icc: Command line warning: ignoring option '-M'; no argument required
5598 # The diagnosis changed in icc 8.0:
5599 # icc: Command line remark: option '-MP' not supported
5600 if (grep 'ignoring option' conftest.err ||
5601 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5602 am_cv_CC_dependencies_compiler_type=$depmode
5603 break
5604 fi
5605 fi
5606 done
5607
5608 cd ..
5609 rm -rf conftest.dir
5610 else
5611 am_cv_CC_dependencies_compiler_type=none
5612 fi
5613
5614 fi
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5616 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5617 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5618
5619 if
5620 test "x$enable_dependency_tracking" != xno \
5621 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5622 am__fastdepCC_TRUE=
5623 am__fastdepCC_FALSE='#'
5624 else
5625 am__fastdepCC_TRUE='#'
5626 am__fastdepCC_FALSE=
5627 fi
5628
5629
5630 if test "x$CC" != xcc; then
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5632 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5633 else
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5635 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5636 fi
5637 set dummy $CC; ac_cc=`$as_echo "$2" |
5638 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5639 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5640 $as_echo_n "(cached) " >&6
5641 else
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644
5645 int
5646 main ()
5647 {
5648
5649 ;
5650 return 0;
5651 }
5652 _ACEOF
5653 # Make sure it works both with $CC and with simple cc.
5654 # We do the test twice because some compilers refuse to overwrite an
5655 # existing .o file with -o, though they will create one.
5656 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5657 rm -f conftest2.*
5658 if { { case "(($ac_try" in
5659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660 *) ac_try_echo=$ac_try;;
5661 esac
5662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5663 $as_echo "$ac_try_echo"; } >&5
5664 (eval "$ac_try") 2>&5
5665 ac_status=$?
5666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5667 test $ac_status = 0; } &&
5668 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5670 *) ac_try_echo=$ac_try;;
5671 esac
5672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5673 $as_echo "$ac_try_echo"; } >&5
5674 (eval "$ac_try") 2>&5
5675 ac_status=$?
5676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5677 test $ac_status = 0; };
5678 then
5679 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5680 if test "x$CC" != xcc; then
5681 # Test first that cc exists at all.
5682 if { ac_try='cc -c conftest.$ac_ext >&5'
5683 { { case "(($ac_try" in
5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5686 esac
5687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5688 $as_echo "$ac_try_echo"; } >&5
5689 (eval "$ac_try") 2>&5
5690 ac_status=$?
5691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5692 test $ac_status = 0; }; }; then
5693 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5694 rm -f conftest2.*
5695 if { { case "(($ac_try" in
5696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697 *) ac_try_echo=$ac_try;;
5698 esac
5699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5700 $as_echo "$ac_try_echo"; } >&5
5701 (eval "$ac_try") 2>&5
5702 ac_status=$?
5703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5704 test $ac_status = 0; } &&
5705 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5707 *) ac_try_echo=$ac_try;;
5708 esac
5709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5710 $as_echo "$ac_try_echo"; } >&5
5711 (eval "$ac_try") 2>&5
5712 ac_status=$?
5713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5714 test $ac_status = 0; };
5715 then
5716 # cc works too.
5717 :
5718 else
5719 # cc exists but doesn't like -o.
5720 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5721 fi
5722 fi
5723 fi
5724 else
5725 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5726 fi
5727 rm -f core conftest*
5728
5729 fi
5730 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5732 $as_echo "yes" >&6; }
5733 else
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5735 $as_echo "no" >&6; }
5736
5737 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5738
5739 fi
5740
5741 # FIXME: we rely on the cache variable name because
5742 # there is no other way.
5743 set dummy $CC
5744 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5745 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5746 if test "$am_t" != yes; then
5747 # Losing compiler, so override with the script.
5748 # FIXME: It is wrong to rewrite CC.
5749 # But if we don't then we get into trouble of one sort or another.
5750 # A longer-term fix would be to have automake use am__CC in this case,
5751 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5752 CC="$am_aux_dir/compile $CC"
5753 fi
5754
5755
5756
5757 if test x$GCC = xyes; then
5758 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5759 else
5760 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5761 fi
5762
5763 # Avoid gnulib's tests for O_NOATIME and O_NOFOLLOW, as we don't use them.
5764
5765 # Avoid gnulib's threadlib module, as we do threads our own way.
5766
5767
5768 # Initialize gnulib right after choosing the compiler.
5769
5770 ac_ext=c
5771 ac_cpp='$CPP $CPPFLAGS'
5772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5776 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5777 # On Suns, sometimes $CPP names a directory.
5778 if test -n "$CPP" && test -d "$CPP"; then
5779 CPP=
5780 fi
5781 if test -z "$CPP"; then
5782 if test "${ac_cv_prog_CPP+set}" = set; then :
5783 $as_echo_n "(cached) " >&6
5784 else
5785 # Double quotes because CPP needs to be expanded
5786 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5787 do
5788 ac_preproc_ok=false
5789 for ac_c_preproc_warn_flag in '' yes
5790 do
5791 # Use a header file that comes with gcc, so configuring glibc
5792 # with a fresh cross-compiler works.
5793 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5794 # <limits.h> exists even on freestanding compilers.
5795 # On the NeXT, cc -E runs the code through the compiler's parser,
5796 # not just through cpp. "Syntax error" is here to catch this case.
5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798 /* end confdefs.h. */
5799 #ifdef __STDC__
5800 # include <limits.h>
5801 #else
5802 # include <assert.h>
5803 #endif
5804 Syntax error
5805 _ACEOF
5806 if ac_fn_c_try_cpp "$LINENO"; then :
5807
5808 else
5809 # Broken: fails on valid input.
5810 continue
5811 fi
5812 rm -f conftest.err conftest.$ac_ext
5813
5814 # OK, works on sane cases. Now check whether nonexistent headers
5815 # can be detected and how.
5816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817 /* end confdefs.h. */
5818 #include <ac_nonexistent.h>
5819 _ACEOF
5820 if ac_fn_c_try_cpp "$LINENO"; then :
5821 # Broken: success on invalid input.
5822 continue
5823 else
5824 # Passes both tests.
5825 ac_preproc_ok=:
5826 break
5827 fi
5828 rm -f conftest.err conftest.$ac_ext
5829
5830 done
5831 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5832 rm -f conftest.err conftest.$ac_ext
5833 if $ac_preproc_ok; then :
5834 break
5835 fi
5836
5837 done
5838 ac_cv_prog_CPP=$CPP
5839
5840 fi
5841 CPP=$ac_cv_prog_CPP
5842 else
5843 ac_cv_prog_CPP=$CPP
5844 fi
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5846 $as_echo "$CPP" >&6; }
5847 ac_preproc_ok=false
5848 for ac_c_preproc_warn_flag in '' yes
5849 do
5850 # Use a header file that comes with gcc, so configuring glibc
5851 # with a fresh cross-compiler works.
5852 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5853 # <limits.h> exists even on freestanding compilers.
5854 # On the NeXT, cc -E runs the code through the compiler's parser,
5855 # not just through cpp. "Syntax error" is here to catch this case.
5856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857 /* end confdefs.h. */
5858 #ifdef __STDC__
5859 # include <limits.h>
5860 #else
5861 # include <assert.h>
5862 #endif
5863 Syntax error
5864 _ACEOF
5865 if ac_fn_c_try_cpp "$LINENO"; then :
5866
5867 else
5868 # Broken: fails on valid input.
5869 continue
5870 fi
5871 rm -f conftest.err conftest.$ac_ext
5872
5873 # OK, works on sane cases. Now check whether nonexistent headers
5874 # can be detected and how.
5875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5876 /* end confdefs.h. */
5877 #include <ac_nonexistent.h>
5878 _ACEOF
5879 if ac_fn_c_try_cpp "$LINENO"; then :
5880 # Broken: success on invalid input.
5881 continue
5882 else
5883 # Passes both tests.
5884 ac_preproc_ok=:
5885 break
5886 fi
5887 rm -f conftest.err conftest.$ac_ext
5888
5889 done
5890 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5891 rm -f conftest.err conftest.$ac_ext
5892 if $ac_preproc_ok; then :
5893
5894 else
5895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5897 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5898 See \`config.log' for more details." "$LINENO" 5; }
5899 fi
5900
5901 ac_ext=c
5902 ac_cpp='$CPP $CPPFLAGS'
5903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5906
5907
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5909 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5910 if test "${ac_cv_path_GREP+set}" = set; then :
5911 $as_echo_n "(cached) " >&6
5912 else
5913 if test -z "$GREP"; then
5914 ac_path_GREP_found=false
5915 # Loop through the user's path and test for each of PROGNAME-LIST
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5918 do
5919 IFS=$as_save_IFS
5920 test -z "$as_dir" && as_dir=.
5921 for ac_prog in grep ggrep; do
5922 for ac_exec_ext in '' $ac_executable_extensions; do
5923 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5924 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5925 # Check for GNU ac_path_GREP and select it if it is found.
5926 # Check for GNU $ac_path_GREP
5927 case `"$ac_path_GREP" --version 2>&1` in
5928 *GNU*)
5929 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5930 *)
5931 ac_count=0
5932 $as_echo_n 0123456789 >"conftest.in"
5933 while :
5934 do
5935 cat "conftest.in" "conftest.in" >"conftest.tmp"
5936 mv "conftest.tmp" "conftest.in"
5937 cp "conftest.in" "conftest.nl"
5938 $as_echo 'GREP' >> "conftest.nl"
5939 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5940 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5941 as_fn_arith $ac_count + 1 && ac_count=$as_val
5942 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5943 # Best one so far, save it but keep looking for a better one
5944 ac_cv_path_GREP="$ac_path_GREP"
5945 ac_path_GREP_max=$ac_count
5946 fi
5947 # 10*(2^10) chars as input seems more than enough
5948 test $ac_count -gt 10 && break
5949 done
5950 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5951 esac
5952
5953 $ac_path_GREP_found && break 3
5954 done
5955 done
5956 done
5957 IFS=$as_save_IFS
5958 if test -z "$ac_cv_path_GREP"; then
5959 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5960 fi
5961 else
5962 ac_cv_path_GREP=$GREP
5963 fi
5964
5965 fi
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5967 $as_echo "$ac_cv_path_GREP" >&6; }
5968 GREP="$ac_cv_path_GREP"
5969
5970
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5972 $as_echo_n "checking for egrep... " >&6; }
5973 if test "${ac_cv_path_EGREP+set}" = set; then :
5974 $as_echo_n "(cached) " >&6
5975 else
5976 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5977 then ac_cv_path_EGREP="$GREP -E"
5978 else
5979 if test -z "$EGREP"; then
5980 ac_path_EGREP_found=false
5981 # Loop through the user's path and test for each of PROGNAME-LIST
5982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5984 do
5985 IFS=$as_save_IFS
5986 test -z "$as_dir" && as_dir=.
5987 for ac_prog in egrep; do
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5990 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5991 # Check for GNU ac_path_EGREP and select it if it is found.
5992 # Check for GNU $ac_path_EGREP
5993 case `"$ac_path_EGREP" --version 2>&1` in
5994 *GNU*)
5995 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5996 *)
5997 ac_count=0
5998 $as_echo_n 0123456789 >"conftest.in"
5999 while :
6000 do
6001 cat "conftest.in" "conftest.in" >"conftest.tmp"
6002 mv "conftest.tmp" "conftest.in"
6003 cp "conftest.in" "conftest.nl"
6004 $as_echo 'EGREP' >> "conftest.nl"
6005 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6006 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6007 as_fn_arith $ac_count + 1 && ac_count=$as_val
6008 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6009 # Best one so far, save it but keep looking for a better one
6010 ac_cv_path_EGREP="$ac_path_EGREP"
6011 ac_path_EGREP_max=$ac_count
6012 fi
6013 # 10*(2^10) chars as input seems more than enough
6014 test $ac_count -gt 10 && break
6015 done
6016 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6017 esac
6018
6019 $ac_path_EGREP_found && break 3
6020 done
6021 done
6022 done
6023 IFS=$as_save_IFS
6024 if test -z "$ac_cv_path_EGREP"; then
6025 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6026 fi
6027 else
6028 ac_cv_path_EGREP=$EGREP
6029 fi
6030
6031 fi
6032 fi
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6034 $as_echo "$ac_cv_path_EGREP" >&6; }
6035 EGREP="$ac_cv_path_EGREP"
6036
6037
6038
6039
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6041 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6042 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6043 $as_echo_n "(cached) " >&6
6044 else
6045
6046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047 /* end confdefs.h. */
6048
6049 #ifdef __ACK__
6050 Amsterdam
6051 #endif
6052
6053 _ACEOF
6054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6055 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6056 gl_cv_c_amsterdam_compiler=yes
6057 else
6058 gl_cv_c_amsterdam_compiler=no
6059 fi
6060 rm -f conftest*
6061
6062
6063 fi
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6065 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6066 if test -z "$AR"; then
6067 if test $gl_cv_c_amsterdam_compiler = yes; then
6068 AR='cc -c.a'
6069 if test -z "$ARFLAGS"; then
6070 ARFLAGS='-o'
6071 fi
6072 else
6073 if test -n "$ac_tool_prefix"; then
6074 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6075 set dummy ${ac_tool_prefix}ar; ac_word=$2
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6077 $as_echo_n "checking for $ac_word... " >&6; }
6078 if test "${ac_cv_prog_AR+set}" = set; then :
6079 $as_echo_n "(cached) " >&6
6080 else
6081 if test -n "$AR"; then
6082 ac_cv_prog_AR="$AR" # Let the user override the test.
6083 else
6084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 for as_dir in $PATH
6086 do
6087 IFS=$as_save_IFS
6088 test -z "$as_dir" && as_dir=.
6089 for ac_exec_ext in '' $ac_executable_extensions; do
6090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6091 ac_cv_prog_AR="${ac_tool_prefix}ar"
6092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6093 break 2
6094 fi
6095 done
6096 done
6097 IFS=$as_save_IFS
6098
6099 fi
6100 fi
6101 AR=$ac_cv_prog_AR
6102 if test -n "$AR"; then
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6104 $as_echo "$AR" >&6; }
6105 else
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107 $as_echo "no" >&6; }
6108 fi
6109
6110
6111 fi
6112 if test -z "$ac_cv_prog_AR"; then
6113 ac_ct_AR=$AR
6114 # Extract the first word of "ar", so it can be a program name with args.
6115 set dummy ar; ac_word=$2
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6117 $as_echo_n "checking for $ac_word... " >&6; }
6118 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6119 $as_echo_n "(cached) " >&6
6120 else
6121 if test -n "$ac_ct_AR"; then
6122 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6123 else
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 for as_dir in $PATH
6126 do
6127 IFS=$as_save_IFS
6128 test -z "$as_dir" && as_dir=.
6129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6131 ac_cv_prog_ac_ct_AR="ar"
6132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6133 break 2
6134 fi
6135 done
6136 done
6137 IFS=$as_save_IFS
6138
6139 fi
6140 fi
6141 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6142 if test -n "$ac_ct_AR"; then
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6144 $as_echo "$ac_ct_AR" >&6; }
6145 else
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147 $as_echo "no" >&6; }
6148 fi
6149
6150 if test "x$ac_ct_AR" = x; then
6151 AR="ar"
6152 else
6153 case $cross_compiling:$ac_tool_warned in
6154 yes:)
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6157 ac_tool_warned=yes ;;
6158 esac
6159 AR=$ac_ct_AR
6160 fi
6161 else
6162 AR="$ac_cv_prog_AR"
6163 fi
6164
6165 if test -z "$ARFLAGS"; then
6166 ARFLAGS='cru'
6167 fi
6168 fi
6169 else
6170 if test -z "$ARFLAGS"; then
6171 ARFLAGS='cru'
6172 fi
6173 fi
6174
6175
6176 if test -z "$RANLIB"; then
6177 if test $gl_cv_c_amsterdam_compiler = yes; then
6178 RANLIB=':'
6179 else
6180 if test -n "$ac_tool_prefix"; then
6181 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6182 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184 $as_echo_n "checking for $ac_word... " >&6; }
6185 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6186 $as_echo_n "(cached) " >&6
6187 else
6188 if test -n "$RANLIB"; then
6189 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6190 else
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 for as_dir in $PATH
6193 do
6194 IFS=$as_save_IFS
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6198 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 break 2
6201 fi
6202 done
6203 done
6204 IFS=$as_save_IFS
6205
6206 fi
6207 fi
6208 RANLIB=$ac_cv_prog_RANLIB
6209 if test -n "$RANLIB"; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6211 $as_echo "$RANLIB" >&6; }
6212 else
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6215 fi
6216
6217
6218 fi
6219 if test -z "$ac_cv_prog_RANLIB"; then
6220 ac_ct_RANLIB=$RANLIB
6221 # Extract the first word of "ranlib", so it can be a program name with args.
6222 set dummy ranlib; ac_word=$2
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6224 $as_echo_n "checking for $ac_word... " >&6; }
6225 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6226 $as_echo_n "(cached) " >&6
6227 else
6228 if test -n "$ac_ct_RANLIB"; then
6229 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6230 else
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 for as_dir in $PATH
6233 do
6234 IFS=$as_save_IFS
6235 test -z "$as_dir" && as_dir=.
6236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6238 ac_cv_prog_ac_ct_RANLIB="ranlib"
6239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 break 2
6241 fi
6242 done
6243 done
6244 IFS=$as_save_IFS
6245
6246 fi
6247 fi
6248 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6249 if test -n "$ac_ct_RANLIB"; then
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6251 $as_echo "$ac_ct_RANLIB" >&6; }
6252 else
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254 $as_echo "no" >&6; }
6255 fi
6256
6257 if test "x$ac_ct_RANLIB" = x; then
6258 RANLIB=":"
6259 else
6260 case $cross_compiling:$ac_tool_warned in
6261 yes:)
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6264 ac_tool_warned=yes ;;
6265 esac
6266 RANLIB=$ac_ct_RANLIB
6267 fi
6268 else
6269 RANLIB="$ac_cv_prog_RANLIB"
6270 fi
6271
6272 fi
6273 fi
6274
6275
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6277 $as_echo_n "checking for ANSI C header files... " >&6; }
6278 if test "${ac_cv_header_stdc+set}" = set; then :
6279 $as_echo_n "(cached) " >&6
6280 else
6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6283 #include <stdlib.h>
6284 #include <stdarg.h>
6285 #include <string.h>
6286 #include <float.h>
6287
6288 int
6289 main ()
6290 {
6291
6292 ;
6293 return 0;
6294 }
6295 _ACEOF
6296 if ac_fn_c_try_compile "$LINENO"; then :
6297 ac_cv_header_stdc=yes
6298 else
6299 ac_cv_header_stdc=no
6300 fi
6301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6302
6303 if test $ac_cv_header_stdc = yes; then
6304 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6306 /* end confdefs.h. */
6307 #include <string.h>
6308
6309 _ACEOF
6310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6311 $EGREP "memchr" >/dev/null 2>&1; then :
6312
6313 else
6314 ac_cv_header_stdc=no
6315 fi
6316 rm -f conftest*
6317
6318 fi
6319
6320 if test $ac_cv_header_stdc = yes; then
6321 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323 /* end confdefs.h. */
6324 #include <stdlib.h>
6325
6326 _ACEOF
6327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6328 $EGREP "free" >/dev/null 2>&1; then :
6329
6330 else
6331 ac_cv_header_stdc=no
6332 fi
6333 rm -f conftest*
6334
6335 fi
6336
6337 if test $ac_cv_header_stdc = yes; then
6338 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6339 if test "$cross_compiling" = yes; then :
6340 :
6341 else
6342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343 /* end confdefs.h. */
6344 #include <ctype.h>
6345 #include <stdlib.h>
6346 #if ((' ' & 0x0FF) == 0x020)
6347 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6348 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6349 #else
6350 # define ISLOWER(c) \
6351 (('a' <= (c) && (c) <= 'i') \
6352 || ('j' <= (c) && (c) <= 'r') \
6353 || ('s' <= (c) && (c) <= 'z'))
6354 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6355 #endif
6356
6357 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6358 int
6359 main ()
6360 {
6361 int i;
6362 for (i = 0; i < 256; i++)
6363 if (XOR (islower (i), ISLOWER (i))
6364 || toupper (i) != TOUPPER (i))
6365 return 2;
6366 return 0;
6367 }
6368 _ACEOF
6369 if ac_fn_c_try_run "$LINENO"; then :
6370
6371 else
6372 ac_cv_header_stdc=no
6373 fi
6374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6375 conftest.$ac_objext conftest.beam conftest.$ac_ext
6376 fi
6377
6378 fi
6379 fi
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6381 $as_echo "$ac_cv_header_stdc" >&6; }
6382 if test $ac_cv_header_stdc = yes; then
6383
6384 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6385
6386 fi
6387
6388 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6389 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6390 inttypes.h stdint.h unistd.h
6391 do :
6392 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6393 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6394 "
6395 eval as_val=\$$as_ac_Header
6396 if test "x$as_val" = x""yes; then :
6397 cat >>confdefs.h <<_ACEOF
6398 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6399 _ACEOF
6400
6401 fi
6402
6403 done
6404
6405
6406
6407
6408
6409 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6410 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6411 MINIX=yes
6412 else
6413 MINIX=
6414 fi
6415
6416
6417 if test "$MINIX" = yes; then
6418
6419 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6420
6421
6422 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6423
6424
6425 $as_echo "#define _MINIX 1" >>confdefs.h
6426
6427 fi
6428
6429 case "$host_os" in
6430 hpux*)
6431
6432 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6433
6434 ;;
6435 esac
6436
6437
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6439 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6440 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6441 $as_echo_n "(cached) " >&6
6442 else
6443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6444 /* end confdefs.h. */
6445
6446 # define __EXTENSIONS__ 1
6447 $ac_includes_default
6448 int
6449 main ()
6450 {
6451
6452 ;
6453 return 0;
6454 }
6455 _ACEOF
6456 if ac_fn_c_try_compile "$LINENO"; then :
6457 ac_cv_safe_to_define___extensions__=yes
6458 else
6459 ac_cv_safe_to_define___extensions__=no
6460 fi
6461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6462 fi
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6464 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6465 test $ac_cv_safe_to_define___extensions__ = yes &&
6466 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6467
6468 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6469
6470 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6471
6472 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6473
6474 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6475
6476 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6477
6478
6479
6480
6481
6482
6483
6484
6485 # Check whether --enable-largefile was given.
6486 if test "${enable_largefile+set}" = set; then :
6487 enableval=$enable_largefile;
6488 fi
6489
6490 if test "$enable_largefile" != no; then
6491
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6493 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6494 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6495 $as_echo_n "(cached) " >&6
6496 else
6497 ac_cv_sys_largefile_CC=no
6498 if test "$GCC" != yes; then
6499 ac_save_CC=$CC
6500 while :; do
6501 # IRIX 6.2 and later do not support large files by default,
6502 # so use the C compiler's -n32 option if that helps.
6503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504 /* end confdefs.h. */
6505 #include <sys/types.h>
6506 /* Check that off_t can represent 2**63 - 1 correctly.
6507 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6508 since some C++ compilers masquerading as C compilers
6509 incorrectly reject 9223372036854775807. */
6510 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6511 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6512 && LARGE_OFF_T % 2147483647 == 1)
6513 ? 1 : -1];
6514 int
6515 main ()
6516 {
6517
6518 ;
6519 return 0;
6520 }
6521 _ACEOF
6522 if ac_fn_c_try_compile "$LINENO"; then :
6523 break
6524 fi
6525 rm -f core conftest.err conftest.$ac_objext
6526 CC="$CC -n32"
6527 if ac_fn_c_try_compile "$LINENO"; then :
6528 ac_cv_sys_largefile_CC=' -n32'; break
6529 fi
6530 rm -f core conftest.err conftest.$ac_objext
6531 break
6532 done
6533 CC=$ac_save_CC
6534 rm -f conftest.$ac_ext
6535 fi
6536 fi
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6538 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6539 if test "$ac_cv_sys_largefile_CC" != no; then
6540 CC=$CC$ac_cv_sys_largefile_CC
6541 fi
6542
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6544 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6545 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6546 $as_echo_n "(cached) " >&6
6547 else
6548 while :; do
6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6551 #include <sys/types.h>
6552 /* Check that off_t can represent 2**63 - 1 correctly.
6553 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6554 since some C++ compilers masquerading as C compilers
6555 incorrectly reject 9223372036854775807. */
6556 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6557 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6558 && LARGE_OFF_T % 2147483647 == 1)
6559 ? 1 : -1];
6560 int
6561 main ()
6562 {
6563
6564 ;
6565 return 0;
6566 }
6567 _ACEOF
6568 if ac_fn_c_try_compile "$LINENO"; then :
6569 ac_cv_sys_file_offset_bits=no; break
6570 fi
6571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6574 #define _FILE_OFFSET_BITS 64
6575 #include <sys/types.h>
6576 /* Check that off_t can represent 2**63 - 1 correctly.
6577 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6578 since some C++ compilers masquerading as C compilers
6579 incorrectly reject 9223372036854775807. */
6580 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6581 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6582 && LARGE_OFF_T % 2147483647 == 1)
6583 ? 1 : -1];
6584 int
6585 main ()
6586 {
6587
6588 ;
6589 return 0;
6590 }
6591 _ACEOF
6592 if ac_fn_c_try_compile "$LINENO"; then :
6593 ac_cv_sys_file_offset_bits=64; break
6594 fi
6595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6596 ac_cv_sys_file_offset_bits=unknown
6597 break
6598 done
6599 fi
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6601 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6602 case $ac_cv_sys_file_offset_bits in #(
6603 no | unknown) ;;
6604 *)
6605 cat >>confdefs.h <<_ACEOF
6606 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6607 _ACEOF
6608 ;;
6609 esac
6610 rm -rf conftest*
6611 if test $ac_cv_sys_file_offset_bits = unknown; then
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6613 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6614 if test "${ac_cv_sys_large_files+set}" = set; then :
6615 $as_echo_n "(cached) " >&6
6616 else
6617 while :; do
6618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6619 /* end confdefs.h. */
6620 #include <sys/types.h>
6621 /* Check that off_t can represent 2**63 - 1 correctly.
6622 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6623 since some C++ compilers masquerading as C compilers
6624 incorrectly reject 9223372036854775807. */
6625 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6626 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6627 && LARGE_OFF_T % 2147483647 == 1)
6628 ? 1 : -1];
6629 int
6630 main ()
6631 {
6632
6633 ;
6634 return 0;
6635 }
6636 _ACEOF
6637 if ac_fn_c_try_compile "$LINENO"; then :
6638 ac_cv_sys_large_files=no; break
6639 fi
6640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6642 /* end confdefs.h. */
6643 #define _LARGE_FILES 1
6644 #include <sys/types.h>
6645 /* Check that off_t can represent 2**63 - 1 correctly.
6646 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6647 since some C++ compilers masquerading as C compilers
6648 incorrectly reject 9223372036854775807. */
6649 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6650 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6651 && LARGE_OFF_T % 2147483647 == 1)
6652 ? 1 : -1];
6653 int
6654 main ()
6655 {
6656
6657 ;
6658 return 0;
6659 }
6660 _ACEOF
6661 if ac_fn_c_try_compile "$LINENO"; then :
6662 ac_cv_sys_large_files=1; break
6663 fi
6664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6665 ac_cv_sys_large_files=unknown
6666 break
6667 done
6668 fi
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6670 $as_echo "$ac_cv_sys_large_files" >&6; }
6671 case $ac_cv_sys_large_files in #(
6672 no | unknown) ;;
6673 *)
6674 cat >>confdefs.h <<_ACEOF
6675 #define _LARGE_FILES $ac_cv_sys_large_files
6676 _ACEOF
6677 ;;
6678 esac
6679 rm -rf conftest*
6680 fi
6681
6682
6683 fi
6684
6685 case $ac_cv_prog_cc_stdc in #(
6686 no) :
6687 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6688 *) :
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6690 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6691 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6692 $as_echo_n "(cached) " >&6
6693 else
6694 ac_cv_prog_cc_c99=no
6695 ac_save_CC=$CC
6696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697 /* end confdefs.h. */
6698 #include <stdarg.h>
6699 #include <stdbool.h>
6700 #include <stdlib.h>
6701 #include <wchar.h>
6702 #include <stdio.h>
6703
6704 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6705 #define debug(...) fprintf (stderr, __VA_ARGS__)
6706 #define showlist(...) puts (#__VA_ARGS__)
6707 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6708 static void
6709 test_varargs_macros (void)
6710 {
6711 int x = 1234;
6712 int y = 5678;
6713 debug ("Flag");
6714 debug ("X = %d\n", x);
6715 showlist (The first, second, and third items.);
6716 report (x>y, "x is %d but y is %d", x, y);
6717 }
6718
6719 // Check long long types.
6720 #define BIG64 18446744073709551615ull
6721 #define BIG32 4294967295ul
6722 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6723 #if !BIG_OK
6724 your preprocessor is broken;
6725 #endif
6726 #if BIG_OK
6727 #else
6728 your preprocessor is broken;
6729 #endif
6730 static long long int bignum = -9223372036854775807LL;
6731 static unsigned long long int ubignum = BIG64;
6732
6733 struct incomplete_array
6734 {
6735 int datasize;
6736 double data[];
6737 };
6738
6739 struct named_init {
6740 int number;
6741 const wchar_t *name;
6742 double average;
6743 };
6744
6745 typedef const char *ccp;
6746
6747 static inline int
6748 test_restrict (ccp restrict text)
6749 {
6750 // See if C++-style comments work.
6751 // Iterate through items via the restricted pointer.
6752 // Also check for declarations in for loops.
6753 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6754 continue;
6755 return 0;
6756 }
6757
6758 // Check varargs and va_copy.
6759 static void
6760 test_varargs (const char *format, ...)
6761 {
6762 va_list args;
6763 va_start (args, format);
6764 va_list args_copy;
6765 va_copy (args_copy, args);
6766
6767 const char *str;
6768 int number;
6769 float fnumber;
6770
6771 while (*format)
6772 {
6773 switch (*format++)
6774 {
6775 case 's': // string
6776 str = va_arg (args_copy, const char *);
6777 break;
6778 case 'd': // int
6779 number = va_arg (args_copy, int);
6780 break;
6781 case 'f': // float
6782 fnumber = va_arg (args_copy, double);
6783 break;
6784 default:
6785 break;
6786 }
6787 }
6788 va_end (args_copy);
6789 va_end (args);
6790 }
6791
6792 int
6793 main ()
6794 {
6795
6796 // Check bool.
6797 _Bool success = false;
6798
6799 // Check restrict.
6800 if (test_restrict ("String literal") == 0)
6801 success = true;
6802 char *restrict newvar = "Another string";
6803
6804 // Check varargs.
6805 test_varargs ("s, d' f .", "string", 65, 34.234);
6806 test_varargs_macros ();
6807
6808 // Check flexible array members.
6809 struct incomplete_array *ia =
6810 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6811 ia->datasize = 10;
6812 for (int i = 0; i < ia->datasize; ++i)
6813 ia->data[i] = i * 1.234;
6814
6815 // Check named initializers.
6816 struct named_init ni = {
6817 .number = 34,
6818 .name = L"Test wide string",
6819 .average = 543.34343,
6820 };
6821
6822 ni.number = 58;
6823
6824 int dynamic_array[ni.number];
6825 dynamic_array[ni.number - 1] = 543;
6826
6827 // work around unused variable warnings
6828 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6829 || dynamic_array[ni.number - 1] != 543);
6830
6831 ;
6832 return 0;
6833 }
6834 _ACEOF
6835 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6836 do
6837 CC="$ac_save_CC $ac_arg"
6838 if ac_fn_c_try_compile "$LINENO"; then :
6839 ac_cv_prog_cc_c99=$ac_arg
6840 fi
6841 rm -f core conftest.err conftest.$ac_objext
6842 test "x$ac_cv_prog_cc_c99" != "xno" && break
6843 done
6844 rm -f conftest.$ac_ext
6845 CC=$ac_save_CC
6846
6847 fi
6848 # AC_CACHE_VAL
6849 case "x$ac_cv_prog_cc_c99" in
6850 x)
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6852 $as_echo "none needed" >&6; } ;;
6853 xno)
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6855 $as_echo "unsupported" >&6; } ;;
6856 *)
6857 CC="$CC $ac_cv_prog_cc_c99"
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6859 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6860 esac
6861 if test "x$ac_cv_prog_cc_c99" != xno; then :
6862 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6863 else
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6865 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6866 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6867 $as_echo_n "(cached) " >&6
6868 else
6869 ac_cv_prog_cc_c89=no
6870 ac_save_CC=$CC
6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h. */
6873 #include <stdarg.h>
6874 #include <stdio.h>
6875 #include <sys/types.h>
6876 #include <sys/stat.h>
6877 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6878 struct buf { int x; };
6879 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6880 static char *e (p, i)
6881 char **p;
6882 int i;
6883 {
6884 return p[i];
6885 }
6886 static char *f (char * (*g) (char **, int), char **p, ...)
6887 {
6888 char *s;
6889 va_list v;
6890 va_start (v,p);
6891 s = g (p, va_arg (v,int));
6892 va_end (v);
6893 return s;
6894 }
6895
6896 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6897 function prototypes and stuff, but not '\xHH' hex character constants.
6898 These don't provoke an error unfortunately, instead are silently treated
6899 as 'x'. The following induces an error, until -std is added to get
6900 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6901 array size at least. It's necessary to write '\x00'==0 to get something
6902 that's true only with -std. */
6903 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6904
6905 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6906 inside strings and character constants. */
6907 #define FOO(x) 'x'
6908 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6909
6910 int test (int i, double x);
6911 struct s1 {int (*f) (int a);};
6912 struct s2 {int (*f) (double a);};
6913 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6914 int argc;
6915 char **argv;
6916 int
6917 main ()
6918 {
6919 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6920 ;
6921 return 0;
6922 }
6923 _ACEOF
6924 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6925 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6926 do
6927 CC="$ac_save_CC $ac_arg"
6928 if ac_fn_c_try_compile "$LINENO"; then :
6929 ac_cv_prog_cc_c89=$ac_arg
6930 fi
6931 rm -f core conftest.err conftest.$ac_objext
6932 test "x$ac_cv_prog_cc_c89" != "xno" && break
6933 done
6934 rm -f conftest.$ac_ext
6935 CC=$ac_save_CC
6936
6937 fi
6938 # AC_CACHE_VAL
6939 case "x$ac_cv_prog_cc_c89" in
6940 x)
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6942 $as_echo "none needed" >&6; } ;;
6943 xno)
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6945 $as_echo "unsupported" >&6; } ;;
6946 *)
6947 CC="$CC $ac_cv_prog_cc_c89"
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6949 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6950 esac
6951 if test "x$ac_cv_prog_cc_c89" != xno; then :
6952 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6953 else
6954 ac_cv_prog_cc_stdc=no
6955 fi
6956
6957 fi
6958 ;;
6959 esac
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6961 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6962 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6963 $as_echo_n "(cached) " >&6
6964 fi
6965
6966 case $ac_cv_prog_cc_stdc in #(
6967 no) :
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6969 $as_echo "unsupported" >&6; } ;; #(
6970 '') :
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6972 $as_echo "none needed" >&6; } ;; #(
6973 *) :
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6975 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6976 esac
6977
6978
6979
6980 # Code from module alloca-opt:
6981 # Code from module allocator:
6982 # Code from module c-ctype:
6983 # Code from module c-strcase:
6984 # Code from module careadlinkat:
6985 # Code from module clock-time:
6986 # Code from module close-stream:
6987 # Code from module crypto/md5:
6988 # Code from module crypto/sha1:
6989 # Code from module crypto/sha256:
6990 # Code from module crypto/sha512:
6991 # Code from module dosname:
6992 # Code from module dtoastr:
6993 # Code from module dtotimespec:
6994 # Code from module dup2:
6995 # Code from module environ:
6996 # Code from module euidaccess:
6997 # Code from module execinfo:
6998 # Code from module extensions:
6999
7000 # Code from module extern-inline:
7001 # Code from module faccessat:
7002 # Code from module fcntl-h:
7003 # Code from module filemode:
7004 # Code from module fpending:
7005 # Code from module getgroups:
7006 # Code from module getloadavg:
7007 # Code from module getopt-gnu:
7008 # Code from module getopt-posix:
7009 # Code from module gettext-h:
7010 # Code from module gettime:
7011 # Code from module gettimeofday:
7012 # Code from module group-member:
7013 # Code from module ignore-value:
7014 # Code from module include_next:
7015 # Code from module intprops:
7016 # Code from module inttypes-incomplete:
7017 # Code from module largefile:
7018
7019 # Code from module lstat:
7020 # Code from module manywarnings:
7021 # Code from module mktime:
7022 # Code from module multiarch:
7023 # Code from module nocrash:
7024 # Code from module pathmax:
7025 # Code from module pselect:
7026 # Code from module pthread_sigmask:
7027 # Code from module readlink:
7028 # Code from module root-uid:
7029 # Code from module signal-h:
7030 # Code from module snippet/_Noreturn:
7031 # Code from module snippet/arg-nonnull:
7032 # Code from module snippet/c++defs:
7033 # Code from module snippet/warn-on-use:
7034 # Code from module socklen:
7035 # Code from module ssize_t:
7036 # Code from module stat:
7037 # Code from module stat-time:
7038 # Code from module stdalign:
7039 # Code from module stdarg:
7040
7041
7042
7043 # Code from module stdbool:
7044 # Code from module stddef:
7045 # Code from module stdint:
7046 # Code from module stdio:
7047 # Code from module stdlib:
7048 # Code from module strftime:
7049 # Code from module strtoimax:
7050 # Code from module strtoll:
7051 # Code from module strtoull:
7052 # Code from module strtoumax:
7053 # Code from module symlink:
7054 # Code from module sys_select:
7055 # Code from module sys_stat:
7056 # Code from module sys_time:
7057 # Code from module time:
7058 # Code from module time_r:
7059 # Code from module timer-time:
7060 # Code from module timespec:
7061 # Code from module timespec-add:
7062 # Code from module timespec-sub:
7063 # Code from module u64:
7064 # Code from module unistd:
7065 # Code from module utimens:
7066 # Code from module verify:
7067 # Code from module warnings:
7068 # Code from module xalloc-oversized:
7069
7070
7071 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7072 # if -g3 works and the user does not specify CFLAGS.
7073 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7074 if test "$ac_test_CFLAGS" != set; then
7075 case $CFLAGS in
7076 '-g')
7077 emacs_g3_CFLAGS='-g3';;
7078 '-g -O2')
7079 emacs_g3_CFLAGS='-g3 -O2';;
7080 *)
7081 emacs_g3_CFLAGS='';;
7082 esac
7083 if test -n "$emacs_g3_CFLAGS"; then
7084 emacs_save_CFLAGS=$CFLAGS
7085 CFLAGS=$emacs_g3_CFLAGS
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7087 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7088 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7089 $as_echo_n "(cached) " >&6
7090 else
7091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7092 /* end confdefs.h. */
7093
7094 int
7095 main ()
7096 {
7097
7098 ;
7099 return 0;
7100 }
7101 _ACEOF
7102 if ac_fn_c_try_link "$LINENO"; then :
7103 emacs_cv_prog_cc_g3=yes
7104 else
7105 emacs_cv_prog_cc_g3=no
7106 fi
7107 rm -f core conftest.err conftest.$ac_objext \
7108 conftest$ac_exeext conftest.$ac_ext
7109 fi
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7111 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7112 if test $emacs_cv_prog_cc_g3 = yes; then
7113 CFLAGS=$emacs_g3_CFLAGS
7114 else
7115 CFLAGS=$emacs_save_CFLAGS
7116 fi
7117 fi
7118 fi
7119
7120 # Check whether --enable-gcc-warnings was given.
7121 if test "${enable_gcc_warnings+set}" = set; then :
7122 enableval=$enable_gcc_warnings; case $enableval in
7123 yes|no) ;;
7124 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7125 esac
7126 gl_gcc_warnings=$enableval
7127 else
7128 gl_gcc_warnings=no
7129
7130 fi
7131
7132
7133 # Check whether --enable-link-time-optimization was given.
7134 if test "${enable_link_time_optimization+set}" = set; then :
7135 enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7137 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7138 ac_lto_supported=no
7139 if test x$GCC = xyes; then
7140 CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7141 if test x$CPUS != x; then
7142 LTO="-flto=$CPUS"
7143 else
7144 LTO="-flto"
7145 fi
7146 old_CFLAGS=$CFLAGS
7147 CFLAGS="$CFLAGS $LTO"
7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h. */
7150
7151 int
7152 main ()
7153 {
7154
7155 ;
7156 return 0;
7157 }
7158 _ACEOF
7159 if ac_fn_c_try_compile "$LINENO"; then :
7160 ac_lto_supported=yes
7161 else
7162 ac_lto_supported=no
7163 fi
7164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7165 CFLAGS="$old_CFLAGS"
7166 fi
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7168 $as_echo "$ac_lto_supported" >&6; }
7169 if test "$ac_lto_supported" = "yes"; then
7170 CFLAGS="$CFLAGS $LTO"
7171 fi
7172 fi
7173 fi
7174
7175
7176 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7177 # ------------------------------------------------
7178 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7179 # Otherwise, run RUN-IF-NOT-FOUND.
7180
7181
7182 # When compiling with GCC, prefer -isystem to -I when including system
7183 # include files, to avoid generating useless diagnostics for the files.
7184 if test "$gl_gcc_warnings" != yes; then
7185 isystem='-I'
7186 else
7187 isystem='-isystem '
7188
7189 # This, $nw, is the list of warnings we disable.
7190 nw=
7191
7192 case $with_x_toolkit in
7193 lucid | athena | motif)
7194 # Old toolkits mishandle 'const'.
7195 nw="$nw -Wwrite-strings"
7196 ;;
7197 *)
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7199 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7200 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7201 $as_echo_n "(cached) " >&6
7202 else
7203
7204 gl_save_compiler_FLAGS="$CFLAGS"
7205 as_fn_append CFLAGS " -Werror"
7206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7207 /* end confdefs.h. */
7208
7209 int
7210 main ()
7211 {
7212
7213 ;
7214 return 0;
7215 }
7216 _ACEOF
7217 if ac_fn_c_try_compile "$LINENO"; then :
7218 gl_cv_warn_c__Werror=yes
7219 else
7220 gl_cv_warn_c__Werror=no
7221 fi
7222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7223 CFLAGS="$gl_save_compiler_FLAGS"
7224
7225 fi
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7227 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7228 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7229 as_fn_append WERROR_CFLAGS " -Werror"
7230 fi
7231
7232
7233 ;;
7234 esac
7235
7236
7237 nw="$nw -Waggregate-return" # anachronistic
7238 nw="$nw -Wlong-long" # C90 is anachronistic
7239 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7240 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7241 nw="$nw -Wtraditional" # Warns on #elif which we use often
7242 nw="$nw -Wcast-qual" # Too many warnings for now
7243 nw="$nw -Wconversion" # Too many warnings for now
7244 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7245 nw="$nw -Wsign-conversion" # Too many warnings for now
7246 nw="$nw -Woverlength-strings" # Not a problem these days
7247 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7248 nw="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7249 nw="$nw -Wpadded" # Our structs are not padded
7250 nw="$nw -Wredundant-decls" # we regularly (re)declare functions
7251 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7252 nw="$nw -Wformat-nonliteral" # we do this a lot
7253 nw="$nw -Wvla" # warnings in gettext.h
7254 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7255 nw="$nw -Wswitch-enum" # Too many warnings for now
7256 nw="$nw -Wswitch-default" # Too many warnings for now
7257 nw="$nw -Wfloat-equal" # warns about high-quality code
7258 nw="$nw -Winline" # OK to ignore 'inline'
7259 nw="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7260 nw="$nw -Wstrict-overflow" # OK to optimize assuming that
7261 # signed overflow has undefined behavior
7262 nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7263 nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7264
7265 # Emacs doesn't care about shadowing; see
7266 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7267 nw="$nw -Wshadow"
7268
7269 # The following line should be removable at some point.
7270 nw="$nw -Wsuggest-attribute=pure"
7271
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use -Wstack-protector" >&5
7273 $as_echo_n "checking whether to use -Wstack-protector... " >&6; }
7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h. */
7276 #if (1 <= __LONG_MAX__ >> 31 >> 31 \
7277 && 4 < __GNUC__ + (7 < __GNUC_MINOR__ + (2 <= __GNUC_PATCHLEVEL__)))
7278 /* OK */
7279 #else
7280 #error "Not GCC, or GCC before 4.7.2, or 'long int' has < 64 bits."
7281 #endif
7282
7283 int
7284 main ()
7285 {
7286
7287 ;
7288 return 0;
7289 }
7290 _ACEOF
7291 if ac_fn_c_try_cpp "$LINENO"; then :
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7293 $as_echo "yes" >&6; }
7294 else
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7296 $as_echo "no" >&6; }
7297 nw="$nw -Wstack-protector"
7298 fi
7299 rm -f conftest.err conftest.$ac_ext
7300
7301
7302
7303 if test -n "$GCC"; then
7304
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7306 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7307 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7308 $as_echo_n "(cached) " >&6
7309 else
7310
7311 gl_save_CFLAGS="$CFLAGS"
7312 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7315
7316 int
7317 main ()
7318 {
7319
7320 ;
7321 return 0;
7322 }
7323 _ACEOF
7324 if ac_fn_c_try_compile "$LINENO"; then :
7325 gl_cv_cc_nomfi_supported=yes
7326 else
7327 gl_cv_cc_nomfi_supported=no
7328 fi
7329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7330 CFLAGS="$gl_save_CFLAGS"
7331 fi
7332
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7334 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7335
7336 if test "$gl_cv_cc_nomfi_supported" = yes; then
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7338 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7339 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7340 $as_echo_n "(cached) " >&6
7341 else
7342
7343 gl_save_CFLAGS="$CFLAGS"
7344 CFLAGS="$CFLAGS -W -Werror"
7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346 /* end confdefs.h. */
7347 void f (void)
7348 {
7349 typedef struct { int a; int b; } s_t;
7350 s_t s1 = { 0, };
7351 }
7352
7353 int
7354 main ()
7355 {
7356
7357 ;
7358 return 0;
7359 }
7360 _ACEOF
7361 if ac_fn_c_try_compile "$LINENO"; then :
7362 gl_cv_cc_nomfi_needed=no
7363 else
7364 gl_cv_cc_nomfi_needed=yes
7365 fi
7366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7367 CFLAGS="$gl_save_CFLAGS"
7368
7369 fi
7370
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7372 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7373 fi
7374
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7376 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7377 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7378 $as_echo_n "(cached) " >&6
7379 else
7380
7381 gl_save_CFLAGS="$CFLAGS"
7382 CFLAGS="$CFLAGS -Werror -Wuninitialized"
7383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384 /* end confdefs.h. */
7385
7386 int
7387 main ()
7388 {
7389
7390 ;
7391 return 0;
7392 }
7393 _ACEOF
7394 if ac_fn_c_try_compile "$LINENO"; then :
7395 gl_cv_cc_uninitialized_supported=yes
7396 else
7397 gl_cv_cc_uninitialized_supported=no
7398 fi
7399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7400 CFLAGS="$gl_save_CFLAGS"
7401 fi
7402
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7404 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7405
7406 fi
7407
7408 # List all gcc warning categories.
7409 gl_manywarn_set=
7410 for gl_manywarn_item in \
7411 -W \
7412 -Wabi \
7413 -Waddress \
7414 -Wall \
7415 -Warray-bounds \
7416 -Wattributes \
7417 -Wbad-function-cast \
7418 -Wbuiltin-macro-redefined \
7419 -Wcast-align \
7420 -Wchar-subscripts \
7421 -Wclobbered \
7422 -Wcomment \
7423 -Wcomments \
7424 -Wcoverage-mismatch \
7425 -Wcpp \
7426 -Wdeprecated \
7427 -Wdeprecated-declarations \
7428 -Wdisabled-optimization \
7429 -Wdiv-by-zero \
7430 -Wdouble-promotion \
7431 -Wempty-body \
7432 -Wendif-labels \
7433 -Wenum-compare \
7434 -Wextra \
7435 -Wformat-contains-nul \
7436 -Wformat-extra-args \
7437 -Wformat-nonliteral \
7438 -Wformat-security \
7439 -Wformat-y2k \
7440 -Wformat-zero-length \
7441 -Wformat=2 \
7442 -Wfree-nonheap-object \
7443 -Wignored-qualifiers \
7444 -Wimplicit \
7445 -Wimplicit-function-declaration \
7446 -Wimplicit-int \
7447 -Winit-self \
7448 -Winline \
7449 -Wint-to-pointer-cast \
7450 -Winvalid-memory-model \
7451 -Winvalid-pch \
7452 -Wjump-misses-init \
7453 -Wlogical-op \
7454 -Wmain \
7455 -Wmaybe-uninitialized \
7456 -Wmissing-braces \
7457 -Wmissing-declarations \
7458 -Wmissing-field-initializers \
7459 -Wmissing-format-attribute \
7460 -Wmissing-include-dirs \
7461 -Wmissing-noreturn \
7462 -Wmissing-parameter-type \
7463 -Wmissing-prototypes \
7464 -Wmudflap \
7465 -Wmultichar \
7466 -Wnarrowing \
7467 -Wnested-externs \
7468 -Wnonnull \
7469 -Wnormalized=nfc \
7470 -Wold-style-declaration \
7471 -Wold-style-definition \
7472 -Woverflow \
7473 -Woverlength-strings \
7474 -Woverride-init \
7475 -Wpacked \
7476 -Wpacked-bitfield-compat \
7477 -Wparentheses \
7478 -Wpointer-arith \
7479 -Wpointer-sign \
7480 -Wpointer-to-int-cast \
7481 -Wpragmas \
7482 -Wreturn-type \
7483 -Wsequence-point \
7484 -Wshadow \
7485 -Wsizeof-pointer-memaccess \
7486 -Wstack-protector \
7487 -Wstrict-aliasing \
7488 -Wstrict-overflow \
7489 -Wstrict-prototypes \
7490 -Wsuggest-attribute=const \
7491 -Wsuggest-attribute=format \
7492 -Wsuggest-attribute=noreturn \
7493 -Wsuggest-attribute=pure \
7494 -Wswitch \
7495 -Wswitch-default \
7496 -Wsync-nand \
7497 -Wsystem-headers \
7498 -Wtrampolines \
7499 -Wtrigraphs \
7500 -Wtype-limits \
7501 -Wuninitialized \
7502 -Wunknown-pragmas \
7503 -Wunreachable-code \
7504 -Wunsafe-loop-optimizations \
7505 -Wunused \
7506 -Wunused-but-set-parameter \
7507 -Wunused-but-set-variable \
7508 -Wunused-function \
7509 -Wunused-label \
7510 -Wunused-local-typedefs \
7511 -Wunused-macros \
7512 -Wunused-parameter \
7513 -Wunused-result \
7514 -Wunused-value \
7515 -Wunused-variable \
7516 -Wvarargs \
7517 -Wvariadic-macros \
7518 -Wvector-operation-performance \
7519 -Wvla \
7520 -Wvolatile-register-var \
7521 -Wwrite-strings \
7522 \
7523 ; do
7524 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7525 done
7526
7527 # Disable specific options as needed.
7528 if test "$gl_cv_cc_nomfi_needed" = yes; then
7529 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7530 fi
7531
7532 if test "$gl_cv_cc_uninitialized_supported" = no; then
7533 gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
7534 fi
7535
7536 ws=$gl_manywarn_set
7537
7538
7539 gl_warn_set=
7540 set x $ws; shift
7541 for gl_warn_item
7542 do
7543 case " $nw " in
7544 *" $gl_warn_item "*)
7545 ;;
7546 *)
7547 gl_warn_set="$gl_warn_set $gl_warn_item"
7548 ;;
7549 esac
7550 done
7551 ws=$gl_warn_set
7552
7553 for w in $ws; do
7554 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7556 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7557 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7558 $as_echo_n "(cached) " >&6
7559 else
7560
7561 gl_save_compiler_FLAGS="$CFLAGS"
7562 as_fn_append CFLAGS " $w"
7563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7564 /* end confdefs.h. */
7565
7566 int
7567 main ()
7568 {
7569
7570 ;
7571 return 0;
7572 }
7573 _ACEOF
7574 if ac_fn_c_try_compile "$LINENO"; then :
7575 eval "$as_gl_Warn=yes"
7576 else
7577 eval "$as_gl_Warn=no"
7578 fi
7579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7580 CFLAGS="$gl_save_compiler_FLAGS"
7581
7582 fi
7583 eval ac_res=\$$as_gl_Warn
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7585 $as_echo "$ac_res" >&6; }
7586 eval as_val=\$$as_gl_Warn
7587 if test "x$as_val" = x""yes; then :
7588 as_fn_append WARN_CFLAGS " $w"
7589 fi
7590
7591
7592 done
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7594 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7595 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7596 $as_echo_n "(cached) " >&6
7597 else
7598
7599 gl_save_compiler_FLAGS="$CFLAGS"
7600 as_fn_append CFLAGS " -Wno-missing-field-initializers"
7601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602 /* end confdefs.h. */
7603
7604 int
7605 main ()
7606 {
7607
7608 ;
7609 return 0;
7610 }
7611 _ACEOF
7612 if ac_fn_c_try_compile "$LINENO"; then :
7613 gl_cv_warn_c__Wno_missing_field_initializers=yes
7614 else
7615 gl_cv_warn_c__Wno_missing_field_initializers=no
7616 fi
7617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7618 CFLAGS="$gl_save_compiler_FLAGS"
7619
7620 fi
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7622 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7623 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7624 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7625 fi
7626
7627 # We need this one
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7629 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7630 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7631 $as_echo_n "(cached) " >&6
7632 else
7633
7634 gl_save_compiler_FLAGS="$CFLAGS"
7635 as_fn_append CFLAGS " -Wno-sign-compare"
7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637 /* end confdefs.h. */
7638
7639 int
7640 main ()
7641 {
7642
7643 ;
7644 return 0;
7645 }
7646 _ACEOF
7647 if ac_fn_c_try_compile "$LINENO"; then :
7648 gl_cv_warn_c__Wno_sign_compare=yes
7649 else
7650 gl_cv_warn_c__Wno_sign_compare=no
7651 fi
7652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7653 CFLAGS="$gl_save_compiler_FLAGS"
7654
7655 fi
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7657 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7658 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7659 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7660 fi
7661
7662 # Too many warnings for now
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7664 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7665 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7666 $as_echo_n "(cached) " >&6
7667 else
7668
7669 gl_save_compiler_FLAGS="$CFLAGS"
7670 as_fn_append CFLAGS " -Wno-type-limits"
7671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7672 /* end confdefs.h. */
7673
7674 int
7675 main ()
7676 {
7677
7678 ;
7679 return 0;
7680 }
7681 _ACEOF
7682 if ac_fn_c_try_compile "$LINENO"; then :
7683 gl_cv_warn_c__Wno_type_limits=yes
7684 else
7685 gl_cv_warn_c__Wno_type_limits=no
7686 fi
7687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7688 CFLAGS="$gl_save_compiler_FLAGS"
7689
7690 fi
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7692 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7693 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7694 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7695 fi
7696
7697 # Too many warnings for now
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7699 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7700 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7701 $as_echo_n "(cached) " >&6
7702 else
7703
7704 gl_save_compiler_FLAGS="$CFLAGS"
7705 as_fn_append CFLAGS " -Wno-switch"
7706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7707 /* end confdefs.h. */
7708
7709 int
7710 main ()
7711 {
7712
7713 ;
7714 return 0;
7715 }
7716 _ACEOF
7717 if ac_fn_c_try_compile "$LINENO"; then :
7718 gl_cv_warn_c__Wno_switch=yes
7719 else
7720 gl_cv_warn_c__Wno_switch=no
7721 fi
7722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7723 CFLAGS="$gl_save_compiler_FLAGS"
7724
7725 fi
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7727 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7728 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7729 as_fn_append WARN_CFLAGS " -Wno-switch"
7730 fi
7731
7732 # Too many warnings for now
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7734 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7735 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7736 $as_echo_n "(cached) " >&6
7737 else
7738
7739 gl_save_compiler_FLAGS="$CFLAGS"
7740 as_fn_append CFLAGS " -Wno-unused-parameter"
7741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742 /* end confdefs.h. */
7743
7744 int
7745 main ()
7746 {
7747
7748 ;
7749 return 0;
7750 }
7751 _ACEOF
7752 if ac_fn_c_try_compile "$LINENO"; then :
7753 gl_cv_warn_c__Wno_unused_parameter=yes
7754 else
7755 gl_cv_warn_c__Wno_unused_parameter=no
7756 fi
7757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7758 CFLAGS="$gl_save_compiler_FLAGS"
7759
7760 fi
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7762 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7763 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7764 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7765 fi
7766
7767 # Too many warnings for now
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7769 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7770 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7771 $as_echo_n "(cached) " >&6
7772 else
7773
7774 gl_save_compiler_FLAGS="$CFLAGS"
7775 as_fn_append CFLAGS " -Wno-format-nonliteral"
7776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h. */
7778
7779 int
7780 main ()
7781 {
7782
7783 ;
7784 return 0;
7785 }
7786 _ACEOF
7787 if ac_fn_c_try_compile "$LINENO"; then :
7788 gl_cv_warn_c__Wno_format_nonliteral=yes
7789 else
7790 gl_cv_warn_c__Wno_format_nonliteral=no
7791 fi
7792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7793 CFLAGS="$gl_save_compiler_FLAGS"
7794
7795 fi
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7797 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7798 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7799 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7800 fi
7801
7802
7803
7804 # In spite of excluding -Wlogical-op above, it is enabled, as of
7805 # gcc 4.5.0 20090517.
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7807 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7808 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7809 $as_echo_n "(cached) " >&6
7810 else
7811
7812 gl_save_compiler_FLAGS="$CFLAGS"
7813 as_fn_append CFLAGS " -Wno-logical-op"
7814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815 /* end confdefs.h. */
7816
7817 int
7818 main ()
7819 {
7820
7821 ;
7822 return 0;
7823 }
7824 _ACEOF
7825 if ac_fn_c_try_compile "$LINENO"; then :
7826 gl_cv_warn_c__Wno_logical_op=yes
7827 else
7828 gl_cv_warn_c__Wno_logical_op=no
7829 fi
7830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7831 CFLAGS="$gl_save_compiler_FLAGS"
7832
7833 fi
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7835 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7836 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
7837 as_fn_append WARN_CFLAGS " -Wno-logical-op"
7838 fi
7839
7840
7841
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7843 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7844 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7845 $as_echo_n "(cached) " >&6
7846 else
7847
7848 gl_save_compiler_FLAGS="$CFLAGS"
7849 as_fn_append CFLAGS " -fdiagnostics-show-option"
7850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851 /* end confdefs.h. */
7852
7853 int
7854 main ()
7855 {
7856
7857 ;
7858 return 0;
7859 }
7860 _ACEOF
7861 if ac_fn_c_try_compile "$LINENO"; then :
7862 gl_cv_warn_c__fdiagnostics_show_option=yes
7863 else
7864 gl_cv_warn_c__fdiagnostics_show_option=no
7865 fi
7866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7867 CFLAGS="$gl_save_compiler_FLAGS"
7868
7869 fi
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7871 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7872 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
7873 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
7874 fi
7875
7876
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7878 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7879 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7880 $as_echo_n "(cached) " >&6
7881 else
7882
7883 gl_save_compiler_FLAGS="$CFLAGS"
7884 as_fn_append CFLAGS " -funit-at-a-time"
7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h. */
7887
7888 int
7889 main ()
7890 {
7891
7892 ;
7893 return 0;
7894 }
7895 _ACEOF
7896 if ac_fn_c_try_compile "$LINENO"; then :
7897 gl_cv_warn_c__funit_at_a_time=yes
7898 else
7899 gl_cv_warn_c__funit_at_a_time=no
7900 fi
7901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7902 CFLAGS="$gl_save_compiler_FLAGS"
7903
7904 fi
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7906 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7907 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
7908 as_fn_append WARN_CFLAGS " -funit-at-a-time"
7909 fi
7910
7911
7912
7913
7914 $as_echo "#define lint 1" >>confdefs.h
7915
7916
7917
7918 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7919
7920
7921 # We use a slightly smaller set of warning options for lib/.
7922 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7923 nw=
7924 nw="$nw -Wunused-macros"
7925
7926
7927 gl_warn_set=
7928 set x $WARN_CFLAGS; shift
7929 for gl_warn_item
7930 do
7931 case " $nw " in
7932 *" $gl_warn_item "*)
7933 ;;
7934 *)
7935 gl_warn_set="$gl_warn_set $gl_warn_item"
7936 ;;
7937 esac
7938 done
7939 GNULIB_WARN_CFLAGS=$gl_warn_set
7940
7941
7942 fi
7943
7944
7945
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7947 $as_echo_n "checking whether ln -s works... " >&6; }
7948 LN_S=$as_ln_s
7949 if test "$LN_S" = "ln -s"; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7951 $as_echo "yes" >&6; }
7952 else
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7954 $as_echo "no, using $LN_S" >&6; }
7955 fi
7956
7957
7958 # Extract the first word of "install-info", so it can be a program name with args.
7959 set dummy install-info; ac_word=$2
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7961 $as_echo_n "checking for $ac_word... " >&6; }
7962 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7963 $as_echo_n "(cached) " >&6
7964 else
7965 case $INSTALL_INFO in
7966 [\\/]* | ?:[\\/]*)
7967 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7968 ;;
7969 *)
7970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7971 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
7972 do
7973 IFS=$as_save_IFS
7974 test -z "$as_dir" && as_dir=.
7975 for ac_exec_ext in '' $ac_executable_extensions; do
7976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7977 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7979 break 2
7980 fi
7981 done
7982 done
7983 IFS=$as_save_IFS
7984
7985 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7986 ;;
7987 esac
7988 fi
7989 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7990 if test -n "$INSTALL_INFO"; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7992 $as_echo "$INSTALL_INFO" >&6; }
7993 else
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 $as_echo "no" >&6; }
7996 fi
7997
7998
7999 # Extract the first word of "gzip", so it can be a program name with args.
8000 set dummy gzip; ac_word=$2
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8002 $as_echo_n "checking for $ac_word... " >&6; }
8003 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8004 $as_echo_n "(cached) " >&6
8005 else
8006 case $GZIP_PROG in
8007 [\\/]* | ?:[\\/]*)
8008 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
8009 ;;
8010 *)
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012 for as_dir in $PATH
8013 do
8014 IFS=$as_save_IFS
8015 test -z "$as_dir" && as_dir=.
8016 for ac_exec_ext in '' $ac_executable_extensions; do
8017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8018 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
8019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 break 2
8021 fi
8022 done
8023 done
8024 IFS=$as_save_IFS
8025
8026 ;;
8027 esac
8028 fi
8029 GZIP_PROG=$ac_cv_path_GZIP_PROG
8030 if test -n "$GZIP_PROG"; then
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8032 $as_echo "$GZIP_PROG" >&6; }
8033 else
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8035 $as_echo "no" >&6; }
8036 fi
8037
8038
8039
8040 if test $opsys = gnu-linux; then
8041 # Extract the first word of "paxctl", so it can be a program name with args.
8042 set dummy paxctl; ac_word=$2
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8044 $as_echo_n "checking for $ac_word... " >&6; }
8045 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8046 $as_echo_n "(cached) " >&6
8047 else
8048 case $PAXCTL in
8049 [\\/]* | ?:[\\/]*)
8050 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
8051 ;;
8052 *)
8053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8054 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
8055 do
8056 IFS=$as_save_IFS
8057 test -z "$as_dir" && as_dir=.
8058 for ac_exec_ext in '' $ac_executable_extensions; do
8059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8060 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
8061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8062 break 2
8063 fi
8064 done
8065 done
8066 IFS=$as_save_IFS
8067
8068 ;;
8069 esac
8070 fi
8071 PAXCTL=$ac_cv_path_PAXCTL
8072 if test -n "$PAXCTL"; then
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8074 $as_echo "$PAXCTL" >&6; }
8075 else
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8077 $as_echo "no" >&6; }
8078 fi
8079
8080
8081 if test "X$PAXCTL" != X; then
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8083 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8085 /* end confdefs.h. */
8086
8087 int
8088 main ()
8089 {
8090
8091 ;
8092 return 0;
8093 }
8094 _ACEOF
8095 if ac_fn_c_try_link "$LINENO"; then :
8096 if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8097 $as_echo "yes" >&6; }
8098 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099 $as_echo "no" >&6; }; PAXCTL=""; fi
8100 fi
8101 rm -f core conftest.err conftest.$ac_objext \
8102 conftest$ac_exeext conftest.$ac_ext
8103 fi
8104 fi
8105
8106 ## Need makeinfo >= 4.7 (?) to build the manuals.
8107 # Extract the first word of "makeinfo", so it can be a program name with args.
8108 set dummy makeinfo; ac_word=$2
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110 $as_echo_n "checking for $ac_word... " >&6; }
8111 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8112 $as_echo_n "(cached) " >&6
8113 else
8114 case $MAKEINFO in
8115 [\\/]* | ?:[\\/]*)
8116 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
8117 ;;
8118 *)
8119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120 for as_dir in $PATH
8121 do
8122 IFS=$as_save_IFS
8123 test -z "$as_dir" && as_dir=.
8124 for ac_exec_ext in '' $ac_executable_extensions; do
8125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8126 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
8127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8128 break 2
8129 fi
8130 done
8131 done
8132 IFS=$as_save_IFS
8133
8134 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
8135 ;;
8136 esac
8137 fi
8138 MAKEINFO=$ac_cv_path_MAKEINFO
8139 if test -n "$MAKEINFO"; then
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8141 $as_echo "$MAKEINFO" >&6; }
8142 else
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144 $as_echo "no" >&6; }
8145 fi
8146
8147
8148 if test "$MAKEINFO" != "no" && \
8149 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'`" = x; then
8150 MAKEINFO=no
8151 fi
8152
8153 ## Makeinfo is unusual. For a released Emacs, the manuals are
8154 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8155 ## therefore in the category of "special tools" not normally required, which
8156 ## configure does not have to check for (eg autoconf itself).
8157 ## In a Bazaar checkout on the other hand, the manuals are not included.
8158 ## So makeinfo is a requirement to build from Bazaar, and configure
8159 ## should test for it as it does for any other build requirement.
8160 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8161 ## with pre-built manuals, from a Bazaar checkout.
8162 HAVE_MAKEINFO=yes
8163
8164 if test "$MAKEINFO" = "no"; then
8165 MAKEINFO=makeinfo
8166 if test "x${with_makeinfo}" = "xno"; then
8167 HAVE_MAKEINFO=no
8168 elif test ! -e $srcdir/info/emacs && test ! -e $srcdir/info/emacs.info; then
8169 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
8170 source tree does not seem to have pre-built manuals in the \`info' directory.
8171 Either install a suitable version of makeinfo, or re-run configure
8172 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8173 fi
8174 fi
8175
8176
8177 INFO_EXT=.info
8178 INFO_OPTS=--no-split
8179
8180
8181
8182
8183 if test x$GCC = xyes; then
8184 test "x$GCC_LINK_TEST_OPTIONS" != x && \
8185 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8186 else
8187 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8188 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8189 fi
8190
8191
8192 late_LDFLAGS=$LDFLAGS
8193 if test x$GCC = xyes; then
8194 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
8195 else
8196 LDFLAGS="$LDFLAGS -znocombreloc"
8197 fi
8198
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8200 $as_echo_n "checking for -znocombreloc... " >&6; }
8201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8202 /* end confdefs.h. */
8203
8204 int
8205 main ()
8206 {
8207
8208 ;
8209 return 0;
8210 }
8211 _ACEOF
8212 if ac_fn_c_try_link "$LINENO"; then :
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8214 $as_echo "yes" >&6; }
8215 else
8216 LDFLAGS=$late_LDFLAGS
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8218 $as_echo "no" >&6; }
8219 fi
8220 rm -f core conftest.err conftest.$ac_objext \
8221 conftest$ac_exeext conftest.$ac_ext
8222
8223
8224 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8225 case "$opsys" in
8226 your-opsys-here) CANNOT_DUMP=yes ;;
8227 esac
8228
8229 test "$CANNOT_DUMP" = "yes" && \
8230
8231 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8232
8233
8234
8235
8236
8237 UNEXEC_OBJ=unexelf.o
8238 case "$opsys" in
8239 # MSDOS uses unexcoff.o
8240 # MSWindows uses unexw32.o
8241 aix4-2)
8242 UNEXEC_OBJ=unexaix.o
8243 ;;
8244 cygwin)
8245 UNEXEC_OBJ=unexcw.o
8246 ;;
8247 darwin)
8248 UNEXEC_OBJ=unexmacosx.o
8249 ;;
8250 hpux10-20 | hpux11)
8251 UNEXEC_OBJ=unexhp9k800.o
8252 ;;
8253 sol2-10)
8254 # Use the Solaris dldump() function, called from unexsol.c, to dump
8255 # emacs, instead of the generic ELF dump code found in unexelf.c.
8256 # The resulting binary has a complete symbol table, and is better
8257 # for debugging and other observability tools (debuggers, pstack, etc).
8258 #
8259 # If you encounter a problem using dldump(), please consider sending
8260 # a message to the OpenSolaris tools-linking mailing list:
8261 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8262 #
8263 # It is likely that dldump() works with older Solaris too, but this has
8264 # not been tested, so for now this change is for Solaris 10 or newer.
8265 UNEXEC_OBJ=unexsol.o
8266 ;;
8267 esac
8268
8269 LD_SWITCH_SYSTEM=
8270 case "$opsys" in
8271 freebsd)
8272 ## Let `ld' find image libs and similar things in /usr/local/lib.
8273 ## The system compiler, GCC, has apparently been modified to not
8274 ## look there, contrary to what a stock GCC would do.
8275 ### It's not our place to do this. See bug#10313#17.
8276 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8277 :
8278 ;;
8279
8280 gnu-linux)
8281 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8282 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8283 ;;
8284
8285 netbsd)
8286 ### It's not our place to do this. See bug#10313#17.
8287 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8288 :
8289 ;;
8290
8291 openbsd)
8292 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8293 ## otherwise Emacs dumps core on elf systems.
8294 LD_SWITCH_SYSTEM="-Z"
8295 ;;
8296 esac
8297
8298
8299 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8300
8301 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8302 ## which has not been defined yet. When this was handled with cpp,
8303 ## it was expanded to null when configure sourced the s/*.h file.
8304 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8305 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8306 ## (or somesuch), but because it is supposed to go at the _front_
8307 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8308 ## Compare with the gnu-linux case below, which added to the end
8309 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8310 ## LD_SWITCH_SYSTEM_TEMACS.
8311 case "$opsys" in
8312 netbsd|openbsd)
8313 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8314 esac
8315
8316
8317 C_SWITCH_MACHINE=
8318 case $canonical in
8319 alpha*)
8320 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8321 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8322
8323 fi
8324
8325 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8326 ## With ELF, make sure that all common symbols get allocated to in the
8327 ## data section. Otherwise, the dump of temacs may miss variables in
8328 ## the shared library that have been initialized. For example, with
8329 ## GNU libc, __malloc_initialized would normally be resolved to the
8330 ## shared library's .bss section, which is fatal.
8331 if test "x$GCC" = "xyes"; then
8332 C_SWITCH_MACHINE="-fno-common"
8333 else
8334 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8335 fi
8336 else
8337 UNEXEC_OBJ=unexalpha.o
8338 fi
8339 ;;
8340 esac
8341
8342
8343
8344
8345 C_SWITCH_SYSTEM=
8346 ## Some programs in src produce warnings saying certain subprograms
8347 ## are too complex and need a MAXMEM value greater than 2000 for
8348 ## additional optimization. --nils@exp-math.uni-essen.de
8349 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8350 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8351 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8352 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8353
8354
8355
8356 LIBS_SYSTEM=
8357 case "$opsys" in
8358 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8359 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8360
8361 freebsd) LIBS_SYSTEM="-lutil" ;;
8362
8363 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8364
8365 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8366
8367 ## Motif needs -lgen.
8368 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8369 esac
8370
8371
8372
8373 ### Make sure subsequent tests use flags consistent with the build flags.
8374
8375 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8376 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8377 else
8378 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8379 fi
8380
8381 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8382
8383 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8384
8385
8386
8387 LIB_MATH=-lm
8388 LIB_STANDARD=
8389 START_FILES=
8390 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8391
8392 case $opsys in
8393 cygwin )
8394 LIB_MATH=
8395 START_FILES='pre-crt0.o'
8396 ;;
8397 darwin )
8398 ## Adding -lm confuses the dynamic linker, so omit it.
8399 LIB_MATH=
8400 START_FILES='pre-crt0.o'
8401 ;;
8402 freebsd )
8403 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8404 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8405 SYSTEM_TYPE=berkeley-unix
8406 ;;
8407 gnu-linux | gnu-kfreebsd )
8408 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8409 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8410 ;;
8411 hpux10-20 | hpux11 )
8412 LIB_STANDARD=-lc
8413 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8414 ;;
8415 netbsd | openbsd )
8416 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8417 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8418 SYSTEM_TYPE=berkeley-unix
8419 ;;
8420
8421 sol2* | unixware )
8422 SYSTEM_TYPE=usg-unix-v
8423 ;;
8424
8425 esac
8426
8427
8428
8429
8430 cat >>confdefs.h <<_ACEOF
8431 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8432 _ACEOF
8433
8434
8435 crt_files=
8436
8437 for file in x $LIB_STANDARD $START_FILES; do
8438 case "$file" in
8439 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8440 esac
8441 done
8442
8443 if test "x$crt_files" != x; then
8444
8445 ## If user specified a crt-dir, use that unconditionally.
8446 crt_gcc=no
8447
8448 if test "X$CRT_DIR" = "X"; then
8449
8450 CRT_DIR=/usr/lib # default
8451
8452 case "$canonical" in
8453 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8454 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8455 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8456 ## For anything else (eg /usr/lib32), it is up the user to specify
8457 ## the location (bug#5655).
8458 ## Test for crtn.o, not just the directory, because sometimes the
8459 ## directory exists but does not have the relevant files (bug#1287).
8460 ## FIXME better to test for binary compatibility somehow.
8461 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8462 ;;
8463
8464 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8465 esac
8466
8467 case "$opsys" in
8468 hpux10-20) CRT_DIR=/lib ;;
8469 esac
8470
8471 test "x${GCC}" = xyes && crt_gcc=yes
8472
8473 fi # CRT_DIR = ""
8474
8475 crt_missing=
8476
8477 for file in $crt_files; do
8478
8479 ## If we're using gcc, try to determine it automatically by asking
8480 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8481 ## system-dependent default from above.]
8482 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8483
8484 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8485 case "$crt_file" in
8486 */*)
8487 CRT_DIR=`$as_dirname -- "$crt_file" ||
8488 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8489 X"$crt_file" : 'X\(//\)[^/]' \| \
8490 X"$crt_file" : 'X\(//\)$' \| \
8491 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8492 $as_echo X"$crt_file" |
8493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8494 s//\1/
8495 q
8496 }
8497 /^X\(\/\/\)[^/].*/{
8498 s//\1/
8499 q
8500 }
8501 /^X\(\/\/\)$/{
8502 s//\1/
8503 q
8504 }
8505 /^X\(\/\).*/{
8506 s//\1/
8507 q
8508 }
8509 s/.*/./; q'`
8510 ;;
8511 esac
8512 fi
8513
8514 crt_gcc=no
8515
8516 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8517 done # $crt_files
8518
8519 test "x$crt_missing" = x || \
8520 as_fn_error "Required file(s) not found:$crt_missing
8521 Try using the --with-crt-dir option." "$LINENO" 5
8522
8523 fi # crt_files != ""
8524
8525
8526
8527 case $opsys in
8528 netbsd | openbsd )
8529 if test -f $CRT_DIR/crti.o; then
8530
8531 test -f $CRT_DIR/crtn.o || \
8532 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8533
8534 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8535 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8536 fi
8537 ;;
8538 esac
8539
8540
8541 pre_PKG_CONFIG_CFLAGS=$CFLAGS
8542 pre_PKG_CONFIG_LIBS=$LIBS
8543
8544 # Extract the first word of "pkg-config", so it can be a program name with args.
8545 set dummy pkg-config; ac_word=$2
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8547 $as_echo_n "checking for $ac_word... " >&6; }
8548 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8549 $as_echo_n "(cached) " >&6
8550 else
8551 case $PKG_CONFIG in
8552 [\\/]* | ?:[\\/]*)
8553 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8554 ;;
8555 *)
8556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557 for as_dir in $PATH
8558 do
8559 IFS=$as_save_IFS
8560 test -z "$as_dir" && as_dir=.
8561 for ac_exec_ext in '' $ac_executable_extensions; do
8562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8563 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8565 break 2
8566 fi
8567 done
8568 done
8569 IFS=$as_save_IFS
8570
8571 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8572 ;;
8573 esac
8574 fi
8575 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8576 if test -n "$PKG_CONFIG"; then
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8578 $as_echo "$PKG_CONFIG" >&6; }
8579 else
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581 $as_echo "no" >&6; }
8582 fi
8583
8584
8585
8586
8587
8588
8589 if test "${with_sound}" != "no"; then
8590 # Sound support for GNU/Linux and the free BSDs.
8591 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8592 do :
8593 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8594 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8595 eval as_val=\$$as_ac_Header
8596 if test "x$as_val" = x""yes; then :
8597 cat >>confdefs.h <<_ACEOF
8598 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8599 _ACEOF
8600 have_sound_header=yes
8601 fi
8602
8603 done
8604
8605 # Emulation library used on NetBSD.
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8607 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8608 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8609 $as_echo_n "(cached) " >&6
8610 else
8611 ac_check_lib_save_LIBS=$LIBS
8612 LIBS="-lossaudio $LIBS"
8613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614 /* end confdefs.h. */
8615
8616 /* Override any GCC internal prototype to avoid an error.
8617 Use char because int might match the return type of a GCC
8618 builtin and then its argument prototype would still apply. */
8619 #ifdef __cplusplus
8620 extern "C"
8621 #endif
8622 char _oss_ioctl ();
8623 int
8624 main ()
8625 {
8626 return _oss_ioctl ();
8627 ;
8628 return 0;
8629 }
8630 _ACEOF
8631 if ac_fn_c_try_link "$LINENO"; then :
8632 ac_cv_lib_ossaudio__oss_ioctl=yes
8633 else
8634 ac_cv_lib_ossaudio__oss_ioctl=no
8635 fi
8636 rm -f core conftest.err conftest.$ac_objext \
8637 conftest$ac_exeext conftest.$ac_ext
8638 LIBS=$ac_check_lib_save_LIBS
8639 fi
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8641 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8642 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8643 LIBSOUND=-lossaudio
8644 else
8645 LIBSOUND=
8646 fi
8647
8648
8649
8650 ALSA_REQUIRED=1.0.0
8651 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8652
8653 succeeded=no
8654
8655 if test "$PKG_CONFIG" = "no" ; then
8656 HAVE_ALSA=no
8657 else
8658 PKG_CONFIG_MIN_VERSION=0.9.0
8659 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8661 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8662
8663 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8664 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8665 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8666 edit_cflags="
8667 s,///*,/,g
8668 s/^/ /
8669 s/ -I/ $isystem/g
8670 s/^ //
8671 "
8672 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8673 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8675 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8676 succeeded=yes
8677 else
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8679 $as_echo "no" >&6; }
8680 ALSA_CFLAGS=""
8681 ALSA_LIBS=""
8682 ## If we have a custom action on failure, don't print errors, but
8683 ## do set a variable so people can do so. Do it in a subshell
8684 ## to capture any diagnostics in invoking pkg-config.
8685 ALSA_PKG_ERRORS=`($PKG_CONFIG --print-errors "$ALSA_MODULES") 2>&1`
8686
8687 fi
8688
8689
8690
8691 else
8692 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8693 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8694 fi
8695 fi
8696
8697 if test $succeeded = yes; then
8698 HAVE_ALSA=yes
8699 else
8700 HAVE_ALSA=no
8701 fi
8702
8703 if test $HAVE_ALSA = yes; then
8704 SAVE_CFLAGS="$CFLAGS"
8705 SAVE_LIBS="$LIBS"
8706 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8707 LIBS="$ALSA_LIBS $LIBS"
8708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8709 /* end confdefs.h. */
8710 #include <asoundlib.h>
8711 int
8712 main ()
8713 {
8714 snd_lib_error_set_handler (0);
8715 ;
8716 return 0;
8717 }
8718 _ACEOF
8719 if ac_fn_c_try_compile "$LINENO"; then :
8720 emacs_alsa_normal=yes
8721 else
8722 emacs_alsa_normal=no
8723 fi
8724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8725 if test "$emacs_alsa_normal" != yes; then
8726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727 /* end confdefs.h. */
8728 #include <alsa/asoundlib.h>
8729 int
8730 main ()
8731 {
8732 snd_lib_error_set_handler (0);
8733 ;
8734 return 0;
8735 }
8736 _ACEOF
8737 if ac_fn_c_try_compile "$LINENO"; then :
8738 emacs_alsa_subdir=yes
8739 else
8740 emacs_alsa_subdir=no
8741 fi
8742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8743 if test "$emacs_alsa_subdir" != yes; then
8744 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8745 fi
8746 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8747 fi
8748
8749 CFLAGS="$SAVE_CFLAGS"
8750 LIBS="$SAVE_LIBS"
8751 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8752 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8753
8754 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8755
8756 fi
8757
8758 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8759 case "$opsys" in
8760 gnu-linux|freebsd|netbsd)
8761
8762 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8763
8764 ;;
8765 esac
8766 fi
8767
8768
8769 fi
8770
8771
8772
8773
8774 for ac_header in $ac_header_list
8775 do :
8776 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8777 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8778 "
8779 eval as_val=\$$as_ac_Header
8780 if test "x$as_val" = x""yes; then :
8781 cat >>confdefs.h <<_ACEOF
8782 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8783 _ACEOF
8784
8785 fi
8786
8787 done
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8812 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8814 /* end confdefs.h. */
8815 #include <sys/personality.h>
8816 int
8817 main ()
8818 {
8819 personality (PER_LINUX32)
8820 ;
8821 return 0;
8822 }
8823 _ACEOF
8824 if ac_fn_c_try_compile "$LINENO"; then :
8825 emacs_cv_personality_linux32=yes
8826 else
8827 emacs_cv_personality_linux32=no
8828 fi
8829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8831 $as_echo "$emacs_cv_personality_linux32" >&6; }
8832
8833 if test $emacs_cv_personality_linux32 = yes; then
8834
8835 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8836
8837 fi
8838
8839 for ac_header in term.h
8840 do :
8841 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8842 if test "x$ac_cv_header_term_h" = x""yes; then :
8843 cat >>confdefs.h <<_ACEOF
8844 #define HAVE_TERM_H 1
8845 _ACEOF
8846
8847 fi
8848
8849 done
8850
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8852 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8853 if test "${ac_cv_header_time+set}" = set; then :
8854 $as_echo_n "(cached) " >&6
8855 else
8856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8858 #include <sys/types.h>
8859 #include <sys/time.h>
8860 #include <time.h>
8861
8862 int
8863 main ()
8864 {
8865 if ((struct tm *) 0)
8866 return 0;
8867 ;
8868 return 0;
8869 }
8870 _ACEOF
8871 if ac_fn_c_try_compile "$LINENO"; then :
8872 ac_cv_header_time=yes
8873 else
8874 ac_cv_header_time=no
8875 fi
8876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8877 fi
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8879 $as_echo "$ac_cv_header_time" >&6; }
8880 if test $ac_cv_header_time = yes; then
8881
8882 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8883
8884 fi
8885
8886 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
8887
8888 "
8889 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8890 ac_have_decl=1
8891 else
8892 ac_have_decl=0
8893 fi
8894
8895 cat >>confdefs.h <<_ACEOF
8896 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8897 _ACEOF
8898
8899 if test $ac_cv_have_decl_sys_siglist != yes; then
8900 # For Tru64, at least:
8901 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
8902
8903 "
8904 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8905 ac_have_decl=1
8906 else
8907 ac_have_decl=0
8908 fi
8909
8910 cat >>confdefs.h <<_ACEOF
8911 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8912 _ACEOF
8913
8914 if test $ac_cv_have_decl___sys_siglist = yes; then
8915
8916 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8917
8918 fi
8919 fi
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8921 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8922 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8923 $as_echo_n "(cached) " >&6
8924 else
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8927 #include <sys/types.h>
8928 #include <sys/wait.h>
8929 #ifndef WEXITSTATUS
8930 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8931 #endif
8932 #ifndef WIFEXITED
8933 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8934 #endif
8935
8936 int
8937 main ()
8938 {
8939 int s;
8940 wait (&s);
8941 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8942 ;
8943 return 0;
8944 }
8945 _ACEOF
8946 if ac_fn_c_try_compile "$LINENO"; then :
8947 ac_cv_header_sys_wait_h=yes
8948 else
8949 ac_cv_header_sys_wait_h=no
8950 fi
8951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8952 fi
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8954 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8955 if test $ac_cv_header_sys_wait_h = yes; then
8956
8957 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8958
8959 fi
8960
8961
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8963 $as_echo_n "checking for speed_t... " >&6; }
8964 if test "${emacs_cv_speed_t+set}" = set; then :
8965 $as_echo_n "(cached) " >&6
8966 else
8967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8968 /* end confdefs.h. */
8969 #include <termios.h>
8970 int
8971 main ()
8972 {
8973 speed_t x = 1;
8974 ;
8975 return 0;
8976 }
8977 _ACEOF
8978 if ac_fn_c_try_compile "$LINENO"; then :
8979 emacs_cv_speed_t=yes
8980 else
8981 emacs_cv_speed_t=no
8982 fi
8983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8984 fi
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8986 $as_echo "$emacs_cv_speed_t" >&6; }
8987 if test $emacs_cv_speed_t = yes; then
8988
8989 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8990
8991 fi
8992
8993
8994
8995
8996 for ac_header in net/if.h
8997 do :
8998 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8999 #if HAVE_SYS_SOCKET_H
9000 #include <sys/socket.h>
9001 #endif
9002 "
9003 if test "x$ac_cv_header_net_if_h" = x""yes; then :
9004 cat >>confdefs.h <<_ACEOF
9005 #define HAVE_NET_IF_H 1
9006 _ACEOF
9007
9008 fi
9009
9010 done
9011
9012 for ac_header in ifaddrs.h
9013 do :
9014 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9015 #if HAVE_SYS_SOCKET_H
9016 #include <sys/socket.h>
9017 #endif
9018 "
9019 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
9020 cat >>confdefs.h <<_ACEOF
9021 #define HAVE_IFADDRS_H 1
9022 _ACEOF
9023
9024 fi
9025
9026 done
9027
9028 for ac_header in net/if_dl.h
9029 do :
9030 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9031 #if HAVE_SYS_SOCKET_H
9032 #include <sys/socket.h>
9033 #endif
9034 "
9035 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
9036 cat >>confdefs.h <<_ACEOF
9037 #define HAVE_NET_IF_DL_H 1
9038 _ACEOF
9039
9040 fi
9041
9042 done
9043
9044
9045 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9046 #if HAVE_SYS_SOCKET_H
9047 #include <sys/socket.h>
9048 #endif
9049 #if HAVE_NET_IF_H
9050 #include <net/if.h>
9051 #endif
9052 "
9053 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
9054
9055 cat >>confdefs.h <<_ACEOF
9056 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9057 _ACEOF
9058
9059
9060 fi
9061 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9062 #if HAVE_SYS_SOCKET_H
9063 #include <sys/socket.h>
9064 #endif
9065 #if HAVE_NET_IF_H
9066 #include <net/if.h>
9067 #endif
9068 "
9069 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
9070
9071 cat >>confdefs.h <<_ACEOF
9072 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9073 _ACEOF
9074
9075
9076 fi
9077 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9078 #if HAVE_SYS_SOCKET_H
9079 #include <sys/socket.h>
9080 #endif
9081 #if HAVE_NET_IF_H
9082 #include <net/if.h>
9083 #endif
9084 "
9085 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9086
9087 cat >>confdefs.h <<_ACEOF
9088 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9089 _ACEOF
9090
9091
9092 fi
9093 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9094 #if HAVE_SYS_SOCKET_H
9095 #include <sys/socket.h>
9096 #endif
9097 #if HAVE_NET_IF_H
9098 #include <net/if.h>
9099 #endif
9100 "
9101 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9102
9103 cat >>confdefs.h <<_ACEOF
9104 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9105 _ACEOF
9106
9107
9108 fi
9109 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9110 #if HAVE_SYS_SOCKET_H
9111 #include <sys/socket.h>
9112 #endif
9113 #if HAVE_NET_IF_H
9114 #include <net/if.h>
9115 #endif
9116 "
9117 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9118
9119 cat >>confdefs.h <<_ACEOF
9120 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9121 _ACEOF
9122
9123
9124 fi
9125 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9126 #if HAVE_SYS_SOCKET_H
9127 #include <sys/socket.h>
9128 #endif
9129 #if HAVE_NET_IF_H
9130 #include <net/if.h>
9131 #endif
9132 "
9133 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9134
9135 cat >>confdefs.h <<_ACEOF
9136 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9137 _ACEOF
9138
9139
9140 fi
9141
9142
9143
9144
9145 DEPFLAGS=
9146 MKDEPDIR=":"
9147 deps_frag=deps.mk
9148 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9150 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9151 HAVE_GNU_MAKE=no
9152 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9153 if test "x$testval" != x; then
9154 HAVE_GNU_MAKE=yes
9155 else
9156 ac_enable_autodepend=no
9157 fi
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9159 $as_echo "$HAVE_GNU_MAKE" >&6; }
9160 if test $HAVE_GNU_MAKE = yes; then
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9162 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9163 SAVE_CFLAGS="$CFLAGS"
9164 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9166 /* end confdefs.h. */
9167
9168 int
9169 main ()
9170 {
9171
9172 ;
9173 return 0;
9174 }
9175 _ACEOF
9176 if ac_fn_c_try_compile "$LINENO"; then :
9177
9178 else
9179 ac_enable_autodepend=no
9180 fi
9181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9182 CFLAGS="$SAVE_CFLAGS"
9183 test -f deps.d || ac_enable_autodepend=no
9184 rm -rf deps.d
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9186 $as_echo "$ac_enable_autodepend" >&6; }
9187 fi
9188 if test $ac_enable_autodepend = yes; then
9189 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9190 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9191 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9192 deps_frag=autodeps.mk
9193 fi
9194 fi
9195 deps_frag=$srcdir/src/$deps_frag
9196
9197
9198
9199
9200
9201 lisp_frag=$srcdir/src/lisp.mk
9202
9203
9204
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9206 $as_echo_n "checking for long file names... " >&6; }
9207 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9208 $as_echo_n "(cached) " >&6
9209 else
9210 ac_cv_sys_long_file_names=yes
9211 # Test for long file names in all the places we know might matter:
9212 # . the current directory, where building will happen
9213 # $prefix/lib where we will be installing things
9214 # $exec_prefix/lib likewise
9215 # $TMPDIR if set, where it might want to write temporary files
9216 # /tmp where it might want to write temporary files
9217 # /var/tmp likewise
9218 # /usr/tmp likewise
9219 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9220 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9221 # in the usual case where exec_prefix is '${prefix}'.
9222 case $ac_dir in #(
9223 . | /* | ?:[\\/]*) ;; #(
9224 *) continue;;
9225 esac
9226 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9227 ac_xdir=$ac_dir/cf$$
9228 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9229 ac_tf1=$ac_xdir/conftest9012345
9230 ac_tf2=$ac_xdir/conftest9012346
9231 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9232 ac_cv_sys_long_file_names=no
9233 rm -f -r "$ac_xdir" 2>/dev/null
9234 test $ac_cv_sys_long_file_names = no && break
9235 done
9236 fi
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9238 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9239 if test $ac_cv_sys_long_file_names = yes; then
9240
9241 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9242
9243 fi
9244
9245
9246 #### Choose a window system.
9247
9248 ## We leave window_system equal to none if
9249 ## we end up building without one. Any new window system should
9250 ## set window_system to an appropriate value and add objects to
9251 ## window-system-specific substs.
9252
9253 window_system=none
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9255 $as_echo_n "checking for X... " >&6; }
9256
9257
9258 # Check whether --with-x was given.
9259 if test "${with_x+set}" = set; then :
9260 withval=$with_x;
9261 fi
9262
9263 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9264 if test "x$with_x" = xno; then
9265 # The user explicitly disabled X.
9266 have_x=disabled
9267 else
9268 case $x_includes,$x_libraries in #(
9269 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9270 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9271 $as_echo_n "(cached) " >&6
9272 else
9273 # One or both of the vars are not set, and there is no cached value.
9274 ac_x_includes=no ac_x_libraries=no
9275 rm -f -r conftest.dir
9276 if mkdir conftest.dir; then
9277 cd conftest.dir
9278 cat >Imakefile <<'_ACEOF'
9279 incroot:
9280 @echo incroot='${INCROOT}'
9281 usrlibdir:
9282 @echo usrlibdir='${USRLIBDIR}'
9283 libdir:
9284 @echo libdir='${LIBDIR}'
9285 _ACEOF
9286 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9287 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9288 for ac_var in incroot usrlibdir libdir; do
9289 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9290 done
9291 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9292 for ac_extension in a so sl dylib la dll; do
9293 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9294 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9295 ac_im_usrlibdir=$ac_im_libdir; break
9296 fi
9297 done
9298 # Screen out bogus values from the imake configuration. They are
9299 # bogus both because they are the default anyway, and because
9300 # using them would break gcc on systems where it needs fixed includes.
9301 case $ac_im_incroot in
9302 /usr/include) ac_x_includes= ;;
9303 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9304 esac
9305 case $ac_im_usrlibdir in
9306 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9307 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9308 esac
9309 fi
9310 cd ..
9311 rm -f -r conftest.dir
9312 fi
9313
9314 # Standard set of common directories for X headers.
9315 # Check X11 before X11Rn because it is often a symlink to the current release.
9316 ac_x_header_dirs='
9317 /usr/X11/include
9318 /usr/X11R7/include
9319 /usr/X11R6/include
9320 /usr/X11R5/include
9321 /usr/X11R4/include
9322
9323 /usr/include/X11
9324 /usr/include/X11R7
9325 /usr/include/X11R6
9326 /usr/include/X11R5
9327 /usr/include/X11R4
9328
9329 /usr/local/X11/include
9330 /usr/local/X11R7/include
9331 /usr/local/X11R6/include
9332 /usr/local/X11R5/include
9333 /usr/local/X11R4/include
9334
9335 /usr/local/include/X11
9336 /usr/local/include/X11R7
9337 /usr/local/include/X11R6
9338 /usr/local/include/X11R5
9339 /usr/local/include/X11R4
9340
9341 /usr/X386/include
9342 /usr/x386/include
9343 /usr/XFree86/include/X11
9344
9345 /usr/include
9346 /usr/local/include
9347 /usr/unsupported/include
9348 /usr/athena/include
9349 /usr/local/x11r5/include
9350 /usr/lpp/Xamples/include
9351
9352 /usr/openwin/include
9353 /usr/openwin/share/include'
9354
9355 if test "$ac_x_includes" = no; then
9356 # Guess where to find include files, by looking for Xlib.h.
9357 # First, try using that file with no special directory specified.
9358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h. */
9360 #include <X11/Xlib.h>
9361 _ACEOF
9362 if ac_fn_c_try_cpp "$LINENO"; then :
9363 # We can compile using X headers with no special include directory.
9364 ac_x_includes=
9365 else
9366 for ac_dir in $ac_x_header_dirs; do
9367 if test -r "$ac_dir/X11/Xlib.h"; then
9368 ac_x_includes=$ac_dir
9369 break
9370 fi
9371 done
9372 fi
9373 rm -f conftest.err conftest.$ac_ext
9374 fi # $ac_x_includes = no
9375
9376 if test "$ac_x_libraries" = no; then
9377 # Check for the libraries.
9378 # See if we find them without any special options.
9379 # Don't add to $LIBS permanently.
9380 ac_save_LIBS=$LIBS
9381 LIBS="-lX11 $LIBS"
9382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9383 /* end confdefs.h. */
9384 #include <X11/Xlib.h>
9385 int
9386 main ()
9387 {
9388 XrmInitialize ()
9389 ;
9390 return 0;
9391 }
9392 _ACEOF
9393 if ac_fn_c_try_link "$LINENO"; then :
9394 LIBS=$ac_save_LIBS
9395 # We can link X programs with no special library path.
9396 ac_x_libraries=
9397 else
9398 LIBS=$ac_save_LIBS
9399 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9400 do
9401 # Don't even attempt the hair of trying to link an X program!
9402 for ac_extension in a so sl dylib la dll; do
9403 if test -r "$ac_dir/libX11.$ac_extension"; then
9404 ac_x_libraries=$ac_dir
9405 break 2
9406 fi
9407 done
9408 done
9409 fi
9410 rm -f core conftest.err conftest.$ac_objext \
9411 conftest$ac_exeext conftest.$ac_ext
9412 fi # $ac_x_libraries = no
9413
9414 case $ac_x_includes,$ac_x_libraries in #(
9415 no,* | *,no | *\'*)
9416 # Didn't find X, or a directory has "'" in its name.
9417 ac_cv_have_x="have_x=no";; #(
9418 *)
9419 # Record where we found X for the cache.
9420 ac_cv_have_x="have_x=yes\
9421 ac_x_includes='$ac_x_includes'\
9422 ac_x_libraries='$ac_x_libraries'"
9423 esac
9424 fi
9425 ;; #(
9426 *) have_x=yes;;
9427 esac
9428 eval "$ac_cv_have_x"
9429 fi # $with_x != no
9430
9431 if test "$have_x" != yes; then
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9433 $as_echo "$have_x" >&6; }
9434 no_x=yes
9435 else
9436 # If each of the values was on the command line, it overrides each guess.
9437 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9438 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9439 # Update the cache value to reflect the command line values.
9440 ac_cv_have_x="have_x=yes\
9441 ac_x_includes='$x_includes'\
9442 ac_x_libraries='$x_libraries'"
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9444 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9445 fi
9446
9447 if test "$no_x" != yes; then
9448 window_system=x11
9449 fi
9450
9451 LD_SWITCH_X_SITE_RPATH=
9452 if test "${x_libraries}" != NONE; then
9453 if test -n "${x_libraries}"; then
9454 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9455 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9456 fi
9457 x_default_search_path=""
9458 x_search_path=${x_libraries}
9459 if test -z "${x_search_path}"; then
9460 x_search_path=/usr/lib
9461 fi
9462 for x_library in `echo ${x_search_path}: | \
9463 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9464 x_search_path="\
9465 ${x_library}/X11/%L/%T/%N%C%S:\
9466 ${x_library}/X11/%l/%T/%N%C%S:\
9467 ${x_library}/X11/%T/%N%C%S:\
9468 ${x_library}/X11/%L/%T/%N%S:\
9469 ${x_library}/X11/%l/%T/%N%S:\
9470 ${x_library}/X11/%T/%N%S"
9471 if test x"${x_default_search_path}" = x; then
9472 x_default_search_path=${x_search_path}
9473 else
9474 x_default_search_path="${x_search_path}:${x_default_search_path}"
9475 fi
9476 done
9477 fi
9478
9479
9480 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9481 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9482 fi
9483
9484 if test x"${x_includes}" = x; then
9485 bitmapdir=/usr/include/X11/bitmaps
9486 else
9487 # accumulate include directories that have X11 bitmap subdirectories
9488 bmd_acc="dummyval"
9489 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9490 if test -d "${bmd}/X11/bitmaps"; then
9491 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9492 fi
9493 if test -d "${bmd}/bitmaps"; then
9494 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9495 fi
9496 done
9497 if test ${bmd_acc} != "dummyval"; then
9498 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9499 fi
9500 fi
9501
9502 HAVE_NS=no
9503 NS_IMPL_COCOA=no
9504 NS_IMPL_GNUSTEP=no
9505 tmp_CPPFLAGS="$CPPFLAGS"
9506 tmp_CFLAGS="$CFLAGS"
9507 CPPFLAGS="$CPPFLAGS -x objective-c"
9508 CFLAGS="$CFLAGS -x objective-c"
9509 TEMACS_LDFLAGS2="\${LDFLAGS}"
9510 GNU_OBJC_CFLAGS=
9511 if test "${with_ns}" != no; then
9512 if test "${opsys}" = darwin; then
9513 NS_IMPL_COCOA=yes
9514 ns_appdir=`pwd`/nextstep/Emacs.app
9515 ns_appbindir=${ns_appdir}/Contents/MacOS
9516 ns_appresdir=${ns_appdir}/Contents/Resources
9517 ns_appsrc=Cocoa/Emacs.base
9518 elif test -f $GNUSTEP_CONFIG_FILE; then
9519 NS_IMPL_GNUSTEP=yes
9520 ns_appdir=`pwd`/nextstep/Emacs.app
9521 ns_appbindir=${ns_appdir}
9522 ns_appresdir=${ns_appdir}/Resources
9523 ns_appsrc=GNUstep/Emacs.base
9524 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9525 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9526 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9527 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9528 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9529 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9530 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9531 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9532 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9533 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9534 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9535 LIB_STANDARD=
9536 START_FILES=
9537 TEMACS_LDFLAGS2=
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9539 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9540 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9541 $as_echo_n "(cached) " >&6
9542 else
9543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9544 /* end confdefs.h. */
9545 #include <GNUstepBase/GSConfig.h>
9546 int
9547 main ()
9548 {
9549 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9550 1;
9551 #else
9552 fail;
9553 #endif
9554 ;
9555 return 0;
9556 }
9557 _ACEOF
9558 if ac_fn_c_try_compile "$LINENO"; then :
9559 emacs_cv_objc_exceptions=yes
9560 else
9561 emacs_cv_objc_exceptions=no
9562 fi
9563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9564 fi
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9566 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9567 if test $emacs_cv_objc_exceptions = yes; then
9568
9569 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9570
9571 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9572 fi
9573 fi
9574
9575 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9576
9577 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9578 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9579 HAVE_NS=yes
9580 else
9581 as_fn_error "\`--with-ns' was specified, but the include
9582 files are missing or cannot be compiled." "$LINENO" 5
9583 fi
9584
9585
9586
9587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588 /* end confdefs.h. */
9589 #include <AppKit/AppKit.h>
9590 int
9591 main ()
9592 {
9593
9594 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
9595 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
9596 ; /* OK */
9597 #else
9598 #error "OSX 10.4 or newer required"
9599 #endif
9600 #endif
9601
9602 ;
9603 return 0;
9604 }
9605 _ACEOF
9606 if ac_fn_c_try_compile "$LINENO"; then :
9607 ns_osx_have_104=yes
9608 else
9609 ns_osx_have_104=no
9610 fi
9611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613 /* end confdefs.h. */
9614 #include <Foundation/NSObjCRuntime.h>
9615 int
9616 main ()
9617 {
9618 NSInteger i;
9619 ;
9620 return 0;
9621 }
9622 _ACEOF
9623 if ac_fn_c_try_compile "$LINENO"; then :
9624 ns_have_nsinteger=yes
9625 else
9626 ns_have_nsinteger=no
9627 fi
9628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9629 if test $ns_osx_have_104 = no; then
9630 as_fn_error "\`OSX 10.4 or newer is required'" "$LINENO" 5;
9631 fi
9632 if test $ns_have_nsinteger = yes; then
9633
9634 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9635
9636 fi
9637 fi
9638
9639
9640
9641 INSTALL_ARCH_INDEP_EXTRA=install-etc
9642 ns_self_contained=no
9643 NS_OBJ=
9644 NS_OBJC_OBJ=
9645 if test "${HAVE_NS}" = yes; then
9646 if test "$with_toolkit_scroll_bars" = "no"; then
9647 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9648 fi
9649
9650 window_system=nextstep
9651 # set up packaging dirs
9652 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9653 ns_self_contained=yes
9654 prefix=${ns_appresdir}
9655 exec_prefix=${ns_appbindir}
9656 libexecdir="\${ns_appbindir}/libexec"
9657 archlibdir="\${ns_appbindir}/libexec"
9658 docdir="\${ns_appresdir}/etc"
9659 etcdir="\${ns_appresdir}/etc"
9660 infodir="\${ns_appresdir}/info"
9661 mandir="\${ns_appresdir}/man"
9662 lispdir="\${ns_appresdir}/lisp"
9663 leimdir="\${ns_appresdir}/leim"
9664 INSTALL_ARCH_INDEP_EXTRA=
9665 fi
9666 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9667 fi
9668 CFLAGS="$tmp_CFLAGS"
9669 CPPFLAGS="$tmp_CPPFLAGS"
9670
9671
9672
9673
9674
9675
9676 HAVE_W32=no
9677 W32_OBJ=
9678 W32_LIBS=
9679 if test "${with_w32}" != no; then
9680 if test "${opsys}" != "cygwin"; then
9681 as_fn_error "Using w32 with an autotools build is only supported for Cygwin." "$LINENO" 5
9682 fi
9683 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9684 if test "x$ac_cv_header_windows_h" = x""yes; then :
9685 HAVE_W32=yes
9686 else
9687 as_fn_error "\`--with-w32' was specified, but windows.h
9688 cannot be found." "$LINENO" 5
9689 fi
9690
9691
9692
9693 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
9694
9695 W32_OBJ="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
9696 W32_OBJ="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
9697 W32_LIBS="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
9698 W32_LIBS="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
9699 fi
9700
9701
9702
9703 if test "${HAVE_W32}" = "yes"; then
9704 window_system=w32
9705 with_xft=no
9706 fi
9707
9708 ## $window_system is now set to the window system we will
9709 ## ultimately use.
9710
9711 term_header=
9712 HAVE_X_WINDOWS=no
9713 HAVE_X11=no
9714 USE_X_TOOLKIT=none
9715
9716 case "${window_system}" in
9717 x11 )
9718 HAVE_X_WINDOWS=yes
9719 HAVE_X11=yes
9720 term_header=xterm.h
9721 case "${with_x_toolkit}" in
9722 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9723 motif ) USE_X_TOOLKIT=MOTIF ;;
9724 gtk ) with_gtk=yes
9725 term_header=gtkutil.h
9726 USE_X_TOOLKIT=none ;;
9727 gtk2 ) with_gtk2=yes
9728 term_header=gtkutil.h
9729 USE_X_TOOLKIT=none ;;
9730 gtk3 ) with_gtk3=yes
9731 term_header=gtkutil.h
9732 USE_X_TOOLKIT=none ;;
9733 no ) USE_X_TOOLKIT=none ;;
9734 * ) USE_X_TOOLKIT=maybe ;;
9735 esac
9736 ;;
9737 nextstep )
9738 term_header=nsterm.h
9739 ;;
9740 w32 )
9741 term_header=w32term.h
9742 ;;
9743 esac
9744
9745 if test -n "${term_header}"; then
9746
9747 cat >>confdefs.h <<_ACEOF
9748 #define TERM_HEADER "${term_header}"
9749 _ACEOF
9750
9751 fi
9752
9753 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9754 # Extract the first word of "X", so it can be a program name with args.
9755 set dummy X; ac_word=$2
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9757 $as_echo_n "checking for $ac_word... " >&6; }
9758 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9759 $as_echo_n "(cached) " >&6
9760 else
9761 if test -n "$HAVE_XSERVER"; then
9762 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9763 else
9764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9765 for as_dir in $PATH
9766 do
9767 IFS=$as_save_IFS
9768 test -z "$as_dir" && as_dir=.
9769 for ac_exec_ext in '' $ac_executable_extensions; do
9770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9771 ac_cv_prog_HAVE_XSERVER="true"
9772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9773 break 2
9774 fi
9775 done
9776 done
9777 IFS=$as_save_IFS
9778
9779 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9780 fi
9781 fi
9782 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9783 if test -n "$HAVE_XSERVER"; then
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9785 $as_echo "$HAVE_XSERVER" >&6; }
9786 else
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9788 $as_echo "no" >&6; }
9789 fi
9790
9791
9792 if test "$HAVE_XSERVER" = true ||
9793 test -n "$DISPLAY" ||
9794 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9795 as_fn_error "You seem to be running X, but no X development libraries
9796 were found. You should install the relevant development files for X
9797 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9798 sure you have development files for image handling, i.e.
9799 tiff, gif, jpeg, png and xpm.
9800 If you are sure you want Emacs compiled without X window support, pass
9801 --without-x
9802 to configure." "$LINENO" 5
9803 fi
9804 fi
9805
9806 ### If we're using X11, we should use the X menu package.
9807 HAVE_MENUS=no
9808 case ${HAVE_X11} in
9809 yes ) HAVE_MENUS=yes ;;
9810 esac
9811
9812 # Does the opsystem file prohibit the use of the GNU malloc?
9813 # Assume not, until told otherwise.
9814 GNU_MALLOC=yes
9815
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9817 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9818 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9819 $as_echo_n "(cached) " >&6
9820 else
9821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9822 /* end confdefs.h. */
9823 #include <malloc.h>
9824 static void hook (void) {}
9825 int
9826 main ()
9827 {
9828 malloc_set_state (malloc_get_state ());
9829 __after_morecore_hook = hook;
9830 __malloc_initialize_hook = hook;
9831 ;
9832 return 0;
9833 }
9834 _ACEOF
9835 if ac_fn_c_try_link "$LINENO"; then :
9836 emacs_cv_var_doug_lea_malloc=yes
9837 else
9838 emacs_cv_var_doug_lea_malloc=no
9839 fi
9840 rm -f core conftest.err conftest.$ac_objext \
9841 conftest$ac_exeext conftest.$ac_ext
9842 fi
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9844 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9845 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
9846
9847
9848 system_malloc=no
9849 case "$opsys" in
9850 ## darwin ld insists on the use of malloc routines in the System framework.
9851 darwin|sol2-10) system_malloc=yes ;;
9852 esac
9853
9854 if test "${system_malloc}" = "yes"; then
9855
9856 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9857
9858 GNU_MALLOC=no
9859 GNU_MALLOC_reason="
9860 (The GNU allocators don't work with this system configuration.)"
9861 GMALLOC_OBJ=
9862 VMLIMIT_OBJ=
9863 else
9864 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9865 VMLIMIT_OBJ=vm-limit.o
9866 fi
9867
9868
9869
9870 if test "$doug_lea_malloc" = "yes" ; then
9871 if test "$GNU_MALLOC" = yes ; then
9872 GNU_MALLOC_reason="
9873 (Using Doug Lea's new malloc from the GNU C Library.)"
9874 fi
9875
9876 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9877
9878
9879 ## Use mmap directly for allocating larger buffers.
9880 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9881 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9882 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
9883 case "$opsys" in
9884 gnu*) REL_ALLOC=no ;;
9885 esac
9886 fi
9887
9888 if test x"${REL_ALLOC}" = x; then
9889 REL_ALLOC=${GNU_MALLOC}
9890 fi
9891
9892 use_mmap_for_buffers=no
9893 case "$opsys" in
9894 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9895 esac
9896
9897
9898
9899
9900
9901
9902
9903
9904 for ac_func in getpagesize
9905 do :
9906 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9907 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9908 cat >>confdefs.h <<_ACEOF
9909 #define HAVE_GETPAGESIZE 1
9910 _ACEOF
9911
9912 fi
9913 done
9914
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9916 $as_echo_n "checking for working mmap... " >&6; }
9917 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9918 $as_echo_n "(cached) " >&6
9919 else
9920 if test "$cross_compiling" = yes; then :
9921 ac_cv_func_mmap_fixed_mapped=no
9922 else
9923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9924 /* end confdefs.h. */
9925 $ac_includes_default
9926 /* malloc might have been renamed as rpl_malloc. */
9927 #undef malloc
9928
9929 /* Thanks to Mike Haertel and Jim Avera for this test.
9930 Here is a matrix of mmap possibilities:
9931 mmap private not fixed
9932 mmap private fixed at somewhere currently unmapped
9933 mmap private fixed at somewhere already mapped
9934 mmap shared not fixed
9935 mmap shared fixed at somewhere currently unmapped
9936 mmap shared fixed at somewhere already mapped
9937 For private mappings, we should verify that changes cannot be read()
9938 back from the file, nor mmap's back from the file at a different
9939 address. (There have been systems where private was not correctly
9940 implemented like the infamous i386 svr4.0, and systems where the
9941 VM page cache was not coherent with the file system buffer cache
9942 like early versions of FreeBSD and possibly contemporary NetBSD.)
9943 For shared mappings, we should conversely verify that changes get
9944 propagated back to all the places they're supposed to be.
9945
9946 Grep wants private fixed already mapped.
9947 The main things grep needs to know about mmap are:
9948 * does it exist and is it safe to write into the mmap'd area
9949 * how to use it (BSD variants) */
9950
9951 #include <fcntl.h>
9952 #include <sys/mman.h>
9953
9954 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9955 char *malloc ();
9956 #endif
9957
9958 /* This mess was copied from the GNU getpagesize.h. */
9959 #ifndef HAVE_GETPAGESIZE
9960 # ifdef _SC_PAGESIZE
9961 # define getpagesize() sysconf(_SC_PAGESIZE)
9962 # else /* no _SC_PAGESIZE */
9963 # ifdef HAVE_SYS_PARAM_H
9964 # include <sys/param.h>
9965 # ifdef EXEC_PAGESIZE
9966 # define getpagesize() EXEC_PAGESIZE
9967 # else /* no EXEC_PAGESIZE */
9968 # ifdef NBPG
9969 # define getpagesize() NBPG * CLSIZE
9970 # ifndef CLSIZE
9971 # define CLSIZE 1
9972 # endif /* no CLSIZE */
9973 # else /* no NBPG */
9974 # ifdef NBPC
9975 # define getpagesize() NBPC
9976 # else /* no NBPC */
9977 # ifdef PAGESIZE
9978 # define getpagesize() PAGESIZE
9979 # endif /* PAGESIZE */
9980 # endif /* no NBPC */
9981 # endif /* no NBPG */
9982 # endif /* no EXEC_PAGESIZE */
9983 # else /* no HAVE_SYS_PARAM_H */
9984 # define getpagesize() 8192 /* punt totally */
9985 # endif /* no HAVE_SYS_PARAM_H */
9986 # endif /* no _SC_PAGESIZE */
9987
9988 #endif /* no HAVE_GETPAGESIZE */
9989
9990 int
9991 main ()
9992 {
9993 char *data, *data2, *data3;
9994 const char *cdata2;
9995 int i, pagesize;
9996 int fd, fd2;
9997
9998 pagesize = getpagesize ();
9999
10000 /* First, make a file with some known garbage in it. */
10001 data = (char *) malloc (pagesize);
10002 if (!data)
10003 return 1;
10004 for (i = 0; i < pagesize; ++i)
10005 *(data + i) = rand ();
10006 umask (0);
10007 fd = creat ("conftest.mmap", 0600);
10008 if (fd < 0)
10009 return 2;
10010 if (write (fd, data, pagesize) != pagesize)
10011 return 3;
10012 close (fd);
10013
10014 /* Next, check that the tail of a page is zero-filled. File must have
10015 non-zero length, otherwise we risk SIGBUS for entire page. */
10016 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10017 if (fd2 < 0)
10018 return 4;
10019 cdata2 = "";
10020 if (write (fd2, cdata2, 1) != 1)
10021 return 5;
10022 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10023 if (data2 == MAP_FAILED)
10024 return 6;
10025 for (i = 0; i < pagesize; ++i)
10026 if (*(data2 + i))
10027 return 7;
10028 close (fd2);
10029 if (munmap (data2, pagesize))
10030 return 8;
10031
10032 /* Next, try to mmap the file at a fixed address which already has
10033 something else allocated at it. If we can, also make sure that
10034 we see the same garbage. */
10035 fd = open ("conftest.mmap", O_RDWR);
10036 if (fd < 0)
10037 return 9;
10038 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10039 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10040 return 10;
10041 for (i = 0; i < pagesize; ++i)
10042 if (*(data + i) != *(data2 + i))
10043 return 11;
10044
10045 /* Finally, make sure that changes to the mapped area do not
10046 percolate back to the file as seen by read(). (This is a bug on
10047 some variants of i386 svr4.0.) */
10048 for (i = 0; i < pagesize; ++i)
10049 *(data2 + i) = *(data2 + i) + 1;
10050 data3 = (char *) malloc (pagesize);
10051 if (!data3)
10052 return 12;
10053 if (read (fd, data3, pagesize) != pagesize)
10054 return 13;
10055 for (i = 0; i < pagesize; ++i)
10056 if (*(data + i) != *(data3 + i))
10057 return 14;
10058 close (fd);
10059 return 0;
10060 }
10061 _ACEOF
10062 if ac_fn_c_try_run "$LINENO"; then :
10063 ac_cv_func_mmap_fixed_mapped=yes
10064 else
10065 ac_cv_func_mmap_fixed_mapped=no
10066 fi
10067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10068 conftest.$ac_objext conftest.beam conftest.$ac_ext
10069 fi
10070
10071 fi
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10073 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10074 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10075
10076 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10077
10078 fi
10079 rm -f conftest.mmap conftest.txt
10080
10081 if test $use_mmap_for_buffers = yes; then
10082
10083 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10084
10085 REL_ALLOC=no
10086 fi
10087
10088 LIBS="$LIBS_SYSTEM $LIBS"
10089
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10091 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10092 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10093 $as_echo_n "(cached) " >&6
10094 else
10095 ac_check_lib_save_LIBS=$LIBS
10096 LIBS="-ldnet $LIBS"
10097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10098 /* end confdefs.h. */
10099
10100 /* Override any GCC internal prototype to avoid an error.
10101 Use char because int might match the return type of a GCC
10102 builtin and then its argument prototype would still apply. */
10103 #ifdef __cplusplus
10104 extern "C"
10105 #endif
10106 char dnet_ntoa ();
10107 int
10108 main ()
10109 {
10110 return dnet_ntoa ();
10111 ;
10112 return 0;
10113 }
10114 _ACEOF
10115 if ac_fn_c_try_link "$LINENO"; then :
10116 ac_cv_lib_dnet_dnet_ntoa=yes
10117 else
10118 ac_cv_lib_dnet_dnet_ntoa=no
10119 fi
10120 rm -f core conftest.err conftest.$ac_objext \
10121 conftest$ac_exeext conftest.$ac_ext
10122 LIBS=$ac_check_lib_save_LIBS
10123 fi
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10125 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10126 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10127 cat >>confdefs.h <<_ACEOF
10128 #define HAVE_LIBDNET 1
10129 _ACEOF
10130
10131 LIBS="-ldnet $LIBS"
10132
10133 fi
10134
10135
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10137 $as_echo_n "checking for main in -lXbsd... " >&6; }
10138 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10139 $as_echo_n "(cached) " >&6
10140 else
10141 ac_check_lib_save_LIBS=$LIBS
10142 LIBS="-lXbsd $LIBS"
10143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10144 /* end confdefs.h. */
10145
10146
10147 int
10148 main ()
10149 {
10150 return main ();
10151 ;
10152 return 0;
10153 }
10154 _ACEOF
10155 if ac_fn_c_try_link "$LINENO"; then :
10156 ac_cv_lib_Xbsd_main=yes
10157 else
10158 ac_cv_lib_Xbsd_main=no
10159 fi
10160 rm -f core conftest.err conftest.$ac_objext \
10161 conftest$ac_exeext conftest.$ac_ext
10162 LIBS=$ac_check_lib_save_LIBS
10163 fi
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10165 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10166 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10167 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10168 fi
10169
10170
10171 LIB_PTHREAD=
10172
10173
10174
10175 if test "$ac_cv_header_pthread_h"; then
10176 if test "$GMALLOC_OBJ" = gmalloc.o; then
10177 emacs_pthread_function=pthread_atfork
10178 else
10179 emacs_pthread_function=pthread_self
10180 fi
10181 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10183 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10184 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10185 $as_echo_n "(cached) " >&6
10186 else
10187 ac_check_lib_save_LIBS=$LIBS
10188 LIBS="-lpthread $LIBS"
10189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190 /* end confdefs.h. */
10191
10192 /* Override any GCC internal prototype to avoid an error.
10193 Use char because int might match the return type of a GCC
10194 builtin and then its argument prototype would still apply. */
10195 #ifdef __cplusplus
10196 extern "C"
10197 #endif
10198 char $emacs_pthread_function ();
10199 int
10200 main ()
10201 {
10202 return $emacs_pthread_function ();
10203 ;
10204 return 0;
10205 }
10206 _ACEOF
10207 if ac_fn_c_try_link "$LINENO"; then :
10208 eval "$as_ac_Lib=yes"
10209 else
10210 eval "$as_ac_Lib=no"
10211 fi
10212 rm -f core conftest.err conftest.$ac_objext \
10213 conftest$ac_exeext conftest.$ac_ext
10214 LIBS=$ac_check_lib_save_LIBS
10215 fi
10216 eval ac_res=\$$as_ac_Lib
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10218 $as_echo "$ac_res" >&6; }
10219 eval as_val=\$$as_ac_Lib
10220 if test "x$as_val" = x""yes; then :
10221 HAVE_PTHREAD=yes
10222 fi
10223
10224 fi
10225 if test "$HAVE_PTHREAD" = yes; then
10226 case "${canonical}" in
10227 *-hpux*) ;;
10228 *) LIB_PTHREAD="-lpthread"
10229 LIBS="$LIB_PTHREAD $LIBS" ;;
10230 esac
10231
10232 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10233
10234 fi
10235
10236
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10238 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10239 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10240 $as_echo_n "(cached) " >&6
10241 else
10242 ac_check_lib_save_LIBS=$LIBS
10243 LIBS="-lpthreads $LIBS"
10244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10245 /* end confdefs.h. */
10246
10247 /* Override any GCC internal prototype to avoid an error.
10248 Use char because int might match the return type of a GCC
10249 builtin and then its argument prototype would still apply. */
10250 #ifdef __cplusplus
10251 extern "C"
10252 #endif
10253 char cma_open ();
10254 int
10255 main ()
10256 {
10257 return cma_open ();
10258 ;
10259 return 0;
10260 }
10261 _ACEOF
10262 if ac_fn_c_try_link "$LINENO"; then :
10263 ac_cv_lib_pthreads_cma_open=yes
10264 else
10265 ac_cv_lib_pthreads_cma_open=no
10266 fi
10267 rm -f core conftest.err conftest.$ac_objext \
10268 conftest$ac_exeext conftest.$ac_ext
10269 LIBS=$ac_check_lib_save_LIBS
10270 fi
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10272 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10273 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10274 cat >>confdefs.h <<_ACEOF
10275 #define HAVE_LIBPTHREADS 1
10276 _ACEOF
10277
10278 LIBS="-lpthreads $LIBS"
10279
10280 fi
10281
10282
10283 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10284 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10285 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10286 ## added to LIBS in configure would never contain the pthreads part,
10287 ## but the value used in Makefiles might. FIXME?
10288 ##
10289 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10290 ## be harmless on older versions of X where it happens to exist.
10291 test "$opsys" = "aix4-2" && \
10292 test $ac_cv_lib_pthreads_cma_open = yes && \
10293 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10294
10295
10296 case ${host_os} in
10297 aix*)
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10299 $as_echo_n "checking for -bbigtoc option... " >&6; }
10300 if test "${gdb_cv_bigtoc+set}" = set; then :
10301 $as_echo_n "(cached) " >&6
10302 else
10303
10304 case $GCC in
10305 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10306 *) gdb_cv_bigtoc=-bbigtoc ;;
10307 esac
10308
10309 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10311 /* end confdefs.h. */
10312
10313 int
10314 main ()
10315 {
10316 int i;
10317 ;
10318 return 0;
10319 }
10320 _ACEOF
10321 if ac_fn_c_try_link "$LINENO"; then :
10322
10323 else
10324 gdb_cv_bigtoc=
10325 fi
10326 rm -f core conftest.err conftest.$ac_objext \
10327 conftest$ac_exeext conftest.$ac_ext
10328
10329 fi
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10331 $as_echo "$gdb_cv_bigtoc" >&6; }
10332 ;;
10333 esac
10334
10335 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10336 # used for the tests that follow. We set them back to REAL_CFLAGS and
10337 # REAL_CPPFLAGS later on.
10338
10339 REAL_CFLAGS="$CFLAGS"
10340 REAL_CPPFLAGS="$CPPFLAGS"
10341
10342 if test "${HAVE_X11}" = "yes"; then
10343 DEFS="$C_SWITCH_X_SITE $DEFS"
10344 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10345 LIBS="-lX11 $LIBS"
10346 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10347 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10348
10349 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10350 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10351 # but it's more convenient here to set LD_RUN_PATH since this
10352 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10353 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10354 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10355 export LD_RUN_PATH
10356 fi
10357
10358 if test "${opsys}" = "gnu-linux"; then
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10360 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10362 /* end confdefs.h. */
10363
10364 int
10365 main ()
10366 {
10367 XOpenDisplay ("foo");
10368 ;
10369 return 0;
10370 }
10371 _ACEOF
10372 if ac_fn_c_try_link "$LINENO"; then :
10373 xgnu_linux_first_failure=no
10374 else
10375 xgnu_linux_first_failure=yes
10376 fi
10377 rm -f core conftest.err conftest.$ac_objext \
10378 conftest$ac_exeext conftest.$ac_ext
10379 if test "${xgnu_linux_first_failure}" = "yes"; then
10380 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10381 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10382 OLD_CPPFLAGS="$CPPFLAGS"
10383 OLD_LIBS="$LIBS"
10384 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10385 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10386 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10387 LIBS="$LIBS -b i486-linuxaout"
10388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10389 /* end confdefs.h. */
10390
10391 int
10392 main ()
10393 {
10394 XOpenDisplay ("foo");
10395 ;
10396 return 0;
10397 }
10398 _ACEOF
10399 if ac_fn_c_try_link "$LINENO"; then :
10400 xgnu_linux_second_failure=no
10401 else
10402 xgnu_linux_second_failure=yes
10403 fi
10404 rm -f core conftest.err conftest.$ac_objext \
10405 conftest$ac_exeext conftest.$ac_ext
10406 if test "${xgnu_linux_second_failure}" = "yes"; then
10407 # If we get the same failure with -b, there is no use adding -b.
10408 # So take it out. This plays safe.
10409 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10410 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10411 CPPFLAGS="$OLD_CPPFLAGS"
10412 LIBS="$OLD_LIBS"
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10414 $as_echo "no" >&6; }
10415 else
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10417 $as_echo "yes" >&6; }
10418 fi
10419 else
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10421 $as_echo "no" >&6; }
10422 fi
10423 fi
10424
10425 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10426 # header files included from there.
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10428 $as_echo_n "checking for Xkb... " >&6; }
10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430 /* end confdefs.h. */
10431 #include <X11/Xlib.h>
10432 #include <X11/XKBlib.h>
10433 int
10434 main ()
10435 {
10436 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10437 ;
10438 return 0;
10439 }
10440 _ACEOF
10441 if ac_fn_c_try_link "$LINENO"; then :
10442 emacs_xkb=yes
10443 else
10444 emacs_xkb=no
10445 fi
10446 rm -f core conftest.err conftest.$ac_objext \
10447 conftest$ac_exeext conftest.$ac_ext
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10449 $as_echo "$emacs_xkb" >&6; }
10450 if test $emacs_xkb = yes; then
10451
10452 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10453
10454 fi
10455
10456 for ac_func in XrmSetDatabase XScreenResourceString \
10457 XScreenNumberOfScreen
10458 do :
10459 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10460 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10461 eval as_val=\$$as_ac_var
10462 if test "x$as_val" = x""yes; then :
10463 cat >>confdefs.h <<_ACEOF
10464 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10465 _ACEOF
10466
10467 fi
10468 done
10469
10470 fi
10471
10472 if test "${window_system}" = "x11"; then
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10474 $as_echo_n "checking X11 version 6... " >&6; }
10475 if test "${emacs_cv_x11_version_6+set}" = set; then :
10476 $as_echo_n "(cached) " >&6
10477 else
10478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10479 /* end confdefs.h. */
10480 #include <X11/Xlib.h>
10481 int
10482 main ()
10483 {
10484 #if XlibSpecificationRelease < 6
10485 fail;
10486 #endif
10487
10488 ;
10489 return 0;
10490 }
10491 _ACEOF
10492 if ac_fn_c_try_link "$LINENO"; then :
10493 emacs_cv_x11_version_6=yes
10494 else
10495 emacs_cv_x11_version_6=no
10496 fi
10497 rm -f core conftest.err conftest.$ac_objext \
10498 conftest$ac_exeext conftest.$ac_ext
10499 fi
10500
10501 if test $emacs_cv_x11_version_6 = yes; then
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10503 $as_echo "6 or newer" >&6; }
10504
10505 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10506
10507
10508 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10509
10510 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10511 ## XIM support.
10512 case "$opsys" in
10513 sol2-*) : ;;
10514 *)
10515 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10516
10517 ;;
10518 esac
10519 else
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10521 $as_echo "before 6" >&6; }
10522 fi
10523 fi
10524
10525
10526 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10527 HAVE_RSVG=no
10528 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10529 if test "${with_rsvg}" != "no"; then
10530 RSVG_REQUIRED=2.11.0
10531 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10532
10533
10534 succeeded=no
10535
10536 if test "$PKG_CONFIG" = "no" ; then
10537 :
10538 else
10539 PKG_CONFIG_MIN_VERSION=0.9.0
10540 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10542 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10543
10544 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
10545 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
10546 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
10547 edit_cflags="
10548 s,///*,/,g
10549 s/^/ /
10550 s/ -I/ $isystem/g
10551 s/^ //
10552 "
10553 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10554 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10556 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10557 succeeded=yes
10558 else
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10560 $as_echo "no" >&6; }
10561 RSVG_CFLAGS=""
10562 RSVG_LIBS=""
10563 ## If we have a custom action on failure, don't print errors, but
10564 ## do set a variable so people can do so. Do it in a subshell
10565 ## to capture any diagnostics in invoking pkg-config.
10566 RSVG_PKG_ERRORS=`($PKG_CONFIG --print-errors "$RSVG_MODULE") 2>&1`
10567
10568 fi
10569
10570
10571
10572 else
10573 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10574 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10575 fi
10576 fi
10577
10578 if test $succeeded = yes; then
10579 HAVE_RSVG=yes
10580 else
10581 :
10582 fi
10583
10584
10585
10586
10587 if test $HAVE_RSVG = yes; then
10588
10589 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10590
10591 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10592 LIBS="$RSVG_LIBS $LIBS"
10593 fi
10594 fi
10595 fi
10596
10597 HAVE_IMAGEMAGICK=no
10598 if test "${HAVE_X11}" = "yes"; then
10599 if test "${with_imagemagick}" != "no"; then
10600 ## 6.2.8 is the earliest version known to work, but earlier versions
10601 ## might work - let us know if you find one.
10602 ## 6.0.7 does not work. See bug#7955.
10603 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10604
10605 succeeded=no
10606
10607 if test "$PKG_CONFIG" = "no" ; then
10608 :
10609 else
10610 PKG_CONFIG_MIN_VERSION=0.9.0
10611 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10613 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10614
10615 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10616 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10617 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10618 edit_cflags="
10619 s,///*,/,g
10620 s/^/ /
10621 s/ -I/ $isystem/g
10622 s/^ //
10623 "
10624 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10625 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10627 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10628 succeeded=yes
10629 else
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10631 $as_echo "no" >&6; }
10632 IMAGEMAGICK_CFLAGS=""
10633 IMAGEMAGICK_LIBS=""
10634 ## If we have a custom action on failure, don't print errors, but
10635 ## do set a variable so people can do so. Do it in a subshell
10636 ## to capture any diagnostics in invoking pkg-config.
10637 IMAGEMAGICK_PKG_ERRORS=`($PKG_CONFIG --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
10638
10639 fi
10640
10641
10642
10643 else
10644 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10645 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10646 fi
10647 fi
10648
10649 if test $succeeded = yes; then
10650 HAVE_IMAGEMAGICK=yes
10651 else
10652 :
10653 fi
10654
10655
10656
10657
10658 if test $HAVE_IMAGEMAGICK = yes; then
10659
10660 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10661
10662 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10663 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10664 for ac_func in MagickExportImagePixels MagickMergeImageLayers
10665 do :
10666 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10667 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10668 eval as_val=\$$as_ac_var
10669 if test "x$as_val" = x""yes; then :
10670 cat >>confdefs.h <<_ACEOF
10671 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10672 _ACEOF
10673
10674 fi
10675 done
10676
10677 fi
10678 fi
10679 fi
10680
10681
10682 HAVE_GTK=no
10683 GTK_OBJ=
10684 check_gtk2=no
10685 gtk3_pkg_errors=
10686 if test "${with_gtk3}" = "yes" || test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10687 GLIB_REQUIRED=2.28
10688 GTK_REQUIRED=3.0
10689 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10690
10691
10692 succeeded=no
10693
10694 if test "$PKG_CONFIG" = "no" ; then
10695 pkg_check_gtk=no
10696 else
10697 PKG_CONFIG_MIN_VERSION=0.9.0
10698 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10700 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10701
10702 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10703 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10704 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10705 edit_cflags="
10706 s,///*,/,g
10707 s/^/ /
10708 s/ -I/ $isystem/g
10709 s/^ //
10710 "
10711 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10712 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10714 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10715 succeeded=yes
10716 else
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10718 $as_echo "no" >&6; }
10719 GTK_CFLAGS=""
10720 GTK_LIBS=""
10721 ## If we have a custom action on failure, don't print errors, but
10722 ## do set a variable so people can do so. Do it in a subshell
10723 ## to capture any diagnostics in invoking pkg-config.
10724 GTK_PKG_ERRORS=`($PKG_CONFIG --print-errors "$GTK_MODULES") 2>&1`
10725
10726 fi
10727
10728
10729
10730 else
10731 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10732 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10733 fi
10734 fi
10735
10736 if test $succeeded = yes; then
10737 pkg_check_gtk=yes
10738 else
10739 pkg_check_gtk=no
10740 fi
10741
10742 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
10743 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10744 fi
10745 if test "$pkg_check_gtk" = "yes"; then
10746
10747 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10748
10749 GTK_OBJ=emacsgtkfixed.o
10750 term_header=gtkutil.h
10751 USE_GTK_TOOLKIT="GTK3"
10752 else
10753 check_gtk2=yes
10754 gtk3_pkg_errors="$GTK_PKG_ERRORS "
10755 fi
10756 fi
10757
10758 if test "${with_gtk2}" = "yes" || test "$check_gtk2" = "yes"; then
10759 GLIB_REQUIRED=2.10
10760 GTK_REQUIRED=2.10
10761 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10762
10763
10764 succeeded=no
10765
10766 if test "$PKG_CONFIG" = "no" ; then
10767 pkg_check_gtk=no
10768 else
10769 PKG_CONFIG_MIN_VERSION=0.9.0
10770 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10772 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10773
10774 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10775 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10776 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10777 edit_cflags="
10778 s,///*,/,g
10779 s/^/ /
10780 s/ -I/ $isystem/g
10781 s/^ //
10782 "
10783 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10784 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10786 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10787 succeeded=yes
10788 else
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10790 $as_echo "no" >&6; }
10791 GTK_CFLAGS=""
10792 GTK_LIBS=""
10793 ## If we have a custom action on failure, don't print errors, but
10794 ## do set a variable so people can do so. Do it in a subshell
10795 ## to capture any diagnostics in invoking pkg-config.
10796 GTK_PKG_ERRORS=`($PKG_CONFIG --print-errors "$GTK_MODULES") 2>&1`
10797
10798 fi
10799
10800
10801
10802 else
10803 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10804 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10805 fi
10806 fi
10807
10808 if test $succeeded = yes; then
10809 pkg_check_gtk=yes
10810 else
10811 pkg_check_gtk=no
10812 fi
10813
10814 if test "$pkg_check_gtk" = "no" &&
10815 { test "$with_gtk" = yes || test "$with_gtk2" = "yes"; }
10816 then
10817 as_fn_error "$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
10818 fi
10819 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT="GTK2"
10820 fi
10821
10822 if test x"$pkg_check_gtk" = xyes; then
10823
10824
10825
10826 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10827 CFLAGS="$CFLAGS $GTK_CFLAGS"
10828 LIBS="$GTK_LIBS $LIBS"
10829 GTK_COMPILES=no
10830 for ac_func in gtk_main
10831 do :
10832 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10833 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10834 cat >>confdefs.h <<_ACEOF
10835 #define HAVE_GTK_MAIN 1
10836 _ACEOF
10837 GTK_COMPILES=yes
10838 fi
10839 done
10840
10841 if test "${GTK_COMPILES}" != "yes"; then
10842 if test "$USE_X_TOOLKIT" != "maybe"; then
10843 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10844 fi
10845 else
10846 HAVE_GTK=yes
10847
10848 $as_echo "#define USE_GTK 1" >>confdefs.h
10849
10850 GTK_OBJ="gtkutil.o $GTK_OBJ"
10851 USE_X_TOOLKIT=none
10852 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10853 :
10854 else
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10856 closing open displays. This is no problem if you just use
10857 one display, but if you use more than one and close one of them
10858 Emacs may crash." >&5
10859 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10860 closing open displays. This is no problem if you just use
10861 one display, but if you use more than one and close one of them
10862 Emacs may crash." >&2;}
10863 sleep 3
10864 fi
10865 fi
10866
10867 fi
10868
10869
10870
10871 if test "${HAVE_GTK}" = "yes"; then
10872
10873 if test "$with_toolkit_scroll_bars" != no; then
10874 with_toolkit_scroll_bars=yes
10875 fi
10876
10877 HAVE_GTK_FILE_SELECTION=no
10878 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10879 #include <gtk/gtk.h>
10880 "
10881 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10882 HAVE_GTK_FILE_SELECTION=yes
10883 else
10884 HAVE_GTK_FILE_SELECTION=no
10885 fi
10886
10887 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10888 for ac_func in gtk_file_selection_new
10889 do :
10890 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10891 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10892 cat >>confdefs.h <<_ACEOF
10893 #define HAVE_GTK_FILE_SELECTION_NEW 1
10894 _ACEOF
10895
10896 fi
10897 done
10898
10899 fi
10900
10901
10902 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10903 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10904 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10905 gtk_orientable_set_orientation \
10906 gtk_window_set_has_resize_grip
10907 do :
10908 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10909 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10910 eval as_val=\$$as_ac_var
10911 if test "x$as_val" = x""yes; then :
10912 cat >>confdefs.h <<_ACEOF
10913 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10914 _ACEOF
10915
10916 fi
10917 done
10918
10919
10920 term_header=gtkutil.h
10921 fi
10922
10923 HAVE_DBUS=no
10924 DBUS_OBJ=
10925 if test "${with_dbus}" = "yes"; then
10926
10927 succeeded=no
10928
10929 if test "$PKG_CONFIG" = "no" ; then
10930 HAVE_DBUS=no
10931 else
10932 PKG_CONFIG_MIN_VERSION=0.9.0
10933 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10935 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10936
10937 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
10938 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
10939 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
10940 edit_cflags="
10941 s,///*,/,g
10942 s/^/ /
10943 s/ -I/ $isystem/g
10944 s/^ //
10945 "
10946 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
10947 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
10949 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
10950 succeeded=yes
10951 else
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10953 $as_echo "no" >&6; }
10954 DBUS_CFLAGS=""
10955 DBUS_LIBS=""
10956 ## If we have a custom action on failure, don't print errors, but
10957 ## do set a variable so people can do so. Do it in a subshell
10958 ## to capture any diagnostics in invoking pkg-config.
10959 DBUS_PKG_ERRORS=`($PKG_CONFIG --print-errors "dbus-1 >= 1.0") 2>&1`
10960
10961 fi
10962
10963
10964
10965 else
10966 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10967 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10968 fi
10969 fi
10970
10971 if test $succeeded = yes; then
10972 HAVE_DBUS=yes
10973 else
10974 HAVE_DBUS=no
10975 fi
10976
10977 if test "$HAVE_DBUS" = yes; then
10978 LIBS="$LIBS $DBUS_LIBS"
10979
10980 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10981
10982 for ac_func in dbus_watch_get_unix_fd \
10983 dbus_type_is_valid \
10984 dbus_validate_bus_name \
10985 dbus_validate_path \
10986 dbus_validate_interface \
10987 dbus_validate_member
10988 do :
10989 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10990 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10991 eval as_val=\$$as_ac_var
10992 if test "x$as_val" = x""yes; then :
10993 cat >>confdefs.h <<_ACEOF
10994 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10995 _ACEOF
10996
10997 fi
10998 done
10999
11000 DBUS_OBJ=dbusbind.o
11001 fi
11002 fi
11003
11004
11005 HAVE_GSETTINGS=no
11006 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11007
11008 succeeded=no
11009
11010 if test "$PKG_CONFIG" = "no" ; then
11011 HAVE_GSETTINGS=no
11012 else
11013 PKG_CONFIG_MIN_VERSION=0.9.0
11014 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11016 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11017
11018 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
11019 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
11020 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
11021 edit_cflags="
11022 s,///*,/,g
11023 s/^/ /
11024 s/ -I/ $isystem/g
11025 s/^ //
11026 "
11027 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11028 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11030 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11031 succeeded=yes
11032 else
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11034 $as_echo "no" >&6; }
11035 GSETTINGS_CFLAGS=""
11036 GSETTINGS_LIBS=""
11037 ## If we have a custom action on failure, don't print errors, but
11038 ## do set a variable so people can do so. Do it in a subshell
11039 ## to capture any diagnostics in invoking pkg-config.
11040 GSETTINGS_PKG_ERRORS=`($PKG_CONFIG --print-errors "gio-2.0 >= 2.26") 2>&1`
11041
11042 fi
11043
11044
11045
11046 else
11047 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11048 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11049 fi
11050 fi
11051
11052 if test $succeeded = yes; then
11053 HAVE_GSETTINGS=yes
11054 else
11055 HAVE_GSETTINGS=no
11056 fi
11057
11058 if test "$HAVE_GSETTINGS" = "yes"; then
11059
11060 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11061
11062 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11063 SETTINGS_LIBS="$GSETTINGS_LIBS"
11064 fi
11065 fi
11066
11067 HAVE_GCONF=no
11068 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11069
11070 succeeded=no
11071
11072 if test "$PKG_CONFIG" = "no" ; then
11073 HAVE_GCONF=no
11074 else
11075 PKG_CONFIG_MIN_VERSION=0.9.0
11076 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11078 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11079
11080 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
11081 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11082 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
11083 edit_cflags="
11084 s,///*,/,g
11085 s/^/ /
11086 s/ -I/ $isystem/g
11087 s/^ //
11088 "
11089 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11090 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11092 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11093 succeeded=yes
11094 else
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11096 $as_echo "no" >&6; }
11097 GCONF_CFLAGS=""
11098 GCONF_LIBS=""
11099 ## If we have a custom action on failure, don't print errors, but
11100 ## do set a variable so people can do so. Do it in a subshell
11101 ## to capture any diagnostics in invoking pkg-config.
11102 GCONF_PKG_ERRORS=`($PKG_CONFIG --print-errors "gconf-2.0 >= 2.13") 2>&1`
11103
11104 fi
11105
11106
11107
11108 else
11109 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11110 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11111 fi
11112 fi
11113
11114 if test $succeeded = yes; then
11115 HAVE_GCONF=yes
11116 else
11117 HAVE_GCONF=no
11118 fi
11119
11120 if test "$HAVE_GCONF" = yes; then
11121
11122 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11123
11124 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11125 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
11126 fi
11127 fi
11128
11129 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
11130
11131 succeeded=no
11132
11133 if test "$PKG_CONFIG" = "no" ; then
11134 HAVE_GOBJECT=no
11135 else
11136 PKG_CONFIG_MIN_VERSION=0.9.0
11137 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11139 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11140
11141 if $PKG_CONFIG --exists "gobject-2.0 >= 2.0" 2>&5 &&
11142 GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11143 GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 >= 2.0" 2>&5`; then
11144 edit_cflags="
11145 s,///*,/,g
11146 s/^/ /
11147 s/ -I/ $isystem/g
11148 s/^ //
11149 "
11150 GOBJECT_CFLAGS=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11151 GOBJECT_LIBS=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11153 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11154 succeeded=yes
11155 else
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11157 $as_echo "no" >&6; }
11158 GOBJECT_CFLAGS=""
11159 GOBJECT_LIBS=""
11160 ## If we have a custom action on failure, don't print errors, but
11161 ## do set a variable so people can do so. Do it in a subshell
11162 ## to capture any diagnostics in invoking pkg-config.
11163 GOBJECT_PKG_ERRORS=`($PKG_CONFIG --print-errors "gobject-2.0 >= 2.0") 2>&1`
11164
11165 fi
11166
11167
11168
11169 else
11170 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11171 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11172 fi
11173 fi
11174
11175 if test $succeeded = yes; then
11176 HAVE_GOBJECT=yes
11177 else
11178 HAVE_GOBJECT=no
11179 fi
11180
11181 if test "$HAVE_GOBJECT" = "yes"; then
11182 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11183 SETTINGS_LIBS="$SETTINGS_LIBS $GOBJECT_LIBS"
11184 fi
11185 SAVE_CFLAGS="$CFLAGS"
11186 SAVE_LIBS="$LIBS"
11187 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
11188 LIBS="$SETTINGS_LIBS $LIBS"
11189 for ac_func in g_type_init
11190 do :
11191 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11192 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11193 cat >>confdefs.h <<_ACEOF
11194 #define HAVE_G_TYPE_INIT 1
11195 _ACEOF
11196
11197 fi
11198 done
11199
11200 CFLAGS="$SAVE_CFLAGS"
11201 LIBS="$SAVE_LIBS"
11202 fi
11203
11204
11205
11206
11207 HAVE_LIBSELINUX=no
11208 LIBSELINUX_LIBS=
11209 if test "${with_selinux}" = "yes"; then
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11211 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11212 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11213 $as_echo_n "(cached) " >&6
11214 else
11215 ac_check_lib_save_LIBS=$LIBS
11216 LIBS="-lselinux $LIBS"
11217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11218 /* end confdefs.h. */
11219
11220 /* Override any GCC internal prototype to avoid an error.
11221 Use char because int might match the return type of a GCC
11222 builtin and then its argument prototype would still apply. */
11223 #ifdef __cplusplus
11224 extern "C"
11225 #endif
11226 char lgetfilecon ();
11227 int
11228 main ()
11229 {
11230 return lgetfilecon ();
11231 ;
11232 return 0;
11233 }
11234 _ACEOF
11235 if ac_fn_c_try_link "$LINENO"; then :
11236 ac_cv_lib_selinux_lgetfilecon=yes
11237 else
11238 ac_cv_lib_selinux_lgetfilecon=no
11239 fi
11240 rm -f core conftest.err conftest.$ac_objext \
11241 conftest$ac_exeext conftest.$ac_ext
11242 LIBS=$ac_check_lib_save_LIBS
11243 fi
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11245 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11246 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11247 HAVE_LIBSELINUX=yes
11248 else
11249 HAVE_LIBSELINUX=no
11250 fi
11251
11252 if test "$HAVE_LIBSELINUX" = yes; then
11253
11254 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11255
11256 LIBSELINUX_LIBS=-lselinux
11257 fi
11258 fi
11259
11260
11261 HAVE_GNUTLS=no
11262 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11263 if test "${with_gnutls}" = "yes" ; then
11264
11265 succeeded=no
11266
11267 if test "$PKG_CONFIG" = "no" ; then
11268 HAVE_GNUTLS=no
11269 else
11270 PKG_CONFIG_MIN_VERSION=0.9.0
11271 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11273 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11274
11275 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
11276 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
11277 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
11278 edit_cflags="
11279 s,///*,/,g
11280 s/^/ /
11281 s/ -I/ $isystem/g
11282 s/^ //
11283 "
11284 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11285 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11287 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11288 succeeded=yes
11289 else
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11291 $as_echo "no" >&6; }
11292 LIBGNUTLS_CFLAGS=""
11293 LIBGNUTLS_LIBS=""
11294 ## If we have a custom action on failure, don't print errors, but
11295 ## do set a variable so people can do so. Do it in a subshell
11296 ## to capture any diagnostics in invoking pkg-config.
11297 LIBGNUTLS_PKG_ERRORS=`($PKG_CONFIG --print-errors "gnutls >= 2.6.6") 2>&1`
11298
11299 fi
11300
11301
11302
11303 else
11304 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11305 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11306 fi
11307 fi
11308
11309 if test $succeeded = yes; then
11310 HAVE_GNUTLS=yes
11311 else
11312 HAVE_GNUTLS=no
11313 fi
11314
11315 if test "${HAVE_GNUTLS}" = "yes"; then
11316
11317 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11318
11319 fi
11320
11321 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11322 LIBS="$LIBGNUTLS_LIBS $LIBS"
11323 for ac_func in gnutls_certificate_set_verify_function
11324 do :
11325 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11326 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11327 cat >>confdefs.h <<_ACEOF
11328 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11329 _ACEOF
11330 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11331 fi
11332 done
11333
11334
11335 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11336
11337 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11338
11339 fi
11340 fi
11341
11342
11343
11344
11345 HAVE_XAW3D=no
11346 LUCID_LIBW=
11347 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11348 if test "$with_xaw3d" != no; then
11349 if test "${emacs_cv_xaw3d+set}" = set; then :
11350 $as_echo_n "(cached) " >&6
11351 else
11352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11353 /* end confdefs.h. */
11354
11355 #include <X11/Intrinsic.h>
11356 #include <X11/Xaw3d/Simple.h>
11357 int
11358 main ()
11359 {
11360
11361 ;
11362 return 0;
11363 }
11364 _ACEOF
11365 if ac_fn_c_try_link "$LINENO"; then :
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11367 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11368 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11369 $as_echo_n "(cached) " >&6
11370 else
11371 ac_check_lib_save_LIBS=$LIBS
11372 LIBS="-lXaw3d $LIBS"
11373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11374 /* end confdefs.h. */
11375
11376 /* Override any GCC internal prototype to avoid an error.
11377 Use char because int might match the return type of a GCC
11378 builtin and then its argument prototype would still apply. */
11379 #ifdef __cplusplus
11380 extern "C"
11381 #endif
11382 char XawScrollbarSetThumb ();
11383 int
11384 main ()
11385 {
11386 return XawScrollbarSetThumb ();
11387 ;
11388 return 0;
11389 }
11390 _ACEOF
11391 if ac_fn_c_try_link "$LINENO"; then :
11392 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11393 else
11394 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11395 fi
11396 rm -f core conftest.err conftest.$ac_objext \
11397 conftest$ac_exeext conftest.$ac_ext
11398 LIBS=$ac_check_lib_save_LIBS
11399 fi
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11401 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11402 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11403 emacs_cv_xaw3d=yes
11404 else
11405 emacs_cv_xaw3d=no
11406 fi
11407
11408 else
11409 emacs_cv_xaw3d=no
11410 fi
11411 rm -f core conftest.err conftest.$ac_objext \
11412 conftest$ac_exeext conftest.$ac_ext
11413 fi
11414
11415 else
11416 emacs_cv_xaw3d=no
11417 fi
11418 if test $emacs_cv_xaw3d = yes; then
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11420 $as_echo_n "checking for xaw3d... " >&6; }
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11422 $as_echo "yes; using Lucid toolkit" >&6; }
11423 USE_X_TOOLKIT=LUCID
11424 HAVE_XAW3D=yes
11425 LUCID_LIBW=-lXaw3d
11426
11427 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11428
11429 else
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11431 $as_echo_n "checking for xaw3d... " >&6; }
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11433 $as_echo "no" >&6; }
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11435 $as_echo_n "checking for libXaw... " >&6; }
11436 if test "${emacs_cv_xaw+set}" = set; then :
11437 $as_echo_n "(cached) " >&6
11438 else
11439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11440 /* end confdefs.h. */
11441
11442 #include <X11/Intrinsic.h>
11443 #include <X11/Xaw/Simple.h>
11444 int
11445 main ()
11446 {
11447
11448 ;
11449 return 0;
11450 }
11451 _ACEOF
11452 if ac_fn_c_try_link "$LINENO"; then :
11453 emacs_cv_xaw=yes
11454 else
11455 emacs_cv_xaw=no
11456 fi
11457 rm -f core conftest.err conftest.$ac_objext \
11458 conftest$ac_exeext conftest.$ac_ext
11459 fi
11460
11461 if test $emacs_cv_xaw = yes; then
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11463 $as_echo "yes; using Lucid toolkit" >&6; }
11464 USE_X_TOOLKIT=LUCID
11465 LUCID_LIBW=-lXaw
11466 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11467 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11468 else
11469 as_fn_error "No X toolkit could be found.
11470 If you are sure you want Emacs compiled without an X toolkit, pass
11471 --with-x-toolkit=no
11472 to configure. Otherwise, install the development libraries for the toolkit
11473 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11474 fi
11475 fi
11476 fi
11477
11478 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11479
11480 LIBXTR6=
11481 if test "${USE_X_TOOLKIT}" != "none"; then
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11483 $as_echo_n "checking X11 toolkit version... " >&6; }
11484 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11485 $as_echo_n "(cached) " >&6
11486 else
11487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11488 /* end confdefs.h. */
11489 #include <X11/Intrinsic.h>
11490 int
11491 main ()
11492 {
11493 #if XtSpecificationRelease < 6
11494 fail;
11495 #endif
11496
11497 ;
11498 return 0;
11499 }
11500 _ACEOF
11501 if ac_fn_c_try_link "$LINENO"; then :
11502 emacs_cv_x11_toolkit_version_6=yes
11503 else
11504 emacs_cv_x11_toolkit_version_6=no
11505 fi
11506 rm -f core conftest.err conftest.$ac_objext \
11507 conftest$ac_exeext conftest.$ac_ext
11508 fi
11509
11510 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11511 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11513 $as_echo "6 or newer" >&6; }
11514
11515 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11516
11517 LIBXTR6="-lSM -lICE"
11518 case "$opsys" in
11519 ## Use libw.a along with X11R6 Xt.
11520 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11521 esac
11522 else
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11524 $as_echo "before 6" >&6; }
11525 fi
11526
11527 OLDLIBS="$LIBS"
11528 if test x$HAVE_X11XTR6 = xyes; then
11529 LIBS="-lXt -lSM -lICE $LIBS"
11530 else
11531 LIBS="-lXt $LIBS"
11532 fi
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11534 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11535 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11536 $as_echo_n "(cached) " >&6
11537 else
11538 ac_check_lib_save_LIBS=$LIBS
11539 LIBS="-lXmu $LIBS"
11540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11541 /* end confdefs.h. */
11542
11543 /* Override any GCC internal prototype to avoid an error.
11544 Use char because int might match the return type of a GCC
11545 builtin and then its argument prototype would still apply. */
11546 #ifdef __cplusplus
11547 extern "C"
11548 #endif
11549 char XmuConvertStandardSelection ();
11550 int
11551 main ()
11552 {
11553 return XmuConvertStandardSelection ();
11554 ;
11555 return 0;
11556 }
11557 _ACEOF
11558 if ac_fn_c_try_link "$LINENO"; then :
11559 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11560 else
11561 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11562 fi
11563 rm -f core conftest.err conftest.$ac_objext \
11564 conftest$ac_exeext conftest.$ac_ext
11565 LIBS=$ac_check_lib_save_LIBS
11566 fi
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11568 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11569 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11570 cat >>confdefs.h <<_ACEOF
11571 #define HAVE_LIBXMU 1
11572 _ACEOF
11573
11574 LIBS="-lXmu $LIBS"
11575
11576 fi
11577
11578 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11579 fi
11580
11581
11582 LIBXMU=-lXmu
11583 case $opsys in
11584 ## These systems don't supply Xmu.
11585 hpux* | aix4-2 )
11586 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11587 ;;
11588 esac
11589
11590
11591 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11592 if test "${HAVE_X11}" = "yes"; then
11593 if test "${USE_X_TOOLKIT}" != "none"; then
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11595 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11596 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11597 $as_echo_n "(cached) " >&6
11598 else
11599 ac_check_lib_save_LIBS=$LIBS
11600 LIBS="-lXext $LIBS"
11601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602 /* end confdefs.h. */
11603
11604 /* Override any GCC internal prototype to avoid an error.
11605 Use char because int might match the return type of a GCC
11606 builtin and then its argument prototype would still apply. */
11607 #ifdef __cplusplus
11608 extern "C"
11609 #endif
11610 char XShapeQueryExtension ();
11611 int
11612 main ()
11613 {
11614 return XShapeQueryExtension ();
11615 ;
11616 return 0;
11617 }
11618 _ACEOF
11619 if ac_fn_c_try_link "$LINENO"; then :
11620 ac_cv_lib_Xext_XShapeQueryExtension=yes
11621 else
11622 ac_cv_lib_Xext_XShapeQueryExtension=no
11623 fi
11624 rm -f core conftest.err conftest.$ac_objext \
11625 conftest$ac_exeext conftest.$ac_ext
11626 LIBS=$ac_check_lib_save_LIBS
11627 fi
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11629 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11630 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11631 cat >>confdefs.h <<_ACEOF
11632 #define HAVE_LIBXEXT 1
11633 _ACEOF
11634
11635 LIBS="-lXext $LIBS"
11636
11637 fi
11638
11639 fi
11640 fi
11641
11642 LIBXP=
11643 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11644 # OpenMotif may be installed in such a way on some GNU/Linux systems.
11645 if test -d /usr/include/openmotif; then
11646 CPPFLAGS="-I/usr/include/openmotif $CPPFLAGS"
11647 emacs_cv_openmotif=yes
11648 case "$canonical" in
11649 x86_64-*-linux-gnu* | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*)
11650 test -d /usr/lib64/openmotif && LDFLAGS="-L/usr/lib64/openmotif $LDFLAGS"
11651 ;;
11652 *)
11653 test -d /usr/lib/openmotif && LDFLAGS="-L/usr/lib/openmotif $LDFLAGS"
11654 esac
11655 else
11656 emacs_cv_openmotif=no
11657 fi
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
11659 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
11660 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11661 $as_echo_n "(cached) " >&6
11662 else
11663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11664 /* end confdefs.h. */
11665 #include <Xm/Xm.h>
11666 int
11667 main ()
11668 {
11669 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11670 int x = 5;
11671 #else
11672 Motif version prior to 2.1.
11673 #endif
11674 ;
11675 return 0;
11676 }
11677 _ACEOF
11678 if ac_fn_c_try_compile "$LINENO"; then :
11679 emacs_cv_motif_version_2_1=yes
11680 else
11681 emacs_cv_motif_version_2_1=no
11682 fi
11683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11684 fi
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11686 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11687 if test $emacs_cv_motif_version_2_1 = yes; then
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11689 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11690 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11691 $as_echo_n "(cached) " >&6
11692 else
11693 ac_check_lib_save_LIBS=$LIBS
11694 LIBS="-lXp $LIBS"
11695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11696 /* end confdefs.h. */
11697
11698 /* Override any GCC internal prototype to avoid an error.
11699 Use char because int might match the return type of a GCC
11700 builtin and then its argument prototype would still apply. */
11701 #ifdef __cplusplus
11702 extern "C"
11703 #endif
11704 char XpCreateContext ();
11705 int
11706 main ()
11707 {
11708 return XpCreateContext ();
11709 ;
11710 return 0;
11711 }
11712 _ACEOF
11713 if ac_fn_c_try_link "$LINENO"; then :
11714 ac_cv_lib_Xp_XpCreateContext=yes
11715 else
11716 ac_cv_lib_Xp_XpCreateContext=no
11717 fi
11718 rm -f core conftest.err conftest.$ac_objext \
11719 conftest$ac_exeext conftest.$ac_ext
11720 LIBS=$ac_check_lib_save_LIBS
11721 fi
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11723 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11724 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11725 LIBXP=-lXp
11726 fi
11727
11728 if test x$emacs_cv_openmotif = xyes; then
11729 REAL_CPPFLAGS="-I/usr/include/openmotif $REAL_CPPFLAGS"
11730 fi
11731 else
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11733 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11734 if test "${emacs_cv_lesstif+set}" = set; then :
11735 $as_echo_n "(cached) " >&6
11736 else
11737 # We put this in CFLAGS temporarily to precede other -I options
11738 # that might be in CFLAGS temporarily.
11739 # We put this in CPPFLAGS where it precedes the other -I options.
11740 OLD_CPPFLAGS=$CPPFLAGS
11741 OLD_CFLAGS=$CFLAGS
11742 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11743 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11745 /* end confdefs.h. */
11746 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11747 int
11748 main ()
11749 {
11750 int x = 5;
11751 ;
11752 return 0;
11753 }
11754 _ACEOF
11755 if ac_fn_c_try_compile "$LINENO"; then :
11756 emacs_cv_lesstif=yes
11757 else
11758 emacs_cv_lesstif=no
11759 fi
11760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11761 fi
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11763 $as_echo "$emacs_cv_lesstif" >&6; }
11764 if test $emacs_cv_lesstif = yes; then
11765 # Make sure this -I option remains in CPPFLAGS after it is set
11766 # back to REAL_CPPFLAGS.
11767 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11768 # have those other -I options anyway. Ultimately, having this
11769 # directory ultimately in CPPFLAGS will be enough.
11770 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11771 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11772 else
11773 CFLAGS=$OLD_CFLAGS
11774 CPPFLAGS=$OLD_CPPFLAGS
11775 fi
11776 fi
11777 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
11778 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
11779
11780 else
11781 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
11782 fi
11783
11784
11785 fi
11786
11787
11788 USE_TOOLKIT_SCROLL_BARS=no
11789 if test "${with_toolkit_scroll_bars}" != "no"; then
11790 if test "${USE_X_TOOLKIT}" != "none"; then
11791 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11792 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11793
11794 HAVE_XAW3D=no
11795 USE_TOOLKIT_SCROLL_BARS=yes
11796 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
11797 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11798
11799 USE_TOOLKIT_SCROLL_BARS=yes
11800 fi
11801 elif test "${HAVE_GTK}" = "yes"; then
11802 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11803
11804 USE_TOOLKIT_SCROLL_BARS=yes
11805 elif test "${HAVE_NS}" = "yes"; then
11806 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11807
11808 USE_TOOLKIT_SCROLL_BARS=yes
11809 elif test "${HAVE_W32}" = "yes"; then
11810 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11811
11812 USE_TOOLKIT_SCROLL_BARS=yes
11813 fi
11814 fi
11815
11816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11817 /* end confdefs.h. */
11818
11819 #include <X11/Xlib.h>
11820 #include <X11/Xresource.h>
11821 int
11822 main ()
11823 {
11824 XIMProc callback;
11825 ;
11826 return 0;
11827 }
11828 _ACEOF
11829 if ac_fn_c_try_compile "$LINENO"; then :
11830 HAVE_XIM=yes
11831
11832 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11833
11834 else
11835 HAVE_XIM=no
11836 fi
11837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11838
11839
11840 if test "${with_xim}" != "no"; then
11841
11842 $as_echo "#define USE_XIM 1" >>confdefs.h
11843
11844 fi
11845
11846
11847 if test "${HAVE_XIM}" != "no"; then
11848 late_CFLAGS=$CFLAGS
11849 if test "$GCC" = yes; then
11850 CFLAGS="$CFLAGS --pedantic-errors"
11851 fi
11852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11853 /* end confdefs.h. */
11854
11855 #include <X11/Xlib.h>
11856 #include <X11/Xresource.h>
11857 int
11858 main ()
11859 {
11860 Display *display;
11861 XrmDatabase db;
11862 char *res_name;
11863 char *res_class;
11864 XIMProc callback;
11865 XPointer *client_data;
11866 #ifndef __GNUC__
11867 /* If we're not using GCC, it's probably not XFree86, and this is
11868 probably right, but we can't use something like --pedantic-errors. */
11869 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11870 char*, XIMProc, XPointer*);
11871 #endif
11872 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11873 client_data);
11874 ;
11875 return 0;
11876 }
11877 _ACEOF
11878 if ac_fn_c_try_compile "$LINENO"; then :
11879 emacs_cv_arg6_star=yes
11880 fi
11881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11882 if test "$emacs_cv_arg6_star" = yes; then
11883 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11884
11885 else
11886 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11887
11888 fi
11889 CFLAGS=$late_CFLAGS
11890 fi
11891
11892 ### Start of font-backend (under any platform) section.
11893 # (nothing here yet -- this is a placeholder)
11894 ### End of font-backend (under any platform) section.
11895
11896 ### Start of font-backend (under X11) section.
11897 if test "${HAVE_X11}" = "yes"; then
11898
11899 succeeded=no
11900
11901 if test "$PKG_CONFIG" = "no" ; then
11902 HAVE_FC=no
11903 else
11904 PKG_CONFIG_MIN_VERSION=0.9.0
11905 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11907 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11908
11909 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
11910 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
11911 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
11912 edit_cflags="
11913 s,///*,/,g
11914 s/^/ /
11915 s/ -I/ $isystem/g
11916 s/^ //
11917 "
11918 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
11919 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
11921 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
11922 succeeded=yes
11923 else
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925 $as_echo "no" >&6; }
11926 FONTCONFIG_CFLAGS=""
11927 FONTCONFIG_LIBS=""
11928 ## If we have a custom action on failure, don't print errors, but
11929 ## do set a variable so people can do so. Do it in a subshell
11930 ## to capture any diagnostics in invoking pkg-config.
11931 FONTCONFIG_PKG_ERRORS=`($PKG_CONFIG --print-errors "fontconfig >= 2.2.0") 2>&1`
11932
11933 fi
11934
11935
11936
11937 else
11938 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11939 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11940 fi
11941 fi
11942
11943 if test $succeeded = yes; then
11944 HAVE_FC=yes
11945 else
11946 HAVE_FC=no
11947 fi
11948
11949
11950 ## Use -lXft if available, unless `--with-xft=no'.
11951 HAVE_XFT=maybe
11952 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11953 with_xft="no";
11954 fi
11955 if test "x${with_xft}" != "xno"; then
11956
11957
11958 succeeded=no
11959
11960 if test "$PKG_CONFIG" = "no" ; then
11961 HAVE_XFT=no
11962 else
11963 PKG_CONFIG_MIN_VERSION=0.9.0
11964 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11966 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11967
11968 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
11969 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
11970 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
11971 edit_cflags="
11972 s,///*,/,g
11973 s/^/ /
11974 s/ -I/ $isystem/g
11975 s/^ //
11976 "
11977 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
11978 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
11980 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
11981 succeeded=yes
11982 else
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11984 $as_echo "no" >&6; }
11985 XFT_CFLAGS=""
11986 XFT_LIBS=""
11987 ## If we have a custom action on failure, don't print errors, but
11988 ## do set a variable so people can do so. Do it in a subshell
11989 ## to capture any diagnostics in invoking pkg-config.
11990 XFT_PKG_ERRORS=`($PKG_CONFIG --print-errors "xft >= 0.13.0") 2>&1`
11991
11992 fi
11993
11994
11995
11996 else
11997 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11998 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11999 fi
12000 fi
12001
12002 if test $succeeded = yes; then
12003 :
12004 else
12005 HAVE_XFT=no
12006 fi
12007
12008 ## Because xftfont.c uses XRenderQueryExtension, we also
12009 ## need to link to -lXrender.
12010 HAVE_XRENDER=no
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12012 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12013 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12014 $as_echo_n "(cached) " >&6
12015 else
12016 ac_check_lib_save_LIBS=$LIBS
12017 LIBS="-lXrender $LIBS"
12018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019 /* end confdefs.h. */
12020
12021 /* Override any GCC internal prototype to avoid an error.
12022 Use char because int might match the return type of a GCC
12023 builtin and then its argument prototype would still apply. */
12024 #ifdef __cplusplus
12025 extern "C"
12026 #endif
12027 char XRenderQueryExtension ();
12028 int
12029 main ()
12030 {
12031 return XRenderQueryExtension ();
12032 ;
12033 return 0;
12034 }
12035 _ACEOF
12036 if ac_fn_c_try_link "$LINENO"; then :
12037 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12038 else
12039 ac_cv_lib_Xrender_XRenderQueryExtension=no
12040 fi
12041 rm -f core conftest.err conftest.$ac_objext \
12042 conftest$ac_exeext conftest.$ac_ext
12043 LIBS=$ac_check_lib_save_LIBS
12044 fi
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12046 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12047 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12048 HAVE_XRENDER=yes
12049 fi
12050
12051 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12052 OLD_CPPFLAGS="$CPPFLAGS"
12053 OLD_CFLAGS="$CFLAGS"
12054 OLD_LIBS="$LIBS"
12055 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12056 CFLAGS="$CFLAGS $XFT_CFLAGS"
12057 XFT_LIBS="-lXrender $XFT_LIBS"
12058 LIBS="$XFT_LIBS $LIBS"
12059 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12060 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12062 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12063 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12064 $as_echo_n "(cached) " >&6
12065 else
12066 ac_check_lib_save_LIBS=$LIBS
12067 LIBS="-lXft $XFT_LIBS $LIBS"
12068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12069 /* end confdefs.h. */
12070
12071 /* Override any GCC internal prototype to avoid an error.
12072 Use char because int might match the return type of a GCC
12073 builtin and then its argument prototype would still apply. */
12074 #ifdef __cplusplus
12075 extern "C"
12076 #endif
12077 char XftFontOpen ();
12078 int
12079 main ()
12080 {
12081 return XftFontOpen ();
12082 ;
12083 return 0;
12084 }
12085 _ACEOF
12086 if ac_fn_c_try_link "$LINENO"; then :
12087 ac_cv_lib_Xft_XftFontOpen=yes
12088 else
12089 ac_cv_lib_Xft_XftFontOpen=no
12090 fi
12091 rm -f core conftest.err conftest.$ac_objext \
12092 conftest$ac_exeext conftest.$ac_ext
12093 LIBS=$ac_check_lib_save_LIBS
12094 fi
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12096 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12097 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12098 HAVE_XFT=yes
12099 fi
12100
12101 fi
12102
12103
12104
12105 if test "${HAVE_XFT}" = "yes"; then
12106
12107 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12108
12109
12110 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12111 else
12112 CPPFLAGS="$OLD_CPPFLAGS"
12113 CFLAGS="$OLD_CFLAGS"
12114 LIBS="$OLD_LIBS"
12115 fi # "${HAVE_XFT}" = "yes"
12116 fi # "$HAVE_XFT" != no
12117 fi # "x${with_xft}" != "xno"
12118
12119 ## We used to allow building with FreeType and without Xft.
12120 ## However, the ftx font backend driver is not in good shape.
12121 if test "$HAVE_XFT" != "yes"; then
12122 HAVE_XFT=no
12123 HAVE_FREETYPE=no
12124 else
12125
12126 succeeded=no
12127
12128 if test "$PKG_CONFIG" = "no" ; then
12129 HAVE_FREETYPE=no
12130 else
12131 PKG_CONFIG_MIN_VERSION=0.9.0
12132 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12134 $as_echo_n "checking for freetype2... " >&6; }
12135
12136 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
12137 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
12138 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
12139 edit_cflags="
12140 s,///*,/,g
12141 s/^/ /
12142 s/ -I/ $isystem/g
12143 s/^ //
12144 "
12145 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12146 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12148 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12149 succeeded=yes
12150 else
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12152 $as_echo "no" >&6; }
12153 FREETYPE_CFLAGS=""
12154 FREETYPE_LIBS=""
12155 ## If we have a custom action on failure, don't print errors, but
12156 ## do set a variable so people can do so. Do it in a subshell
12157 ## to capture any diagnostics in invoking pkg-config.
12158 FREETYPE_PKG_ERRORS=`($PKG_CONFIG --print-errors "freetype2") 2>&1`
12159
12160 fi
12161
12162
12163
12164 else
12165 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12166 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12167 fi
12168 fi
12169
12170 if test $succeeded = yes; then
12171 HAVE_FREETYPE=yes
12172 else
12173 HAVE_FREETYPE=no
12174 fi
12175
12176
12177 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12178 fi
12179
12180 HAVE_LIBOTF=no
12181 if test "${HAVE_FREETYPE}" = "yes"; then
12182
12183 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12184
12185 if test "${with_libotf}" != "no"; then
12186
12187 succeeded=no
12188
12189 if test "$PKG_CONFIG" = "no" ; then
12190 HAVE_LIBOTF=no
12191 else
12192 PKG_CONFIG_MIN_VERSION=0.9.0
12193 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12195 $as_echo_n "checking for libotf... " >&6; }
12196
12197 if $PKG_CONFIG --exists "libotf" 2>&5 &&
12198 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
12199 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf" 2>&5`; then
12200 edit_cflags="
12201 s,///*,/,g
12202 s/^/ /
12203 s/ -I/ $isystem/g
12204 s/^ //
12205 "
12206 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12207 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12209 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12210 succeeded=yes
12211 else
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12213 $as_echo "no" >&6; }
12214 LIBOTF_CFLAGS=""
12215 LIBOTF_LIBS=""
12216 ## If we have a custom action on failure, don't print errors, but
12217 ## do set a variable so people can do so. Do it in a subshell
12218 ## to capture any diagnostics in invoking pkg-config.
12219 LIBOTF_PKG_ERRORS=`($PKG_CONFIG --print-errors "libotf") 2>&1`
12220
12221 fi
12222
12223
12224
12225 else
12226 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12227 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12228 fi
12229 fi
12230
12231 if test $succeeded = yes; then
12232 HAVE_LIBOTF=yes
12233 else
12234 HAVE_LIBOTF=no
12235 fi
12236
12237 if test "$HAVE_LIBOTF" = "yes"; then
12238
12239 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12240
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12242 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12243 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12244 $as_echo_n "(cached) " >&6
12245 else
12246 ac_check_lib_save_LIBS=$LIBS
12247 LIBS="-lotf $LIBS"
12248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12249 /* end confdefs.h. */
12250
12251 /* Override any GCC internal prototype to avoid an error.
12252 Use char because int might match the return type of a GCC
12253 builtin and then its argument prototype would still apply. */
12254 #ifdef __cplusplus
12255 extern "C"
12256 #endif
12257 char OTF_get_variation_glyphs ();
12258 int
12259 main ()
12260 {
12261 return OTF_get_variation_glyphs ();
12262 ;
12263 return 0;
12264 }
12265 _ACEOF
12266 if ac_fn_c_try_link "$LINENO"; then :
12267 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12268 else
12269 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12270 fi
12271 rm -f core conftest.err conftest.$ac_objext \
12272 conftest$ac_exeext conftest.$ac_ext
12273 LIBS=$ac_check_lib_save_LIBS
12274 fi
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12276 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12277 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12278 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12279 else
12280 HAVE_OTF_GET_VARIATION_GLYPHS=no
12281 fi
12282
12283 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12284
12285 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12286
12287 fi
12288 fi
12289 fi
12290 fi
12291
12292 HAVE_M17N_FLT=no
12293 if test "${HAVE_LIBOTF}" = yes; then
12294 if test "${with_m17n_flt}" != "no"; then
12295
12296 succeeded=no
12297
12298 if test "$PKG_CONFIG" = "no" ; then
12299 HAVE_M17N_FLT=no
12300 else
12301 PKG_CONFIG_MIN_VERSION=0.9.0
12302 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12304 $as_echo_n "checking for m17n-flt... " >&6; }
12305
12306 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
12307 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
12308 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
12309 edit_cflags="
12310 s,///*,/,g
12311 s/^/ /
12312 s/ -I/ $isystem/g
12313 s/^ //
12314 "
12315 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12316 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12318 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12319 succeeded=yes
12320 else
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12322 $as_echo "no" >&6; }
12323 M17N_FLT_CFLAGS=""
12324 M17N_FLT_LIBS=""
12325 ## If we have a custom action on failure, don't print errors, but
12326 ## do set a variable so people can do so. Do it in a subshell
12327 ## to capture any diagnostics in invoking pkg-config.
12328 M17N_FLT_PKG_ERRORS=`($PKG_CONFIG --print-errors "m17n-flt") 2>&1`
12329
12330 fi
12331
12332
12333
12334 else
12335 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12336 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12337 fi
12338 fi
12339
12340 if test $succeeded = yes; then
12341 HAVE_M17N_FLT=yes
12342 else
12343 HAVE_M17N_FLT=no
12344 fi
12345
12346 if test "$HAVE_M17N_FLT" = "yes"; then
12347
12348 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12349
12350 fi
12351 fi
12352 fi
12353 else
12354 HAVE_XFT=no
12355 HAVE_FREETYPE=no
12356 HAVE_LIBOTF=no
12357 HAVE_M17N_FLT=no
12358 fi
12359
12360 ### End of font-backend (under X11) section.
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371 ### Use -lXpm if available, unless `--with-xpm=no'.
12372 HAVE_XPM=no
12373 LIBXPM=
12374
12375 if test "${HAVE_W32}" = "yes"; then
12376 if test "${with_xpm}" != "no"; then
12377 SAVE_CPPFLAGS="$CPPFLAGS"
12378 SAVE_LDFLAGS="$LDFLAGS"
12379 CPPFLAGS="$CPPFLAGS -I/usr/include/noX"
12380 LDFLAGS="$LDFLAGS -L/usr/lib/noX"
12381 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12382 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
12384 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
12385 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
12386 $as_echo_n "(cached) " >&6
12387 else
12388 ac_check_lib_save_LIBS=$LIBS
12389 LIBS="-lXpm $LIBS"
12390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12391 /* end confdefs.h. */
12392
12393 /* Override any GCC internal prototype to avoid an error.
12394 Use char because int might match the return type of a GCC
12395 builtin and then its argument prototype would still apply. */
12396 #ifdef __cplusplus
12397 extern "C"
12398 #endif
12399 char XpmReadFileToImage ();
12400 int
12401 main ()
12402 {
12403 return XpmReadFileToImage ();
12404 ;
12405 return 0;
12406 }
12407 _ACEOF
12408 if ac_fn_c_try_link "$LINENO"; then :
12409 ac_cv_lib_Xpm_XpmReadFileToImage=yes
12410 else
12411 ac_cv_lib_Xpm_XpmReadFileToImage=no
12412 fi
12413 rm -f core conftest.err conftest.$ac_objext \
12414 conftest$ac_exeext conftest.$ac_ext
12415 LIBS=$ac_check_lib_save_LIBS
12416 fi
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
12418 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
12419 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x""yes; then :
12420 HAVE_XPM=yes
12421 fi
12422
12423 fi
12424
12425
12426 if test "${HAVE_XPM}" = "yes"; then
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12428 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12430 /* end confdefs.h. */
12431 #include "X11/xpm.h"
12432 #ifndef XpmReturnAllocPixels
12433 no_return_alloc_pixels
12434 #endif
12435
12436 _ACEOF
12437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12438 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12439 HAVE_XPM=no
12440 else
12441 HAVE_XPM=yes
12442 fi
12443 rm -f conftest*
12444
12445
12446 if test "${HAVE_XPM}" = "yes"; then
12447 REAL_CPPFLAGS="$REAL_CPPFLAGS -I/usr/include/noX"
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12449 $as_echo "yes" >&6; }
12450 else
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12452 $as_echo "no" >&6; }
12453 CPPFLAGS="$SAVE_CPPFLAGS"
12454 LDFLAGS="$SAVE_LDFLAGS"
12455 fi
12456 fi
12457 fi
12458
12459 if test "${HAVE_XPM}" = "yes"; then
12460
12461 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12462
12463 LIBXPM=-lXpm
12464 fi
12465 fi
12466
12467 if test "${HAVE_X11}" = "yes"; then
12468 if test "${with_xpm}" != "no"; then
12469 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12470 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12472 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12473 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12474 $as_echo_n "(cached) " >&6
12475 else
12476 ac_check_lib_save_LIBS=$LIBS
12477 LIBS="-lXpm -lX11 $LIBS"
12478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12479 /* end confdefs.h. */
12480
12481 /* Override any GCC internal prototype to avoid an error.
12482 Use char because int might match the return type of a GCC
12483 builtin and then its argument prototype would still apply. */
12484 #ifdef __cplusplus
12485 extern "C"
12486 #endif
12487 char XpmReadFileToPixmap ();
12488 int
12489 main ()
12490 {
12491 return XpmReadFileToPixmap ();
12492 ;
12493 return 0;
12494 }
12495 _ACEOF
12496 if ac_fn_c_try_link "$LINENO"; then :
12497 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12498 else
12499 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12500 fi
12501 rm -f core conftest.err conftest.$ac_objext \
12502 conftest$ac_exeext conftest.$ac_ext
12503 LIBS=$ac_check_lib_save_LIBS
12504 fi
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12506 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12507 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12508 HAVE_XPM=yes
12509 fi
12510
12511 fi
12512
12513
12514 if test "${HAVE_XPM}" = "yes"; then
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12516 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12518 /* end confdefs.h. */
12519 #include "X11/xpm.h"
12520 #ifndef XpmReturnAllocPixels
12521 no_return_alloc_pixels
12522 #endif
12523
12524 _ACEOF
12525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12526 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12527 HAVE_XPM=no
12528 else
12529 HAVE_XPM=yes
12530 fi
12531 rm -f conftest*
12532
12533
12534 if test "${HAVE_XPM}" = "yes"; then
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12536 $as_echo "yes" >&6; }
12537 else
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12539 $as_echo "no" >&6; }
12540 fi
12541 fi
12542 fi
12543
12544 if test "${HAVE_XPM}" = "yes"; then
12545
12546 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12547
12548 LIBXPM=-lXpm
12549 fi
12550 fi
12551
12552
12553
12554 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12555 HAVE_JPEG=no
12556 LIBJPEG=
12557 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12558 if test "${with_jpeg}" != "no"; then
12559 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12560 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12562 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12563 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12564 $as_echo_n "(cached) " >&6
12565 else
12566 ac_check_lib_save_LIBS=$LIBS
12567 LIBS="-ljpeg $LIBS"
12568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h. */
12570
12571 /* Override any GCC internal prototype to avoid an error.
12572 Use char because int might match the return type of a GCC
12573 builtin and then its argument prototype would still apply. */
12574 #ifdef __cplusplus
12575 extern "C"
12576 #endif
12577 char jpeg_destroy_compress ();
12578 int
12579 main ()
12580 {
12581 return jpeg_destroy_compress ();
12582 ;
12583 return 0;
12584 }
12585 _ACEOF
12586 if ac_fn_c_try_link "$LINENO"; then :
12587 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12588 else
12589 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12590 fi
12591 rm -f core conftest.err conftest.$ac_objext \
12592 conftest$ac_exeext conftest.$ac_ext
12593 LIBS=$ac_check_lib_save_LIBS
12594 fi
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12596 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12597 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12598 HAVE_JPEG=yes
12599 fi
12600
12601 fi
12602
12603
12604 fi
12605
12606 if test "${HAVE_JPEG}" = "yes"; then
12607 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12608
12609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12610 /* end confdefs.h. */
12611 #include <jpeglib.h>
12612 version=JPEG_LIB_VERSION
12613
12614 _ACEOF
12615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12616 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12617 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12618
12619 else
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12621 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12622 HAVE_JPEG=no
12623 fi
12624 rm -f conftest*
12625
12626 fi
12627 if test "${HAVE_JPEG}" = "yes"; then
12628 LIBJPEG=-ljpeg
12629 fi
12630 fi
12631
12632
12633 ### Use -lpng if available, unless `--with-png=no'.
12634 HAVE_PNG=no
12635 LIBPNG=
12636 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12637 if test "${with_png}" != "no"; then
12638 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12639 # in /usr/include/libpng.
12640 for ac_header in png.h libpng/png.h
12641 do :
12642 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12643 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12644 eval as_val=\$$as_ac_Header
12645 if test "x$as_val" = x""yes; then :
12646 cat >>confdefs.h <<_ACEOF
12647 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12648 _ACEOF
12649 break
12650 fi
12651
12652 done
12653
12654 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12656 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12657 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12658 $as_echo_n "(cached) " >&6
12659 else
12660 ac_check_lib_save_LIBS=$LIBS
12661 LIBS="-lpng -lz -lm $LIBS"
12662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12663 /* end confdefs.h. */
12664
12665 /* Override any GCC internal prototype to avoid an error.
12666 Use char because int might match the return type of a GCC
12667 builtin and then its argument prototype would still apply. */
12668 #ifdef __cplusplus
12669 extern "C"
12670 #endif
12671 char png_get_channels ();
12672 int
12673 main ()
12674 {
12675 return png_get_channels ();
12676 ;
12677 return 0;
12678 }
12679 _ACEOF
12680 if ac_fn_c_try_link "$LINENO"; then :
12681 ac_cv_lib_png_png_get_channels=yes
12682 else
12683 ac_cv_lib_png_png_get_channels=no
12684 fi
12685 rm -f core conftest.err conftest.$ac_objext \
12686 conftest$ac_exeext conftest.$ac_ext
12687 LIBS=$ac_check_lib_save_LIBS
12688 fi
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12690 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12691 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12692 HAVE_PNG=yes
12693 fi
12694
12695 fi
12696 fi
12697
12698 if test "${HAVE_PNG}" = "yes"; then
12699
12700 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12701
12702 LIBPNG="-lpng -lz -lm"
12703
12704 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
12705 # include <libpng/png.h>
12706 #else
12707 # include <png.h>
12708 #endif
12709
12710 "
12711 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
12712
12713 else
12714
12715 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
12716
12717 fi
12718
12719 fi
12720 fi
12721
12722
12723 ### Use -ltiff if available, unless `--with-tiff=no'.
12724 HAVE_TIFF=no
12725 LIBTIFF=
12726 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12727 if test "${with_tiff}" != "no"; then
12728 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12729 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12730 tifflibs="-lz -lm"
12731 # At least one tiff package requires the jpeg library.
12732 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12734 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12735 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12736 $as_echo_n "(cached) " >&6
12737 else
12738 ac_check_lib_save_LIBS=$LIBS
12739 LIBS="-ltiff $tifflibs $LIBS"
12740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12741 /* end confdefs.h. */
12742
12743 /* Override any GCC internal prototype to avoid an error.
12744 Use char because int might match the return type of a GCC
12745 builtin and then its argument prototype would still apply. */
12746 #ifdef __cplusplus
12747 extern "C"
12748 #endif
12749 char TIFFGetVersion ();
12750 int
12751 main ()
12752 {
12753 return TIFFGetVersion ();
12754 ;
12755 return 0;
12756 }
12757 _ACEOF
12758 if ac_fn_c_try_link "$LINENO"; then :
12759 ac_cv_lib_tiff_TIFFGetVersion=yes
12760 else
12761 ac_cv_lib_tiff_TIFFGetVersion=no
12762 fi
12763 rm -f core conftest.err conftest.$ac_objext \
12764 conftest$ac_exeext conftest.$ac_ext
12765 LIBS=$ac_check_lib_save_LIBS
12766 fi
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12768 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12769 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12770 HAVE_TIFF=yes
12771 fi
12772
12773 fi
12774
12775
12776 fi
12777
12778 if test "${HAVE_TIFF}" = "yes"; then
12779
12780 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12781
12782 LIBTIFF=-ltiff
12783 fi
12784 fi
12785
12786
12787 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12788 HAVE_GIF=no
12789 LIBGIF=
12790 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
12791 || test "${HAVE_W32}" = "yes"; then
12792 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12793 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12794 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12795 # Earlier versions can crash Emacs.
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12797 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12798 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12799 $as_echo_n "(cached) " >&6
12800 else
12801 ac_check_lib_save_LIBS=$LIBS
12802 LIBS="-lgif $LIBS"
12803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12804 /* end confdefs.h. */
12805
12806 /* Override any GCC internal prototype to avoid an error.
12807 Use char because int might match the return type of a GCC
12808 builtin and then its argument prototype would still apply. */
12809 #ifdef __cplusplus
12810 extern "C"
12811 #endif
12812 char EGifPutExtensionLast ();
12813 int
12814 main ()
12815 {
12816 return EGifPutExtensionLast ();
12817 ;
12818 return 0;
12819 }
12820 _ACEOF
12821 if ac_fn_c_try_link "$LINENO"; then :
12822 ac_cv_lib_gif_EGifPutExtensionLast=yes
12823 else
12824 ac_cv_lib_gif_EGifPutExtensionLast=no
12825 fi
12826 rm -f core conftest.err conftest.$ac_objext \
12827 conftest$ac_exeext conftest.$ac_ext
12828 LIBS=$ac_check_lib_save_LIBS
12829 fi
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12831 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12832 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
12833 HAVE_GIF=yes
12834 else
12835 HAVE_GIF=maybe
12836 fi
12837
12838 fi
12839
12840
12841
12842 if test "$HAVE_GIF" = yes; then
12843 LIBGIF=-lgif
12844 elif test "$HAVE_GIF" = maybe; then
12845 # If gif_lib.h but no libgif, try libungif.
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12847 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12848 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12849 $as_echo_n "(cached) " >&6
12850 else
12851 ac_check_lib_save_LIBS=$LIBS
12852 LIBS="-lungif $LIBS"
12853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12854 /* end confdefs.h. */
12855
12856 /* Override any GCC internal prototype to avoid an error.
12857 Use char because int might match the return type of a GCC
12858 builtin and then its argument prototype would still apply. */
12859 #ifdef __cplusplus
12860 extern "C"
12861 #endif
12862 char EGifPutExtensionLast ();
12863 int
12864 main ()
12865 {
12866 return EGifPutExtensionLast ();
12867 ;
12868 return 0;
12869 }
12870 _ACEOF
12871 if ac_fn_c_try_link "$LINENO"; then :
12872 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12873 else
12874 ac_cv_lib_ungif_EGifPutExtensionLast=no
12875 fi
12876 rm -f core conftest.err conftest.$ac_objext \
12877 conftest$ac_exeext conftest.$ac_ext
12878 LIBS=$ac_check_lib_save_LIBS
12879 fi
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12881 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12882 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
12883 HAVE_GIF=yes
12884 else
12885 HAVE_GIF=no
12886 fi
12887
12888 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12889 fi
12890
12891 if test "${HAVE_GIF}" = "yes"; then
12892
12893 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12894
12895 fi
12896 fi
12897
12898
12899 if test "${HAVE_X11}" = "yes"; then
12900 MISSING=""
12901 WITH_NO=""
12902 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12903 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12904 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12905 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12906 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12907 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12908 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12909 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12910 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12911 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12912
12913 if test "X${MISSING}" != X; then
12914 as_fn_error "The following required libraries were not found:
12915 $MISSING
12916 Maybe some development libraries/packages are missing?
12917 If you don't want to link with them give
12918 $WITH_NO
12919 as options to configure" "$LINENO" 5
12920 fi
12921 fi
12922
12923 ### Use -lgpm if available, unless `--with-gpm=no'.
12924 HAVE_GPM=no
12925 LIBGPM=
12926 if test "${with_gpm}" != "no"; then
12927 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12928 if test "x$ac_cv_header_gpm_h" = x""yes; then :
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12930 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12931 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12932 $as_echo_n "(cached) " >&6
12933 else
12934 ac_check_lib_save_LIBS=$LIBS
12935 LIBS="-lgpm $LIBS"
12936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12937 /* end confdefs.h. */
12938
12939 /* Override any GCC internal prototype to avoid an error.
12940 Use char because int might match the return type of a GCC
12941 builtin and then its argument prototype would still apply. */
12942 #ifdef __cplusplus
12943 extern "C"
12944 #endif
12945 char Gpm_Open ();
12946 int
12947 main ()
12948 {
12949 return Gpm_Open ();
12950 ;
12951 return 0;
12952 }
12953 _ACEOF
12954 if ac_fn_c_try_link "$LINENO"; then :
12955 ac_cv_lib_gpm_Gpm_Open=yes
12956 else
12957 ac_cv_lib_gpm_Gpm_Open=no
12958 fi
12959 rm -f core conftest.err conftest.$ac_objext \
12960 conftest$ac_exeext conftest.$ac_ext
12961 LIBS=$ac_check_lib_save_LIBS
12962 fi
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12964 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12965 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
12966 HAVE_GPM=yes
12967 fi
12968
12969 fi
12970
12971
12972
12973 if test "${HAVE_GPM}" = "yes"; then
12974
12975 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12976
12977 LIBGPM=-lgpm
12978 fi
12979 fi
12980
12981
12982
12983
12984
12985
12986 GNUSTEP_CFLAGS=
12987 ### Use NeXTstep API to implement GUI.
12988 if test "${HAVE_NS}" = "yes"; then
12989
12990 $as_echo "#define HAVE_NS 1" >>confdefs.h
12991
12992 if test "${NS_IMPL_COCOA}" = "yes"; then
12993
12994 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12995
12996 fi
12997 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12998
12999 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13000
13001 # See also .m.o rule in Makefile.in */
13002 # FIXME: are all these flags really needed? Document here why. */
13003 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13004 ## Extra CFLAGS applied to src/*.m files.
13005 GNU_OBJC_CFLAGS="$GNU_OBJC_CFLAGS -fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
13006 fi
13007 # We also have mouse menus.
13008 HAVE_MENUS=yes
13009 OTHER_FILES=ns-app
13010 fi
13011
13012 if test "${HAVE_W32}" = "yes"; then
13013 HAVE_MENUS=yes
13014 fi
13015
13016 ### Use session management (-lSM -lICE) if available
13017 HAVE_X_SM=no
13018 LIBXSM=
13019 if test "${HAVE_X11}" = "yes"; then
13020 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13021 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13023 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13024 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13025 $as_echo_n "(cached) " >&6
13026 else
13027 ac_check_lib_save_LIBS=$LIBS
13028 LIBS="-lSM -lICE $LIBS"
13029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13030 /* end confdefs.h. */
13031
13032 /* Override any GCC internal prototype to avoid an error.
13033 Use char because int might match the return type of a GCC
13034 builtin and then its argument prototype would still apply. */
13035 #ifdef __cplusplus
13036 extern "C"
13037 #endif
13038 char SmcOpenConnection ();
13039 int
13040 main ()
13041 {
13042 return SmcOpenConnection ();
13043 ;
13044 return 0;
13045 }
13046 _ACEOF
13047 if ac_fn_c_try_link "$LINENO"; then :
13048 ac_cv_lib_SM_SmcOpenConnection=yes
13049 else
13050 ac_cv_lib_SM_SmcOpenConnection=no
13051 fi
13052 rm -f core conftest.err conftest.$ac_objext \
13053 conftest$ac_exeext conftest.$ac_ext
13054 LIBS=$ac_check_lib_save_LIBS
13055 fi
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13057 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13058 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13059 HAVE_X_SM=yes
13060 fi
13061
13062 fi
13063
13064
13065
13066 if test "${HAVE_X_SM}" = "yes"; then
13067
13068 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13069
13070 LIBXSM="-lSM -lICE"
13071 case "$LIBS" in
13072 *-lSM*) ;;
13073 *) LIBS="$LIBXSM $LIBS" ;;
13074 esac
13075 fi
13076 fi
13077
13078
13079 ### Use libxml (-lxml2) if available
13080 HAVE_LIBXML2=no
13081 if test "${with_xml2}" != "no"; then
13082 ### I'm not sure what the version number should be, so I just guessed.
13083
13084 succeeded=no
13085
13086 if test "$PKG_CONFIG" = "no" ; then
13087 HAVE_LIBXML2=no
13088 else
13089 PKG_CONFIG_MIN_VERSION=0.9.0
13090 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13092 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13093
13094 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
13095 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
13096 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
13097 edit_cflags="
13098 s,///*,/,g
13099 s/^/ /
13100 s/ -I/ $isystem/g
13101 s/^ //
13102 "
13103 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
13104 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
13106 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
13107 succeeded=yes
13108 else
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13110 $as_echo "no" >&6; }
13111 LIBXML2_CFLAGS=""
13112 LIBXML2_LIBS=""
13113 ## If we have a custom action on failure, don't print errors, but
13114 ## do set a variable so people can do so. Do it in a subshell
13115 ## to capture any diagnostics in invoking pkg-config.
13116 LIBXML2_PKG_ERRORS=`($PKG_CONFIG --print-errors "libxml-2.0 > 2.6.17") 2>&1`
13117
13118 fi
13119
13120
13121
13122 else
13123 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13124 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13125 fi
13126 fi
13127
13128 if test $succeeded = yes; then
13129 HAVE_LIBXML2=yes
13130 else
13131 HAVE_LIBXML2=no
13132 fi
13133
13134 if test "${HAVE_LIBXML2}" = "yes"; then
13135 LIBS="$LIBXML2_LIBS $LIBS"
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13137 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13138 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13139 $as_echo_n "(cached) " >&6
13140 else
13141 ac_check_lib_save_LIBS=$LIBS
13142 LIBS="-lxml2 $LIBS"
13143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13144 /* end confdefs.h. */
13145
13146 /* Override any GCC internal prototype to avoid an error.
13147 Use char because int might match the return type of a GCC
13148 builtin and then its argument prototype would still apply. */
13149 #ifdef __cplusplus
13150 extern "C"
13151 #endif
13152 char htmlReadMemory ();
13153 int
13154 main ()
13155 {
13156 return htmlReadMemory ();
13157 ;
13158 return 0;
13159 }
13160 _ACEOF
13161 if ac_fn_c_try_link "$LINENO"; then :
13162 ac_cv_lib_xml2_htmlReadMemory=yes
13163 else
13164 ac_cv_lib_xml2_htmlReadMemory=no
13165 fi
13166 rm -f core conftest.err conftest.$ac_objext \
13167 conftest$ac_exeext conftest.$ac_ext
13168 LIBS=$ac_check_lib_save_LIBS
13169 fi
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13171 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13172 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13173 HAVE_LIBXML2=yes
13174 else
13175 HAVE_LIBXML2=no
13176 fi
13177
13178 if test "${HAVE_LIBXML2}" = "yes"; then
13179
13180 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13181
13182 else
13183 LIBXML2_LIBS=""
13184 LIBXML2_CFLAGS=""
13185 fi
13186 fi
13187 fi
13188
13189
13190
13191 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13193 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13194 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13195 $as_echo_n "(cached) " >&6
13196 else
13197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13198 /* end confdefs.h. */
13199 #include <netdb.h>
13200 int
13201 main ()
13202 {
13203 return h_errno;
13204 ;
13205 return 0;
13206 }
13207 _ACEOF
13208 if ac_fn_c_try_link "$LINENO"; then :
13209 emacs_cv_netdb_declares_h_errno=yes
13210 else
13211 emacs_cv_netdb_declares_h_errno=no
13212 fi
13213 rm -f core conftest.err conftest.$ac_objext \
13214 conftest$ac_exeext conftest.$ac_ext
13215 fi
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13217 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13218 if test $emacs_cv_netdb_declares_h_errno = yes; then
13219
13220 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13221
13222 fi
13223
13224 # sqrt and other floating-point functions such as fmod and frexp
13225 # are found in -lm on most systems.
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13227 $as_echo_n "checking for sqrt in -lm... " >&6; }
13228 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13229 $as_echo_n "(cached) " >&6
13230 else
13231 ac_check_lib_save_LIBS=$LIBS
13232 LIBS="-lm $LIBS"
13233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13234 /* end confdefs.h. */
13235
13236 /* Override any GCC internal prototype to avoid an error.
13237 Use char because int might match the return type of a GCC
13238 builtin and then its argument prototype would still apply. */
13239 #ifdef __cplusplus
13240 extern "C"
13241 #endif
13242 char sqrt ();
13243 int
13244 main ()
13245 {
13246 return sqrt ();
13247 ;
13248 return 0;
13249 }
13250 _ACEOF
13251 if ac_fn_c_try_link "$LINENO"; then :
13252 ac_cv_lib_m_sqrt=yes
13253 else
13254 ac_cv_lib_m_sqrt=no
13255 fi
13256 rm -f core conftest.err conftest.$ac_objext \
13257 conftest$ac_exeext conftest.$ac_ext
13258 LIBS=$ac_check_lib_save_LIBS
13259 fi
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13261 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13262 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13263 cat >>confdefs.h <<_ACEOF
13264 #define HAVE_LIBM 1
13265 _ACEOF
13266
13267 LIBS="-lm $LIBS"
13268
13269 fi
13270
13271
13272 # Check for mail-locking functions in a "mail" library. Probably this should
13273 # have the same check as for liblockfile below.
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13275 $as_echo_n "checking for maillock in -lmail... " >&6; }
13276 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13277 $as_echo_n "(cached) " >&6
13278 else
13279 ac_check_lib_save_LIBS=$LIBS
13280 LIBS="-lmail $LIBS"
13281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13282 /* end confdefs.h. */
13283
13284 /* Override any GCC internal prototype to avoid an error.
13285 Use char because int might match the return type of a GCC
13286 builtin and then its argument prototype would still apply. */
13287 #ifdef __cplusplus
13288 extern "C"
13289 #endif
13290 char maillock ();
13291 int
13292 main ()
13293 {
13294 return maillock ();
13295 ;
13296 return 0;
13297 }
13298 _ACEOF
13299 if ac_fn_c_try_link "$LINENO"; then :
13300 ac_cv_lib_mail_maillock=yes
13301 else
13302 ac_cv_lib_mail_maillock=no
13303 fi
13304 rm -f core conftest.err conftest.$ac_objext \
13305 conftest$ac_exeext conftest.$ac_ext
13306 LIBS=$ac_check_lib_save_LIBS
13307 fi
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13309 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13310 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13311 have_mail=yes
13312 else
13313 have_mail=no
13314 fi
13315
13316 if test $have_mail = yes; then
13317 LIBS_MAIL=-lmail
13318 LIBS="$LIBS_MAIL $LIBS"
13319
13320 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13321
13322 else
13323 LIBS_MAIL=
13324 fi
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13326 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13327 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13328 $as_echo_n "(cached) " >&6
13329 else
13330 ac_check_lib_save_LIBS=$LIBS
13331 LIBS="-llockfile $LIBS"
13332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13333 /* end confdefs.h. */
13334
13335 /* Override any GCC internal prototype to avoid an error.
13336 Use char because int might match the return type of a GCC
13337 builtin and then its argument prototype would still apply. */
13338 #ifdef __cplusplus
13339 extern "C"
13340 #endif
13341 char maillock ();
13342 int
13343 main ()
13344 {
13345 return maillock ();
13346 ;
13347 return 0;
13348 }
13349 _ACEOF
13350 if ac_fn_c_try_link "$LINENO"; then :
13351 ac_cv_lib_lockfile_maillock=yes
13352 else
13353 ac_cv_lib_lockfile_maillock=no
13354 fi
13355 rm -f core conftest.err conftest.$ac_objext \
13356 conftest$ac_exeext conftest.$ac_ext
13357 LIBS=$ac_check_lib_save_LIBS
13358 fi
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13360 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13361 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13362 have_lockfile=yes
13363 else
13364 have_lockfile=no
13365 fi
13366
13367 if test $have_lockfile = yes; then
13368 LIBS_MAIL=-llockfile
13369 LIBS="$LIBS_MAIL $LIBS"
13370
13371 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13372
13373 else
13374 # If we have the shared liblockfile, assume we must use it for mail
13375 # locking (e.g. Debian). If we couldn't link against liblockfile
13376 # (no liblockfile.a installed), ensure that we don't need to.
13377 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13378 set dummy liblockfile.so; ac_word=$2
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13380 $as_echo_n "checking for $ac_word... " >&6; }
13381 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13382 $as_echo_n "(cached) " >&6
13383 else
13384 if test -n "$liblockfile"; then
13385 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13386 else
13387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13388 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13389 for as_dir in $as_dummy
13390 do
13391 IFS=$as_save_IFS
13392 test -z "$as_dir" && as_dir=.
13393 for ac_exec_ext in '' $ac_executable_extensions; do
13394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13395 ac_cv_prog_liblockfile="yes"
13396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13397 break 2
13398 fi
13399 done
13400 done
13401 IFS=$as_save_IFS
13402
13403 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13404 fi
13405 fi
13406 liblockfile=$ac_cv_prog_liblockfile
13407 if test -n "$liblockfile"; then
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13409 $as_echo "$liblockfile" >&6; }
13410 else
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13412 $as_echo "no" >&6; }
13413 fi
13414
13415
13416 if test $ac_cv_prog_liblockfile = yes; then
13417 as_fn_error "Shared liblockfile found but can't link against it.
13418 This probably means that movemail could lose mail.
13419 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13420 fi
13421 fi
13422
13423
13424
13425
13426
13427 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13428 ## interlock access to the mail spool. The alternative is a lock file named
13429 ## /usr/spool/mail/$USER.lock.
13430 mail_lock=no
13431 case "$opsys" in
13432 aix4-2) mail_lock="lockf" ;;
13433
13434 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13435
13436 ## On GNU/Linux systems, both methods are used by various mail programs.
13437 ## I assume most people are using newer mailers that have heard of flock.
13438 ## Change this if you need to.
13439 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13440 ## configure gets the right answers, and that means *NOT* using flock.
13441 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13442 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13443 ## Debian maintainer hasn't provided a clean fix for Emacs.
13444 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13445 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13446 ## correct logic. -- fx
13447 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13448 ## liblockfile is a Free Software replacement for libmail, used on
13449 ## Debian systems and elsewhere. -rfr.
13450 gnu-*)
13451 mail_lock="flock"
13452 if test $have_mail = yes || test $have_lockfile = yes; then
13453 test $ac_cv_header_maillock_h = yes && mail_lock=no
13454 fi
13455 ;;
13456 esac
13457
13458 BLESSMAIL_TARGET=
13459 case "$mail_lock" in
13460 flock)
13461 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13462 ;;
13463
13464 lockf)
13465 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13466 ;;
13467
13468 *) BLESSMAIL_TARGET="need-blessmail" ;;
13469 esac
13470
13471
13472
13473 for ac_func in gethostname \
13474 getrusage get_current_dir_name \
13475 lrand48 \
13476 select getpagesize setlocale \
13477 utimes getrlimit setrlimit shutdown getaddrinfo \
13478 strsignal setitimer \
13479 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13480 gai_strerror mkstemp getline getdelim fsync sync \
13481 difftime posix_memalign \
13482 getpwent endpwent getgrent endgrent \
13483 touchlock \
13484 cfmakeraw cfsetspeed copysign __executable_start
13485 do :
13486 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13487 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13488 eval as_val=\$$as_ac_var
13489 if test "x$as_val" = x""yes; then :
13490 cat >>confdefs.h <<_ACEOF
13491 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13492 _ACEOF
13493
13494 fi
13495 done
13496
13497
13498 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
13499 ## has a broken `rint' in some library versions including math library
13500 ## version number A.09.05.
13501 ## You can fix the math library by installing patch number PHSS_4630.
13502 ## But we can fix it more reliably for Emacs by just not using rint.
13503 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
13504 case $opsys in
13505 hpux*) : ;;
13506 *) for ac_func in random rint
13507 do :
13508 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13509 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13510 eval as_val=\$$as_ac_var
13511 if test "x$as_val" = x""yes; then :
13512 cat >>confdefs.h <<_ACEOF
13513 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13514 _ACEOF
13515
13516 fi
13517 done
13518 ;;
13519 esac
13520
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13522 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13523 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13524 $as_echo_n "(cached) " >&6
13525 else
13526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13527 /* end confdefs.h. */
13528
13529 int
13530 main ()
13531 {
13532 __builtin_unwind_init ();
13533 ;
13534 return 0;
13535 }
13536 _ACEOF
13537 if ac_fn_c_try_link "$LINENO"; then :
13538 emacs_cv_func___builtin_unwind_init=yes
13539 else
13540 emacs_cv_func___builtin_unwind_init=no
13541 fi
13542 rm -f core conftest.err conftest.$ac_objext \
13543 conftest$ac_exeext conftest.$ac_ext
13544 fi
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13546 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13547 if test $emacs_cv_func___builtin_unwind_init = yes; then
13548
13549 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13550
13551 fi
13552
13553
13554
13555
13556
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13558 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13559 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13560 $as_echo_n "(cached) " >&6
13561 else
13562 while :; do
13563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13564 /* end confdefs.h. */
13565 #include <sys/types.h> /* for off_t */
13566 #include <stdio.h>
13567 int
13568 main ()
13569 {
13570 int (*fp) (FILE *, off_t, int) = fseeko;
13571 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13572 ;
13573 return 0;
13574 }
13575 _ACEOF
13576 if ac_fn_c_try_link "$LINENO"; then :
13577 ac_cv_sys_largefile_source=no; break
13578 fi
13579 rm -f core conftest.err conftest.$ac_objext \
13580 conftest$ac_exeext conftest.$ac_ext
13581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13582 /* end confdefs.h. */
13583 #define _LARGEFILE_SOURCE 1
13584 #include <sys/types.h> /* for off_t */
13585 #include <stdio.h>
13586 int
13587 main ()
13588 {
13589 int (*fp) (FILE *, off_t, int) = fseeko;
13590 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13591 ;
13592 return 0;
13593 }
13594 _ACEOF
13595 if ac_fn_c_try_link "$LINENO"; then :
13596 ac_cv_sys_largefile_source=1; break
13597 fi
13598 rm -f core conftest.err conftest.$ac_objext \
13599 conftest$ac_exeext conftest.$ac_ext
13600 ac_cv_sys_largefile_source=unknown
13601 break
13602 done
13603 fi
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13605 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13606 case $ac_cv_sys_largefile_source in #(
13607 no | unknown) ;;
13608 *)
13609 cat >>confdefs.h <<_ACEOF
13610 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13611 _ACEOF
13612 ;;
13613 esac
13614 rm -rf conftest*
13615
13616 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13617 # in glibc 2.1.3, but that breaks too many other things.
13618 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13619 if test $ac_cv_sys_largefile_source != unknown; then
13620
13621 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13622
13623 fi
13624
13625
13626 # UNIX98 PTYs.
13627 for ac_func in grantpt
13628 do :
13629 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
13630 if test "x$ac_cv_func_grantpt" = x""yes; then :
13631 cat >>confdefs.h <<_ACEOF
13632 #define HAVE_GRANTPT 1
13633 _ACEOF
13634
13635 fi
13636 done
13637
13638
13639 # PTY-related GNU extensions.
13640 for ac_func in getpt posix_openpt
13641 do :
13642 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13643 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13644 eval as_val=\$$as_ac_var
13645 if test "x$as_val" = x""yes; then :
13646 cat >>confdefs.h <<_ACEOF
13647 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13648 _ACEOF
13649
13650 fi
13651 done
13652
13653
13654 # Check this now, so that we will NOT find the above functions in ncurses.
13655 # That is because we have not set up to link ncurses in lib-src.
13656 # It's better to believe a function is not available
13657 # than to expect to find it in ncurses.
13658 # Also we need tputs and friends to be able to build at all.
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13660 $as_echo_n "checking for library containing tputs... " >&6; }
13661 # Run a test program that contains a call to tputs, a call that is
13662 # never executed. This tests whether a pre-'main' dynamic linker
13663 # works with the library. It's too much trouble to actually call
13664 # tputs in the test program, due to portability hassles. When
13665 # cross-compiling, assume the test program will run if it links.
13666
13667 # Maybe curses should be tried earlier?
13668 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13669 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
13670 OLIBS=$LIBS
13671 if test -z "$tputs_library"; then
13672 LIBS_TERMCAP=
13673 msg='none required'
13674 else
13675 LIBS_TERMCAP=-l$tputs_library
13676 msg=$LIBS_TERMCAP
13677 LIBS="$LIBS_TERMCAP $LIBS"
13678 fi
13679 if test "$cross_compiling" = yes; then :
13680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h. */
13682
13683 extern void tputs (const char *, int, int (*)(int));
13684 int main (int argc, char **argv)
13685 {
13686 if (argc == 10000)
13687 tputs (argv[0], 0, 0);
13688 return 0;
13689 }
13690
13691 _ACEOF
13692 if ac_fn_c_try_link "$LINENO"; then :
13693
13694 else
13695 msg=no
13696 fi
13697 rm -f core conftest.err conftest.$ac_objext \
13698 conftest$ac_exeext conftest.$ac_ext
13699 else
13700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13701 /* end confdefs.h. */
13702
13703 extern void tputs (const char *, int, int (*)(int));
13704 int main (int argc, char **argv)
13705 {
13706 if (argc == 10000)
13707 tputs (argv[0], 0, 0);
13708 return 0;
13709 }
13710
13711 _ACEOF
13712 if ac_fn_c_try_run "$LINENO"; then :
13713
13714 else
13715 msg=no
13716 fi
13717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13718 conftest.$ac_objext conftest.beam conftest.$ac_ext
13719 fi
13720
13721 LIBS=$OLIBS
13722 if test "X$msg" != Xno; then
13723 break
13724 fi
13725 done
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13727 $as_echo "$msg" >&6; }
13728 if test "X$msg" = Xno; then
13729 as_fn_error "The required function \`tputs' was not found in any library.
13730 The following libraries were tried (in order):
13731 libtinfo, libncurses, libterminfo, libtermcap, libcurses
13732 Please try installing whichever of these libraries is most appropriate
13733 for your system, together with its header files.
13734 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
13735 fi
13736
13737 ## Use termcap instead of terminfo?
13738 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
13739 TERMINFO=yes
13740 ## FIXME? In the cases below where we unconditionally set
13741 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
13742 ## if that was found above to have tputs.
13743 ## Should we use the gnu* logic everywhere?
13744 case "$opsys" in
13745 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13746 ## The ncurses library has been moved out of the System framework in
13747 ## Mac OS X 10.2. So if configure detects it, set the command-line
13748 ## option to use it.
13749 darwin) LIBS_TERMCAP="-lncurses" ;;
13750
13751 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
13752
13753 freebsd)
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13755 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13756 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13757 $as_echo_n "(cached) " >&6
13758 else
13759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13760 /* end confdefs.h. */
13761 #include <osreldate.h>
13762 int
13763 main ()
13764 {
13765 #if __FreeBSD_version < 400000
13766 fail;
13767 #endif
13768
13769 ;
13770 return 0;
13771 }
13772 _ACEOF
13773 if ac_fn_c_try_link "$LINENO"; then :
13774 emacs_cv_freebsd_terminfo=yes
13775 else
13776 emacs_cv_freebsd_terminfo=no
13777 fi
13778 rm -f core conftest.err conftest.$ac_objext \
13779 conftest$ac_exeext conftest.$ac_ext
13780 fi
13781
13782
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13784 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13785
13786 if test $emacs_cv_freebsd_terminfo = yes; then
13787 LIBS_TERMCAP="-lncurses"
13788 else
13789 TERMINFO=no
13790 LIBS_TERMCAP="-ltermcap"
13791 fi
13792 ;;
13793
13794 netbsd)
13795 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
13796 TERMINFO=no
13797 LIBS_TERMCAP="-ltermcap"
13798 fi
13799 ;;
13800
13801 openbsd) LIBS_TERMCAP="-lncurses" ;;
13802
13803 ## hpux: Make sure we get select from libc rather than from libcurses
13804 ## because libcurses on HPUX 10.10 has a broken version of select.
13805 ## We used to use -lc -lcurses, but this may be cleaner.
13806 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
13807 # set that way, now it uses the default). Isn't this a contradiction?
13808 hpux*) LIBS_TERMCAP="-ltermcap" ;;
13809
13810 esac
13811
13812 TERMCAP_OBJ=tparam.o
13813 if test $TERMINFO = yes; then
13814
13815 $as_echo "#define TERMINFO 1" >>confdefs.h
13816
13817 TERMCAP_OBJ=terminfo.o
13818 fi
13819
13820
13821
13822
13823 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13824 # On Darwin, res_init appears not to be useful: see bug#562 and
13825 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
13826 resolv=no
13827
13828 if test $opsys != darwin; then
13829
13830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13831 /* end confdefs.h. */
13832 #include <netinet/in.h>
13833 #include <arpa/nameser.h>
13834 #include <resolv.h>
13835 int
13836 main ()
13837 {
13838 return res_init();
13839 ;
13840 return 0;
13841 }
13842 _ACEOF
13843 if ac_fn_c_try_link "$LINENO"; then :
13844 have_res_init=yes
13845 else
13846 have_res_init=no
13847 fi
13848 rm -f core conftest.err conftest.$ac_objext \
13849 conftest$ac_exeext conftest.$ac_ext
13850 if test "$have_res_init" = no; then
13851 OLIBS="$LIBS"
13852 LIBS="$LIBS -lresolv"
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13854 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13856 /* end confdefs.h. */
13857 #include <netinet/in.h>
13858 #include <arpa/nameser.h>
13859 #include <resolv.h>
13860 int
13861 main ()
13862 {
13863 return res_init();
13864 ;
13865 return 0;
13866 }
13867 _ACEOF
13868 if ac_fn_c_try_link "$LINENO"; then :
13869 have_res_init=yes
13870 else
13871 have_res_init=no
13872 fi
13873 rm -f core conftest.err conftest.$ac_objext \
13874 conftest$ac_exeext conftest.$ac_ext
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13876 $as_echo "$have_res_init" >&6; }
13877 if test "$have_res_init" = yes ; then
13878 resolv=yes
13879 fi
13880 LIBS="$OLIBS"
13881 fi
13882
13883 if test "$have_res_init" = yes; then
13884
13885 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13886
13887 fi
13888 fi
13889 # Do we need the Hesiod library to provide the support routines?
13890 LIBHESIOD=
13891 if test "$with_hesiod" != no ; then
13892 # Don't set $LIBS here -- see comments above. FIXME which comments?
13893 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13894 if test "x$ac_cv_func_res_send" = x""yes; then :
13895
13896 else
13897 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13898 if test "x$ac_cv_func___res_send" = x""yes; then :
13899
13900 else
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13902 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13903 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13904 $as_echo_n "(cached) " >&6
13905 else
13906 ac_check_lib_save_LIBS=$LIBS
13907 LIBS="-lresolv $LIBS"
13908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13909 /* end confdefs.h. */
13910
13911 /* Override any GCC internal prototype to avoid an error.
13912 Use char because int might match the return type of a GCC
13913 builtin and then its argument prototype would still apply. */
13914 #ifdef __cplusplus
13915 extern "C"
13916 #endif
13917 char res_send ();
13918 int
13919 main ()
13920 {
13921 return res_send ();
13922 ;
13923 return 0;
13924 }
13925 _ACEOF
13926 if ac_fn_c_try_link "$LINENO"; then :
13927 ac_cv_lib_resolv_res_send=yes
13928 else
13929 ac_cv_lib_resolv_res_send=no
13930 fi
13931 rm -f core conftest.err conftest.$ac_objext \
13932 conftest$ac_exeext conftest.$ac_ext
13933 LIBS=$ac_check_lib_save_LIBS
13934 fi
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13936 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13937 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
13938 resolv=yes
13939 else
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13941 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13942 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13943 $as_echo_n "(cached) " >&6
13944 else
13945 ac_check_lib_save_LIBS=$LIBS
13946 LIBS="-lresolv $LIBS"
13947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13948 /* end confdefs.h. */
13949
13950 /* Override any GCC internal prototype to avoid an error.
13951 Use char because int might match the return type of a GCC
13952 builtin and then its argument prototype would still apply. */
13953 #ifdef __cplusplus
13954 extern "C"
13955 #endif
13956 char __res_send ();
13957 int
13958 main ()
13959 {
13960 return __res_send ();
13961 ;
13962 return 0;
13963 }
13964 _ACEOF
13965 if ac_fn_c_try_link "$LINENO"; then :
13966 ac_cv_lib_resolv___res_send=yes
13967 else
13968 ac_cv_lib_resolv___res_send=no
13969 fi
13970 rm -f core conftest.err conftest.$ac_objext \
13971 conftest$ac_exeext conftest.$ac_ext
13972 LIBS=$ac_check_lib_save_LIBS
13973 fi
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13975 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13976 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
13977 resolv=yes
13978 fi
13979
13980 fi
13981
13982 fi
13983
13984 fi
13985
13986 if test "$resolv" = yes ; then
13987 RESOLVLIB=-lresolv
13988 else
13989 RESOLVLIB=
13990 fi
13991 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13992 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
13993
13994 else
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13996 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13997 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13998 $as_echo_n "(cached) " >&6
13999 else
14000 ac_check_lib_save_LIBS=$LIBS
14001 LIBS="-lhesiod $RESOLVLIB $LIBS"
14002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14003 /* end confdefs.h. */
14004
14005 /* Override any GCC internal prototype to avoid an error.
14006 Use char because int might match the return type of a GCC
14007 builtin and then its argument prototype would still apply. */
14008 #ifdef __cplusplus
14009 extern "C"
14010 #endif
14011 char hes_getmailhost ();
14012 int
14013 main ()
14014 {
14015 return hes_getmailhost ();
14016 ;
14017 return 0;
14018 }
14019 _ACEOF
14020 if ac_fn_c_try_link "$LINENO"; then :
14021 ac_cv_lib_hesiod_hes_getmailhost=yes
14022 else
14023 ac_cv_lib_hesiod_hes_getmailhost=no
14024 fi
14025 rm -f core conftest.err conftest.$ac_objext \
14026 conftest$ac_exeext conftest.$ac_ext
14027 LIBS=$ac_check_lib_save_LIBS
14028 fi
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14030 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14031 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
14032 hesiod=yes
14033 else
14034 :
14035 fi
14036
14037 fi
14038
14039
14040 if test x"$hesiod" = xyes; then
14041
14042 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14043
14044 LIBHESIOD=-lhesiod
14045 fi
14046 fi
14047
14048
14049 # Do we need libresolv (due to res_init or Hesiod)?
14050 if test "$resolv" = yes && test $opsys != darwin; then
14051
14052 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14053
14054 LIBRESOLV=-lresolv
14055 else
14056 LIBRESOLV=
14057 fi
14058
14059
14060 # These tell us which Kerberos-related libraries to use.
14061 COM_ERRLIB=
14062 CRYPTOLIB=
14063 KRB5LIB=
14064 DESLIB=
14065 KRB4LIB=
14066
14067 if test "${with_kerberos}" != no; then
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14069 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14070 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14071 $as_echo_n "(cached) " >&6
14072 else
14073 ac_check_lib_save_LIBS=$LIBS
14074 LIBS="-lcom_err $LIBS"
14075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14076 /* end confdefs.h. */
14077
14078 /* Override any GCC internal prototype to avoid an error.
14079 Use char because int might match the return type of a GCC
14080 builtin and then its argument prototype would still apply. */
14081 #ifdef __cplusplus
14082 extern "C"
14083 #endif
14084 char com_err ();
14085 int
14086 main ()
14087 {
14088 return com_err ();
14089 ;
14090 return 0;
14091 }
14092 _ACEOF
14093 if ac_fn_c_try_link "$LINENO"; then :
14094 ac_cv_lib_com_err_com_err=yes
14095 else
14096 ac_cv_lib_com_err_com_err=no
14097 fi
14098 rm -f core conftest.err conftest.$ac_objext \
14099 conftest$ac_exeext conftest.$ac_ext
14100 LIBS=$ac_check_lib_save_LIBS
14101 fi
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14103 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14104 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
14105 have_com_err=yes
14106 else
14107 have_com_err=no
14108 fi
14109
14110 if test $have_com_err = yes; then
14111 COM_ERRLIB=-lcom_err
14112 LIBS="$COM_ERRLIB $LIBS"
14113
14114 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14115
14116 fi
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14118 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14119 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14120 $as_echo_n "(cached) " >&6
14121 else
14122 ac_check_lib_save_LIBS=$LIBS
14123 LIBS="-lcrypto $LIBS"
14124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14125 /* end confdefs.h. */
14126
14127 /* Override any GCC internal prototype to avoid an error.
14128 Use char because int might match the return type of a GCC
14129 builtin and then its argument prototype would still apply. */
14130 #ifdef __cplusplus
14131 extern "C"
14132 #endif
14133 char mit_des_cbc_encrypt ();
14134 int
14135 main ()
14136 {
14137 return mit_des_cbc_encrypt ();
14138 ;
14139 return 0;
14140 }
14141 _ACEOF
14142 if ac_fn_c_try_link "$LINENO"; then :
14143 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14144 else
14145 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14146 fi
14147 rm -f core conftest.err conftest.$ac_objext \
14148 conftest$ac_exeext conftest.$ac_ext
14149 LIBS=$ac_check_lib_save_LIBS
14150 fi
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14152 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14153 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
14154 have_crypto=yes
14155 else
14156 have_crypto=no
14157 fi
14158
14159 if test $have_crypto = yes; then
14160 CRYPTOLIB=-lcrypto
14161 LIBS="$CRYPTOLIB $LIBS"
14162
14163 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14164
14165 fi
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14167 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14168 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14169 $as_echo_n "(cached) " >&6
14170 else
14171 ac_check_lib_save_LIBS=$LIBS
14172 LIBS="-lk5crypto $LIBS"
14173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14174 /* end confdefs.h. */
14175
14176 /* Override any GCC internal prototype to avoid an error.
14177 Use char because int might match the return type of a GCC
14178 builtin and then its argument prototype would still apply. */
14179 #ifdef __cplusplus
14180 extern "C"
14181 #endif
14182 char mit_des_cbc_encrypt ();
14183 int
14184 main ()
14185 {
14186 return mit_des_cbc_encrypt ();
14187 ;
14188 return 0;
14189 }
14190 _ACEOF
14191 if ac_fn_c_try_link "$LINENO"; then :
14192 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14193 else
14194 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14195 fi
14196 rm -f core conftest.err conftest.$ac_objext \
14197 conftest$ac_exeext conftest.$ac_ext
14198 LIBS=$ac_check_lib_save_LIBS
14199 fi
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14201 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14202 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
14203 have_k5crypto=yes
14204 else
14205 have_k5crypto=no
14206 fi
14207
14208 if test $have_k5crypto = yes; then
14209 CRYPTOLIB=-lk5crypto
14210 LIBS="$CRYPTOLIB $LIBS"
14211
14212 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14213
14214 fi
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14216 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14217 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14218 $as_echo_n "(cached) " >&6
14219 else
14220 ac_check_lib_save_LIBS=$LIBS
14221 LIBS="-lkrb5 $LIBS"
14222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14223 /* end confdefs.h. */
14224
14225 /* Override any GCC internal prototype to avoid an error.
14226 Use char because int might match the return type of a GCC
14227 builtin and then its argument prototype would still apply. */
14228 #ifdef __cplusplus
14229 extern "C"
14230 #endif
14231 char krb5_init_context ();
14232 int
14233 main ()
14234 {
14235 return krb5_init_context ();
14236 ;
14237 return 0;
14238 }
14239 _ACEOF
14240 if ac_fn_c_try_link "$LINENO"; then :
14241 ac_cv_lib_krb5_krb5_init_context=yes
14242 else
14243 ac_cv_lib_krb5_krb5_init_context=no
14244 fi
14245 rm -f core conftest.err conftest.$ac_objext \
14246 conftest$ac_exeext conftest.$ac_ext
14247 LIBS=$ac_check_lib_save_LIBS
14248 fi
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14250 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14251 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
14252 have_krb5=yes
14253 else
14254 have_krb5=no
14255 fi
14256
14257 if test $have_krb5=yes; then
14258 KRB5LIB=-lkrb5
14259 LIBS="$KRB5LIB $LIBS"
14260
14261 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14262
14263 fi
14264 if test "${with_kerberos5}" = no; then
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14266 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14267 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14268 $as_echo_n "(cached) " >&6
14269 else
14270 ac_check_lib_save_LIBS=$LIBS
14271 LIBS="-ldes425 $LIBS"
14272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273 /* end confdefs.h. */
14274
14275 /* Override any GCC internal prototype to avoid an error.
14276 Use char because int might match the return type of a GCC
14277 builtin and then its argument prototype would still apply. */
14278 #ifdef __cplusplus
14279 extern "C"
14280 #endif
14281 char des_cbc_encrypt ();
14282 int
14283 main ()
14284 {
14285 return des_cbc_encrypt ();
14286 ;
14287 return 0;
14288 }
14289 _ACEOF
14290 if ac_fn_c_try_link "$LINENO"; then :
14291 ac_cv_lib_des425_des_cbc_encrypt=yes
14292 else
14293 ac_cv_lib_des425_des_cbc_encrypt=no
14294 fi
14295 rm -f core conftest.err conftest.$ac_objext \
14296 conftest$ac_exeext conftest.$ac_ext
14297 LIBS=$ac_check_lib_save_LIBS
14298 fi
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14300 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14301 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
14302 have_des425=yes
14303 else
14304 have_des425=no
14305 fi
14306
14307 if test $have_des425 = yes; then
14308 DESLIB=-ldes425
14309 LIBS="$DESLIB $LIBS"
14310
14311 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14312
14313 else
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14315 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14316 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14317 $as_echo_n "(cached) " >&6
14318 else
14319 ac_check_lib_save_LIBS=$LIBS
14320 LIBS="-ldes $LIBS"
14321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322 /* end confdefs.h. */
14323
14324 /* Override any GCC internal prototype to avoid an error.
14325 Use char because int might match the return type of a GCC
14326 builtin and then its argument prototype would still apply. */
14327 #ifdef __cplusplus
14328 extern "C"
14329 #endif
14330 char des_cbc_encrypt ();
14331 int
14332 main ()
14333 {
14334 return des_cbc_encrypt ();
14335 ;
14336 return 0;
14337 }
14338 _ACEOF
14339 if ac_fn_c_try_link "$LINENO"; then :
14340 ac_cv_lib_des_des_cbc_encrypt=yes
14341 else
14342 ac_cv_lib_des_des_cbc_encrypt=no
14343 fi
14344 rm -f core conftest.err conftest.$ac_objext \
14345 conftest$ac_exeext conftest.$ac_ext
14346 LIBS=$ac_check_lib_save_LIBS
14347 fi
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14349 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14350 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
14351 have_des=yes
14352 else
14353 have_des=no
14354 fi
14355
14356 if test $have_des = yes; then
14357 DESLIB=-ldes
14358 LIBS="$DESLIB $LIBS"
14359
14360 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14361
14362 fi
14363 fi
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14365 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14366 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14367 $as_echo_n "(cached) " >&6
14368 else
14369 ac_check_lib_save_LIBS=$LIBS
14370 LIBS="-lkrb4 $LIBS"
14371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14372 /* end confdefs.h. */
14373
14374 /* Override any GCC internal prototype to avoid an error.
14375 Use char because int might match the return type of a GCC
14376 builtin and then its argument prototype would still apply. */
14377 #ifdef __cplusplus
14378 extern "C"
14379 #endif
14380 char krb_get_cred ();
14381 int
14382 main ()
14383 {
14384 return krb_get_cred ();
14385 ;
14386 return 0;
14387 }
14388 _ACEOF
14389 if ac_fn_c_try_link "$LINENO"; then :
14390 ac_cv_lib_krb4_krb_get_cred=yes
14391 else
14392 ac_cv_lib_krb4_krb_get_cred=no
14393 fi
14394 rm -f core conftest.err conftest.$ac_objext \
14395 conftest$ac_exeext conftest.$ac_ext
14396 LIBS=$ac_check_lib_save_LIBS
14397 fi
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14399 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14400 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
14401 have_krb4=yes
14402 else
14403 have_krb4=no
14404 fi
14405
14406 if test $have_krb4 = yes; then
14407 KRB4LIB=-lkrb4
14408 LIBS="$KRB4LIB $LIBS"
14409
14410 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14411
14412 else
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14414 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14415 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14416 $as_echo_n "(cached) " >&6
14417 else
14418 ac_check_lib_save_LIBS=$LIBS
14419 LIBS="-lkrb $LIBS"
14420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14421 /* end confdefs.h. */
14422
14423 /* Override any GCC internal prototype to avoid an error.
14424 Use char because int might match the return type of a GCC
14425 builtin and then its argument prototype would still apply. */
14426 #ifdef __cplusplus
14427 extern "C"
14428 #endif
14429 char krb_get_cred ();
14430 int
14431 main ()
14432 {
14433 return krb_get_cred ();
14434 ;
14435 return 0;
14436 }
14437 _ACEOF
14438 if ac_fn_c_try_link "$LINENO"; then :
14439 ac_cv_lib_krb_krb_get_cred=yes
14440 else
14441 ac_cv_lib_krb_krb_get_cred=no
14442 fi
14443 rm -f core conftest.err conftest.$ac_objext \
14444 conftest$ac_exeext conftest.$ac_ext
14445 LIBS=$ac_check_lib_save_LIBS
14446 fi
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14448 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14449 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
14450 have_krb=yes
14451 else
14452 have_krb=no
14453 fi
14454
14455 if test $have_krb = yes; then
14456 KRB4LIB=-lkrb
14457 LIBS="$KRB4LIB $LIBS"
14458
14459 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14460
14461 fi
14462 fi
14463 fi
14464
14465 if test "${with_kerberos5}" != no; then
14466 for ac_header in krb5.h
14467 do :
14468 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14469 if test "x$ac_cv_header_krb5_h" = x""yes; then :
14470 cat >>confdefs.h <<_ACEOF
14471 #define HAVE_KRB5_H 1
14472 _ACEOF
14473 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14474 "
14475 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
14476
14477 cat >>confdefs.h <<_ACEOF
14478 #define HAVE_KRB5_ERROR_TEXT 1
14479 _ACEOF
14480
14481
14482 fi
14483 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14484 "
14485 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
14486
14487 cat >>confdefs.h <<_ACEOF
14488 #define HAVE_KRB5_ERROR_E_TEXT 1
14489 _ACEOF
14490
14491
14492 fi
14493
14494 fi
14495
14496 done
14497
14498 else
14499 for ac_header in des.h
14500 do :
14501 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14502 if test "x$ac_cv_header_des_h" = x""yes; then :
14503 cat >>confdefs.h <<_ACEOF
14504 #define HAVE_DES_H 1
14505 _ACEOF
14506
14507 else
14508 for ac_header in kerberosIV/des.h
14509 do :
14510 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14511 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
14512 cat >>confdefs.h <<_ACEOF
14513 #define HAVE_KERBEROSIV_DES_H 1
14514 _ACEOF
14515
14516 else
14517 for ac_header in kerberos/des.h
14518 do :
14519 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14520 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
14521 cat >>confdefs.h <<_ACEOF
14522 #define HAVE_KERBEROS_DES_H 1
14523 _ACEOF
14524
14525 fi
14526
14527 done
14528
14529 fi
14530
14531 done
14532
14533 fi
14534
14535 done
14536
14537 for ac_header in krb.h
14538 do :
14539 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14540 if test "x$ac_cv_header_krb_h" = x""yes; then :
14541 cat >>confdefs.h <<_ACEOF
14542 #define HAVE_KRB_H 1
14543 _ACEOF
14544
14545 else
14546 for ac_header in kerberosIV/krb.h
14547 do :
14548 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14549 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
14550 cat >>confdefs.h <<_ACEOF
14551 #define HAVE_KERBEROSIV_KRB_H 1
14552 _ACEOF
14553
14554 else
14555 for ac_header in kerberos/krb.h
14556 do :
14557 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14558 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
14559 cat >>confdefs.h <<_ACEOF
14560 #define HAVE_KERBEROS_KRB_H 1
14561 _ACEOF
14562
14563 fi
14564
14565 done
14566
14567 fi
14568
14569 done
14570
14571 fi
14572
14573 done
14574
14575 fi
14576 for ac_header in com_err.h
14577 do :
14578 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14579 if test "x$ac_cv_header_com_err_h" = x""yes; then :
14580 cat >>confdefs.h <<_ACEOF
14581 #define HAVE_COM_ERR_H 1
14582 _ACEOF
14583
14584 fi
14585
14586 done
14587
14588 fi
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599 for ac_func in $ac_func_list
14600 do :
14601 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14602 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14603 eval as_val=\$$as_ac_var
14604 if test "x$as_val" = x""yes; then :
14605 cat >>confdefs.h <<_ACEOF
14606 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14607 _ACEOF
14608
14609 fi
14610 done
14611
14612
14613
14614
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14616 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14617 if test "${emacs_cv_localtime_cache+set}" = set; then :
14618 $as_echo_n "(cached) " >&6
14619 else
14620 if test x$ac_cv_func_tzset = xyes; then
14621 if test "$cross_compiling" = yes; then :
14622 # If we have tzset, assume the worst when cross-compiling.
14623 emacs_cv_localtime_cache=yes
14624 else
14625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14626 /* end confdefs.h. */
14627 #include <time.h>
14628 char TZ_GMT0[] = "TZ=GMT0";
14629 char TZ_PST8[] = "TZ=PST8";
14630 main()
14631 {
14632 time_t now = time ((time_t *) 0);
14633 int hour_GMT0, hour_unset;
14634 if (putenv (TZ_GMT0) != 0)
14635 exit (1);
14636 hour_GMT0 = localtime (&now)->tm_hour;
14637 unsetenv("TZ");
14638 hour_unset = localtime (&now)->tm_hour;
14639 if (putenv (TZ_PST8) != 0)
14640 exit (1);
14641 if (localtime (&now)->tm_hour == hour_GMT0)
14642 exit (1);
14643 unsetenv("TZ");
14644 if (localtime (&now)->tm_hour != hour_unset)
14645 exit (1);
14646 exit (0);
14647 }
14648 _ACEOF
14649 if ac_fn_c_try_run "$LINENO"; then :
14650 emacs_cv_localtime_cache=no
14651 else
14652 emacs_cv_localtime_cache=yes
14653 fi
14654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14655 conftest.$ac_objext conftest.beam conftest.$ac_ext
14656 fi
14657
14658 else
14659 # If we lack tzset, report that localtime does not cache TZ,
14660 # since we can't invalidate the cache if we don't have tzset.
14661 emacs_cv_localtime_cache=no
14662 fi
14663 fi
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14665 $as_echo "$emacs_cv_localtime_cache" >&6; }
14666 if test $emacs_cv_localtime_cache = yes; then
14667
14668 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14669
14670 fi
14671
14672 ok_so_far=yes
14673 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14674 if test "x$ac_cv_func_socket" = x""yes; then :
14675
14676 else
14677 ok_so_far=no
14678 fi
14679
14680 if test $ok_so_far = yes; then
14681 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14682 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14683
14684 else
14685 ok_so_far=no
14686 fi
14687
14688
14689 fi
14690 if test $ok_so_far = yes; then
14691 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14692 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14693
14694 else
14695 ok_so_far=no
14696 fi
14697
14698
14699 fi
14700 if test $ok_so_far = yes; then
14701
14702 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14703
14704 fi
14705
14706 if test -f /usr/lpp/X11/bin/smt.exp; then
14707
14708 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14709
14710 fi
14711
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14713 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14714 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14716 $as_echo "yes" >&6; }
14717
14718 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14719
14720 else
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14722 $as_echo "no" >&6; }
14723 fi
14724
14725 case $canonical in
14726 *-solaris2.4 | *-solaris2.4.*)
14727 : ${ac_cv_func_vfork_works=no};;
14728 esac
14729
14730 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14731 if test "x$ac_cv_type_pid_t" = x""yes; then :
14732
14733 else
14734
14735 cat >>confdefs.h <<_ACEOF
14736 #define pid_t int
14737 _ACEOF
14738
14739 fi
14740
14741 for ac_header in vfork.h
14742 do :
14743 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14744 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14745 cat >>confdefs.h <<_ACEOF
14746 #define HAVE_VFORK_H 1
14747 _ACEOF
14748
14749 fi
14750
14751 done
14752
14753 for ac_func in fork vfork
14754 do :
14755 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14756 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14757 eval as_val=\$$as_ac_var
14758 if test "x$as_val" = x""yes; then :
14759 cat >>confdefs.h <<_ACEOF
14760 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14761 _ACEOF
14762
14763 fi
14764 done
14765
14766 if test "x$ac_cv_func_fork" = xyes; then
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14768 $as_echo_n "checking for working fork... " >&6; }
14769 if test "${ac_cv_func_fork_works+set}" = set; then :
14770 $as_echo_n "(cached) " >&6
14771 else
14772 if test "$cross_compiling" = yes; then :
14773 ac_cv_func_fork_works=cross
14774 else
14775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14776 /* end confdefs.h. */
14777 $ac_includes_default
14778 int
14779 main ()
14780 {
14781
14782 /* By Ruediger Kuhlmann. */
14783 return fork () < 0;
14784
14785 ;
14786 return 0;
14787 }
14788 _ACEOF
14789 if ac_fn_c_try_run "$LINENO"; then :
14790 ac_cv_func_fork_works=yes
14791 else
14792 ac_cv_func_fork_works=no
14793 fi
14794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14795 conftest.$ac_objext conftest.beam conftest.$ac_ext
14796 fi
14797
14798 fi
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14800 $as_echo "$ac_cv_func_fork_works" >&6; }
14801
14802 else
14803 ac_cv_func_fork_works=$ac_cv_func_fork
14804 fi
14805 if test "x$ac_cv_func_fork_works" = xcross; then
14806 case $host in
14807 *-*-amigaos* | *-*-msdosdjgpp*)
14808 # Override, as these systems have only a dummy fork() stub
14809 ac_cv_func_fork_works=no
14810 ;;
14811 *)
14812 ac_cv_func_fork_works=yes
14813 ;;
14814 esac
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14816 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14817 fi
14818 ac_cv_func_vfork_works=$ac_cv_func_vfork
14819 if test "x$ac_cv_func_vfork" = xyes; then
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14821 $as_echo_n "checking for working vfork... " >&6; }
14822 if test "${ac_cv_func_vfork_works+set}" = set; then :
14823 $as_echo_n "(cached) " >&6
14824 else
14825 if test "$cross_compiling" = yes; then :
14826 ac_cv_func_vfork_works=cross
14827 else
14828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14829 /* end confdefs.h. */
14830 /* Thanks to Paul Eggert for this test. */
14831 $ac_includes_default
14832 #include <sys/wait.h>
14833 #ifdef HAVE_VFORK_H
14834 # include <vfork.h>
14835 #endif
14836 /* On some sparc systems, changes by the child to local and incoming
14837 argument registers are propagated back to the parent. The compiler
14838 is told about this with #include <vfork.h>, but some compilers
14839 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14840 static variable whose address is put into a register that is
14841 clobbered by the vfork. */
14842 static void
14843 #ifdef __cplusplus
14844 sparc_address_test (int arg)
14845 # else
14846 sparc_address_test (arg) int arg;
14847 #endif
14848 {
14849 static pid_t child;
14850 if (!child) {
14851 child = vfork ();
14852 if (child < 0) {
14853 perror ("vfork");
14854 _exit(2);
14855 }
14856 if (!child) {
14857 arg = getpid();
14858 write(-1, "", 0);
14859 _exit (arg);
14860 }
14861 }
14862 }
14863
14864 int
14865 main ()
14866 {
14867 pid_t parent = getpid ();
14868 pid_t child;
14869
14870 sparc_address_test (0);
14871
14872 child = vfork ();
14873
14874 if (child == 0) {
14875 /* Here is another test for sparc vfork register problems. This
14876 test uses lots of local variables, at least as many local
14877 variables as main has allocated so far including compiler
14878 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14879 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14880 reuse the register of parent for one of the local variables,
14881 since it will think that parent can't possibly be used any more
14882 in this routine. Assigning to the local variable will thus
14883 munge parent in the parent process. */
14884 pid_t
14885 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14886 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14887 /* Convince the compiler that p..p7 are live; otherwise, it might
14888 use the same hardware register for all 8 local variables. */
14889 if (p != p1 || p != p2 || p != p3 || p != p4
14890 || p != p5 || p != p6 || p != p7)
14891 _exit(1);
14892
14893 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14894 from child file descriptors. If the child closes a descriptor
14895 before it execs or exits, this munges the parent's descriptor
14896 as well. Test for this by closing stdout in the child. */
14897 _exit(close(fileno(stdout)) != 0);
14898 } else {
14899 int status;
14900 struct stat st;
14901
14902 while (wait(&status) != child)
14903 ;
14904 return (
14905 /* Was there some problem with vforking? */
14906 child < 0
14907
14908 /* Did the child fail? (This shouldn't happen.) */
14909 || status
14910
14911 /* Did the vfork/compiler bug occur? */
14912 || parent != getpid()
14913
14914 /* Did the file descriptor bug occur? */
14915 || fstat(fileno(stdout), &st) != 0
14916 );
14917 }
14918 }
14919 _ACEOF
14920 if ac_fn_c_try_run "$LINENO"; then :
14921 ac_cv_func_vfork_works=yes
14922 else
14923 ac_cv_func_vfork_works=no
14924 fi
14925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14926 conftest.$ac_objext conftest.beam conftest.$ac_ext
14927 fi
14928
14929 fi
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14931 $as_echo "$ac_cv_func_vfork_works" >&6; }
14932
14933 fi;
14934 if test "x$ac_cv_func_fork_works" = xcross; then
14935 ac_cv_func_vfork_works=$ac_cv_func_vfork
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14937 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14938 fi
14939
14940 if test "x$ac_cv_func_vfork_works" = xyes; then
14941
14942 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14943
14944 else
14945
14946 $as_echo "#define vfork fork" >>confdefs.h
14947
14948 fi
14949 if test "x$ac_cv_func_fork_works" = xyes; then
14950
14951 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14952
14953 fi
14954
14955
14956 for ac_func in snprintf
14957 do :
14958 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
14959 if test "x$ac_cv_func_snprintf" = x""yes; then :
14960 cat >>confdefs.h <<_ACEOF
14961 #define HAVE_SNPRINTF 1
14962 _ACEOF
14963
14964 fi
14965 done
14966
14967
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14969 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14970 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14971 $as_echo_n "(cached) " >&6
14972 else
14973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14974 /* end confdefs.h. */
14975 #include <langinfo.h>
14976 int
14977 main ()
14978 {
14979 char* cs = nl_langinfo(CODESET);
14980 ;
14981 return 0;
14982 }
14983 _ACEOF
14984 if ac_fn_c_try_link "$LINENO"; then :
14985 emacs_cv_langinfo_codeset=yes
14986 else
14987 emacs_cv_langinfo_codeset=no
14988 fi
14989 rm -f core conftest.err conftest.$ac_objext \
14990 conftest$ac_exeext conftest.$ac_ext
14991
14992 fi
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14994 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14995 if test $emacs_cv_langinfo_codeset = yes; then
14996
14997 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14998
14999 fi
15000
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15002 $as_echo_n "checking for mbstate_t... " >&6; }
15003 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15004 $as_echo_n "(cached) " >&6
15005 else
15006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15007 /* end confdefs.h. */
15008 $ac_includes_default
15009 # include <wchar.h>
15010 int
15011 main ()
15012 {
15013 mbstate_t x; return sizeof x;
15014 ;
15015 return 0;
15016 }
15017 _ACEOF
15018 if ac_fn_c_try_compile "$LINENO"; then :
15019 ac_cv_type_mbstate_t=yes
15020 else
15021 ac_cv_type_mbstate_t=no
15022 fi
15023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15024 fi
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15026 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15027 if test $ac_cv_type_mbstate_t = yes; then
15028
15029 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15030
15031 else
15032
15033 $as_echo "#define mbstate_t int" >>confdefs.h
15034
15035 fi
15036
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15038 $as_echo_n "checking for C restricted array declarations... " >&6; }
15039 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15040 $as_echo_n "(cached) " >&6
15041 else
15042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15043 /* end confdefs.h. */
15044 void fred (int x[__restrict]);
15045 int
15046 main ()
15047 {
15048
15049 ;
15050 return 0;
15051 }
15052 _ACEOF
15053 if ac_fn_c_try_compile "$LINENO"; then :
15054 emacs_cv_c_restrict_arr=yes
15055 else
15056 emacs_cv_c_restrict_arr=no
15057 fi
15058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15059 fi
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15061 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15062 if test "$emacs_cv_c_restrict_arr" = yes; then
15063
15064 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15065
15066 fi
15067
15068
15069
15070 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
15071
15072
15073
15074 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
15075
15076
15077 ## Note: PTYs are broken on darwin <6. Use at your own risk.
15078
15079 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
15080
15081
15082
15083 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
15084
15085
15086
15087
15088
15089 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
15090
15091
15092
15093 $as_echo "#define SEPCHAR ':'" >>confdefs.h
15094
15095
15096
15097 $as_echo "#define subprocesses 1" >>confdefs.h
15098
15099
15100
15101 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
15102
15103
15104
15105
15106 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
15107
15108
15109
15110
15111
15112 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
15113
15114
15115
15116 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
15117
15118
15119
15120 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
15121
15122
15123
15124
15125
15126 case $opsys in
15127 aix4-2)
15128 if test x$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes; then
15129 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15130
15131 fi
15132 ;;
15133
15134 hpux*)
15135 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15136
15137 ;;
15138 esac
15139
15140
15141 case $opsys in
15142 irix6-5 | sol2* | unixware )
15143
15144 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
15145
15146 ;;
15147 esac
15148
15149 emacs_broken_SIGIO=no
15150
15151 case $opsys in
15152 hpux* | irix6-5 | openbsd | sol2* | unixware )
15153 emacs_broken_SIGIO=yes
15154 ;;
15155
15156 aix4-2)
15157
15158 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
15159
15160 ;;
15161
15162 freebsd)
15163
15164 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
15165
15166 ;;
15167 esac
15168
15169 case $opsys in
15170 gnu-* | sol2-10 )
15171
15172 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
15173
15174 ;;
15175 esac
15176
15177 case $opsys in
15178 darwin | freebsd | netbsd | openbsd )
15179
15180 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
15181
15182 ;;
15183 esac
15184
15185 case $opsys in
15186 netbsd | openbsd) sound_device="/dev/audio" ;;
15187 *) sound_device="/dev/dsp" ;;
15188 esac
15189
15190
15191 cat >>confdefs.h <<_ACEOF
15192 #define DEFAULT_SOUND_DEVICE "$sound_device"
15193 _ACEOF
15194
15195
15196
15197 case $opsys in
15198 darwin | gnu-linux | gnu-kfreebsd )
15199
15200 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
15201
15202 ;;
15203 esac
15204
15205
15206 case $opsys in
15207 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd)
15208
15209 $as_echo "#define NARROWPROTO 1" >>confdefs.h
15210
15211 ;;
15212 esac
15213
15214
15215
15216
15217
15218
15219
15220
15221 case $opsys in
15222 aix4-2 )
15223 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
15224
15225 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
15226
15227 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
15228
15229 ;;
15230
15231 cygwin )
15232 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15233
15234 $as_echo "#define PTY_OPEN do { int dummy; sigset_t blocked, procmask; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, &procmask); if (-1 == openpty (&fd, &dummy, pty_name, 0, 0)) fd = -1; pthread_sigmask (SIG_SETMASK, &procmask, 0); if (fd >= 0) emacs_close (dummy); } while (0)" >>confdefs.h
15235
15236 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15237
15238 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15239
15240 ;;
15241
15242 darwin )
15243 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15244
15245 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15246
15247 $as_echo "#define PTY_OPEN do { int slave; if (openpty (&fd, &slave, pty_name, NULL, NULL) == -1) fd = -1; else emacs_close (slave); } while (0)" >>confdefs.h
15248
15249 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15250
15251 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15252
15253 ;;
15254
15255 gnu | openbsd )
15256 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15257
15258 ;;
15259
15260 gnu-linux | gnu-kfreebsd | freebsd | netbsd )
15261 if test "x$ac_cv_func_grantpt" = xyes; then
15262
15263 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
15264
15265 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15266
15267 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptyname = 0; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); if (grantpt (fd) != -1 && unlockpt (fd) != -1) ptyname = ptsname(fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (!ptyname) { close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15268
15269 if test "x$ac_cv_func_posix_openpt" = xyes; then
15270 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
15271
15272 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15273
15274 elif test "x$ac_cv_func_getpt" = xyes; then
15275 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
15276
15277 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15278
15279 else
15280 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15281
15282 fi
15283 else
15284 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15285
15286 fi
15287 ;;
15288
15289 hpux*)
15290 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15291
15292 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
15293
15294 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
15295
15296 ;;
15297
15298 irix6-5 )
15299 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
15300
15301 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
15302
15303 $as_echo "#define PTY_OPEN { struct sigaction ocstat, cstat; struct stat stb; char * name; sigemptyset(&cstat.sa_mask); cstat.sa_handler = SIG_DFL; cstat.sa_flags = 0; sigaction(SIGCLD, &cstat, &ocstat); name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); sigaction(SIGCLD, &ocstat, (struct sigaction *)0); if (name == 0) return -1; if (fd < 0) return -1; if (fstat (fd, &stb) < 0) return -1; strcpy (pty_name, name); }" >>confdefs.h
15304
15305 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15306
15307 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15308
15309 ;;
15310
15311 sol2* )
15312 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); grantpt_result = grantpt (fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (grantpt_result == -1 || unlockpt (fd) == -1 || !(ptyname = ptsname (fd))) { emacs_close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15313
15314 ;;
15315
15316 unixware )
15317 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); grantpt_result = grantpt (fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (grantpt_result == -1) fatal(\"could not grant slave pty\"); if (unlockpt(fd) == -1) fatal(\"could not unlock slave pty\"); if (!(ptyname = ptsname(fd))) fatal (\"could not enable slave pty\"); snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15318
15319 ;;
15320 esac
15321
15322
15323 case $opsys in
15324 sol2* | unixware )
15325 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
15326
15327 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15328
15329
15330 $as_echo "#define SETUP_SLAVE_PTY if (ioctl (xforkin, I_PUSH, \"ptem\") == -1) fatal (\"ioctl I_PUSH ptem\"); if (ioctl (xforkin, I_PUSH, \"ldterm\") == -1) fatal (\"ioctl I_PUSH ldterm\"); if (ioctl (xforkin, I_PUSH, \"ttcompat\") == -1) fatal (\"ioctl I_PUSH ttcompat\");" >>confdefs.h
15331
15332 ;;
15333 esac
15334
15335
15336
15337
15338 case $opsys in
15339 aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd )
15340 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15341
15342 ;;
15343
15344 gnu-linux | gnu-kfreebsd )
15345
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15347 $as_echo_n "checking for signals via characters... " >&6; }
15348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15349 /* end confdefs.h. */
15350
15351 #include <linux/version.h>
15352 #if LINUX_VERSION_CODE < 0x20400
15353 # error "Linux version too old"
15354 #endif
15355
15356 int
15357 main ()
15358 {
15359
15360 ;
15361 return 0;
15362 }
15363 _ACEOF
15364 if ac_fn_c_try_cpp "$LINENO"; then :
15365 emacs_signals_via_chars=yes
15366 else
15367 emacs_signals_via_chars=no
15368 fi
15369 rm -f conftest.err conftest.$ac_ext
15370
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15372 $as_echo "$emacs_signals_via_chars" >&6; }
15373 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15374
15375 ;;
15376 esac
15377
15378
15379
15380
15381
15382 case $opsys in
15383 gnu)
15384 $as_echo "#define DATA_START ({ extern int data_start; (char *) &data_start; })" >>confdefs.h
15385
15386 ;;
15387
15388 hpux*)
15389 $as_echo "#define DATA_START 0x40000000" >>confdefs.h
15390
15391 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15392
15393 ;;
15394 irix6-5)
15395 $as_echo "#define DATA_START 0x10000000" >>confdefs.h
15396
15397 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15398
15399 ;;
15400 esac
15401
15402
15403
15404
15405
15406 case $opsys in
15407 darwin) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15408 ;;
15409
15410 gnu | freebsd | netbsd | openbsd )
15411
15412 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15413
15414 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15415
15416 ;;
15417
15418 gnu-linux | gnu-kfreebsd )
15419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15420 /* end confdefs.h. */
15421
15422 #ifndef __i386__
15423 # error "not i386"
15424 #endif
15425
15426 int
15427 main ()
15428 {
15429
15430 ;
15431 return 0;
15432 }
15433 _ACEOF
15434 if ac_fn_c_try_cpp "$LINENO"; then :
15435 $as_echo "#define ULIMIT_BREAK_VALUE (32*1024*1024)" >>confdefs.h
15436
15437 fi
15438 rm -f conftest.err conftest.$ac_ext
15439
15440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15441 /* end confdefs.h. */
15442
15443 #ifndef __ia64__
15444 # error "not ia64"
15445 #endif
15446
15447 int
15448 main ()
15449 {
15450
15451 ;
15452 return 0;
15453 }
15454 _ACEOF
15455 if ac_fn_c_try_cpp "$LINENO"; then :
15456
15457 $as_echo "#define GC_MARK_SECONDARY_STACK() do { extern void *__libc_ia64_register_backing_store_base; __builtin_ia64_flushrs (); mark_memory (__libc_ia64_register_backing_store_base, __builtin_ia64_bsp ());} while (0)" >>confdefs.h
15458
15459 fi
15460 rm -f conftest.err conftest.$ac_ext
15461 ;;
15462
15463 hpux*)
15464
15465 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
15466
15467 ;;
15468
15469 irix6-5)
15470 $as_echo "#define ULIMIT_BREAK_VALUE 0x14000000" >>confdefs.h
15471
15472 ;;
15473 esac
15474
15475
15476
15477
15478
15479
15480
15481 case $opsys in
15482 aix4-2 | hpux* | unixware)
15483 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15484
15485 ;;
15486
15487 gnu-linux | gnu-kfreebsd )
15488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15489 /* end confdefs.h. */
15490
15491 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
15492 || defined __alpha__ || defined __mips__ || defined __s390__ \
15493 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
15494 || defined __ia64__ || defined __sh__
15495 /* ok */
15496 #else
15497 # error "setjmp not known to work on this arch"
15498 #endif
15499
15500 int
15501 main ()
15502 {
15503
15504 ;
15505 return 0;
15506 }
15507 _ACEOF
15508 if ac_fn_c_try_cpp "$LINENO"; then :
15509 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15510
15511 else
15512 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15513
15514 fi
15515 rm -f conftest.err conftest.$ac_ext
15516 ;;
15517 esac
15518
15519
15520 if test x$GCC = xyes; then
15521 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15522
15523 else
15524 case $opsys in
15525 freebsd | netbsd | openbsd | irix6-5 | sol2* )
15526 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15527
15528 ;;
15529 esac
15530 fi
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
15532 $as_echo_n "checking for _setjmp... " >&6; }
15533 if test "${emacs_cv_func__setjmp+set}" = set; then :
15534 $as_echo_n "(cached) " >&6
15535 else
15536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15537 /* end confdefs.h. */
15538 #include <setjmp.h>
15539
15540 int
15541 main ()
15542 {
15543 jmp_buf j;
15544 if (! _setjmp (j))
15545 _longjmp (j, 1);
15546 ;
15547 return 0;
15548 }
15549 _ACEOF
15550 if ac_fn_c_try_link "$LINENO"; then :
15551 emacs_cv_func__setjmp=yes
15552 else
15553 emacs_cv_func__setjmp=no
15554 fi
15555 rm -f core conftest.err conftest.$ac_objext \
15556 conftest$ac_exeext conftest.$ac_ext
15557 fi
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
15559 $as_echo "$emacs_cv_func__setjmp" >&6; }
15560 if test $emacs_cv_func__setjmp = yes; then
15561
15562 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
15563
15564 else
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
15566 $as_echo_n "checking for sigsetjmp... " >&6; }
15567 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
15568 $as_echo_n "(cached) " >&6
15569 else
15570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15571 /* end confdefs.h. */
15572 #include <setjmp.h>
15573
15574 int
15575 main ()
15576 {
15577 sigjmp_buf j;
15578 if (! sigsetjmp (j, 1))
15579 siglongjmp (j, 1);
15580 ;
15581 return 0;
15582 }
15583 _ACEOF
15584 if ac_fn_c_try_link "$LINENO"; then :
15585 emacs_cv_func_sigsetjmp=yes
15586 else
15587 emacs_cv_func_sigsetjmp=no
15588 fi
15589 rm -f core conftest.err conftest.$ac_objext \
15590 conftest$ac_exeext conftest.$ac_ext
15591 fi
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
15593 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
15594 if test $emacs_cv_func_sigsetjmp = yes; then
15595
15596 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
15597
15598 fi
15599 fi
15600
15601 case $opsys in
15602 sol2* | unixware )
15603
15604 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
15605
15606 ;;
15607 esac
15608
15609
15610 case $opsys in
15611 hpux* | sol2* )
15612
15613 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
15614
15615 ;;
15616 esac
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627 case $opsys in
15628 aix4-2)
15629 $as_echo "#define USG /**/" >>confdefs.h
15630
15631 $as_echo "#define USG5 /**/" >>confdefs.h
15632
15633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15634 /* end confdefs.h. */
15635
15636 #ifndef _AIX
15637 # error "_AIX not defined"
15638 #endif
15639
15640 int
15641 main ()
15642 {
15643
15644 ;
15645 return 0;
15646 }
15647 _ACEOF
15648 if ac_fn_c_try_cpp "$LINENO"; then :
15649
15650 else
15651
15652 $as_echo "#define _AIX /**/" >>confdefs.h
15653
15654 fi
15655 rm -f conftest.err conftest.$ac_ext
15656 ;;
15657
15658 cygwin)
15659
15660 $as_echo "#define CYGWIN 1" >>confdefs.h
15661
15662 ;;
15663
15664 darwin)
15665 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15666
15667 $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h
15668
15669
15670 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
15671
15672 ;;
15673
15674 freebsd)
15675 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15676
15677
15678 $as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h
15679
15680 ;;
15681
15682 gnu | netbsd | openbsd )
15683 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15684
15685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15686 /* end confdefs.h. */
15687
15688 #ifndef BSD_SYSTEM
15689 # error "BSD_SYSTEM not defined"
15690 #endif
15691
15692 int
15693 main ()
15694 {
15695
15696 ;
15697 return 0;
15698 }
15699 _ACEOF
15700 if ac_fn_c_try_cpp "$LINENO"; then :
15701
15702 else
15703 $as_echo "#define BSD_SYSTEM 43" >>confdefs.h
15704
15705 fi
15706 rm -f conftest.err conftest.$ac_ext
15707 ;;
15708
15709 gnu-linux | gnu-kfreebsd )
15710 $as_echo "#define USG /**/" >>confdefs.h
15711
15712
15713 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
15714
15715 ;;
15716
15717 hpux*)
15718 $as_echo "#define USG /**/" >>confdefs.h
15719
15720 $as_echo "#define USG5 /**/" >>confdefs.h
15721
15722
15723 $as_echo "#define HPUX /**/" >>confdefs.h
15724
15725 ;;
15726
15727 irix6-5)
15728 $as_echo "#define USG /**/" >>confdefs.h
15729
15730 $as_echo "#define USG5 /**/" >>confdefs.h
15731
15732 $as_echo "#define USG5_4 /**/" >>confdefs.h
15733
15734
15735 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
15736
15737 ;;
15738
15739 sol2*)
15740 $as_echo "#define USG /**/" >>confdefs.h
15741
15742 $as_echo "#define USG5 /**/" >>confdefs.h
15743
15744 $as_echo "#define USG5_4 /**/" >>confdefs.h
15745
15746
15747 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
15748
15749 ;;
15750
15751 unixware)
15752 $as_echo "#define USG /**/" >>confdefs.h
15753
15754 $as_echo "#define USG5 /**/" >>confdefs.h
15755
15756 $as_echo "#define USG5_4 /**/" >>confdefs.h
15757
15758 ;;
15759 esac
15760
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
15762 $as_echo_n "checking for usable FIONREAD... " >&6; }
15763 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
15764 $as_echo_n "(cached) " >&6
15765 else
15766 case $opsys in
15767 aix4-2)
15768 emacs_cv_usable_FIONREAD=no
15769 ;;
15770
15771 *)
15772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15773 /* end confdefs.h. */
15774 #include <sys/types.h>
15775 #include <sys/ioctl.h>
15776 #ifdef USG5_4
15777 # include <sys/filio.h>
15778 #endif
15779
15780 int
15781 main ()
15782 {
15783 int foo = ioctl (0, FIONREAD, &foo);
15784 ;
15785 return 0;
15786 }
15787 _ACEOF
15788 if ac_fn_c_try_compile "$LINENO"; then :
15789 emacs_cv_usable_FIONREAD=yes
15790 else
15791 emacs_cv_usable_FIONREAD=no
15792 fi
15793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15794 ;;
15795 esac
15796 fi
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
15798 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
15799 if test $emacs_cv_usable_FIONREAD = yes; then
15800
15801 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
15802
15803
15804 if test $emacs_broken_SIGIO = no; then
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
15806 $as_echo_n "checking for usable SIGIO... " >&6; }
15807 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
15808 $as_echo_n "(cached) " >&6
15809 else
15810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15811 /* end confdefs.h. */
15812 #include <fcntl.h>
15813 #include <signal.h>
15814
15815 int
15816 main ()
15817 {
15818 int foo = SIGIO | F_SETFL | FASYNC;
15819 ;
15820 return 0;
15821 }
15822 _ACEOF
15823 if ac_fn_c_try_compile "$LINENO"; then :
15824 emacs_cv_usable_SIGIO=yes
15825 else
15826 emacs_cv_usable_SIGIO=no
15827 fi
15828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15829 fi
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
15831 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
15832 if test $emacs_cv_usable_SIGIO = yes; then
15833
15834 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
15835
15836 fi
15837 fi
15838 fi
15839
15840
15841 case $opsys in
15842 cygwin)
15843
15844 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
15845
15846 ;;
15847
15848 hpux11)
15849
15850 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
15851
15852 ;;
15853
15854 irix6-5)
15855
15856 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
15857
15858 ;;
15859
15860 sol2-10)
15861
15862 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
15863
15864 ;;
15865 esac
15866
15867 # Set up the CFLAGS for real compilation, so we can substitute it.
15868 CFLAGS="$REAL_CFLAGS"
15869 CPPFLAGS="$REAL_CPPFLAGS"
15870
15871 ## Hack to detect a buggy GCC version.
15872 if test "x$GCC" = xyes \
15873 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15874 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
15875 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
15876 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15877 fi
15878
15879 version=$PACKAGE_VERSION
15880
15881 copyright="Copyright (C) 2012 Free Software Foundation, Inc."
15882
15883 cat >>confdefs.h <<_ACEOF
15884 #define COPYRIGHT "$copyright"
15885 _ACEOF
15886
15887
15888
15889 ### Specify what sort of things we'll be editing into Makefile and config.h.
15890 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15891
15892
15893 ## Unused?
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15917 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15918 ## end of LIBX_BASE, but nothing ever set it.
15919
15920
15921
15922
15923 ## Used in lwlib/Makefile.in.
15924
15925
15926
15927
15928
15929
15930
15931
15932 if test -n "${term_header}"; then
15933
15934 cat >>confdefs.h <<_ACEOF
15935 #define TERM_HEADER "${term_header}"
15936 _ACEOF
15937
15938 fi
15939
15940
15941 cat >>confdefs.h <<_ACEOF
15942 #define EMACS_CONFIGURATION "${canonical}"
15943 _ACEOF
15944
15945
15946 cat >>confdefs.h <<_ACEOF
15947 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15948 _ACEOF
15949
15950
15951
15952 XMENU_OBJ=
15953 XOBJ=
15954 FONT_OBJ=
15955 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15956
15957 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15958
15959 XMENU_OBJ=xmenu.o
15960 XOBJ="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o"
15961 FONT_OBJ=xfont.o
15962 if test "$HAVE_XFT" = "yes"; then
15963 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15964 elif test "$HAVE_FREETYPE" = "yes"; then
15965 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
15966 fi
15967
15968 fi
15969
15970
15971
15972
15973 WIDGET_OBJ=
15974 MOTIF_LIBW=
15975 if test "${USE_X_TOOLKIT}" != "none" ; then
15976 WIDGET_OBJ=widget.o
15977
15978 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15979
15980 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15981
15982 $as_echo "#define USE_LUCID 1" >>confdefs.h
15983
15984 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15985
15986 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15987
15988 MOTIF_LIBW=-lXm
15989 case "$opsys" in
15990 gnu-linux)
15991 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15992 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
15993 ;;
15994
15995 unixware)
15996 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15997 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15998 MOTIF_LIBW="MOTIF_LIBW -lXimp"
15999 ;;
16000
16001 aix4-2)
16002 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
16003 MOTIF_LIBW="$MOTIF_LIBW -li18n"
16004 ;;
16005 esac
16006 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
16007 fi
16008 fi
16009
16010
16011 TOOLKIT_LIBW=
16012 case "$USE_X_TOOLKIT" in
16013 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
16014 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
16015 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
16016 esac
16017
16018
16019 if test "$USE_X_TOOLKIT" = "none"; then
16020 LIBXT_OTHER="\$(LIBXSM)"
16021 OLDXMENU_TARGET="really-oldXMenu"
16022 else
16023 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16024 OLDXMENU_TARGET="really-lwlib"
16025 fi
16026
16027
16028 ## The X Menu stuff is present in the X10 distribution, but missing
16029 ## from X11. If we have X10, just use the installed library;
16030 ## otherwise, use our own copy.
16031 if test "${HAVE_X11}" = "yes" ; then
16032
16033 $as_echo "#define HAVE_X11 1" >>confdefs.h
16034
16035
16036 if test "$USE_X_TOOLKIT" = "none"; then
16037 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
16038 else
16039 OLDXMENU="\${lwlibdir}/liblw.a"
16040 fi
16041 LIBXMENU="\$(OLDXMENU)"
16042 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
16043 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
16044 else
16045 ## For a syntactically valid Makefile; not actually used for anything.
16046 ## See comments in src/Makefile.in.
16047 OLDXMENU=nothing
16048 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16049 if test "${HAVE_X_WINDOWS}" = "yes"; then
16050 LIBXMENU="-lXMenu"
16051 else
16052 LIBXMENU=
16053 fi
16054 LIBX_OTHER=
16055 OLDXMENU_DEPS=
16056 fi
16057
16058 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
16059 OLDXMENU_TARGET=
16060 OLDXMENU=nothing
16061 LIBXMENU=
16062 OLDXMENU_DEPS=
16063 fi
16064
16065
16066
16067
16068
16069
16070
16071 if test "${HAVE_MENUS}" = "yes" ; then
16072
16073 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16074
16075 fi
16076
16077 if test "${GNU_MALLOC}" = "yes" ; then
16078
16079 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16080
16081 fi
16082
16083 RALLOC_OBJ=
16084 if test "${REL_ALLOC}" = "yes" ; then
16085
16086 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16087
16088
16089 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16090 fi
16091
16092
16093 if test "$opsys" = "cygwin"; then
16094 CYGWIN_OBJ="sheap.o cygw32.o"
16095 ## Cygwin differs because of its unexec().
16096 PRE_ALLOC_OBJ=
16097 POST_ALLOC_OBJ=lastfile.o
16098 else
16099 CYGWIN_OBJ=
16100 PRE_ALLOC_OBJ=lastfile.o
16101 POST_ALLOC_OBJ=
16102 fi
16103
16104
16105
16106
16107 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
16108 # it temporarily reverts them to their pre-pkg-config values,
16109 # because gnulib needs to work with both src (which uses the
16110 # pkg-config stuff) and lib-src (which does not). For example, gnulib
16111 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
16112 # and it therefore needs to run in an environment where LIBS does not
16113 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
16114 # for some package unrelated to lib-src.
16115 SAVE_CFLAGS=$CFLAGS
16116 SAVE_LIBS=$LIBS
16117 CFLAGS=$pre_PKG_CONFIG_CFLAGS
16118 LIBS="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130 LIBC_FATAL_STDERR_=1
16131 export LIBC_FATAL_STDERR_
16132
16133 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16134 # for constant arguments. Useless!
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16136 $as_echo_n "checking for working alloca.h... " >&6; }
16137 if test "${ac_cv_working_alloca_h+set}" = set; then :
16138 $as_echo_n "(cached) " >&6
16139 else
16140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16141 /* end confdefs.h. */
16142 #include <alloca.h>
16143 int
16144 main ()
16145 {
16146 char *p = (char *) alloca (2 * sizeof (int));
16147 if (p) return 0;
16148 ;
16149 return 0;
16150 }
16151 _ACEOF
16152 if ac_fn_c_try_link "$LINENO"; then :
16153 ac_cv_working_alloca_h=yes
16154 else
16155 ac_cv_working_alloca_h=no
16156 fi
16157 rm -f core conftest.err conftest.$ac_objext \
16158 conftest$ac_exeext conftest.$ac_ext
16159 fi
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16161 $as_echo "$ac_cv_working_alloca_h" >&6; }
16162 if test $ac_cv_working_alloca_h = yes; then
16163
16164 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16165
16166 fi
16167
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16169 $as_echo_n "checking for alloca... " >&6; }
16170 if test "${ac_cv_func_alloca_works+set}" = set; then :
16171 $as_echo_n "(cached) " >&6
16172 else
16173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16174 /* end confdefs.h. */
16175 #ifdef __GNUC__
16176 # define alloca __builtin_alloca
16177 #else
16178 # ifdef _MSC_VER
16179 # include <malloc.h>
16180 # define alloca _alloca
16181 # else
16182 # ifdef HAVE_ALLOCA_H
16183 # include <alloca.h>
16184 # else
16185 # ifdef _AIX
16186 #pragma alloca
16187 # else
16188 # ifndef alloca /* predefined by HP cc +Olibcalls */
16189 char *alloca ();
16190 # endif
16191 # endif
16192 # endif
16193 # endif
16194 #endif
16195
16196 int
16197 main ()
16198 {
16199 char *p = (char *) alloca (1);
16200 if (p) return 0;
16201 ;
16202 return 0;
16203 }
16204 _ACEOF
16205 if ac_fn_c_try_link "$LINENO"; then :
16206 ac_cv_func_alloca_works=yes
16207 else
16208 ac_cv_func_alloca_works=no
16209 fi
16210 rm -f core conftest.err conftest.$ac_objext \
16211 conftest$ac_exeext conftest.$ac_ext
16212 fi
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16214 $as_echo "$ac_cv_func_alloca_works" >&6; }
16215
16216 if test $ac_cv_func_alloca_works = yes; then
16217
16218 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16219
16220 else
16221 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16222 # that cause trouble. Some versions do not even contain alloca or
16223 # contain a buggy version. If you still want to use their alloca,
16224 # use ar to extract alloca.o from them instead of compiling alloca.c.
16225
16226
16227
16228
16229
16230 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16231
16232 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16233
16234
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
16236 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
16237 if test "${ac_cv_os_cray+set}" = set; then :
16238 $as_echo_n "(cached) " >&6
16239 else
16240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16241 /* end confdefs.h. */
16242 #if defined CRAY && ! defined CRAY2
16243 webecray
16244 #else
16245 wenotbecray
16246 #endif
16247
16248 _ACEOF
16249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16250 $EGREP "webecray" >/dev/null 2>&1; then :
16251 ac_cv_os_cray=yes
16252 else
16253 ac_cv_os_cray=no
16254 fi
16255 rm -f conftest*
16256
16257 fi
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16259 $as_echo "$ac_cv_os_cray" >&6; }
16260 if test $ac_cv_os_cray = yes; then
16261 for ac_func in _getb67 GETB67 getb67; do
16262 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16263 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16264 eval as_val=\$$as_ac_var
16265 if test "x$as_val" = x""yes; then :
16266
16267 cat >>confdefs.h <<_ACEOF
16268 #define CRAY_STACKSEG_END $ac_func
16269 _ACEOF
16270
16271 break
16272 fi
16273
16274 done
16275 fi
16276
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16278 $as_echo_n "checking stack direction for C alloca... " >&6; }
16279 if test "${ac_cv_c_stack_direction+set}" = set; then :
16280 $as_echo_n "(cached) " >&6
16281 else
16282 if test "$cross_compiling" = yes; then :
16283 ac_cv_c_stack_direction=0
16284 else
16285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16286 /* end confdefs.h. */
16287 $ac_includes_default
16288 int
16289 find_stack_direction (int *addr, int depth)
16290 {
16291 int dir, dummy = 0;
16292 if (! addr)
16293 addr = &dummy;
16294 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16295 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16296 return dir + dummy;
16297 }
16298
16299 int
16300 main (int argc, char **argv)
16301 {
16302 return find_stack_direction (0, argc + !argv + 20) < 0;
16303 }
16304 _ACEOF
16305 if ac_fn_c_try_run "$LINENO"; then :
16306 ac_cv_c_stack_direction=1
16307 else
16308 ac_cv_c_stack_direction=-1
16309 fi
16310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16311 conftest.$ac_objext conftest.beam conftest.$ac_ext
16312 fi
16313
16314 fi
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16316 $as_echo "$ac_cv_c_stack_direction" >&6; }
16317 cat >>confdefs.h <<_ACEOF
16318 #define STACK_DIRECTION $ac_cv_c_stack_direction
16319 _ACEOF
16320
16321
16322 fi
16323
16324
16325
16326
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16328 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16329 if test "${ac_cv_c_bigendian+set}" = set; then :
16330 $as_echo_n "(cached) " >&6
16331 else
16332 ac_cv_c_bigendian=unknown
16333 # See if we're dealing with a universal compiler.
16334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16335 /* end confdefs.h. */
16336 #ifndef __APPLE_CC__
16337 not a universal capable compiler
16338 #endif
16339 typedef int dummy;
16340
16341 _ACEOF
16342 if ac_fn_c_try_compile "$LINENO"; then :
16343
16344 # Check for potential -arch flags. It is not universal unless
16345 # there are at least two -arch flags with different values.
16346 ac_arch=
16347 ac_prev=
16348 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16349 if test -n "$ac_prev"; then
16350 case $ac_word in
16351 i?86 | x86_64 | ppc | ppc64)
16352 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16353 ac_arch=$ac_word
16354 else
16355 ac_cv_c_bigendian=universal
16356 break
16357 fi
16358 ;;
16359 esac
16360 ac_prev=
16361 elif test "x$ac_word" = "x-arch"; then
16362 ac_prev=arch
16363 fi
16364 done
16365 fi
16366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16367 if test $ac_cv_c_bigendian = unknown; then
16368 # See if sys/param.h defines the BYTE_ORDER macro.
16369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16370 /* end confdefs.h. */
16371 #include <sys/types.h>
16372 #include <sys/param.h>
16373
16374 int
16375 main ()
16376 {
16377 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16378 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16379 && LITTLE_ENDIAN)
16380 bogus endian macros
16381 #endif
16382
16383 ;
16384 return 0;
16385 }
16386 _ACEOF
16387 if ac_fn_c_try_compile "$LINENO"; then :
16388 # It does; now see whether it defined to BIG_ENDIAN or not.
16389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16390 /* end confdefs.h. */
16391 #include <sys/types.h>
16392 #include <sys/param.h>
16393
16394 int
16395 main ()
16396 {
16397 #if BYTE_ORDER != BIG_ENDIAN
16398 not big endian
16399 #endif
16400
16401 ;
16402 return 0;
16403 }
16404 _ACEOF
16405 if ac_fn_c_try_compile "$LINENO"; then :
16406 ac_cv_c_bigendian=yes
16407 else
16408 ac_cv_c_bigendian=no
16409 fi
16410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16411 fi
16412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16413 fi
16414 if test $ac_cv_c_bigendian = unknown; then
16415 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16417 /* end confdefs.h. */
16418 #include <limits.h>
16419
16420 int
16421 main ()
16422 {
16423 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16424 bogus endian macros
16425 #endif
16426
16427 ;
16428 return 0;
16429 }
16430 _ACEOF
16431 if ac_fn_c_try_compile "$LINENO"; then :
16432 # It does; now see whether it defined to _BIG_ENDIAN or not.
16433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16434 /* end confdefs.h. */
16435 #include <limits.h>
16436
16437 int
16438 main ()
16439 {
16440 #ifndef _BIG_ENDIAN
16441 not big endian
16442 #endif
16443
16444 ;
16445 return 0;
16446 }
16447 _ACEOF
16448 if ac_fn_c_try_compile "$LINENO"; then :
16449 ac_cv_c_bigendian=yes
16450 else
16451 ac_cv_c_bigendian=no
16452 fi
16453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16454 fi
16455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16456 fi
16457 if test $ac_cv_c_bigendian = unknown; then
16458 # Compile a test program.
16459 if test "$cross_compiling" = yes; then :
16460 # Try to guess by grepping values from an object file.
16461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16462 /* end confdefs.h. */
16463 short int ascii_mm[] =
16464 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16465 short int ascii_ii[] =
16466 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16467 int use_ascii (int i) {
16468 return ascii_mm[i] + ascii_ii[i];
16469 }
16470 short int ebcdic_ii[] =
16471 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16472 short int ebcdic_mm[] =
16473 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16474 int use_ebcdic (int i) {
16475 return ebcdic_mm[i] + ebcdic_ii[i];
16476 }
16477 extern int foo;
16478
16479 int
16480 main ()
16481 {
16482 return use_ascii (foo) == use_ebcdic (foo);
16483 ;
16484 return 0;
16485 }
16486 _ACEOF
16487 if ac_fn_c_try_compile "$LINENO"; then :
16488 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16489 ac_cv_c_bigendian=yes
16490 fi
16491 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16492 if test "$ac_cv_c_bigendian" = unknown; then
16493 ac_cv_c_bigendian=no
16494 else
16495 # finding both strings is unlikely to happen, but who knows?
16496 ac_cv_c_bigendian=unknown
16497 fi
16498 fi
16499 fi
16500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16501 else
16502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503 /* end confdefs.h. */
16504 $ac_includes_default
16505 int
16506 main ()
16507 {
16508
16509 /* Are we little or big endian? From Harbison&Steele. */
16510 union
16511 {
16512 long int l;
16513 char c[sizeof (long int)];
16514 } u;
16515 u.l = 1;
16516 return u.c[sizeof (long int) - 1] == 1;
16517
16518 ;
16519 return 0;
16520 }
16521 _ACEOF
16522 if ac_fn_c_try_run "$LINENO"; then :
16523 ac_cv_c_bigendian=no
16524 else
16525 ac_cv_c_bigendian=yes
16526 fi
16527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16528 conftest.$ac_objext conftest.beam conftest.$ac_ext
16529 fi
16530
16531 fi
16532 fi
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16534 $as_echo "$ac_cv_c_bigendian" >&6; }
16535 case $ac_cv_c_bigendian in #(
16536 yes)
16537 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16538 ;; #(
16539 no)
16540 ;; #(
16541 universal)
16542
16543 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16544
16545 ;; #(
16546 *)
16547 as_fn_error "unknown endianness
16548 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16549 esac
16550
16551
16552
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16554 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16555 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16556 $as_echo_n "(cached) " >&6
16557 else
16558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16559 /* end confdefs.h. */
16560 /* On HP-UX before 11.23, strtold returns a struct instead of
16561 long double. Reject implementations like that, by requiring
16562 compatibility with the C99 prototype. */
16563 #include <stdlib.h>
16564 static long double (*p) (char const *, char **) = strtold;
16565 static long double
16566 test (char const *nptr, char **endptr)
16567 {
16568 long double r;
16569 r = strtold (nptr, endptr);
16570 return r;
16571 }
16572 int
16573 main ()
16574 {
16575 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16576 ;
16577 return 0;
16578 }
16579 _ACEOF
16580 if ac_fn_c_try_link "$LINENO"; then :
16581 gl_cv_func_c99_strtold=yes
16582 else
16583 gl_cv_func_c99_strtold=no
16584 fi
16585 rm -f core conftest.err conftest.$ac_objext \
16586 conftest$ac_exeext conftest.$ac_ext
16587 fi
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16589 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16590 if test $gl_cv_func_c99_strtold = yes; then
16591
16592 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16593
16594 fi
16595
16596
16597 GNULIB_CHDIR=0;
16598 GNULIB_CHOWN=0;
16599 GNULIB_CLOSE=0;
16600 GNULIB_DUP=0;
16601 GNULIB_DUP2=0;
16602 GNULIB_DUP3=0;
16603 GNULIB_ENVIRON=0;
16604 GNULIB_EUIDACCESS=0;
16605 GNULIB_FACCESSAT=0;
16606 GNULIB_FCHDIR=0;
16607 GNULIB_FCHOWNAT=0;
16608 GNULIB_FDATASYNC=0;
16609 GNULIB_FSYNC=0;
16610 GNULIB_FTRUNCATE=0;
16611 GNULIB_GETCWD=0;
16612 GNULIB_GETDOMAINNAME=0;
16613 GNULIB_GETDTABLESIZE=0;
16614 GNULIB_GETGROUPS=0;
16615 GNULIB_GETHOSTNAME=0;
16616 GNULIB_GETLOGIN=0;
16617 GNULIB_GETLOGIN_R=0;
16618 GNULIB_GETPAGESIZE=0;
16619 GNULIB_GETUSERSHELL=0;
16620 GNULIB_GROUP_MEMBER=0;
16621 GNULIB_ISATTY=0;
16622 GNULIB_LCHOWN=0;
16623 GNULIB_LINK=0;
16624 GNULIB_LINKAT=0;
16625 GNULIB_LSEEK=0;
16626 GNULIB_PIPE=0;
16627 GNULIB_PIPE2=0;
16628 GNULIB_PREAD=0;
16629 GNULIB_PWRITE=0;
16630 GNULIB_READ=0;
16631 GNULIB_READLINK=0;
16632 GNULIB_READLINKAT=0;
16633 GNULIB_RMDIR=0;
16634 GNULIB_SETHOSTNAME=0;
16635 GNULIB_SLEEP=0;
16636 GNULIB_SYMLINK=0;
16637 GNULIB_SYMLINKAT=0;
16638 GNULIB_TTYNAME_R=0;
16639 GNULIB_UNISTD_H_NONBLOCKING=0;
16640 GNULIB_UNISTD_H_SIGPIPE=0;
16641 GNULIB_UNLINK=0;
16642 GNULIB_UNLINKAT=0;
16643 GNULIB_USLEEP=0;
16644 GNULIB_WRITE=0;
16645 HAVE_CHOWN=1;
16646 HAVE_DUP2=1;
16647 HAVE_DUP3=1;
16648 HAVE_EUIDACCESS=1;
16649 HAVE_FACCESSAT=1;
16650 HAVE_FCHDIR=1;
16651 HAVE_FCHOWNAT=1;
16652 HAVE_FDATASYNC=1;
16653 HAVE_FSYNC=1;
16654 HAVE_FTRUNCATE=1;
16655 HAVE_GETDTABLESIZE=1;
16656 HAVE_GETGROUPS=1;
16657 HAVE_GETHOSTNAME=1;
16658 HAVE_GETLOGIN=1;
16659 HAVE_GETPAGESIZE=1;
16660 HAVE_GROUP_MEMBER=1;
16661 HAVE_LCHOWN=1;
16662 HAVE_LINK=1;
16663 HAVE_LINKAT=1;
16664 HAVE_PIPE=1;
16665 HAVE_PIPE2=1;
16666 HAVE_PREAD=1;
16667 HAVE_PWRITE=1;
16668 HAVE_READLINK=1;
16669 HAVE_READLINKAT=1;
16670 HAVE_SETHOSTNAME=1;
16671 HAVE_SLEEP=1;
16672 HAVE_SYMLINK=1;
16673 HAVE_SYMLINKAT=1;
16674 HAVE_UNLINKAT=1;
16675 HAVE_USLEEP=1;
16676 HAVE_DECL_ENVIRON=1;
16677 HAVE_DECL_FCHDIR=1;
16678 HAVE_DECL_FDATASYNC=1;
16679 HAVE_DECL_GETDOMAINNAME=1;
16680 HAVE_DECL_GETLOGIN_R=1;
16681 HAVE_DECL_GETPAGESIZE=1;
16682 HAVE_DECL_GETUSERSHELL=1;
16683 HAVE_DECL_SETHOSTNAME=1;
16684 HAVE_DECL_TTYNAME_R=1;
16685 HAVE_OS_H=0;
16686 HAVE_SYS_PARAM_H=0;
16687 REPLACE_CHOWN=0;
16688 REPLACE_CLOSE=0;
16689 REPLACE_DUP=0;
16690 REPLACE_DUP2=0;
16691 REPLACE_FCHOWNAT=0;
16692 REPLACE_FTRUNCATE=0;
16693 REPLACE_GETCWD=0;
16694 REPLACE_GETDOMAINNAME=0;
16695 REPLACE_GETLOGIN_R=0;
16696 REPLACE_GETGROUPS=0;
16697 REPLACE_GETPAGESIZE=0;
16698 REPLACE_ISATTY=0;
16699 REPLACE_LCHOWN=0;
16700 REPLACE_LINK=0;
16701 REPLACE_LINKAT=0;
16702 REPLACE_LSEEK=0;
16703 REPLACE_PREAD=0;
16704 REPLACE_PWRITE=0;
16705 REPLACE_READ=0;
16706 REPLACE_READLINK=0;
16707 REPLACE_RMDIR=0;
16708 REPLACE_SLEEP=0;
16709 REPLACE_SYMLINK=0;
16710 REPLACE_TTYNAME_R=0;
16711 REPLACE_UNLINK=0;
16712 REPLACE_UNLINKAT=0;
16713 REPLACE_USLEEP=0;
16714 REPLACE_WRITE=0;
16715 UNISTD_H_HAVE_WINSOCK2_H=0;
16716 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
16727 $as_echo_n "checking if environ is properly declared... " >&6; }
16728 if test "${gt_cv_var_environ_declaration+set}" = set; then :
16729 $as_echo_n "(cached) " >&6
16730 else
16731
16732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16733 /* end confdefs.h. */
16734 #if HAVE_UNISTD_H
16735 #include <unistd.h>
16736 #endif
16737 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
16738 #include <stdlib.h>
16739
16740 extern struct { int foo; } environ;
16741 int
16742 main ()
16743 {
16744 environ.foo = 1;
16745 ;
16746 return 0;
16747 }
16748 _ACEOF
16749 if ac_fn_c_try_compile "$LINENO"; then :
16750 gt_cv_var_environ_declaration=no
16751 else
16752 gt_cv_var_environ_declaration=yes
16753 fi
16754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16755 fi
16756
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
16758 $as_echo "$gt_cv_var_environ_declaration" >&6; }
16759 if test $gt_cv_var_environ_declaration = yes; then
16760
16761 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16762
16763 fi
16764
16765
16766 if test $gt_cv_var_environ_declaration != yes; then
16767 HAVE_DECL_ENVIRON=0
16768 fi
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778 GNULIB_FCNTL=0;
16779 GNULIB_NONBLOCKING=0;
16780 GNULIB_OPEN=0;
16781 GNULIB_OPENAT=0;
16782 HAVE_FCNTL=1;
16783 HAVE_OPENAT=1;
16784 REPLACE_FCNTL=0;
16785 REPLACE_OPEN=0;
16786 REPLACE_OPENAT=0;
16787
16788
16789
16790
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16792 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16793 if test "${gl_cv_have_include_next+set}" = set; then :
16794 $as_echo_n "(cached) " >&6
16795 else
16796 rm -rf conftestd1a conftestd1b conftestd2
16797 mkdir conftestd1a conftestd1b conftestd2
16798 cat <<EOF > conftestd1a/conftest.h
16799 #define DEFINED_IN_CONFTESTD1
16800 #include_next <conftest.h>
16801 #ifdef DEFINED_IN_CONFTESTD2
16802 int foo;
16803 #else
16804 #error "include_next doesn't work"
16805 #endif
16806 EOF
16807 cat <<EOF > conftestd1b/conftest.h
16808 #define DEFINED_IN_CONFTESTD1
16809 #include <stdio.h>
16810 #include_next <conftest.h>
16811 #ifdef DEFINED_IN_CONFTESTD2
16812 int foo;
16813 #else
16814 #error "include_next doesn't work"
16815 #endif
16816 EOF
16817 cat <<EOF > conftestd2/conftest.h
16818 #ifndef DEFINED_IN_CONFTESTD1
16819 #error "include_next test doesn't work"
16820 #endif
16821 #define DEFINED_IN_CONFTESTD2
16822 EOF
16823 gl_save_CPPFLAGS="$CPPFLAGS"
16824 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16826 /* end confdefs.h. */
16827 #include <conftest.h>
16828 _ACEOF
16829 if ac_fn_c_try_compile "$LINENO"; then :
16830 gl_cv_have_include_next=yes
16831 else
16832 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16834 /* end confdefs.h. */
16835 #include <conftest.h>
16836 _ACEOF
16837 if ac_fn_c_try_compile "$LINENO"; then :
16838 gl_cv_have_include_next=buggy
16839 else
16840 gl_cv_have_include_next=no
16841 fi
16842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16843
16844 fi
16845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16846 CPPFLAGS="$gl_save_CPPFLAGS"
16847 rm -rf conftestd1a conftestd1b conftestd2
16848
16849 fi
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16851 $as_echo "$gl_cv_have_include_next" >&6; }
16852 PRAGMA_SYSTEM_HEADER=
16853 if test $gl_cv_have_include_next = yes; then
16854 INCLUDE_NEXT=include_next
16855 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16856 if test -n "$GCC"; then
16857 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16858 fi
16859 else
16860 if test $gl_cv_have_include_next = buggy; then
16861 INCLUDE_NEXT=include
16862 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16863 else
16864 INCLUDE_NEXT=include
16865 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
16866 fi
16867 fi
16868
16869
16870
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16872 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16873 if test "${gl_cv_pragma_columns+set}" = set; then :
16874 $as_echo_n "(cached) " >&6
16875 else
16876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16877 /* end confdefs.h. */
16878
16879 #ifdef __TANDEM
16880 choke me
16881 #endif
16882
16883 _ACEOF
16884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16885 $EGREP "choke me" >/dev/null 2>&1; then :
16886 gl_cv_pragma_columns=yes
16887 else
16888 gl_cv_pragma_columns=no
16889 fi
16890 rm -f conftest*
16891
16892
16893 fi
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16895 $as_echo "$gl_cv_pragma_columns" >&6; }
16896 if test $gl_cv_pragma_columns = yes; then
16897 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
16898 else
16899 PRAGMA_COLUMNS=
16900 fi
16901
16902
16903 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
16904 if test "x$ac_cv_type_mode_t" = x""yes; then :
16905
16906 else
16907
16908 cat >>confdefs.h <<_ACEOF
16909 #define mode_t int
16910 _ACEOF
16911
16912 fi
16913
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16915 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16916 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16917 $as_echo_n "(cached) " >&6
16918 else
16919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16920 /* end confdefs.h. */
16921
16922 #include <sys/types.h>
16923 #include <sys/stat.h>
16924 int
16925 main ()
16926 {
16927 struct stat s; s.st_dm_mode;
16928 ;
16929 return 0;
16930 }
16931 _ACEOF
16932 if ac_fn_c_try_compile "$LINENO"; then :
16933 ac_cv_struct_st_dm_mode=yes
16934 else
16935 ac_cv_struct_st_dm_mode=no
16936 fi
16937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16938 fi
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16940 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16941
16942 if test $ac_cv_struct_st_dm_mode = yes; then
16943
16944 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16945
16946 fi
16947
16948
16949 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16950 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
16951 ac_have_decl=1
16952 else
16953 ac_have_decl=0
16954 fi
16955
16956 cat >>confdefs.h <<_ACEOF
16957 #define HAVE_DECL_STRMODE $ac_have_decl
16958 _ACEOF
16959
16960
16961
16962
16963
16964
16965 GNULIB__EXIT=0;
16966 GNULIB_ATOLL=0;
16967 GNULIB_CALLOC_POSIX=0;
16968 GNULIB_CANONICALIZE_FILE_NAME=0;
16969 GNULIB_GETLOADAVG=0;
16970 GNULIB_GETSUBOPT=0;
16971 GNULIB_GRANTPT=0;
16972 GNULIB_MALLOC_POSIX=0;
16973 GNULIB_MBTOWC=0;
16974 GNULIB_MKDTEMP=0;
16975 GNULIB_MKOSTEMP=0;
16976 GNULIB_MKOSTEMPS=0;
16977 GNULIB_MKSTEMP=0;
16978 GNULIB_MKSTEMPS=0;
16979 GNULIB_POSIX_OPENPT=0;
16980 GNULIB_PTSNAME=0;
16981 GNULIB_PTSNAME_R=0;
16982 GNULIB_PUTENV=0;
16983 GNULIB_RANDOM=0;
16984 GNULIB_RANDOM_R=0;
16985 GNULIB_REALLOC_POSIX=0;
16986 GNULIB_REALPATH=0;
16987 GNULIB_RPMATCH=0;
16988 GNULIB_SETENV=0;
16989 GNULIB_STRTOD=0;
16990 GNULIB_STRTOLL=0;
16991 GNULIB_STRTOULL=0;
16992 GNULIB_SYSTEM_POSIX=0;
16993 GNULIB_UNLOCKPT=0;
16994 GNULIB_UNSETENV=0;
16995 GNULIB_WCTOMB=0;
16996 HAVE__EXIT=1;
16997 HAVE_ATOLL=1;
16998 HAVE_CANONICALIZE_FILE_NAME=1;
16999 HAVE_DECL_GETLOADAVG=1;
17000 HAVE_GETSUBOPT=1;
17001 HAVE_GRANTPT=1;
17002 HAVE_MKDTEMP=1;
17003 HAVE_MKOSTEMP=1;
17004 HAVE_MKOSTEMPS=1;
17005 HAVE_MKSTEMP=1;
17006 HAVE_MKSTEMPS=1;
17007 HAVE_POSIX_OPENPT=1;
17008 HAVE_PTSNAME=1;
17009 HAVE_PTSNAME_R=1;
17010 HAVE_RANDOM=1;
17011 HAVE_RANDOM_H=1;
17012 HAVE_RANDOM_R=1;
17013 HAVE_REALPATH=1;
17014 HAVE_RPMATCH=1;
17015 HAVE_SETENV=1;
17016 HAVE_DECL_SETENV=1;
17017 HAVE_STRTOD=1;
17018 HAVE_STRTOLL=1;
17019 HAVE_STRTOULL=1;
17020 HAVE_STRUCT_RANDOM_DATA=1;
17021 HAVE_SYS_LOADAVG_H=0;
17022 HAVE_UNLOCKPT=1;
17023 HAVE_DECL_UNSETENV=1;
17024 REPLACE_CALLOC=0;
17025 REPLACE_CANONICALIZE_FILE_NAME=0;
17026 REPLACE_MALLOC=0;
17027 REPLACE_MBTOWC=0;
17028 REPLACE_MKSTEMP=0;
17029 REPLACE_PTSNAME=0;
17030 REPLACE_PTSNAME_R=0;
17031 REPLACE_PUTENV=0;
17032 REPLACE_RANDOM_R=0;
17033 REPLACE_REALLOC=0;
17034 REPLACE_REALPATH=0;
17035 REPLACE_SETENV=0;
17036 REPLACE_STRTOD=0;
17037 REPLACE_UNSETENV=0;
17038 REPLACE_WCTOMB=0;
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055 if test $gl_cv_have_include_next = yes; then
17056 gl_cv_next_getopt_h='<'getopt.h'>'
17057 else
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17059 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17060 if test "${gl_cv_next_getopt_h+set}" = set; then :
17061 $as_echo_n "(cached) " >&6
17062 else
17063
17064 if test $ac_cv_header_getopt_h = yes; then
17065
17066
17067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17068 /* end confdefs.h. */
17069 #include <getopt.h>
17070
17071 _ACEOF
17072 case "$host_os" in
17073 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17074 *) gl_absname_cpp="$ac_cpp" ;;
17075 esac
17076
17077 case "$host_os" in
17078 mingw*)
17079 gl_dirsep_regex='[/\\]'
17080 ;;
17081 *)
17082 gl_dirsep_regex='\/'
17083 ;;
17084 esac
17085 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17086
17087 gl_header_literal_regex=`echo 'getopt.h' \
17088 | sed -e "$gl_make_literal_regex_sed"`
17089 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17090 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17091 s|^/[^/]|//&|
17092 p
17093 q
17094 }'
17095 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17096 sed -n "$gl_absolute_header_sed"`'"'
17097 else
17098 gl_cv_next_getopt_h='<'getopt.h'>'
17099 fi
17100
17101
17102 fi
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17104 $as_echo "$gl_cv_next_getopt_h" >&6; }
17105 fi
17106 NEXT_GETOPT_H=$gl_cv_next_getopt_h
17107
17108 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17109 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17110 gl_next_as_first_directive='<'getopt.h'>'
17111 else
17112 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17113 gl_next_as_first_directive=$gl_cv_next_getopt_h
17114 fi
17115 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
17116
17117
17118
17119
17120 if test $ac_cv_header_getopt_h = yes; then
17121 HAVE_GETOPT_H=1
17122 else
17123 HAVE_GETOPT_H=0
17124 fi
17125
17126
17127 gl_replace_getopt=
17128
17129 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17130 for ac_header in getopt.h
17131 do :
17132 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17133 if test "x$ac_cv_header_getopt_h" = x""yes; then :
17134 cat >>confdefs.h <<_ACEOF
17135 #define HAVE_GETOPT_H 1
17136 _ACEOF
17137
17138 else
17139 gl_replace_getopt=yes
17140 fi
17141
17142 done
17143
17144 fi
17145
17146 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17147 for ac_func in getopt_long_only
17148 do :
17149 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17150 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
17151 cat >>confdefs.h <<_ACEOF
17152 #define HAVE_GETOPT_LONG_ONLY 1
17153 _ACEOF
17154
17155 else
17156 gl_replace_getopt=yes
17157 fi
17158 done
17159
17160 fi
17161
17162 if test -z "$gl_replace_getopt"; then
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17164 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17165 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17166 $as_echo_n "(cached) " >&6
17167 else
17168
17169 if test $cross_compiling = no; then
17170 if test "$cross_compiling" = yes; then :
17171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17173 as_fn_error "cannot run test program while cross compiling
17174 See \`config.log' for more details." "$LINENO" 5; }
17175 else
17176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17177 /* end confdefs.h. */
17178
17179 #include <unistd.h>
17180 #include <stdlib.h>
17181 #include <string.h>
17182
17183 int
17184 main ()
17185 {
17186 static char program[] = "program";
17187 static char a[] = "-a";
17188 static char foo[] = "foo";
17189 static char bar[] = "bar";
17190 char *argv[] = { program, a, foo, bar, NULL };
17191 int c;
17192
17193 c = getopt (4, argv, "ab");
17194 if (!(c == 'a'))
17195 return 1;
17196 c = getopt (4, argv, "ab");
17197 if (!(c == -1))
17198 return 2;
17199 if (!(optind == 2))
17200 return 3;
17201 return 0;
17202 }
17203
17204 _ACEOF
17205 if ac_fn_c_try_run "$LINENO"; then :
17206 gl_cv_func_getopt_posix=maybe
17207 else
17208 gl_cv_func_getopt_posix=no
17209 fi
17210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17211 conftest.$ac_objext conftest.beam conftest.$ac_ext
17212 fi
17213
17214 if test $gl_cv_func_getopt_posix = maybe; then
17215 if test "$cross_compiling" = yes; then :
17216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17218 as_fn_error "cannot run test program while cross compiling
17219 See \`config.log' for more details." "$LINENO" 5; }
17220 else
17221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17222 /* end confdefs.h. */
17223
17224 #include <unistd.h>
17225 #include <stdlib.h>
17226 #include <string.h>
17227
17228 int
17229 main ()
17230 {
17231 static char program[] = "program";
17232 static char donald[] = "donald";
17233 static char p[] = "-p";
17234 static char billy[] = "billy";
17235 static char duck[] = "duck";
17236 static char a[] = "-a";
17237 static char bar[] = "bar";
17238 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17239 int c;
17240
17241 c = getopt (7, argv, "+abp:q:");
17242 if (!(c == -1))
17243 return 4;
17244 if (!(strcmp (argv[0], "program") == 0))
17245 return 5;
17246 if (!(strcmp (argv[1], "donald") == 0))
17247 return 6;
17248 if (!(strcmp (argv[2], "-p") == 0))
17249 return 7;
17250 if (!(strcmp (argv[3], "billy") == 0))
17251 return 8;
17252 if (!(strcmp (argv[4], "duck") == 0))
17253 return 9;
17254 if (!(strcmp (argv[5], "-a") == 0))
17255 return 10;
17256 if (!(strcmp (argv[6], "bar") == 0))
17257 return 11;
17258 if (!(optind == 1))
17259 return 12;
17260 return 0;
17261 }
17262
17263 _ACEOF
17264 if ac_fn_c_try_run "$LINENO"; then :
17265 gl_cv_func_getopt_posix=maybe
17266 else
17267 gl_cv_func_getopt_posix=no
17268 fi
17269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17270 conftest.$ac_objext conftest.beam conftest.$ac_ext
17271 fi
17272
17273 fi
17274 if test $gl_cv_func_getopt_posix = maybe; then
17275 if test "$cross_compiling" = yes; then :
17276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17278 as_fn_error "cannot run test program while cross compiling
17279 See \`config.log' for more details." "$LINENO" 5; }
17280 else
17281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17282 /* end confdefs.h. */
17283
17284 #include <unistd.h>
17285 #include <stdlib.h>
17286 #include <string.h>
17287
17288 int
17289 main ()
17290 {
17291 static char program[] = "program";
17292 static char ab[] = "-ab";
17293 char *argv[3] = { program, ab, NULL };
17294 if (getopt (2, argv, "ab:") != 'a')
17295 return 13;
17296 if (getopt (2, argv, "ab:") != '?')
17297 return 14;
17298 if (optopt != 'b')
17299 return 15;
17300 if (optind != 2)
17301 return 16;
17302 return 0;
17303 }
17304
17305 _ACEOF
17306 if ac_fn_c_try_run "$LINENO"; then :
17307 gl_cv_func_getopt_posix=yes
17308 else
17309 gl_cv_func_getopt_posix=no
17310 fi
17311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17312 conftest.$ac_objext conftest.beam conftest.$ac_ext
17313 fi
17314
17315 fi
17316 else
17317 case "$host_os" in
17318 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
17319 *) gl_cv_func_getopt_posix="guessing yes";;
17320 esac
17321 fi
17322
17323 fi
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17325 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17326 case "$gl_cv_func_getopt_posix" in
17327 *no) gl_replace_getopt=yes ;;
17328 esac
17329 fi
17330
17331 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17333 $as_echo_n "checking for working GNU getopt function... " >&6; }
17334 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17335 $as_echo_n "(cached) " >&6
17336 else
17337 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17338 # optstring is necessary for programs like m4 that have POSIX-mandated
17339 # semantics for supporting options interspersed with files.
17340 # Also, since getopt_long is a GNU extension, we require optind=0.
17341 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17342 # so take care to revert to the correct (non-)export state.
17343 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17344 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17345 xx) gl_had_POSIXLY_CORRECT=exported ;;
17346 x) gl_had_POSIXLY_CORRECT=yes ;;
17347 *) gl_had_POSIXLY_CORRECT= ;;
17348 esac
17349 POSIXLY_CORRECT=1
17350 export POSIXLY_CORRECT
17351 if test "$cross_compiling" = yes; then :
17352 gl_cv_func_getopt_gnu="guessing no"
17353
17354 else
17355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17356 /* end confdefs.h. */
17357 #include <getopt.h>
17358 #include <stddef.h>
17359 #include <string.h>
17360
17361 #include <stdlib.h>
17362 #if defined __MACH__ && defined __APPLE__
17363 /* Avoid a crash on Mac OS X. */
17364 #include <mach/mach.h>
17365 #include <mach/mach_error.h>
17366 #include <mach/thread_status.h>
17367 #include <mach/exception.h>
17368 #include <mach/task.h>
17369 #include <pthread.h>
17370 /* The exception port on which our thread listens. */
17371 static mach_port_t our_exception_port;
17372 /* The main function of the thread listening for exceptions of type
17373 EXC_BAD_ACCESS. */
17374 static void *
17375 mach_exception_thread (void *arg)
17376 {
17377 /* Buffer for a message to be received. */
17378 struct {
17379 mach_msg_header_t head;
17380 mach_msg_body_t msgh_body;
17381 char data[1024];
17382 } msg;
17383 mach_msg_return_t retval;
17384 /* Wait for a message on the exception port. */
17385 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17386 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17387 if (retval != MACH_MSG_SUCCESS)
17388 abort ();
17389 exit (1);
17390 }
17391 static void
17392 nocrash_init (void)
17393 {
17394 mach_port_t self = mach_task_self ();
17395 /* Allocate a port on which the thread shall listen for exceptions. */
17396 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17397 == KERN_SUCCESS) {
17398 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17399 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17400 MACH_MSG_TYPE_MAKE_SEND)
17401 == KERN_SUCCESS) {
17402 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17403 for us. */
17404 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17405 /* Create the thread listening on the exception port. */
17406 pthread_attr_t attr;
17407 pthread_t thread;
17408 if (pthread_attr_init (&attr) == 0
17409 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17410 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17411 pthread_attr_destroy (&attr);
17412 /* Replace the exception port info for these exceptions with our own.
17413 Note that we replace the exception port for the entire task, not only
17414 for a particular thread. This has the effect that when our exception
17415 port gets the message, the thread specific exception port has already
17416 been asked, and we don't need to bother about it.
17417 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17418 task_set_exception_ports (self, mask, our_exception_port,
17419 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17420 }
17421 }
17422 }
17423 }
17424 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17425 /* Avoid a crash on native Windows. */
17426 #define WIN32_LEAN_AND_MEAN
17427 #include <windows.h>
17428 #include <winerror.h>
17429 static LONG WINAPI
17430 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17431 {
17432 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17433 {
17434 case EXCEPTION_ACCESS_VIOLATION:
17435 case EXCEPTION_IN_PAGE_ERROR:
17436 case EXCEPTION_STACK_OVERFLOW:
17437 case EXCEPTION_GUARD_PAGE:
17438 case EXCEPTION_PRIV_INSTRUCTION:
17439 case EXCEPTION_ILLEGAL_INSTRUCTION:
17440 case EXCEPTION_DATATYPE_MISALIGNMENT:
17441 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17442 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17443 exit (1);
17444 }
17445 return EXCEPTION_CONTINUE_SEARCH;
17446 }
17447 static void
17448 nocrash_init (void)
17449 {
17450 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17451 }
17452 #else
17453 /* Avoid a crash on POSIX systems. */
17454 #include <signal.h>
17455 /* A POSIX signal handler. */
17456 static void
17457 exception_handler (int sig)
17458 {
17459 exit (1);
17460 }
17461 static void
17462 nocrash_init (void)
17463 {
17464 #ifdef SIGSEGV
17465 signal (SIGSEGV, exception_handler);
17466 #endif
17467 #ifdef SIGBUS
17468 signal (SIGBUS, exception_handler);
17469 #endif
17470 }
17471 #endif
17472
17473
17474 int
17475 main ()
17476 {
17477
17478 int result = 0;
17479
17480 nocrash_init();
17481
17482 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17483 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17484 OSF/1 5.1, Solaris 10. */
17485 {
17486 static char conftest[] = "conftest";
17487 static char plus[] = "-+";
17488 char *argv[3] = { conftest, plus, NULL };
17489 opterr = 0;
17490 if (getopt (2, argv, "+a") != '?')
17491 result |= 1;
17492 }
17493 /* This code succeeds on glibc 2.8, mingw,
17494 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17495 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17496 {
17497 static char program[] = "program";
17498 static char p[] = "-p";
17499 static char foo[] = "foo";
17500 static char bar[] = "bar";
17501 char *argv[] = { program, p, foo, bar, NULL };
17502
17503 optind = 1;
17504 if (getopt (4, argv, "p::") != 'p')
17505 result |= 2;
17506 else if (optarg != NULL)
17507 result |= 4;
17508 else if (getopt (4, argv, "p::") != -1)
17509 result |= 6;
17510 else if (optind != 2)
17511 result |= 8;
17512 }
17513 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17514 {
17515 static char program[] = "program";
17516 static char foo[] = "foo";
17517 static char p[] = "-p";
17518 char *argv[] = { program, foo, p, NULL };
17519 optind = 0;
17520 if (getopt (3, argv, "-p") != 1)
17521 result |= 16;
17522 else if (getopt (3, argv, "-p") != 'p')
17523 result |= 16;
17524 }
17525 /* This code fails on glibc 2.11. */
17526 {
17527 static char program[] = "program";
17528 static char b[] = "-b";
17529 static char a[] = "-a";
17530 char *argv[] = { program, b, a, NULL };
17531 optind = opterr = 0;
17532 if (getopt (3, argv, "+:a:b") != 'b')
17533 result |= 32;
17534 else if (getopt (3, argv, "+:a:b") != ':')
17535 result |= 32;
17536 }
17537 /* This code dumps core on glibc 2.14. */
17538 {
17539 static char program[] = "program";
17540 static char w[] = "-W";
17541 static char dummy[] = "dummy";
17542 char *argv[] = { program, w, dummy, NULL };
17543 optind = opterr = 1;
17544 if (getopt (3, argv, "W;") != 'W')
17545 result |= 64;
17546 }
17547 return result;
17548
17549 ;
17550 return 0;
17551 }
17552 _ACEOF
17553 if ac_fn_c_try_run "$LINENO"; then :
17554 gl_cv_func_getopt_gnu=yes
17555 else
17556 gl_cv_func_getopt_gnu=no
17557 fi
17558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17559 conftest.$ac_objext conftest.beam conftest.$ac_ext
17560 fi
17561
17562 case $gl_had_POSIXLY_CORRECT in
17563 exported) ;;
17564 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
17565 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
17566 esac
17567
17568 fi
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17570 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17571 if test "$gl_cv_func_getopt_gnu" != yes; then
17572 gl_replace_getopt=yes
17573 else
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
17575 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
17576 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
17577 $as_echo_n "(cached) " >&6
17578 else
17579 if test "$cross_compiling" = yes; then :
17580 case "$host_os" in
17581 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
17582 *) gl_cv_func_getopt_long_gnu="guessing yes";;
17583 esac
17584
17585 else
17586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17587 /* end confdefs.h. */
17588 #include <getopt.h>
17589 #include <stddef.h>
17590 #include <string.h>
17591
17592 int
17593 main ()
17594 {
17595 static const struct option long_options[] =
17596 {
17597 { "xtremely-",no_argument, NULL, 1003 },
17598 { "xtra", no_argument, NULL, 1001 },
17599 { "xtreme", no_argument, NULL, 1002 },
17600 { "xtremely", no_argument, NULL, 1003 },
17601 { NULL, 0, NULL, 0 }
17602 };
17603 /* This code fails on OpenBSD 5.0. */
17604 {
17605 static char program[] = "program";
17606 static char xtremel[] = "--xtremel";
17607 char *argv[] = { program, xtremel, NULL };
17608 int option_index;
17609 optind = 1; opterr = 0;
17610 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
17611 return 1;
17612 }
17613 return 0;
17614
17615 ;
17616 return 0;
17617 }
17618 _ACEOF
17619 if ac_fn_c_try_run "$LINENO"; then :
17620 gl_cv_func_getopt_long_gnu=yes
17621 else
17622 gl_cv_func_getopt_long_gnu=no
17623 fi
17624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17625 conftest.$ac_objext conftest.beam conftest.$ac_ext
17626 fi
17627
17628
17629 fi
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
17631 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
17632 case "$gl_cv_func_getopt_long_gnu" in
17633 *yes) ;;
17634 *) gl_replace_getopt=yes ;;
17635 esac
17636 fi
17637 fi
17638
17639
17640
17641
17642
17643
17644 REPLACE_GETOPT=0
17645 if test -n "$gl_replace_getopt"; then
17646 REPLACE_GETOPT=1
17647 fi
17648
17649 if test $REPLACE_GETOPT = 1; then
17650
17651 GETOPT_H=getopt.h
17652
17653 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17654
17655
17656
17657 fi
17658
17659 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17660 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
17661 ac_have_decl=1
17662 else
17663 ac_have_decl=0
17664 fi
17665
17666 cat >>confdefs.h <<_ACEOF
17667 #define HAVE_DECL_GETENV $ac_have_decl
17668 _ACEOF
17669
17670 :
17671
17672
17673
17674
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17676 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17677 if test "${ac_cv_c_restrict+set}" = set; then :
17678 $as_echo_n "(cached) " >&6
17679 else
17680 ac_cv_c_restrict=no
17681 # The order here caters to the fact that C++ does not require restrict.
17682 for ac_kw in __restrict __restrict__ _Restrict restrict; do
17683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17684 /* end confdefs.h. */
17685 typedef int * int_ptr;
17686 int foo (int_ptr $ac_kw ip) {
17687 return ip[0];
17688 }
17689 int
17690 main ()
17691 {
17692 int s[1];
17693 int * $ac_kw t = s;
17694 t[0] = 0;
17695 return foo(t)
17696 ;
17697 return 0;
17698 }
17699 _ACEOF
17700 if ac_fn_c_try_compile "$LINENO"; then :
17701 ac_cv_c_restrict=$ac_kw
17702 fi
17703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17704 test "$ac_cv_c_restrict" != no && break
17705 done
17706
17707 fi
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17709 $as_echo "$ac_cv_c_restrict" >&6; }
17710
17711 case $ac_cv_c_restrict in
17712 restrict) ;;
17713 no) $as_echo "#define restrict /**/" >>confdefs.h
17714 ;;
17715 *) cat >>confdefs.h <<_ACEOF
17716 #define restrict $ac_cv_c_restrict
17717 _ACEOF
17718 ;;
17719 esac
17720
17721
17722 GNULIB_GETTIMEOFDAY=0;
17723 HAVE_GETTIMEOFDAY=1;
17724 HAVE_STRUCT_TIMEVAL=1;
17725 HAVE_SYS_TIME_H=1;
17726 REPLACE_GETTIMEOFDAY=0;
17727 REPLACE_STRUCT_TIMEVAL=0;
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744 if test $gl_cv_have_include_next = yes; then
17745 gl_cv_next_sys_time_h='<'sys/time.h'>'
17746 else
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
17748 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
17749 if test "${gl_cv_next_sys_time_h+set}" = set; then :
17750 $as_echo_n "(cached) " >&6
17751 else
17752
17753 if test $ac_cv_header_sys_time_h = yes; then
17754
17755
17756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17757 /* end confdefs.h. */
17758 #include <sys/time.h>
17759
17760 _ACEOF
17761 case "$host_os" in
17762 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17763 *) gl_absname_cpp="$ac_cpp" ;;
17764 esac
17765
17766 case "$host_os" in
17767 mingw*)
17768 gl_dirsep_regex='[/\\]'
17769 ;;
17770 *)
17771 gl_dirsep_regex='\/'
17772 ;;
17773 esac
17774 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17775
17776 gl_header_literal_regex=`echo 'sys/time.h' \
17777 | sed -e "$gl_make_literal_regex_sed"`
17778 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17779 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17780 s|^/[^/]|//&|
17781 p
17782 q
17783 }'
17784 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17785 sed -n "$gl_absolute_header_sed"`'"'
17786 else
17787 gl_cv_next_sys_time_h='<'sys/time.h'>'
17788 fi
17789
17790
17791 fi
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
17793 $as_echo "$gl_cv_next_sys_time_h" >&6; }
17794 fi
17795 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
17796
17797 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17798 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17799 gl_next_as_first_directive='<'sys/time.h'>'
17800 else
17801 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17802 gl_next_as_first_directive=$gl_cv_next_sys_time_h
17803 fi
17804 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
17805
17806
17807
17808
17809
17810 if test $ac_cv_header_sys_time_h != yes; then
17811 HAVE_SYS_TIME_H=0
17812 fi
17813
17814
17815
17816
17817
17818 if test $ac_cv_header_sys_socket_h != yes; then
17819 for ac_header in winsock2.h
17820 do :
17821 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17822 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
17823 cat >>confdefs.h <<_ACEOF
17824 #define HAVE_WINSOCK2_H 1
17825 _ACEOF
17826
17827 fi
17828
17829 done
17830
17831 fi
17832 if test "$ac_cv_header_winsock2_h" = yes; then
17833 HAVE_WINSOCK2_H=1
17834 UNISTD_H_HAVE_WINSOCK2_H=1
17835 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
17836 else
17837 HAVE_WINSOCK2_H=0
17838 fi
17839
17840
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
17842 $as_echo_n "checking for struct timeval... " >&6; }
17843 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
17844 $as_echo_n "(cached) " >&6
17845 else
17846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17847 /* end confdefs.h. */
17848 #if HAVE_SYS_TIME_H
17849 #include <sys/time.h>
17850 #endif
17851 #include <time.h>
17852 #if HAVE_WINSOCK2_H
17853 # include <winsock2.h>
17854 #endif
17855
17856 int
17857 main ()
17858 {
17859 static struct timeval x; x.tv_sec = x.tv_usec;
17860 ;
17861 return 0;
17862 }
17863 _ACEOF
17864 if ac_fn_c_try_compile "$LINENO"; then :
17865 gl_cv_sys_struct_timeval=yes
17866 else
17867 gl_cv_sys_struct_timeval=no
17868 fi
17869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17870
17871 fi
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
17873 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
17874 if test $gl_cv_sys_struct_timeval != yes; then
17875 HAVE_STRUCT_TIMEVAL=0
17876 else
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
17878 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
17879 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
17880 $as_echo_n "(cached) " >&6
17881 else
17882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17883 /* end confdefs.h. */
17884 #if HAVE_SYS_TIME_H
17885 #include <sys/time.h>
17886 #endif
17887 #include <time.h>
17888 #if HAVE_WINSOCK2_H
17889 # include <winsock2.h>
17890 #endif
17891
17892 int
17893 main ()
17894 {
17895 static struct timeval x;
17896 typedef int verify_tv_sec_type[
17897 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
17898 ];
17899
17900 ;
17901 return 0;
17902 }
17903 _ACEOF
17904 if ac_fn_c_try_compile "$LINENO"; then :
17905 gl_cv_sys_struct_timeval_tv_sec=yes
17906 else
17907 gl_cv_sys_struct_timeval_tv_sec=no
17908 fi
17909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17910
17911 fi
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
17913 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
17914 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
17915 REPLACE_STRUCT_TIMEVAL=1
17916 fi
17917 fi
17918
17919
17920
17921
17922
17923
17924
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17926 $as_echo_n "checking for unsigned long long int... " >&6; }
17927 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17928 $as_echo_n "(cached) " >&6
17929 else
17930 ac_cv_type_unsigned_long_long_int=yes
17931 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17933 /* end confdefs.h. */
17934
17935 /* For now, do not test the preprocessor; as of 2007 there are too many
17936 implementations with broken preprocessors. Perhaps this can
17937 be revisited in 2012. In the meantime, code should not expect
17938 #if to work with literals wider than 32 bits. */
17939 /* Test literals. */
17940 long long int ll = 9223372036854775807ll;
17941 long long int nll = -9223372036854775807LL;
17942 unsigned long long int ull = 18446744073709551615ULL;
17943 /* Test constant expressions. */
17944 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17945 ? 1 : -1)];
17946 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17947 ? 1 : -1)];
17948 int i = 63;
17949 int
17950 main ()
17951 {
17952 /* Test availability of runtime routines for shift and division. */
17953 long long int llmax = 9223372036854775807ll;
17954 unsigned long long int ullmax = 18446744073709551615ull;
17955 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17956 | (llmax / ll) | (llmax % ll)
17957 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17958 | (ullmax / ull) | (ullmax % ull));
17959 ;
17960 return 0;
17961 }
17962
17963 _ACEOF
17964 if ac_fn_c_try_link "$LINENO"; then :
17965
17966 else
17967 ac_cv_type_unsigned_long_long_int=no
17968 fi
17969 rm -f core conftest.err conftest.$ac_objext \
17970 conftest$ac_exeext conftest.$ac_ext
17971 fi
17972 fi
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17974 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17975 if test $ac_cv_type_unsigned_long_long_int = yes; then
17976
17977 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17978
17979 fi
17980
17981
17982
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17984 $as_echo_n "checking for long long int... " >&6; }
17985 if test "${ac_cv_type_long_long_int+set}" = set; then :
17986 $as_echo_n "(cached) " >&6
17987 else
17988 ac_cv_type_long_long_int=yes
17989 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17990 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17991 if test $ac_cv_type_long_long_int = yes; then
17992 if test "$cross_compiling" = yes; then :
17993 :
17994 else
17995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17996 /* end confdefs.h. */
17997 #include <limits.h>
17998 #ifndef LLONG_MAX
17999 # define HALF \
18000 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18001 # define LLONG_MAX (HALF - 1 + HALF)
18002 #endif
18003 int
18004 main ()
18005 {
18006 long long int n = 1;
18007 int i;
18008 for (i = 0; ; i++)
18009 {
18010 long long int m = n << i;
18011 if (m >> i != n)
18012 return 1;
18013 if (LLONG_MAX / 2 < m)
18014 break;
18015 }
18016 return 0;
18017 ;
18018 return 0;
18019 }
18020 _ACEOF
18021 if ac_fn_c_try_run "$LINENO"; then :
18022
18023 else
18024 ac_cv_type_long_long_int=no
18025 fi
18026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18027 conftest.$ac_objext conftest.beam conftest.$ac_ext
18028 fi
18029
18030 fi
18031 fi
18032 fi
18033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18034 $as_echo "$ac_cv_type_long_long_int" >&6; }
18035 if test $ac_cv_type_long_long_int = yes; then
18036
18037 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18038
18039 fi
18040
18041
18042
18043
18044
18045
18046 gl_cv_c_multiarch=no
18047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18048 /* end confdefs.h. */
18049 #ifndef __APPLE_CC__
18050 not a universal capable compiler
18051 #endif
18052 typedef int dummy;
18053
18054 _ACEOF
18055 if ac_fn_c_try_compile "$LINENO"; then :
18056
18057 arch=
18058 prev=
18059 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18060 if test -n "$prev"; then
18061 case $word in
18062 i?86 | x86_64 | ppc | ppc64)
18063 if test -z "$arch" || test "$arch" = "$word"; then
18064 arch="$word"
18065 else
18066 gl_cv_c_multiarch=yes
18067 fi
18068 ;;
18069 esac
18070 prev=
18071 else
18072 if test "x$word" = "x-arch"; then
18073 prev=arch
18074 fi
18075 fi
18076 done
18077
18078 fi
18079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18080 if test $gl_cv_c_multiarch = yes; then
18081 APPLE_UNIVERSAL_BUILD=1
18082 else
18083 APPLE_UNIVERSAL_BUILD=0
18084 fi
18085
18086
18087
18088
18089
18090 if test $ac_cv_type_long_long_int = yes; then
18091 HAVE_LONG_LONG_INT=1
18092 else
18093 HAVE_LONG_LONG_INT=0
18094 fi
18095
18096
18097 if test $ac_cv_type_unsigned_long_long_int = yes; then
18098 HAVE_UNSIGNED_LONG_LONG_INT=1
18099 else
18100 HAVE_UNSIGNED_LONG_LONG_INT=0
18101 fi
18102
18103
18104
18105 if test $ac_cv_header_wchar_h = yes; then
18106 HAVE_WCHAR_H=1
18107 else
18108 HAVE_WCHAR_H=0
18109 fi
18110
18111
18112 if test $ac_cv_header_inttypes_h = yes; then
18113 HAVE_INTTYPES_H=1
18114 else
18115 HAVE_INTTYPES_H=0
18116 fi
18117
18118
18119 if test $ac_cv_header_sys_types_h = yes; then
18120 HAVE_SYS_TYPES_H=1
18121 else
18122 HAVE_SYS_TYPES_H=0
18123 fi
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135 if test $gl_cv_have_include_next = yes; then
18136 gl_cv_next_stdint_h='<'stdint.h'>'
18137 else
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18139 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18140 if test "${gl_cv_next_stdint_h+set}" = set; then :
18141 $as_echo_n "(cached) " >&6
18142 else
18143
18144 if test $ac_cv_header_stdint_h = yes; then
18145
18146
18147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18148 /* end confdefs.h. */
18149 #include <stdint.h>
18150
18151 _ACEOF
18152 case "$host_os" in
18153 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18154 *) gl_absname_cpp="$ac_cpp" ;;
18155 esac
18156
18157 case "$host_os" in
18158 mingw*)
18159 gl_dirsep_regex='[/\\]'
18160 ;;
18161 *)
18162 gl_dirsep_regex='\/'
18163 ;;
18164 esac
18165 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18166
18167 gl_header_literal_regex=`echo 'stdint.h' \
18168 | sed -e "$gl_make_literal_regex_sed"`
18169 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18170 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18171 s|^/[^/]|//&|
18172 p
18173 q
18174 }'
18175 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18176 sed -n "$gl_absolute_header_sed"`'"'
18177 else
18178 gl_cv_next_stdint_h='<'stdint.h'>'
18179 fi
18180
18181
18182 fi
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18184 $as_echo "$gl_cv_next_stdint_h" >&6; }
18185 fi
18186 NEXT_STDINT_H=$gl_cv_next_stdint_h
18187
18188 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18189 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18190 gl_next_as_first_directive='<'stdint.h'>'
18191 else
18192 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18193 gl_next_as_first_directive=$gl_cv_next_stdint_h
18194 fi
18195 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18196
18197
18198
18199
18200 if test $ac_cv_header_stdint_h = yes; then
18201 HAVE_STDINT_H=1
18202 else
18203 HAVE_STDINT_H=0
18204 fi
18205
18206
18207 if test $ac_cv_header_stdint_h = yes; then
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18209 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18210 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18211 $as_echo_n "(cached) " >&6
18212 else
18213 gl_cv_header_working_stdint_h=no
18214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18215 /* end confdefs.h. */
18216
18217
18218 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18219 #include <stdint.h>
18220 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18221 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18222 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18223 #endif
18224
18225
18226 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18227 included before <wchar.h>. */
18228 #include <stddef.h>
18229 #include <signal.h>
18230 #if HAVE_WCHAR_H
18231 # include <stdio.h>
18232 # include <time.h>
18233 # include <wchar.h>
18234 #endif
18235
18236
18237 #ifdef INT8_MAX
18238 int8_t a1 = INT8_MAX;
18239 int8_t a1min = INT8_MIN;
18240 #endif
18241 #ifdef INT16_MAX
18242 int16_t a2 = INT16_MAX;
18243 int16_t a2min = INT16_MIN;
18244 #endif
18245 #ifdef INT32_MAX
18246 int32_t a3 = INT32_MAX;
18247 int32_t a3min = INT32_MIN;
18248 #endif
18249 #ifdef INT64_MAX
18250 int64_t a4 = INT64_MAX;
18251 int64_t a4min = INT64_MIN;
18252 #endif
18253 #ifdef UINT8_MAX
18254 uint8_t b1 = UINT8_MAX;
18255 #else
18256 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18257 #endif
18258 #ifdef UINT16_MAX
18259 uint16_t b2 = UINT16_MAX;
18260 #endif
18261 #ifdef UINT32_MAX
18262 uint32_t b3 = UINT32_MAX;
18263 #endif
18264 #ifdef UINT64_MAX
18265 uint64_t b4 = UINT64_MAX;
18266 #endif
18267 int_least8_t c1 = INT8_C (0x7f);
18268 int_least8_t c1max = INT_LEAST8_MAX;
18269 int_least8_t c1min = INT_LEAST8_MIN;
18270 int_least16_t c2 = INT16_C (0x7fff);
18271 int_least16_t c2max = INT_LEAST16_MAX;
18272 int_least16_t c2min = INT_LEAST16_MIN;
18273 int_least32_t c3 = INT32_C (0x7fffffff);
18274 int_least32_t c3max = INT_LEAST32_MAX;
18275 int_least32_t c3min = INT_LEAST32_MIN;
18276 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18277 int_least64_t c4max = INT_LEAST64_MAX;
18278 int_least64_t c4min = INT_LEAST64_MIN;
18279 uint_least8_t d1 = UINT8_C (0xff);
18280 uint_least8_t d1max = UINT_LEAST8_MAX;
18281 uint_least16_t d2 = UINT16_C (0xffff);
18282 uint_least16_t d2max = UINT_LEAST16_MAX;
18283 uint_least32_t d3 = UINT32_C (0xffffffff);
18284 uint_least32_t d3max = UINT_LEAST32_MAX;
18285 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18286 uint_least64_t d4max = UINT_LEAST64_MAX;
18287 int_fast8_t e1 = INT_FAST8_MAX;
18288 int_fast8_t e1min = INT_FAST8_MIN;
18289 int_fast16_t e2 = INT_FAST16_MAX;
18290 int_fast16_t e2min = INT_FAST16_MIN;
18291 int_fast32_t e3 = INT_FAST32_MAX;
18292 int_fast32_t e3min = INT_FAST32_MIN;
18293 int_fast64_t e4 = INT_FAST64_MAX;
18294 int_fast64_t e4min = INT_FAST64_MIN;
18295 uint_fast8_t f1 = UINT_FAST8_MAX;
18296 uint_fast16_t f2 = UINT_FAST16_MAX;
18297 uint_fast32_t f3 = UINT_FAST32_MAX;
18298 uint_fast64_t f4 = UINT_FAST64_MAX;
18299 #ifdef INTPTR_MAX
18300 intptr_t g = INTPTR_MAX;
18301 intptr_t gmin = INTPTR_MIN;
18302 #endif
18303 #ifdef UINTPTR_MAX
18304 uintptr_t h = UINTPTR_MAX;
18305 #endif
18306 intmax_t i = INTMAX_MAX;
18307 uintmax_t j = UINTMAX_MAX;
18308
18309 #include <limits.h> /* for CHAR_BIT */
18310 #define TYPE_MINIMUM(t) \
18311 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18312 #define TYPE_MAXIMUM(t) \
18313 ((t) ((t) 0 < (t) -1 \
18314 ? (t) -1 \
18315 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18316 struct s {
18317 int check_PTRDIFF:
18318 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18319 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18320 ? 1 : -1;
18321 /* Detect bug in FreeBSD 6.0 / ia64. */
18322 int check_SIG_ATOMIC:
18323 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18324 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18325 ? 1 : -1;
18326 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18327 int check_WCHAR:
18328 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18329 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18330 ? 1 : -1;
18331 /* Detect bug in mingw. */
18332 int check_WINT:
18333 WINT_MIN == TYPE_MINIMUM (wint_t)
18334 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18335 ? 1 : -1;
18336
18337 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18338 int check_UINT8_C:
18339 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18340 int check_UINT16_C:
18341 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18342
18343 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18344 #ifdef UINT8_MAX
18345 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18346 #endif
18347 #ifdef UINT16_MAX
18348 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18349 #endif
18350 #ifdef UINT32_MAX
18351 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18352 #endif
18353 #ifdef UINT64_MAX
18354 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18355 #endif
18356 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18357 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18358 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18359 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18360 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18361 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18362 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18363 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18364 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18365 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18366 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18367 };
18368
18369 int
18370 main ()
18371 {
18372
18373 ;
18374 return 0;
18375 }
18376 _ACEOF
18377 if ac_fn_c_try_compile "$LINENO"; then :
18378 if test "$cross_compiling" = yes; then :
18379 gl_cv_header_working_stdint_h=yes
18380
18381 else
18382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18383 /* end confdefs.h. */
18384
18385
18386 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18387 #include <stdint.h>
18388
18389
18390 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18391 included before <wchar.h>. */
18392 #include <stddef.h>
18393 #include <signal.h>
18394 #if HAVE_WCHAR_H
18395 # include <stdio.h>
18396 # include <time.h>
18397 # include <wchar.h>
18398 #endif
18399
18400
18401 #include <stdio.h>
18402 #include <string.h>
18403 #define MVAL(macro) MVAL1(macro)
18404 #define MVAL1(expression) #expression
18405 static const char *macro_values[] =
18406 {
18407 #ifdef INT8_MAX
18408 MVAL (INT8_MAX),
18409 #endif
18410 #ifdef INT16_MAX
18411 MVAL (INT16_MAX),
18412 #endif
18413 #ifdef INT32_MAX
18414 MVAL (INT32_MAX),
18415 #endif
18416 #ifdef INT64_MAX
18417 MVAL (INT64_MAX),
18418 #endif
18419 #ifdef UINT8_MAX
18420 MVAL (UINT8_MAX),
18421 #endif
18422 #ifdef UINT16_MAX
18423 MVAL (UINT16_MAX),
18424 #endif
18425 #ifdef UINT32_MAX
18426 MVAL (UINT32_MAX),
18427 #endif
18428 #ifdef UINT64_MAX
18429 MVAL (UINT64_MAX),
18430 #endif
18431 NULL
18432 };
18433
18434 int
18435 main ()
18436 {
18437
18438 const char **mv;
18439 for (mv = macro_values; *mv != NULL; mv++)
18440 {
18441 const char *value = *mv;
18442 /* Test whether it looks like a cast expression. */
18443 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18444 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18445 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18446 || strncmp (value, "((int)"/*)*/, 6) == 0
18447 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18448 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18449 return mv - macro_values + 1;
18450 }
18451 return 0;
18452
18453 ;
18454 return 0;
18455 }
18456 _ACEOF
18457 if ac_fn_c_try_run "$LINENO"; then :
18458 gl_cv_header_working_stdint_h=yes
18459 fi
18460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18461 conftest.$ac_objext conftest.beam conftest.$ac_ext
18462 fi
18463
18464
18465 fi
18466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18467
18468 fi
18469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18470 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18471 fi
18472 if test "$gl_cv_header_working_stdint_h" = yes; then
18473 STDINT_H=
18474 else
18475 for ac_header in sys/inttypes.h sys/bitypes.h
18476 do :
18477 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18478 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18479 eval as_val=\$$as_ac_Header
18480 if test "x$as_val" = x""yes; then :
18481 cat >>confdefs.h <<_ACEOF
18482 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18483 _ACEOF
18484
18485 fi
18486
18487 done
18488
18489 if test $ac_cv_header_sys_inttypes_h = yes; then
18490 HAVE_SYS_INTTYPES_H=1
18491 else
18492 HAVE_SYS_INTTYPES_H=0
18493 fi
18494
18495 if test $ac_cv_header_sys_bitypes_h = yes; then
18496 HAVE_SYS_BITYPES_H=1
18497 else
18498 HAVE_SYS_BITYPES_H=0
18499 fi
18500
18501
18502
18503
18504 if test $APPLE_UNIVERSAL_BUILD = 0; then
18505
18506
18507 for gltype in ptrdiff_t size_t ; do
18508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18509 $as_echo_n "checking for bit size of $gltype... " >&6; }
18510 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18511 $as_echo_n "(cached) " >&6
18512 else
18513 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18514 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18515 included before <wchar.h>. */
18516 #include <stddef.h>
18517 #include <signal.h>
18518 #if HAVE_WCHAR_H
18519 # include <stdio.h>
18520 # include <time.h>
18521 # include <wchar.h>
18522 #endif
18523
18524 #include <limits.h>"; then :
18525
18526 else
18527 result=unknown
18528 fi
18529
18530 eval gl_cv_bitsizeof_${gltype}=\$result
18531
18532 fi
18533 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18535 $as_echo "$ac_res" >&6; }
18536 eval result=\$gl_cv_bitsizeof_${gltype}
18537 if test $result = unknown; then
18538 result=0
18539 fi
18540 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18541 cat >>confdefs.h <<_ACEOF
18542 #define BITSIZEOF_${GLTYPE} $result
18543 _ACEOF
18544
18545 eval BITSIZEOF_${GLTYPE}=\$result
18546 done
18547
18548
18549 fi
18550
18551
18552 for gltype in sig_atomic_t wchar_t wint_t ; do
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18554 $as_echo_n "checking for bit size of $gltype... " >&6; }
18555 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18556 $as_echo_n "(cached) " >&6
18557 else
18558 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18559 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18560 included before <wchar.h>. */
18561 #include <stddef.h>
18562 #include <signal.h>
18563 #if HAVE_WCHAR_H
18564 # include <stdio.h>
18565 # include <time.h>
18566 # include <wchar.h>
18567 #endif
18568
18569 #include <limits.h>"; then :
18570
18571 else
18572 result=unknown
18573 fi
18574
18575 eval gl_cv_bitsizeof_${gltype}=\$result
18576
18577 fi
18578 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18580 $as_echo "$ac_res" >&6; }
18581 eval result=\$gl_cv_bitsizeof_${gltype}
18582 if test $result = unknown; then
18583 result=0
18584 fi
18585 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18586 cat >>confdefs.h <<_ACEOF
18587 #define BITSIZEOF_${GLTYPE} $result
18588 _ACEOF
18589
18590 eval BITSIZEOF_${GLTYPE}=\$result
18591 done
18592
18593
18594
18595
18596 for gltype in sig_atomic_t wchar_t wint_t ; do
18597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18598 $as_echo_n "checking whether $gltype is signed... " >&6; }
18599 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18600 $as_echo_n "(cached) " >&6
18601 else
18602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18603 /* end confdefs.h. */
18604
18605 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18606 included before <wchar.h>. */
18607 #include <stddef.h>
18608 #include <signal.h>
18609 #if HAVE_WCHAR_H
18610 # include <stdio.h>
18611 # include <time.h>
18612 # include <wchar.h>
18613 #endif
18614
18615 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18616 int
18617 main ()
18618 {
18619
18620 ;
18621 return 0;
18622 }
18623 _ACEOF
18624 if ac_fn_c_try_compile "$LINENO"; then :
18625 result=yes
18626 else
18627 result=no
18628 fi
18629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18630 eval gl_cv_type_${gltype}_signed=\$result
18631
18632 fi
18633 eval ac_res=\$gl_cv_type_${gltype}_signed
18634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18635 $as_echo "$ac_res" >&6; }
18636 eval result=\$gl_cv_type_${gltype}_signed
18637 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18638 if test "$result" = yes; then
18639 cat >>confdefs.h <<_ACEOF
18640 #define HAVE_SIGNED_${GLTYPE} 1
18641 _ACEOF
18642
18643 eval HAVE_SIGNED_${GLTYPE}=1
18644 else
18645 eval HAVE_SIGNED_${GLTYPE}=0
18646 fi
18647 done
18648
18649
18650 gl_cv_type_ptrdiff_t_signed=yes
18651 gl_cv_type_size_t_signed=no
18652 if test $APPLE_UNIVERSAL_BUILD = 0; then
18653
18654
18655 for gltype in ptrdiff_t size_t ; do
18656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18657 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18658 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18659 $as_echo_n "(cached) " >&6
18660 else
18661 eval gl_cv_type_${gltype}_suffix=no
18662 eval result=\$gl_cv_type_${gltype}_signed
18663 if test "$result" = yes; then
18664 glsufu=
18665 else
18666 glsufu=u
18667 fi
18668 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18669 case $glsuf in
18670 '') gltype1='int';;
18671 l) gltype1='long int';;
18672 ll) gltype1='long long int';;
18673 i64) gltype1='__int64';;
18674 u) gltype1='unsigned int';;
18675 ul) gltype1='unsigned long int';;
18676 ull) gltype1='unsigned long long int';;
18677 ui64)gltype1='unsigned __int64';;
18678 esac
18679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18680 /* end confdefs.h. */
18681
18682 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18683 included before <wchar.h>. */
18684 #include <stddef.h>
18685 #include <signal.h>
18686 #if HAVE_WCHAR_H
18687 # include <stdio.h>
18688 # include <time.h>
18689 # include <wchar.h>
18690 #endif
18691
18692 extern $gltype foo;
18693 extern $gltype1 foo;
18694 int
18695 main ()
18696 {
18697
18698 ;
18699 return 0;
18700 }
18701 _ACEOF
18702 if ac_fn_c_try_compile "$LINENO"; then :
18703 eval gl_cv_type_${gltype}_suffix=\$glsuf
18704 fi
18705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18706 eval result=\$gl_cv_type_${gltype}_suffix
18707 test "$result" != no && break
18708 done
18709 fi
18710 eval ac_res=\$gl_cv_type_${gltype}_suffix
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18712 $as_echo "$ac_res" >&6; }
18713 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18714 eval result=\$gl_cv_type_${gltype}_suffix
18715 test "$result" = no && result=
18716 eval ${GLTYPE}_SUFFIX=\$result
18717 cat >>confdefs.h <<_ACEOF
18718 #define ${GLTYPE}_SUFFIX $result
18719 _ACEOF
18720
18721 done
18722
18723
18724 fi
18725
18726
18727 for gltype in sig_atomic_t wchar_t wint_t ; do
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18729 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18730 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18731 $as_echo_n "(cached) " >&6
18732 else
18733 eval gl_cv_type_${gltype}_suffix=no
18734 eval result=\$gl_cv_type_${gltype}_signed
18735 if test "$result" = yes; then
18736 glsufu=
18737 else
18738 glsufu=u
18739 fi
18740 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18741 case $glsuf in
18742 '') gltype1='int';;
18743 l) gltype1='long int';;
18744 ll) gltype1='long long int';;
18745 i64) gltype1='__int64';;
18746 u) gltype1='unsigned int';;
18747 ul) gltype1='unsigned long int';;
18748 ull) gltype1='unsigned long long int';;
18749 ui64)gltype1='unsigned __int64';;
18750 esac
18751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18752 /* end confdefs.h. */
18753
18754 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18755 included before <wchar.h>. */
18756 #include <stddef.h>
18757 #include <signal.h>
18758 #if HAVE_WCHAR_H
18759 # include <stdio.h>
18760 # include <time.h>
18761 # include <wchar.h>
18762 #endif
18763
18764 extern $gltype foo;
18765 extern $gltype1 foo;
18766 int
18767 main ()
18768 {
18769
18770 ;
18771 return 0;
18772 }
18773 _ACEOF
18774 if ac_fn_c_try_compile "$LINENO"; then :
18775 eval gl_cv_type_${gltype}_suffix=\$glsuf
18776 fi
18777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18778 eval result=\$gl_cv_type_${gltype}_suffix
18779 test "$result" != no && break
18780 done
18781 fi
18782 eval ac_res=\$gl_cv_type_${gltype}_suffix
18783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18784 $as_echo "$ac_res" >&6; }
18785 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18786 eval result=\$gl_cv_type_${gltype}_suffix
18787 test "$result" = no && result=
18788 eval ${GLTYPE}_SUFFIX=\$result
18789 cat >>confdefs.h <<_ACEOF
18790 #define ${GLTYPE}_SUFFIX $result
18791 _ACEOF
18792
18793 done
18794
18795
18796
18797 if test $BITSIZEOF_WINT_T -lt 32; then
18798 BITSIZEOF_WINT_T=32
18799 fi
18800
18801 STDINT_H=stdint.h
18802 fi
18803
18804 if test -n "$STDINT_H"; then
18805 GL_GENERATE_STDINT_H_TRUE=
18806 GL_GENERATE_STDINT_H_FALSE='#'
18807 else
18808 GL_GENERATE_STDINT_H_TRUE='#'
18809 GL_GENERATE_STDINT_H_FALSE=
18810 fi
18811
18812
18813
18814
18815
18816 GNULIB_IMAXABS=0;
18817 GNULIB_IMAXDIV=0;
18818 GNULIB_STRTOIMAX=0;
18819 GNULIB_STRTOUMAX=0;
18820 HAVE_DECL_IMAXABS=1;
18821 HAVE_DECL_IMAXDIV=1;
18822 HAVE_DECL_STRTOIMAX=1;
18823 HAVE_DECL_STRTOUMAX=1;
18824 REPLACE_STRTOIMAX=0;
18825 INT32_MAX_LT_INTMAX_MAX=1;
18826 INT64_MAX_EQ_LONG_MAX='defined _LP64';
18827 PRI_MACROS_BROKEN=0;
18828 PRIPTR_PREFIX=__PRIPTR_PREFIX;
18829 UINT32_MAX_LT_UINTMAX_MAX=1;
18830 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846 if test $gl_cv_have_include_next = yes; then
18847 gl_cv_next_inttypes_h='<'inttypes.h'>'
18848 else
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18850 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18851 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18852 $as_echo_n "(cached) " >&6
18853 else
18854
18855 if test $ac_cv_header_inttypes_h = yes; then
18856
18857
18858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18859 /* end confdefs.h. */
18860 #include <inttypes.h>
18861
18862 _ACEOF
18863 case "$host_os" in
18864 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18865 *) gl_absname_cpp="$ac_cpp" ;;
18866 esac
18867
18868 case "$host_os" in
18869 mingw*)
18870 gl_dirsep_regex='[/\\]'
18871 ;;
18872 *)
18873 gl_dirsep_regex='\/'
18874 ;;
18875 esac
18876 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18877
18878 gl_header_literal_regex=`echo 'inttypes.h' \
18879 | sed -e "$gl_make_literal_regex_sed"`
18880 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18881 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18882 s|^/[^/]|//&|
18883 p
18884 q
18885 }'
18886 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18887 sed -n "$gl_absolute_header_sed"`'"'
18888 else
18889 gl_cv_next_inttypes_h='<'inttypes.h'>'
18890 fi
18891
18892
18893 fi
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18895 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18896 fi
18897 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
18898
18899 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18900 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18901 gl_next_as_first_directive='<'inttypes.h'>'
18902 else
18903 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18904 gl_next_as_first_directive=$gl_cv_next_inttypes_h
18905 fi
18906 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918 case "$host_os" in
18919 mingw*)
18920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
18921 $as_echo_n "checking for 64-bit off_t... " >&6; }
18922 if test "${gl_cv_type_off_t_64+set}" = set; then :
18923 $as_echo_n "(cached) " >&6
18924 else
18925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18926 /* end confdefs.h. */
18927 #include <sys/types.h>
18928 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
18929
18930 int
18931 main ()
18932 {
18933
18934 ;
18935 return 0;
18936 }
18937 _ACEOF
18938 if ac_fn_c_try_compile "$LINENO"; then :
18939 gl_cv_type_off_t_64=yes
18940 else
18941 gl_cv_type_off_t_64=no
18942 fi
18943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18944
18945 fi
18946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
18947 $as_echo "$gl_cv_type_off_t_64" >&6; }
18948 if test $gl_cv_type_off_t_64 = no; then
18949 WINDOWS_64_BIT_OFF_T=1
18950 else
18951 WINDOWS_64_BIT_OFF_T=0
18952 fi
18953 WINDOWS_64_BIT_ST_SIZE=1
18954 ;;
18955 *)
18956 WINDOWS_64_BIT_OFF_T=0
18957 WINDOWS_64_BIT_ST_SIZE=0
18958 ;;
18959 esac
18960
18961
18962 GNULIB_FCHMODAT=0;
18963 GNULIB_FSTAT=0;
18964 GNULIB_FSTATAT=0;
18965 GNULIB_FUTIMENS=0;
18966 GNULIB_LCHMOD=0;
18967 GNULIB_LSTAT=0;
18968 GNULIB_MKDIRAT=0;
18969 GNULIB_MKFIFO=0;
18970 GNULIB_MKFIFOAT=0;
18971 GNULIB_MKNOD=0;
18972 GNULIB_MKNODAT=0;
18973 GNULIB_STAT=0;
18974 GNULIB_UTIMENSAT=0;
18975 HAVE_FCHMODAT=1;
18976 HAVE_FSTATAT=1;
18977 HAVE_FUTIMENS=1;
18978 HAVE_LCHMOD=1;
18979 HAVE_LSTAT=1;
18980 HAVE_MKDIRAT=1;
18981 HAVE_MKFIFO=1;
18982 HAVE_MKFIFOAT=1;
18983 HAVE_MKNOD=1;
18984 HAVE_MKNODAT=1;
18985 HAVE_UTIMENSAT=1;
18986 REPLACE_FSTAT=0;
18987 REPLACE_FSTATAT=0;
18988 REPLACE_FUTIMENS=0;
18989 REPLACE_LSTAT=0;
18990 REPLACE_MKDIR=0;
18991 REPLACE_MKFIFO=0;
18992 REPLACE_MKNOD=0;
18993 REPLACE_STAT=0;
18994 REPLACE_UTIMENSAT=0;
18995
18996
18997
18998
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
19000 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
19001 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
19002 $as_echo_n "(cached) " >&6
19003 else
19004 rm -f conftest.sym conftest.file
19005 echo >conftest.file
19006 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
19007 if test "$cross_compiling" = yes; then :
19008 case "$host_os" in
19009 # Guess yes on glibc systems.
19010 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
19011 # If we don't know, assume the worst.
19012 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
19013 esac
19014
19015 else
19016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19017 /* end confdefs.h. */
19018 $ac_includes_default
19019 int
19020 main ()
19021 {
19022 struct stat sbuf;
19023 /* Linux will dereference the symlink and fail, as required by
19024 POSIX. That is better in the sense that it means we will not
19025 have to compile and use the lstat wrapper. */
19026 return lstat ("conftest.sym/", &sbuf) == 0;
19027
19028 ;
19029 return 0;
19030 }
19031 _ACEOF
19032 if ac_fn_c_try_run "$LINENO"; then :
19033 gl_cv_func_lstat_dereferences_slashed_symlink=yes
19034 else
19035 gl_cv_func_lstat_dereferences_slashed_symlink=no
19036 fi
19037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19038 conftest.$ac_objext conftest.beam conftest.$ac_ext
19039 fi
19040
19041 else
19042 # If the 'ln -s' command failed, then we probably don't even
19043 # have an lstat function.
19044 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
19045 fi
19046 rm -f conftest.sym conftest.file
19047
19048 fi
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
19050 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19051 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19052 *yes)
19053
19054 cat >>confdefs.h <<_ACEOF
19055 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19056 _ACEOF
19057
19058 ;;
19059 esac
19060
19061
19062 GNULIB_MKTIME=0;
19063 GNULIB_NANOSLEEP=0;
19064 GNULIB_STRPTIME=0;
19065 GNULIB_TIMEGM=0;
19066 GNULIB_TIME_R=0;
19067 HAVE_DECL_LOCALTIME_R=1;
19068 HAVE_NANOSLEEP=1;
19069 HAVE_STRPTIME=1;
19070 HAVE_TIMEGM=1;
19071 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
19072 REPLACE_MKTIME=GNULIB_PORTCHECK;
19073 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
19074 REPLACE_TIMEGM=GNULIB_PORTCHECK;
19075
19076
19077
19078
19079 GNULIB_PSELECT=0;
19080 GNULIB_SELECT=0;
19081 HAVE_PSELECT=1;
19082 REPLACE_PSELECT=0;
19083 REPLACE_SELECT=0;
19084
19085
19086
19087
19088
19089
19090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
19091 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
19092 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
19093 $as_echo_n "(cached) " >&6
19094 else
19095
19096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19097 /* end confdefs.h. */
19098 #include <sys/select.h>
19099 int
19100 main ()
19101 {
19102 struct timeval b;
19103 ;
19104 return 0;
19105 }
19106 _ACEOF
19107 if ac_fn_c_try_compile "$LINENO"; then :
19108 gl_cv_header_sys_select_h_selfcontained=yes
19109 else
19110 gl_cv_header_sys_select_h_selfcontained=no
19111 fi
19112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19113 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
19114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19115 /* end confdefs.h. */
19116 #include <sys/select.h>
19117 int
19118 main ()
19119 {
19120 int memset; int bzero;
19121 ;
19122 return 0;
19123 }
19124
19125 _ACEOF
19126 if ac_fn_c_try_compile "$LINENO"; then :
19127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19128 /* end confdefs.h. */
19129 #include <sys/select.h>
19130 int
19131 main ()
19132 {
19133
19134 #undef memset
19135 #define memset nonexistent_memset
19136 extern
19137 #ifdef __cplusplus
19138 "C"
19139 #endif
19140 void *memset (void *, int, unsigned long);
19141 #undef bzero
19142 #define bzero nonexistent_bzero
19143 extern
19144 #ifdef __cplusplus
19145 "C"
19146 #endif
19147 void bzero (void *, unsigned long);
19148 fd_set fds;
19149 FD_ZERO (&fds);
19150
19151 ;
19152 return 0;
19153 }
19154
19155 _ACEOF
19156 if ac_fn_c_try_link "$LINENO"; then :
19157
19158 else
19159 gl_cv_header_sys_select_h_selfcontained=no
19160 fi
19161 rm -f core conftest.err conftest.$ac_objext \
19162 conftest$ac_exeext conftest.$ac_ext
19163
19164 fi
19165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19166 fi
19167
19168 fi
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
19170 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180 if test $gl_cv_have_include_next = yes; then
19181 gl_cv_next_sys_select_h='<'sys/select.h'>'
19182 else
19183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
19184 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
19185 if test "${gl_cv_next_sys_select_h+set}" = set; then :
19186 $as_echo_n "(cached) " >&6
19187 else
19188
19189 if test $ac_cv_header_sys_select_h = yes; then
19190
19191
19192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19193 /* end confdefs.h. */
19194 #include <sys/select.h>
19195
19196 _ACEOF
19197 case "$host_os" in
19198 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19199 *) gl_absname_cpp="$ac_cpp" ;;
19200 esac
19201
19202 case "$host_os" in
19203 mingw*)
19204 gl_dirsep_regex='[/\\]'
19205 ;;
19206 *)
19207 gl_dirsep_regex='\/'
19208 ;;
19209 esac
19210 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19211
19212 gl_header_literal_regex=`echo 'sys/select.h' \
19213 | sed -e "$gl_make_literal_regex_sed"`
19214 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19215 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19216 s|^/[^/]|//&|
19217 p
19218 q
19219 }'
19220 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19221 sed -n "$gl_absolute_header_sed"`'"'
19222 else
19223 gl_cv_next_sys_select_h='<'sys/select.h'>'
19224 fi
19225
19226
19227 fi
19228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
19229 $as_echo "$gl_cv_next_sys_select_h" >&6; }
19230 fi
19231 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
19232
19233 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19234 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19235 gl_next_as_first_directive='<'sys/select.h'>'
19236 else
19237 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19238 gl_next_as_first_directive=$gl_cv_next_sys_select_h
19239 fi
19240 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
19241
19242
19243
19244
19245 if test $ac_cv_header_sys_select_h = yes; then
19246 HAVE_SYS_SELECT_H=1
19247 else
19248 HAVE_SYS_SELECT_H=0
19249 fi
19250
19251
19252
19253
19254
19255 if test $ac_cv_header_sys_socket_h != yes; then
19256 for ac_header in winsock2.h
19257 do :
19258 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19259 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
19260 cat >>confdefs.h <<_ACEOF
19261 #define HAVE_WINSOCK2_H 1
19262 _ACEOF
19263
19264 fi
19265
19266 done
19267
19268 fi
19269 if test "$ac_cv_header_winsock2_h" = yes; then
19270 HAVE_WINSOCK2_H=1
19271 UNISTD_H_HAVE_WINSOCK2_H=1
19272 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19273 else
19274 HAVE_WINSOCK2_H=0
19275 fi
19276
19277
19278
19279
19280
19281
19282
19283
19284 GNULIB_PTHREAD_SIGMASK=0;
19285 GNULIB_RAISE=0;
19286 GNULIB_SIGNAL_H_SIGPIPE=0;
19287 GNULIB_SIGPROCMASK=0;
19288 GNULIB_SIGACTION=0;
19289 HAVE_POSIX_SIGNALBLOCKING=1;
19290 HAVE_PTHREAD_SIGMASK=1;
19291 HAVE_RAISE=1;
19292 HAVE_SIGSET_T=1;
19293 HAVE_SIGINFO_T=1;
19294 HAVE_SIGACTION=1;
19295 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
19296
19297 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
19298
19299 HAVE_SIGHANDLER_T=1;
19300 REPLACE_PTHREAD_SIGMASK=0;
19301 REPLACE_RAISE=0;
19302
19303
19304
19305
19306
19307
19308
19309 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19310 #include <signal.h>
19311 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19312 #include <sys/types.h>
19313
19314 "
19315 if test "x$ac_cv_type_sigset_t" = x""yes; then :
19316
19317 cat >>confdefs.h <<_ACEOF
19318 #define HAVE_SIGSET_T 1
19319 _ACEOF
19320
19321 gl_cv_type_sigset_t=yes
19322 else
19323 gl_cv_type_sigset_t=no
19324 fi
19325
19326 if test $gl_cv_type_sigset_t != yes; then
19327 HAVE_SIGSET_T=0
19328 fi
19329
19330
19331
19332 if test $ac_cv_header_sys_socket_h = no; then
19333 for ac_header in ws2tcpip.h
19334 do :
19335 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19336 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
19337 cat >>confdefs.h <<_ACEOF
19338 #define HAVE_WS2TCPIP_H 1
19339 _ACEOF
19340
19341 fi
19342
19343 done
19344
19345 fi
19346
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19348 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19349 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19350 $as_echo_n "(cached) " >&6
19351 else
19352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19353 /* end confdefs.h. */
19354
19355 #include <stdbool.h>
19356 #ifndef bool
19357 "error: bool is not defined"
19358 #endif
19359 #ifndef false
19360 "error: false is not defined"
19361 #endif
19362 #if false
19363 "error: false is not 0"
19364 #endif
19365 #ifndef true
19366 "error: true is not defined"
19367 #endif
19368 #if true != 1
19369 "error: true is not 1"
19370 #endif
19371 #ifndef __bool_true_false_are_defined
19372 "error: __bool_true_false_are_defined is not defined"
19373 #endif
19374
19375 struct s { _Bool s: 1; _Bool t; } s;
19376
19377 char a[true == 1 ? 1 : -1];
19378 char b[false == 0 ? 1 : -1];
19379 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19380 char d[(bool) 0.5 == true ? 1 : -1];
19381 /* See body of main program for 'e'. */
19382 char f[(_Bool) 0.0 == false ? 1 : -1];
19383 char g[true];
19384 char h[sizeof (_Bool)];
19385 char i[sizeof s.t];
19386 enum { j = false, k = true, l = false * true, m = true * 256 };
19387 /* The following fails for
19388 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19389 _Bool n[m];
19390 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19391 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19392 /* Catch a bug in an HP-UX C compiler. See
19393 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19394 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19395 */
19396 _Bool q = true;
19397 _Bool *pq = &q;
19398
19399 int
19400 main ()
19401 {
19402
19403 bool e = &s;
19404 *pq |= q;
19405 *pq |= ! q;
19406 /* Refer to every declared value, to avoid compiler optimizations. */
19407 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19408 + !m + !n + !o + !p + !q + !pq);
19409
19410 ;
19411 return 0;
19412 }
19413 _ACEOF
19414 if ac_fn_c_try_compile "$LINENO"; then :
19415 ac_cv_header_stdbool_h=yes
19416 else
19417 ac_cv_header_stdbool_h=no
19418 fi
19419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19420 fi
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19422 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19423 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19424 if test "x$ac_cv_type__Bool" = x""yes; then :
19425
19426 cat >>confdefs.h <<_ACEOF
19427 #define HAVE__BOOL 1
19428 _ACEOF
19429
19430
19431 fi
19432
19433
19434
19435 REPLACE_NULL=0;
19436 HAVE_WCHAR_T=1;
19437
19438
19439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19440 $as_echo_n "checking for wchar_t... " >&6; }
19441 if test "${gt_cv_c_wchar_t+set}" = set; then :
19442 $as_echo_n "(cached) " >&6
19443 else
19444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19445 /* end confdefs.h. */
19446 #include <stddef.h>
19447 wchar_t foo = (wchar_t)'\0';
19448 int
19449 main ()
19450 {
19451
19452 ;
19453 return 0;
19454 }
19455 _ACEOF
19456 if ac_fn_c_try_compile "$LINENO"; then :
19457 gt_cv_c_wchar_t=yes
19458 else
19459 gt_cv_c_wchar_t=no
19460 fi
19461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19462 fi
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19464 $as_echo "$gt_cv_c_wchar_t" >&6; }
19465 if test $gt_cv_c_wchar_t = yes; then
19466
19467 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19468
19469 fi
19470
19471
19472 GNULIB_DPRINTF=0;
19473 GNULIB_FCLOSE=0;
19474 GNULIB_FDOPEN=0;
19475 GNULIB_FFLUSH=0;
19476 GNULIB_FGETC=0;
19477 GNULIB_FGETS=0;
19478 GNULIB_FOPEN=0;
19479 GNULIB_FPRINTF=0;
19480 GNULIB_FPRINTF_POSIX=0;
19481 GNULIB_FPURGE=0;
19482 GNULIB_FPUTC=0;
19483 GNULIB_FPUTS=0;
19484 GNULIB_FREAD=0;
19485 GNULIB_FREOPEN=0;
19486 GNULIB_FSCANF=0;
19487 GNULIB_FSEEK=0;
19488 GNULIB_FSEEKO=0;
19489 GNULIB_FTELL=0;
19490 GNULIB_FTELLO=0;
19491 GNULIB_FWRITE=0;
19492 GNULIB_GETC=0;
19493 GNULIB_GETCHAR=0;
19494 GNULIB_GETDELIM=0;
19495 GNULIB_GETLINE=0;
19496 GNULIB_OBSTACK_PRINTF=0;
19497 GNULIB_OBSTACK_PRINTF_POSIX=0;
19498 GNULIB_PCLOSE=0;
19499 GNULIB_PERROR=0;
19500 GNULIB_POPEN=0;
19501 GNULIB_PRINTF=0;
19502 GNULIB_PRINTF_POSIX=0;
19503 GNULIB_PUTC=0;
19504 GNULIB_PUTCHAR=0;
19505 GNULIB_PUTS=0;
19506 GNULIB_REMOVE=0;
19507 GNULIB_RENAME=0;
19508 GNULIB_RENAMEAT=0;
19509 GNULIB_SCANF=0;
19510 GNULIB_SNPRINTF=0;
19511 GNULIB_SPRINTF_POSIX=0;
19512 GNULIB_STDIO_H_NONBLOCKING=0;
19513 GNULIB_STDIO_H_SIGPIPE=0;
19514 GNULIB_TMPFILE=0;
19515 GNULIB_VASPRINTF=0;
19516 GNULIB_VFSCANF=0;
19517 GNULIB_VSCANF=0;
19518 GNULIB_VDPRINTF=0;
19519 GNULIB_VFPRINTF=0;
19520 GNULIB_VFPRINTF_POSIX=0;
19521 GNULIB_VPRINTF=0;
19522 GNULIB_VPRINTF_POSIX=0;
19523 GNULIB_VSNPRINTF=0;
19524 GNULIB_VSPRINTF_POSIX=0;
19525 HAVE_DECL_FPURGE=1;
19526 HAVE_DECL_FSEEKO=1;
19527 HAVE_DECL_FTELLO=1;
19528 HAVE_DECL_GETDELIM=1;
19529 HAVE_DECL_GETLINE=1;
19530 HAVE_DECL_OBSTACK_PRINTF=1;
19531 HAVE_DECL_SNPRINTF=1;
19532 HAVE_DECL_VSNPRINTF=1;
19533 HAVE_DPRINTF=1;
19534 HAVE_FSEEKO=1;
19535 HAVE_FTELLO=1;
19536 HAVE_PCLOSE=1;
19537 HAVE_POPEN=1;
19538 HAVE_RENAMEAT=1;
19539 HAVE_VASPRINTF=1;
19540 HAVE_VDPRINTF=1;
19541 REPLACE_DPRINTF=0;
19542 REPLACE_FCLOSE=0;
19543 REPLACE_FDOPEN=0;
19544 REPLACE_FFLUSH=0;
19545 REPLACE_FOPEN=0;
19546 REPLACE_FPRINTF=0;
19547 REPLACE_FPURGE=0;
19548 REPLACE_FREOPEN=0;
19549 REPLACE_FSEEK=0;
19550 REPLACE_FSEEKO=0;
19551 REPLACE_FTELL=0;
19552 REPLACE_FTELLO=0;
19553 REPLACE_GETDELIM=0;
19554 REPLACE_GETLINE=0;
19555 REPLACE_OBSTACK_PRINTF=0;
19556 REPLACE_PERROR=0;
19557 REPLACE_POPEN=0;
19558 REPLACE_PRINTF=0;
19559 REPLACE_REMOVE=0;
19560 REPLACE_RENAME=0;
19561 REPLACE_RENAMEAT=0;
19562 REPLACE_SNPRINTF=0;
19563 REPLACE_SPRINTF=0;
19564 REPLACE_STDIO_READ_FUNCS=0;
19565 REPLACE_STDIO_WRITE_FUNCS=0;
19566 REPLACE_TMPFILE=0;
19567 REPLACE_VASPRINTF=0;
19568 REPLACE_VDPRINTF=0;
19569 REPLACE_VFPRINTF=0;
19570 REPLACE_VPRINTF=0;
19571 REPLACE_VSNPRINTF=0;
19572 REPLACE_VSPRINTF=0;
19573
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19575 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19576 if test "${ac_cv_struct_tm+set}" = set; then :
19577 $as_echo_n "(cached) " >&6
19578 else
19579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19580 /* end confdefs.h. */
19581 #include <sys/types.h>
19582 #include <time.h>
19583
19584 int
19585 main ()
19586 {
19587 struct tm tm;
19588 int *p = &tm.tm_sec;
19589 return !p;
19590 ;
19591 return 0;
19592 }
19593 _ACEOF
19594 if ac_fn_c_try_compile "$LINENO"; then :
19595 ac_cv_struct_tm=time.h
19596 else
19597 ac_cv_struct_tm=sys/time.h
19598 fi
19599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19600 fi
19601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19602 $as_echo "$ac_cv_struct_tm" >&6; }
19603 if test $ac_cv_struct_tm = sys/time.h; then
19604
19605 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19606
19607 fi
19608
19609 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19610 #include <$ac_cv_struct_tm>
19611
19612 "
19613 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
19614
19615 cat >>confdefs.h <<_ACEOF
19616 #define HAVE_STRUCT_TM_TM_ZONE 1
19617 _ACEOF
19618
19619
19620 fi
19621
19622 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19623
19624 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19625
19626 else
19627 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19628 "
19629 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
19630 ac_have_decl=1
19631 else
19632 ac_have_decl=0
19633 fi
19634
19635 cat >>confdefs.h <<_ACEOF
19636 #define HAVE_DECL_TZNAME $ac_have_decl
19637 _ACEOF
19638
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19640 $as_echo_n "checking for tzname... " >&6; }
19641 if test "${ac_cv_var_tzname+set}" = set; then :
19642 $as_echo_n "(cached) " >&6
19643 else
19644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19645 /* end confdefs.h. */
19646 #include <time.h>
19647 #if !HAVE_DECL_TZNAME
19648 extern char *tzname[];
19649 #endif
19650
19651 int
19652 main ()
19653 {
19654 return tzname[0][0];
19655 ;
19656 return 0;
19657 }
19658 _ACEOF
19659 if ac_fn_c_try_link "$LINENO"; then :
19660 ac_cv_var_tzname=yes
19661 else
19662 ac_cv_var_tzname=no
19663 fi
19664 rm -f core conftest.err conftest.$ac_objext \
19665 conftest$ac_exeext conftest.$ac_ext
19666 fi
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19668 $as_echo "$ac_cv_var_tzname" >&6; }
19669 if test $ac_cv_var_tzname = yes; then
19670
19671 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19672
19673 fi
19674 fi
19675
19676
19677 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19678 "
19679 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
19680
19681 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19682
19683 fi
19684
19685
19686
19687
19688 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19689 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
19690 ac_have_decl=1
19691 else
19692 ac_have_decl=0
19693 fi
19694
19695 cat >>confdefs.h <<_ACEOF
19696 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19697 _ACEOF
19698
19699
19700
19701 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19702 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
19703 ac_have_decl=1
19704 else
19705 ac_have_decl=0
19706 fi
19707
19708 cat >>confdefs.h <<_ACEOF
19709 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19710 _ACEOF
19711
19712
19713
19714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19715 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19716 if test "${ac_cv_header_stat_broken+set}" = set; then :
19717 $as_echo_n "(cached) " >&6
19718 else
19719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19720 /* end confdefs.h. */
19721 #include <sys/types.h>
19722 #include <sys/stat.h>
19723
19724 #if defined S_ISBLK && defined S_IFDIR
19725 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19726 #endif
19727
19728 #if defined S_ISBLK && defined S_IFCHR
19729 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19730 #endif
19731
19732 #if defined S_ISLNK && defined S_IFREG
19733 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19734 #endif
19735
19736 #if defined S_ISSOCK && defined S_IFREG
19737 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19738 #endif
19739
19740 _ACEOF
19741 if ac_fn_c_try_compile "$LINENO"; then :
19742 ac_cv_header_stat_broken=no
19743 else
19744 ac_cv_header_stat_broken=yes
19745 fi
19746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19747 fi
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19749 $as_echo "$ac_cv_header_stat_broken" >&6; }
19750 if test $ac_cv_header_stat_broken = yes; then
19751
19752 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19753
19754 fi
19755
19756
19757
19758
19759
19760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19761 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19762 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19763 $as_echo_n "(cached) " >&6
19764 else
19765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19766 /* end confdefs.h. */
19767 #include <time.h>
19768
19769 int
19770 main ()
19771 {
19772 static struct timespec x; x.tv_sec = x.tv_nsec;
19773 ;
19774 return 0;
19775 }
19776 _ACEOF
19777 if ac_fn_c_try_compile "$LINENO"; then :
19778 gl_cv_sys_struct_timespec_in_time_h=yes
19779 else
19780 gl_cv_sys_struct_timespec_in_time_h=no
19781 fi
19782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19783 fi
19784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19785 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19786
19787 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19788 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19789 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19790 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19791 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19792 else
19793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19794 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19795 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19796 $as_echo_n "(cached) " >&6
19797 else
19798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19799 /* end confdefs.h. */
19800 #include <sys/time.h>
19801
19802 int
19803 main ()
19804 {
19805 static struct timespec x; x.tv_sec = x.tv_nsec;
19806 ;
19807 return 0;
19808 }
19809 _ACEOF
19810 if ac_fn_c_try_compile "$LINENO"; then :
19811 gl_cv_sys_struct_timespec_in_sys_time_h=yes
19812 else
19813 gl_cv_sys_struct_timespec_in_sys_time_h=no
19814 fi
19815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19816 fi
19817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19818 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19819 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19820 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19821 else
19822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19823 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19824 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19825 $as_echo_n "(cached) " >&6
19826 else
19827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19828 /* end confdefs.h. */
19829 #include <pthread.h>
19830
19831 int
19832 main ()
19833 {
19834 static struct timespec x; x.tv_sec = x.tv_nsec;
19835 ;
19836 return 0;
19837 }
19838 _ACEOF
19839 if ac_fn_c_try_compile "$LINENO"; then :
19840 gl_cv_sys_struct_timespec_in_pthread_h=yes
19841 else
19842 gl_cv_sys_struct_timespec_in_pthread_h=no
19843 fi
19844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19845 fi
19846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19847 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19848 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19849 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19850 fi
19851 fi
19852 fi
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868 if test $gl_cv_have_include_next = yes; then
19869 gl_cv_next_time_h='<'time.h'>'
19870 else
19871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19872 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19873 if test "${gl_cv_next_time_h+set}" = set; then :
19874 $as_echo_n "(cached) " >&6
19875 else
19876
19877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19878 /* end confdefs.h. */
19879 #include <time.h>
19880
19881 _ACEOF
19882 case "$host_os" in
19883 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19884 *) gl_absname_cpp="$ac_cpp" ;;
19885 esac
19886
19887 case "$host_os" in
19888 mingw*)
19889 gl_dirsep_regex='[/\\]'
19890 ;;
19891 *)
19892 gl_dirsep_regex='\/'
19893 ;;
19894 esac
19895 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19896
19897 gl_header_literal_regex=`echo 'time.h' \
19898 | sed -e "$gl_make_literal_regex_sed"`
19899 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19900 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19901 s|^/[^/]|//&|
19902 p
19903 q
19904 }'
19905 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19906 sed -n "$gl_absolute_header_sed"`'"'
19907
19908
19909 fi
19910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19911 $as_echo "$gl_cv_next_time_h" >&6; }
19912 fi
19913 NEXT_TIME_H=$gl_cv_next_time_h
19914
19915 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19916 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19917 gl_next_as_first_directive='<'time.h'>'
19918 else
19919 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19920 gl_next_as_first_directive=$gl_cv_next_time_h
19921 fi
19922 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
19939 $as_echo_n "checking whether the utimes function works... " >&6; }
19940 if test "${gl_cv_func_working_utimes+set}" = set; then :
19941 $as_echo_n "(cached) " >&6
19942 else
19943
19944 if test "$cross_compiling" = yes; then :
19945 gl_cv_func_working_utimes=no
19946 else
19947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19948 /* end confdefs.h. */
19949
19950 #include <sys/types.h>
19951 #include <sys/stat.h>
19952 #include <fcntl.h>
19953 #include <sys/time.h>
19954 #include <time.h>
19955 #include <unistd.h>
19956 #include <stdlib.h>
19957 #include <stdio.h>
19958 #include <utime.h>
19959
19960 static int
19961 inorder (time_t a, time_t b, time_t c)
19962 {
19963 return a <= b && b <= c;
19964 }
19965
19966 int
19967 main ()
19968 {
19969 int result = 0;
19970 char const *file = "conftest.utimes";
19971 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
19972
19973 /* Test whether utimes() essentially works. */
19974 {
19975 struct stat sbuf;
19976 FILE *f = fopen (file, "w");
19977 if (f == NULL)
19978 result |= 1;
19979 else if (fclose (f) != 0)
19980 result |= 1;
19981 else if (utimes (file, timeval) != 0)
19982 result |= 2;
19983 else if (lstat (file, &sbuf) != 0)
19984 result |= 1;
19985 else if (!(sbuf.st_atime == timeval[0].tv_sec
19986 && sbuf.st_mtime == timeval[1].tv_sec))
19987 result |= 4;
19988 if (unlink (file) != 0)
19989 result |= 1;
19990 }
19991
19992 /* Test whether utimes() with a NULL argument sets the file's timestamp
19993 to the current time. Use 'fstat' as well as 'time' to
19994 determine the "current" time, to accommodate NFS file systems
19995 if there is a time skew between the host and the NFS server. */
19996 {
19997 int fd = open (file, O_WRONLY|O_CREAT, 0644);
19998 if (fd < 0)
19999 result |= 1;
20000 else
20001 {
20002 time_t t0, t2;
20003 struct stat st0, st1, st2;
20004 if (time (&t0) == (time_t) -1)
20005 result |= 1;
20006 else if (fstat (fd, &st0) != 0)
20007 result |= 1;
20008 else if (utimes (file, timeval) != 0)
20009 result |= 2;
20010 else if (utimes (file, NULL) != 0)
20011 result |= 8;
20012 else if (fstat (fd, &st1) != 0)
20013 result |= 1;
20014 else if (write (fd, "\n", 1) != 1)
20015 result |= 1;
20016 else if (fstat (fd, &st2) != 0)
20017 result |= 1;
20018 else if (time (&t2) == (time_t) -1)
20019 result |= 1;
20020 else
20021 {
20022 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
20023 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
20024 if (! (st1.st_atime == st1.st_mtime))
20025 result |= 16;
20026 if (! (m_ok_POSIX || m_ok_NFS))
20027 result |= 32;
20028 }
20029 if (close (fd) != 0)
20030 result |= 1;
20031 }
20032 if (unlink (file) != 0)
20033 result |= 1;
20034 }
20035
20036 /* Test whether utimes() with a NULL argument works on read-only files. */
20037 {
20038 int fd = open (file, O_WRONLY|O_CREAT, 0444);
20039 if (fd < 0)
20040 result |= 1;
20041 else if (close (fd) != 0)
20042 result |= 1;
20043 else if (utimes (file, NULL) != 0)
20044 result |= 64;
20045 if (unlink (file) != 0)
20046 result |= 1;
20047 }
20048
20049 return result;
20050 }
20051
20052 _ACEOF
20053 if ac_fn_c_try_run "$LINENO"; then :
20054 gl_cv_func_working_utimes=yes
20055 else
20056 gl_cv_func_working_utimes=no
20057 fi
20058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20059 conftest.$ac_objext conftest.beam conftest.$ac_ext
20060 fi
20061
20062 fi
20063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
20064 $as_echo "$gl_cv_func_working_utimes" >&6; }
20065
20066 if test $gl_cv_func_working_utimes = yes; then
20067
20068 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
20069
20070 fi
20071
20072
20073
20074
20075
20076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
20077 $as_echo_n "checking for struct utimbuf... " >&6; }
20078 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
20079 $as_echo_n "(cached) " >&6
20080 else
20081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20082 /* end confdefs.h. */
20083 #if HAVE_SYS_TIME_H
20084 #include <sys/time.h>
20085 #endif
20086 #include <time.h>
20087 #ifdef HAVE_UTIME_H
20088 #include <utime.h>
20089 #endif
20090
20091 int
20092 main ()
20093 {
20094 static struct utimbuf x; x.actime = x.modtime;
20095 ;
20096 return 0;
20097 }
20098 _ACEOF
20099 if ac_fn_c_try_compile "$LINENO"; then :
20100 gl_cv_sys_struct_utimbuf=yes
20101 else
20102 gl_cv_sys_struct_utimbuf=no
20103 fi
20104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20105 fi
20106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
20107 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
20108
20109 if test $gl_cv_sys_struct_utimbuf = yes; then
20110
20111 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
20112
20113 fi
20114
20115
20116
20117
20118
20119
20120
20121
20122
20123
20124
20125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
20126 $as_echo_n "checking type of array argument to getgroups... " >&6; }
20127 if test "${ac_cv_type_getgroups+set}" = set; then :
20128 $as_echo_n "(cached) " >&6
20129 else
20130 if test "$cross_compiling" = yes; then :
20131 ac_cv_type_getgroups=cross
20132 else
20133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20134 /* end confdefs.h. */
20135 /* Thanks to Mike Rendell for this test. */
20136 $ac_includes_default
20137 #define NGID 256
20138 #undef MAX
20139 #define MAX(x, y) ((x) > (y) ? (x) : (y))
20140
20141 int
20142 main ()
20143 {
20144 gid_t gidset[NGID];
20145 int i, n;
20146 union { gid_t gval; long int lval; } val;
20147
20148 val.lval = -1;
20149 for (i = 0; i < NGID; i++)
20150 gidset[i] = val.gval;
20151 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
20152 gidset);
20153 /* Exit non-zero if getgroups seems to require an array of ints. This
20154 happens when gid_t is short int but getgroups modifies an array
20155 of ints. */
20156 return n > 0 && gidset[n] != val.gval;
20157 }
20158 _ACEOF
20159 if ac_fn_c_try_run "$LINENO"; then :
20160 ac_cv_type_getgroups=gid_t
20161 else
20162 ac_cv_type_getgroups=int
20163 fi
20164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20165 conftest.$ac_objext conftest.beam conftest.$ac_ext
20166 fi
20167
20168 if test $ac_cv_type_getgroups = cross; then
20169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20170 /* end confdefs.h. */
20171 #include <unistd.h>
20172
20173 _ACEOF
20174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20175 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
20176 ac_cv_type_getgroups=gid_t
20177 else
20178 ac_cv_type_getgroups=int
20179 fi
20180 rm -f conftest*
20181
20182 fi
20183 fi
20184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
20185 $as_echo "$ac_cv_type_getgroups" >&6; }
20186
20187 cat >>confdefs.h <<_ACEOF
20188 #define GETGROUPS_T $ac_cv_type_getgroups
20189 _ACEOF
20190
20191
20192
20193
20194 if false; then
20195 GL_COND_LIBTOOL_TRUE=
20196 GL_COND_LIBTOOL_FALSE='#'
20197 else
20198 GL_COND_LIBTOOL_TRUE='#'
20199 GL_COND_LIBTOOL_FALSE=
20200 fi
20201
20202 gl_cond_libtool=false
20203 gl_libdeps=
20204 gl_ltlibdeps=
20205 gl_m4_base='m4'
20206
20207
20208
20209
20210
20211
20212
20213
20214
20215 gl_source_base='lib'
20216
20217
20218 if test $ac_cv_func_alloca_works = no; then
20219 :
20220 fi
20221
20222 # Define an additional variable used in the Makefile substitution.
20223 if test $ac_cv_working_alloca_h = yes; then
20224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20225 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20226 if test "${gl_cv_rpl_alloca+set}" = set; then :
20227 $as_echo_n "(cached) " >&6
20228 else
20229
20230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20231 /* end confdefs.h. */
20232
20233 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20234 Need own alloca
20235 #endif
20236
20237 _ACEOF
20238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20239 $EGREP "Need own alloca" >/dev/null 2>&1; then :
20240 gl_cv_rpl_alloca=yes
20241 else
20242 gl_cv_rpl_alloca=no
20243 fi
20244 rm -f conftest*
20245
20246
20247 fi
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20249 $as_echo "$gl_cv_rpl_alloca" >&6; }
20250 if test $gl_cv_rpl_alloca = yes; then
20251
20252 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20253
20254 ALLOCA_H=alloca.h
20255 else
20256 ALLOCA_H=
20257 fi
20258 else
20259 ALLOCA_H=alloca.h
20260 fi
20261
20262 if test -n "$ALLOCA_H"; then
20263 GL_GENERATE_ALLOCA_H_TRUE=
20264 GL_GENERATE_ALLOCA_H_FALSE='#'
20265 else
20266 GL_GENERATE_ALLOCA_H_TRUE='#'
20267 GL_GENERATE_ALLOCA_H_FALSE=
20268 fi
20269
20270
20271
20272
20273
20274
20275 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
20276 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
20277
20278 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
20279 # programs in the package would end up linked with that potentially-shared
20280 # library, inducing unnecessary run-time overhead.
20281 LIB_CLOCK_GETTIME=
20282
20283 gl_saved_libs=$LIBS
20284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20285 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20286 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20287 $as_echo_n "(cached) " >&6
20288 else
20289 ac_func_search_save_LIBS=$LIBS
20290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20291 /* end confdefs.h. */
20292
20293 /* Override any GCC internal prototype to avoid an error.
20294 Use char because int might match the return type of a GCC
20295 builtin and then its argument prototype would still apply. */
20296 #ifdef __cplusplus
20297 extern "C"
20298 #endif
20299 char clock_gettime ();
20300 int
20301 main ()
20302 {
20303 return clock_gettime ();
20304 ;
20305 return 0;
20306 }
20307 _ACEOF
20308 for ac_lib in '' rt posix4; do
20309 if test -z "$ac_lib"; then
20310 ac_res="none required"
20311 else
20312 ac_res=-l$ac_lib
20313 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20314 fi
20315 if ac_fn_c_try_link "$LINENO"; then :
20316 ac_cv_search_clock_gettime=$ac_res
20317 fi
20318 rm -f core conftest.err conftest.$ac_objext \
20319 conftest$ac_exeext
20320 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20321 break
20322 fi
20323 done
20324 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20325
20326 else
20327 ac_cv_search_clock_gettime=no
20328 fi
20329 rm conftest.$ac_ext
20330 LIBS=$ac_func_search_save_LIBS
20331 fi
20332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20333 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20334 ac_res=$ac_cv_search_clock_gettime
20335 if test "$ac_res" != no; then :
20336 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20337 test "$ac_cv_search_clock_gettime" = "none required" ||
20338 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
20339 fi
20340
20341 for ac_func in clock_gettime clock_settime
20342 do :
20343 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20344 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20345 eval as_val=\$$as_ac_var
20346 if test "x$as_val" = x""yes; then :
20347 cat >>confdefs.h <<_ACEOF
20348 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20349 _ACEOF
20350
20351 fi
20352 done
20353
20354 LIBS=$gl_saved_libs
20355
20356
20357 :
20358
20359
20360
20361 cat >>confdefs.h <<_ACEOF
20362 #define GNULIB_CLOSE_STREAM 1
20363 _ACEOF
20364
20365
20366
20367
20368 :
20369
20370
20371
20372 :
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
20387
20388
20389 if test $HAVE_DUP2 = 1; then
20390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
20391 $as_echo_n "checking whether dup2 works... " >&6; }
20392 if test "${gl_cv_func_dup2_works+set}" = set; then :
20393 $as_echo_n "(cached) " >&6
20394 else
20395 if test "$cross_compiling" = yes; then :
20396 case "$host_os" in
20397 mingw*) # on this platform, dup2 always returns 0 for success
20398 gl_cv_func_dup2_works="guessing no" ;;
20399 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
20400 gl_cv_func_dup2_works="guessing no" ;;
20401 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
20402 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
20403 gl_cv_func_dup2_works="guessing no" ;;
20404 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
20405 gl_cv_func_dup2_works="guessing no" ;;
20406 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
20407 gl_cv_func_dup2_works="guessing no" ;;
20408 *) gl_cv_func_dup2_works="guessing yes" ;;
20409 esac
20410 else
20411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20412 /* end confdefs.h. */
20413
20414 #include <unistd.h>
20415 #include <fcntl.h>
20416 #include <errno.h>
20417 int
20418 main ()
20419 {
20420 int result = 0;
20421 #ifdef FD_CLOEXEC
20422 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
20423 result |= 1;
20424 #endif
20425 if (dup2 (1, 1) == 0)
20426 result |= 2;
20427 #ifdef FD_CLOEXEC
20428 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
20429 result |= 4;
20430 #endif
20431 close (0);
20432 if (dup2 (0, 0) != -1)
20433 result |= 8;
20434 /* Many gnulib modules require POSIX conformance of EBADF. */
20435 if (dup2 (2, 1000000) == -1 && errno != EBADF)
20436 result |= 16;
20437 return result;
20438
20439 ;
20440 return 0;
20441 }
20442
20443 _ACEOF
20444 if ac_fn_c_try_run "$LINENO"; then :
20445 gl_cv_func_dup2_works=yes
20446 else
20447 gl_cv_func_dup2_works=no
20448 fi
20449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20450 conftest.$ac_objext conftest.beam conftest.$ac_ext
20451 fi
20452
20453
20454 fi
20455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
20456 $as_echo "$gl_cv_func_dup2_works" >&6; }
20457 case "$gl_cv_func_dup2_works" in
20458 *yes) ;;
20459 *)
20460 REPLACE_DUP2=1
20461 ;;
20462 esac
20463 fi
20464
20465
20466 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
20467
20468
20469
20470
20471
20472
20473
20474
20475 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
20476
20477
20478 fi
20479
20480
20481
20482
20483
20484 GNULIB_DUP2=1
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496 GNULIB_ENVIRON=1
20497
20498
20499
20500
20501
20502
20503
20504
20505 LIB_EXECINFO=''
20506 EXECINFO_H='execinfo.h'
20507
20508 if test $ac_cv_header_execinfo_h = yes; then
20509 gl_saved_libs=$LIBS
20510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
20511 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
20512 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20513 $as_echo_n "(cached) " >&6
20514 else
20515 ac_func_search_save_LIBS=$LIBS
20516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20517 /* end confdefs.h. */
20518
20519 /* Override any GCC internal prototype to avoid an error.
20520 Use char because int might match the return type of a GCC
20521 builtin and then its argument prototype would still apply. */
20522 #ifdef __cplusplus
20523 extern "C"
20524 #endif
20525 char backtrace_symbols_fd ();
20526 int
20527 main ()
20528 {
20529 return backtrace_symbols_fd ();
20530 ;
20531 return 0;
20532 }
20533 _ACEOF
20534 for ac_lib in '' execinfo; do
20535 if test -z "$ac_lib"; then
20536 ac_res="none required"
20537 else
20538 ac_res=-l$ac_lib
20539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20540 fi
20541 if ac_fn_c_try_link "$LINENO"; then :
20542 ac_cv_search_backtrace_symbols_fd=$ac_res
20543 fi
20544 rm -f core conftest.err conftest.$ac_objext \
20545 conftest$ac_exeext
20546 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20547 break
20548 fi
20549 done
20550 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20551
20552 else
20553 ac_cv_search_backtrace_symbols_fd=no
20554 fi
20555 rm conftest.$ac_ext
20556 LIBS=$ac_func_search_save_LIBS
20557 fi
20558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
20559 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
20560 ac_res=$ac_cv_search_backtrace_symbols_fd
20561 if test "$ac_res" != no; then :
20562 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20563 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
20564 LIB_EXECINFO=$ac_cv_search_backtrace_symbols_fd
20565 fi
20566
20567 LIBS=$gl_saved_libs
20568 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H=''
20569 fi
20570
20571 if test -n "$EXECINFO_H"; then
20572
20573
20574
20575
20576
20577
20578
20579
20580 gl_LIBOBJS="$gl_LIBOBJS execinfo.$ac_objext"
20581
20582 fi
20583
20584
20585
20586 if test -n "$EXECINFO_H"; then
20587 GL_GENERATE_EXECINFO_H_TRUE=
20588 GL_GENERATE_EXECINFO_H_FALSE='#'
20589 else
20590 GL_GENERATE_EXECINFO_H_TRUE='#'
20591 GL_GENERATE_EXECINFO_H_FALSE=
20592 fi
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602 if test $ac_cv_func_faccessat = no; then
20603 HAVE_FACCESSAT=0
20604 fi
20605
20606 if test $HAVE_FACCESSAT = 0; then
20607
20608
20609
20610
20611
20612
20613
20614
20615 gl_LIBOBJS="$gl_LIBOBJS faccessat.$ac_objext"
20616
20617
20618 for ac_func in access
20619 do :
20620 ac_fn_c_check_func "$LINENO" "access" "ac_cv_func_access"
20621 if test "x$ac_cv_func_access" = x""yes; then :
20622 cat >>confdefs.h <<_ACEOF
20623 #define HAVE_ACCESS 1
20624 _ACEOF
20625
20626 fi
20627 done
20628
20629
20630 fi
20631
20632
20633 cat >>confdefs.h <<_ACEOF
20634 #define GNULIB_FACCESSAT 1
20635 _ACEOF
20636
20637
20638
20639
20640
20641
20642
20643 GNULIB_FACCESSAT=1
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660 if test $gl_cv_have_include_next = yes; then
20661 gl_cv_next_fcntl_h='<'fcntl.h'>'
20662 else
20663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
20664 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
20665 if test "${gl_cv_next_fcntl_h+set}" = set; then :
20666 $as_echo_n "(cached) " >&6
20667 else
20668
20669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20670 /* end confdefs.h. */
20671 #include <fcntl.h>
20672
20673 _ACEOF
20674 case "$host_os" in
20675 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20676 *) gl_absname_cpp="$ac_cpp" ;;
20677 esac
20678
20679 case "$host_os" in
20680 mingw*)
20681 gl_dirsep_regex='[/\\]'
20682 ;;
20683 *)
20684 gl_dirsep_regex='\/'
20685 ;;
20686 esac
20687 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20688
20689 gl_header_literal_regex=`echo 'fcntl.h' \
20690 | sed -e "$gl_make_literal_regex_sed"`
20691 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20692 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20693 s|^/[^/]|//&|
20694 p
20695 q
20696 }'
20697 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20698 sed -n "$gl_absolute_header_sed"`'"'
20699
20700
20701 fi
20702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
20703 $as_echo "$gl_cv_next_fcntl_h" >&6; }
20704 fi
20705 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
20706
20707 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20708 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20709 gl_next_as_first_directive='<'fcntl.h'>'
20710 else
20711 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20712 gl_next_as_first_directive=$gl_cv_next_fcntl_h
20713 fi
20714 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733 fp_headers='
20734 # include <stdio.h>
20735 # if HAVE_STDIO_EXT_H
20736 # include <stdio_ext.h>
20737 # endif
20738 '
20739 ac_fn_c_check_decl "$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
20740 "
20741 if test "x$ac_cv_have_decl___fpending" = x""yes; then :
20742 ac_have_decl=1
20743 else
20744 ac_have_decl=0
20745 fi
20746
20747 cat >>confdefs.h <<_ACEOF
20748 #define HAVE_DECL___FPENDING $ac_have_decl
20749 _ACEOF
20750
20751
20752 if test $ac_cv_func___fpending = no; then
20753
20754
20755
20756
20757
20758
20759
20760
20761 gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
20762
20763
20764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
20765 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
20766 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
20767 $as_echo_n "(cached) " >&6
20768 else
20769
20770 for ac_expr in \
20771 \
20772 '# glibc2' \
20773 'fp->_IO_write_ptr - fp->_IO_write_base' \
20774 \
20775 '# traditional Unix' \
20776 'fp->_ptr - fp->_base' \
20777 \
20778 '# BSD' \
20779 'fp->_p - fp->_bf._base' \
20780 \
20781 '# SCO, Unixware' \
20782 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
20783 \
20784 '# QNX' \
20785 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
20786 \
20787 '# old glibc?' \
20788 'fp->__bufp - fp->__buffer' \
20789 \
20790 '# old glibc iostream?' \
20791 'fp->_pptr - fp->_pbase' \
20792 \
20793 '# emx+gcc' \
20794 'fp->_ptr - fp->_buffer' \
20795 \
20796 '# Minix' \
20797 'fp->_ptr - fp->_buf' \
20798 \
20799 '# Plan9' \
20800 'fp->wp - fp->buf' \
20801 \
20802 '# VMS' \
20803 '(*fp)->_ptr - (*fp)->_base' \
20804 \
20805 '# e.g., DGUX R4.11; the info is not available' \
20806 1 \
20807 ; do
20808
20809 # Skip each embedded comment.
20810 case "$ac_expr" in '#'*) continue;; esac
20811
20812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20813 /* end confdefs.h. */
20814 #include <stdio.h>
20815 int
20816 main ()
20817 {
20818 FILE *fp = stdin; (void) ($ac_expr);
20819 ;
20820 return 0;
20821 }
20822 _ACEOF
20823 if ac_fn_c_try_compile "$LINENO"; then :
20824 fp_done=yes
20825
20826 fi
20827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20828 test "$fp_done" = yes && break
20829 done
20830
20831 ac_cv_sys_pending_output_n_bytes=$ac_expr
20832
20833
20834 fi
20835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
20836 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
20837
20838 cat >>confdefs.h <<_ACEOF
20839 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
20840 _ACEOF
20841
20842
20843 fi
20844
20845
20846 # Persuade glibc <stdlib.h> to declare getloadavg().
20847
20848
20849 gl_save_LIBS=$LIBS
20850
20851 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
20852 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
20853 HAVE_GETLOADAVG=1
20854 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
20855 if test "x$ac_cv_func_getloadavg" = x""yes; then :
20856
20857 else
20858 gl_func_getloadavg_done=no
20859
20860 # Some systems with -lutil have (and need) -lkvm as well, some do not.
20861 # On Solaris, -lkvm requires nlist from -lelf, so check that first
20862 # to get the right answer into the cache.
20863 # For kstat on solaris, we need to test for libelf and libkvm to force the
20864 # definition of SVR4 below.
20865 if test $gl_func_getloadavg_done = no; then
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
20867 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
20868 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
20869 $as_echo_n "(cached) " >&6
20870 else
20871 ac_check_lib_save_LIBS=$LIBS
20872 LIBS="-lelf $LIBS"
20873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20874 /* end confdefs.h. */
20875
20876 /* Override any GCC internal prototype to avoid an error.
20877 Use char because int might match the return type of a GCC
20878 builtin and then its argument prototype would still apply. */
20879 #ifdef __cplusplus
20880 extern "C"
20881 #endif
20882 char elf_begin ();
20883 int
20884 main ()
20885 {
20886 return elf_begin ();
20887 ;
20888 return 0;
20889 }
20890 _ACEOF
20891 if ac_fn_c_try_link "$LINENO"; then :
20892 ac_cv_lib_elf_elf_begin=yes
20893 else
20894 ac_cv_lib_elf_elf_begin=no
20895 fi
20896 rm -f core conftest.err conftest.$ac_objext \
20897 conftest$ac_exeext conftest.$ac_ext
20898 LIBS=$ac_check_lib_save_LIBS
20899 fi
20900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
20901 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
20902 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
20903 LIBS="-lelf $LIBS"
20904 fi
20905
20906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
20907 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
20908 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
20909 $as_echo_n "(cached) " >&6
20910 else
20911 ac_check_lib_save_LIBS=$LIBS
20912 LIBS="-lkvm $LIBS"
20913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20914 /* end confdefs.h. */
20915
20916 /* Override any GCC internal prototype to avoid an error.
20917 Use char because int might match the return type of a GCC
20918 builtin and then its argument prototype would still apply. */
20919 #ifdef __cplusplus
20920 extern "C"
20921 #endif
20922 char kvm_open ();
20923 int
20924 main ()
20925 {
20926 return kvm_open ();
20927 ;
20928 return 0;
20929 }
20930 _ACEOF
20931 if ac_fn_c_try_link "$LINENO"; then :
20932 ac_cv_lib_kvm_kvm_open=yes
20933 else
20934 ac_cv_lib_kvm_kvm_open=no
20935 fi
20936 rm -f core conftest.err conftest.$ac_objext \
20937 conftest$ac_exeext conftest.$ac_ext
20938 LIBS=$ac_check_lib_save_LIBS
20939 fi
20940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
20941 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
20942 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
20943 LIBS="-lkvm $LIBS"
20944 fi
20945
20946 # Check for the 4.4BSD definition of getloadavg.
20947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
20948 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
20949 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
20950 $as_echo_n "(cached) " >&6
20951 else
20952 ac_check_lib_save_LIBS=$LIBS
20953 LIBS="-lutil $LIBS"
20954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20955 /* end confdefs.h. */
20956
20957 /* Override any GCC internal prototype to avoid an error.
20958 Use char because int might match the return type of a GCC
20959 builtin and then its argument prototype would still apply. */
20960 #ifdef __cplusplus
20961 extern "C"
20962 #endif
20963 char getloadavg ();
20964 int
20965 main ()
20966 {
20967 return getloadavg ();
20968 ;
20969 return 0;
20970 }
20971 _ACEOF
20972 if ac_fn_c_try_link "$LINENO"; then :
20973 ac_cv_lib_util_getloadavg=yes
20974 else
20975 ac_cv_lib_util_getloadavg=no
20976 fi
20977 rm -f core conftest.err conftest.$ac_objext \
20978 conftest$ac_exeext conftest.$ac_ext
20979 LIBS=$ac_check_lib_save_LIBS
20980 fi
20981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
20982 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
20983 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
20984 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
20985 fi
20986
20987 fi
20988
20989 if test $gl_func_getloadavg_done = no; then
20990 # There is a commonly available library for RS/6000 AIX.
20991 # Since it is not a standard part of AIX, it might be installed locally.
20992 gl_getloadavg_LIBS=$LIBS
20993 LIBS="-L/usr/local/lib $LIBS"
20994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
20995 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
20996 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
20997 $as_echo_n "(cached) " >&6
20998 else
20999 ac_check_lib_save_LIBS=$LIBS
21000 LIBS="-lgetloadavg $LIBS"
21001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21002 /* end confdefs.h. */
21003
21004 /* Override any GCC internal prototype to avoid an error.
21005 Use char because int might match the return type of a GCC
21006 builtin and then its argument prototype would still apply. */
21007 #ifdef __cplusplus
21008 extern "C"
21009 #endif
21010 char getloadavg ();
21011 int
21012 main ()
21013 {
21014 return getloadavg ();
21015 ;
21016 return 0;
21017 }
21018 _ACEOF
21019 if ac_fn_c_try_link "$LINENO"; then :
21020 ac_cv_lib_getloadavg_getloadavg=yes
21021 else
21022 ac_cv_lib_getloadavg_getloadavg=no
21023 fi
21024 rm -f core conftest.err conftest.$ac_objext \
21025 conftest$ac_exeext conftest.$ac_ext
21026 LIBS=$ac_check_lib_save_LIBS
21027 fi
21028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
21029 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
21030 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
21031 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
21032 else
21033 LIBS=$gl_getloadavg_LIBS
21034 fi
21035
21036 fi
21037
21038 # Set up the replacement function if necessary.
21039 if test $gl_func_getloadavg_done = no; then
21040 HAVE_GETLOADAVG=0
21041
21042 # Solaris has libkstat which does not require root.
21043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
21044 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
21045 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
21046 $as_echo_n "(cached) " >&6
21047 else
21048 ac_check_lib_save_LIBS=$LIBS
21049 LIBS="-lkstat $LIBS"
21050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21051 /* end confdefs.h. */
21052
21053 /* Override any GCC internal prototype to avoid an error.
21054 Use char because int might match the return type of a GCC
21055 builtin and then its argument prototype would still apply. */
21056 #ifdef __cplusplus
21057 extern "C"
21058 #endif
21059 char kstat_open ();
21060 int
21061 main ()
21062 {
21063 return kstat_open ();
21064 ;
21065 return 0;
21066 }
21067 _ACEOF
21068 if ac_fn_c_try_link "$LINENO"; then :
21069 ac_cv_lib_kstat_kstat_open=yes
21070 else
21071 ac_cv_lib_kstat_kstat_open=no
21072 fi
21073 rm -f core conftest.err conftest.$ac_objext \
21074 conftest$ac_exeext conftest.$ac_ext
21075 LIBS=$ac_check_lib_save_LIBS
21076 fi
21077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
21078 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
21079 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
21080 cat >>confdefs.h <<_ACEOF
21081 #define HAVE_LIBKSTAT 1
21082 _ACEOF
21083
21084 LIBS="-lkstat $LIBS"
21085
21086 fi
21087
21088 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
21089
21090 # AIX has libperfstat which does not require root
21091 if test $gl_func_getloadavg_done = no; then
21092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
21093 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
21094 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
21095 $as_echo_n "(cached) " >&6
21096 else
21097 ac_check_lib_save_LIBS=$LIBS
21098 LIBS="-lperfstat $LIBS"
21099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21100 /* end confdefs.h. */
21101
21102 /* Override any GCC internal prototype to avoid an error.
21103 Use char because int might match the return type of a GCC
21104 builtin and then its argument prototype would still apply. */
21105 #ifdef __cplusplus
21106 extern "C"
21107 #endif
21108 char perfstat_cpu_total ();
21109 int
21110 main ()
21111 {
21112 return perfstat_cpu_total ();
21113 ;
21114 return 0;
21115 }
21116 _ACEOF
21117 if ac_fn_c_try_link "$LINENO"; then :
21118 ac_cv_lib_perfstat_perfstat_cpu_total=yes
21119 else
21120 ac_cv_lib_perfstat_perfstat_cpu_total=no
21121 fi
21122 rm -f core conftest.err conftest.$ac_objext \
21123 conftest$ac_exeext conftest.$ac_ext
21124 LIBS=$ac_check_lib_save_LIBS
21125 fi
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
21127 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
21128 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
21129 cat >>confdefs.h <<_ACEOF
21130 #define HAVE_LIBPERFSTAT 1
21131 _ACEOF
21132
21133 LIBS="-lperfstat $LIBS"
21134
21135 fi
21136
21137 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
21138 fi
21139
21140 if test $gl_func_getloadavg_done = no; then
21141 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
21142 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
21143 gl_func_getloadavg_done=yes
21144
21145 $as_echo "#define DGUX 1" >>confdefs.h
21146
21147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
21148 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
21149 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
21150 $as_echo_n "(cached) " >&6
21151 else
21152 ac_check_lib_save_LIBS=$LIBS
21153 LIBS="-ldgc $LIBS"
21154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21155 /* end confdefs.h. */
21156
21157 /* Override any GCC internal prototype to avoid an error.
21158 Use char because int might match the return type of a GCC
21159 builtin and then its argument prototype would still apply. */
21160 #ifdef __cplusplus
21161 extern "C"
21162 #endif
21163 char dg_sys_info ();
21164 int
21165 main ()
21166 {
21167 return dg_sys_info ();
21168 ;
21169 return 0;
21170 }
21171 _ACEOF
21172 if ac_fn_c_try_link "$LINENO"; then :
21173 ac_cv_lib_dgc_dg_sys_info=yes
21174 else
21175 ac_cv_lib_dgc_dg_sys_info=no
21176 fi
21177 rm -f core conftest.err conftest.$ac_objext \
21178 conftest$ac_exeext conftest.$ac_ext
21179 LIBS=$ac_check_lib_save_LIBS
21180 fi
21181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
21182 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
21183 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
21184 cat >>confdefs.h <<_ACEOF
21185 #define HAVE_LIBDGC 1
21186 _ACEOF
21187
21188 LIBS="-ldgc $LIBS"
21189
21190 fi
21191
21192 fi
21193
21194
21195 fi
21196 fi
21197 fi
21198
21199
21200 if test "x$gl_save_LIBS" = x; then
21201 GETLOADAVG_LIBS=$LIBS
21202 else
21203 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
21204 fi
21205 LIBS=$gl_save_LIBS
21206
21207
21208 # Test whether the system declares getloadavg. Solaris has the function
21209 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
21210 for ac_header in sys/loadavg.h
21211 do :
21212 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
21213 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
21214 cat >>confdefs.h <<_ACEOF
21215 #define HAVE_SYS_LOADAVG_H 1
21216 _ACEOF
21217
21218 fi
21219
21220 done
21221
21222 if test $ac_cv_header_sys_loadavg_h = yes; then
21223 HAVE_SYS_LOADAVG_H=1
21224 else
21225 HAVE_SYS_LOADAVG_H=0
21226 fi
21227 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
21228 # include <sys/loadavg.h>
21229 #endif
21230 #include <stdlib.h>
21231 "
21232 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
21233
21234 else
21235 HAVE_DECL_GETLOADAVG=0
21236 fi
21237
21238
21239 if test $HAVE_GETLOADAVG = 0; then
21240
21241
21242
21243
21244
21245
21246
21247
21248 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
21249
21250
21251 # Figure out what our getloadavg.c needs.
21252
21253
21254
21255 # On HPUX9, an unprivileged user can get load averages this way.
21256 if test $gl_func_getloadavg_done = no; then
21257 for ac_func in pstat_getdynamic
21258 do :
21259 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
21260 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
21261 cat >>confdefs.h <<_ACEOF
21262 #define HAVE_PSTAT_GETDYNAMIC 1
21263 _ACEOF
21264 gl_func_getloadavg_done=yes
21265 fi
21266 done
21267
21268 fi
21269
21270 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
21271 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
21272 # Irix 4.0.5F has the header but not the library.
21273 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
21274 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
21275 gl_func_getloadavg_done=yes
21276
21277 $as_echo "#define SVR4 1" >>confdefs.h
21278
21279 fi
21280
21281 if test $gl_func_getloadavg_done = no; then
21282 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
21283 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
21284 gl_func_getloadavg_done=yes
21285
21286 $as_echo "#define UMAX 1" >>confdefs.h
21287
21288
21289 $as_echo "#define UMAX4_3 1" >>confdefs.h
21290
21291 fi
21292
21293
21294 fi
21295
21296 if test $gl_func_getloadavg_done = no; then
21297 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
21298 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
21299 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
21300
21301 fi
21302
21303
21304 fi
21305
21306 if test $gl_func_getloadavg_done = no; then
21307 for ac_header in mach/mach.h
21308 do :
21309 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
21310 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
21311 cat >>confdefs.h <<_ACEOF
21312 #define HAVE_MACH_MACH_H 1
21313 _ACEOF
21314
21315 fi
21316
21317 done
21318
21319 fi
21320
21321 for ac_header in nlist.h
21322 do :
21323 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
21324 if test "x$ac_cv_header_nlist_h" = x""yes; then :
21325 cat >>confdefs.h <<_ACEOF
21326 #define HAVE_NLIST_H 1
21327 _ACEOF
21328 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
21329 "
21330 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
21331
21332 cat >>confdefs.h <<_ACEOF
21333 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
21334 _ACEOF
21335
21336
21337 fi
21338
21339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21340 /* end confdefs.h. */
21341 #include <nlist.h>
21342 int
21343 main ()
21344 {
21345 struct nlist x;
21346 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
21347 x.n_un.n_name = "";
21348 #else
21349 x.n_name = "";
21350 #endif
21351 ;
21352 return 0;
21353 }
21354 _ACEOF
21355 if ac_fn_c_try_link "$LINENO"; then :
21356
21357 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
21358
21359 fi
21360 rm -f core conftest.err conftest.$ac_objext \
21361 conftest$ac_exeext conftest.$ac_ext
21362
21363 fi
21364
21365 done
21366
21367 fi
21368
21369
21370
21371
21372
21373 GNULIB_GETLOADAVG=1
21374
21375
21376
21377
21378
21379
21380
21381
21382
21383
21384 if test $REPLACE_GETOPT = 1; then
21385
21386
21387
21388
21389
21390
21391
21392
21393 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
21394
21395
21396
21397
21398
21399
21400
21401
21402
21403 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
21404
21405
21406
21407
21408 GNULIB_GL_UNISTD_H_GETOPT=1
21409 fi
21410
21411
21412
21413
21414
21415
21416
21417 REPLACE_GETOPT=0
21418 if test -n "$gl_replace_getopt"; then
21419 REPLACE_GETOPT=1
21420 fi
21421
21422 if test $REPLACE_GETOPT = 1; then
21423
21424 GETOPT_H=getopt.h
21425
21426 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
21427
21428
21429
21430 fi
21431
21432 if test $REPLACE_GETOPT = 1; then
21433
21434
21435
21436
21437
21438
21439
21440
21441 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
21442
21443
21444
21445
21446
21447
21448
21449
21450
21451 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
21452
21453
21454
21455
21456 GNULIB_GL_UNISTD_H_GETOPT=1
21457 fi
21458
21459
21460
21461
21462
21463
21464
21465
21466
21467
21468
21469
21470 gl_gettimeofday_timezone=void
21471 if test $ac_cv_func_gettimeofday != yes; then
21472 HAVE_GETTIMEOFDAY=0
21473 else
21474
21475
21476
21477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
21478 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
21479 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
21480 $as_echo_n "(cached) " >&6
21481 else
21482 if test "$cross_compiling" = yes; then :
21483 # When cross-compiling:
21484 case "$host_os" in
21485 # Guess all is fine on glibc systems.
21486 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
21487 # If we don't know, assume the worst.
21488 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
21489 esac
21490
21491 else
21492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21493 /* end confdefs.h. */
21494 #include <string.h>
21495 #include <sys/time.h>
21496 #include <time.h>
21497 #include <stdlib.h>
21498
21499 int
21500 main ()
21501 {
21502
21503 time_t t = 0;
21504 struct tm *lt;
21505 struct tm saved_lt;
21506 struct timeval tv;
21507 lt = localtime (&t);
21508 saved_lt = *lt;
21509 gettimeofday (&tv, NULL);
21510 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
21511
21512 ;
21513 return 0;
21514 }
21515 _ACEOF
21516 if ac_fn_c_try_run "$LINENO"; then :
21517 gl_cv_func_gettimeofday_clobber=no
21518 else
21519 gl_cv_func_gettimeofday_clobber=yes
21520 fi
21521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21522 conftest.$ac_objext conftest.beam conftest.$ac_ext
21523 fi
21524
21525 fi
21526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
21527 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
21528
21529 case "$gl_cv_func_gettimeofday_clobber" in
21530 *yes)
21531 REPLACE_GETTIMEOFDAY=1
21532
21533
21534 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
21535
21536
21537 $as_echo "#define localtime rpl_localtime" >>confdefs.h
21538
21539
21540
21541 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
21542
21543 ;;
21544 esac
21545
21546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
21547 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
21548 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
21549 $as_echo_n "(cached) " >&6
21550 else
21551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21552 /* end confdefs.h. */
21553 #include <sys/time.h>
21554 struct timeval c;
21555 int gettimeofday (struct timeval *restrict, void *restrict);
21556
21557 int
21558 main ()
21559 {
21560 /* glibc uses struct timezone * rather than the POSIX void *
21561 if _GNU_SOURCE is defined. However, since the only portable
21562 use of gettimeofday uses NULL as the second parameter, and
21563 since the glibc definition is actually more typesafe, it is
21564 not worth wrapping this to get a compliant signature. */
21565 int (*f) (struct timeval *restrict, void *restrict)
21566 = gettimeofday;
21567 int x = f (&c, 0);
21568 return !(x | c.tv_sec | c.tv_usec);
21569
21570 ;
21571 return 0;
21572 }
21573 _ACEOF
21574 if ac_fn_c_try_compile "$LINENO"; then :
21575 gl_cv_func_gettimeofday_posix_signature=yes
21576 else
21577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21578 /* end confdefs.h. */
21579 #include <sys/time.h>
21580 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
21581
21582 int
21583 main ()
21584 {
21585
21586 ;
21587 return 0;
21588 }
21589 _ACEOF
21590 if ac_fn_c_try_compile "$LINENO"; then :
21591 gl_cv_func_gettimeofday_posix_signature=almost
21592 else
21593 gl_cv_func_gettimeofday_posix_signature=no
21594 fi
21595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21596 fi
21597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21598 fi
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21600 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
21601 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
21602 gl_gettimeofday_timezone='struct timezone'
21603 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
21604 REPLACE_GETTIMEOFDAY=1
21605 fi
21606 if test $REPLACE_STRUCT_TIMEVAL = 1; then
21607 REPLACE_GETTIMEOFDAY=1
21608 fi
21609
21610 fi
21611
21612 cat >>confdefs.h <<_ACEOF
21613 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
21614 _ACEOF
21615
21616
21617 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
21618
21619
21620
21621
21622
21623
21624
21625
21626 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
21627
21628
21629 for ac_header in sys/timeb.h
21630 do :
21631 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
21632 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
21633 cat >>confdefs.h <<_ACEOF
21634 #define HAVE_SYS_TIMEB_H 1
21635 _ACEOF
21636
21637 fi
21638
21639 done
21640
21641 for ac_func in _ftime
21642 do :
21643 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
21644 if test "x$ac_cv_func__ftime" = x""yes; then :
21645 cat >>confdefs.h <<_ACEOF
21646 #define HAVE__FTIME 1
21647 _ACEOF
21648
21649 fi
21650 done
21651
21652
21653 fi
21654
21655
21656
21657
21658
21659 GNULIB_GETTIMEOFDAY=1
21660
21661
21662
21663
21664
21665
21666
21667
21668
21669
21670 if test $ac_cv_func_lstat = yes; then
21671
21672 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
21673 *no)
21674 REPLACE_LSTAT=1
21675 ;;
21676 esac
21677 else
21678 HAVE_LSTAT=0
21679 fi
21680
21681 if test $REPLACE_LSTAT = 1; then
21682
21683
21684
21685
21686
21687
21688
21689
21690 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
21691
21692 :
21693 fi
21694
21695
21696
21697
21698
21699 GNULIB_LSTAT=1
21700
21701
21702
21703
21704
21705
21706
21707
21708
21709
21710
21711 if test $APPLE_UNIVERSAL_BUILD = 1; then
21712 # A universal build on Apple Mac OS X platforms.
21713 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
21714 # But we need a configuration result that is valid in both modes.
21715 gl_cv_func_working_mktime=no
21716 fi
21717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
21718 $as_echo_n "checking for working mktime... " >&6; }
21719 if test "${gl_cv_func_working_mktime+set}" = set; then :
21720 $as_echo_n "(cached) " >&6
21721 else
21722 if test "$cross_compiling" = yes; then :
21723 gl_cv_func_working_mktime=no
21724 else
21725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21726 /* end confdefs.h. */
21727 /* Test program from Paul Eggert and Tony Leneis. */
21728 #include <limits.h>
21729 #include <stdlib.h>
21730 #include <time.h>
21731
21732 #ifdef HAVE_UNISTD_H
21733 # include <unistd.h>
21734 #endif
21735
21736 #ifndef HAVE_ALARM
21737 # define alarm(X) /* empty */
21738 #endif
21739
21740 /* Work around redefinition to rpl_putenv by other config tests. */
21741 #undef putenv
21742
21743 static time_t time_t_max;
21744 static time_t time_t_min;
21745
21746 /* Values we'll use to set the TZ environment variable. */
21747 static char *tz_strings[] = {
21748 (char *) 0, "TZ=GMT0", "TZ=JST-9",
21749 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21750 };
21751 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21752
21753 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
21754 Based on a problem report from Andreas Jaeger. */
21755 static int
21756 spring_forward_gap ()
21757 {
21758 /* glibc (up to about 1998-10-07) failed this test. */
21759 struct tm tm;
21760
21761 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21762 instead of "TZ=America/Vancouver" in order to detect the bug even
21763 on systems that don't support the Olson extension, or don't have the
21764 full zoneinfo tables installed. */
21765 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21766
21767 tm.tm_year = 98;
21768 tm.tm_mon = 3;
21769 tm.tm_mday = 5;
21770 tm.tm_hour = 2;
21771 tm.tm_min = 0;
21772 tm.tm_sec = 0;
21773 tm.tm_isdst = -1;
21774 return mktime (&tm) != (time_t) -1;
21775 }
21776
21777 static int
21778 mktime_test1 (time_t now)
21779 {
21780 struct tm *lt;
21781 return ! (lt = localtime (&now)) || mktime (lt) == now;
21782 }
21783
21784 static int
21785 mktime_test (time_t now)
21786 {
21787 return (mktime_test1 (now)
21788 && mktime_test1 ((time_t) (time_t_max - now))
21789 && mktime_test1 ((time_t) (time_t_min + now)));
21790 }
21791
21792 static int
21793 irix_6_4_bug ()
21794 {
21795 /* Based on code from Ariel Faigon. */
21796 struct tm tm;
21797 tm.tm_year = 96;
21798 tm.tm_mon = 3;
21799 tm.tm_mday = 0;
21800 tm.tm_hour = 0;
21801 tm.tm_min = 0;
21802 tm.tm_sec = 0;
21803 tm.tm_isdst = -1;
21804 mktime (&tm);
21805 return tm.tm_mon == 2 && tm.tm_mday == 31;
21806 }
21807
21808 static int
21809 bigtime_test (int j)
21810 {
21811 struct tm tm;
21812 time_t now;
21813 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21814 now = mktime (&tm);
21815 if (now != (time_t) -1)
21816 {
21817 struct tm *lt = localtime (&now);
21818 if (! (lt
21819 && lt->tm_year == tm.tm_year
21820 && lt->tm_mon == tm.tm_mon
21821 && lt->tm_mday == tm.tm_mday
21822 && lt->tm_hour == tm.tm_hour
21823 && lt->tm_min == tm.tm_min
21824 && lt->tm_sec == tm.tm_sec
21825 && lt->tm_yday == tm.tm_yday
21826 && lt->tm_wday == tm.tm_wday
21827 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21828 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21829 return 0;
21830 }
21831 return 1;
21832 }
21833
21834 static int
21835 year_2050_test ()
21836 {
21837 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
21838 ignoring leap seconds. */
21839 unsigned long int answer = 2527315200UL;
21840
21841 struct tm tm;
21842 time_t t;
21843 tm.tm_year = 2050 - 1900;
21844 tm.tm_mon = 2 - 1;
21845 tm.tm_mday = 1;
21846 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
21847 tm.tm_isdst = -1;
21848
21849 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21850 instead of "TZ=America/Vancouver" in order to detect the bug even
21851 on systems that don't support the Olson extension, or don't have the
21852 full zoneinfo tables installed. */
21853 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21854
21855 t = mktime (&tm);
21856
21857 /* Check that the result is either a failure, or close enough
21858 to the correct answer that we can assume the discrepancy is
21859 due to leap seconds. */
21860 return (t == (time_t) -1
21861 || (0 < t && answer - 120 <= t && t <= answer + 120));
21862 }
21863
21864 int
21865 main ()
21866 {
21867 int result = 0;
21868 time_t t, delta;
21869 int i, j;
21870 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
21871 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
21872
21873 /* This test makes some buggy mktime implementations loop.
21874 Give up after 60 seconds; a mktime slower than that
21875 isn't worth using anyway. */
21876 alarm (60);
21877
21878 time_t_max = (! time_t_signed
21879 ? (time_t) -1
21880 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
21881 * 2 + 1));
21882 time_t_min = (! time_t_signed
21883 ? (time_t) 0
21884 : time_t_signed_magnitude
21885 ? ~ (time_t) 0
21886 : ~ time_t_max);
21887
21888 delta = time_t_max / 997; /* a suitable prime number */
21889 for (i = 0; i < N_STRINGS; i++)
21890 {
21891 if (tz_strings[i])
21892 putenv (tz_strings[i]);
21893
21894 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
21895 if (! mktime_test (t))
21896 result |= 1;
21897 if ((result & 2) == 0
21898 && ! (mktime_test ((time_t) 1)
21899 && mktime_test ((time_t) (60 * 60))
21900 && mktime_test ((time_t) (60 * 60 * 24))))
21901 result |= 2;
21902
21903 for (j = 1; (result & 4) == 0; j <<= 1)
21904 {
21905 if (! bigtime_test (j))
21906 result |= 4;
21907 if (INT_MAX / 2 < j)
21908 break;
21909 }
21910 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
21911 result |= 8;
21912 }
21913 if (! irix_6_4_bug ())
21914 result |= 16;
21915 if (! spring_forward_gap ())
21916 result |= 32;
21917 if (! year_2050_test ())
21918 result |= 64;
21919 return result;
21920 }
21921 _ACEOF
21922 if ac_fn_c_try_run "$LINENO"; then :
21923 gl_cv_func_working_mktime=yes
21924 else
21925 gl_cv_func_working_mktime=no
21926 fi
21927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21928 conftest.$ac_objext conftest.beam conftest.$ac_ext
21929 fi
21930
21931
21932 fi
21933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
21934 $as_echo "$gl_cv_func_working_mktime" >&6; }
21935
21936 if test $gl_cv_func_working_mktime = no; then
21937 REPLACE_MKTIME=1
21938 else
21939 REPLACE_MKTIME=0
21940 fi
21941
21942 if test $REPLACE_MKTIME = 1; then
21943
21944
21945
21946
21947
21948
21949
21950
21951 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
21952
21953 :
21954 fi
21955
21956
21957
21958
21959
21960 GNULIB_MKTIME=1
21961
21962
21963
21964
21965
21966
21967
21968
21969
21970
21971
21972 if test $ac_cv_func_pselect = yes; then
21973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
21974 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
21975 if test "${gl_cv_sig_pselect+set}" = set; then :
21976 $as_echo_n "(cached) " >&6
21977 else
21978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21979 /* end confdefs.h. */
21980 #include <sys/select.h>
21981
21982 int
21983 main ()
21984 {
21985 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
21986 struct timespec const *restrict,
21987 sigset_t const *restrict) = pselect;
21988 return !p;
21989 ;
21990 return 0;
21991 }
21992 _ACEOF
21993 if ac_fn_c_try_link "$LINENO"; then :
21994 gl_cv_sig_pselect=yes
21995 else
21996 gl_cv_sig_pselect=no
21997 fi
21998 rm -f core conftest.err conftest.$ac_objext \
21999 conftest$ac_exeext conftest.$ac_ext
22000 fi
22001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
22002 $as_echo "$gl_cv_sig_pselect" >&6; }
22003
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
22005 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
22006 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
22007 $as_echo_n "(cached) " >&6
22008 else
22009
22010 if test "$cross_compiling" = yes; then :
22011
22012 case "$host_os" in
22013 # Guess yes on glibc systems.
22014 *-gnu*) gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
22015 # If we don't know, assume the worst.
22016 *) gl_cv_func_pselect_detects_ebadf="guessing no" ;;
22017 esac
22018
22019 else
22020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22021 /* end confdefs.h. */
22022
22023 #include <sys/types.h>
22024 #include <sys/time.h>
22025 #if HAVE_SYS_SELECT_H
22026 # include <sys/select.h>
22027 #endif
22028 #include <unistd.h>
22029 #include <errno.h>
22030
22031 int
22032 main ()
22033 {
22034
22035 fd_set set;
22036 dup2(0, 16);
22037 FD_ZERO(&set);
22038 FD_SET(16, &set);
22039 close(16);
22040 struct timespec timeout;
22041 timeout.tv_sec = 0;
22042 timeout.tv_nsec = 5000;
22043 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
22044
22045 ;
22046 return 0;
22047 }
22048 _ACEOF
22049 if ac_fn_c_try_run "$LINENO"; then :
22050 gl_cv_func_pselect_detects_ebadf=yes
22051 else
22052 gl_cv_func_pselect_detects_ebadf=no
22053 fi
22054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22055 conftest.$ac_objext conftest.beam conftest.$ac_ext
22056 fi
22057
22058
22059 fi
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
22061 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
22062 case $gl_cv_func_pselect_detects_ebadf in
22063 *yes) ;;
22064 *) REPLACE_PSELECT=1 ;;
22065 esac
22066 fi
22067
22068 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
22069 REPLACE_PSELECT=1
22070 fi
22071
22072 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
22073
22074
22075
22076
22077
22078
22079
22080
22081 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
22082
22083 fi
22084
22085
22086
22087
22088
22089 GNULIB_PSELECT=1
22090
22091
22092
22093
22094
22095
22096
22097
22098
22099 LIB_PTHREAD_SIGMASK=
22100
22101
22102
22103
22104 if test "$gl_threads_api" = posix; then
22105 if test $ac_cv_func_pthread_sigmask = yes; then
22106 :
22107 else
22108 if test -n "$LIBMULTITHREAD"; then
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
22110 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
22111 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
22112 $as_echo_n "(cached) " >&6
22113 else
22114 gl_save_LIBS="$LIBS"
22115 LIBS="$LIBS $LIBMULTITHREAD"
22116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22117 /* end confdefs.h. */
22118 #include <pthread.h>
22119 #include <signal.h>
22120
22121 int
22122 main ()
22123 {
22124 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
22125 ;
22126 return 0;
22127 }
22128
22129 _ACEOF
22130 if ac_fn_c_try_link "$LINENO"; then :
22131 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes
22132 else
22133 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no
22134 fi
22135 rm -f core conftest.err conftest.$ac_objext \
22136 conftest$ac_exeext conftest.$ac_ext
22137 LIBS="$gl_save_LIBS"
22138
22139 fi
22140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
22141 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
22142 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
22143 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
22144 else
22145 HAVE_PTHREAD_SIGMASK=0
22146 fi
22147 else
22148 HAVE_PTHREAD_SIGMASK=0
22149 fi
22150 fi
22151 else
22152 if test $ac_cv_func_pthread_sigmask = yes; then
22153 REPLACE_PTHREAD_SIGMASK=1
22154 else
22155 HAVE_PTHREAD_SIGMASK=0
22156 fi
22157 fi
22158
22159
22160
22161
22162 if test $HAVE_PTHREAD_SIGMASK = 1; then
22163
22164
22165 if test -z "$LIB_PTHREAD_SIGMASK"; then
22166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
22167 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
22168 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
22169 $as_echo_n "(cached) " >&6
22170 else
22171
22172 if test "$cross_compiling" = yes; then :
22173
22174 case "$host_os" in
22175 freebsd* | hpux* | solaris | solaris2.[2-9]*)
22176 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
22177 *)
22178 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
22179 esac
22180
22181 else
22182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22183 /* end confdefs.h. */
22184
22185 #include <pthread.h>
22186 #include <signal.h>
22187 #include <stddef.h>
22188 int main ()
22189 {
22190 sigset_t set;
22191 sigemptyset (&set);
22192 return pthread_sigmask (1729, &set, NULL) != 0;
22193 }
22194 _ACEOF
22195 if ac_fn_c_try_run "$LINENO"; then :
22196 gl_cv_func_pthread_sigmask_in_libc_works=no
22197 else
22198 gl_cv_func_pthread_sigmask_in_libc_works=yes
22199 fi
22200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22201 conftest.$ac_objext conftest.beam conftest.$ac_ext
22202 fi
22203
22204
22205 fi
22206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
22207 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
22208 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
22209 *no)
22210 REPLACE_PTHREAD_SIGMASK=1
22211
22212 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
22213
22214 ;;
22215 esac
22216 fi
22217
22218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
22219 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
22220 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
22221 $as_echo_n "(cached) " >&6
22222 else
22223
22224 gl_save_LIBS="$LIBS"
22225 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
22226 if test "$cross_compiling" = yes; then :
22227 case "$host_os" in
22228 cygwin*)
22229 gl_cv_func_pthread_sigmask_return_works="guessing no";;
22230 *)
22231 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
22232 esac
22233
22234 else
22235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22236 /* end confdefs.h. */
22237
22238 #include <pthread.h>
22239 #include <signal.h>
22240 #include <stddef.h>
22241 int main ()
22242 {
22243 sigset_t set;
22244 sigemptyset (&set);
22245 if (pthread_sigmask (1729, &set, NULL) == -1)
22246 return 1;
22247 return 0;
22248 }
22249 _ACEOF
22250 if ac_fn_c_try_run "$LINENO"; then :
22251 gl_cv_func_pthread_sigmask_return_works=yes
22252 else
22253 gl_cv_func_pthread_sigmask_return_works=no
22254 fi
22255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22256 conftest.$ac_objext conftest.beam conftest.$ac_ext
22257 fi
22258
22259 LIBS="$gl_save_LIBS"
22260
22261 fi
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
22263 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
22264 case "$gl_cv_func_pthread_sigmask_return_works" in
22265 *no)
22266 REPLACE_PTHREAD_SIGMASK=1
22267
22268 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
22269
22270 ;;
22271 esac
22272
22273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
22274 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
22275 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
22276 $as_echo_n "(cached) " >&6
22277 else
22278
22279 case "$host_os" in
22280 irix*)
22281 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
22282 *)
22283 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
22284 esac
22285 gl_save_LIBS="$LIBS"
22286 LIBS="$LIBS $LIBMULTITHREAD"
22287 if test "$cross_compiling" = yes; then :
22288 :
22289 else
22290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22291 /* end confdefs.h. */
22292
22293 #include <pthread.h>
22294 #include <signal.h>
22295 #include <stdio.h>
22296 #include <stdlib.h>
22297 #include <unistd.h>
22298 static volatile int sigint_occurred;
22299 static void
22300 sigint_handler (int sig)
22301 {
22302 sigint_occurred++;
22303 }
22304 int main ()
22305 {
22306 sigset_t set;
22307 int pid = getpid ();
22308 char command[80];
22309 signal (SIGINT, sigint_handler);
22310 sigemptyset (&set);
22311 sigaddset (&set, SIGINT);
22312 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
22313 return 1;
22314 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
22315 if (!(system (command) == 0))
22316 return 2;
22317 sleep (2);
22318 if (!(sigint_occurred == 0))
22319 return 3;
22320 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
22321 return 4;
22322 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
22323 return 5;
22324 return 0;
22325 }
22326 _ACEOF
22327 if ac_fn_c_try_run "$LINENO"; then :
22328 :
22329 else
22330 gl_cv_func_pthread_sigmask_unblock_works=no
22331 fi
22332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22333 conftest.$ac_objext conftest.beam conftest.$ac_ext
22334 fi
22335
22336 LIBS="$gl_save_LIBS"
22337
22338 fi
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
22340 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
22341 case "$gl_cv_func_pthread_sigmask_unblock_works" in
22342 *no)
22343 REPLACE_PTHREAD_SIGMASK=1
22344
22345 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
22346
22347 ;;
22348 esac
22349 fi
22350
22351 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
22352
22353
22354
22355
22356
22357
22358
22359
22360 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
22361
22362
22363 if test $HAVE_PTHREAD_SIGMASK = 1; then
22364
22365 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
22366
22367 fi
22368
22369 fi
22370
22371
22372
22373
22374
22375 GNULIB_PTHREAD_SIGMASK=1
22376
22377
22378
22379
22380
22381
22382
22383
22384 if test $ac_cv_func_readlink = no; then
22385 HAVE_READLINK=0
22386 else
22387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
22388 $as_echo_n "checking whether readlink signature is correct... " >&6; }
22389 if test "${gl_cv_decl_readlink_works+set}" = set; then :
22390 $as_echo_n "(cached) " >&6
22391 else
22392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22393 /* end confdefs.h. */
22394 #include <unistd.h>
22395 /* Cause compilation failure if original declaration has wrong type. */
22396 ssize_t readlink (const char *, char *, size_t);
22397 int
22398 main ()
22399 {
22400
22401 ;
22402 return 0;
22403 }
22404 _ACEOF
22405 if ac_fn_c_try_compile "$LINENO"; then :
22406 gl_cv_decl_readlink_works=yes
22407 else
22408 gl_cv_decl_readlink_works=no
22409 fi
22410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22411 fi
22412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
22413 $as_echo "$gl_cv_decl_readlink_works" >&6; }
22414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
22415 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
22416 if test "${gl_cv_func_readlink_works+set}" = set; then :
22417 $as_echo_n "(cached) " >&6
22418 else
22419 # We have readlink, so assume ln -s works.
22420 ln -s conftest.no-such conftest.link
22421 ln -s conftest.link conftest.lnk2
22422 if test "$cross_compiling" = yes; then :
22423 case "$host_os" in
22424 # Guess yes on glibc systems.
22425 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
22426 # If we don't know, assume the worst.
22427 *) gl_cv_func_readlink_works="guessing no" ;;
22428 esac
22429
22430 else
22431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22432 /* end confdefs.h. */
22433 #include <unistd.h>
22434
22435 int
22436 main ()
22437 {
22438 char buf[20];
22439 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
22440 ;
22441 return 0;
22442 }
22443 _ACEOF
22444 if ac_fn_c_try_run "$LINENO"; then :
22445 gl_cv_func_readlink_works=yes
22446 else
22447 gl_cv_func_readlink_works=no
22448 fi
22449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22450 conftest.$ac_objext conftest.beam conftest.$ac_ext
22451 fi
22452
22453 rm -f conftest.link conftest.lnk2
22454 fi
22455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
22456 $as_echo "$gl_cv_func_readlink_works" >&6; }
22457 case "$gl_cv_func_readlink_works" in
22458 *yes)
22459 if test "$gl_cv_decl_readlink_works" != yes; then
22460 REPLACE_READLINK=1
22461 fi
22462 ;;
22463 *)
22464
22465 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
22466
22467 REPLACE_READLINK=1
22468 ;;
22469 esac
22470 fi
22471
22472 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
22473
22474
22475
22476
22477
22478
22479
22480
22481 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
22482
22483
22484 :
22485
22486 fi
22487
22488
22489
22490
22491
22492 GNULIB_READLINK=1
22493
22494
22495
22496
22497
22498
22499
22500
22501
22502
22503
22504
22505
22506
22507
22508
22509 if test $gl_cv_have_include_next = yes; then
22510 gl_cv_next_signal_h='<'signal.h'>'
22511 else
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
22513 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
22514 if test "${gl_cv_next_signal_h+set}" = set; then :
22515 $as_echo_n "(cached) " >&6
22516 else
22517
22518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22519 /* end confdefs.h. */
22520 #include <signal.h>
22521
22522 _ACEOF
22523 case "$host_os" in
22524 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22525 *) gl_absname_cpp="$ac_cpp" ;;
22526 esac
22527
22528 case "$host_os" in
22529 mingw*)
22530 gl_dirsep_regex='[/\\]'
22531 ;;
22532 *)
22533 gl_dirsep_regex='\/'
22534 ;;
22535 esac
22536 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22537
22538 gl_header_literal_regex=`echo 'signal.h' \
22539 | sed -e "$gl_make_literal_regex_sed"`
22540 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22541 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22542 s|^/[^/]|//&|
22543 p
22544 q
22545 }'
22546 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22547 sed -n "$gl_absolute_header_sed"`'"'
22548
22549
22550 fi
22551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
22552 $as_echo "$gl_cv_next_signal_h" >&6; }
22553 fi
22554 NEXT_SIGNAL_H=$gl_cv_next_signal_h
22555
22556 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22557 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22558 gl_next_as_first_directive='<'signal.h'>'
22559 else
22560 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22561 gl_next_as_first_directive=$gl_cv_next_signal_h
22562 fi
22563 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
22564
22565
22566
22567
22568
22569 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
22570 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
22571 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
22572 #include <signal.h>
22573
22574 "
22575 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
22576
22577 else
22578 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
22579 fi
22580
22581
22582
22583
22584
22585
22586
22587 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
22588 #include <signal.h>
22589
22590 "
22591 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
22592
22593 else
22594 HAVE_SIGHANDLER_T=0
22595 fi
22596
22597
22598
22599
22600 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
22601 /* <sys/types.h> is not needed according to POSIX, but the
22602 <sys/socket.h> in i386-unknown-freebsd4.10 and
22603 powerpc-apple-darwin5.5 required it. */
22604 #include <sys/types.h>
22605 #if HAVE_SYS_SOCKET_H
22606 # include <sys/socket.h>
22607 #elif HAVE_WS2TCPIP_H
22608 # include <ws2tcpip.h>
22609 #endif
22610
22611 "
22612 if test "x$ac_cv_type_socklen_t" = x""yes; then :
22613
22614 else
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
22616 $as_echo_n "checking for socklen_t equivalent... " >&6; }
22617 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
22618 $as_echo_n "(cached) " >&6
22619 else
22620 # Systems have either "struct sockaddr *" or
22621 # "void *" as the second argument to getpeername
22622 gl_cv_socklen_t_equiv=
22623 for arg2 in "struct sockaddr" void; do
22624 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
22625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22626 /* end confdefs.h. */
22627 #include <sys/types.h>
22628 #include <sys/socket.h>
22629
22630 int getpeername (int, $arg2 *, $t *);
22631 int
22632 main ()
22633 {
22634 $t len;
22635 getpeername (0, 0, &len);
22636 ;
22637 return 0;
22638 }
22639 _ACEOF
22640 if ac_fn_c_try_compile "$LINENO"; then :
22641 gl_cv_socklen_t_equiv="$t"
22642 fi
22643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22644 test "$gl_cv_socklen_t_equiv" != "" && break
22645 done
22646 test "$gl_cv_socklen_t_equiv" != "" && break
22647 done
22648
22649 fi
22650
22651 if test "$gl_cv_socklen_t_equiv" = ""; then
22652 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
22653 fi
22654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
22655 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
22656
22657 cat >>confdefs.h <<_ACEOF
22658 #define socklen_t $gl_cv_socklen_t_equiv
22659 _ACEOF
22660
22661 fi
22662
22663
22664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
22665 $as_echo_n "checking for ssize_t... " >&6; }
22666 if test "${gt_cv_ssize_t+set}" = set; then :
22667 $as_echo_n "(cached) " >&6
22668 else
22669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22670 /* end confdefs.h. */
22671 #include <sys/types.h>
22672 int
22673 main ()
22674 {
22675 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22676 return !x;
22677 ;
22678 return 0;
22679 }
22680 _ACEOF
22681 if ac_fn_c_try_compile "$LINENO"; then :
22682 gt_cv_ssize_t=yes
22683 else
22684 gt_cv_ssize_t=no
22685 fi
22686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22687 fi
22688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
22689 $as_echo "$gt_cv_ssize_t" >&6; }
22690 if test $gt_cv_ssize_t = no; then
22691
22692 $as_echo "#define ssize_t int" >>confdefs.h
22693
22694 fi
22695
22696
22697
22698
22699
22700 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
22701 #include <sys/stat.h>
22702 "
22703 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
22704
22705 cat >>confdefs.h <<_ACEOF
22706 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
22707 _ACEOF
22708
22709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
22710 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
22711 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
22712 $as_echo_n "(cached) " >&6
22713 else
22714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22715 /* end confdefs.h. */
22716
22717 #include <sys/types.h>
22718 #include <sys/stat.h>
22719 #if HAVE_SYS_TIME_H
22720 # include <sys/time.h>
22721 #endif
22722 #include <time.h>
22723 struct timespec ts;
22724 struct stat st;
22725
22726 int
22727 main ()
22728 {
22729
22730 st.st_atim = ts;
22731
22732 ;
22733 return 0;
22734 }
22735 _ACEOF
22736 if ac_fn_c_try_compile "$LINENO"; then :
22737 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
22738 else
22739 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
22740 fi
22741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22742 fi
22743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
22744 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
22745 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
22746
22747 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
22748
22749 fi
22750 else
22751 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
22752 #include <sys/stat.h>
22753 "
22754 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
22755
22756 cat >>confdefs.h <<_ACEOF
22757 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
22758 _ACEOF
22759
22760
22761 else
22762 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
22763 #include <sys/stat.h>
22764 "
22765 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
22766
22767 cat >>confdefs.h <<_ACEOF
22768 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
22769 _ACEOF
22770
22771
22772 else
22773 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
22774 #include <sys/stat.h>
22775 "
22776 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
22777
22778 cat >>confdefs.h <<_ACEOF
22779 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
22780 _ACEOF
22781
22782
22783 fi
22784
22785 fi
22786
22787 fi
22788
22789 fi
22790
22791
22792
22793
22794
22795 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
22796 #include <sys/stat.h>
22797 "
22798 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
22799
22800 cat >>confdefs.h <<_ACEOF
22801 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
22802 _ACEOF
22803
22804
22805 else
22806 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
22807 #include <sys/stat.h>
22808 "
22809 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
22810
22811 cat >>confdefs.h <<_ACEOF
22812 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
22813 _ACEOF
22814
22815
22816 else
22817 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
22818 #include <sys/stat.h>
22819 "
22820 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
22821
22822 cat >>confdefs.h <<_ACEOF
22823 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
22824 _ACEOF
22825
22826
22827 fi
22828
22829 fi
22830
22831 fi
22832
22833
22834
22835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
22836 $as_echo_n "checking for working stdalign.h... " >&6; }
22837 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
22838 $as_echo_n "(cached) " >&6
22839 else
22840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22841 /* end confdefs.h. */
22842 #include <stdalign.h>
22843 #include <stddef.h>
22844
22845 /* Test that alignof yields a result consistent with offsetof.
22846 This catches GCC bug 52023
22847 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
22848 #ifdef __cplusplus
22849 template <class t> struct alignof_helper { char a; t b; };
22850 # define ao(type) offsetof (alignof_helper<type>, b)
22851 #else
22852 # define ao(type) offsetof (struct { char a; type b; }, b)
22853 #endif
22854 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
22855 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
22856 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
22857
22858 /* Test _Alignas only on platforms where gnulib can help. */
22859 #if \
22860 (__GNUC__ || __IBMC__ || __IBMCPP__ \
22861 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
22862 int alignas (8) alignas_int = 1;
22863 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
22864 #endif
22865
22866 int
22867 main ()
22868 {
22869
22870 ;
22871 return 0;
22872 }
22873 _ACEOF
22874 if ac_fn_c_try_compile "$LINENO"; then :
22875 gl_cv_header_working_stdalign_h=yes
22876 else
22877 gl_cv_header_working_stdalign_h=no
22878 fi
22879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22880 fi
22881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
22882 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
22883
22884 if test $gl_cv_header_working_stdalign_h = yes; then
22885 STDALIGN_H=''
22886 else
22887 STDALIGN_H='stdalign.h'
22888 fi
22889
22890
22891 if test -n "$STDALIGN_H"; then
22892 GL_GENERATE_STDALIGN_H_TRUE=
22893 GL_GENERATE_STDALIGN_H_FALSE='#'
22894 else
22895 GL_GENERATE_STDALIGN_H_TRUE='#'
22896 GL_GENERATE_STDALIGN_H_FALSE=
22897 fi
22898
22899
22900
22901 STDARG_H=''
22902 NEXT_STDARG_H='<stdarg.h>'
22903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
22904 $as_echo_n "checking for va_copy... " >&6; }
22905 if test "${gl_cv_func_va_copy+set}" = set; then :
22906 $as_echo_n "(cached) " >&6
22907 else
22908
22909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22910 /* end confdefs.h. */
22911 #include <stdarg.h>
22912 int
22913 main ()
22914 {
22915
22916 #ifndef va_copy
22917 void (*func) (va_list, va_list) = va_copy;
22918 #endif
22919
22920 ;
22921 return 0;
22922 }
22923 _ACEOF
22924 if ac_fn_c_try_compile "$LINENO"; then :
22925 gl_cv_func_va_copy=yes
22926 else
22927 gl_cv_func_va_copy=no
22928 fi
22929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22930 fi
22931
22932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
22933 $as_echo "$gl_cv_func_va_copy" >&6; }
22934 if test $gl_cv_func_va_copy = no; then
22935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22936 /* end confdefs.h. */
22937 #if defined _AIX && !defined __GNUC__
22938 AIX vaccine
22939 #endif
22940
22941 _ACEOF
22942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22943 $EGREP "vaccine" >/dev/null 2>&1; then :
22944 gl_aixcc=yes
22945 else
22946 gl_aixcc=no
22947 fi
22948 rm -f conftest*
22949
22950 if test $gl_aixcc = yes; then
22951 STDARG_H=stdarg.h
22952
22953
22954
22955
22956
22957
22958
22959
22960 if test $gl_cv_have_include_next = yes; then
22961 gl_cv_next_stdarg_h='<'stdarg.h'>'
22962 else
22963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
22964 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
22965 if test "${gl_cv_next_stdarg_h+set}" = set; then :
22966 $as_echo_n "(cached) " >&6
22967 else
22968
22969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22970 /* end confdefs.h. */
22971 #include <stdarg.h>
22972
22973 _ACEOF
22974 case "$host_os" in
22975 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22976 *) gl_absname_cpp="$ac_cpp" ;;
22977 esac
22978
22979 case "$host_os" in
22980 mingw*)
22981 gl_dirsep_regex='[/\\]'
22982 ;;
22983 *)
22984 gl_dirsep_regex='\/'
22985 ;;
22986 esac
22987 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22988
22989 gl_header_literal_regex=`echo 'stdarg.h' \
22990 | sed -e "$gl_make_literal_regex_sed"`
22991 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22992 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22993 s|^/[^/]|//&|
22994 p
22995 q
22996 }'
22997 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22998 sed -n "$gl_absolute_header_sed"`'"'
22999
23000
23001 fi
23002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
23003 $as_echo "$gl_cv_next_stdarg_h" >&6; }
23004 fi
23005 NEXT_STDARG_H=$gl_cv_next_stdarg_h
23006
23007 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23008 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23009 gl_next_as_first_directive='<'stdarg.h'>'
23010 else
23011 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23012 gl_next_as_first_directive=$gl_cv_next_stdarg_h
23013 fi
23014 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
23015
23016
23017
23018
23019 if test "$gl_cv_next_stdarg_h" = '""'; then
23020 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
23021 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
23022 fi
23023 else
23024
23025 saved_as_echo_n="$as_echo_n"
23026 as_echo_n=':'
23027 if test "${gl_cv_func___va_copy+set}" = set; then :
23028 $as_echo_n "(cached) " >&6
23029 else
23030
23031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23032 /* end confdefs.h. */
23033 #include <stdarg.h>
23034 int
23035 main ()
23036 {
23037
23038 #ifndef __va_copy
23039 error, bail out
23040 #endif
23041
23042 ;
23043 return 0;
23044 }
23045 _ACEOF
23046 if ac_fn_c_try_compile "$LINENO"; then :
23047 gl_cv_func___va_copy=yes
23048 else
23049 gl_cv_func___va_copy=no
23050 fi
23051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23052 fi
23053
23054 as_echo_n="$saved_as_echo_n"
23055
23056 if test $gl_cv_func___va_copy = yes; then
23057
23058 $as_echo "#define va_copy __va_copy" >>confdefs.h
23059
23060 else
23061
23062
23063 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
23064
23065 fi
23066 fi
23067 fi
23068
23069 if test -n "$STDARG_H"; then
23070 GL_GENERATE_STDARG_H_TRUE=
23071 GL_GENERATE_STDARG_H_FALSE='#'
23072 else
23073 GL_GENERATE_STDARG_H_TRUE='#'
23074 GL_GENERATE_STDARG_H_FALSE=
23075 fi
23076
23077
23078
23079
23080
23081
23082 # Define two additional variables used in the Makefile substitution.
23083
23084 if test "$ac_cv_header_stdbool_h" = yes; then
23085 STDBOOL_H=''
23086 else
23087 STDBOOL_H='stdbool.h'
23088 fi
23089
23090 if test -n "$STDBOOL_H"; then
23091 GL_GENERATE_STDBOOL_H_TRUE=
23092 GL_GENERATE_STDBOOL_H_FALSE='#'
23093 else
23094 GL_GENERATE_STDBOOL_H_TRUE='#'
23095 GL_GENERATE_STDBOOL_H_FALSE=
23096 fi
23097
23098
23099 if test "$ac_cv_type__Bool" = yes; then
23100 HAVE__BOOL=1
23101 else
23102 HAVE__BOOL=0
23103 fi
23104
23105
23106
23107
23108
23109 STDDEF_H=
23110 if test $gt_cv_c_wchar_t = no; then
23111 HAVE_WCHAR_T=0
23112 STDDEF_H=stddef.h
23113 fi
23114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
23115 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
23116 if test "${gl_cv_decl_null_works+set}" = set; then :
23117 $as_echo_n "(cached) " >&6
23118 else
23119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23120 /* end confdefs.h. */
23121 #include <stddef.h>
23122 int test[2 * (sizeof NULL == sizeof (void *)) -1];
23123
23124 int
23125 main ()
23126 {
23127
23128 ;
23129 return 0;
23130 }
23131 _ACEOF
23132 if ac_fn_c_try_compile "$LINENO"; then :
23133 gl_cv_decl_null_works=yes
23134 else
23135 gl_cv_decl_null_works=no
23136 fi
23137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23138 fi
23139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
23140 $as_echo "$gl_cv_decl_null_works" >&6; }
23141 if test $gl_cv_decl_null_works = no; then
23142 REPLACE_NULL=1
23143 STDDEF_H=stddef.h
23144 fi
23145
23146 if test -n "$STDDEF_H"; then
23147 GL_GENERATE_STDDEF_H_TRUE=
23148 GL_GENERATE_STDDEF_H_FALSE='#'
23149 else
23150 GL_GENERATE_STDDEF_H_TRUE='#'
23151 GL_GENERATE_STDDEF_H_FALSE=
23152 fi
23153
23154 if test -n "$STDDEF_H"; then
23155
23156
23157
23158
23159
23160
23161
23162
23163 if test $gl_cv_have_include_next = yes; then
23164 gl_cv_next_stddef_h='<'stddef.h'>'
23165 else
23166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
23167 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
23168 if test "${gl_cv_next_stddef_h+set}" = set; then :
23169 $as_echo_n "(cached) " >&6
23170 else
23171
23172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23173 /* end confdefs.h. */
23174 #include <stddef.h>
23175
23176 _ACEOF
23177 case "$host_os" in
23178 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23179 *) gl_absname_cpp="$ac_cpp" ;;
23180 esac
23181
23182 case "$host_os" in
23183 mingw*)
23184 gl_dirsep_regex='[/\\]'
23185 ;;
23186 *)
23187 gl_dirsep_regex='\/'
23188 ;;
23189 esac
23190 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23191
23192 gl_header_literal_regex=`echo 'stddef.h' \
23193 | sed -e "$gl_make_literal_regex_sed"`
23194 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23195 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23196 s|^/[^/]|//&|
23197 p
23198 q
23199 }'
23200 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23201 sed -n "$gl_absolute_header_sed"`'"'
23202
23203
23204 fi
23205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
23206 $as_echo "$gl_cv_next_stddef_h" >&6; }
23207 fi
23208 NEXT_STDDEF_H=$gl_cv_next_stddef_h
23209
23210 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23211 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23212 gl_next_as_first_directive='<'stddef.h'>'
23213 else
23214 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23215 gl_next_as_first_directive=$gl_cv_next_stddef_h
23216 fi
23217 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
23218
23219
23220
23221
23222 fi
23223
23224
23225
23226
23227
23228
23229
23230
23231
23232
23233
23234
23235 if test $gl_cv_have_include_next = yes; then
23236 gl_cv_next_stdio_h='<'stdio.h'>'
23237 else
23238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
23239 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
23240 if test "${gl_cv_next_stdio_h+set}" = set; then :
23241 $as_echo_n "(cached) " >&6
23242 else
23243
23244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23245 /* end confdefs.h. */
23246 #include <stdio.h>
23247
23248 _ACEOF
23249 case "$host_os" in
23250 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23251 *) gl_absname_cpp="$ac_cpp" ;;
23252 esac
23253
23254 case "$host_os" in
23255 mingw*)
23256 gl_dirsep_regex='[/\\]'
23257 ;;
23258 *)
23259 gl_dirsep_regex='\/'
23260 ;;
23261 esac
23262 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23263
23264 gl_header_literal_regex=`echo 'stdio.h' \
23265 | sed -e "$gl_make_literal_regex_sed"`
23266 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23267 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23268 s|^/[^/]|//&|
23269 p
23270 q
23271 }'
23272 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23273 sed -n "$gl_absolute_header_sed"`'"'
23274
23275
23276 fi
23277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
23278 $as_echo "$gl_cv_next_stdio_h" >&6; }
23279 fi
23280 NEXT_STDIO_H=$gl_cv_next_stdio_h
23281
23282 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23283 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23284 gl_next_as_first_directive='<'stdio.h'>'
23285 else
23286 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23287 gl_next_as_first_directive=$gl_cv_next_stdio_h
23288 fi
23289 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
23290
23291
23292
23293
23294
23295 GNULIB_FSCANF=1
23296
23297
23298 cat >>confdefs.h <<_ACEOF
23299 #define GNULIB_FSCANF 1
23300 _ACEOF
23301
23302
23303 GNULIB_SCANF=1
23304
23305
23306 cat >>confdefs.h <<_ACEOF
23307 #define GNULIB_SCANF 1
23308 _ACEOF
23309
23310
23311 GNULIB_FGETC=1
23312 GNULIB_GETC=1
23313 GNULIB_GETCHAR=1
23314 GNULIB_FGETS=1
23315 GNULIB_FREAD=1
23316
23317
23318 GNULIB_FPRINTF=1
23319 GNULIB_PRINTF=1
23320 GNULIB_VFPRINTF=1
23321 GNULIB_VPRINTF=1
23322 GNULIB_FPUTC=1
23323 GNULIB_PUTC=1
23324 GNULIB_PUTCHAR=1
23325 GNULIB_FPUTS=1
23326 GNULIB_PUTS=1
23327 GNULIB_FWRITE=1
23328
23329
23330
23331
23332
23333
23334
23335
23336
23337
23338
23339
23340
23341
23342
23343 if test $gl_cv_have_include_next = yes; then
23344 gl_cv_next_stdlib_h='<'stdlib.h'>'
23345 else
23346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
23347 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
23348 if test "${gl_cv_next_stdlib_h+set}" = set; then :
23349 $as_echo_n "(cached) " >&6
23350 else
23351
23352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23353 /* end confdefs.h. */
23354 #include <stdlib.h>
23355
23356 _ACEOF
23357 case "$host_os" in
23358 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23359 *) gl_absname_cpp="$ac_cpp" ;;
23360 esac
23361
23362 case "$host_os" in
23363 mingw*)
23364 gl_dirsep_regex='[/\\]'
23365 ;;
23366 *)
23367 gl_dirsep_regex='\/'
23368 ;;
23369 esac
23370 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23371
23372 gl_header_literal_regex=`echo 'stdlib.h' \
23373 | sed -e "$gl_make_literal_regex_sed"`
23374 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23375 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23376 s|^/[^/]|//&|
23377 p
23378 q
23379 }'
23380 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23381 sed -n "$gl_absolute_header_sed"`'"'
23382
23383
23384 fi
23385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
23386 $as_echo "$gl_cv_next_stdlib_h" >&6; }
23387 fi
23388 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
23389
23390 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23391 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23392 gl_next_as_first_directive='<'stdlib.h'>'
23393 else
23394 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23395 gl_next_as_first_directive=$gl_cv_next_stdlib_h
23396 fi
23397 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
23398
23399
23400
23401
23402
23403
23404
23405
23406
23407 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
23408
23409
23410
23411
23412
23413
23414
23415 $as_echo "#define my_strftime nstrftime" >>confdefs.h
23416
23417
23418
23419
23420
23421
23422
23423
23424 if test "$ac_cv_have_decl_strtoimax" != yes; then
23425 HAVE_DECL_STRTOIMAX=0
23426 fi
23427
23428 if test $ac_cv_func_strtoimax = yes; then
23429 HAVE_STRTOIMAX=1
23430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
23431 $as_echo_n "checking whether strtoimax works... " >&6; }
23432 if test "${gl_cv_func_strtoimax+set}" = set; then :
23433 $as_echo_n "(cached) " >&6
23434 else
23435 if test "$cross_compiling" = yes; then :
23436 case "$host_os" in
23437 # Guess no on AIX 5.
23438 aix5*) gl_cv_func_strtoimax="guessing no" ;;
23439 # Guess yes otherwise.
23440 *) gl_cv_func_strtoimax="guessing yes" ;;
23441 esac
23442
23443 else
23444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23445 /* end confdefs.h. */
23446
23447 #include <errno.h>
23448 #include <string.h>
23449 #include <inttypes.h>
23450 int main ()
23451 {
23452 if (sizeof (intmax_t) > sizeof (int))
23453 {
23454 const char *s = "4294967295";
23455 char *p;
23456 intmax_t res;
23457 errno = 0;
23458 res = strtoimax (s, &p, 10);
23459 if (p != s + strlen (s))
23460 return 1;
23461 if (errno != 0)
23462 return 2;
23463 if (res != (intmax_t) 65535 * (intmax_t) 65537)
23464 return 3;
23465 }
23466 else
23467 {
23468 const char *s = "2147483647";
23469 char *p;
23470 intmax_t res;
23471 errno = 0;
23472 res = strtoimax (s, &p, 10);
23473 if (p != s + strlen (s))
23474 return 1;
23475 if (errno != 0)
23476 return 2;
23477 if (res != 2147483647)
23478 return 3;
23479 }
23480 return 0;
23481 }
23482
23483 _ACEOF
23484 if ac_fn_c_try_run "$LINENO"; then :
23485 gl_cv_func_strtoimax=yes
23486 else
23487 gl_cv_func_strtoimax=no
23488 fi
23489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23490 conftest.$ac_objext conftest.beam conftest.$ac_ext
23491 fi
23492
23493
23494 fi
23495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
23496 $as_echo "$gl_cv_func_strtoimax" >&6; }
23497 case "$gl_cv_func_strtoimax" in
23498 *no) REPLACE_STRTOIMAX=1 ;;
23499 esac
23500 else
23501 HAVE_STRTOIMAX=0
23502 fi
23503
23504 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
23505
23506
23507
23508
23509
23510
23511
23512
23513 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
23514
23515
23516 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
23517 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
23518 ac_have_decl=1
23519 else
23520 ac_have_decl=0
23521 fi
23522
23523 cat >>confdefs.h <<_ACEOF
23524 #define HAVE_DECL_STRTOLL $ac_have_decl
23525 _ACEOF
23526
23527
23528
23529 fi
23530
23531
23532
23533
23534
23535 GNULIB_STRTOIMAX=1
23536
23537
23538
23539
23540
23541
23542
23543
23544
23545 if test "$ac_cv_have_decl_strtoumax" != yes; then
23546 HAVE_DECL_STRTOUMAX=0
23547 fi
23548
23549 if test $ac_cv_func_strtoumax = no; then
23550
23551
23552
23553
23554
23555
23556
23557
23558 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
23559
23560
23561 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
23562 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
23563 ac_have_decl=1
23564 else
23565 ac_have_decl=0
23566 fi
23567
23568 cat >>confdefs.h <<_ACEOF
23569 #define HAVE_DECL_STRTOULL $ac_have_decl
23570 _ACEOF
23571
23572
23573
23574 fi
23575
23576
23577
23578
23579
23580 GNULIB_STRTOUMAX=1
23581
23582
23583
23584
23585
23586
23587
23588 if test $ac_cv_func_symlink = no; then
23589 HAVE_SYMLINK=0
23590 else
23591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
23592 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
23593 if test "${gl_cv_func_symlink_works+set}" = set; then :
23594 $as_echo_n "(cached) " >&6
23595 else
23596 if test "$cross_compiling" = yes; then :
23597 case "$host_os" in
23598 # Guess yes on glibc systems.
23599 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
23600 # If we don't know, assume the worst.
23601 *) gl_cv_func_symlink_works="guessing no" ;;
23602 esac
23603
23604 else
23605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23606 /* end confdefs.h. */
23607 #include <unistd.h>
23608
23609 int
23610 main ()
23611 {
23612 int result = 0;
23613 if (!symlink ("a", "conftest.link/"))
23614 result |= 1;
23615 if (symlink ("conftest.f", "conftest.lnk2"))
23616 result |= 2;
23617 else if (!symlink ("a", "conftest.lnk2/"))
23618 result |= 4;
23619 return result;
23620
23621 ;
23622 return 0;
23623 }
23624 _ACEOF
23625 if ac_fn_c_try_run "$LINENO"; then :
23626 gl_cv_func_symlink_works=yes
23627 else
23628 gl_cv_func_symlink_works=no
23629 fi
23630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23631 conftest.$ac_objext conftest.beam conftest.$ac_ext
23632 fi
23633
23634 rm -f conftest.f conftest.link conftest.lnk2
23635 fi
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
23637 $as_echo "$gl_cv_func_symlink_works" >&6; }
23638 case "$gl_cv_func_symlink_works" in
23639 *yes) ;;
23640 *)
23641 REPLACE_SYMLINK=1
23642 ;;
23643 esac
23644 fi
23645
23646 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
23647
23648
23649
23650
23651
23652
23653
23654
23655 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
23656
23657 fi
23658
23659
23660
23661
23662
23663 GNULIB_SYMLINK=1
23664
23665
23666
23667
23668
23669
23670
23671
23672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
23673 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
23674 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
23675 $as_echo_n "(cached) " >&6
23676 else
23677
23678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23679 /* end confdefs.h. */
23680 #include <sys/select.h>
23681 int
23682 main ()
23683 {
23684 struct timeval b;
23685 ;
23686 return 0;
23687 }
23688 _ACEOF
23689 if ac_fn_c_try_compile "$LINENO"; then :
23690 gl_cv_header_sys_select_h_selfcontained=yes
23691 else
23692 gl_cv_header_sys_select_h_selfcontained=no
23693 fi
23694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23695 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
23696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23697 /* end confdefs.h. */
23698 #include <sys/select.h>
23699 int
23700 main ()
23701 {
23702 int memset; int bzero;
23703 ;
23704 return 0;
23705 }
23706
23707 _ACEOF
23708 if ac_fn_c_try_compile "$LINENO"; then :
23709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23710 /* end confdefs.h. */
23711 #include <sys/select.h>
23712 int
23713 main ()
23714 {
23715
23716 #undef memset
23717 #define memset nonexistent_memset
23718 extern
23719 #ifdef __cplusplus
23720 "C"
23721 #endif
23722 void *memset (void *, int, unsigned long);
23723 #undef bzero
23724 #define bzero nonexistent_bzero
23725 extern
23726 #ifdef __cplusplus
23727 "C"
23728 #endif
23729 void bzero (void *, unsigned long);
23730 fd_set fds;
23731 FD_ZERO (&fds);
23732
23733 ;
23734 return 0;
23735 }
23736
23737 _ACEOF
23738 if ac_fn_c_try_link "$LINENO"; then :
23739
23740 else
23741 gl_cv_header_sys_select_h_selfcontained=no
23742 fi
23743 rm -f core conftest.err conftest.$ac_objext \
23744 conftest$ac_exeext conftest.$ac_ext
23745
23746 fi
23747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23748 fi
23749
23750 fi
23751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
23752 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
23753
23754
23755
23756
23757
23758
23759
23760
23761
23762 if test $gl_cv_have_include_next = yes; then
23763 gl_cv_next_sys_select_h='<'sys/select.h'>'
23764 else
23765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
23766 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
23767 if test "${gl_cv_next_sys_select_h+set}" = set; then :
23768 $as_echo_n "(cached) " >&6
23769 else
23770
23771 if test $ac_cv_header_sys_select_h = yes; then
23772
23773
23774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23775 /* end confdefs.h. */
23776 #include <sys/select.h>
23777
23778 _ACEOF
23779 case "$host_os" in
23780 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23781 *) gl_absname_cpp="$ac_cpp" ;;
23782 esac
23783
23784 case "$host_os" in
23785 mingw*)
23786 gl_dirsep_regex='[/\\]'
23787 ;;
23788 *)
23789 gl_dirsep_regex='\/'
23790 ;;
23791 esac
23792 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23793
23794 gl_header_literal_regex=`echo 'sys/select.h' \
23795 | sed -e "$gl_make_literal_regex_sed"`
23796 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23797 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23798 s|^/[^/]|//&|
23799 p
23800 q
23801 }'
23802 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23803 sed -n "$gl_absolute_header_sed"`'"'
23804 else
23805 gl_cv_next_sys_select_h='<'sys/select.h'>'
23806 fi
23807
23808
23809 fi
23810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
23811 $as_echo "$gl_cv_next_sys_select_h" >&6; }
23812 fi
23813 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
23814
23815 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23816 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23817 gl_next_as_first_directive='<'sys/select.h'>'
23818 else
23819 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23820 gl_next_as_first_directive=$gl_cv_next_sys_select_h
23821 fi
23822 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
23823
23824
23825
23826
23827 if test $ac_cv_header_sys_select_h = yes; then
23828 HAVE_SYS_SELECT_H=1
23829 else
23830 HAVE_SYS_SELECT_H=0
23831 fi
23832
23833
23834
23835
23836
23837 if test $ac_cv_header_sys_socket_h != yes; then
23838 for ac_header in winsock2.h
23839 do :
23840 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23841 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
23842 cat >>confdefs.h <<_ACEOF
23843 #define HAVE_WINSOCK2_H 1
23844 _ACEOF
23845
23846 fi
23847
23848 done
23849
23850 fi
23851 if test "$ac_cv_header_winsock2_h" = yes; then
23852 HAVE_WINSOCK2_H=1
23853 UNISTD_H_HAVE_WINSOCK2_H=1
23854 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
23855 else
23856 HAVE_WINSOCK2_H=0
23857 fi
23858
23859
23860
23861
23862
23863
23864
23865
23866
23867
23868
23869
23870
23871
23872
23873
23874
23875
23876
23877
23878 if test $gl_cv_have_include_next = yes; then
23879 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23880 else
23881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
23882 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
23883 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
23884 $as_echo_n "(cached) " >&6
23885 else
23886
23887 if test $ac_cv_header_sys_stat_h = yes; then
23888
23889
23890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23891 /* end confdefs.h. */
23892 #include <sys/stat.h>
23893
23894 _ACEOF
23895 case "$host_os" in
23896 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23897 *) gl_absname_cpp="$ac_cpp" ;;
23898 esac
23899
23900 case "$host_os" in
23901 mingw*)
23902 gl_dirsep_regex='[/\\]'
23903 ;;
23904 *)
23905 gl_dirsep_regex='\/'
23906 ;;
23907 esac
23908 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23909
23910 gl_header_literal_regex=`echo 'sys/stat.h' \
23911 | sed -e "$gl_make_literal_regex_sed"`
23912 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23913 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23914 s|^/[^/]|//&|
23915 p
23916 q
23917 }'
23918 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23919 sed -n "$gl_absolute_header_sed"`'"'
23920 else
23921 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23922 fi
23923
23924
23925 fi
23926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
23927 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
23928 fi
23929 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
23930
23931 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23932 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23933 gl_next_as_first_directive='<'sys/stat.h'>'
23934 else
23935 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23936 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
23937 fi
23938 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
23939
23940
23941
23942
23943
23944
23945
23946
23947
23948
23949
23950 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
23951
23952 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
23953
23954 fi
23955
23956 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
23957 #include <sys/stat.h>
23958 "
23959 if test "x$ac_cv_type_nlink_t" = x""yes; then :
23960
23961 else
23962
23963 $as_echo "#define nlink_t int" >>confdefs.h
23964
23965 fi
23966
23967
23968
23969
23970
23971
23972
23973
23974
23975
23976
23977
23978
23979
23980
23981
23982
23983
23984 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
23985 "
23986 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
23987 ac_have_decl=1
23988 else
23989 ac_have_decl=0
23990 fi
23991
23992 cat >>confdefs.h <<_ACEOF
23993 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
23994 _ACEOF
23995
23996 if test $ac_cv_have_decl_localtime_r = no; then
23997 HAVE_DECL_LOCALTIME_R=0
23998 fi
23999
24000
24001 if test $ac_cv_func_localtime_r = yes; then
24002 HAVE_LOCALTIME_R=1
24003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
24004 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
24005 if test "${gl_cv_time_r_posix+set}" = set; then :
24006 $as_echo_n "(cached) " >&6
24007 else
24008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24009 /* end confdefs.h. */
24010 #include <time.h>
24011 int
24012 main ()
24013 {
24014 /* We don't need to append 'restrict's to the argument types,
24015 even though the POSIX signature has the 'restrict's,
24016 since C99 says they can't affect type compatibility. */
24017 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
24018 if (ptr) return 0;
24019 /* Check the return type is a pointer.
24020 On HP-UX 10 it is 'int'. */
24021 *localtime_r (0, 0);
24022 ;
24023 return 0;
24024 }
24025
24026 _ACEOF
24027 if ac_fn_c_try_compile "$LINENO"; then :
24028 gl_cv_time_r_posix=yes
24029 else
24030 gl_cv_time_r_posix=no
24031 fi
24032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24033
24034 fi
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
24036 $as_echo "$gl_cv_time_r_posix" >&6; }
24037 if test $gl_cv_time_r_posix = yes; then
24038 REPLACE_LOCALTIME_R=0
24039 else
24040 REPLACE_LOCALTIME_R=1
24041 fi
24042 else
24043 HAVE_LOCALTIME_R=0
24044 fi
24045
24046 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
24047
24048
24049
24050
24051
24052
24053
24054
24055 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
24056
24057
24058 :
24059
24060 fi
24061
24062
24063
24064
24065
24066 GNULIB_TIME_R=1
24067
24068
24069
24070
24071
24072
24073
24074
24075
24076
24077 LIB_TIMER_TIME=
24078
24079 gl_saved_libs=$LIBS
24080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
24081 $as_echo_n "checking for library containing timer_settime... " >&6; }
24082 if test "${ac_cv_search_timer_settime+set}" = set; then :
24083 $as_echo_n "(cached) " >&6
24084 else
24085 ac_func_search_save_LIBS=$LIBS
24086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24087 /* end confdefs.h. */
24088
24089 /* Override any GCC internal prototype to avoid an error.
24090 Use char because int might match the return type of a GCC
24091 builtin and then its argument prototype would still apply. */
24092 #ifdef __cplusplus
24093 extern "C"
24094 #endif
24095 char timer_settime ();
24096 int
24097 main ()
24098 {
24099 return timer_settime ();
24100 ;
24101 return 0;
24102 }
24103 _ACEOF
24104 for ac_lib in '' rt posix4; do
24105 if test -z "$ac_lib"; then
24106 ac_res="none required"
24107 else
24108 ac_res=-l$ac_lib
24109 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24110 fi
24111 if ac_fn_c_try_link "$LINENO"; then :
24112 ac_cv_search_timer_settime=$ac_res
24113 fi
24114 rm -f core conftest.err conftest.$ac_objext \
24115 conftest$ac_exeext
24116 if test "${ac_cv_search_timer_settime+set}" = set; then :
24117 break
24118 fi
24119 done
24120 if test "${ac_cv_search_timer_settime+set}" = set; then :
24121
24122 else
24123 ac_cv_search_timer_settime=no
24124 fi
24125 rm conftest.$ac_ext
24126 LIBS=$ac_func_search_save_LIBS
24127 fi
24128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
24129 $as_echo "$ac_cv_search_timer_settime" >&6; }
24130 ac_res=$ac_cv_search_timer_settime
24131 if test "$ac_res" != no; then :
24132 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24133 test "$ac_cv_search_timer_settime" = "none required" ||
24134 LIB_TIMER_TIME=$ac_cv_search_timer_settime
24135 fi
24136
24137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24138 /* end confdefs.h. */
24139
24140 #include <features.h>
24141 #ifdef __GNU_LIBRARY__
24142 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
24143 && !defined __UCLIBC__
24144 Thread emulation available
24145 #endif
24146 #endif
24147
24148 _ACEOF
24149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24150 $EGREP "Thread" >/dev/null 2>&1; then :
24151 LIB_TIMER_TIME="$LIB_TIMER_TIME $LIBMULTITHREAD"
24152 fi
24153 rm -f conftest*
24154
24155 for ac_func in timer_settime
24156 do :
24157 ac_fn_c_check_func "$LINENO" "timer_settime" "ac_cv_func_timer_settime"
24158 if test "x$ac_cv_func_timer_settime" = x""yes; then :
24159 cat >>confdefs.h <<_ACEOF
24160 #define HAVE_TIMER_SETTIME 1
24161 _ACEOF
24162
24163 fi
24164 done
24165
24166 LIBS=$gl_saved_libs
24167
24168 :
24169
24170
24171
24172
24173
24174
24175
24176
24177
24178
24179
24180
24181 if test $gl_cv_have_include_next = yes; then
24182 gl_cv_next_unistd_h='<'unistd.h'>'
24183 else
24184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
24185 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
24186 if test "${gl_cv_next_unistd_h+set}" = set; then :
24187 $as_echo_n "(cached) " >&6
24188 else
24189
24190 if test $ac_cv_header_unistd_h = yes; then
24191
24192
24193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24194 /* end confdefs.h. */
24195 #include <unistd.h>
24196
24197 _ACEOF
24198 case "$host_os" in
24199 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24200 *) gl_absname_cpp="$ac_cpp" ;;
24201 esac
24202
24203 case "$host_os" in
24204 mingw*)
24205 gl_dirsep_regex='[/\\]'
24206 ;;
24207 *)
24208 gl_dirsep_regex='\/'
24209 ;;
24210 esac
24211 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24212
24213 gl_header_literal_regex=`echo 'unistd.h' \
24214 | sed -e "$gl_make_literal_regex_sed"`
24215 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24216 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24217 s|^/[^/]|//&|
24218 p
24219 q
24220 }'
24221 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24222 sed -n "$gl_absolute_header_sed"`'"'
24223 else
24224 gl_cv_next_unistd_h='<'unistd.h'>'
24225 fi
24226
24227
24228 fi
24229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
24230 $as_echo "$gl_cv_next_unistd_h" >&6; }
24231 fi
24232 NEXT_UNISTD_H=$gl_cv_next_unistd_h
24233
24234 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24235 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24236 gl_next_as_first_directive='<'unistd.h'>'
24237 else
24238 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24239 gl_next_as_first_directive=$gl_cv_next_unistd_h
24240 fi
24241 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
24242
24243
24244
24245
24246 if test $ac_cv_header_unistd_h = yes; then
24247 HAVE_UNISTD_H=1
24248 else
24249 HAVE_UNISTD_H=0
24250 fi
24251
24252
24253
24254
24255
24256
24257
24258
24259
24260
24261
24262
24263
24264
24265 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
24266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
24267 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
24268 if test "${gl_cv_func_futimesat_works+set}" = set; then :
24269 $as_echo_n "(cached) " >&6
24270 else
24271 touch conftest.file
24272 if test "$cross_compiling" = yes; then :
24273 case "$host_os" in
24274 # Guess yes on glibc systems.
24275 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
24276 # If we don't know, assume the worst.
24277 *) gl_cv_func_futimesat_works="guessing no" ;;
24278 esac
24279
24280 else
24281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24282 /* end confdefs.h. */
24283
24284 #include <stddef.h>
24285 #include <sys/times.h>
24286 #include <fcntl.h>
24287
24288 int
24289 main ()
24290 {
24291 int fd = open ("conftest.file", O_RDWR);
24292 if (fd < 0) return 1;
24293 if (futimesat (fd, NULL, NULL)) return 2;
24294
24295 ;
24296 return 0;
24297 }
24298 _ACEOF
24299 if ac_fn_c_try_run "$LINENO"; then :
24300 gl_cv_func_futimesat_works=yes
24301 else
24302 gl_cv_func_futimesat_works=no
24303 fi
24304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24305 conftest.$ac_objext conftest.beam conftest.$ac_ext
24306 fi
24307
24308 rm -f conftest.file
24309 fi
24310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
24311 $as_echo "$gl_cv_func_futimesat_works" >&6; }
24312 case "$gl_cv_func_futimesat_works" in
24313 *yes) ;;
24314 *)
24315
24316 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
24317
24318 ;;
24319 esac
24320 fi
24321
24322 gl_gnulib_enabled_dosname=false
24323 gl_gnulib_enabled_euidaccess=false
24324 gl_gnulib_enabled_getgroups=false
24325 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
24326 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=false
24327 gl_gnulib_enabled_pathmax=false
24328 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=false
24329 gl_gnulib_enabled_stat=false
24330 gl_gnulib_enabled_strtoll=false
24331 gl_gnulib_enabled_strtoull=false
24332 gl_gnulib_enabled_verify=false
24333 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=false
24334 func_gl_gnulib_m4code_dosname ()
24335 {
24336 if ! $gl_gnulib_enabled_dosname; then
24337 gl_gnulib_enabled_dosname=true
24338 fi
24339 }
24340 func_gl_gnulib_m4code_euidaccess ()
24341 {
24342 if ! $gl_gnulib_enabled_euidaccess; then
24343
24344
24345
24346
24347
24348 for ac_func in euidaccess
24349 do :
24350 ac_fn_c_check_func "$LINENO" "euidaccess" "ac_cv_func_euidaccess"
24351 if test "x$ac_cv_func_euidaccess" = x""yes; then :
24352 cat >>confdefs.h <<_ACEOF
24353 #define HAVE_EUIDACCESS 1
24354 _ACEOF
24355
24356 fi
24357 done
24358
24359 if test $ac_cv_func_euidaccess = no; then
24360 HAVE_EUIDACCESS=0
24361 fi
24362
24363 if test $HAVE_EUIDACCESS = 0; then
24364
24365
24366
24367
24368
24369
24370
24371
24372 gl_LIBOBJS="$gl_LIBOBJS euidaccess.$ac_objext"
24373
24374
24375
24376 for ac_header in libgen.h
24377 do :
24378 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
24379 if test "x$ac_cv_header_libgen_h" = x""yes; then :
24380 cat >>confdefs.h <<_ACEOF
24381 #define HAVE_LIBGEN_H 1
24382 _ACEOF
24383
24384 fi
24385
24386 done
24387
24388
24389 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
24390 if test "x$ac_cv_func_getgroups" = x""yes; then :
24391
24392 fi
24393
24394
24395 # If we don't yet have getgroups, see if it's in -lbsd.
24396 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
24397 ac_save_LIBS=$LIBS
24398 if test $ac_cv_func_getgroups = no; then
24399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
24400 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
24401 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
24402 $as_echo_n "(cached) " >&6
24403 else
24404 ac_check_lib_save_LIBS=$LIBS
24405 LIBS="-lbsd $LIBS"
24406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24407 /* end confdefs.h. */
24408
24409 /* Override any GCC internal prototype to avoid an error.
24410 Use char because int might match the return type of a GCC
24411 builtin and then its argument prototype would still apply. */
24412 #ifdef __cplusplus
24413 extern "C"
24414 #endif
24415 char getgroups ();
24416 int
24417 main ()
24418 {
24419 return getgroups ();
24420 ;
24421 return 0;
24422 }
24423 _ACEOF
24424 if ac_fn_c_try_link "$LINENO"; then :
24425 ac_cv_lib_bsd_getgroups=yes
24426 else
24427 ac_cv_lib_bsd_getgroups=no
24428 fi
24429 rm -f core conftest.err conftest.$ac_objext \
24430 conftest$ac_exeext conftest.$ac_ext
24431 LIBS=$ac_check_lib_save_LIBS
24432 fi
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
24434 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
24435 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
24436 GETGROUPS_LIB=-lbsd
24437 fi
24438
24439 fi
24440
24441 # Run the program to test the functionality of the system-supplied
24442 # getgroups function only if there is such a function.
24443 if test $ac_cv_func_getgroups = yes; then
24444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
24445 $as_echo_n "checking for working getgroups... " >&6; }
24446 if test "${ac_cv_func_getgroups_works+set}" = set; then :
24447 $as_echo_n "(cached) " >&6
24448 else
24449 if test "$cross_compiling" = yes; then :
24450 case "$host_os" in # ((
24451 # Guess yes on glibc systems.
24452 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
24453 # If we don't know, assume the worst.
24454 *) ac_cv_func_getgroups_works="guessing no" ;;
24455 esac
24456
24457 else
24458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24459 /* end confdefs.h. */
24460 $ac_includes_default
24461 int
24462 main ()
24463 {
24464 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
24465 return getgroups (0, 0) == -1;
24466 ;
24467 return 0;
24468 }
24469
24470 _ACEOF
24471 if ac_fn_c_try_run "$LINENO"; then :
24472 ac_cv_func_getgroups_works=yes
24473 else
24474 ac_cv_func_getgroups_works=no
24475 fi
24476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24477 conftest.$ac_objext conftest.beam conftest.$ac_ext
24478 fi
24479
24480
24481 fi
24482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
24483 $as_echo "$ac_cv_func_getgroups_works" >&6; }
24484 else
24485 ac_cv_func_getgroups_works=no
24486 fi
24487 case "$ac_cv_func_getgroups_works" in
24488 *yes)
24489
24490 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
24491
24492 ;;
24493 esac
24494 LIBS=$ac_save_LIBS
24495
24496
24497 # Solaris 9 and 10 need -lgen to get the eaccess function.
24498 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
24499 # programs in the package would end up linked with that potentially-shared
24500 # library, inducing unnecessary run-time overhead.
24501 LIB_EACCESS=
24502
24503 gl_saved_libs=$LIBS
24504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
24505 $as_echo_n "checking for library containing eaccess... " >&6; }
24506 if test "${ac_cv_search_eaccess+set}" = set; then :
24507 $as_echo_n "(cached) " >&6
24508 else
24509 ac_func_search_save_LIBS=$LIBS
24510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24511 /* end confdefs.h. */
24512
24513 /* Override any GCC internal prototype to avoid an error.
24514 Use char because int might match the return type of a GCC
24515 builtin and then its argument prototype would still apply. */
24516 #ifdef __cplusplus
24517 extern "C"
24518 #endif
24519 char eaccess ();
24520 int
24521 main ()
24522 {
24523 return eaccess ();
24524 ;
24525 return 0;
24526 }
24527 _ACEOF
24528 for ac_lib in '' gen; do
24529 if test -z "$ac_lib"; then
24530 ac_res="none required"
24531 else
24532 ac_res=-l$ac_lib
24533 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24534 fi
24535 if ac_fn_c_try_link "$LINENO"; then :
24536 ac_cv_search_eaccess=$ac_res
24537 fi
24538 rm -f core conftest.err conftest.$ac_objext \
24539 conftest$ac_exeext
24540 if test "${ac_cv_search_eaccess+set}" = set; then :
24541 break
24542 fi
24543 done
24544 if test "${ac_cv_search_eaccess+set}" = set; then :
24545
24546 else
24547 ac_cv_search_eaccess=no
24548 fi
24549 rm conftest.$ac_ext
24550 LIBS=$ac_func_search_save_LIBS
24551 fi
24552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
24553 $as_echo "$ac_cv_search_eaccess" >&6; }
24554 ac_res=$ac_cv_search_eaccess
24555 if test "$ac_res" != no; then :
24556 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24557 test "$ac_cv_search_eaccess" = "none required" ||
24558 LIB_EACCESS=$ac_cv_search_eaccess
24559 fi
24560
24561 for ac_func in eaccess
24562 do :
24563 ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
24564 if test "x$ac_cv_func_eaccess" = x""yes; then :
24565 cat >>confdefs.h <<_ACEOF
24566 #define HAVE_EACCESS 1
24567 _ACEOF
24568
24569 fi
24570 done
24571
24572 LIBS=$gl_saved_libs
24573
24574 fi
24575
24576
24577
24578
24579
24580 GNULIB_EUIDACCESS=1
24581
24582
24583
24584
24585
24586 gl_gnulib_enabled_euidaccess=true
24587 if test $HAVE_EUIDACCESS = 0; then
24588 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
24589 fi
24590 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
24591 if test $HAVE_EUIDACCESS = 0; then
24592 func_gl_gnulib_m4code_stat
24593 fi
24594 fi
24595 }
24596 func_gl_gnulib_m4code_getgroups ()
24597 {
24598 if ! $gl_gnulib_enabled_getgroups; then
24599
24600
24601
24602
24603
24604 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
24605 if test "x$ac_cv_func_getgroups" = x""yes; then :
24606
24607 fi
24608
24609
24610 # If we don't yet have getgroups, see if it's in -lbsd.
24611 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
24612 ac_save_LIBS=$LIBS
24613 if test $ac_cv_func_getgroups = no; then
24614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
24615 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
24616 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
24617 $as_echo_n "(cached) " >&6
24618 else
24619 ac_check_lib_save_LIBS=$LIBS
24620 LIBS="-lbsd $LIBS"
24621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24622 /* end confdefs.h. */
24623
24624 /* Override any GCC internal prototype to avoid an error.
24625 Use char because int might match the return type of a GCC
24626 builtin and then its argument prototype would still apply. */
24627 #ifdef __cplusplus
24628 extern "C"
24629 #endif
24630 char getgroups ();
24631 int
24632 main ()
24633 {
24634 return getgroups ();
24635 ;
24636 return 0;
24637 }
24638 _ACEOF
24639 if ac_fn_c_try_link "$LINENO"; then :
24640 ac_cv_lib_bsd_getgroups=yes
24641 else
24642 ac_cv_lib_bsd_getgroups=no
24643 fi
24644 rm -f core conftest.err conftest.$ac_objext \
24645 conftest$ac_exeext conftest.$ac_ext
24646 LIBS=$ac_check_lib_save_LIBS
24647 fi
24648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
24649 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
24650 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
24651 GETGROUPS_LIB=-lbsd
24652 fi
24653
24654 fi
24655
24656 # Run the program to test the functionality of the system-supplied
24657 # getgroups function only if there is such a function.
24658 if test $ac_cv_func_getgroups = yes; then
24659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
24660 $as_echo_n "checking for working getgroups... " >&6; }
24661 if test "${ac_cv_func_getgroups_works+set}" = set; then :
24662 $as_echo_n "(cached) " >&6
24663 else
24664 if test "$cross_compiling" = yes; then :
24665 case "$host_os" in # ((
24666 # Guess yes on glibc systems.
24667 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
24668 # If we don't know, assume the worst.
24669 *) ac_cv_func_getgroups_works="guessing no" ;;
24670 esac
24671
24672 else
24673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24674 /* end confdefs.h. */
24675 $ac_includes_default
24676 int
24677 main ()
24678 {
24679 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
24680 return getgroups (0, 0) == -1;
24681 ;
24682 return 0;
24683 }
24684
24685 _ACEOF
24686 if ac_fn_c_try_run "$LINENO"; then :
24687 ac_cv_func_getgroups_works=yes
24688 else
24689 ac_cv_func_getgroups_works=no
24690 fi
24691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24692 conftest.$ac_objext conftest.beam conftest.$ac_ext
24693 fi
24694
24695
24696 fi
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
24698 $as_echo "$ac_cv_func_getgroups_works" >&6; }
24699 else
24700 ac_cv_func_getgroups_works=no
24701 fi
24702 case "$ac_cv_func_getgroups_works" in
24703 *yes)
24704
24705 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
24706
24707 ;;
24708 esac
24709 LIBS=$ac_save_LIBS
24710
24711 if test $ac_cv_func_getgroups != yes; then
24712 HAVE_GETGROUPS=0
24713 else
24714 if test "$ac_cv_type_getgroups" != gid_t \
24715 || { case "$ac_cv_func_getgroups_works" in
24716 *yes) false;;
24717 *) true;;
24718 esac
24719 }; then
24720 REPLACE_GETGROUPS=1
24721
24722 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
24723
24724 else
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
24726 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
24727 if test "${gl_cv_func_getgroups_works+set}" = set; then :
24728 $as_echo_n "(cached) " >&6
24729 else
24730 if test "$cross_compiling" = yes; then :
24731 case "$host_os" in
24732 # Guess yes on glibc systems.
24733 *-gnu*) gl_cv_func_getgroups_works="guessing yes" ;;
24734 # If we don't know, assume the worst.
24735 *) gl_cv_func_getgroups_works="guessing no" ;;
24736 esac
24737
24738 else
24739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24740 /* end confdefs.h. */
24741 $ac_includes_default
24742 int
24743 main ()
24744 {
24745 int size = getgroups (0, 0);
24746 gid_t *list = malloc (size * sizeof *list);
24747 return getgroups (-1, list) != -1;
24748 ;
24749 return 0;
24750 }
24751 _ACEOF
24752 if ac_fn_c_try_run "$LINENO"; then :
24753 gl_cv_func_getgroups_works=yes
24754 else
24755 gl_cv_func_getgroups_works=no
24756 fi
24757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24758 conftest.$ac_objext conftest.beam conftest.$ac_ext
24759 fi
24760
24761 fi
24762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
24763 $as_echo "$gl_cv_func_getgroups_works" >&6; }
24764 case "$gl_cv_func_getgroups_works" in
24765 *yes) ;;
24766 *) REPLACE_GETGROUPS=1 ;;
24767 esac
24768 fi
24769 fi
24770 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
24771
24772 if test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1; then
24773
24774
24775
24776
24777
24778
24779
24780
24781 gl_LIBOBJS="$gl_LIBOBJS getgroups.$ac_objext"
24782
24783 fi
24784
24785
24786
24787
24788
24789 GNULIB_GETGROUPS=1
24790
24791
24792
24793
24794
24795 gl_gnulib_enabled_getgroups=true
24796 fi
24797 }
24798 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
24799 {
24800 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
24801
24802
24803 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
24804 fi
24805 }
24806 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1 ()
24807 {
24808 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
24809
24810
24811
24812
24813
24814 ac_fn_c_check_func "$LINENO" "group_member" "ac_cv_func_group_member"
24815 if test "x$ac_cv_func_group_member" = x""yes; then :
24816
24817 else
24818
24819 HAVE_GROUP_MEMBER=0
24820
24821 fi
24822
24823
24824 if test $HAVE_GROUP_MEMBER = 0; then
24825
24826
24827
24828
24829
24830
24831
24832
24833 gl_LIBOBJS="$gl_LIBOBJS group-member.$ac_objext"
24834
24835
24836
24837
24838 fi
24839
24840
24841
24842
24843
24844 GNULIB_GROUP_MEMBER=1
24845
24846
24847
24848
24849
24850 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=true
24851 if test $HAVE_GROUP_MEMBER = 0; then
24852 func_gl_gnulib_m4code_getgroups
24853 fi
24854 if test $HAVE_GROUP_MEMBER = 0; then
24855 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
24856 fi
24857 fi
24858 }
24859 func_gl_gnulib_m4code_pathmax ()
24860 {
24861 if ! $gl_gnulib_enabled_pathmax; then
24862
24863
24864
24865 gl_gnulib_enabled_pathmax=true
24866 fi
24867 }
24868 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c ()
24869 {
24870 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
24871 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=true
24872 fi
24873 }
24874 func_gl_gnulib_m4code_stat ()
24875 {
24876 if ! $gl_gnulib_enabled_stat; then
24877
24878
24879
24880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
24881 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
24882 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
24883 $as_echo_n "(cached) " >&6
24884 else
24885 if test "$cross_compiling" = yes; then :
24886 case $host_os in
24887 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
24888 *) gl_cv_func_stat_dir_slash="guessing yes";;
24889 esac
24890 else
24891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24892 /* end confdefs.h. */
24893 #include <sys/stat.h>
24894
24895 int
24896 main ()
24897 {
24898 struct stat st; return stat (".", &st) != stat ("./", &st);
24899 ;
24900 return 0;
24901 }
24902 _ACEOF
24903 if ac_fn_c_try_run "$LINENO"; then :
24904 gl_cv_func_stat_dir_slash=yes
24905 else
24906 gl_cv_func_stat_dir_slash=no
24907 fi
24908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24909 conftest.$ac_objext conftest.beam conftest.$ac_ext
24910 fi
24911
24912 fi
24913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
24914 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
24915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
24916 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
24917 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
24918 $as_echo_n "(cached) " >&6
24919 else
24920 touch conftest.tmp
24921 # Assume that if we have lstat, we can also check symlinks.
24922 if test $ac_cv_func_lstat = yes; then
24923 ln -s conftest.tmp conftest.lnk
24924 fi
24925 if test "$cross_compiling" = yes; then :
24926 case "$host_os" in
24927 # Guess yes on glibc systems.
24928 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
24929 # If we don't know, assume the worst.
24930 *) gl_cv_func_stat_file_slash="guessing no" ;;
24931 esac
24932
24933 else
24934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24935 /* end confdefs.h. */
24936 #include <sys/stat.h>
24937
24938 int
24939 main ()
24940 {
24941 int result = 0;
24942 struct stat st;
24943 if (!stat ("conftest.tmp/", &st))
24944 result |= 1;
24945 #if HAVE_LSTAT
24946 if (!stat ("conftest.lnk/", &st))
24947 result |= 2;
24948 #endif
24949 return result;
24950
24951 ;
24952 return 0;
24953 }
24954 _ACEOF
24955 if ac_fn_c_try_run "$LINENO"; then :
24956 gl_cv_func_stat_file_slash=yes
24957 else
24958 gl_cv_func_stat_file_slash=no
24959 fi
24960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24961 conftest.$ac_objext conftest.beam conftest.$ac_ext
24962 fi
24963
24964 rm -f conftest.tmp conftest.lnk
24965 fi
24966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
24967 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
24968 case $gl_cv_func_stat_dir_slash in
24969 *no) REPLACE_STAT=1
24970
24971 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
24972 ;;
24973 esac
24974 case $gl_cv_func_stat_file_slash in
24975 *no) REPLACE_STAT=1
24976
24977 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
24978 ;;
24979 esac
24980
24981 if test $REPLACE_STAT = 1; then
24982
24983
24984
24985
24986
24987
24988
24989
24990 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
24991
24992 :
24993 fi
24994
24995
24996
24997
24998
24999 GNULIB_STAT=1
25000
25001
25002
25003
25004
25005 gl_gnulib_enabled_stat=true
25006 if test $REPLACE_STAT = 1; then
25007 func_gl_gnulib_m4code_dosname
25008 fi
25009 if test $REPLACE_STAT = 1; then
25010 func_gl_gnulib_m4code_pathmax
25011 fi
25012 if test $REPLACE_STAT = 1; then
25013 func_gl_gnulib_m4code_verify
25014 fi
25015 fi
25016 }
25017 func_gl_gnulib_m4code_strtoll ()
25018 {
25019 if ! $gl_gnulib_enabled_strtoll; then
25020
25021
25022
25023 if test "$ac_cv_type_long_long_int" = yes; then
25024 for ac_func in strtoll
25025 do :
25026 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
25027 if test "x$ac_cv_func_strtoll" = x""yes; then :
25028 cat >>confdefs.h <<_ACEOF
25029 #define HAVE_STRTOLL 1
25030 _ACEOF
25031
25032 fi
25033 done
25034
25035 if test $ac_cv_func_strtoll = no; then
25036 HAVE_STRTOLL=0
25037 fi
25038 fi
25039
25040 if test $HAVE_STRTOLL = 0; then
25041
25042
25043
25044
25045
25046
25047
25048
25049 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
25050
25051
25052 :
25053
25054 fi
25055
25056
25057
25058
25059
25060 GNULIB_STRTOLL=1
25061
25062
25063
25064
25065
25066 gl_gnulib_enabled_strtoll=true
25067 fi
25068 }
25069 func_gl_gnulib_m4code_strtoull ()
25070 {
25071 if ! $gl_gnulib_enabled_strtoull; then
25072
25073
25074
25075 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
25076 for ac_func in strtoull
25077 do :
25078 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
25079 if test "x$ac_cv_func_strtoull" = x""yes; then :
25080 cat >>confdefs.h <<_ACEOF
25081 #define HAVE_STRTOULL 1
25082 _ACEOF
25083
25084 fi
25085 done
25086
25087 if test $ac_cv_func_strtoull = no; then
25088 HAVE_STRTOULL=0
25089 fi
25090 fi
25091
25092 if test $HAVE_STRTOULL = 0; then
25093
25094
25095
25096
25097
25098
25099
25100
25101 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
25102
25103
25104 :
25105
25106 fi
25107
25108
25109
25110
25111
25112 GNULIB_STRTOULL=1
25113
25114
25115
25116
25117
25118 gl_gnulib_enabled_strtoull=true
25119 fi
25120 }
25121 func_gl_gnulib_m4code_verify ()
25122 {
25123 if ! $gl_gnulib_enabled_verify; then
25124 gl_gnulib_enabled_verify=true
25125 fi
25126 }
25127 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec ()
25128 {
25129 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
25130 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=true
25131 fi
25132 }
25133 if test $HAVE_FACCESSAT = 0; then
25134 func_gl_gnulib_m4code_dosname
25135 fi
25136 if test $HAVE_FACCESSAT = 0; then
25137 func_gl_gnulib_m4code_euidaccess
25138 fi
25139 if test $REPLACE_GETOPT = 1; then
25140 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
25141 fi
25142 if test $REPLACE_LSTAT = 1; then
25143 func_gl_gnulib_m4code_dosname
25144 fi
25145 if test $REPLACE_LSTAT = 1; then
25146 func_gl_gnulib_m4code_stat
25147 fi
25148 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
25149 func_gl_gnulib_m4code_stat
25150 fi
25151 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
25152 func_gl_gnulib_m4code_strtoll
25153 fi
25154 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
25155 func_gl_gnulib_m4code_verify
25156 fi
25157 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
25158 func_gl_gnulib_m4code_strtoull
25159 fi
25160 if test $ac_cv_func_strtoumax = no; then
25161 func_gl_gnulib_m4code_verify
25162 fi
25163
25164 if $gl_gnulib_enabled_dosname; then
25165 gl_GNULIB_ENABLED_dosname_TRUE=
25166 gl_GNULIB_ENABLED_dosname_FALSE='#'
25167 else
25168 gl_GNULIB_ENABLED_dosname_TRUE='#'
25169 gl_GNULIB_ENABLED_dosname_FALSE=
25170 fi
25171
25172 if $gl_gnulib_enabled_euidaccess; then
25173 gl_GNULIB_ENABLED_euidaccess_TRUE=
25174 gl_GNULIB_ENABLED_euidaccess_FALSE='#'
25175 else
25176 gl_GNULIB_ENABLED_euidaccess_TRUE='#'
25177 gl_GNULIB_ENABLED_euidaccess_FALSE=
25178 fi
25179
25180 if $gl_gnulib_enabled_getgroups; then
25181 gl_GNULIB_ENABLED_getgroups_TRUE=
25182 gl_GNULIB_ENABLED_getgroups_FALSE='#'
25183 else
25184 gl_GNULIB_ENABLED_getgroups_TRUE='#'
25185 gl_GNULIB_ENABLED_getgroups_FALSE=
25186 fi
25187
25188 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
25189 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
25190 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
25191 else
25192 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
25193 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
25194 fi
25195
25196 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
25197 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE=
25198 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE='#'
25199 else
25200 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE='#'
25201 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE=
25202 fi
25203
25204 if $gl_gnulib_enabled_pathmax; then
25205 gl_GNULIB_ENABLED_pathmax_TRUE=
25206 gl_GNULIB_ENABLED_pathmax_FALSE='#'
25207 else
25208 gl_GNULIB_ENABLED_pathmax_TRUE='#'
25209 gl_GNULIB_ENABLED_pathmax_FALSE=
25210 fi
25211
25212 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
25213 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE=
25214 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE='#'
25215 else
25216 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE='#'
25217 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE=
25218 fi
25219
25220 if $gl_gnulib_enabled_stat; then
25221 gl_GNULIB_ENABLED_stat_TRUE=
25222 gl_GNULIB_ENABLED_stat_FALSE='#'
25223 else
25224 gl_GNULIB_ENABLED_stat_TRUE='#'
25225 gl_GNULIB_ENABLED_stat_FALSE=
25226 fi
25227
25228 if $gl_gnulib_enabled_strtoll; then
25229 gl_GNULIB_ENABLED_strtoll_TRUE=
25230 gl_GNULIB_ENABLED_strtoll_FALSE='#'
25231 else
25232 gl_GNULIB_ENABLED_strtoll_TRUE='#'
25233 gl_GNULIB_ENABLED_strtoll_FALSE=
25234 fi
25235
25236 if $gl_gnulib_enabled_strtoull; then
25237 gl_GNULIB_ENABLED_strtoull_TRUE=
25238 gl_GNULIB_ENABLED_strtoull_FALSE='#'
25239 else
25240 gl_GNULIB_ENABLED_strtoull_TRUE='#'
25241 gl_GNULIB_ENABLED_strtoull_FALSE=
25242 fi
25243
25244 if $gl_gnulib_enabled_verify; then
25245 gl_GNULIB_ENABLED_verify_TRUE=
25246 gl_GNULIB_ENABLED_verify_FALSE='#'
25247 else
25248 gl_GNULIB_ENABLED_verify_TRUE='#'
25249 gl_GNULIB_ENABLED_verify_FALSE=
25250 fi
25251
25252 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
25253 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE=
25254 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE='#'
25255 else
25256 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE='#'
25257 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE=
25258 fi
25259
25260 # End of code from modules
25261
25262
25263
25264
25265
25266
25267
25268
25269
25270 gltests_libdeps=
25271 gltests_ltlibdeps=
25272
25273
25274
25275
25276
25277
25278
25279
25280
25281 gl_source_base='tests'
25282 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
25283
25284 gl_module_indicator_condition=$gltests_WITNESS
25285
25286
25287
25288
25289
25290
25291
25292
25293
25294
25295 LIBGNU_LIBDEPS="$gl_libdeps"
25296
25297 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
25298
25299
25300 CFLAGS=$SAVE_CFLAGS
25301 LIBS=$SAVE_LIBS
25302
25303 case "$opsys" in
25304 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
25305
25306 darwin)
25307 ## The -headerpad option tells ld (see man page) to leave room at the
25308 ## end of the header for adding load commands. Needed for dumping.
25309 ## 0x690 is the total size of 30 segment load commands (at 56
25310 ## each); under Cocoa 31 commands are required.
25311 if test "$HAVE_NS" = "yes"; then
25312 libs_nsgui="-framework AppKit"
25313 headerpad_extra=6C8
25314 else
25315 libs_nsgui=
25316 headerpad_extra=690
25317 fi
25318 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
25319
25320 ## This is here because src/Makefile.in did some extra fiddling around
25321 ## with LD_SWITCH_SYSTEM. The cpp logic was:
25322 ## #ifndef LD_SWITCH_SYSTEM
25323 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
25324 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
25325 ## not using gcc, darwin.
25326 ## Because this was done in src/Makefile.in, the resulting part of
25327 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
25328 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
25329 ## rather than LD_SWITCH_SYSTEM.
25330 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
25331 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
25332 ;;
25333
25334 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
25335 ## find X at run-time.
25336 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
25337 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
25338 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
25339 ## had different values in configure (in ac_link) and src/Makefile.in.
25340 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
25341 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
25342
25343 *) LD_SWITCH_SYSTEM_TEMACS= ;;
25344 esac
25345
25346 if test "$NS_IMPL_GNUSTEP" = "yes"; then
25347 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
25348 fi
25349
25350
25351
25352
25353 LD_FIRSTFLAG=
25354 ORDINARY_LINK=
25355 case "$opsys" in
25356 ## gnu: GNU needs its own crt0.
25357 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
25358
25359 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
25360 ## library search parth, i.e. it won't search /usr/lib for libc and
25361 ## friends. Using -nostartfiles instead avoids this problem, and
25362 ## will also work on earlier NetBSD releases.
25363 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
25364
25365 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
25366 ## MkLinux/LinuxPPC needs this.
25367 ## s390x-* only supports opsys = gnu-linux so it can be added here.
25368 gnu-*)
25369 case "$canonical" in
25370 powerpc*|s390x-*) LD_FIRSTFLAG="-nostdlib" ;;
25371 esac
25372 ;;
25373 esac
25374
25375
25376 if test "x$ORDINARY_LINK" = "xyes"; then
25377
25378 LD_FIRSTFLAG=""
25379
25380 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
25381
25382
25383 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
25384 ## freebsd, gnu-* not on powerpc*|s390x*.
25385 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
25386
25387 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
25388 ## places that are difficult to figure out at make time. Fortunately,
25389 ## these same versions allow you to pass arbitrary flags on to the
25390 ## linker, so there is no reason not to use it as a linker.
25391 ##
25392 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
25393 ## searching for libraries in its internal directories, so we have to
25394 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
25395 LD_FIRSTFLAG="-nostdlib"
25396 fi
25397
25398 ## FIXME? What setting of EDIT_LDFLAGS should this have?
25399 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
25400
25401
25402
25403
25404 ## FIXME? The logic here is not precisely the same as that above.
25405 ## There is no check here for a pre-defined LD_FIRSTFLAG.
25406 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
25407 LIB_GCC=
25408 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
25409
25410 case "$opsys" in
25411 freebsd|netbsd|openbsd) LIB_GCC= ;;
25412
25413 gnu-*)
25414 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
25415 ## build on ARM EABI under GNU/Linux. (Bug#5518)
25416 case $host_cpu in
25417 arm*)
25418 LIB_GCC="-lgcc_s"
25419 ;;
25420 *)
25421 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
25422 ## immediately undefine it again and redefine it to empty.
25423 ## Was the C_SWITCH_X_SITE part really necessary?
25424 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
25425 LIB_GCC=
25426 ;;
25427 esac
25428 ;;
25429
25430 ## Ask GCC where to find libgcc.a.
25431 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
25432 esac
25433 fi
25434
25435 ## Common for all window systems
25436 if test "$window_system" != "none"; then
25437
25438 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
25439
25440 WINDOW_SYSTEM_OBJ="fontset.o fringe.o image.o"
25441 fi
25442
25443
25444
25445
25446
25447 #### Report on what we decided to do.
25448 #### Report GTK as a toolkit, even if it doesn't use Xt.
25449 #### It makes printing result more understandable as using GTK sets
25450 #### toolkit_scroll_bars to yes by default.
25451 if test "${HAVE_GTK}" = "yes"; then
25452 USE_X_TOOLKIT="$USE_GTK_TOOLKIT"
25453 fi
25454
25455 echo "
25456 Configured for \`${canonical}'.
25457
25458 Where should the build process find the source code? ${srcdir}
25459 What compiler should emacs be built with? ${CC} ${CFLAGS}
25460 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25461 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25462 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25463 What window system should Emacs use? ${window_system}
25464 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25465
25466 if test -n "${x_includes}"; then
25467 echo " Where do we find X Windows header files? ${x_includes}"
25468 else
25469 echo " Where do we find X Windows header files? Standard dirs"
25470 fi
25471 if test -n "${x_libraries}"; then
25472 echo " Where do we find X Windows libraries? ${x_libraries}"
25473 else
25474 echo " Where do we find X Windows libraries? Standard dirs"
25475 fi
25476
25477 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
25478 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
25479 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
25480 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
25481 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
25482 echo " Does Emacs use -lpng? ${HAVE_PNG}"
25483 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
25484 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
25485
25486 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
25487 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
25488 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
25489 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
25490 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
25491 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
25492 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
25493
25494 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
25495 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
25496 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
25497 echo " Does Emacs use -lxft? ${HAVE_XFT}"
25498
25499 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
25500 echo
25501
25502 if test -n "${EMACSDATA}"; then
25503 echo " Environment variable EMACSDATA set to: $EMACSDATA"
25504 fi
25505 if test -n "${EMACSDOC}"; then
25506 echo " Environment variable EMACSDOC set to: $EMACSDOC"
25507 fi
25508
25509 echo
25510
25511 if test "$HAVE_NS" = "yes"; then
25512 echo
25513 echo "You must run \"${MAKE-make} install\" in order to test the built application.
25514 The installed application will go to nextstep/Emacs.app and can be
25515 run or moved from there."
25516 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25517 echo "The application will be fully self-contained."
25518 else
25519 echo "The lisp resources for the application will be installed under ${prefix}.
25520 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
25521 to run if these resources are not installed."
25522 fi
25523 echo
25524 fi
25525
25526 if test "${opsys}" = "cygwin"; then
25527 case `uname -r` in
25528 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
25529 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
25530 echo
25531 ;;
25532 esac
25533 fi
25534
25535 # Remove any trailing slashes in these variables.
25536 test "${prefix}" != NONE &&
25537 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25538 test "${exec_prefix}" != NONE &&
25539 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25540
25541 if test "$HAVE_NS" = "yes"; then
25542 if test "$NS_IMPL_GNUSTEP" = yes; then
25543 ac_config_files="$ac_config_files nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist:nextstep/templates/Info-gnustep.plist.in nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in"
25544
25545 else
25546 ac_config_files="$ac_config_files nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings:nextstep/templates/InfoPlist.strings.in"
25547
25548 fi
25549 fi
25550
25551 SUBDIR_MAKEFILES="lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile nextstep/Makefile"
25552
25553 ac_config_files="$ac_config_files Makefile lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile nextstep/Makefile"
25554
25555
25556 opt_makefile=test/automated/Makefile
25557
25558 if test -f $srcdir/${opt_makefile}.in; then
25559 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
25560 ac_config_files="$ac_config_files test/automated/Makefile"
25561
25562 fi
25563
25564
25565 opt_makefile=admin/unidata/Makefile
25566
25567 if test -f $srcdir/${opt_makefile}.in; then
25568 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
25569 ac_config_files="$ac_config_files admin/unidata/Makefile"
25570
25571 fi
25572
25573
25574 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
25575
25576
25577
25578 ac_config_commands="$ac_config_commands mkdirs"
25579
25580
25581 ac_config_commands="$ac_config_commands epaths"
25582
25583
25584 ac_config_commands="$ac_config_commands gdbinit"
25585
25586
25587 cat >confcache <<\_ACEOF
25588 # This file is a shell script that caches the results of configure
25589 # tests run on this system so they can be shared between configure
25590 # scripts and configure runs, see configure's option --config-cache.
25591 # It is not useful on other systems. If it contains results you don't
25592 # want to keep, you may remove or edit it.
25593 #
25594 # config.status only pays attention to the cache file if you give it
25595 # the --recheck option to rerun configure.
25596 #
25597 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25598 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25599 # following values.
25600
25601 _ACEOF
25602
25603 # The following way of writing the cache mishandles newlines in values,
25604 # but we know of no workaround that is simple, portable, and efficient.
25605 # So, we kill variables containing newlines.
25606 # Ultrix sh set writes to stderr and can't be redirected directly,
25607 # and sets the high bit in the cache file unless we assign to the vars.
25608 (
25609 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25610 eval ac_val=\$$ac_var
25611 case $ac_val in #(
25612 *${as_nl}*)
25613 case $ac_var in #(
25614 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25615 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25616 esac
25617 case $ac_var in #(
25618 _ | IFS | as_nl) ;; #(
25619 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25620 *) { eval $ac_var=; unset $ac_var;} ;;
25621 esac ;;
25622 esac
25623 done
25624
25625 (set) 2>&1 |
25626 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25627 *${as_nl}ac_space=\ *)
25628 # `set' does not quote correctly, so add quotes: double-quote
25629 # substitution turns \\\\ into \\, and sed turns \\ into \.
25630 sed -n \
25631 "s/'/'\\\\''/g;
25632 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25633 ;; #(
25634 *)
25635 # `set' quotes correctly as required by POSIX, so do not add quotes.
25636 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25637 ;;
25638 esac |
25639 sort
25640 ) |
25641 sed '
25642 /^ac_cv_env_/b end
25643 t clear
25644 :clear
25645 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25646 t end
25647 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25648 :end' >>confcache
25649 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25650 if test -w "$cache_file"; then
25651 test "x$cache_file" != "x/dev/null" &&
25652 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25653 $as_echo "$as_me: updating cache $cache_file" >&6;}
25654 cat confcache >$cache_file
25655 else
25656 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25657 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25658 fi
25659 fi
25660 rm -f confcache
25661
25662 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25663 # Let make expand exec_prefix.
25664 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25665
25666 DEFS=-DHAVE_CONFIG_H
25667
25668 ac_libobjs=
25669 ac_ltlibobjs=
25670 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25671 # 1. Remove the extension, and $U if already installed.
25672 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25673 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25674 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25675 # will be set to the directory where LIBOBJS objects are built.
25676 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25677 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25678 done
25679 LIBOBJS=$ac_libobjs
25680
25681 LTLIBOBJS=$ac_ltlibobjs
25682
25683
25684 if test -n "$EXEEXT"; then
25685 am__EXEEXT_TRUE=
25686 am__EXEEXT_FALSE='#'
25687 else
25688 am__EXEEXT_TRUE='#'
25689 am__EXEEXT_FALSE=
25690 fi
25691
25692 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25693 as_fn_error "conditional \"AMDEP\" was never defined.
25694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25695 fi
25696 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25697 as_fn_error "conditional \"am__fastdepCC\" was never defined.
25698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25699 fi
25700 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
25701 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
25702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25703 fi
25704 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
25705 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
25706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25707 fi
25708
25709 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
25710 as_fn_error "conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
25711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25712 fi
25713 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
25714 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
25715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25716 fi
25717 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
25718 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
25719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25720 fi
25721 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
25722 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
25723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25724 fi
25725 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
25726 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
25727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25728 fi
25729 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
25730 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
25731 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25732 fi
25733 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
25734 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
25735 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25736 fi
25737 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
25738 as_fn_error "conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
25739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25740 fi
25741 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
25742 as_fn_error "conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
25743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25744 fi
25745 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
25746 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
25747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25748 fi
25749 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
25750 as_fn_error "conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
25751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25752 fi
25753 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
25754 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
25755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25756 fi
25757 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
25758 as_fn_error "conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
25759 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25760 fi
25761 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
25762 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
25763 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25764 fi
25765 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
25766 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
25767 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25768 fi
25769 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
25770 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
25771 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25772 fi
25773 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
25774 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
25775 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25776 fi
25777 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
25778 as_fn_error "conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
25779 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25780 fi
25781
25782 gl_libobjs=
25783 gl_ltlibobjs=
25784 if test -n "$gl_LIBOBJS"; then
25785 # Remove the extension.
25786 sed_drop_objext='s/\.o$//;s/\.obj$//'
25787 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25788 gl_libobjs="$gl_libobjs $i.$ac_objext"
25789 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
25790 done
25791 fi
25792 gl_LIBOBJS=$gl_libobjs
25793
25794 gl_LTLIBOBJS=$gl_ltlibobjs
25795
25796
25797
25798 gltests_libobjs=
25799 gltests_ltlibobjs=
25800 if test -n "$gltests_LIBOBJS"; then
25801 # Remove the extension.
25802 sed_drop_objext='s/\.o$//;s/\.obj$//'
25803 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25804 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
25805 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
25806 done
25807 fi
25808 gltests_LIBOBJS=$gltests_libobjs
25809
25810 gltests_LTLIBOBJS=$gltests_ltlibobjs
25811
25812
25813
25814 : ${CONFIG_STATUS=./config.status}
25815 ac_write_fail=0
25816 ac_clean_files_save=$ac_clean_files
25817 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25818 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25819 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25820 as_write_fail=0
25821 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25822 #! $SHELL
25823 # Generated by $as_me.
25824 # Run this file to recreate the current configuration.
25825 # Compiler output produced by configure, useful for debugging
25826 # configure, is in config.log if it exists.
25827
25828 debug=false
25829 ac_cs_recheck=false
25830 ac_cs_silent=false
25831
25832 SHELL=\${CONFIG_SHELL-$SHELL}
25833 export SHELL
25834 _ASEOF
25835 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25836 ## -------------------- ##
25837 ## M4sh Initialization. ##
25838 ## -------------------- ##
25839
25840 # Be more Bourne compatible
25841 DUALCASE=1; export DUALCASE # for MKS sh
25842 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25843 emulate sh
25844 NULLCMD=:
25845 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25846 # is contrary to our usage. Disable this feature.
25847 alias -g '${1+"$@"}'='"$@"'
25848 setopt NO_GLOB_SUBST
25849 else
25850 case `(set -o) 2>/dev/null` in #(
25851 *posix*) :
25852 set -o posix ;; #(
25853 *) :
25854 ;;
25855 esac
25856 fi
25857
25858
25859 as_nl='
25860 '
25861 export as_nl
25862 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25863 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25864 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25865 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25866 # Prefer a ksh shell builtin over an external printf program on Solaris,
25867 # but without wasting forks for bash or zsh.
25868 if test -z "$BASH_VERSION$ZSH_VERSION" \
25869 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25870 as_echo='print -r --'
25871 as_echo_n='print -rn --'
25872 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25873 as_echo='printf %s\n'
25874 as_echo_n='printf %s'
25875 else
25876 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25877 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25878 as_echo_n='/usr/ucb/echo -n'
25879 else
25880 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25881 as_echo_n_body='eval
25882 arg=$1;
25883 case $arg in #(
25884 *"$as_nl"*)
25885 expr "X$arg" : "X\\(.*\\)$as_nl";
25886 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25887 esac;
25888 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25889 '
25890 export as_echo_n_body
25891 as_echo_n='sh -c $as_echo_n_body as_echo'
25892 fi
25893 export as_echo_body
25894 as_echo='sh -c $as_echo_body as_echo'
25895 fi
25896
25897 # The user is always right.
25898 if test "${PATH_SEPARATOR+set}" != set; then
25899 PATH_SEPARATOR=:
25900 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25901 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25902 PATH_SEPARATOR=';'
25903 }
25904 fi
25905
25906
25907 # IFS
25908 # We need space, tab and new line, in precisely that order. Quoting is
25909 # there to prevent editors from complaining about space-tab.
25910 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25911 # splitting by setting IFS to empty value.)
25912 IFS=" "" $as_nl"
25913
25914 # Find who we are. Look in the path if we contain no directory separator.
25915 case $0 in #((
25916 *[\\/]* ) as_myself=$0 ;;
25917 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25918 for as_dir in $PATH
25919 do
25920 IFS=$as_save_IFS
25921 test -z "$as_dir" && as_dir=.
25922 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25923 done
25924 IFS=$as_save_IFS
25925
25926 ;;
25927 esac
25928 # We did not find ourselves, most probably we were run as `sh COMMAND'
25929 # in which case we are not to be found in the path.
25930 if test "x$as_myself" = x; then
25931 as_myself=$0
25932 fi
25933 if test ! -f "$as_myself"; then
25934 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25935 exit 1
25936 fi
25937
25938 # Unset variables that we do not need and which cause bugs (e.g. in
25939 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25940 # suppresses any "Segmentation fault" message there. '((' could
25941 # trigger a bug in pdksh 5.2.14.
25942 for as_var in BASH_ENV ENV MAIL MAILPATH
25943 do eval test x\${$as_var+set} = xset \
25944 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25945 done
25946 PS1='$ '
25947 PS2='> '
25948 PS4='+ '
25949
25950 # NLS nuisances.
25951 LC_ALL=C
25952 export LC_ALL
25953 LANGUAGE=C
25954 export LANGUAGE
25955
25956 # CDPATH.
25957 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25958
25959
25960 # as_fn_error ERROR [LINENO LOG_FD]
25961 # ---------------------------------
25962 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25963 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25964 # script with status $?, using 1 if that was 0.
25965 as_fn_error ()
25966 {
25967 as_status=$?; test $as_status -eq 0 && as_status=1
25968 if test "$3"; then
25969 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25970 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25971 fi
25972 $as_echo "$as_me: error: $1" >&2
25973 as_fn_exit $as_status
25974 } # as_fn_error
25975
25976
25977 # as_fn_set_status STATUS
25978 # -----------------------
25979 # Set $? to STATUS, without forking.
25980 as_fn_set_status ()
25981 {
25982 return $1
25983 } # as_fn_set_status
25984
25985 # as_fn_exit STATUS
25986 # -----------------
25987 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25988 as_fn_exit ()
25989 {
25990 set +e
25991 as_fn_set_status $1
25992 exit $1
25993 } # as_fn_exit
25994
25995 # as_fn_unset VAR
25996 # ---------------
25997 # Portably unset VAR.
25998 as_fn_unset ()
25999 {
26000 { eval $1=; unset $1;}
26001 }
26002 as_unset=as_fn_unset
26003 # as_fn_append VAR VALUE
26004 # ----------------------
26005 # Append the text in VALUE to the end of the definition contained in VAR. Take
26006 # advantage of any shell optimizations that allow amortized linear growth over
26007 # repeated appends, instead of the typical quadratic growth present in naive
26008 # implementations.
26009 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26010 eval 'as_fn_append ()
26011 {
26012 eval $1+=\$2
26013 }'
26014 else
26015 as_fn_append ()
26016 {
26017 eval $1=\$$1\$2
26018 }
26019 fi # as_fn_append
26020
26021 # as_fn_arith ARG...
26022 # ------------------
26023 # Perform arithmetic evaluation on the ARGs, and store the result in the
26024 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26025 # must be portable across $(()) and expr.
26026 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26027 eval 'as_fn_arith ()
26028 {
26029 as_val=$(( $* ))
26030 }'
26031 else
26032 as_fn_arith ()
26033 {
26034 as_val=`expr "$@" || test $? -eq 1`
26035 }
26036 fi # as_fn_arith
26037
26038
26039 if expr a : '\(a\)' >/dev/null 2>&1 &&
26040 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26041 as_expr=expr
26042 else
26043 as_expr=false
26044 fi
26045
26046 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26047 as_basename=basename
26048 else
26049 as_basename=false
26050 fi
26051
26052 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26053 as_dirname=dirname
26054 else
26055 as_dirname=false
26056 fi
26057
26058 as_me=`$as_basename -- "$0" ||
26059 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26060 X"$0" : 'X\(//\)$' \| \
26061 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26062 $as_echo X/"$0" |
26063 sed '/^.*\/\([^/][^/]*\)\/*$/{
26064 s//\1/
26065 q
26066 }
26067 /^X\/\(\/\/\)$/{
26068 s//\1/
26069 q
26070 }
26071 /^X\/\(\/\).*/{
26072 s//\1/
26073 q
26074 }
26075 s/.*/./; q'`
26076
26077 # Avoid depending upon Character Ranges.
26078 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26079 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26080 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26081 as_cr_digits='0123456789'
26082 as_cr_alnum=$as_cr_Letters$as_cr_digits
26083
26084 ECHO_C= ECHO_N= ECHO_T=
26085 case `echo -n x` in #(((((
26086 -n*)
26087 case `echo 'xy\c'` in
26088 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26089 xy) ECHO_C='\c';;
26090 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26091 ECHO_T=' ';;
26092 esac;;
26093 *)
26094 ECHO_N='-n';;
26095 esac
26096
26097 rm -f conf$$ conf$$.exe conf$$.file
26098 if test -d conf$$.dir; then
26099 rm -f conf$$.dir/conf$$.file
26100 else
26101 rm -f conf$$.dir
26102 mkdir conf$$.dir 2>/dev/null
26103 fi
26104 if (echo >conf$$.file) 2>/dev/null; then
26105 if ln -s conf$$.file conf$$ 2>/dev/null; then
26106 as_ln_s='ln -s'
26107 # ... but there are two gotchas:
26108 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26109 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26110 # In both cases, we have to default to `cp -p'.
26111 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26112 as_ln_s='cp -p'
26113 elif ln conf$$.file conf$$ 2>/dev/null; then
26114 as_ln_s=ln
26115 else
26116 as_ln_s='cp -p'
26117 fi
26118 else
26119 as_ln_s='cp -p'
26120 fi
26121 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26122 rmdir conf$$.dir 2>/dev/null
26123
26124
26125 # as_fn_mkdir_p
26126 # -------------
26127 # Create "$as_dir" as a directory, including parents if necessary.
26128 as_fn_mkdir_p ()
26129 {
26130
26131 case $as_dir in #(
26132 -*) as_dir=./$as_dir;;
26133 esac
26134 test -d "$as_dir" || eval $as_mkdir_p || {
26135 as_dirs=
26136 while :; do
26137 case $as_dir in #(
26138 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26139 *) as_qdir=$as_dir;;
26140 esac
26141 as_dirs="'$as_qdir' $as_dirs"
26142 as_dir=`$as_dirname -- "$as_dir" ||
26143 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26144 X"$as_dir" : 'X\(//\)[^/]' \| \
26145 X"$as_dir" : 'X\(//\)$' \| \
26146 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26147 $as_echo X"$as_dir" |
26148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26149 s//\1/
26150 q
26151 }
26152 /^X\(\/\/\)[^/].*/{
26153 s//\1/
26154 q
26155 }
26156 /^X\(\/\/\)$/{
26157 s//\1/
26158 q
26159 }
26160 /^X\(\/\).*/{
26161 s//\1/
26162 q
26163 }
26164 s/.*/./; q'`
26165 test -d "$as_dir" && break
26166 done
26167 test -z "$as_dirs" || eval "mkdir $as_dirs"
26168 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26169
26170
26171 } # as_fn_mkdir_p
26172 if mkdir -p . 2>/dev/null; then
26173 as_mkdir_p='mkdir -p "$as_dir"'
26174 else
26175 test -d ./-p && rmdir ./-p
26176 as_mkdir_p=false
26177 fi
26178
26179 if test -x / >/dev/null 2>&1; then
26180 as_test_x='test -x'
26181 else
26182 if ls -dL / >/dev/null 2>&1; then
26183 as_ls_L_option=L
26184 else
26185 as_ls_L_option=
26186 fi
26187 as_test_x='
26188 eval sh -c '\''
26189 if test -d "$1"; then
26190 test -d "$1/.";
26191 else
26192 case $1 in #(
26193 -*)set "./$1";;
26194 esac;
26195 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26196 ???[sx]*):;;*)false;;esac;fi
26197 '\'' sh
26198 '
26199 fi
26200 as_executable_p=$as_test_x
26201
26202 # Sed expression to map a string onto a valid CPP name.
26203 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26204
26205 # Sed expression to map a string onto a valid variable name.
26206 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26207
26208
26209 exec 6>&1
26210 ## ----------------------------------- ##
26211 ## Main body of $CONFIG_STATUS script. ##
26212 ## ----------------------------------- ##
26213 _ASEOF
26214 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26215
26216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26217 # Save the log message, to keep $0 and so on meaningful, and to
26218 # report actual input values of CONFIG_FILES etc. instead of their
26219 # values after options handling.
26220 ac_log="
26221 This file was extended by emacs $as_me 24.3.50, which was
26222 generated by GNU Autoconf 2.65. Invocation command line was
26223
26224 CONFIG_FILES = $CONFIG_FILES
26225 CONFIG_HEADERS = $CONFIG_HEADERS
26226 CONFIG_LINKS = $CONFIG_LINKS
26227 CONFIG_COMMANDS = $CONFIG_COMMANDS
26228 $ $0 $@
26229
26230 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26231 "
26232
26233 _ACEOF
26234
26235 case $ac_config_files in *"
26236 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26237 esac
26238
26239 case $ac_config_headers in *"
26240 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26241 esac
26242
26243
26244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26245 # Files that config.status was made for.
26246 config_files="$ac_config_files"
26247 config_headers="$ac_config_headers"
26248 config_commands="$ac_config_commands"
26249
26250 _ACEOF
26251
26252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26253 ac_cs_usage="\
26254 \`$as_me' instantiates files and other configuration actions
26255 from templates according to the current configuration. Unless the files
26256 and actions are specified as TAGs, all are instantiated by default.
26257
26258 Usage: $0 [OPTION]... [TAG]...
26259
26260 -h, --help print this help, then exit
26261 -V, --version print version number and configuration settings, then exit
26262 --config print configuration, then exit
26263 -q, --quiet, --silent
26264 do not print progress messages
26265 -d, --debug don't remove temporary files
26266 --recheck update $as_me by reconfiguring in the same conditions
26267 --file=FILE[:TEMPLATE]
26268 instantiate the configuration file FILE
26269 --header=FILE[:TEMPLATE]
26270 instantiate the configuration header FILE
26271
26272 Configuration files:
26273 $config_files
26274
26275 Configuration headers:
26276 $config_headers
26277
26278 Configuration commands:
26279 $config_commands
26280
26281 Report bugs to the package provider."
26282
26283 _ACEOF
26284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26285 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26286 ac_cs_version="\\
26287 emacs config.status 24.3.50
26288 configured by $0, generated by GNU Autoconf 2.65,
26289 with options \\"\$ac_cs_config\\"
26290
26291 Copyright (C) 2009 Free Software Foundation, Inc.
26292 This config.status script is free software; the Free Software Foundation
26293 gives unlimited permission to copy, distribute and modify it."
26294
26295 ac_pwd='$ac_pwd'
26296 srcdir='$srcdir'
26297 INSTALL='$INSTALL'
26298 MKDIR_P='$MKDIR_P'
26299 AWK='$AWK'
26300 test -n "\$AWK" || AWK=awk
26301 _ACEOF
26302
26303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26304 # The default lists apply if the user does not specify any file.
26305 ac_need_defaults=:
26306 while test $# != 0
26307 do
26308 case $1 in
26309 --*=*)
26310 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26311 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26312 ac_shift=:
26313 ;;
26314 *)
26315 ac_option=$1
26316 ac_optarg=$2
26317 ac_shift=shift
26318 ;;
26319 esac
26320
26321 case $ac_option in
26322 # Handling of the options.
26323 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26324 ac_cs_recheck=: ;;
26325 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26326 $as_echo "$ac_cs_version"; exit ;;
26327 --config | --confi | --conf | --con | --co | --c )
26328 $as_echo "$ac_cs_config"; exit ;;
26329 --debug | --debu | --deb | --de | --d | -d )
26330 debug=: ;;
26331 --file | --fil | --fi | --f )
26332 $ac_shift
26333 case $ac_optarg in
26334 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26335 esac
26336 as_fn_append CONFIG_FILES " '$ac_optarg'"
26337 ac_need_defaults=false;;
26338 --header | --heade | --head | --hea )
26339 $ac_shift
26340 case $ac_optarg in
26341 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26342 esac
26343 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26344 ac_need_defaults=false;;
26345 --he | --h)
26346 # Conflict between --help and --header
26347 as_fn_error "ambiguous option: \`$1'
26348 Try \`$0 --help' for more information.";;
26349 --help | --hel | -h )
26350 $as_echo "$ac_cs_usage"; exit ;;
26351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26352 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26353 ac_cs_silent=: ;;
26354
26355 # This is an error.
26356 -*) as_fn_error "unrecognized option: \`$1'
26357 Try \`$0 --help' for more information." ;;
26358
26359 *) as_fn_append ac_config_targets " $1"
26360 ac_need_defaults=false ;;
26361
26362 esac
26363 shift
26364 done
26365
26366 ac_configure_extra_args=
26367
26368 if $ac_cs_silent; then
26369 exec 6>/dev/null
26370 ac_configure_extra_args="$ac_configure_extra_args --silent"
26371 fi
26372
26373 _ACEOF
26374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26375 if \$ac_cs_recheck; then
26376 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26377 shift
26378 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26379 CONFIG_SHELL='$SHELL'
26380 export CONFIG_SHELL
26381 exec "\$@"
26382 fi
26383
26384 _ACEOF
26385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26386 exec 5>>config.log
26387 {
26388 echo
26389 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26390 ## Running $as_me. ##
26391 _ASBOX
26392 $as_echo "$ac_log"
26393 } >&5
26394
26395 _ACEOF
26396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26397 #
26398 # INIT-COMMANDS
26399 #
26400 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26401 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
26402
26403 _ACEOF
26404
26405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26406
26407 # Handling of arguments.
26408 for ac_config_target in $ac_config_targets
26409 do
26410 case $ac_config_target in
26411 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26412 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26413 "nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist:nextstep/templates/Info-gnustep.plist.in" ;;
26414 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
26415 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
26416 "nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings:nextstep/templates/InfoPlist.strings.in" ;;
26417 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26418 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
26419 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
26420 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
26421 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
26422 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
26423 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
26424 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
26425 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26426 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26427 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26428 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26429 "nextstep/Makefile") CONFIG_FILES="$CONFIG_FILES nextstep/Makefile" ;;
26430 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
26431 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
26432 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
26433 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
26434 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
26435
26436 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26437 esac
26438 done
26439
26440
26441 # If the user did not use the arguments to specify the items to instantiate,
26442 # then the envvar interface is used. Set only those that are not.
26443 # We use the long form for the default assignment because of an extremely
26444 # bizarre bug on SunOS 4.1.3.
26445 if $ac_need_defaults; then
26446 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26447 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26448 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26449 fi
26450
26451 # Have a temporary directory for convenience. Make it in the build tree
26452 # simply because there is no reason against having it here, and in addition,
26453 # creating and moving files from /tmp can sometimes cause problems.
26454 # Hook for its removal unless debugging.
26455 # Note that there is a small window in which the directory will not be cleaned:
26456 # after its creation but before its name has been assigned to `$tmp'.
26457 $debug ||
26458 {
26459 tmp=
26460 trap 'exit_status=$?
26461 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26462 ' 0
26463 trap 'as_fn_exit 1' 1 2 13 15
26464 }
26465 # Create a (secure) tmp directory for tmp files.
26466
26467 {
26468 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26469 test -n "$tmp" && test -d "$tmp"
26470 } ||
26471 {
26472 tmp=./conf$$-$RANDOM
26473 (umask 077 && mkdir "$tmp")
26474 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26475
26476 # Set up the scripts for CONFIG_FILES section.
26477 # No need to generate them if there are no CONFIG_FILES.
26478 # This happens for instance with `./config.status config.h'.
26479 if test -n "$CONFIG_FILES"; then
26480
26481 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
26482 ac_cs_awk_getline=:
26483 ac_cs_awk_pipe_init=
26484 ac_cs_awk_read_file='
26485 while ((getline aline < (F[key])) > 0)
26486 print(aline)
26487 close(F[key])'
26488 ac_cs_awk_pipe_fini=
26489 else
26490 ac_cs_awk_getline=false
26491 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
26492 ac_cs_awk_read_file='
26493 print "|#_!!_#|"
26494 print "cat " F[key] " &&"
26495 '$ac_cs_awk_pipe_init
26496 # The final `:' finishes the AND list.
26497 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
26498 fi
26499 ac_cr=`echo X | tr X '\015'`
26500 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26501 # But we know of no other shell where ac_cr would be empty at this
26502 # point, so we can use a bashism as a fallback.
26503 if test "x$ac_cr" = x; then
26504 eval ac_cr=\$\'\\r\'
26505 fi
26506 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26507 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26508 ac_cs_awk_cr='\r'
26509 else
26510 ac_cs_awk_cr=$ac_cr
26511 fi
26512
26513 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26514 _ACEOF
26515
26516 # Create commands to substitute file output variables.
26517 {
26518 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26519 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26520 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
26521 echo "_ACAWK" &&
26522 echo "_ACEOF"
26523 } >conf$$files.sh &&
26524 . ./conf$$files.sh ||
26525 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26526 rm -f conf$$files.sh
26527
26528 {
26529 echo "cat >conf$$subs.awk <<_ACEOF" &&
26530 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26531 echo "_ACEOF"
26532 } >conf$$subs.sh ||
26533 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26534 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26535 ac_delim='%!_!# '
26536 for ac_last_try in false false false false false :; do
26537 . ./conf$$subs.sh ||
26538 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26539
26540 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26541 if test $ac_delim_n = $ac_delim_num; then
26542 break
26543 elif $ac_last_try; then
26544 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26545 else
26546 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26547 fi
26548 done
26549 rm -f conf$$subs.sh
26550
26551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26552 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26553 _ACEOF
26554 sed -n '
26555 h
26556 s/^/S["/; s/!.*/"]=/
26557 p
26558 g
26559 s/^[^!]*!//
26560 :repl
26561 t repl
26562 s/'"$ac_delim"'$//
26563 t delim
26564 :nl
26565 h
26566 s/\(.\{148\}\)..*/\1/
26567 t more1
26568 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26569 p
26570 n
26571 b repl
26572 :more1
26573 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26574 p
26575 g
26576 s/.\{148\}//
26577 t nl
26578 :delim
26579 h
26580 s/\(.\{148\}\)..*/\1/
26581 t more2
26582 s/["\\]/\\&/g; s/^/"/; s/$/"/
26583 p
26584 b
26585 :more2
26586 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26587 p
26588 g
26589 s/.\{148\}//
26590 t delim
26591 ' <conf$$subs.awk | sed '
26592 /^[^""]/{
26593 N
26594 s/\n//
26595 }
26596 ' >>$CONFIG_STATUS || ac_write_fail=1
26597 rm -f conf$$subs.awk
26598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26599 _ACAWK
26600 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26601 for (key in S) S_is_set[key] = 1
26602 FS = "\a"
26603 \$ac_cs_awk_pipe_init
26604 }
26605 {
26606 line = $ 0
26607 nfields = split(line, field, "@")
26608 substed = 0
26609 len = length(field[1])
26610 for (i = 2; i < nfields; i++) {
26611 key = field[i]
26612 keylen = length(key)
26613 if (S_is_set[key]) {
26614 value = S[key]
26615 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26616 len += length(value) + length(field[++i])
26617 substed = 1
26618 } else
26619 len += 1 + keylen
26620 }
26621 if (nfields == 3 && !substed) {
26622 key = field[2]
26623 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
26624 \$ac_cs_awk_read_file
26625 next
26626 }
26627 }
26628 print line
26629 }
26630 \$ac_cs_awk_pipe_fini
26631 _ACAWK
26632 _ACEOF
26633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26634 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26635 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26636 else
26637 cat
26638 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26639 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26640 _ACEOF
26641
26642 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26643 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26644 # trailing colons and then remove the whole line if VPATH becomes empty
26645 # (actually we leave an empty line to preserve line numbers).
26646 if test "x$srcdir" = x.; then
26647 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26648 s/:*\$(srcdir):*/:/
26649 s/:*\${srcdir}:*/:/
26650 s/:*@srcdir@:*/:/
26651 s/^\([^=]*=[ ]*\):*/\1/
26652 s/:*$//
26653 s/^[^=]*=[ ]*$//
26654 }'
26655 fi
26656
26657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26658 fi # test -n "$CONFIG_FILES"
26659
26660 # Set up the scripts for CONFIG_HEADERS section.
26661 # No need to generate them if there are no CONFIG_HEADERS.
26662 # This happens for instance with `./config.status Makefile'.
26663 if test -n "$CONFIG_HEADERS"; then
26664 cat >"$tmp/defines.awk" <<\_ACAWK ||
26665 BEGIN {
26666 _ACEOF
26667
26668 # Transform confdefs.h into an awk script `defines.awk', embedded as
26669 # here-document in config.status, that substitutes the proper values into
26670 # config.h.in to produce config.h.
26671
26672 # Create a delimiter string that does not exist in confdefs.h, to ease
26673 # handling of long lines.
26674 ac_delim='%!_!# '
26675 for ac_last_try in false false :; do
26676 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26677 if test -z "$ac_t"; then
26678 break
26679 elif $ac_last_try; then
26680 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26681 else
26682 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26683 fi
26684 done
26685
26686 # For the awk script, D is an array of macro values keyed by name,
26687 # likewise P contains macro parameters if any. Preserve backslash
26688 # newline sequences.
26689
26690 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26691 sed -n '
26692 s/.\{148\}/&'"$ac_delim"'/g
26693 t rset
26694 :rset
26695 s/^[ ]*#[ ]*define[ ][ ]*/ /
26696 t def
26697 d
26698 :def
26699 s/\\$//
26700 t bsnl
26701 s/["\\]/\\&/g
26702 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26703 D["\1"]=" \3"/p
26704 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26705 d
26706 :bsnl
26707 s/["\\]/\\&/g
26708 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26709 D["\1"]=" \3\\\\\\n"\\/p
26710 t cont
26711 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26712 t cont
26713 d
26714 :cont
26715 n
26716 s/.\{148\}/&'"$ac_delim"'/g
26717 t clear
26718 :clear
26719 s/\\$//
26720 t bsnlc
26721 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26722 d
26723 :bsnlc
26724 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26725 b cont
26726 ' <confdefs.h | sed '
26727 s/'"$ac_delim"'/"\\\
26728 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26729
26730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26731 for (key in D) D_is_set[key] = 1
26732 FS = "\a"
26733 }
26734 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26735 line = \$ 0
26736 split(line, arg, " ")
26737 if (arg[1] == "#") {
26738 defundef = arg[2]
26739 mac1 = arg[3]
26740 } else {
26741 defundef = substr(arg[1], 2)
26742 mac1 = arg[2]
26743 }
26744 split(mac1, mac2, "(") #)
26745 macro = mac2[1]
26746 prefix = substr(line, 1, index(line, defundef) - 1)
26747 if (D_is_set[macro]) {
26748 # Preserve the white space surrounding the "#".
26749 print prefix "define", macro P[macro] D[macro]
26750 next
26751 } else {
26752 # Replace #undef with comments. This is necessary, for example,
26753 # in the case of _POSIX_SOURCE, which is predefined and required
26754 # on some systems where configure will not decide to define it.
26755 if (defundef == "undef") {
26756 print "/*", prefix defundef, macro, "*/"
26757 next
26758 }
26759 }
26760 }
26761 { print }
26762 _ACAWK
26763 _ACEOF
26764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26765 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26766 fi # test -n "$CONFIG_HEADERS"
26767
26768
26769 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26770 shift
26771 for ac_tag
26772 do
26773 case $ac_tag in
26774 :[FHLC]) ac_mode=$ac_tag; continue;;
26775 esac
26776 case $ac_mode$ac_tag in
26777 :[FHL]*:*);;
26778 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26779 :[FH]-) ac_tag=-:-;;
26780 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26781 esac
26782 ac_save_IFS=$IFS
26783 IFS=:
26784 set x $ac_tag
26785 IFS=$ac_save_IFS
26786 shift
26787 ac_file=$1
26788 shift
26789
26790 case $ac_mode in
26791 :L) ac_source=$1;;
26792 :[FH])
26793 ac_file_inputs=
26794 for ac_f
26795 do
26796 case $ac_f in
26797 -) ac_f="$tmp/stdin";;
26798 *) # Look for the file first in the build tree, then in the source tree
26799 # (if the path is not absolute). The absolute path cannot be DOS-style,
26800 # because $ac_f cannot contain `:'.
26801 test -f "$ac_f" ||
26802 case $ac_f in
26803 [\\/$]*) false;;
26804 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26805 esac ||
26806 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26807 esac
26808 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26809 as_fn_append ac_file_inputs " '$ac_f'"
26810 done
26811
26812 # Let's still pretend it is `configure' which instantiates (i.e., don't
26813 # use $as_me), people would be surprised to read:
26814 # /* config.h. Generated by config.status. */
26815 configure_input='Generated from '`
26816 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26817 `' by configure.'
26818 if test x"$ac_file" != x-; then
26819 configure_input="$ac_file. $configure_input"
26820 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26821 $as_echo "$as_me: creating $ac_file" >&6;}
26822 fi
26823 # Neutralize special characters interpreted by sed in replacement strings.
26824 case $configure_input in #(
26825 *\&* | *\|* | *\\* )
26826 ac_sed_conf_input=`$as_echo "$configure_input" |
26827 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26828 *) ac_sed_conf_input=$configure_input;;
26829 esac
26830
26831 case $ac_tag in
26832 *:-:* | *:-) cat >"$tmp/stdin" \
26833 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26834 esac
26835 ;;
26836 esac
26837
26838 ac_dir=`$as_dirname -- "$ac_file" ||
26839 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26840 X"$ac_file" : 'X\(//\)[^/]' \| \
26841 X"$ac_file" : 'X\(//\)$' \| \
26842 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26843 $as_echo X"$ac_file" |
26844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26845 s//\1/
26846 q
26847 }
26848 /^X\(\/\/\)[^/].*/{
26849 s//\1/
26850 q
26851 }
26852 /^X\(\/\/\)$/{
26853 s//\1/
26854 q
26855 }
26856 /^X\(\/\).*/{
26857 s//\1/
26858 q
26859 }
26860 s/.*/./; q'`
26861 as_dir="$ac_dir"; as_fn_mkdir_p
26862 ac_builddir=.
26863
26864 case "$ac_dir" in
26865 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26866 *)
26867 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26868 # A ".." for each directory in $ac_dir_suffix.
26869 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26870 case $ac_top_builddir_sub in
26871 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26872 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26873 esac ;;
26874 esac
26875 ac_abs_top_builddir=$ac_pwd
26876 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26877 # for backward compatibility:
26878 ac_top_builddir=$ac_top_build_prefix
26879
26880 case $srcdir in
26881 .) # We are building in place.
26882 ac_srcdir=.
26883 ac_top_srcdir=$ac_top_builddir_sub
26884 ac_abs_top_srcdir=$ac_pwd ;;
26885 [\\/]* | ?:[\\/]* ) # Absolute name.
26886 ac_srcdir=$srcdir$ac_dir_suffix;
26887 ac_top_srcdir=$srcdir
26888 ac_abs_top_srcdir=$srcdir ;;
26889 *) # Relative name.
26890 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26891 ac_top_srcdir=$ac_top_build_prefix$srcdir
26892 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26893 esac
26894 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26895
26896
26897 case $ac_mode in
26898 :F)
26899 #
26900 # CONFIG_FILE
26901 #
26902
26903 case $INSTALL in
26904 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26905 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26906 esac
26907 ac_MKDIR_P=$MKDIR_P
26908 case $MKDIR_P in
26909 [\\/$]* | ?:[\\/]* ) ;;
26910 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26911 esac
26912 _ACEOF
26913
26914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26915 # If the template does not know about datarootdir, expand it.
26916 # FIXME: This hack should be removed a few years after 2.60.
26917 ac_datarootdir_hack=; ac_datarootdir_seen=
26918 ac_sed_dataroot='
26919 /datarootdir/ {
26920 p
26921 q
26922 }
26923 /@datadir@/p
26924 /@docdir@/p
26925 /@infodir@/p
26926 /@localedir@/p
26927 /@mandir@/p'
26928 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26929 *datarootdir*) ac_datarootdir_seen=yes;;
26930 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26932 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26933 _ACEOF
26934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26935 ac_datarootdir_hack='
26936 s&@datadir@&$datadir&g
26937 s&@docdir@&$docdir&g
26938 s&@infodir@&$infodir&g
26939 s&@localedir@&$localedir&g
26940 s&@mandir@&$mandir&g
26941 s&\\\${datarootdir}&$datarootdir&g' ;;
26942 esac
26943 _ACEOF
26944
26945 # Neutralize VPATH when `$srcdir' = `.'.
26946 # Shell code in configure.ac might set extrasub.
26947 # FIXME: do we really want to maintain this feature?
26948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26949 ac_sed_extra="$ac_vpsub
26950 $extrasub
26951 _ACEOF
26952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26953 :t
26954 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26955 s|@configure_input@|$ac_sed_conf_input|;t t
26956 s&@top_builddir@&$ac_top_builddir_sub&;t t
26957 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26958 s&@srcdir@&$ac_srcdir&;t t
26959 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26960 s&@top_srcdir@&$ac_top_srcdir&;t t
26961 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26962 s&@builddir@&$ac_builddir&;t t
26963 s&@abs_builddir@&$ac_abs_builddir&;t t
26964 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26965 s&@INSTALL@&$ac_INSTALL&;t t
26966 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26967 $ac_datarootdir_hack
26968 "
26969 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
26970 if $ac_cs_awk_getline; then
26971 $AWK -f "$tmp/subs.awk"
26972 else
26973 $AWK -f "$tmp/subs.awk" | $SHELL
26974 fi >$tmp/out \
26975 || as_fn_error "could not create $ac_file" "$LINENO" 5
26976
26977 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26978 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26979 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26981 which seems to be undefined. Please make sure it is defined." >&5
26982 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26983 which seems to be undefined. Please make sure it is defined." >&2;}
26984
26985 rm -f "$tmp/stdin"
26986 case $ac_file in
26987 -) cat "$tmp/out" && rm -f "$tmp/out";;
26988 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26989 esac \
26990 || as_fn_error "could not create $ac_file" "$LINENO" 5
26991 ;;
26992 :H)
26993 #
26994 # CONFIG_HEADER
26995 #
26996 if test x"$ac_file" != x-; then
26997 {
26998 $as_echo "/* $configure_input */" \
26999 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27000 } >"$tmp/config.h" \
27001 || as_fn_error "could not create $ac_file" "$LINENO" 5
27002 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27004 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27005 else
27006 rm -f "$ac_file"
27007 mv "$tmp/config.h" "$ac_file" \
27008 || as_fn_error "could not create $ac_file" "$LINENO" 5
27009 fi
27010 else
27011 $as_echo "/* $configure_input */" \
27012 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27013 || as_fn_error "could not create -" "$LINENO" 5
27014 fi
27015 # Compute "$ac_file"'s index in $config_headers.
27016 _am_arg="$ac_file"
27017 _am_stamp_count=1
27018 for _am_header in $config_headers :; do
27019 case $_am_header in
27020 $_am_arg | $_am_arg:* )
27021 break ;;
27022 * )
27023 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27024 esac
27025 done
27026 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27027 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27028 X"$_am_arg" : 'X\(//\)[^/]' \| \
27029 X"$_am_arg" : 'X\(//\)$' \| \
27030 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27031 $as_echo X"$_am_arg" |
27032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27033 s//\1/
27034 q
27035 }
27036 /^X\(\/\/\)[^/].*/{
27037 s//\1/
27038 q
27039 }
27040 /^X\(\/\/\)$/{
27041 s//\1/
27042 q
27043 }
27044 /^X\(\/\).*/{
27045 s//\1/
27046 q
27047 }
27048 s/.*/./; q'`/stamp-h$_am_stamp_count
27049 ;;
27050
27051 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27052 $as_echo "$as_me: executing $ac_file commands" >&6;}
27053 ;;
27054 esac
27055
27056
27057 case $ac_file$ac_mode in
27058 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27059 # Autoconf 2.62 quotes --file arguments for eval, but not when files
27060 # are listed without --file. Let's play safe and only enable the eval
27061 # if we detect the quoting.
27062 case $CONFIG_FILES in
27063 *\'*) eval set x "$CONFIG_FILES" ;;
27064 *) set x $CONFIG_FILES ;;
27065 esac
27066 shift
27067 for mf
27068 do
27069 # Strip MF so we end up with the name of the file.
27070 mf=`echo "$mf" | sed -e 's/:.*$//'`
27071 # Check whether this is an Automake generated Makefile or not.
27072 # We used to match only the files named `Makefile.in', but
27073 # some people rename them; so instead we look at the file content.
27074 # Grep'ing the first line is not enough: some people post-process
27075 # each Makefile.in and add a new line on top of each file to say so.
27076 # Grep'ing the whole file is not good either: AIX grep has a line
27077 # limit of 2048, but all sed's we know have understand at least 4000.
27078 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27079 dirpart=`$as_dirname -- "$mf" ||
27080 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27081 X"$mf" : 'X\(//\)[^/]' \| \
27082 X"$mf" : 'X\(//\)$' \| \
27083 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27084 $as_echo X"$mf" |
27085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27086 s//\1/
27087 q
27088 }
27089 /^X\(\/\/\)[^/].*/{
27090 s//\1/
27091 q
27092 }
27093 /^X\(\/\/\)$/{
27094 s//\1/
27095 q
27096 }
27097 /^X\(\/\).*/{
27098 s//\1/
27099 q
27100 }
27101 s/.*/./; q'`
27102 else
27103 continue
27104 fi
27105 # Extract the definition of DEPDIR, am__include, and am__quote
27106 # from the Makefile without running `make'.
27107 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27108 test -z "$DEPDIR" && continue
27109 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27110 test -z "am__include" && continue
27111 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27112 # When using ansi2knr, U may be empty or an underscore; expand it
27113 U=`sed -n 's/^U = //p' < "$mf"`
27114 # Find all dependency output files, they are included files with
27115 # $(DEPDIR) in their names. We invoke sed twice because it is the
27116 # simplest approach to changing $(DEPDIR) to its actual value in the
27117 # expansion.
27118 for file in `sed -n "
27119 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27120 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27121 # Make sure the directory exists.
27122 test -f "$dirpart/$file" && continue
27123 fdir=`$as_dirname -- "$file" ||
27124 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27125 X"$file" : 'X\(//\)[^/]' \| \
27126 X"$file" : 'X\(//\)$' \| \
27127 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27128 $as_echo X"$file" |
27129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27130 s//\1/
27131 q
27132 }
27133 /^X\(\/\/\)[^/].*/{
27134 s//\1/
27135 q
27136 }
27137 /^X\(\/\/\)$/{
27138 s//\1/
27139 q
27140 }
27141 /^X\(\/\).*/{
27142 s//\1/
27143 q
27144 }
27145 s/.*/./; q'`
27146 as_dir=$dirpart/$fdir; as_fn_mkdir_p
27147 # echo "creating $dirpart/$file"
27148 echo '# dummy' > "$dirpart/$file"
27149 done
27150 done
27151 }
27152 ;;
27153 "mkdirs":C)
27154 for dir in etc lisp ; do
27155 test -d ${dir} || mkdir ${dir}
27156 done
27157 ;;
27158 "epaths":C)
27159 echo creating src/epaths.h
27160 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force
27161 ;;
27162 "gdbinit":C)
27163 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
27164 echo creating src/.gdbinit
27165 echo source $srcdir/src/.gdbinit > src/.gdbinit
27166 fi
27167 ;;
27168
27169 esac
27170 done # for ac_tag
27171
27172
27173 as_fn_exit 0
27174 _ACEOF
27175 ac_clean_files=$ac_clean_files_save
27176
27177 test $ac_write_fail = 0 ||
27178 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27179
27180
27181 # configure is writing to config.log, and then calls config.status.
27182 # config.status does its own redirection, appending to config.log.
27183 # Unfortunately, on DOS this fails, as config.log is still kept open
27184 # by configure, so config.status won't be able to write to it; its
27185 # output is simply discarded. So we exec the FD to /dev/null,
27186 # effectively closing config.log, so it can be properly (re)opened and
27187 # appended to by config.status. When coming back to configure, we
27188 # need to make the FD available again.
27189 if test "$no_create" != yes; then
27190 ac_cs_success=:
27191 ac_config_status_args=
27192 test "$silent" = yes &&
27193 ac_config_status_args="$ac_config_status_args --quiet"
27194 exec 5>/dev/null
27195 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27196 exec 5>>config.log
27197 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27198 # would make configure fail if this is the last instruction.
27199 $ac_cs_success || as_fn_exit $?
27200 fi
27201 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27203 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27204 fi
27205