* lisp/emacs-lisp/byte-run.el (defun-declarations-alist):
[emacs.git] / autogen / configure
blobafcf9a73fa637dcf8fc73ce135123c88e8c5003b
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.
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.
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 ## -------------------- ##
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 *) :
32 esac
36 as_nl='
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"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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 *) :
150 esac
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; }
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 :
166 else
167 exitcode=1; echo positional parameters were not saved.
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
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
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
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
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
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
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+"$@"}
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."
236 exit 1
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
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
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 ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
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/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
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"
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 ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
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 ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
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 ()
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
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
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
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
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
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/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
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
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 '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
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; }
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
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;;
462 ECHO_N='-n';;
463 esac
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
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'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
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
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=
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
520 as_executable_p=$as_test_x
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'"
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'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
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`
538 # Initializations.
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=
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=''
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"
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
1268 EGREP
1269 GREP
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
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
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
1414 ac_precious_vars='build_alias
1415 host_alias
1416 target_alias
1418 CFLAGS
1419 LDFLAGS
1420 LIBS
1421 CPPFLAGS
1423 XMKMF'
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
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'
1474 ac_prev=
1475 ac_dashdash=
1476 for ac_option
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
1485 case $ac_option in
1486 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1487 *) ac_optarg=yes ;;
1488 esac
1490 # Accept the important Cygnus configure options, so we can diagnose typos.
1492 case $ac_dashdash$ac_option in
1494 ac_dashdash=yes ;;
1496 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1497 ac_prev=bindir ;;
1498 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1499 bindir=$ac_optarg ;;
1501 -build | --build | --buil | --bui | --bu)
1502 ac_prev=build_alias ;;
1503 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1504 build_alias=$ac_optarg ;;
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 ;;
1513 --config-cache | -C)
1514 cache_file=config.cache ;;
1516 -datadir | --datadir | --datadi | --datad)
1517 ac_prev=datadir ;;
1518 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1519 datadir=$ac_optarg ;;
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 ;;
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
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 ;;
1544 -docdir | --docdir | --docdi | --doc | --do)
1545 ac_prev=docdir ;;
1546 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1547 docdir=$ac_optarg ;;
1549 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1550 ac_prev=dvidir ;;
1551 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1552 dvidir=$ac_optarg ;;
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
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 ;;
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 ;;
1579 -gas | --gas | --ga | --g)
1580 # Obsolete; use --with-gas.
1581 with_gas=yes ;;
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 ;;
1590 -host | --host | --hos | --ho)
1591 ac_prev=host_alias ;;
1592 -host=* | --host=* | --hos=* | --ho=*)
1593 host_alias=$ac_optarg ;;
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 ;;
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 ;;
1608 -infodir | --infodir | --infodi | --infod | --info | --inf)
1609 ac_prev=infodir ;;
1610 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1611 infodir=$ac_optarg ;;
1613 -libdir | --libdir | --libdi | --libd)
1614 ac_prev=libdir ;;
1615 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1616 libdir=$ac_optarg ;;
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 ;;
1625 -localedir | --localedir | --localedi | --localed | --locale)
1626 ac_prev=localedir ;;
1627 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1628 localedir=$ac_optarg ;;
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 ;;
1637 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1638 ac_prev=mandir ;;
1639 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1640 mandir=$ac_optarg ;;
1642 -nfp | --nfp | --nf)
1643 # Obsolete; use --without-fp.
1644 with_fp=no ;;
1646 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1647 | --no-cr | --no-c | -n)
1648 no_create=yes ;;
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 ;;
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 ;;
1663 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1664 ac_prev=prefix ;;
1665 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1666 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
1699 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1700 ac_prev=pdfdir ;;
1701 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1702 pdfdir=$ac_optarg ;;
1704 -psdir | --psdir | --psdi | --psd | --ps)
1705 ac_prev=psdir ;;
1706 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1707 psdir=$ac_optarg ;;
1709 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1710 | -silent | --silent | --silen | --sile | --sil)
1711 silent=yes ;;
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 ;;
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 ;;
1730 -site | --site | --sit)
1731 ac_prev=site ;;
1732 -site=* | --site=* | --sit=*)
1733 site=$ac_optarg ;;
1735 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1736 ac_prev=srcdir ;;
1737 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1738 srcdir=$ac_optarg ;;
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 ;;
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 ;;
1752 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1753 verbose=yes ;;
1755 -version | --version | --versio | --versi | --vers | -V)
1756 ac_init_version=: ;;
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
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 ;;
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
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 ;;
1790 --x)
1791 # Obsolete; use --with-x.
1792 with_x=yes ;;
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 ;;
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 ;;
1808 -*) as_fn_error "unrecognized option: \`$ac_option'
1809 Try \`$0 --help' for more information."
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 ;;
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}
1830 esac
1831 done
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"
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
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
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
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
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
1885 ac_tool_prefix=
1886 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1888 test "$silent" = yes && exec 6>/dev/null
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"
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/
1913 /^X\(\/\/\)[^/].*/{
1914 s//\1/
1917 /^X\(\/\/\)$/{
1918 s//\1/
1921 /^X\(\/\).*/{
1922 s//\1/
1925 s/.*/./; q'`
1926 srcdir=$ac_confdir
1927 if test ! -r "$srcdir/$ac_unique_file"; then
1928 srcdir=..
1930 else
1931 ac_srcdir_defaulted=no
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"
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=.
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
1959 # Report the --help message.
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.
1967 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
1972 Defaults for the options are specified in brackets.
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 \`..']
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]
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'.
1996 For better control, use the options below.
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
2020 cat <<\_ACEOF
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
2027 X features:
2028 --x-includes=DIR X include files are in DIR
2029 --x-libraries=DIR X library files are in DIR
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
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
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 profiling support. This might not
2062 work on all platforms
2063 --enable-autodepend automatically generate dependencies to .h-files.
2064 Requires GNU Make and Gcc. Enabled if GNU Make and
2065 Gcc is found
2066 --disable-dependency-tracking speeds up one-time build
2067 --enable-dependency-tracking do not reject slow dependency extractors
2068 --disable-largefile omit support for large files
2069 --enable-gcc-warnings turn on lots of GCC warnings. This is intended for
2070 developers, and may generate false alarms when used
2071 with older or non-GNU development tools.
2072 --enable-link-time-optimization
2073 build emacs with link-time optimization. This is
2074 supported only for GCC since 4.5.0.
2076 Optional Packages:
2077 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2078 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2079 --without-all omit almost all features and build small executable
2080 with minimal dependencies
2081 --without-pop don't support POP mail retrieval with movemail
2082 --with-kerberos support Kerberos-authenticated POP
2083 --with-kerberos5 support Kerberos version 5 authenticated POP
2084 --with-hesiod support Hesiod to get the POP server host
2085 --with-mmdf support MMDF mailboxes
2086 --with-mail-unlink unlink, rather than empty, mail spool after reading
2087 --with-mailhost=HOSTNAME
2088 string giving default POP mail host
2089 --without-sound don't compile with sound support
2090 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2,
2091 gtk3, lucid or athena, motif, no)
2092 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2093 --without-xpm don't compile with XPM image support
2094 --without-jpeg don't compile with JPEG image support
2095 --without-tiff don't compile with TIFF image support
2096 --without-gif don't compile with GIF image support
2097 --without-png don't compile with PNG image support
2098 --without-rsvg don't compile with SVG image support
2099 --without-xml2 don't compile with XML parsing support
2100 --without-imagemagick don't compile with ImageMagick image support
2101 --without-xft don't use XFT for anti aliased fonts
2102 --without-libotf don't use libotf for OpenType font support
2103 --without-m17n-flt don't use m17n-flt for text shaping
2104 --without-toolkit-scroll-bars
2105 don't use Motif or Xaw3d scroll bars
2106 --without-xaw3d don't use Xaw3d
2107 --without-xim don't use X11 XIM
2108 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2109 --with-w32 use native MS Windows GUI
2110 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2111 console
2112 --without-dbus don't compile with D-Bus support
2113 --without-gconf don't compile with GConf support
2114 --without-gsettings don't compile with GSettings support
2115 --without-selinux don't compile with SELinux support
2116 --without-gnutls don't use -lgnutls for SSL/TLS support
2117 --without-makeinfo don't require makeinfo for building manuals
2118 --without-compress-info don't compress the installed Info pages
2119 --with-pkg-config-prog=PATH
2120 path to pkg-config for finding GTK and librsvg
2121 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2122 /usr/lib, or /usr/lib64 on some platforms.
2123 --with-gameuser=USER user for shared game score files
2124 --with-gnustep-conf=PATH
2125 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2126 or /etc/GNUstep/GNUstep.conf
2127 --with-x use the X Window System
2129 Some influential environment variables:
2130 CC C compiler command
2131 CFLAGS C compiler flags
2132 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2133 nonstandard directory <lib dir>
2134 LIBS libraries to pass to the linker, e.g. -l<library>
2135 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2136 you have headers in a nonstandard directory <include dir>
2137 CPP C preprocessor
2138 XMKMF Path to xmkmf, Makefile generator for X Window System
2140 Use these variables to override the choices made by `configure' or to help
2141 it to find libraries and programs with nonstandard names/locations.
2143 Report bugs to the package provider.
2144 _ACEOF
2145 ac_status=$?
2148 if test "$ac_init_help" = "recursive"; then
2149 # If there are subdirs, report their specific --help.
2150 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2151 test -d "$ac_dir" ||
2152 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2153 continue
2154 ac_builddir=.
2156 case "$ac_dir" in
2157 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2159 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2160 # A ".." for each directory in $ac_dir_suffix.
2161 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2162 case $ac_top_builddir_sub in
2163 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2164 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2165 esac ;;
2166 esac
2167 ac_abs_top_builddir=$ac_pwd
2168 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2169 # for backward compatibility:
2170 ac_top_builddir=$ac_top_build_prefix
2172 case $srcdir in
2173 .) # We are building in place.
2174 ac_srcdir=.
2175 ac_top_srcdir=$ac_top_builddir_sub
2176 ac_abs_top_srcdir=$ac_pwd ;;
2177 [\\/]* | ?:[\\/]* ) # Absolute name.
2178 ac_srcdir=$srcdir$ac_dir_suffix;
2179 ac_top_srcdir=$srcdir
2180 ac_abs_top_srcdir=$srcdir ;;
2181 *) # Relative name.
2182 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2183 ac_top_srcdir=$ac_top_build_prefix$srcdir
2184 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2185 esac
2186 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2188 cd "$ac_dir" || { ac_status=$?; continue; }
2189 # Check for guested configure.
2190 if test -f "$ac_srcdir/configure.gnu"; then
2191 echo &&
2192 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2193 elif test -f "$ac_srcdir/configure"; then
2194 echo &&
2195 $SHELL "$ac_srcdir/configure" --help=recursive
2196 else
2197 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2198 fi || ac_status=$?
2199 cd "$ac_pwd" || { ac_status=$?; break; }
2200 done
2203 test -n "$ac_init_help" && exit $ac_status
2204 if $ac_init_version; then
2205 cat <<\_ACEOF
2206 emacs configure 24.3.50
2207 generated by GNU Autoconf 2.65
2209 Copyright (C) 2009 Free Software Foundation, Inc.
2210 This configure script is free software; the Free Software Foundation
2211 gives unlimited permission to copy, distribute and modify it.
2212 _ACEOF
2213 exit
2216 ## ------------------------ ##
2217 ## Autoconf initialization. ##
2218 ## ------------------------ ##
2220 # ac_fn_c_try_compile LINENO
2221 # --------------------------
2222 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2223 ac_fn_c_try_compile ()
2225 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226 rm -f conftest.$ac_objext
2227 if { { ac_try="$ac_compile"
2228 case "(($ac_try" in
2229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230 *) ac_try_echo=$ac_try;;
2231 esac
2232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2233 $as_echo "$ac_try_echo"; } >&5
2234 (eval "$ac_compile") 2>conftest.err
2235 ac_status=$?
2236 if test -s conftest.err; then
2237 grep -v '^ *+' conftest.err >conftest.er1
2238 cat conftest.er1 >&5
2239 mv -f conftest.er1 conftest.err
2241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2242 test $ac_status = 0; } && {
2243 test -z "$ac_c_werror_flag" ||
2244 test ! -s conftest.err
2245 } && test -s conftest.$ac_objext; then :
2246 ac_retval=0
2247 else
2248 $as_echo "$as_me: failed program was:" >&5
2249 sed 's/^/| /' conftest.$ac_ext >&5
2251 ac_retval=1
2253 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2254 as_fn_set_status $ac_retval
2256 } # ac_fn_c_try_compile
2258 # ac_fn_c_try_cpp LINENO
2259 # ----------------------
2260 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2261 ac_fn_c_try_cpp ()
2263 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2264 if { { ac_try="$ac_cpp conftest.$ac_ext"
2265 case "(($ac_try" in
2266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267 *) ac_try_echo=$ac_try;;
2268 esac
2269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2270 $as_echo "$ac_try_echo"; } >&5
2271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2272 ac_status=$?
2273 if test -s conftest.err; then
2274 grep -v '^ *+' conftest.err >conftest.er1
2275 cat conftest.er1 >&5
2276 mv -f conftest.er1 conftest.err
2278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2279 test $ac_status = 0; } >/dev/null && {
2280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2281 test ! -s conftest.err
2282 }; then :
2283 ac_retval=0
2284 else
2285 $as_echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2288 ac_retval=1
2290 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2291 as_fn_set_status $ac_retval
2293 } # ac_fn_c_try_cpp
2295 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2296 # -------------------------------------------------------
2297 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2298 # the include files in INCLUDES and setting the cache variable VAR
2299 # accordingly.
2300 ac_fn_c_check_header_mongrel ()
2302 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2303 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2305 $as_echo_n "checking for $2... " >&6; }
2306 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2307 $as_echo_n "(cached) " >&6
2309 eval ac_res=\$$3
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2311 $as_echo "$ac_res" >&6; }
2312 else
2313 # Is the header compilable?
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2315 $as_echo_n "checking $2 usability... " >&6; }
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2319 #include <$2>
2320 _ACEOF
2321 if ac_fn_c_try_compile "$LINENO"; then :
2322 ac_header_compiler=yes
2323 else
2324 ac_header_compiler=no
2326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2328 $as_echo "$ac_header_compiler" >&6; }
2330 # Is the header present?
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2332 $as_echo_n "checking $2 presence... " >&6; }
2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334 /* end confdefs.h. */
2335 #include <$2>
2336 _ACEOF
2337 if ac_fn_c_try_cpp "$LINENO"; then :
2338 ac_header_preproc=yes
2339 else
2340 ac_header_preproc=no
2342 rm -f conftest.err conftest.$ac_ext
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2344 $as_echo "$ac_header_preproc" >&6; }
2346 # So? What about this header?
2347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2348 yes:no: )
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2350 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2352 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2354 no:yes:* )
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2356 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2358 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2360 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2362 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2364 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2366 esac
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2368 $as_echo_n "checking for $2... " >&6; }
2369 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2370 $as_echo_n "(cached) " >&6
2371 else
2372 eval "$3=\$ac_header_compiler"
2374 eval ac_res=\$$3
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2376 $as_echo "$ac_res" >&6; }
2378 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2380 } # ac_fn_c_check_header_mongrel
2382 # ac_fn_c_try_run LINENO
2383 # ----------------------
2384 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2385 # that executables *can* be run.
2386 ac_fn_c_try_run ()
2388 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2389 if { { ac_try="$ac_link"
2390 case "(($ac_try" in
2391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392 *) ac_try_echo=$ac_try;;
2393 esac
2394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2395 $as_echo "$ac_try_echo"; } >&5
2396 (eval "$ac_link") 2>&5
2397 ac_status=$?
2398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2399 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2400 { { case "(($ac_try" in
2401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402 *) ac_try_echo=$ac_try;;
2403 esac
2404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2405 $as_echo "$ac_try_echo"; } >&5
2406 (eval "$ac_try") 2>&5
2407 ac_status=$?
2408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2409 test $ac_status = 0; }; }; then :
2410 ac_retval=0
2411 else
2412 $as_echo "$as_me: program exited with status $ac_status" >&5
2413 $as_echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.$ac_ext >&5
2416 ac_retval=$ac_status
2418 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2419 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2420 as_fn_set_status $ac_retval
2422 } # ac_fn_c_try_run
2424 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2425 # -------------------------------------------------------
2426 # Tests whether HEADER exists and can be compiled using the include files in
2427 # INCLUDES, setting the cache variable VAR accordingly.
2428 ac_fn_c_check_header_compile ()
2430 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2432 $as_echo_n "checking for $2... " >&6; }
2433 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2434 $as_echo_n "(cached) " >&6
2435 else
2436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h. */
2439 #include <$2>
2440 _ACEOF
2441 if ac_fn_c_try_compile "$LINENO"; then :
2442 eval "$3=yes"
2443 else
2444 eval "$3=no"
2446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 eval ac_res=\$$3
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2450 $as_echo "$ac_res" >&6; }
2451 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2453 } # ac_fn_c_check_header_compile
2455 # ac_fn_c_try_link LINENO
2456 # -----------------------
2457 # Try to link conftest.$ac_ext, and return whether this succeeded.
2458 ac_fn_c_try_link ()
2460 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2461 rm -f conftest.$ac_objext conftest$ac_exeext
2462 if { { ac_try="$ac_link"
2463 case "(($ac_try" in
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2466 esac
2467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2468 $as_echo "$ac_try_echo"; } >&5
2469 (eval "$ac_link") 2>conftest.err
2470 ac_status=$?
2471 if test -s conftest.err; then
2472 grep -v '^ *+' conftest.err >conftest.er1
2473 cat conftest.er1 >&5
2474 mv -f conftest.er1 conftest.err
2476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2477 test $ac_status = 0; } && {
2478 test -z "$ac_c_werror_flag" ||
2479 test ! -s conftest.err
2480 } && test -s conftest$ac_exeext && {
2481 test "$cross_compiling" = yes ||
2482 $as_test_x conftest$ac_exeext
2483 }; then :
2484 ac_retval=0
2485 else
2486 $as_echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.$ac_ext >&5
2489 ac_retval=1
2491 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2492 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2493 # interfere with the next link command; also delete a directory that is
2494 # left behind by Apple's compiler. We do this before executing the actions.
2495 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2496 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2497 as_fn_set_status $ac_retval
2499 } # ac_fn_c_try_link
2501 # ac_fn_c_check_decl LINENO SYMBOL VAR
2502 # ------------------------------------
2503 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2504 ac_fn_c_check_decl ()
2506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2508 $as_echo_n "checking whether $2 is declared... " >&6; }
2509 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2510 $as_echo_n "(cached) " >&6
2511 else
2512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h. */
2516 main ()
2518 #ifndef $2
2519 (void) $2;
2520 #endif
2523 return 0;
2525 _ACEOF
2526 if ac_fn_c_try_compile "$LINENO"; then :
2527 eval "$3=yes"
2528 else
2529 eval "$3=no"
2531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2533 eval ac_res=\$$3
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2535 $as_echo "$ac_res" >&6; }
2536 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2538 } # ac_fn_c_check_decl
2540 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2541 # ----------------------------------------------
2542 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2543 ac_fn_c_check_header_preproc ()
2545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2547 $as_echo_n "checking for $2... " >&6; }
2548 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2549 $as_echo_n "(cached) " >&6
2550 else
2551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552 /* end confdefs.h. */
2553 #include <$2>
2554 _ACEOF
2555 if ac_fn_c_try_cpp "$LINENO"; then :
2556 eval "$3=yes"
2557 else
2558 eval "$3=no"
2560 rm -f conftest.err conftest.$ac_ext
2562 eval ac_res=\$$3
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2564 $as_echo "$ac_res" >&6; }
2565 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2567 } # ac_fn_c_check_header_preproc
2569 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2570 # ----------------------------------------------------
2571 # Tries to find if the field MEMBER exists in type AGGR, after including
2572 # INCLUDES, setting cache variable VAR accordingly.
2573 ac_fn_c_check_member ()
2575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2577 $as_echo_n "checking for $2.$3... " >&6; }
2578 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2579 $as_echo_n "(cached) " >&6
2580 else
2581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2582 /* end confdefs.h. */
2585 main ()
2587 static $2 ac_aggr;
2588 if (ac_aggr.$3)
2589 return 0;
2591 return 0;
2593 _ACEOF
2594 if ac_fn_c_try_compile "$LINENO"; then :
2595 eval "$4=yes"
2596 else
2597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2598 /* end confdefs.h. */
2601 main ()
2603 static $2 ac_aggr;
2604 if (sizeof ac_aggr.$3)
2605 return 0;
2607 return 0;
2609 _ACEOF
2610 if ac_fn_c_try_compile "$LINENO"; then :
2611 eval "$4=yes"
2612 else
2613 eval "$4=no"
2615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619 eval ac_res=\$$4
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2621 $as_echo "$ac_res" >&6; }
2622 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2624 } # ac_fn_c_check_member
2626 # ac_fn_c_check_func LINENO FUNC VAR
2627 # ----------------------------------
2628 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2629 ac_fn_c_check_func ()
2631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2633 $as_echo_n "checking for $2... " >&6; }
2634 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2635 $as_echo_n "(cached) " >&6
2636 else
2637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2638 /* end confdefs.h. */
2639 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2641 #define $2 innocuous_$2
2643 /* System header to define __stub macros and hopefully few prototypes,
2644 which can conflict with char $2 (); below.
2645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2646 <limits.h> exists even on freestanding compilers. */
2648 #ifdef __STDC__
2649 # include <limits.h>
2650 #else
2651 # include <assert.h>
2652 #endif
2654 #undef $2
2656 /* Override any GCC internal prototype to avoid an error.
2657 Use char because int might match the return type of a GCC
2658 builtin and then its argument prototype would still apply. */
2659 #ifdef __cplusplus
2660 extern "C"
2661 #endif
2662 char $2 ();
2663 /* The GNU C library defines this for functions which it implements
2664 to always fail with ENOSYS. Some functions are actually named
2665 something starting with __ and the normal name is an alias. */
2666 #if defined __stub_$2 || defined __stub___$2
2667 choke me
2668 #endif
2671 main ()
2673 return $2 ();
2675 return 0;
2677 _ACEOF
2678 if ac_fn_c_try_link "$LINENO"; then :
2679 eval "$3=yes"
2680 else
2681 eval "$3=no"
2683 rm -f core conftest.err conftest.$ac_objext \
2684 conftest$ac_exeext conftest.$ac_ext
2686 eval ac_res=\$$3
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2688 $as_echo "$ac_res" >&6; }
2689 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2691 } # ac_fn_c_check_func
2693 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2694 # -------------------------------------------
2695 # Tests whether TYPE exists after having included INCLUDES, setting cache
2696 # variable VAR accordingly.
2697 ac_fn_c_check_type ()
2699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2701 $as_echo_n "checking for $2... " >&6; }
2702 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2703 $as_echo_n "(cached) " >&6
2704 else
2705 eval "$3=no"
2706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2707 /* end confdefs.h. */
2710 main ()
2712 if (sizeof ($2))
2713 return 0;
2715 return 0;
2717 _ACEOF
2718 if ac_fn_c_try_compile "$LINENO"; then :
2719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720 /* end confdefs.h. */
2723 main ()
2725 if (sizeof (($2)))
2726 return 0;
2728 return 0;
2730 _ACEOF
2731 if ac_fn_c_try_compile "$LINENO"; then :
2733 else
2734 eval "$3=yes"
2736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740 eval ac_res=\$$3
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2742 $as_echo "$ac_res" >&6; }
2743 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2745 } # ac_fn_c_check_type
2747 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2748 # --------------------------------------------
2749 # Tries to find the compile-time value of EXPR in a program that includes
2750 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2751 # computed
2752 ac_fn_c_compute_int ()
2754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2755 if test "$cross_compiling" = yes; then
2756 # Depending upon the size, compute the lo and hi bounds.
2757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2758 /* end confdefs.h. */
2761 main ()
2763 static int test_array [1 - 2 * !(($2) >= 0)];
2764 test_array [0] = 0
2767 return 0;
2769 _ACEOF
2770 if ac_fn_c_try_compile "$LINENO"; then :
2771 ac_lo=0 ac_mid=0
2772 while :; do
2773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2774 /* end confdefs.h. */
2777 main ()
2779 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2780 test_array [0] = 0
2783 return 0;
2785 _ACEOF
2786 if ac_fn_c_try_compile "$LINENO"; then :
2787 ac_hi=$ac_mid; break
2788 else
2789 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2790 if test $ac_lo -le $ac_mid; then
2791 ac_lo= ac_hi=
2792 break
2794 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2797 done
2798 else
2799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2800 /* end confdefs.h. */
2803 main ()
2805 static int test_array [1 - 2 * !(($2) < 0)];
2806 test_array [0] = 0
2809 return 0;
2811 _ACEOF
2812 if ac_fn_c_try_compile "$LINENO"; then :
2813 ac_hi=-1 ac_mid=-1
2814 while :; do
2815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2816 /* end confdefs.h. */
2819 main ()
2821 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2822 test_array [0] = 0
2825 return 0;
2827 _ACEOF
2828 if ac_fn_c_try_compile "$LINENO"; then :
2829 ac_lo=$ac_mid; break
2830 else
2831 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2832 if test $ac_mid -le $ac_hi; then
2833 ac_lo= ac_hi=
2834 break
2836 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2839 done
2840 else
2841 ac_lo= ac_hi=
2843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2846 # Binary search between lo and hi bounds.
2847 while test "x$ac_lo" != "x$ac_hi"; do
2848 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2850 /* end confdefs.h. */
2853 main ()
2855 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2856 test_array [0] = 0
2859 return 0;
2861 _ACEOF
2862 if ac_fn_c_try_compile "$LINENO"; then :
2863 ac_hi=$ac_mid
2864 else
2865 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2868 done
2869 case $ac_lo in #((
2870 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2871 '') ac_retval=1 ;;
2872 esac
2873 else
2874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2875 /* end confdefs.h. */
2877 static long int longval () { return $2; }
2878 static unsigned long int ulongval () { return $2; }
2879 #include <stdio.h>
2880 #include <stdlib.h>
2882 main ()
2885 FILE *f = fopen ("conftest.val", "w");
2886 if (! f)
2887 return 1;
2888 if (($2) < 0)
2890 long int i = longval ();
2891 if (i != ($2))
2892 return 1;
2893 fprintf (f, "%ld", i);
2895 else
2897 unsigned long int i = ulongval ();
2898 if (i != ($2))
2899 return 1;
2900 fprintf (f, "%lu", i);
2902 /* Do not output a trailing newline, as this causes \r\n confusion
2903 on some platforms. */
2904 return ferror (f) || fclose (f) != 0;
2907 return 0;
2909 _ACEOF
2910 if ac_fn_c_try_run "$LINENO"; then :
2911 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2912 else
2913 ac_retval=1
2915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2916 conftest.$ac_objext conftest.beam conftest.$ac_ext
2917 rm -f conftest.val
2920 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2921 as_fn_set_status $ac_retval
2923 } # ac_fn_c_compute_int
2924 cat >config.log <<_ACEOF
2925 This file contains any messages produced by compilers while
2926 running configure, to aid debugging if configure makes a mistake.
2928 It was created by emacs $as_me 24.3.50, which was
2929 generated by GNU Autoconf 2.65. Invocation command line was
2931 $ $0 $@
2933 _ACEOF
2934 exec 5>>config.log
2936 cat <<_ASUNAME
2937 ## --------- ##
2938 ## Platform. ##
2939 ## --------- ##
2941 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2942 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2943 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2944 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2945 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2947 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2948 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2950 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2951 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2952 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2953 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2954 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2955 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2956 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2958 _ASUNAME
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
2965 $as_echo "PATH: $as_dir"
2966 done
2967 IFS=$as_save_IFS
2969 } >&5
2971 cat >&5 <<_ACEOF
2974 ## ----------- ##
2975 ## Core tests. ##
2976 ## ----------- ##
2978 _ACEOF
2981 # Keep a trace of the command line.
2982 # Strip out --no-create and --no-recursion so they do not pile up.
2983 # Strip out --silent because we don't want to record it for future runs.
2984 # Also quote any args containing shell meta-characters.
2985 # Make two passes to allow for proper duplicate-argument suppression.
2986 ac_configure_args=
2987 ac_configure_args0=
2988 ac_configure_args1=
2989 ac_must_keep_next=false
2990 for ac_pass in 1 2
2992 for ac_arg
2994 case $ac_arg in
2995 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2996 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2997 | -silent | --silent | --silen | --sile | --sil)
2998 continue ;;
2999 *\'*)
3000 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3001 esac
3002 case $ac_pass in
3003 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3005 as_fn_append ac_configure_args1 " '$ac_arg'"
3006 if test $ac_must_keep_next = true; then
3007 ac_must_keep_next=false # Got value, back to normal.
3008 else
3009 case $ac_arg in
3010 *=* | --config-cache | -C | -disable-* | --disable-* \
3011 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3012 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3013 | -with-* | --with-* | -without-* | --without-* | --x)
3014 case "$ac_configure_args0 " in
3015 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3016 esac
3018 -* ) ac_must_keep_next=true ;;
3019 esac
3021 as_fn_append ac_configure_args " '$ac_arg'"
3023 esac
3024 done
3025 done
3026 { ac_configure_args0=; unset ac_configure_args0;}
3027 { ac_configure_args1=; unset ac_configure_args1;}
3029 # When interrupted or exit'd, cleanup temporary files, and complete
3030 # config.log. We remove comments because anyway the quotes in there
3031 # would cause problems or look ugly.
3032 # WARNING: Use '\'' to represent an apostrophe within the trap.
3033 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3034 trap 'exit_status=$?
3035 # Save into config.log some information that might help in debugging.
3037 echo
3039 cat <<\_ASBOX
3040 ## ---------------- ##
3041 ## Cache variables. ##
3042 ## ---------------- ##
3043 _ASBOX
3044 echo
3045 # The following way of writing the cache mishandles newlines in values,
3047 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3048 eval ac_val=\$$ac_var
3049 case $ac_val in #(
3050 *${as_nl}*)
3051 case $ac_var in #(
3052 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3053 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3054 esac
3055 case $ac_var in #(
3056 _ | IFS | as_nl) ;; #(
3057 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3058 *) { eval $ac_var=; unset $ac_var;} ;;
3059 esac ;;
3060 esac
3061 done
3062 (set) 2>&1 |
3063 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3064 *${as_nl}ac_space=\ *)
3065 sed -n \
3066 "s/'\''/'\''\\\\'\'''\''/g;
3067 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3068 ;; #(
3070 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3072 esac |
3073 sort
3075 echo
3077 cat <<\_ASBOX
3078 ## ----------------- ##
3079 ## Output variables. ##
3080 ## ----------------- ##
3081 _ASBOX
3082 echo
3083 for ac_var in $ac_subst_vars
3085 eval ac_val=\$$ac_var
3086 case $ac_val in
3087 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3088 esac
3089 $as_echo "$ac_var='\''$ac_val'\''"
3090 done | sort
3091 echo
3093 if test -n "$ac_subst_files"; then
3094 cat <<\_ASBOX
3095 ## ------------------- ##
3096 ## File substitutions. ##
3097 ## ------------------- ##
3098 _ASBOX
3099 echo
3100 for ac_var in $ac_subst_files
3102 eval ac_val=\$$ac_var
3103 case $ac_val in
3104 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3105 esac
3106 $as_echo "$ac_var='\''$ac_val'\''"
3107 done | sort
3108 echo
3111 if test -s confdefs.h; then
3112 cat <<\_ASBOX
3113 ## ----------- ##
3114 ## confdefs.h. ##
3115 ## ----------- ##
3116 _ASBOX
3117 echo
3118 cat confdefs.h
3119 echo
3121 test "$ac_signal" != 0 &&
3122 $as_echo "$as_me: caught signal $ac_signal"
3123 $as_echo "$as_me: exit $exit_status"
3124 } >&5
3125 rm -f core *.core core.conftest.* &&
3126 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3127 exit $exit_status
3129 for ac_signal in 1 2 13 15; do
3130 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3131 done
3132 ac_signal=0
3134 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3135 rm -f -r conftest* confdefs.h
3137 $as_echo "/* confdefs.h */" > confdefs.h
3139 # Predefined preprocessor variables.
3141 cat >>confdefs.h <<_ACEOF
3142 #define PACKAGE_NAME "$PACKAGE_NAME"
3143 _ACEOF
3145 cat >>confdefs.h <<_ACEOF
3146 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3147 _ACEOF
3149 cat >>confdefs.h <<_ACEOF
3150 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3151 _ACEOF
3153 cat >>confdefs.h <<_ACEOF
3154 #define PACKAGE_STRING "$PACKAGE_STRING"
3155 _ACEOF
3157 cat >>confdefs.h <<_ACEOF
3158 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3159 _ACEOF
3161 cat >>confdefs.h <<_ACEOF
3162 #define PACKAGE_URL "$PACKAGE_URL"
3163 _ACEOF
3166 # Let the site file select an alternate cache file if it wants to.
3167 # Prefer an explicitly selected file to automatically selected ones.
3168 ac_site_file1=NONE
3169 ac_site_file2=NONE
3170 if test -n "$CONFIG_SITE"; then
3171 ac_site_file1=$CONFIG_SITE
3172 elif test "x$prefix" != xNONE; then
3173 ac_site_file1=$prefix/share/config.site
3174 ac_site_file2=$prefix/etc/config.site
3175 else
3176 ac_site_file1=$ac_default_prefix/share/config.site
3177 ac_site_file2=$ac_default_prefix/etc/config.site
3179 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3181 test "x$ac_site_file" = xNONE && continue
3182 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3184 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3185 sed 's/^/| /' "$ac_site_file" >&5
3186 . "$ac_site_file"
3188 done
3190 if test -r "$cache_file"; then
3191 # Some versions of bash will fail to source /dev/null (special files
3192 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3193 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3195 $as_echo "$as_me: loading cache $cache_file" >&6;}
3196 case $cache_file in
3197 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3198 *) . "./$cache_file";;
3199 esac
3201 else
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3203 $as_echo "$as_me: creating cache $cache_file" >&6;}
3204 >$cache_file
3207 as_fn_append ac_header_list " linux/version.h"
3208 as_fn_append ac_header_list " sys/systeminfo.h"
3209 as_fn_append ac_header_list " coff.h"
3210 as_fn_append ac_header_list " pty.h"
3211 as_fn_append ac_header_list " sys/vlimit.h"
3212 as_fn_append ac_header_list " sys/resource.h"
3213 as_fn_append ac_header_list " sys/utsname.h"
3214 as_fn_append ac_header_list " pwd.h"
3215 as_fn_append ac_header_list " utmp.h"
3216 as_fn_append ac_header_list " dirent.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 ,);;
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
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
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
3314 ## -------------------- ##
3315 ## Main body of script. ##
3316 ## -------------------- ##
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
3325 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
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
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
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.
3351 am__api_version='1.11'
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
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/* ) ;;
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.
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.
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
3414 done
3415 done
3417 esac
3419 done
3420 IFS=$as_save_IFS
3422 rm -rf conftest.one conftest.two conftest.dir
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
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3436 $as_echo "$INSTALL" >&6; }
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}'
3442 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3444 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
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='
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
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`
3475 rm -f conftest.file
3476 if test "$*" != "X $srcdir/configure conftest.file" \
3477 && test "$*" != "X conftest.file $srcdir/configure"; then
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
3487 test "$2" = conftest.file
3489 then
3490 # Ok.
3492 else
3493 as_fn_error "newly created file is older than distributed files!
3494 Check your system clock" "$LINENO" 5
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"`
3508 # expand $ac_aux_dir to an absolute path
3509 am_aux_dir=`cd $ac_aux_dir && pwd`
3511 if test x"${MISSING+set}" != xset; then
3512 case $am_aux_dir in
3513 *\ * | *\ *)
3514 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3516 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3517 esac
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;}
3528 if test x"${install_sh}" != xset; then
3529 case $am_aux_dir in
3530 *\ * | *\ *)
3531 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3533 install_sh="\${SHELL} $am_aux_dir/install-sh"
3534 esac
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
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
3564 done
3565 done
3566 IFS=$as_save_IFS
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; }
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
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
3604 done
3605 done
3606 IFS=$as_save_IFS
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; }
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
3630 else
3631 STRIP="$ac_cv_prog_STRIP"
3635 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
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
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
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"
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3677 $as_echo "$MKDIR_P" >&6; }
3680 mkdir_p="$MKDIR_P"
3681 case $mkdir_p in
3682 [\\/$]* | ?:[\\/]*) ;;
3683 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3684 esac
3686 for ac_prog in gawk mawk nawk awk
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
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
3709 done
3710 done
3711 IFS=$as_save_IFS
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; }
3725 test -n "$AWK" && break
3726 done
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;;
3745 eval ac_cv_prog_make_${ac_make}_set=no;;
3746 esac
3747 rm -f conftest.make
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}"
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=_
3766 rmdir .tst 2>/dev/null
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
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
3788 # Define the identity of the package.
3789 PACKAGE='emacs'
3790 VERSION='24.3.50'
3793 cat >>confdefs.h <<_ACEOF
3794 #define PACKAGE "$PACKAGE"
3795 _ACEOF
3798 cat >>confdefs.h <<_ACEOF
3799 #define VERSION "$VERSION"
3800 _ACEOF
3802 # Some tools Automake needs.
3804 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3807 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3810 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3813 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3816 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3818 # We need awk for the "check" target. The system "awk" is bad on
3819 # some platforms.
3820 # Always define AMTAR for backward compatibility.
3822 AMTAR=${AMTAR-"${am_missing_run}tar"}
3824 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
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'
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
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
3863 if test "$with_pop" = yes; then
3864 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
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
3876 if test "$with_kerberos" != no; then
3877 $as_echo "#define KERBEROS 1" >>confdefs.h
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
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
3896 $as_echo "#define KERBEROS5 1" >>confdefs.h
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
3908 if test "$with_hesiod" != no; then
3910 $as_echo "#define HESIOD 1" >>confdefs.h
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
3922 if test "$with_mmdf" != no; then
3924 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
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
3936 if test "$with_mail_unlink" != no; then
3938 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
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
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
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 ;;
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
3980 esac
3981 with_x_toolkit=$val
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
3994 if test "$with_wide_int" = yes; then
3996 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
4180 ## For the times when you want to build Emacs but don't have
4181 ## a suitable makeinfo, and can live without the manuals.
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
4191 ## Makefile.in needs the cache file name.
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.
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
4204 if test $with_compress_info = yes; then
4205 GZIP_INFO=yes
4206 else
4207 GZIP_INFO=
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;
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}"
4223 CRT_DIR=
4225 # Check whether --with-crt-dir was given.
4226 if test "${with_crt_dir+set}" = set; then :
4227 withval=$with_crt_dir;
4230 CRT_DIR="${with_crt_dir}"
4233 # Check whether --with-gameuser was given.
4234 if test "${with_gameuser+set}" = set; then :
4235 withval=$with_gameuser;
4238 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4239 && gameuser="${with_gameuser}"
4240 test "X$gameuser" = X && gameuser=games
4243 # Check whether --with-gnustep-conf was given.
4244 if test "${with_gnustep_conf+set}" = set; then :
4245 withval=$with_gnustep_conf;
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
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
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}
4271 # Check whether --enable-checking was given.
4272 if test "${enable_checking+set}" = set; then :
4273 enableval=$enable_checking; ac_checking_flags="${enableval}"
4276 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4277 for check in $ac_checking_flags
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"
4308 if test x$ac_enable_checking != x ; then
4310 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4313 if test x$ac_gc_check_stringbytes != x ; then
4315 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4318 if test x$ac_gc_check_string_overrun != x ; then
4320 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4323 if test x$ac_gc_check_string_free_list != x ; then
4325 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4328 if test x$ac_xmalloc_overrun != x ; then
4330 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4333 if test x$ac_gc_check_cons_list != x ; then
4335 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4338 if test x$ac_glyphs_debug != x ; then
4340 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
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
4348 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4355 # Check whether --enable-profiling was given.
4356 if test "${enable_profiling+set}" = set; then :
4357 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4360 if test x$ac_enable_profiling != x ; then
4361 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4362 else
4363 PROFILING_CFLAGS=
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
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 /* ) ;;
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)`"
4396 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4397 esac
4399 ### Canonicalize the configuration name.
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
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
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
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
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
4472 canonical=$host
4473 configuration=${host_alias-${build_alias-$host}}
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.
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.
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.
4493 opsys='' unported=no
4494 case "${canonical}" in
4496 ## GNU/Linux and similar ports
4497 *-*-linux* )
4498 opsys=gnu-linux
4501 ## FreeBSD ports
4502 *-*-freebsd* )
4503 opsys=freebsd
4506 ## FreeBSD kernel + glibc based userland
4507 *-*-kfreebsd*gnu* )
4508 opsys=gnu-kfreebsd
4511 ## NetBSD ports
4512 *-*-netbsd* )
4513 opsys=netbsd
4516 ## OpenBSD ports
4517 *-*-openbsd* )
4518 opsys=openbsd
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
4538 ## HP 9000 series 700 and 800, running HP/UX
4539 hppa*-hp-hpux10.2* )
4540 opsys=hpux10-20
4542 hppa*-hp-hpux1[1-9]* )
4543 opsys=hpux11
4544 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4547 ## IBM machines
4548 rs6000-ibm-aix4.[23]* )
4549 opsys=aix4-2
4551 powerpc-ibm-aix4.[23]* )
4552 opsys=aix4-2
4554 rs6000-ibm-aix[56]* )
4555 opsys=aix4-2
4557 powerpc-ibm-aix[56]* )
4558 opsys=aix4-2
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"
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"
4586 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4587 opsys=sol2-6
4588 emacs_check_sunpro_c=yes
4590 *-sunos5* | *-solaris* )
4591 opsys=sol2-10
4592 emacs_check_sunpro_c=yes
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
4604 *) ;;
4605 esac
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
4621 unported=yes
4623 esac
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 ;;
4635 unported=yes
4637 esac
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
4648 #### Choose a compiler.
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
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
4677 done
4678 done
4679 IFS=$as_save_IFS
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; }
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
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
4717 done
4718 done
4719 IFS=$as_save_IFS
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; }
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
4743 else
4744 CC="$ac_cv_prog_CC"
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
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
4770 done
4771 done
4772 IFS=$as_save_IFS
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; }
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
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
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
4815 done
4816 done
4817 IFS=$as_save_IFS
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+' '}$@"
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; }
4844 if test -z "$CC"; then
4845 if test -n "$ac_tool_prefix"; then
4846 for ac_prog in cl.exe
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
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
4869 done
4870 done
4871 IFS=$as_save_IFS
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; }
4885 test -n "$CC" && break
4886 done
4888 if test -z "$CC"; then
4889 ac_ct_CC=$CC
4890 for ac_prog in cl.exe
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
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
4913 done
4914 done
4915 IFS=$as_save_IFS
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; }
4929 test -n "$ac_ct_CC" && break
4930 done
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
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; }
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
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
4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h. */
4982 main ()
4986 return 0;
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[^ ]*//'`
4998 # The possible output files:
4999 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5001 ac_rmfiles=
5002 for ac_file in $ac_files
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
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 ''
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 )
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" : '[^.]*\(\..*\)'`
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;;
5049 break;;
5050 esac
5051 done
5052 test "$ac_cv_exeext" = no && ac_cv_exeext=
5054 else
5055 ac_file=''
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
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; }
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
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; }
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; }
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>
5123 main ()
5125 FILE *f = fopen ("conftest.out", "w");
5126 return ferror (f) || fclose (f) != 0;
5129 return 0;
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; }
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5174 $as_echo "$cross_compiling" >&6; }
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. */
5187 main ()
5191 return 0;
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
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; }
5223 rm -f conftest.$ac_cv_objext conftest.$ac_ext
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. */
5238 main ()
5240 #ifndef __GNUC__
5241 choke me
5242 #endif
5245 return 0;
5247 _ACEOF
5248 if ac_fn_c_try_compile "$LINENO"; then :
5249 ac_compiler_gnu=yes
5250 else
5251 ac_compiler_gnu=no
5253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5254 ac_cv_c_compiler_gnu=$ac_compiler_gnu
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=
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. */
5279 main ()
5283 return 0;
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. */
5294 main ()
5298 return 0;
5300 _ACEOF
5301 if ac_fn_c_try_compile "$LINENO"; then :
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. */
5310 main ()
5314 return 0;
5316 _ACEOF
5317 if ac_fn_c_try_compile "$LINENO"; then :
5318 ac_cv_prog_cc_g=yes
5320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5325 ac_c_werror_flag=$ac_save_c_werror_flag
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"
5337 else
5338 if test "$GCC" = yes; then
5339 CFLAGS="-O2"
5340 else
5341 CFLAGS=
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;
5364 return p[i];
5366 static char *f (char * (*g) (char **, int), char **p, ...)
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;
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];
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];
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;
5397 main ()
5399 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5401 return 0;
5403 _ACEOF
5404 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5405 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5407 CC="$ac_save_CC $ac_arg"
5408 if ac_fn_c_try_compile "$LINENO"; then :
5409 ac_cv_prog_cc_c89=$ac_arg
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
5418 # AC_CACHE_VAL
5419 case "x$ac_cv_prog_cc_c89" in
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; } ;;
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 :
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"
5442 ac_config_commands="$ac_config_commands depfiles"
5445 am_make=${MAKE-make}
5446 cat > confinc << 'END'
5447 am__doit:
5448 @echo this is the am__doit target
5449 .PHONY: am__doit
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
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
5476 esac
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5481 $as_echo "$_am_result" >&6; }
5482 rm -f confinc confmf
5484 # Check whether --enable-dependency-tracking was given.
5485 if test "${enable_dependency_tracking+set}" = set; then :
5486 enableval=$enable_dependency_tracking;
5489 if test "x$enable_dependency_tracking" != xno; then
5490 am_depcomp="$ac_aux_dir/depcomp"
5491 AMDEPBACKSLASH='\'
5493 if test "x$enable_dependency_tracking" != xno; then
5494 AMDEP_TRUE=
5495 AMDEP_FALSE='#'
5496 else
5497 AMDEP_TRUE='#'
5498 AMDEP_FALSE=
5503 depcc="$CC" am_compiler_list=
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
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`
5533 am__universal=false
5534 case " $depcc " in #(
5535 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5536 esac
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.
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
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
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
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=
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
5606 done
5608 cd ..
5609 rm -rf conftest.dir
5610 else
5611 am_cv_CC_dependencies_compiler_type=none
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
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=
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; }
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. */
5646 main ()
5650 return 0;
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.
5718 else
5719 # cc exists but doesn't like -o.
5720 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5724 else
5725 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5727 rm -f core conftest*
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; }
5737 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
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"
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"
5763 # Avoid gnulib's tests for O_NOATIME and O_NOFOLLOW, as we don't use them.
5765 # Avoid gnulib's threadlib module, as we do threads our own way.
5768 # Initialize gnulib right after choosing the compiler.
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=
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"
5788 ac_preproc_ok=false
5789 for ac_c_preproc_warn_flag in '' yes
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 :
5808 else
5809 # Broken: fails on valid input.
5810 continue
5812 rm -f conftest.err conftest.$ac_ext
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
5828 rm -f conftest.err conftest.$ac_ext
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
5837 done
5838 ac_cv_prog_CPP=$CPP
5841 CPP=$ac_cv_prog_CPP
5842 else
5843 ac_cv_prog_CPP=$CPP
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
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 :
5867 else
5868 # Broken: fails on valid input.
5869 continue
5871 rm -f conftest.err conftest.$ac_ext
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
5887 rm -f conftest.err conftest.$ac_ext
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 :
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; }
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
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
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=:;;
5931 ac_count=0
5932 $as_echo_n 0123456789 >"conftest.in"
5933 while :
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
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
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
5961 else
5962 ac_cv_path_GREP=$GREP
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"
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
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=:;;
5997 ac_count=0
5998 $as_echo_n 0123456789 >"conftest.in"
5999 while :
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
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
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
6027 else
6028 ac_cv_path_EGREP=$EGREP
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"
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
6046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047 /* end confdefs.h. */
6049 #ifdef __ACK__
6050 Amsterdam
6051 #endif
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
6060 rm -f conftest*
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'
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
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
6095 done
6096 done
6097 IFS=$as_save_IFS
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; }
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
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
6135 done
6136 done
6137 IFS=$as_save_IFS
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; }
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
6161 else
6162 AR="$ac_cv_prog_AR"
6165 if test -z "$ARFLAGS"; then
6166 ARFLAGS='cru'
6169 else
6170 if test -z "$ARFLAGS"; then
6171 ARFLAGS='cru'
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
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
6202 done
6203 done
6204 IFS=$as_save_IFS
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; }
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
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
6242 done
6243 done
6244 IFS=$as_save_IFS
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; }
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
6268 else
6269 RANLIB="$ac_cv_prog_RANLIB"
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>
6289 main ()
6293 return 0;
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
6301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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>
6309 _ACEOF
6310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6311 $EGREP "memchr" >/dev/null 2>&1; then :
6313 else
6314 ac_cv_header_stdc=no
6316 rm -f conftest*
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>
6326 _ACEOF
6327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6328 $EGREP "free" >/dev/null 2>&1; then :
6330 else
6331 ac_cv_header_stdc=no
6333 rm -f conftest*
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 :
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
6357 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6359 main ()
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;
6368 _ACEOF
6369 if ac_fn_c_try_run "$LINENO"; then :
6371 else
6372 ac_cv_header_stdc=no
6374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6375 conftest.$ac_objext conftest.beam conftest.$ac_ext
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
6384 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
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
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
6403 done
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=
6417 if test "$MINIX" = yes; then
6419 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6422 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6425 $as_echo "#define _MINIX 1" >>confdefs.h
6429 case "$host_os" in
6430 hpux*)
6432 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6435 esac
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. */
6446 # define __EXTENSIONS__ 1
6447 $ac_includes_default
6449 main ()
6453 return 0;
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
6461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
6468 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6470 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6472 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6474 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6476 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6485 # Check whether --enable-largefile was given.
6486 if test "${enable_largefile+set}" = set; then :
6487 enableval=$enable_largefile;
6490 if test "$enable_largefile" != no; then
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];
6515 main ()
6519 return 0;
6521 _ACEOF
6522 if ac_fn_c_try_compile "$LINENO"; then :
6523 break
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
6530 rm -f core conftest.err conftest.$ac_objext
6531 break
6532 done
6533 CC=$ac_save_CC
6534 rm -f conftest.$ac_ext
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
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];
6561 main ()
6565 return 0;
6567 _ACEOF
6568 if ac_fn_c_try_compile "$LINENO"; then :
6569 ac_cv_sys_file_offset_bits=no; break
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];
6585 main ()
6589 return 0;
6591 _ACEOF
6592 if ac_fn_c_try_compile "$LINENO"; then :
6593 ac_cv_sys_file_offset_bits=64; break
6595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6596 ac_cv_sys_file_offset_bits=unknown
6597 break
6598 done
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) ;;
6605 cat >>confdefs.h <<_ACEOF
6606 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6607 _ACEOF
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];
6630 main ()
6634 return 0;
6636 _ACEOF
6637 if ac_fn_c_try_compile "$LINENO"; then :
6638 ac_cv_sys_large_files=no; break
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];
6654 main ()
6658 return 0;
6660 _ACEOF
6661 if ac_fn_c_try_compile "$LINENO"; then :
6662 ac_cv_sys_large_files=1; break
6664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6665 ac_cv_sys_large_files=unknown
6666 break
6667 done
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) ;;
6674 cat >>confdefs.h <<_ACEOF
6675 #define _LARGE_FILES $ac_cv_sys_large_files
6676 _ACEOF
6678 esac
6679 rm -rf conftest*
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>
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)
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);
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;
6733 struct incomplete_array
6735 int datasize;
6736 double data[];
6739 struct named_init {
6740 int number;
6741 const wchar_t *name;
6742 double average;
6745 typedef const char *ccp;
6747 static inline int
6748 test_restrict (ccp restrict text)
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;
6758 // Check varargs and va_copy.
6759 static void
6760 test_varargs (const char *format, ...)
6762 va_list args;
6763 va_start (args, format);
6764 va_list args_copy;
6765 va_copy (args_copy, args);
6767 const char *str;
6768 int number;
6769 float fnumber;
6771 while (*format)
6773 switch (*format++)
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;
6788 va_end (args_copy);
6789 va_end (args);
6793 main ()
6796 // Check bool.
6797 _Bool success = false;
6799 // Check restrict.
6800 if (test_restrict ("String literal") == 0)
6801 success = true;
6802 char *restrict newvar = "Another string";
6804 // Check varargs.
6805 test_varargs ("s, d' f .", "string", 65, 34.234);
6806 test_varargs_macros ();
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;
6815 // Check named initializers.
6816 struct named_init ni = {
6817 .number = 34,
6818 .name = L"Test wide string",
6819 .average = 543.34343,
6822 ni.number = 58;
6824 int dynamic_array[ni.number];
6825 dynamic_array[ni.number - 1] = 543;
6827 // work around unused variable warnings
6828 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6829 || dynamic_array[ni.number - 1] != 543);
6832 return 0;
6834 _ACEOF
6835 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6837 CC="$ac_save_CC $ac_arg"
6838 if ac_fn_c_try_compile "$LINENO"; then :
6839 ac_cv_prog_cc_c99=$ac_arg
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
6848 # AC_CACHE_VAL
6849 case "x$ac_cv_prog_cc_c99" in
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; } ;;
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;
6884 return p[i];
6886 static char *f (char * (*g) (char **, int), char **p, ...)
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;
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];
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];
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;
6917 main ()
6919 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6921 return 0;
6923 _ACEOF
6924 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6925 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6927 CC="$ac_save_CC $ac_arg"
6928 if ac_fn_c_try_compile "$LINENO"; then :
6929 ac_cv_prog_cc_c89=$ac_arg
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
6938 # AC_CACHE_VAL
6939 case "x$ac_cv_prog_cc_c89" in
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; } ;;
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
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
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
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:
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:
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:
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:
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';;
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. */
7095 main ()
7099 return 0;
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
7107 rm -f core conftest.err conftest.$ac_objext \
7108 conftest$ac_exeext conftest.$ac_ext
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
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
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"
7146 old_CFLAGS=$CFLAGS
7147 CFLAGS="$CFLAGS $LTO"
7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h. */
7152 main ()
7156 return 0;
7158 _ACEOF
7159 if ac_fn_c_try_compile "$LINENO"; then :
7160 ac_lto_supported=yes
7161 else
7162 ac_lto_supported=no
7164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7165 CFLAGS="$old_CFLAGS"
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"
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.
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 '
7189 # This, $nw, is the list of warnings we disable.
7192 case $with_x_toolkit in
7193 lucid | athena | motif)
7194 # Old toolkits mishandle 'const'.
7195 nw="$nw -Wwrite-strings"
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
7204 gl_save_compiler_FLAGS="$CFLAGS"
7205 as_fn_append CFLAGS " -Werror"
7206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7207 /* end confdefs.h. */
7210 main ()
7214 return 0;
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
7222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7223 CFLAGS="$gl_save_compiler_FLAGS"
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"
7234 esac
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 -Wsync-nand" # irrelevant here, and provokes ObjC warning
7261 nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7263 # Emacs doesn't care about shadowing; see
7264 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7265 nw="$nw -Wshadow"
7267 # The following lines should be removable at some point.
7268 nw="$nw -Wstack-protector"
7269 nw="$nw -Wstrict-overflow"
7270 nw="$nw -Wsuggest-attribute=pure"
7274 if test -n "$GCC"; then
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7277 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7278 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7279 $as_echo_n "(cached) " >&6
7280 else
7282 gl_save_CFLAGS="$CFLAGS"
7283 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285 /* end confdefs.h. */
7288 main ()
7292 return 0;
7294 _ACEOF
7295 if ac_fn_c_try_compile "$LINENO"; then :
7296 gl_cv_cc_nomfi_supported=yes
7297 else
7298 gl_cv_cc_nomfi_supported=no
7300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7301 CFLAGS="$gl_save_CFLAGS"
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7305 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7307 if test "$gl_cv_cc_nomfi_supported" = yes; then
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7309 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7310 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7311 $as_echo_n "(cached) " >&6
7312 else
7314 gl_save_CFLAGS="$CFLAGS"
7315 CFLAGS="$CFLAGS -W -Werror"
7316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317 /* end confdefs.h. */
7318 void f (void)
7320 typedef struct { int a; int b; } s_t;
7321 s_t s1 = { 0, };
7325 main ()
7329 return 0;
7331 _ACEOF
7332 if ac_fn_c_try_compile "$LINENO"; then :
7333 gl_cv_cc_nomfi_needed=no
7334 else
7335 gl_cv_cc_nomfi_needed=yes
7337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7338 CFLAGS="$gl_save_CFLAGS"
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7343 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7347 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7348 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7349 $as_echo_n "(cached) " >&6
7350 else
7352 gl_save_CFLAGS="$CFLAGS"
7353 CFLAGS="$CFLAGS -Werror -Wuninitialized"
7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355 /* end confdefs.h. */
7358 main ()
7362 return 0;
7364 _ACEOF
7365 if ac_fn_c_try_compile "$LINENO"; then :
7366 gl_cv_cc_uninitialized_supported=yes
7367 else
7368 gl_cv_cc_uninitialized_supported=no
7370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7371 CFLAGS="$gl_save_CFLAGS"
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7375 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7379 # List all gcc warning categories.
7380 gl_manywarn_set=
7381 for gl_manywarn_item in \
7382 -W \
7383 -Wabi \
7384 -Waddress \
7385 -Wall \
7386 -Warray-bounds \
7387 -Wattributes \
7388 -Wbad-function-cast \
7389 -Wbuiltin-macro-redefined \
7390 -Wcast-align \
7391 -Wchar-subscripts \
7392 -Wclobbered \
7393 -Wcomment \
7394 -Wcomments \
7395 -Wcoverage-mismatch \
7396 -Wcpp \
7397 -Wdeprecated \
7398 -Wdeprecated-declarations \
7399 -Wdisabled-optimization \
7400 -Wdiv-by-zero \
7401 -Wdouble-promotion \
7402 -Wempty-body \
7403 -Wendif-labels \
7404 -Wenum-compare \
7405 -Wextra \
7406 -Wformat-contains-nul \
7407 -Wformat-extra-args \
7408 -Wformat-nonliteral \
7409 -Wformat-security \
7410 -Wformat-y2k \
7411 -Wformat-zero-length \
7412 -Wformat=2 \
7413 -Wfree-nonheap-object \
7414 -Wignored-qualifiers \
7415 -Wimplicit \
7416 -Wimplicit-function-declaration \
7417 -Wimplicit-int \
7418 -Winit-self \
7419 -Winline \
7420 -Wint-to-pointer-cast \
7421 -Winvalid-memory-model \
7422 -Winvalid-pch \
7423 -Wjump-misses-init \
7424 -Wlogical-op \
7425 -Wmain \
7426 -Wmaybe-uninitialized \
7427 -Wmissing-braces \
7428 -Wmissing-declarations \
7429 -Wmissing-field-initializers \
7430 -Wmissing-format-attribute \
7431 -Wmissing-include-dirs \
7432 -Wmissing-noreturn \
7433 -Wmissing-parameter-type \
7434 -Wmissing-prototypes \
7435 -Wmudflap \
7436 -Wmultichar \
7437 -Wnarrowing \
7438 -Wnested-externs \
7439 -Wnonnull \
7440 -Wnormalized=nfc \
7441 -Wold-style-declaration \
7442 -Wold-style-definition \
7443 -Woverflow \
7444 -Woverlength-strings \
7445 -Woverride-init \
7446 -Wpacked \
7447 -Wpacked-bitfield-compat \
7448 -Wparentheses \
7449 -Wpointer-arith \
7450 -Wpointer-sign \
7451 -Wpointer-to-int-cast \
7452 -Wpragmas \
7453 -Wreturn-type \
7454 -Wsequence-point \
7455 -Wshadow \
7456 -Wsizeof-pointer-memaccess \
7457 -Wstack-protector \
7458 -Wstrict-aliasing \
7459 -Wstrict-overflow \
7460 -Wstrict-prototypes \
7461 -Wsuggest-attribute=const \
7462 -Wsuggest-attribute=format \
7463 -Wsuggest-attribute=noreturn \
7464 -Wsuggest-attribute=pure \
7465 -Wswitch \
7466 -Wswitch-default \
7467 -Wsync-nand \
7468 -Wsystem-headers \
7469 -Wtrampolines \
7470 -Wtrigraphs \
7471 -Wtype-limits \
7472 -Wuninitialized \
7473 -Wunknown-pragmas \
7474 -Wunreachable-code \
7475 -Wunsafe-loop-optimizations \
7476 -Wunused \
7477 -Wunused-but-set-parameter \
7478 -Wunused-but-set-variable \
7479 -Wunused-function \
7480 -Wunused-label \
7481 -Wunused-local-typedefs \
7482 -Wunused-macros \
7483 -Wunused-parameter \
7484 -Wunused-result \
7485 -Wunused-value \
7486 -Wunused-variable \
7487 -Wvarargs \
7488 -Wvariadic-macros \
7489 -Wvector-operation-performance \
7490 -Wvla \
7491 -Wvolatile-register-var \
7492 -Wwrite-strings \
7494 ; do
7495 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7496 done
7498 # Disable specific options as needed.
7499 if test "$gl_cv_cc_nomfi_needed" = yes; then
7500 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7503 if test "$gl_cv_cc_uninitialized_supported" = no; then
7504 gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
7507 ws=$gl_manywarn_set
7510 gl_warn_set=
7511 set x $ws; shift
7512 for gl_warn_item
7514 case " $nw " in
7515 *" $gl_warn_item "*)
7518 gl_warn_set="$gl_warn_set $gl_warn_item"
7520 esac
7521 done
7522 ws=$gl_warn_set
7524 for w in $ws; do
7525 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7527 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7528 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7529 $as_echo_n "(cached) " >&6
7530 else
7532 gl_save_compiler_FLAGS="$CFLAGS"
7533 as_fn_append CFLAGS " $w"
7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535 /* end confdefs.h. */
7538 main ()
7542 return 0;
7544 _ACEOF
7545 if ac_fn_c_try_compile "$LINENO"; then :
7546 eval "$as_gl_Warn=yes"
7547 else
7548 eval "$as_gl_Warn=no"
7550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7551 CFLAGS="$gl_save_compiler_FLAGS"
7554 eval ac_res=\$$as_gl_Warn
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7556 $as_echo "$ac_res" >&6; }
7557 eval as_val=\$$as_gl_Warn
7558 if test "x$as_val" = x""yes; then :
7559 as_fn_append WARN_CFLAGS " $w"
7563 done
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7565 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7566 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7567 $as_echo_n "(cached) " >&6
7568 else
7570 gl_save_compiler_FLAGS="$CFLAGS"
7571 as_fn_append CFLAGS " -Wno-missing-field-initializers"
7572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7573 /* end confdefs.h. */
7576 main ()
7580 return 0;
7582 _ACEOF
7583 if ac_fn_c_try_compile "$LINENO"; then :
7584 gl_cv_warn_c__Wno_missing_field_initializers=yes
7585 else
7586 gl_cv_warn_c__Wno_missing_field_initializers=no
7588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7589 CFLAGS="$gl_save_compiler_FLAGS"
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7593 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7594 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7595 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7598 # We need this one
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7600 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7601 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7602 $as_echo_n "(cached) " >&6
7603 else
7605 gl_save_compiler_FLAGS="$CFLAGS"
7606 as_fn_append CFLAGS " -Wno-sign-compare"
7607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608 /* end confdefs.h. */
7611 main ()
7615 return 0;
7617 _ACEOF
7618 if ac_fn_c_try_compile "$LINENO"; then :
7619 gl_cv_warn_c__Wno_sign_compare=yes
7620 else
7621 gl_cv_warn_c__Wno_sign_compare=no
7623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7624 CFLAGS="$gl_save_compiler_FLAGS"
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7628 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7629 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7630 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7633 # Too many warnings for now
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7635 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7636 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7637 $as_echo_n "(cached) " >&6
7638 else
7640 gl_save_compiler_FLAGS="$CFLAGS"
7641 as_fn_append CFLAGS " -Wno-type-limits"
7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643 /* end confdefs.h. */
7646 main ()
7650 return 0;
7652 _ACEOF
7653 if ac_fn_c_try_compile "$LINENO"; then :
7654 gl_cv_warn_c__Wno_type_limits=yes
7655 else
7656 gl_cv_warn_c__Wno_type_limits=no
7658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7659 CFLAGS="$gl_save_compiler_FLAGS"
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7663 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7664 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7665 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7668 # Too many warnings for now
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7670 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7671 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7672 $as_echo_n "(cached) " >&6
7673 else
7675 gl_save_compiler_FLAGS="$CFLAGS"
7676 as_fn_append CFLAGS " -Wno-switch"
7677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7678 /* end confdefs.h. */
7681 main ()
7685 return 0;
7687 _ACEOF
7688 if ac_fn_c_try_compile "$LINENO"; then :
7689 gl_cv_warn_c__Wno_switch=yes
7690 else
7691 gl_cv_warn_c__Wno_switch=no
7693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7694 CFLAGS="$gl_save_compiler_FLAGS"
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7698 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7699 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7700 as_fn_append WARN_CFLAGS " -Wno-switch"
7703 # Too many warnings for now
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7705 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7706 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7707 $as_echo_n "(cached) " >&6
7708 else
7710 gl_save_compiler_FLAGS="$CFLAGS"
7711 as_fn_append CFLAGS " -Wno-unused-parameter"
7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713 /* end confdefs.h. */
7716 main ()
7720 return 0;
7722 _ACEOF
7723 if ac_fn_c_try_compile "$LINENO"; then :
7724 gl_cv_warn_c__Wno_unused_parameter=yes
7725 else
7726 gl_cv_warn_c__Wno_unused_parameter=no
7728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7729 CFLAGS="$gl_save_compiler_FLAGS"
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7733 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7734 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7735 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7738 # Too many warnings for now
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7740 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7741 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7742 $as_echo_n "(cached) " >&6
7743 else
7745 gl_save_compiler_FLAGS="$CFLAGS"
7746 as_fn_append CFLAGS " -Wno-format-nonliteral"
7747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7748 /* end confdefs.h. */
7751 main ()
7755 return 0;
7757 _ACEOF
7758 if ac_fn_c_try_compile "$LINENO"; then :
7759 gl_cv_warn_c__Wno_format_nonliteral=yes
7760 else
7761 gl_cv_warn_c__Wno_format_nonliteral=no
7763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7764 CFLAGS="$gl_save_compiler_FLAGS"
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7768 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7769 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7770 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7775 # In spite of excluding -Wlogical-op above, it is enabled, as of
7776 # gcc 4.5.0 20090517.
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7778 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7779 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7780 $as_echo_n "(cached) " >&6
7781 else
7783 gl_save_compiler_FLAGS="$CFLAGS"
7784 as_fn_append CFLAGS " -Wno-logical-op"
7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786 /* end confdefs.h. */
7789 main ()
7793 return 0;
7795 _ACEOF
7796 if ac_fn_c_try_compile "$LINENO"; then :
7797 gl_cv_warn_c__Wno_logical_op=yes
7798 else
7799 gl_cv_warn_c__Wno_logical_op=no
7801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7802 CFLAGS="$gl_save_compiler_FLAGS"
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7806 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7807 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
7808 as_fn_append WARN_CFLAGS " -Wno-logical-op"
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7814 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7815 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7816 $as_echo_n "(cached) " >&6
7817 else
7819 gl_save_compiler_FLAGS="$CFLAGS"
7820 as_fn_append CFLAGS " -fdiagnostics-show-option"
7821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7822 /* end confdefs.h. */
7825 main ()
7829 return 0;
7831 _ACEOF
7832 if ac_fn_c_try_compile "$LINENO"; then :
7833 gl_cv_warn_c__fdiagnostics_show_option=yes
7834 else
7835 gl_cv_warn_c__fdiagnostics_show_option=no
7837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7838 CFLAGS="$gl_save_compiler_FLAGS"
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7842 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7843 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
7844 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7849 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7850 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7851 $as_echo_n "(cached) " >&6
7852 else
7854 gl_save_compiler_FLAGS="$CFLAGS"
7855 as_fn_append CFLAGS " -funit-at-a-time"
7856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7857 /* end confdefs.h. */
7860 main ()
7864 return 0;
7866 _ACEOF
7867 if ac_fn_c_try_compile "$LINENO"; then :
7868 gl_cv_warn_c__funit_at_a_time=yes
7869 else
7870 gl_cv_warn_c__funit_at_a_time=no
7872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7873 CFLAGS="$gl_save_compiler_FLAGS"
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7877 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7878 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
7879 as_fn_append WARN_CFLAGS " -funit-at-a-time"
7885 $as_echo "#define lint 1" >>confdefs.h
7889 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7892 # We use a slightly smaller set of warning options for lib/.
7893 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7895 nw="$nw -Wunused-macros"
7898 gl_warn_set=
7899 set x $WARN_CFLAGS; shift
7900 for gl_warn_item
7902 case " $nw " in
7903 *" $gl_warn_item "*)
7906 gl_warn_set="$gl_warn_set $gl_warn_item"
7908 esac
7909 done
7910 GNULIB_WARN_CFLAGS=$gl_warn_set
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7918 $as_echo_n "checking whether ln -s works... " >&6; }
7919 LN_S=$as_ln_s
7920 if test "$LN_S" = "ln -s"; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7922 $as_echo "yes" >&6; }
7923 else
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7925 $as_echo "no, using $LN_S" >&6; }
7929 # Extract the first word of "install-info", so it can be a program name with args.
7930 set dummy install-info; ac_word=$2
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7932 $as_echo_n "checking for $ac_word... " >&6; }
7933 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7934 $as_echo_n "(cached) " >&6
7935 else
7936 case $INSTALL_INFO in
7937 [\\/]* | ?:[\\/]*)
7938 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
7944 IFS=$as_save_IFS
7945 test -z "$as_dir" && as_dir=.
7946 for ac_exec_ext in '' $ac_executable_extensions; do
7947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7948 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7950 break 2
7952 done
7953 done
7954 IFS=$as_save_IFS
7956 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7958 esac
7960 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7961 if test -n "$INSTALL_INFO"; then
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7963 $as_echo "$INSTALL_INFO" >&6; }
7964 else
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966 $as_echo "no" >&6; }
7970 # Extract the first word of "gzip", so it can be a program name with args.
7971 set dummy gzip; ac_word=$2
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973 $as_echo_n "checking for $ac_word... " >&6; }
7974 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7975 $as_echo_n "(cached) " >&6
7976 else
7977 case $GZIP_PROG in
7978 [\\/]* | ?:[\\/]*)
7979 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983 for as_dir in $PATH
7985 IFS=$as_save_IFS
7986 test -z "$as_dir" && as_dir=.
7987 for ac_exec_ext in '' $ac_executable_extensions; do
7988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7989 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7991 break 2
7993 done
7994 done
7995 IFS=$as_save_IFS
7998 esac
8000 GZIP_PROG=$ac_cv_path_GZIP_PROG
8001 if test -n "$GZIP_PROG"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8003 $as_echo "$GZIP_PROG" >&6; }
8004 else
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006 $as_echo "no" >&6; }
8011 if test $opsys = gnu-linux; then
8012 # Extract the first word of "paxctl", so it can be a program name with args.
8013 set dummy paxctl; ac_word=$2
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8015 $as_echo_n "checking for $ac_word... " >&6; }
8016 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8017 $as_echo_n "(cached) " >&6
8018 else
8019 case $PAXCTL in
8020 [\\/]* | ?:[\\/]*)
8021 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
8027 IFS=$as_save_IFS
8028 test -z "$as_dir" && as_dir=.
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8031 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
8032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8033 break 2
8035 done
8036 done
8037 IFS=$as_save_IFS
8040 esac
8042 PAXCTL=$ac_cv_path_PAXCTL
8043 if test -n "$PAXCTL"; then
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8045 $as_echo "$PAXCTL" >&6; }
8046 else
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048 $as_echo "no" >&6; }
8052 if test "X$PAXCTL" != X; then
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8054 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056 /* end confdefs.h. */
8059 main ()
8063 return 0;
8065 _ACEOF
8066 if ac_fn_c_try_link "$LINENO"; then :
8067 if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8068 $as_echo "yes" >&6; }
8069 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070 $as_echo "no" >&6; }; PAXCTL=""; fi
8072 rm -f core conftest.err conftest.$ac_objext \
8073 conftest$ac_exeext conftest.$ac_ext
8077 ## Need makeinfo >= 4.7 (?) to build the manuals.
8078 # Extract the first word of "makeinfo", so it can be a program name with args.
8079 set dummy makeinfo; ac_word=$2
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8081 $as_echo_n "checking for $ac_word... " >&6; }
8082 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8083 $as_echo_n "(cached) " >&6
8084 else
8085 case $MAKEINFO in
8086 [\\/]* | ?:[\\/]*)
8087 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
8090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8091 for as_dir in $PATH
8093 IFS=$as_save_IFS
8094 test -z "$as_dir" && as_dir=.
8095 for ac_exec_ext in '' $ac_executable_extensions; do
8096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8097 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
8098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8099 break 2
8101 done
8102 done
8103 IFS=$as_save_IFS
8105 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
8107 esac
8109 MAKEINFO=$ac_cv_path_MAKEINFO
8110 if test -n "$MAKEINFO"; then
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8112 $as_echo "$MAKEINFO" >&6; }
8113 else
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8115 $as_echo "no" >&6; }
8119 if test "$MAKEINFO" != "no" && \
8120 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
8121 MAKEINFO=no
8124 ## Makeinfo is unusual. For a released Emacs, the manuals are
8125 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8126 ## therefore in the category of "special tools" not normally required, which
8127 ## configure does not have to check for (eg autoconf itself).
8128 ## In a Bazaar checkout on the other hand, the manuals are not included.
8129 ## So makeinfo is a requirement to build from Bazaar, and configure
8130 ## should test for it as it does for any other build requirement.
8131 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8132 ## with pre-built manuals, from a Bazaar checkout.
8133 HAVE_MAKEINFO=yes
8135 if test "$MAKEINFO" = "no"; then
8136 MAKEINFO=makeinfo
8137 if test "x${with_makeinfo}" = "xno"; then
8138 HAVE_MAKEINFO=no
8139 elif test ! -e $srcdir/info/emacs; then
8140 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
8141 source tree does not seem to have pre-built manuals in the \`info' directory.
8142 Either install a suitable version of makeinfo, or re-run configure
8143 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8148 INFO_EXT=.info
8149 INFO_OPTS=--no-split
8154 if test x$GCC = xyes; then
8155 test "x$GCC_LINK_TEST_OPTIONS" != x && \
8156 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8157 else
8158 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8159 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8163 late_LDFLAGS=$LDFLAGS
8164 if test x$GCC = xyes; then
8165 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
8166 else
8167 LDFLAGS="$LDFLAGS -znocombreloc"
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8171 $as_echo_n "checking for -znocombreloc... " >&6; }
8172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8173 /* end confdefs.h. */
8176 main ()
8180 return 0;
8182 _ACEOF
8183 if ac_fn_c_try_link "$LINENO"; then :
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8185 $as_echo "yes" >&6; }
8186 else
8187 LDFLAGS=$late_LDFLAGS
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189 $as_echo "no" >&6; }
8191 rm -f core conftest.err conftest.$ac_objext \
8192 conftest$ac_exeext conftest.$ac_ext
8195 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8196 case "$opsys" in
8197 your-opsys-here) CANNOT_DUMP=yes ;;
8198 esac
8200 test "$CANNOT_DUMP" = "yes" && \
8202 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8208 UNEXEC_OBJ=unexelf.o
8209 case "$opsys" in
8210 # MSDOS uses unexcoff.o
8211 # MSWindows uses unexw32.o
8212 aix4-2)
8213 UNEXEC_OBJ=unexaix.o
8215 cygwin)
8216 UNEXEC_OBJ=unexcw.o
8218 darwin)
8219 UNEXEC_OBJ=unexmacosx.o
8221 hpux10-20 | hpux11)
8222 UNEXEC_OBJ=unexhp9k800.o
8224 sol2-10)
8225 # Use the Solaris dldump() function, called from unexsol.c, to dump
8226 # emacs, instead of the generic ELF dump code found in unexelf.c.
8227 # The resulting binary has a complete symbol table, and is better
8228 # for debugging and other observability tools (debuggers, pstack, etc).
8230 # If you encounter a problem using dldump(), please consider sending
8231 # a message to the OpenSolaris tools-linking mailing list:
8232 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8234 # It is likely that dldump() works with older Solaris too, but this has
8235 # not been tested, so for now this change is for Solaris 10 or newer.
8236 UNEXEC_OBJ=unexsol.o
8238 esac
8240 LD_SWITCH_SYSTEM=
8241 case "$opsys" in
8242 freebsd)
8243 ## Let `ld' find image libs and similar things in /usr/local/lib.
8244 ## The system compiler, GCC, has apparently been modified to not
8245 ## look there, contrary to what a stock GCC would do.
8246 ### It's not our place to do this. See bug#10313#17.
8247 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8251 gnu-linux)
8252 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8253 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8256 netbsd)
8257 ### It's not our place to do this. See bug#10313#17.
8258 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8262 openbsd)
8263 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8264 ## otherwise Emacs dumps core on elf systems.
8265 LD_SWITCH_SYSTEM="-Z"
8267 esac
8270 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8272 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8273 ## which has not been defined yet. When this was handled with cpp,
8274 ## it was expanded to null when configure sourced the s/*.h file.
8275 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8276 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8277 ## (or somesuch), but because it is supposed to go at the _front_
8278 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8279 ## Compare with the gnu-linux case below, which added to the end
8280 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8281 ## LD_SWITCH_SYSTEM_TEMACS.
8282 case "$opsys" in
8283 netbsd|openbsd)
8284 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8285 esac
8288 C_SWITCH_MACHINE=
8289 case $canonical in
8290 alpha*)
8291 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8292 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8296 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8297 ## With ELF, make sure that all common symbols get allocated to in the
8298 ## data section. Otherwise, the dump of temacs may miss variables in
8299 ## the shared library that have been initialized. For example, with
8300 ## GNU libc, __malloc_initialized would normally be resolved to the
8301 ## shared library's .bss section, which is fatal.
8302 if test "x$GCC" = "xyes"; then
8303 C_SWITCH_MACHINE="-fno-common"
8304 else
8305 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8307 else
8308 UNEXEC_OBJ=unexalpha.o
8311 esac
8316 C_SWITCH_SYSTEM=
8317 ## Some programs in src produce warnings saying certain subprograms
8318 ## are too complex and need a MAXMEM value greater than 2000 for
8319 ## additional optimization. --nils@exp-math.uni-essen.de
8320 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8321 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8322 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8323 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8327 LIBS_SYSTEM=
8328 case "$opsys" in
8329 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8330 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8332 freebsd) LIBS_SYSTEM="-lutil" ;;
8334 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8336 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8338 ## Motif needs -lgen.
8339 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8340 esac
8344 ### Make sure subsequent tests use flags consistent with the build flags.
8346 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8347 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8348 else
8349 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8352 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8354 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8358 LIB_MATH=-lm
8359 LIB_STANDARD=
8360 START_FILES=
8361 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8363 case $opsys in
8364 cygwin )
8365 LIB_MATH=
8366 START_FILES='pre-crt0.o'
8368 darwin )
8369 ## Adding -lm confuses the dynamic linker, so omit it.
8370 LIB_MATH=
8371 START_FILES='pre-crt0.o'
8373 freebsd )
8374 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8375 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8376 SYSTEM_TYPE=berkeley-unix
8378 gnu-linux | gnu-kfreebsd )
8379 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8380 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8382 hpux10-20 | hpux11 )
8383 LIB_STANDARD=-lc
8384 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8386 netbsd | openbsd )
8387 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8388 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8389 SYSTEM_TYPE=berkeley-unix
8392 sol2* | unixware )
8393 SYSTEM_TYPE=usg-unix-v
8396 esac
8401 cat >>confdefs.h <<_ACEOF
8402 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8403 _ACEOF
8406 crt_files=
8408 for file in x $LIB_STANDARD $START_FILES; do
8409 case "$file" in
8410 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8411 esac
8412 done
8414 if test "x$crt_files" != x; then
8416 ## If user specified a crt-dir, use that unconditionally.
8417 crt_gcc=no
8419 if test "X$CRT_DIR" = "X"; then
8421 CRT_DIR=/usr/lib # default
8423 case "$canonical" in
8424 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8425 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8426 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8427 ## For anything else (eg /usr/lib32), it is up the user to specify
8428 ## the location (bug#5655).
8429 ## Test for crtn.o, not just the directory, because sometimes the
8430 ## directory exists but does not have the relevant files (bug#1287).
8431 ## FIXME better to test for binary compatibility somehow.
8432 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8435 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8436 esac
8438 case "$opsys" in
8439 hpux10-20) CRT_DIR=/lib ;;
8440 esac
8442 test "x${GCC}" = xyes && crt_gcc=yes
8444 fi # CRT_DIR = ""
8446 crt_missing=
8448 for file in $crt_files; do
8450 ## If we're using gcc, try to determine it automatically by asking
8451 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8452 ## system-dependent default from above.]
8453 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8455 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8456 case "$crt_file" in
8457 */*)
8458 CRT_DIR=`$as_dirname -- "$crt_file" ||
8459 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8460 X"$crt_file" : 'X\(//\)[^/]' \| \
8461 X"$crt_file" : 'X\(//\)$' \| \
8462 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8463 $as_echo X"$crt_file" |
8464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8465 s//\1/
8468 /^X\(\/\/\)[^/].*/{
8469 s//\1/
8472 /^X\(\/\/\)$/{
8473 s//\1/
8476 /^X\(\/\).*/{
8477 s//\1/
8480 s/.*/./; q'`
8482 esac
8485 crt_gcc=no
8487 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8488 done # $crt_files
8490 test "x$crt_missing" = x || \
8491 as_fn_error "Required file(s) not found:$crt_missing
8492 Try using the --with-crt-dir option." "$LINENO" 5
8494 fi # crt_files != ""
8498 case $opsys in
8499 netbsd | openbsd )
8500 if test -f $CRT_DIR/crti.o; then
8502 test -f $CRT_DIR/crtn.o || \
8503 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8505 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8506 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8509 esac
8512 pre_PKG_CONFIG_CFLAGS=$CFLAGS
8513 pre_PKG_CONFIG_LIBS=$LIBS
8515 # Extract the first word of "pkg-config", so it can be a program name with args.
8516 set dummy pkg-config; ac_word=$2
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8518 $as_echo_n "checking for $ac_word... " >&6; }
8519 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8520 $as_echo_n "(cached) " >&6
8521 else
8522 case $PKG_CONFIG in
8523 [\\/]* | ?:[\\/]*)
8524 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8528 for as_dir in $PATH
8530 IFS=$as_save_IFS
8531 test -z "$as_dir" && as_dir=.
8532 for ac_exec_ext in '' $ac_executable_extensions; do
8533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8534 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8536 break 2
8538 done
8539 done
8540 IFS=$as_save_IFS
8542 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8544 esac
8546 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8547 if test -n "$PKG_CONFIG"; then
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8549 $as_echo "$PKG_CONFIG" >&6; }
8550 else
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8552 $as_echo "no" >&6; }
8560 if test "${with_sound}" != "no"; then
8561 # Sound support for GNU/Linux and the free BSDs.
8562 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8563 do :
8564 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8565 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8566 eval as_val=\$$as_ac_Header
8567 if test "x$as_val" = x""yes; then :
8568 cat >>confdefs.h <<_ACEOF
8569 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8570 _ACEOF
8571 have_sound_header=yes
8574 done
8576 # Emulation library used on NetBSD.
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8578 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8579 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8580 $as_echo_n "(cached) " >&6
8581 else
8582 ac_check_lib_save_LIBS=$LIBS
8583 LIBS="-lossaudio $LIBS"
8584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8585 /* end confdefs.h. */
8587 /* Override any GCC internal prototype to avoid an error.
8588 Use char because int might match the return type of a GCC
8589 builtin and then its argument prototype would still apply. */
8590 #ifdef __cplusplus
8591 extern "C"
8592 #endif
8593 char _oss_ioctl ();
8595 main ()
8597 return _oss_ioctl ();
8599 return 0;
8601 _ACEOF
8602 if ac_fn_c_try_link "$LINENO"; then :
8603 ac_cv_lib_ossaudio__oss_ioctl=yes
8604 else
8605 ac_cv_lib_ossaudio__oss_ioctl=no
8607 rm -f core conftest.err conftest.$ac_objext \
8608 conftest$ac_exeext conftest.$ac_ext
8609 LIBS=$ac_check_lib_save_LIBS
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8612 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8613 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8614 LIBSOUND=-lossaudio
8615 else
8616 LIBSOUND=
8621 ALSA_REQUIRED=1.0.0
8622 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8624 succeeded=no
8626 if test "$PKG_CONFIG" = "no" ; then
8627 HAVE_ALSA=no
8628 else
8629 PKG_CONFIG_MIN_VERSION=0.9.0
8630 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8632 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8634 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8635 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8636 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8637 edit_cflags="
8638 s,///*,/,g
8639 s/^/ /
8640 s/ -I/ $isystem/g
8641 s/^ //
8643 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8644 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8646 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8647 succeeded=yes
8648 else
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8650 $as_echo "no" >&6; }
8651 ALSA_CFLAGS=""
8652 ALSA_LIBS=""
8653 ## If we have a custom action on failure, don't print errors, but
8654 ## do set a variable so people can do so. Do it in a subshell
8655 ## to capture any diagnostics in invoking pkg-config.
8656 ALSA_PKG_ERRORS=`($PKG_CONFIG --print-errors "$ALSA_MODULES") 2>&1`
8662 else
8663 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8664 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8668 if test $succeeded = yes; then
8669 HAVE_ALSA=yes
8670 else
8671 HAVE_ALSA=no
8674 if test $HAVE_ALSA = yes; then
8675 SAVE_CFLAGS="$CFLAGS"
8676 SAVE_LIBS="$LIBS"
8677 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8678 LIBS="$ALSA_LIBS $LIBS"
8679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680 /* end confdefs.h. */
8681 #include <asoundlib.h>
8683 main ()
8685 snd_lib_error_set_handler (0);
8687 return 0;
8689 _ACEOF
8690 if ac_fn_c_try_compile "$LINENO"; then :
8691 emacs_alsa_normal=yes
8692 else
8693 emacs_alsa_normal=no
8695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8696 if test "$emacs_alsa_normal" != yes; then
8697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8698 /* end confdefs.h. */
8699 #include <alsa/asoundlib.h>
8701 main ()
8703 snd_lib_error_set_handler (0);
8705 return 0;
8707 _ACEOF
8708 if ac_fn_c_try_compile "$LINENO"; then :
8709 emacs_alsa_subdir=yes
8710 else
8711 emacs_alsa_subdir=no
8713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8714 if test "$emacs_alsa_subdir" != yes; then
8715 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8717 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8720 CFLAGS="$SAVE_CFLAGS"
8721 LIBS="$SAVE_LIBS"
8722 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8723 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8725 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8729 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8730 case "$opsys" in
8731 gnu-linux|freebsd|netbsd)
8733 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8736 esac
8745 for ac_header in $ac_header_list
8746 do :
8747 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8748 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8750 eval as_val=\$$as_ac_Header
8751 if test "x$as_val" = x""yes; then :
8752 cat >>confdefs.h <<_ACEOF
8753 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8754 _ACEOF
8758 done
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8785 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8787 /* end confdefs.h. */
8788 #include <sys/personality.h>
8790 main ()
8792 personality (PER_LINUX32)
8794 return 0;
8796 _ACEOF
8797 if ac_fn_c_try_compile "$LINENO"; then :
8798 emacs_cv_personality_linux32=yes
8799 else
8800 emacs_cv_personality_linux32=no
8802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8804 $as_echo "$emacs_cv_personality_linux32" >&6; }
8806 if test $emacs_cv_personality_linux32 = yes; then
8808 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8812 for ac_header in term.h
8813 do :
8814 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8815 if test "x$ac_cv_header_term_h" = x""yes; then :
8816 cat >>confdefs.h <<_ACEOF
8817 #define HAVE_TERM_H 1
8818 _ACEOF
8822 done
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8825 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8826 if test "${ac_cv_header_time+set}" = set; then :
8827 $as_echo_n "(cached) " >&6
8828 else
8829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8830 /* end confdefs.h. */
8831 #include <sys/types.h>
8832 #include <sys/time.h>
8833 #include <time.h>
8836 main ()
8838 if ((struct tm *) 0)
8839 return 0;
8841 return 0;
8843 _ACEOF
8844 if ac_fn_c_try_compile "$LINENO"; then :
8845 ac_cv_header_time=yes
8846 else
8847 ac_cv_header_time=no
8849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8852 $as_echo "$ac_cv_header_time" >&6; }
8853 if test $ac_cv_header_time = yes; then
8855 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8859 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
8862 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8863 ac_have_decl=1
8864 else
8865 ac_have_decl=0
8868 cat >>confdefs.h <<_ACEOF
8869 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8870 _ACEOF
8872 if test $ac_cv_have_decl_sys_siglist != yes; then
8873 # For Tru64, at least:
8874 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
8877 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8878 ac_have_decl=1
8879 else
8880 ac_have_decl=0
8883 cat >>confdefs.h <<_ACEOF
8884 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8885 _ACEOF
8887 if test $ac_cv_have_decl___sys_siglist = yes; then
8889 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8894 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8895 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8896 $as_echo_n "(cached) " >&6
8897 else
8898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8899 /* end confdefs.h. */
8900 #include <sys/types.h>
8901 #include <sys/wait.h>
8902 #ifndef WEXITSTATUS
8903 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8904 #endif
8905 #ifndef WIFEXITED
8906 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8907 #endif
8910 main ()
8912 int s;
8913 wait (&s);
8914 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8916 return 0;
8918 _ACEOF
8919 if ac_fn_c_try_compile "$LINENO"; then :
8920 ac_cv_header_sys_wait_h=yes
8921 else
8922 ac_cv_header_sys_wait_h=no
8924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8927 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8928 if test $ac_cv_header_sys_wait_h = yes; then
8930 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8936 $as_echo_n "checking for speed_t... " >&6; }
8937 if test "${emacs_cv_speed_t+set}" = set; then :
8938 $as_echo_n "(cached) " >&6
8939 else
8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941 /* end confdefs.h. */
8942 #include <termios.h>
8944 main ()
8946 speed_t x = 1;
8948 return 0;
8950 _ACEOF
8951 if ac_fn_c_try_compile "$LINENO"; then :
8952 emacs_cv_speed_t=yes
8953 else
8954 emacs_cv_speed_t=no
8956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8959 $as_echo "$emacs_cv_speed_t" >&6; }
8960 if test $emacs_cv_speed_t = yes; then
8962 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8969 for ac_header in net/if.h
8970 do :
8971 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8972 #if HAVE_SYS_SOCKET_H
8973 #include <sys/socket.h>
8974 #endif
8976 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8977 cat >>confdefs.h <<_ACEOF
8978 #define HAVE_NET_IF_H 1
8979 _ACEOF
8983 done
8985 for ac_header in ifaddrs.h
8986 do :
8987 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8988 #if HAVE_SYS_SOCKET_H
8989 #include <sys/socket.h>
8990 #endif
8992 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
8993 cat >>confdefs.h <<_ACEOF
8994 #define HAVE_IFADDRS_H 1
8995 _ACEOF
8999 done
9001 for ac_header in net/if_dl.h
9002 do :
9003 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9004 #if HAVE_SYS_SOCKET_H
9005 #include <sys/socket.h>
9006 #endif
9008 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
9009 cat >>confdefs.h <<_ACEOF
9010 #define HAVE_NET_IF_DL_H 1
9011 _ACEOF
9015 done
9018 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9019 #if HAVE_SYS_SOCKET_H
9020 #include <sys/socket.h>
9021 #endif
9022 #if HAVE_NET_IF_H
9023 #include <net/if.h>
9024 #endif
9026 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
9028 cat >>confdefs.h <<_ACEOF
9029 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9030 _ACEOF
9034 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9035 #if HAVE_SYS_SOCKET_H
9036 #include <sys/socket.h>
9037 #endif
9038 #if HAVE_NET_IF_H
9039 #include <net/if.h>
9040 #endif
9042 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
9044 cat >>confdefs.h <<_ACEOF
9045 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9046 _ACEOF
9050 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9051 #if HAVE_SYS_SOCKET_H
9052 #include <sys/socket.h>
9053 #endif
9054 #if HAVE_NET_IF_H
9055 #include <net/if.h>
9056 #endif
9058 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9060 cat >>confdefs.h <<_ACEOF
9061 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9062 _ACEOF
9066 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9067 #if HAVE_SYS_SOCKET_H
9068 #include <sys/socket.h>
9069 #endif
9070 #if HAVE_NET_IF_H
9071 #include <net/if.h>
9072 #endif
9074 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9076 cat >>confdefs.h <<_ACEOF
9077 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9078 _ACEOF
9082 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9083 #if HAVE_SYS_SOCKET_H
9084 #include <sys/socket.h>
9085 #endif
9086 #if HAVE_NET_IF_H
9087 #include <net/if.h>
9088 #endif
9090 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9092 cat >>confdefs.h <<_ACEOF
9093 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9094 _ACEOF
9098 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9099 #if HAVE_SYS_SOCKET_H
9100 #include <sys/socket.h>
9101 #endif
9102 #if HAVE_NET_IF_H
9103 #include <net/if.h>
9104 #endif
9106 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9108 cat >>confdefs.h <<_ACEOF
9109 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9110 _ACEOF
9118 DEPFLAGS=
9119 MKDEPDIR=":"
9120 deps_frag=deps.mk
9121 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9123 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9124 HAVE_GNU_MAKE=no
9125 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9126 if test "x$testval" != x; then
9127 HAVE_GNU_MAKE=yes
9128 else
9129 ac_enable_autodepend=no
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9132 $as_echo "$HAVE_GNU_MAKE" >&6; }
9133 if test $HAVE_GNU_MAKE = yes; then
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9135 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9136 SAVE_CFLAGS="$CFLAGS"
9137 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139 /* end confdefs.h. */
9142 main ()
9146 return 0;
9148 _ACEOF
9149 if ac_fn_c_try_compile "$LINENO"; then :
9151 else
9152 ac_enable_autodepend=no
9154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9155 CFLAGS="$SAVE_CFLAGS"
9156 test -f deps.d || ac_enable_autodepend=no
9157 rm -rf deps.d
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9159 $as_echo "$ac_enable_autodepend" >&6; }
9161 if test $ac_enable_autodepend = yes; then
9162 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9163 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9164 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9165 deps_frag=autodeps.mk
9168 deps_frag=$srcdir/src/$deps_frag
9174 lisp_frag=$srcdir/src/lisp.mk
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9179 $as_echo_n "checking for long file names... " >&6; }
9180 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9181 $as_echo_n "(cached) " >&6
9182 else
9183 ac_cv_sys_long_file_names=yes
9184 # Test for long file names in all the places we know might matter:
9185 # . the current directory, where building will happen
9186 # $prefix/lib where we will be installing things
9187 # $exec_prefix/lib likewise
9188 # $TMPDIR if set, where it might want to write temporary files
9189 # /tmp where it might want to write temporary files
9190 # /var/tmp likewise
9191 # /usr/tmp likewise
9192 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9193 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9194 # in the usual case where exec_prefix is '${prefix}'.
9195 case $ac_dir in #(
9196 . | /* | ?:[\\/]*) ;; #(
9197 *) continue;;
9198 esac
9199 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9200 ac_xdir=$ac_dir/cf$$
9201 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9202 ac_tf1=$ac_xdir/conftest9012345
9203 ac_tf2=$ac_xdir/conftest9012346
9204 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9205 ac_cv_sys_long_file_names=no
9206 rm -f -r "$ac_xdir" 2>/dev/null
9207 test $ac_cv_sys_long_file_names = no && break
9208 done
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9211 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9212 if test $ac_cv_sys_long_file_names = yes; then
9214 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9219 #### Choose a window system.
9221 ## We leave window_system equal to none if
9222 ## we end up building without one. Any new window system should
9223 ## set window_system to an appropriate value and add objects to
9224 ## window-system-specific substs.
9226 window_system=none
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9228 $as_echo_n "checking for X... " >&6; }
9231 # Check whether --with-x was given.
9232 if test "${with_x+set}" = set; then :
9233 withval=$with_x;
9236 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9237 if test "x$with_x" = xno; then
9238 # The user explicitly disabled X.
9239 have_x=disabled
9240 else
9241 case $x_includes,$x_libraries in #(
9242 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9243 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9244 $as_echo_n "(cached) " >&6
9245 else
9246 # One or both of the vars are not set, and there is no cached value.
9247 ac_x_includes=no ac_x_libraries=no
9248 rm -f -r conftest.dir
9249 if mkdir conftest.dir; then
9250 cd conftest.dir
9251 cat >Imakefile <<'_ACEOF'
9252 incroot:
9253 @echo incroot='${INCROOT}'
9254 usrlibdir:
9255 @echo usrlibdir='${USRLIBDIR}'
9256 libdir:
9257 @echo libdir='${LIBDIR}'
9258 _ACEOF
9259 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9260 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9261 for ac_var in incroot usrlibdir libdir; do
9262 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9263 done
9264 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9265 for ac_extension in a so sl dylib la dll; do
9266 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9267 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9268 ac_im_usrlibdir=$ac_im_libdir; break
9270 done
9271 # Screen out bogus values from the imake configuration. They are
9272 # bogus both because they are the default anyway, and because
9273 # using them would break gcc on systems where it needs fixed includes.
9274 case $ac_im_incroot in
9275 /usr/include) ac_x_includes= ;;
9276 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9277 esac
9278 case $ac_im_usrlibdir in
9279 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9280 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9281 esac
9283 cd ..
9284 rm -f -r conftest.dir
9287 # Standard set of common directories for X headers.
9288 # Check X11 before X11Rn because it is often a symlink to the current release.
9289 ac_x_header_dirs='
9290 /usr/X11/include
9291 /usr/X11R7/include
9292 /usr/X11R6/include
9293 /usr/X11R5/include
9294 /usr/X11R4/include
9296 /usr/include/X11
9297 /usr/include/X11R7
9298 /usr/include/X11R6
9299 /usr/include/X11R5
9300 /usr/include/X11R4
9302 /usr/local/X11/include
9303 /usr/local/X11R7/include
9304 /usr/local/X11R6/include
9305 /usr/local/X11R5/include
9306 /usr/local/X11R4/include
9308 /usr/local/include/X11
9309 /usr/local/include/X11R7
9310 /usr/local/include/X11R6
9311 /usr/local/include/X11R5
9312 /usr/local/include/X11R4
9314 /usr/X386/include
9315 /usr/x386/include
9316 /usr/XFree86/include/X11
9318 /usr/include
9319 /usr/local/include
9320 /usr/unsupported/include
9321 /usr/athena/include
9322 /usr/local/x11r5/include
9323 /usr/lpp/Xamples/include
9325 /usr/openwin/include
9326 /usr/openwin/share/include'
9328 if test "$ac_x_includes" = no; then
9329 # Guess where to find include files, by looking for Xlib.h.
9330 # First, try using that file with no special directory specified.
9331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9332 /* end confdefs.h. */
9333 #include <X11/Xlib.h>
9334 _ACEOF
9335 if ac_fn_c_try_cpp "$LINENO"; then :
9336 # We can compile using X headers with no special include directory.
9337 ac_x_includes=
9338 else
9339 for ac_dir in $ac_x_header_dirs; do
9340 if test -r "$ac_dir/X11/Xlib.h"; then
9341 ac_x_includes=$ac_dir
9342 break
9344 done
9346 rm -f conftest.err conftest.$ac_ext
9347 fi # $ac_x_includes = no
9349 if test "$ac_x_libraries" = no; then
9350 # Check for the libraries.
9351 # See if we find them without any special options.
9352 # Don't add to $LIBS permanently.
9353 ac_save_LIBS=$LIBS
9354 LIBS="-lX11 $LIBS"
9355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9356 /* end confdefs.h. */
9357 #include <X11/Xlib.h>
9359 main ()
9361 XrmInitialize ()
9363 return 0;
9365 _ACEOF
9366 if ac_fn_c_try_link "$LINENO"; then :
9367 LIBS=$ac_save_LIBS
9368 # We can link X programs with no special library path.
9369 ac_x_libraries=
9370 else
9371 LIBS=$ac_save_LIBS
9372 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9374 # Don't even attempt the hair of trying to link an X program!
9375 for ac_extension in a so sl dylib la dll; do
9376 if test -r "$ac_dir/libX11.$ac_extension"; then
9377 ac_x_libraries=$ac_dir
9378 break 2
9380 done
9381 done
9383 rm -f core conftest.err conftest.$ac_objext \
9384 conftest$ac_exeext conftest.$ac_ext
9385 fi # $ac_x_libraries = no
9387 case $ac_x_includes,$ac_x_libraries in #(
9388 no,* | *,no | *\'*)
9389 # Didn't find X, or a directory has "'" in its name.
9390 ac_cv_have_x="have_x=no";; #(
9392 # Record where we found X for the cache.
9393 ac_cv_have_x="have_x=yes\
9394 ac_x_includes='$ac_x_includes'\
9395 ac_x_libraries='$ac_x_libraries'"
9396 esac
9398 ;; #(
9399 *) have_x=yes;;
9400 esac
9401 eval "$ac_cv_have_x"
9402 fi # $with_x != no
9404 if test "$have_x" != yes; then
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9406 $as_echo "$have_x" >&6; }
9407 no_x=yes
9408 else
9409 # If each of the values was on the command line, it overrides each guess.
9410 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9411 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9412 # Update the cache value to reflect the command line values.
9413 ac_cv_have_x="have_x=yes\
9414 ac_x_includes='$x_includes'\
9415 ac_x_libraries='$x_libraries'"
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9417 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9420 if test "$no_x" != yes; then
9421 window_system=x11
9424 LD_SWITCH_X_SITE_RPATH=
9425 if test "${x_libraries}" != NONE; then
9426 if test -n "${x_libraries}"; then
9427 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9428 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9430 x_default_search_path=""
9431 x_search_path=${x_libraries}
9432 if test -z "${x_search_path}"; then
9433 x_search_path=/usr/lib
9435 for x_library in `echo ${x_search_path}: | \
9436 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9437 x_search_path="\
9438 ${x_library}/X11/%L/%T/%N%C%S:\
9439 ${x_library}/X11/%l/%T/%N%C%S:\
9440 ${x_library}/X11/%T/%N%C%S:\
9441 ${x_library}/X11/%L/%T/%N%S:\
9442 ${x_library}/X11/%l/%T/%N%S:\
9443 ${x_library}/X11/%T/%N%S"
9444 if test x"${x_default_search_path}" = x; then
9445 x_default_search_path=${x_search_path}
9446 else
9447 x_default_search_path="${x_search_path}:${x_default_search_path}"
9449 done
9453 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9454 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9457 if test x"${x_includes}" = x; then
9458 bitmapdir=/usr/include/X11/bitmaps
9459 else
9460 # accumulate include directories that have X11 bitmap subdirectories
9461 bmd_acc="dummyval"
9462 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9463 if test -d "${bmd}/X11/bitmaps"; then
9464 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9466 if test -d "${bmd}/bitmaps"; then
9467 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9469 done
9470 if test ${bmd_acc} != "dummyval"; then
9471 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9475 HAVE_NS=no
9476 NS_IMPL_COCOA=no
9477 NS_IMPL_GNUSTEP=no
9478 tmp_CPPFLAGS="$CPPFLAGS"
9479 tmp_CFLAGS="$CFLAGS"
9480 CPPFLAGS="$CPPFLAGS -x objective-c"
9481 CFLAGS="$CFLAGS -x objective-c"
9482 TEMACS_LDFLAGS2="\${LDFLAGS}"
9483 GNU_OBJC_CFLAGS=
9484 if test "${with_ns}" != no; then
9485 if test "${opsys}" = darwin; then
9486 NS_IMPL_COCOA=yes
9487 ns_appdir=`pwd`/nextstep/Emacs.app
9488 ns_appbindir=${ns_appdir}/Contents/MacOS
9489 ns_appresdir=${ns_appdir}/Contents/Resources
9490 ns_appsrc=Cocoa/Emacs.base
9491 elif test -f $GNUSTEP_CONFIG_FILE; then
9492 NS_IMPL_GNUSTEP=yes
9493 ns_appdir=`pwd`/nextstep/Emacs.app
9494 ns_appbindir=${ns_appdir}
9495 ns_appresdir=${ns_appdir}/Resources
9496 ns_appsrc=GNUstep/Emacs.base
9497 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9498 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9499 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9500 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9501 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9502 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9503 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9504 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9505 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9506 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9507 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9508 LIB_STANDARD=
9509 START_FILES=
9510 TEMACS_LDFLAGS2=
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9512 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9513 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9514 $as_echo_n "(cached) " >&6
9515 else
9516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9517 /* end confdefs.h. */
9518 #include <GNUstepBase/GSConfig.h>
9520 main ()
9522 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9524 #else
9525 fail;
9526 #endif
9528 return 0;
9530 _ACEOF
9531 if ac_fn_c_try_compile "$LINENO"; then :
9532 emacs_cv_objc_exceptions=yes
9533 else
9534 emacs_cv_objc_exceptions=no
9536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9539 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9540 if test $emacs_cv_objc_exceptions = yes; then
9542 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9544 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9548 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9550 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9551 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9552 HAVE_NS=yes
9553 else
9554 as_fn_error "\`--with-ns' was specified, but the include
9555 files are missing or cannot be compiled." "$LINENO" 5
9560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9561 /* end confdefs.h. */
9562 #include <AppKit/AppKit.h>
9564 main ()
9567 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
9568 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
9569 ; /* OK */
9570 #else
9571 #error "OSX 10.4 or newer required"
9572 #endif
9573 #endif
9576 return 0;
9578 _ACEOF
9579 if ac_fn_c_try_compile "$LINENO"; then :
9580 ns_osx_have_104=yes
9581 else
9582 ns_osx_have_104=no
9584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586 /* end confdefs.h. */
9587 #include <Foundation/NSObjCRuntime.h>
9589 main ()
9591 NSInteger i;
9593 return 0;
9595 _ACEOF
9596 if ac_fn_c_try_compile "$LINENO"; then :
9597 ns_have_nsinteger=yes
9598 else
9599 ns_have_nsinteger=no
9601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9602 if test $ns_osx_have_104 = no; then
9603 as_fn_error "\`OSX 10.4 or newer is required'" "$LINENO" 5;
9605 if test $ns_have_nsinteger = yes; then
9607 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9614 INSTALL_ARCH_INDEP_EXTRA=install-etc
9615 ns_self_contained=no
9616 NS_OBJ=
9617 NS_OBJC_OBJ=
9618 if test "${HAVE_NS}" = yes; then
9619 if test "$with_toolkit_scroll_bars" = "no"; then
9620 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9623 window_system=nextstep
9624 # set up packaging dirs
9625 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9626 ns_self_contained=yes
9627 prefix=${ns_appresdir}
9628 exec_prefix=${ns_appbindir}
9629 libexecdir="\${ns_appbindir}/libexec"
9630 archlibdir="\${ns_appbindir}/libexec"
9631 docdir="\${ns_appresdir}/etc"
9632 etcdir="\${ns_appresdir}/etc"
9633 infodir="\${ns_appresdir}/info"
9634 mandir="\${ns_appresdir}/man"
9635 lispdir="\${ns_appresdir}/lisp"
9636 leimdir="\${ns_appresdir}/leim"
9637 INSTALL_ARCH_INDEP_EXTRA=
9639 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9641 CFLAGS="$tmp_CFLAGS"
9642 CPPFLAGS="$tmp_CPPFLAGS"
9649 HAVE_W32=no
9650 W32_OBJ=
9651 W32_LIBS=
9652 if test "${with_w32}" != no; then
9653 if test "${opsys}" != "cygwin"; then
9654 as_fn_error "Using w32 with an autotools build is only supported for Cygwin." "$LINENO" 5
9656 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9657 if test "x$ac_cv_header_windows_h" = x""yes; then :
9658 HAVE_W32=yes
9659 else
9660 as_fn_error "\`--with-w32' was specified, but windows.h
9661 cannot be found." "$LINENO" 5
9666 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
9668 W32_OBJ="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
9669 W32_OBJ="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
9670 W32_LIBS="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
9671 W32_LIBS="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
9676 if test "${HAVE_W32}" = "yes"; then
9677 window_system=w32
9678 with_xft=no
9681 ## $window_system is now set to the window system we will
9682 ## ultimately use.
9684 term_header=
9685 HAVE_X_WINDOWS=no
9686 HAVE_X11=no
9687 USE_X_TOOLKIT=none
9689 case "${window_system}" in
9690 x11 )
9691 HAVE_X_WINDOWS=yes
9692 HAVE_X11=yes
9693 term_header=xterm.h
9694 case "${with_x_toolkit}" in
9695 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9696 motif ) USE_X_TOOLKIT=MOTIF ;;
9697 gtk ) with_gtk=yes
9698 term_header=gtkutil.h
9699 USE_X_TOOLKIT=none ;;
9700 gtk2 ) with_gtk2=yes
9701 term_header=gtkutil.h
9702 USE_X_TOOLKIT=none ;;
9703 gtk3 ) with_gtk3=yes
9704 term_header=gtkutil.h
9705 USE_X_TOOLKIT=none ;;
9706 no ) USE_X_TOOLKIT=none ;;
9707 * ) USE_X_TOOLKIT=maybe ;;
9708 esac
9710 nextstep )
9711 term_header=nsterm.h
9713 w32 )
9714 term_header=w32term.h
9716 esac
9718 if test -n "${term_header}"; then
9720 cat >>confdefs.h <<_ACEOF
9721 #define TERM_HEADER "${term_header}"
9722 _ACEOF
9726 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9727 # Extract the first word of "X", so it can be a program name with args.
9728 set dummy X; ac_word=$2
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9730 $as_echo_n "checking for $ac_word... " >&6; }
9731 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9732 $as_echo_n "(cached) " >&6
9733 else
9734 if test -n "$HAVE_XSERVER"; then
9735 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9736 else
9737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9738 for as_dir in $PATH
9740 IFS=$as_save_IFS
9741 test -z "$as_dir" && as_dir=.
9742 for ac_exec_ext in '' $ac_executable_extensions; do
9743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9744 ac_cv_prog_HAVE_XSERVER="true"
9745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9746 break 2
9748 done
9749 done
9750 IFS=$as_save_IFS
9752 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9755 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9756 if test -n "$HAVE_XSERVER"; then
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9758 $as_echo "$HAVE_XSERVER" >&6; }
9759 else
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9761 $as_echo "no" >&6; }
9765 if test "$HAVE_XSERVER" = true ||
9766 test -n "$DISPLAY" ||
9767 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9768 as_fn_error "You seem to be running X, but no X development libraries
9769 were found. You should install the relevant development files for X
9770 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9771 sure you have development files for image handling, i.e.
9772 tiff, gif, jpeg, png and xpm.
9773 If you are sure you want Emacs compiled without X window support, pass
9774 --without-x
9775 to configure." "$LINENO" 5
9779 ### If we're using X11, we should use the X menu package.
9780 HAVE_MENUS=no
9781 case ${HAVE_X11} in
9782 yes ) HAVE_MENUS=yes ;;
9783 esac
9785 # Does the opsystem file prohibit the use of the GNU malloc?
9786 # Assume not, until told otherwise.
9787 GNU_MALLOC=yes
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9790 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9791 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9792 $as_echo_n "(cached) " >&6
9793 else
9794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9795 /* end confdefs.h. */
9796 #include <malloc.h>
9797 static void hook (void) {}
9799 main ()
9801 malloc_set_state (malloc_get_state ());
9802 __after_morecore_hook = hook;
9803 __malloc_initialize_hook = hook;
9805 return 0;
9807 _ACEOF
9808 if ac_fn_c_try_link "$LINENO"; then :
9809 emacs_cv_var_doug_lea_malloc=yes
9810 else
9811 emacs_cv_var_doug_lea_malloc=no
9813 rm -f core conftest.err conftest.$ac_objext \
9814 conftest$ac_exeext conftest.$ac_ext
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9817 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9818 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
9821 system_malloc=no
9822 case "$opsys" in
9823 ## darwin ld insists on the use of malloc routines in the System framework.
9824 darwin|sol2-10) system_malloc=yes ;;
9825 esac
9827 if test "${system_malloc}" = "yes"; then
9829 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9831 GNU_MALLOC=no
9832 GNU_MALLOC_reason="
9833 (The GNU allocators don't work with this system configuration.)"
9834 GMALLOC_OBJ=
9835 VMLIMIT_OBJ=
9836 else
9837 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9838 VMLIMIT_OBJ=vm-limit.o
9843 if test "$doug_lea_malloc" = "yes" ; then
9844 if test "$GNU_MALLOC" = yes ; then
9845 GNU_MALLOC_reason="
9846 (Using Doug Lea's new malloc from the GNU C Library.)"
9849 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9852 ## Use mmap directly for allocating larger buffers.
9853 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9854 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9855 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
9856 case "$opsys" in
9857 gnu*) REL_ALLOC=no ;;
9858 esac
9861 if test x"${REL_ALLOC}" = x; then
9862 REL_ALLOC=${GNU_MALLOC}
9865 use_mmap_for_buffers=no
9866 case "$opsys" in
9867 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9868 esac
9877 for ac_func in getpagesize
9878 do :
9879 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9880 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9881 cat >>confdefs.h <<_ACEOF
9882 #define HAVE_GETPAGESIZE 1
9883 _ACEOF
9886 done
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9889 $as_echo_n "checking for working mmap... " >&6; }
9890 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9891 $as_echo_n "(cached) " >&6
9892 else
9893 if test "$cross_compiling" = yes; then :
9894 ac_cv_func_mmap_fixed_mapped=no
9895 else
9896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897 /* end confdefs.h. */
9898 $ac_includes_default
9899 /* malloc might have been renamed as rpl_malloc. */
9900 #undef malloc
9902 /* Thanks to Mike Haertel and Jim Avera for this test.
9903 Here is a matrix of mmap possibilities:
9904 mmap private not fixed
9905 mmap private fixed at somewhere currently unmapped
9906 mmap private fixed at somewhere already mapped
9907 mmap shared not fixed
9908 mmap shared fixed at somewhere currently unmapped
9909 mmap shared fixed at somewhere already mapped
9910 For private mappings, we should verify that changes cannot be read()
9911 back from the file, nor mmap's back from the file at a different
9912 address. (There have been systems where private was not correctly
9913 implemented like the infamous i386 svr4.0, and systems where the
9914 VM page cache was not coherent with the file system buffer cache
9915 like early versions of FreeBSD and possibly contemporary NetBSD.)
9916 For shared mappings, we should conversely verify that changes get
9917 propagated back to all the places they're supposed to be.
9919 Grep wants private fixed already mapped.
9920 The main things grep needs to know about mmap are:
9921 * does it exist and is it safe to write into the mmap'd area
9922 * how to use it (BSD variants) */
9924 #include <fcntl.h>
9925 #include <sys/mman.h>
9927 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9928 char *malloc ();
9929 #endif
9931 /* This mess was copied from the GNU getpagesize.h. */
9932 #ifndef HAVE_GETPAGESIZE
9933 # ifdef _SC_PAGESIZE
9934 # define getpagesize() sysconf(_SC_PAGESIZE)
9935 # else /* no _SC_PAGESIZE */
9936 # ifdef HAVE_SYS_PARAM_H
9937 # include <sys/param.h>
9938 # ifdef EXEC_PAGESIZE
9939 # define getpagesize() EXEC_PAGESIZE
9940 # else /* no EXEC_PAGESIZE */
9941 # ifdef NBPG
9942 # define getpagesize() NBPG * CLSIZE
9943 # ifndef CLSIZE
9944 # define CLSIZE 1
9945 # endif /* no CLSIZE */
9946 # else /* no NBPG */
9947 # ifdef NBPC
9948 # define getpagesize() NBPC
9949 # else /* no NBPC */
9950 # ifdef PAGESIZE
9951 # define getpagesize() PAGESIZE
9952 # endif /* PAGESIZE */
9953 # endif /* no NBPC */
9954 # endif /* no NBPG */
9955 # endif /* no EXEC_PAGESIZE */
9956 # else /* no HAVE_SYS_PARAM_H */
9957 # define getpagesize() 8192 /* punt totally */
9958 # endif /* no HAVE_SYS_PARAM_H */
9959 # endif /* no _SC_PAGESIZE */
9961 #endif /* no HAVE_GETPAGESIZE */
9964 main ()
9966 char *data, *data2, *data3;
9967 const char *cdata2;
9968 int i, pagesize;
9969 int fd, fd2;
9971 pagesize = getpagesize ();
9973 /* First, make a file with some known garbage in it. */
9974 data = (char *) malloc (pagesize);
9975 if (!data)
9976 return 1;
9977 for (i = 0; i < pagesize; ++i)
9978 *(data + i) = rand ();
9979 umask (0);
9980 fd = creat ("conftest.mmap", 0600);
9981 if (fd < 0)
9982 return 2;
9983 if (write (fd, data, pagesize) != pagesize)
9984 return 3;
9985 close (fd);
9987 /* Next, check that the tail of a page is zero-filled. File must have
9988 non-zero length, otherwise we risk SIGBUS for entire page. */
9989 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9990 if (fd2 < 0)
9991 return 4;
9992 cdata2 = "";
9993 if (write (fd2, cdata2, 1) != 1)
9994 return 5;
9995 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9996 if (data2 == MAP_FAILED)
9997 return 6;
9998 for (i = 0; i < pagesize; ++i)
9999 if (*(data2 + i))
10000 return 7;
10001 close (fd2);
10002 if (munmap (data2, pagesize))
10003 return 8;
10005 /* Next, try to mmap the file at a fixed address which already has
10006 something else allocated at it. If we can, also make sure that
10007 we see the same garbage. */
10008 fd = open ("conftest.mmap", O_RDWR);
10009 if (fd < 0)
10010 return 9;
10011 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10012 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10013 return 10;
10014 for (i = 0; i < pagesize; ++i)
10015 if (*(data + i) != *(data2 + i))
10016 return 11;
10018 /* Finally, make sure that changes to the mapped area do not
10019 percolate back to the file as seen by read(). (This is a bug on
10020 some variants of i386 svr4.0.) */
10021 for (i = 0; i < pagesize; ++i)
10022 *(data2 + i) = *(data2 + i) + 1;
10023 data3 = (char *) malloc (pagesize);
10024 if (!data3)
10025 return 12;
10026 if (read (fd, data3, pagesize) != pagesize)
10027 return 13;
10028 for (i = 0; i < pagesize; ++i)
10029 if (*(data + i) != *(data3 + i))
10030 return 14;
10031 close (fd);
10032 return 0;
10034 _ACEOF
10035 if ac_fn_c_try_run "$LINENO"; then :
10036 ac_cv_func_mmap_fixed_mapped=yes
10037 else
10038 ac_cv_func_mmap_fixed_mapped=no
10040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10041 conftest.$ac_objext conftest.beam conftest.$ac_ext
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10046 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10047 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10049 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10052 rm -f conftest.mmap conftest.txt
10054 if test $use_mmap_for_buffers = yes; then
10056 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10058 REL_ALLOC=no
10061 LIBS="$LIBS_SYSTEM $LIBS"
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10064 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10065 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10066 $as_echo_n "(cached) " >&6
10067 else
10068 ac_check_lib_save_LIBS=$LIBS
10069 LIBS="-ldnet $LIBS"
10070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10071 /* end confdefs.h. */
10073 /* Override any GCC internal prototype to avoid an error.
10074 Use char because int might match the return type of a GCC
10075 builtin and then its argument prototype would still apply. */
10076 #ifdef __cplusplus
10077 extern "C"
10078 #endif
10079 char dnet_ntoa ();
10081 main ()
10083 return dnet_ntoa ();
10085 return 0;
10087 _ACEOF
10088 if ac_fn_c_try_link "$LINENO"; then :
10089 ac_cv_lib_dnet_dnet_ntoa=yes
10090 else
10091 ac_cv_lib_dnet_dnet_ntoa=no
10093 rm -f core conftest.err conftest.$ac_objext \
10094 conftest$ac_exeext conftest.$ac_ext
10095 LIBS=$ac_check_lib_save_LIBS
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10098 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10099 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10100 cat >>confdefs.h <<_ACEOF
10101 #define HAVE_LIBDNET 1
10102 _ACEOF
10104 LIBS="-ldnet $LIBS"
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10110 $as_echo_n "checking for main in -lXbsd... " >&6; }
10111 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10112 $as_echo_n "(cached) " >&6
10113 else
10114 ac_check_lib_save_LIBS=$LIBS
10115 LIBS="-lXbsd $LIBS"
10116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117 /* end confdefs.h. */
10121 main ()
10123 return main ();
10125 return 0;
10127 _ACEOF
10128 if ac_fn_c_try_link "$LINENO"; then :
10129 ac_cv_lib_Xbsd_main=yes
10130 else
10131 ac_cv_lib_Xbsd_main=no
10133 rm -f core conftest.err conftest.$ac_objext \
10134 conftest$ac_exeext conftest.$ac_ext
10135 LIBS=$ac_check_lib_save_LIBS
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10138 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10139 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10140 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10144 LIB_PTHREAD=
10148 if test "$ac_cv_header_pthread_h"; then
10149 if test "$GMALLOC_OBJ" = gmalloc.o; then
10150 emacs_pthread_function=pthread_atfork
10151 else
10152 emacs_pthread_function=pthread_self
10154 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10156 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10157 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10158 $as_echo_n "(cached) " >&6
10159 else
10160 ac_check_lib_save_LIBS=$LIBS
10161 LIBS="-lpthread $LIBS"
10162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10163 /* end confdefs.h. */
10165 /* Override any GCC internal prototype to avoid an error.
10166 Use char because int might match the return type of a GCC
10167 builtin and then its argument prototype would still apply. */
10168 #ifdef __cplusplus
10169 extern "C"
10170 #endif
10171 char $emacs_pthread_function ();
10173 main ()
10175 return $emacs_pthread_function ();
10177 return 0;
10179 _ACEOF
10180 if ac_fn_c_try_link "$LINENO"; then :
10181 eval "$as_ac_Lib=yes"
10182 else
10183 eval "$as_ac_Lib=no"
10185 rm -f core conftest.err conftest.$ac_objext \
10186 conftest$ac_exeext conftest.$ac_ext
10187 LIBS=$ac_check_lib_save_LIBS
10189 eval ac_res=\$$as_ac_Lib
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10191 $as_echo "$ac_res" >&6; }
10192 eval as_val=\$$as_ac_Lib
10193 if test "x$as_val" = x""yes; then :
10194 HAVE_PTHREAD=yes
10198 if test "$HAVE_PTHREAD" = yes; then
10199 case "${canonical}" in
10200 *-hpux*) ;;
10201 *) LIB_PTHREAD="-lpthread"
10202 LIBS="$LIB_PTHREAD $LIBS" ;;
10203 esac
10205 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10211 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10212 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10213 $as_echo_n "(cached) " >&6
10214 else
10215 ac_check_lib_save_LIBS=$LIBS
10216 LIBS="-lpthreads $LIBS"
10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218 /* end confdefs.h. */
10220 /* Override any GCC internal prototype to avoid an error.
10221 Use char because int might match the return type of a GCC
10222 builtin and then its argument prototype would still apply. */
10223 #ifdef __cplusplus
10224 extern "C"
10225 #endif
10226 char cma_open ();
10228 main ()
10230 return cma_open ();
10232 return 0;
10234 _ACEOF
10235 if ac_fn_c_try_link "$LINENO"; then :
10236 ac_cv_lib_pthreads_cma_open=yes
10237 else
10238 ac_cv_lib_pthreads_cma_open=no
10240 rm -f core conftest.err conftest.$ac_objext \
10241 conftest$ac_exeext conftest.$ac_ext
10242 LIBS=$ac_check_lib_save_LIBS
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10245 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10246 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10247 cat >>confdefs.h <<_ACEOF
10248 #define HAVE_LIBPTHREADS 1
10249 _ACEOF
10251 LIBS="-lpthreads $LIBS"
10256 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10257 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10258 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10259 ## added to LIBS in configure would never contain the pthreads part,
10260 ## but the value used in Makefiles might. FIXME?
10262 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10263 ## be harmless on older versions of X where it happens to exist.
10264 test "$opsys" = "aix4-2" && \
10265 test $ac_cv_lib_pthreads_cma_open = yes && \
10266 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10269 case ${host_os} in
10270 aix*)
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10272 $as_echo_n "checking for -bbigtoc option... " >&6; }
10273 if test "${gdb_cv_bigtoc+set}" = set; then :
10274 $as_echo_n "(cached) " >&6
10275 else
10277 case $GCC in
10278 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10279 *) gdb_cv_bigtoc=-bbigtoc ;;
10280 esac
10282 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10284 /* end confdefs.h. */
10287 main ()
10289 int i;
10291 return 0;
10293 _ACEOF
10294 if ac_fn_c_try_link "$LINENO"; then :
10296 else
10297 gdb_cv_bigtoc=
10299 rm -f core conftest.err conftest.$ac_objext \
10300 conftest$ac_exeext conftest.$ac_ext
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10304 $as_echo "$gdb_cv_bigtoc" >&6; }
10306 esac
10308 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10309 # used for the tests that follow. We set them back to REAL_CFLAGS and
10310 # REAL_CPPFLAGS later on.
10312 REAL_CFLAGS="$CFLAGS"
10313 REAL_CPPFLAGS="$CPPFLAGS"
10315 if test "${HAVE_X11}" = "yes"; then
10316 DEFS="$C_SWITCH_X_SITE $DEFS"
10317 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10318 LIBS="-lX11 $LIBS"
10319 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10320 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10322 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10323 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10324 # but it's more convenient here to set LD_RUN_PATH since this
10325 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10326 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10327 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10328 export LD_RUN_PATH
10331 if test "${opsys}" = "gnu-linux"; then
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10333 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10335 /* end confdefs.h. */
10338 main ()
10340 XOpenDisplay ("foo");
10342 return 0;
10344 _ACEOF
10345 if ac_fn_c_try_link "$LINENO"; then :
10346 xgnu_linux_first_failure=no
10347 else
10348 xgnu_linux_first_failure=yes
10350 rm -f core conftest.err conftest.$ac_objext \
10351 conftest$ac_exeext conftest.$ac_ext
10352 if test "${xgnu_linux_first_failure}" = "yes"; then
10353 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10354 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10355 OLD_CPPFLAGS="$CPPFLAGS"
10356 OLD_LIBS="$LIBS"
10357 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10358 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10359 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10360 LIBS="$LIBS -b i486-linuxaout"
10361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10362 /* end confdefs.h. */
10365 main ()
10367 XOpenDisplay ("foo");
10369 return 0;
10371 _ACEOF
10372 if ac_fn_c_try_link "$LINENO"; then :
10373 xgnu_linux_second_failure=no
10374 else
10375 xgnu_linux_second_failure=yes
10377 rm -f core conftest.err conftest.$ac_objext \
10378 conftest$ac_exeext conftest.$ac_ext
10379 if test "${xgnu_linux_second_failure}" = "yes"; then
10380 # If we get the same failure with -b, there is no use adding -b.
10381 # So take it out. This plays safe.
10382 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10383 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10384 CPPFLAGS="$OLD_CPPFLAGS"
10385 LIBS="$OLD_LIBS"
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10387 $as_echo "no" >&6; }
10388 else
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10390 $as_echo "yes" >&6; }
10392 else
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10394 $as_echo "no" >&6; }
10398 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10399 # header files included from there.
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10401 $as_echo_n "checking for Xkb... " >&6; }
10402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403 /* end confdefs.h. */
10404 #include <X11/Xlib.h>
10405 #include <X11/XKBlib.h>
10407 main ()
10409 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10411 return 0;
10413 _ACEOF
10414 if ac_fn_c_try_link "$LINENO"; then :
10415 emacs_xkb=yes
10416 else
10417 emacs_xkb=no
10419 rm -f core conftest.err conftest.$ac_objext \
10420 conftest$ac_exeext conftest.$ac_ext
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10422 $as_echo "$emacs_xkb" >&6; }
10423 if test $emacs_xkb = yes; then
10425 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10429 for ac_func in XrmSetDatabase XScreenResourceString \
10430 XScreenNumberOfScreen
10431 do :
10432 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10433 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10434 eval as_val=\$$as_ac_var
10435 if test "x$as_val" = x""yes; then :
10436 cat >>confdefs.h <<_ACEOF
10437 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10438 _ACEOF
10441 done
10445 if test "${window_system}" = "x11"; then
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10447 $as_echo_n "checking X11 version 6... " >&6; }
10448 if test "${emacs_cv_x11_version_6+set}" = set; then :
10449 $as_echo_n "(cached) " >&6
10450 else
10451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10452 /* end confdefs.h. */
10453 #include <X11/Xlib.h>
10455 main ()
10457 #if XlibSpecificationRelease < 6
10458 fail;
10459 #endif
10462 return 0;
10464 _ACEOF
10465 if ac_fn_c_try_link "$LINENO"; then :
10466 emacs_cv_x11_version_6=yes
10467 else
10468 emacs_cv_x11_version_6=no
10470 rm -f core conftest.err conftest.$ac_objext \
10471 conftest$ac_exeext conftest.$ac_ext
10474 if test $emacs_cv_x11_version_6 = yes; then
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10476 $as_echo "6 or newer" >&6; }
10478 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10481 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10483 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10484 ## XIM support.
10485 case "$opsys" in
10486 sol2-*) : ;;
10488 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10491 esac
10492 else
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10494 $as_echo "before 6" >&6; }
10499 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10500 HAVE_RSVG=no
10501 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10502 if test "${with_rsvg}" != "no"; then
10503 RSVG_REQUIRED=2.11.0
10504 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10507 succeeded=no
10509 if test "$PKG_CONFIG" = "no" ; then
10511 else
10512 PKG_CONFIG_MIN_VERSION=0.9.0
10513 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10515 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10517 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
10518 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
10519 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
10520 edit_cflags="
10521 s,///*,/,g
10522 s/^/ /
10523 s/ -I/ $isystem/g
10524 s/^ //
10526 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10527 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10529 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10530 succeeded=yes
10531 else
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10533 $as_echo "no" >&6; }
10534 RSVG_CFLAGS=""
10535 RSVG_LIBS=""
10536 ## If we have a custom action on failure, don't print errors, but
10537 ## do set a variable so people can do so. Do it in a subshell
10538 ## to capture any diagnostics in invoking pkg-config.
10539 RSVG_PKG_ERRORS=`($PKG_CONFIG --print-errors "$RSVG_MODULE") 2>&1`
10545 else
10546 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10547 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10551 if test $succeeded = yes; then
10552 HAVE_RSVG=yes
10553 else
10560 if test $HAVE_RSVG = yes; then
10562 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10564 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10565 LIBS="$RSVG_LIBS $LIBS"
10570 HAVE_IMAGEMAGICK=no
10571 if test "${HAVE_X11}" = "yes"; then
10572 if test "${with_imagemagick}" != "no"; then
10573 ## 6.2.8 is the earliest version known to work, but earlier versions
10574 ## might work - let us know if you find one.
10575 ## 6.0.7 does not work. See bug#7955.
10576 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10578 succeeded=no
10580 if test "$PKG_CONFIG" = "no" ; then
10582 else
10583 PKG_CONFIG_MIN_VERSION=0.9.0
10584 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10586 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10588 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10589 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10590 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10591 edit_cflags="
10592 s,///*,/,g
10593 s/^/ /
10594 s/ -I/ $isystem/g
10595 s/^ //
10597 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10598 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10600 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10601 succeeded=yes
10602 else
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10604 $as_echo "no" >&6; }
10605 IMAGEMAGICK_CFLAGS=""
10606 IMAGEMAGICK_LIBS=""
10607 ## If we have a custom action on failure, don't print errors, but
10608 ## do set a variable so people can do so. Do it in a subshell
10609 ## to capture any diagnostics in invoking pkg-config.
10610 IMAGEMAGICK_PKG_ERRORS=`($PKG_CONFIG --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
10616 else
10617 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10618 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10622 if test $succeeded = yes; then
10623 HAVE_IMAGEMAGICK=yes
10624 else
10631 if test $HAVE_IMAGEMAGICK = yes; then
10633 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10635 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10636 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10637 for ac_func in MagickExportImagePixels MagickMergeImageLayers
10638 do :
10639 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10640 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10641 eval as_val=\$$as_ac_var
10642 if test "x$as_val" = x""yes; then :
10643 cat >>confdefs.h <<_ACEOF
10644 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10645 _ACEOF
10648 done
10655 HAVE_GTK=no
10656 GTK_OBJ=
10657 check_gtk2=no
10658 gtk3_pkg_errors=
10659 if test "${with_gtk3}" = "yes" || test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10660 GLIB_REQUIRED=2.28
10661 GTK_REQUIRED=3.0
10662 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10665 succeeded=no
10667 if test "$PKG_CONFIG" = "no" ; then
10668 pkg_check_gtk=no
10669 else
10670 PKG_CONFIG_MIN_VERSION=0.9.0
10671 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10673 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10675 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10676 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10677 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10678 edit_cflags="
10679 s,///*,/,g
10680 s/^/ /
10681 s/ -I/ $isystem/g
10682 s/^ //
10684 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10685 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10687 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10688 succeeded=yes
10689 else
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10691 $as_echo "no" >&6; }
10692 GTK_CFLAGS=""
10693 GTK_LIBS=""
10694 ## If we have a custom action on failure, don't print errors, but
10695 ## do set a variable so people can do so. Do it in a subshell
10696 ## to capture any diagnostics in invoking pkg-config.
10697 GTK_PKG_ERRORS=`($PKG_CONFIG --print-errors "$GTK_MODULES") 2>&1`
10703 else
10704 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10705 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10709 if test $succeeded = yes; then
10710 pkg_check_gtk=yes
10711 else
10712 pkg_check_gtk=no
10715 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
10716 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10718 if test "$pkg_check_gtk" = "yes"; then
10720 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10722 GTK_OBJ=emacsgtkfixed.o
10723 term_header=gtkutil.h
10724 USE_GTK_TOOLKIT="GTK3"
10725 else
10726 check_gtk2=yes
10727 gtk3_pkg_errors="$GTK_PKG_ERRORS "
10731 if test "${with_gtk2}" = "yes" || test "$check_gtk2" = "yes"; then
10732 GLIB_REQUIRED=2.10
10733 GTK_REQUIRED=2.10
10734 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10737 succeeded=no
10739 if test "$PKG_CONFIG" = "no" ; then
10740 pkg_check_gtk=no
10741 else
10742 PKG_CONFIG_MIN_VERSION=0.9.0
10743 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10745 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10747 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10748 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10749 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10750 edit_cflags="
10751 s,///*,/,g
10752 s/^/ /
10753 s/ -I/ $isystem/g
10754 s/^ //
10756 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10757 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10759 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10760 succeeded=yes
10761 else
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10763 $as_echo "no" >&6; }
10764 GTK_CFLAGS=""
10765 GTK_LIBS=""
10766 ## If we have a custom action on failure, don't print errors, but
10767 ## do set a variable so people can do so. Do it in a subshell
10768 ## to capture any diagnostics in invoking pkg-config.
10769 GTK_PKG_ERRORS=`($PKG_CONFIG --print-errors "$GTK_MODULES") 2>&1`
10775 else
10776 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10777 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10781 if test $succeeded = yes; then
10782 pkg_check_gtk=yes
10783 else
10784 pkg_check_gtk=no
10787 if test "$pkg_check_gtk" = "no" &&
10788 { test "$with_gtk" = yes || test "$with_gtk2" = "yes"; }
10789 then
10790 as_fn_error "$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
10792 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT="GTK2"
10795 if test x"$pkg_check_gtk" = xyes; then
10799 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10800 CFLAGS="$CFLAGS $GTK_CFLAGS"
10801 LIBS="$GTK_LIBS $LIBS"
10802 GTK_COMPILES=no
10803 for ac_func in gtk_main
10804 do :
10805 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10806 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10807 cat >>confdefs.h <<_ACEOF
10808 #define HAVE_GTK_MAIN 1
10809 _ACEOF
10810 GTK_COMPILES=yes
10812 done
10814 if test "${GTK_COMPILES}" != "yes"; then
10815 if test "$USE_X_TOOLKIT" != "maybe"; then
10816 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10818 else
10819 HAVE_GTK=yes
10821 $as_echo "#define USE_GTK 1" >>confdefs.h
10823 GTK_OBJ="gtkutil.o $GTK_OBJ"
10824 USE_X_TOOLKIT=none
10825 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10827 else
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10829 closing open displays. This is no problem if you just use
10830 one display, but if you use more than one and close one of them
10831 Emacs may crash." >&5
10832 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10833 closing open displays. This is no problem if you just use
10834 one display, but if you use more than one and close one of them
10835 Emacs may crash." >&2;}
10836 sleep 3
10844 if test "${HAVE_GTK}" = "yes"; then
10846 if test "$with_toolkit_scroll_bars" != no; then
10847 with_toolkit_scroll_bars=yes
10850 HAVE_GTK_FILE_SELECTION=no
10851 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10852 #include <gtk/gtk.h>
10854 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10855 HAVE_GTK_FILE_SELECTION=yes
10856 else
10857 HAVE_GTK_FILE_SELECTION=no
10860 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10861 for ac_func in gtk_file_selection_new
10862 do :
10863 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10864 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10865 cat >>confdefs.h <<_ACEOF
10866 #define HAVE_GTK_FILE_SELECTION_NEW 1
10867 _ACEOF
10870 done
10875 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10876 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10877 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10878 gtk_orientable_set_orientation \
10879 gtk_window_set_has_resize_grip
10880 do :
10881 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10882 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10883 eval as_val=\$$as_ac_var
10884 if test "x$as_val" = x""yes; then :
10885 cat >>confdefs.h <<_ACEOF
10886 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10887 _ACEOF
10890 done
10893 term_header=gtkutil.h
10896 HAVE_DBUS=no
10897 DBUS_OBJ=
10898 if test "${with_dbus}" = "yes"; then
10900 succeeded=no
10902 if test "$PKG_CONFIG" = "no" ; then
10903 HAVE_DBUS=no
10904 else
10905 PKG_CONFIG_MIN_VERSION=0.9.0
10906 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10908 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10910 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
10911 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
10912 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
10913 edit_cflags="
10914 s,///*,/,g
10915 s/^/ /
10916 s/ -I/ $isystem/g
10917 s/^ //
10919 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
10920 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
10922 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
10923 succeeded=yes
10924 else
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10926 $as_echo "no" >&6; }
10927 DBUS_CFLAGS=""
10928 DBUS_LIBS=""
10929 ## If we have a custom action on failure, don't print errors, but
10930 ## do set a variable so people can do so. Do it in a subshell
10931 ## to capture any diagnostics in invoking pkg-config.
10932 DBUS_PKG_ERRORS=`($PKG_CONFIG --print-errors "dbus-1 >= 1.0") 2>&1`
10938 else
10939 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10940 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10944 if test $succeeded = yes; then
10945 HAVE_DBUS=yes
10946 else
10947 HAVE_DBUS=no
10950 if test "$HAVE_DBUS" = yes; then
10951 LIBS="$LIBS $DBUS_LIBS"
10953 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10955 for ac_func in dbus_watch_get_unix_fd \
10956 dbus_type_is_valid \
10957 dbus_validate_bus_name \
10958 dbus_validate_path \
10959 dbus_validate_interface \
10960 dbus_validate_member
10961 do :
10962 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10963 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10964 eval as_val=\$$as_ac_var
10965 if test "x$as_val" = x""yes; then :
10966 cat >>confdefs.h <<_ACEOF
10967 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10968 _ACEOF
10971 done
10973 DBUS_OBJ=dbusbind.o
10978 HAVE_GSETTINGS=no
10979 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
10981 succeeded=no
10983 if test "$PKG_CONFIG" = "no" ; then
10984 HAVE_GSETTINGS=no
10985 else
10986 PKG_CONFIG_MIN_VERSION=0.9.0
10987 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
10989 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
10991 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
10992 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
10993 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
10994 edit_cflags="
10995 s,///*,/,g
10996 s/^/ /
10997 s/ -I/ $isystem/g
10998 s/^ //
11000 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11001 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11003 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11004 succeeded=yes
11005 else
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11007 $as_echo "no" >&6; }
11008 GSETTINGS_CFLAGS=""
11009 GSETTINGS_LIBS=""
11010 ## If we have a custom action on failure, don't print errors, but
11011 ## do set a variable so people can do so. Do it in a subshell
11012 ## to capture any diagnostics in invoking pkg-config.
11013 GSETTINGS_PKG_ERRORS=`($PKG_CONFIG --print-errors "gio-2.0 >= 2.26") 2>&1`
11019 else
11020 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11021 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11025 if test $succeeded = yes; then
11026 HAVE_GSETTINGS=yes
11027 else
11028 HAVE_GSETTINGS=no
11031 if test "$HAVE_GSETTINGS" = "yes"; then
11033 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11035 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11036 SETTINGS_LIBS="$GSETTINGS_LIBS"
11040 HAVE_GCONF=no
11041 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11043 succeeded=no
11045 if test "$PKG_CONFIG" = "no" ; then
11046 HAVE_GCONF=no
11047 else
11048 PKG_CONFIG_MIN_VERSION=0.9.0
11049 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11051 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11053 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
11054 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11055 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
11056 edit_cflags="
11057 s,///*,/,g
11058 s/^/ /
11059 s/ -I/ $isystem/g
11060 s/^ //
11062 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11063 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11065 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11066 succeeded=yes
11067 else
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11069 $as_echo "no" >&6; }
11070 GCONF_CFLAGS=""
11071 GCONF_LIBS=""
11072 ## If we have a custom action on failure, don't print errors, but
11073 ## do set a variable so people can do so. Do it in a subshell
11074 ## to capture any diagnostics in invoking pkg-config.
11075 GCONF_PKG_ERRORS=`($PKG_CONFIG --print-errors "gconf-2.0 >= 2.13") 2>&1`
11081 else
11082 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11083 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11087 if test $succeeded = yes; then
11088 HAVE_GCONF=yes
11089 else
11090 HAVE_GCONF=no
11093 if test "$HAVE_GCONF" = yes; then
11095 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11097 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11098 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
11102 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
11104 succeeded=no
11106 if test "$PKG_CONFIG" = "no" ; then
11107 HAVE_GOBJECT=no
11108 else
11109 PKG_CONFIG_MIN_VERSION=0.9.0
11110 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11112 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11114 if $PKG_CONFIG --exists "gobject-2.0 >= 2.0" 2>&5 &&
11115 GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11116 GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 >= 2.0" 2>&5`; then
11117 edit_cflags="
11118 s,///*,/,g
11119 s/^/ /
11120 s/ -I/ $isystem/g
11121 s/^ //
11123 GOBJECT_CFLAGS=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11124 GOBJECT_LIBS=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11126 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11127 succeeded=yes
11128 else
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11130 $as_echo "no" >&6; }
11131 GOBJECT_CFLAGS=""
11132 GOBJECT_LIBS=""
11133 ## If we have a custom action on failure, don't print errors, but
11134 ## do set a variable so people can do so. Do it in a subshell
11135 ## to capture any diagnostics in invoking pkg-config.
11136 GOBJECT_PKG_ERRORS=`($PKG_CONFIG --print-errors "gobject-2.0 >= 2.0") 2>&1`
11142 else
11143 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11144 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11148 if test $succeeded = yes; then
11149 HAVE_GOBJECT=yes
11150 else
11151 HAVE_GOBJECT=no
11154 if test "$HAVE_GOBJECT" = "yes"; then
11155 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11156 SETTINGS_LIBS="$SETTINGS_LIBS $GOBJECT_LIBS"
11158 SAVE_CFLAGS="$CFLAGS"
11159 SAVE_LIBS="$LIBS"
11160 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
11161 LIBS="$SETTINGS_LIBS $LIBS"
11162 for ac_func in g_type_init
11163 do :
11164 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11165 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11166 cat >>confdefs.h <<_ACEOF
11167 #define HAVE_G_TYPE_INIT 1
11168 _ACEOF
11171 done
11173 CFLAGS="$SAVE_CFLAGS"
11174 LIBS="$SAVE_LIBS"
11180 HAVE_LIBSELINUX=no
11181 LIBSELINUX_LIBS=
11182 if test "${with_selinux}" = "yes"; then
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11184 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11185 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11186 $as_echo_n "(cached) " >&6
11187 else
11188 ac_check_lib_save_LIBS=$LIBS
11189 LIBS="-lselinux $LIBS"
11190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11191 /* end confdefs.h. */
11193 /* Override any GCC internal prototype to avoid an error.
11194 Use char because int might match the return type of a GCC
11195 builtin and then its argument prototype would still apply. */
11196 #ifdef __cplusplus
11197 extern "C"
11198 #endif
11199 char lgetfilecon ();
11201 main ()
11203 return lgetfilecon ();
11205 return 0;
11207 _ACEOF
11208 if ac_fn_c_try_link "$LINENO"; then :
11209 ac_cv_lib_selinux_lgetfilecon=yes
11210 else
11211 ac_cv_lib_selinux_lgetfilecon=no
11213 rm -f core conftest.err conftest.$ac_objext \
11214 conftest$ac_exeext conftest.$ac_ext
11215 LIBS=$ac_check_lib_save_LIBS
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11218 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11219 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11220 HAVE_LIBSELINUX=yes
11221 else
11222 HAVE_LIBSELINUX=no
11225 if test "$HAVE_LIBSELINUX" = yes; then
11227 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11229 LIBSELINUX_LIBS=-lselinux
11234 HAVE_GNUTLS=no
11235 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11236 if test "${with_gnutls}" = "yes" ; then
11238 succeeded=no
11240 if test "$PKG_CONFIG" = "no" ; then
11241 HAVE_GNUTLS=no
11242 else
11243 PKG_CONFIG_MIN_VERSION=0.9.0
11244 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11246 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11248 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
11249 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
11250 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
11251 edit_cflags="
11252 s,///*,/,g
11253 s/^/ /
11254 s/ -I/ $isystem/g
11255 s/^ //
11257 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11258 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11260 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11261 succeeded=yes
11262 else
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11264 $as_echo "no" >&6; }
11265 LIBGNUTLS_CFLAGS=""
11266 LIBGNUTLS_LIBS=""
11267 ## If we have a custom action on failure, don't print errors, but
11268 ## do set a variable so people can do so. Do it in a subshell
11269 ## to capture any diagnostics in invoking pkg-config.
11270 LIBGNUTLS_PKG_ERRORS=`($PKG_CONFIG --print-errors "gnutls >= 2.6.6") 2>&1`
11276 else
11277 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11278 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11282 if test $succeeded = yes; then
11283 HAVE_GNUTLS=yes
11284 else
11285 HAVE_GNUTLS=no
11288 if test "${HAVE_GNUTLS}" = "yes"; then
11290 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11294 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11295 LIBS="$LIBGNUTLS_LIBS $LIBS"
11296 for ac_func in gnutls_certificate_set_verify_function
11297 do :
11298 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11299 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11300 cat >>confdefs.h <<_ACEOF
11301 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11302 _ACEOF
11303 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11305 done
11308 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11310 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11318 HAVE_XAW3D=no
11319 LUCID_LIBW=
11320 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11321 if test "$with_xaw3d" != no; then
11322 if test "${emacs_cv_xaw3d+set}" = set; then :
11323 $as_echo_n "(cached) " >&6
11324 else
11325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11326 /* end confdefs.h. */
11328 #include <X11/Intrinsic.h>
11329 #include <X11/Xaw3d/Simple.h>
11331 main ()
11335 return 0;
11337 _ACEOF
11338 if ac_fn_c_try_link "$LINENO"; then :
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11340 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11341 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11342 $as_echo_n "(cached) " >&6
11343 else
11344 ac_check_lib_save_LIBS=$LIBS
11345 LIBS="-lXaw3d $LIBS"
11346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11347 /* end confdefs.h. */
11349 /* Override any GCC internal prototype to avoid an error.
11350 Use char because int might match the return type of a GCC
11351 builtin and then its argument prototype would still apply. */
11352 #ifdef __cplusplus
11353 extern "C"
11354 #endif
11355 char XawScrollbarSetThumb ();
11357 main ()
11359 return XawScrollbarSetThumb ();
11361 return 0;
11363 _ACEOF
11364 if ac_fn_c_try_link "$LINENO"; then :
11365 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11366 else
11367 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11369 rm -f core conftest.err conftest.$ac_objext \
11370 conftest$ac_exeext conftest.$ac_ext
11371 LIBS=$ac_check_lib_save_LIBS
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11374 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11375 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11376 emacs_cv_xaw3d=yes
11377 else
11378 emacs_cv_xaw3d=no
11381 else
11382 emacs_cv_xaw3d=no
11384 rm -f core conftest.err conftest.$ac_objext \
11385 conftest$ac_exeext conftest.$ac_ext
11388 else
11389 emacs_cv_xaw3d=no
11391 if test $emacs_cv_xaw3d = yes; then
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11393 $as_echo_n "checking for xaw3d... " >&6; }
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11395 $as_echo "yes; using Lucid toolkit" >&6; }
11396 USE_X_TOOLKIT=LUCID
11397 HAVE_XAW3D=yes
11398 LUCID_LIBW=-lXaw3d
11400 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11402 else
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11404 $as_echo_n "checking for xaw3d... " >&6; }
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11406 $as_echo "no" >&6; }
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11408 $as_echo_n "checking for libXaw... " >&6; }
11409 if test "${emacs_cv_xaw+set}" = set; then :
11410 $as_echo_n "(cached) " >&6
11411 else
11412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11413 /* end confdefs.h. */
11415 #include <X11/Intrinsic.h>
11416 #include <X11/Xaw/Simple.h>
11418 main ()
11422 return 0;
11424 _ACEOF
11425 if ac_fn_c_try_link "$LINENO"; then :
11426 emacs_cv_xaw=yes
11427 else
11428 emacs_cv_xaw=no
11430 rm -f core conftest.err conftest.$ac_objext \
11431 conftest$ac_exeext conftest.$ac_ext
11434 if test $emacs_cv_xaw = yes; then
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11436 $as_echo "yes; using Lucid toolkit" >&6; }
11437 USE_X_TOOLKIT=LUCID
11438 LUCID_LIBW=-lXaw
11439 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11440 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11441 else
11442 as_fn_error "No X toolkit could be found.
11443 If you are sure you want Emacs compiled without an X toolkit, pass
11444 --with-x-toolkit=no
11445 to configure. Otherwise, install the development libraries for the toolkit
11446 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11451 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11453 LIBXTR6=
11454 if test "${USE_X_TOOLKIT}" != "none"; then
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11456 $as_echo_n "checking X11 toolkit version... " >&6; }
11457 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11458 $as_echo_n "(cached) " >&6
11459 else
11460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11461 /* end confdefs.h. */
11462 #include <X11/Intrinsic.h>
11464 main ()
11466 #if XtSpecificationRelease < 6
11467 fail;
11468 #endif
11471 return 0;
11473 _ACEOF
11474 if ac_fn_c_try_link "$LINENO"; then :
11475 emacs_cv_x11_toolkit_version_6=yes
11476 else
11477 emacs_cv_x11_toolkit_version_6=no
11479 rm -f core conftest.err conftest.$ac_objext \
11480 conftest$ac_exeext conftest.$ac_ext
11483 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11484 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11486 $as_echo "6 or newer" >&6; }
11488 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11490 LIBXTR6="-lSM -lICE"
11491 case "$opsys" in
11492 ## Use libw.a along with X11R6 Xt.
11493 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11494 esac
11495 else
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11497 $as_echo "before 6" >&6; }
11500 OLDLIBS="$LIBS"
11501 if test x$HAVE_X11XTR6 = xyes; then
11502 LIBS="-lXt -lSM -lICE $LIBS"
11503 else
11504 LIBS="-lXt $LIBS"
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11507 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11508 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11509 $as_echo_n "(cached) " >&6
11510 else
11511 ac_check_lib_save_LIBS=$LIBS
11512 LIBS="-lXmu $LIBS"
11513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11514 /* end confdefs.h. */
11516 /* Override any GCC internal prototype to avoid an error.
11517 Use char because int might match the return type of a GCC
11518 builtin and then its argument prototype would still apply. */
11519 #ifdef __cplusplus
11520 extern "C"
11521 #endif
11522 char XmuConvertStandardSelection ();
11524 main ()
11526 return XmuConvertStandardSelection ();
11528 return 0;
11530 _ACEOF
11531 if ac_fn_c_try_link "$LINENO"; then :
11532 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11533 else
11534 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11536 rm -f core conftest.err conftest.$ac_objext \
11537 conftest$ac_exeext conftest.$ac_ext
11538 LIBS=$ac_check_lib_save_LIBS
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11541 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11542 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11543 cat >>confdefs.h <<_ACEOF
11544 #define HAVE_LIBXMU 1
11545 _ACEOF
11547 LIBS="-lXmu $LIBS"
11551 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11555 LIBXMU=-lXmu
11556 case $opsys in
11557 ## These systems don't supply Xmu.
11558 hpux* | aix4-2 )
11559 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11561 esac
11564 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11565 if test "${HAVE_X11}" = "yes"; then
11566 if test "${USE_X_TOOLKIT}" != "none"; then
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11568 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11569 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11570 $as_echo_n "(cached) " >&6
11571 else
11572 ac_check_lib_save_LIBS=$LIBS
11573 LIBS="-lXext $LIBS"
11574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11575 /* end confdefs.h. */
11577 /* Override any GCC internal prototype to avoid an error.
11578 Use char because int might match the return type of a GCC
11579 builtin and then its argument prototype would still apply. */
11580 #ifdef __cplusplus
11581 extern "C"
11582 #endif
11583 char XShapeQueryExtension ();
11585 main ()
11587 return XShapeQueryExtension ();
11589 return 0;
11591 _ACEOF
11592 if ac_fn_c_try_link "$LINENO"; then :
11593 ac_cv_lib_Xext_XShapeQueryExtension=yes
11594 else
11595 ac_cv_lib_Xext_XShapeQueryExtension=no
11597 rm -f core conftest.err conftest.$ac_objext \
11598 conftest$ac_exeext conftest.$ac_ext
11599 LIBS=$ac_check_lib_save_LIBS
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11602 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11603 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11604 cat >>confdefs.h <<_ACEOF
11605 #define HAVE_LIBXEXT 1
11606 _ACEOF
11608 LIBS="-lXext $LIBS"
11615 LIBXP=
11616 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11617 # OpenMotif may be installed in such a way on some GNU/Linux systems.
11618 if test -d /usr/include/openmotif; then
11619 CPPFLAGS="-I/usr/include/openmotif $CPPFLAGS"
11620 emacs_cv_openmotif=yes
11621 case "$canonical" in
11622 x86_64-*-linux-gnu* | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*)
11623 test -d /usr/lib64/openmotif && LDFLAGS="-L/usr/lib64/openmotif $LDFLAGS"
11626 test -d /usr/lib/openmotif && LDFLAGS="-L/usr/lib/openmotif $LDFLAGS"
11627 esac
11628 else
11629 emacs_cv_openmotif=no
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
11632 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
11633 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11634 $as_echo_n "(cached) " >&6
11635 else
11636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11637 /* end confdefs.h. */
11638 #include <Xm/Xm.h>
11640 main ()
11642 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11643 int x = 5;
11644 #else
11645 Motif version prior to 2.1.
11646 #endif
11648 return 0;
11650 _ACEOF
11651 if ac_fn_c_try_compile "$LINENO"; then :
11652 emacs_cv_motif_version_2_1=yes
11653 else
11654 emacs_cv_motif_version_2_1=no
11656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11659 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11660 if test $emacs_cv_motif_version_2_1 = yes; then
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11662 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11663 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11664 $as_echo_n "(cached) " >&6
11665 else
11666 ac_check_lib_save_LIBS=$LIBS
11667 LIBS="-lXp $LIBS"
11668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11669 /* end confdefs.h. */
11671 /* Override any GCC internal prototype to avoid an error.
11672 Use char because int might match the return type of a GCC
11673 builtin and then its argument prototype would still apply. */
11674 #ifdef __cplusplus
11675 extern "C"
11676 #endif
11677 char XpCreateContext ();
11679 main ()
11681 return XpCreateContext ();
11683 return 0;
11685 _ACEOF
11686 if ac_fn_c_try_link "$LINENO"; then :
11687 ac_cv_lib_Xp_XpCreateContext=yes
11688 else
11689 ac_cv_lib_Xp_XpCreateContext=no
11691 rm -f core conftest.err conftest.$ac_objext \
11692 conftest$ac_exeext conftest.$ac_ext
11693 LIBS=$ac_check_lib_save_LIBS
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11696 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11697 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11698 LIBXP=-lXp
11701 if test x$emacs_cv_openmotif = xyes; then
11702 REAL_CPPFLAGS="-I/usr/include/openmotif $REAL_CPPFLAGS"
11704 else
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11706 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11707 if test "${emacs_cv_lesstif+set}" = set; then :
11708 $as_echo_n "(cached) " >&6
11709 else
11710 # We put this in CFLAGS temporarily to precede other -I options
11711 # that might be in CFLAGS temporarily.
11712 # We put this in CPPFLAGS where it precedes the other -I options.
11713 OLD_CPPFLAGS=$CPPFLAGS
11714 OLD_CFLAGS=$CFLAGS
11715 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11716 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11718 /* end confdefs.h. */
11719 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11721 main ()
11723 int x = 5;
11725 return 0;
11727 _ACEOF
11728 if ac_fn_c_try_compile "$LINENO"; then :
11729 emacs_cv_lesstif=yes
11730 else
11731 emacs_cv_lesstif=no
11733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11736 $as_echo "$emacs_cv_lesstif" >&6; }
11737 if test $emacs_cv_lesstif = yes; then
11738 # Make sure this -I option remains in CPPFLAGS after it is set
11739 # back to REAL_CPPFLAGS.
11740 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11741 # have those other -I options anyway. Ultimately, having this
11742 # directory ultimately in CPPFLAGS will be enough.
11743 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11744 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11745 else
11746 CFLAGS=$OLD_CFLAGS
11747 CPPFLAGS=$OLD_CPPFLAGS
11750 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
11751 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
11753 else
11754 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
11761 USE_TOOLKIT_SCROLL_BARS=no
11762 if test "${with_toolkit_scroll_bars}" != "no"; then
11763 if test "${USE_X_TOOLKIT}" != "none"; then
11764 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11765 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11767 HAVE_XAW3D=no
11768 USE_TOOLKIT_SCROLL_BARS=yes
11769 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
11770 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11772 USE_TOOLKIT_SCROLL_BARS=yes
11774 elif test "${HAVE_GTK}" = "yes"; then
11775 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11777 USE_TOOLKIT_SCROLL_BARS=yes
11778 elif test "${HAVE_NS}" = "yes"; then
11779 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11781 USE_TOOLKIT_SCROLL_BARS=yes
11782 elif test "${HAVE_W32}" = "yes"; then
11783 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11785 USE_TOOLKIT_SCROLL_BARS=yes
11789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790 /* end confdefs.h. */
11792 #include <X11/Xlib.h>
11793 #include <X11/Xresource.h>
11795 main ()
11797 XIMProc callback;
11799 return 0;
11801 _ACEOF
11802 if ac_fn_c_try_compile "$LINENO"; then :
11803 HAVE_XIM=yes
11805 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11807 else
11808 HAVE_XIM=no
11810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11813 if test "${with_xim}" != "no"; then
11815 $as_echo "#define USE_XIM 1" >>confdefs.h
11820 if test "${HAVE_XIM}" != "no"; then
11821 late_CFLAGS=$CFLAGS
11822 if test "$GCC" = yes; then
11823 CFLAGS="$CFLAGS --pedantic-errors"
11825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11826 /* end confdefs.h. */
11828 #include <X11/Xlib.h>
11829 #include <X11/Xresource.h>
11831 main ()
11833 Display *display;
11834 XrmDatabase db;
11835 char *res_name;
11836 char *res_class;
11837 XIMProc callback;
11838 XPointer *client_data;
11839 #ifndef __GNUC__
11840 /* If we're not using GCC, it's probably not XFree86, and this is
11841 probably right, but we can't use something like --pedantic-errors. */
11842 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11843 char*, XIMProc, XPointer*);
11844 #endif
11845 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11846 client_data);
11848 return 0;
11850 _ACEOF
11851 if ac_fn_c_try_compile "$LINENO"; then :
11852 emacs_cv_arg6_star=yes
11854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11855 if test "$emacs_cv_arg6_star" = yes; then
11856 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11858 else
11859 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11862 CFLAGS=$late_CFLAGS
11865 ### Start of font-backend (under any platform) section.
11866 # (nothing here yet -- this is a placeholder)
11867 ### End of font-backend (under any platform) section.
11869 ### Start of font-backend (under X11) section.
11870 if test "${HAVE_X11}" = "yes"; then
11872 succeeded=no
11874 if test "$PKG_CONFIG" = "no" ; then
11875 HAVE_FC=no
11876 else
11877 PKG_CONFIG_MIN_VERSION=0.9.0
11878 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11880 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11882 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
11883 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
11884 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
11885 edit_cflags="
11886 s,///*,/,g
11887 s/^/ /
11888 s/ -I/ $isystem/g
11889 s/^ //
11891 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
11892 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
11894 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
11895 succeeded=yes
11896 else
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11898 $as_echo "no" >&6; }
11899 FONTCONFIG_CFLAGS=""
11900 FONTCONFIG_LIBS=""
11901 ## If we have a custom action on failure, don't print errors, but
11902 ## do set a variable so people can do so. Do it in a subshell
11903 ## to capture any diagnostics in invoking pkg-config.
11904 FONTCONFIG_PKG_ERRORS=`($PKG_CONFIG --print-errors "fontconfig >= 2.2.0") 2>&1`
11910 else
11911 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11912 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11916 if test $succeeded = yes; then
11917 HAVE_FC=yes
11918 else
11919 HAVE_FC=no
11923 ## Use -lXft if available, unless `--with-xft=no'.
11924 HAVE_XFT=maybe
11925 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11926 with_xft="no";
11928 if test "x${with_xft}" != "xno"; then
11931 succeeded=no
11933 if test "$PKG_CONFIG" = "no" ; then
11934 HAVE_XFT=no
11935 else
11936 PKG_CONFIG_MIN_VERSION=0.9.0
11937 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11939 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11941 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
11942 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
11943 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
11944 edit_cflags="
11945 s,///*,/,g
11946 s/^/ /
11947 s/ -I/ $isystem/g
11948 s/^ //
11950 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
11951 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
11953 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
11954 succeeded=yes
11955 else
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11957 $as_echo "no" >&6; }
11958 XFT_CFLAGS=""
11959 XFT_LIBS=""
11960 ## If we have a custom action on failure, don't print errors, but
11961 ## do set a variable so people can do so. Do it in a subshell
11962 ## to capture any diagnostics in invoking pkg-config.
11963 XFT_PKG_ERRORS=`($PKG_CONFIG --print-errors "xft >= 0.13.0") 2>&1`
11969 else
11970 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11971 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11975 if test $succeeded = yes; then
11977 else
11978 HAVE_XFT=no
11981 ## Because xftfont.c uses XRenderQueryExtension, we also
11982 ## need to link to -lXrender.
11983 HAVE_XRENDER=no
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11985 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11986 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11987 $as_echo_n "(cached) " >&6
11988 else
11989 ac_check_lib_save_LIBS=$LIBS
11990 LIBS="-lXrender $LIBS"
11991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11992 /* end confdefs.h. */
11994 /* Override any GCC internal prototype to avoid an error.
11995 Use char because int might match the return type of a GCC
11996 builtin and then its argument prototype would still apply. */
11997 #ifdef __cplusplus
11998 extern "C"
11999 #endif
12000 char XRenderQueryExtension ();
12002 main ()
12004 return XRenderQueryExtension ();
12006 return 0;
12008 _ACEOF
12009 if ac_fn_c_try_link "$LINENO"; then :
12010 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12011 else
12012 ac_cv_lib_Xrender_XRenderQueryExtension=no
12014 rm -f core conftest.err conftest.$ac_objext \
12015 conftest$ac_exeext conftest.$ac_ext
12016 LIBS=$ac_check_lib_save_LIBS
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12019 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12020 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12021 HAVE_XRENDER=yes
12024 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12025 OLD_CPPFLAGS="$CPPFLAGS"
12026 OLD_CFLAGS="$CFLAGS"
12027 OLD_LIBS="$LIBS"
12028 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12029 CFLAGS="$CFLAGS $XFT_CFLAGS"
12030 XFT_LIBS="-lXrender $XFT_LIBS"
12031 LIBS="$XFT_LIBS $LIBS"
12032 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12033 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12035 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12036 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12037 $as_echo_n "(cached) " >&6
12038 else
12039 ac_check_lib_save_LIBS=$LIBS
12040 LIBS="-lXft $XFT_LIBS $LIBS"
12041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12042 /* end confdefs.h. */
12044 /* Override any GCC internal prototype to avoid an error.
12045 Use char because int might match the return type of a GCC
12046 builtin and then its argument prototype would still apply. */
12047 #ifdef __cplusplus
12048 extern "C"
12049 #endif
12050 char XftFontOpen ();
12052 main ()
12054 return XftFontOpen ();
12056 return 0;
12058 _ACEOF
12059 if ac_fn_c_try_link "$LINENO"; then :
12060 ac_cv_lib_Xft_XftFontOpen=yes
12061 else
12062 ac_cv_lib_Xft_XftFontOpen=no
12064 rm -f core conftest.err conftest.$ac_objext \
12065 conftest$ac_exeext conftest.$ac_ext
12066 LIBS=$ac_check_lib_save_LIBS
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12069 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12070 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12071 HAVE_XFT=yes
12078 if test "${HAVE_XFT}" = "yes"; then
12080 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12083 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12084 else
12085 CPPFLAGS="$OLD_CPPFLAGS"
12086 CFLAGS="$OLD_CFLAGS"
12087 LIBS="$OLD_LIBS"
12088 fi # "${HAVE_XFT}" = "yes"
12089 fi # "$HAVE_XFT" != no
12090 fi # "x${with_xft}" != "xno"
12092 ## We used to allow building with FreeType and without Xft.
12093 ## However, the ftx font backend driver is not in good shape.
12094 if test "$HAVE_XFT" != "yes"; then
12095 HAVE_XFT=no
12096 HAVE_FREETYPE=no
12097 else
12099 succeeded=no
12101 if test "$PKG_CONFIG" = "no" ; then
12102 HAVE_FREETYPE=no
12103 else
12104 PKG_CONFIG_MIN_VERSION=0.9.0
12105 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12107 $as_echo_n "checking for freetype2... " >&6; }
12109 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
12110 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
12111 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
12112 edit_cflags="
12113 s,///*,/,g
12114 s/^/ /
12115 s/ -I/ $isystem/g
12116 s/^ //
12118 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12119 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12121 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12122 succeeded=yes
12123 else
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12125 $as_echo "no" >&6; }
12126 FREETYPE_CFLAGS=""
12127 FREETYPE_LIBS=""
12128 ## If we have a custom action on failure, don't print errors, but
12129 ## do set a variable so people can do so. Do it in a subshell
12130 ## to capture any diagnostics in invoking pkg-config.
12131 FREETYPE_PKG_ERRORS=`($PKG_CONFIG --print-errors "freetype2") 2>&1`
12137 else
12138 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12139 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12143 if test $succeeded = yes; then
12144 HAVE_FREETYPE=yes
12145 else
12146 HAVE_FREETYPE=no
12150 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12153 HAVE_LIBOTF=no
12154 if test "${HAVE_FREETYPE}" = "yes"; then
12156 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12158 if test "${with_libotf}" != "no"; then
12160 succeeded=no
12162 if test "$PKG_CONFIG" = "no" ; then
12163 HAVE_LIBOTF=no
12164 else
12165 PKG_CONFIG_MIN_VERSION=0.9.0
12166 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12168 $as_echo_n "checking for libotf... " >&6; }
12170 if $PKG_CONFIG --exists "libotf" 2>&5 &&
12171 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
12172 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf" 2>&5`; then
12173 edit_cflags="
12174 s,///*,/,g
12175 s/^/ /
12176 s/ -I/ $isystem/g
12177 s/^ //
12179 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12180 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12182 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12183 succeeded=yes
12184 else
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12186 $as_echo "no" >&6; }
12187 LIBOTF_CFLAGS=""
12188 LIBOTF_LIBS=""
12189 ## If we have a custom action on failure, don't print errors, but
12190 ## do set a variable so people can do so. Do it in a subshell
12191 ## to capture any diagnostics in invoking pkg-config.
12192 LIBOTF_PKG_ERRORS=`($PKG_CONFIG --print-errors "libotf") 2>&1`
12198 else
12199 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12200 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12204 if test $succeeded = yes; then
12205 HAVE_LIBOTF=yes
12206 else
12207 HAVE_LIBOTF=no
12210 if test "$HAVE_LIBOTF" = "yes"; then
12212 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12215 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12216 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12217 $as_echo_n "(cached) " >&6
12218 else
12219 ac_check_lib_save_LIBS=$LIBS
12220 LIBS="-lotf $LIBS"
12221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12222 /* end confdefs.h. */
12224 /* Override any GCC internal prototype to avoid an error.
12225 Use char because int might match the return type of a GCC
12226 builtin and then its argument prototype would still apply. */
12227 #ifdef __cplusplus
12228 extern "C"
12229 #endif
12230 char OTF_get_variation_glyphs ();
12232 main ()
12234 return OTF_get_variation_glyphs ();
12236 return 0;
12238 _ACEOF
12239 if ac_fn_c_try_link "$LINENO"; then :
12240 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12241 else
12242 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12244 rm -f core conftest.err conftest.$ac_objext \
12245 conftest$ac_exeext conftest.$ac_ext
12246 LIBS=$ac_check_lib_save_LIBS
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12249 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12250 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12251 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12252 else
12253 HAVE_OTF_GET_VARIATION_GLYPHS=no
12256 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12258 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12265 HAVE_M17N_FLT=no
12266 if test "${HAVE_LIBOTF}" = yes; then
12267 if test "${with_m17n_flt}" != "no"; then
12269 succeeded=no
12271 if test "$PKG_CONFIG" = "no" ; then
12272 HAVE_M17N_FLT=no
12273 else
12274 PKG_CONFIG_MIN_VERSION=0.9.0
12275 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12277 $as_echo_n "checking for m17n-flt... " >&6; }
12279 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
12280 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
12281 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
12282 edit_cflags="
12283 s,///*,/,g
12284 s/^/ /
12285 s/ -I/ $isystem/g
12286 s/^ //
12288 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12289 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12291 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12292 succeeded=yes
12293 else
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295 $as_echo "no" >&6; }
12296 M17N_FLT_CFLAGS=""
12297 M17N_FLT_LIBS=""
12298 ## If we have a custom action on failure, don't print errors, but
12299 ## do set a variable so people can do so. Do it in a subshell
12300 ## to capture any diagnostics in invoking pkg-config.
12301 M17N_FLT_PKG_ERRORS=`($PKG_CONFIG --print-errors "m17n-flt") 2>&1`
12307 else
12308 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12309 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12313 if test $succeeded = yes; then
12314 HAVE_M17N_FLT=yes
12315 else
12316 HAVE_M17N_FLT=no
12319 if test "$HAVE_M17N_FLT" = "yes"; then
12321 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12326 else
12327 HAVE_XFT=no
12328 HAVE_FREETYPE=no
12329 HAVE_LIBOTF=no
12330 HAVE_M17N_FLT=no
12333 ### End of font-backend (under X11) section.
12344 ### Use -lXpm if available, unless `--with-xpm=no'.
12345 HAVE_XPM=no
12346 LIBXPM=
12348 if test "${HAVE_W32}" = "yes"; then
12349 if test "${with_xpm}" != "no"; then
12350 SAVE_CPPFLAGS="$CPPFLAGS"
12351 SAVE_LDFLAGS="$LDFLAGS"
12352 CPPFLAGS="$CPPFLAGS -I/usr/include/noX"
12353 LDFLAGS="$LDFLAGS -L/usr/lib/noX"
12354 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12355 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
12357 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
12358 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
12359 $as_echo_n "(cached) " >&6
12360 else
12361 ac_check_lib_save_LIBS=$LIBS
12362 LIBS="-lXpm $LIBS"
12363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12364 /* end confdefs.h. */
12366 /* Override any GCC internal prototype to avoid an error.
12367 Use char because int might match the return type of a GCC
12368 builtin and then its argument prototype would still apply. */
12369 #ifdef __cplusplus
12370 extern "C"
12371 #endif
12372 char XpmReadFileToImage ();
12374 main ()
12376 return XpmReadFileToImage ();
12378 return 0;
12380 _ACEOF
12381 if ac_fn_c_try_link "$LINENO"; then :
12382 ac_cv_lib_Xpm_XpmReadFileToImage=yes
12383 else
12384 ac_cv_lib_Xpm_XpmReadFileToImage=no
12386 rm -f core conftest.err conftest.$ac_objext \
12387 conftest$ac_exeext conftest.$ac_ext
12388 LIBS=$ac_check_lib_save_LIBS
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
12391 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
12392 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x""yes; then :
12393 HAVE_XPM=yes
12399 if test "${HAVE_XPM}" = "yes"; then
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12401 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403 /* end confdefs.h. */
12404 #include "X11/xpm.h"
12405 #ifndef XpmReturnAllocPixels
12406 no_return_alloc_pixels
12407 #endif
12409 _ACEOF
12410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12411 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12412 HAVE_XPM=no
12413 else
12414 HAVE_XPM=yes
12416 rm -f conftest*
12419 if test "${HAVE_XPM}" = "yes"; then
12420 REAL_CPPFLAGS="$REAL_CPPFLAGS -I/usr/include/noX"
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12422 $as_echo "yes" >&6; }
12423 else
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12425 $as_echo "no" >&6; }
12426 CPPFLAGS="$SAVE_CPPFLAGS"
12427 LDFLAGS="$SAVE_LDFLAGS"
12432 if test "${HAVE_XPM}" = "yes"; then
12434 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12436 LIBXPM=-lXpm
12440 if test "${HAVE_X11}" = "yes"; then
12441 if test "${with_xpm}" != "no"; then
12442 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12443 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12445 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12446 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12447 $as_echo_n "(cached) " >&6
12448 else
12449 ac_check_lib_save_LIBS=$LIBS
12450 LIBS="-lXpm -lX11 $LIBS"
12451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12452 /* end confdefs.h. */
12454 /* Override any GCC internal prototype to avoid an error.
12455 Use char because int might match the return type of a GCC
12456 builtin and then its argument prototype would still apply. */
12457 #ifdef __cplusplus
12458 extern "C"
12459 #endif
12460 char XpmReadFileToPixmap ();
12462 main ()
12464 return XpmReadFileToPixmap ();
12466 return 0;
12468 _ACEOF
12469 if ac_fn_c_try_link "$LINENO"; then :
12470 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12471 else
12472 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12474 rm -f core conftest.err conftest.$ac_objext \
12475 conftest$ac_exeext conftest.$ac_ext
12476 LIBS=$ac_check_lib_save_LIBS
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12479 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12480 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12481 HAVE_XPM=yes
12487 if test "${HAVE_XPM}" = "yes"; then
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12489 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12491 /* end confdefs.h. */
12492 #include "X11/xpm.h"
12493 #ifndef XpmReturnAllocPixels
12494 no_return_alloc_pixels
12495 #endif
12497 _ACEOF
12498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12499 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12500 HAVE_XPM=no
12501 else
12502 HAVE_XPM=yes
12504 rm -f conftest*
12507 if test "${HAVE_XPM}" = "yes"; then
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12509 $as_echo "yes" >&6; }
12510 else
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12512 $as_echo "no" >&6; }
12517 if test "${HAVE_XPM}" = "yes"; then
12519 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12521 LIBXPM=-lXpm
12527 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12528 HAVE_JPEG=no
12529 LIBJPEG=
12530 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12531 if test "${with_jpeg}" != "no"; then
12532 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12533 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12535 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12536 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12537 $as_echo_n "(cached) " >&6
12538 else
12539 ac_check_lib_save_LIBS=$LIBS
12540 LIBS="-ljpeg $LIBS"
12541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12542 /* end confdefs.h. */
12544 /* Override any GCC internal prototype to avoid an error.
12545 Use char because int might match the return type of a GCC
12546 builtin and then its argument prototype would still apply. */
12547 #ifdef __cplusplus
12548 extern "C"
12549 #endif
12550 char jpeg_destroy_compress ();
12552 main ()
12554 return jpeg_destroy_compress ();
12556 return 0;
12558 _ACEOF
12559 if ac_fn_c_try_link "$LINENO"; then :
12560 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12561 else
12562 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12564 rm -f core conftest.err conftest.$ac_objext \
12565 conftest$ac_exeext conftest.$ac_ext
12566 LIBS=$ac_check_lib_save_LIBS
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12569 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12570 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12571 HAVE_JPEG=yes
12579 if test "${HAVE_JPEG}" = "yes"; then
12580 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12583 /* end confdefs.h. */
12584 #include <jpeglib.h>
12585 version=JPEG_LIB_VERSION
12587 _ACEOF
12588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12589 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12590 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12592 else
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12594 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12595 HAVE_JPEG=no
12597 rm -f conftest*
12600 if test "${HAVE_JPEG}" = "yes"; then
12601 LIBJPEG=-ljpeg
12606 ### Use -lpng if available, unless `--with-png=no'.
12607 HAVE_PNG=no
12608 LIBPNG=
12609 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12610 if test "${with_png}" != "no"; then
12611 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12612 # in /usr/include/libpng.
12613 for ac_header in png.h libpng/png.h
12614 do :
12615 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12616 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12617 eval as_val=\$$as_ac_Header
12618 if test "x$as_val" = x""yes; then :
12619 cat >>confdefs.h <<_ACEOF
12620 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12621 _ACEOF
12622 break
12625 done
12627 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12629 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12630 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12631 $as_echo_n "(cached) " >&6
12632 else
12633 ac_check_lib_save_LIBS=$LIBS
12634 LIBS="-lpng -lz -lm $LIBS"
12635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12636 /* end confdefs.h. */
12638 /* Override any GCC internal prototype to avoid an error.
12639 Use char because int might match the return type of a GCC
12640 builtin and then its argument prototype would still apply. */
12641 #ifdef __cplusplus
12642 extern "C"
12643 #endif
12644 char png_get_channels ();
12646 main ()
12648 return png_get_channels ();
12650 return 0;
12652 _ACEOF
12653 if ac_fn_c_try_link "$LINENO"; then :
12654 ac_cv_lib_png_png_get_channels=yes
12655 else
12656 ac_cv_lib_png_png_get_channels=no
12658 rm -f core conftest.err conftest.$ac_objext \
12659 conftest$ac_exeext conftest.$ac_ext
12660 LIBS=$ac_check_lib_save_LIBS
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12663 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12664 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12665 HAVE_PNG=yes
12671 if test "${HAVE_PNG}" = "yes"; then
12673 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12675 LIBPNG="-lpng -lz -lm"
12677 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
12678 # include <libpng/png.h>
12679 #else
12680 # include <png.h>
12681 #endif
12684 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
12686 else
12688 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
12696 ### Use -ltiff if available, unless `--with-tiff=no'.
12697 HAVE_TIFF=no
12698 LIBTIFF=
12699 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12700 if test "${with_tiff}" != "no"; then
12701 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12702 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12703 tifflibs="-lz -lm"
12704 # At least one tiff package requires the jpeg library.
12705 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12707 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12708 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12709 $as_echo_n "(cached) " >&6
12710 else
12711 ac_check_lib_save_LIBS=$LIBS
12712 LIBS="-ltiff $tifflibs $LIBS"
12713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12714 /* end confdefs.h. */
12716 /* Override any GCC internal prototype to avoid an error.
12717 Use char because int might match the return type of a GCC
12718 builtin and then its argument prototype would still apply. */
12719 #ifdef __cplusplus
12720 extern "C"
12721 #endif
12722 char TIFFGetVersion ();
12724 main ()
12726 return TIFFGetVersion ();
12728 return 0;
12730 _ACEOF
12731 if ac_fn_c_try_link "$LINENO"; then :
12732 ac_cv_lib_tiff_TIFFGetVersion=yes
12733 else
12734 ac_cv_lib_tiff_TIFFGetVersion=no
12736 rm -f core conftest.err conftest.$ac_objext \
12737 conftest$ac_exeext conftest.$ac_ext
12738 LIBS=$ac_check_lib_save_LIBS
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12741 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12742 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12743 HAVE_TIFF=yes
12751 if test "${HAVE_TIFF}" = "yes"; then
12753 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12755 LIBTIFF=-ltiff
12760 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12761 HAVE_GIF=no
12762 LIBGIF=
12763 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
12764 || test "${HAVE_W32}" = "yes"; then
12765 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12766 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12767 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12768 # Earlier versions can crash Emacs.
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12770 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12771 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12772 $as_echo_n "(cached) " >&6
12773 else
12774 ac_check_lib_save_LIBS=$LIBS
12775 LIBS="-lgif $LIBS"
12776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12777 /* end confdefs.h. */
12779 /* Override any GCC internal prototype to avoid an error.
12780 Use char because int might match the return type of a GCC
12781 builtin and then its argument prototype would still apply. */
12782 #ifdef __cplusplus
12783 extern "C"
12784 #endif
12785 char EGifPutExtensionLast ();
12787 main ()
12789 return EGifPutExtensionLast ();
12791 return 0;
12793 _ACEOF
12794 if ac_fn_c_try_link "$LINENO"; then :
12795 ac_cv_lib_gif_EGifPutExtensionLast=yes
12796 else
12797 ac_cv_lib_gif_EGifPutExtensionLast=no
12799 rm -f core conftest.err conftest.$ac_objext \
12800 conftest$ac_exeext conftest.$ac_ext
12801 LIBS=$ac_check_lib_save_LIBS
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12804 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12805 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
12806 HAVE_GIF=yes
12807 else
12808 HAVE_GIF=maybe
12815 if test "$HAVE_GIF" = yes; then
12816 LIBGIF=-lgif
12817 elif test "$HAVE_GIF" = maybe; then
12818 # If gif_lib.h but no libgif, try libungif.
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12820 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12821 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12822 $as_echo_n "(cached) " >&6
12823 else
12824 ac_check_lib_save_LIBS=$LIBS
12825 LIBS="-lungif $LIBS"
12826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12827 /* end confdefs.h. */
12829 /* Override any GCC internal prototype to avoid an error.
12830 Use char because int might match the return type of a GCC
12831 builtin and then its argument prototype would still apply. */
12832 #ifdef __cplusplus
12833 extern "C"
12834 #endif
12835 char EGifPutExtensionLast ();
12837 main ()
12839 return EGifPutExtensionLast ();
12841 return 0;
12843 _ACEOF
12844 if ac_fn_c_try_link "$LINENO"; then :
12845 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12846 else
12847 ac_cv_lib_ungif_EGifPutExtensionLast=no
12849 rm -f core conftest.err conftest.$ac_objext \
12850 conftest$ac_exeext conftest.$ac_ext
12851 LIBS=$ac_check_lib_save_LIBS
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12854 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12855 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
12856 HAVE_GIF=yes
12857 else
12858 HAVE_GIF=no
12861 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12864 if test "${HAVE_GIF}" = "yes"; then
12866 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12872 if test "${HAVE_X11}" = "yes"; then
12873 MISSING=""
12874 WITH_NO=""
12875 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12876 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12877 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12878 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12879 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12880 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12881 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12882 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12883 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12884 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12886 if test "X${MISSING}" != X; then
12887 as_fn_error "The following required libraries were not found:
12888 $MISSING
12889 Maybe some development libraries/packages are missing?
12890 If you don't want to link with them give
12891 $WITH_NO
12892 as options to configure" "$LINENO" 5
12896 ### Use -lgpm if available, unless `--with-gpm=no'.
12897 HAVE_GPM=no
12898 LIBGPM=
12899 if test "${with_gpm}" != "no"; then
12900 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12901 if test "x$ac_cv_header_gpm_h" = x""yes; then :
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12903 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12904 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12905 $as_echo_n "(cached) " >&6
12906 else
12907 ac_check_lib_save_LIBS=$LIBS
12908 LIBS="-lgpm $LIBS"
12909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12910 /* end confdefs.h. */
12912 /* Override any GCC internal prototype to avoid an error.
12913 Use char because int might match the return type of a GCC
12914 builtin and then its argument prototype would still apply. */
12915 #ifdef __cplusplus
12916 extern "C"
12917 #endif
12918 char Gpm_Open ();
12920 main ()
12922 return Gpm_Open ();
12924 return 0;
12926 _ACEOF
12927 if ac_fn_c_try_link "$LINENO"; then :
12928 ac_cv_lib_gpm_Gpm_Open=yes
12929 else
12930 ac_cv_lib_gpm_Gpm_Open=no
12932 rm -f core conftest.err conftest.$ac_objext \
12933 conftest$ac_exeext conftest.$ac_ext
12934 LIBS=$ac_check_lib_save_LIBS
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12937 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12938 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
12939 HAVE_GPM=yes
12946 if test "${HAVE_GPM}" = "yes"; then
12948 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12950 LIBGPM=-lgpm
12959 GNUSTEP_CFLAGS=
12960 ### Use NeXTstep API to implement GUI.
12961 if test "${HAVE_NS}" = "yes"; then
12963 $as_echo "#define HAVE_NS 1" >>confdefs.h
12965 if test "${NS_IMPL_COCOA}" = "yes"; then
12967 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12970 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12972 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12974 # See also .m.o rule in Makefile.in */
12975 # FIXME: are all these flags really needed? Document here why. */
12976 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
12977 ## Extra CFLAGS applied to src/*.m files.
12978 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"
12980 # We also have mouse menus.
12981 HAVE_MENUS=yes
12982 OTHER_FILES=ns-app
12985 if test "${HAVE_W32}" = "yes"; then
12986 HAVE_MENUS=yes
12989 ### Use session management (-lSM -lICE) if available
12990 HAVE_X_SM=no
12991 LIBXSM=
12992 if test "${HAVE_X11}" = "yes"; then
12993 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12994 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12996 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12997 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12998 $as_echo_n "(cached) " >&6
12999 else
13000 ac_check_lib_save_LIBS=$LIBS
13001 LIBS="-lSM -lICE $LIBS"
13002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13003 /* end confdefs.h. */
13005 /* Override any GCC internal prototype to avoid an error.
13006 Use char because int might match the return type of a GCC
13007 builtin and then its argument prototype would still apply. */
13008 #ifdef __cplusplus
13009 extern "C"
13010 #endif
13011 char SmcOpenConnection ();
13013 main ()
13015 return SmcOpenConnection ();
13017 return 0;
13019 _ACEOF
13020 if ac_fn_c_try_link "$LINENO"; then :
13021 ac_cv_lib_SM_SmcOpenConnection=yes
13022 else
13023 ac_cv_lib_SM_SmcOpenConnection=no
13025 rm -f core conftest.err conftest.$ac_objext \
13026 conftest$ac_exeext conftest.$ac_ext
13027 LIBS=$ac_check_lib_save_LIBS
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13030 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13031 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13032 HAVE_X_SM=yes
13039 if test "${HAVE_X_SM}" = "yes"; then
13041 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13043 LIBXSM="-lSM -lICE"
13044 case "$LIBS" in
13045 *-lSM*) ;;
13046 *) LIBS="$LIBXSM $LIBS" ;;
13047 esac
13052 ### Use libxml (-lxml2) if available
13053 HAVE_LIBXML2=no
13054 if test "${with_xml2}" != "no"; then
13055 ### I'm not sure what the version number should be, so I just guessed.
13057 succeeded=no
13059 if test "$PKG_CONFIG" = "no" ; then
13060 HAVE_LIBXML2=no
13061 else
13062 PKG_CONFIG_MIN_VERSION=0.9.0
13063 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13065 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13067 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
13068 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
13069 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
13070 edit_cflags="
13071 s,///*,/,g
13072 s/^/ /
13073 s/ -I/ $isystem/g
13074 s/^ //
13076 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
13077 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
13079 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
13080 succeeded=yes
13081 else
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13083 $as_echo "no" >&6; }
13084 LIBXML2_CFLAGS=""
13085 LIBXML2_LIBS=""
13086 ## If we have a custom action on failure, don't print errors, but
13087 ## do set a variable so people can do so. Do it in a subshell
13088 ## to capture any diagnostics in invoking pkg-config.
13089 LIBXML2_PKG_ERRORS=`($PKG_CONFIG --print-errors "libxml-2.0 > 2.6.17") 2>&1`
13095 else
13096 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13097 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13101 if test $succeeded = yes; then
13102 HAVE_LIBXML2=yes
13103 else
13104 HAVE_LIBXML2=no
13107 if test "${HAVE_LIBXML2}" = "yes"; then
13108 LIBS="$LIBXML2_LIBS $LIBS"
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13110 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13111 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13112 $as_echo_n "(cached) " >&6
13113 else
13114 ac_check_lib_save_LIBS=$LIBS
13115 LIBS="-lxml2 $LIBS"
13116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117 /* end confdefs.h. */
13119 /* Override any GCC internal prototype to avoid an error.
13120 Use char because int might match the return type of a GCC
13121 builtin and then its argument prototype would still apply. */
13122 #ifdef __cplusplus
13123 extern "C"
13124 #endif
13125 char htmlReadMemory ();
13127 main ()
13129 return htmlReadMemory ();
13131 return 0;
13133 _ACEOF
13134 if ac_fn_c_try_link "$LINENO"; then :
13135 ac_cv_lib_xml2_htmlReadMemory=yes
13136 else
13137 ac_cv_lib_xml2_htmlReadMemory=no
13139 rm -f core conftest.err conftest.$ac_objext \
13140 conftest$ac_exeext conftest.$ac_ext
13141 LIBS=$ac_check_lib_save_LIBS
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13144 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13145 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13146 HAVE_LIBXML2=yes
13147 else
13148 HAVE_LIBXML2=no
13151 if test "${HAVE_LIBXML2}" = "yes"; then
13153 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13155 else
13156 LIBXML2_LIBS=""
13157 LIBXML2_CFLAGS=""
13164 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13166 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13167 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13168 $as_echo_n "(cached) " >&6
13169 else
13170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13171 /* end confdefs.h. */
13172 #include <netdb.h>
13174 main ()
13176 return h_errno;
13178 return 0;
13180 _ACEOF
13181 if ac_fn_c_try_link "$LINENO"; then :
13182 emacs_cv_netdb_declares_h_errno=yes
13183 else
13184 emacs_cv_netdb_declares_h_errno=no
13186 rm -f core conftest.err conftest.$ac_objext \
13187 conftest$ac_exeext conftest.$ac_ext
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13190 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13191 if test $emacs_cv_netdb_declares_h_errno = yes; then
13193 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13197 # sqrt and other floating-point functions such as fmod and frexp
13198 # are found in -lm on most systems.
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13200 $as_echo_n "checking for sqrt in -lm... " >&6; }
13201 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13202 $as_echo_n "(cached) " >&6
13203 else
13204 ac_check_lib_save_LIBS=$LIBS
13205 LIBS="-lm $LIBS"
13206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13207 /* end confdefs.h. */
13209 /* Override any GCC internal prototype to avoid an error.
13210 Use char because int might match the return type of a GCC
13211 builtin and then its argument prototype would still apply. */
13212 #ifdef __cplusplus
13213 extern "C"
13214 #endif
13215 char sqrt ();
13217 main ()
13219 return sqrt ();
13221 return 0;
13223 _ACEOF
13224 if ac_fn_c_try_link "$LINENO"; then :
13225 ac_cv_lib_m_sqrt=yes
13226 else
13227 ac_cv_lib_m_sqrt=no
13229 rm -f core conftest.err conftest.$ac_objext \
13230 conftest$ac_exeext conftest.$ac_ext
13231 LIBS=$ac_check_lib_save_LIBS
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13234 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13235 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13236 cat >>confdefs.h <<_ACEOF
13237 #define HAVE_LIBM 1
13238 _ACEOF
13240 LIBS="-lm $LIBS"
13245 # Check for mail-locking functions in a "mail" library. Probably this should
13246 # have the same check as for liblockfile below.
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13248 $as_echo_n "checking for maillock in -lmail... " >&6; }
13249 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13250 $as_echo_n "(cached) " >&6
13251 else
13252 ac_check_lib_save_LIBS=$LIBS
13253 LIBS="-lmail $LIBS"
13254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13255 /* end confdefs.h. */
13257 /* Override any GCC internal prototype to avoid an error.
13258 Use char because int might match the return type of a GCC
13259 builtin and then its argument prototype would still apply. */
13260 #ifdef __cplusplus
13261 extern "C"
13262 #endif
13263 char maillock ();
13265 main ()
13267 return maillock ();
13269 return 0;
13271 _ACEOF
13272 if ac_fn_c_try_link "$LINENO"; then :
13273 ac_cv_lib_mail_maillock=yes
13274 else
13275 ac_cv_lib_mail_maillock=no
13277 rm -f core conftest.err conftest.$ac_objext \
13278 conftest$ac_exeext conftest.$ac_ext
13279 LIBS=$ac_check_lib_save_LIBS
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13282 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13283 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13284 have_mail=yes
13285 else
13286 have_mail=no
13289 if test $have_mail = yes; then
13290 LIBS_MAIL=-lmail
13291 LIBS="$LIBS_MAIL $LIBS"
13293 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13295 else
13296 LIBS_MAIL=
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13299 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13300 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13301 $as_echo_n "(cached) " >&6
13302 else
13303 ac_check_lib_save_LIBS=$LIBS
13304 LIBS="-llockfile $LIBS"
13305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13306 /* end confdefs.h. */
13308 /* Override any GCC internal prototype to avoid an error.
13309 Use char because int might match the return type of a GCC
13310 builtin and then its argument prototype would still apply. */
13311 #ifdef __cplusplus
13312 extern "C"
13313 #endif
13314 char maillock ();
13316 main ()
13318 return maillock ();
13320 return 0;
13322 _ACEOF
13323 if ac_fn_c_try_link "$LINENO"; then :
13324 ac_cv_lib_lockfile_maillock=yes
13325 else
13326 ac_cv_lib_lockfile_maillock=no
13328 rm -f core conftest.err conftest.$ac_objext \
13329 conftest$ac_exeext conftest.$ac_ext
13330 LIBS=$ac_check_lib_save_LIBS
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13333 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13334 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13335 have_lockfile=yes
13336 else
13337 have_lockfile=no
13340 if test $have_lockfile = yes; then
13341 LIBS_MAIL=-llockfile
13342 LIBS="$LIBS_MAIL $LIBS"
13344 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13346 else
13347 # If we have the shared liblockfile, assume we must use it for mail
13348 # locking (e.g. Debian). If we couldn't link against liblockfile
13349 # (no liblockfile.a installed), ensure that we don't need to.
13350 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13351 set dummy liblockfile.so; ac_word=$2
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13353 $as_echo_n "checking for $ac_word... " >&6; }
13354 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13355 $as_echo_n "(cached) " >&6
13356 else
13357 if test -n "$liblockfile"; then
13358 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13359 else
13360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13361 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13362 for as_dir in $as_dummy
13364 IFS=$as_save_IFS
13365 test -z "$as_dir" && as_dir=.
13366 for ac_exec_ext in '' $ac_executable_extensions; do
13367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13368 ac_cv_prog_liblockfile="yes"
13369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13370 break 2
13372 done
13373 done
13374 IFS=$as_save_IFS
13376 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13379 liblockfile=$ac_cv_prog_liblockfile
13380 if test -n "$liblockfile"; then
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13382 $as_echo "$liblockfile" >&6; }
13383 else
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13385 $as_echo "no" >&6; }
13389 if test $ac_cv_prog_liblockfile = yes; then
13390 as_fn_error "Shared liblockfile found but can't link against it.
13391 This probably means that movemail could lose mail.
13392 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13400 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13401 ## interlock access to the mail spool. The alternative is a lock file named
13402 ## /usr/spool/mail/$USER.lock.
13403 mail_lock=no
13404 case "$opsys" in
13405 aix4-2) mail_lock="lockf" ;;
13407 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13409 ## On GNU/Linux systems, both methods are used by various mail programs.
13410 ## I assume most people are using newer mailers that have heard of flock.
13411 ## Change this if you need to.
13412 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13413 ## configure gets the right answers, and that means *NOT* using flock.
13414 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13415 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13416 ## Debian maintainer hasn't provided a clean fix for Emacs.
13417 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13418 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13419 ## correct logic. -- fx
13420 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13421 ## liblockfile is a Free Software replacement for libmail, used on
13422 ## Debian systems and elsewhere. -rfr.
13423 gnu-*)
13424 mail_lock="flock"
13425 if test $have_mail = yes || test $have_lockfile = yes; then
13426 test $ac_cv_header_maillock_h = yes && mail_lock=no
13429 esac
13431 BLESSMAIL_TARGET=
13432 case "$mail_lock" in
13433 flock)
13434 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13437 lockf)
13438 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13441 *) BLESSMAIL_TARGET="need-blessmail" ;;
13442 esac
13446 for ac_func in gethostname \
13447 closedir getrusage get_current_dir_name \
13448 lrand48 \
13449 select getpagesize setlocale \
13450 utimes getrlimit setrlimit getcwd shutdown getaddrinfo \
13451 strsignal setitimer \
13452 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13453 gai_strerror mkstemp getline getdelim fsync sync \
13454 difftime posix_memalign \
13455 getpwent endpwent getgrent endgrent \
13456 touchlock \
13457 cfmakeraw cfsetspeed copysign __executable_start
13458 do :
13459 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13460 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13461 eval as_val=\$$as_ac_var
13462 if test "x$as_val" = x""yes; then :
13463 cat >>confdefs.h <<_ACEOF
13464 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13465 _ACEOF
13468 done
13471 if test $opsys = unixware; then
13473 $as_echo "#define BROKEN_GETWD 1" >>confdefs.h
13475 else
13476 for ac_func in getwd
13477 do :
13478 ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd"
13479 if test "x$ac_cv_func_getwd" = x""yes; then :
13480 cat >>confdefs.h <<_ACEOF
13481 #define HAVE_GETWD 1
13482 _ACEOF
13485 done
13489 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
13490 ## has a broken `rint' in some library versions including math library
13491 ## version number A.09.05.
13492 ## You can fix the math library by installing patch number PHSS_4630.
13493 ## But we can fix it more reliably for Emacs by just not using rint.
13494 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
13495 case $opsys in
13496 hpux*) : ;;
13497 *) for ac_func in random rint
13498 do :
13499 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13500 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13501 eval as_val=\$$as_ac_var
13502 if test "x$as_val" = x""yes; then :
13503 cat >>confdefs.h <<_ACEOF
13504 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13505 _ACEOF
13508 done
13510 esac
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13513 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13514 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13515 $as_echo_n "(cached) " >&6
13516 else
13517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13518 /* end confdefs.h. */
13521 main ()
13523 __builtin_unwind_init ();
13525 return 0;
13527 _ACEOF
13528 if ac_fn_c_try_link "$LINENO"; then :
13529 emacs_cv_func___builtin_unwind_init=yes
13530 else
13531 emacs_cv_func___builtin_unwind_init=no
13533 rm -f core conftest.err conftest.$ac_objext \
13534 conftest$ac_exeext conftest.$ac_ext
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13537 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13538 if test $emacs_cv_func___builtin_unwind_init = yes; then
13540 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13549 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13550 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13551 $as_echo_n "(cached) " >&6
13552 else
13553 while :; do
13554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13555 /* end confdefs.h. */
13556 #include <sys/types.h> /* for off_t */
13557 #include <stdio.h>
13559 main ()
13561 int (*fp) (FILE *, off_t, int) = fseeko;
13562 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13564 return 0;
13566 _ACEOF
13567 if ac_fn_c_try_link "$LINENO"; then :
13568 ac_cv_sys_largefile_source=no; break
13570 rm -f core conftest.err conftest.$ac_objext \
13571 conftest$ac_exeext conftest.$ac_ext
13572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13573 /* end confdefs.h. */
13574 #define _LARGEFILE_SOURCE 1
13575 #include <sys/types.h> /* for off_t */
13576 #include <stdio.h>
13578 main ()
13580 int (*fp) (FILE *, off_t, int) = fseeko;
13581 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13583 return 0;
13585 _ACEOF
13586 if ac_fn_c_try_link "$LINENO"; then :
13587 ac_cv_sys_largefile_source=1; break
13589 rm -f core conftest.err conftest.$ac_objext \
13590 conftest$ac_exeext conftest.$ac_ext
13591 ac_cv_sys_largefile_source=unknown
13592 break
13593 done
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13596 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13597 case $ac_cv_sys_largefile_source in #(
13598 no | unknown) ;;
13600 cat >>confdefs.h <<_ACEOF
13601 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13602 _ACEOF
13604 esac
13605 rm -rf conftest*
13607 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13608 # in glibc 2.1.3, but that breaks too many other things.
13609 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13610 if test $ac_cv_sys_largefile_source != unknown; then
13612 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13617 # UNIX98 PTYs.
13618 for ac_func in grantpt
13619 do :
13620 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
13621 if test "x$ac_cv_func_grantpt" = x""yes; then :
13622 cat >>confdefs.h <<_ACEOF
13623 #define HAVE_GRANTPT 1
13624 _ACEOF
13627 done
13630 # PTY-related GNU extensions.
13631 for ac_func in getpt posix_openpt
13632 do :
13633 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13634 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13635 eval as_val=\$$as_ac_var
13636 if test "x$as_val" = x""yes; then :
13637 cat >>confdefs.h <<_ACEOF
13638 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13639 _ACEOF
13642 done
13645 # Check this now, so that we will NOT find the above functions in ncurses.
13646 # That is because we have not set up to link ncurses in lib-src.
13647 # It's better to believe a function is not available
13648 # than to expect to find it in ncurses.
13649 # Also we need tputs and friends to be able to build at all.
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13651 $as_echo_n "checking for library containing tputs... " >&6; }
13652 # Run a test program that contains a call to tputs, a call that is
13653 # never executed. This tests whether a pre-'main' dynamic linker
13654 # works with the library. It's too much trouble to actually call
13655 # tputs in the test program, due to portability hassles. When
13656 # cross-compiling, assume the test program will run if it links.
13658 # Maybe curses should be tried earlier?
13659 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13660 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
13661 OLIBS=$LIBS
13662 if test -z "$tputs_library"; then
13663 LIBS_TERMCAP=
13664 msg='none required'
13665 else
13666 LIBS_TERMCAP=-l$tputs_library
13667 msg=$LIBS_TERMCAP
13668 LIBS="$LIBS_TERMCAP $LIBS"
13670 if test "$cross_compiling" = yes; then :
13671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13672 /* end confdefs.h. */
13674 extern void tputs (const char *, int, int (*)(int));
13675 int main (int argc, char **argv)
13677 if (argc == 10000)
13678 tputs (argv[0], 0, 0);
13679 return 0;
13682 _ACEOF
13683 if ac_fn_c_try_link "$LINENO"; then :
13685 else
13686 msg=no
13688 rm -f core conftest.err conftest.$ac_objext \
13689 conftest$ac_exeext conftest.$ac_ext
13690 else
13691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13692 /* end confdefs.h. */
13694 extern void tputs (const char *, int, int (*)(int));
13695 int main (int argc, char **argv)
13697 if (argc == 10000)
13698 tputs (argv[0], 0, 0);
13699 return 0;
13702 _ACEOF
13703 if ac_fn_c_try_run "$LINENO"; then :
13705 else
13706 msg=no
13708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13709 conftest.$ac_objext conftest.beam conftest.$ac_ext
13712 LIBS=$OLIBS
13713 if test "X$msg" != Xno; then
13714 break
13716 done
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13718 $as_echo "$msg" >&6; }
13719 if test "X$msg" = Xno; then
13720 as_fn_error "The required function \`tputs' was not found in any library.
13721 The following libraries were tried (in order):
13722 libtinfo, libncurses, libterminfo, libtermcap, libcurses
13723 Please try installing whichever of these libraries is most appropriate
13724 for your system, together with its header files.
13725 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
13728 ## Use termcap instead of terminfo?
13729 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
13730 TERMINFO=yes
13731 ## FIXME? In the cases below where we unconditionally set
13732 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
13733 ## if that was found above to have tputs.
13734 ## Should we use the gnu* logic everywhere?
13735 case "$opsys" in
13736 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13737 ## The ncurses library has been moved out of the System framework in
13738 ## Mac OS X 10.2. So if configure detects it, set the command-line
13739 ## option to use it.
13740 darwin) LIBS_TERMCAP="-lncurses" ;;
13742 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
13744 freebsd)
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13746 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13747 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13748 $as_echo_n "(cached) " >&6
13749 else
13750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13751 /* end confdefs.h. */
13752 #include <osreldate.h>
13754 main ()
13756 #if __FreeBSD_version < 400000
13757 fail;
13758 #endif
13761 return 0;
13763 _ACEOF
13764 if ac_fn_c_try_link "$LINENO"; then :
13765 emacs_cv_freebsd_terminfo=yes
13766 else
13767 emacs_cv_freebsd_terminfo=no
13769 rm -f core conftest.err conftest.$ac_objext \
13770 conftest$ac_exeext conftest.$ac_ext
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13775 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13777 if test $emacs_cv_freebsd_terminfo = yes; then
13778 LIBS_TERMCAP="-lncurses"
13779 else
13780 TERMINFO=no
13781 LIBS_TERMCAP="-ltermcap"
13785 netbsd)
13786 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
13787 TERMINFO=no
13788 LIBS_TERMCAP="-ltermcap"
13792 openbsd) LIBS_TERMCAP="-lncurses" ;;
13794 ## hpux: Make sure we get select from libc rather than from libcurses
13795 ## because libcurses on HPUX 10.10 has a broken version of select.
13796 ## We used to use -lc -lcurses, but this may be cleaner.
13797 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
13798 # set that way, now it uses the default). Isn't this a contradiction?
13799 hpux*) LIBS_TERMCAP="-ltermcap" ;;
13801 esac
13803 TERMCAP_OBJ=tparam.o
13804 if test $TERMINFO = yes; then
13806 $as_echo "#define TERMINFO 1" >>confdefs.h
13808 TERMCAP_OBJ=terminfo.o
13814 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13815 # On Darwin, res_init appears not to be useful: see bug#562 and
13816 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
13817 resolv=no
13819 if test $opsys != darwin; then
13821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13822 /* end confdefs.h. */
13823 #include <netinet/in.h>
13824 #include <arpa/nameser.h>
13825 #include <resolv.h>
13827 main ()
13829 return res_init();
13831 return 0;
13833 _ACEOF
13834 if ac_fn_c_try_link "$LINENO"; then :
13835 have_res_init=yes
13836 else
13837 have_res_init=no
13839 rm -f core conftest.err conftest.$ac_objext \
13840 conftest$ac_exeext conftest.$ac_ext
13841 if test "$have_res_init" = no; then
13842 OLIBS="$LIBS"
13843 LIBS="$LIBS -lresolv"
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13845 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13847 /* end confdefs.h. */
13848 #include <netinet/in.h>
13849 #include <arpa/nameser.h>
13850 #include <resolv.h>
13852 main ()
13854 return res_init();
13856 return 0;
13858 _ACEOF
13859 if ac_fn_c_try_link "$LINENO"; then :
13860 have_res_init=yes
13861 else
13862 have_res_init=no
13864 rm -f core conftest.err conftest.$ac_objext \
13865 conftest$ac_exeext conftest.$ac_ext
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13867 $as_echo "$have_res_init" >&6; }
13868 if test "$have_res_init" = yes ; then
13869 resolv=yes
13871 LIBS="$OLIBS"
13874 if test "$have_res_init" = yes; then
13876 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13880 # Do we need the Hesiod library to provide the support routines?
13881 LIBHESIOD=
13882 if test "$with_hesiod" != no ; then
13883 # Don't set $LIBS here -- see comments above. FIXME which comments?
13884 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13885 if test "x$ac_cv_func_res_send" = x""yes; then :
13887 else
13888 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13889 if test "x$ac_cv_func___res_send" = x""yes; then :
13891 else
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13893 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13894 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13895 $as_echo_n "(cached) " >&6
13896 else
13897 ac_check_lib_save_LIBS=$LIBS
13898 LIBS="-lresolv $LIBS"
13899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13900 /* end confdefs.h. */
13902 /* Override any GCC internal prototype to avoid an error.
13903 Use char because int might match the return type of a GCC
13904 builtin and then its argument prototype would still apply. */
13905 #ifdef __cplusplus
13906 extern "C"
13907 #endif
13908 char res_send ();
13910 main ()
13912 return res_send ();
13914 return 0;
13916 _ACEOF
13917 if ac_fn_c_try_link "$LINENO"; then :
13918 ac_cv_lib_resolv_res_send=yes
13919 else
13920 ac_cv_lib_resolv_res_send=no
13922 rm -f core conftest.err conftest.$ac_objext \
13923 conftest$ac_exeext conftest.$ac_ext
13924 LIBS=$ac_check_lib_save_LIBS
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13927 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13928 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
13929 resolv=yes
13930 else
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13932 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13933 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13934 $as_echo_n "(cached) " >&6
13935 else
13936 ac_check_lib_save_LIBS=$LIBS
13937 LIBS="-lresolv $LIBS"
13938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939 /* end confdefs.h. */
13941 /* Override any GCC internal prototype to avoid an error.
13942 Use char because int might match the return type of a GCC
13943 builtin and then its argument prototype would still apply. */
13944 #ifdef __cplusplus
13945 extern "C"
13946 #endif
13947 char __res_send ();
13949 main ()
13951 return __res_send ();
13953 return 0;
13955 _ACEOF
13956 if ac_fn_c_try_link "$LINENO"; then :
13957 ac_cv_lib_resolv___res_send=yes
13958 else
13959 ac_cv_lib_resolv___res_send=no
13961 rm -f core conftest.err conftest.$ac_objext \
13962 conftest$ac_exeext conftest.$ac_ext
13963 LIBS=$ac_check_lib_save_LIBS
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13966 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13967 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
13968 resolv=yes
13977 if test "$resolv" = yes ; then
13978 RESOLVLIB=-lresolv
13979 else
13980 RESOLVLIB=
13982 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13983 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
13985 else
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13987 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13988 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13989 $as_echo_n "(cached) " >&6
13990 else
13991 ac_check_lib_save_LIBS=$LIBS
13992 LIBS="-lhesiod $RESOLVLIB $LIBS"
13993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13994 /* end confdefs.h. */
13996 /* Override any GCC internal prototype to avoid an error.
13997 Use char because int might match the return type of a GCC
13998 builtin and then its argument prototype would still apply. */
13999 #ifdef __cplusplus
14000 extern "C"
14001 #endif
14002 char hes_getmailhost ();
14004 main ()
14006 return hes_getmailhost ();
14008 return 0;
14010 _ACEOF
14011 if ac_fn_c_try_link "$LINENO"; then :
14012 ac_cv_lib_hesiod_hes_getmailhost=yes
14013 else
14014 ac_cv_lib_hesiod_hes_getmailhost=no
14016 rm -f core conftest.err conftest.$ac_objext \
14017 conftest$ac_exeext conftest.$ac_ext
14018 LIBS=$ac_check_lib_save_LIBS
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14021 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14022 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
14023 hesiod=yes
14024 else
14031 if test x"$hesiod" = xyes; then
14033 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14035 LIBHESIOD=-lhesiod
14040 # Do we need libresolv (due to res_init or Hesiod)?
14041 if test "$resolv" = yes && test $opsys != darwin; then
14043 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14045 LIBRESOLV=-lresolv
14046 else
14047 LIBRESOLV=
14051 # These tell us which Kerberos-related libraries to use.
14052 COM_ERRLIB=
14053 CRYPTOLIB=
14054 KRB5LIB=
14055 DESLIB=
14056 KRB4LIB=
14058 if test "${with_kerberos}" != no; then
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14060 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14061 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14062 $as_echo_n "(cached) " >&6
14063 else
14064 ac_check_lib_save_LIBS=$LIBS
14065 LIBS="-lcom_err $LIBS"
14066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14067 /* end confdefs.h. */
14069 /* Override any GCC internal prototype to avoid an error.
14070 Use char because int might match the return type of a GCC
14071 builtin and then its argument prototype would still apply. */
14072 #ifdef __cplusplus
14073 extern "C"
14074 #endif
14075 char com_err ();
14077 main ()
14079 return com_err ();
14081 return 0;
14083 _ACEOF
14084 if ac_fn_c_try_link "$LINENO"; then :
14085 ac_cv_lib_com_err_com_err=yes
14086 else
14087 ac_cv_lib_com_err_com_err=no
14089 rm -f core conftest.err conftest.$ac_objext \
14090 conftest$ac_exeext conftest.$ac_ext
14091 LIBS=$ac_check_lib_save_LIBS
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14094 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14095 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
14096 have_com_err=yes
14097 else
14098 have_com_err=no
14101 if test $have_com_err = yes; then
14102 COM_ERRLIB=-lcom_err
14103 LIBS="$COM_ERRLIB $LIBS"
14105 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14109 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14110 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14111 $as_echo_n "(cached) " >&6
14112 else
14113 ac_check_lib_save_LIBS=$LIBS
14114 LIBS="-lcrypto $LIBS"
14115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14116 /* end confdefs.h. */
14118 /* Override any GCC internal prototype to avoid an error.
14119 Use char because int might match the return type of a GCC
14120 builtin and then its argument prototype would still apply. */
14121 #ifdef __cplusplus
14122 extern "C"
14123 #endif
14124 char mit_des_cbc_encrypt ();
14126 main ()
14128 return mit_des_cbc_encrypt ();
14130 return 0;
14132 _ACEOF
14133 if ac_fn_c_try_link "$LINENO"; then :
14134 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14135 else
14136 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14138 rm -f core conftest.err conftest.$ac_objext \
14139 conftest$ac_exeext conftest.$ac_ext
14140 LIBS=$ac_check_lib_save_LIBS
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14143 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14144 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
14145 have_crypto=yes
14146 else
14147 have_crypto=no
14150 if test $have_crypto = yes; then
14151 CRYPTOLIB=-lcrypto
14152 LIBS="$CRYPTOLIB $LIBS"
14154 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14158 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14159 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14160 $as_echo_n "(cached) " >&6
14161 else
14162 ac_check_lib_save_LIBS=$LIBS
14163 LIBS="-lk5crypto $LIBS"
14164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14165 /* end confdefs.h. */
14167 /* Override any GCC internal prototype to avoid an error.
14168 Use char because int might match the return type of a GCC
14169 builtin and then its argument prototype would still apply. */
14170 #ifdef __cplusplus
14171 extern "C"
14172 #endif
14173 char mit_des_cbc_encrypt ();
14175 main ()
14177 return mit_des_cbc_encrypt ();
14179 return 0;
14181 _ACEOF
14182 if ac_fn_c_try_link "$LINENO"; then :
14183 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14184 else
14185 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14187 rm -f core conftest.err conftest.$ac_objext \
14188 conftest$ac_exeext conftest.$ac_ext
14189 LIBS=$ac_check_lib_save_LIBS
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14192 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14193 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
14194 have_k5crypto=yes
14195 else
14196 have_k5crypto=no
14199 if test $have_k5crypto = yes; then
14200 CRYPTOLIB=-lk5crypto
14201 LIBS="$CRYPTOLIB $LIBS"
14203 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14207 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14208 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14209 $as_echo_n "(cached) " >&6
14210 else
14211 ac_check_lib_save_LIBS=$LIBS
14212 LIBS="-lkrb5 $LIBS"
14213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14214 /* end confdefs.h. */
14216 /* Override any GCC internal prototype to avoid an error.
14217 Use char because int might match the return type of a GCC
14218 builtin and then its argument prototype would still apply. */
14219 #ifdef __cplusplus
14220 extern "C"
14221 #endif
14222 char krb5_init_context ();
14224 main ()
14226 return krb5_init_context ();
14228 return 0;
14230 _ACEOF
14231 if ac_fn_c_try_link "$LINENO"; then :
14232 ac_cv_lib_krb5_krb5_init_context=yes
14233 else
14234 ac_cv_lib_krb5_krb5_init_context=no
14236 rm -f core conftest.err conftest.$ac_objext \
14237 conftest$ac_exeext conftest.$ac_ext
14238 LIBS=$ac_check_lib_save_LIBS
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14241 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14242 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
14243 have_krb5=yes
14244 else
14245 have_krb5=no
14248 if test $have_krb5=yes; then
14249 KRB5LIB=-lkrb5
14250 LIBS="$KRB5LIB $LIBS"
14252 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14255 if test "${with_kerberos5}" = no; then
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14257 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14258 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14259 $as_echo_n "(cached) " >&6
14260 else
14261 ac_check_lib_save_LIBS=$LIBS
14262 LIBS="-ldes425 $LIBS"
14263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14264 /* end confdefs.h. */
14266 /* Override any GCC internal prototype to avoid an error.
14267 Use char because int might match the return type of a GCC
14268 builtin and then its argument prototype would still apply. */
14269 #ifdef __cplusplus
14270 extern "C"
14271 #endif
14272 char des_cbc_encrypt ();
14274 main ()
14276 return des_cbc_encrypt ();
14278 return 0;
14280 _ACEOF
14281 if ac_fn_c_try_link "$LINENO"; then :
14282 ac_cv_lib_des425_des_cbc_encrypt=yes
14283 else
14284 ac_cv_lib_des425_des_cbc_encrypt=no
14286 rm -f core conftest.err conftest.$ac_objext \
14287 conftest$ac_exeext conftest.$ac_ext
14288 LIBS=$ac_check_lib_save_LIBS
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14291 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14292 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
14293 have_des425=yes
14294 else
14295 have_des425=no
14298 if test $have_des425 = yes; then
14299 DESLIB=-ldes425
14300 LIBS="$DESLIB $LIBS"
14302 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14304 else
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14306 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14307 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14308 $as_echo_n "(cached) " >&6
14309 else
14310 ac_check_lib_save_LIBS=$LIBS
14311 LIBS="-ldes $LIBS"
14312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14313 /* end confdefs.h. */
14315 /* Override any GCC internal prototype to avoid an error.
14316 Use char because int might match the return type of a GCC
14317 builtin and then its argument prototype would still apply. */
14318 #ifdef __cplusplus
14319 extern "C"
14320 #endif
14321 char des_cbc_encrypt ();
14323 main ()
14325 return des_cbc_encrypt ();
14327 return 0;
14329 _ACEOF
14330 if ac_fn_c_try_link "$LINENO"; then :
14331 ac_cv_lib_des_des_cbc_encrypt=yes
14332 else
14333 ac_cv_lib_des_des_cbc_encrypt=no
14335 rm -f core conftest.err conftest.$ac_objext \
14336 conftest$ac_exeext conftest.$ac_ext
14337 LIBS=$ac_check_lib_save_LIBS
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14340 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14341 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
14342 have_des=yes
14343 else
14344 have_des=no
14347 if test $have_des = yes; then
14348 DESLIB=-ldes
14349 LIBS="$DESLIB $LIBS"
14351 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14356 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14357 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14358 $as_echo_n "(cached) " >&6
14359 else
14360 ac_check_lib_save_LIBS=$LIBS
14361 LIBS="-lkrb4 $LIBS"
14362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14363 /* end confdefs.h. */
14365 /* Override any GCC internal prototype to avoid an error.
14366 Use char because int might match the return type of a GCC
14367 builtin and then its argument prototype would still apply. */
14368 #ifdef __cplusplus
14369 extern "C"
14370 #endif
14371 char krb_get_cred ();
14373 main ()
14375 return krb_get_cred ();
14377 return 0;
14379 _ACEOF
14380 if ac_fn_c_try_link "$LINENO"; then :
14381 ac_cv_lib_krb4_krb_get_cred=yes
14382 else
14383 ac_cv_lib_krb4_krb_get_cred=no
14385 rm -f core conftest.err conftest.$ac_objext \
14386 conftest$ac_exeext conftest.$ac_ext
14387 LIBS=$ac_check_lib_save_LIBS
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14390 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14391 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
14392 have_krb4=yes
14393 else
14394 have_krb4=no
14397 if test $have_krb4 = yes; then
14398 KRB4LIB=-lkrb4
14399 LIBS="$KRB4LIB $LIBS"
14401 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14403 else
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14405 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14406 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14407 $as_echo_n "(cached) " >&6
14408 else
14409 ac_check_lib_save_LIBS=$LIBS
14410 LIBS="-lkrb $LIBS"
14411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14412 /* end confdefs.h. */
14414 /* Override any GCC internal prototype to avoid an error.
14415 Use char because int might match the return type of a GCC
14416 builtin and then its argument prototype would still apply. */
14417 #ifdef __cplusplus
14418 extern "C"
14419 #endif
14420 char krb_get_cred ();
14422 main ()
14424 return krb_get_cred ();
14426 return 0;
14428 _ACEOF
14429 if ac_fn_c_try_link "$LINENO"; then :
14430 ac_cv_lib_krb_krb_get_cred=yes
14431 else
14432 ac_cv_lib_krb_krb_get_cred=no
14434 rm -f core conftest.err conftest.$ac_objext \
14435 conftest$ac_exeext conftest.$ac_ext
14436 LIBS=$ac_check_lib_save_LIBS
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14439 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14440 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
14441 have_krb=yes
14442 else
14443 have_krb=no
14446 if test $have_krb = yes; then
14447 KRB4LIB=-lkrb
14448 LIBS="$KRB4LIB $LIBS"
14450 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14456 if test "${with_kerberos5}" != no; then
14457 for ac_header in krb5.h
14458 do :
14459 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14460 if test "x$ac_cv_header_krb5_h" = x""yes; then :
14461 cat >>confdefs.h <<_ACEOF
14462 #define HAVE_KRB5_H 1
14463 _ACEOF
14464 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14466 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
14468 cat >>confdefs.h <<_ACEOF
14469 #define HAVE_KRB5_ERROR_TEXT 1
14470 _ACEOF
14474 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14476 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
14478 cat >>confdefs.h <<_ACEOF
14479 #define HAVE_KRB5_ERROR_E_TEXT 1
14480 _ACEOF
14487 done
14489 else
14490 for ac_header in des.h
14491 do :
14492 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14493 if test "x$ac_cv_header_des_h" = x""yes; then :
14494 cat >>confdefs.h <<_ACEOF
14495 #define HAVE_DES_H 1
14496 _ACEOF
14498 else
14499 for ac_header in kerberosIV/des.h
14500 do :
14501 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14502 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
14503 cat >>confdefs.h <<_ACEOF
14504 #define HAVE_KERBEROSIV_DES_H 1
14505 _ACEOF
14507 else
14508 for ac_header in kerberos/des.h
14509 do :
14510 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14511 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
14512 cat >>confdefs.h <<_ACEOF
14513 #define HAVE_KERBEROS_DES_H 1
14514 _ACEOF
14518 done
14522 done
14526 done
14528 for ac_header in krb.h
14529 do :
14530 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14531 if test "x$ac_cv_header_krb_h" = x""yes; then :
14532 cat >>confdefs.h <<_ACEOF
14533 #define HAVE_KRB_H 1
14534 _ACEOF
14536 else
14537 for ac_header in kerberosIV/krb.h
14538 do :
14539 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14540 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
14541 cat >>confdefs.h <<_ACEOF
14542 #define HAVE_KERBEROSIV_KRB_H 1
14543 _ACEOF
14545 else
14546 for ac_header in kerberos/krb.h
14547 do :
14548 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14549 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
14550 cat >>confdefs.h <<_ACEOF
14551 #define HAVE_KERBEROS_KRB_H 1
14552 _ACEOF
14556 done
14560 done
14564 done
14567 for ac_header in com_err.h
14568 do :
14569 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14570 if test "x$ac_cv_header_com_err_h" = x""yes; then :
14571 cat >>confdefs.h <<_ACEOF
14572 #define HAVE_COM_ERR_H 1
14573 _ACEOF
14577 done
14590 for ac_func in $ac_func_list
14591 do :
14592 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14593 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14594 eval as_val=\$$as_ac_var
14595 if test "x$as_val" = x""yes; then :
14596 cat >>confdefs.h <<_ACEOF
14597 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14598 _ACEOF
14601 done
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14607 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14608 if test "${emacs_cv_localtime_cache+set}" = set; then :
14609 $as_echo_n "(cached) " >&6
14610 else
14611 if test x$ac_cv_func_tzset = xyes; then
14612 if test "$cross_compiling" = yes; then :
14613 # If we have tzset, assume the worst when cross-compiling.
14614 emacs_cv_localtime_cache=yes
14615 else
14616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14617 /* end confdefs.h. */
14618 #include <time.h>
14619 char TZ_GMT0[] = "TZ=GMT0";
14620 char TZ_PST8[] = "TZ=PST8";
14621 main()
14623 time_t now = time ((time_t *) 0);
14624 int hour_GMT0, hour_unset;
14625 if (putenv (TZ_GMT0) != 0)
14626 exit (1);
14627 hour_GMT0 = localtime (&now)->tm_hour;
14628 unsetenv("TZ");
14629 hour_unset = localtime (&now)->tm_hour;
14630 if (putenv (TZ_PST8) != 0)
14631 exit (1);
14632 if (localtime (&now)->tm_hour == hour_GMT0)
14633 exit (1);
14634 unsetenv("TZ");
14635 if (localtime (&now)->tm_hour != hour_unset)
14636 exit (1);
14637 exit (0);
14639 _ACEOF
14640 if ac_fn_c_try_run "$LINENO"; then :
14641 emacs_cv_localtime_cache=no
14642 else
14643 emacs_cv_localtime_cache=yes
14645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14646 conftest.$ac_objext conftest.beam conftest.$ac_ext
14649 else
14650 # If we lack tzset, report that localtime does not cache TZ,
14651 # since we can't invalidate the cache if we don't have tzset.
14652 emacs_cv_localtime_cache=no
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14656 $as_echo "$emacs_cv_localtime_cache" >&6; }
14657 if test $emacs_cv_localtime_cache = yes; then
14659 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14663 ok_so_far=yes
14664 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14665 if test "x$ac_cv_func_socket" = x""yes; then :
14667 else
14668 ok_so_far=no
14671 if test $ok_so_far = yes; then
14672 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14673 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14675 else
14676 ok_so_far=no
14681 if test $ok_so_far = yes; then
14682 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14683 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14685 else
14686 ok_so_far=no
14691 if test $ok_so_far = yes; then
14693 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14697 if test -f /usr/lpp/X11/bin/smt.exp; then
14699 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14704 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14705 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14707 $as_echo "yes" >&6; }
14709 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14711 else
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14713 $as_echo "no" >&6; }
14716 case $canonical in
14717 *-solaris2.4 | *-solaris2.4.*)
14718 : ${ac_cv_func_vfork_works=no};;
14719 esac
14721 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14722 if test "x$ac_cv_type_pid_t" = x""yes; then :
14724 else
14726 cat >>confdefs.h <<_ACEOF
14727 #define pid_t int
14728 _ACEOF
14732 for ac_header in vfork.h
14733 do :
14734 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14735 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14736 cat >>confdefs.h <<_ACEOF
14737 #define HAVE_VFORK_H 1
14738 _ACEOF
14742 done
14744 for ac_func in fork vfork
14745 do :
14746 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14747 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14748 eval as_val=\$$as_ac_var
14749 if test "x$as_val" = x""yes; then :
14750 cat >>confdefs.h <<_ACEOF
14751 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14752 _ACEOF
14755 done
14757 if test "x$ac_cv_func_fork" = xyes; then
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14759 $as_echo_n "checking for working fork... " >&6; }
14760 if test "${ac_cv_func_fork_works+set}" = set; then :
14761 $as_echo_n "(cached) " >&6
14762 else
14763 if test "$cross_compiling" = yes; then :
14764 ac_cv_func_fork_works=cross
14765 else
14766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14767 /* end confdefs.h. */
14768 $ac_includes_default
14770 main ()
14773 /* By Ruediger Kuhlmann. */
14774 return fork () < 0;
14777 return 0;
14779 _ACEOF
14780 if ac_fn_c_try_run "$LINENO"; then :
14781 ac_cv_func_fork_works=yes
14782 else
14783 ac_cv_func_fork_works=no
14785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14786 conftest.$ac_objext conftest.beam conftest.$ac_ext
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14791 $as_echo "$ac_cv_func_fork_works" >&6; }
14793 else
14794 ac_cv_func_fork_works=$ac_cv_func_fork
14796 if test "x$ac_cv_func_fork_works" = xcross; then
14797 case $host in
14798 *-*-amigaos* | *-*-msdosdjgpp*)
14799 # Override, as these systems have only a dummy fork() stub
14800 ac_cv_func_fork_works=no
14803 ac_cv_func_fork_works=yes
14805 esac
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14807 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14809 ac_cv_func_vfork_works=$ac_cv_func_vfork
14810 if test "x$ac_cv_func_vfork" = xyes; then
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14812 $as_echo_n "checking for working vfork... " >&6; }
14813 if test "${ac_cv_func_vfork_works+set}" = set; then :
14814 $as_echo_n "(cached) " >&6
14815 else
14816 if test "$cross_compiling" = yes; then :
14817 ac_cv_func_vfork_works=cross
14818 else
14819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14820 /* end confdefs.h. */
14821 /* Thanks to Paul Eggert for this test. */
14822 $ac_includes_default
14823 #include <sys/wait.h>
14824 #ifdef HAVE_VFORK_H
14825 # include <vfork.h>
14826 #endif
14827 /* On some sparc systems, changes by the child to local and incoming
14828 argument registers are propagated back to the parent. The compiler
14829 is told about this with #include <vfork.h>, but some compilers
14830 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14831 static variable whose address is put into a register that is
14832 clobbered by the vfork. */
14833 static void
14834 #ifdef __cplusplus
14835 sparc_address_test (int arg)
14836 # else
14837 sparc_address_test (arg) int arg;
14838 #endif
14840 static pid_t child;
14841 if (!child) {
14842 child = vfork ();
14843 if (child < 0) {
14844 perror ("vfork");
14845 _exit(2);
14847 if (!child) {
14848 arg = getpid();
14849 write(-1, "", 0);
14850 _exit (arg);
14856 main ()
14858 pid_t parent = getpid ();
14859 pid_t child;
14861 sparc_address_test (0);
14863 child = vfork ();
14865 if (child == 0) {
14866 /* Here is another test for sparc vfork register problems. This
14867 test uses lots of local variables, at least as many local
14868 variables as main has allocated so far including compiler
14869 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14870 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14871 reuse the register of parent for one of the local variables,
14872 since it will think that parent can't possibly be used any more
14873 in this routine. Assigning to the local variable will thus
14874 munge parent in the parent process. */
14875 pid_t
14876 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14877 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14878 /* Convince the compiler that p..p7 are live; otherwise, it might
14879 use the same hardware register for all 8 local variables. */
14880 if (p != p1 || p != p2 || p != p3 || p != p4
14881 || p != p5 || p != p6 || p != p7)
14882 _exit(1);
14884 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14885 from child file descriptors. If the child closes a descriptor
14886 before it execs or exits, this munges the parent's descriptor
14887 as well. Test for this by closing stdout in the child. */
14888 _exit(close(fileno(stdout)) != 0);
14889 } else {
14890 int status;
14891 struct stat st;
14893 while (wait(&status) != child)
14895 return (
14896 /* Was there some problem with vforking? */
14897 child < 0
14899 /* Did the child fail? (This shouldn't happen.) */
14900 || status
14902 /* Did the vfork/compiler bug occur? */
14903 || parent != getpid()
14905 /* Did the file descriptor bug occur? */
14906 || fstat(fileno(stdout), &st) != 0
14910 _ACEOF
14911 if ac_fn_c_try_run "$LINENO"; then :
14912 ac_cv_func_vfork_works=yes
14913 else
14914 ac_cv_func_vfork_works=no
14916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14917 conftest.$ac_objext conftest.beam conftest.$ac_ext
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14922 $as_echo "$ac_cv_func_vfork_works" >&6; }
14925 if test "x$ac_cv_func_fork_works" = xcross; then
14926 ac_cv_func_vfork_works=$ac_cv_func_vfork
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14928 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14931 if test "x$ac_cv_func_vfork_works" = xyes; then
14933 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14935 else
14937 $as_echo "#define vfork fork" >>confdefs.h
14940 if test "x$ac_cv_func_fork_works" = xyes; then
14942 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14947 for ac_func in snprintf
14948 do :
14949 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
14950 if test "x$ac_cv_func_snprintf" = x""yes; then :
14951 cat >>confdefs.h <<_ACEOF
14952 #define HAVE_SNPRINTF 1
14953 _ACEOF
14956 done
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14960 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14961 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14962 $as_echo_n "(cached) " >&6
14963 else
14964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14965 /* end confdefs.h. */
14966 #include <langinfo.h>
14968 main ()
14970 char* cs = nl_langinfo(CODESET);
14972 return 0;
14974 _ACEOF
14975 if ac_fn_c_try_link "$LINENO"; then :
14976 emacs_cv_langinfo_codeset=yes
14977 else
14978 emacs_cv_langinfo_codeset=no
14980 rm -f core conftest.err conftest.$ac_objext \
14981 conftest$ac_exeext conftest.$ac_ext
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14985 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14986 if test $emacs_cv_langinfo_codeset = yes; then
14988 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14993 $as_echo_n "checking for mbstate_t... " >&6; }
14994 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14995 $as_echo_n "(cached) " >&6
14996 else
14997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
14999 $ac_includes_default
15000 # include <wchar.h>
15002 main ()
15004 mbstate_t x; return sizeof x;
15006 return 0;
15008 _ACEOF
15009 if ac_fn_c_try_compile "$LINENO"; then :
15010 ac_cv_type_mbstate_t=yes
15011 else
15012 ac_cv_type_mbstate_t=no
15014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15017 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15018 if test $ac_cv_type_mbstate_t = yes; then
15020 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15022 else
15024 $as_echo "#define mbstate_t int" >>confdefs.h
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15029 $as_echo_n "checking for C restricted array declarations... " >&6; }
15030 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15031 $as_echo_n "(cached) " >&6
15032 else
15033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15034 /* end confdefs.h. */
15035 void fred (int x[__restrict]);
15037 main ()
15041 return 0;
15043 _ACEOF
15044 if ac_fn_c_try_compile "$LINENO"; then :
15045 emacs_cv_c_restrict_arr=yes
15046 else
15047 emacs_cv_c_restrict_arr=no
15049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15052 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15053 if test "$emacs_cv_c_restrict_arr" = yes; then
15055 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15061 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
15065 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
15068 ## Note: PTYs are broken on darwin <6. Use at your own risk.
15070 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
15074 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
15080 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
15084 $as_echo "#define SEPCHAR ':'" >>confdefs.h
15088 $as_echo "#define subprocesses 1" >>confdefs.h
15092 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
15097 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
15103 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
15107 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
15111 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
15117 case $opsys in
15118 aix4-2)
15119 if test x$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes; then
15120 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15125 hpux*)
15126 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15129 esac
15132 case $opsys in
15133 irix6-5 | sol2* | unixware )
15135 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
15138 esac
15140 emacs_broken_SIGIO=no
15142 case $opsys in
15143 hpux* | irix6-5 | openbsd | sol2* | unixware )
15144 emacs_broken_SIGIO=yes
15147 aix4-2)
15149 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
15153 freebsd)
15155 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
15158 esac
15160 case $opsys in
15161 gnu-* | sol2-10 )
15163 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
15166 esac
15168 case $opsys in
15169 darwin | freebsd | netbsd | openbsd )
15171 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
15174 esac
15176 case $opsys in
15177 netbsd | openbsd) sound_device="/dev/audio" ;;
15178 *) sound_device="/dev/dsp" ;;
15179 esac
15182 cat >>confdefs.h <<_ACEOF
15183 #define DEFAULT_SOUND_DEVICE "$sound_device"
15184 _ACEOF
15188 case $opsys in
15189 darwin | gnu-linux | gnu-kfreebsd )
15191 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
15194 esac
15197 case $opsys in
15198 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd)
15200 $as_echo "#define NARROWPROTO 1" >>confdefs.h
15203 esac
15212 case $opsys in
15213 aix4-2 )
15214 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
15216 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
15218 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
15222 cygwin )
15223 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15225 $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
15227 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15229 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15233 darwin )
15234 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15236 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15238 $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
15240 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15242 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15246 gnu | openbsd )
15247 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15251 gnu-linux | gnu-kfreebsd | freebsd | netbsd )
15252 if test "x$ac_cv_func_grantpt" = xyes; then
15254 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
15256 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15258 $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
15260 if test "x$ac_cv_func_posix_openpt" = xyes; then
15261 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
15263 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15265 elif test "x$ac_cv_func_getpt" = xyes; then
15266 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
15268 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15270 else
15271 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15274 else
15275 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15280 hpux*)
15281 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15283 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
15285 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
15289 irix6-5 )
15290 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
15292 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
15294 $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
15296 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15298 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15302 sol2* )
15303 $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
15307 unixware )
15308 $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
15311 esac
15314 case $opsys in
15315 sol2* | unixware )
15316 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
15318 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15321 $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
15324 esac
15329 case $opsys in
15330 aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd )
15331 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15335 gnu-linux | gnu-kfreebsd )
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15338 $as_echo_n "checking for signals via characters... " >&6; }
15339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15340 /* end confdefs.h. */
15342 #include <linux/version.h>
15343 #if LINUX_VERSION_CODE < 0x20400
15344 # error "Linux version too old"
15345 #endif
15348 main ()
15352 return 0;
15354 _ACEOF
15355 if ac_fn_c_try_cpp "$LINENO"; then :
15356 emacs_signals_via_chars=yes
15357 else
15358 emacs_signals_via_chars=no
15360 rm -f conftest.err conftest.$ac_ext
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15363 $as_echo "$emacs_signals_via_chars" >&6; }
15364 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15367 esac
15373 case $opsys in
15374 gnu)
15375 $as_echo "#define DATA_START ({ extern int data_start; (char *) &data_start; })" >>confdefs.h
15379 hpux*)
15380 $as_echo "#define DATA_START 0x40000000" >>confdefs.h
15382 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15385 irix6-5)
15386 $as_echo "#define DATA_START 0x10000000" >>confdefs.h
15388 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15391 esac
15397 case $opsys in
15398 darwin) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15401 gnu | freebsd | netbsd | openbsd )
15403 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15405 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15409 gnu-linux | gnu-kfreebsd )
15410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15411 /* end confdefs.h. */
15413 #ifndef __i386__
15414 # error "not i386"
15415 #endif
15418 main ()
15422 return 0;
15424 _ACEOF
15425 if ac_fn_c_try_cpp "$LINENO"; then :
15426 $as_echo "#define ULIMIT_BREAK_VALUE (32*1024*1024)" >>confdefs.h
15429 rm -f conftest.err conftest.$ac_ext
15431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15432 /* end confdefs.h. */
15434 #ifndef __ia64__
15435 # error "not ia64"
15436 #endif
15439 main ()
15443 return 0;
15445 _ACEOF
15446 if ac_fn_c_try_cpp "$LINENO"; then :
15448 $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
15451 rm -f conftest.err conftest.$ac_ext
15454 hpux*)
15456 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
15460 irix6-5)
15461 $as_echo "#define ULIMIT_BREAK_VALUE 0x14000000" >>confdefs.h
15464 esac
15472 case $opsys in
15473 aix4-2 | hpux* | unixware)
15474 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15478 gnu-linux | gnu-kfreebsd )
15479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15480 /* end confdefs.h. */
15482 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
15483 || defined __alpha__ || defined __mips__ || defined __s390__ \
15484 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
15485 || defined __ia64__ || defined __sh__
15486 /* ok */
15487 #else
15488 # error "setjmp not known to work on this arch"
15489 #endif
15492 main ()
15496 return 0;
15498 _ACEOF
15499 if ac_fn_c_try_cpp "$LINENO"; then :
15500 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15502 else
15503 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15506 rm -f conftest.err conftest.$ac_ext
15508 esac
15511 if test x$GCC = xyes; then
15512 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15514 else
15515 case $opsys in
15516 freebsd | netbsd | openbsd | irix6-5 | sol2* )
15517 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15520 esac
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
15523 $as_echo_n "checking for _setjmp... " >&6; }
15524 if test "${emacs_cv_func__setjmp+set}" = set; then :
15525 $as_echo_n "(cached) " >&6
15526 else
15527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15528 /* end confdefs.h. */
15529 #include <setjmp.h>
15532 main ()
15534 jmp_buf j;
15535 if (! _setjmp (j))
15536 _longjmp (j, 1);
15538 return 0;
15540 _ACEOF
15541 if ac_fn_c_try_link "$LINENO"; then :
15542 emacs_cv_func__setjmp=yes
15543 else
15544 emacs_cv_func__setjmp=no
15546 rm -f core conftest.err conftest.$ac_objext \
15547 conftest$ac_exeext conftest.$ac_ext
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
15550 $as_echo "$emacs_cv_func__setjmp" >&6; }
15551 if test $emacs_cv_func__setjmp = yes; then
15553 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
15555 else
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
15557 $as_echo_n "checking for sigsetjmp... " >&6; }
15558 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
15559 $as_echo_n "(cached) " >&6
15560 else
15561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15562 /* end confdefs.h. */
15563 #include <setjmp.h>
15566 main ()
15568 sigjmp_buf j;
15569 if (! sigsetjmp (j, 1))
15570 siglongjmp (j, 1);
15572 return 0;
15574 _ACEOF
15575 if ac_fn_c_try_link "$LINENO"; then :
15576 emacs_cv_func_sigsetjmp=yes
15577 else
15578 emacs_cv_func_sigsetjmp=no
15580 rm -f core conftest.err conftest.$ac_objext \
15581 conftest$ac_exeext conftest.$ac_ext
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
15584 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
15585 if test $emacs_cv_func_sigsetjmp = yes; then
15587 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
15592 case $opsys in
15593 sol2* | unixware )
15595 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
15598 esac
15601 case $opsys in
15602 hpux* | sol2* )
15604 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
15607 esac
15618 case $opsys in
15619 aix4-2)
15620 $as_echo "#define USG /**/" >>confdefs.h
15622 $as_echo "#define USG5 /**/" >>confdefs.h
15624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15625 /* end confdefs.h. */
15627 #ifndef _AIX
15628 # error "_AIX not defined"
15629 #endif
15632 main ()
15636 return 0;
15638 _ACEOF
15639 if ac_fn_c_try_cpp "$LINENO"; then :
15641 else
15643 $as_echo "#define _AIX /**/" >>confdefs.h
15646 rm -f conftest.err conftest.$ac_ext
15649 cygwin)
15651 $as_echo "#define CYGWIN 1" >>confdefs.h
15655 darwin)
15656 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15658 $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h
15661 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
15665 freebsd)
15666 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15669 $as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h
15673 gnu | netbsd | openbsd )
15674 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15677 /* end confdefs.h. */
15679 #ifndef BSD_SYSTEM
15680 # error "BSD_SYSTEM not defined"
15681 #endif
15684 main ()
15688 return 0;
15690 _ACEOF
15691 if ac_fn_c_try_cpp "$LINENO"; then :
15693 else
15694 $as_echo "#define BSD_SYSTEM 43" >>confdefs.h
15697 rm -f conftest.err conftest.$ac_ext
15700 gnu-linux | gnu-kfreebsd )
15701 $as_echo "#define USG /**/" >>confdefs.h
15704 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
15708 hpux*)
15709 $as_echo "#define USG /**/" >>confdefs.h
15711 $as_echo "#define USG5 /**/" >>confdefs.h
15714 $as_echo "#define HPUX /**/" >>confdefs.h
15718 irix6-5)
15719 $as_echo "#define USG /**/" >>confdefs.h
15721 $as_echo "#define USG5 /**/" >>confdefs.h
15723 $as_echo "#define USG5_4 /**/" >>confdefs.h
15726 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
15730 sol2*)
15731 $as_echo "#define USG /**/" >>confdefs.h
15733 $as_echo "#define USG5 /**/" >>confdefs.h
15735 $as_echo "#define USG5_4 /**/" >>confdefs.h
15738 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
15742 unixware)
15743 $as_echo "#define USG /**/" >>confdefs.h
15745 $as_echo "#define USG5 /**/" >>confdefs.h
15747 $as_echo "#define USG5_4 /**/" >>confdefs.h
15750 esac
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
15753 $as_echo_n "checking for usable FIONREAD... " >&6; }
15754 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
15755 $as_echo_n "(cached) " >&6
15756 else
15757 case $opsys in
15758 aix4-2)
15759 emacs_cv_usable_FIONREAD=no
15763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15764 /* end confdefs.h. */
15765 #include <sys/types.h>
15766 #include <sys/ioctl.h>
15767 #ifdef USG5_4
15768 # include <sys/filio.h>
15769 #endif
15772 main ()
15774 int foo = ioctl (0, FIONREAD, &foo);
15776 return 0;
15778 _ACEOF
15779 if ac_fn_c_try_compile "$LINENO"; then :
15780 emacs_cv_usable_FIONREAD=yes
15781 else
15782 emacs_cv_usable_FIONREAD=no
15784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15786 esac
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
15789 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
15790 if test $emacs_cv_usable_FIONREAD = yes; then
15792 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
15795 if test $emacs_broken_SIGIO = no; then
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
15797 $as_echo_n "checking for usable SIGIO... " >&6; }
15798 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
15799 $as_echo_n "(cached) " >&6
15800 else
15801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15802 /* end confdefs.h. */
15803 #include <fcntl.h>
15804 #include <signal.h>
15807 main ()
15809 int foo = SIGIO | F_SETFL | FASYNC;
15811 return 0;
15813 _ACEOF
15814 if ac_fn_c_try_compile "$LINENO"; then :
15815 emacs_cv_usable_SIGIO=yes
15816 else
15817 emacs_cv_usable_SIGIO=no
15819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
15822 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
15823 if test $emacs_cv_usable_SIGIO = yes; then
15825 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
15832 case $opsys in
15833 cygwin)
15835 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
15839 hpux11)
15841 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
15845 irix6-5)
15847 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
15851 sol2-10)
15853 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
15856 esac
15858 # Set up the CFLAGS for real compilation, so we can substitute it.
15859 CFLAGS="$REAL_CFLAGS"
15860 CPPFLAGS="$REAL_CPPFLAGS"
15862 ## Hack to detect a buggy GCC version.
15863 if test "x$GCC" = xyes \
15864 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15865 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
15866 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
15867 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15870 version=$PACKAGE_VERSION
15872 copyright="Copyright (C) 2012 Free Software Foundation, Inc."
15874 cat >>confdefs.h <<_ACEOF
15875 #define COPYRIGHT "$copyright"
15876 _ACEOF
15880 ### Specify what sort of things we'll be editing into Makefile and config.h.
15881 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15884 ## Unused?
15907 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15908 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15909 ## end of LIBX_BASE, but nothing ever set it.
15914 ## Used in lwlib/Makefile.in.
15923 if test -n "${term_header}"; then
15925 cat >>confdefs.h <<_ACEOF
15926 #define TERM_HEADER "${term_header}"
15927 _ACEOF
15932 cat >>confdefs.h <<_ACEOF
15933 #define EMACS_CONFIGURATION "${canonical}"
15934 _ACEOF
15937 cat >>confdefs.h <<_ACEOF
15938 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15939 _ACEOF
15943 XMENU_OBJ=
15944 XOBJ=
15945 FONT_OBJ=
15946 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15948 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15950 XMENU_OBJ=xmenu.o
15951 XOBJ="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o"
15952 FONT_OBJ=xfont.o
15953 if test "$HAVE_XFT" = "yes"; then
15954 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15955 elif test "$HAVE_FREETYPE" = "yes"; then
15956 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
15964 WIDGET_OBJ=
15965 MOTIF_LIBW=
15966 if test "${USE_X_TOOLKIT}" != "none" ; then
15967 WIDGET_OBJ=widget.o
15969 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15971 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15973 $as_echo "#define USE_LUCID 1" >>confdefs.h
15975 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15977 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15979 MOTIF_LIBW=-lXm
15980 case "$opsys" in
15981 gnu-linux)
15982 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15983 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
15986 unixware)
15987 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15988 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15989 MOTIF_LIBW="MOTIF_LIBW -lXimp"
15992 aix4-2)
15993 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15994 MOTIF_LIBW="$MOTIF_LIBW -li18n"
15996 esac
15997 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
16002 TOOLKIT_LIBW=
16003 case "$USE_X_TOOLKIT" in
16004 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
16005 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
16006 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
16007 esac
16010 if test "$USE_X_TOOLKIT" = "none"; then
16011 LIBXT_OTHER="\$(LIBXSM)"
16012 OLDXMENU_TARGET="really-oldXMenu"
16013 else
16014 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16015 OLDXMENU_TARGET="really-lwlib"
16019 ## The X Menu stuff is present in the X10 distribution, but missing
16020 ## from X11. If we have X10, just use the installed library;
16021 ## otherwise, use our own copy.
16022 if test "${HAVE_X11}" = "yes" ; then
16024 $as_echo "#define HAVE_X11 1" >>confdefs.h
16027 if test "$USE_X_TOOLKIT" = "none"; then
16028 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
16029 else
16030 OLDXMENU="\${lwlibdir}/liblw.a"
16032 LIBXMENU="\$(OLDXMENU)"
16033 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
16034 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
16035 else
16036 ## For a syntactically valid Makefile; not actually used for anything.
16037 ## See comments in src/Makefile.in.
16038 OLDXMENU=nothing
16039 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16040 if test "${HAVE_X_WINDOWS}" = "yes"; then
16041 LIBXMENU="-lXMenu"
16042 else
16043 LIBXMENU=
16045 LIBX_OTHER=
16046 OLDXMENU_DEPS=
16049 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
16050 OLDXMENU_TARGET=
16051 OLDXMENU=nothing
16052 LIBXMENU=
16053 OLDXMENU_DEPS=
16062 if test "${HAVE_MENUS}" = "yes" ; then
16064 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16068 if test "${GNU_MALLOC}" = "yes" ; then
16070 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16074 RALLOC_OBJ=
16075 if test "${REL_ALLOC}" = "yes" ; then
16077 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16080 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16084 if test "$opsys" = "cygwin"; then
16085 CYGWIN_OBJ="sheap.o cygw32.o"
16086 ## Cygwin differs because of its unexec().
16087 PRE_ALLOC_OBJ=
16088 POST_ALLOC_OBJ=lastfile.o
16089 else
16090 CYGWIN_OBJ=
16091 PRE_ALLOC_OBJ=lastfile.o
16092 POST_ALLOC_OBJ=
16098 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
16099 # it temporarily reverts them to their pre-pkg-config values,
16100 # because gnulib needs to work with both src (which uses the
16101 # pkg-config stuff) and lib-src (which does not). For example, gnulib
16102 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
16103 # and it therefore needs to run in an environment where LIBS does not
16104 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
16105 # for some package unrelated to lib-src.
16106 SAVE_CFLAGS=$CFLAGS
16107 SAVE_LIBS=$LIBS
16108 CFLAGS=$pre_PKG_CONFIG_CFLAGS
16109 LIBS="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
16121 LIBC_FATAL_STDERR_=1
16122 export LIBC_FATAL_STDERR_
16124 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16125 # for constant arguments. Useless!
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16127 $as_echo_n "checking for working alloca.h... " >&6; }
16128 if test "${ac_cv_working_alloca_h+set}" = set; then :
16129 $as_echo_n "(cached) " >&6
16130 else
16131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16132 /* end confdefs.h. */
16133 #include <alloca.h>
16135 main ()
16137 char *p = (char *) alloca (2 * sizeof (int));
16138 if (p) return 0;
16140 return 0;
16142 _ACEOF
16143 if ac_fn_c_try_link "$LINENO"; then :
16144 ac_cv_working_alloca_h=yes
16145 else
16146 ac_cv_working_alloca_h=no
16148 rm -f core conftest.err conftest.$ac_objext \
16149 conftest$ac_exeext conftest.$ac_ext
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16152 $as_echo "$ac_cv_working_alloca_h" >&6; }
16153 if test $ac_cv_working_alloca_h = yes; then
16155 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16160 $as_echo_n "checking for alloca... " >&6; }
16161 if test "${ac_cv_func_alloca_works+set}" = set; then :
16162 $as_echo_n "(cached) " >&6
16163 else
16164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16165 /* end confdefs.h. */
16166 #ifdef __GNUC__
16167 # define alloca __builtin_alloca
16168 #else
16169 # ifdef _MSC_VER
16170 # include <malloc.h>
16171 # define alloca _alloca
16172 # else
16173 # ifdef HAVE_ALLOCA_H
16174 # include <alloca.h>
16175 # else
16176 # ifdef _AIX
16177 #pragma alloca
16178 # else
16179 # ifndef alloca /* predefined by HP cc +Olibcalls */
16180 char *alloca ();
16181 # endif
16182 # endif
16183 # endif
16184 # endif
16185 #endif
16188 main ()
16190 char *p = (char *) alloca (1);
16191 if (p) return 0;
16193 return 0;
16195 _ACEOF
16196 if ac_fn_c_try_link "$LINENO"; then :
16197 ac_cv_func_alloca_works=yes
16198 else
16199 ac_cv_func_alloca_works=no
16201 rm -f core conftest.err conftest.$ac_objext \
16202 conftest$ac_exeext conftest.$ac_ext
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16205 $as_echo "$ac_cv_func_alloca_works" >&6; }
16207 if test $ac_cv_func_alloca_works = yes; then
16209 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16211 else
16212 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16213 # that cause trouble. Some versions do not even contain alloca or
16214 # contain a buggy version. If you still want to use their alloca,
16215 # use ar to extract alloca.o from them instead of compiling alloca.c.
16221 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16223 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
16227 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
16228 if test "${ac_cv_os_cray+set}" = set; then :
16229 $as_echo_n "(cached) " >&6
16230 else
16231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16232 /* end confdefs.h. */
16233 #if defined CRAY && ! defined CRAY2
16234 webecray
16235 #else
16236 wenotbecray
16237 #endif
16239 _ACEOF
16240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16241 $EGREP "webecray" >/dev/null 2>&1; then :
16242 ac_cv_os_cray=yes
16243 else
16244 ac_cv_os_cray=no
16246 rm -f conftest*
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16250 $as_echo "$ac_cv_os_cray" >&6; }
16251 if test $ac_cv_os_cray = yes; then
16252 for ac_func in _getb67 GETB67 getb67; do
16253 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16254 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16255 eval as_val=\$$as_ac_var
16256 if test "x$as_val" = x""yes; then :
16258 cat >>confdefs.h <<_ACEOF
16259 #define CRAY_STACKSEG_END $ac_func
16260 _ACEOF
16262 break
16265 done
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16269 $as_echo_n "checking stack direction for C alloca... " >&6; }
16270 if test "${ac_cv_c_stack_direction+set}" = set; then :
16271 $as_echo_n "(cached) " >&6
16272 else
16273 if test "$cross_compiling" = yes; then :
16274 ac_cv_c_stack_direction=0
16275 else
16276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16277 /* end confdefs.h. */
16278 $ac_includes_default
16280 find_stack_direction (int *addr, int depth)
16282 int dir, dummy = 0;
16283 if (! addr)
16284 addr = &dummy;
16285 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16286 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16287 return dir + dummy;
16291 main (int argc, char **argv)
16293 return find_stack_direction (0, argc + !argv + 20) < 0;
16295 _ACEOF
16296 if ac_fn_c_try_run "$LINENO"; then :
16297 ac_cv_c_stack_direction=1
16298 else
16299 ac_cv_c_stack_direction=-1
16301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16302 conftest.$ac_objext conftest.beam conftest.$ac_ext
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16307 $as_echo "$ac_cv_c_stack_direction" >&6; }
16308 cat >>confdefs.h <<_ACEOF
16309 #define STACK_DIRECTION $ac_cv_c_stack_direction
16310 _ACEOF
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16319 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16320 if test "${ac_cv_c_bigendian+set}" = set; then :
16321 $as_echo_n "(cached) " >&6
16322 else
16323 ac_cv_c_bigendian=unknown
16324 # See if we're dealing with a universal compiler.
16325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16326 /* end confdefs.h. */
16327 #ifndef __APPLE_CC__
16328 not a universal capable compiler
16329 #endif
16330 typedef int dummy;
16332 _ACEOF
16333 if ac_fn_c_try_compile "$LINENO"; then :
16335 # Check for potential -arch flags. It is not universal unless
16336 # there are at least two -arch flags with different values.
16337 ac_arch=
16338 ac_prev=
16339 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16340 if test -n "$ac_prev"; then
16341 case $ac_word in
16342 i?86 | x86_64 | ppc | ppc64)
16343 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16344 ac_arch=$ac_word
16345 else
16346 ac_cv_c_bigendian=universal
16347 break
16350 esac
16351 ac_prev=
16352 elif test "x$ac_word" = "x-arch"; then
16353 ac_prev=arch
16355 done
16357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16358 if test $ac_cv_c_bigendian = unknown; then
16359 # See if sys/param.h defines the BYTE_ORDER macro.
16360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16361 /* end confdefs.h. */
16362 #include <sys/types.h>
16363 #include <sys/param.h>
16366 main ()
16368 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16369 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16370 && LITTLE_ENDIAN)
16371 bogus endian macros
16372 #endif
16375 return 0;
16377 _ACEOF
16378 if ac_fn_c_try_compile "$LINENO"; then :
16379 # It does; now see whether it defined to BIG_ENDIAN or not.
16380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16381 /* end confdefs.h. */
16382 #include <sys/types.h>
16383 #include <sys/param.h>
16386 main ()
16388 #if BYTE_ORDER != BIG_ENDIAN
16389 not big endian
16390 #endif
16393 return 0;
16395 _ACEOF
16396 if ac_fn_c_try_compile "$LINENO"; then :
16397 ac_cv_c_bigendian=yes
16398 else
16399 ac_cv_c_bigendian=no
16401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16405 if test $ac_cv_c_bigendian = unknown; then
16406 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16408 /* end confdefs.h. */
16409 #include <limits.h>
16412 main ()
16414 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16415 bogus endian macros
16416 #endif
16419 return 0;
16421 _ACEOF
16422 if ac_fn_c_try_compile "$LINENO"; then :
16423 # It does; now see whether it defined to _BIG_ENDIAN or not.
16424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16425 /* end confdefs.h. */
16426 #include <limits.h>
16429 main ()
16431 #ifndef _BIG_ENDIAN
16432 not big endian
16433 #endif
16436 return 0;
16438 _ACEOF
16439 if ac_fn_c_try_compile "$LINENO"; then :
16440 ac_cv_c_bigendian=yes
16441 else
16442 ac_cv_c_bigendian=no
16444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16448 if test $ac_cv_c_bigendian = unknown; then
16449 # Compile a test program.
16450 if test "$cross_compiling" = yes; then :
16451 # Try to guess by grepping values from an object file.
16452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16453 /* end confdefs.h. */
16454 short int ascii_mm[] =
16455 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16456 short int ascii_ii[] =
16457 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16458 int use_ascii (int i) {
16459 return ascii_mm[i] + ascii_ii[i];
16461 short int ebcdic_ii[] =
16462 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16463 short int ebcdic_mm[] =
16464 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16465 int use_ebcdic (int i) {
16466 return ebcdic_mm[i] + ebcdic_ii[i];
16468 extern int foo;
16471 main ()
16473 return use_ascii (foo) == use_ebcdic (foo);
16475 return 0;
16477 _ACEOF
16478 if ac_fn_c_try_compile "$LINENO"; then :
16479 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16480 ac_cv_c_bigendian=yes
16482 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16483 if test "$ac_cv_c_bigendian" = unknown; then
16484 ac_cv_c_bigendian=no
16485 else
16486 # finding both strings is unlikely to happen, but who knows?
16487 ac_cv_c_bigendian=unknown
16491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16492 else
16493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16494 /* end confdefs.h. */
16495 $ac_includes_default
16497 main ()
16500 /* Are we little or big endian? From Harbison&Steele. */
16501 union
16503 long int l;
16504 char c[sizeof (long int)];
16505 } u;
16506 u.l = 1;
16507 return u.c[sizeof (long int) - 1] == 1;
16510 return 0;
16512 _ACEOF
16513 if ac_fn_c_try_run "$LINENO"; then :
16514 ac_cv_c_bigendian=no
16515 else
16516 ac_cv_c_bigendian=yes
16518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16519 conftest.$ac_objext conftest.beam conftest.$ac_ext
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16525 $as_echo "$ac_cv_c_bigendian" >&6; }
16526 case $ac_cv_c_bigendian in #(
16527 yes)
16528 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16529 ;; #(
16531 ;; #(
16532 universal)
16534 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16536 ;; #(
16538 as_fn_error "unknown endianness
16539 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16540 esac
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16544 $as_echo_n "checking for inline... " >&6; }
16545 if test "${ac_cv_c_inline+set}" = set; then :
16546 $as_echo_n "(cached) " >&6
16547 else
16548 ac_cv_c_inline=no
16549 for ac_kw in inline __inline__ __inline; do
16550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16551 /* end confdefs.h. */
16552 #ifndef __cplusplus
16553 typedef int foo_t;
16554 static $ac_kw foo_t static_foo () {return 0; }
16555 $ac_kw foo_t foo () {return 0; }
16556 #endif
16558 _ACEOF
16559 if ac_fn_c_try_compile "$LINENO"; then :
16560 ac_cv_c_inline=$ac_kw
16562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16563 test "$ac_cv_c_inline" != no && break
16564 done
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16568 $as_echo "$ac_cv_c_inline" >&6; }
16570 case $ac_cv_c_inline in
16571 inline | yes) ;;
16573 case $ac_cv_c_inline in
16574 no) ac_val=;;
16575 *) ac_val=$ac_cv_c_inline;;
16576 esac
16577 cat >>confdefs.h <<_ACEOF
16578 #ifndef __cplusplus
16579 #define inline $ac_val
16580 #endif
16581 _ACEOF
16583 esac
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16587 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16588 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16589 $as_echo_n "(cached) " >&6
16590 else
16591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16592 /* end confdefs.h. */
16593 /* On HP-UX before 11.23, strtold returns a struct instead of
16594 long double. Reject implementations like that, by requiring
16595 compatibility with the C99 prototype. */
16596 #include <stdlib.h>
16597 static long double (*p) (char const *, char **) = strtold;
16598 static long double
16599 test (char const *nptr, char **endptr)
16601 long double r;
16602 r = strtold (nptr, endptr);
16603 return r;
16606 main ()
16608 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16610 return 0;
16612 _ACEOF
16613 if ac_fn_c_try_link "$LINENO"; then :
16614 gl_cv_func_c99_strtold=yes
16615 else
16616 gl_cv_func_c99_strtold=no
16618 rm -f core conftest.err conftest.$ac_objext \
16619 conftest$ac_exeext conftest.$ac_ext
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16622 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16623 if test $gl_cv_func_c99_strtold = yes; then
16625 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16630 GNULIB_CHDIR=0;
16631 GNULIB_CHOWN=0;
16632 GNULIB_CLOSE=0;
16633 GNULIB_DUP=0;
16634 GNULIB_DUP2=0;
16635 GNULIB_DUP3=0;
16636 GNULIB_ENVIRON=0;
16637 GNULIB_EUIDACCESS=0;
16638 GNULIB_FACCESSAT=0;
16639 GNULIB_FCHDIR=0;
16640 GNULIB_FCHOWNAT=0;
16641 GNULIB_FDATASYNC=0;
16642 GNULIB_FSYNC=0;
16643 GNULIB_FTRUNCATE=0;
16644 GNULIB_GETCWD=0;
16645 GNULIB_GETDOMAINNAME=0;
16646 GNULIB_GETDTABLESIZE=0;
16647 GNULIB_GETGROUPS=0;
16648 GNULIB_GETHOSTNAME=0;
16649 GNULIB_GETLOGIN=0;
16650 GNULIB_GETLOGIN_R=0;
16651 GNULIB_GETPAGESIZE=0;
16652 GNULIB_GETUSERSHELL=0;
16653 GNULIB_GROUP_MEMBER=0;
16654 GNULIB_ISATTY=0;
16655 GNULIB_LCHOWN=0;
16656 GNULIB_LINK=0;
16657 GNULIB_LINKAT=0;
16658 GNULIB_LSEEK=0;
16659 GNULIB_PIPE=0;
16660 GNULIB_PIPE2=0;
16661 GNULIB_PREAD=0;
16662 GNULIB_PWRITE=0;
16663 GNULIB_READ=0;
16664 GNULIB_READLINK=0;
16665 GNULIB_READLINKAT=0;
16666 GNULIB_RMDIR=0;
16667 GNULIB_SETHOSTNAME=0;
16668 GNULIB_SLEEP=0;
16669 GNULIB_SYMLINK=0;
16670 GNULIB_SYMLINKAT=0;
16671 GNULIB_TTYNAME_R=0;
16672 GNULIB_UNISTD_H_NONBLOCKING=0;
16673 GNULIB_UNISTD_H_SIGPIPE=0;
16674 GNULIB_UNLINK=0;
16675 GNULIB_UNLINKAT=0;
16676 GNULIB_USLEEP=0;
16677 GNULIB_WRITE=0;
16678 HAVE_CHOWN=1;
16679 HAVE_DUP2=1;
16680 HAVE_DUP3=1;
16681 HAVE_EUIDACCESS=1;
16682 HAVE_FACCESSAT=1;
16683 HAVE_FCHDIR=1;
16684 HAVE_FCHOWNAT=1;
16685 HAVE_FDATASYNC=1;
16686 HAVE_FSYNC=1;
16687 HAVE_FTRUNCATE=1;
16688 HAVE_GETDTABLESIZE=1;
16689 HAVE_GETGROUPS=1;
16690 HAVE_GETHOSTNAME=1;
16691 HAVE_GETLOGIN=1;
16692 HAVE_GETPAGESIZE=1;
16693 HAVE_GROUP_MEMBER=1;
16694 HAVE_LCHOWN=1;
16695 HAVE_LINK=1;
16696 HAVE_LINKAT=1;
16697 HAVE_PIPE=1;
16698 HAVE_PIPE2=1;
16699 HAVE_PREAD=1;
16700 HAVE_PWRITE=1;
16701 HAVE_READLINK=1;
16702 HAVE_READLINKAT=1;
16703 HAVE_SETHOSTNAME=1;
16704 HAVE_SLEEP=1;
16705 HAVE_SYMLINK=1;
16706 HAVE_SYMLINKAT=1;
16707 HAVE_UNLINKAT=1;
16708 HAVE_USLEEP=1;
16709 HAVE_DECL_ENVIRON=1;
16710 HAVE_DECL_FCHDIR=1;
16711 HAVE_DECL_FDATASYNC=1;
16712 HAVE_DECL_GETDOMAINNAME=1;
16713 HAVE_DECL_GETLOGIN_R=1;
16714 HAVE_DECL_GETPAGESIZE=1;
16715 HAVE_DECL_GETUSERSHELL=1;
16716 HAVE_DECL_SETHOSTNAME=1;
16717 HAVE_DECL_TTYNAME_R=1;
16718 HAVE_OS_H=0;
16719 HAVE_SYS_PARAM_H=0;
16720 REPLACE_CHOWN=0;
16721 REPLACE_CLOSE=0;
16722 REPLACE_DUP=0;
16723 REPLACE_DUP2=0;
16724 REPLACE_FCHOWNAT=0;
16725 REPLACE_FTRUNCATE=0;
16726 REPLACE_GETCWD=0;
16727 REPLACE_GETDOMAINNAME=0;
16728 REPLACE_GETLOGIN_R=0;
16729 REPLACE_GETGROUPS=0;
16730 REPLACE_GETPAGESIZE=0;
16731 REPLACE_ISATTY=0;
16732 REPLACE_LCHOWN=0;
16733 REPLACE_LINK=0;
16734 REPLACE_LINKAT=0;
16735 REPLACE_LSEEK=0;
16736 REPLACE_PREAD=0;
16737 REPLACE_PWRITE=0;
16738 REPLACE_READ=0;
16739 REPLACE_READLINK=0;
16740 REPLACE_RMDIR=0;
16741 REPLACE_SLEEP=0;
16742 REPLACE_SYMLINK=0;
16743 REPLACE_TTYNAME_R=0;
16744 REPLACE_UNLINK=0;
16745 REPLACE_UNLINKAT=0;
16746 REPLACE_USLEEP=0;
16747 REPLACE_WRITE=0;
16748 UNISTD_H_HAVE_WINSOCK2_H=0;
16749 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
16760 $as_echo_n "checking if environ is properly declared... " >&6; }
16761 if test "${gt_cv_var_environ_declaration+set}" = set; then :
16762 $as_echo_n "(cached) " >&6
16763 else
16765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16766 /* end confdefs.h. */
16767 #if HAVE_UNISTD_H
16768 #include <unistd.h>
16769 #endif
16770 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
16771 #include <stdlib.h>
16773 extern struct { int foo; } environ;
16775 main ()
16777 environ.foo = 1;
16779 return 0;
16781 _ACEOF
16782 if ac_fn_c_try_compile "$LINENO"; then :
16783 gt_cv_var_environ_declaration=no
16784 else
16785 gt_cv_var_environ_declaration=yes
16787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
16791 $as_echo "$gt_cv_var_environ_declaration" >&6; }
16792 if test $gt_cv_var_environ_declaration = yes; then
16794 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16799 if test $gt_cv_var_environ_declaration != yes; then
16800 HAVE_DECL_ENVIRON=0
16812 GNULIB_FCNTL=0;
16813 GNULIB_NONBLOCKING=0;
16814 GNULIB_OPEN=0;
16815 GNULIB_OPENAT=0;
16816 HAVE_FCNTL=1;
16817 HAVE_OPENAT=1;
16818 REPLACE_FCNTL=0;
16819 REPLACE_OPEN=0;
16820 REPLACE_OPENAT=0;
16825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16826 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16827 if test "${gl_cv_have_include_next+set}" = set; then :
16828 $as_echo_n "(cached) " >&6
16829 else
16830 rm -rf conftestd1a conftestd1b conftestd2
16831 mkdir conftestd1a conftestd1b conftestd2
16832 cat <<EOF > conftestd1a/conftest.h
16833 #define DEFINED_IN_CONFTESTD1
16834 #include_next <conftest.h>
16835 #ifdef DEFINED_IN_CONFTESTD2
16836 int foo;
16837 #else
16838 #error "include_next doesn't work"
16839 #endif
16841 cat <<EOF > conftestd1b/conftest.h
16842 #define DEFINED_IN_CONFTESTD1
16843 #include <stdio.h>
16844 #include_next <conftest.h>
16845 #ifdef DEFINED_IN_CONFTESTD2
16846 int foo;
16847 #else
16848 #error "include_next doesn't work"
16849 #endif
16851 cat <<EOF > conftestd2/conftest.h
16852 #ifndef DEFINED_IN_CONFTESTD1
16853 #error "include_next test doesn't work"
16854 #endif
16855 #define DEFINED_IN_CONFTESTD2
16857 gl_save_CPPFLAGS="$CPPFLAGS"
16858 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16860 /* end confdefs.h. */
16861 #include <conftest.h>
16862 _ACEOF
16863 if ac_fn_c_try_compile "$LINENO"; then :
16864 gl_cv_have_include_next=yes
16865 else
16866 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16868 /* end confdefs.h. */
16869 #include <conftest.h>
16870 _ACEOF
16871 if ac_fn_c_try_compile "$LINENO"; then :
16872 gl_cv_have_include_next=buggy
16873 else
16874 gl_cv_have_include_next=no
16876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16880 CPPFLAGS="$gl_save_CPPFLAGS"
16881 rm -rf conftestd1a conftestd1b conftestd2
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16885 $as_echo "$gl_cv_have_include_next" >&6; }
16886 PRAGMA_SYSTEM_HEADER=
16887 if test $gl_cv_have_include_next = yes; then
16888 INCLUDE_NEXT=include_next
16889 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16890 if test -n "$GCC"; then
16891 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16893 else
16894 if test $gl_cv_have_include_next = buggy; then
16895 INCLUDE_NEXT=include
16896 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16897 else
16898 INCLUDE_NEXT=include
16899 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16906 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16907 if test "${gl_cv_pragma_columns+set}" = set; then :
16908 $as_echo_n "(cached) " >&6
16909 else
16910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16911 /* end confdefs.h. */
16913 #ifdef __TANDEM
16914 choke me
16915 #endif
16917 _ACEOF
16918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16919 $EGREP "choke me" >/dev/null 2>&1; then :
16920 gl_cv_pragma_columns=yes
16921 else
16922 gl_cv_pragma_columns=no
16924 rm -f conftest*
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16929 $as_echo "$gl_cv_pragma_columns" >&6; }
16930 if test $gl_cv_pragma_columns = yes; then
16931 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
16932 else
16933 PRAGMA_COLUMNS=
16937 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
16938 if test "x$ac_cv_type_mode_t" = x""yes; then :
16940 else
16942 cat >>confdefs.h <<_ACEOF
16943 #define mode_t int
16944 _ACEOF
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16949 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16950 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16951 $as_echo_n "(cached) " >&6
16952 else
16953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16954 /* end confdefs.h. */
16956 #include <sys/types.h>
16957 #include <sys/stat.h>
16959 main ()
16961 struct stat s; s.st_dm_mode;
16963 return 0;
16965 _ACEOF
16966 if ac_fn_c_try_compile "$LINENO"; then :
16967 ac_cv_struct_st_dm_mode=yes
16968 else
16969 ac_cv_struct_st_dm_mode=no
16971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16974 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16976 if test $ac_cv_struct_st_dm_mode = yes; then
16978 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16983 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16984 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
16985 ac_have_decl=1
16986 else
16987 ac_have_decl=0
16990 cat >>confdefs.h <<_ACEOF
16991 #define HAVE_DECL_STRMODE $ac_have_decl
16992 _ACEOF
16999 GNULIB__EXIT=0;
17000 GNULIB_ATOLL=0;
17001 GNULIB_CALLOC_POSIX=0;
17002 GNULIB_CANONICALIZE_FILE_NAME=0;
17003 GNULIB_GETLOADAVG=0;
17004 GNULIB_GETSUBOPT=0;
17005 GNULIB_GRANTPT=0;
17006 GNULIB_MALLOC_POSIX=0;
17007 GNULIB_MBTOWC=0;
17008 GNULIB_MKDTEMP=0;
17009 GNULIB_MKOSTEMP=0;
17010 GNULIB_MKOSTEMPS=0;
17011 GNULIB_MKSTEMP=0;
17012 GNULIB_MKSTEMPS=0;
17013 GNULIB_POSIX_OPENPT=0;
17014 GNULIB_PTSNAME=0;
17015 GNULIB_PTSNAME_R=0;
17016 GNULIB_PUTENV=0;
17017 GNULIB_RANDOM=0;
17018 GNULIB_RANDOM_R=0;
17019 GNULIB_REALLOC_POSIX=0;
17020 GNULIB_REALPATH=0;
17021 GNULIB_RPMATCH=0;
17022 GNULIB_SETENV=0;
17023 GNULIB_STRTOD=0;
17024 GNULIB_STRTOLL=0;
17025 GNULIB_STRTOULL=0;
17026 GNULIB_SYSTEM_POSIX=0;
17027 GNULIB_UNLOCKPT=0;
17028 GNULIB_UNSETENV=0;
17029 GNULIB_WCTOMB=0;
17030 HAVE__EXIT=1;
17031 HAVE_ATOLL=1;
17032 HAVE_CANONICALIZE_FILE_NAME=1;
17033 HAVE_DECL_GETLOADAVG=1;
17034 HAVE_GETSUBOPT=1;
17035 HAVE_GRANTPT=1;
17036 HAVE_MKDTEMP=1;
17037 HAVE_MKOSTEMP=1;
17038 HAVE_MKOSTEMPS=1;
17039 HAVE_MKSTEMP=1;
17040 HAVE_MKSTEMPS=1;
17041 HAVE_POSIX_OPENPT=1;
17042 HAVE_PTSNAME=1;
17043 HAVE_PTSNAME_R=1;
17044 HAVE_RANDOM=1;
17045 HAVE_RANDOM_H=1;
17046 HAVE_RANDOM_R=1;
17047 HAVE_REALPATH=1;
17048 HAVE_RPMATCH=1;
17049 HAVE_SETENV=1;
17050 HAVE_DECL_SETENV=1;
17051 HAVE_STRTOD=1;
17052 HAVE_STRTOLL=1;
17053 HAVE_STRTOULL=1;
17054 HAVE_STRUCT_RANDOM_DATA=1;
17055 HAVE_SYS_LOADAVG_H=0;
17056 HAVE_UNLOCKPT=1;
17057 HAVE_DECL_UNSETENV=1;
17058 REPLACE_CALLOC=0;
17059 REPLACE_CANONICALIZE_FILE_NAME=0;
17060 REPLACE_MALLOC=0;
17061 REPLACE_MBTOWC=0;
17062 REPLACE_MKSTEMP=0;
17063 REPLACE_PTSNAME=0;
17064 REPLACE_PTSNAME_R=0;
17065 REPLACE_PUTENV=0;
17066 REPLACE_RANDOM_R=0;
17067 REPLACE_REALLOC=0;
17068 REPLACE_REALPATH=0;
17069 REPLACE_SETENV=0;
17070 REPLACE_STRTOD=0;
17071 REPLACE_UNSETENV=0;
17072 REPLACE_WCTOMB=0;
17089 if test $gl_cv_have_include_next = yes; then
17090 gl_cv_next_getopt_h='<'getopt.h'>'
17091 else
17092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17093 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17094 if test "${gl_cv_next_getopt_h+set}" = set; then :
17095 $as_echo_n "(cached) " >&6
17096 else
17098 if test $ac_cv_header_getopt_h = yes; then
17101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17102 /* end confdefs.h. */
17103 #include <getopt.h>
17105 _ACEOF
17106 case "$host_os" in
17107 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17108 *) gl_absname_cpp="$ac_cpp" ;;
17109 esac
17111 case "$host_os" in
17112 mingw*)
17113 gl_dirsep_regex='[/\\]'
17116 gl_dirsep_regex='\/'
17118 esac
17119 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17121 gl_header_literal_regex=`echo 'getopt.h' \
17122 | sed -e "$gl_make_literal_regex_sed"`
17123 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17124 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17125 s|^/[^/]|//&|
17129 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17130 sed -n "$gl_absolute_header_sed"`'"'
17131 else
17132 gl_cv_next_getopt_h='<'getopt.h'>'
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17138 $as_echo "$gl_cv_next_getopt_h" >&6; }
17140 NEXT_GETOPT_H=$gl_cv_next_getopt_h
17142 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17143 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17144 gl_next_as_first_directive='<'getopt.h'>'
17145 else
17146 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17147 gl_next_as_first_directive=$gl_cv_next_getopt_h
17149 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
17154 if test $ac_cv_header_getopt_h = yes; then
17155 HAVE_GETOPT_H=1
17156 else
17157 HAVE_GETOPT_H=0
17161 gl_replace_getopt=
17163 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17164 for ac_header in getopt.h
17165 do :
17166 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17167 if test "x$ac_cv_header_getopt_h" = x""yes; then :
17168 cat >>confdefs.h <<_ACEOF
17169 #define HAVE_GETOPT_H 1
17170 _ACEOF
17172 else
17173 gl_replace_getopt=yes
17176 done
17180 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17181 for ac_func in getopt_long_only
17182 do :
17183 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17184 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
17185 cat >>confdefs.h <<_ACEOF
17186 #define HAVE_GETOPT_LONG_ONLY 1
17187 _ACEOF
17189 else
17190 gl_replace_getopt=yes
17192 done
17196 if test -z "$gl_replace_getopt"; then
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17198 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17199 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17200 $as_echo_n "(cached) " >&6
17201 else
17203 if test $cross_compiling = no; then
17204 if test "$cross_compiling" = yes; then :
17205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17207 as_fn_error "cannot run test program while cross compiling
17208 See \`config.log' for more details." "$LINENO" 5; }
17209 else
17210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17211 /* end confdefs.h. */
17213 #include <unistd.h>
17214 #include <stdlib.h>
17215 #include <string.h>
17218 main ()
17220 static char program[] = "program";
17221 static char a[] = "-a";
17222 static char foo[] = "foo";
17223 static char bar[] = "bar";
17224 char *argv[] = { program, a, foo, bar, NULL };
17225 int c;
17227 c = getopt (4, argv, "ab");
17228 if (!(c == 'a'))
17229 return 1;
17230 c = getopt (4, argv, "ab");
17231 if (!(c == -1))
17232 return 2;
17233 if (!(optind == 2))
17234 return 3;
17235 return 0;
17238 _ACEOF
17239 if ac_fn_c_try_run "$LINENO"; then :
17240 gl_cv_func_getopt_posix=maybe
17241 else
17242 gl_cv_func_getopt_posix=no
17244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17245 conftest.$ac_objext conftest.beam conftest.$ac_ext
17248 if test $gl_cv_func_getopt_posix = maybe; then
17249 if test "$cross_compiling" = yes; then :
17250 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17252 as_fn_error "cannot run test program while cross compiling
17253 See \`config.log' for more details." "$LINENO" 5; }
17254 else
17255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17256 /* end confdefs.h. */
17258 #include <unistd.h>
17259 #include <stdlib.h>
17260 #include <string.h>
17263 main ()
17265 static char program[] = "program";
17266 static char donald[] = "donald";
17267 static char p[] = "-p";
17268 static char billy[] = "billy";
17269 static char duck[] = "duck";
17270 static char a[] = "-a";
17271 static char bar[] = "bar";
17272 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17273 int c;
17275 c = getopt (7, argv, "+abp:q:");
17276 if (!(c == -1))
17277 return 4;
17278 if (!(strcmp (argv[0], "program") == 0))
17279 return 5;
17280 if (!(strcmp (argv[1], "donald") == 0))
17281 return 6;
17282 if (!(strcmp (argv[2], "-p") == 0))
17283 return 7;
17284 if (!(strcmp (argv[3], "billy") == 0))
17285 return 8;
17286 if (!(strcmp (argv[4], "duck") == 0))
17287 return 9;
17288 if (!(strcmp (argv[5], "-a") == 0))
17289 return 10;
17290 if (!(strcmp (argv[6], "bar") == 0))
17291 return 11;
17292 if (!(optind == 1))
17293 return 12;
17294 return 0;
17297 _ACEOF
17298 if ac_fn_c_try_run "$LINENO"; then :
17299 gl_cv_func_getopt_posix=maybe
17300 else
17301 gl_cv_func_getopt_posix=no
17303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17304 conftest.$ac_objext conftest.beam conftest.$ac_ext
17308 if test $gl_cv_func_getopt_posix = maybe; then
17309 if test "$cross_compiling" = yes; then :
17310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17312 as_fn_error "cannot run test program while cross compiling
17313 See \`config.log' for more details." "$LINENO" 5; }
17314 else
17315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17316 /* end confdefs.h. */
17318 #include <unistd.h>
17319 #include <stdlib.h>
17320 #include <string.h>
17323 main ()
17325 static char program[] = "program";
17326 static char ab[] = "-ab";
17327 char *argv[3] = { program, ab, NULL };
17328 if (getopt (2, argv, "ab:") != 'a')
17329 return 13;
17330 if (getopt (2, argv, "ab:") != '?')
17331 return 14;
17332 if (optopt != 'b')
17333 return 15;
17334 if (optind != 2)
17335 return 16;
17336 return 0;
17339 _ACEOF
17340 if ac_fn_c_try_run "$LINENO"; then :
17341 gl_cv_func_getopt_posix=yes
17342 else
17343 gl_cv_func_getopt_posix=no
17345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17346 conftest.$ac_objext conftest.beam conftest.$ac_ext
17350 else
17351 case "$host_os" in
17352 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
17353 *) gl_cv_func_getopt_posix="guessing yes";;
17354 esac
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17359 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17360 case "$gl_cv_func_getopt_posix" in
17361 *no) gl_replace_getopt=yes ;;
17362 esac
17365 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17367 $as_echo_n "checking for working GNU getopt function... " >&6; }
17368 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17369 $as_echo_n "(cached) " >&6
17370 else
17371 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17372 # optstring is necessary for programs like m4 that have POSIX-mandated
17373 # semantics for supporting options interspersed with files.
17374 # Also, since getopt_long is a GNU extension, we require optind=0.
17375 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17376 # so take care to revert to the correct (non-)export state.
17377 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17378 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17379 xx) gl_had_POSIXLY_CORRECT=exported ;;
17380 x) gl_had_POSIXLY_CORRECT=yes ;;
17381 *) gl_had_POSIXLY_CORRECT= ;;
17382 esac
17383 POSIXLY_CORRECT=1
17384 export POSIXLY_CORRECT
17385 if test "$cross_compiling" = yes; then :
17386 gl_cv_func_getopt_gnu="guessing no"
17388 else
17389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17390 /* end confdefs.h. */
17391 #include <getopt.h>
17392 #include <stddef.h>
17393 #include <string.h>
17395 #include <stdlib.h>
17396 #if defined __MACH__ && defined __APPLE__
17397 /* Avoid a crash on Mac OS X. */
17398 #include <mach/mach.h>
17399 #include <mach/mach_error.h>
17400 #include <mach/thread_status.h>
17401 #include <mach/exception.h>
17402 #include <mach/task.h>
17403 #include <pthread.h>
17404 /* The exception port on which our thread listens. */
17405 static mach_port_t our_exception_port;
17406 /* The main function of the thread listening for exceptions of type
17407 EXC_BAD_ACCESS. */
17408 static void *
17409 mach_exception_thread (void *arg)
17411 /* Buffer for a message to be received. */
17412 struct {
17413 mach_msg_header_t head;
17414 mach_msg_body_t msgh_body;
17415 char data[1024];
17416 } msg;
17417 mach_msg_return_t retval;
17418 /* Wait for a message on the exception port. */
17419 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17420 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17421 if (retval != MACH_MSG_SUCCESS)
17422 abort ();
17423 exit (1);
17425 static void
17426 nocrash_init (void)
17428 mach_port_t self = mach_task_self ();
17429 /* Allocate a port on which the thread shall listen for exceptions. */
17430 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17431 == KERN_SUCCESS) {
17432 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17433 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17434 MACH_MSG_TYPE_MAKE_SEND)
17435 == KERN_SUCCESS) {
17436 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17437 for us. */
17438 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17439 /* Create the thread listening on the exception port. */
17440 pthread_attr_t attr;
17441 pthread_t thread;
17442 if (pthread_attr_init (&attr) == 0
17443 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17444 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17445 pthread_attr_destroy (&attr);
17446 /* Replace the exception port info for these exceptions with our own.
17447 Note that we replace the exception port for the entire task, not only
17448 for a particular thread. This has the effect that when our exception
17449 port gets the message, the thread specific exception port has already
17450 been asked, and we don't need to bother about it.
17451 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17452 task_set_exception_ports (self, mask, our_exception_port,
17453 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17458 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17459 /* Avoid a crash on native Windows. */
17460 #define WIN32_LEAN_AND_MEAN
17461 #include <windows.h>
17462 #include <winerror.h>
17463 static LONG WINAPI
17464 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17466 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17468 case EXCEPTION_ACCESS_VIOLATION:
17469 case EXCEPTION_IN_PAGE_ERROR:
17470 case EXCEPTION_STACK_OVERFLOW:
17471 case EXCEPTION_GUARD_PAGE:
17472 case EXCEPTION_PRIV_INSTRUCTION:
17473 case EXCEPTION_ILLEGAL_INSTRUCTION:
17474 case EXCEPTION_DATATYPE_MISALIGNMENT:
17475 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17476 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17477 exit (1);
17479 return EXCEPTION_CONTINUE_SEARCH;
17481 static void
17482 nocrash_init (void)
17484 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17486 #else
17487 /* Avoid a crash on POSIX systems. */
17488 #include <signal.h>
17489 /* A POSIX signal handler. */
17490 static void
17491 exception_handler (int sig)
17493 exit (1);
17495 static void
17496 nocrash_init (void)
17498 #ifdef SIGSEGV
17499 signal (SIGSEGV, exception_handler);
17500 #endif
17501 #ifdef SIGBUS
17502 signal (SIGBUS, exception_handler);
17503 #endif
17505 #endif
17509 main ()
17512 int result = 0;
17514 nocrash_init();
17516 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17517 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17518 OSF/1 5.1, Solaris 10. */
17520 static char conftest[] = "conftest";
17521 static char plus[] = "-+";
17522 char *argv[3] = { conftest, plus, NULL };
17523 opterr = 0;
17524 if (getopt (2, argv, "+a") != '?')
17525 result |= 1;
17527 /* This code succeeds on glibc 2.8, mingw,
17528 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17529 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17531 static char program[] = "program";
17532 static char p[] = "-p";
17533 static char foo[] = "foo";
17534 static char bar[] = "bar";
17535 char *argv[] = { program, p, foo, bar, NULL };
17537 optind = 1;
17538 if (getopt (4, argv, "p::") != 'p')
17539 result |= 2;
17540 else if (optarg != NULL)
17541 result |= 4;
17542 else if (getopt (4, argv, "p::") != -1)
17543 result |= 6;
17544 else if (optind != 2)
17545 result |= 8;
17547 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17549 static char program[] = "program";
17550 static char foo[] = "foo";
17551 static char p[] = "-p";
17552 char *argv[] = { program, foo, p, NULL };
17553 optind = 0;
17554 if (getopt (3, argv, "-p") != 1)
17555 result |= 16;
17556 else if (getopt (3, argv, "-p") != 'p')
17557 result |= 16;
17559 /* This code fails on glibc 2.11. */
17561 static char program[] = "program";
17562 static char b[] = "-b";
17563 static char a[] = "-a";
17564 char *argv[] = { program, b, a, NULL };
17565 optind = opterr = 0;
17566 if (getopt (3, argv, "+:a:b") != 'b')
17567 result |= 32;
17568 else if (getopt (3, argv, "+:a:b") != ':')
17569 result |= 32;
17571 /* This code dumps core on glibc 2.14. */
17573 static char program[] = "program";
17574 static char w[] = "-W";
17575 static char dummy[] = "dummy";
17576 char *argv[] = { program, w, dummy, NULL };
17577 optind = opterr = 1;
17578 if (getopt (3, argv, "W;") != 'W')
17579 result |= 64;
17581 return result;
17584 return 0;
17586 _ACEOF
17587 if ac_fn_c_try_run "$LINENO"; then :
17588 gl_cv_func_getopt_gnu=yes
17589 else
17590 gl_cv_func_getopt_gnu=no
17592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17593 conftest.$ac_objext conftest.beam conftest.$ac_ext
17596 case $gl_had_POSIXLY_CORRECT in
17597 exported) ;;
17598 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
17599 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
17600 esac
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17604 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17605 if test "$gl_cv_func_getopt_gnu" != yes; then
17606 gl_replace_getopt=yes
17607 else
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
17609 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
17610 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
17611 $as_echo_n "(cached) " >&6
17612 else
17613 if test "$cross_compiling" = yes; then :
17614 case "$host_os" in
17615 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
17616 *) gl_cv_func_getopt_long_gnu="guessing yes";;
17617 esac
17619 else
17620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17621 /* end confdefs.h. */
17622 #include <getopt.h>
17623 #include <stddef.h>
17624 #include <string.h>
17627 main ()
17629 static const struct option long_options[] =
17631 { "xtremely-",no_argument, NULL, 1003 },
17632 { "xtra", no_argument, NULL, 1001 },
17633 { "xtreme", no_argument, NULL, 1002 },
17634 { "xtremely", no_argument, NULL, 1003 },
17635 { NULL, 0, NULL, 0 }
17637 /* This code fails on OpenBSD 5.0. */
17639 static char program[] = "program";
17640 static char xtremel[] = "--xtremel";
17641 char *argv[] = { program, xtremel, NULL };
17642 int option_index;
17643 optind = 1; opterr = 0;
17644 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
17645 return 1;
17647 return 0;
17650 return 0;
17652 _ACEOF
17653 if ac_fn_c_try_run "$LINENO"; then :
17654 gl_cv_func_getopt_long_gnu=yes
17655 else
17656 gl_cv_func_getopt_long_gnu=no
17658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17659 conftest.$ac_objext conftest.beam conftest.$ac_ext
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
17665 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
17666 case "$gl_cv_func_getopt_long_gnu" in
17667 *yes) ;;
17668 *) gl_replace_getopt=yes ;;
17669 esac
17678 REPLACE_GETOPT=0
17679 if test -n "$gl_replace_getopt"; then
17680 REPLACE_GETOPT=1
17683 if test $REPLACE_GETOPT = 1; then
17685 GETOPT_H=getopt.h
17687 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17693 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17694 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
17695 ac_have_decl=1
17696 else
17697 ac_have_decl=0
17700 cat >>confdefs.h <<_ACEOF
17701 #define HAVE_DECL_GETENV $ac_have_decl
17702 _ACEOF
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17710 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17711 if test "${ac_cv_c_restrict+set}" = set; then :
17712 $as_echo_n "(cached) " >&6
17713 else
17714 ac_cv_c_restrict=no
17715 # The order here caters to the fact that C++ does not require restrict.
17716 for ac_kw in __restrict __restrict__ _Restrict restrict; do
17717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17718 /* end confdefs.h. */
17719 typedef int * int_ptr;
17720 int foo (int_ptr $ac_kw ip) {
17721 return ip[0];
17724 main ()
17726 int s[1];
17727 int * $ac_kw t = s;
17728 t[0] = 0;
17729 return foo(t)
17731 return 0;
17733 _ACEOF
17734 if ac_fn_c_try_compile "$LINENO"; then :
17735 ac_cv_c_restrict=$ac_kw
17737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17738 test "$ac_cv_c_restrict" != no && break
17739 done
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17743 $as_echo "$ac_cv_c_restrict" >&6; }
17745 case $ac_cv_c_restrict in
17746 restrict) ;;
17747 no) $as_echo "#define restrict /**/" >>confdefs.h
17749 *) cat >>confdefs.h <<_ACEOF
17750 #define restrict $ac_cv_c_restrict
17751 _ACEOF
17753 esac
17756 GNULIB_GETTIMEOFDAY=0;
17757 HAVE_GETTIMEOFDAY=1;
17758 HAVE_STRUCT_TIMEVAL=1;
17759 HAVE_SYS_TIME_H=1;
17760 REPLACE_GETTIMEOFDAY=0;
17761 REPLACE_STRUCT_TIMEVAL=0;
17778 if test $gl_cv_have_include_next = yes; then
17779 gl_cv_next_sys_time_h='<'sys/time.h'>'
17780 else
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
17782 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
17783 if test "${gl_cv_next_sys_time_h+set}" = set; then :
17784 $as_echo_n "(cached) " >&6
17785 else
17787 if test $ac_cv_header_sys_time_h = yes; then
17790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17791 /* end confdefs.h. */
17792 #include <sys/time.h>
17794 _ACEOF
17795 case "$host_os" in
17796 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17797 *) gl_absname_cpp="$ac_cpp" ;;
17798 esac
17800 case "$host_os" in
17801 mingw*)
17802 gl_dirsep_regex='[/\\]'
17805 gl_dirsep_regex='\/'
17807 esac
17808 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17810 gl_header_literal_regex=`echo 'sys/time.h' \
17811 | sed -e "$gl_make_literal_regex_sed"`
17812 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17813 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17814 s|^/[^/]|//&|
17818 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17819 sed -n "$gl_absolute_header_sed"`'"'
17820 else
17821 gl_cv_next_sys_time_h='<'sys/time.h'>'
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
17827 $as_echo "$gl_cv_next_sys_time_h" >&6; }
17829 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
17831 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17832 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17833 gl_next_as_first_directive='<'sys/time.h'>'
17834 else
17835 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17836 gl_next_as_first_directive=$gl_cv_next_sys_time_h
17838 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
17844 if test $ac_cv_header_sys_time_h != yes; then
17845 HAVE_SYS_TIME_H=0
17852 if test $ac_cv_header_sys_socket_h != yes; then
17853 for ac_header in winsock2.h
17854 do :
17855 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17856 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
17857 cat >>confdefs.h <<_ACEOF
17858 #define HAVE_WINSOCK2_H 1
17859 _ACEOF
17863 done
17866 if test "$ac_cv_header_winsock2_h" = yes; then
17867 HAVE_WINSOCK2_H=1
17868 UNISTD_H_HAVE_WINSOCK2_H=1
17869 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
17870 else
17871 HAVE_WINSOCK2_H=0
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
17876 $as_echo_n "checking for struct timeval... " >&6; }
17877 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
17878 $as_echo_n "(cached) " >&6
17879 else
17880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17881 /* end confdefs.h. */
17882 #if HAVE_SYS_TIME_H
17883 #include <sys/time.h>
17884 #endif
17885 #include <time.h>
17886 #if HAVE_WINSOCK2_H
17887 # include <winsock2.h>
17888 #endif
17891 main ()
17893 static struct timeval x; x.tv_sec = x.tv_usec;
17895 return 0;
17897 _ACEOF
17898 if ac_fn_c_try_compile "$LINENO"; then :
17899 gl_cv_sys_struct_timeval=yes
17900 else
17901 gl_cv_sys_struct_timeval=no
17903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
17907 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
17908 if test $gl_cv_sys_struct_timeval != yes; then
17909 HAVE_STRUCT_TIMEVAL=0
17910 else
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
17912 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
17913 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
17914 $as_echo_n "(cached) " >&6
17915 else
17916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17917 /* end confdefs.h. */
17918 #if HAVE_SYS_TIME_H
17919 #include <sys/time.h>
17920 #endif
17921 #include <time.h>
17922 #if HAVE_WINSOCK2_H
17923 # include <winsock2.h>
17924 #endif
17927 main ()
17929 static struct timeval x;
17930 typedef int verify_tv_sec_type[
17931 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
17935 return 0;
17937 _ACEOF
17938 if ac_fn_c_try_compile "$LINENO"; then :
17939 gl_cv_sys_struct_timeval_tv_sec=yes
17940 else
17941 gl_cv_sys_struct_timeval_tv_sec=no
17943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
17947 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
17948 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
17949 REPLACE_STRUCT_TIMEVAL=1
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17960 $as_echo_n "checking for unsigned long long int... " >&6; }
17961 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17962 $as_echo_n "(cached) " >&6
17963 else
17964 ac_cv_type_unsigned_long_long_int=yes
17965 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17967 /* end confdefs.h. */
17969 /* For now, do not test the preprocessor; as of 2007 there are too many
17970 implementations with broken preprocessors. Perhaps this can
17971 be revisited in 2012. In the meantime, code should not expect
17972 #if to work with literals wider than 32 bits. */
17973 /* Test literals. */
17974 long long int ll = 9223372036854775807ll;
17975 long long int nll = -9223372036854775807LL;
17976 unsigned long long int ull = 18446744073709551615ULL;
17977 /* Test constant expressions. */
17978 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17979 ? 1 : -1)];
17980 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17981 ? 1 : -1)];
17982 int i = 63;
17984 main ()
17986 /* Test availability of runtime routines for shift and division. */
17987 long long int llmax = 9223372036854775807ll;
17988 unsigned long long int ullmax = 18446744073709551615ull;
17989 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17990 | (llmax / ll) | (llmax % ll)
17991 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17992 | (ullmax / ull) | (ullmax % ull));
17994 return 0;
17997 _ACEOF
17998 if ac_fn_c_try_link "$LINENO"; then :
18000 else
18001 ac_cv_type_unsigned_long_long_int=no
18003 rm -f core conftest.err conftest.$ac_objext \
18004 conftest$ac_exeext conftest.$ac_ext
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18008 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18009 if test $ac_cv_type_unsigned_long_long_int = yes; then
18011 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18018 $as_echo_n "checking for long long int... " >&6; }
18019 if test "${ac_cv_type_long_long_int+set}" = set; then :
18020 $as_echo_n "(cached) " >&6
18021 else
18022 ac_cv_type_long_long_int=yes
18023 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18024 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
18025 if test $ac_cv_type_long_long_int = yes; then
18026 if test "$cross_compiling" = yes; then :
18028 else
18029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18030 /* end confdefs.h. */
18031 #include <limits.h>
18032 #ifndef LLONG_MAX
18033 # define HALF \
18034 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18035 # define LLONG_MAX (HALF - 1 + HALF)
18036 #endif
18038 main ()
18040 long long int n = 1;
18041 int i;
18042 for (i = 0; ; i++)
18044 long long int m = n << i;
18045 if (m >> i != n)
18046 return 1;
18047 if (LLONG_MAX / 2 < m)
18048 break;
18050 return 0;
18052 return 0;
18054 _ACEOF
18055 if ac_fn_c_try_run "$LINENO"; then :
18057 else
18058 ac_cv_type_long_long_int=no
18060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18061 conftest.$ac_objext conftest.beam conftest.$ac_ext
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18068 $as_echo "$ac_cv_type_long_long_int" >&6; }
18069 if test $ac_cv_type_long_long_int = yes; then
18071 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18080 gl_cv_c_multiarch=no
18081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18082 /* end confdefs.h. */
18083 #ifndef __APPLE_CC__
18084 not a universal capable compiler
18085 #endif
18086 typedef int dummy;
18088 _ACEOF
18089 if ac_fn_c_try_compile "$LINENO"; then :
18091 arch=
18092 prev=
18093 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18094 if test -n "$prev"; then
18095 case $word in
18096 i?86 | x86_64 | ppc | ppc64)
18097 if test -z "$arch" || test "$arch" = "$word"; then
18098 arch="$word"
18099 else
18100 gl_cv_c_multiarch=yes
18103 esac
18104 prev=
18105 else
18106 if test "x$word" = "x-arch"; then
18107 prev=arch
18110 done
18113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18114 if test $gl_cv_c_multiarch = yes; then
18115 APPLE_UNIVERSAL_BUILD=1
18116 else
18117 APPLE_UNIVERSAL_BUILD=0
18124 if test $ac_cv_type_long_long_int = yes; then
18125 HAVE_LONG_LONG_INT=1
18126 else
18127 HAVE_LONG_LONG_INT=0
18131 if test $ac_cv_type_unsigned_long_long_int = yes; then
18132 HAVE_UNSIGNED_LONG_LONG_INT=1
18133 else
18134 HAVE_UNSIGNED_LONG_LONG_INT=0
18139 if test $ac_cv_header_wchar_h = yes; then
18140 HAVE_WCHAR_H=1
18141 else
18142 HAVE_WCHAR_H=0
18146 if test $ac_cv_header_inttypes_h = yes; then
18147 HAVE_INTTYPES_H=1
18148 else
18149 HAVE_INTTYPES_H=0
18153 if test $ac_cv_header_sys_types_h = yes; then
18154 HAVE_SYS_TYPES_H=1
18155 else
18156 HAVE_SYS_TYPES_H=0
18169 if test $gl_cv_have_include_next = yes; then
18170 gl_cv_next_stdint_h='<'stdint.h'>'
18171 else
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18173 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18174 if test "${gl_cv_next_stdint_h+set}" = set; then :
18175 $as_echo_n "(cached) " >&6
18176 else
18178 if test $ac_cv_header_stdint_h = yes; then
18181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18182 /* end confdefs.h. */
18183 #include <stdint.h>
18185 _ACEOF
18186 case "$host_os" in
18187 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18188 *) gl_absname_cpp="$ac_cpp" ;;
18189 esac
18191 case "$host_os" in
18192 mingw*)
18193 gl_dirsep_regex='[/\\]'
18196 gl_dirsep_regex='\/'
18198 esac
18199 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18201 gl_header_literal_regex=`echo 'stdint.h' \
18202 | sed -e "$gl_make_literal_regex_sed"`
18203 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18204 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18205 s|^/[^/]|//&|
18209 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18210 sed -n "$gl_absolute_header_sed"`'"'
18211 else
18212 gl_cv_next_stdint_h='<'stdint.h'>'
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18218 $as_echo "$gl_cv_next_stdint_h" >&6; }
18220 NEXT_STDINT_H=$gl_cv_next_stdint_h
18222 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18223 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18224 gl_next_as_first_directive='<'stdint.h'>'
18225 else
18226 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18227 gl_next_as_first_directive=$gl_cv_next_stdint_h
18229 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18234 if test $ac_cv_header_stdint_h = yes; then
18235 HAVE_STDINT_H=1
18236 else
18237 HAVE_STDINT_H=0
18241 if test $ac_cv_header_stdint_h = yes; then
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18243 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18244 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18245 $as_echo_n "(cached) " >&6
18246 else
18247 gl_cv_header_working_stdint_h=no
18248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18249 /* end confdefs.h. */
18252 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18253 #include <stdint.h>
18254 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18255 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18256 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18257 #endif
18260 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18261 included before <wchar.h>. */
18262 #include <stddef.h>
18263 #include <signal.h>
18264 #if HAVE_WCHAR_H
18265 # include <stdio.h>
18266 # include <time.h>
18267 # include <wchar.h>
18268 #endif
18271 #ifdef INT8_MAX
18272 int8_t a1 = INT8_MAX;
18273 int8_t a1min = INT8_MIN;
18274 #endif
18275 #ifdef INT16_MAX
18276 int16_t a2 = INT16_MAX;
18277 int16_t a2min = INT16_MIN;
18278 #endif
18279 #ifdef INT32_MAX
18280 int32_t a3 = INT32_MAX;
18281 int32_t a3min = INT32_MIN;
18282 #endif
18283 #ifdef INT64_MAX
18284 int64_t a4 = INT64_MAX;
18285 int64_t a4min = INT64_MIN;
18286 #endif
18287 #ifdef UINT8_MAX
18288 uint8_t b1 = UINT8_MAX;
18289 #else
18290 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18291 #endif
18292 #ifdef UINT16_MAX
18293 uint16_t b2 = UINT16_MAX;
18294 #endif
18295 #ifdef UINT32_MAX
18296 uint32_t b3 = UINT32_MAX;
18297 #endif
18298 #ifdef UINT64_MAX
18299 uint64_t b4 = UINT64_MAX;
18300 #endif
18301 int_least8_t c1 = INT8_C (0x7f);
18302 int_least8_t c1max = INT_LEAST8_MAX;
18303 int_least8_t c1min = INT_LEAST8_MIN;
18304 int_least16_t c2 = INT16_C (0x7fff);
18305 int_least16_t c2max = INT_LEAST16_MAX;
18306 int_least16_t c2min = INT_LEAST16_MIN;
18307 int_least32_t c3 = INT32_C (0x7fffffff);
18308 int_least32_t c3max = INT_LEAST32_MAX;
18309 int_least32_t c3min = INT_LEAST32_MIN;
18310 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18311 int_least64_t c4max = INT_LEAST64_MAX;
18312 int_least64_t c4min = INT_LEAST64_MIN;
18313 uint_least8_t d1 = UINT8_C (0xff);
18314 uint_least8_t d1max = UINT_LEAST8_MAX;
18315 uint_least16_t d2 = UINT16_C (0xffff);
18316 uint_least16_t d2max = UINT_LEAST16_MAX;
18317 uint_least32_t d3 = UINT32_C (0xffffffff);
18318 uint_least32_t d3max = UINT_LEAST32_MAX;
18319 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18320 uint_least64_t d4max = UINT_LEAST64_MAX;
18321 int_fast8_t e1 = INT_FAST8_MAX;
18322 int_fast8_t e1min = INT_FAST8_MIN;
18323 int_fast16_t e2 = INT_FAST16_MAX;
18324 int_fast16_t e2min = INT_FAST16_MIN;
18325 int_fast32_t e3 = INT_FAST32_MAX;
18326 int_fast32_t e3min = INT_FAST32_MIN;
18327 int_fast64_t e4 = INT_FAST64_MAX;
18328 int_fast64_t e4min = INT_FAST64_MIN;
18329 uint_fast8_t f1 = UINT_FAST8_MAX;
18330 uint_fast16_t f2 = UINT_FAST16_MAX;
18331 uint_fast32_t f3 = UINT_FAST32_MAX;
18332 uint_fast64_t f4 = UINT_FAST64_MAX;
18333 #ifdef INTPTR_MAX
18334 intptr_t g = INTPTR_MAX;
18335 intptr_t gmin = INTPTR_MIN;
18336 #endif
18337 #ifdef UINTPTR_MAX
18338 uintptr_t h = UINTPTR_MAX;
18339 #endif
18340 intmax_t i = INTMAX_MAX;
18341 uintmax_t j = UINTMAX_MAX;
18343 #include <limits.h> /* for CHAR_BIT */
18344 #define TYPE_MINIMUM(t) \
18345 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18346 #define TYPE_MAXIMUM(t) \
18347 ((t) ((t) 0 < (t) -1 \
18348 ? (t) -1 \
18349 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18350 struct s {
18351 int check_PTRDIFF:
18352 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18353 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18354 ? 1 : -1;
18355 /* Detect bug in FreeBSD 6.0 / ia64. */
18356 int check_SIG_ATOMIC:
18357 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18358 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18359 ? 1 : -1;
18360 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18361 int check_WCHAR:
18362 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18363 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18364 ? 1 : -1;
18365 /* Detect bug in mingw. */
18366 int check_WINT:
18367 WINT_MIN == TYPE_MINIMUM (wint_t)
18368 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18369 ? 1 : -1;
18371 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18372 int check_UINT8_C:
18373 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18374 int check_UINT16_C:
18375 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18377 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18378 #ifdef UINT8_MAX
18379 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18380 #endif
18381 #ifdef UINT16_MAX
18382 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18383 #endif
18384 #ifdef UINT32_MAX
18385 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18386 #endif
18387 #ifdef UINT64_MAX
18388 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18389 #endif
18390 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18391 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18392 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18393 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18394 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18395 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18396 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18397 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18398 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18399 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18400 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18404 main ()
18408 return 0;
18410 _ACEOF
18411 if ac_fn_c_try_compile "$LINENO"; then :
18412 if test "$cross_compiling" = yes; then :
18413 gl_cv_header_working_stdint_h=yes
18415 else
18416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18417 /* end confdefs.h. */
18420 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18421 #include <stdint.h>
18424 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18425 included before <wchar.h>. */
18426 #include <stddef.h>
18427 #include <signal.h>
18428 #if HAVE_WCHAR_H
18429 # include <stdio.h>
18430 # include <time.h>
18431 # include <wchar.h>
18432 #endif
18435 #include <stdio.h>
18436 #include <string.h>
18437 #define MVAL(macro) MVAL1(macro)
18438 #define MVAL1(expression) #expression
18439 static const char *macro_values[] =
18441 #ifdef INT8_MAX
18442 MVAL (INT8_MAX),
18443 #endif
18444 #ifdef INT16_MAX
18445 MVAL (INT16_MAX),
18446 #endif
18447 #ifdef INT32_MAX
18448 MVAL (INT32_MAX),
18449 #endif
18450 #ifdef INT64_MAX
18451 MVAL (INT64_MAX),
18452 #endif
18453 #ifdef UINT8_MAX
18454 MVAL (UINT8_MAX),
18455 #endif
18456 #ifdef UINT16_MAX
18457 MVAL (UINT16_MAX),
18458 #endif
18459 #ifdef UINT32_MAX
18460 MVAL (UINT32_MAX),
18461 #endif
18462 #ifdef UINT64_MAX
18463 MVAL (UINT64_MAX),
18464 #endif
18465 NULL
18469 main ()
18472 const char **mv;
18473 for (mv = macro_values; *mv != NULL; mv++)
18475 const char *value = *mv;
18476 /* Test whether it looks like a cast expression. */
18477 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18478 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18479 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18480 || strncmp (value, "((int)"/*)*/, 6) == 0
18481 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18482 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18483 return mv - macro_values + 1;
18485 return 0;
18488 return 0;
18490 _ACEOF
18491 if ac_fn_c_try_run "$LINENO"; then :
18492 gl_cv_header_working_stdint_h=yes
18494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18495 conftest.$ac_objext conftest.beam conftest.$ac_ext
18500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18504 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18506 if test "$gl_cv_header_working_stdint_h" = yes; then
18507 STDINT_H=
18508 else
18509 for ac_header in sys/inttypes.h sys/bitypes.h
18510 do :
18511 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18512 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18513 eval as_val=\$$as_ac_Header
18514 if test "x$as_val" = x""yes; then :
18515 cat >>confdefs.h <<_ACEOF
18516 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18517 _ACEOF
18521 done
18523 if test $ac_cv_header_sys_inttypes_h = yes; then
18524 HAVE_SYS_INTTYPES_H=1
18525 else
18526 HAVE_SYS_INTTYPES_H=0
18529 if test $ac_cv_header_sys_bitypes_h = yes; then
18530 HAVE_SYS_BITYPES_H=1
18531 else
18532 HAVE_SYS_BITYPES_H=0
18538 if test $APPLE_UNIVERSAL_BUILD = 0; then
18541 for gltype in ptrdiff_t size_t ; do
18542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18543 $as_echo_n "checking for bit size of $gltype... " >&6; }
18544 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18545 $as_echo_n "(cached) " >&6
18546 else
18547 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18548 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18549 included before <wchar.h>. */
18550 #include <stddef.h>
18551 #include <signal.h>
18552 #if HAVE_WCHAR_H
18553 # include <stdio.h>
18554 # include <time.h>
18555 # include <wchar.h>
18556 #endif
18558 #include <limits.h>"; then :
18560 else
18561 result=unknown
18564 eval gl_cv_bitsizeof_${gltype}=\$result
18567 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18569 $as_echo "$ac_res" >&6; }
18570 eval result=\$gl_cv_bitsizeof_${gltype}
18571 if test $result = unknown; then
18572 result=0
18574 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18575 cat >>confdefs.h <<_ACEOF
18576 #define BITSIZEOF_${GLTYPE} $result
18577 _ACEOF
18579 eval BITSIZEOF_${GLTYPE}=\$result
18580 done
18586 for gltype in sig_atomic_t wchar_t wint_t ; do
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18588 $as_echo_n "checking for bit size of $gltype... " >&6; }
18589 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18590 $as_echo_n "(cached) " >&6
18591 else
18592 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18593 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18594 included before <wchar.h>. */
18595 #include <stddef.h>
18596 #include <signal.h>
18597 #if HAVE_WCHAR_H
18598 # include <stdio.h>
18599 # include <time.h>
18600 # include <wchar.h>
18601 #endif
18603 #include <limits.h>"; then :
18605 else
18606 result=unknown
18609 eval gl_cv_bitsizeof_${gltype}=\$result
18612 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18614 $as_echo "$ac_res" >&6; }
18615 eval result=\$gl_cv_bitsizeof_${gltype}
18616 if test $result = unknown; then
18617 result=0
18619 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18620 cat >>confdefs.h <<_ACEOF
18621 #define BITSIZEOF_${GLTYPE} $result
18622 _ACEOF
18624 eval BITSIZEOF_${GLTYPE}=\$result
18625 done
18630 for gltype in sig_atomic_t wchar_t wint_t ; do
18631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18632 $as_echo_n "checking whether $gltype is signed... " >&6; }
18633 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18634 $as_echo_n "(cached) " >&6
18635 else
18636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18637 /* end confdefs.h. */
18639 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18640 included before <wchar.h>. */
18641 #include <stddef.h>
18642 #include <signal.h>
18643 #if HAVE_WCHAR_H
18644 # include <stdio.h>
18645 # include <time.h>
18646 # include <wchar.h>
18647 #endif
18649 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18651 main ()
18655 return 0;
18657 _ACEOF
18658 if ac_fn_c_try_compile "$LINENO"; then :
18659 result=yes
18660 else
18661 result=no
18663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18664 eval gl_cv_type_${gltype}_signed=\$result
18667 eval ac_res=\$gl_cv_type_${gltype}_signed
18668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18669 $as_echo "$ac_res" >&6; }
18670 eval result=\$gl_cv_type_${gltype}_signed
18671 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18672 if test "$result" = yes; then
18673 cat >>confdefs.h <<_ACEOF
18674 #define HAVE_SIGNED_${GLTYPE} 1
18675 _ACEOF
18677 eval HAVE_SIGNED_${GLTYPE}=1
18678 else
18679 eval HAVE_SIGNED_${GLTYPE}=0
18681 done
18684 gl_cv_type_ptrdiff_t_signed=yes
18685 gl_cv_type_size_t_signed=no
18686 if test $APPLE_UNIVERSAL_BUILD = 0; then
18689 for gltype in ptrdiff_t size_t ; do
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18691 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18692 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18693 $as_echo_n "(cached) " >&6
18694 else
18695 eval gl_cv_type_${gltype}_suffix=no
18696 eval result=\$gl_cv_type_${gltype}_signed
18697 if test "$result" = yes; then
18698 glsufu=
18699 else
18700 glsufu=u
18702 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18703 case $glsuf in
18704 '') gltype1='int';;
18705 l) gltype1='long int';;
18706 ll) gltype1='long long int';;
18707 i64) gltype1='__int64';;
18708 u) gltype1='unsigned int';;
18709 ul) gltype1='unsigned long int';;
18710 ull) gltype1='unsigned long long int';;
18711 ui64)gltype1='unsigned __int64';;
18712 esac
18713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18714 /* end confdefs.h. */
18716 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18717 included before <wchar.h>. */
18718 #include <stddef.h>
18719 #include <signal.h>
18720 #if HAVE_WCHAR_H
18721 # include <stdio.h>
18722 # include <time.h>
18723 # include <wchar.h>
18724 #endif
18726 extern $gltype foo;
18727 extern $gltype1 foo;
18729 main ()
18733 return 0;
18735 _ACEOF
18736 if ac_fn_c_try_compile "$LINENO"; then :
18737 eval gl_cv_type_${gltype}_suffix=\$glsuf
18739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18740 eval result=\$gl_cv_type_${gltype}_suffix
18741 test "$result" != no && break
18742 done
18744 eval ac_res=\$gl_cv_type_${gltype}_suffix
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18746 $as_echo "$ac_res" >&6; }
18747 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18748 eval result=\$gl_cv_type_${gltype}_suffix
18749 test "$result" = no && result=
18750 eval ${GLTYPE}_SUFFIX=\$result
18751 cat >>confdefs.h <<_ACEOF
18752 #define ${GLTYPE}_SUFFIX $result
18753 _ACEOF
18755 done
18761 for gltype in sig_atomic_t wchar_t wint_t ; do
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18763 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18764 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18765 $as_echo_n "(cached) " >&6
18766 else
18767 eval gl_cv_type_${gltype}_suffix=no
18768 eval result=\$gl_cv_type_${gltype}_signed
18769 if test "$result" = yes; then
18770 glsufu=
18771 else
18772 glsufu=u
18774 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18775 case $glsuf in
18776 '') gltype1='int';;
18777 l) gltype1='long int';;
18778 ll) gltype1='long long int';;
18779 i64) gltype1='__int64';;
18780 u) gltype1='unsigned int';;
18781 ul) gltype1='unsigned long int';;
18782 ull) gltype1='unsigned long long int';;
18783 ui64)gltype1='unsigned __int64';;
18784 esac
18785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18786 /* end confdefs.h. */
18788 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18789 included before <wchar.h>. */
18790 #include <stddef.h>
18791 #include <signal.h>
18792 #if HAVE_WCHAR_H
18793 # include <stdio.h>
18794 # include <time.h>
18795 # include <wchar.h>
18796 #endif
18798 extern $gltype foo;
18799 extern $gltype1 foo;
18801 main ()
18805 return 0;
18807 _ACEOF
18808 if ac_fn_c_try_compile "$LINENO"; then :
18809 eval gl_cv_type_${gltype}_suffix=\$glsuf
18811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18812 eval result=\$gl_cv_type_${gltype}_suffix
18813 test "$result" != no && break
18814 done
18816 eval ac_res=\$gl_cv_type_${gltype}_suffix
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18818 $as_echo "$ac_res" >&6; }
18819 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18820 eval result=\$gl_cv_type_${gltype}_suffix
18821 test "$result" = no && result=
18822 eval ${GLTYPE}_SUFFIX=\$result
18823 cat >>confdefs.h <<_ACEOF
18824 #define ${GLTYPE}_SUFFIX $result
18825 _ACEOF
18827 done
18831 if test $BITSIZEOF_WINT_T -lt 32; then
18832 BITSIZEOF_WINT_T=32
18835 STDINT_H=stdint.h
18838 if test -n "$STDINT_H"; then
18839 GL_GENERATE_STDINT_H_TRUE=
18840 GL_GENERATE_STDINT_H_FALSE='#'
18841 else
18842 GL_GENERATE_STDINT_H_TRUE='#'
18843 GL_GENERATE_STDINT_H_FALSE=
18850 GNULIB_IMAXABS=0;
18851 GNULIB_IMAXDIV=0;
18852 GNULIB_STRTOIMAX=0;
18853 GNULIB_STRTOUMAX=0;
18854 HAVE_DECL_IMAXABS=1;
18855 HAVE_DECL_IMAXDIV=1;
18856 HAVE_DECL_STRTOIMAX=1;
18857 HAVE_DECL_STRTOUMAX=1;
18858 REPLACE_STRTOIMAX=0;
18859 INT32_MAX_LT_INTMAX_MAX=1;
18860 INT64_MAX_EQ_LONG_MAX='defined _LP64';
18861 PRI_MACROS_BROKEN=0;
18862 PRIPTR_PREFIX=__PRIPTR_PREFIX;
18863 UINT32_MAX_LT_UINTMAX_MAX=1;
18864 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
18880 if test $gl_cv_have_include_next = yes; then
18881 gl_cv_next_inttypes_h='<'inttypes.h'>'
18882 else
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18884 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18885 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18886 $as_echo_n "(cached) " >&6
18887 else
18889 if test $ac_cv_header_inttypes_h = yes; then
18892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18893 /* end confdefs.h. */
18894 #include <inttypes.h>
18896 _ACEOF
18897 case "$host_os" in
18898 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18899 *) gl_absname_cpp="$ac_cpp" ;;
18900 esac
18902 case "$host_os" in
18903 mingw*)
18904 gl_dirsep_regex='[/\\]'
18907 gl_dirsep_regex='\/'
18909 esac
18910 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18912 gl_header_literal_regex=`echo 'inttypes.h' \
18913 | sed -e "$gl_make_literal_regex_sed"`
18914 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18915 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18916 s|^/[^/]|//&|
18920 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18921 sed -n "$gl_absolute_header_sed"`'"'
18922 else
18923 gl_cv_next_inttypes_h='<'inttypes.h'>'
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18929 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18931 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
18933 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18934 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18935 gl_next_as_first_directive='<'inttypes.h'>'
18936 else
18937 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18938 gl_next_as_first_directive=$gl_cv_next_inttypes_h
18940 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
18952 case "$host_os" in
18953 mingw*)
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
18955 $as_echo_n "checking for 64-bit off_t... " >&6; }
18956 if test "${gl_cv_type_off_t_64+set}" = set; then :
18957 $as_echo_n "(cached) " >&6
18958 else
18959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18960 /* end confdefs.h. */
18961 #include <sys/types.h>
18962 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
18965 main ()
18969 return 0;
18971 _ACEOF
18972 if ac_fn_c_try_compile "$LINENO"; then :
18973 gl_cv_type_off_t_64=yes
18974 else
18975 gl_cv_type_off_t_64=no
18977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
18981 $as_echo "$gl_cv_type_off_t_64" >&6; }
18982 if test $gl_cv_type_off_t_64 = no; then
18983 WINDOWS_64_BIT_OFF_T=1
18984 else
18985 WINDOWS_64_BIT_OFF_T=0
18987 WINDOWS_64_BIT_ST_SIZE=1
18990 WINDOWS_64_BIT_OFF_T=0
18991 WINDOWS_64_BIT_ST_SIZE=0
18993 esac
18996 GNULIB_FCHMODAT=0;
18997 GNULIB_FSTAT=0;
18998 GNULIB_FSTATAT=0;
18999 GNULIB_FUTIMENS=0;
19000 GNULIB_LCHMOD=0;
19001 GNULIB_LSTAT=0;
19002 GNULIB_MKDIRAT=0;
19003 GNULIB_MKFIFO=0;
19004 GNULIB_MKFIFOAT=0;
19005 GNULIB_MKNOD=0;
19006 GNULIB_MKNODAT=0;
19007 GNULIB_STAT=0;
19008 GNULIB_UTIMENSAT=0;
19009 HAVE_FCHMODAT=1;
19010 HAVE_FSTATAT=1;
19011 HAVE_FUTIMENS=1;
19012 HAVE_LCHMOD=1;
19013 HAVE_LSTAT=1;
19014 HAVE_MKDIRAT=1;
19015 HAVE_MKFIFO=1;
19016 HAVE_MKFIFOAT=1;
19017 HAVE_MKNOD=1;
19018 HAVE_MKNODAT=1;
19019 HAVE_UTIMENSAT=1;
19020 REPLACE_FSTAT=0;
19021 REPLACE_FSTATAT=0;
19022 REPLACE_FUTIMENS=0;
19023 REPLACE_LSTAT=0;
19024 REPLACE_MKDIR=0;
19025 REPLACE_MKFIFO=0;
19026 REPLACE_MKNOD=0;
19027 REPLACE_STAT=0;
19028 REPLACE_UTIMENSAT=0;
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
19034 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
19035 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
19036 $as_echo_n "(cached) " >&6
19037 else
19038 rm -f conftest.sym conftest.file
19039 echo >conftest.file
19040 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
19041 if test "$cross_compiling" = yes; then :
19042 case "$host_os" in
19043 # Guess yes on glibc systems.
19044 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
19045 # If we don't know, assume the worst.
19046 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
19047 esac
19049 else
19050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19051 /* end confdefs.h. */
19052 $ac_includes_default
19054 main ()
19056 struct stat sbuf;
19057 /* Linux will dereference the symlink and fail, as required by
19058 POSIX. That is better in the sense that it means we will not
19059 have to compile and use the lstat wrapper. */
19060 return lstat ("conftest.sym/", &sbuf) == 0;
19063 return 0;
19065 _ACEOF
19066 if ac_fn_c_try_run "$LINENO"; then :
19067 gl_cv_func_lstat_dereferences_slashed_symlink=yes
19068 else
19069 gl_cv_func_lstat_dereferences_slashed_symlink=no
19071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19072 conftest.$ac_objext conftest.beam conftest.$ac_ext
19075 else
19076 # If the 'ln -s' command failed, then we probably don't even
19077 # have an lstat function.
19078 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
19080 rm -f conftest.sym conftest.file
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
19084 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19085 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19086 *yes)
19088 cat >>confdefs.h <<_ACEOF
19089 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19090 _ACEOF
19093 esac
19096 GNULIB_MKTIME=0;
19097 GNULIB_NANOSLEEP=0;
19098 GNULIB_STRPTIME=0;
19099 GNULIB_TIMEGM=0;
19100 GNULIB_TIME_R=0;
19101 HAVE_DECL_LOCALTIME_R=1;
19102 HAVE_NANOSLEEP=1;
19103 HAVE_STRPTIME=1;
19104 HAVE_TIMEGM=1;
19105 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
19106 REPLACE_MKTIME=GNULIB_PORTCHECK;
19107 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
19108 REPLACE_TIMEGM=GNULIB_PORTCHECK;
19113 GNULIB_PSELECT=0;
19114 GNULIB_SELECT=0;
19115 HAVE_PSELECT=1;
19116 REPLACE_PSELECT=0;
19117 REPLACE_SELECT=0;
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
19125 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
19126 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
19127 $as_echo_n "(cached) " >&6
19128 else
19130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19131 /* end confdefs.h. */
19132 #include <sys/select.h>
19134 main ()
19136 struct timeval b;
19138 return 0;
19140 _ACEOF
19141 if ac_fn_c_try_compile "$LINENO"; then :
19142 gl_cv_header_sys_select_h_selfcontained=yes
19143 else
19144 gl_cv_header_sys_select_h_selfcontained=no
19146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19147 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
19148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19149 /* end confdefs.h. */
19150 #include <sys/select.h>
19152 main ()
19154 int memset; int bzero;
19156 return 0;
19159 _ACEOF
19160 if ac_fn_c_try_compile "$LINENO"; then :
19161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19162 /* end confdefs.h. */
19163 #include <sys/select.h>
19165 main ()
19168 #undef memset
19169 #define memset nonexistent_memset
19170 extern
19171 #ifdef __cplusplus
19173 #endif
19174 void *memset (void *, int, unsigned long);
19175 #undef bzero
19176 #define bzero nonexistent_bzero
19177 extern
19178 #ifdef __cplusplus
19180 #endif
19181 void bzero (void *, unsigned long);
19182 fd_set fds;
19183 FD_ZERO (&fds);
19186 return 0;
19189 _ACEOF
19190 if ac_fn_c_try_link "$LINENO"; then :
19192 else
19193 gl_cv_header_sys_select_h_selfcontained=no
19195 rm -f core conftest.err conftest.$ac_objext \
19196 conftest$ac_exeext conftest.$ac_ext
19199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
19204 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
19214 if test $gl_cv_have_include_next = yes; then
19215 gl_cv_next_sys_select_h='<'sys/select.h'>'
19216 else
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
19218 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
19219 if test "${gl_cv_next_sys_select_h+set}" = set; then :
19220 $as_echo_n "(cached) " >&6
19221 else
19223 if test $ac_cv_header_sys_select_h = yes; then
19226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19227 /* end confdefs.h. */
19228 #include <sys/select.h>
19230 _ACEOF
19231 case "$host_os" in
19232 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19233 *) gl_absname_cpp="$ac_cpp" ;;
19234 esac
19236 case "$host_os" in
19237 mingw*)
19238 gl_dirsep_regex='[/\\]'
19241 gl_dirsep_regex='\/'
19243 esac
19244 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19246 gl_header_literal_regex=`echo 'sys/select.h' \
19247 | sed -e "$gl_make_literal_regex_sed"`
19248 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19249 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19250 s|^/[^/]|//&|
19254 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19255 sed -n "$gl_absolute_header_sed"`'"'
19256 else
19257 gl_cv_next_sys_select_h='<'sys/select.h'>'
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
19263 $as_echo "$gl_cv_next_sys_select_h" >&6; }
19265 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
19267 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19268 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19269 gl_next_as_first_directive='<'sys/select.h'>'
19270 else
19271 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19272 gl_next_as_first_directive=$gl_cv_next_sys_select_h
19274 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
19279 if test $ac_cv_header_sys_select_h = yes; then
19280 HAVE_SYS_SELECT_H=1
19281 else
19282 HAVE_SYS_SELECT_H=0
19289 if test $ac_cv_header_sys_socket_h != yes; then
19290 for ac_header in winsock2.h
19291 do :
19292 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19293 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
19294 cat >>confdefs.h <<_ACEOF
19295 #define HAVE_WINSOCK2_H 1
19296 _ACEOF
19300 done
19303 if test "$ac_cv_header_winsock2_h" = yes; then
19304 HAVE_WINSOCK2_H=1
19305 UNISTD_H_HAVE_WINSOCK2_H=1
19306 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19307 else
19308 HAVE_WINSOCK2_H=0
19318 GNULIB_PTHREAD_SIGMASK=0;
19319 GNULIB_RAISE=0;
19320 GNULIB_SIGNAL_H_SIGPIPE=0;
19321 GNULIB_SIGPROCMASK=0;
19322 GNULIB_SIGACTION=0;
19323 HAVE_POSIX_SIGNALBLOCKING=1;
19324 HAVE_PTHREAD_SIGMASK=1;
19325 HAVE_RAISE=1;
19326 HAVE_SIGSET_T=1;
19327 HAVE_SIGINFO_T=1;
19328 HAVE_SIGACTION=1;
19329 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
19331 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
19333 HAVE_SIGHANDLER_T=1;
19334 REPLACE_PTHREAD_SIGMASK=0;
19335 REPLACE_RAISE=0;
19343 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19344 #include <signal.h>
19345 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19346 #include <sys/types.h>
19349 if test "x$ac_cv_type_sigset_t" = x""yes; then :
19351 cat >>confdefs.h <<_ACEOF
19352 #define HAVE_SIGSET_T 1
19353 _ACEOF
19355 gl_cv_type_sigset_t=yes
19356 else
19357 gl_cv_type_sigset_t=no
19360 if test $gl_cv_type_sigset_t != yes; then
19361 HAVE_SIGSET_T=0
19366 if test $ac_cv_header_sys_socket_h = no; then
19367 for ac_header in ws2tcpip.h
19368 do :
19369 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19370 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
19371 cat >>confdefs.h <<_ACEOF
19372 #define HAVE_WS2TCPIP_H 1
19373 _ACEOF
19377 done
19381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19382 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19383 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19384 $as_echo_n "(cached) " >&6
19385 else
19386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19387 /* end confdefs.h. */
19389 #include <stdbool.h>
19390 #ifndef bool
19391 "error: bool is not defined"
19392 #endif
19393 #ifndef false
19394 "error: false is not defined"
19395 #endif
19396 #if false
19397 "error: false is not 0"
19398 #endif
19399 #ifndef true
19400 "error: true is not defined"
19401 #endif
19402 #if true != 1
19403 "error: true is not 1"
19404 #endif
19405 #ifndef __bool_true_false_are_defined
19406 "error: __bool_true_false_are_defined is not defined"
19407 #endif
19409 struct s { _Bool s: 1; _Bool t; } s;
19411 char a[true == 1 ? 1 : -1];
19412 char b[false == 0 ? 1 : -1];
19413 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19414 char d[(bool) 0.5 == true ? 1 : -1];
19415 /* See body of main program for 'e'. */
19416 char f[(_Bool) 0.0 == false ? 1 : -1];
19417 char g[true];
19418 char h[sizeof (_Bool)];
19419 char i[sizeof s.t];
19420 enum { j = false, k = true, l = false * true, m = true * 256 };
19421 /* The following fails for
19422 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19423 _Bool n[m];
19424 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19425 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19426 /* Catch a bug in an HP-UX C compiler. See
19427 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19428 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19430 _Bool q = true;
19431 _Bool *pq = &q;
19434 main ()
19437 bool e = &s;
19438 *pq |= q;
19439 *pq |= ! q;
19440 /* Refer to every declared value, to avoid compiler optimizations. */
19441 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19442 + !m + !n + !o + !p + !q + !pq);
19445 return 0;
19447 _ACEOF
19448 if ac_fn_c_try_compile "$LINENO"; then :
19449 ac_cv_header_stdbool_h=yes
19450 else
19451 ac_cv_header_stdbool_h=no
19453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19456 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19457 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19458 if test "x$ac_cv_type__Bool" = x""yes; then :
19460 cat >>confdefs.h <<_ACEOF
19461 #define HAVE__BOOL 1
19462 _ACEOF
19469 REPLACE_NULL=0;
19470 HAVE_WCHAR_T=1;
19473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19474 $as_echo_n "checking for wchar_t... " >&6; }
19475 if test "${gt_cv_c_wchar_t+set}" = set; then :
19476 $as_echo_n "(cached) " >&6
19477 else
19478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19479 /* end confdefs.h. */
19480 #include <stddef.h>
19481 wchar_t foo = (wchar_t)'\0';
19483 main ()
19487 return 0;
19489 _ACEOF
19490 if ac_fn_c_try_compile "$LINENO"; then :
19491 gt_cv_c_wchar_t=yes
19492 else
19493 gt_cv_c_wchar_t=no
19495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19498 $as_echo "$gt_cv_c_wchar_t" >&6; }
19499 if test $gt_cv_c_wchar_t = yes; then
19501 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19506 GNULIB_DPRINTF=0;
19507 GNULIB_FCLOSE=0;
19508 GNULIB_FDOPEN=0;
19509 GNULIB_FFLUSH=0;
19510 GNULIB_FGETC=0;
19511 GNULIB_FGETS=0;
19512 GNULIB_FOPEN=0;
19513 GNULIB_FPRINTF=0;
19514 GNULIB_FPRINTF_POSIX=0;
19515 GNULIB_FPURGE=0;
19516 GNULIB_FPUTC=0;
19517 GNULIB_FPUTS=0;
19518 GNULIB_FREAD=0;
19519 GNULIB_FREOPEN=0;
19520 GNULIB_FSCANF=0;
19521 GNULIB_FSEEK=0;
19522 GNULIB_FSEEKO=0;
19523 GNULIB_FTELL=0;
19524 GNULIB_FTELLO=0;
19525 GNULIB_FWRITE=0;
19526 GNULIB_GETC=0;
19527 GNULIB_GETCHAR=0;
19528 GNULIB_GETDELIM=0;
19529 GNULIB_GETLINE=0;
19530 GNULIB_OBSTACK_PRINTF=0;
19531 GNULIB_OBSTACK_PRINTF_POSIX=0;
19532 GNULIB_PCLOSE=0;
19533 GNULIB_PERROR=0;
19534 GNULIB_POPEN=0;
19535 GNULIB_PRINTF=0;
19536 GNULIB_PRINTF_POSIX=0;
19537 GNULIB_PUTC=0;
19538 GNULIB_PUTCHAR=0;
19539 GNULIB_PUTS=0;
19540 GNULIB_REMOVE=0;
19541 GNULIB_RENAME=0;
19542 GNULIB_RENAMEAT=0;
19543 GNULIB_SCANF=0;
19544 GNULIB_SNPRINTF=0;
19545 GNULIB_SPRINTF_POSIX=0;
19546 GNULIB_STDIO_H_NONBLOCKING=0;
19547 GNULIB_STDIO_H_SIGPIPE=0;
19548 GNULIB_TMPFILE=0;
19549 GNULIB_VASPRINTF=0;
19550 GNULIB_VFSCANF=0;
19551 GNULIB_VSCANF=0;
19552 GNULIB_VDPRINTF=0;
19553 GNULIB_VFPRINTF=0;
19554 GNULIB_VFPRINTF_POSIX=0;
19555 GNULIB_VPRINTF=0;
19556 GNULIB_VPRINTF_POSIX=0;
19557 GNULIB_VSNPRINTF=0;
19558 GNULIB_VSPRINTF_POSIX=0;
19559 HAVE_DECL_FPURGE=1;
19560 HAVE_DECL_FSEEKO=1;
19561 HAVE_DECL_FTELLO=1;
19562 HAVE_DECL_GETDELIM=1;
19563 HAVE_DECL_GETLINE=1;
19564 HAVE_DECL_OBSTACK_PRINTF=1;
19565 HAVE_DECL_SNPRINTF=1;
19566 HAVE_DECL_VSNPRINTF=1;
19567 HAVE_DPRINTF=1;
19568 HAVE_FSEEKO=1;
19569 HAVE_FTELLO=1;
19570 HAVE_PCLOSE=1;
19571 HAVE_POPEN=1;
19572 HAVE_RENAMEAT=1;
19573 HAVE_VASPRINTF=1;
19574 HAVE_VDPRINTF=1;
19575 REPLACE_DPRINTF=0;
19576 REPLACE_FCLOSE=0;
19577 REPLACE_FDOPEN=0;
19578 REPLACE_FFLUSH=0;
19579 REPLACE_FOPEN=0;
19580 REPLACE_FPRINTF=0;
19581 REPLACE_FPURGE=0;
19582 REPLACE_FREOPEN=0;
19583 REPLACE_FSEEK=0;
19584 REPLACE_FSEEKO=0;
19585 REPLACE_FTELL=0;
19586 REPLACE_FTELLO=0;
19587 REPLACE_GETDELIM=0;
19588 REPLACE_GETLINE=0;
19589 REPLACE_OBSTACK_PRINTF=0;
19590 REPLACE_PERROR=0;
19591 REPLACE_POPEN=0;
19592 REPLACE_PRINTF=0;
19593 REPLACE_REMOVE=0;
19594 REPLACE_RENAME=0;
19595 REPLACE_RENAMEAT=0;
19596 REPLACE_SNPRINTF=0;
19597 REPLACE_SPRINTF=0;
19598 REPLACE_STDIO_READ_FUNCS=0;
19599 REPLACE_STDIO_WRITE_FUNCS=0;
19600 REPLACE_TMPFILE=0;
19601 REPLACE_VASPRINTF=0;
19602 REPLACE_VDPRINTF=0;
19603 REPLACE_VFPRINTF=0;
19604 REPLACE_VPRINTF=0;
19605 REPLACE_VSNPRINTF=0;
19606 REPLACE_VSPRINTF=0;
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19609 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19610 if test "${ac_cv_struct_tm+set}" = set; then :
19611 $as_echo_n "(cached) " >&6
19612 else
19613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19614 /* end confdefs.h. */
19615 #include <sys/types.h>
19616 #include <time.h>
19619 main ()
19621 struct tm tm;
19622 int *p = &tm.tm_sec;
19623 return !p;
19625 return 0;
19627 _ACEOF
19628 if ac_fn_c_try_compile "$LINENO"; then :
19629 ac_cv_struct_tm=time.h
19630 else
19631 ac_cv_struct_tm=sys/time.h
19633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19636 $as_echo "$ac_cv_struct_tm" >&6; }
19637 if test $ac_cv_struct_tm = sys/time.h; then
19639 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19643 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19644 #include <$ac_cv_struct_tm>
19647 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
19649 cat >>confdefs.h <<_ACEOF
19650 #define HAVE_STRUCT_TM_TM_ZONE 1
19651 _ACEOF
19656 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19658 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19660 else
19661 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19663 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
19664 ac_have_decl=1
19665 else
19666 ac_have_decl=0
19669 cat >>confdefs.h <<_ACEOF
19670 #define HAVE_DECL_TZNAME $ac_have_decl
19671 _ACEOF
19673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19674 $as_echo_n "checking for tzname... " >&6; }
19675 if test "${ac_cv_var_tzname+set}" = set; then :
19676 $as_echo_n "(cached) " >&6
19677 else
19678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19679 /* end confdefs.h. */
19680 #include <time.h>
19681 #if !HAVE_DECL_TZNAME
19682 extern char *tzname[];
19683 #endif
19686 main ()
19688 return tzname[0][0];
19690 return 0;
19692 _ACEOF
19693 if ac_fn_c_try_link "$LINENO"; then :
19694 ac_cv_var_tzname=yes
19695 else
19696 ac_cv_var_tzname=no
19698 rm -f core conftest.err conftest.$ac_objext \
19699 conftest$ac_exeext conftest.$ac_ext
19701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19702 $as_echo "$ac_cv_var_tzname" >&6; }
19703 if test $ac_cv_var_tzname = yes; then
19705 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19711 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19713 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
19715 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19722 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19723 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
19724 ac_have_decl=1
19725 else
19726 ac_have_decl=0
19729 cat >>confdefs.h <<_ACEOF
19730 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19731 _ACEOF
19735 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19736 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
19737 ac_have_decl=1
19738 else
19739 ac_have_decl=0
19742 cat >>confdefs.h <<_ACEOF
19743 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19744 _ACEOF
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19749 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19750 if test "${ac_cv_header_stat_broken+set}" = set; then :
19751 $as_echo_n "(cached) " >&6
19752 else
19753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19754 /* end confdefs.h. */
19755 #include <sys/types.h>
19756 #include <sys/stat.h>
19758 #if defined S_ISBLK && defined S_IFDIR
19759 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19760 #endif
19762 #if defined S_ISBLK && defined S_IFCHR
19763 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19764 #endif
19766 #if defined S_ISLNK && defined S_IFREG
19767 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19768 #endif
19770 #if defined S_ISSOCK && defined S_IFREG
19771 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19772 #endif
19774 _ACEOF
19775 if ac_fn_c_try_compile "$LINENO"; then :
19776 ac_cv_header_stat_broken=no
19777 else
19778 ac_cv_header_stat_broken=yes
19780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19783 $as_echo "$ac_cv_header_stat_broken" >&6; }
19784 if test $ac_cv_header_stat_broken = yes; then
19786 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19795 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19796 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19797 $as_echo_n "(cached) " >&6
19798 else
19799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19800 /* end confdefs.h. */
19801 #include <time.h>
19804 main ()
19806 static struct timespec x; x.tv_sec = x.tv_nsec;
19808 return 0;
19810 _ACEOF
19811 if ac_fn_c_try_compile "$LINENO"; then :
19812 gl_cv_sys_struct_timespec_in_time_h=yes
19813 else
19814 gl_cv_sys_struct_timespec_in_time_h=no
19816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19819 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19821 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19822 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19823 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19824 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19825 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19826 else
19827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19828 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19829 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19830 $as_echo_n "(cached) " >&6
19831 else
19832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19833 /* end confdefs.h. */
19834 #include <sys/time.h>
19837 main ()
19839 static struct timespec x; x.tv_sec = x.tv_nsec;
19841 return 0;
19843 _ACEOF
19844 if ac_fn_c_try_compile "$LINENO"; then :
19845 gl_cv_sys_struct_timespec_in_sys_time_h=yes
19846 else
19847 gl_cv_sys_struct_timespec_in_sys_time_h=no
19849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19852 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19853 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19854 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19855 else
19856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19857 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19858 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19859 $as_echo_n "(cached) " >&6
19860 else
19861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19862 /* end confdefs.h. */
19863 #include <pthread.h>
19866 main ()
19868 static struct timespec x; x.tv_sec = x.tv_nsec;
19870 return 0;
19872 _ACEOF
19873 if ac_fn_c_try_compile "$LINENO"; then :
19874 gl_cv_sys_struct_timespec_in_pthread_h=yes
19875 else
19876 gl_cv_sys_struct_timespec_in_pthread_h=no
19878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19881 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19882 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19883 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19902 if test $gl_cv_have_include_next = yes; then
19903 gl_cv_next_time_h='<'time.h'>'
19904 else
19905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19906 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19907 if test "${gl_cv_next_time_h+set}" = set; then :
19908 $as_echo_n "(cached) " >&6
19909 else
19911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19912 /* end confdefs.h. */
19913 #include <time.h>
19915 _ACEOF
19916 case "$host_os" in
19917 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19918 *) gl_absname_cpp="$ac_cpp" ;;
19919 esac
19921 case "$host_os" in
19922 mingw*)
19923 gl_dirsep_regex='[/\\]'
19926 gl_dirsep_regex='\/'
19928 esac
19929 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19931 gl_header_literal_regex=`echo 'time.h' \
19932 | sed -e "$gl_make_literal_regex_sed"`
19933 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19934 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19935 s|^/[^/]|//&|
19939 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19940 sed -n "$gl_absolute_header_sed"`'"'
19944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19945 $as_echo "$gl_cv_next_time_h" >&6; }
19947 NEXT_TIME_H=$gl_cv_next_time_h
19949 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19950 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19951 gl_next_as_first_directive='<'time.h'>'
19952 else
19953 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19954 gl_next_as_first_directive=$gl_cv_next_time_h
19956 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
19973 $as_echo_n "checking whether the utimes function works... " >&6; }
19974 if test "${gl_cv_func_working_utimes+set}" = set; then :
19975 $as_echo_n "(cached) " >&6
19976 else
19978 if test "$cross_compiling" = yes; then :
19979 gl_cv_func_working_utimes=no
19980 else
19981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19982 /* end confdefs.h. */
19984 #include <sys/types.h>
19985 #include <sys/stat.h>
19986 #include <fcntl.h>
19987 #include <sys/time.h>
19988 #include <time.h>
19989 #include <unistd.h>
19990 #include <stdlib.h>
19991 #include <stdio.h>
19992 #include <utime.h>
19994 static int
19995 inorder (time_t a, time_t b, time_t c)
19997 return a <= b && b <= c;
20001 main ()
20003 int result = 0;
20004 char const *file = "conftest.utimes";
20005 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
20007 /* Test whether utimes() essentially works. */
20009 struct stat sbuf;
20010 FILE *f = fopen (file, "w");
20011 if (f == NULL)
20012 result |= 1;
20013 else if (fclose (f) != 0)
20014 result |= 1;
20015 else if (utimes (file, timeval) != 0)
20016 result |= 2;
20017 else if (lstat (file, &sbuf) != 0)
20018 result |= 1;
20019 else if (!(sbuf.st_atime == timeval[0].tv_sec
20020 && sbuf.st_mtime == timeval[1].tv_sec))
20021 result |= 4;
20022 if (unlink (file) != 0)
20023 result |= 1;
20026 /* Test whether utimes() with a NULL argument sets the file's timestamp
20027 to the current time. Use 'fstat' as well as 'time' to
20028 determine the "current" time, to accommodate NFS file systems
20029 if there is a time skew between the host and the NFS server. */
20031 int fd = open (file, O_WRONLY|O_CREAT, 0644);
20032 if (fd < 0)
20033 result |= 1;
20034 else
20036 time_t t0, t2;
20037 struct stat st0, st1, st2;
20038 if (time (&t0) == (time_t) -1)
20039 result |= 1;
20040 else if (fstat (fd, &st0) != 0)
20041 result |= 1;
20042 else if (utimes (file, timeval) != 0)
20043 result |= 2;
20044 else if (utimes (file, NULL) != 0)
20045 result |= 8;
20046 else if (fstat (fd, &st1) != 0)
20047 result |= 1;
20048 else if (write (fd, "\n", 1) != 1)
20049 result |= 1;
20050 else if (fstat (fd, &st2) != 0)
20051 result |= 1;
20052 else if (time (&t2) == (time_t) -1)
20053 result |= 1;
20054 else
20056 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
20057 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
20058 if (! (st1.st_atime == st1.st_mtime))
20059 result |= 16;
20060 if (! (m_ok_POSIX || m_ok_NFS))
20061 result |= 32;
20063 if (close (fd) != 0)
20064 result |= 1;
20066 if (unlink (file) != 0)
20067 result |= 1;
20070 /* Test whether utimes() with a NULL argument works on read-only files. */
20072 int fd = open (file, O_WRONLY|O_CREAT, 0444);
20073 if (fd < 0)
20074 result |= 1;
20075 else if (close (fd) != 0)
20076 result |= 1;
20077 else if (utimes (file, NULL) != 0)
20078 result |= 64;
20079 if (unlink (file) != 0)
20080 result |= 1;
20083 return result;
20086 _ACEOF
20087 if ac_fn_c_try_run "$LINENO"; then :
20088 gl_cv_func_working_utimes=yes
20089 else
20090 gl_cv_func_working_utimes=no
20092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20093 conftest.$ac_objext conftest.beam conftest.$ac_ext
20097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
20098 $as_echo "$gl_cv_func_working_utimes" >&6; }
20100 if test $gl_cv_func_working_utimes = yes; then
20102 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
20110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
20111 $as_echo_n "checking for struct utimbuf... " >&6; }
20112 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
20113 $as_echo_n "(cached) " >&6
20114 else
20115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20116 /* end confdefs.h. */
20117 #if HAVE_SYS_TIME_H
20118 #include <sys/time.h>
20119 #endif
20120 #include <time.h>
20121 #ifdef HAVE_UTIME_H
20122 #include <utime.h>
20123 #endif
20126 main ()
20128 static struct utimbuf x; x.actime = x.modtime;
20130 return 0;
20132 _ACEOF
20133 if ac_fn_c_try_compile "$LINENO"; then :
20134 gl_cv_sys_struct_utimbuf=yes
20135 else
20136 gl_cv_sys_struct_utimbuf=no
20138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
20141 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
20143 if test $gl_cv_sys_struct_utimbuf = yes; then
20145 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
20159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
20160 $as_echo_n "checking type of array argument to getgroups... " >&6; }
20161 if test "${ac_cv_type_getgroups+set}" = set; then :
20162 $as_echo_n "(cached) " >&6
20163 else
20164 if test "$cross_compiling" = yes; then :
20165 ac_cv_type_getgroups=cross
20166 else
20167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20168 /* end confdefs.h. */
20169 /* Thanks to Mike Rendell for this test. */
20170 $ac_includes_default
20171 #define NGID 256
20172 #undef MAX
20173 #define MAX(x, y) ((x) > (y) ? (x) : (y))
20176 main ()
20178 gid_t gidset[NGID];
20179 int i, n;
20180 union { gid_t gval; long int lval; } val;
20182 val.lval = -1;
20183 for (i = 0; i < NGID; i++)
20184 gidset[i] = val.gval;
20185 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
20186 gidset);
20187 /* Exit non-zero if getgroups seems to require an array of ints. This
20188 happens when gid_t is short int but getgroups modifies an array
20189 of ints. */
20190 return n > 0 && gidset[n] != val.gval;
20192 _ACEOF
20193 if ac_fn_c_try_run "$LINENO"; then :
20194 ac_cv_type_getgroups=gid_t
20195 else
20196 ac_cv_type_getgroups=int
20198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20199 conftest.$ac_objext conftest.beam conftest.$ac_ext
20202 if test $ac_cv_type_getgroups = cross; then
20203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20204 /* end confdefs.h. */
20205 #include <unistd.h>
20207 _ACEOF
20208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20209 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
20210 ac_cv_type_getgroups=gid_t
20211 else
20212 ac_cv_type_getgroups=int
20214 rm -f conftest*
20218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
20219 $as_echo "$ac_cv_type_getgroups" >&6; }
20221 cat >>confdefs.h <<_ACEOF
20222 #define GETGROUPS_T $ac_cv_type_getgroups
20223 _ACEOF
20228 if false; then
20229 GL_COND_LIBTOOL_TRUE=
20230 GL_COND_LIBTOOL_FALSE='#'
20231 else
20232 GL_COND_LIBTOOL_TRUE='#'
20233 GL_COND_LIBTOOL_FALSE=
20236 gl_cond_libtool=false
20237 gl_libdeps=
20238 gl_ltlibdeps=
20239 gl_m4_base='m4'
20249 gl_source_base='lib'
20252 if test $ac_cv_func_alloca_works = no; then
20256 # Define an additional variable used in the Makefile substitution.
20257 if test $ac_cv_working_alloca_h = yes; then
20258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20259 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20260 if test "${gl_cv_rpl_alloca+set}" = set; then :
20261 $as_echo_n "(cached) " >&6
20262 else
20264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20265 /* end confdefs.h. */
20267 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20268 Need own alloca
20269 #endif
20271 _ACEOF
20272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20273 $EGREP "Need own alloca" >/dev/null 2>&1; then :
20274 gl_cv_rpl_alloca=yes
20275 else
20276 gl_cv_rpl_alloca=no
20278 rm -f conftest*
20282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20283 $as_echo "$gl_cv_rpl_alloca" >&6; }
20284 if test $gl_cv_rpl_alloca = yes; then
20286 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20288 ALLOCA_H=alloca.h
20289 else
20290 ALLOCA_H=
20292 else
20293 ALLOCA_H=alloca.h
20296 if test -n "$ALLOCA_H"; then
20297 GL_GENERATE_ALLOCA_H_TRUE=
20298 GL_GENERATE_ALLOCA_H_FALSE='#'
20299 else
20300 GL_GENERATE_ALLOCA_H_TRUE='#'
20301 GL_GENERATE_ALLOCA_H_FALSE=
20309 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
20310 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
20312 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
20313 # programs in the package would end up linked with that potentially-shared
20314 # library, inducing unnecessary run-time overhead.
20315 LIB_CLOCK_GETTIME=
20317 gl_saved_libs=$LIBS
20318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20319 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20320 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20321 $as_echo_n "(cached) " >&6
20322 else
20323 ac_func_search_save_LIBS=$LIBS
20324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20325 /* end confdefs.h. */
20327 /* Override any GCC internal prototype to avoid an error.
20328 Use char because int might match the return type of a GCC
20329 builtin and then its argument prototype would still apply. */
20330 #ifdef __cplusplus
20331 extern "C"
20332 #endif
20333 char clock_gettime ();
20335 main ()
20337 return clock_gettime ();
20339 return 0;
20341 _ACEOF
20342 for ac_lib in '' rt posix4; do
20343 if test -z "$ac_lib"; then
20344 ac_res="none required"
20345 else
20346 ac_res=-l$ac_lib
20347 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20349 if ac_fn_c_try_link "$LINENO"; then :
20350 ac_cv_search_clock_gettime=$ac_res
20352 rm -f core conftest.err conftest.$ac_objext \
20353 conftest$ac_exeext
20354 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20355 break
20357 done
20358 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20360 else
20361 ac_cv_search_clock_gettime=no
20363 rm conftest.$ac_ext
20364 LIBS=$ac_func_search_save_LIBS
20366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20367 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20368 ac_res=$ac_cv_search_clock_gettime
20369 if test "$ac_res" != no; then :
20370 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20371 test "$ac_cv_search_clock_gettime" = "none required" ||
20372 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
20375 for ac_func in clock_gettime clock_settime
20376 do :
20377 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20378 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20379 eval as_val=\$$as_ac_var
20380 if test "x$as_val" = x""yes; then :
20381 cat >>confdefs.h <<_ACEOF
20382 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20383 _ACEOF
20386 done
20388 LIBS=$gl_saved_libs
20395 cat >>confdefs.h <<_ACEOF
20396 #define GNULIB_CLOSE_STREAM 1
20397 _ACEOF
20424 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
20427 if test $HAVE_DUP2 = 1; then
20428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
20429 $as_echo_n "checking whether dup2 works... " >&6; }
20430 if test "${gl_cv_func_dup2_works+set}" = set; then :
20431 $as_echo_n "(cached) " >&6
20432 else
20433 if test "$cross_compiling" = yes; then :
20434 case "$host_os" in
20435 mingw*) # on this platform, dup2 always returns 0 for success
20436 gl_cv_func_dup2_works="guessing no" ;;
20437 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
20438 gl_cv_func_dup2_works="guessing no" ;;
20439 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
20440 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
20441 gl_cv_func_dup2_works="guessing no" ;;
20442 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
20443 gl_cv_func_dup2_works="guessing no" ;;
20444 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
20445 gl_cv_func_dup2_works="guessing no" ;;
20446 *) gl_cv_func_dup2_works="guessing yes" ;;
20447 esac
20448 else
20449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20450 /* end confdefs.h. */
20452 #include <unistd.h>
20453 #include <fcntl.h>
20454 #include <errno.h>
20456 main ()
20458 int result = 0;
20459 #ifdef FD_CLOEXEC
20460 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
20461 result |= 1;
20462 #endif
20463 if (dup2 (1, 1) == 0)
20464 result |= 2;
20465 #ifdef FD_CLOEXEC
20466 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
20467 result |= 4;
20468 #endif
20469 close (0);
20470 if (dup2 (0, 0) != -1)
20471 result |= 8;
20472 /* Many gnulib modules require POSIX conformance of EBADF. */
20473 if (dup2 (2, 1000000) == -1 && errno != EBADF)
20474 result |= 16;
20475 return result;
20478 return 0;
20481 _ACEOF
20482 if ac_fn_c_try_run "$LINENO"; then :
20483 gl_cv_func_dup2_works=yes
20484 else
20485 gl_cv_func_dup2_works=no
20487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20488 conftest.$ac_objext conftest.beam conftest.$ac_ext
20493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
20494 $as_echo "$gl_cv_func_dup2_works" >&6; }
20495 case "$gl_cv_func_dup2_works" in
20496 *yes) ;;
20498 REPLACE_DUP2=1
20500 esac
20504 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
20513 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
20522 GNULIB_DUP2=1
20534 GNULIB_ENVIRON=1
20543 LIB_EXECINFO=''
20544 EXECINFO_H='execinfo.h'
20546 if test $ac_cv_header_execinfo_h = yes; then
20547 gl_saved_libs=$LIBS
20548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
20549 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
20550 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20551 $as_echo_n "(cached) " >&6
20552 else
20553 ac_func_search_save_LIBS=$LIBS
20554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20555 /* end confdefs.h. */
20557 /* Override any GCC internal prototype to avoid an error.
20558 Use char because int might match the return type of a GCC
20559 builtin and then its argument prototype would still apply. */
20560 #ifdef __cplusplus
20561 extern "C"
20562 #endif
20563 char backtrace_symbols_fd ();
20565 main ()
20567 return backtrace_symbols_fd ();
20569 return 0;
20571 _ACEOF
20572 for ac_lib in '' execinfo; do
20573 if test -z "$ac_lib"; then
20574 ac_res="none required"
20575 else
20576 ac_res=-l$ac_lib
20577 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20579 if ac_fn_c_try_link "$LINENO"; then :
20580 ac_cv_search_backtrace_symbols_fd=$ac_res
20582 rm -f core conftest.err conftest.$ac_objext \
20583 conftest$ac_exeext
20584 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20585 break
20587 done
20588 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20590 else
20591 ac_cv_search_backtrace_symbols_fd=no
20593 rm conftest.$ac_ext
20594 LIBS=$ac_func_search_save_LIBS
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
20597 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
20598 ac_res=$ac_cv_search_backtrace_symbols_fd
20599 if test "$ac_res" != no; then :
20600 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20601 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
20602 LIB_EXECINFO=$ac_cv_search_backtrace_symbols_fd
20605 LIBS=$gl_saved_libs
20606 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H=''
20609 if test -n "$EXECINFO_H"; then
20618 gl_LIBOBJS="$gl_LIBOBJS execinfo.$ac_objext"
20624 if test -n "$EXECINFO_H"; then
20625 GL_GENERATE_EXECINFO_H_TRUE=
20626 GL_GENERATE_EXECINFO_H_FALSE='#'
20627 else
20628 GL_GENERATE_EXECINFO_H_TRUE='#'
20629 GL_GENERATE_EXECINFO_H_FALSE=
20640 if test $ac_cv_func_faccessat = no; then
20641 HAVE_FACCESSAT=0
20644 if test $HAVE_FACCESSAT = 0; then
20653 gl_LIBOBJS="$gl_LIBOBJS faccessat.$ac_objext"
20656 for ac_func in access
20657 do :
20658 ac_fn_c_check_func "$LINENO" "access" "ac_cv_func_access"
20659 if test "x$ac_cv_func_access" = x""yes; then :
20660 cat >>confdefs.h <<_ACEOF
20661 #define HAVE_ACCESS 1
20662 _ACEOF
20665 done
20671 cat >>confdefs.h <<_ACEOF
20672 #define GNULIB_FACCESSAT 1
20673 _ACEOF
20681 GNULIB_FACCESSAT=1
20698 if test $gl_cv_have_include_next = yes; then
20699 gl_cv_next_fcntl_h='<'fcntl.h'>'
20700 else
20701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
20702 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
20703 if test "${gl_cv_next_fcntl_h+set}" = set; then :
20704 $as_echo_n "(cached) " >&6
20705 else
20707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20708 /* end confdefs.h. */
20709 #include <fcntl.h>
20711 _ACEOF
20712 case "$host_os" in
20713 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20714 *) gl_absname_cpp="$ac_cpp" ;;
20715 esac
20717 case "$host_os" in
20718 mingw*)
20719 gl_dirsep_regex='[/\\]'
20722 gl_dirsep_regex='\/'
20724 esac
20725 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20727 gl_header_literal_regex=`echo 'fcntl.h' \
20728 | sed -e "$gl_make_literal_regex_sed"`
20729 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20730 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20731 s|^/[^/]|//&|
20735 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20736 sed -n "$gl_absolute_header_sed"`'"'
20740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
20741 $as_echo "$gl_cv_next_fcntl_h" >&6; }
20743 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
20745 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20746 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20747 gl_next_as_first_directive='<'fcntl.h'>'
20748 else
20749 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20750 gl_next_as_first_directive=$gl_cv_next_fcntl_h
20752 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
20771 fp_headers='
20772 # include <stdio.h>
20773 # if HAVE_STDIO_EXT_H
20774 # include <stdio_ext.h>
20775 # endif
20777 ac_fn_c_check_decl "$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
20779 if test "x$ac_cv_have_decl___fpending" = x""yes; then :
20780 ac_have_decl=1
20781 else
20782 ac_have_decl=0
20785 cat >>confdefs.h <<_ACEOF
20786 #define HAVE_DECL___FPENDING $ac_have_decl
20787 _ACEOF
20790 if test $ac_cv_func___fpending = no; then
20799 gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
20802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
20803 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
20804 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
20805 $as_echo_n "(cached) " >&6
20806 else
20808 for ac_expr in \
20810 '# glibc2' \
20811 'fp->_IO_write_ptr - fp->_IO_write_base' \
20813 '# traditional Unix' \
20814 'fp->_ptr - fp->_base' \
20816 '# BSD' \
20817 'fp->_p - fp->_bf._base' \
20819 '# SCO, Unixware' \
20820 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
20822 '# QNX' \
20823 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
20825 '# old glibc?' \
20826 'fp->__bufp - fp->__buffer' \
20828 '# old glibc iostream?' \
20829 'fp->_pptr - fp->_pbase' \
20831 '# emx+gcc' \
20832 'fp->_ptr - fp->_buffer' \
20834 '# Minix' \
20835 'fp->_ptr - fp->_buf' \
20837 '# Plan9' \
20838 'fp->wp - fp->buf' \
20840 '# VMS' \
20841 '(*fp)->_ptr - (*fp)->_base' \
20843 '# e.g., DGUX R4.11; the info is not available' \
20845 ; do
20847 # Skip each embedded comment.
20848 case "$ac_expr" in '#'*) continue;; esac
20850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20851 /* end confdefs.h. */
20852 #include <stdio.h>
20854 main ()
20856 FILE *fp = stdin; (void) ($ac_expr);
20858 return 0;
20860 _ACEOF
20861 if ac_fn_c_try_compile "$LINENO"; then :
20862 fp_done=yes
20865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20866 test "$fp_done" = yes && break
20867 done
20869 ac_cv_sys_pending_output_n_bytes=$ac_expr
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
20874 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
20876 cat >>confdefs.h <<_ACEOF
20877 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
20878 _ACEOF
20884 # Persuade glibc <stdlib.h> to declare getloadavg().
20887 gl_save_LIBS=$LIBS
20889 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
20890 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
20891 HAVE_GETLOADAVG=1
20892 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
20893 if test "x$ac_cv_func_getloadavg" = x""yes; then :
20895 else
20896 gl_func_getloadavg_done=no
20898 # Some systems with -lutil have (and need) -lkvm as well, some do not.
20899 # On Solaris, -lkvm requires nlist from -lelf, so check that first
20900 # to get the right answer into the cache.
20901 # For kstat on solaris, we need to test for libelf and libkvm to force the
20902 # definition of SVR4 below.
20903 if test $gl_func_getloadavg_done = no; then
20904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
20905 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
20906 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
20907 $as_echo_n "(cached) " >&6
20908 else
20909 ac_check_lib_save_LIBS=$LIBS
20910 LIBS="-lelf $LIBS"
20911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20912 /* end confdefs.h. */
20914 /* Override any GCC internal prototype to avoid an error.
20915 Use char because int might match the return type of a GCC
20916 builtin and then its argument prototype would still apply. */
20917 #ifdef __cplusplus
20918 extern "C"
20919 #endif
20920 char elf_begin ();
20922 main ()
20924 return elf_begin ();
20926 return 0;
20928 _ACEOF
20929 if ac_fn_c_try_link "$LINENO"; then :
20930 ac_cv_lib_elf_elf_begin=yes
20931 else
20932 ac_cv_lib_elf_elf_begin=no
20934 rm -f core conftest.err conftest.$ac_objext \
20935 conftest$ac_exeext conftest.$ac_ext
20936 LIBS=$ac_check_lib_save_LIBS
20938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
20939 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
20940 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
20941 LIBS="-lelf $LIBS"
20944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
20945 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
20946 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
20947 $as_echo_n "(cached) " >&6
20948 else
20949 ac_check_lib_save_LIBS=$LIBS
20950 LIBS="-lkvm $LIBS"
20951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20952 /* end confdefs.h. */
20954 /* Override any GCC internal prototype to avoid an error.
20955 Use char because int might match the return type of a GCC
20956 builtin and then its argument prototype would still apply. */
20957 #ifdef __cplusplus
20958 extern "C"
20959 #endif
20960 char kvm_open ();
20962 main ()
20964 return kvm_open ();
20966 return 0;
20968 _ACEOF
20969 if ac_fn_c_try_link "$LINENO"; then :
20970 ac_cv_lib_kvm_kvm_open=yes
20971 else
20972 ac_cv_lib_kvm_kvm_open=no
20974 rm -f core conftest.err conftest.$ac_objext \
20975 conftest$ac_exeext conftest.$ac_ext
20976 LIBS=$ac_check_lib_save_LIBS
20978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
20979 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
20980 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
20981 LIBS="-lkvm $LIBS"
20984 # Check for the 4.4BSD definition of getloadavg.
20985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
20986 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
20987 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
20988 $as_echo_n "(cached) " >&6
20989 else
20990 ac_check_lib_save_LIBS=$LIBS
20991 LIBS="-lutil $LIBS"
20992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20993 /* end confdefs.h. */
20995 /* Override any GCC internal prototype to avoid an error.
20996 Use char because int might match the return type of a GCC
20997 builtin and then its argument prototype would still apply. */
20998 #ifdef __cplusplus
20999 extern "C"
21000 #endif
21001 char getloadavg ();
21003 main ()
21005 return getloadavg ();
21007 return 0;
21009 _ACEOF
21010 if ac_fn_c_try_link "$LINENO"; then :
21011 ac_cv_lib_util_getloadavg=yes
21012 else
21013 ac_cv_lib_util_getloadavg=no
21015 rm -f core conftest.err conftest.$ac_objext \
21016 conftest$ac_exeext conftest.$ac_ext
21017 LIBS=$ac_check_lib_save_LIBS
21019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
21020 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
21021 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
21022 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
21027 if test $gl_func_getloadavg_done = no; then
21028 # There is a commonly available library for RS/6000 AIX.
21029 # Since it is not a standard part of AIX, it might be installed locally.
21030 gl_getloadavg_LIBS=$LIBS
21031 LIBS="-L/usr/local/lib $LIBS"
21032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
21033 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
21034 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
21035 $as_echo_n "(cached) " >&6
21036 else
21037 ac_check_lib_save_LIBS=$LIBS
21038 LIBS="-lgetloadavg $LIBS"
21039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21040 /* end confdefs.h. */
21042 /* Override any GCC internal prototype to avoid an error.
21043 Use char because int might match the return type of a GCC
21044 builtin and then its argument prototype would still apply. */
21045 #ifdef __cplusplus
21046 extern "C"
21047 #endif
21048 char getloadavg ();
21050 main ()
21052 return getloadavg ();
21054 return 0;
21056 _ACEOF
21057 if ac_fn_c_try_link "$LINENO"; then :
21058 ac_cv_lib_getloadavg_getloadavg=yes
21059 else
21060 ac_cv_lib_getloadavg_getloadavg=no
21062 rm -f core conftest.err conftest.$ac_objext \
21063 conftest$ac_exeext conftest.$ac_ext
21064 LIBS=$ac_check_lib_save_LIBS
21066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
21067 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
21068 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
21069 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
21070 else
21071 LIBS=$gl_getloadavg_LIBS
21076 # Set up the replacement function if necessary.
21077 if test $gl_func_getloadavg_done = no; then
21078 HAVE_GETLOADAVG=0
21080 # Solaris has libkstat which does not require root.
21081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
21082 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
21083 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
21084 $as_echo_n "(cached) " >&6
21085 else
21086 ac_check_lib_save_LIBS=$LIBS
21087 LIBS="-lkstat $LIBS"
21088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21089 /* end confdefs.h. */
21091 /* Override any GCC internal prototype to avoid an error.
21092 Use char because int might match the return type of a GCC
21093 builtin and then its argument prototype would still apply. */
21094 #ifdef __cplusplus
21095 extern "C"
21096 #endif
21097 char kstat_open ();
21099 main ()
21101 return kstat_open ();
21103 return 0;
21105 _ACEOF
21106 if ac_fn_c_try_link "$LINENO"; then :
21107 ac_cv_lib_kstat_kstat_open=yes
21108 else
21109 ac_cv_lib_kstat_kstat_open=no
21111 rm -f core conftest.err conftest.$ac_objext \
21112 conftest$ac_exeext conftest.$ac_ext
21113 LIBS=$ac_check_lib_save_LIBS
21115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
21116 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
21117 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
21118 cat >>confdefs.h <<_ACEOF
21119 #define HAVE_LIBKSTAT 1
21120 _ACEOF
21122 LIBS="-lkstat $LIBS"
21126 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
21128 # AIX has libperfstat which does not require root
21129 if test $gl_func_getloadavg_done = no; then
21130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
21131 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
21132 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
21133 $as_echo_n "(cached) " >&6
21134 else
21135 ac_check_lib_save_LIBS=$LIBS
21136 LIBS="-lperfstat $LIBS"
21137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21138 /* end confdefs.h. */
21140 /* Override any GCC internal prototype to avoid an error.
21141 Use char because int might match the return type of a GCC
21142 builtin and then its argument prototype would still apply. */
21143 #ifdef __cplusplus
21144 extern "C"
21145 #endif
21146 char perfstat_cpu_total ();
21148 main ()
21150 return perfstat_cpu_total ();
21152 return 0;
21154 _ACEOF
21155 if ac_fn_c_try_link "$LINENO"; then :
21156 ac_cv_lib_perfstat_perfstat_cpu_total=yes
21157 else
21158 ac_cv_lib_perfstat_perfstat_cpu_total=no
21160 rm -f core conftest.err conftest.$ac_objext \
21161 conftest$ac_exeext conftest.$ac_ext
21162 LIBS=$ac_check_lib_save_LIBS
21164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
21165 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
21166 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
21167 cat >>confdefs.h <<_ACEOF
21168 #define HAVE_LIBPERFSTAT 1
21169 _ACEOF
21171 LIBS="-lperfstat $LIBS"
21175 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
21178 if test $gl_func_getloadavg_done = no; then
21179 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
21180 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
21181 gl_func_getloadavg_done=yes
21183 $as_echo "#define DGUX 1" >>confdefs.h
21185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
21186 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
21187 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
21188 $as_echo_n "(cached) " >&6
21189 else
21190 ac_check_lib_save_LIBS=$LIBS
21191 LIBS="-ldgc $LIBS"
21192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21193 /* end confdefs.h. */
21195 /* Override any GCC internal prototype to avoid an error.
21196 Use char because int might match the return type of a GCC
21197 builtin and then its argument prototype would still apply. */
21198 #ifdef __cplusplus
21199 extern "C"
21200 #endif
21201 char dg_sys_info ();
21203 main ()
21205 return dg_sys_info ();
21207 return 0;
21209 _ACEOF
21210 if ac_fn_c_try_link "$LINENO"; then :
21211 ac_cv_lib_dgc_dg_sys_info=yes
21212 else
21213 ac_cv_lib_dgc_dg_sys_info=no
21215 rm -f core conftest.err conftest.$ac_objext \
21216 conftest$ac_exeext conftest.$ac_ext
21217 LIBS=$ac_check_lib_save_LIBS
21219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
21220 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
21221 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
21222 cat >>confdefs.h <<_ACEOF
21223 #define HAVE_LIBDGC 1
21224 _ACEOF
21226 LIBS="-ldgc $LIBS"
21238 if test "x$gl_save_LIBS" = x; then
21239 GETLOADAVG_LIBS=$LIBS
21240 else
21241 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
21243 LIBS=$gl_save_LIBS
21246 # Test whether the system declares getloadavg. Solaris has the function
21247 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
21248 for ac_header in sys/loadavg.h
21249 do :
21250 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
21251 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
21252 cat >>confdefs.h <<_ACEOF
21253 #define HAVE_SYS_LOADAVG_H 1
21254 _ACEOF
21258 done
21260 if test $ac_cv_header_sys_loadavg_h = yes; then
21261 HAVE_SYS_LOADAVG_H=1
21262 else
21263 HAVE_SYS_LOADAVG_H=0
21265 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
21266 # include <sys/loadavg.h>
21267 #endif
21268 #include <stdlib.h>
21270 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
21272 else
21273 HAVE_DECL_GETLOADAVG=0
21277 if test $HAVE_GETLOADAVG = 0; then
21286 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
21289 # Figure out what our getloadavg.c needs.
21293 # On HPUX9, an unprivileged user can get load averages this way.
21294 if test $gl_func_getloadavg_done = no; then
21295 for ac_func in pstat_getdynamic
21296 do :
21297 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
21298 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
21299 cat >>confdefs.h <<_ACEOF
21300 #define HAVE_PSTAT_GETDYNAMIC 1
21301 _ACEOF
21302 gl_func_getloadavg_done=yes
21304 done
21308 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
21309 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
21310 # Irix 4.0.5F has the header but not the library.
21311 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
21312 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
21313 gl_func_getloadavg_done=yes
21315 $as_echo "#define SVR4 1" >>confdefs.h
21319 if test $gl_func_getloadavg_done = no; then
21320 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
21321 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
21322 gl_func_getloadavg_done=yes
21324 $as_echo "#define UMAX 1" >>confdefs.h
21327 $as_echo "#define UMAX4_3 1" >>confdefs.h
21334 if test $gl_func_getloadavg_done = no; then
21335 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
21336 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
21337 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
21344 if test $gl_func_getloadavg_done = no; then
21345 for ac_header in mach/mach.h
21346 do :
21347 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
21348 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
21349 cat >>confdefs.h <<_ACEOF
21350 #define HAVE_MACH_MACH_H 1
21351 _ACEOF
21355 done
21359 for ac_header in nlist.h
21360 do :
21361 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
21362 if test "x$ac_cv_header_nlist_h" = x""yes; then :
21363 cat >>confdefs.h <<_ACEOF
21364 #define HAVE_NLIST_H 1
21365 _ACEOF
21366 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
21368 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
21370 cat >>confdefs.h <<_ACEOF
21371 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
21372 _ACEOF
21377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21378 /* end confdefs.h. */
21379 #include <nlist.h>
21381 main ()
21383 struct nlist x;
21384 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
21385 x.n_un.n_name = "";
21386 #else
21387 x.n_name = "";
21388 #endif
21390 return 0;
21392 _ACEOF
21393 if ac_fn_c_try_link "$LINENO"; then :
21395 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
21398 rm -f core conftest.err conftest.$ac_objext \
21399 conftest$ac_exeext conftest.$ac_ext
21403 done
21411 GNULIB_GETLOADAVG=1
21422 if test $REPLACE_GETOPT = 1; then
21431 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
21441 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
21446 GNULIB_GL_UNISTD_H_GETOPT=1
21455 REPLACE_GETOPT=0
21456 if test -n "$gl_replace_getopt"; then
21457 REPLACE_GETOPT=1
21460 if test $REPLACE_GETOPT = 1; then
21462 GETOPT_H=getopt.h
21464 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
21470 if test $REPLACE_GETOPT = 1; then
21479 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
21489 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
21494 GNULIB_GL_UNISTD_H_GETOPT=1
21508 gl_gettimeofday_timezone=void
21509 if test $ac_cv_func_gettimeofday != yes; then
21510 HAVE_GETTIMEOFDAY=0
21511 else
21515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
21516 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
21517 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
21518 $as_echo_n "(cached) " >&6
21519 else
21520 if test "$cross_compiling" = yes; then :
21521 # When cross-compiling:
21522 case "$host_os" in
21523 # Guess all is fine on glibc systems.
21524 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
21525 # If we don't know, assume the worst.
21526 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
21527 esac
21529 else
21530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21531 /* end confdefs.h. */
21532 #include <string.h>
21533 #include <sys/time.h>
21534 #include <time.h>
21535 #include <stdlib.h>
21538 main ()
21541 time_t t = 0;
21542 struct tm *lt;
21543 struct tm saved_lt;
21544 struct timeval tv;
21545 lt = localtime (&t);
21546 saved_lt = *lt;
21547 gettimeofday (&tv, NULL);
21548 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
21551 return 0;
21553 _ACEOF
21554 if ac_fn_c_try_run "$LINENO"; then :
21555 gl_cv_func_gettimeofday_clobber=no
21556 else
21557 gl_cv_func_gettimeofday_clobber=yes
21559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21560 conftest.$ac_objext conftest.beam conftest.$ac_ext
21564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
21565 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
21567 case "$gl_cv_func_gettimeofday_clobber" in
21568 *yes)
21569 REPLACE_GETTIMEOFDAY=1
21572 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
21575 $as_echo "#define localtime rpl_localtime" >>confdefs.h
21579 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
21582 esac
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
21585 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
21586 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
21587 $as_echo_n "(cached) " >&6
21588 else
21589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21590 /* end confdefs.h. */
21591 #include <sys/time.h>
21592 struct timeval c;
21593 int gettimeofday (struct timeval *restrict, void *restrict);
21596 main ()
21598 /* glibc uses struct timezone * rather than the POSIX void *
21599 if _GNU_SOURCE is defined. However, since the only portable
21600 use of gettimeofday uses NULL as the second parameter, and
21601 since the glibc definition is actually more typesafe, it is
21602 not worth wrapping this to get a compliant signature. */
21603 int (*f) (struct timeval *restrict, void *restrict)
21604 = gettimeofday;
21605 int x = f (&c, 0);
21606 return !(x | c.tv_sec | c.tv_usec);
21609 return 0;
21611 _ACEOF
21612 if ac_fn_c_try_compile "$LINENO"; then :
21613 gl_cv_func_gettimeofday_posix_signature=yes
21614 else
21615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21616 /* end confdefs.h. */
21617 #include <sys/time.h>
21618 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
21621 main ()
21625 return 0;
21627 _ACEOF
21628 if ac_fn_c_try_compile "$LINENO"; then :
21629 gl_cv_func_gettimeofday_posix_signature=almost
21630 else
21631 gl_cv_func_gettimeofday_posix_signature=no
21633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21638 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
21639 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
21640 gl_gettimeofday_timezone='struct timezone'
21641 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
21642 REPLACE_GETTIMEOFDAY=1
21644 if test $REPLACE_STRUCT_TIMEVAL = 1; then
21645 REPLACE_GETTIMEOFDAY=1
21650 cat >>confdefs.h <<_ACEOF
21651 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
21652 _ACEOF
21655 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
21664 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
21667 for ac_header in sys/timeb.h
21668 do :
21669 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
21670 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
21671 cat >>confdefs.h <<_ACEOF
21672 #define HAVE_SYS_TIMEB_H 1
21673 _ACEOF
21677 done
21679 for ac_func in _ftime
21680 do :
21681 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
21682 if test "x$ac_cv_func__ftime" = x""yes; then :
21683 cat >>confdefs.h <<_ACEOF
21684 #define HAVE__FTIME 1
21685 _ACEOF
21688 done
21697 GNULIB_GETTIMEOFDAY=1
21708 if test $ac_cv_func_lstat = yes; then
21710 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
21711 *no)
21712 REPLACE_LSTAT=1
21714 esac
21715 else
21716 HAVE_LSTAT=0
21719 if test $REPLACE_LSTAT = 1; then
21728 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
21740 GNULIB_LSTAT=1
21752 if test $APPLE_UNIVERSAL_BUILD = 1; then
21753 # A universal build on Apple Mac OS X platforms.
21754 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
21755 # But we need a configuration result that is valid in both modes.
21756 gl_cv_func_working_mktime=no
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
21759 $as_echo_n "checking for working mktime... " >&6; }
21760 if test "${gl_cv_func_working_mktime+set}" = set; then :
21761 $as_echo_n "(cached) " >&6
21762 else
21763 if test "$cross_compiling" = yes; then :
21764 gl_cv_func_working_mktime=no
21765 else
21766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21767 /* end confdefs.h. */
21768 /* Test program from Paul Eggert and Tony Leneis. */
21769 #include <limits.h>
21770 #include <stdlib.h>
21771 #include <time.h>
21773 #ifdef HAVE_UNISTD_H
21774 # include <unistd.h>
21775 #endif
21777 #ifndef HAVE_ALARM
21778 # define alarm(X) /* empty */
21779 #endif
21781 /* Work around redefinition to rpl_putenv by other config tests. */
21782 #undef putenv
21784 static time_t time_t_max;
21785 static time_t time_t_min;
21787 /* Values we'll use to set the TZ environment variable. */
21788 static char *tz_strings[] = {
21789 (char *) 0, "TZ=GMT0", "TZ=JST-9",
21790 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21792 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21794 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
21795 Based on a problem report from Andreas Jaeger. */
21796 static int
21797 spring_forward_gap ()
21799 /* glibc (up to about 1998-10-07) failed this test. */
21800 struct tm tm;
21802 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21803 instead of "TZ=America/Vancouver" in order to detect the bug even
21804 on systems that don't support the Olson extension, or don't have the
21805 full zoneinfo tables installed. */
21806 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21808 tm.tm_year = 98;
21809 tm.tm_mon = 3;
21810 tm.tm_mday = 5;
21811 tm.tm_hour = 2;
21812 tm.tm_min = 0;
21813 tm.tm_sec = 0;
21814 tm.tm_isdst = -1;
21815 return mktime (&tm) != (time_t) -1;
21818 static int
21819 mktime_test1 (time_t now)
21821 struct tm *lt;
21822 return ! (lt = localtime (&now)) || mktime (lt) == now;
21825 static int
21826 mktime_test (time_t now)
21828 return (mktime_test1 (now)
21829 && mktime_test1 ((time_t) (time_t_max - now))
21830 && mktime_test1 ((time_t) (time_t_min + now)));
21833 static int
21834 irix_6_4_bug ()
21836 /* Based on code from Ariel Faigon. */
21837 struct tm tm;
21838 tm.tm_year = 96;
21839 tm.tm_mon = 3;
21840 tm.tm_mday = 0;
21841 tm.tm_hour = 0;
21842 tm.tm_min = 0;
21843 tm.tm_sec = 0;
21844 tm.tm_isdst = -1;
21845 mktime (&tm);
21846 return tm.tm_mon == 2 && tm.tm_mday == 31;
21849 static int
21850 bigtime_test (int j)
21852 struct tm tm;
21853 time_t now;
21854 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21855 now = mktime (&tm);
21856 if (now != (time_t) -1)
21858 struct tm *lt = localtime (&now);
21859 if (! (lt
21860 && lt->tm_year == tm.tm_year
21861 && lt->tm_mon == tm.tm_mon
21862 && lt->tm_mday == tm.tm_mday
21863 && lt->tm_hour == tm.tm_hour
21864 && lt->tm_min == tm.tm_min
21865 && lt->tm_sec == tm.tm_sec
21866 && lt->tm_yday == tm.tm_yday
21867 && lt->tm_wday == tm.tm_wday
21868 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21869 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21870 return 0;
21872 return 1;
21875 static int
21876 year_2050_test ()
21878 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
21879 ignoring leap seconds. */
21880 unsigned long int answer = 2527315200UL;
21882 struct tm tm;
21883 time_t t;
21884 tm.tm_year = 2050 - 1900;
21885 tm.tm_mon = 2 - 1;
21886 tm.tm_mday = 1;
21887 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
21888 tm.tm_isdst = -1;
21890 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21891 instead of "TZ=America/Vancouver" in order to detect the bug even
21892 on systems that don't support the Olson extension, or don't have the
21893 full zoneinfo tables installed. */
21894 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21896 t = mktime (&tm);
21898 /* Check that the result is either a failure, or close enough
21899 to the correct answer that we can assume the discrepancy is
21900 due to leap seconds. */
21901 return (t == (time_t) -1
21902 || (0 < t && answer - 120 <= t && t <= answer + 120));
21906 main ()
21908 int result = 0;
21909 time_t t, delta;
21910 int i, j;
21911 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
21912 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
21914 /* This test makes some buggy mktime implementations loop.
21915 Give up after 60 seconds; a mktime slower than that
21916 isn't worth using anyway. */
21917 alarm (60);
21919 time_t_max = (! time_t_signed
21920 ? (time_t) -1
21921 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
21922 * 2 + 1));
21923 time_t_min = (! time_t_signed
21924 ? (time_t) 0
21925 : time_t_signed_magnitude
21926 ? ~ (time_t) 0
21927 : ~ time_t_max);
21929 delta = time_t_max / 997; /* a suitable prime number */
21930 for (i = 0; i < N_STRINGS; i++)
21932 if (tz_strings[i])
21933 putenv (tz_strings[i]);
21935 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
21936 if (! mktime_test (t))
21937 result |= 1;
21938 if ((result & 2) == 0
21939 && ! (mktime_test ((time_t) 1)
21940 && mktime_test ((time_t) (60 * 60))
21941 && mktime_test ((time_t) (60 * 60 * 24))))
21942 result |= 2;
21944 for (j = 1; (result & 4) == 0; j <<= 1)
21946 if (! bigtime_test (j))
21947 result |= 4;
21948 if (INT_MAX / 2 < j)
21949 break;
21951 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
21952 result |= 8;
21954 if (! irix_6_4_bug ())
21955 result |= 16;
21956 if (! spring_forward_gap ())
21957 result |= 32;
21958 if (! year_2050_test ())
21959 result |= 64;
21960 return result;
21962 _ACEOF
21963 if ac_fn_c_try_run "$LINENO"; then :
21964 gl_cv_func_working_mktime=yes
21965 else
21966 gl_cv_func_working_mktime=no
21968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21969 conftest.$ac_objext conftest.beam conftest.$ac_ext
21974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
21975 $as_echo "$gl_cv_func_working_mktime" >&6; }
21977 if test $gl_cv_func_working_mktime = no; then
21978 REPLACE_MKTIME=1
21979 else
21980 REPLACE_MKTIME=0
21983 if test $REPLACE_MKTIME = 1; then
21992 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
22001 GNULIB_MKTIME=1
22013 if test $ac_cv_func_pselect = yes; then
22014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
22015 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
22016 if test "${gl_cv_sig_pselect+set}" = set; then :
22017 $as_echo_n "(cached) " >&6
22018 else
22019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22020 /* end confdefs.h. */
22021 #include <sys/select.h>
22024 main ()
22026 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
22027 struct timespec const *restrict,
22028 sigset_t const *restrict) = pselect;
22029 return !p;
22031 return 0;
22033 _ACEOF
22034 if ac_fn_c_try_link "$LINENO"; then :
22035 gl_cv_sig_pselect=yes
22036 else
22037 gl_cv_sig_pselect=no
22039 rm -f core conftest.err conftest.$ac_objext \
22040 conftest$ac_exeext conftest.$ac_ext
22042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
22043 $as_echo "$gl_cv_sig_pselect" >&6; }
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
22046 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
22047 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
22048 $as_echo_n "(cached) " >&6
22049 else
22051 if test "$cross_compiling" = yes; then :
22053 case "$host_os" in
22054 # Guess yes on glibc systems.
22055 *-gnu*) gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
22056 # If we don't know, assume the worst.
22057 *) gl_cv_func_pselect_detects_ebadf="guessing no" ;;
22058 esac
22060 else
22061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22062 /* end confdefs.h. */
22064 #include <sys/types.h>
22065 #include <sys/time.h>
22066 #if HAVE_SYS_SELECT_H
22067 # include <sys/select.h>
22068 #endif
22069 #include <unistd.h>
22070 #include <errno.h>
22073 main ()
22076 fd_set set;
22077 dup2(0, 16);
22078 FD_ZERO(&set);
22079 FD_SET(16, &set);
22080 close(16);
22081 struct timespec timeout;
22082 timeout.tv_sec = 0;
22083 timeout.tv_nsec = 5000;
22084 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
22087 return 0;
22089 _ACEOF
22090 if ac_fn_c_try_run "$LINENO"; then :
22091 gl_cv_func_pselect_detects_ebadf=yes
22092 else
22093 gl_cv_func_pselect_detects_ebadf=no
22095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22096 conftest.$ac_objext conftest.beam conftest.$ac_ext
22101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
22102 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
22103 case $gl_cv_func_pselect_detects_ebadf in
22104 *yes) ;;
22105 *) REPLACE_PSELECT=1 ;;
22106 esac
22109 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
22110 REPLACE_PSELECT=1
22113 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
22122 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
22130 GNULIB_PSELECT=1
22140 LIB_PTHREAD_SIGMASK=
22145 if test "$gl_threads_api" = posix; then
22146 if test $ac_cv_func_pthread_sigmask = yes; then
22148 else
22149 if test -n "$LIBMULTITHREAD"; then
22150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
22151 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
22152 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
22153 $as_echo_n "(cached) " >&6
22154 else
22155 gl_save_LIBS="$LIBS"
22156 LIBS="$LIBS $LIBMULTITHREAD"
22157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22158 /* end confdefs.h. */
22159 #include <pthread.h>
22160 #include <signal.h>
22163 main ()
22165 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
22167 return 0;
22170 _ACEOF
22171 if ac_fn_c_try_link "$LINENO"; then :
22172 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes
22173 else
22174 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no
22176 rm -f core conftest.err conftest.$ac_objext \
22177 conftest$ac_exeext conftest.$ac_ext
22178 LIBS="$gl_save_LIBS"
22181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
22182 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
22183 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
22184 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
22185 else
22186 HAVE_PTHREAD_SIGMASK=0
22188 else
22189 HAVE_PTHREAD_SIGMASK=0
22192 else
22193 if test $ac_cv_func_pthread_sigmask = yes; then
22194 REPLACE_PTHREAD_SIGMASK=1
22195 else
22196 HAVE_PTHREAD_SIGMASK=0
22203 if test $HAVE_PTHREAD_SIGMASK = 1; then
22206 if test -z "$LIB_PTHREAD_SIGMASK"; then
22207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
22208 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
22209 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
22210 $as_echo_n "(cached) " >&6
22211 else
22213 if test "$cross_compiling" = yes; then :
22215 case "$host_os" in
22216 freebsd* | hpux* | solaris | solaris2.[2-9]*)
22217 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
22219 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
22220 esac
22222 else
22223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22224 /* end confdefs.h. */
22226 #include <pthread.h>
22227 #include <signal.h>
22228 #include <stddef.h>
22229 int main ()
22231 sigset_t set;
22232 sigemptyset (&set);
22233 return pthread_sigmask (1729, &set, NULL) != 0;
22235 _ACEOF
22236 if ac_fn_c_try_run "$LINENO"; then :
22237 gl_cv_func_pthread_sigmask_in_libc_works=no
22238 else
22239 gl_cv_func_pthread_sigmask_in_libc_works=yes
22241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22242 conftest.$ac_objext conftest.beam conftest.$ac_ext
22247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
22248 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
22249 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
22250 *no)
22251 REPLACE_PTHREAD_SIGMASK=1
22253 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
22256 esac
22259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
22260 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
22261 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
22262 $as_echo_n "(cached) " >&6
22263 else
22265 gl_save_LIBS="$LIBS"
22266 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
22267 if test "$cross_compiling" = yes; then :
22268 case "$host_os" in
22269 cygwin*)
22270 gl_cv_func_pthread_sigmask_return_works="guessing no";;
22272 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
22273 esac
22275 else
22276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22277 /* end confdefs.h. */
22279 #include <pthread.h>
22280 #include <signal.h>
22281 #include <stddef.h>
22282 int main ()
22284 sigset_t set;
22285 sigemptyset (&set);
22286 if (pthread_sigmask (1729, &set, NULL) == -1)
22287 return 1;
22288 return 0;
22290 _ACEOF
22291 if ac_fn_c_try_run "$LINENO"; then :
22292 gl_cv_func_pthread_sigmask_return_works=yes
22293 else
22294 gl_cv_func_pthread_sigmask_return_works=no
22296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22297 conftest.$ac_objext conftest.beam conftest.$ac_ext
22300 LIBS="$gl_save_LIBS"
22303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
22304 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
22305 case "$gl_cv_func_pthread_sigmask_return_works" in
22306 *no)
22307 REPLACE_PTHREAD_SIGMASK=1
22309 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
22312 esac
22314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
22315 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
22316 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
22317 $as_echo_n "(cached) " >&6
22318 else
22320 case "$host_os" in
22321 irix*)
22322 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
22324 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
22325 esac
22326 gl_save_LIBS="$LIBS"
22327 LIBS="$LIBS $LIBMULTITHREAD"
22328 if test "$cross_compiling" = yes; then :
22330 else
22331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22332 /* end confdefs.h. */
22334 #include <pthread.h>
22335 #include <signal.h>
22336 #include <stdio.h>
22337 #include <stdlib.h>
22338 #include <unistd.h>
22339 static volatile int sigint_occurred;
22340 static void
22341 sigint_handler (int sig)
22343 sigint_occurred++;
22345 int main ()
22347 sigset_t set;
22348 int pid = getpid ();
22349 char command[80];
22350 signal (SIGINT, sigint_handler);
22351 sigemptyset (&set);
22352 sigaddset (&set, SIGINT);
22353 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
22354 return 1;
22355 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
22356 if (!(system (command) == 0))
22357 return 2;
22358 sleep (2);
22359 if (!(sigint_occurred == 0))
22360 return 3;
22361 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
22362 return 4;
22363 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
22364 return 5;
22365 return 0;
22367 _ACEOF
22368 if ac_fn_c_try_run "$LINENO"; then :
22370 else
22371 gl_cv_func_pthread_sigmask_unblock_works=no
22373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22374 conftest.$ac_objext conftest.beam conftest.$ac_ext
22377 LIBS="$gl_save_LIBS"
22380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
22381 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
22382 case "$gl_cv_func_pthread_sigmask_unblock_works" in
22383 *no)
22384 REPLACE_PTHREAD_SIGMASK=1
22386 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
22389 esac
22392 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
22401 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
22404 if test $HAVE_PTHREAD_SIGMASK = 1; then
22406 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
22416 GNULIB_PTHREAD_SIGMASK=1
22425 if test $ac_cv_func_readlink = no; then
22426 HAVE_READLINK=0
22427 else
22428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
22429 $as_echo_n "checking whether readlink signature is correct... " >&6; }
22430 if test "${gl_cv_decl_readlink_works+set}" = set; then :
22431 $as_echo_n "(cached) " >&6
22432 else
22433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22434 /* end confdefs.h. */
22435 #include <unistd.h>
22436 /* Cause compilation failure if original declaration has wrong type. */
22437 ssize_t readlink (const char *, char *, size_t);
22439 main ()
22443 return 0;
22445 _ACEOF
22446 if ac_fn_c_try_compile "$LINENO"; then :
22447 gl_cv_decl_readlink_works=yes
22448 else
22449 gl_cv_decl_readlink_works=no
22451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
22454 $as_echo "$gl_cv_decl_readlink_works" >&6; }
22455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
22456 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
22457 if test "${gl_cv_func_readlink_works+set}" = set; then :
22458 $as_echo_n "(cached) " >&6
22459 else
22460 # We have readlink, so assume ln -s works.
22461 ln -s conftest.no-such conftest.link
22462 ln -s conftest.link conftest.lnk2
22463 if test "$cross_compiling" = yes; then :
22464 case "$host_os" in
22465 # Guess yes on glibc systems.
22466 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
22467 # If we don't know, assume the worst.
22468 *) gl_cv_func_readlink_works="guessing no" ;;
22469 esac
22471 else
22472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22473 /* end confdefs.h. */
22474 #include <unistd.h>
22477 main ()
22479 char buf[20];
22480 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
22482 return 0;
22484 _ACEOF
22485 if ac_fn_c_try_run "$LINENO"; then :
22486 gl_cv_func_readlink_works=yes
22487 else
22488 gl_cv_func_readlink_works=no
22490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22491 conftest.$ac_objext conftest.beam conftest.$ac_ext
22494 rm -f conftest.link conftest.lnk2
22496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
22497 $as_echo "$gl_cv_func_readlink_works" >&6; }
22498 case "$gl_cv_func_readlink_works" in
22499 *yes)
22500 if test "$gl_cv_decl_readlink_works" != yes; then
22501 REPLACE_READLINK=1
22506 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
22508 REPLACE_READLINK=1
22510 esac
22513 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
22522 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
22533 GNULIB_READLINK=1
22550 if test $gl_cv_have_include_next = yes; then
22551 gl_cv_next_signal_h='<'signal.h'>'
22552 else
22553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
22554 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
22555 if test "${gl_cv_next_signal_h+set}" = set; then :
22556 $as_echo_n "(cached) " >&6
22557 else
22559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22560 /* end confdefs.h. */
22561 #include <signal.h>
22563 _ACEOF
22564 case "$host_os" in
22565 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22566 *) gl_absname_cpp="$ac_cpp" ;;
22567 esac
22569 case "$host_os" in
22570 mingw*)
22571 gl_dirsep_regex='[/\\]'
22574 gl_dirsep_regex='\/'
22576 esac
22577 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22579 gl_header_literal_regex=`echo 'signal.h' \
22580 | sed -e "$gl_make_literal_regex_sed"`
22581 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22582 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22583 s|^/[^/]|//&|
22587 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22588 sed -n "$gl_absolute_header_sed"`'"'
22592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
22593 $as_echo "$gl_cv_next_signal_h" >&6; }
22595 NEXT_SIGNAL_H=$gl_cv_next_signal_h
22597 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22598 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22599 gl_next_as_first_directive='<'signal.h'>'
22600 else
22601 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22602 gl_next_as_first_directive=$gl_cv_next_signal_h
22604 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
22610 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
22611 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
22612 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
22613 #include <signal.h>
22616 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
22618 else
22619 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
22628 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
22629 #include <signal.h>
22632 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
22634 else
22635 HAVE_SIGHANDLER_T=0
22641 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
22642 /* <sys/types.h> is not needed according to POSIX, but the
22643 <sys/socket.h> in i386-unknown-freebsd4.10 and
22644 powerpc-apple-darwin5.5 required it. */
22645 #include <sys/types.h>
22646 #if HAVE_SYS_SOCKET_H
22647 # include <sys/socket.h>
22648 #elif HAVE_WS2TCPIP_H
22649 # include <ws2tcpip.h>
22650 #endif
22653 if test "x$ac_cv_type_socklen_t" = x""yes; then :
22655 else
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
22657 $as_echo_n "checking for socklen_t equivalent... " >&6; }
22658 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
22659 $as_echo_n "(cached) " >&6
22660 else
22661 # Systems have either "struct sockaddr *" or
22662 # "void *" as the second argument to getpeername
22663 gl_cv_socklen_t_equiv=
22664 for arg2 in "struct sockaddr" void; do
22665 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
22666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22667 /* end confdefs.h. */
22668 #include <sys/types.h>
22669 #include <sys/socket.h>
22671 int getpeername (int, $arg2 *, $t *);
22673 main ()
22675 $t len;
22676 getpeername (0, 0, &len);
22678 return 0;
22680 _ACEOF
22681 if ac_fn_c_try_compile "$LINENO"; then :
22682 gl_cv_socklen_t_equiv="$t"
22684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22685 test "$gl_cv_socklen_t_equiv" != "" && break
22686 done
22687 test "$gl_cv_socklen_t_equiv" != "" && break
22688 done
22692 if test "$gl_cv_socklen_t_equiv" = ""; then
22693 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
22695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
22696 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
22698 cat >>confdefs.h <<_ACEOF
22699 #define socklen_t $gl_cv_socklen_t_equiv
22700 _ACEOF
22705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
22706 $as_echo_n "checking for ssize_t... " >&6; }
22707 if test "${gt_cv_ssize_t+set}" = set; then :
22708 $as_echo_n "(cached) " >&6
22709 else
22710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22711 /* end confdefs.h. */
22712 #include <sys/types.h>
22714 main ()
22716 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22717 return !x;
22719 return 0;
22721 _ACEOF
22722 if ac_fn_c_try_compile "$LINENO"; then :
22723 gt_cv_ssize_t=yes
22724 else
22725 gt_cv_ssize_t=no
22727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
22730 $as_echo "$gt_cv_ssize_t" >&6; }
22731 if test $gt_cv_ssize_t = no; then
22733 $as_echo "#define ssize_t int" >>confdefs.h
22741 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>
22742 #include <sys/stat.h>
22744 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
22746 cat >>confdefs.h <<_ACEOF
22747 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
22748 _ACEOF
22750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
22751 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
22752 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
22753 $as_echo_n "(cached) " >&6
22754 else
22755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22756 /* end confdefs.h. */
22758 #include <sys/types.h>
22759 #include <sys/stat.h>
22760 #if HAVE_SYS_TIME_H
22761 # include <sys/time.h>
22762 #endif
22763 #include <time.h>
22764 struct timespec ts;
22765 struct stat st;
22768 main ()
22771 st.st_atim = ts;
22774 return 0;
22776 _ACEOF
22777 if ac_fn_c_try_compile "$LINENO"; then :
22778 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
22779 else
22780 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
22782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
22785 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
22786 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
22788 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
22791 else
22792 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>
22793 #include <sys/stat.h>
22795 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
22797 cat >>confdefs.h <<_ACEOF
22798 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
22799 _ACEOF
22802 else
22803 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
22804 #include <sys/stat.h>
22806 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
22808 cat >>confdefs.h <<_ACEOF
22809 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
22810 _ACEOF
22813 else
22814 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>
22815 #include <sys/stat.h>
22817 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
22819 cat >>confdefs.h <<_ACEOF
22820 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
22821 _ACEOF
22836 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>
22837 #include <sys/stat.h>
22839 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
22841 cat >>confdefs.h <<_ACEOF
22842 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
22843 _ACEOF
22846 else
22847 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
22848 #include <sys/stat.h>
22850 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
22852 cat >>confdefs.h <<_ACEOF
22853 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
22854 _ACEOF
22857 else
22858 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>
22859 #include <sys/stat.h>
22861 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
22863 cat >>confdefs.h <<_ACEOF
22864 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
22865 _ACEOF
22876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
22877 $as_echo_n "checking for working stdalign.h... " >&6; }
22878 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
22879 $as_echo_n "(cached) " >&6
22880 else
22881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22882 /* end confdefs.h. */
22883 #include <stdalign.h>
22884 #include <stddef.h>
22886 /* Test that alignof yields a result consistent with offsetof.
22887 This catches GCC bug 52023
22888 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
22889 #ifdef __cplusplus
22890 template <class t> struct alignof_helper { char a; t b; };
22891 # define ao(type) offsetof (alignof_helper<type>, b)
22892 #else
22893 # define ao(type) offsetof (struct { char a; type b; }, b)
22894 #endif
22895 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
22896 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
22897 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
22899 /* Test _Alignas only on platforms where gnulib can help. */
22900 #if \
22901 (__GNUC__ || __IBMC__ || __IBMCPP__ \
22902 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
22903 int alignas (8) alignas_int = 1;
22904 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
22905 #endif
22908 main ()
22912 return 0;
22914 _ACEOF
22915 if ac_fn_c_try_compile "$LINENO"; then :
22916 gl_cv_header_working_stdalign_h=yes
22917 else
22918 gl_cv_header_working_stdalign_h=no
22920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
22923 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
22925 if test $gl_cv_header_working_stdalign_h = yes; then
22926 STDALIGN_H=''
22927 else
22928 STDALIGN_H='stdalign.h'
22932 if test -n "$STDALIGN_H"; then
22933 GL_GENERATE_STDALIGN_H_TRUE=
22934 GL_GENERATE_STDALIGN_H_FALSE='#'
22935 else
22936 GL_GENERATE_STDALIGN_H_TRUE='#'
22937 GL_GENERATE_STDALIGN_H_FALSE=
22942 STDARG_H=''
22943 NEXT_STDARG_H='<stdarg.h>'
22944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
22945 $as_echo_n "checking for va_copy... " >&6; }
22946 if test "${gl_cv_func_va_copy+set}" = set; then :
22947 $as_echo_n "(cached) " >&6
22948 else
22950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22951 /* end confdefs.h. */
22952 #include <stdarg.h>
22954 main ()
22957 #ifndef va_copy
22958 void (*func) (va_list, va_list) = va_copy;
22959 #endif
22962 return 0;
22964 _ACEOF
22965 if ac_fn_c_try_compile "$LINENO"; then :
22966 gl_cv_func_va_copy=yes
22967 else
22968 gl_cv_func_va_copy=no
22970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
22974 $as_echo "$gl_cv_func_va_copy" >&6; }
22975 if test $gl_cv_func_va_copy = no; then
22976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22977 /* end confdefs.h. */
22978 #if defined _AIX && !defined __GNUC__
22979 AIX vaccine
22980 #endif
22982 _ACEOF
22983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22984 $EGREP "vaccine" >/dev/null 2>&1; then :
22985 gl_aixcc=yes
22986 else
22987 gl_aixcc=no
22989 rm -f conftest*
22991 if test $gl_aixcc = yes; then
22992 STDARG_H=stdarg.h
23001 if test $gl_cv_have_include_next = yes; then
23002 gl_cv_next_stdarg_h='<'stdarg.h'>'
23003 else
23004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
23005 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
23006 if test "${gl_cv_next_stdarg_h+set}" = set; then :
23007 $as_echo_n "(cached) " >&6
23008 else
23010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23011 /* end confdefs.h. */
23012 #include <stdarg.h>
23014 _ACEOF
23015 case "$host_os" in
23016 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23017 *) gl_absname_cpp="$ac_cpp" ;;
23018 esac
23020 case "$host_os" in
23021 mingw*)
23022 gl_dirsep_regex='[/\\]'
23025 gl_dirsep_regex='\/'
23027 esac
23028 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23030 gl_header_literal_regex=`echo 'stdarg.h' \
23031 | sed -e "$gl_make_literal_regex_sed"`
23032 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23033 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23034 s|^/[^/]|//&|
23038 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23039 sed -n "$gl_absolute_header_sed"`'"'
23043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
23044 $as_echo "$gl_cv_next_stdarg_h" >&6; }
23046 NEXT_STDARG_H=$gl_cv_next_stdarg_h
23048 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23049 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23050 gl_next_as_first_directive='<'stdarg.h'>'
23051 else
23052 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23053 gl_next_as_first_directive=$gl_cv_next_stdarg_h
23055 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
23060 if test "$gl_cv_next_stdarg_h" = '""'; then
23061 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
23062 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
23064 else
23066 saved_as_echo_n="$as_echo_n"
23067 as_echo_n=':'
23068 if test "${gl_cv_func___va_copy+set}" = set; then :
23069 $as_echo_n "(cached) " >&6
23070 else
23072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23073 /* end confdefs.h. */
23074 #include <stdarg.h>
23076 main ()
23079 #ifndef __va_copy
23080 error, bail out
23081 #endif
23084 return 0;
23086 _ACEOF
23087 if ac_fn_c_try_compile "$LINENO"; then :
23088 gl_cv_func___va_copy=yes
23089 else
23090 gl_cv_func___va_copy=no
23092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23095 as_echo_n="$saved_as_echo_n"
23097 if test $gl_cv_func___va_copy = yes; then
23099 $as_echo "#define va_copy __va_copy" >>confdefs.h
23101 else
23104 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
23110 if test -n "$STDARG_H"; then
23111 GL_GENERATE_STDARG_H_TRUE=
23112 GL_GENERATE_STDARG_H_FALSE='#'
23113 else
23114 GL_GENERATE_STDARG_H_TRUE='#'
23115 GL_GENERATE_STDARG_H_FALSE=
23123 # Define two additional variables used in the Makefile substitution.
23125 if test "$ac_cv_header_stdbool_h" = yes; then
23126 STDBOOL_H=''
23127 else
23128 STDBOOL_H='stdbool.h'
23131 if test -n "$STDBOOL_H"; then
23132 GL_GENERATE_STDBOOL_H_TRUE=
23133 GL_GENERATE_STDBOOL_H_FALSE='#'
23134 else
23135 GL_GENERATE_STDBOOL_H_TRUE='#'
23136 GL_GENERATE_STDBOOL_H_FALSE=
23140 if test "$ac_cv_type__Bool" = yes; then
23141 HAVE__BOOL=1
23142 else
23143 HAVE__BOOL=0
23150 STDDEF_H=
23151 if test $gt_cv_c_wchar_t = no; then
23152 HAVE_WCHAR_T=0
23153 STDDEF_H=stddef.h
23155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
23156 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
23157 if test "${gl_cv_decl_null_works+set}" = set; then :
23158 $as_echo_n "(cached) " >&6
23159 else
23160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23161 /* end confdefs.h. */
23162 #include <stddef.h>
23163 int test[2 * (sizeof NULL == sizeof (void *)) -1];
23166 main ()
23170 return 0;
23172 _ACEOF
23173 if ac_fn_c_try_compile "$LINENO"; then :
23174 gl_cv_decl_null_works=yes
23175 else
23176 gl_cv_decl_null_works=no
23178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
23181 $as_echo "$gl_cv_decl_null_works" >&6; }
23182 if test $gl_cv_decl_null_works = no; then
23183 REPLACE_NULL=1
23184 STDDEF_H=stddef.h
23187 if test -n "$STDDEF_H"; then
23188 GL_GENERATE_STDDEF_H_TRUE=
23189 GL_GENERATE_STDDEF_H_FALSE='#'
23190 else
23191 GL_GENERATE_STDDEF_H_TRUE='#'
23192 GL_GENERATE_STDDEF_H_FALSE=
23195 if test -n "$STDDEF_H"; then
23204 if test $gl_cv_have_include_next = yes; then
23205 gl_cv_next_stddef_h='<'stddef.h'>'
23206 else
23207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
23208 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
23209 if test "${gl_cv_next_stddef_h+set}" = set; then :
23210 $as_echo_n "(cached) " >&6
23211 else
23213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23214 /* end confdefs.h. */
23215 #include <stddef.h>
23217 _ACEOF
23218 case "$host_os" in
23219 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23220 *) gl_absname_cpp="$ac_cpp" ;;
23221 esac
23223 case "$host_os" in
23224 mingw*)
23225 gl_dirsep_regex='[/\\]'
23228 gl_dirsep_regex='\/'
23230 esac
23231 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23233 gl_header_literal_regex=`echo 'stddef.h' \
23234 | sed -e "$gl_make_literal_regex_sed"`
23235 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23236 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23237 s|^/[^/]|//&|
23241 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23242 sed -n "$gl_absolute_header_sed"`'"'
23246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
23247 $as_echo "$gl_cv_next_stddef_h" >&6; }
23249 NEXT_STDDEF_H=$gl_cv_next_stddef_h
23251 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23252 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23253 gl_next_as_first_directive='<'stddef.h'>'
23254 else
23255 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23256 gl_next_as_first_directive=$gl_cv_next_stddef_h
23258 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
23277 if test $gl_cv_have_include_next = yes; then
23278 gl_cv_next_stdio_h='<'stdio.h'>'
23279 else
23280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
23281 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
23282 if test "${gl_cv_next_stdio_h+set}" = set; then :
23283 $as_echo_n "(cached) " >&6
23284 else
23286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23287 /* end confdefs.h. */
23288 #include <stdio.h>
23290 _ACEOF
23291 case "$host_os" in
23292 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23293 *) gl_absname_cpp="$ac_cpp" ;;
23294 esac
23296 case "$host_os" in
23297 mingw*)
23298 gl_dirsep_regex='[/\\]'
23301 gl_dirsep_regex='\/'
23303 esac
23304 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23306 gl_header_literal_regex=`echo 'stdio.h' \
23307 | sed -e "$gl_make_literal_regex_sed"`
23308 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23309 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23310 s|^/[^/]|//&|
23314 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23315 sed -n "$gl_absolute_header_sed"`'"'
23319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
23320 $as_echo "$gl_cv_next_stdio_h" >&6; }
23322 NEXT_STDIO_H=$gl_cv_next_stdio_h
23324 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23325 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23326 gl_next_as_first_directive='<'stdio.h'>'
23327 else
23328 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23329 gl_next_as_first_directive=$gl_cv_next_stdio_h
23331 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
23337 GNULIB_FSCANF=1
23340 cat >>confdefs.h <<_ACEOF
23341 #define GNULIB_FSCANF 1
23342 _ACEOF
23345 GNULIB_SCANF=1
23348 cat >>confdefs.h <<_ACEOF
23349 #define GNULIB_SCANF 1
23350 _ACEOF
23353 GNULIB_FGETC=1
23354 GNULIB_GETC=1
23355 GNULIB_GETCHAR=1
23356 GNULIB_FGETS=1
23357 GNULIB_FREAD=1
23360 GNULIB_FPRINTF=1
23361 GNULIB_PRINTF=1
23362 GNULIB_VFPRINTF=1
23363 GNULIB_VPRINTF=1
23364 GNULIB_FPUTC=1
23365 GNULIB_PUTC=1
23366 GNULIB_PUTCHAR=1
23367 GNULIB_FPUTS=1
23368 GNULIB_PUTS=1
23369 GNULIB_FWRITE=1
23385 if test $gl_cv_have_include_next = yes; then
23386 gl_cv_next_stdlib_h='<'stdlib.h'>'
23387 else
23388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
23389 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
23390 if test "${gl_cv_next_stdlib_h+set}" = set; then :
23391 $as_echo_n "(cached) " >&6
23392 else
23394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23395 /* end confdefs.h. */
23396 #include <stdlib.h>
23398 _ACEOF
23399 case "$host_os" in
23400 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23401 *) gl_absname_cpp="$ac_cpp" ;;
23402 esac
23404 case "$host_os" in
23405 mingw*)
23406 gl_dirsep_regex='[/\\]'
23409 gl_dirsep_regex='\/'
23411 esac
23412 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23414 gl_header_literal_regex=`echo 'stdlib.h' \
23415 | sed -e "$gl_make_literal_regex_sed"`
23416 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23417 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23418 s|^/[^/]|//&|
23422 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23423 sed -n "$gl_absolute_header_sed"`'"'
23427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
23428 $as_echo "$gl_cv_next_stdlib_h" >&6; }
23430 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
23432 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23433 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23434 gl_next_as_first_directive='<'stdlib.h'>'
23435 else
23436 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23437 gl_next_as_first_directive=$gl_cv_next_stdlib_h
23439 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
23449 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
23457 $as_echo "#define my_strftime nstrftime" >>confdefs.h
23466 if test "$ac_cv_have_decl_strtoimax" != yes; then
23467 HAVE_DECL_STRTOIMAX=0
23470 if test $ac_cv_func_strtoimax = yes; then
23471 HAVE_STRTOIMAX=1
23472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
23473 $as_echo_n "checking whether strtoimax works... " >&6; }
23474 if test "${gl_cv_func_strtoimax+set}" = set; then :
23475 $as_echo_n "(cached) " >&6
23476 else
23477 if test "$cross_compiling" = yes; then :
23478 case "$host_os" in
23479 # Guess no on AIX 5.
23480 aix5*) gl_cv_func_strtoimax="guessing no" ;;
23481 # Guess yes otherwise.
23482 *) gl_cv_func_strtoimax="guessing yes" ;;
23483 esac
23485 else
23486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23487 /* end confdefs.h. */
23489 #include <errno.h>
23490 #include <string.h>
23491 #include <inttypes.h>
23492 int main ()
23494 if (sizeof (intmax_t) > sizeof (int))
23496 const char *s = "4294967295";
23497 char *p;
23498 intmax_t res;
23499 errno = 0;
23500 res = strtoimax (s, &p, 10);
23501 if (p != s + strlen (s))
23502 return 1;
23503 if (errno != 0)
23504 return 2;
23505 if (res != (intmax_t) 65535 * (intmax_t) 65537)
23506 return 3;
23508 else
23510 const char *s = "2147483647";
23511 char *p;
23512 intmax_t res;
23513 errno = 0;
23514 res = strtoimax (s, &p, 10);
23515 if (p != s + strlen (s))
23516 return 1;
23517 if (errno != 0)
23518 return 2;
23519 if (res != 2147483647)
23520 return 3;
23522 return 0;
23525 _ACEOF
23526 if ac_fn_c_try_run "$LINENO"; then :
23527 gl_cv_func_strtoimax=yes
23528 else
23529 gl_cv_func_strtoimax=no
23531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23532 conftest.$ac_objext conftest.beam conftest.$ac_ext
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
23538 $as_echo "$gl_cv_func_strtoimax" >&6; }
23539 case "$gl_cv_func_strtoimax" in
23540 *no) REPLACE_STRTOIMAX=1 ;;
23541 esac
23542 else
23543 HAVE_STRTOIMAX=0
23546 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
23555 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
23558 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
23559 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
23560 ac_have_decl=1
23561 else
23562 ac_have_decl=0
23565 cat >>confdefs.h <<_ACEOF
23566 #define HAVE_DECL_STRTOLL $ac_have_decl
23567 _ACEOF
23577 GNULIB_STRTOIMAX=1
23587 if test "$ac_cv_have_decl_strtoumax" != yes; then
23588 HAVE_DECL_STRTOUMAX=0
23591 if test $ac_cv_func_strtoumax = no; then
23600 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
23603 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
23604 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
23605 ac_have_decl=1
23606 else
23607 ac_have_decl=0
23610 cat >>confdefs.h <<_ACEOF
23611 #define HAVE_DECL_STRTOULL $ac_have_decl
23612 _ACEOF
23622 GNULIB_STRTOUMAX=1
23630 if test $ac_cv_func_symlink = no; then
23631 HAVE_SYMLINK=0
23632 else
23633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
23634 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
23635 if test "${gl_cv_func_symlink_works+set}" = set; then :
23636 $as_echo_n "(cached) " >&6
23637 else
23638 if test "$cross_compiling" = yes; then :
23639 case "$host_os" in
23640 # Guess yes on glibc systems.
23641 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
23642 # If we don't know, assume the worst.
23643 *) gl_cv_func_symlink_works="guessing no" ;;
23644 esac
23646 else
23647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23648 /* end confdefs.h. */
23649 #include <unistd.h>
23652 main ()
23654 int result = 0;
23655 if (!symlink ("a", "conftest.link/"))
23656 result |= 1;
23657 if (symlink ("conftest.f", "conftest.lnk2"))
23658 result |= 2;
23659 else if (!symlink ("a", "conftest.lnk2/"))
23660 result |= 4;
23661 return result;
23664 return 0;
23666 _ACEOF
23667 if ac_fn_c_try_run "$LINENO"; then :
23668 gl_cv_func_symlink_works=yes
23669 else
23670 gl_cv_func_symlink_works=no
23672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23673 conftest.$ac_objext conftest.beam conftest.$ac_ext
23676 rm -f conftest.f conftest.link conftest.lnk2
23678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
23679 $as_echo "$gl_cv_func_symlink_works" >&6; }
23680 case "$gl_cv_func_symlink_works" in
23681 *yes) ;;
23683 REPLACE_SYMLINK=1
23685 esac
23688 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
23697 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
23705 GNULIB_SYMLINK=1
23714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
23715 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
23716 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
23717 $as_echo_n "(cached) " >&6
23718 else
23720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23721 /* end confdefs.h. */
23722 #include <sys/select.h>
23724 main ()
23726 struct timeval b;
23728 return 0;
23730 _ACEOF
23731 if ac_fn_c_try_compile "$LINENO"; then :
23732 gl_cv_header_sys_select_h_selfcontained=yes
23733 else
23734 gl_cv_header_sys_select_h_selfcontained=no
23736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23737 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
23738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23739 /* end confdefs.h. */
23740 #include <sys/select.h>
23742 main ()
23744 int memset; int bzero;
23746 return 0;
23749 _ACEOF
23750 if ac_fn_c_try_compile "$LINENO"; then :
23751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23752 /* end confdefs.h. */
23753 #include <sys/select.h>
23755 main ()
23758 #undef memset
23759 #define memset nonexistent_memset
23760 extern
23761 #ifdef __cplusplus
23763 #endif
23764 void *memset (void *, int, unsigned long);
23765 #undef bzero
23766 #define bzero nonexistent_bzero
23767 extern
23768 #ifdef __cplusplus
23770 #endif
23771 void bzero (void *, unsigned long);
23772 fd_set fds;
23773 FD_ZERO (&fds);
23776 return 0;
23779 _ACEOF
23780 if ac_fn_c_try_link "$LINENO"; then :
23782 else
23783 gl_cv_header_sys_select_h_selfcontained=no
23785 rm -f core conftest.err conftest.$ac_objext \
23786 conftest$ac_exeext conftest.$ac_ext
23789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
23794 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
23804 if test $gl_cv_have_include_next = yes; then
23805 gl_cv_next_sys_select_h='<'sys/select.h'>'
23806 else
23807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
23808 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
23809 if test "${gl_cv_next_sys_select_h+set}" = set; then :
23810 $as_echo_n "(cached) " >&6
23811 else
23813 if test $ac_cv_header_sys_select_h = yes; then
23816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23817 /* end confdefs.h. */
23818 #include <sys/select.h>
23820 _ACEOF
23821 case "$host_os" in
23822 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23823 *) gl_absname_cpp="$ac_cpp" ;;
23824 esac
23826 case "$host_os" in
23827 mingw*)
23828 gl_dirsep_regex='[/\\]'
23831 gl_dirsep_regex='\/'
23833 esac
23834 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23836 gl_header_literal_regex=`echo 'sys/select.h' \
23837 | sed -e "$gl_make_literal_regex_sed"`
23838 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23839 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23840 s|^/[^/]|//&|
23844 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23845 sed -n "$gl_absolute_header_sed"`'"'
23846 else
23847 gl_cv_next_sys_select_h='<'sys/select.h'>'
23852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
23853 $as_echo "$gl_cv_next_sys_select_h" >&6; }
23855 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
23857 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23858 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23859 gl_next_as_first_directive='<'sys/select.h'>'
23860 else
23861 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23862 gl_next_as_first_directive=$gl_cv_next_sys_select_h
23864 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
23869 if test $ac_cv_header_sys_select_h = yes; then
23870 HAVE_SYS_SELECT_H=1
23871 else
23872 HAVE_SYS_SELECT_H=0
23879 if test $ac_cv_header_sys_socket_h != yes; then
23880 for ac_header in winsock2.h
23881 do :
23882 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23883 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
23884 cat >>confdefs.h <<_ACEOF
23885 #define HAVE_WINSOCK2_H 1
23886 _ACEOF
23890 done
23893 if test "$ac_cv_header_winsock2_h" = yes; then
23894 HAVE_WINSOCK2_H=1
23895 UNISTD_H_HAVE_WINSOCK2_H=1
23896 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
23897 else
23898 HAVE_WINSOCK2_H=0
23922 if test $gl_cv_have_include_next = yes; then
23923 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23924 else
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
23926 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
23927 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
23928 $as_echo_n "(cached) " >&6
23929 else
23931 if test $ac_cv_header_sys_stat_h = yes; then
23934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23935 /* end confdefs.h. */
23936 #include <sys/stat.h>
23938 _ACEOF
23939 case "$host_os" in
23940 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23941 *) gl_absname_cpp="$ac_cpp" ;;
23942 esac
23944 case "$host_os" in
23945 mingw*)
23946 gl_dirsep_regex='[/\\]'
23949 gl_dirsep_regex='\/'
23951 esac
23952 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23954 gl_header_literal_regex=`echo 'sys/stat.h' \
23955 | sed -e "$gl_make_literal_regex_sed"`
23956 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23957 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23958 s|^/[^/]|//&|
23962 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23963 sed -n "$gl_absolute_header_sed"`'"'
23964 else
23965 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
23971 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
23973 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
23975 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23976 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23977 gl_next_as_first_directive='<'sys/stat.h'>'
23978 else
23979 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23980 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
23982 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
23994 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
23996 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
24000 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
24001 #include <sys/stat.h>
24003 if test "x$ac_cv_type_nlink_t" = x""yes; then :
24005 else
24007 $as_echo "#define nlink_t int" >>confdefs.h
24028 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
24030 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
24031 ac_have_decl=1
24032 else
24033 ac_have_decl=0
24036 cat >>confdefs.h <<_ACEOF
24037 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
24038 _ACEOF
24040 if test $ac_cv_have_decl_localtime_r = no; then
24041 HAVE_DECL_LOCALTIME_R=0
24045 if test $ac_cv_func_localtime_r = yes; then
24046 HAVE_LOCALTIME_R=1
24047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
24048 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
24049 if test "${gl_cv_time_r_posix+set}" = set; then :
24050 $as_echo_n "(cached) " >&6
24051 else
24052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24053 /* end confdefs.h. */
24054 #include <time.h>
24056 main ()
24058 /* We don't need to append 'restrict's to the argument types,
24059 even though the POSIX signature has the 'restrict's,
24060 since C99 says they can't affect type compatibility. */
24061 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
24062 if (ptr) return 0;
24063 /* Check the return type is a pointer.
24064 On HP-UX 10 it is 'int'. */
24065 *localtime_r (0, 0);
24067 return 0;
24070 _ACEOF
24071 if ac_fn_c_try_compile "$LINENO"; then :
24072 gl_cv_time_r_posix=yes
24073 else
24074 gl_cv_time_r_posix=no
24076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
24080 $as_echo "$gl_cv_time_r_posix" >&6; }
24081 if test $gl_cv_time_r_posix = yes; then
24082 REPLACE_LOCALTIME_R=0
24083 else
24084 REPLACE_LOCALTIME_R=1
24086 else
24087 HAVE_LOCALTIME_R=0
24090 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
24099 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
24110 GNULIB_TIME_R=1
24121 LIB_TIMER_TIME=
24123 gl_saved_libs=$LIBS
24124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
24125 $as_echo_n "checking for library containing timer_settime... " >&6; }
24126 if test "${ac_cv_search_timer_settime+set}" = set; then :
24127 $as_echo_n "(cached) " >&6
24128 else
24129 ac_func_search_save_LIBS=$LIBS
24130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24131 /* end confdefs.h. */
24133 /* Override any GCC internal prototype to avoid an error.
24134 Use char because int might match the return type of a GCC
24135 builtin and then its argument prototype would still apply. */
24136 #ifdef __cplusplus
24137 extern "C"
24138 #endif
24139 char timer_settime ();
24141 main ()
24143 return timer_settime ();
24145 return 0;
24147 _ACEOF
24148 for ac_lib in '' rt posix4; do
24149 if test -z "$ac_lib"; then
24150 ac_res="none required"
24151 else
24152 ac_res=-l$ac_lib
24153 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24155 if ac_fn_c_try_link "$LINENO"; then :
24156 ac_cv_search_timer_settime=$ac_res
24158 rm -f core conftest.err conftest.$ac_objext \
24159 conftest$ac_exeext
24160 if test "${ac_cv_search_timer_settime+set}" = set; then :
24161 break
24163 done
24164 if test "${ac_cv_search_timer_settime+set}" = set; then :
24166 else
24167 ac_cv_search_timer_settime=no
24169 rm conftest.$ac_ext
24170 LIBS=$ac_func_search_save_LIBS
24172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
24173 $as_echo "$ac_cv_search_timer_settime" >&6; }
24174 ac_res=$ac_cv_search_timer_settime
24175 if test "$ac_res" != no; then :
24176 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24177 test "$ac_cv_search_timer_settime" = "none required" ||
24178 LIB_TIMER_TIME=$ac_cv_search_timer_settime
24181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24182 /* end confdefs.h. */
24184 #include <features.h>
24185 #ifdef __GNU_LIBRARY__
24186 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
24187 && !defined __UCLIBC__
24188 Thread emulation available
24189 #endif
24190 #endif
24192 _ACEOF
24193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24194 $EGREP "Thread" >/dev/null 2>&1; then :
24195 LIB_TIMER_TIME="$LIB_TIMER_TIME $LIBMULTITHREAD"
24197 rm -f conftest*
24199 for ac_func in timer_settime
24200 do :
24201 ac_fn_c_check_func "$LINENO" "timer_settime" "ac_cv_func_timer_settime"
24202 if test "x$ac_cv_func_timer_settime" = x""yes; then :
24203 cat >>confdefs.h <<_ACEOF
24204 #define HAVE_TIMER_SETTIME 1
24205 _ACEOF
24208 done
24210 LIBS=$gl_saved_libs
24226 if test $gl_cv_have_include_next = yes; then
24227 gl_cv_next_unistd_h='<'unistd.h'>'
24228 else
24229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
24230 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
24231 if test "${gl_cv_next_unistd_h+set}" = set; then :
24232 $as_echo_n "(cached) " >&6
24233 else
24235 if test $ac_cv_header_unistd_h = yes; then
24238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24239 /* end confdefs.h. */
24240 #include <unistd.h>
24242 _ACEOF
24243 case "$host_os" in
24244 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24245 *) gl_absname_cpp="$ac_cpp" ;;
24246 esac
24248 case "$host_os" in
24249 mingw*)
24250 gl_dirsep_regex='[/\\]'
24253 gl_dirsep_regex='\/'
24255 esac
24256 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24258 gl_header_literal_regex=`echo 'unistd.h' \
24259 | sed -e "$gl_make_literal_regex_sed"`
24260 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24261 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24262 s|^/[^/]|//&|
24266 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24267 sed -n "$gl_absolute_header_sed"`'"'
24268 else
24269 gl_cv_next_unistd_h='<'unistd.h'>'
24274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
24275 $as_echo "$gl_cv_next_unistd_h" >&6; }
24277 NEXT_UNISTD_H=$gl_cv_next_unistd_h
24279 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24280 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24281 gl_next_as_first_directive='<'unistd.h'>'
24282 else
24283 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24284 gl_next_as_first_directive=$gl_cv_next_unistd_h
24286 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
24291 if test $ac_cv_header_unistd_h = yes; then
24292 HAVE_UNISTD_H=1
24293 else
24294 HAVE_UNISTD_H=0
24310 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
24311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
24312 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
24313 if test "${gl_cv_func_futimesat_works+set}" = set; then :
24314 $as_echo_n "(cached) " >&6
24315 else
24316 touch conftest.file
24317 if test "$cross_compiling" = yes; then :
24318 case "$host_os" in
24319 # Guess yes on glibc systems.
24320 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
24321 # If we don't know, assume the worst.
24322 *) gl_cv_func_futimesat_works="guessing no" ;;
24323 esac
24325 else
24326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24327 /* end confdefs.h. */
24329 #include <stddef.h>
24330 #include <sys/times.h>
24331 #include <fcntl.h>
24334 main ()
24336 int fd = open ("conftest.file", O_RDWR);
24337 if (fd < 0) return 1;
24338 if (futimesat (fd, NULL, NULL)) return 2;
24341 return 0;
24343 _ACEOF
24344 if ac_fn_c_try_run "$LINENO"; then :
24345 gl_cv_func_futimesat_works=yes
24346 else
24347 gl_cv_func_futimesat_works=no
24349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24350 conftest.$ac_objext conftest.beam conftest.$ac_ext
24353 rm -f conftest.file
24355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
24356 $as_echo "$gl_cv_func_futimesat_works" >&6; }
24357 case "$gl_cv_func_futimesat_works" in
24358 *yes) ;;
24361 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
24364 esac
24367 gl_gnulib_enabled_dosname=false
24368 gl_gnulib_enabled_euidaccess=false
24369 gl_gnulib_enabled_getgroups=false
24370 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
24371 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=false
24372 gl_gnulib_enabled_pathmax=false
24373 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=false
24374 gl_gnulib_enabled_stat=false
24375 gl_gnulib_enabled_strtoll=false
24376 gl_gnulib_enabled_strtoull=false
24377 gl_gnulib_enabled_verify=false
24378 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=false
24379 func_gl_gnulib_m4code_dosname ()
24381 if ! $gl_gnulib_enabled_dosname; then
24382 gl_gnulib_enabled_dosname=true
24385 func_gl_gnulib_m4code_euidaccess ()
24387 if ! $gl_gnulib_enabled_euidaccess; then
24393 for ac_func in euidaccess
24394 do :
24395 ac_fn_c_check_func "$LINENO" "euidaccess" "ac_cv_func_euidaccess"
24396 if test "x$ac_cv_func_euidaccess" = x""yes; then :
24397 cat >>confdefs.h <<_ACEOF
24398 #define HAVE_EUIDACCESS 1
24399 _ACEOF
24402 done
24404 if test $ac_cv_func_euidaccess = no; then
24405 HAVE_EUIDACCESS=0
24408 if test $HAVE_EUIDACCESS = 0; then
24417 gl_LIBOBJS="$gl_LIBOBJS euidaccess.$ac_objext"
24421 for ac_header in libgen.h
24422 do :
24423 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
24424 if test "x$ac_cv_header_libgen_h" = x""yes; then :
24425 cat >>confdefs.h <<_ACEOF
24426 #define HAVE_LIBGEN_H 1
24427 _ACEOF
24431 done
24434 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
24435 if test "x$ac_cv_func_getgroups" = x""yes; then :
24440 # If we don't yet have getgroups, see if it's in -lbsd.
24441 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
24442 ac_save_LIBS=$LIBS
24443 if test $ac_cv_func_getgroups = no; then
24444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
24445 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
24446 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
24447 $as_echo_n "(cached) " >&6
24448 else
24449 ac_check_lib_save_LIBS=$LIBS
24450 LIBS="-lbsd $LIBS"
24451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24452 /* end confdefs.h. */
24454 /* Override any GCC internal prototype to avoid an error.
24455 Use char because int might match the return type of a GCC
24456 builtin and then its argument prototype would still apply. */
24457 #ifdef __cplusplus
24458 extern "C"
24459 #endif
24460 char getgroups ();
24462 main ()
24464 return getgroups ();
24466 return 0;
24468 _ACEOF
24469 if ac_fn_c_try_link "$LINENO"; then :
24470 ac_cv_lib_bsd_getgroups=yes
24471 else
24472 ac_cv_lib_bsd_getgroups=no
24474 rm -f core conftest.err conftest.$ac_objext \
24475 conftest$ac_exeext conftest.$ac_ext
24476 LIBS=$ac_check_lib_save_LIBS
24478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
24479 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
24480 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
24481 GETGROUPS_LIB=-lbsd
24486 # Run the program to test the functionality of the system-supplied
24487 # getgroups function only if there is such a function.
24488 if test $ac_cv_func_getgroups = yes; then
24489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
24490 $as_echo_n "checking for working getgroups... " >&6; }
24491 if test "${ac_cv_func_getgroups_works+set}" = set; then :
24492 $as_echo_n "(cached) " >&6
24493 else
24494 if test "$cross_compiling" = yes; then :
24495 case "$host_os" in # ((
24496 # Guess yes on glibc systems.
24497 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
24498 # If we don't know, assume the worst.
24499 *) ac_cv_func_getgroups_works="guessing no" ;;
24500 esac
24502 else
24503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24504 /* end confdefs.h. */
24505 $ac_includes_default
24507 main ()
24509 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
24510 return getgroups (0, 0) == -1;
24512 return 0;
24515 _ACEOF
24516 if ac_fn_c_try_run "$LINENO"; then :
24517 ac_cv_func_getgroups_works=yes
24518 else
24519 ac_cv_func_getgroups_works=no
24521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24522 conftest.$ac_objext conftest.beam conftest.$ac_ext
24527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
24528 $as_echo "$ac_cv_func_getgroups_works" >&6; }
24529 else
24530 ac_cv_func_getgroups_works=no
24532 case "$ac_cv_func_getgroups_works" in
24533 *yes)
24535 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
24538 esac
24539 LIBS=$ac_save_LIBS
24542 # Solaris 9 and 10 need -lgen to get the eaccess function.
24543 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
24544 # programs in the package would end up linked with that potentially-shared
24545 # library, inducing unnecessary run-time overhead.
24546 LIB_EACCESS=
24548 gl_saved_libs=$LIBS
24549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
24550 $as_echo_n "checking for library containing eaccess... " >&6; }
24551 if test "${ac_cv_search_eaccess+set}" = set; then :
24552 $as_echo_n "(cached) " >&6
24553 else
24554 ac_func_search_save_LIBS=$LIBS
24555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24556 /* end confdefs.h. */
24558 /* Override any GCC internal prototype to avoid an error.
24559 Use char because int might match the return type of a GCC
24560 builtin and then its argument prototype would still apply. */
24561 #ifdef __cplusplus
24562 extern "C"
24563 #endif
24564 char eaccess ();
24566 main ()
24568 return eaccess ();
24570 return 0;
24572 _ACEOF
24573 for ac_lib in '' gen; do
24574 if test -z "$ac_lib"; then
24575 ac_res="none required"
24576 else
24577 ac_res=-l$ac_lib
24578 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24580 if ac_fn_c_try_link "$LINENO"; then :
24581 ac_cv_search_eaccess=$ac_res
24583 rm -f core conftest.err conftest.$ac_objext \
24584 conftest$ac_exeext
24585 if test "${ac_cv_search_eaccess+set}" = set; then :
24586 break
24588 done
24589 if test "${ac_cv_search_eaccess+set}" = set; then :
24591 else
24592 ac_cv_search_eaccess=no
24594 rm conftest.$ac_ext
24595 LIBS=$ac_func_search_save_LIBS
24597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
24598 $as_echo "$ac_cv_search_eaccess" >&6; }
24599 ac_res=$ac_cv_search_eaccess
24600 if test "$ac_res" != no; then :
24601 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24602 test "$ac_cv_search_eaccess" = "none required" ||
24603 LIB_EACCESS=$ac_cv_search_eaccess
24606 for ac_func in eaccess
24607 do :
24608 ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
24609 if test "x$ac_cv_func_eaccess" = x""yes; then :
24610 cat >>confdefs.h <<_ACEOF
24611 #define HAVE_EACCESS 1
24612 _ACEOF
24615 done
24617 LIBS=$gl_saved_libs
24625 GNULIB_EUIDACCESS=1
24631 gl_gnulib_enabled_euidaccess=true
24632 if test $HAVE_EUIDACCESS = 0; then
24633 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
24635 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
24636 if test $HAVE_EUIDACCESS = 0; then
24637 func_gl_gnulib_m4code_stat
24641 func_gl_gnulib_m4code_getgroups ()
24643 if ! $gl_gnulib_enabled_getgroups; then
24649 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
24650 if test "x$ac_cv_func_getgroups" = x""yes; then :
24655 # If we don't yet have getgroups, see if it's in -lbsd.
24656 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
24657 ac_save_LIBS=$LIBS
24658 if test $ac_cv_func_getgroups = no; then
24659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
24660 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
24661 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
24662 $as_echo_n "(cached) " >&6
24663 else
24664 ac_check_lib_save_LIBS=$LIBS
24665 LIBS="-lbsd $LIBS"
24666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24667 /* end confdefs.h. */
24669 /* Override any GCC internal prototype to avoid an error.
24670 Use char because int might match the return type of a GCC
24671 builtin and then its argument prototype would still apply. */
24672 #ifdef __cplusplus
24673 extern "C"
24674 #endif
24675 char getgroups ();
24677 main ()
24679 return getgroups ();
24681 return 0;
24683 _ACEOF
24684 if ac_fn_c_try_link "$LINENO"; then :
24685 ac_cv_lib_bsd_getgroups=yes
24686 else
24687 ac_cv_lib_bsd_getgroups=no
24689 rm -f core conftest.err conftest.$ac_objext \
24690 conftest$ac_exeext conftest.$ac_ext
24691 LIBS=$ac_check_lib_save_LIBS
24693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
24694 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
24695 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
24696 GETGROUPS_LIB=-lbsd
24701 # Run the program to test the functionality of the system-supplied
24702 # getgroups function only if there is such a function.
24703 if test $ac_cv_func_getgroups = yes; then
24704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
24705 $as_echo_n "checking for working getgroups... " >&6; }
24706 if test "${ac_cv_func_getgroups_works+set}" = set; then :
24707 $as_echo_n "(cached) " >&6
24708 else
24709 if test "$cross_compiling" = yes; then :
24710 case "$host_os" in # ((
24711 # Guess yes on glibc systems.
24712 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
24713 # If we don't know, assume the worst.
24714 *) ac_cv_func_getgroups_works="guessing no" ;;
24715 esac
24717 else
24718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24719 /* end confdefs.h. */
24720 $ac_includes_default
24722 main ()
24724 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
24725 return getgroups (0, 0) == -1;
24727 return 0;
24730 _ACEOF
24731 if ac_fn_c_try_run "$LINENO"; then :
24732 ac_cv_func_getgroups_works=yes
24733 else
24734 ac_cv_func_getgroups_works=no
24736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24737 conftest.$ac_objext conftest.beam conftest.$ac_ext
24742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
24743 $as_echo "$ac_cv_func_getgroups_works" >&6; }
24744 else
24745 ac_cv_func_getgroups_works=no
24747 case "$ac_cv_func_getgroups_works" in
24748 *yes)
24750 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
24753 esac
24754 LIBS=$ac_save_LIBS
24756 if test $ac_cv_func_getgroups != yes; then
24757 HAVE_GETGROUPS=0
24758 else
24759 if test "$ac_cv_type_getgroups" != gid_t \
24760 || { case "$ac_cv_func_getgroups_works" in
24761 *yes) false;;
24762 *) true;;
24763 esac
24764 }; then
24765 REPLACE_GETGROUPS=1
24767 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
24769 else
24770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
24771 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
24772 if test "${gl_cv_func_getgroups_works+set}" = set; then :
24773 $as_echo_n "(cached) " >&6
24774 else
24775 if test "$cross_compiling" = yes; then :
24776 case "$host_os" in
24777 # Guess yes on glibc systems.
24778 *-gnu*) gl_cv_func_getgroups_works="guessing yes" ;;
24779 # If we don't know, assume the worst.
24780 *) gl_cv_func_getgroups_works="guessing no" ;;
24781 esac
24783 else
24784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24785 /* end confdefs.h. */
24786 $ac_includes_default
24788 main ()
24790 int size = getgroups (0, 0);
24791 gid_t *list = malloc (size * sizeof *list);
24792 return getgroups (-1, list) != -1;
24794 return 0;
24796 _ACEOF
24797 if ac_fn_c_try_run "$LINENO"; then :
24798 gl_cv_func_getgroups_works=yes
24799 else
24800 gl_cv_func_getgroups_works=no
24802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24803 conftest.$ac_objext conftest.beam conftest.$ac_ext
24807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
24808 $as_echo "$gl_cv_func_getgroups_works" >&6; }
24809 case "$gl_cv_func_getgroups_works" in
24810 *yes) ;;
24811 *) REPLACE_GETGROUPS=1 ;;
24812 esac
24815 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
24817 if test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1; then
24826 gl_LIBOBJS="$gl_LIBOBJS getgroups.$ac_objext"
24834 GNULIB_GETGROUPS=1
24840 gl_gnulib_enabled_getgroups=true
24843 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
24845 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
24848 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
24851 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1 ()
24853 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
24859 ac_fn_c_check_func "$LINENO" "group_member" "ac_cv_func_group_member"
24860 if test "x$ac_cv_func_group_member" = x""yes; then :
24862 else
24864 HAVE_GROUP_MEMBER=0
24869 if test $HAVE_GROUP_MEMBER = 0; then
24878 gl_LIBOBJS="$gl_LIBOBJS group-member.$ac_objext"
24889 GNULIB_GROUP_MEMBER=1
24895 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=true
24896 if test $HAVE_GROUP_MEMBER = 0; then
24897 func_gl_gnulib_m4code_getgroups
24899 if test $HAVE_GROUP_MEMBER = 0; then
24900 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
24904 func_gl_gnulib_m4code_pathmax ()
24906 if ! $gl_gnulib_enabled_pathmax; then
24910 gl_gnulib_enabled_pathmax=true
24913 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c ()
24915 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
24916 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=true
24919 func_gl_gnulib_m4code_stat ()
24921 if ! $gl_gnulib_enabled_stat; then
24925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
24926 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
24927 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
24928 $as_echo_n "(cached) " >&6
24929 else
24930 if test "$cross_compiling" = yes; then :
24931 case $host_os in
24932 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
24933 *) gl_cv_func_stat_dir_slash="guessing yes";;
24934 esac
24935 else
24936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24937 /* end confdefs.h. */
24938 #include <sys/stat.h>
24941 main ()
24943 struct stat st; return stat (".", &st) != stat ("./", &st);
24945 return 0;
24947 _ACEOF
24948 if ac_fn_c_try_run "$LINENO"; then :
24949 gl_cv_func_stat_dir_slash=yes
24950 else
24951 gl_cv_func_stat_dir_slash=no
24953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24954 conftest.$ac_objext conftest.beam conftest.$ac_ext
24958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
24959 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
24960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
24961 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
24962 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
24963 $as_echo_n "(cached) " >&6
24964 else
24965 touch conftest.tmp
24966 # Assume that if we have lstat, we can also check symlinks.
24967 if test $ac_cv_func_lstat = yes; then
24968 ln -s conftest.tmp conftest.lnk
24970 if test "$cross_compiling" = yes; then :
24971 case "$host_os" in
24972 # Guess yes on glibc systems.
24973 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
24974 # If we don't know, assume the worst.
24975 *) gl_cv_func_stat_file_slash="guessing no" ;;
24976 esac
24978 else
24979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24980 /* end confdefs.h. */
24981 #include <sys/stat.h>
24984 main ()
24986 int result = 0;
24987 struct stat st;
24988 if (!stat ("conftest.tmp/", &st))
24989 result |= 1;
24990 #if HAVE_LSTAT
24991 if (!stat ("conftest.lnk/", &st))
24992 result |= 2;
24993 #endif
24994 return result;
24997 return 0;
24999 _ACEOF
25000 if ac_fn_c_try_run "$LINENO"; then :
25001 gl_cv_func_stat_file_slash=yes
25002 else
25003 gl_cv_func_stat_file_slash=no
25005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25006 conftest.$ac_objext conftest.beam conftest.$ac_ext
25009 rm -f conftest.tmp conftest.lnk
25011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
25012 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
25013 case $gl_cv_func_stat_dir_slash in
25014 *no) REPLACE_STAT=1
25016 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
25018 esac
25019 case $gl_cv_func_stat_file_slash in
25020 *no) REPLACE_STAT=1
25022 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
25024 esac
25026 if test $REPLACE_STAT = 1; then
25035 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
25047 GNULIB_STAT=1
25053 gl_gnulib_enabled_stat=true
25054 if test $REPLACE_STAT = 1; then
25055 func_gl_gnulib_m4code_dosname
25057 if test $REPLACE_STAT = 1; then
25058 func_gl_gnulib_m4code_pathmax
25060 if test $REPLACE_STAT = 1; then
25061 func_gl_gnulib_m4code_verify
25065 func_gl_gnulib_m4code_strtoll ()
25067 if ! $gl_gnulib_enabled_strtoll; then
25071 if test "$ac_cv_type_long_long_int" = yes; then
25072 for ac_func in strtoll
25073 do :
25074 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
25075 if test "x$ac_cv_func_strtoll" = x""yes; then :
25076 cat >>confdefs.h <<_ACEOF
25077 #define HAVE_STRTOLL 1
25078 _ACEOF
25081 done
25083 if test $ac_cv_func_strtoll = no; then
25084 HAVE_STRTOLL=0
25088 if test $HAVE_STRTOLL = 0; then
25097 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
25108 GNULIB_STRTOLL=1
25114 gl_gnulib_enabled_strtoll=true
25117 func_gl_gnulib_m4code_strtoull ()
25119 if ! $gl_gnulib_enabled_strtoull; then
25123 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
25124 for ac_func in strtoull
25125 do :
25126 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
25127 if test "x$ac_cv_func_strtoull" = x""yes; then :
25128 cat >>confdefs.h <<_ACEOF
25129 #define HAVE_STRTOULL 1
25130 _ACEOF
25133 done
25135 if test $ac_cv_func_strtoull = no; then
25136 HAVE_STRTOULL=0
25140 if test $HAVE_STRTOULL = 0; then
25149 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
25160 GNULIB_STRTOULL=1
25166 gl_gnulib_enabled_strtoull=true
25169 func_gl_gnulib_m4code_verify ()
25171 if ! $gl_gnulib_enabled_verify; then
25172 gl_gnulib_enabled_verify=true
25175 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec ()
25177 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
25178 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=true
25181 if test $HAVE_FACCESSAT = 0; then
25182 func_gl_gnulib_m4code_dosname
25184 if test $HAVE_FACCESSAT = 0; then
25185 func_gl_gnulib_m4code_euidaccess
25187 if test $REPLACE_GETOPT = 1; then
25188 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
25190 if test $REPLACE_LSTAT = 1; then
25191 func_gl_gnulib_m4code_dosname
25193 if test $REPLACE_LSTAT = 1; then
25194 func_gl_gnulib_m4code_stat
25196 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
25197 func_gl_gnulib_m4code_stat
25199 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
25200 func_gl_gnulib_m4code_strtoll
25202 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
25203 func_gl_gnulib_m4code_verify
25205 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
25206 func_gl_gnulib_m4code_strtoull
25208 if test $ac_cv_func_strtoumax = no; then
25209 func_gl_gnulib_m4code_verify
25212 if $gl_gnulib_enabled_dosname; then
25213 gl_GNULIB_ENABLED_dosname_TRUE=
25214 gl_GNULIB_ENABLED_dosname_FALSE='#'
25215 else
25216 gl_GNULIB_ENABLED_dosname_TRUE='#'
25217 gl_GNULIB_ENABLED_dosname_FALSE=
25220 if $gl_gnulib_enabled_euidaccess; then
25221 gl_GNULIB_ENABLED_euidaccess_TRUE=
25222 gl_GNULIB_ENABLED_euidaccess_FALSE='#'
25223 else
25224 gl_GNULIB_ENABLED_euidaccess_TRUE='#'
25225 gl_GNULIB_ENABLED_euidaccess_FALSE=
25228 if $gl_gnulib_enabled_getgroups; then
25229 gl_GNULIB_ENABLED_getgroups_TRUE=
25230 gl_GNULIB_ENABLED_getgroups_FALSE='#'
25231 else
25232 gl_GNULIB_ENABLED_getgroups_TRUE='#'
25233 gl_GNULIB_ENABLED_getgroups_FALSE=
25236 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
25237 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
25238 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
25239 else
25240 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
25241 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
25244 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
25245 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE=
25246 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE='#'
25247 else
25248 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE='#'
25249 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE=
25252 if $gl_gnulib_enabled_pathmax; then
25253 gl_GNULIB_ENABLED_pathmax_TRUE=
25254 gl_GNULIB_ENABLED_pathmax_FALSE='#'
25255 else
25256 gl_GNULIB_ENABLED_pathmax_TRUE='#'
25257 gl_GNULIB_ENABLED_pathmax_FALSE=
25260 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
25261 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE=
25262 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE='#'
25263 else
25264 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE='#'
25265 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE=
25268 if $gl_gnulib_enabled_stat; then
25269 gl_GNULIB_ENABLED_stat_TRUE=
25270 gl_GNULIB_ENABLED_stat_FALSE='#'
25271 else
25272 gl_GNULIB_ENABLED_stat_TRUE='#'
25273 gl_GNULIB_ENABLED_stat_FALSE=
25276 if $gl_gnulib_enabled_strtoll; then
25277 gl_GNULIB_ENABLED_strtoll_TRUE=
25278 gl_GNULIB_ENABLED_strtoll_FALSE='#'
25279 else
25280 gl_GNULIB_ENABLED_strtoll_TRUE='#'
25281 gl_GNULIB_ENABLED_strtoll_FALSE=
25284 if $gl_gnulib_enabled_strtoull; then
25285 gl_GNULIB_ENABLED_strtoull_TRUE=
25286 gl_GNULIB_ENABLED_strtoull_FALSE='#'
25287 else
25288 gl_GNULIB_ENABLED_strtoull_TRUE='#'
25289 gl_GNULIB_ENABLED_strtoull_FALSE=
25292 if $gl_gnulib_enabled_verify; then
25293 gl_GNULIB_ENABLED_verify_TRUE=
25294 gl_GNULIB_ENABLED_verify_FALSE='#'
25295 else
25296 gl_GNULIB_ENABLED_verify_TRUE='#'
25297 gl_GNULIB_ENABLED_verify_FALSE=
25300 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
25301 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE=
25302 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE='#'
25303 else
25304 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE='#'
25305 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE=
25308 # End of code from modules
25318 gltests_libdeps=
25319 gltests_ltlibdeps=
25329 gl_source_base='tests'
25330 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
25332 gl_module_indicator_condition=$gltests_WITNESS
25343 LIBGNU_LIBDEPS="$gl_libdeps"
25345 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
25348 CFLAGS=$SAVE_CFLAGS
25349 LIBS=$SAVE_LIBS
25351 case "$opsys" in
25352 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
25354 darwin)
25355 ## The -headerpad option tells ld (see man page) to leave room at the
25356 ## end of the header for adding load commands. Needed for dumping.
25357 ## 0x690 is the total size of 30 segment load commands (at 56
25358 ## each); under Cocoa 31 commands are required.
25359 if test "$HAVE_NS" = "yes"; then
25360 libs_nsgui="-framework AppKit"
25361 headerpad_extra=6C8
25362 else
25363 libs_nsgui=
25364 headerpad_extra=690
25366 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
25368 ## This is here because src/Makefile.in did some extra fiddling around
25369 ## with LD_SWITCH_SYSTEM. The cpp logic was:
25370 ## #ifndef LD_SWITCH_SYSTEM
25371 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
25372 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
25373 ## not using gcc, darwin.
25374 ## Because this was done in src/Makefile.in, the resulting part of
25375 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
25376 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
25377 ## rather than LD_SWITCH_SYSTEM.
25378 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
25379 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
25382 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
25383 ## find X at run-time.
25384 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
25385 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
25386 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
25387 ## had different values in configure (in ac_link) and src/Makefile.in.
25388 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
25389 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
25391 *) LD_SWITCH_SYSTEM_TEMACS= ;;
25392 esac
25394 if test "$NS_IMPL_GNUSTEP" = "yes"; then
25395 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
25401 LD_FIRSTFLAG=
25402 ORDINARY_LINK=
25403 case "$opsys" in
25404 ## gnu: GNU needs its own crt0.
25405 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
25407 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
25408 ## library search parth, i.e. it won't search /usr/lib for libc and
25409 ## friends. Using -nostartfiles instead avoids this problem, and
25410 ## will also work on earlier NetBSD releases.
25411 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
25413 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
25414 ## MkLinux/LinuxPPC needs this.
25415 ## s390x-* only supports opsys = gnu-linux so it can be added here.
25416 gnu-*)
25417 case "$canonical" in
25418 powerpc*|s390x-*) LD_FIRSTFLAG="-nostdlib" ;;
25419 esac
25421 esac
25424 if test "x$ORDINARY_LINK" = "xyes"; then
25426 LD_FIRSTFLAG=""
25428 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
25431 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
25432 ## freebsd, gnu-* not on powerpc*|s390x*.
25433 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
25435 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
25436 ## places that are difficult to figure out at make time. Fortunately,
25437 ## these same versions allow you to pass arbitrary flags on to the
25438 ## linker, so there is no reason not to use it as a linker.
25440 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
25441 ## searching for libraries in its internal directories, so we have to
25442 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
25443 LD_FIRSTFLAG="-nostdlib"
25446 ## FIXME? What setting of EDIT_LDFLAGS should this have?
25447 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
25452 ## FIXME? The logic here is not precisely the same as that above.
25453 ## There is no check here for a pre-defined LD_FIRSTFLAG.
25454 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
25455 LIB_GCC=
25456 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
25458 case "$opsys" in
25459 freebsd|netbsd|openbsd) LIB_GCC= ;;
25461 gnu-*)
25462 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
25463 ## build on ARM EABI under GNU/Linux. (Bug#5518)
25464 case $host_cpu in
25465 arm*)
25466 LIB_GCC="-lgcc_s"
25469 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
25470 ## immediately undefine it again and redefine it to empty.
25471 ## Was the C_SWITCH_X_SITE part really necessary?
25472 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
25473 LIB_GCC=
25475 esac
25478 ## Ask GCC where to find libgcc.a.
25479 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
25480 esac
25483 ## Common for all window systems
25484 if test "$window_system" != "none"; then
25486 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
25489 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
25491 WINDOW_SYSTEM_OBJ="fontset.o fringe.o image.o"
25498 #### Report on what we decided to do.
25499 #### Report GTK as a toolkit, even if it doesn't use Xt.
25500 #### It makes printing result more understandable as using GTK sets
25501 #### toolkit_scroll_bars to yes by default.
25502 if test "${HAVE_GTK}" = "yes"; then
25503 USE_X_TOOLKIT="$USE_GTK_TOOLKIT"
25506 echo "
25507 Configured for \`${canonical}'.
25509 Where should the build process find the source code? ${srcdir}
25510 What compiler should emacs be built with? ${CC} ${CFLAGS}
25511 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25512 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25513 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25514 What window system should Emacs use? ${window_system}
25515 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25517 if test -n "${x_includes}"; then
25518 echo " Where do we find X Windows header files? ${x_includes}"
25519 else
25520 echo " Where do we find X Windows header files? Standard dirs"
25522 if test -n "${x_libraries}"; then
25523 echo " Where do we find X Windows libraries? ${x_libraries}"
25524 else
25525 echo " Where do we find X Windows libraries? Standard dirs"
25528 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
25529 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
25530 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
25531 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
25532 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
25533 echo " Does Emacs use -lpng? ${HAVE_PNG}"
25534 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
25535 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
25537 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
25538 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
25539 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
25540 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
25541 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
25542 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
25543 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
25545 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
25546 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
25547 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
25548 echo " Does Emacs use -lxft? ${HAVE_XFT}"
25550 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
25551 echo
25553 if test -n "${EMACSDATA}"; then
25554 echo " Environment variable EMACSDATA set to: $EMACSDATA"
25556 if test -n "${EMACSDOC}"; then
25557 echo " Environment variable EMACSDOC set to: $EMACSDOC"
25560 echo
25562 if test "$HAVE_NS" = "yes"; then
25563 echo
25564 echo "You must run \"${MAKE-make} install\" in order to test the built application.
25565 The installed application will go to nextstep/Emacs.app and can be
25566 run or moved from there."
25567 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25568 echo "The application will be fully self-contained."
25569 else
25570 echo "The lisp resources for the application will be installed under ${prefix}.
25571 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
25572 to run if these resources are not installed."
25574 echo
25577 if test "${opsys}" = "cygwin"; then
25578 case `uname -r` in
25579 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
25580 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
25581 echo
25583 esac
25586 # Remove any trailing slashes in these variables.
25587 test "${prefix}" != NONE &&
25588 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25589 test "${exec_prefix}" != NONE &&
25590 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25592 if test "$HAVE_NS" = "yes"; then
25593 if test "$NS_IMPL_GNUSTEP" = yes; then
25594 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"
25596 else
25597 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"
25602 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"
25604 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"
25607 opt_makefile=test/automated/Makefile
25609 if test -f $srcdir/${opt_makefile}.in; then
25610 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
25611 ac_config_files="$ac_config_files test/automated/Makefile"
25616 opt_makefile=admin/unidata/Makefile
25618 if test -f $srcdir/${opt_makefile}.in; then
25619 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
25620 ac_config_files="$ac_config_files admin/unidata/Makefile"
25625 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
25629 ac_config_commands="$ac_config_commands mkdirs"
25632 ac_config_commands="$ac_config_commands epaths"
25635 ac_config_commands="$ac_config_commands gdbinit"
25638 cat >confcache <<\_ACEOF
25639 # This file is a shell script that caches the results of configure
25640 # tests run on this system so they can be shared between configure
25641 # scripts and configure runs, see configure's option --config-cache.
25642 # It is not useful on other systems. If it contains results you don't
25643 # want to keep, you may remove or edit it.
25645 # config.status only pays attention to the cache file if you give it
25646 # the --recheck option to rerun configure.
25648 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25649 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25650 # following values.
25652 _ACEOF
25654 # The following way of writing the cache mishandles newlines in values,
25655 # but we know of no workaround that is simple, portable, and efficient.
25656 # So, we kill variables containing newlines.
25657 # Ultrix sh set writes to stderr and can't be redirected directly,
25658 # and sets the high bit in the cache file unless we assign to the vars.
25660 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25661 eval ac_val=\$$ac_var
25662 case $ac_val in #(
25663 *${as_nl}*)
25664 case $ac_var in #(
25665 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25666 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25667 esac
25668 case $ac_var in #(
25669 _ | IFS | as_nl) ;; #(
25670 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25671 *) { eval $ac_var=; unset $ac_var;} ;;
25672 esac ;;
25673 esac
25674 done
25676 (set) 2>&1 |
25677 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25678 *${as_nl}ac_space=\ *)
25679 # `set' does not quote correctly, so add quotes: double-quote
25680 # substitution turns \\\\ into \\, and sed turns \\ into \.
25681 sed -n \
25682 "s/'/'\\\\''/g;
25683 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25684 ;; #(
25686 # `set' quotes correctly as required by POSIX, so do not add quotes.
25687 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25689 esac |
25690 sort
25692 sed '
25693 /^ac_cv_env_/b end
25694 t clear
25695 :clear
25696 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25697 t end
25698 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25699 :end' >>confcache
25700 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25701 if test -w "$cache_file"; then
25702 test "x$cache_file" != "x/dev/null" &&
25703 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25704 $as_echo "$as_me: updating cache $cache_file" >&6;}
25705 cat confcache >$cache_file
25706 else
25707 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25708 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25711 rm -f confcache
25713 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25714 # Let make expand exec_prefix.
25715 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25717 DEFS=-DHAVE_CONFIG_H
25719 ac_libobjs=
25720 ac_ltlibobjs=
25721 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25722 # 1. Remove the extension, and $U if already installed.
25723 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25724 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25725 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25726 # will be set to the directory where LIBOBJS objects are built.
25727 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25728 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25729 done
25730 LIBOBJS=$ac_libobjs
25732 LTLIBOBJS=$ac_ltlibobjs
25735 if test -n "$EXEEXT"; then
25736 am__EXEEXT_TRUE=
25737 am__EXEEXT_FALSE='#'
25738 else
25739 am__EXEEXT_TRUE='#'
25740 am__EXEEXT_FALSE=
25743 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25744 as_fn_error "conditional \"AMDEP\" was never defined.
25745 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25747 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25748 as_fn_error "conditional \"am__fastdepCC\" was never defined.
25749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25751 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
25752 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
25753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25755 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
25756 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
25757 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25760 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
25761 as_fn_error "conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
25762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25764 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
25765 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
25766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25768 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
25769 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
25770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25772 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
25773 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
25774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25776 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
25777 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
25778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25780 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
25781 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
25782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25784 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
25785 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
25786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25788 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
25789 as_fn_error "conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
25790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25792 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
25793 as_fn_error "conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
25794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25796 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
25797 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
25798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25800 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
25801 as_fn_error "conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
25802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25804 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
25805 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
25806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25808 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
25809 as_fn_error "conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
25810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25812 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
25813 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
25814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25816 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
25817 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
25818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25820 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
25821 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
25822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25824 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
25825 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
25826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25828 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
25829 as_fn_error "conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
25830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25833 gl_libobjs=
25834 gl_ltlibobjs=
25835 if test -n "$gl_LIBOBJS"; then
25836 # Remove the extension.
25837 sed_drop_objext='s/\.o$//;s/\.obj$//'
25838 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25839 gl_libobjs="$gl_libobjs $i.$ac_objext"
25840 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
25841 done
25843 gl_LIBOBJS=$gl_libobjs
25845 gl_LTLIBOBJS=$gl_ltlibobjs
25849 gltests_libobjs=
25850 gltests_ltlibobjs=
25851 if test -n "$gltests_LIBOBJS"; then
25852 # Remove the extension.
25853 sed_drop_objext='s/\.o$//;s/\.obj$//'
25854 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25855 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
25856 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
25857 done
25859 gltests_LIBOBJS=$gltests_libobjs
25861 gltests_LTLIBOBJS=$gltests_ltlibobjs
25865 : ${CONFIG_STATUS=./config.status}
25866 ac_write_fail=0
25867 ac_clean_files_save=$ac_clean_files
25868 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25870 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25871 as_write_fail=0
25872 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25873 #! $SHELL
25874 # Generated by $as_me.
25875 # Run this file to recreate the current configuration.
25876 # Compiler output produced by configure, useful for debugging
25877 # configure, is in config.log if it exists.
25879 debug=false
25880 ac_cs_recheck=false
25881 ac_cs_silent=false
25883 SHELL=\${CONFIG_SHELL-$SHELL}
25884 export SHELL
25885 _ASEOF
25886 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25887 ## -------------------- ##
25888 ## M4sh Initialization. ##
25889 ## -------------------- ##
25891 # Be more Bourne compatible
25892 DUALCASE=1; export DUALCASE # for MKS sh
25893 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25894 emulate sh
25895 NULLCMD=:
25896 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25897 # is contrary to our usage. Disable this feature.
25898 alias -g '${1+"$@"}'='"$@"'
25899 setopt NO_GLOB_SUBST
25900 else
25901 case `(set -o) 2>/dev/null` in #(
25902 *posix*) :
25903 set -o posix ;; #(
25904 *) :
25906 esac
25910 as_nl='
25912 export as_nl
25913 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25914 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25915 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25916 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25917 # Prefer a ksh shell builtin over an external printf program on Solaris,
25918 # but without wasting forks for bash or zsh.
25919 if test -z "$BASH_VERSION$ZSH_VERSION" \
25920 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25921 as_echo='print -r --'
25922 as_echo_n='print -rn --'
25923 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25924 as_echo='printf %s\n'
25925 as_echo_n='printf %s'
25926 else
25927 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25928 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25929 as_echo_n='/usr/ucb/echo -n'
25930 else
25931 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25932 as_echo_n_body='eval
25933 arg=$1;
25934 case $arg in #(
25935 *"$as_nl"*)
25936 expr "X$arg" : "X\\(.*\\)$as_nl";
25937 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25938 esac;
25939 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25941 export as_echo_n_body
25942 as_echo_n='sh -c $as_echo_n_body as_echo'
25944 export as_echo_body
25945 as_echo='sh -c $as_echo_body as_echo'
25948 # The user is always right.
25949 if test "${PATH_SEPARATOR+set}" != set; then
25950 PATH_SEPARATOR=:
25951 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25952 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25953 PATH_SEPARATOR=';'
25958 # IFS
25959 # We need space, tab and new line, in precisely that order. Quoting is
25960 # there to prevent editors from complaining about space-tab.
25961 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25962 # splitting by setting IFS to empty value.)
25963 IFS=" "" $as_nl"
25965 # Find who we are. Look in the path if we contain no directory separator.
25966 case $0 in #((
25967 *[\\/]* ) as_myself=$0 ;;
25968 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25969 for as_dir in $PATH
25971 IFS=$as_save_IFS
25972 test -z "$as_dir" && as_dir=.
25973 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25974 done
25975 IFS=$as_save_IFS
25978 esac
25979 # We did not find ourselves, most probably we were run as `sh COMMAND'
25980 # in which case we are not to be found in the path.
25981 if test "x$as_myself" = x; then
25982 as_myself=$0
25984 if test ! -f "$as_myself"; then
25985 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25986 exit 1
25989 # Unset variables that we do not need and which cause bugs (e.g. in
25990 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25991 # suppresses any "Segmentation fault" message there. '((' could
25992 # trigger a bug in pdksh 5.2.14.
25993 for as_var in BASH_ENV ENV MAIL MAILPATH
25994 do eval test x\${$as_var+set} = xset \
25995 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25996 done
25997 PS1='$ '
25998 PS2='> '
25999 PS4='+ '
26001 # NLS nuisances.
26002 LC_ALL=C
26003 export LC_ALL
26004 LANGUAGE=C
26005 export LANGUAGE
26007 # CDPATH.
26008 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26011 # as_fn_error ERROR [LINENO LOG_FD]
26012 # ---------------------------------
26013 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26014 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26015 # script with status $?, using 1 if that was 0.
26016 as_fn_error ()
26018 as_status=$?; test $as_status -eq 0 && as_status=1
26019 if test "$3"; then
26020 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26021 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26023 $as_echo "$as_me: error: $1" >&2
26024 as_fn_exit $as_status
26025 } # as_fn_error
26028 # as_fn_set_status STATUS
26029 # -----------------------
26030 # Set $? to STATUS, without forking.
26031 as_fn_set_status ()
26033 return $1
26034 } # as_fn_set_status
26036 # as_fn_exit STATUS
26037 # -----------------
26038 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26039 as_fn_exit ()
26041 set +e
26042 as_fn_set_status $1
26043 exit $1
26044 } # as_fn_exit
26046 # as_fn_unset VAR
26047 # ---------------
26048 # Portably unset VAR.
26049 as_fn_unset ()
26051 { eval $1=; unset $1;}
26053 as_unset=as_fn_unset
26054 # as_fn_append VAR VALUE
26055 # ----------------------
26056 # Append the text in VALUE to the end of the definition contained in VAR. Take
26057 # advantage of any shell optimizations that allow amortized linear growth over
26058 # repeated appends, instead of the typical quadratic growth present in naive
26059 # implementations.
26060 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26061 eval 'as_fn_append ()
26063 eval $1+=\$2
26065 else
26066 as_fn_append ()
26068 eval $1=\$$1\$2
26070 fi # as_fn_append
26072 # as_fn_arith ARG...
26073 # ------------------
26074 # Perform arithmetic evaluation on the ARGs, and store the result in the
26075 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26076 # must be portable across $(()) and expr.
26077 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26078 eval 'as_fn_arith ()
26080 as_val=$(( $* ))
26082 else
26083 as_fn_arith ()
26085 as_val=`expr "$@" || test $? -eq 1`
26087 fi # as_fn_arith
26090 if expr a : '\(a\)' >/dev/null 2>&1 &&
26091 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26092 as_expr=expr
26093 else
26094 as_expr=false
26097 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26098 as_basename=basename
26099 else
26100 as_basename=false
26103 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26104 as_dirname=dirname
26105 else
26106 as_dirname=false
26109 as_me=`$as_basename -- "$0" ||
26110 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26111 X"$0" : 'X\(//\)$' \| \
26112 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26113 $as_echo X/"$0" |
26114 sed '/^.*\/\([^/][^/]*\)\/*$/{
26115 s//\1/
26118 /^X\/\(\/\/\)$/{
26119 s//\1/
26122 /^X\/\(\/\).*/{
26123 s//\1/
26126 s/.*/./; q'`
26128 # Avoid depending upon Character Ranges.
26129 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26130 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26131 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26132 as_cr_digits='0123456789'
26133 as_cr_alnum=$as_cr_Letters$as_cr_digits
26135 ECHO_C= ECHO_N= ECHO_T=
26136 case `echo -n x` in #(((((
26137 -n*)
26138 case `echo 'xy\c'` in
26139 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26140 xy) ECHO_C='\c';;
26141 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26142 ECHO_T=' ';;
26143 esac;;
26145 ECHO_N='-n';;
26146 esac
26148 rm -f conf$$ conf$$.exe conf$$.file
26149 if test -d conf$$.dir; then
26150 rm -f conf$$.dir/conf$$.file
26151 else
26152 rm -f conf$$.dir
26153 mkdir conf$$.dir 2>/dev/null
26155 if (echo >conf$$.file) 2>/dev/null; then
26156 if ln -s conf$$.file conf$$ 2>/dev/null; then
26157 as_ln_s='ln -s'
26158 # ... but there are two gotchas:
26159 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26160 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26161 # In both cases, we have to default to `cp -p'.
26162 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26163 as_ln_s='cp -p'
26164 elif ln conf$$.file conf$$ 2>/dev/null; then
26165 as_ln_s=ln
26166 else
26167 as_ln_s='cp -p'
26169 else
26170 as_ln_s='cp -p'
26172 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26173 rmdir conf$$.dir 2>/dev/null
26176 # as_fn_mkdir_p
26177 # -------------
26178 # Create "$as_dir" as a directory, including parents if necessary.
26179 as_fn_mkdir_p ()
26182 case $as_dir in #(
26183 -*) as_dir=./$as_dir;;
26184 esac
26185 test -d "$as_dir" || eval $as_mkdir_p || {
26186 as_dirs=
26187 while :; do
26188 case $as_dir in #(
26189 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26190 *) as_qdir=$as_dir;;
26191 esac
26192 as_dirs="'$as_qdir' $as_dirs"
26193 as_dir=`$as_dirname -- "$as_dir" ||
26194 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26195 X"$as_dir" : 'X\(//\)[^/]' \| \
26196 X"$as_dir" : 'X\(//\)$' \| \
26197 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26198 $as_echo X"$as_dir" |
26199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26200 s//\1/
26203 /^X\(\/\/\)[^/].*/{
26204 s//\1/
26207 /^X\(\/\/\)$/{
26208 s//\1/
26211 /^X\(\/\).*/{
26212 s//\1/
26215 s/.*/./; q'`
26216 test -d "$as_dir" && break
26217 done
26218 test -z "$as_dirs" || eval "mkdir $as_dirs"
26219 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26222 } # as_fn_mkdir_p
26223 if mkdir -p . 2>/dev/null; then
26224 as_mkdir_p='mkdir -p "$as_dir"'
26225 else
26226 test -d ./-p && rmdir ./-p
26227 as_mkdir_p=false
26230 if test -x / >/dev/null 2>&1; then
26231 as_test_x='test -x'
26232 else
26233 if ls -dL / >/dev/null 2>&1; then
26234 as_ls_L_option=L
26235 else
26236 as_ls_L_option=
26238 as_test_x='
26239 eval sh -c '\''
26240 if test -d "$1"; then
26241 test -d "$1/.";
26242 else
26243 case $1 in #(
26244 -*)set "./$1";;
26245 esac;
26246 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26247 ???[sx]*):;;*)false;;esac;fi
26248 '\'' sh
26251 as_executable_p=$as_test_x
26253 # Sed expression to map a string onto a valid CPP name.
26254 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26256 # Sed expression to map a string onto a valid variable name.
26257 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26260 exec 6>&1
26261 ## ----------------------------------- ##
26262 ## Main body of $CONFIG_STATUS script. ##
26263 ## ----------------------------------- ##
26264 _ASEOF
26265 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26268 # Save the log message, to keep $0 and so on meaningful, and to
26269 # report actual input values of CONFIG_FILES etc. instead of their
26270 # values after options handling.
26271 ac_log="
26272 This file was extended by emacs $as_me 24.3.50, which was
26273 generated by GNU Autoconf 2.65. Invocation command line was
26275 CONFIG_FILES = $CONFIG_FILES
26276 CONFIG_HEADERS = $CONFIG_HEADERS
26277 CONFIG_LINKS = $CONFIG_LINKS
26278 CONFIG_COMMANDS = $CONFIG_COMMANDS
26279 $ $0 $@
26281 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26284 _ACEOF
26286 case $ac_config_files in *"
26287 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26288 esac
26290 case $ac_config_headers in *"
26291 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26292 esac
26295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26296 # Files that config.status was made for.
26297 config_files="$ac_config_files"
26298 config_headers="$ac_config_headers"
26299 config_commands="$ac_config_commands"
26301 _ACEOF
26303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26304 ac_cs_usage="\
26305 \`$as_me' instantiates files and other configuration actions
26306 from templates according to the current configuration. Unless the files
26307 and actions are specified as TAGs, all are instantiated by default.
26309 Usage: $0 [OPTION]... [TAG]...
26311 -h, --help print this help, then exit
26312 -V, --version print version number and configuration settings, then exit
26313 --config print configuration, then exit
26314 -q, --quiet, --silent
26315 do not print progress messages
26316 -d, --debug don't remove temporary files
26317 --recheck update $as_me by reconfiguring in the same conditions
26318 --file=FILE[:TEMPLATE]
26319 instantiate the configuration file FILE
26320 --header=FILE[:TEMPLATE]
26321 instantiate the configuration header FILE
26323 Configuration files:
26324 $config_files
26326 Configuration headers:
26327 $config_headers
26329 Configuration commands:
26330 $config_commands
26332 Report bugs to the package provider."
26334 _ACEOF
26335 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26336 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26337 ac_cs_version="\\
26338 emacs config.status 24.3.50
26339 configured by $0, generated by GNU Autoconf 2.65,
26340 with options \\"\$ac_cs_config\\"
26342 Copyright (C) 2009 Free Software Foundation, Inc.
26343 This config.status script is free software; the Free Software Foundation
26344 gives unlimited permission to copy, distribute and modify it."
26346 ac_pwd='$ac_pwd'
26347 srcdir='$srcdir'
26348 INSTALL='$INSTALL'
26349 MKDIR_P='$MKDIR_P'
26350 AWK='$AWK'
26351 test -n "\$AWK" || AWK=awk
26352 _ACEOF
26354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26355 # The default lists apply if the user does not specify any file.
26356 ac_need_defaults=:
26357 while test $# != 0
26359 case $1 in
26360 --*=*)
26361 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26362 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26363 ac_shift=:
26366 ac_option=$1
26367 ac_optarg=$2
26368 ac_shift=shift
26370 esac
26372 case $ac_option in
26373 # Handling of the options.
26374 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26375 ac_cs_recheck=: ;;
26376 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26377 $as_echo "$ac_cs_version"; exit ;;
26378 --config | --confi | --conf | --con | --co | --c )
26379 $as_echo "$ac_cs_config"; exit ;;
26380 --debug | --debu | --deb | --de | --d | -d )
26381 debug=: ;;
26382 --file | --fil | --fi | --f )
26383 $ac_shift
26384 case $ac_optarg in
26385 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26386 esac
26387 as_fn_append CONFIG_FILES " '$ac_optarg'"
26388 ac_need_defaults=false;;
26389 --header | --heade | --head | --hea )
26390 $ac_shift
26391 case $ac_optarg in
26392 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26393 esac
26394 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26395 ac_need_defaults=false;;
26396 --he | --h)
26397 # Conflict between --help and --header
26398 as_fn_error "ambiguous option: \`$1'
26399 Try \`$0 --help' for more information.";;
26400 --help | --hel | -h )
26401 $as_echo "$ac_cs_usage"; exit ;;
26402 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26403 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26404 ac_cs_silent=: ;;
26406 # This is an error.
26407 -*) as_fn_error "unrecognized option: \`$1'
26408 Try \`$0 --help' for more information." ;;
26410 *) as_fn_append ac_config_targets " $1"
26411 ac_need_defaults=false ;;
26413 esac
26414 shift
26415 done
26417 ac_configure_extra_args=
26419 if $ac_cs_silent; then
26420 exec 6>/dev/null
26421 ac_configure_extra_args="$ac_configure_extra_args --silent"
26424 _ACEOF
26425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26426 if \$ac_cs_recheck; then
26427 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26428 shift
26429 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26430 CONFIG_SHELL='$SHELL'
26431 export CONFIG_SHELL
26432 exec "\$@"
26435 _ACEOF
26436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26437 exec 5>>config.log
26439 echo
26440 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26441 ## Running $as_me. ##
26442 _ASBOX
26443 $as_echo "$ac_log"
26444 } >&5
26446 _ACEOF
26447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26449 # INIT-COMMANDS
26451 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26452 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
26454 _ACEOF
26456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26458 # Handling of arguments.
26459 for ac_config_target in $ac_config_targets
26461 case $ac_config_target in
26462 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26463 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26464 "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" ;;
26465 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
26466 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
26467 "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" ;;
26468 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26469 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
26470 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
26471 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
26472 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
26473 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
26474 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
26475 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
26476 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26477 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26478 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26479 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26480 "nextstep/Makefile") CONFIG_FILES="$CONFIG_FILES nextstep/Makefile" ;;
26481 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
26482 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
26483 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
26484 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
26485 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
26487 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26488 esac
26489 done
26492 # If the user did not use the arguments to specify the items to instantiate,
26493 # then the envvar interface is used. Set only those that are not.
26494 # We use the long form for the default assignment because of an extremely
26495 # bizarre bug on SunOS 4.1.3.
26496 if $ac_need_defaults; then
26497 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26498 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26499 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26502 # Have a temporary directory for convenience. Make it in the build tree
26503 # simply because there is no reason against having it here, and in addition,
26504 # creating and moving files from /tmp can sometimes cause problems.
26505 # Hook for its removal unless debugging.
26506 # Note that there is a small window in which the directory will not be cleaned:
26507 # after its creation but before its name has been assigned to `$tmp'.
26508 $debug ||
26510 tmp=
26511 trap 'exit_status=$?
26512 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26514 trap 'as_fn_exit 1' 1 2 13 15
26516 # Create a (secure) tmp directory for tmp files.
26519 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26520 test -n "$tmp" && test -d "$tmp"
26521 } ||
26523 tmp=./conf$$-$RANDOM
26524 (umask 077 && mkdir "$tmp")
26525 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26527 # Set up the scripts for CONFIG_FILES section.
26528 # No need to generate them if there are no CONFIG_FILES.
26529 # This happens for instance with `./config.status config.h'.
26530 if test -n "$CONFIG_FILES"; then
26532 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
26533 ac_cs_awk_getline=:
26534 ac_cs_awk_pipe_init=
26535 ac_cs_awk_read_file='
26536 while ((getline aline < (F[key])) > 0)
26537 print(aline)
26538 close(F[key])'
26539 ac_cs_awk_pipe_fini=
26540 else
26541 ac_cs_awk_getline=false
26542 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
26543 ac_cs_awk_read_file='
26544 print "|#_!!_#|"
26545 print "cat " F[key] " &&"
26546 '$ac_cs_awk_pipe_init
26547 # The final `:' finishes the AND list.
26548 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
26550 ac_cr=`echo X | tr X '\015'`
26551 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26552 # But we know of no other shell where ac_cr would be empty at this
26553 # point, so we can use a bashism as a fallback.
26554 if test "x$ac_cr" = x; then
26555 eval ac_cr=\$\'\\r\'
26557 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26558 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26559 ac_cs_awk_cr='\r'
26560 else
26561 ac_cs_awk_cr=$ac_cr
26564 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26565 _ACEOF
26567 # Create commands to substitute file output variables.
26569 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26570 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26571 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
26572 echo "_ACAWK" &&
26573 echo "_ACEOF"
26574 } >conf$$files.sh &&
26575 . ./conf$$files.sh ||
26576 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26577 rm -f conf$$files.sh
26580 echo "cat >conf$$subs.awk <<_ACEOF" &&
26581 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26582 echo "_ACEOF"
26583 } >conf$$subs.sh ||
26584 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26585 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26586 ac_delim='%!_!# '
26587 for ac_last_try in false false false false false :; do
26588 . ./conf$$subs.sh ||
26589 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26591 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26592 if test $ac_delim_n = $ac_delim_num; then
26593 break
26594 elif $ac_last_try; then
26595 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26596 else
26597 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26599 done
26600 rm -f conf$$subs.sh
26602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26603 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26604 _ACEOF
26605 sed -n '
26607 s/^/S["/; s/!.*/"]=/
26610 s/^[^!]*!//
26611 :repl
26612 t repl
26613 s/'"$ac_delim"'$//
26614 t delim
26617 s/\(.\{148\}\)..*/\1/
26618 t more1
26619 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26622 b repl
26623 :more1
26624 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26627 s/.\{148\}//
26628 t nl
26629 :delim
26631 s/\(.\{148\}\)..*/\1/
26632 t more2
26633 s/["\\]/\\&/g; s/^/"/; s/$/"/
26636 :more2
26637 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26640 s/.\{148\}//
26641 t delim
26642 ' <conf$$subs.awk | sed '
26643 /^[^""]/{
26645 s/\n//
26647 ' >>$CONFIG_STATUS || ac_write_fail=1
26648 rm -f conf$$subs.awk
26649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26650 _ACAWK
26651 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26652 for (key in S) S_is_set[key] = 1
26653 FS = "\a"
26654 \$ac_cs_awk_pipe_init
26657 line = $ 0
26658 nfields = split(line, field, "@")
26659 substed = 0
26660 len = length(field[1])
26661 for (i = 2; i < nfields; i++) {
26662 key = field[i]
26663 keylen = length(key)
26664 if (S_is_set[key]) {
26665 value = S[key]
26666 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26667 len += length(value) + length(field[++i])
26668 substed = 1
26669 } else
26670 len += 1 + keylen
26672 if (nfields == 3 && !substed) {
26673 key = field[2]
26674 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
26675 \$ac_cs_awk_read_file
26676 next
26679 print line
26681 \$ac_cs_awk_pipe_fini
26682 _ACAWK
26683 _ACEOF
26684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26685 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26686 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26687 else
26689 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26690 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26691 _ACEOF
26693 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26694 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26695 # trailing colons and then remove the whole line if VPATH becomes empty
26696 # (actually we leave an empty line to preserve line numbers).
26697 if test "x$srcdir" = x.; then
26698 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26699 s/:*\$(srcdir):*/:/
26700 s/:*\${srcdir}:*/:/
26701 s/:*@srcdir@:*/:/
26702 s/^\([^=]*=[ ]*\):*/\1/
26703 s/:*$//
26704 s/^[^=]*=[ ]*$//
26708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26709 fi # test -n "$CONFIG_FILES"
26711 # Set up the scripts for CONFIG_HEADERS section.
26712 # No need to generate them if there are no CONFIG_HEADERS.
26713 # This happens for instance with `./config.status Makefile'.
26714 if test -n "$CONFIG_HEADERS"; then
26715 cat >"$tmp/defines.awk" <<\_ACAWK ||
26716 BEGIN {
26717 _ACEOF
26719 # Transform confdefs.h into an awk script `defines.awk', embedded as
26720 # here-document in config.status, that substitutes the proper values into
26721 # config.h.in to produce config.h.
26723 # Create a delimiter string that does not exist in confdefs.h, to ease
26724 # handling of long lines.
26725 ac_delim='%!_!# '
26726 for ac_last_try in false false :; do
26727 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26728 if test -z "$ac_t"; then
26729 break
26730 elif $ac_last_try; then
26731 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26732 else
26733 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26735 done
26737 # For the awk script, D is an array of macro values keyed by name,
26738 # likewise P contains macro parameters if any. Preserve backslash
26739 # newline sequences.
26741 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26742 sed -n '
26743 s/.\{148\}/&'"$ac_delim"'/g
26744 t rset
26745 :rset
26746 s/^[ ]*#[ ]*define[ ][ ]*/ /
26747 t def
26749 :def
26750 s/\\$//
26751 t bsnl
26752 s/["\\]/\\&/g
26753 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26754 D["\1"]=" \3"/p
26755 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26757 :bsnl
26758 s/["\\]/\\&/g
26759 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26760 D["\1"]=" \3\\\\\\n"\\/p
26761 t cont
26762 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26763 t cont
26765 :cont
26767 s/.\{148\}/&'"$ac_delim"'/g
26768 t clear
26769 :clear
26770 s/\\$//
26771 t bsnlc
26772 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26774 :bsnlc
26775 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26776 b cont
26777 ' <confdefs.h | sed '
26778 s/'"$ac_delim"'/"\\\
26779 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26782 for (key in D) D_is_set[key] = 1
26783 FS = "\a"
26785 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26786 line = \$ 0
26787 split(line, arg, " ")
26788 if (arg[1] == "#") {
26789 defundef = arg[2]
26790 mac1 = arg[3]
26791 } else {
26792 defundef = substr(arg[1], 2)
26793 mac1 = arg[2]
26795 split(mac1, mac2, "(") #)
26796 macro = mac2[1]
26797 prefix = substr(line, 1, index(line, defundef) - 1)
26798 if (D_is_set[macro]) {
26799 # Preserve the white space surrounding the "#".
26800 print prefix "define", macro P[macro] D[macro]
26801 next
26802 } else {
26803 # Replace #undef with comments. This is necessary, for example,
26804 # in the case of _POSIX_SOURCE, which is predefined and required
26805 # on some systems where configure will not decide to define it.
26806 if (defundef == "undef") {
26807 print "/*", prefix defundef, macro, "*/"
26808 next
26812 { print }
26813 _ACAWK
26814 _ACEOF
26815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26816 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26817 fi # test -n "$CONFIG_HEADERS"
26820 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26821 shift
26822 for ac_tag
26824 case $ac_tag in
26825 :[FHLC]) ac_mode=$ac_tag; continue;;
26826 esac
26827 case $ac_mode$ac_tag in
26828 :[FHL]*:*);;
26829 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26830 :[FH]-) ac_tag=-:-;;
26831 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26832 esac
26833 ac_save_IFS=$IFS
26834 IFS=:
26835 set x $ac_tag
26836 IFS=$ac_save_IFS
26837 shift
26838 ac_file=$1
26839 shift
26841 case $ac_mode in
26842 :L) ac_source=$1;;
26843 :[FH])
26844 ac_file_inputs=
26845 for ac_f
26847 case $ac_f in
26848 -) ac_f="$tmp/stdin";;
26849 *) # Look for the file first in the build tree, then in the source tree
26850 # (if the path is not absolute). The absolute path cannot be DOS-style,
26851 # because $ac_f cannot contain `:'.
26852 test -f "$ac_f" ||
26853 case $ac_f in
26854 [\\/$]*) false;;
26855 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26856 esac ||
26857 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26858 esac
26859 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26860 as_fn_append ac_file_inputs " '$ac_f'"
26861 done
26863 # Let's still pretend it is `configure' which instantiates (i.e., don't
26864 # use $as_me), people would be surprised to read:
26865 # /* config.h. Generated by config.status. */
26866 configure_input='Generated from '`
26867 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26868 `' by configure.'
26869 if test x"$ac_file" != x-; then
26870 configure_input="$ac_file. $configure_input"
26871 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26872 $as_echo "$as_me: creating $ac_file" >&6;}
26874 # Neutralize special characters interpreted by sed in replacement strings.
26875 case $configure_input in #(
26876 *\&* | *\|* | *\\* )
26877 ac_sed_conf_input=`$as_echo "$configure_input" |
26878 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26879 *) ac_sed_conf_input=$configure_input;;
26880 esac
26882 case $ac_tag in
26883 *:-:* | *:-) cat >"$tmp/stdin" \
26884 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26885 esac
26887 esac
26889 ac_dir=`$as_dirname -- "$ac_file" ||
26890 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26891 X"$ac_file" : 'X\(//\)[^/]' \| \
26892 X"$ac_file" : 'X\(//\)$' \| \
26893 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26894 $as_echo X"$ac_file" |
26895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26896 s//\1/
26899 /^X\(\/\/\)[^/].*/{
26900 s//\1/
26903 /^X\(\/\/\)$/{
26904 s//\1/
26907 /^X\(\/\).*/{
26908 s//\1/
26911 s/.*/./; q'`
26912 as_dir="$ac_dir"; as_fn_mkdir_p
26913 ac_builddir=.
26915 case "$ac_dir" in
26916 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26918 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26919 # A ".." for each directory in $ac_dir_suffix.
26920 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26921 case $ac_top_builddir_sub in
26922 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26923 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26924 esac ;;
26925 esac
26926 ac_abs_top_builddir=$ac_pwd
26927 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26928 # for backward compatibility:
26929 ac_top_builddir=$ac_top_build_prefix
26931 case $srcdir in
26932 .) # We are building in place.
26933 ac_srcdir=.
26934 ac_top_srcdir=$ac_top_builddir_sub
26935 ac_abs_top_srcdir=$ac_pwd ;;
26936 [\\/]* | ?:[\\/]* ) # Absolute name.
26937 ac_srcdir=$srcdir$ac_dir_suffix;
26938 ac_top_srcdir=$srcdir
26939 ac_abs_top_srcdir=$srcdir ;;
26940 *) # Relative name.
26941 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26942 ac_top_srcdir=$ac_top_build_prefix$srcdir
26943 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26944 esac
26945 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26948 case $ac_mode in
26951 # CONFIG_FILE
26954 case $INSTALL in
26955 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26956 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26957 esac
26958 ac_MKDIR_P=$MKDIR_P
26959 case $MKDIR_P in
26960 [\\/$]* | ?:[\\/]* ) ;;
26961 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26962 esac
26963 _ACEOF
26965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26966 # If the template does not know about datarootdir, expand it.
26967 # FIXME: This hack should be removed a few years after 2.60.
26968 ac_datarootdir_hack=; ac_datarootdir_seen=
26969 ac_sed_dataroot='
26970 /datarootdir/ {
26974 /@datadir@/p
26975 /@docdir@/p
26976 /@infodir@/p
26977 /@localedir@/p
26978 /@mandir@/p'
26979 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26980 *datarootdir*) ac_datarootdir_seen=yes;;
26981 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26983 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26984 _ACEOF
26985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26986 ac_datarootdir_hack='
26987 s&@datadir@&$datadir&g
26988 s&@docdir@&$docdir&g
26989 s&@infodir@&$infodir&g
26990 s&@localedir@&$localedir&g
26991 s&@mandir@&$mandir&g
26992 s&\\\${datarootdir}&$datarootdir&g' ;;
26993 esac
26994 _ACEOF
26996 # Neutralize VPATH when `$srcdir' = `.'.
26997 # Shell code in configure.ac might set extrasub.
26998 # FIXME: do we really want to maintain this feature?
26999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27000 ac_sed_extra="$ac_vpsub
27001 $extrasub
27002 _ACEOF
27003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27005 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27006 s|@configure_input@|$ac_sed_conf_input|;t t
27007 s&@top_builddir@&$ac_top_builddir_sub&;t t
27008 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27009 s&@srcdir@&$ac_srcdir&;t t
27010 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27011 s&@top_srcdir@&$ac_top_srcdir&;t t
27012 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27013 s&@builddir@&$ac_builddir&;t t
27014 s&@abs_builddir@&$ac_abs_builddir&;t t
27015 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27016 s&@INSTALL@&$ac_INSTALL&;t t
27017 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27018 $ac_datarootdir_hack
27020 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27021 if $ac_cs_awk_getline; then
27022 $AWK -f "$tmp/subs.awk"
27023 else
27024 $AWK -f "$tmp/subs.awk" | $SHELL
27025 fi >$tmp/out \
27026 || as_fn_error "could not create $ac_file" "$LINENO" 5
27028 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27029 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27030 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27032 which seems to be undefined. Please make sure it is defined." >&5
27033 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27034 which seems to be undefined. Please make sure it is defined." >&2;}
27036 rm -f "$tmp/stdin"
27037 case $ac_file in
27038 -) cat "$tmp/out" && rm -f "$tmp/out";;
27039 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27040 esac \
27041 || as_fn_error "could not create $ac_file" "$LINENO" 5
27045 # CONFIG_HEADER
27047 if test x"$ac_file" != x-; then
27049 $as_echo "/* $configure_input */" \
27050 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27051 } >"$tmp/config.h" \
27052 || as_fn_error "could not create $ac_file" "$LINENO" 5
27053 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27054 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27055 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27056 else
27057 rm -f "$ac_file"
27058 mv "$tmp/config.h" "$ac_file" \
27059 || as_fn_error "could not create $ac_file" "$LINENO" 5
27061 else
27062 $as_echo "/* $configure_input */" \
27063 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27064 || as_fn_error "could not create -" "$LINENO" 5
27066 # Compute "$ac_file"'s index in $config_headers.
27067 _am_arg="$ac_file"
27068 _am_stamp_count=1
27069 for _am_header in $config_headers :; do
27070 case $_am_header in
27071 $_am_arg | $_am_arg:* )
27072 break ;;
27074 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27075 esac
27076 done
27077 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27078 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27079 X"$_am_arg" : 'X\(//\)[^/]' \| \
27080 X"$_am_arg" : 'X\(//\)$' \| \
27081 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27082 $as_echo X"$_am_arg" |
27083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27084 s//\1/
27087 /^X\(\/\/\)[^/].*/{
27088 s//\1/
27091 /^X\(\/\/\)$/{
27092 s//\1/
27095 /^X\(\/\).*/{
27096 s//\1/
27099 s/.*/./; q'`/stamp-h$_am_stamp_count
27102 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27103 $as_echo "$as_me: executing $ac_file commands" >&6;}
27105 esac
27108 case $ac_file$ac_mode in
27109 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27110 # Autoconf 2.62 quotes --file arguments for eval, but not when files
27111 # are listed without --file. Let's play safe and only enable the eval
27112 # if we detect the quoting.
27113 case $CONFIG_FILES in
27114 *\'*) eval set x "$CONFIG_FILES" ;;
27115 *) set x $CONFIG_FILES ;;
27116 esac
27117 shift
27118 for mf
27120 # Strip MF so we end up with the name of the file.
27121 mf=`echo "$mf" | sed -e 's/:.*$//'`
27122 # Check whether this is an Automake generated Makefile or not.
27123 # We used to match only the files named `Makefile.in', but
27124 # some people rename them; so instead we look at the file content.
27125 # Grep'ing the first line is not enough: some people post-process
27126 # each Makefile.in and add a new line on top of each file to say so.
27127 # Grep'ing the whole file is not good either: AIX grep has a line
27128 # limit of 2048, but all sed's we know have understand at least 4000.
27129 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27130 dirpart=`$as_dirname -- "$mf" ||
27131 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27132 X"$mf" : 'X\(//\)[^/]' \| \
27133 X"$mf" : 'X\(//\)$' \| \
27134 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27135 $as_echo X"$mf" |
27136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27137 s//\1/
27140 /^X\(\/\/\)[^/].*/{
27141 s//\1/
27144 /^X\(\/\/\)$/{
27145 s//\1/
27148 /^X\(\/\).*/{
27149 s//\1/
27152 s/.*/./; q'`
27153 else
27154 continue
27156 # Extract the definition of DEPDIR, am__include, and am__quote
27157 # from the Makefile without running `make'.
27158 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27159 test -z "$DEPDIR" && continue
27160 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27161 test -z "am__include" && continue
27162 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27163 # When using ansi2knr, U may be empty or an underscore; expand it
27164 U=`sed -n 's/^U = //p' < "$mf"`
27165 # Find all dependency output files, they are included files with
27166 # $(DEPDIR) in their names. We invoke sed twice because it is the
27167 # simplest approach to changing $(DEPDIR) to its actual value in the
27168 # expansion.
27169 for file in `sed -n "
27170 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27171 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27172 # Make sure the directory exists.
27173 test -f "$dirpart/$file" && continue
27174 fdir=`$as_dirname -- "$file" ||
27175 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27176 X"$file" : 'X\(//\)[^/]' \| \
27177 X"$file" : 'X\(//\)$' \| \
27178 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27179 $as_echo X"$file" |
27180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27181 s//\1/
27184 /^X\(\/\/\)[^/].*/{
27185 s//\1/
27188 /^X\(\/\/\)$/{
27189 s//\1/
27192 /^X\(\/\).*/{
27193 s//\1/
27196 s/.*/./; q'`
27197 as_dir=$dirpart/$fdir; as_fn_mkdir_p
27198 # echo "creating $dirpart/$file"
27199 echo '# dummy' > "$dirpart/$file"
27200 done
27201 done
27204 "mkdirs":C)
27205 for dir in etc lisp ; do
27206 test -d ${dir} || mkdir ${dir}
27207 done
27209 "epaths":C)
27210 echo creating src/epaths.h
27211 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force
27213 "gdbinit":C)
27214 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
27215 echo creating src/.gdbinit
27216 echo source $srcdir/src/.gdbinit > src/.gdbinit
27220 esac
27221 done # for ac_tag
27224 as_fn_exit 0
27225 _ACEOF
27226 ac_clean_files=$ac_clean_files_save
27228 test $ac_write_fail = 0 ||
27229 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27232 # configure is writing to config.log, and then calls config.status.
27233 # config.status does its own redirection, appending to config.log.
27234 # Unfortunately, on DOS this fails, as config.log is still kept open
27235 # by configure, so config.status won't be able to write to it; its
27236 # output is simply discarded. So we exec the FD to /dev/null,
27237 # effectively closing config.log, so it can be properly (re)opened and
27238 # appended to by config.status. When coming back to configure, we
27239 # need to make the FD available again.
27240 if test "$no_create" != yes; then
27241 ac_cs_success=:
27242 ac_config_status_args=
27243 test "$silent" = yes &&
27244 ac_config_status_args="$ac_config_status_args --quiet"
27245 exec 5>/dev/null
27246 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27247 exec 5>>config.log
27248 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27249 # would make configure fail if this is the last instruction.
27250 $ac_cs_success || as_fn_exit $?
27252 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27254 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}