Added install instructions using MSYS.
[emacs.git] / autogen / configure
blobcc0e18b7d8f6cc36b2ffe810a8f02c480f743db6
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 LD_SWITCH_SYSTEM_TEMACS
609 LIBGNU_LTLIBDEPS
610 LIBGNU_LIBDEPS
611 gltests_WITNESS
612 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
613 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
614 gl_GNULIB_ENABLED_verify_FALSE
615 gl_GNULIB_ENABLED_verify_TRUE
616 gl_GNULIB_ENABLED_strtoull_FALSE
617 gl_GNULIB_ENABLED_strtoull_TRUE
618 gl_GNULIB_ENABLED_strtoll_FALSE
619 gl_GNULIB_ENABLED_strtoll_TRUE
620 gl_GNULIB_ENABLED_stat_FALSE
621 gl_GNULIB_ENABLED_stat_TRUE
622 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
623 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
624 gl_GNULIB_ENABLED_pathmax_FALSE
625 gl_GNULIB_ENABLED_pathmax_TRUE
626 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
627 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_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 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
639 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
640 LTLIBINTL
641 LIBINTL
642 LIB_EACCESS
643 WINDOWS_64_BIT_OFF_T
644 HAVE_UNISTD_H
645 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
646 NEXT_UNISTD_H
647 LIB_TIMER_TIME
648 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
649 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
650 TIME_H_DEFINES_STRUCT_TIMESPEC
651 NEXT_AS_FIRST_DIRECTIVE_TIME_H
652 NEXT_TIME_H
653 WINDOWS_64_BIT_ST_SIZE
654 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
655 NEXT_SYS_STAT_H
656 NEXT_AS_FIRST_DIRECTIVE_STRING_H
657 NEXT_STRING_H
658 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
659 NEXT_STDLIB_H
660 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
661 NEXT_STDIO_H
662 REPLACE_VSPRINTF
663 REPLACE_VSNPRINTF
664 REPLACE_VPRINTF
665 REPLACE_VFPRINTF
666 REPLACE_VDPRINTF
667 REPLACE_VASPRINTF
668 REPLACE_TMPFILE
669 REPLACE_STDIO_WRITE_FUNCS
670 REPLACE_STDIO_READ_FUNCS
671 REPLACE_SPRINTF
672 REPLACE_SNPRINTF
673 REPLACE_RENAMEAT
674 REPLACE_RENAME
675 REPLACE_REMOVE
676 REPLACE_PRINTF
677 REPLACE_POPEN
678 REPLACE_PERROR
679 REPLACE_OBSTACK_PRINTF
680 REPLACE_GETLINE
681 REPLACE_GETDELIM
682 REPLACE_FTELLO
683 REPLACE_FTELL
684 REPLACE_FSEEKO
685 REPLACE_FSEEK
686 REPLACE_FREOPEN
687 REPLACE_FPURGE
688 REPLACE_FPRINTF
689 REPLACE_FOPEN
690 REPLACE_FFLUSH
691 REPLACE_FDOPEN
692 REPLACE_FCLOSE
693 REPLACE_DPRINTF
694 HAVE_VDPRINTF
695 HAVE_VASPRINTF
696 HAVE_RENAMEAT
697 HAVE_POPEN
698 HAVE_PCLOSE
699 HAVE_FTELLO
700 HAVE_FSEEKO
701 HAVE_DPRINTF
702 HAVE_DECL_VSNPRINTF
703 HAVE_DECL_SNPRINTF
704 HAVE_DECL_OBSTACK_PRINTF
705 HAVE_DECL_GETLINE
706 HAVE_DECL_GETDELIM
707 HAVE_DECL_FTELLO
708 HAVE_DECL_FSEEKO
709 HAVE_DECL_FPURGE
710 GNULIB_VSPRINTF_POSIX
711 GNULIB_VSNPRINTF
712 GNULIB_VPRINTF_POSIX
713 GNULIB_VPRINTF
714 GNULIB_VFPRINTF_POSIX
715 GNULIB_VFPRINTF
716 GNULIB_VDPRINTF
717 GNULIB_VSCANF
718 GNULIB_VFSCANF
719 GNULIB_VASPRINTF
720 GNULIB_TMPFILE
721 GNULIB_STDIO_H_SIGPIPE
722 GNULIB_STDIO_H_NONBLOCKING
723 GNULIB_SPRINTF_POSIX
724 GNULIB_SNPRINTF
725 GNULIB_SCANF
726 GNULIB_RENAMEAT
727 GNULIB_RENAME
728 GNULIB_REMOVE
729 GNULIB_PUTS
730 GNULIB_PUTCHAR
731 GNULIB_PUTC
732 GNULIB_PRINTF_POSIX
733 GNULIB_PRINTF
734 GNULIB_POPEN
735 GNULIB_PERROR
736 GNULIB_PCLOSE
737 GNULIB_OBSTACK_PRINTF_POSIX
738 GNULIB_OBSTACK_PRINTF
739 GNULIB_GETLINE
740 GNULIB_GETDELIM
741 GNULIB_GETCHAR
742 GNULIB_GETC
743 GNULIB_FWRITE
744 GNULIB_FTELLO
745 GNULIB_FTELL
746 GNULIB_FSEEKO
747 GNULIB_FSEEK
748 GNULIB_FSCANF
749 GNULIB_FREOPEN
750 GNULIB_FREAD
751 GNULIB_FPUTS
752 GNULIB_FPUTC
753 GNULIB_FPURGE
754 GNULIB_FPRINTF_POSIX
755 GNULIB_FPRINTF
756 GNULIB_FOPEN
757 GNULIB_FGETS
758 GNULIB_FGETC
759 GNULIB_FFLUSH
760 GNULIB_FDOPEN
761 GNULIB_FCLOSE
762 GNULIB_DPRINTF
763 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
764 NEXT_STDDEF_H
765 GL_GENERATE_STDDEF_H_FALSE
766 GL_GENERATE_STDDEF_H_TRUE
767 STDDEF_H
768 HAVE_WCHAR_T
769 REPLACE_NULL
770 HAVE__BOOL
771 GL_GENERATE_STDBOOL_H_FALSE
772 GL_GENERATE_STDBOOL_H_TRUE
773 STDBOOL_H
774 GL_GENERATE_STDARG_H_FALSE
775 GL_GENERATE_STDARG_H_TRUE
776 STDARG_H
777 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
778 NEXT_STDARG_H
779 GL_GENERATE_STDALIGN_H_FALSE
780 GL_GENERATE_STDALIGN_H_TRUE
781 STDALIGN_H
782 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
783 NEXT_SIGNAL_H
784 LIB_PTHREAD_SIGMASK
785 REPLACE_RAISE
786 REPLACE_PTHREAD_SIGMASK
787 HAVE_SIGHANDLER_T
788 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
789 HAVE_STRUCT_SIGACTION_SA_SIGACTION
790 HAVE_SIGACTION
791 HAVE_SIGINFO_T
792 HAVE_SIGSET_T
793 HAVE_RAISE
794 HAVE_PTHREAD_SIGMASK
795 HAVE_POSIX_SIGNALBLOCKING
796 GNULIB_SIGACTION
797 GNULIB_SIGPROCMASK
798 GNULIB_SIGNAL_H_SIGPIPE
799 GNULIB_RAISE
800 GNULIB_PTHREAD_SIGMASK
801 HAVE_SYS_SELECT_H
802 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
803 NEXT_SYS_SELECT_H
804 REPLACE_SELECT
805 REPLACE_PSELECT
806 HAVE_PSELECT
807 GNULIB_SELECT
808 GNULIB_PSELECT
809 REPLACE_TIMEGM
810 REPLACE_NANOSLEEP
811 REPLACE_MKTIME
812 REPLACE_LOCALTIME_R
813 HAVE_TIMEGM
814 HAVE_STRPTIME
815 HAVE_NANOSLEEP
816 HAVE_DECL_LOCALTIME_R
817 GNULIB_TIME_R
818 GNULIB_TIMEGM
819 GNULIB_STRPTIME
820 GNULIB_NANOSLEEP
821 GNULIB_MKTIME
822 UNDEFINE_STRTOK_R
823 REPLACE_STRTOK_R
824 REPLACE_STRSIGNAL
825 REPLACE_STRNLEN
826 REPLACE_STRNDUP
827 REPLACE_STRNCAT
828 REPLACE_STRERROR_R
829 REPLACE_STRERROR
830 REPLACE_STRCHRNUL
831 REPLACE_STRCASESTR
832 REPLACE_STRSTR
833 REPLACE_STRDUP
834 REPLACE_STPNCPY
835 REPLACE_MEMMEM
836 REPLACE_MEMCHR
837 HAVE_STRVERSCMP
838 HAVE_DECL_STRSIGNAL
839 HAVE_DECL_STRERROR_R
840 HAVE_DECL_STRTOK_R
841 HAVE_STRCASESTR
842 HAVE_STRSEP
843 HAVE_STRPBRK
844 HAVE_DECL_STRNLEN
845 HAVE_DECL_STRNDUP
846 HAVE_DECL_STRDUP
847 HAVE_STRCHRNUL
848 HAVE_STPNCPY
849 HAVE_STPCPY
850 HAVE_RAWMEMCHR
851 HAVE_DECL_MEMRCHR
852 HAVE_MEMPCPY
853 HAVE_DECL_MEMMEM
854 HAVE_MEMCHR
855 HAVE_FFSLL
856 HAVE_FFSL
857 HAVE_MBSLEN
858 GNULIB_STRVERSCMP
859 GNULIB_STRSIGNAL
860 GNULIB_STRERROR_R
861 GNULIB_STRERROR
862 GNULIB_MBSTOK_R
863 GNULIB_MBSSEP
864 GNULIB_MBSSPN
865 GNULIB_MBSPBRK
866 GNULIB_MBSCSPN
867 GNULIB_MBSCASESTR
868 GNULIB_MBSPCASECMP
869 GNULIB_MBSNCASECMP
870 GNULIB_MBSCASECMP
871 GNULIB_MBSSTR
872 GNULIB_MBSRCHR
873 GNULIB_MBSCHR
874 GNULIB_MBSNLEN
875 GNULIB_MBSLEN
876 GNULIB_STRTOK_R
877 GNULIB_STRCASESTR
878 GNULIB_STRSTR
879 GNULIB_STRSEP
880 GNULIB_STRPBRK
881 GNULIB_STRNLEN
882 GNULIB_STRNDUP
883 GNULIB_STRNCAT
884 GNULIB_STRDUP
885 GNULIB_STRCHRNUL
886 GNULIB_STPNCPY
887 GNULIB_STPCPY
888 GNULIB_RAWMEMCHR
889 GNULIB_MEMRCHR
890 GNULIB_MEMPCPY
891 GNULIB_MEMMEM
892 GNULIB_MEMCHR
893 GNULIB_FFSLL
894 GNULIB_FFSL
895 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
896 NEXT_INTTYPES_H
897 UINT64_MAX_EQ_ULONG_MAX
898 UINT32_MAX_LT_UINTMAX_MAX
899 PRIPTR_PREFIX
900 PRI_MACROS_BROKEN
901 INT64_MAX_EQ_LONG_MAX
902 INT32_MAX_LT_INTMAX_MAX
903 REPLACE_STRTOIMAX
904 HAVE_DECL_STRTOUMAX
905 HAVE_DECL_STRTOIMAX
906 HAVE_DECL_IMAXDIV
907 HAVE_DECL_IMAXABS
908 GNULIB_STRTOUMAX
909 GNULIB_STRTOIMAX
910 GNULIB_IMAXDIV
911 GNULIB_IMAXABS
912 GL_GENERATE_STDINT_H_FALSE
913 GL_GENERATE_STDINT_H_TRUE
914 STDINT_H
915 WINT_T_SUFFIX
916 WCHAR_T_SUFFIX
917 SIG_ATOMIC_T_SUFFIX
918 SIZE_T_SUFFIX
919 PTRDIFF_T_SUFFIX
920 HAVE_SIGNED_WINT_T
921 HAVE_SIGNED_WCHAR_T
922 HAVE_SIGNED_SIG_ATOMIC_T
923 BITSIZEOF_WINT_T
924 BITSIZEOF_WCHAR_T
925 BITSIZEOF_SIG_ATOMIC_T
926 BITSIZEOF_SIZE_T
927 BITSIZEOF_PTRDIFF_T
928 APPLE_UNIVERSAL_BUILD
929 HAVE_SYS_BITYPES_H
930 HAVE_SYS_INTTYPES_H
931 HAVE_STDINT_H
932 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
933 NEXT_STDINT_H
934 HAVE_SYS_TYPES_H
935 HAVE_INTTYPES_H
936 HAVE_WCHAR_H
937 HAVE_UNSIGNED_LONG_LONG_INT
938 HAVE_LONG_LONG_INT
939 HAVE_WINSOCK2_H
940 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
941 NEXT_SYS_TIME_H
942 REPLACE_STRUCT_TIMEVAL
943 REPLACE_GETTIMEOFDAY
944 HAVE_SYS_TIME_H
945 HAVE_STRUCT_TIMEVAL
946 HAVE_GETTIMEOFDAY
947 GNULIB_GETTIMEOFDAY
948 GNULIB_GL_UNISTD_H_GETOPT
949 GETOPT_H
950 HAVE_GETOPT_H
951 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
952 NEXT_GETOPT_H
953 GETLOADAVG_LIBS
954 REPLACE_WCTOMB
955 REPLACE_UNSETENV
956 REPLACE_STRTOD
957 REPLACE_SETENV
958 REPLACE_REALPATH
959 REPLACE_REALLOC
960 REPLACE_RANDOM_R
961 REPLACE_PUTENV
962 REPLACE_PTSNAME_R
963 REPLACE_PTSNAME
964 REPLACE_MKSTEMP
965 REPLACE_MBTOWC
966 REPLACE_MALLOC
967 REPLACE_CANONICALIZE_FILE_NAME
968 REPLACE_CALLOC
969 HAVE_DECL_UNSETENV
970 HAVE_UNLOCKPT
971 HAVE_SYS_LOADAVG_H
972 HAVE_STRUCT_RANDOM_DATA
973 HAVE_STRTOULL
974 HAVE_STRTOLL
975 HAVE_STRTOD
976 HAVE_DECL_SETENV
977 HAVE_SETENV
978 HAVE_SECURE_GETENV
979 HAVE_RPMATCH
980 HAVE_REALPATH
981 HAVE_RANDOM_R
982 HAVE_RANDOM_H
983 HAVE_RANDOM
984 HAVE_PTSNAME_R
985 HAVE_PTSNAME
986 HAVE_POSIX_OPENPT
987 HAVE_MKSTEMPS
988 HAVE_MKSTEMP
989 HAVE_MKOSTEMPS
990 HAVE_MKOSTEMP
991 HAVE_MKDTEMP
992 HAVE_GRANTPT
993 HAVE_GETSUBOPT
994 HAVE_DECL_GETLOADAVG
995 HAVE_CANONICALIZE_FILE_NAME
996 HAVE_ATOLL
997 HAVE__EXIT
998 GNULIB_WCTOMB
999 GNULIB_UNSETENV
1000 GNULIB_UNLOCKPT
1001 GNULIB_SYSTEM_POSIX
1002 GNULIB_STRTOULL
1003 GNULIB_STRTOLL
1004 GNULIB_STRTOD
1005 GNULIB_SETENV
1006 GNULIB_SECURE_GETENV
1007 GNULIB_RPMATCH
1008 GNULIB_REALPATH
1009 GNULIB_REALLOC_POSIX
1010 GNULIB_RANDOM_R
1011 GNULIB_RANDOM
1012 GNULIB_PUTENV
1013 GNULIB_PTSNAME_R
1014 GNULIB_PTSNAME
1015 GNULIB_POSIX_OPENPT
1016 GNULIB_MKSTEMPS
1017 GNULIB_MKSTEMP
1018 GNULIB_MKOSTEMPS
1019 GNULIB_MKOSTEMP
1020 GNULIB_MKDTEMP
1021 GNULIB_MBTOWC
1022 GNULIB_MALLOC_POSIX
1023 GNULIB_GRANTPT
1024 GNULIB_GETSUBOPT
1025 GNULIB_GETLOADAVG
1026 GNULIB_CANONICALIZE_FILE_NAME
1027 GNULIB_CALLOC_POSIX
1028 GNULIB_ATOLL
1029 GNULIB__EXIT
1030 REPLACE_UTIMENSAT
1031 REPLACE_STAT
1032 REPLACE_MKNOD
1033 REPLACE_MKFIFO
1034 REPLACE_MKDIR
1035 REPLACE_LSTAT
1036 REPLACE_FUTIMENS
1037 REPLACE_FSTATAT
1038 REPLACE_FSTAT
1039 HAVE_UTIMENSAT
1040 HAVE_MKNODAT
1041 HAVE_MKNOD
1042 HAVE_MKFIFOAT
1043 HAVE_MKFIFO
1044 HAVE_MKDIRAT
1045 HAVE_LSTAT
1046 HAVE_LCHMOD
1047 HAVE_FUTIMENS
1048 HAVE_FSTATAT
1049 HAVE_FCHMODAT
1050 GNULIB_UTIMENSAT
1051 GNULIB_STAT
1052 GNULIB_MKNODAT
1053 GNULIB_MKNOD
1054 GNULIB_MKFIFOAT
1055 GNULIB_MKFIFO
1056 GNULIB_MKDIRAT
1057 GNULIB_LSTAT
1058 GNULIB_LCHMOD
1059 GNULIB_FUTIMENS
1060 GNULIB_FSTATAT
1061 GNULIB_FSTAT
1062 GNULIB_FCHMODAT
1063 LIB_FDATASYNC
1064 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1065 NEXT_FCNTL_H
1066 REPLACE_OPENAT
1067 REPLACE_OPEN
1068 REPLACE_FCNTL
1069 HAVE_OPENAT
1070 HAVE_FCNTL
1071 GNULIB_OPENAT
1072 GNULIB_OPEN
1073 GNULIB_NONBLOCKING
1074 GNULIB_FCNTL
1075 GL_GENERATE_EXECINFO_H_FALSE
1076 GL_GENERATE_EXECINFO_H_TRUE
1077 LIB_EXECINFO
1078 EXECINFO_H
1079 HAVE_DIRENT_H
1080 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1081 NEXT_DIRENT_H
1082 PRAGMA_COLUMNS
1083 PRAGMA_SYSTEM_HEADER
1084 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1085 INCLUDE_NEXT
1086 REPLACE_FDOPENDIR
1087 REPLACE_DIRFD
1088 REPLACE_CLOSEDIR
1089 REPLACE_OPENDIR
1090 HAVE_ALPHASORT
1091 HAVE_SCANDIR
1092 HAVE_FDOPENDIR
1093 HAVE_DECL_FDOPENDIR
1094 HAVE_DECL_DIRFD
1095 HAVE_CLOSEDIR
1096 HAVE_REWINDDIR
1097 HAVE_READDIR
1098 HAVE_OPENDIR
1099 GNULIB_ALPHASORT
1100 GNULIB_SCANDIR
1101 GNULIB_FDOPENDIR
1102 GNULIB_DIRFD
1103 GNULIB_CLOSEDIR
1104 GNULIB_REWINDDIR
1105 GNULIB_READDIR
1106 GNULIB_OPENDIR
1107 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1108 UNISTD_H_HAVE_WINSOCK2_H
1109 REPLACE_WRITE
1110 REPLACE_USLEEP
1111 REPLACE_UNLINKAT
1112 REPLACE_UNLINK
1113 REPLACE_TTYNAME_R
1114 REPLACE_SYMLINK
1115 REPLACE_SLEEP
1116 REPLACE_RMDIR
1117 REPLACE_READLINK
1118 REPLACE_READ
1119 REPLACE_PWRITE
1120 REPLACE_PREAD
1121 REPLACE_LSEEK
1122 REPLACE_LINKAT
1123 REPLACE_LINK
1124 REPLACE_LCHOWN
1125 REPLACE_ISATTY
1126 REPLACE_GETPAGESIZE
1127 REPLACE_GETGROUPS
1128 REPLACE_GETLOGIN_R
1129 REPLACE_GETDOMAINNAME
1130 REPLACE_GETCWD
1131 REPLACE_FTRUNCATE
1132 REPLACE_FCHOWNAT
1133 REPLACE_DUP2
1134 REPLACE_DUP
1135 REPLACE_CLOSE
1136 REPLACE_CHOWN
1137 HAVE_SYS_PARAM_H
1138 HAVE_OS_H
1139 HAVE_DECL_TTYNAME_R
1140 HAVE_DECL_SETHOSTNAME
1141 HAVE_DECL_GETUSERSHELL
1142 HAVE_DECL_GETPAGESIZE
1143 HAVE_DECL_GETLOGIN_R
1144 HAVE_DECL_GETDOMAINNAME
1145 HAVE_DECL_FDATASYNC
1146 HAVE_DECL_FCHDIR
1147 HAVE_DECL_ENVIRON
1148 HAVE_USLEEP
1149 HAVE_UNLINKAT
1150 HAVE_SYMLINKAT
1151 HAVE_SYMLINK
1152 HAVE_SLEEP
1153 HAVE_SETHOSTNAME
1154 HAVE_READLINKAT
1155 HAVE_READLINK
1156 HAVE_PWRITE
1157 HAVE_PREAD
1158 HAVE_PIPE2
1159 HAVE_PIPE
1160 HAVE_LINKAT
1161 HAVE_LINK
1162 HAVE_LCHOWN
1163 HAVE_GROUP_MEMBER
1164 HAVE_GETPAGESIZE
1165 HAVE_GETLOGIN
1166 HAVE_GETHOSTNAME
1167 HAVE_GETGROUPS
1168 HAVE_GETDTABLESIZE
1169 HAVE_FTRUNCATE
1170 HAVE_FSYNC
1171 HAVE_FDATASYNC
1172 HAVE_FCHOWNAT
1173 HAVE_FCHDIR
1174 HAVE_FACCESSAT
1175 HAVE_EUIDACCESS
1176 HAVE_DUP3
1177 HAVE_DUP2
1178 HAVE_CHOWN
1179 GNULIB_WRITE
1180 GNULIB_USLEEP
1181 GNULIB_UNLINKAT
1182 GNULIB_UNLINK
1183 GNULIB_UNISTD_H_SIGPIPE
1184 GNULIB_UNISTD_H_NONBLOCKING
1185 GNULIB_TTYNAME_R
1186 GNULIB_SYMLINKAT
1187 GNULIB_SYMLINK
1188 GNULIB_SLEEP
1189 GNULIB_SETHOSTNAME
1190 GNULIB_RMDIR
1191 GNULIB_READLINKAT
1192 GNULIB_READLINK
1193 GNULIB_READ
1194 GNULIB_PWRITE
1195 GNULIB_PREAD
1196 GNULIB_PIPE2
1197 GNULIB_PIPE
1198 GNULIB_LSEEK
1199 GNULIB_LINKAT
1200 GNULIB_LINK
1201 GNULIB_LCHOWN
1202 GNULIB_ISATTY
1203 GNULIB_GROUP_MEMBER
1204 GNULIB_GETUSERSHELL
1205 GNULIB_GETPAGESIZE
1206 GNULIB_GETLOGIN_R
1207 GNULIB_GETLOGIN
1208 GNULIB_GETHOSTNAME
1209 GNULIB_GETGROUPS
1210 GNULIB_GETDTABLESIZE
1211 GNULIB_GETDOMAINNAME
1212 GNULIB_GETCWD
1213 GNULIB_FTRUNCATE
1214 GNULIB_FSYNC
1215 GNULIB_FDATASYNC
1216 GNULIB_FCHOWNAT
1217 GNULIB_FCHDIR
1218 GNULIB_FACCESSAT
1219 GNULIB_EUIDACCESS
1220 GNULIB_ENVIRON
1221 GNULIB_DUP3
1222 GNULIB_DUP2
1223 GNULIB_DUP
1224 GNULIB_CLOSE
1225 GNULIB_CHOWN
1226 GNULIB_CHDIR
1227 LIB_CLOCK_GETTIME
1228 GL_GENERATE_ALLOCA_H_FALSE
1229 GL_GENERATE_ALLOCA_H_TRUE
1230 ALLOCA_H
1231 ALLOCA
1232 GL_COND_LIBTOOL_FALSE
1233 GL_COND_LIBTOOL_TRUE
1234 POST_ALLOC_OBJ
1235 PRE_ALLOC_OBJ
1236 CYGWIN_OBJ
1237 RALLOC_OBJ
1238 OLDXMENU_DEPS
1239 LIBX_OTHER
1240 LIBXMENU
1241 OLDXMENU
1242 OLDXMENU_TARGET
1243 LIBXT_OTHER
1244 TOOLKIT_LIBW
1245 WIDGET_OBJ
1246 XOBJ
1247 XMENU_OBJ
1248 FONT_OBJ
1249 OTHER_FILES
1250 GNU_OBJC_CFLAGS
1251 ns_appsrc
1252 ns_appresdir
1253 ns_appbindir
1254 ns_appdir
1255 X_TOOLKIT_TYPE
1256 GNUSTEP_CFLAGS
1257 C_SWITCH_X_SITE
1258 LD_SWITCH_X_SITE
1259 gameuser
1260 gamedir
1261 bitmapdir
1262 archlibdir
1263 etcdir
1264 x_default_search_path
1265 lisppath
1266 locallisppath
1267 standardlisppath
1268 leimdir
1269 lispdir
1270 srcdir
1271 canonical
1272 configuration
1273 version
1274 copyright
1275 KRB4LIB
1276 DESLIB
1277 KRB5LIB
1278 CRYPTOLIB
1279 COM_ERRLIB
1280 LIBRESOLV
1281 LIBHESIOD
1282 TERMCAP_OBJ
1283 LIBS_TERMCAP
1284 BLESSMAIL_TARGET
1285 LIBS_MAIL
1286 liblockfile
1287 LIBXML2_LIBS
1288 LIBXML2_CFLAGS
1289 LIBXSM
1290 LIBGPM
1291 LIBGIF
1292 LIBTIFF
1293 LIBPNG
1294 LIBJPEG
1295 LIBXPM
1296 M17N_FLT_LIBS
1297 M17N_FLT_CFLAGS
1298 LIBOTF_LIBS
1299 LIBOTF_CFLAGS
1300 FREETYPE_LIBS
1301 FREETYPE_CFLAGS
1302 XFT_LIBS
1303 XFT_CFLAGS
1304 FONTCONFIG_LIBS
1305 FONTCONFIG_CFLAGS
1306 LIBXMU
1307 LIBXTR6
1308 LIBACL_LIBS
1309 LIBGNUTLS_LIBS
1310 LIBGNUTLS_CFLAGS
1311 LIBSELINUX_LIBS
1312 SETTINGS_LIBS
1313 SETTINGS_CFLAGS
1314 GOBJECT_LIBS
1315 GOBJECT_CFLAGS
1316 GCONF_LIBS
1317 GCONF_CFLAGS
1318 GSETTINGS_LIBS
1319 GSETTINGS_CFLAGS
1320 DBUS_OBJ
1321 DBUS_LIBS
1322 DBUS_CFLAGS
1323 GTK_OBJ
1324 GTK_LIBS
1325 GTK_CFLAGS
1326 IMAGEMAGICK_LIBS
1327 IMAGEMAGICK_CFLAGS
1328 RSVG_LIBS
1329 RSVG_CFLAGS
1330 LIB_PTHREAD
1331 VMLIMIT_OBJ
1332 GMALLOC_OBJ
1333 HAVE_XSERVER
1334 W32_RES_LINK
1335 W32_RES
1336 W32_LIBS
1337 W32_OBJ
1338 WINDRES
1339 NS_OBJC_OBJ
1340 NS_OBJ
1341 ns_self_contained
1342 INSTALL_ARCH_INDEP_EXTRA
1343 LIBS_GNUSTEP
1344 LD_SWITCH_X_SITE_RPATH
1345 XMKMF
1346 DEPFLAGS
1347 MKDEPDIR
1348 CFLAGS_SOUND
1349 ALSA_LIBS
1350 ALSA_CFLAGS
1351 LIBSOUND
1352 PKG_CONFIG
1353 LIB_MATH
1354 LIBS_SYSTEM
1355 C_SWITCH_SYSTEM
1356 UNEXEC_OBJ
1357 C_SWITCH_MACHINE
1358 LD_SWITCH_SYSTEM
1359 CANNOT_DUMP
1360 INFO_OPTS
1361 INFO_EXT
1362 HAVE_MAKEINFO
1363 PAXCTL
1364 GZIP_PROG
1365 INSTALL_INFO
1366 LN_S
1367 GNULIB_WARN_CFLAGS
1368 WARN_CFLAGS
1369 WERROR_CFLAGS
1370 RANLIB
1371 ARFLAGS
1373 EGREP
1374 GREP
1376 am__fastdepCC_FALSE
1377 am__fastdepCC_TRUE
1378 CCDEPMODE
1379 AMDEPBACKSLASH
1380 AMDEP_FALSE
1381 AMDEP_TRUE
1382 am__quote
1383 am__include
1384 DEPDIR
1385 OBJEXT
1386 EXEEXT
1387 ac_ct_CC
1388 CPPFLAGS
1389 LDFLAGS
1390 CFLAGS
1392 host_os
1393 host_vendor
1394 host_cpu
1395 host
1396 build_os
1397 build_vendor
1398 build_cpu
1399 build
1400 PROFILING_CFLAGS
1401 GZIP_INFO
1402 cache_file
1403 am__untar
1404 am__tar
1405 AMTAR
1406 am__leading_dot
1407 SET_MAKE
1409 mkdir_p
1410 MKDIR_P
1411 INSTALL_STRIP_PROGRAM
1412 STRIP
1413 install_sh
1414 MAKEINFO
1415 AUTOHEADER
1416 AUTOMAKE
1417 AUTOCONF
1418 ACLOCAL
1419 VERSION
1420 PACKAGE
1421 CYGPATH_W
1422 am__isrc
1423 INSTALL_DATA
1424 INSTALL_SCRIPT
1425 INSTALL_PROGRAM
1426 target_alias
1427 host_alias
1428 build_alias
1429 LIBS
1430 ECHO_T
1431 ECHO_N
1432 ECHO_C
1433 DEFS
1434 mandir
1435 localedir
1436 libdir
1437 psdir
1438 pdfdir
1439 dvidir
1440 htmldir
1441 infodir
1442 docdir
1443 oldincludedir
1444 includedir
1445 localstatedir
1446 sharedstatedir
1447 sysconfdir
1448 datadir
1449 datarootdir
1450 libexecdir
1451 sbindir
1452 bindir
1453 program_transform_name
1454 prefix
1455 exec_prefix
1456 PACKAGE_URL
1457 PACKAGE_BUGREPORT
1458 PACKAGE_STRING
1459 PACKAGE_VERSION
1460 PACKAGE_TARNAME
1461 PACKAGE_NAME
1462 PATH_SEPARATOR
1463 SHELL'
1464 ac_subst_files='deps_frag
1465 lisp_frag'
1466 ac_user_opts='
1467 enable_option_checking
1468 with_all
1469 with_pop
1470 with_kerberos
1471 with_kerberos5
1472 with_hesiod
1473 with_mmdf
1474 with_mail_unlink
1475 with_mailhost
1476 with_sound
1477 with_x_toolkit
1478 with_wide_int
1479 with_xpm
1480 with_jpeg
1481 with_tiff
1482 with_gif
1483 with_png
1484 with_rsvg
1485 with_xml2
1486 with_imagemagick
1487 with_xft
1488 with_libotf
1489 with_m17n_flt
1490 with_toolkit_scroll_bars
1491 with_xaw3d
1492 with_xim
1493 with_ns
1494 with_w32
1495 with_gpm
1496 with_dbus
1497 with_gconf
1498 with_gsettings
1499 with_selinux
1500 with_acl
1501 with_gnutls
1502 with_inotify
1503 with_makeinfo
1504 with_compress_info
1505 with_pkg_config_prog
1506 with_gameuser
1507 with_gnustep_conf
1508 enable_ns_self_contained
1509 enable_locallisppath
1510 enable_checking
1511 enable_check_lisp_object_type
1512 enable_profiling
1513 enable_autodepend
1514 enable_gtk_deprecation_warnings
1515 enable_dependency_tracking
1516 enable_largefile
1517 enable_gcc_warnings
1518 enable_link_time_optimization
1519 with_x
1521 ac_precious_vars='build_alias
1522 host_alias
1523 target_alias
1525 CFLAGS
1526 LDFLAGS
1527 LIBS
1528 CPPFLAGS
1530 XMKMF'
1533 # Initialize some variables set by options.
1534 ac_init_help=
1535 ac_init_version=false
1536 ac_unrecognized_opts=
1537 ac_unrecognized_sep=
1538 # The variables have the same names as the options, with
1539 # dashes changed to underlines.
1540 cache_file=/dev/null
1541 exec_prefix=NONE
1542 no_create=
1543 no_recursion=
1544 prefix=NONE
1545 program_prefix=NONE
1546 program_suffix=NONE
1547 program_transform_name=s,x,x,
1548 silent=
1549 site=
1550 srcdir=
1551 verbose=
1552 x_includes=NONE
1553 x_libraries=NONE
1555 # Installation directory options.
1556 # These are left unexpanded so users can "make install exec_prefix=/foo"
1557 # and all the variables that are supposed to be based on exec_prefix
1558 # by default will actually change.
1559 # Use braces instead of parens because sh, perl, etc. also accept them.
1560 # (The list follows the same order as the GNU Coding Standards.)
1561 bindir='${exec_prefix}/bin'
1562 sbindir='${exec_prefix}/sbin'
1563 libexecdir='${exec_prefix}/libexec'
1564 datarootdir='${prefix}/share'
1565 datadir='${datarootdir}'
1566 sysconfdir='${prefix}/etc'
1567 sharedstatedir='${prefix}/com'
1568 localstatedir='${prefix}/var'
1569 includedir='${prefix}/include'
1570 oldincludedir='/usr/include'
1571 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1572 infodir='${datarootdir}/info'
1573 htmldir='${docdir}'
1574 dvidir='${docdir}'
1575 pdfdir='${docdir}'
1576 psdir='${docdir}'
1577 libdir='${exec_prefix}/lib'
1578 localedir='${datarootdir}/locale'
1579 mandir='${datarootdir}/man'
1581 ac_prev=
1582 ac_dashdash=
1583 for ac_option
1585 # If the previous option needs an argument, assign it.
1586 if test -n "$ac_prev"; then
1587 eval $ac_prev=\$ac_option
1588 ac_prev=
1589 continue
1592 case $ac_option in
1593 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1594 *) ac_optarg=yes ;;
1595 esac
1597 # Accept the important Cygnus configure options, so we can diagnose typos.
1599 case $ac_dashdash$ac_option in
1601 ac_dashdash=yes ;;
1603 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1604 ac_prev=bindir ;;
1605 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1606 bindir=$ac_optarg ;;
1608 -build | --build | --buil | --bui | --bu)
1609 ac_prev=build_alias ;;
1610 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1611 build_alias=$ac_optarg ;;
1613 -cache-file | --cache-file | --cache-fil | --cache-fi \
1614 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1615 ac_prev=cache_file ;;
1616 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1617 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1618 cache_file=$ac_optarg ;;
1620 --config-cache | -C)
1621 cache_file=config.cache ;;
1623 -datadir | --datadir | --datadi | --datad)
1624 ac_prev=datadir ;;
1625 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1626 datadir=$ac_optarg ;;
1628 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1629 | --dataroo | --dataro | --datar)
1630 ac_prev=datarootdir ;;
1631 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1632 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1633 datarootdir=$ac_optarg ;;
1635 -disable-* | --disable-*)
1636 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1637 # Reject names that are not valid shell variable names.
1638 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1639 as_fn_error "invalid feature name: $ac_useropt"
1640 ac_useropt_orig=$ac_useropt
1641 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1642 case $ac_user_opts in
1644 "enable_$ac_useropt"
1645 "*) ;;
1646 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1647 ac_unrecognized_sep=', ';;
1648 esac
1649 eval enable_$ac_useropt=no ;;
1651 -docdir | --docdir | --docdi | --doc | --do)
1652 ac_prev=docdir ;;
1653 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1654 docdir=$ac_optarg ;;
1656 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1657 ac_prev=dvidir ;;
1658 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1659 dvidir=$ac_optarg ;;
1661 -enable-* | --enable-*)
1662 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1663 # Reject names that are not valid shell variable names.
1664 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1665 as_fn_error "invalid feature name: $ac_useropt"
1666 ac_useropt_orig=$ac_useropt
1667 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1668 case $ac_user_opts in
1670 "enable_$ac_useropt"
1671 "*) ;;
1672 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1673 ac_unrecognized_sep=', ';;
1674 esac
1675 eval enable_$ac_useropt=\$ac_optarg ;;
1677 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1678 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1679 | --exec | --exe | --ex)
1680 ac_prev=exec_prefix ;;
1681 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1682 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1683 | --exec=* | --exe=* | --ex=*)
1684 exec_prefix=$ac_optarg ;;
1686 -gas | --gas | --ga | --g)
1687 # Obsolete; use --with-gas.
1688 with_gas=yes ;;
1690 -help | --help | --hel | --he | -h)
1691 ac_init_help=long ;;
1692 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1693 ac_init_help=recursive ;;
1694 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1695 ac_init_help=short ;;
1697 -host | --host | --hos | --ho)
1698 ac_prev=host_alias ;;
1699 -host=* | --host=* | --hos=* | --ho=*)
1700 host_alias=$ac_optarg ;;
1702 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1703 ac_prev=htmldir ;;
1704 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1705 | --ht=*)
1706 htmldir=$ac_optarg ;;
1708 -includedir | --includedir | --includedi | --included | --include \
1709 | --includ | --inclu | --incl | --inc)
1710 ac_prev=includedir ;;
1711 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1712 | --includ=* | --inclu=* | --incl=* | --inc=*)
1713 includedir=$ac_optarg ;;
1715 -infodir | --infodir | --infodi | --infod | --info | --inf)
1716 ac_prev=infodir ;;
1717 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1718 infodir=$ac_optarg ;;
1720 -libdir | --libdir | --libdi | --libd)
1721 ac_prev=libdir ;;
1722 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1723 libdir=$ac_optarg ;;
1725 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1726 | --libexe | --libex | --libe)
1727 ac_prev=libexecdir ;;
1728 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1729 | --libexe=* | --libex=* | --libe=*)
1730 libexecdir=$ac_optarg ;;
1732 -localedir | --localedir | --localedi | --localed | --locale)
1733 ac_prev=localedir ;;
1734 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1735 localedir=$ac_optarg ;;
1737 -localstatedir | --localstatedir | --localstatedi | --localstated \
1738 | --localstate | --localstat | --localsta | --localst | --locals)
1739 ac_prev=localstatedir ;;
1740 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1741 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1742 localstatedir=$ac_optarg ;;
1744 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1745 ac_prev=mandir ;;
1746 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1747 mandir=$ac_optarg ;;
1749 -nfp | --nfp | --nf)
1750 # Obsolete; use --without-fp.
1751 with_fp=no ;;
1753 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1754 | --no-cr | --no-c | -n)
1755 no_create=yes ;;
1757 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1758 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1759 no_recursion=yes ;;
1761 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1762 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1763 | --oldin | --oldi | --old | --ol | --o)
1764 ac_prev=oldincludedir ;;
1765 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1766 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1767 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1768 oldincludedir=$ac_optarg ;;
1770 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1771 ac_prev=prefix ;;
1772 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1773 prefix=$ac_optarg ;;
1775 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1776 | --program-pre | --program-pr | --program-p)
1777 ac_prev=program_prefix ;;
1778 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1779 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1780 program_prefix=$ac_optarg ;;
1782 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1783 | --program-suf | --program-su | --program-s)
1784 ac_prev=program_suffix ;;
1785 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1786 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1787 program_suffix=$ac_optarg ;;
1789 -program-transform-name | --program-transform-name \
1790 | --program-transform-nam | --program-transform-na \
1791 | --program-transform-n | --program-transform- \
1792 | --program-transform | --program-transfor \
1793 | --program-transfo | --program-transf \
1794 | --program-trans | --program-tran \
1795 | --progr-tra | --program-tr | --program-t)
1796 ac_prev=program_transform_name ;;
1797 -program-transform-name=* | --program-transform-name=* \
1798 | --program-transform-nam=* | --program-transform-na=* \
1799 | --program-transform-n=* | --program-transform-=* \
1800 | --program-transform=* | --program-transfor=* \
1801 | --program-transfo=* | --program-transf=* \
1802 | --program-trans=* | --program-tran=* \
1803 | --progr-tra=* | --program-tr=* | --program-t=*)
1804 program_transform_name=$ac_optarg ;;
1806 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1807 ac_prev=pdfdir ;;
1808 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1809 pdfdir=$ac_optarg ;;
1811 -psdir | --psdir | --psdi | --psd | --ps)
1812 ac_prev=psdir ;;
1813 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1814 psdir=$ac_optarg ;;
1816 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1817 | -silent | --silent | --silen | --sile | --sil)
1818 silent=yes ;;
1820 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1821 ac_prev=sbindir ;;
1822 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1823 | --sbi=* | --sb=*)
1824 sbindir=$ac_optarg ;;
1826 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1827 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1828 | --sharedst | --shareds | --shared | --share | --shar \
1829 | --sha | --sh)
1830 ac_prev=sharedstatedir ;;
1831 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1832 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1833 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1834 | --sha=* | --sh=*)
1835 sharedstatedir=$ac_optarg ;;
1837 -site | --site | --sit)
1838 ac_prev=site ;;
1839 -site=* | --site=* | --sit=*)
1840 site=$ac_optarg ;;
1842 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1843 ac_prev=srcdir ;;
1844 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1845 srcdir=$ac_optarg ;;
1847 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1848 | --syscon | --sysco | --sysc | --sys | --sy)
1849 ac_prev=sysconfdir ;;
1850 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1851 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1852 sysconfdir=$ac_optarg ;;
1854 -target | --target | --targe | --targ | --tar | --ta | --t)
1855 ac_prev=target_alias ;;
1856 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1857 target_alias=$ac_optarg ;;
1859 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1860 verbose=yes ;;
1862 -version | --version | --versio | --versi | --vers | -V)
1863 ac_init_version=: ;;
1865 -with-* | --with-*)
1866 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1867 # Reject names that are not valid shell variable names.
1868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1869 as_fn_error "invalid package name: $ac_useropt"
1870 ac_useropt_orig=$ac_useropt
1871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1872 case $ac_user_opts in
1874 "with_$ac_useropt"
1875 "*) ;;
1876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1877 ac_unrecognized_sep=', ';;
1878 esac
1879 eval with_$ac_useropt=\$ac_optarg ;;
1881 -without-* | --without-*)
1882 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1883 # Reject names that are not valid shell variable names.
1884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1885 as_fn_error "invalid package name: $ac_useropt"
1886 ac_useropt_orig=$ac_useropt
1887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1888 case $ac_user_opts in
1890 "with_$ac_useropt"
1891 "*) ;;
1892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1893 ac_unrecognized_sep=', ';;
1894 esac
1895 eval with_$ac_useropt=no ;;
1897 --x)
1898 # Obsolete; use --with-x.
1899 with_x=yes ;;
1901 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1902 | --x-incl | --x-inc | --x-in | --x-i)
1903 ac_prev=x_includes ;;
1904 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1905 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1906 x_includes=$ac_optarg ;;
1908 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1909 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1910 ac_prev=x_libraries ;;
1911 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1912 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1913 x_libraries=$ac_optarg ;;
1915 -*) as_fn_error "unrecognized option: \`$ac_option'
1916 Try \`$0 --help' for more information."
1919 *=*)
1920 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1921 # Reject names that are not valid shell variable names.
1922 case $ac_envvar in #(
1923 '' | [0-9]* | *[!_$as_cr_alnum]* )
1924 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1925 esac
1926 eval $ac_envvar=\$ac_optarg
1927 export $ac_envvar ;;
1930 # FIXME: should be removed in autoconf 3.0.
1931 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1932 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1933 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1934 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1937 esac
1938 done
1940 if test -n "$ac_prev"; then
1941 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1942 as_fn_error "missing argument to $ac_option"
1945 if test -n "$ac_unrecognized_opts"; then
1946 case $enable_option_checking in
1947 no) ;;
1948 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1949 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1950 esac
1953 # Check all directory arguments for consistency.
1954 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1955 datadir sysconfdir sharedstatedir localstatedir includedir \
1956 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1957 libdir localedir mandir
1959 eval ac_val=\$$ac_var
1960 # Remove trailing slashes.
1961 case $ac_val in
1962 */ )
1963 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1964 eval $ac_var=\$ac_val;;
1965 esac
1966 # Be sure to have absolute directory names.
1967 case $ac_val in
1968 [\\/$]* | ?:[\\/]* ) continue;;
1969 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1970 esac
1971 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1972 done
1974 # There might be people who depend on the old broken behavior: `$host'
1975 # used to hold the argument of --host etc.
1976 # FIXME: To remove some day.
1977 build=$build_alias
1978 host=$host_alias
1979 target=$target_alias
1981 # FIXME: To remove some day.
1982 if test "x$host_alias" != x; then
1983 if test "x$build_alias" = x; then
1984 cross_compiling=maybe
1985 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1986 If a cross compiler is detected then cross compile mode will be used." >&2
1987 elif test "x$build_alias" != "x$host_alias"; then
1988 cross_compiling=yes
1992 ac_tool_prefix=
1993 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1995 test "$silent" = yes && exec 6>/dev/null
1998 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1999 ac_ls_di=`ls -di .` &&
2000 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2001 as_fn_error "working directory cannot be determined"
2002 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2003 as_fn_error "pwd does not report name of working directory"
2006 # Find the source files, if location was not specified.
2007 if test -z "$srcdir"; then
2008 ac_srcdir_defaulted=yes
2009 # Try the directory containing this script, then the parent directory.
2010 ac_confdir=`$as_dirname -- "$as_myself" ||
2011 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2012 X"$as_myself" : 'X\(//\)[^/]' \| \
2013 X"$as_myself" : 'X\(//\)$' \| \
2014 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2015 $as_echo X"$as_myself" |
2016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2017 s//\1/
2020 /^X\(\/\/\)[^/].*/{
2021 s//\1/
2024 /^X\(\/\/\)$/{
2025 s//\1/
2028 /^X\(\/\).*/{
2029 s//\1/
2032 s/.*/./; q'`
2033 srcdir=$ac_confdir
2034 if test ! -r "$srcdir/$ac_unique_file"; then
2035 srcdir=..
2037 else
2038 ac_srcdir_defaulted=no
2040 if test ! -r "$srcdir/$ac_unique_file"; then
2041 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2042 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
2044 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2045 ac_abs_confdir=`(
2046 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2047 pwd)`
2048 # When building in place, set srcdir=.
2049 if test "$ac_abs_confdir" = "$ac_pwd"; then
2050 srcdir=.
2052 # Remove unnecessary trailing slashes from srcdir.
2053 # Double slashes in file names in object file debugging info
2054 # mess up M-x gdb in Emacs.
2055 case $srcdir in
2056 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2057 esac
2058 for ac_var in $ac_precious_vars; do
2059 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2060 eval ac_env_${ac_var}_value=\$${ac_var}
2061 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2062 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2063 done
2066 # Report the --help message.
2068 if test "$ac_init_help" = "long"; then
2069 # Omit some internal or obsolete options to make the list less imposing.
2070 # This message is too long to be a string in the A/UX 3.1 sh.
2071 cat <<_ACEOF
2072 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
2074 Usage: $0 [OPTION]... [VAR=VALUE]...
2076 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2077 VAR=VALUE. See below for descriptions of some of the useful variables.
2079 Defaults for the options are specified in brackets.
2081 Configuration:
2082 -h, --help display this help and exit
2083 --help=short display options specific to this package
2084 --help=recursive display the short help of all the included packages
2085 -V, --version display version information and exit
2086 -q, --quiet, --silent do not print \`checking...' messages
2087 --cache-file=FILE cache test results in FILE [disabled]
2088 -C, --config-cache alias for \`--cache-file=config.cache'
2089 -n, --no-create do not create output files
2090 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2092 Installation directories:
2093 --prefix=PREFIX install architecture-independent files in PREFIX
2094 [$ac_default_prefix]
2095 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2096 [PREFIX]
2098 By default, \`make install' will install all the files in
2099 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2100 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2101 for instance \`--prefix=\$HOME'.
2103 For better control, use the options below.
2105 Fine tuning of the installation directories:
2106 --bindir=DIR user executables [EPREFIX/bin]
2107 --sbindir=DIR system admin executables [EPREFIX/sbin]
2108 --libexecdir=DIR program executables [EPREFIX/libexec]
2109 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2110 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2111 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2112 --libdir=DIR object code libraries [EPREFIX/lib]
2113 --includedir=DIR C header files [PREFIX/include]
2114 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2115 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2116 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2117 --infodir=DIR info documentation [DATAROOTDIR/info]
2118 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2119 --mandir=DIR man documentation [DATAROOTDIR/man]
2120 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2121 --htmldir=DIR html documentation [DOCDIR]
2122 --dvidir=DIR dvi documentation [DOCDIR]
2123 --pdfdir=DIR pdf documentation [DOCDIR]
2124 --psdir=DIR ps documentation [DOCDIR]
2125 _ACEOF
2127 cat <<\_ACEOF
2129 Program names:
2130 --program-prefix=PREFIX prepend PREFIX to installed program names
2131 --program-suffix=SUFFIX append SUFFIX to installed program names
2132 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2134 X features:
2135 --x-includes=DIR X include files are in DIR
2136 --x-libraries=DIR X library files are in DIR
2138 System types:
2139 --build=BUILD configure for building on BUILD [guessed]
2140 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2141 _ACEOF
2144 if test -n "$ac_init_help"; then
2145 case $ac_init_help in
2146 short | recursive ) echo "Configuration of emacs 24.3.50:";;
2147 esac
2148 cat <<\_ACEOF
2150 Optional Features:
2151 --disable-option-checking ignore unrecognized --enable/--with options
2152 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2153 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2154 --disable-ns-self-contained
2155 disable self contained build under NeXTstep
2156 --enable-locallisppath=PATH
2157 directories Emacs should search for lisp files
2158 specific to this site
2159 --enable-checking[=LIST]
2160 enable expensive run-time checks. With LIST, enable
2161 only specific categories of checks. Categories are:
2162 all,yes,no. Flags are: stringbytes, stringoverrun,
2163 stringfreelist, xmallocoverrun, conslist, glyphs
2164 --enable-check-lisp-object-type
2165 enable compile time checks for the Lisp_Object data
2166 type. This is useful for development for catching
2167 certain types of bugs.
2168 --enable-profiling build emacs with low-level, gprof profiling support.
2169 Mainly useful for debugging Emacs itself. May not
2170 work on all platforms. Stops profiler.el working.
2171 --enable-autodepend automatically generate dependencies to .h-files.
2172 Requires GNU Make and Gcc. Enabled if GNU Make and
2173 Gcc is found
2174 --enable-gtk-deprecation-warnings
2175 Show Gtk+/Gdk deprecation warnings for Gtk+ >= 3.0
2176 --disable-dependency-tracking speeds up one-time build
2177 --enable-dependency-tracking do not reject slow dependency extractors
2178 --disable-largefile omit support for large files
2179 --enable-gcc-warnings turn on lots of GCC warnings/errors. This is
2180 intended for developers, and may generate false
2181 alarms when used with older or non-GNU development
2182 tools.
2183 --enable-link-time-optimization
2184 build emacs with link-time optimization. This is
2185 supported only for GCC since 4.5.0.
2187 Optional Packages:
2188 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2189 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2190 --without-all omit almost all features and build small executable
2191 with minimal dependencies
2192 --without-pop don't support POP mail retrieval with movemail
2193 --with-kerberos support Kerberos-authenticated POP
2194 --with-kerberos5 support Kerberos version 5 authenticated POP
2195 --with-hesiod support Hesiod to get the POP server host
2196 --with-mmdf support MMDF mailboxes
2197 --with-mail-unlink unlink, rather than empty, mail spool after reading
2198 --with-mailhost=HOSTNAME
2199 string giving default POP mail host
2200 --without-sound don't compile with sound support
2201 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2,
2202 gtk3, lucid or athena, motif, no)
2203 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2204 --without-xpm don't compile with XPM image support
2205 --without-jpeg don't compile with JPEG image support
2206 --without-tiff don't compile with TIFF image support
2207 --without-gif don't compile with GIF image support
2208 --without-png don't compile with PNG image support
2209 --without-rsvg don't compile with SVG image support
2210 --without-xml2 don't compile with XML parsing support
2211 --without-imagemagick don't compile with ImageMagick image support
2212 --without-xft don't use XFT for anti aliased fonts
2213 --without-libotf don't use libotf for OpenType font support
2214 --without-m17n-flt don't use m17n-flt for text shaping
2215 --without-toolkit-scroll-bars
2216 don't use Motif or Xaw3d scroll bars
2217 --without-xaw3d don't use Xaw3d
2218 --without-xim don't use X11 XIM
2219 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2220 --with-w32 use native MS Windows GUI
2221 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2222 console
2223 --without-dbus don't compile with D-Bus support
2224 --without-gconf don't compile with GConf support
2225 --without-gsettings don't compile with GSettings support
2226 --without-selinux don't compile with SELinux support
2227 --without-acl don't compile with ACL support
2228 --without-gnutls don't use -lgnutls for SSL/TLS support
2229 --without-inotify don't compile with inotify (file-watch) support
2230 --without-makeinfo don't require makeinfo for building manuals
2231 --without-compress-info don't compress the installed Info pages
2232 --with-pkg-config-prog=FILENAME
2233 file name of pkg-config for finding GTK and librsvg
2234 --with-gameuser=USER user for shared game score files
2235 --with-gnustep-conf=FILENAME
2236 name of GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2237 or /etc/GNUstep/GNUstep.conf
2238 --with-x use the X Window System
2240 Some influential environment variables:
2241 CC C compiler command
2242 CFLAGS C compiler flags
2243 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2244 nonstandard directory <lib dir>
2245 LIBS libraries to pass to the linker, e.g. -l<library>
2246 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2247 you have headers in a nonstandard directory <include dir>
2248 CPP C preprocessor
2249 XMKMF Path to xmkmf, Makefile generator for X Window System
2251 Use these variables to override the choices made by `configure' or to help
2252 it to find libraries and programs with nonstandard names/locations.
2254 Report bugs to the package provider.
2255 _ACEOF
2256 ac_status=$?
2259 if test "$ac_init_help" = "recursive"; then
2260 # If there are subdirs, report their specific --help.
2261 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2262 test -d "$ac_dir" ||
2263 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2264 continue
2265 ac_builddir=.
2267 case "$ac_dir" in
2268 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2270 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2271 # A ".." for each directory in $ac_dir_suffix.
2272 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2273 case $ac_top_builddir_sub in
2274 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2275 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2276 esac ;;
2277 esac
2278 ac_abs_top_builddir=$ac_pwd
2279 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2280 # for backward compatibility:
2281 ac_top_builddir=$ac_top_build_prefix
2283 case $srcdir in
2284 .) # We are building in place.
2285 ac_srcdir=.
2286 ac_top_srcdir=$ac_top_builddir_sub
2287 ac_abs_top_srcdir=$ac_pwd ;;
2288 [\\/]* | ?:[\\/]* ) # Absolute name.
2289 ac_srcdir=$srcdir$ac_dir_suffix;
2290 ac_top_srcdir=$srcdir
2291 ac_abs_top_srcdir=$srcdir ;;
2292 *) # Relative name.
2293 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2294 ac_top_srcdir=$ac_top_build_prefix$srcdir
2295 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2296 esac
2297 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2299 cd "$ac_dir" || { ac_status=$?; continue; }
2300 # Check for guested configure.
2301 if test -f "$ac_srcdir/configure.gnu"; then
2302 echo &&
2303 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2304 elif test -f "$ac_srcdir/configure"; then
2305 echo &&
2306 $SHELL "$ac_srcdir/configure" --help=recursive
2307 else
2308 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2309 fi || ac_status=$?
2310 cd "$ac_pwd" || { ac_status=$?; break; }
2311 done
2314 test -n "$ac_init_help" && exit $ac_status
2315 if $ac_init_version; then
2316 cat <<\_ACEOF
2317 emacs configure 24.3.50
2318 generated by GNU Autoconf 2.65
2320 Copyright (C) 2009 Free Software Foundation, Inc.
2321 This configure script is free software; the Free Software Foundation
2322 gives unlimited permission to copy, distribute and modify it.
2323 _ACEOF
2324 exit
2327 ## ------------------------ ##
2328 ## Autoconf initialization. ##
2329 ## ------------------------ ##
2331 # ac_fn_c_try_compile LINENO
2332 # --------------------------
2333 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2334 ac_fn_c_try_compile ()
2336 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2337 rm -f conftest.$ac_objext
2338 if { { ac_try="$ac_compile"
2339 case "(($ac_try" in
2340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341 *) ac_try_echo=$ac_try;;
2342 esac
2343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2344 $as_echo "$ac_try_echo"; } >&5
2345 (eval "$ac_compile") 2>conftest.err
2346 ac_status=$?
2347 if test -s conftest.err; then
2348 grep -v '^ *+' conftest.err >conftest.er1
2349 cat conftest.er1 >&5
2350 mv -f conftest.er1 conftest.err
2352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2353 test $ac_status = 0; } && {
2354 test -z "$ac_c_werror_flag" ||
2355 test ! -s conftest.err
2356 } && test -s conftest.$ac_objext; then :
2357 ac_retval=0
2358 else
2359 $as_echo "$as_me: failed program was:" >&5
2360 sed 's/^/| /' conftest.$ac_ext >&5
2362 ac_retval=1
2364 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2365 as_fn_set_status $ac_retval
2367 } # ac_fn_c_try_compile
2369 # ac_fn_c_try_cpp LINENO
2370 # ----------------------
2371 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2372 ac_fn_c_try_cpp ()
2374 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2375 if { { ac_try="$ac_cpp conftest.$ac_ext"
2376 case "(($ac_try" in
2377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2378 *) ac_try_echo=$ac_try;;
2379 esac
2380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2381 $as_echo "$ac_try_echo"; } >&5
2382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2383 ac_status=$?
2384 if test -s conftest.err; then
2385 grep -v '^ *+' conftest.err >conftest.er1
2386 cat conftest.er1 >&5
2387 mv -f conftest.er1 conftest.err
2389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2390 test $ac_status = 0; } >/dev/null && {
2391 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2392 test ! -s conftest.err
2393 }; then :
2394 ac_retval=0
2395 else
2396 $as_echo "$as_me: failed program was:" >&5
2397 sed 's/^/| /' conftest.$ac_ext >&5
2399 ac_retval=1
2401 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2402 as_fn_set_status $ac_retval
2404 } # ac_fn_c_try_cpp
2406 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2407 # -------------------------------------------------------
2408 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2409 # the include files in INCLUDES and setting the cache variable VAR
2410 # accordingly.
2411 ac_fn_c_check_header_mongrel ()
2413 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2414 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2416 $as_echo_n "checking for $2... " >&6; }
2417 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2418 $as_echo_n "(cached) " >&6
2420 eval ac_res=\$$3
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2422 $as_echo "$ac_res" >&6; }
2423 else
2424 # Is the header compilable?
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2426 $as_echo_n "checking $2 usability... " >&6; }
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2430 #include <$2>
2431 _ACEOF
2432 if ac_fn_c_try_compile "$LINENO"; then :
2433 ac_header_compiler=yes
2434 else
2435 ac_header_compiler=no
2437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2439 $as_echo "$ac_header_compiler" >&6; }
2441 # Is the header present?
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2443 $as_echo_n "checking $2 presence... " >&6; }
2444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2445 /* end confdefs.h. */
2446 #include <$2>
2447 _ACEOF
2448 if ac_fn_c_try_cpp "$LINENO"; then :
2449 ac_header_preproc=yes
2450 else
2451 ac_header_preproc=no
2453 rm -f conftest.err conftest.$ac_ext
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2455 $as_echo "$ac_header_preproc" >&6; }
2457 # So? What about this header?
2458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2459 yes:no: )
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2461 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2463 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2465 no:yes:* )
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2467 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2469 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2471 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2473 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2475 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2477 esac
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2479 $as_echo_n "checking for $2... " >&6; }
2480 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2481 $as_echo_n "(cached) " >&6
2482 else
2483 eval "$3=\$ac_header_compiler"
2485 eval ac_res=\$$3
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2487 $as_echo "$ac_res" >&6; }
2489 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2491 } # ac_fn_c_check_header_mongrel
2493 # ac_fn_c_try_run LINENO
2494 # ----------------------
2495 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2496 # that executables *can* be run.
2497 ac_fn_c_try_run ()
2499 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2500 if { { ac_try="$ac_link"
2501 case "(($ac_try" in
2502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503 *) ac_try_echo=$ac_try;;
2504 esac
2505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2506 $as_echo "$ac_try_echo"; } >&5
2507 (eval "$ac_link") 2>&5
2508 ac_status=$?
2509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2510 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2511 { { case "(($ac_try" in
2512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513 *) ac_try_echo=$ac_try;;
2514 esac
2515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2516 $as_echo "$ac_try_echo"; } >&5
2517 (eval "$ac_try") 2>&5
2518 ac_status=$?
2519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2520 test $ac_status = 0; }; }; then :
2521 ac_retval=0
2522 else
2523 $as_echo "$as_me: program exited with status $ac_status" >&5
2524 $as_echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2527 ac_retval=$ac_status
2529 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2530 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2531 as_fn_set_status $ac_retval
2533 } # ac_fn_c_try_run
2535 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2536 # -------------------------------------------------------
2537 # Tests whether HEADER exists and can be compiled using the include files in
2538 # INCLUDES, setting the cache variable VAR accordingly.
2539 ac_fn_c_check_header_compile ()
2541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2543 $as_echo_n "checking for $2... " >&6; }
2544 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2545 $as_echo_n "(cached) " >&6
2546 else
2547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2548 /* end confdefs.h. */
2550 #include <$2>
2551 _ACEOF
2552 if ac_fn_c_try_compile "$LINENO"; then :
2553 eval "$3=yes"
2554 else
2555 eval "$3=no"
2557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2559 eval ac_res=\$$3
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2561 $as_echo "$ac_res" >&6; }
2562 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2564 } # ac_fn_c_check_header_compile
2566 # ac_fn_c_try_link LINENO
2567 # -----------------------
2568 # Try to link conftest.$ac_ext, and return whether this succeeded.
2569 ac_fn_c_try_link ()
2571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2572 rm -f conftest.$ac_objext conftest$ac_exeext
2573 if { { ac_try="$ac_link"
2574 case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2577 esac
2578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2579 $as_echo "$ac_try_echo"; } >&5
2580 (eval "$ac_link") 2>conftest.err
2581 ac_status=$?
2582 if test -s conftest.err; then
2583 grep -v '^ *+' conftest.err >conftest.er1
2584 cat conftest.er1 >&5
2585 mv -f conftest.er1 conftest.err
2587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2588 test $ac_status = 0; } && {
2589 test -z "$ac_c_werror_flag" ||
2590 test ! -s conftest.err
2591 } && test -s conftest$ac_exeext && {
2592 test "$cross_compiling" = yes ||
2593 $as_test_x conftest$ac_exeext
2594 }; then :
2595 ac_retval=0
2596 else
2597 $as_echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2600 ac_retval=1
2602 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2603 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2604 # interfere with the next link command; also delete a directory that is
2605 # left behind by Apple's compiler. We do this before executing the actions.
2606 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2607 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2608 as_fn_set_status $ac_retval
2610 } # ac_fn_c_try_link
2612 # ac_fn_c_check_decl LINENO SYMBOL VAR
2613 # ------------------------------------
2614 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2615 ac_fn_c_check_decl ()
2617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2619 $as_echo_n "checking whether $2 is declared... " >&6; }
2620 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2621 $as_echo_n "(cached) " >&6
2622 else
2623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h. */
2627 main ()
2629 #ifndef $2
2630 (void) $2;
2631 #endif
2634 return 0;
2636 _ACEOF
2637 if ac_fn_c_try_compile "$LINENO"; then :
2638 eval "$3=yes"
2639 else
2640 eval "$3=no"
2642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644 eval ac_res=\$$3
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2646 $as_echo "$ac_res" >&6; }
2647 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2649 } # ac_fn_c_check_decl
2651 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2652 # ----------------------------------------------
2653 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2654 ac_fn_c_check_header_preproc ()
2656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2658 $as_echo_n "checking for $2... " >&6; }
2659 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2660 $as_echo_n "(cached) " >&6
2661 else
2662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2663 /* end confdefs.h. */
2664 #include <$2>
2665 _ACEOF
2666 if ac_fn_c_try_cpp "$LINENO"; then :
2667 eval "$3=yes"
2668 else
2669 eval "$3=no"
2671 rm -f conftest.err conftest.$ac_ext
2673 eval ac_res=\$$3
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2675 $as_echo "$ac_res" >&6; }
2676 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2678 } # ac_fn_c_check_header_preproc
2680 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2681 # ----------------------------------------------------
2682 # Tries to find if the field MEMBER exists in type AGGR, after including
2683 # INCLUDES, setting cache variable VAR accordingly.
2684 ac_fn_c_check_member ()
2686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2688 $as_echo_n "checking for $2.$3... " >&6; }
2689 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2690 $as_echo_n "(cached) " >&6
2691 else
2692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2693 /* end confdefs.h. */
2696 main ()
2698 static $2 ac_aggr;
2699 if (ac_aggr.$3)
2700 return 0;
2702 return 0;
2704 _ACEOF
2705 if ac_fn_c_try_compile "$LINENO"; then :
2706 eval "$4=yes"
2707 else
2708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709 /* end confdefs.h. */
2712 main ()
2714 static $2 ac_aggr;
2715 if (sizeof ac_aggr.$3)
2716 return 0;
2718 return 0;
2720 _ACEOF
2721 if ac_fn_c_try_compile "$LINENO"; then :
2722 eval "$4=yes"
2723 else
2724 eval "$4=no"
2726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2730 eval ac_res=\$$4
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2732 $as_echo "$ac_res" >&6; }
2733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2735 } # ac_fn_c_check_member
2737 # ac_fn_c_check_func LINENO FUNC VAR
2738 # ----------------------------------
2739 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2740 ac_fn_c_check_func ()
2742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2744 $as_echo_n "checking for $2... " >&6; }
2745 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2746 $as_echo_n "(cached) " >&6
2747 else
2748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2749 /* end confdefs.h. */
2750 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2752 #define $2 innocuous_$2
2754 /* System header to define __stub macros and hopefully few prototypes,
2755 which can conflict with char $2 (); below.
2756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2757 <limits.h> exists even on freestanding compilers. */
2759 #ifdef __STDC__
2760 # include <limits.h>
2761 #else
2762 # include <assert.h>
2763 #endif
2765 #undef $2
2767 /* Override any GCC internal prototype to avoid an error.
2768 Use char because int might match the return type of a GCC
2769 builtin and then its argument prototype would still apply. */
2770 #ifdef __cplusplus
2771 extern "C"
2772 #endif
2773 char $2 ();
2774 /* The GNU C library defines this for functions which it implements
2775 to always fail with ENOSYS. Some functions are actually named
2776 something starting with __ and the normal name is an alias. */
2777 #if defined __stub_$2 || defined __stub___$2
2778 choke me
2779 #endif
2782 main ()
2784 return $2 ();
2786 return 0;
2788 _ACEOF
2789 if ac_fn_c_try_link "$LINENO"; then :
2790 eval "$3=yes"
2791 else
2792 eval "$3=no"
2794 rm -f core conftest.err conftest.$ac_objext \
2795 conftest$ac_exeext conftest.$ac_ext
2797 eval ac_res=\$$3
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2799 $as_echo "$ac_res" >&6; }
2800 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2802 } # ac_fn_c_check_func
2804 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2805 # -------------------------------------------
2806 # Tests whether TYPE exists after having included INCLUDES, setting cache
2807 # variable VAR accordingly.
2808 ac_fn_c_check_type ()
2810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2812 $as_echo_n "checking for $2... " >&6; }
2813 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2814 $as_echo_n "(cached) " >&6
2815 else
2816 eval "$3=no"
2817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2818 /* end confdefs.h. */
2821 main ()
2823 if (sizeof ($2))
2824 return 0;
2826 return 0;
2828 _ACEOF
2829 if ac_fn_c_try_compile "$LINENO"; then :
2830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2831 /* end confdefs.h. */
2834 main ()
2836 if (sizeof (($2)))
2837 return 0;
2839 return 0;
2841 _ACEOF
2842 if ac_fn_c_try_compile "$LINENO"; then :
2844 else
2845 eval "$3=yes"
2847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2851 eval ac_res=\$$3
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2853 $as_echo "$ac_res" >&6; }
2854 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2856 } # ac_fn_c_check_type
2858 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2859 # --------------------------------------------
2860 # Tries to find the compile-time value of EXPR in a program that includes
2861 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2862 # computed
2863 ac_fn_c_compute_int ()
2865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2866 if test "$cross_compiling" = yes; then
2867 # Depending upon the size, compute the lo and hi bounds.
2868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2869 /* end confdefs.h. */
2872 main ()
2874 static int test_array [1 - 2 * !(($2) >= 0)];
2875 test_array [0] = 0
2878 return 0;
2880 _ACEOF
2881 if ac_fn_c_try_compile "$LINENO"; then :
2882 ac_lo=0 ac_mid=0
2883 while :; do
2884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2885 /* end confdefs.h. */
2888 main ()
2890 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2891 test_array [0] = 0
2894 return 0;
2896 _ACEOF
2897 if ac_fn_c_try_compile "$LINENO"; then :
2898 ac_hi=$ac_mid; break
2899 else
2900 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2901 if test $ac_lo -le $ac_mid; then
2902 ac_lo= ac_hi=
2903 break
2905 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2908 done
2909 else
2910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2911 /* end confdefs.h. */
2914 main ()
2916 static int test_array [1 - 2 * !(($2) < 0)];
2917 test_array [0] = 0
2920 return 0;
2922 _ACEOF
2923 if ac_fn_c_try_compile "$LINENO"; then :
2924 ac_hi=-1 ac_mid=-1
2925 while :; do
2926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2927 /* end confdefs.h. */
2930 main ()
2932 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2933 test_array [0] = 0
2936 return 0;
2938 _ACEOF
2939 if ac_fn_c_try_compile "$LINENO"; then :
2940 ac_lo=$ac_mid; break
2941 else
2942 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2943 if test $ac_mid -le $ac_hi; then
2944 ac_lo= ac_hi=
2945 break
2947 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2950 done
2951 else
2952 ac_lo= ac_hi=
2954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2957 # Binary search between lo and hi bounds.
2958 while test "x$ac_lo" != "x$ac_hi"; do
2959 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2961 /* end confdefs.h. */
2964 main ()
2966 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2967 test_array [0] = 0
2970 return 0;
2972 _ACEOF
2973 if ac_fn_c_try_compile "$LINENO"; then :
2974 ac_hi=$ac_mid
2975 else
2976 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2979 done
2980 case $ac_lo in #((
2981 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2982 '') ac_retval=1 ;;
2983 esac
2984 else
2985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2986 /* end confdefs.h. */
2988 static long int longval () { return $2; }
2989 static unsigned long int ulongval () { return $2; }
2990 #include <stdio.h>
2991 #include <stdlib.h>
2993 main ()
2996 FILE *f = fopen ("conftest.val", "w");
2997 if (! f)
2998 return 1;
2999 if (($2) < 0)
3001 long int i = longval ();
3002 if (i != ($2))
3003 return 1;
3004 fprintf (f, "%ld", i);
3006 else
3008 unsigned long int i = ulongval ();
3009 if (i != ($2))
3010 return 1;
3011 fprintf (f, "%lu", i);
3013 /* Do not output a trailing newline, as this causes \r\n confusion
3014 on some platforms. */
3015 return ferror (f) || fclose (f) != 0;
3018 return 0;
3020 _ACEOF
3021 if ac_fn_c_try_run "$LINENO"; then :
3022 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3023 else
3024 ac_retval=1
3026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3027 conftest.$ac_objext conftest.beam conftest.$ac_ext
3028 rm -f conftest.val
3031 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3032 as_fn_set_status $ac_retval
3034 } # ac_fn_c_compute_int
3035 cat >config.log <<_ACEOF
3036 This file contains any messages produced by compilers while
3037 running configure, to aid debugging if configure makes a mistake.
3039 It was created by emacs $as_me 24.3.50, which was
3040 generated by GNU Autoconf 2.65. Invocation command line was
3042 $ $0 $@
3044 _ACEOF
3045 exec 5>>config.log
3047 cat <<_ASUNAME
3048 ## --------- ##
3049 ## Platform. ##
3050 ## --------- ##
3052 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3053 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3054 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3055 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3056 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3058 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3059 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3061 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3062 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3063 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3064 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3065 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3066 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3067 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3069 _ASUNAME
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3074 IFS=$as_save_IFS
3075 test -z "$as_dir" && as_dir=.
3076 $as_echo "PATH: $as_dir"
3077 done
3078 IFS=$as_save_IFS
3080 } >&5
3082 cat >&5 <<_ACEOF
3085 ## ----------- ##
3086 ## Core tests. ##
3087 ## ----------- ##
3089 _ACEOF
3092 # Keep a trace of the command line.
3093 # Strip out --no-create and --no-recursion so they do not pile up.
3094 # Strip out --silent because we don't want to record it for future runs.
3095 # Also quote any args containing shell meta-characters.
3096 # Make two passes to allow for proper duplicate-argument suppression.
3097 ac_configure_args=
3098 ac_configure_args0=
3099 ac_configure_args1=
3100 ac_must_keep_next=false
3101 for ac_pass in 1 2
3103 for ac_arg
3105 case $ac_arg in
3106 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3108 | -silent | --silent | --silen | --sile | --sil)
3109 continue ;;
3110 *\'*)
3111 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3112 esac
3113 case $ac_pass in
3114 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3116 as_fn_append ac_configure_args1 " '$ac_arg'"
3117 if test $ac_must_keep_next = true; then
3118 ac_must_keep_next=false # Got value, back to normal.
3119 else
3120 case $ac_arg in
3121 *=* | --config-cache | -C | -disable-* | --disable-* \
3122 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3123 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3124 | -with-* | --with-* | -without-* | --without-* | --x)
3125 case "$ac_configure_args0 " in
3126 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3127 esac
3129 -* ) ac_must_keep_next=true ;;
3130 esac
3132 as_fn_append ac_configure_args " '$ac_arg'"
3134 esac
3135 done
3136 done
3137 { ac_configure_args0=; unset ac_configure_args0;}
3138 { ac_configure_args1=; unset ac_configure_args1;}
3140 # When interrupted or exit'd, cleanup temporary files, and complete
3141 # config.log. We remove comments because anyway the quotes in there
3142 # would cause problems or look ugly.
3143 # WARNING: Use '\'' to represent an apostrophe within the trap.
3144 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3145 trap 'exit_status=$?
3146 # Save into config.log some information that might help in debugging.
3148 echo
3150 cat <<\_ASBOX
3151 ## ---------------- ##
3152 ## Cache variables. ##
3153 ## ---------------- ##
3154 _ASBOX
3155 echo
3156 # The following way of writing the cache mishandles newlines in values,
3158 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3159 eval ac_val=\$$ac_var
3160 case $ac_val in #(
3161 *${as_nl}*)
3162 case $ac_var in #(
3163 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3164 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3165 esac
3166 case $ac_var in #(
3167 _ | IFS | as_nl) ;; #(
3168 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3169 *) { eval $ac_var=; unset $ac_var;} ;;
3170 esac ;;
3171 esac
3172 done
3173 (set) 2>&1 |
3174 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3175 *${as_nl}ac_space=\ *)
3176 sed -n \
3177 "s/'\''/'\''\\\\'\'''\''/g;
3178 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3179 ;; #(
3181 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3183 esac |
3184 sort
3186 echo
3188 cat <<\_ASBOX
3189 ## ----------------- ##
3190 ## Output variables. ##
3191 ## ----------------- ##
3192 _ASBOX
3193 echo
3194 for ac_var in $ac_subst_vars
3196 eval ac_val=\$$ac_var
3197 case $ac_val in
3198 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3199 esac
3200 $as_echo "$ac_var='\''$ac_val'\''"
3201 done | sort
3202 echo
3204 if test -n "$ac_subst_files"; then
3205 cat <<\_ASBOX
3206 ## ------------------- ##
3207 ## File substitutions. ##
3208 ## ------------------- ##
3209 _ASBOX
3210 echo
3211 for ac_var in $ac_subst_files
3213 eval ac_val=\$$ac_var
3214 case $ac_val in
3215 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3216 esac
3217 $as_echo "$ac_var='\''$ac_val'\''"
3218 done | sort
3219 echo
3222 if test -s confdefs.h; then
3223 cat <<\_ASBOX
3224 ## ----------- ##
3225 ## confdefs.h. ##
3226 ## ----------- ##
3227 _ASBOX
3228 echo
3229 cat confdefs.h
3230 echo
3232 test "$ac_signal" != 0 &&
3233 $as_echo "$as_me: caught signal $ac_signal"
3234 $as_echo "$as_me: exit $exit_status"
3235 } >&5
3236 rm -f core *.core core.conftest.* &&
3237 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3238 exit $exit_status
3240 for ac_signal in 1 2 13 15; do
3241 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3242 done
3243 ac_signal=0
3245 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3246 rm -f -r conftest* confdefs.h
3248 $as_echo "/* confdefs.h */" > confdefs.h
3250 # Predefined preprocessor variables.
3252 cat >>confdefs.h <<_ACEOF
3253 #define PACKAGE_NAME "$PACKAGE_NAME"
3254 _ACEOF
3256 cat >>confdefs.h <<_ACEOF
3257 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3258 _ACEOF
3260 cat >>confdefs.h <<_ACEOF
3261 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3262 _ACEOF
3264 cat >>confdefs.h <<_ACEOF
3265 #define PACKAGE_STRING "$PACKAGE_STRING"
3266 _ACEOF
3268 cat >>confdefs.h <<_ACEOF
3269 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3270 _ACEOF
3272 cat >>confdefs.h <<_ACEOF
3273 #define PACKAGE_URL "$PACKAGE_URL"
3274 _ACEOF
3277 # Let the site file select an alternate cache file if it wants to.
3278 # Prefer an explicitly selected file to automatically selected ones.
3279 ac_site_file1=NONE
3280 ac_site_file2=NONE
3281 if test -n "$CONFIG_SITE"; then
3282 ac_site_file1=$CONFIG_SITE
3283 elif test "x$prefix" != xNONE; then
3284 ac_site_file1=$prefix/share/config.site
3285 ac_site_file2=$prefix/etc/config.site
3286 else
3287 ac_site_file1=$ac_default_prefix/share/config.site
3288 ac_site_file2=$ac_default_prefix/etc/config.site
3290 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3292 test "x$ac_site_file" = xNONE && continue
3293 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3295 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3296 sed 's/^/| /' "$ac_site_file" >&5
3297 . "$ac_site_file"
3299 done
3301 if test -r "$cache_file"; then
3302 # Some versions of bash will fail to source /dev/null (special files
3303 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3304 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3306 $as_echo "$as_me: loading cache $cache_file" >&6;}
3307 case $cache_file in
3308 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3309 *) . "./$cache_file";;
3310 esac
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3314 $as_echo "$as_me: creating cache $cache_file" >&6;}
3315 >$cache_file
3318 as_fn_append ac_header_list " linux/version.h"
3319 as_fn_append ac_header_list " sys/systeminfo.h"
3320 as_fn_append ac_header_list " coff.h"
3321 as_fn_append ac_header_list " pty.h"
3322 as_fn_append ac_header_list " sys/resource.h"
3323 as_fn_append ac_header_list " sys/utsname.h"
3324 as_fn_append ac_header_list " pwd.h"
3325 as_fn_append ac_header_list " utmp.h"
3326 as_fn_append ac_header_list " util.h"
3327 as_fn_append ac_header_list " sys/socket.h"
3328 as_fn_append ac_header_list " stdlib.h"
3329 as_fn_append ac_header_list " unistd.h"
3330 as_fn_append ac_header_list " sys/param.h"
3331 as_fn_append ac_header_list " pthread.h"
3332 as_fn_append ac_header_list " malloc/malloc.h"
3333 as_fn_append ac_header_list " maillock.h"
3334 as_fn_append ac_header_list " sys/un.h"
3335 as_fn_append ac_func_list " tzset"
3336 as_fn_append ac_func_list " readlinkat"
3337 as_fn_append ac_header_list " dirent.h"
3338 as_fn_append ac_header_list " execinfo.h"
3339 as_fn_append ac_func_list " faccessat"
3340 as_fn_append ac_func_list " fdopendir"
3341 as_fn_append ac_header_list " stdio_ext.h"
3342 as_fn_append ac_func_list " __fpending"
3343 as_fn_append ac_func_list " fstatat"
3344 as_fn_append ac_func_list " fsync"
3345 gl_getopt_required=GNU
3346 as_fn_append ac_header_list " getopt.h"
3347 as_fn_append ac_func_list " gettimeofday"
3348 as_fn_append ac_func_list " nanotime"
3349 as_fn_append ac_header_list " sys/time.h"
3350 as_fn_append ac_header_list " wchar.h"
3351 as_fn_append ac_header_list " stdint.h"
3352 as_fn_append ac_header_list " inttypes.h"
3353 as_fn_append ac_func_list " lstat"
3354 as_fn_append ac_header_list " sys/select.h"
3355 as_fn_append ac_func_list " pselect"
3356 as_fn_append ac_func_list " pthread_sigmask"
3357 as_fn_append ac_func_list " readlink"
3358 as_fn_append ac_func_list " strtoimax"
3359 as_fn_append ac_func_list " strtoumax"
3360 as_fn_append ac_func_list " symlink"
3361 as_fn_append ac_header_list " sys/stat.h"
3362 as_fn_append ac_func_list " localtime_r"
3363 as_fn_append ac_header_list " utime.h"
3364 as_fn_append ac_func_list " futimes"
3365 as_fn_append ac_func_list " futimesat"
3366 as_fn_append ac_func_list " futimens"
3367 as_fn_append ac_func_list " utimensat"
3368 as_fn_append ac_func_list " lutimes"
3369 # Check that the precious variables saved in the cache have kept the same
3370 # value.
3371 ac_cache_corrupted=false
3372 for ac_var in $ac_precious_vars; do
3373 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3374 eval ac_new_set=\$ac_env_${ac_var}_set
3375 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3376 eval ac_new_val=\$ac_env_${ac_var}_value
3377 case $ac_old_set,$ac_new_set in
3378 set,)
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3380 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3381 ac_cache_corrupted=: ;;
3382 ,set)
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3384 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3385 ac_cache_corrupted=: ;;
3386 ,);;
3388 if test "x$ac_old_val" != "x$ac_new_val"; then
3389 # differences in whitespace do not lead to failure.
3390 ac_old_val_w=`echo x $ac_old_val`
3391 ac_new_val_w=`echo x $ac_new_val`
3392 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3394 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3395 ac_cache_corrupted=:
3396 else
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3398 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3399 eval $ac_var=\$ac_old_val
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3402 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3404 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3405 fi;;
3406 esac
3407 # Pass precious variables to config.status.
3408 if test "$ac_new_set" = set; then
3409 case $ac_new_val in
3410 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3411 *) ac_arg=$ac_var=$ac_new_val ;;
3412 esac
3413 case " $ac_configure_args " in
3414 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3415 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3416 esac
3418 done
3419 if $ac_cache_corrupted; then
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3423 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3424 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3426 ## -------------------- ##
3427 ## Main body of script. ##
3428 ## -------------------- ##
3430 ac_ext=c
3431 ac_cpp='$CPP $CPPFLAGS'
3432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3438 emacs_config_options="$@"
3439 ## Add some environment variables, if they were passed via the environment
3440 ## rather than on the command-line.
3441 for var in CFLAGS CPPFLAGS LDFLAGS; do
3442 case "$emacs_config_options" in
3443 *$var=*) continue ;;
3444 esac
3445 eval val="\$${var}"
3446 test x"$val" = x && continue
3447 emacs_config_options="${emacs_config_options}${emacs_config_options:+ }$var=\"$val\""
3448 done
3450 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3453 ac_aux_dir=
3454 for ac_dir in build-aux "$srcdir"/build-aux; do
3455 for ac_t in install-sh install.sh shtool; do
3456 if test -f "$ac_dir/$ac_t"; then
3457 ac_aux_dir=$ac_dir
3458 ac_install_sh="$ac_aux_dir/$ac_t -c"
3459 break 2
3461 done
3462 done
3463 if test -z "$ac_aux_dir"; then
3464 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3467 # These three variables are undocumented and unsupported,
3468 # and are intended to be withdrawn in a future Autoconf release.
3469 # They can cause serious problems if a builder's source tree is in a directory
3470 # whose full name contains unusual characters.
3471 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3472 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3473 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3476 am__api_version='1.11'
3478 # Find a good install program. We prefer a C program (faster),
3479 # so one script is as good as another. But avoid the broken or
3480 # incompatible versions:
3481 # SysV /etc/install, /usr/sbin/install
3482 # SunOS /usr/etc/install
3483 # IRIX /sbin/install
3484 # AIX /bin/install
3485 # AmigaOS /C/install, which installs bootblocks on floppy discs
3486 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3487 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3488 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3489 # OS/2's system install, which has a completely different semantic
3490 # ./install, which can be erroneously created by make from ./install.sh.
3491 # Reject install programs that cannot install multiple files.
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3493 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3494 if test -z "$INSTALL"; then
3495 if test "${ac_cv_path_install+set}" = set; then :
3496 $as_echo_n "(cached) " >&6
3497 else
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 for as_dir in $PATH
3501 IFS=$as_save_IFS
3502 test -z "$as_dir" && as_dir=.
3503 # Account for people who put trailing slashes in PATH elements.
3504 case $as_dir/ in #((
3505 ./ | .// | /[cC]/* | \
3506 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3507 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3508 /usr/ucb/* ) ;;
3510 # OSF1 and SCO ODT 3.0 have their own names for install.
3511 # Don't use installbsd from OSF since it installs stuff as root
3512 # by default.
3513 for ac_prog in ginstall scoinst install; do
3514 for ac_exec_ext in '' $ac_executable_extensions; do
3515 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3516 if test $ac_prog = install &&
3517 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3518 # AIX install. It has an incompatible calling convention.
3520 elif test $ac_prog = install &&
3521 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3522 # program-specific install script used by HP pwplus--don't use.
3524 else
3525 rm -rf conftest.one conftest.two conftest.dir
3526 echo one > conftest.one
3527 echo two > conftest.two
3528 mkdir conftest.dir
3529 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3530 test -s conftest.one && test -s conftest.two &&
3531 test -s conftest.dir/conftest.one &&
3532 test -s conftest.dir/conftest.two
3533 then
3534 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3535 break 3
3539 done
3540 done
3542 esac
3544 done
3545 IFS=$as_save_IFS
3547 rm -rf conftest.one conftest.two conftest.dir
3550 if test "${ac_cv_path_install+set}" = set; then
3551 INSTALL=$ac_cv_path_install
3552 else
3553 # As a last resort, use the slow shell script. Don't cache a
3554 # value for INSTALL within a source directory, because that will
3555 # break other packages using the cache if that directory is
3556 # removed, or if the value is a relative name.
3557 INSTALL=$ac_install_sh
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3561 $as_echo "$INSTALL" >&6; }
3563 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3564 # It thinks the first close brace ends the variable substitution.
3565 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3567 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3569 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3572 $as_echo_n "checking whether build environment is sane... " >&6; }
3573 # Just in case
3574 sleep 1
3575 echo timestamp > conftest.file
3576 # Reject unsafe characters in $srcdir or the absolute working directory
3577 # name. Accept space and tab only in the latter.
3578 am_lf='
3580 case `pwd` in
3581 *[\\\"\#\$\&\'\`$am_lf]*)
3582 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3583 esac
3584 case $srcdir in
3585 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3586 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3587 esac
3589 # Do `set' in a subshell so we don't clobber the current shell's
3590 # arguments. Must try -L first in case configure is actually a
3591 # symlink; some systems play weird games with the mod time of symlinks
3592 # (eg FreeBSD returns the mod time of the symlink's containing
3593 # directory).
3594 if (
3595 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3596 if test "$*" = "X"; then
3597 # -L didn't work.
3598 set X `ls -t "$srcdir/configure" conftest.file`
3600 rm -f conftest.file
3601 if test "$*" != "X $srcdir/configure conftest.file" \
3602 && test "$*" != "X conftest.file $srcdir/configure"; then
3604 # If neither matched, then we have a broken ls. This can happen
3605 # if, for instance, CONFIG_SHELL is bash and it inherits a
3606 # broken ls alias from the environment. This has actually
3607 # happened. Such a system could not be considered "sane".
3608 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3609 alias in your environment" "$LINENO" 5
3612 test "$2" = conftest.file
3614 then
3615 # Ok.
3617 else
3618 as_fn_error "newly created file is older than distributed files!
3619 Check your system clock" "$LINENO" 5
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3622 $as_echo "yes" >&6; }
3623 test "$program_prefix" != NONE &&
3624 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3625 # Use a double $ so make ignores it.
3626 test "$program_suffix" != NONE &&
3627 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3628 # Double any \ or $.
3629 # By default was `s,x,x', remove it if useless.
3630 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3631 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3633 # expand $ac_aux_dir to an absolute path
3634 am_aux_dir=`cd $ac_aux_dir && pwd`
3636 if test x"${MISSING+set}" != xset; then
3637 case $am_aux_dir in
3638 *\ * | *\ *)
3639 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3641 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3642 esac
3644 # Use eval to expand $SHELL
3645 if eval "$MISSING --run true"; then
3646 am_missing_run="$MISSING --run "
3647 else
3648 am_missing_run=
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3650 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3653 if test x"${install_sh}" != xset; then
3654 case $am_aux_dir in
3655 *\ * | *\ *)
3656 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3658 install_sh="\${SHELL} $am_aux_dir/install-sh"
3659 esac
3662 # Installed binaries are usually stripped using `strip' when the user
3663 # run `make install-strip'. However `strip' might not be the right
3664 # tool to use in cross-compilation environments, therefore Automake
3665 # will honor the `STRIP' environment variable to overrule this program.
3666 if test "$cross_compiling" != no; then
3667 if test -n "$ac_tool_prefix"; then
3668 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3669 set dummy ${ac_tool_prefix}strip; ac_word=$2
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671 $as_echo_n "checking for $ac_word... " >&6; }
3672 if test "${ac_cv_prog_STRIP+set}" = set; then :
3673 $as_echo_n "(cached) " >&6
3674 else
3675 if test -n "$STRIP"; then
3676 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3677 else
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH
3681 IFS=$as_save_IFS
3682 test -z "$as_dir" && as_dir=.
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3685 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3687 break 2
3689 done
3690 done
3691 IFS=$as_save_IFS
3695 STRIP=$ac_cv_prog_STRIP
3696 if test -n "$STRIP"; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3698 $as_echo "$STRIP" >&6; }
3699 else
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3706 if test -z "$ac_cv_prog_STRIP"; then
3707 ac_ct_STRIP=$STRIP
3708 # Extract the first word of "strip", so it can be a program name with args.
3709 set dummy strip; ac_word=$2
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3711 $as_echo_n "checking for $ac_word... " >&6; }
3712 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3713 $as_echo_n "(cached) " >&6
3714 else
3715 if test -n "$ac_ct_STRIP"; then
3716 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3717 else
3718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719 for as_dir in $PATH
3721 IFS=$as_save_IFS
3722 test -z "$as_dir" && as_dir=.
3723 for ac_exec_ext in '' $ac_executable_extensions; do
3724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3725 ac_cv_prog_ac_ct_STRIP="strip"
3726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3727 break 2
3729 done
3730 done
3731 IFS=$as_save_IFS
3735 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3736 if test -n "$ac_ct_STRIP"; then
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3738 $as_echo "$ac_ct_STRIP" >&6; }
3739 else
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3741 $as_echo "no" >&6; }
3744 if test "x$ac_ct_STRIP" = x; then
3745 STRIP=":"
3746 else
3747 case $cross_compiling:$ac_tool_warned in
3748 yes:)
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3751 ac_tool_warned=yes ;;
3752 esac
3753 STRIP=$ac_ct_STRIP
3755 else
3756 STRIP="$ac_cv_prog_STRIP"
3760 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3763 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3764 if test -z "$MKDIR_P"; then
3765 if test "${ac_cv_path_mkdir+set}" = set; then :
3766 $as_echo_n "(cached) " >&6
3767 else
3768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3771 IFS=$as_save_IFS
3772 test -z "$as_dir" && as_dir=.
3773 for ac_prog in mkdir gmkdir; do
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3776 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3777 'mkdir (GNU coreutils) '* | \
3778 'mkdir (coreutils) '* | \
3779 'mkdir (fileutils) '4.1*)
3780 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3781 break 3;;
3782 esac
3783 done
3784 done
3785 done
3786 IFS=$as_save_IFS
3790 test -d ./--version && rmdir ./--version
3791 if test "${ac_cv_path_mkdir+set}" = set; then
3792 MKDIR_P="$ac_cv_path_mkdir -p"
3793 else
3794 # As a last resort, use the slow shell script. Don't cache a
3795 # value for MKDIR_P within a source directory, because that will
3796 # break other packages using the cache if that directory is
3797 # removed, or if the value is a relative name.
3798 MKDIR_P="$ac_install_sh -d"
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3802 $as_echo "$MKDIR_P" >&6; }
3804 mkdir_p="$MKDIR_P"
3805 case $mkdir_p in
3806 [\\/$]* | ?:[\\/]*) ;;
3807 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3808 esac
3810 for ac_prog in gawk mawk nawk awk
3812 # Extract the first word of "$ac_prog", so it can be a program name with args.
3813 set dummy $ac_prog; ac_word=$2
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815 $as_echo_n "checking for $ac_word... " >&6; }
3816 if test "${ac_cv_prog_AWK+set}" = set; then :
3817 $as_echo_n "(cached) " >&6
3818 else
3819 if test -n "$AWK"; then
3820 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3821 else
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in $PATH
3825 IFS=$as_save_IFS
3826 test -z "$as_dir" && as_dir=.
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3829 ac_cv_prog_AWK="$ac_prog"
3830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3831 break 2
3833 done
3834 done
3835 IFS=$as_save_IFS
3839 AWK=$ac_cv_prog_AWK
3840 if test -n "$AWK"; then
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3842 $as_echo "$AWK" >&6; }
3843 else
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845 $as_echo "no" >&6; }
3849 test -n "$AWK" && break
3850 done
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3853 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3854 set x ${MAKE-make}
3855 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3856 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3857 $as_echo_n "(cached) " >&6
3858 else
3859 cat >conftest.make <<\_ACEOF
3860 SHELL = /bin/sh
3861 all:
3862 @echo '@@@%%%=$(MAKE)=@@@%%%'
3863 _ACEOF
3864 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3865 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3866 *@@@%%%=?*=@@@%%%*)
3867 eval ac_cv_prog_make_${ac_make}_set=yes;;
3869 eval ac_cv_prog_make_${ac_make}_set=no;;
3870 esac
3871 rm -f conftest.make
3873 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3875 $as_echo "yes" >&6; }
3876 SET_MAKE=
3877 else
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3879 $as_echo "no" >&6; }
3880 SET_MAKE="MAKE=${MAKE-make}"
3883 rm -rf .tst 2>/dev/null
3884 mkdir .tst 2>/dev/null
3885 if test -d .tst; then
3886 am__leading_dot=.
3887 else
3888 am__leading_dot=_
3890 rmdir .tst 2>/dev/null
3892 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3893 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3894 # is not polluted with repeated "-I."
3895 am__isrc=' -I$(srcdir)'
3896 # test to see if srcdir already configured
3897 if test -f $srcdir/config.status; then
3898 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3902 # test whether we have cygpath
3903 if test -z "$CYGPATH_W"; then
3904 if (cygpath --version) >/dev/null 2>/dev/null; then
3905 CYGPATH_W='cygpath -w'
3906 else
3907 CYGPATH_W=echo
3912 # Define the identity of the package.
3913 PACKAGE='emacs'
3914 VERSION='24.3.50'
3917 cat >>confdefs.h <<_ACEOF
3918 #define PACKAGE "$PACKAGE"
3919 _ACEOF
3922 cat >>confdefs.h <<_ACEOF
3923 #define VERSION "$VERSION"
3924 _ACEOF
3926 # Some tools Automake needs.
3928 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3931 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3934 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3937 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3940 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3942 # We need awk for the "check" target. The system "awk" is bad on
3943 # some platforms.
3944 # Always define AMTAR for backward compatibility.
3946 AMTAR=${AMTAR-"${am_missing_run}tar"}
3948 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3957 lispdir='${datadir}/emacs/${version}/lisp'
3958 leimdir='${datadir}/emacs/${version}/leim'
3959 standardlisppath='${lispdir}:${leimdir}'
3960 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3961 '${datadir}/emacs/site-lisp'
3962 lisppath='${locallisppath}:${standardlisppath}'
3963 etcdir='${datadir}/emacs/${version}/etc'
3964 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3965 docdir='${datadir}/emacs/${version}/etc'
3966 gamedir='${localstatedir}/games/emacs'
3969 # Check whether --with-all was given.
3970 if test "${with_all+set}" = set; then :
3971 withval=$with_all; with_features=$withval
3972 else
3973 with_features=yes
3980 # Check whether --with-pop was given.
3981 if test "${with_pop+set}" = set; then :
3982 withval=$with_pop;
3983 else
3984 with_pop=$with_features
3987 if test "$with_pop" = yes; then
3988 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3993 # Check whether --with-kerberos was given.
3994 if test "${with_kerberos+set}" = set; then :
3995 withval=$with_kerberos;
3996 else
3997 with_kerberos=no
4000 if test "$with_kerberos" != no; then
4001 $as_echo "#define KERBEROS 1" >>confdefs.h
4006 # Check whether --with-kerberos5 was given.
4007 if test "${with_kerberos5+set}" = set; then :
4008 withval=$with_kerberos5;
4009 else
4010 with_kerberos5=no
4013 if test "${with_kerberos5}" != no; then
4014 if test "${with_kerberos}" = no; then
4015 with_kerberos=yes
4016 $as_echo "#define KERBEROS 1" >>confdefs.h
4020 $as_echo "#define KERBEROS5 1" >>confdefs.h
4025 # Check whether --with-hesiod was given.
4026 if test "${with_hesiod+set}" = set; then :
4027 withval=$with_hesiod;
4028 else
4029 with_hesiod=no
4032 if test "$with_hesiod" != no; then
4034 $as_echo "#define HESIOD 1" >>confdefs.h
4039 # Check whether --with-mmdf was given.
4040 if test "${with_mmdf+set}" = set; then :
4041 withval=$with_mmdf;
4042 else
4043 with_mmdf=no
4046 if test "$with_mmdf" != no; then
4048 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
4053 # Check whether --with-mail-unlink was given.
4054 if test "${with_mail_unlink+set}" = set; then :
4055 withval=$with_mail_unlink;
4056 else
4057 with_mail_unlink=no
4060 if test "$with_mail_unlink" != no; then
4062 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
4067 # Check whether --with-mailhost was given.
4068 if test "${with_mailhost+set}" = set; then :
4069 withval=$with_mailhost;
4070 cat >>confdefs.h <<_ACEOF
4071 #define MAILHOST "$withval"
4072 _ACEOF
4078 # Check whether --with-sound was given.
4079 if test "${with_sound+set}" = set; then :
4080 withval=$with_sound;
4081 else
4082 with_sound=$with_features
4087 # Check whether --with-x-toolkit was given.
4088 if test "${with_x_toolkit+set}" = set; then :
4089 withval=$with_x_toolkit; case "${withval}" in
4090 y | ye | yes ) val=gtk ;;
4091 n | no ) val=no ;;
4092 l | lu | luc | luci | lucid ) val=lucid ;;
4093 a | at | ath | athe | athen | athena ) val=athena ;;
4094 m | mo | mot | moti | motif ) val=motif ;;
4095 g | gt | gtk ) val=gtk ;;
4096 gtk2 ) val=gtk2 ;;
4097 gtk3 ) val=gtk3 ;;
4099 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
4100 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
4101 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
4102 \`athena' and \`lucid' are synonyms." "$LINENO" 5
4104 esac
4105 with_x_toolkit=$val
4111 # Check whether --with-wide-int was given.
4112 if test "${with_wide_int+set}" = set; then :
4113 withval=$with_wide_int;
4114 else
4115 with_wide_int=no
4118 if test "$with_wide_int" = yes; then
4120 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4125 # Check whether --with-xpm was given.
4126 if test "${with_xpm+set}" = set; then :
4127 withval=$with_xpm;
4128 else
4129 with_xpm=$with_features
4133 # Check whether --with-jpeg was given.
4134 if test "${with_jpeg+set}" = set; then :
4135 withval=$with_jpeg;
4136 else
4137 with_jpeg=$with_features
4141 # Check whether --with-tiff was given.
4142 if test "${with_tiff+set}" = set; then :
4143 withval=$with_tiff;
4144 else
4145 with_tiff=$with_features
4149 # Check whether --with-gif was given.
4150 if test "${with_gif+set}" = set; then :
4151 withval=$with_gif;
4152 else
4153 with_gif=$with_features
4157 # Check whether --with-png was given.
4158 if test "${with_png+set}" = set; then :
4159 withval=$with_png;
4160 else
4161 with_png=$with_features
4165 # Check whether --with-rsvg was given.
4166 if test "${with_rsvg+set}" = set; then :
4167 withval=$with_rsvg;
4168 else
4169 with_rsvg=$with_features
4173 # Check whether --with-xml2 was given.
4174 if test "${with_xml2+set}" = set; then :
4175 withval=$with_xml2;
4176 else
4177 with_xml2=$with_features
4181 # Check whether --with-imagemagick was given.
4182 if test "${with_imagemagick+set}" = set; then :
4183 withval=$with_imagemagick;
4184 else
4185 with_imagemagick=$with_features
4190 # Check whether --with-xft was given.
4191 if test "${with_xft+set}" = set; then :
4192 withval=$with_xft;
4193 else
4194 with_xft=$with_features
4198 # Check whether --with-libotf was given.
4199 if test "${with_libotf+set}" = set; then :
4200 withval=$with_libotf;
4201 else
4202 with_libotf=$with_features
4206 # Check whether --with-m17n-flt was given.
4207 if test "${with_m17n_flt+set}" = set; then :
4208 withval=$with_m17n_flt;
4209 else
4210 with_m17n_flt=$with_features
4215 # Check whether --with-toolkit-scroll-bars was given.
4216 if test "${with_toolkit_scroll_bars+set}" = set; then :
4217 withval=$with_toolkit_scroll_bars;
4218 else
4219 with_toolkit_scroll_bars=$with_features
4223 # Check whether --with-xaw3d was given.
4224 if test "${with_xaw3d+set}" = set; then :
4225 withval=$with_xaw3d;
4226 else
4227 with_xaw3d=$with_features
4231 # Check whether --with-xim was given.
4232 if test "${with_xim+set}" = set; then :
4233 withval=$with_xim;
4234 else
4235 with_xim=$with_features
4239 # Check whether --with-ns was given.
4240 if test "${with_ns+set}" = set; then :
4241 withval=$with_ns;
4242 else
4243 with_ns=no
4247 # Check whether --with-w32 was given.
4248 if test "${with_w32+set}" = set; then :
4249 withval=$with_w32;
4250 else
4251 with_w32=no
4256 # Check whether --with-gpm was given.
4257 if test "${with_gpm+set}" = set; then :
4258 withval=$with_gpm;
4259 else
4260 with_gpm=$with_features
4264 # Check whether --with-dbus was given.
4265 if test "${with_dbus+set}" = set; then :
4266 withval=$with_dbus;
4267 else
4268 with_dbus=$with_features
4272 # Check whether --with-gconf was given.
4273 if test "${with_gconf+set}" = set; then :
4274 withval=$with_gconf;
4275 else
4276 with_gconf=$with_features
4280 # Check whether --with-gsettings was given.
4281 if test "${with_gsettings+set}" = set; then :
4282 withval=$with_gsettings;
4283 else
4284 with_gsettings=$with_features
4288 # Check whether --with-selinux was given.
4289 if test "${with_selinux+set}" = set; then :
4290 withval=$with_selinux;
4291 else
4292 with_selinux=$with_features
4296 # Check whether --with-acl was given.
4297 if test "${with_acl+set}" = set; then :
4298 withval=$with_acl;
4299 else
4300 with_acl=$with_features
4304 # Check whether --with-gnutls was given.
4305 if test "${with_gnutls+set}" = set; then :
4306 withval=$with_gnutls;
4307 else
4308 with_gnutls=$with_features
4312 # Check whether --with-inotify was given.
4313 if test "${with_inotify+set}" = set; then :
4314 withval=$with_inotify;
4315 else
4316 with_inotify=$with_features
4320 ## For the times when you want to build Emacs but don't have
4321 ## a suitable makeinfo, and can live without the manuals.
4323 # Check whether --with-makeinfo was given.
4324 if test "${with_makeinfo+set}" = set; then :
4325 withval=$with_makeinfo;
4326 else
4327 with_makeinfo=$with_features
4331 ## Makefile.in needs the cache file name.
4334 ## This is an option because I do not know if all info/man support
4335 ## compressed files, nor how to test if they do so.
4337 # Check whether --with-compress-info was given.
4338 if test "${with_compress_info+set}" = set; then :
4339 withval=$with_compress_info;
4340 else
4341 with_compress_info=$with_features
4344 if test $with_compress_info = yes; then
4345 GZIP_INFO=yes
4346 else
4347 GZIP_INFO=
4352 # Check whether --with-pkg-config-prog was given.
4353 if test "${with_pkg_config_prog+set}" = set; then :
4354 withval=$with_pkg_config_prog;
4357 if test "X${with_pkg_config_prog}" != X; then
4358 if test "${with_pkg_config_prog}" != yes; then
4359 PKG_CONFIG="${with_pkg_config_prog}"
4364 # Check whether --with-gameuser was given.
4365 if test "${with_gameuser+set}" = set; then :
4366 withval=$with_gameuser;
4369 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4370 && gameuser="${with_gameuser}"
4371 test "X$gameuser" = X && gameuser=games
4374 # Check whether --with-gnustep-conf was given.
4375 if test "${with_gnustep_conf+set}" = set; then :
4376 withval=$with_gnustep_conf;
4379 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4380 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4381 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4382 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4384 # Check whether --enable-ns-self-contained was given.
4385 if test "${enable_ns_self_contained+set}" = set; then :
4386 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4387 else
4388 EN_NS_SELF_CONTAINED=yes
4392 # Check whether --enable-locallisppath was given.
4393 if test "${enable_locallisppath+set}" = set; then :
4394 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4395 locallisppath=
4396 elif test "${enableval}" != "yes"; then
4397 locallisppath=${enableval}
4402 # Check whether --enable-checking was given.
4403 if test "${enable_checking+set}" = set; then :
4404 enableval=$enable_checking; ac_checking_flags="${enableval}"
4407 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4408 for check in $ac_checking_flags
4410 case $check in
4411 # these set all the flags to specific states
4412 yes) ac_enable_checking=1 ;;
4413 no) ac_enable_checking= ;
4414 ac_gc_check_stringbytes= ;
4415 ac_gc_check_string_overrun= ;
4416 ac_gc_check_string_free_list= ;
4417 ac_xmalloc_overrun= ;
4418 ac_gc_check_cons_list= ;
4419 ac_glyphs_debug= ;;
4420 all) ac_enable_checking=1 ;
4421 ac_gc_check_stringbytes=1 ;
4422 ac_gc_check_string_overrun=1 ;
4423 ac_gc_check_string_free_list=1 ;
4424 ac_xmalloc_overrun=1 ;
4425 ac_gc_check_cons_list=1 ;
4426 ac_glyphs_debug=1 ;;
4427 # these enable particular checks
4428 stringbytes) ac_gc_check_stringbytes=1 ;;
4429 stringoverrun) ac_gc_check_string_overrun=1 ;;
4430 stringfreelist) ac_gc_check_string_free_list=1 ;;
4431 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4432 conslist) ac_gc_check_cons_list=1 ;;
4433 glyphs) ac_glyphs_debug=1 ;;
4434 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4435 esac
4436 done
4437 IFS="$ac_save_IFS"
4439 if test x$ac_enable_checking != x ; then
4441 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4444 if test x$ac_gc_check_stringbytes != x ; then
4446 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4449 if test x$ac_gc_check_string_overrun != x ; then
4451 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4454 if test x$ac_gc_check_string_free_list != x ; then
4456 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4459 if test x$ac_xmalloc_overrun != x ; then
4461 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4464 if test x$ac_gc_check_cons_list != x ; then
4466 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4469 if test x$ac_glyphs_debug != x ; then
4471 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4475 # Check whether --enable-check-lisp-object-type was given.
4476 if test "${enable_check_lisp_object_type+set}" = set; then :
4477 enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4479 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4486 # Check whether --enable-profiling was given.
4487 if test "${enable_profiling+set}" = set; then :
4488 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4491 if test x$ac_enable_profiling != x ; then
4492 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4493 else
4494 PROFILING_CFLAGS=
4498 # Check whether --enable-autodepend was given.
4499 if test "${enable_autodepend+set}" = set; then :
4500 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4501 else
4502 ac_enable_autodepend=yes
4506 # Check whether --enable-gtk-deprecation-warnings was given.
4507 if test "${enable_gtk_deprecation_warnings+set}" = set; then :
4508 enableval=$enable_gtk_deprecation_warnings; ac_enable_gtk_deprecation_warnings="${enableval}"
4512 #### Make srcdir absolute, if it isn't already. It's important to
4513 #### avoid running the file name through pwd unnecessarily, since pwd can
4514 #### give you automounter prefixes, which can go away. We do all this
4515 #### so Emacs can find its files when run uninstalled.
4516 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4517 unset CDPATH
4518 case "${srcdir}" in
4519 /* ) ;;
4521 ## We may be able to use the $PWD environment variable to make this
4522 ## absolute. But sometimes PWD is inaccurate.
4523 ## Note: we used to use $PWD at the end instead of `pwd`,
4524 ## but that tested only for a well-formed and valid PWD,
4525 ## it did not object when PWD was well-formed and valid but just wrong.
4526 if test ".$PWD" != "." && test ".`(cd "$PWD" ; sh -c pwd)`" = ".`pwd`" ;
4527 then
4528 srcdir="$PWD"
4529 else
4530 srcdir=`(cd "$srcdir"; pwd)`
4533 * ) srcdir=`(cd "$srcdir"; pwd)` ;;
4534 esac
4536 ### Canonicalize the configuration name.
4538 # Make sure we can run config.sub.
4539 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4540 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4543 $as_echo_n "checking build system type... " >&6; }
4544 if test "${ac_cv_build+set}" = set; then :
4545 $as_echo_n "(cached) " >&6
4546 else
4547 ac_build_alias=$build_alias
4548 test "x$ac_build_alias" = x &&
4549 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4550 test "x$ac_build_alias" = x &&
4551 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4552 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4553 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4557 $as_echo "$ac_cv_build" >&6; }
4558 case $ac_cv_build in
4559 *-*-*) ;;
4560 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4561 esac
4562 build=$ac_cv_build
4563 ac_save_IFS=$IFS; IFS='-'
4564 set x $ac_cv_build
4565 shift
4566 build_cpu=$1
4567 build_vendor=$2
4568 shift; shift
4569 # Remember, the first character of IFS is used to create $*,
4570 # except with old shells:
4571 build_os=$*
4572 IFS=$ac_save_IFS
4573 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4577 $as_echo_n "checking host system type... " >&6; }
4578 if test "${ac_cv_host+set}" = set; then :
4579 $as_echo_n "(cached) " >&6
4580 else
4581 if test "x$host_alias" = x; then
4582 ac_cv_host=$ac_cv_build
4583 else
4584 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4585 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4590 $as_echo "$ac_cv_host" >&6; }
4591 case $ac_cv_host in
4592 *-*-*) ;;
4593 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4594 esac
4595 host=$ac_cv_host
4596 ac_save_IFS=$IFS; IFS='-'
4597 set x $ac_cv_host
4598 shift
4599 host_cpu=$1
4600 host_vendor=$2
4601 shift; shift
4602 # Remember, the first character of IFS is used to create $*,
4603 # except with old shells:
4604 host_os=$*
4605 IFS=$ac_save_IFS
4606 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4609 canonical=$host
4610 configuration=${host_alias-${build_alias-$host}}
4614 ### If you add support for a new configuration, add code to this
4615 ### switch statement to recognize your configuration name and select
4616 ### the appropriate operating system file.
4618 ### You would hope that you could choose an s/*.h
4619 ### file based on the operating system portion. However, it turns out
4620 ### that each s/*.h file is pretty manufacturer-specific.
4621 ### So we basically have to have a special case for each
4622 ### configuration name.
4624 ### As far as handling version numbers on operating systems is
4625 ### concerned, make sure things will fail in a fixable way. If
4626 ### /etc/MACHINES doesn't say anything about version numbers, be
4627 ### prepared to handle anything reasonably. If version numbers
4628 ### matter, be sure /etc/MACHINES says something about it.
4630 opsys='' unported=no
4631 case "${canonical}" in
4633 ## GNU/Linux and similar ports
4634 *-*-linux* )
4635 opsys=gnu-linux
4638 ## FreeBSD ports
4639 *-*-freebsd* )
4640 opsys=freebsd
4643 ## FreeBSD kernel + glibc based userland
4644 *-*-kfreebsd*gnu* )
4645 opsys=gnu-kfreebsd
4648 ## NetBSD ports
4649 *-*-netbsd* )
4650 opsys=netbsd
4653 ## OpenBSD ports
4654 *-*-openbsd* )
4655 opsys=openbsd
4658 ## Apple Darwin / Mac OS X
4659 *-apple-darwin* )
4660 case "${canonical}" in
4661 i[3456]86-* ) ;;
4662 powerpc-* ) ;;
4663 x86_64-* ) ;;
4664 * ) unported=yes ;;
4665 esac
4666 opsys=darwin
4667 ## Use fink packages if available.
4668 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4669 ## if test -d /sw/include && test -d /sw/lib; then
4670 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4671 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4672 ## fi
4675 ## Cygwin ports
4676 *-*-cygwin )
4677 opsys=cygwin
4680 ## HP 9000 series 700 and 800, running HP/UX
4681 hppa*-hp-hpux10.2* )
4682 opsys=hpux10-20
4684 hppa*-hp-hpux1[1-9]* )
4685 opsys=hpux11
4686 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4689 ## IBM machines
4690 rs6000-ibm-aix4.[23]* )
4691 opsys=aix4-2
4693 powerpc-ibm-aix4.[23]* )
4694 opsys=aix4-2
4696 rs6000-ibm-aix[56]* )
4697 opsys=aix4-2
4699 powerpc-ibm-aix[56]* )
4700 opsys=aix4-2
4703 ## Silicon Graphics machines
4704 ## Iris 4D
4705 mips-sgi-irix6.5 )
4706 opsys=irix6-5
4707 # Without defining _LANGUAGE_C, things get masked out in the headers
4708 # so that, for instance, grepping for `free' in stdlib.h fails and
4709 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4710 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4713 ## Suns
4714 *-sun-solaris* \
4715 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4716 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4717 case "${canonical}" in
4718 i[3456]86-*-* ) ;;
4719 amd64-*-*|x86_64-*-*) ;;
4720 sparc* ) ;;
4721 * ) unported=yes ;;
4722 esac
4723 case "${canonical}" in
4724 *-sunos5.6* | *-solaris2.6* )
4725 opsys=sol2-6
4726 RANLIB="ar -ts"
4728 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4729 opsys=sol2-6
4730 emacs_check_sunpro_c=yes
4732 *-sunos5* | *-solaris* )
4733 opsys=sol2-10
4734 emacs_check_sunpro_c=yes
4736 esac
4737 ## Watch out for a compiler that we know will not work.
4738 case "${canonical}" in
4739 *-solaris* | *-sunos5* )
4740 if [ "x$CC" = x/usr/ucb/cc ]; then
4741 ## /usr/ucb/cc doesn't work;
4742 ## we should find some other compiler that does work.
4743 unset CC
4746 *) ;;
4747 esac
4750 ## Intel 386 machines where we don't care about the manufacturer.
4751 i[3456]86-*-* )
4752 case "${canonical}" in
4753 *-darwin* ) opsys=darwin ;;
4754 *-sysv4.2uw* ) opsys=unixware ;;
4755 *-sysv5uw* ) opsys=unixware ;;
4756 *-sysv5OpenUNIX* ) opsys=unixware ;;
4757 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4758 esac
4762 unported=yes
4764 esac
4766 ### If the code above didn't choose an operating system, just choose
4767 ### an operating system based on the configuration name. You really
4768 ### only want to use this when you have no idea what the right
4769 ### operating system is; if you know what operating systems a machine
4770 ### runs, it's cleaner to make it explicit in the case statement
4771 ### above.
4772 if test x"${opsys}" = x; then
4773 case "${canonical}" in
4774 *-gnu* ) opsys=gnu ;;
4776 unported=yes
4778 esac
4783 if test $unported = yes; then
4784 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4785 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4789 #### Choose a compiler.
4791 ac_ext=c
4792 ac_cpp='$CPP $CPPFLAGS'
4793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4796 if test -n "$ac_tool_prefix"; then
4797 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4798 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800 $as_echo_n "checking for $ac_word... " >&6; }
4801 if test "${ac_cv_prog_CC+set}" = set; then :
4802 $as_echo_n "(cached) " >&6
4803 else
4804 if test -n "$CC"; then
4805 ac_cv_prog_CC="$CC" # Let the user override the test.
4806 else
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808 for as_dir in $PATH
4810 IFS=$as_save_IFS
4811 test -z "$as_dir" && as_dir=.
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4814 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 break 2
4818 done
4819 done
4820 IFS=$as_save_IFS
4824 CC=$ac_cv_prog_CC
4825 if test -n "$CC"; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4827 $as_echo "$CC" >&6; }
4828 else
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4835 if test -z "$ac_cv_prog_CC"; then
4836 ac_ct_CC=$CC
4837 # Extract the first word of "gcc", so it can be a program name with args.
4838 set dummy gcc; ac_word=$2
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4840 $as_echo_n "checking for $ac_word... " >&6; }
4841 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4842 $as_echo_n "(cached) " >&6
4843 else
4844 if test -n "$ac_ct_CC"; then
4845 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4846 else
4847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 for as_dir in $PATH
4850 IFS=$as_save_IFS
4851 test -z "$as_dir" && as_dir=.
4852 for ac_exec_ext in '' $ac_executable_extensions; do
4853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4854 ac_cv_prog_ac_ct_CC="gcc"
4855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4856 break 2
4858 done
4859 done
4860 IFS=$as_save_IFS
4864 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4865 if test -n "$ac_ct_CC"; then
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4867 $as_echo "$ac_ct_CC" >&6; }
4868 else
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4870 $as_echo "no" >&6; }
4873 if test "x$ac_ct_CC" = x; then
4874 CC=""
4875 else
4876 case $cross_compiling:$ac_tool_warned in
4877 yes:)
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4880 ac_tool_warned=yes ;;
4881 esac
4882 CC=$ac_ct_CC
4884 else
4885 CC="$ac_cv_prog_CC"
4888 if test -z "$CC"; then
4889 if test -n "$ac_tool_prefix"; then
4890 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4891 set dummy ${ac_tool_prefix}cc; ac_word=$2
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4893 $as_echo_n "checking for $ac_word... " >&6; }
4894 if test "${ac_cv_prog_CC+set}" = set; then :
4895 $as_echo_n "(cached) " >&6
4896 else
4897 if test -n "$CC"; then
4898 ac_cv_prog_CC="$CC" # Let the user override the test.
4899 else
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH
4903 IFS=$as_save_IFS
4904 test -z "$as_dir" && as_dir=.
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4907 ac_cv_prog_CC="${ac_tool_prefix}cc"
4908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4909 break 2
4911 done
4912 done
4913 IFS=$as_save_IFS
4917 CC=$ac_cv_prog_CC
4918 if test -n "$CC"; then
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4920 $as_echo "$CC" >&6; }
4921 else
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923 $as_echo "no" >&6; }
4929 if test -z "$CC"; then
4930 # Extract the first word of "cc", so it can be a program name with args.
4931 set dummy cc; ac_word=$2
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4933 $as_echo_n "checking for $ac_word... " >&6; }
4934 if test "${ac_cv_prog_CC+set}" = set; then :
4935 $as_echo_n "(cached) " >&6
4936 else
4937 if test -n "$CC"; then
4938 ac_cv_prog_CC="$CC" # Let the user override the test.
4939 else
4940 ac_prog_rejected=no
4941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942 for as_dir in $PATH
4944 IFS=$as_save_IFS
4945 test -z "$as_dir" && as_dir=.
4946 for ac_exec_ext in '' $ac_executable_extensions; do
4947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4948 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4949 ac_prog_rejected=yes
4950 continue
4952 ac_cv_prog_CC="cc"
4953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4954 break 2
4956 done
4957 done
4958 IFS=$as_save_IFS
4960 if test $ac_prog_rejected = yes; then
4961 # We found a bogon in the path, so make sure we never use it.
4962 set dummy $ac_cv_prog_CC
4963 shift
4964 if test $# != 0; then
4965 # We chose a different compiler from the bogus one.
4966 # However, it has the same basename, so the bogon will be chosen
4967 # first if we set CC to just the basename; use the full file name.
4968 shift
4969 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4974 CC=$ac_cv_prog_CC
4975 if test -n "$CC"; then
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4977 $as_echo "$CC" >&6; }
4978 else
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980 $as_echo "no" >&6; }
4985 if test -z "$CC"; then
4986 if test -n "$ac_tool_prefix"; then
4987 for ac_prog in cl.exe
4989 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4990 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4992 $as_echo_n "checking for $ac_word... " >&6; }
4993 if test "${ac_cv_prog_CC+set}" = set; then :
4994 $as_echo_n "(cached) " >&6
4995 else
4996 if test -n "$CC"; then
4997 ac_cv_prog_CC="$CC" # Let the user override the test.
4998 else
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 for as_dir in $PATH
5002 IFS=$as_save_IFS
5003 test -z "$as_dir" && as_dir=.
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5006 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5008 break 2
5010 done
5011 done
5012 IFS=$as_save_IFS
5016 CC=$ac_cv_prog_CC
5017 if test -n "$CC"; then
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5019 $as_echo "$CC" >&6; }
5020 else
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022 $as_echo "no" >&6; }
5026 test -n "$CC" && break
5027 done
5029 if test -z "$CC"; then
5030 ac_ct_CC=$CC
5031 for ac_prog in cl.exe
5033 # Extract the first word of "$ac_prog", so it can be a program name with args.
5034 set dummy $ac_prog; ac_word=$2
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5036 $as_echo_n "checking for $ac_word... " >&6; }
5037 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5038 $as_echo_n "(cached) " >&6
5039 else
5040 if test -n "$ac_ct_CC"; then
5041 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5042 else
5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044 for as_dir in $PATH
5046 IFS=$as_save_IFS
5047 test -z "$as_dir" && as_dir=.
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5050 ac_cv_prog_ac_ct_CC="$ac_prog"
5051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5052 break 2
5054 done
5055 done
5056 IFS=$as_save_IFS
5060 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5061 if test -n "$ac_ct_CC"; then
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5063 $as_echo "$ac_ct_CC" >&6; }
5064 else
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066 $as_echo "no" >&6; }
5070 test -n "$ac_ct_CC" && break
5071 done
5073 if test "x$ac_ct_CC" = x; then
5074 CC=""
5075 else
5076 case $cross_compiling:$ac_tool_warned in
5077 yes:)
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5080 ac_tool_warned=yes ;;
5081 esac
5082 CC=$ac_ct_CC
5089 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5091 as_fn_error "no acceptable C compiler found in \$PATH
5092 See \`config.log' for more details." "$LINENO" 5; }
5094 # Provide some information about the compiler.
5095 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5096 set X $ac_compile
5097 ac_compiler=$2
5098 for ac_option in --version -v -V -qversion; do
5099 { { ac_try="$ac_compiler $ac_option >&5"
5100 case "(($ac_try" in
5101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102 *) ac_try_echo=$ac_try;;
5103 esac
5104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5105 $as_echo "$ac_try_echo"; } >&5
5106 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5107 ac_status=$?
5108 if test -s conftest.err; then
5109 sed '10a\
5110 ... rest of stderr output deleted ...
5111 10q' conftest.err >conftest.er1
5112 cat conftest.er1 >&5
5114 rm -f conftest.er1 conftest.err
5115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5116 test $ac_status = 0; }
5117 done
5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h. */
5123 main ()
5127 return 0;
5129 _ACEOF
5130 ac_clean_files_save=$ac_clean_files
5131 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5132 # Try to create an executable without -o first, disregard a.out.
5133 # It will help us diagnose broken compilers, and finding out an intuition
5134 # of exeext.
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5136 $as_echo_n "checking whether the C compiler works... " >&6; }
5137 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5139 # The possible output files:
5140 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5142 ac_rmfiles=
5143 for ac_file in $ac_files
5145 case $ac_file in
5146 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5147 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5148 esac
5149 done
5150 rm -f $ac_rmfiles
5152 if { { ac_try="$ac_link_default"
5153 case "(($ac_try" in
5154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5155 *) ac_try_echo=$ac_try;;
5156 esac
5157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5158 $as_echo "$ac_try_echo"; } >&5
5159 (eval "$ac_link_default") 2>&5
5160 ac_status=$?
5161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5162 test $ac_status = 0; }; then :
5163 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5164 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5165 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5166 # so that the user can short-circuit this test for compilers unknown to
5167 # Autoconf.
5168 for ac_file in $ac_files ''
5170 test -f "$ac_file" || continue
5171 case $ac_file in
5172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5174 [ab].out )
5175 # We found the default executable, but exeext='' is most
5176 # certainly right.
5177 break;;
5178 *.* )
5179 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5180 then :; else
5181 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5183 # We set ac_cv_exeext here because the later test for it is not
5184 # safe: cross compilers may not add the suffix if given an `-o'
5185 # argument, so we may need to know it at that point already.
5186 # Even if this section looks crufty: it has the advantage of
5187 # actually working.
5188 break;;
5190 break;;
5191 esac
5192 done
5193 test "$ac_cv_exeext" = no && ac_cv_exeext=
5195 else
5196 ac_file=''
5198 if test -z "$ac_file"; then :
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5201 $as_echo "$as_me: failed program was:" >&5
5202 sed 's/^/| /' conftest.$ac_ext >&5
5204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5206 { as_fn_set_status 77
5207 as_fn_error "C compiler cannot create executables
5208 See \`config.log' for more details." "$LINENO" 5; }; }
5209 else
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5211 $as_echo "yes" >&6; }
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5214 $as_echo_n "checking for C compiler default output file name... " >&6; }
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5216 $as_echo "$ac_file" >&6; }
5217 ac_exeext=$ac_cv_exeext
5219 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5220 ac_clean_files=$ac_clean_files_save
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5222 $as_echo_n "checking for suffix of executables... " >&6; }
5223 if { { ac_try="$ac_link"
5224 case "(($ac_try" in
5225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226 *) ac_try_echo=$ac_try;;
5227 esac
5228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5229 $as_echo "$ac_try_echo"; } >&5
5230 (eval "$ac_link") 2>&5
5231 ac_status=$?
5232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5233 test $ac_status = 0; }; then :
5234 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5235 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5236 # work properly (i.e., refer to `conftest.exe'), while it won't with
5237 # `rm'.
5238 for ac_file in conftest.exe conftest conftest.*; do
5239 test -f "$ac_file" || continue
5240 case $ac_file in
5241 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5242 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5243 break;;
5244 * ) break;;
5245 esac
5246 done
5247 else
5248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5250 as_fn_error "cannot compute suffix of executables: cannot compile and link
5251 See \`config.log' for more details." "$LINENO" 5; }
5253 rm -f conftest conftest$ac_cv_exeext
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5255 $as_echo "$ac_cv_exeext" >&6; }
5257 rm -f conftest.$ac_ext
5258 EXEEXT=$ac_cv_exeext
5259 ac_exeext=$EXEEXT
5260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h. */
5262 #include <stdio.h>
5264 main ()
5266 FILE *f = fopen ("conftest.out", "w");
5267 return ferror (f) || fclose (f) != 0;
5270 return 0;
5272 _ACEOF
5273 ac_clean_files="$ac_clean_files conftest.out"
5274 # Check that the compiler produces executables we can run. If not, either
5275 # the compiler is broken, or we cross compile.
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5277 $as_echo_n "checking whether we are cross compiling... " >&6; }
5278 if test "$cross_compiling" != yes; then
5279 { { ac_try="$ac_link"
5280 case "(($ac_try" in
5281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5282 *) ac_try_echo=$ac_try;;
5283 esac
5284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5285 $as_echo "$ac_try_echo"; } >&5
5286 (eval "$ac_link") 2>&5
5287 ac_status=$?
5288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5289 test $ac_status = 0; }
5290 if { ac_try='./conftest$ac_cv_exeext'
5291 { { case "(($ac_try" in
5292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5293 *) ac_try_echo=$ac_try;;
5294 esac
5295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5296 $as_echo "$ac_try_echo"; } >&5
5297 (eval "$ac_try") 2>&5
5298 ac_status=$?
5299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5300 test $ac_status = 0; }; }; then
5301 cross_compiling=no
5302 else
5303 if test "$cross_compiling" = maybe; then
5304 cross_compiling=yes
5305 else
5306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5308 as_fn_error "cannot run C compiled programs.
5309 If you meant to cross compile, use \`--host'.
5310 See \`config.log' for more details." "$LINENO" 5; }
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5315 $as_echo "$cross_compiling" >&6; }
5317 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5318 ac_clean_files=$ac_clean_files_save
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5320 $as_echo_n "checking for suffix of object files... " >&6; }
5321 if test "${ac_cv_objext+set}" = set; then :
5322 $as_echo_n "(cached) " >&6
5323 else
5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325 /* end confdefs.h. */
5328 main ()
5332 return 0;
5334 _ACEOF
5335 rm -f conftest.o conftest.obj
5336 if { { ac_try="$ac_compile"
5337 case "(($ac_try" in
5338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5339 *) ac_try_echo=$ac_try;;
5340 esac
5341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5342 $as_echo "$ac_try_echo"; } >&5
5343 (eval "$ac_compile") 2>&5
5344 ac_status=$?
5345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5346 test $ac_status = 0; }; then :
5347 for ac_file in conftest.o conftest.obj conftest.*; do
5348 test -f "$ac_file" || continue;
5349 case $ac_file in
5350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5351 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5352 break;;
5353 esac
5354 done
5355 else
5356 $as_echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.$ac_ext >&5
5359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5361 as_fn_error "cannot compute suffix of object files: cannot compile
5362 See \`config.log' for more details." "$LINENO" 5; }
5364 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5367 $as_echo "$ac_cv_objext" >&6; }
5368 OBJEXT=$ac_cv_objext
5369 ac_objext=$OBJEXT
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5371 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5372 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5373 $as_echo_n "(cached) " >&6
5374 else
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h. */
5379 main ()
5381 #ifndef __GNUC__
5382 choke me
5383 #endif
5386 return 0;
5388 _ACEOF
5389 if ac_fn_c_try_compile "$LINENO"; then :
5390 ac_compiler_gnu=yes
5391 else
5392 ac_compiler_gnu=no
5394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5395 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5399 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5400 if test $ac_compiler_gnu = yes; then
5401 GCC=yes
5402 else
5403 GCC=
5405 ac_test_CFLAGS=${CFLAGS+set}
5406 ac_save_CFLAGS=$CFLAGS
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5408 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5409 if test "${ac_cv_prog_cc_g+set}" = set; then :
5410 $as_echo_n "(cached) " >&6
5411 else
5412 ac_save_c_werror_flag=$ac_c_werror_flag
5413 ac_c_werror_flag=yes
5414 ac_cv_prog_cc_g=no
5415 CFLAGS="-g"
5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417 /* end confdefs.h. */
5420 main ()
5424 return 0;
5426 _ACEOF
5427 if ac_fn_c_try_compile "$LINENO"; then :
5428 ac_cv_prog_cc_g=yes
5429 else
5430 CFLAGS=""
5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432 /* end confdefs.h. */
5435 main ()
5439 return 0;
5441 _ACEOF
5442 if ac_fn_c_try_compile "$LINENO"; then :
5444 else
5445 ac_c_werror_flag=$ac_save_c_werror_flag
5446 CFLAGS="-g"
5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h. */
5451 main ()
5455 return 0;
5457 _ACEOF
5458 if ac_fn_c_try_compile "$LINENO"; then :
5459 ac_cv_prog_cc_g=yes
5461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5466 ac_c_werror_flag=$ac_save_c_werror_flag
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5469 $as_echo "$ac_cv_prog_cc_g" >&6; }
5470 if test "$ac_test_CFLAGS" = set; then
5471 CFLAGS=$ac_save_CFLAGS
5472 elif test $ac_cv_prog_cc_g = yes; then
5473 if test "$GCC" = yes; then
5474 CFLAGS="-g -O2"
5475 else
5476 CFLAGS="-g"
5478 else
5479 if test "$GCC" = yes; then
5480 CFLAGS="-O2"
5481 else
5482 CFLAGS=
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5486 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5487 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5488 $as_echo_n "(cached) " >&6
5489 else
5490 ac_cv_prog_cc_c89=no
5491 ac_save_CC=$CC
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5494 #include <stdarg.h>
5495 #include <stdio.h>
5496 #include <sys/types.h>
5497 #include <sys/stat.h>
5498 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5499 struct buf { int x; };
5500 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5501 static char *e (p, i)
5502 char **p;
5503 int i;
5505 return p[i];
5507 static char *f (char * (*g) (char **, int), char **p, ...)
5509 char *s;
5510 va_list v;
5511 va_start (v,p);
5512 s = g (p, va_arg (v,int));
5513 va_end (v);
5514 return s;
5517 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5518 function prototypes and stuff, but not '\xHH' hex character constants.
5519 These don't provoke an error unfortunately, instead are silently treated
5520 as 'x'. The following induces an error, until -std is added to get
5521 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5522 array size at least. It's necessary to write '\x00'==0 to get something
5523 that's true only with -std. */
5524 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5526 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5527 inside strings and character constants. */
5528 #define FOO(x) 'x'
5529 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5531 int test (int i, double x);
5532 struct s1 {int (*f) (int a);};
5533 struct s2 {int (*f) (double a);};
5534 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5535 int argc;
5536 char **argv;
5538 main ()
5540 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5542 return 0;
5544 _ACEOF
5545 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5546 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5548 CC="$ac_save_CC $ac_arg"
5549 if ac_fn_c_try_compile "$LINENO"; then :
5550 ac_cv_prog_cc_c89=$ac_arg
5552 rm -f core conftest.err conftest.$ac_objext
5553 test "x$ac_cv_prog_cc_c89" != "xno" && break
5554 done
5555 rm -f conftest.$ac_ext
5556 CC=$ac_save_CC
5559 # AC_CACHE_VAL
5560 case "x$ac_cv_prog_cc_c89" in
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5563 $as_echo "none needed" >&6; } ;;
5564 xno)
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5566 $as_echo "unsupported" >&6; } ;;
5568 CC="$CC $ac_cv_prog_cc_c89"
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5570 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5571 esac
5572 if test "x$ac_cv_prog_cc_c89" != xno; then :
5576 ac_ext=c
5577 ac_cpp='$CPP $CPPFLAGS'
5578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5581 DEPDIR="${am__leading_dot}deps"
5583 ac_config_commands="$ac_config_commands depfiles"
5586 am_make=${MAKE-make}
5587 cat > confinc << 'END'
5588 am__doit:
5589 @echo this is the am__doit target
5590 .PHONY: am__doit
5592 # If we don't find an include directive, just comment out the code.
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5594 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5595 am__include="#"
5596 am__quote=
5597 _am_result=none
5598 # First try GNU make style include.
5599 echo "include confinc" > confmf
5600 # Ignore all kinds of additional output from `make'.
5601 case `$am_make -s -f confmf 2> /dev/null` in #(
5602 *the\ am__doit\ target*)
5603 am__include=include
5604 am__quote=
5605 _am_result=GNU
5607 esac
5608 # Now try BSD make style include.
5609 if test "$am__include" = "#"; then
5610 echo '.include "confinc"' > confmf
5611 case `$am_make -s -f confmf 2> /dev/null` in #(
5612 *the\ am__doit\ target*)
5613 am__include=.include
5614 am__quote="\""
5615 _am_result=BSD
5617 esac
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5622 $as_echo "$_am_result" >&6; }
5623 rm -f confinc confmf
5625 # Check whether --enable-dependency-tracking was given.
5626 if test "${enable_dependency_tracking+set}" = set; then :
5627 enableval=$enable_dependency_tracking;
5630 if test "x$enable_dependency_tracking" != xno; then
5631 am_depcomp="$ac_aux_dir/depcomp"
5632 AMDEPBACKSLASH='\'
5634 if test "x$enable_dependency_tracking" != xno; then
5635 AMDEP_TRUE=
5636 AMDEP_FALSE='#'
5637 else
5638 AMDEP_TRUE='#'
5639 AMDEP_FALSE=
5644 depcc="$CC" am_compiler_list=
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5647 $as_echo_n "checking dependency style of $depcc... " >&6; }
5648 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5649 $as_echo_n "(cached) " >&6
5650 else
5651 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5652 # We make a subdir and do the tests there. Otherwise we can end up
5653 # making bogus files that we don't know about and never remove. For
5654 # instance it was reported that on HP-UX the gcc test will end up
5655 # making a dummy file named `D' -- because `-MD' means `put the output
5656 # in D'.
5657 mkdir conftest.dir
5658 # Copy depcomp to subdir because otherwise we won't find it if we're
5659 # using a relative directory.
5660 cp "$am_depcomp" conftest.dir
5661 cd conftest.dir
5662 # We will build objects and dependencies in a subdirectory because
5663 # it helps to detect inapplicable dependency modes. For instance
5664 # both Tru64's cc and ICC support -MD to output dependencies as a
5665 # side effect of compilation, but ICC will put the dependencies in
5666 # the current directory while Tru64 will put them in the object
5667 # directory.
5668 mkdir sub
5670 am_cv_CC_dependencies_compiler_type=none
5671 if test "$am_compiler_list" = ""; then
5672 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5674 am__universal=false
5675 case " $depcc " in #(
5676 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5677 esac
5679 for depmode in $am_compiler_list; do
5680 # Setup a source with many dependencies, because some compilers
5681 # like to wrap large dependency lists on column 80 (with \), and
5682 # we should not choose a depcomp mode which is confused by this.
5684 # We need to recreate these files for each test, as the compiler may
5685 # overwrite some of them when testing with obscure command lines.
5686 # This happens at least with the AIX C compiler.
5687 : > sub/conftest.c
5688 for i in 1 2 3 4 5 6; do
5689 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5690 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5691 # Solaris 8's {/usr,}/bin/sh.
5692 touch sub/conftst$i.h
5693 done
5694 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5696 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5697 # mode. It turns out that the SunPro C++ compiler does not properly
5698 # handle `-M -o', and we need to detect this. Also, some Intel
5699 # versions had trouble with output in subdirs
5700 am__obj=sub/conftest.${OBJEXT-o}
5701 am__minus_obj="-o $am__obj"
5702 case $depmode in
5703 gcc)
5704 # This depmode causes a compiler race in universal mode.
5705 test "$am__universal" = false || continue
5707 nosideeffect)
5708 # after this tag, mechanisms are not by side-effect, so they'll
5709 # only be used when explicitly requested
5710 if test "x$enable_dependency_tracking" = xyes; then
5711 continue
5712 else
5713 break
5716 msvisualcpp | msvcmsys)
5717 # This compiler won't grok `-c -o', but also, the minuso test has
5718 # not run yet. These depmodes are late enough in the game, and
5719 # so weak that their functioning should not be impacted.
5720 am__obj=conftest.${OBJEXT-o}
5721 am__minus_obj=
5723 none) break ;;
5724 esac
5725 if depmode=$depmode \
5726 source=sub/conftest.c object=$am__obj \
5727 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5728 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5729 >/dev/null 2>conftest.err &&
5730 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5731 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5732 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5733 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5734 # icc doesn't choke on unknown options, it will just issue warnings
5735 # or remarks (even with -Werror). So we grep stderr for any message
5736 # that says an option was ignored or not supported.
5737 # When given -MP, icc 7.0 and 7.1 complain thusly:
5738 # icc: Command line warning: ignoring option '-M'; no argument required
5739 # The diagnosis changed in icc 8.0:
5740 # icc: Command line remark: option '-MP' not supported
5741 if (grep 'ignoring option' conftest.err ||
5742 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5743 am_cv_CC_dependencies_compiler_type=$depmode
5744 break
5747 done
5749 cd ..
5750 rm -rf conftest.dir
5751 else
5752 am_cv_CC_dependencies_compiler_type=none
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5757 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5758 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5761 test "x$enable_dependency_tracking" != xno \
5762 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5763 am__fastdepCC_TRUE=
5764 am__fastdepCC_FALSE='#'
5765 else
5766 am__fastdepCC_TRUE='#'
5767 am__fastdepCC_FALSE=
5771 if test "x$CC" != xcc; then
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5773 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5774 else
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5776 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5778 set dummy $CC; ac_cc=`$as_echo "$2" |
5779 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5780 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5781 $as_echo_n "(cached) " >&6
5782 else
5783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5784 /* end confdefs.h. */
5787 main ()
5791 return 0;
5793 _ACEOF
5794 # Make sure it works both with $CC and with simple cc.
5795 # We do the test twice because some compilers refuse to overwrite an
5796 # existing .o file with -o, though they will create one.
5797 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5798 rm -f conftest2.*
5799 if { { case "(($ac_try" in
5800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801 *) ac_try_echo=$ac_try;;
5802 esac
5803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5804 $as_echo "$ac_try_echo"; } >&5
5805 (eval "$ac_try") 2>&5
5806 ac_status=$?
5807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5808 test $ac_status = 0; } &&
5809 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811 *) ac_try_echo=$ac_try;;
5812 esac
5813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5814 $as_echo "$ac_try_echo"; } >&5
5815 (eval "$ac_try") 2>&5
5816 ac_status=$?
5817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5818 test $ac_status = 0; };
5819 then
5820 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5821 if test "x$CC" != xcc; then
5822 # Test first that cc exists at all.
5823 if { ac_try='cc -c conftest.$ac_ext >&5'
5824 { { case "(($ac_try" in
5825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826 *) ac_try_echo=$ac_try;;
5827 esac
5828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5829 $as_echo "$ac_try_echo"; } >&5
5830 (eval "$ac_try") 2>&5
5831 ac_status=$?
5832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5833 test $ac_status = 0; }; }; then
5834 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5835 rm -f conftest2.*
5836 if { { case "(($ac_try" in
5837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5838 *) ac_try_echo=$ac_try;;
5839 esac
5840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5841 $as_echo "$ac_try_echo"; } >&5
5842 (eval "$ac_try") 2>&5
5843 ac_status=$?
5844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5845 test $ac_status = 0; } &&
5846 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5848 *) ac_try_echo=$ac_try;;
5849 esac
5850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5851 $as_echo "$ac_try_echo"; } >&5
5852 (eval "$ac_try") 2>&5
5853 ac_status=$?
5854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5855 test $ac_status = 0; };
5856 then
5857 # cc works too.
5859 else
5860 # cc exists but doesn't like -o.
5861 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5865 else
5866 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5868 rm -f core conftest*
5871 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5873 $as_echo "yes" >&6; }
5874 else
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876 $as_echo "no" >&6; }
5878 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5882 # FIXME: we rely on the cache variable name because
5883 # there is no other way.
5884 set dummy $CC
5885 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5886 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5887 if test "$am_t" != yes; then
5888 # Losing compiler, so override with the script.
5889 # FIXME: It is wrong to rewrite CC.
5890 # But if we don't then we get into trouble of one sort or another.
5891 # A longer-term fix would be to have automake use am__CC in this case,
5892 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5893 CC="$am_aux_dir/compile $CC"
5898 if test x$GCC = xyes; then
5899 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5900 else
5901 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5904 # Avoid gnulib's tests for HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW,
5905 # as we don't use them.
5907 # Avoid gnulib's threadlib module, as we do threads our own way.
5910 # Initialize gnulib right after choosing the compiler.
5912 ac_ext=c
5913 ac_cpp='$CPP $CPPFLAGS'
5914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5918 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5919 # On Suns, sometimes $CPP names a directory.
5920 if test -n "$CPP" && test -d "$CPP"; then
5921 CPP=
5923 if test -z "$CPP"; then
5924 if test "${ac_cv_prog_CPP+set}" = set; then :
5925 $as_echo_n "(cached) " >&6
5926 else
5927 # Double quotes because CPP needs to be expanded
5928 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5930 ac_preproc_ok=false
5931 for ac_c_preproc_warn_flag in '' yes
5933 # Use a header file that comes with gcc, so configuring glibc
5934 # with a fresh cross-compiler works.
5935 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5936 # <limits.h> exists even on freestanding compilers.
5937 # On the NeXT, cc -E runs the code through the compiler's parser,
5938 # not just through cpp. "Syntax error" is here to catch this case.
5939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5940 /* end confdefs.h. */
5941 #ifdef __STDC__
5942 # include <limits.h>
5943 #else
5944 # include <assert.h>
5945 #endif
5946 Syntax error
5947 _ACEOF
5948 if ac_fn_c_try_cpp "$LINENO"; then :
5950 else
5951 # Broken: fails on valid input.
5952 continue
5954 rm -f conftest.err conftest.$ac_ext
5956 # OK, works on sane cases. Now check whether nonexistent headers
5957 # can be detected and how.
5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959 /* end confdefs.h. */
5960 #include <ac_nonexistent.h>
5961 _ACEOF
5962 if ac_fn_c_try_cpp "$LINENO"; then :
5963 # Broken: success on invalid input.
5964 continue
5965 else
5966 # Passes both tests.
5967 ac_preproc_ok=:
5968 break
5970 rm -f conftest.err conftest.$ac_ext
5972 done
5973 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5974 rm -f conftest.err conftest.$ac_ext
5975 if $ac_preproc_ok; then :
5976 break
5979 done
5980 ac_cv_prog_CPP=$CPP
5983 CPP=$ac_cv_prog_CPP
5984 else
5985 ac_cv_prog_CPP=$CPP
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5988 $as_echo "$CPP" >&6; }
5989 ac_preproc_ok=false
5990 for ac_c_preproc_warn_flag in '' yes
5992 # Use a header file that comes with gcc, so configuring glibc
5993 # with a fresh cross-compiler works.
5994 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5995 # <limits.h> exists even on freestanding compilers.
5996 # On the NeXT, cc -E runs the code through the compiler's parser,
5997 # not just through cpp. "Syntax error" is here to catch this case.
5998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5999 /* end confdefs.h. */
6000 #ifdef __STDC__
6001 # include <limits.h>
6002 #else
6003 # include <assert.h>
6004 #endif
6005 Syntax error
6006 _ACEOF
6007 if ac_fn_c_try_cpp "$LINENO"; then :
6009 else
6010 # Broken: fails on valid input.
6011 continue
6013 rm -f conftest.err conftest.$ac_ext
6015 # OK, works on sane cases. Now check whether nonexistent headers
6016 # can be detected and how.
6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h. */
6019 #include <ac_nonexistent.h>
6020 _ACEOF
6021 if ac_fn_c_try_cpp "$LINENO"; then :
6022 # Broken: success on invalid input.
6023 continue
6024 else
6025 # Passes both tests.
6026 ac_preproc_ok=:
6027 break
6029 rm -f conftest.err conftest.$ac_ext
6031 done
6032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6033 rm -f conftest.err conftest.$ac_ext
6034 if $ac_preproc_ok; then :
6036 else
6037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6039 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6040 See \`config.log' for more details." "$LINENO" 5; }
6043 ac_ext=c
6044 ac_cpp='$CPP $CPPFLAGS'
6045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6051 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6052 if test "${ac_cv_path_GREP+set}" = set; then :
6053 $as_echo_n "(cached) " >&6
6054 else
6055 if test -z "$GREP"; then
6056 ac_path_GREP_found=false
6057 # Loop through the user's path and test for each of PROGNAME-LIST
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6061 IFS=$as_save_IFS
6062 test -z "$as_dir" && as_dir=.
6063 for ac_prog in grep ggrep; do
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6066 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6067 # Check for GNU ac_path_GREP and select it if it is found.
6068 # Check for GNU $ac_path_GREP
6069 case `"$ac_path_GREP" --version 2>&1` in
6070 *GNU*)
6071 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6073 ac_count=0
6074 $as_echo_n 0123456789 >"conftest.in"
6075 while :
6077 cat "conftest.in" "conftest.in" >"conftest.tmp"
6078 mv "conftest.tmp" "conftest.in"
6079 cp "conftest.in" "conftest.nl"
6080 $as_echo 'GREP' >> "conftest.nl"
6081 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6082 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6083 as_fn_arith $ac_count + 1 && ac_count=$as_val
6084 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6085 # Best one so far, save it but keep looking for a better one
6086 ac_cv_path_GREP="$ac_path_GREP"
6087 ac_path_GREP_max=$ac_count
6089 # 10*(2^10) chars as input seems more than enough
6090 test $ac_count -gt 10 && break
6091 done
6092 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6093 esac
6095 $ac_path_GREP_found && break 3
6096 done
6097 done
6098 done
6099 IFS=$as_save_IFS
6100 if test -z "$ac_cv_path_GREP"; then
6101 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6103 else
6104 ac_cv_path_GREP=$GREP
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6109 $as_echo "$ac_cv_path_GREP" >&6; }
6110 GREP="$ac_cv_path_GREP"
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6114 $as_echo_n "checking for egrep... " >&6; }
6115 if test "${ac_cv_path_EGREP+set}" = set; then :
6116 $as_echo_n "(cached) " >&6
6117 else
6118 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6119 then ac_cv_path_EGREP="$GREP -E"
6120 else
6121 if test -z "$EGREP"; then
6122 ac_path_EGREP_found=false
6123 # Loop through the user's path and test for each of PROGNAME-LIST
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6127 IFS=$as_save_IFS
6128 test -z "$as_dir" && as_dir=.
6129 for ac_prog in egrep; do
6130 for ac_exec_ext in '' $ac_executable_extensions; do
6131 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6132 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6133 # Check for GNU ac_path_EGREP and select it if it is found.
6134 # Check for GNU $ac_path_EGREP
6135 case `"$ac_path_EGREP" --version 2>&1` in
6136 *GNU*)
6137 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6139 ac_count=0
6140 $as_echo_n 0123456789 >"conftest.in"
6141 while :
6143 cat "conftest.in" "conftest.in" >"conftest.tmp"
6144 mv "conftest.tmp" "conftest.in"
6145 cp "conftest.in" "conftest.nl"
6146 $as_echo 'EGREP' >> "conftest.nl"
6147 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6148 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6149 as_fn_arith $ac_count + 1 && ac_count=$as_val
6150 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6151 # Best one so far, save it but keep looking for a better one
6152 ac_cv_path_EGREP="$ac_path_EGREP"
6153 ac_path_EGREP_max=$ac_count
6155 # 10*(2^10) chars as input seems more than enough
6156 test $ac_count -gt 10 && break
6157 done
6158 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6159 esac
6161 $ac_path_EGREP_found && break 3
6162 done
6163 done
6164 done
6165 IFS=$as_save_IFS
6166 if test -z "$ac_cv_path_EGREP"; then
6167 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6169 else
6170 ac_cv_path_EGREP=$EGREP
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6176 $as_echo "$ac_cv_path_EGREP" >&6; }
6177 EGREP="$ac_cv_path_EGREP"
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6183 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6184 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6185 $as_echo_n "(cached) " >&6
6186 else
6188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6189 /* end confdefs.h. */
6191 #ifdef __ACK__
6192 Amsterdam
6193 #endif
6195 _ACEOF
6196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6197 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6198 gl_cv_c_amsterdam_compiler=yes
6199 else
6200 gl_cv_c_amsterdam_compiler=no
6202 rm -f conftest*
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6207 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6208 if test -z "$AR"; then
6209 if test $gl_cv_c_amsterdam_compiler = yes; then
6210 AR='cc -c.a'
6211 if test -z "$ARFLAGS"; then
6212 ARFLAGS='-o'
6214 else
6215 if test -n "$ac_tool_prefix"; then
6216 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6217 set dummy ${ac_tool_prefix}ar; ac_word=$2
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6219 $as_echo_n "checking for $ac_word... " >&6; }
6220 if test "${ac_cv_prog_AR+set}" = set; then :
6221 $as_echo_n "(cached) " >&6
6222 else
6223 if test -n "$AR"; then
6224 ac_cv_prog_AR="$AR" # Let the user override the test.
6225 else
6226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227 for as_dir in $PATH
6229 IFS=$as_save_IFS
6230 test -z "$as_dir" && as_dir=.
6231 for ac_exec_ext in '' $ac_executable_extensions; do
6232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6233 ac_cv_prog_AR="${ac_tool_prefix}ar"
6234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6235 break 2
6237 done
6238 done
6239 IFS=$as_save_IFS
6243 AR=$ac_cv_prog_AR
6244 if test -n "$AR"; then
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6246 $as_echo "$AR" >&6; }
6247 else
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6249 $as_echo "no" >&6; }
6254 if test -z "$ac_cv_prog_AR"; then
6255 ac_ct_AR=$AR
6256 # Extract the first word of "ar", so it can be a program name with args.
6257 set dummy ar; ac_word=$2
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6259 $as_echo_n "checking for $ac_word... " >&6; }
6260 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6261 $as_echo_n "(cached) " >&6
6262 else
6263 if test -n "$ac_ct_AR"; then
6264 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6265 else
6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267 for as_dir in $PATH
6269 IFS=$as_save_IFS
6270 test -z "$as_dir" && as_dir=.
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6273 ac_cv_prog_ac_ct_AR="ar"
6274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6275 break 2
6277 done
6278 done
6279 IFS=$as_save_IFS
6283 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6284 if test -n "$ac_ct_AR"; then
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6286 $as_echo "$ac_ct_AR" >&6; }
6287 else
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6289 $as_echo "no" >&6; }
6292 if test "x$ac_ct_AR" = x; then
6293 AR="ar"
6294 else
6295 case $cross_compiling:$ac_tool_warned in
6296 yes:)
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6299 ac_tool_warned=yes ;;
6300 esac
6301 AR=$ac_ct_AR
6303 else
6304 AR="$ac_cv_prog_AR"
6307 if test -z "$ARFLAGS"; then
6308 ARFLAGS='cru'
6311 else
6312 if test -z "$ARFLAGS"; then
6313 ARFLAGS='cru'
6318 if test -z "$RANLIB"; then
6319 if test $gl_cv_c_amsterdam_compiler = yes; then
6320 RANLIB=':'
6321 else
6322 if test -n "$ac_tool_prefix"; then
6323 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6324 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6326 $as_echo_n "checking for $ac_word... " >&6; }
6327 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6328 $as_echo_n "(cached) " >&6
6329 else
6330 if test -n "$RANLIB"; then
6331 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6332 else
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 for as_dir in $PATH
6336 IFS=$as_save_IFS
6337 test -z "$as_dir" && as_dir=.
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6340 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6342 break 2
6344 done
6345 done
6346 IFS=$as_save_IFS
6350 RANLIB=$ac_cv_prog_RANLIB
6351 if test -n "$RANLIB"; then
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6353 $as_echo "$RANLIB" >&6; }
6354 else
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6356 $as_echo "no" >&6; }
6361 if test -z "$ac_cv_prog_RANLIB"; then
6362 ac_ct_RANLIB=$RANLIB
6363 # Extract the first word of "ranlib", so it can be a program name with args.
6364 set dummy ranlib; ac_word=$2
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6366 $as_echo_n "checking for $ac_word... " >&6; }
6367 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6368 $as_echo_n "(cached) " >&6
6369 else
6370 if test -n "$ac_ct_RANLIB"; then
6371 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6372 else
6373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374 for as_dir in $PATH
6376 IFS=$as_save_IFS
6377 test -z "$as_dir" && as_dir=.
6378 for ac_exec_ext in '' $ac_executable_extensions; do
6379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6380 ac_cv_prog_ac_ct_RANLIB="ranlib"
6381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6382 break 2
6384 done
6385 done
6386 IFS=$as_save_IFS
6390 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6391 if test -n "$ac_ct_RANLIB"; then
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6393 $as_echo "$ac_ct_RANLIB" >&6; }
6394 else
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6396 $as_echo "no" >&6; }
6399 if test "x$ac_ct_RANLIB" = x; then
6400 RANLIB=":"
6401 else
6402 case $cross_compiling:$ac_tool_warned in
6403 yes:)
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6406 ac_tool_warned=yes ;;
6407 esac
6408 RANLIB=$ac_ct_RANLIB
6410 else
6411 RANLIB="$ac_cv_prog_RANLIB"
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6419 $as_echo_n "checking for ANSI C header files... " >&6; }
6420 if test "${ac_cv_header_stdc+set}" = set; then :
6421 $as_echo_n "(cached) " >&6
6422 else
6423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h. */
6425 #include <stdlib.h>
6426 #include <stdarg.h>
6427 #include <string.h>
6428 #include <float.h>
6431 main ()
6435 return 0;
6437 _ACEOF
6438 if ac_fn_c_try_compile "$LINENO"; then :
6439 ac_cv_header_stdc=yes
6440 else
6441 ac_cv_header_stdc=no
6443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6445 if test $ac_cv_header_stdc = yes; then
6446 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h. */
6449 #include <string.h>
6451 _ACEOF
6452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6453 $EGREP "memchr" >/dev/null 2>&1; then :
6455 else
6456 ac_cv_header_stdc=no
6458 rm -f conftest*
6462 if test $ac_cv_header_stdc = yes; then
6463 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6465 /* end confdefs.h. */
6466 #include <stdlib.h>
6468 _ACEOF
6469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6470 $EGREP "free" >/dev/null 2>&1; then :
6472 else
6473 ac_cv_header_stdc=no
6475 rm -f conftest*
6479 if test $ac_cv_header_stdc = yes; then
6480 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6481 if test "$cross_compiling" = yes; then :
6483 else
6484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485 /* end confdefs.h. */
6486 #include <ctype.h>
6487 #include <stdlib.h>
6488 #if ((' ' & 0x0FF) == 0x020)
6489 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6490 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6491 #else
6492 # define ISLOWER(c) \
6493 (('a' <= (c) && (c) <= 'i') \
6494 || ('j' <= (c) && (c) <= 'r') \
6495 || ('s' <= (c) && (c) <= 'z'))
6496 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6497 #endif
6499 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6501 main ()
6503 int i;
6504 for (i = 0; i < 256; i++)
6505 if (XOR (islower (i), ISLOWER (i))
6506 || toupper (i) != TOUPPER (i))
6507 return 2;
6508 return 0;
6510 _ACEOF
6511 if ac_fn_c_try_run "$LINENO"; then :
6513 else
6514 ac_cv_header_stdc=no
6516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6517 conftest.$ac_objext conftest.beam conftest.$ac_ext
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6523 $as_echo "$ac_cv_header_stdc" >&6; }
6524 if test $ac_cv_header_stdc = yes; then
6526 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6530 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6531 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6532 inttypes.h stdint.h unistd.h
6533 do :
6534 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6535 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6537 eval as_val=\$$as_ac_Header
6538 if test "x$as_val" = x""yes; then :
6539 cat >>confdefs.h <<_ACEOF
6540 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6541 _ACEOF
6545 done
6549 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6550 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6551 MINIX=yes
6552 else
6553 MINIX=
6557 if test "$MINIX" = yes; then
6559 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6562 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6565 $as_echo "#define _MINIX 1" >>confdefs.h
6568 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6574 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6575 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6576 $as_echo_n "(cached) " >&6
6577 else
6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579 /* end confdefs.h. */
6581 # define __EXTENSIONS__ 1
6582 $ac_includes_default
6584 main ()
6588 return 0;
6590 _ACEOF
6591 if ac_fn_c_try_compile "$LINENO"; then :
6592 ac_cv_safe_to_define___extensions__=yes
6593 else
6594 ac_cv_safe_to_define___extensions__=no
6596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6599 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6600 test $ac_cv_safe_to_define___extensions__ = yes &&
6601 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6603 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6605 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6607 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6609 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6611 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6614 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6615 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
6616 $as_echo_n "(cached) " >&6
6617 else
6618 ac_cv_should_define__xopen_source=no
6619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620 /* end confdefs.h. */
6622 #include <wchar.h>
6623 mbstate_t x;
6625 main ()
6629 return 0;
6631 _ACEOF
6632 if ac_fn_c_try_compile "$LINENO"; then :
6634 else
6635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636 /* end confdefs.h. */
6638 #define _XOPEN_SOURCE 500
6639 #include <wchar.h>
6640 mbstate_t x;
6642 main ()
6646 return 0;
6648 _ACEOF
6649 if ac_fn_c_try_compile "$LINENO"; then :
6650 ac_cv_should_define__xopen_source=yes
6652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6657 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6658 test $ac_cv_should_define__xopen_source = yes &&
6659 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6668 # Check whether --enable-largefile was given.
6669 if test "${enable_largefile+set}" = set; then :
6670 enableval=$enable_largefile;
6673 if test "$enable_largefile" != no; then
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6676 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6677 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6678 $as_echo_n "(cached) " >&6
6679 else
6680 ac_cv_sys_largefile_CC=no
6681 if test "$GCC" != yes; then
6682 ac_save_CC=$CC
6683 while :; do
6684 # IRIX 6.2 and later do not support large files by default,
6685 # so use the C compiler's -n32 option if that helps.
6686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6687 /* end confdefs.h. */
6688 #include <sys/types.h>
6689 /* Check that off_t can represent 2**63 - 1 correctly.
6690 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6691 since some C++ compilers masquerading as C compilers
6692 incorrectly reject 9223372036854775807. */
6693 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6694 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6695 && LARGE_OFF_T % 2147483647 == 1)
6696 ? 1 : -1];
6698 main ()
6702 return 0;
6704 _ACEOF
6705 if ac_fn_c_try_compile "$LINENO"; then :
6706 break
6708 rm -f core conftest.err conftest.$ac_objext
6709 CC="$CC -n32"
6710 if ac_fn_c_try_compile "$LINENO"; then :
6711 ac_cv_sys_largefile_CC=' -n32'; break
6713 rm -f core conftest.err conftest.$ac_objext
6714 break
6715 done
6716 CC=$ac_save_CC
6717 rm -f conftest.$ac_ext
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6721 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6722 if test "$ac_cv_sys_largefile_CC" != no; then
6723 CC=$CC$ac_cv_sys_largefile_CC
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6727 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6728 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6729 $as_echo_n "(cached) " >&6
6730 else
6731 while :; do
6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6734 #include <sys/types.h>
6735 /* Check that off_t can represent 2**63 - 1 correctly.
6736 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6737 since some C++ compilers masquerading as C compilers
6738 incorrectly reject 9223372036854775807. */
6739 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6740 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6741 && LARGE_OFF_T % 2147483647 == 1)
6742 ? 1 : -1];
6744 main ()
6748 return 0;
6750 _ACEOF
6751 if ac_fn_c_try_compile "$LINENO"; then :
6752 ac_cv_sys_file_offset_bits=no; break
6754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756 /* end confdefs.h. */
6757 #define _FILE_OFFSET_BITS 64
6758 #include <sys/types.h>
6759 /* Check that off_t can represent 2**63 - 1 correctly.
6760 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6761 since some C++ compilers masquerading as C compilers
6762 incorrectly reject 9223372036854775807. */
6763 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6764 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6765 && LARGE_OFF_T % 2147483647 == 1)
6766 ? 1 : -1];
6768 main ()
6772 return 0;
6774 _ACEOF
6775 if ac_fn_c_try_compile "$LINENO"; then :
6776 ac_cv_sys_file_offset_bits=64; break
6778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6779 ac_cv_sys_file_offset_bits=unknown
6780 break
6781 done
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6784 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6785 case $ac_cv_sys_file_offset_bits in #(
6786 no | unknown) ;;
6788 cat >>confdefs.h <<_ACEOF
6789 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6790 _ACEOF
6792 esac
6793 rm -rf conftest*
6794 if test $ac_cv_sys_file_offset_bits = unknown; then
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6796 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6797 if test "${ac_cv_sys_large_files+set}" = set; then :
6798 $as_echo_n "(cached) " >&6
6799 else
6800 while :; do
6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h. */
6803 #include <sys/types.h>
6804 /* Check that off_t can represent 2**63 - 1 correctly.
6805 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6806 since some C++ compilers masquerading as C compilers
6807 incorrectly reject 9223372036854775807. */
6808 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6809 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6810 && LARGE_OFF_T % 2147483647 == 1)
6811 ? 1 : -1];
6813 main ()
6817 return 0;
6819 _ACEOF
6820 if ac_fn_c_try_compile "$LINENO"; then :
6821 ac_cv_sys_large_files=no; break
6823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6825 /* end confdefs.h. */
6826 #define _LARGE_FILES 1
6827 #include <sys/types.h>
6828 /* Check that off_t can represent 2**63 - 1 correctly.
6829 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6830 since some C++ compilers masquerading as C compilers
6831 incorrectly reject 9223372036854775807. */
6832 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6833 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6834 && LARGE_OFF_T % 2147483647 == 1)
6835 ? 1 : -1];
6837 main ()
6841 return 0;
6843 _ACEOF
6844 if ac_fn_c_try_compile "$LINENO"; then :
6845 ac_cv_sys_large_files=1; break
6847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6848 ac_cv_sys_large_files=unknown
6849 break
6850 done
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6853 $as_echo "$ac_cv_sys_large_files" >&6; }
6854 case $ac_cv_sys_large_files in #(
6855 no | unknown) ;;
6857 cat >>confdefs.h <<_ACEOF
6858 #define _LARGE_FILES $ac_cv_sys_large_files
6859 _ACEOF
6861 esac
6862 rm -rf conftest*
6866 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6870 case $ac_cv_prog_cc_stdc in #(
6871 no) :
6872 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6873 *) :
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6875 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6876 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6877 $as_echo_n "(cached) " >&6
6878 else
6879 ac_cv_prog_cc_c99=no
6880 ac_save_CC=$CC
6881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882 /* end confdefs.h. */
6883 #include <stdarg.h>
6884 #include <stdbool.h>
6885 #include <stdlib.h>
6886 #include <wchar.h>
6887 #include <stdio.h>
6889 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6890 #define debug(...) fprintf (stderr, __VA_ARGS__)
6891 #define showlist(...) puts (#__VA_ARGS__)
6892 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6893 static void
6894 test_varargs_macros (void)
6896 int x = 1234;
6897 int y = 5678;
6898 debug ("Flag");
6899 debug ("X = %d\n", x);
6900 showlist (The first, second, and third items.);
6901 report (x>y, "x is %d but y is %d", x, y);
6904 // Check long long types.
6905 #define BIG64 18446744073709551615ull
6906 #define BIG32 4294967295ul
6907 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6908 #if !BIG_OK
6909 your preprocessor is broken;
6910 #endif
6911 #if BIG_OK
6912 #else
6913 your preprocessor is broken;
6914 #endif
6915 static long long int bignum = -9223372036854775807LL;
6916 static unsigned long long int ubignum = BIG64;
6918 struct incomplete_array
6920 int datasize;
6921 double data[];
6924 struct named_init {
6925 int number;
6926 const wchar_t *name;
6927 double average;
6930 typedef const char *ccp;
6932 static inline int
6933 test_restrict (ccp restrict text)
6935 // See if C++-style comments work.
6936 // Iterate through items via the restricted pointer.
6937 // Also check for declarations in for loops.
6938 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6939 continue;
6940 return 0;
6943 // Check varargs and va_copy.
6944 static void
6945 test_varargs (const char *format, ...)
6947 va_list args;
6948 va_start (args, format);
6949 va_list args_copy;
6950 va_copy (args_copy, args);
6952 const char *str;
6953 int number;
6954 float fnumber;
6956 while (*format)
6958 switch (*format++)
6960 case 's': // string
6961 str = va_arg (args_copy, const char *);
6962 break;
6963 case 'd': // int
6964 number = va_arg (args_copy, int);
6965 break;
6966 case 'f': // float
6967 fnumber = va_arg (args_copy, double);
6968 break;
6969 default:
6970 break;
6973 va_end (args_copy);
6974 va_end (args);
6978 main ()
6981 // Check bool.
6982 _Bool success = false;
6984 // Check restrict.
6985 if (test_restrict ("String literal") == 0)
6986 success = true;
6987 char *restrict newvar = "Another string";
6989 // Check varargs.
6990 test_varargs ("s, d' f .", "string", 65, 34.234);
6991 test_varargs_macros ();
6993 // Check flexible array members.
6994 struct incomplete_array *ia =
6995 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6996 ia->datasize = 10;
6997 for (int i = 0; i < ia->datasize; ++i)
6998 ia->data[i] = i * 1.234;
7000 // Check named initializers.
7001 struct named_init ni = {
7002 .number = 34,
7003 .name = L"Test wide string",
7004 .average = 543.34343,
7007 ni.number = 58;
7009 int dynamic_array[ni.number];
7010 dynamic_array[ni.number - 1] = 543;
7012 // work around unused variable warnings
7013 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7014 || dynamic_array[ni.number - 1] != 543);
7017 return 0;
7019 _ACEOF
7020 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7022 CC="$ac_save_CC $ac_arg"
7023 if ac_fn_c_try_compile "$LINENO"; then :
7024 ac_cv_prog_cc_c99=$ac_arg
7026 rm -f core conftest.err conftest.$ac_objext
7027 test "x$ac_cv_prog_cc_c99" != "xno" && break
7028 done
7029 rm -f conftest.$ac_ext
7030 CC=$ac_save_CC
7033 # AC_CACHE_VAL
7034 case "x$ac_cv_prog_cc_c99" in
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7037 $as_echo "none needed" >&6; } ;;
7038 xno)
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7040 $as_echo "unsupported" >&6; } ;;
7042 CC="$CC $ac_cv_prog_cc_c99"
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7044 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7045 esac
7046 if test "x$ac_cv_prog_cc_c99" != xno; then :
7047 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7048 else
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7050 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7051 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7052 $as_echo_n "(cached) " >&6
7053 else
7054 ac_cv_prog_cc_c89=no
7055 ac_save_CC=$CC
7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h. */
7058 #include <stdarg.h>
7059 #include <stdio.h>
7060 #include <sys/types.h>
7061 #include <sys/stat.h>
7062 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7063 struct buf { int x; };
7064 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7065 static char *e (p, i)
7066 char **p;
7067 int i;
7069 return p[i];
7071 static char *f (char * (*g) (char **, int), char **p, ...)
7073 char *s;
7074 va_list v;
7075 va_start (v,p);
7076 s = g (p, va_arg (v,int));
7077 va_end (v);
7078 return s;
7081 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7082 function prototypes and stuff, but not '\xHH' hex character constants.
7083 These don't provoke an error unfortunately, instead are silently treated
7084 as 'x'. The following induces an error, until -std is added to get
7085 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7086 array size at least. It's necessary to write '\x00'==0 to get something
7087 that's true only with -std. */
7088 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7090 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7091 inside strings and character constants. */
7092 #define FOO(x) 'x'
7093 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7095 int test (int i, double x);
7096 struct s1 {int (*f) (int a);};
7097 struct s2 {int (*f) (double a);};
7098 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7099 int argc;
7100 char **argv;
7102 main ()
7104 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7106 return 0;
7108 _ACEOF
7109 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7110 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7112 CC="$ac_save_CC $ac_arg"
7113 if ac_fn_c_try_compile "$LINENO"; then :
7114 ac_cv_prog_cc_c89=$ac_arg
7116 rm -f core conftest.err conftest.$ac_objext
7117 test "x$ac_cv_prog_cc_c89" != "xno" && break
7118 done
7119 rm -f conftest.$ac_ext
7120 CC=$ac_save_CC
7123 # AC_CACHE_VAL
7124 case "x$ac_cv_prog_cc_c89" in
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7127 $as_echo "none needed" >&6; } ;;
7128 xno)
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7130 $as_echo "unsupported" >&6; } ;;
7132 CC="$CC $ac_cv_prog_cc_c89"
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7134 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7135 esac
7136 if test "x$ac_cv_prog_cc_c89" != xno; then :
7137 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7138 else
7139 ac_cv_prog_cc_stdc=no
7144 esac
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7146 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7147 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7148 $as_echo_n "(cached) " >&6
7151 case $ac_cv_prog_cc_stdc in #(
7152 no) :
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7154 $as_echo "unsupported" >&6; } ;; #(
7155 '') :
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7157 $as_echo "none needed" >&6; } ;; #(
7158 *) :
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7160 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7161 esac
7165 # Code from module alloca-opt:
7166 # Code from module allocator:
7167 # Code from module at-internal:
7168 # Code from module c-ctype:
7169 # Code from module c-strcase:
7170 # Code from module careadlinkat:
7171 # Code from module clock-time:
7172 # Code from module close-stream:
7173 # Code from module crypto/md5:
7174 # Code from module crypto/sha1:
7175 # Code from module crypto/sha256:
7176 # Code from module crypto/sha512:
7177 # Code from module dirent:
7178 # Code from module dosname:
7179 # Code from module dtoastr:
7180 # Code from module dtotimespec:
7181 # Code from module dup2:
7182 # Code from module environ:
7183 # Code from module euidaccess:
7184 # Code from module execinfo:
7185 # Code from module extensions:
7187 # Code from module extern-inline:
7188 # Code from module faccessat:
7189 # Code from module fcntl-h:
7190 # Code from module fdatasync:
7191 # Code from module fdopendir:
7192 # Code from module filemode:
7193 # Code from module fpending:
7194 # Code from module fstatat:
7195 # Code from module fsync:
7196 # Code from module getgroups:
7197 # Code from module getloadavg:
7198 # Code from module getopt-gnu:
7199 # Code from module getopt-posix:
7200 # Code from module gettext-h:
7201 # Code from module gettime:
7202 # Code from module gettimeofday:
7203 # Code from module group-member:
7204 # Code from module ignore-value:
7205 # Code from module include_next:
7206 # Code from module intprops:
7207 # Code from module inttypes-incomplete:
7208 # Code from module largefile:
7210 # Code from module lstat:
7211 # Code from module manywarnings:
7212 # Code from module memrchr:
7213 # Code from module mktime:
7214 # Code from module multiarch:
7215 # Code from module nocrash:
7216 # Code from module openat-h:
7217 # Code from module pathmax:
7218 # Code from module pselect:
7219 # Code from module pthread_sigmask:
7220 # Code from module putenv:
7221 # Code from module readlink:
7222 # Code from module readlinkat:
7223 # Code from module root-uid:
7224 # Code from module sig2str:
7225 # Code from module signal-h:
7226 # Code from module snippet/_Noreturn:
7227 # Code from module snippet/arg-nonnull:
7228 # Code from module snippet/c++defs:
7229 # Code from module snippet/warn-on-use:
7230 # Code from module socklen:
7231 # Code from module ssize_t:
7232 # Code from module stat:
7233 # Code from module stat-time:
7234 # Code from module stdalign:
7235 # Code from module stdarg:
7239 # Code from module stdbool:
7240 # Code from module stddef:
7241 # Code from module stdint:
7242 # Code from module stdio:
7243 # Code from module stdlib:
7244 # Code from module strftime:
7245 # Code from module string:
7246 # Code from module strtoimax:
7247 # Code from module strtoll:
7248 # Code from module strtoull:
7249 # Code from module strtoumax:
7250 # Code from module symlink:
7251 # Code from module sys_select:
7252 # Code from module sys_stat:
7253 # Code from module sys_time:
7254 # Code from module time:
7255 # Code from module time_r:
7256 # Code from module timer-time:
7257 # Code from module timespec:
7258 # Code from module timespec-add:
7259 # Code from module timespec-sub:
7260 # Code from module u64:
7261 # Code from module unistd:
7262 # Code from module unsetenv:
7263 # Code from module utimens:
7264 # Code from module verify:
7265 # Code from module warnings:
7266 # Code from module xalloc-oversized:
7269 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7270 # if -g3 works and the user does not specify CFLAGS.
7271 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7272 if test "$ac_test_CFLAGS" != set; then
7273 case $CFLAGS in
7274 '-g')
7275 emacs_g3_CFLAGS='-g3';;
7276 '-g -O2')
7277 emacs_g3_CFLAGS='-g3 -O2';;
7279 emacs_g3_CFLAGS='';;
7280 esac
7281 if test -n "$emacs_g3_CFLAGS"; then
7282 emacs_save_CFLAGS=$CFLAGS
7283 CFLAGS=$emacs_g3_CFLAGS
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7285 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7286 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7287 $as_echo_n "(cached) " >&6
7288 else
7289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290 /* end confdefs.h. */
7293 main ()
7297 return 0;
7299 _ACEOF
7300 if ac_fn_c_try_link "$LINENO"; then :
7301 emacs_cv_prog_cc_g3=yes
7302 else
7303 emacs_cv_prog_cc_g3=no
7305 rm -f core conftest.err conftest.$ac_objext \
7306 conftest$ac_exeext conftest.$ac_ext
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7309 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7310 if test $emacs_cv_prog_cc_g3 = yes; then
7311 CFLAGS=$emacs_g3_CFLAGS
7312 else
7313 CFLAGS=$emacs_save_CFLAGS
7318 # Check whether --enable-gcc-warnings was given.
7319 if test "${enable_gcc_warnings+set}" = set; then :
7320 enableval=$enable_gcc_warnings; case $enableval in
7321 yes|no) ;;
7322 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7323 esac
7324 gl_gcc_warnings=$enableval
7325 else
7326 gl_gcc_warnings=no
7331 # Check whether --enable-link-time-optimization was given.
7332 if test "${enable_link_time_optimization+set}" = set; then :
7333 enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7335 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7336 ac_lto_supported=no
7337 if test x$GCC = xyes; then
7338 CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7339 if test x$CPUS != x; then
7340 LTO="-flto=$CPUS"
7341 else
7342 LTO="-flto"
7344 old_CFLAGS=$CFLAGS
7345 CFLAGS="$CFLAGS $LTO"
7346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347 /* end confdefs.h. */
7350 main ()
7354 return 0;
7356 _ACEOF
7357 if ac_fn_c_try_compile "$LINENO"; then :
7358 ac_lto_supported=yes
7359 else
7360 ac_lto_supported=no
7362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7363 CFLAGS="$old_CFLAGS"
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7366 $as_echo "$ac_lto_supported" >&6; }
7367 if test "$ac_lto_supported" = "yes"; then
7368 CFLAGS="$CFLAGS $LTO"
7374 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7375 # ------------------------------------------------
7376 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7377 # Otherwise, run RUN-IF-NOT-FOUND.
7380 # When compiling with GCC, prefer -isystem to -I when including system
7381 # include files, to avoid generating useless diagnostics for the files.
7382 if test "$gl_gcc_warnings" != yes; then
7383 isystem='-I'
7384 else
7385 isystem='-isystem '
7387 # This, $nw, is the list of warnings we disable.
7390 case $with_x_toolkit in
7391 lucid | athena | motif)
7392 # Old toolkits mishandle 'const'.
7393 nw="$nw -Wwrite-strings"
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7397 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7398 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7399 $as_echo_n "(cached) " >&6
7400 else
7402 gl_save_compiler_FLAGS="$CFLAGS"
7403 as_fn_append CFLAGS " -Werror"
7404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405 /* end confdefs.h. */
7408 main ()
7412 return 0;
7414 _ACEOF
7415 if ac_fn_c_try_compile "$LINENO"; then :
7416 gl_cv_warn_c__Werror=yes
7417 else
7418 gl_cv_warn_c__Werror=no
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421 CFLAGS="$gl_save_compiler_FLAGS"
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7425 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7426 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7427 as_fn_append WERROR_CFLAGS " -Werror"
7432 esac
7435 nw="$nw -Waggregate-return" # anachronistic
7436 nw="$nw -Wlong-long" # C90 is anachronistic
7437 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7438 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7439 nw="$nw -Wtraditional" # Warns on #elif which we use often
7440 nw="$nw -Wcast-qual" # Too many warnings for now
7441 nw="$nw -Wconversion" # Too many warnings for now
7442 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7443 nw="$nw -Wsign-conversion" # Too many warnings for now
7444 nw="$nw -Woverlength-strings" # Not a problem these days
7445 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7446 nw="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7447 nw="$nw -Wpadded" # Our structs are not padded
7448 nw="$nw -Wredundant-decls" # we regularly (re)declare functions
7449 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7450 nw="$nw -Wformat-nonliteral" # we do this a lot
7451 nw="$nw -Wvla" # warnings in gettext.h
7452 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7453 nw="$nw -Wswitch-enum" # Too many warnings for now
7454 nw="$nw -Wswitch-default" # Too many warnings for now
7455 nw="$nw -Wfloat-equal" # warns about high-quality code
7456 nw="$nw -Winline" # OK to ignore 'inline'
7457 nw="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7458 nw="$nw -Wstrict-overflow" # OK to optimize assuming that
7459 # signed overflow has undefined behavior
7460 nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7461 nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7463 # Emacs doesn't care about shadowing; see
7464 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7465 nw="$nw -Wshadow"
7467 # Emacs's use of alloca inhibits protecting the stack.
7468 nw="$nw -Wstack-protector"
7470 # The following line should be removable at some point.
7471 nw="$nw -Wsuggest-attribute=pure"
7475 if test -n "$GCC"; then
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7478 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7479 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7480 $as_echo_n "(cached) " >&6
7481 else
7483 gl_save_CFLAGS="$CFLAGS"
7484 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7489 main ()
7493 return 0;
7495 _ACEOF
7496 if ac_fn_c_try_compile "$LINENO"; then :
7497 gl_cv_cc_nomfi_supported=yes
7498 else
7499 gl_cv_cc_nomfi_supported=no
7501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7502 CFLAGS="$gl_save_CFLAGS"
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7506 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7508 if test "$gl_cv_cc_nomfi_supported" = yes; then
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7510 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7511 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7512 $as_echo_n "(cached) " >&6
7513 else
7515 gl_save_CFLAGS="$CFLAGS"
7516 CFLAGS="$CFLAGS -W -Werror"
7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518 /* end confdefs.h. */
7519 void f (void)
7521 typedef struct { int a; int b; } s_t;
7522 s_t s1 = { 0, };
7526 main ()
7530 return 0;
7532 _ACEOF
7533 if ac_fn_c_try_compile "$LINENO"; then :
7534 gl_cv_cc_nomfi_needed=no
7535 else
7536 gl_cv_cc_nomfi_needed=yes
7538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7539 CFLAGS="$gl_save_CFLAGS"
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7544 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7548 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7549 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7550 $as_echo_n "(cached) " >&6
7551 else
7553 gl_save_CFLAGS="$CFLAGS"
7554 CFLAGS="$CFLAGS -Werror -Wuninitialized"
7555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556 /* end confdefs.h. */
7559 main ()
7563 return 0;
7565 _ACEOF
7566 if ac_fn_c_try_compile "$LINENO"; then :
7567 gl_cv_cc_uninitialized_supported=yes
7568 else
7569 gl_cv_cc_uninitialized_supported=no
7571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7572 CFLAGS="$gl_save_CFLAGS"
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7576 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7580 # List all gcc warning categories.
7581 gl_manywarn_set=
7582 for gl_manywarn_item in \
7583 -W \
7584 -Wabi \
7585 -Waddress \
7586 -Wall \
7587 -Warray-bounds \
7588 -Wattributes \
7589 -Wbad-function-cast \
7590 -Wbuiltin-macro-redefined \
7591 -Wcast-align \
7592 -Wchar-subscripts \
7593 -Wclobbered \
7594 -Wcomment \
7595 -Wcomments \
7596 -Wcoverage-mismatch \
7597 -Wcpp \
7598 -Wdeprecated \
7599 -Wdeprecated-declarations \
7600 -Wdisabled-optimization \
7601 -Wdiv-by-zero \
7602 -Wdouble-promotion \
7603 -Wempty-body \
7604 -Wendif-labels \
7605 -Wenum-compare \
7606 -Wextra \
7607 -Wformat-contains-nul \
7608 -Wformat-extra-args \
7609 -Wformat-nonliteral \
7610 -Wformat-security \
7611 -Wformat-y2k \
7612 -Wformat-zero-length \
7613 -Wformat=2 \
7614 -Wfree-nonheap-object \
7615 -Wignored-qualifiers \
7616 -Wimplicit \
7617 -Wimplicit-function-declaration \
7618 -Wimplicit-int \
7619 -Winit-self \
7620 -Winline \
7621 -Wint-to-pointer-cast \
7622 -Winvalid-memory-model \
7623 -Winvalid-pch \
7624 -Wjump-misses-init \
7625 -Wlogical-op \
7626 -Wmain \
7627 -Wmaybe-uninitialized \
7628 -Wmissing-braces \
7629 -Wmissing-declarations \
7630 -Wmissing-field-initializers \
7631 -Wmissing-format-attribute \
7632 -Wmissing-include-dirs \
7633 -Wmissing-noreturn \
7634 -Wmissing-parameter-type \
7635 -Wmissing-prototypes \
7636 -Wmudflap \
7637 -Wmultichar \
7638 -Wnarrowing \
7639 -Wnested-externs \
7640 -Wnonnull \
7641 -Wnormalized=nfc \
7642 -Wold-style-declaration \
7643 -Wold-style-definition \
7644 -Woverflow \
7645 -Woverlength-strings \
7646 -Woverride-init \
7647 -Wpacked \
7648 -Wpacked-bitfield-compat \
7649 -Wparentheses \
7650 -Wpointer-arith \
7651 -Wpointer-sign \
7652 -Wpointer-to-int-cast \
7653 -Wpragmas \
7654 -Wreturn-type \
7655 -Wsequence-point \
7656 -Wshadow \
7657 -Wsizeof-pointer-memaccess \
7658 -Wstack-protector \
7659 -Wstrict-aliasing \
7660 -Wstrict-overflow \
7661 -Wstrict-prototypes \
7662 -Wsuggest-attribute=const \
7663 -Wsuggest-attribute=format \
7664 -Wsuggest-attribute=noreturn \
7665 -Wsuggest-attribute=pure \
7666 -Wswitch \
7667 -Wswitch-default \
7668 -Wsync-nand \
7669 -Wsystem-headers \
7670 -Wtrampolines \
7671 -Wtrigraphs \
7672 -Wtype-limits \
7673 -Wuninitialized \
7674 -Wunknown-pragmas \
7675 -Wunreachable-code \
7676 -Wunsafe-loop-optimizations \
7677 -Wunused \
7678 -Wunused-but-set-parameter \
7679 -Wunused-but-set-variable \
7680 -Wunused-function \
7681 -Wunused-label \
7682 -Wunused-local-typedefs \
7683 -Wunused-macros \
7684 -Wunused-parameter \
7685 -Wunused-result \
7686 -Wunused-value \
7687 -Wunused-variable \
7688 -Wvarargs \
7689 -Wvariadic-macros \
7690 -Wvector-operation-performance \
7691 -Wvla \
7692 -Wvolatile-register-var \
7693 -Wwrite-strings \
7695 ; do
7696 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7697 done
7699 # Disable specific options as needed.
7700 if test "$gl_cv_cc_nomfi_needed" = yes; then
7701 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7704 if test "$gl_cv_cc_uninitialized_supported" = no; then
7705 gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
7708 ws=$gl_manywarn_set
7711 gl_warn_set=
7712 set x $ws; shift
7713 for gl_warn_item
7715 case " $nw " in
7716 *" $gl_warn_item "*)
7719 gl_warn_set="$gl_warn_set $gl_warn_item"
7721 esac
7722 done
7723 ws=$gl_warn_set
7725 for w in $ws; do
7726 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7728 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7729 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7730 $as_echo_n "(cached) " >&6
7731 else
7733 gl_save_compiler_FLAGS="$CFLAGS"
7734 as_fn_append CFLAGS " $w"
7735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736 /* end confdefs.h. */
7739 main ()
7743 return 0;
7745 _ACEOF
7746 if ac_fn_c_try_compile "$LINENO"; then :
7747 eval "$as_gl_Warn=yes"
7748 else
7749 eval "$as_gl_Warn=no"
7751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7752 CFLAGS="$gl_save_compiler_FLAGS"
7755 eval ac_res=\$$as_gl_Warn
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7757 $as_echo "$ac_res" >&6; }
7758 eval as_val=\$$as_gl_Warn
7759 if test "x$as_val" = x""yes; then :
7760 as_fn_append WARN_CFLAGS " $w"
7764 done
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7766 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7767 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7768 $as_echo_n "(cached) " >&6
7769 else
7771 gl_save_compiler_FLAGS="$CFLAGS"
7772 as_fn_append CFLAGS " -Wno-missing-field-initializers"
7773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774 /* end confdefs.h. */
7777 main ()
7781 return 0;
7783 _ACEOF
7784 if ac_fn_c_try_compile "$LINENO"; then :
7785 gl_cv_warn_c__Wno_missing_field_initializers=yes
7786 else
7787 gl_cv_warn_c__Wno_missing_field_initializers=no
7789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7790 CFLAGS="$gl_save_compiler_FLAGS"
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7794 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7795 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7796 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7799 # We need this one
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7801 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7802 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7803 $as_echo_n "(cached) " >&6
7804 else
7806 gl_save_compiler_FLAGS="$CFLAGS"
7807 as_fn_append CFLAGS " -Wno-sign-compare"
7808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809 /* end confdefs.h. */
7812 main ()
7816 return 0;
7818 _ACEOF
7819 if ac_fn_c_try_compile "$LINENO"; then :
7820 gl_cv_warn_c__Wno_sign_compare=yes
7821 else
7822 gl_cv_warn_c__Wno_sign_compare=no
7824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7825 CFLAGS="$gl_save_compiler_FLAGS"
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7829 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7830 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7831 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7834 # Too many warnings for now
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7836 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7837 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7838 $as_echo_n "(cached) " >&6
7839 else
7841 gl_save_compiler_FLAGS="$CFLAGS"
7842 as_fn_append CFLAGS " -Wno-type-limits"
7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844 /* end confdefs.h. */
7847 main ()
7851 return 0;
7853 _ACEOF
7854 if ac_fn_c_try_compile "$LINENO"; then :
7855 gl_cv_warn_c__Wno_type_limits=yes
7856 else
7857 gl_cv_warn_c__Wno_type_limits=no
7859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7860 CFLAGS="$gl_save_compiler_FLAGS"
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7864 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7865 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7866 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7869 # Too many warnings for now
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7871 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7872 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7873 $as_echo_n "(cached) " >&6
7874 else
7876 gl_save_compiler_FLAGS="$CFLAGS"
7877 as_fn_append CFLAGS " -Wno-switch"
7878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879 /* end confdefs.h. */
7882 main ()
7886 return 0;
7888 _ACEOF
7889 if ac_fn_c_try_compile "$LINENO"; then :
7890 gl_cv_warn_c__Wno_switch=yes
7891 else
7892 gl_cv_warn_c__Wno_switch=no
7894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7895 CFLAGS="$gl_save_compiler_FLAGS"
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7899 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7900 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7901 as_fn_append WARN_CFLAGS " -Wno-switch"
7904 # Too many warnings for now
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7906 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7907 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7908 $as_echo_n "(cached) " >&6
7909 else
7911 gl_save_compiler_FLAGS="$CFLAGS"
7912 as_fn_append CFLAGS " -Wno-unused-parameter"
7913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914 /* end confdefs.h. */
7917 main ()
7921 return 0;
7923 _ACEOF
7924 if ac_fn_c_try_compile "$LINENO"; then :
7925 gl_cv_warn_c__Wno_unused_parameter=yes
7926 else
7927 gl_cv_warn_c__Wno_unused_parameter=no
7929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7930 CFLAGS="$gl_save_compiler_FLAGS"
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7934 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7935 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7936 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7939 # Too many warnings for now
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7941 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7942 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7943 $as_echo_n "(cached) " >&6
7944 else
7946 gl_save_compiler_FLAGS="$CFLAGS"
7947 as_fn_append CFLAGS " -Wno-format-nonliteral"
7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h. */
7952 main ()
7956 return 0;
7958 _ACEOF
7959 if ac_fn_c_try_compile "$LINENO"; then :
7960 gl_cv_warn_c__Wno_format_nonliteral=yes
7961 else
7962 gl_cv_warn_c__Wno_format_nonliteral=no
7964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7965 CFLAGS="$gl_save_compiler_FLAGS"
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7969 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7970 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7971 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7976 # In spite of excluding -Wlogical-op above, it is enabled, as of
7977 # gcc 4.5.0 20090517.
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7979 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7980 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7981 $as_echo_n "(cached) " >&6
7982 else
7984 gl_save_compiler_FLAGS="$CFLAGS"
7985 as_fn_append CFLAGS " -Wno-logical-op"
7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
7990 main ()
7994 return 0;
7996 _ACEOF
7997 if ac_fn_c_try_compile "$LINENO"; then :
7998 gl_cv_warn_c__Wno_logical_op=yes
7999 else
8000 gl_cv_warn_c__Wno_logical_op=no
8002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8003 CFLAGS="$gl_save_compiler_FLAGS"
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
8007 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
8008 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
8009 as_fn_append WARN_CFLAGS " -Wno-logical-op"
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
8015 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
8016 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
8017 $as_echo_n "(cached) " >&6
8018 else
8020 gl_save_compiler_FLAGS="$CFLAGS"
8021 as_fn_append CFLAGS " -fdiagnostics-show-option"
8022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8023 /* end confdefs.h. */
8026 main ()
8030 return 0;
8032 _ACEOF
8033 if ac_fn_c_try_compile "$LINENO"; then :
8034 gl_cv_warn_c__fdiagnostics_show_option=yes
8035 else
8036 gl_cv_warn_c__fdiagnostics_show_option=no
8038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8039 CFLAGS="$gl_save_compiler_FLAGS"
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
8043 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
8044 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
8045 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
8050 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
8051 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
8052 $as_echo_n "(cached) " >&6
8053 else
8055 gl_save_compiler_FLAGS="$CFLAGS"
8056 as_fn_append CFLAGS " -funit-at-a-time"
8057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8058 /* end confdefs.h. */
8061 main ()
8065 return 0;
8067 _ACEOF
8068 if ac_fn_c_try_compile "$LINENO"; then :
8069 gl_cv_warn_c__funit_at_a_time=yes
8070 else
8071 gl_cv_warn_c__funit_at_a_time=no
8073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074 CFLAGS="$gl_save_compiler_FLAGS"
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
8078 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
8079 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
8080 as_fn_append WARN_CFLAGS " -funit-at-a-time"
8086 $as_echo "#define lint 1" >>confdefs.h
8090 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
8093 # We use a slightly smaller set of warning options for lib/.
8094 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
8096 nw="$nw -Wunused-macros"
8099 gl_warn_set=
8100 set x $WARN_CFLAGS; shift
8101 for gl_warn_item
8103 case " $nw " in
8104 *" $gl_warn_item "*)
8107 gl_warn_set="$gl_warn_set $gl_warn_item"
8109 esac
8110 done
8111 GNULIB_WARN_CFLAGS=$gl_warn_set
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8119 $as_echo_n "checking whether ln -s works... " >&6; }
8120 LN_S=$as_ln_s
8121 if test "$LN_S" = "ln -s"; then
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8123 $as_echo "yes" >&6; }
8124 else
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8126 $as_echo "no, using $LN_S" >&6; }
8130 # Extract the first word of "install-info", so it can be a program name with args.
8131 set dummy install-info; ac_word=$2
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133 $as_echo_n "checking for $ac_word... " >&6; }
8134 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8135 $as_echo_n "(cached) " >&6
8136 else
8137 case $INSTALL_INFO in
8138 [\\/]* | ?:[\\/]*)
8139 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
8142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
8145 IFS=$as_save_IFS
8146 test -z "$as_dir" && as_dir=.
8147 for ac_exec_ext in '' $ac_executable_extensions; do
8148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8149 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
8150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8151 break 2
8153 done
8154 done
8155 IFS=$as_save_IFS
8157 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
8159 esac
8161 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
8162 if test -n "$INSTALL_INFO"; then
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8164 $as_echo "$INSTALL_INFO" >&6; }
8165 else
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8167 $as_echo "no" >&6; }
8171 # Extract the first word of "gzip", so it can be a program name with args.
8172 set dummy gzip; ac_word=$2
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8174 $as_echo_n "checking for $ac_word... " >&6; }
8175 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8176 $as_echo_n "(cached) " >&6
8177 else
8178 case $GZIP_PROG in
8179 [\\/]* | ?:[\\/]*)
8180 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
8183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184 for as_dir in $PATH
8186 IFS=$as_save_IFS
8187 test -z "$as_dir" && as_dir=.
8188 for ac_exec_ext in '' $ac_executable_extensions; do
8189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8190 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
8191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8192 break 2
8194 done
8195 done
8196 IFS=$as_save_IFS
8199 esac
8201 GZIP_PROG=$ac_cv_path_GZIP_PROG
8202 if test -n "$GZIP_PROG"; then
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8204 $as_echo "$GZIP_PROG" >&6; }
8205 else
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8207 $as_echo "no" >&6; }
8212 if test $opsys = gnu-linux; then
8213 # Extract the first word of "paxctl", so it can be a program name with args.
8214 set dummy paxctl; ac_word=$2
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8216 $as_echo_n "checking for $ac_word... " >&6; }
8217 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8218 $as_echo_n "(cached) " >&6
8219 else
8220 case $PAXCTL in
8221 [\\/]* | ?:[\\/]*)
8222 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
8228 IFS=$as_save_IFS
8229 test -z "$as_dir" && as_dir=.
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8232 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
8233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8234 break 2
8236 done
8237 done
8238 IFS=$as_save_IFS
8241 esac
8243 PAXCTL=$ac_cv_path_PAXCTL
8244 if test -n "$PAXCTL"; then
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8246 $as_echo "$PAXCTL" >&6; }
8247 else
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8249 $as_echo "no" >&6; }
8253 if test "X$PAXCTL" != X; then
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8255 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257 /* end confdefs.h. */
8260 main ()
8264 return 0;
8266 _ACEOF
8267 if ac_fn_c_try_link "$LINENO"; then :
8268 if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8269 $as_echo "yes" >&6; }
8270 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271 $as_echo "no" >&6; }; PAXCTL=""; fi
8273 rm -f core conftest.err conftest.$ac_objext \
8274 conftest$ac_exeext conftest.$ac_ext
8278 ## Need makeinfo >= 4.7 (?) to build the manuals.
8279 # Extract the first word of "makeinfo", so it can be a program name with args.
8280 set dummy makeinfo; ac_word=$2
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8282 $as_echo_n "checking for $ac_word... " >&6; }
8283 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8284 $as_echo_n "(cached) " >&6
8285 else
8286 case $MAKEINFO in
8287 [\\/]* | ?:[\\/]*)
8288 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
8291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8292 for as_dir in $PATH
8294 IFS=$as_save_IFS
8295 test -z "$as_dir" && as_dir=.
8296 for ac_exec_ext in '' $ac_executable_extensions; do
8297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8298 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
8299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8300 break 2
8302 done
8303 done
8304 IFS=$as_save_IFS
8306 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
8308 esac
8310 MAKEINFO=$ac_cv_path_MAKEINFO
8311 if test -n "$MAKEINFO"; then
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8313 $as_echo "$MAKEINFO" >&6; }
8314 else
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8316 $as_echo "no" >&6; }
8320 if test "$MAKEINFO" != "no"; then
8321 case `
8322 $MAKEINFO --version 2> /dev/null |
8323 $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'
8324 ` in
8325 '') MAKEINFO=no;;
8326 esac
8329 ## Makeinfo is unusual. For a released Emacs, the manuals are
8330 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8331 ## therefore in the category of "special tools" not normally required, which
8332 ## configure does not have to check for (eg autoconf itself).
8333 ## In a Bazaar checkout on the other hand, the manuals are not included.
8334 ## So makeinfo is a requirement to build from Bazaar, and configure
8335 ## should test for it as it does for any other build requirement.
8336 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8337 ## with pre-built manuals, from a Bazaar checkout.
8338 HAVE_MAKEINFO=yes
8340 if test "$MAKEINFO" = "no"; then
8341 MAKEINFO=makeinfo
8342 if test "x${with_makeinfo}" = "xno"; then
8343 HAVE_MAKEINFO=no
8344 elif test ! -e "$srcdir/info/emacs" && test ! -e "$srcdir/info/emacs.info"; then
8345 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
8346 source tree does not seem to have pre-built manuals in the \`info' directory.
8347 Either install a suitable version of makeinfo, or re-run configure
8348 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8353 INFO_EXT=.info
8354 INFO_OPTS=--no-split
8359 if test x$GCC = xyes; then
8360 test "x$GCC_LINK_TEST_OPTIONS" != x && \
8361 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8362 else
8363 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8364 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8368 late_LDFLAGS=$LDFLAGS
8369 if test x$GCC = xyes; then
8370 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
8371 else
8372 LDFLAGS="$LDFLAGS -znocombreloc"
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8376 $as_echo_n "checking for -znocombreloc... " >&6; }
8377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378 /* end confdefs.h. */
8381 main ()
8385 return 0;
8387 _ACEOF
8388 if ac_fn_c_try_link "$LINENO"; then :
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8390 $as_echo "yes" >&6; }
8391 else
8392 LDFLAGS=$late_LDFLAGS
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 $as_echo "no" >&6; }
8396 rm -f core conftest.err conftest.$ac_objext \
8397 conftest$ac_exeext conftest.$ac_ext
8400 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8401 case "$opsys" in
8402 your-opsys-here) CANNOT_DUMP=yes ;;
8403 esac
8405 test "$CANNOT_DUMP" = "yes" && \
8407 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8413 UNEXEC_OBJ=unexelf.o
8414 case "$opsys" in
8415 # MSDOS uses unexcoff.o
8416 # MSWindows uses unexw32.o
8417 aix4-2)
8418 UNEXEC_OBJ=unexaix.o
8420 cygwin)
8421 UNEXEC_OBJ=unexcw.o
8423 darwin)
8424 UNEXEC_OBJ=unexmacosx.o
8426 hpux10-20 | hpux11)
8427 UNEXEC_OBJ=unexhp9k800.o
8429 sol2-10)
8430 # Use the Solaris dldump() function, called from unexsol.c, to dump
8431 # emacs, instead of the generic ELF dump code found in unexelf.c.
8432 # The resulting binary has a complete symbol table, and is better
8433 # for debugging and other observability tools (debuggers, pstack, etc).
8435 # If you encounter a problem using dldump(), please consider sending
8436 # a message to the OpenSolaris tools-linking mailing list:
8437 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8439 # It is likely that dldump() works with older Solaris too, but this has
8440 # not been tested, so for now this change is for Solaris 10 or newer.
8441 UNEXEC_OBJ=unexsol.o
8443 esac
8445 LD_SWITCH_SYSTEM=
8446 case "$opsys" in
8447 freebsd)
8448 ## Let `ld' find image libs and similar things in /usr/local/lib.
8449 ## The system compiler, GCC, has apparently been modified to not
8450 ## look there, contrary to what a stock GCC would do.
8451 ### It's not our place to do this. See bug#10313#17.
8452 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8456 gnu-linux)
8457 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8458 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8461 netbsd)
8462 ### It's not our place to do this. See bug#10313#17.
8463 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8467 openbsd)
8468 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8469 ## otherwise Emacs dumps core on elf systems.
8470 LD_SWITCH_SYSTEM="-Z"
8472 esac
8475 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8477 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8478 ## which has not been defined yet. When this was handled with cpp,
8479 ## it was expanded to null when configure sourced the s/*.h file.
8480 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8481 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8482 ## (or somesuch), but because it is supposed to go at the _front_
8483 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8484 ## Compare with the gnu-linux case below, which added to the end
8485 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8486 ## LD_SWITCH_SYSTEM_TEMACS.
8487 case "$opsys" in
8488 netbsd|openbsd)
8489 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8490 esac
8493 C_SWITCH_MACHINE=
8494 case $canonical in
8495 alpha*)
8496 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8497 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8501 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8502 ## With ELF, make sure that all common symbols get allocated to in the
8503 ## data section. Otherwise, the dump of temacs may miss variables in
8504 ## the shared library that have been initialized. For example, with
8505 ## GNU libc, __malloc_initialized would normally be resolved to the
8506 ## shared library's .bss section, which is fatal.
8507 if test "x$GCC" = "xyes"; then
8508 C_SWITCH_MACHINE="-fno-common"
8509 else
8510 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8512 else
8513 UNEXEC_OBJ=unexalpha.o
8516 esac
8521 C_SWITCH_SYSTEM=
8522 ## Some programs in src produce warnings saying certain subprograms
8523 ## are too complex and need a MAXMEM value greater than 2000 for
8524 ## additional optimization. --nils@exp-math.uni-essen.de
8525 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8526 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8527 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8528 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8532 LIBS_SYSTEM=
8533 case "$opsys" in
8534 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8535 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8537 freebsd) LIBS_SYSTEM="-lutil" ;;
8539 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8541 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8543 ## Motif needs -lgen.
8544 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8545 esac
8549 ### Make sure subsequent tests use flags consistent with the build flags.
8551 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8552 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8553 else
8554 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8557 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8559 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8563 LIB_MATH=-lm
8564 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8566 case $opsys in
8567 cygwin )
8568 LIB_MATH=
8570 darwin )
8571 ## Adding -lm confuses the dynamic linker, so omit it.
8572 LIB_MATH=
8574 freebsd )
8575 SYSTEM_TYPE=berkeley-unix
8577 gnu-linux | gnu-kfreebsd )
8579 hpux10-20 | hpux11 )
8581 netbsd | openbsd )
8582 SYSTEM_TYPE=berkeley-unix
8585 sol2* | unixware )
8586 SYSTEM_TYPE=usg-unix-v
8589 esac
8593 cat >>confdefs.h <<_ACEOF
8594 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8595 _ACEOF
8599 pre_PKG_CONFIG_CFLAGS=$CFLAGS
8600 pre_PKG_CONFIG_LIBS=$LIBS
8602 # Extract the first word of "pkg-config", so it can be a program name with args.
8603 set dummy pkg-config; ac_word=$2
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8605 $as_echo_n "checking for $ac_word... " >&6; }
8606 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8607 $as_echo_n "(cached) " >&6
8608 else
8609 case $PKG_CONFIG in
8610 [\\/]* | ?:[\\/]*)
8611 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8615 for as_dir in $PATH
8617 IFS=$as_save_IFS
8618 test -z "$as_dir" && as_dir=.
8619 for ac_exec_ext in '' $ac_executable_extensions; do
8620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8621 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8623 break 2
8625 done
8626 done
8627 IFS=$as_save_IFS
8629 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8631 esac
8633 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8634 if test -n "$PKG_CONFIG"; then
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8636 $as_echo "$PKG_CONFIG" >&6; }
8637 else
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8639 $as_echo "no" >&6; }
8647 if test "${with_sound}" != "no"; then
8648 # Sound support for GNU/Linux and the free BSDs.
8649 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8650 do :
8651 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8652 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8653 eval as_val=\$$as_ac_Header
8654 if test "x$as_val" = x""yes; then :
8655 cat >>confdefs.h <<_ACEOF
8656 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8657 _ACEOF
8658 have_sound_header=yes
8661 done
8663 # Emulation library used on NetBSD.
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8665 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8666 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8667 $as_echo_n "(cached) " >&6
8668 else
8669 ac_check_lib_save_LIBS=$LIBS
8670 LIBS="-lossaudio $LIBS"
8671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h. */
8674 /* Override any GCC internal prototype to avoid an error.
8675 Use char because int might match the return type of a GCC
8676 builtin and then its argument prototype would still apply. */
8677 #ifdef __cplusplus
8678 extern "C"
8679 #endif
8680 char _oss_ioctl ();
8682 main ()
8684 return _oss_ioctl ();
8686 return 0;
8688 _ACEOF
8689 if ac_fn_c_try_link "$LINENO"; then :
8690 ac_cv_lib_ossaudio__oss_ioctl=yes
8691 else
8692 ac_cv_lib_ossaudio__oss_ioctl=no
8694 rm -f core conftest.err conftest.$ac_objext \
8695 conftest$ac_exeext conftest.$ac_ext
8696 LIBS=$ac_check_lib_save_LIBS
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8699 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8700 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8701 LIBSOUND=-lossaudio
8702 else
8703 LIBSOUND=
8708 ALSA_REQUIRED=1.0.0
8709 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8711 succeeded=no
8713 if test "$PKG_CONFIG" = "no" ; then
8714 HAVE_ALSA=no
8715 else
8716 PKG_CONFIG_MIN_VERSION=0.9.0
8717 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8719 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8721 if "$PKG_CONFIG" --exists "$ALSA_MODULES" 2>&5 &&
8722 ALSA_CFLAGS=`"$PKG_CONFIG" --cflags "$ALSA_MODULES" 2>&5` &&
8723 ALSA_LIBS=`"$PKG_CONFIG" --libs "$ALSA_MODULES" 2>&5`; then
8724 edit_cflags="
8725 s,///*,/,g
8726 s/^/ /
8727 s/ -I/ $isystem/g
8728 s/^ //
8730 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8731 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8733 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8734 succeeded=yes
8735 else
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8737 $as_echo "no" >&6; }
8738 ALSA_CFLAGS=""
8739 ALSA_LIBS=""
8740 ## If we have a custom action on failure, don't print errors, but
8741 ## do set a variable so people can do so. Do it in a subshell
8742 ## to capture any diagnostics in invoking pkg-config.
8743 ALSA_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$ALSA_MODULES") 2>&1`
8749 else
8750 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8751 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8755 if test $succeeded = yes; then
8756 HAVE_ALSA=yes
8757 else
8758 HAVE_ALSA=no
8761 if test $HAVE_ALSA = yes; then
8762 SAVE_CFLAGS="$CFLAGS"
8763 SAVE_LIBS="$LIBS"
8764 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8765 LIBS="$ALSA_LIBS $LIBS"
8766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8767 /* end confdefs.h. */
8768 #include <asoundlib.h>
8770 main ()
8772 snd_lib_error_set_handler (0);
8774 return 0;
8776 _ACEOF
8777 if ac_fn_c_try_compile "$LINENO"; then :
8778 emacs_alsa_normal=yes
8779 else
8780 emacs_alsa_normal=no
8782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8783 if test "$emacs_alsa_normal" != yes; then
8784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8785 /* end confdefs.h. */
8786 #include <alsa/asoundlib.h>
8788 main ()
8790 snd_lib_error_set_handler (0);
8792 return 0;
8794 _ACEOF
8795 if ac_fn_c_try_compile "$LINENO"; then :
8796 emacs_alsa_subdir=yes
8797 else
8798 emacs_alsa_subdir=no
8800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8801 if test "$emacs_alsa_subdir" != yes; then
8802 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8804 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8807 CFLAGS="$SAVE_CFLAGS"
8808 LIBS="$SAVE_LIBS"
8809 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8810 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8812 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8816 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8817 case "$opsys" in
8818 gnu-linux|freebsd|netbsd)
8820 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8823 esac
8832 for ac_header in $ac_header_list
8833 do :
8834 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8835 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8837 eval as_val=\$$as_ac_Header
8838 if test "x$as_val" = x""yes; then :
8839 cat >>confdefs.h <<_ACEOF
8840 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8841 _ACEOF
8845 done
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8868 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8870 /* end confdefs.h. */
8871 #include <sys/personality.h>
8873 main ()
8875 personality (PER_LINUX32)
8877 return 0;
8879 _ACEOF
8880 if ac_fn_c_try_compile "$LINENO"; then :
8881 emacs_cv_personality_linux32=yes
8882 else
8883 emacs_cv_personality_linux32=no
8885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8887 $as_echo "$emacs_cv_personality_linux32" >&6; }
8889 if test $emacs_cv_personality_linux32 = yes; then
8891 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8895 for ac_header in term.h
8896 do :
8897 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8898 if test "x$ac_cv_header_term_h" = x""yes; then :
8899 cat >>confdefs.h <<_ACEOF
8900 #define HAVE_TERM_H 1
8901 _ACEOF
8905 done
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8908 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8909 if test "${ac_cv_header_time+set}" = set; then :
8910 $as_echo_n "(cached) " >&6
8911 else
8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h. */
8914 #include <sys/types.h>
8915 #include <sys/time.h>
8916 #include <time.h>
8919 main ()
8921 if ((struct tm *) 0)
8922 return 0;
8924 return 0;
8926 _ACEOF
8927 if ac_fn_c_try_compile "$LINENO"; then :
8928 ac_cv_header_time=yes
8929 else
8930 ac_cv_header_time=no
8932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8935 $as_echo "$ac_cv_header_time" >&6; }
8936 if test $ac_cv_header_time = yes; then
8938 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8942 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
8945 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8946 ac_have_decl=1
8947 else
8948 ac_have_decl=0
8951 cat >>confdefs.h <<_ACEOF
8952 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8953 _ACEOF
8955 if test $ac_cv_have_decl_sys_siglist != yes; then
8956 # For Tru64, at least:
8957 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
8960 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8961 ac_have_decl=1
8962 else
8963 ac_have_decl=0
8966 cat >>confdefs.h <<_ACEOF
8967 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8968 _ACEOF
8970 if test $ac_cv_have_decl___sys_siglist = yes; then
8972 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8977 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8978 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8979 $as_echo_n "(cached) " >&6
8980 else
8981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8982 /* end confdefs.h. */
8983 #include <sys/types.h>
8984 #include <sys/wait.h>
8985 #ifndef WEXITSTATUS
8986 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8987 #endif
8988 #ifndef WIFEXITED
8989 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8990 #endif
8993 main ()
8995 int s;
8996 wait (&s);
8997 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8999 return 0;
9001 _ACEOF
9002 if ac_fn_c_try_compile "$LINENO"; then :
9003 ac_cv_header_sys_wait_h=yes
9004 else
9005 ac_cv_header_sys_wait_h=no
9007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9010 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9011 if test $ac_cv_header_sys_wait_h = yes; then
9013 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
9019 $as_echo_n "checking for speed_t... " >&6; }
9020 if test "${emacs_cv_speed_t+set}" = set; then :
9021 $as_echo_n "(cached) " >&6
9022 else
9023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9024 /* end confdefs.h. */
9025 #include <termios.h>
9027 main ()
9029 speed_t x = 1;
9031 return 0;
9033 _ACEOF
9034 if ac_fn_c_try_compile "$LINENO"; then :
9035 emacs_cv_speed_t=yes
9036 else
9037 emacs_cv_speed_t=no
9039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
9042 $as_echo "$emacs_cv_speed_t" >&6; }
9043 if test $emacs_cv_speed_t = yes; then
9045 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
9052 for ac_header in net/if.h
9053 do :
9054 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9055 #if HAVE_SYS_SOCKET_H
9056 #include <sys/socket.h>
9057 #endif
9059 if test "x$ac_cv_header_net_if_h" = x""yes; then :
9060 cat >>confdefs.h <<_ACEOF
9061 #define HAVE_NET_IF_H 1
9062 _ACEOF
9066 done
9068 for ac_header in ifaddrs.h
9069 do :
9070 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9071 #if HAVE_SYS_SOCKET_H
9072 #include <sys/socket.h>
9073 #endif
9075 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
9076 cat >>confdefs.h <<_ACEOF
9077 #define HAVE_IFADDRS_H 1
9078 _ACEOF
9082 done
9084 for ac_header in net/if_dl.h
9085 do :
9086 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9087 #if HAVE_SYS_SOCKET_H
9088 #include <sys/socket.h>
9089 #endif
9091 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
9092 cat >>confdefs.h <<_ACEOF
9093 #define HAVE_NET_IF_DL_H 1
9094 _ACEOF
9098 done
9101 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9102 #if HAVE_SYS_SOCKET_H
9103 #include <sys/socket.h>
9104 #endif
9105 #if HAVE_NET_IF_H
9106 #include <net/if.h>
9107 #endif
9109 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
9111 cat >>confdefs.h <<_ACEOF
9112 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9113 _ACEOF
9117 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9118 #if HAVE_SYS_SOCKET_H
9119 #include <sys/socket.h>
9120 #endif
9121 #if HAVE_NET_IF_H
9122 #include <net/if.h>
9123 #endif
9125 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
9127 cat >>confdefs.h <<_ACEOF
9128 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9129 _ACEOF
9133 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9134 #if HAVE_SYS_SOCKET_H
9135 #include <sys/socket.h>
9136 #endif
9137 #if HAVE_NET_IF_H
9138 #include <net/if.h>
9139 #endif
9141 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9143 cat >>confdefs.h <<_ACEOF
9144 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9145 _ACEOF
9149 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9150 #if HAVE_SYS_SOCKET_H
9151 #include <sys/socket.h>
9152 #endif
9153 #if HAVE_NET_IF_H
9154 #include <net/if.h>
9155 #endif
9157 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9159 cat >>confdefs.h <<_ACEOF
9160 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9161 _ACEOF
9165 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9166 #if HAVE_SYS_SOCKET_H
9167 #include <sys/socket.h>
9168 #endif
9169 #if HAVE_NET_IF_H
9170 #include <net/if.h>
9171 #endif
9173 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9175 cat >>confdefs.h <<_ACEOF
9176 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9177 _ACEOF
9181 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9182 #if HAVE_SYS_SOCKET_H
9183 #include <sys/socket.h>
9184 #endif
9185 #if HAVE_NET_IF_H
9186 #include <net/if.h>
9187 #endif
9189 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9191 cat >>confdefs.h <<_ACEOF
9192 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9193 _ACEOF
9201 DEPFLAGS=
9202 MKDEPDIR=":"
9203 deps_frag=deps.mk
9204 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9206 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9207 HAVE_GNU_MAKE=no
9208 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9209 if test "x$testval" != x; then
9210 HAVE_GNU_MAKE=yes
9211 else
9212 ac_enable_autodepend=no
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9215 $as_echo "$HAVE_GNU_MAKE" >&6; }
9216 if test $HAVE_GNU_MAKE = yes; then
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9218 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9219 SAVE_CFLAGS="$CFLAGS"
9220 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9222 /* end confdefs.h. */
9225 main ()
9229 return 0;
9231 _ACEOF
9232 if ac_fn_c_try_compile "$LINENO"; then :
9234 else
9235 ac_enable_autodepend=no
9237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9238 CFLAGS="$SAVE_CFLAGS"
9239 test -f deps.d || ac_enable_autodepend=no
9240 rm -rf deps.d
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9242 $as_echo "$ac_enable_autodepend" >&6; }
9244 if test $ac_enable_autodepend = yes; then
9245 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9246 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9247 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9248 deps_frag=autodeps.mk
9251 deps_frag=$srcdir/src/$deps_frag
9257 lisp_frag=$srcdir/src/lisp.mk
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9262 $as_echo_n "checking for long file names... " >&6; }
9263 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9264 $as_echo_n "(cached) " >&6
9265 else
9266 ac_cv_sys_long_file_names=yes
9267 # Test for long file names in all the places we know might matter:
9268 # . the current directory, where building will happen
9269 # $prefix/lib where we will be installing things
9270 # $exec_prefix/lib likewise
9271 # $TMPDIR if set, where it might want to write temporary files
9272 # /tmp where it might want to write temporary files
9273 # /var/tmp likewise
9274 # /usr/tmp likewise
9275 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9276 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9277 # in the usual case where exec_prefix is '${prefix}'.
9278 case $ac_dir in #(
9279 . | /* | ?:[\\/]*) ;; #(
9280 *) continue;;
9281 esac
9282 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9283 ac_xdir=$ac_dir/cf$$
9284 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9285 ac_tf1=$ac_xdir/conftest9012345
9286 ac_tf2=$ac_xdir/conftest9012346
9287 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9288 ac_cv_sys_long_file_names=no
9289 rm -f -r "$ac_xdir" 2>/dev/null
9290 test $ac_cv_sys_long_file_names = no && break
9291 done
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9294 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9295 if test $ac_cv_sys_long_file_names = yes; then
9297 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9302 #### Choose a window system.
9304 ## We leave window_system equal to none if
9305 ## we end up building without one. Any new window system should
9306 ## set window_system to an appropriate value and add objects to
9307 ## window-system-specific substs.
9309 window_system=none
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9311 $as_echo_n "checking for X... " >&6; }
9314 # Check whether --with-x was given.
9315 if test "${with_x+set}" = set; then :
9316 withval=$with_x;
9319 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9320 if test "x$with_x" = xno; then
9321 # The user explicitly disabled X.
9322 have_x=disabled
9323 else
9324 case $x_includes,$x_libraries in #(
9325 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9326 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9327 $as_echo_n "(cached) " >&6
9328 else
9329 # One or both of the vars are not set, and there is no cached value.
9330 ac_x_includes=no ac_x_libraries=no
9331 rm -f -r conftest.dir
9332 if mkdir conftest.dir; then
9333 cd conftest.dir
9334 cat >Imakefile <<'_ACEOF'
9335 incroot:
9336 @echo incroot='${INCROOT}'
9337 usrlibdir:
9338 @echo usrlibdir='${USRLIBDIR}'
9339 libdir:
9340 @echo libdir='${LIBDIR}'
9341 _ACEOF
9342 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9343 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9344 for ac_var in incroot usrlibdir libdir; do
9345 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9346 done
9347 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9348 for ac_extension in a so sl dylib la dll; do
9349 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9350 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9351 ac_im_usrlibdir=$ac_im_libdir; break
9353 done
9354 # Screen out bogus values from the imake configuration. They are
9355 # bogus both because they are the default anyway, and because
9356 # using them would break gcc on systems where it needs fixed includes.
9357 case $ac_im_incroot in
9358 /usr/include) ac_x_includes= ;;
9359 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9360 esac
9361 case $ac_im_usrlibdir in
9362 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9363 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9364 esac
9366 cd ..
9367 rm -f -r conftest.dir
9370 # Standard set of common directories for X headers.
9371 # Check X11 before X11Rn because it is often a symlink to the current release.
9372 ac_x_header_dirs='
9373 /usr/X11/include
9374 /usr/X11R7/include
9375 /usr/X11R6/include
9376 /usr/X11R5/include
9377 /usr/X11R4/include
9379 /usr/include/X11
9380 /usr/include/X11R7
9381 /usr/include/X11R6
9382 /usr/include/X11R5
9383 /usr/include/X11R4
9385 /usr/local/X11/include
9386 /usr/local/X11R7/include
9387 /usr/local/X11R6/include
9388 /usr/local/X11R5/include
9389 /usr/local/X11R4/include
9391 /usr/local/include/X11
9392 /usr/local/include/X11R7
9393 /usr/local/include/X11R6
9394 /usr/local/include/X11R5
9395 /usr/local/include/X11R4
9397 /usr/X386/include
9398 /usr/x386/include
9399 /usr/XFree86/include/X11
9401 /usr/include
9402 /usr/local/include
9403 /usr/unsupported/include
9404 /usr/athena/include
9405 /usr/local/x11r5/include
9406 /usr/lpp/Xamples/include
9408 /usr/openwin/include
9409 /usr/openwin/share/include'
9411 if test "$ac_x_includes" = no; then
9412 # Guess where to find include files, by looking for Xlib.h.
9413 # First, try using that file with no special directory specified.
9414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9415 /* end confdefs.h. */
9416 #include <X11/Xlib.h>
9417 _ACEOF
9418 if ac_fn_c_try_cpp "$LINENO"; then :
9419 # We can compile using X headers with no special include directory.
9420 ac_x_includes=
9421 else
9422 for ac_dir in $ac_x_header_dirs; do
9423 if test -r "$ac_dir/X11/Xlib.h"; then
9424 ac_x_includes=$ac_dir
9425 break
9427 done
9429 rm -f conftest.err conftest.$ac_ext
9430 fi # $ac_x_includes = no
9432 if test "$ac_x_libraries" = no; then
9433 # Check for the libraries.
9434 # See if we find them without any special options.
9435 # Don't add to $LIBS permanently.
9436 ac_save_LIBS=$LIBS
9437 LIBS="-lX11 $LIBS"
9438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9439 /* end confdefs.h. */
9440 #include <X11/Xlib.h>
9442 main ()
9444 XrmInitialize ()
9446 return 0;
9448 _ACEOF
9449 if ac_fn_c_try_link "$LINENO"; then :
9450 LIBS=$ac_save_LIBS
9451 # We can link X programs with no special library path.
9452 ac_x_libraries=
9453 else
9454 LIBS=$ac_save_LIBS
9455 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9457 # Don't even attempt the hair of trying to link an X program!
9458 for ac_extension in a so sl dylib la dll; do
9459 if test -r "$ac_dir/libX11.$ac_extension"; then
9460 ac_x_libraries=$ac_dir
9461 break 2
9463 done
9464 done
9466 rm -f core conftest.err conftest.$ac_objext \
9467 conftest$ac_exeext conftest.$ac_ext
9468 fi # $ac_x_libraries = no
9470 case $ac_x_includes,$ac_x_libraries in #(
9471 no,* | *,no | *\'*)
9472 # Didn't find X, or a directory has "'" in its name.
9473 ac_cv_have_x="have_x=no";; #(
9475 # Record where we found X for the cache.
9476 ac_cv_have_x="have_x=yes\
9477 ac_x_includes='$ac_x_includes'\
9478 ac_x_libraries='$ac_x_libraries'"
9479 esac
9481 ;; #(
9482 *) have_x=yes;;
9483 esac
9484 eval "$ac_cv_have_x"
9485 fi # $with_x != no
9487 if test "$have_x" != yes; then
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9489 $as_echo "$have_x" >&6; }
9490 no_x=yes
9491 else
9492 # If each of the values was on the command line, it overrides each guess.
9493 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9494 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9495 # Update the cache value to reflect the command line values.
9496 ac_cv_have_x="have_x=yes\
9497 ac_x_includes='$x_includes'\
9498 ac_x_libraries='$x_libraries'"
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9500 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9503 if test "$no_x" != yes; then
9504 window_system=x11
9507 LD_SWITCH_X_SITE_RPATH=
9508 if test "${x_libraries}" != NONE; then
9509 if test -n "${x_libraries}"; then
9510 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9511 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9513 x_default_search_path=""
9514 x_search_path=${x_libraries}
9515 if test -z "${x_search_path}"; then
9516 x_search_path=/usr/lib
9518 for x_library in `echo ${x_search_path}: | \
9519 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9520 x_search_path="\
9521 ${x_library}/X11/%L/%T/%N%C%S:\
9522 ${x_library}/X11/%l/%T/%N%C%S:\
9523 ${x_library}/X11/%T/%N%C%S:\
9524 ${x_library}/X11/%L/%T/%N%S:\
9525 ${x_library}/X11/%l/%T/%N%S:\
9526 ${x_library}/X11/%T/%N%S"
9527 if test x"${x_default_search_path}" = x; then
9528 x_default_search_path=${x_search_path}
9529 else
9530 x_default_search_path="${x_search_path}:${x_default_search_path}"
9532 done
9536 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9537 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9540 if test x"${x_includes}" = x; then
9541 bitmapdir=/usr/include/X11/bitmaps
9542 else
9543 # accumulate include directories that have X11 bitmap subdirectories
9544 bmd_acc="dummyval"
9545 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9546 if test -d "${bmd}/X11/bitmaps"; then
9547 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9549 if test -d "${bmd}/bitmaps"; then
9550 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9552 done
9553 if test ${bmd_acc} != "dummyval"; then
9554 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9558 HAVE_NS=no
9559 NS_IMPL_COCOA=no
9560 NS_IMPL_GNUSTEP=no
9561 tmp_CPPFLAGS="$CPPFLAGS"
9562 tmp_CFLAGS="$CFLAGS"
9563 CPPFLAGS="$CPPFLAGS -x objective-c"
9564 CFLAGS="$CFLAGS -x objective-c"
9565 GNU_OBJC_CFLAGS=
9566 LIBS_GNUSTEP=
9567 if test "${with_ns}" != no; then
9568 if test "${opsys}" = darwin; then
9569 NS_IMPL_COCOA=yes
9570 ns_appdir=`pwd`/nextstep/Emacs.app
9571 ns_appbindir=${ns_appdir}/Contents/MacOS
9572 ns_appresdir=${ns_appdir}/Contents/Resources
9573 ns_appsrc=Cocoa/Emacs.base
9574 elif test -f $GNUSTEP_CONFIG_FILE; then
9575 NS_IMPL_GNUSTEP=yes
9576 ns_appdir=`pwd`/nextstep/Emacs.app
9577 ns_appbindir=${ns_appdir}
9578 ns_appresdir=${ns_appdir}/Resources
9579 ns_appsrc=GNUstep/Emacs.base
9580 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9581 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9582 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9583 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9584 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9585 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9586 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9587 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9588 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9589 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9590 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9591 LIBS_GNUSTEP="-lgnustep-gui -lgnustep-base -lobjc -lpthread"
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9593 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9594 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9595 $as_echo_n "(cached) " >&6
9596 else
9597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9598 /* end confdefs.h. */
9599 #include <GNUstepBase/GSConfig.h>
9601 main ()
9603 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9605 #else
9606 fail;
9607 #endif
9609 return 0;
9611 _ACEOF
9612 if ac_fn_c_try_compile "$LINENO"; then :
9613 emacs_cv_objc_exceptions=yes
9614 else
9615 emacs_cv_objc_exceptions=no
9617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9620 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9621 if test $emacs_cv_objc_exceptions = yes; then
9623 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9625 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9629 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9631 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9632 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9633 HAVE_NS=yes
9634 else
9635 as_fn_error "\`--with-ns' was specified, but the include
9636 files are missing or cannot be compiled." "$LINENO" 5
9641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9642 /* end confdefs.h. */
9643 #include <AppKit/AppKit.h>
9645 main ()
9648 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
9649 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
9650 ; /* OK */
9651 #else
9652 #error "OSX 10.4 or newer required"
9653 #endif
9654 #endif
9657 return 0;
9659 _ACEOF
9660 if ac_fn_c_try_compile "$LINENO"; then :
9661 ns_osx_have_104=yes
9662 else
9663 ns_osx_have_104=no
9665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9667 /* end confdefs.h. */
9668 #include <Foundation/NSObjCRuntime.h>
9670 main ()
9672 NSInteger i;
9674 return 0;
9676 _ACEOF
9677 if ac_fn_c_try_compile "$LINENO"; then :
9678 ns_have_nsinteger=yes
9679 else
9680 ns_have_nsinteger=no
9682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9683 if test $ns_osx_have_104 = no; then
9684 as_fn_error "\`OSX 10.4 or newer is required'" "$LINENO" 5;
9686 if test $ns_have_nsinteger = yes; then
9688 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9695 INSTALL_ARCH_INDEP_EXTRA=install-etc
9696 ns_self_contained=no
9697 NS_OBJ=
9698 NS_OBJC_OBJ=
9699 if test "${HAVE_NS}" = yes; then
9700 if test "$with_toolkit_scroll_bars" = "no"; then
9701 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9704 window_system=nextstep
9705 # set up packaging dirs
9706 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9707 ns_self_contained=yes
9708 prefix=${ns_appresdir}
9709 exec_prefix=${ns_appbindir}
9710 libexecdir="\${ns_appbindir}/libexec"
9711 archlibdir="\${ns_appbindir}/libexec"
9712 docdir="\${ns_appresdir}/etc"
9713 etcdir="\${ns_appresdir}/etc"
9714 infodir="\${ns_appresdir}/info"
9715 mandir="\${ns_appresdir}/man"
9716 lispdir="\${ns_appresdir}/lisp"
9717 leimdir="\${ns_appresdir}/leim"
9718 INSTALL_ARCH_INDEP_EXTRA=
9720 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9722 CFLAGS="$tmp_CFLAGS"
9723 CPPFLAGS="$tmp_CPPFLAGS"
9729 HAVE_W32=no
9730 W32_OBJ=
9731 W32_LIBS=
9732 W32_RES=
9733 W32_RES_LINK=
9734 if test "${with_w32}" != no; then
9735 if test "${opsys}" != "cygwin"; then
9736 as_fn_error "Using w32 with an autotools build is only supported for Cygwin." "$LINENO" 5
9738 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9739 if test "x$ac_cv_header_windows_h" = x""yes; then :
9740 HAVE_W32=yes
9741 else
9742 as_fn_error "\`--with-w32' was specified, but windows.h
9743 cannot be found." "$LINENO" 5
9748 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
9750 if test -n "$ac_tool_prefix"; then
9751 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9752 set dummy ${ac_tool_prefix}windres; ac_word=$2
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9754 $as_echo_n "checking for $ac_word... " >&6; }
9755 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9756 $as_echo_n "(cached) " >&6
9757 else
9758 if test -n "$WINDRES"; then
9759 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9760 else
9761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9762 for as_dir in $PATH
9764 IFS=$as_save_IFS
9765 test -z "$as_dir" && as_dir=.
9766 for ac_exec_ext in '' $ac_executable_extensions; do
9767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9768 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
9769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9770 break 2
9772 done
9773 done
9774 IFS=$as_save_IFS
9778 WINDRES=$ac_cv_prog_WINDRES
9779 if test -n "$WINDRES"; then
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9781 $as_echo "$WINDRES" >&6; }
9782 else
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9784 $as_echo "no" >&6; }
9789 if test -z "$ac_cv_prog_WINDRES"; then
9790 ac_ct_WINDRES=$WINDRES
9791 # Extract the first word of "windres", so it can be a program name with args.
9792 set dummy windres; ac_word=$2
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9794 $as_echo_n "checking for $ac_word... " >&6; }
9795 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
9796 $as_echo_n "(cached) " >&6
9797 else
9798 if test -n "$ac_ct_WINDRES"; then
9799 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
9800 else
9801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9802 for as_dir in $PATH
9804 IFS=$as_save_IFS
9805 test -z "$as_dir" && as_dir=.
9806 for ac_exec_ext in '' $ac_executable_extensions; do
9807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9808 ac_cv_prog_ac_ct_WINDRES="windres"
9809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9810 break 2
9812 done
9813 done
9814 IFS=$as_save_IFS
9818 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9819 if test -n "$ac_ct_WINDRES"; then
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
9821 $as_echo "$ac_ct_WINDRES" >&6; }
9822 else
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9824 $as_echo "no" >&6; }
9827 if test "x$ac_ct_WINDRES" = x; then
9828 WINDRES="as_fn_error "No resource compiler found." "$LINENO" 5"
9829 else
9830 case $cross_compiling:$ac_tool_warned in
9831 yes:)
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9834 ac_tool_warned=yes ;;
9835 esac
9836 WINDRES=$ac_ct_WINDRES
9838 else
9839 WINDRES="$ac_cv_prog_WINDRES"
9842 W32_OBJ="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
9843 W32_OBJ="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
9844 W32_LIBS="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
9845 W32_LIBS="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
9846 W32_RES="emacs.res"
9847 # Tell the linker that emacs.res is an object (which we compile from
9848 # the rc file), not a linker script.
9849 W32_RES_LINK="-Wl,emacs.res"
9856 if test "${HAVE_W32}" = "yes"; then
9857 window_system=w32
9858 with_xft=no
9861 ## $window_system is now set to the window system we will
9862 ## ultimately use.
9864 term_header=
9865 HAVE_X_WINDOWS=no
9866 HAVE_X11=no
9867 USE_X_TOOLKIT=none
9869 case "${window_system}" in
9870 x11 )
9871 HAVE_X_WINDOWS=yes
9872 HAVE_X11=yes
9873 term_header=xterm.h
9874 case "${with_x_toolkit}" in
9875 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9876 motif ) USE_X_TOOLKIT=MOTIF ;;
9877 gtk ) with_gtk=yes
9878 term_header=gtkutil.h
9879 USE_X_TOOLKIT=none ;;
9880 gtk2 ) with_gtk2=yes
9881 term_header=gtkutil.h
9882 USE_X_TOOLKIT=none ;;
9883 gtk3 ) with_gtk3=yes
9884 term_header=gtkutil.h
9885 USE_X_TOOLKIT=none ;;
9886 no ) USE_X_TOOLKIT=none ;;
9887 * ) USE_X_TOOLKIT=maybe ;;
9888 esac
9890 nextstep )
9891 term_header=nsterm.h
9893 w32 )
9894 term_header=w32term.h
9896 esac
9898 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9899 # Extract the first word of "X", so it can be a program name with args.
9900 set dummy X; ac_word=$2
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9902 $as_echo_n "checking for $ac_word... " >&6; }
9903 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9904 $as_echo_n "(cached) " >&6
9905 else
9906 if test -n "$HAVE_XSERVER"; then
9907 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9908 else
9909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9910 for as_dir in $PATH
9912 IFS=$as_save_IFS
9913 test -z "$as_dir" && as_dir=.
9914 for ac_exec_ext in '' $ac_executable_extensions; do
9915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9916 ac_cv_prog_HAVE_XSERVER="true"
9917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9918 break 2
9920 done
9921 done
9922 IFS=$as_save_IFS
9924 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9927 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9928 if test -n "$HAVE_XSERVER"; then
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9930 $as_echo "$HAVE_XSERVER" >&6; }
9931 else
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9933 $as_echo "no" >&6; }
9937 if test "$HAVE_XSERVER" = true ||
9938 test -n "$DISPLAY" ||
9939 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9940 as_fn_error "You seem to be running X, but no X development libraries
9941 were found. You should install the relevant development files for X
9942 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9943 sure you have development files for image handling, i.e.
9944 tiff, gif, jpeg, png and xpm.
9945 If you are sure you want Emacs compiled without X window support, pass
9946 --without-x
9947 to configure." "$LINENO" 5
9951 ### If we're using X11, we should use the X menu package.
9952 HAVE_MENUS=no
9953 case ${HAVE_X11} in
9954 yes ) HAVE_MENUS=yes ;;
9955 esac
9957 # Does the opsystem file prohibit the use of the GNU malloc?
9958 # Assume not, until told otherwise.
9959 GNU_MALLOC=yes
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9962 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9963 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9964 $as_echo_n "(cached) " >&6
9965 else
9966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9967 /* end confdefs.h. */
9968 #include <malloc.h>
9969 static void hook (void) {}
9971 main ()
9973 malloc_set_state (malloc_get_state ());
9974 __after_morecore_hook = hook;
9975 __malloc_initialize_hook = hook;
9977 return 0;
9979 _ACEOF
9980 if ac_fn_c_try_link "$LINENO"; then :
9981 emacs_cv_var_doug_lea_malloc=yes
9982 else
9983 emacs_cv_var_doug_lea_malloc=no
9985 rm -f core conftest.err conftest.$ac_objext \
9986 conftest$ac_exeext conftest.$ac_ext
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9989 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9990 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
9993 system_malloc=no
9994 case "$opsys" in
9995 ## darwin ld insists on the use of malloc routines in the System framework.
9996 darwin|sol2-10) system_malloc=yes ;;
9997 esac
9999 if test "${system_malloc}" = "yes"; then
10001 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10003 GNU_MALLOC=no
10004 GNU_MALLOC_reason="
10005 (The GNU allocators don't work with this system configuration.)"
10006 GMALLOC_OBJ=
10007 VMLIMIT_OBJ=
10008 else
10009 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10010 VMLIMIT_OBJ=vm-limit.o
10012 for ac_header in sys/vlimit.h
10013 do :
10014 ac_fn_c_check_header_mongrel "$LINENO" "sys/vlimit.h" "ac_cv_header_sys_vlimit_h" "$ac_includes_default"
10015 if test "x$ac_cv_header_sys_vlimit_h" = x""yes; then :
10016 cat >>confdefs.h <<_ACEOF
10017 #define HAVE_SYS_VLIMIT_H 1
10018 _ACEOF
10022 done
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for data_start" >&5
10025 $as_echo_n "checking for data_start... " >&6; }
10026 if test "${emacs_cv_data_start+set}" = set; then :
10027 $as_echo_n "(cached) " >&6
10028 else
10029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10030 /* end confdefs.h. */
10031 extern char data_start[]; char ch;
10033 main ()
10035 return data_start < &ch;
10037 return 0;
10039 _ACEOF
10040 if ac_fn_c_try_link "$LINENO"; then :
10041 emacs_cv_data_start=yes
10042 else
10043 emacs_cv_data_start=no
10045 rm -f core conftest.err conftest.$ac_objext \
10046 conftest$ac_exeext conftest.$ac_ext
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_data_start" >&5
10049 $as_echo "$emacs_cv_data_start" >&6; }
10050 if test $emacs_cv_data_start = yes; then
10052 $as_echo "#define HAVE_DATA_START 1" >>confdefs.h
10059 if test "$doug_lea_malloc" = "yes" ; then
10060 if test "$GNU_MALLOC" = yes ; then
10061 GNU_MALLOC_reason="
10062 (Using Doug Lea's new malloc from the GNU C Library.)"
10065 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10068 ## Use mmap directly for allocating larger buffers.
10069 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10070 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10071 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10072 case "$opsys" in
10073 gnu*) REL_ALLOC=no ;;
10074 esac
10077 if test x"${REL_ALLOC}" = x; then
10078 REL_ALLOC=${GNU_MALLOC}
10081 use_mmap_for_buffers=no
10082 case "$opsys" in
10083 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10084 esac
10093 for ac_func in getpagesize
10094 do :
10095 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10096 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10097 cat >>confdefs.h <<_ACEOF
10098 #define HAVE_GETPAGESIZE 1
10099 _ACEOF
10102 done
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10105 $as_echo_n "checking for working mmap... " >&6; }
10106 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10107 $as_echo_n "(cached) " >&6
10108 else
10109 if test "$cross_compiling" = yes; then :
10110 ac_cv_func_mmap_fixed_mapped=no
10111 else
10112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10113 /* end confdefs.h. */
10114 $ac_includes_default
10115 /* malloc might have been renamed as rpl_malloc. */
10116 #undef malloc
10118 /* Thanks to Mike Haertel and Jim Avera for this test.
10119 Here is a matrix of mmap possibilities:
10120 mmap private not fixed
10121 mmap private fixed at somewhere currently unmapped
10122 mmap private fixed at somewhere already mapped
10123 mmap shared not fixed
10124 mmap shared fixed at somewhere currently unmapped
10125 mmap shared fixed at somewhere already mapped
10126 For private mappings, we should verify that changes cannot be read()
10127 back from the file, nor mmap's back from the file at a different
10128 address. (There have been systems where private was not correctly
10129 implemented like the infamous i386 svr4.0, and systems where the
10130 VM page cache was not coherent with the file system buffer cache
10131 like early versions of FreeBSD and possibly contemporary NetBSD.)
10132 For shared mappings, we should conversely verify that changes get
10133 propagated back to all the places they're supposed to be.
10135 Grep wants private fixed already mapped.
10136 The main things grep needs to know about mmap are:
10137 * does it exist and is it safe to write into the mmap'd area
10138 * how to use it (BSD variants) */
10140 #include <fcntl.h>
10141 #include <sys/mman.h>
10143 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10144 char *malloc ();
10145 #endif
10147 /* This mess was copied from the GNU getpagesize.h. */
10148 #ifndef HAVE_GETPAGESIZE
10149 # ifdef _SC_PAGESIZE
10150 # define getpagesize() sysconf(_SC_PAGESIZE)
10151 # else /* no _SC_PAGESIZE */
10152 # ifdef HAVE_SYS_PARAM_H
10153 # include <sys/param.h>
10154 # ifdef EXEC_PAGESIZE
10155 # define getpagesize() EXEC_PAGESIZE
10156 # else /* no EXEC_PAGESIZE */
10157 # ifdef NBPG
10158 # define getpagesize() NBPG * CLSIZE
10159 # ifndef CLSIZE
10160 # define CLSIZE 1
10161 # endif /* no CLSIZE */
10162 # else /* no NBPG */
10163 # ifdef NBPC
10164 # define getpagesize() NBPC
10165 # else /* no NBPC */
10166 # ifdef PAGESIZE
10167 # define getpagesize() PAGESIZE
10168 # endif /* PAGESIZE */
10169 # endif /* no NBPC */
10170 # endif /* no NBPG */
10171 # endif /* no EXEC_PAGESIZE */
10172 # else /* no HAVE_SYS_PARAM_H */
10173 # define getpagesize() 8192 /* punt totally */
10174 # endif /* no HAVE_SYS_PARAM_H */
10175 # endif /* no _SC_PAGESIZE */
10177 #endif /* no HAVE_GETPAGESIZE */
10180 main ()
10182 char *data, *data2, *data3;
10183 const char *cdata2;
10184 int i, pagesize;
10185 int fd, fd2;
10187 pagesize = getpagesize ();
10189 /* First, make a file with some known garbage in it. */
10190 data = (char *) malloc (pagesize);
10191 if (!data)
10192 return 1;
10193 for (i = 0; i < pagesize; ++i)
10194 *(data + i) = rand ();
10195 umask (0);
10196 fd = creat ("conftest.mmap", 0600);
10197 if (fd < 0)
10198 return 2;
10199 if (write (fd, data, pagesize) != pagesize)
10200 return 3;
10201 close (fd);
10203 /* Next, check that the tail of a page is zero-filled. File must have
10204 non-zero length, otherwise we risk SIGBUS for entire page. */
10205 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10206 if (fd2 < 0)
10207 return 4;
10208 cdata2 = "";
10209 if (write (fd2, cdata2, 1) != 1)
10210 return 5;
10211 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10212 if (data2 == MAP_FAILED)
10213 return 6;
10214 for (i = 0; i < pagesize; ++i)
10215 if (*(data2 + i))
10216 return 7;
10217 close (fd2);
10218 if (munmap (data2, pagesize))
10219 return 8;
10221 /* Next, try to mmap the file at a fixed address which already has
10222 something else allocated at it. If we can, also make sure that
10223 we see the same garbage. */
10224 fd = open ("conftest.mmap", O_RDWR);
10225 if (fd < 0)
10226 return 9;
10227 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10228 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10229 return 10;
10230 for (i = 0; i < pagesize; ++i)
10231 if (*(data + i) != *(data2 + i))
10232 return 11;
10234 /* Finally, make sure that changes to the mapped area do not
10235 percolate back to the file as seen by read(). (This is a bug on
10236 some variants of i386 svr4.0.) */
10237 for (i = 0; i < pagesize; ++i)
10238 *(data2 + i) = *(data2 + i) + 1;
10239 data3 = (char *) malloc (pagesize);
10240 if (!data3)
10241 return 12;
10242 if (read (fd, data3, pagesize) != pagesize)
10243 return 13;
10244 for (i = 0; i < pagesize; ++i)
10245 if (*(data + i) != *(data3 + i))
10246 return 14;
10247 close (fd);
10248 return 0;
10250 _ACEOF
10251 if ac_fn_c_try_run "$LINENO"; then :
10252 ac_cv_func_mmap_fixed_mapped=yes
10253 else
10254 ac_cv_func_mmap_fixed_mapped=no
10256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10257 conftest.$ac_objext conftest.beam conftest.$ac_ext
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10262 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10263 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10265 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10268 rm -f conftest.mmap conftest.txt
10270 if test $use_mmap_for_buffers = yes; then
10272 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10274 REL_ALLOC=no
10277 LIBS="$LIBS_SYSTEM $LIBS"
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10280 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10281 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10282 $as_echo_n "(cached) " >&6
10283 else
10284 ac_check_lib_save_LIBS=$LIBS
10285 LIBS="-ldnet $LIBS"
10286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10287 /* end confdefs.h. */
10289 /* Override any GCC internal prototype to avoid an error.
10290 Use char because int might match the return type of a GCC
10291 builtin and then its argument prototype would still apply. */
10292 #ifdef __cplusplus
10293 extern "C"
10294 #endif
10295 char dnet_ntoa ();
10297 main ()
10299 return dnet_ntoa ();
10301 return 0;
10303 _ACEOF
10304 if ac_fn_c_try_link "$LINENO"; then :
10305 ac_cv_lib_dnet_dnet_ntoa=yes
10306 else
10307 ac_cv_lib_dnet_dnet_ntoa=no
10309 rm -f core conftest.err conftest.$ac_objext \
10310 conftest$ac_exeext conftest.$ac_ext
10311 LIBS=$ac_check_lib_save_LIBS
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10314 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10315 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10316 cat >>confdefs.h <<_ACEOF
10317 #define HAVE_LIBDNET 1
10318 _ACEOF
10320 LIBS="-ldnet $LIBS"
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10326 $as_echo_n "checking for main in -lXbsd... " >&6; }
10327 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10328 $as_echo_n "(cached) " >&6
10329 else
10330 ac_check_lib_save_LIBS=$LIBS
10331 LIBS="-lXbsd $LIBS"
10332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10333 /* end confdefs.h. */
10337 main ()
10339 return main ();
10341 return 0;
10343 _ACEOF
10344 if ac_fn_c_try_link "$LINENO"; then :
10345 ac_cv_lib_Xbsd_main=yes
10346 else
10347 ac_cv_lib_Xbsd_main=no
10349 rm -f core conftest.err conftest.$ac_objext \
10350 conftest$ac_exeext conftest.$ac_ext
10351 LIBS=$ac_check_lib_save_LIBS
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10354 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10355 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10356 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10360 LIB_PTHREAD=
10364 if test "$ac_cv_header_pthread_h"; then
10365 if test "$GMALLOC_OBJ" = gmalloc.o; then
10366 emacs_pthread_function=pthread_atfork
10367 else
10368 emacs_pthread_function=pthread_self
10370 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10372 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10373 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10374 $as_echo_n "(cached) " >&6
10375 else
10376 ac_check_lib_save_LIBS=$LIBS
10377 LIBS="-lpthread $LIBS"
10378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10379 /* end confdefs.h. */
10381 /* Override any GCC internal prototype to avoid an error.
10382 Use char because int might match the return type of a GCC
10383 builtin and then its argument prototype would still apply. */
10384 #ifdef __cplusplus
10385 extern "C"
10386 #endif
10387 char $emacs_pthread_function ();
10389 main ()
10391 return $emacs_pthread_function ();
10393 return 0;
10395 _ACEOF
10396 if ac_fn_c_try_link "$LINENO"; then :
10397 eval "$as_ac_Lib=yes"
10398 else
10399 eval "$as_ac_Lib=no"
10401 rm -f core conftest.err conftest.$ac_objext \
10402 conftest$ac_exeext conftest.$ac_ext
10403 LIBS=$ac_check_lib_save_LIBS
10405 eval ac_res=\$$as_ac_Lib
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10407 $as_echo "$ac_res" >&6; }
10408 eval as_val=\$$as_ac_Lib
10409 if test "x$as_val" = x""yes; then :
10410 HAVE_PTHREAD=yes
10414 if test "$HAVE_PTHREAD" = yes; then
10415 case "${canonical}" in
10416 *-hpux*) ;;
10417 *) LIB_PTHREAD="-lpthread"
10418 LIBS="$LIB_PTHREAD $LIBS" ;;
10419 esac
10421 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10427 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10428 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10429 $as_echo_n "(cached) " >&6
10430 else
10431 ac_check_lib_save_LIBS=$LIBS
10432 LIBS="-lpthreads $LIBS"
10433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10434 /* end confdefs.h. */
10436 /* Override any GCC internal prototype to avoid an error.
10437 Use char because int might match the return type of a GCC
10438 builtin and then its argument prototype would still apply. */
10439 #ifdef __cplusplus
10440 extern "C"
10441 #endif
10442 char cma_open ();
10444 main ()
10446 return cma_open ();
10448 return 0;
10450 _ACEOF
10451 if ac_fn_c_try_link "$LINENO"; then :
10452 ac_cv_lib_pthreads_cma_open=yes
10453 else
10454 ac_cv_lib_pthreads_cma_open=no
10456 rm -f core conftest.err conftest.$ac_objext \
10457 conftest$ac_exeext conftest.$ac_ext
10458 LIBS=$ac_check_lib_save_LIBS
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10461 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10462 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10463 cat >>confdefs.h <<_ACEOF
10464 #define HAVE_LIBPTHREADS 1
10465 _ACEOF
10467 LIBS="-lpthreads $LIBS"
10472 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10473 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10474 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10475 ## added to LIBS in configure would never contain the pthreads part,
10476 ## but the value used in Makefiles might. FIXME?
10478 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10479 ## be harmless on older versions of X where it happens to exist.
10480 test "$opsys" = "aix4-2" && \
10481 test $ac_cv_lib_pthreads_cma_open = yes && \
10482 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10485 case ${host_os} in
10486 aix*)
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10488 $as_echo_n "checking for -bbigtoc option... " >&6; }
10489 if test "${gdb_cv_bigtoc+set}" = set; then :
10490 $as_echo_n "(cached) " >&6
10491 else
10493 case $GCC in
10494 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10495 *) gdb_cv_bigtoc=-bbigtoc ;;
10496 esac
10498 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10500 /* end confdefs.h. */
10503 main ()
10505 int i;
10507 return 0;
10509 _ACEOF
10510 if ac_fn_c_try_link "$LINENO"; then :
10512 else
10513 gdb_cv_bigtoc=
10515 rm -f core conftest.err conftest.$ac_objext \
10516 conftest$ac_exeext conftest.$ac_ext
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10520 $as_echo "$gdb_cv_bigtoc" >&6; }
10522 esac
10524 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10525 # used for the tests that follow. We set them back to REAL_CFLAGS and
10526 # REAL_CPPFLAGS later on.
10528 REAL_CFLAGS="$CFLAGS"
10529 REAL_CPPFLAGS="$CPPFLAGS"
10531 if test "${HAVE_X11}" = "yes"; then
10532 DEFS="$C_SWITCH_X_SITE $DEFS"
10533 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10534 LIBS="-lX11 $LIBS"
10535 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10536 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10538 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10539 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10540 # but it's more convenient here to set LD_RUN_PATH since this
10541 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10542 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10543 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10544 export LD_RUN_PATH
10547 if test "${opsys}" = "gnu-linux"; then
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10549 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10551 /* end confdefs.h. */
10554 main ()
10556 XOpenDisplay ("foo");
10558 return 0;
10560 _ACEOF
10561 if ac_fn_c_try_link "$LINENO"; then :
10562 xgnu_linux_first_failure=no
10563 else
10564 xgnu_linux_first_failure=yes
10566 rm -f core conftest.err conftest.$ac_objext \
10567 conftest$ac_exeext conftest.$ac_ext
10568 if test "${xgnu_linux_first_failure}" = "yes"; then
10569 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10570 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10571 OLD_CPPFLAGS="$CPPFLAGS"
10572 OLD_LIBS="$LIBS"
10573 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10574 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10575 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10576 LIBS="$LIBS -b i486-linuxaout"
10577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10578 /* end confdefs.h. */
10581 main ()
10583 XOpenDisplay ("foo");
10585 return 0;
10587 _ACEOF
10588 if ac_fn_c_try_link "$LINENO"; then :
10589 xgnu_linux_second_failure=no
10590 else
10591 xgnu_linux_second_failure=yes
10593 rm -f core conftest.err conftest.$ac_objext \
10594 conftest$ac_exeext conftest.$ac_ext
10595 if test "${xgnu_linux_second_failure}" = "yes"; then
10596 # If we get the same failure with -b, there is no use adding -b.
10597 # So take it out. This plays safe.
10598 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10599 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10600 CPPFLAGS="$OLD_CPPFLAGS"
10601 LIBS="$OLD_LIBS"
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10603 $as_echo "no" >&6; }
10604 else
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10606 $as_echo "yes" >&6; }
10608 else
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10610 $as_echo "no" >&6; }
10614 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10615 # header files included from there.
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10617 $as_echo_n "checking for Xkb... " >&6; }
10618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10619 /* end confdefs.h. */
10620 #include <X11/Xlib.h>
10621 #include <X11/XKBlib.h>
10623 main ()
10625 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10627 return 0;
10629 _ACEOF
10630 if ac_fn_c_try_link "$LINENO"; then :
10631 emacs_xkb=yes
10632 else
10633 emacs_xkb=no
10635 rm -f core conftest.err conftest.$ac_objext \
10636 conftest$ac_exeext conftest.$ac_ext
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10638 $as_echo "$emacs_xkb" >&6; }
10639 if test $emacs_xkb = yes; then
10641 $as_echo "#define HAVE_XKB 1" >>confdefs.h
10645 for ac_func in XrmSetDatabase XScreenResourceString \
10646 XScreenNumberOfScreen
10647 do :
10648 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10649 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10650 eval as_val=\$$as_ac_var
10651 if test "x$as_val" = x""yes; then :
10652 cat >>confdefs.h <<_ACEOF
10653 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10654 _ACEOF
10657 done
10661 if test "${window_system}" = "x11"; then
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10663 $as_echo_n "checking X11 version 6... " >&6; }
10664 if test "${emacs_cv_x11_version_6+set}" = set; then :
10665 $as_echo_n "(cached) " >&6
10666 else
10667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h. */
10669 #include <X11/Xlib.h>
10671 main ()
10673 #if XlibSpecificationRelease < 6
10674 fail;
10675 #endif
10678 return 0;
10680 _ACEOF
10681 if ac_fn_c_try_link "$LINENO"; then :
10682 emacs_cv_x11_version_6=yes
10683 else
10684 emacs_cv_x11_version_6=no
10686 rm -f core conftest.err conftest.$ac_objext \
10687 conftest$ac_exeext conftest.$ac_ext
10690 if test $emacs_cv_x11_version_6 = yes; then
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10692 $as_echo "6 or newer" >&6; }
10694 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10697 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10699 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10700 ## XIM support.
10701 case "$opsys" in
10702 sol2-*) : ;;
10704 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10707 esac
10708 else
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10710 $as_echo "before 6" >&6; }
10715 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10716 HAVE_RSVG=no
10717 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10718 if test "${with_rsvg}" != "no"; then
10719 RSVG_REQUIRED=2.11.0
10720 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10723 succeeded=no
10725 if test "$PKG_CONFIG" = "no" ; then
10727 else
10728 PKG_CONFIG_MIN_VERSION=0.9.0
10729 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10731 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10733 if "$PKG_CONFIG" --exists "$RSVG_MODULE" 2>&5 &&
10734 RSVG_CFLAGS=`"$PKG_CONFIG" --cflags "$RSVG_MODULE" 2>&5` &&
10735 RSVG_LIBS=`"$PKG_CONFIG" --libs "$RSVG_MODULE" 2>&5`; then
10736 edit_cflags="
10737 s,///*,/,g
10738 s/^/ /
10739 s/ -I/ $isystem/g
10740 s/^ //
10742 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10743 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10745 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10746 succeeded=yes
10747 else
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10749 $as_echo "no" >&6; }
10750 RSVG_CFLAGS=""
10751 RSVG_LIBS=""
10752 ## If we have a custom action on failure, don't print errors, but
10753 ## do set a variable so people can do so. Do it in a subshell
10754 ## to capture any diagnostics in invoking pkg-config.
10755 RSVG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$RSVG_MODULE") 2>&1`
10761 else
10762 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10763 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10767 if test $succeeded = yes; then
10768 HAVE_RSVG=yes
10769 else
10776 if test $HAVE_RSVG = yes; then
10778 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10780 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10781 LIBS="$RSVG_LIBS $LIBS"
10786 HAVE_IMAGEMAGICK=no
10787 if test "${HAVE_X11}" = "yes"; then
10788 if test "${with_imagemagick}" != "no"; then
10789 ## 6.2.8 is the earliest version known to work, but earlier versions
10790 ## might work - let us know if you find one.
10791 ## 6.0.7 does not work. See bug#7955.
10792 ## 6.8.2 makes Emacs crash; see Bug#13867.
10793 IMAGEMAGICK_MODULE="Wand >= 6.2.8 Wand != 6.8.2"
10795 succeeded=no
10797 if test "$PKG_CONFIG" = "no" ; then
10799 else
10800 PKG_CONFIG_MIN_VERSION=0.9.0
10801 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10803 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10805 if "$PKG_CONFIG" --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10806 IMAGEMAGICK_CFLAGS=`"$PKG_CONFIG" --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10807 IMAGEMAGICK_LIBS=`"$PKG_CONFIG" --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10808 edit_cflags="
10809 s,///*,/,g
10810 s/^/ /
10811 s/ -I/ $isystem/g
10812 s/^ //
10814 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10815 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10817 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10818 succeeded=yes
10819 else
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10821 $as_echo "no" >&6; }
10822 IMAGEMAGICK_CFLAGS=""
10823 IMAGEMAGICK_LIBS=""
10824 ## If we have a custom action on failure, don't print errors, but
10825 ## do set a variable so people can do so. Do it in a subshell
10826 ## to capture any diagnostics in invoking pkg-config.
10827 IMAGEMAGICK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
10833 else
10834 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10835 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10839 if test $succeeded = yes; then
10840 HAVE_IMAGEMAGICK=yes
10841 else
10848 if test $HAVE_IMAGEMAGICK = yes; then
10850 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10852 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10853 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10854 for ac_func in MagickExportImagePixels MagickMergeImageLayers
10855 do :
10856 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10857 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10858 eval as_val=\$$as_ac_var
10859 if test "x$as_val" = x""yes; then :
10860 cat >>confdefs.h <<_ACEOF
10861 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10862 _ACEOF
10865 done
10872 HAVE_GTK=no
10873 GTK_OBJ=
10874 check_gtk2=no
10875 gtk3_pkg_errors=
10876 if test "${with_gtk3}" = "yes" || test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10877 GLIB_REQUIRED=2.28
10878 GTK_REQUIRED=3.0
10879 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10882 succeeded=no
10884 if test "$PKG_CONFIG" = "no" ; then
10885 pkg_check_gtk=no
10886 else
10887 PKG_CONFIG_MIN_VERSION=0.9.0
10888 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10890 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10892 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
10893 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
10894 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
10895 edit_cflags="
10896 s,///*,/,g
10897 s/^/ /
10898 s/ -I/ $isystem/g
10899 s/^ //
10901 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10902 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10904 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10905 succeeded=yes
10906 else
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10908 $as_echo "no" >&6; }
10909 GTK_CFLAGS=""
10910 GTK_LIBS=""
10911 ## If we have a custom action on failure, don't print errors, but
10912 ## do set a variable so people can do so. Do it in a subshell
10913 ## to capture any diagnostics in invoking pkg-config.
10914 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
10920 else
10921 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10922 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10926 if test $succeeded = yes; then
10927 pkg_check_gtk=yes
10928 else
10929 pkg_check_gtk=no
10932 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
10933 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10935 if test "$pkg_check_gtk" = "yes"; then
10937 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10939 GTK_OBJ=emacsgtkfixed.o
10940 term_header=gtkutil.h
10941 USE_GTK_TOOLKIT="GTK3"
10942 if test "x$ac_enable_gtk_deprecation_warnings" = x; then
10943 GTK_CFLAGS="$GTK_CFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS"
10945 else
10946 check_gtk2=yes
10947 gtk3_pkg_errors="$GTK_PKG_ERRORS "
10951 if test "${with_gtk2}" = "yes" || test "$check_gtk2" = "yes"; then
10952 GLIB_REQUIRED=2.10
10953 GTK_REQUIRED=2.10
10954 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10957 succeeded=no
10959 if test "$PKG_CONFIG" = "no" ; then
10960 pkg_check_gtk=no
10961 else
10962 PKG_CONFIG_MIN_VERSION=0.9.0
10963 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10965 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10967 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
10968 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
10969 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
10970 edit_cflags="
10971 s,///*,/,g
10972 s/^/ /
10973 s/ -I/ $isystem/g
10974 s/^ //
10976 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10977 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10979 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10980 succeeded=yes
10981 else
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10983 $as_echo "no" >&6; }
10984 GTK_CFLAGS=""
10985 GTK_LIBS=""
10986 ## If we have a custom action on failure, don't print errors, but
10987 ## do set a variable so people can do so. Do it in a subshell
10988 ## to capture any diagnostics in invoking pkg-config.
10989 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
10995 else
10996 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10997 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11001 if test $succeeded = yes; then
11002 pkg_check_gtk=yes
11003 else
11004 pkg_check_gtk=no
11007 if test "$pkg_check_gtk" = "no" &&
11008 { test "$with_gtk" = yes || test "$with_gtk2" = "yes"; }
11009 then
11010 as_fn_error "$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
11012 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT="GTK2"
11015 if test x"$pkg_check_gtk" = xyes; then
11019 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11020 CFLAGS="$CFLAGS $GTK_CFLAGS"
11021 LIBS="$GTK_LIBS $LIBS"
11022 GTK_COMPILES=no
11023 for ac_func in gtk_main
11024 do :
11025 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11026 if test "x$ac_cv_func_gtk_main" = x""yes; then :
11027 cat >>confdefs.h <<_ACEOF
11028 #define HAVE_GTK_MAIN 1
11029 _ACEOF
11030 GTK_COMPILES=yes
11032 done
11034 if test "${GTK_COMPILES}" != "yes"; then
11035 if test "$USE_X_TOOLKIT" != "maybe"; then
11036 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11038 else
11039 HAVE_GTK=yes
11041 $as_echo "#define USE_GTK 1" >>confdefs.h
11043 GTK_OBJ="gtkutil.o $GTK_OBJ"
11044 USE_X_TOOLKIT=none
11045 if "$PKG_CONFIG" --atleast-version=2.10 gtk+-2.0; then
11047 else
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11049 closing open displays. This is no problem if you just use
11050 one display, but if you use more than one and close one of them
11051 Emacs may crash." >&5
11052 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11053 closing open displays. This is no problem if you just use
11054 one display, but if you use more than one and close one of them
11055 Emacs may crash." >&2;}
11056 sleep 3
11064 if test "${HAVE_GTK}" = "yes"; then
11066 if test "$with_toolkit_scroll_bars" != no; then
11067 with_toolkit_scroll_bars=yes
11070 HAVE_GTK_FILE_SELECTION=no
11071 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11072 #include <gtk/gtk.h>
11074 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11075 HAVE_GTK_FILE_SELECTION=yes
11076 else
11077 HAVE_GTK_FILE_SELECTION=no
11080 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11081 for ac_func in gtk_file_selection_new
11082 do :
11083 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11084 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11085 cat >>confdefs.h <<_ACEOF
11086 #define HAVE_GTK_FILE_SELECTION_NEW 1
11087 _ACEOF
11090 done
11094 HAVE_GTK_HANDLE_BOX=no
11095 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_HANDLE_BOX" "ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" "$ac_includes_default
11096 #include <gtk/gtk.h>
11098 if test "x$ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" = x""yes; then :
11099 HAVE_GTK_HANDLE_BOX=yes
11100 else
11101 HAVE_GTK_HANDLE_BOX=no
11104 if test "$HAVE_GTK_HANDLE_BOX" = yes; then
11105 for ac_func in gtk_handle_box_new
11106 do :
11107 ac_fn_c_check_func "$LINENO" "gtk_handle_box_new" "ac_cv_func_gtk_handle_box_new"
11108 if test "x$ac_cv_func_gtk_handle_box_new" = x""yes; then :
11109 cat >>confdefs.h <<_ACEOF
11110 #define HAVE_GTK_HANDLE_BOX_NEW 1
11111 _ACEOF
11114 done
11118 HAVE_GTK_TEAROFF_MENU_ITEM=no
11119 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_TEAROFF_MENU_ITEM" "ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" "$ac_includes_default
11120 #include <gtk/gtk.h>
11122 if test "x$ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" = x""yes; then :
11123 HAVE_GTK_TEAROFF_MENU_ITEM=yes
11124 else
11125 HAVE_GTK_TEAROFF_MENU_ITEM=no
11128 if test "$HAVE_GTK_TEAROFF_MENU_ITEM" = yes; then
11129 for ac_func in gtk_tearoff_menu_item_new
11130 do :
11131 ac_fn_c_check_func "$LINENO" "gtk_tearoff_menu_item_new" "ac_cv_func_gtk_tearoff_menu_item_new"
11132 if test "x$ac_cv_func_gtk_tearoff_menu_item_new" = x""yes; then :
11133 cat >>confdefs.h <<_ACEOF
11134 #define HAVE_GTK_TEAROFF_MENU_ITEM_NEW 1
11135 _ACEOF
11138 done
11142 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11143 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11144 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11145 gtk_orientable_set_orientation \
11146 gtk_window_set_has_resize_grip
11147 do :
11148 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11149 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11150 eval as_val=\$$as_ac_var
11151 if test "x$as_val" = x""yes; then :
11152 cat >>confdefs.h <<_ACEOF
11153 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11154 _ACEOF
11157 done
11160 term_header=gtkutil.h
11163 HAVE_DBUS=no
11164 DBUS_OBJ=
11165 if test "${with_dbus}" = "yes"; then
11167 succeeded=no
11169 if test "$PKG_CONFIG" = "no" ; then
11170 HAVE_DBUS=no
11171 else
11172 PKG_CONFIG_MIN_VERSION=0.9.0
11173 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11175 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11177 if "$PKG_CONFIG" --exists "dbus-1 >= 1.0" 2>&5 &&
11178 DBUS_CFLAGS=`"$PKG_CONFIG" --cflags "dbus-1 >= 1.0" 2>&5` &&
11179 DBUS_LIBS=`"$PKG_CONFIG" --libs "dbus-1 >= 1.0" 2>&5`; then
11180 edit_cflags="
11181 s,///*,/,g
11182 s/^/ /
11183 s/ -I/ $isystem/g
11184 s/^ //
11186 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11187 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11189 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11190 succeeded=yes
11191 else
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11193 $as_echo "no" >&6; }
11194 DBUS_CFLAGS=""
11195 DBUS_LIBS=""
11196 ## If we have a custom action on failure, don't print errors, but
11197 ## do set a variable so people can do so. Do it in a subshell
11198 ## to capture any diagnostics in invoking pkg-config.
11199 DBUS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "dbus-1 >= 1.0") 2>&1`
11205 else
11206 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11207 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11211 if test $succeeded = yes; then
11212 HAVE_DBUS=yes
11213 else
11214 HAVE_DBUS=no
11217 if test "$HAVE_DBUS" = yes; then
11218 LIBS="$LIBS $DBUS_LIBS"
11220 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11222 for ac_func in dbus_watch_get_unix_fd \
11223 dbus_type_is_valid \
11224 dbus_validate_bus_name \
11225 dbus_validate_path \
11226 dbus_validate_interface \
11227 dbus_validate_member
11228 do :
11229 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11230 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11231 eval as_val=\$$as_ac_var
11232 if test "x$as_val" = x""yes; then :
11233 cat >>confdefs.h <<_ACEOF
11234 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11235 _ACEOF
11238 done
11240 DBUS_OBJ=dbusbind.o
11245 HAVE_GSETTINGS=no
11246 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11248 succeeded=no
11250 if test "$PKG_CONFIG" = "no" ; then
11251 HAVE_GSETTINGS=no
11252 else
11253 PKG_CONFIG_MIN_VERSION=0.9.0
11254 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11256 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11258 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.26" 2>&5 &&
11259 GSETTINGS_CFLAGS=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.26" 2>&5` &&
11260 GSETTINGS_LIBS=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.26" 2>&5`; then
11261 edit_cflags="
11262 s,///*,/,g
11263 s/^/ /
11264 s/ -I/ $isystem/g
11265 s/^ //
11267 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11268 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11270 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11271 succeeded=yes
11272 else
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11274 $as_echo "no" >&6; }
11275 GSETTINGS_CFLAGS=""
11276 GSETTINGS_LIBS=""
11277 ## If we have a custom action on failure, don't print errors, but
11278 ## do set a variable so people can do so. Do it in a subshell
11279 ## to capture any diagnostics in invoking pkg-config.
11280 GSETTINGS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.26") 2>&1`
11286 else
11287 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11288 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11292 if test $succeeded = yes; then
11293 HAVE_GSETTINGS=yes
11294 else
11295 HAVE_GSETTINGS=no
11298 if test "$HAVE_GSETTINGS" = "yes"; then
11300 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11302 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11303 SETTINGS_LIBS="$GSETTINGS_LIBS"
11307 HAVE_GCONF=no
11308 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11310 succeeded=no
11312 if test "$PKG_CONFIG" = "no" ; then
11313 HAVE_GCONF=no
11314 else
11315 PKG_CONFIG_MIN_VERSION=0.9.0
11316 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11318 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11320 if "$PKG_CONFIG" --exists "gconf-2.0 >= 2.13" 2>&5 &&
11321 GCONF_CFLAGS=`"$PKG_CONFIG" --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11322 GCONF_LIBS=`"$PKG_CONFIG" --libs "gconf-2.0 >= 2.13" 2>&5`; then
11323 edit_cflags="
11324 s,///*,/,g
11325 s/^/ /
11326 s/ -I/ $isystem/g
11327 s/^ //
11329 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11330 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11332 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11333 succeeded=yes
11334 else
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11336 $as_echo "no" >&6; }
11337 GCONF_CFLAGS=""
11338 GCONF_LIBS=""
11339 ## If we have a custom action on failure, don't print errors, but
11340 ## do set a variable so people can do so. Do it in a subshell
11341 ## to capture any diagnostics in invoking pkg-config.
11342 GCONF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gconf-2.0 >= 2.13") 2>&1`
11348 else
11349 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11350 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11354 if test $succeeded = yes; then
11355 HAVE_GCONF=yes
11356 else
11357 HAVE_GCONF=no
11360 if test "$HAVE_GCONF" = yes; then
11362 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11364 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11365 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
11369 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
11371 succeeded=no
11373 if test "$PKG_CONFIG" = "no" ; then
11374 HAVE_GOBJECT=no
11375 else
11376 PKG_CONFIG_MIN_VERSION=0.9.0
11377 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11379 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11381 if "$PKG_CONFIG" --exists "gobject-2.0 >= 2.0" 2>&5 &&
11382 GOBJECT_CFLAGS=`"$PKG_CONFIG" --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11383 GOBJECT_LIBS=`"$PKG_CONFIG" --libs "gobject-2.0 >= 2.0" 2>&5`; then
11384 edit_cflags="
11385 s,///*,/,g
11386 s/^/ /
11387 s/ -I/ $isystem/g
11388 s/^ //
11390 GOBJECT_CFLAGS=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11391 GOBJECT_LIBS=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11393 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11394 succeeded=yes
11395 else
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11397 $as_echo "no" >&6; }
11398 GOBJECT_CFLAGS=""
11399 GOBJECT_LIBS=""
11400 ## If we have a custom action on failure, don't print errors, but
11401 ## do set a variable so people can do so. Do it in a subshell
11402 ## to capture any diagnostics in invoking pkg-config.
11403 GOBJECT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gobject-2.0 >= 2.0") 2>&1`
11409 else
11410 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11411 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11415 if test $succeeded = yes; then
11416 HAVE_GOBJECT=yes
11417 else
11418 HAVE_GOBJECT=no
11421 if test "$HAVE_GOBJECT" = "yes"; then
11422 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11423 SETTINGS_LIBS="$SETTINGS_LIBS $GOBJECT_LIBS"
11425 SAVE_CFLAGS="$CFLAGS"
11426 SAVE_LIBS="$LIBS"
11427 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
11428 LIBS="$SETTINGS_LIBS $LIBS"
11429 for ac_func in g_type_init
11430 do :
11431 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11432 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11433 cat >>confdefs.h <<_ACEOF
11434 #define HAVE_G_TYPE_INIT 1
11435 _ACEOF
11438 done
11440 CFLAGS="$SAVE_CFLAGS"
11441 LIBS="$SAVE_LIBS"
11447 HAVE_LIBSELINUX=no
11448 LIBSELINUX_LIBS=
11449 if test "${with_selinux}" = "yes"; then
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11451 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11452 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11453 $as_echo_n "(cached) " >&6
11454 else
11455 ac_check_lib_save_LIBS=$LIBS
11456 LIBS="-lselinux $LIBS"
11457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11458 /* end confdefs.h. */
11460 /* Override any GCC internal prototype to avoid an error.
11461 Use char because int might match the return type of a GCC
11462 builtin and then its argument prototype would still apply. */
11463 #ifdef __cplusplus
11464 extern "C"
11465 #endif
11466 char lgetfilecon ();
11468 main ()
11470 return lgetfilecon ();
11472 return 0;
11474 _ACEOF
11475 if ac_fn_c_try_link "$LINENO"; then :
11476 ac_cv_lib_selinux_lgetfilecon=yes
11477 else
11478 ac_cv_lib_selinux_lgetfilecon=no
11480 rm -f core conftest.err conftest.$ac_objext \
11481 conftest$ac_exeext conftest.$ac_ext
11482 LIBS=$ac_check_lib_save_LIBS
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11485 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11486 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11487 HAVE_LIBSELINUX=yes
11488 else
11489 HAVE_LIBSELINUX=no
11492 if test "$HAVE_LIBSELINUX" = yes; then
11494 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11496 LIBSELINUX_LIBS=-lselinux
11501 HAVE_GNUTLS=no
11502 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11503 if test "${with_gnutls}" = "yes" ; then
11505 succeeded=no
11507 if test "$PKG_CONFIG" = "no" ; then
11508 HAVE_GNUTLS=no
11509 else
11510 PKG_CONFIG_MIN_VERSION=0.9.0
11511 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11513 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11515 if "$PKG_CONFIG" --exists "gnutls >= 2.6.6" 2>&5 &&
11516 LIBGNUTLS_CFLAGS=`"$PKG_CONFIG" --cflags "gnutls >= 2.6.6" 2>&5` &&
11517 LIBGNUTLS_LIBS=`"$PKG_CONFIG" --libs "gnutls >= 2.6.6" 2>&5`; then
11518 edit_cflags="
11519 s,///*,/,g
11520 s/^/ /
11521 s/ -I/ $isystem/g
11522 s/^ //
11524 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11525 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11527 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11528 succeeded=yes
11529 else
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11531 $as_echo "no" >&6; }
11532 LIBGNUTLS_CFLAGS=""
11533 LIBGNUTLS_LIBS=""
11534 ## If we have a custom action on failure, don't print errors, but
11535 ## do set a variable so people can do so. Do it in a subshell
11536 ## to capture any diagnostics in invoking pkg-config.
11537 LIBGNUTLS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gnutls >= 2.6.6") 2>&1`
11543 else
11544 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11545 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11549 if test $succeeded = yes; then
11550 HAVE_GNUTLS=yes
11551 else
11552 HAVE_GNUTLS=no
11555 if test "${HAVE_GNUTLS}" = "yes"; then
11557 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11561 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11562 LIBS="$LIBGNUTLS_LIBS $LIBS"
11563 for ac_func in gnutls_certificate_set_verify_function
11564 do :
11565 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11566 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11567 cat >>confdefs.h <<_ACEOF
11568 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11569 _ACEOF
11570 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11572 done
11575 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11577 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11585 if test "${with_inotify}" = "yes"; then
11586 for ac_header in sys/inotify.h
11587 do :
11588 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
11589 if test "x$ac_cv_header_sys_inotify_h" = x""yes; then :
11590 cat >>confdefs.h <<_ACEOF
11591 #define HAVE_SYS_INOTIFY_H 1
11592 _ACEOF
11596 done
11598 if test "$ac_cv_header_sys_inotify_h" = yes ; then
11599 ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
11600 if test "x$ac_cv_func_inotify_init1" = x""yes; then :
11606 if test "$ac_cv_func_inotify_init1" = yes; then
11608 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
11612 HAVE_POSIX_ACL=no
11613 LIBACL_LIBS=
11614 if test "${with_acl}" = "yes"; then
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_set_file in -lacl" >&5
11616 $as_echo_n "checking for acl_set_file in -lacl... " >&6; }
11617 if test "${ac_cv_lib_acl_acl_set_file+set}" = set; then :
11618 $as_echo_n "(cached) " >&6
11619 else
11620 ac_check_lib_save_LIBS=$LIBS
11621 LIBS="-lacl $LIBS"
11622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11623 /* end confdefs.h. */
11625 /* Override any GCC internal prototype to avoid an error.
11626 Use char because int might match the return type of a GCC
11627 builtin and then its argument prototype would still apply. */
11628 #ifdef __cplusplus
11629 extern "C"
11630 #endif
11631 char acl_set_file ();
11633 main ()
11635 return acl_set_file ();
11637 return 0;
11639 _ACEOF
11640 if ac_fn_c_try_link "$LINENO"; then :
11641 ac_cv_lib_acl_acl_set_file=yes
11642 else
11643 ac_cv_lib_acl_acl_set_file=no
11645 rm -f core conftest.err conftest.$ac_objext \
11646 conftest$ac_exeext conftest.$ac_ext
11647 LIBS=$ac_check_lib_save_LIBS
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_set_file" >&5
11650 $as_echo "$ac_cv_lib_acl_acl_set_file" >&6; }
11651 if test "x$ac_cv_lib_acl_acl_set_file" = x""yes; then :
11652 HAVE_POSIX_ACL=yes
11653 else
11654 HAVE_POSIX_ACL=no
11657 if test "$HAVE_POSIX_ACL" = yes; then
11659 $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
11661 LIBACL_LIBS=-lacl
11662 else
11663 ac_fn_c_check_func "$LINENO" "acl_set_file" "ac_cv_func_acl_set_file"
11664 if test "x$ac_cv_func_acl_set_file" = x""yes; then :
11665 HAVE_POSIX_ACL=yes
11666 else
11667 HAVE_POSIX_ACL=no
11670 if test "$HAVE_POSIX_ACL" = yes; then
11672 $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
11679 HAVE_XAW3D=no
11680 LUCID_LIBW=
11681 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11682 if test "$with_xaw3d" != no; then
11683 if test "${emacs_cv_xaw3d+set}" = set; then :
11684 $as_echo_n "(cached) " >&6
11685 else
11686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11687 /* end confdefs.h. */
11689 #include <X11/Intrinsic.h>
11690 #include <X11/Xaw3d/Simple.h>
11692 main ()
11696 return 0;
11698 _ACEOF
11699 if ac_fn_c_try_link "$LINENO"; then :
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11701 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11702 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11703 $as_echo_n "(cached) " >&6
11704 else
11705 ac_check_lib_save_LIBS=$LIBS
11706 LIBS="-lXaw3d $LIBS"
11707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11708 /* end confdefs.h. */
11710 /* Override any GCC internal prototype to avoid an error.
11711 Use char because int might match the return type of a GCC
11712 builtin and then its argument prototype would still apply. */
11713 #ifdef __cplusplus
11714 extern "C"
11715 #endif
11716 char XawScrollbarSetThumb ();
11718 main ()
11720 return XawScrollbarSetThumb ();
11722 return 0;
11724 _ACEOF
11725 if ac_fn_c_try_link "$LINENO"; then :
11726 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11727 else
11728 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11730 rm -f core conftest.err conftest.$ac_objext \
11731 conftest$ac_exeext conftest.$ac_ext
11732 LIBS=$ac_check_lib_save_LIBS
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11735 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11736 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11737 emacs_cv_xaw3d=yes
11738 else
11739 emacs_cv_xaw3d=no
11742 else
11743 emacs_cv_xaw3d=no
11745 rm -f core conftest.err conftest.$ac_objext \
11746 conftest$ac_exeext conftest.$ac_ext
11749 else
11750 emacs_cv_xaw3d=no
11752 if test $emacs_cv_xaw3d = yes; then
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11754 $as_echo_n "checking for xaw3d... " >&6; }
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11756 $as_echo "yes; using Lucid toolkit" >&6; }
11757 USE_X_TOOLKIT=LUCID
11758 HAVE_XAW3D=yes
11759 LUCID_LIBW=-lXaw3d
11761 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11763 else
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11765 $as_echo_n "checking for xaw3d... " >&6; }
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11767 $as_echo "no" >&6; }
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11769 $as_echo_n "checking for libXaw... " >&6; }
11770 if test "${emacs_cv_xaw+set}" = set; then :
11771 $as_echo_n "(cached) " >&6
11772 else
11773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11774 /* end confdefs.h. */
11776 #include <X11/Intrinsic.h>
11777 #include <X11/Xaw/Simple.h>
11779 main ()
11783 return 0;
11785 _ACEOF
11786 if ac_fn_c_try_link "$LINENO"; then :
11787 emacs_cv_xaw=yes
11788 else
11789 emacs_cv_xaw=no
11791 rm -f core conftest.err conftest.$ac_objext \
11792 conftest$ac_exeext conftest.$ac_ext
11795 if test $emacs_cv_xaw = yes; then
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11797 $as_echo "yes; using Lucid toolkit" >&6; }
11798 USE_X_TOOLKIT=LUCID
11799 LUCID_LIBW=-lXaw
11800 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11801 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11802 else
11803 as_fn_error "No X toolkit could be found.
11804 If you are sure you want Emacs compiled without an X toolkit, pass
11805 --with-x-toolkit=no
11806 to configure. Otherwise, install the development libraries for the toolkit
11807 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11812 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11814 LIBXTR6=
11815 if test "${USE_X_TOOLKIT}" != "none"; then
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11817 $as_echo_n "checking X11 toolkit version... " >&6; }
11818 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11819 $as_echo_n "(cached) " >&6
11820 else
11821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11822 /* end confdefs.h. */
11823 #include <X11/Intrinsic.h>
11825 main ()
11827 #if XtSpecificationRelease < 6
11828 fail;
11829 #endif
11832 return 0;
11834 _ACEOF
11835 if ac_fn_c_try_link "$LINENO"; then :
11836 emacs_cv_x11_toolkit_version_6=yes
11837 else
11838 emacs_cv_x11_toolkit_version_6=no
11840 rm -f core conftest.err conftest.$ac_objext \
11841 conftest$ac_exeext conftest.$ac_ext
11844 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11845 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11847 $as_echo "6 or newer" >&6; }
11849 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11851 LIBXTR6="-lSM -lICE"
11852 case "$opsys" in
11853 ## Use libw.a along with X11R6 Xt.
11854 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11855 esac
11856 else
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11858 $as_echo "before 6" >&6; }
11861 OLDLIBS="$LIBS"
11862 if test x$HAVE_X11XTR6 = xyes; then
11863 LIBS="-lXt -lSM -lICE $LIBS"
11864 else
11865 LIBS="-lXt $LIBS"
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11868 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11869 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11870 $as_echo_n "(cached) " >&6
11871 else
11872 ac_check_lib_save_LIBS=$LIBS
11873 LIBS="-lXmu $LIBS"
11874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11875 /* end confdefs.h. */
11877 /* Override any GCC internal prototype to avoid an error.
11878 Use char because int might match the return type of a GCC
11879 builtin and then its argument prototype would still apply. */
11880 #ifdef __cplusplus
11881 extern "C"
11882 #endif
11883 char XmuConvertStandardSelection ();
11885 main ()
11887 return XmuConvertStandardSelection ();
11889 return 0;
11891 _ACEOF
11892 if ac_fn_c_try_link "$LINENO"; then :
11893 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11894 else
11895 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11897 rm -f core conftest.err conftest.$ac_objext \
11898 conftest$ac_exeext conftest.$ac_ext
11899 LIBS=$ac_check_lib_save_LIBS
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11902 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11903 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11904 cat >>confdefs.h <<_ACEOF
11905 #define HAVE_LIBXMU 1
11906 _ACEOF
11908 LIBS="-lXmu $LIBS"
11912 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11916 LIBXMU=-lXmu
11917 case $opsys in
11918 ## These systems don't supply Xmu.
11919 hpux* | aix4-2 )
11920 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11922 esac
11925 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11926 if test "${HAVE_X11}" = "yes"; then
11927 if test "${USE_X_TOOLKIT}" != "none"; then
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11929 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11930 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11931 $as_echo_n "(cached) " >&6
11932 else
11933 ac_check_lib_save_LIBS=$LIBS
11934 LIBS="-lXext $LIBS"
11935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11936 /* end confdefs.h. */
11938 /* Override any GCC internal prototype to avoid an error.
11939 Use char because int might match the return type of a GCC
11940 builtin and then its argument prototype would still apply. */
11941 #ifdef __cplusplus
11942 extern "C"
11943 #endif
11944 char XShapeQueryExtension ();
11946 main ()
11948 return XShapeQueryExtension ();
11950 return 0;
11952 _ACEOF
11953 if ac_fn_c_try_link "$LINENO"; then :
11954 ac_cv_lib_Xext_XShapeQueryExtension=yes
11955 else
11956 ac_cv_lib_Xext_XShapeQueryExtension=no
11958 rm -f core conftest.err conftest.$ac_objext \
11959 conftest$ac_exeext conftest.$ac_ext
11960 LIBS=$ac_check_lib_save_LIBS
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11963 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11964 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11965 cat >>confdefs.h <<_ACEOF
11966 #define HAVE_LIBXEXT 1
11967 _ACEOF
11969 LIBS="-lXext $LIBS"
11976 LIBXP=
11977 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11978 # OpenMotif may be installed in such a way on some GNU/Linux systems.
11979 if test -d /usr/include/openmotif; then
11980 CPPFLAGS="-I/usr/include/openmotif $CPPFLAGS"
11981 emacs_cv_openmotif=yes
11982 case "$canonical" in
11983 x86_64-*-linux-gnu* | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*)
11984 test -d /usr/lib64/openmotif && LDFLAGS="-L/usr/lib64/openmotif $LDFLAGS"
11987 test -d /usr/lib/openmotif && LDFLAGS="-L/usr/lib/openmotif $LDFLAGS"
11988 esac
11989 else
11990 emacs_cv_openmotif=no
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
11993 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
11994 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11995 $as_echo_n "(cached) " >&6
11996 else
11997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11998 /* end confdefs.h. */
11999 #include <Xm/Xm.h>
12001 main ()
12003 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12004 int x = 5;
12005 #else
12006 Motif version prior to 2.1.
12007 #endif
12009 return 0;
12011 _ACEOF
12012 if ac_fn_c_try_compile "$LINENO"; then :
12013 emacs_cv_motif_version_2_1=yes
12014 else
12015 emacs_cv_motif_version_2_1=no
12017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12020 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12021 if test $emacs_cv_motif_version_2_1 = yes; then
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12023 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12024 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12025 $as_echo_n "(cached) " >&6
12026 else
12027 ac_check_lib_save_LIBS=$LIBS
12028 LIBS="-lXp $LIBS"
12029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12030 /* end confdefs.h. */
12032 /* Override any GCC internal prototype to avoid an error.
12033 Use char because int might match the return type of a GCC
12034 builtin and then its argument prototype would still apply. */
12035 #ifdef __cplusplus
12036 extern "C"
12037 #endif
12038 char XpCreateContext ();
12040 main ()
12042 return XpCreateContext ();
12044 return 0;
12046 _ACEOF
12047 if ac_fn_c_try_link "$LINENO"; then :
12048 ac_cv_lib_Xp_XpCreateContext=yes
12049 else
12050 ac_cv_lib_Xp_XpCreateContext=no
12052 rm -f core conftest.err conftest.$ac_objext \
12053 conftest$ac_exeext conftest.$ac_ext
12054 LIBS=$ac_check_lib_save_LIBS
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12057 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12058 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
12059 LIBXP=-lXp
12062 if test x$emacs_cv_openmotif = xyes; then
12063 REAL_CPPFLAGS="-I/usr/include/openmotif $REAL_CPPFLAGS"
12065 else
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12067 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12068 if test "${emacs_cv_lesstif+set}" = set; then :
12069 $as_echo_n "(cached) " >&6
12070 else
12071 # We put this in CFLAGS temporarily to precede other -I options
12072 # that might be in CFLAGS temporarily.
12073 # We put this in CPPFLAGS where it precedes the other -I options.
12074 OLD_CPPFLAGS=$CPPFLAGS
12075 OLD_CFLAGS=$CFLAGS
12076 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12077 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12079 /* end confdefs.h. */
12080 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12082 main ()
12084 int x = 5;
12086 return 0;
12088 _ACEOF
12089 if ac_fn_c_try_compile "$LINENO"; then :
12090 emacs_cv_lesstif=yes
12091 else
12092 emacs_cv_lesstif=no
12094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12097 $as_echo "$emacs_cv_lesstif" >&6; }
12098 if test $emacs_cv_lesstif = yes; then
12099 # Make sure this -I option remains in CPPFLAGS after it is set
12100 # back to REAL_CPPFLAGS.
12101 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12102 # have those other -I options anyway. Ultimately, having this
12103 # directory ultimately in CPPFLAGS will be enough.
12104 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12105 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12106 else
12107 CFLAGS=$OLD_CFLAGS
12108 CPPFLAGS=$OLD_CPPFLAGS
12111 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12112 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
12114 else
12115 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
12122 USE_TOOLKIT_SCROLL_BARS=no
12123 if test "${with_toolkit_scroll_bars}" != "no"; then
12124 if test "${USE_X_TOOLKIT}" != "none"; then
12125 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12126 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12128 HAVE_XAW3D=no
12129 USE_TOOLKIT_SCROLL_BARS=yes
12130 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
12131 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12133 USE_TOOLKIT_SCROLL_BARS=yes
12135 elif test "${HAVE_GTK}" = "yes"; then
12136 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12138 USE_TOOLKIT_SCROLL_BARS=yes
12139 elif test "${HAVE_NS}" = "yes"; then
12140 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12142 USE_TOOLKIT_SCROLL_BARS=yes
12143 elif test "${HAVE_W32}" = "yes"; then
12144 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12146 USE_TOOLKIT_SCROLL_BARS=yes
12150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12151 /* end confdefs.h. */
12153 #include <X11/Xlib.h>
12154 #include <X11/Xresource.h>
12156 main ()
12158 XIMProc callback;
12160 return 0;
12162 _ACEOF
12163 if ac_fn_c_try_compile "$LINENO"; then :
12164 HAVE_XIM=yes
12166 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12168 else
12169 HAVE_XIM=no
12171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12174 if test "${with_xim}" != "no"; then
12176 $as_echo "#define USE_XIM 1" >>confdefs.h
12181 if test "${HAVE_XIM}" != "no"; then
12182 late_CFLAGS=$CFLAGS
12183 if test "$GCC" = yes; then
12184 CFLAGS="$CFLAGS --pedantic-errors"
12186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187 /* end confdefs.h. */
12189 #include <X11/Xlib.h>
12190 #include <X11/Xresource.h>
12192 main ()
12194 Display *display;
12195 XrmDatabase db;
12196 char *res_name;
12197 char *res_class;
12198 XIMProc callback;
12199 XPointer *client_data;
12200 #ifndef __GNUC__
12201 /* If we're not using GCC, it's probably not XFree86, and this is
12202 probably right, but we can't use something like --pedantic-errors. */
12203 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12204 char*, XIMProc, XPointer*);
12205 #endif
12206 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12207 client_data);
12209 return 0;
12211 _ACEOF
12212 if ac_fn_c_try_compile "$LINENO"; then :
12213 emacs_cv_arg6_star=yes
12215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12216 if test "$emacs_cv_arg6_star" = yes; then
12217 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12219 else
12220 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12223 CFLAGS=$late_CFLAGS
12226 ### Start of font-backend (under any platform) section.
12227 # (nothing here yet -- this is a placeholder)
12228 ### End of font-backend (under any platform) section.
12230 ### Start of font-backend (under X11) section.
12231 if test "${HAVE_X11}" = "yes"; then
12233 succeeded=no
12235 if test "$PKG_CONFIG" = "no" ; then
12236 HAVE_FC=no
12237 else
12238 PKG_CONFIG_MIN_VERSION=0.9.0
12239 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12241 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12243 if "$PKG_CONFIG" --exists "fontconfig >= 2.2.0" 2>&5 &&
12244 FONTCONFIG_CFLAGS=`"$PKG_CONFIG" --cflags "fontconfig >= 2.2.0" 2>&5` &&
12245 FONTCONFIG_LIBS=`"$PKG_CONFIG" --libs "fontconfig >= 2.2.0" 2>&5`; then
12246 edit_cflags="
12247 s,///*,/,g
12248 s/^/ /
12249 s/ -I/ $isystem/g
12250 s/^ //
12252 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12253 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12255 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12256 succeeded=yes
12257 else
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12259 $as_echo "no" >&6; }
12260 FONTCONFIG_CFLAGS=""
12261 FONTCONFIG_LIBS=""
12262 ## If we have a custom action on failure, don't print errors, but
12263 ## do set a variable so people can do so. Do it in a subshell
12264 ## to capture any diagnostics in invoking pkg-config.
12265 FONTCONFIG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "fontconfig >= 2.2.0") 2>&1`
12271 else
12272 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12273 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12277 if test $succeeded = yes; then
12278 HAVE_FC=yes
12279 else
12280 HAVE_FC=no
12284 ## Use -lXft if available, unless `--with-xft=no'.
12285 HAVE_XFT=maybe
12286 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12287 with_xft="no";
12289 if test "x${with_xft}" != "xno"; then
12292 succeeded=no
12294 if test "$PKG_CONFIG" = "no" ; then
12295 HAVE_XFT=no
12296 else
12297 PKG_CONFIG_MIN_VERSION=0.9.0
12298 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12300 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12302 if "$PKG_CONFIG" --exists "xft >= 0.13.0" 2>&5 &&
12303 XFT_CFLAGS=`"$PKG_CONFIG" --cflags "xft >= 0.13.0" 2>&5` &&
12304 XFT_LIBS=`"$PKG_CONFIG" --libs "xft >= 0.13.0" 2>&5`; then
12305 edit_cflags="
12306 s,///*,/,g
12307 s/^/ /
12308 s/ -I/ $isystem/g
12309 s/^ //
12311 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
12312 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
12314 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
12315 succeeded=yes
12316 else
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12318 $as_echo "no" >&6; }
12319 XFT_CFLAGS=""
12320 XFT_LIBS=""
12321 ## If we have a custom action on failure, don't print errors, but
12322 ## do set a variable so people can do so. Do it in a subshell
12323 ## to capture any diagnostics in invoking pkg-config.
12324 XFT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "xft >= 0.13.0") 2>&1`
12330 else
12331 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12332 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12336 if test $succeeded = yes; then
12338 else
12339 HAVE_XFT=no
12342 ## Because xftfont.c uses XRenderQueryExtension, we also
12343 ## need to link to -lXrender.
12344 HAVE_XRENDER=no
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12346 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12347 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12348 $as_echo_n "(cached) " >&6
12349 else
12350 ac_check_lib_save_LIBS=$LIBS
12351 LIBS="-lXrender $LIBS"
12352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12353 /* end confdefs.h. */
12355 /* Override any GCC internal prototype to avoid an error.
12356 Use char because int might match the return type of a GCC
12357 builtin and then its argument prototype would still apply. */
12358 #ifdef __cplusplus
12359 extern "C"
12360 #endif
12361 char XRenderQueryExtension ();
12363 main ()
12365 return XRenderQueryExtension ();
12367 return 0;
12369 _ACEOF
12370 if ac_fn_c_try_link "$LINENO"; then :
12371 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12372 else
12373 ac_cv_lib_Xrender_XRenderQueryExtension=no
12375 rm -f core conftest.err conftest.$ac_objext \
12376 conftest$ac_exeext conftest.$ac_ext
12377 LIBS=$ac_check_lib_save_LIBS
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12380 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12381 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12382 HAVE_XRENDER=yes
12385 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12386 OLD_CPPFLAGS="$CPPFLAGS"
12387 OLD_CFLAGS="$CFLAGS"
12388 OLD_LIBS="$LIBS"
12389 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12390 CFLAGS="$CFLAGS $XFT_CFLAGS"
12391 XFT_LIBS="-lXrender $XFT_LIBS"
12392 LIBS="$XFT_LIBS $LIBS"
12393 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12394 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12396 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12397 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12398 $as_echo_n "(cached) " >&6
12399 else
12400 ac_check_lib_save_LIBS=$LIBS
12401 LIBS="-lXft $XFT_LIBS $LIBS"
12402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403 /* end confdefs.h. */
12405 /* Override any GCC internal prototype to avoid an error.
12406 Use char because int might match the return type of a GCC
12407 builtin and then its argument prototype would still apply. */
12408 #ifdef __cplusplus
12409 extern "C"
12410 #endif
12411 char XftFontOpen ();
12413 main ()
12415 return XftFontOpen ();
12417 return 0;
12419 _ACEOF
12420 if ac_fn_c_try_link "$LINENO"; then :
12421 ac_cv_lib_Xft_XftFontOpen=yes
12422 else
12423 ac_cv_lib_Xft_XftFontOpen=no
12425 rm -f core conftest.err conftest.$ac_objext \
12426 conftest$ac_exeext conftest.$ac_ext
12427 LIBS=$ac_check_lib_save_LIBS
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12430 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12431 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12432 HAVE_XFT=yes
12439 if test "${HAVE_XFT}" = "yes"; then
12441 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12444 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12445 else
12446 CPPFLAGS="$OLD_CPPFLAGS"
12447 CFLAGS="$OLD_CFLAGS"
12448 LIBS="$OLD_LIBS"
12449 fi # "${HAVE_XFT}" = "yes"
12450 fi # "$HAVE_XFT" != no
12451 fi # "x${with_xft}" != "xno"
12453 ## We used to allow building with FreeType and without Xft.
12454 ## However, the ftx font backend driver is not in good shape.
12455 if test "$HAVE_XFT" != "yes"; then
12456 HAVE_XFT=no
12457 HAVE_FREETYPE=no
12458 else
12460 succeeded=no
12462 if test "$PKG_CONFIG" = "no" ; then
12463 HAVE_FREETYPE=no
12464 else
12465 PKG_CONFIG_MIN_VERSION=0.9.0
12466 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12468 $as_echo_n "checking for freetype2... " >&6; }
12470 if "$PKG_CONFIG" --exists "freetype2" 2>&5 &&
12471 FREETYPE_CFLAGS=`"$PKG_CONFIG" --cflags "freetype2" 2>&5` &&
12472 FREETYPE_LIBS=`"$PKG_CONFIG" --libs "freetype2" 2>&5`; then
12473 edit_cflags="
12474 s,///*,/,g
12475 s/^/ /
12476 s/ -I/ $isystem/g
12477 s/^ //
12479 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12480 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12482 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12483 succeeded=yes
12484 else
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12486 $as_echo "no" >&6; }
12487 FREETYPE_CFLAGS=""
12488 FREETYPE_LIBS=""
12489 ## If we have a custom action on failure, don't print errors, but
12490 ## do set a variable so people can do so. Do it in a subshell
12491 ## to capture any diagnostics in invoking pkg-config.
12492 FREETYPE_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "freetype2") 2>&1`
12498 else
12499 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12500 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12504 if test $succeeded = yes; then
12505 HAVE_FREETYPE=yes
12506 else
12507 HAVE_FREETYPE=no
12511 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12514 HAVE_LIBOTF=no
12515 if test "${HAVE_FREETYPE}" = "yes"; then
12517 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12519 if test "${with_libotf}" != "no"; then
12521 succeeded=no
12523 if test "$PKG_CONFIG" = "no" ; then
12524 HAVE_LIBOTF=no
12525 else
12526 PKG_CONFIG_MIN_VERSION=0.9.0
12527 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12529 $as_echo_n "checking for libotf... " >&6; }
12531 if "$PKG_CONFIG" --exists "libotf" 2>&5 &&
12532 LIBOTF_CFLAGS=`"$PKG_CONFIG" --cflags "libotf" 2>&5` &&
12533 LIBOTF_LIBS=`"$PKG_CONFIG" --libs "libotf" 2>&5`; then
12534 edit_cflags="
12535 s,///*,/,g
12536 s/^/ /
12537 s/ -I/ $isystem/g
12538 s/^ //
12540 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12541 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12543 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12544 succeeded=yes
12545 else
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12547 $as_echo "no" >&6; }
12548 LIBOTF_CFLAGS=""
12549 LIBOTF_LIBS=""
12550 ## If we have a custom action on failure, don't print errors, but
12551 ## do set a variable so people can do so. Do it in a subshell
12552 ## to capture any diagnostics in invoking pkg-config.
12553 LIBOTF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libotf") 2>&1`
12559 else
12560 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12561 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12565 if test $succeeded = yes; then
12566 HAVE_LIBOTF=yes
12567 else
12568 HAVE_LIBOTF=no
12571 if test "$HAVE_LIBOTF" = "yes"; then
12573 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12576 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12577 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12578 $as_echo_n "(cached) " >&6
12579 else
12580 ac_check_lib_save_LIBS=$LIBS
12581 LIBS="-lotf $LIBS"
12582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12583 /* end confdefs.h. */
12585 /* Override any GCC internal prototype to avoid an error.
12586 Use char because int might match the return type of a GCC
12587 builtin and then its argument prototype would still apply. */
12588 #ifdef __cplusplus
12589 extern "C"
12590 #endif
12591 char OTF_get_variation_glyphs ();
12593 main ()
12595 return OTF_get_variation_glyphs ();
12597 return 0;
12599 _ACEOF
12600 if ac_fn_c_try_link "$LINENO"; then :
12601 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12602 else
12603 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12605 rm -f core conftest.err conftest.$ac_objext \
12606 conftest$ac_exeext conftest.$ac_ext
12607 LIBS=$ac_check_lib_save_LIBS
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12610 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12611 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12612 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12613 else
12614 HAVE_OTF_GET_VARIATION_GLYPHS=no
12617 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12619 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12626 HAVE_M17N_FLT=no
12627 if test "${HAVE_LIBOTF}" = yes; then
12628 if test "${with_m17n_flt}" != "no"; then
12630 succeeded=no
12632 if test "$PKG_CONFIG" = "no" ; then
12633 HAVE_M17N_FLT=no
12634 else
12635 PKG_CONFIG_MIN_VERSION=0.9.0
12636 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12638 $as_echo_n "checking for m17n-flt... " >&6; }
12640 if "$PKG_CONFIG" --exists "m17n-flt" 2>&5 &&
12641 M17N_FLT_CFLAGS=`"$PKG_CONFIG" --cflags "m17n-flt" 2>&5` &&
12642 M17N_FLT_LIBS=`"$PKG_CONFIG" --libs "m17n-flt" 2>&5`; then
12643 edit_cflags="
12644 s,///*,/,g
12645 s/^/ /
12646 s/ -I/ $isystem/g
12647 s/^ //
12649 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12650 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12652 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12653 succeeded=yes
12654 else
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12656 $as_echo "no" >&6; }
12657 M17N_FLT_CFLAGS=""
12658 M17N_FLT_LIBS=""
12659 ## If we have a custom action on failure, don't print errors, but
12660 ## do set a variable so people can do so. Do it in a subshell
12661 ## to capture any diagnostics in invoking pkg-config.
12662 M17N_FLT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "m17n-flt") 2>&1`
12668 else
12669 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12670 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12674 if test $succeeded = yes; then
12675 HAVE_M17N_FLT=yes
12676 else
12677 HAVE_M17N_FLT=no
12680 if test "$HAVE_M17N_FLT" = "yes"; then
12682 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12687 else
12688 HAVE_XFT=no
12689 HAVE_FREETYPE=no
12690 HAVE_LIBOTF=no
12691 HAVE_M17N_FLT=no
12694 ### End of font-backend (under X11) section.
12705 ### Use -lXpm if available, unless `--with-xpm=no'.
12706 HAVE_XPM=no
12707 LIBXPM=
12709 if test "${HAVE_W32}" = "yes"; then
12710 if test "${with_xpm}" != "no"; then
12711 SAVE_CPPFLAGS="$CPPFLAGS"
12712 SAVE_LDFLAGS="$LDFLAGS"
12713 CPPFLAGS="$CPPFLAGS -I/usr/include/noX"
12714 LDFLAGS="$LDFLAGS -L/usr/lib/noX"
12715 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12716 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
12718 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
12719 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
12720 $as_echo_n "(cached) " >&6
12721 else
12722 ac_check_lib_save_LIBS=$LIBS
12723 LIBS="-lXpm $LIBS"
12724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12725 /* end confdefs.h. */
12727 /* Override any GCC internal prototype to avoid an error.
12728 Use char because int might match the return type of a GCC
12729 builtin and then its argument prototype would still apply. */
12730 #ifdef __cplusplus
12731 extern "C"
12732 #endif
12733 char XpmReadFileToImage ();
12735 main ()
12737 return XpmReadFileToImage ();
12739 return 0;
12741 _ACEOF
12742 if ac_fn_c_try_link "$LINENO"; then :
12743 ac_cv_lib_Xpm_XpmReadFileToImage=yes
12744 else
12745 ac_cv_lib_Xpm_XpmReadFileToImage=no
12747 rm -f core conftest.err conftest.$ac_objext \
12748 conftest$ac_exeext conftest.$ac_ext
12749 LIBS=$ac_check_lib_save_LIBS
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
12752 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
12753 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x""yes; then :
12754 HAVE_XPM=yes
12760 if test "${HAVE_XPM}" = "yes"; then
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12762 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12764 /* end confdefs.h. */
12765 #include "X11/xpm.h"
12766 #ifndef XpmReturnAllocPixels
12767 no_return_alloc_pixels
12768 #endif
12770 _ACEOF
12771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12772 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12773 HAVE_XPM=no
12774 else
12775 HAVE_XPM=yes
12777 rm -f conftest*
12780 if test "${HAVE_XPM}" = "yes"; then
12781 REAL_CPPFLAGS="$REAL_CPPFLAGS -I/usr/include/noX"
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12783 $as_echo "yes" >&6; }
12784 else
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12786 $as_echo "no" >&6; }
12787 CPPFLAGS="$SAVE_CPPFLAGS"
12788 LDFLAGS="$SAVE_LDFLAGS"
12793 if test "${HAVE_XPM}" = "yes"; then
12795 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12797 LIBXPM=-lXpm
12801 if test "${HAVE_X11}" = "yes"; then
12802 if test "${with_xpm}" != "no"; then
12803 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12804 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12806 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12807 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12808 $as_echo_n "(cached) " >&6
12809 else
12810 ac_check_lib_save_LIBS=$LIBS
12811 LIBS="-lXpm -lX11 $LIBS"
12812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12813 /* end confdefs.h. */
12815 /* Override any GCC internal prototype to avoid an error.
12816 Use char because int might match the return type of a GCC
12817 builtin and then its argument prototype would still apply. */
12818 #ifdef __cplusplus
12819 extern "C"
12820 #endif
12821 char XpmReadFileToPixmap ();
12823 main ()
12825 return XpmReadFileToPixmap ();
12827 return 0;
12829 _ACEOF
12830 if ac_fn_c_try_link "$LINENO"; then :
12831 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12832 else
12833 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12835 rm -f core conftest.err conftest.$ac_objext \
12836 conftest$ac_exeext conftest.$ac_ext
12837 LIBS=$ac_check_lib_save_LIBS
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12840 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12841 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12842 HAVE_XPM=yes
12848 if test "${HAVE_XPM}" = "yes"; then
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12850 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12852 /* end confdefs.h. */
12853 #include "X11/xpm.h"
12854 #ifndef XpmReturnAllocPixels
12855 no_return_alloc_pixels
12856 #endif
12858 _ACEOF
12859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12860 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12861 HAVE_XPM=no
12862 else
12863 HAVE_XPM=yes
12865 rm -f conftest*
12868 if test "${HAVE_XPM}" = "yes"; then
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12870 $as_echo "yes" >&6; }
12871 else
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12873 $as_echo "no" >&6; }
12878 if test "${HAVE_XPM}" = "yes"; then
12880 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12882 LIBXPM=-lXpm
12888 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12889 HAVE_JPEG=no
12890 LIBJPEG=
12891 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12892 if test "${with_jpeg}" != "no"; then
12893 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12894 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12896 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12897 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12898 $as_echo_n "(cached) " >&6
12899 else
12900 ac_check_lib_save_LIBS=$LIBS
12901 LIBS="-ljpeg $LIBS"
12902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12903 /* end confdefs.h. */
12905 /* Override any GCC internal prototype to avoid an error.
12906 Use char because int might match the return type of a GCC
12907 builtin and then its argument prototype would still apply. */
12908 #ifdef __cplusplus
12909 extern "C"
12910 #endif
12911 char jpeg_destroy_compress ();
12913 main ()
12915 return jpeg_destroy_compress ();
12917 return 0;
12919 _ACEOF
12920 if ac_fn_c_try_link "$LINENO"; then :
12921 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12922 else
12923 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12925 rm -f core conftest.err conftest.$ac_objext \
12926 conftest$ac_exeext conftest.$ac_ext
12927 LIBS=$ac_check_lib_save_LIBS
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12930 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12931 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12932 HAVE_JPEG=yes
12940 if test "${HAVE_JPEG}" = "yes"; then
12941 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12944 /* end confdefs.h. */
12945 #include <jpeglib.h>
12946 version=JPEG_LIB_VERSION
12948 _ACEOF
12949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12950 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12951 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12953 else
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12955 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12956 HAVE_JPEG=no
12958 rm -f conftest*
12961 if test "${HAVE_JPEG}" = "yes"; then
12962 LIBJPEG=-ljpeg
12967 ### Use -lpng if available, unless `--with-png=no'.
12968 HAVE_PNG=no
12969 LIBPNG=
12970 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12971 if test "${with_png}" != "no"; then
12972 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12973 # in /usr/include/libpng.
12974 for ac_header in png.h libpng/png.h
12975 do :
12976 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12977 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12978 eval as_val=\$$as_ac_Header
12979 if test "x$as_val" = x""yes; then :
12980 cat >>confdefs.h <<_ACEOF
12981 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12982 _ACEOF
12983 break
12986 done
12988 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12990 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12991 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12992 $as_echo_n "(cached) " >&6
12993 else
12994 ac_check_lib_save_LIBS=$LIBS
12995 LIBS="-lpng -lz -lm $LIBS"
12996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h. */
12999 /* Override any GCC internal prototype to avoid an error.
13000 Use char because int might match the return type of a GCC
13001 builtin and then its argument prototype would still apply. */
13002 #ifdef __cplusplus
13003 extern "C"
13004 #endif
13005 char png_get_channels ();
13007 main ()
13009 return png_get_channels ();
13011 return 0;
13013 _ACEOF
13014 if ac_fn_c_try_link "$LINENO"; then :
13015 ac_cv_lib_png_png_get_channels=yes
13016 else
13017 ac_cv_lib_png_png_get_channels=no
13019 rm -f core conftest.err conftest.$ac_objext \
13020 conftest$ac_exeext conftest.$ac_ext
13021 LIBS=$ac_check_lib_save_LIBS
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13024 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13025 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
13026 HAVE_PNG=yes
13032 if test "${HAVE_PNG}" = "yes"; then
13034 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13036 LIBPNG="-lpng -lz -lm"
13038 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13039 # include <libpng/png.h>
13040 #else
13041 # include <png.h>
13042 #endif
13045 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
13047 else
13049 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13057 ### Use -ltiff if available, unless `--with-tiff=no'.
13058 HAVE_TIFF=no
13059 LIBTIFF=
13060 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13061 if test "${with_tiff}" != "no"; then
13062 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13063 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13064 tifflibs="-lz -lm"
13065 # At least one tiff package requires the jpeg library.
13066 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13068 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13069 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13070 $as_echo_n "(cached) " >&6
13071 else
13072 ac_check_lib_save_LIBS=$LIBS
13073 LIBS="-ltiff $tifflibs $LIBS"
13074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13075 /* end confdefs.h. */
13077 /* Override any GCC internal prototype to avoid an error.
13078 Use char because int might match the return type of a GCC
13079 builtin and then its argument prototype would still apply. */
13080 #ifdef __cplusplus
13081 extern "C"
13082 #endif
13083 char TIFFGetVersion ();
13085 main ()
13087 return TIFFGetVersion ();
13089 return 0;
13091 _ACEOF
13092 if ac_fn_c_try_link "$LINENO"; then :
13093 ac_cv_lib_tiff_TIFFGetVersion=yes
13094 else
13095 ac_cv_lib_tiff_TIFFGetVersion=no
13097 rm -f core conftest.err conftest.$ac_objext \
13098 conftest$ac_exeext conftest.$ac_ext
13099 LIBS=$ac_check_lib_save_LIBS
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13102 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13103 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
13104 HAVE_TIFF=yes
13112 if test "${HAVE_TIFF}" = "yes"; then
13114 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13116 LIBTIFF=-ltiff
13121 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13122 HAVE_GIF=no
13123 LIBGIF=
13124 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
13125 || test "${HAVE_W32}" = "yes"; then
13126 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13127 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13128 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13129 # Earlier versions can crash Emacs.
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13131 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13132 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13133 $as_echo_n "(cached) " >&6
13134 else
13135 ac_check_lib_save_LIBS=$LIBS
13136 LIBS="-lgif $LIBS"
13137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13138 /* end confdefs.h. */
13140 /* Override any GCC internal prototype to avoid an error.
13141 Use char because int might match the return type of a GCC
13142 builtin and then its argument prototype would still apply. */
13143 #ifdef __cplusplus
13144 extern "C"
13145 #endif
13146 char EGifPutExtensionLast ();
13148 main ()
13150 return EGifPutExtensionLast ();
13152 return 0;
13154 _ACEOF
13155 if ac_fn_c_try_link "$LINENO"; then :
13156 ac_cv_lib_gif_EGifPutExtensionLast=yes
13157 else
13158 ac_cv_lib_gif_EGifPutExtensionLast=no
13160 rm -f core conftest.err conftest.$ac_objext \
13161 conftest$ac_exeext conftest.$ac_ext
13162 LIBS=$ac_check_lib_save_LIBS
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13165 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13166 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
13167 HAVE_GIF=yes
13168 else
13169 HAVE_GIF=maybe
13176 if test "$HAVE_GIF" = yes; then
13177 LIBGIF=-lgif
13178 elif test "$HAVE_GIF" = maybe; then
13179 # If gif_lib.h but no libgif, try libungif.
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13181 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13182 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13183 $as_echo_n "(cached) " >&6
13184 else
13185 ac_check_lib_save_LIBS=$LIBS
13186 LIBS="-lungif $LIBS"
13187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13188 /* end confdefs.h. */
13190 /* Override any GCC internal prototype to avoid an error.
13191 Use char because int might match the return type of a GCC
13192 builtin and then its argument prototype would still apply. */
13193 #ifdef __cplusplus
13194 extern "C"
13195 #endif
13196 char EGifPutExtensionLast ();
13198 main ()
13200 return EGifPutExtensionLast ();
13202 return 0;
13204 _ACEOF
13205 if ac_fn_c_try_link "$LINENO"; then :
13206 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13207 else
13208 ac_cv_lib_ungif_EGifPutExtensionLast=no
13210 rm -f core conftest.err conftest.$ac_objext \
13211 conftest$ac_exeext conftest.$ac_ext
13212 LIBS=$ac_check_lib_save_LIBS
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13215 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13216 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
13217 HAVE_GIF=yes
13218 else
13219 HAVE_GIF=no
13222 test "$HAVE_GIF" = yes && LIBGIF=-lungif
13225 if test "${HAVE_GIF}" = "yes"; then
13227 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13233 if test "${HAVE_X11}" = "yes"; then
13234 MISSING=""
13235 WITH_NO=""
13236 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13237 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13238 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13239 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13240 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13241 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13242 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13243 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13244 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13245 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13247 if test "X${MISSING}" != X; then
13248 as_fn_error "The following required libraries were not found:
13249 $MISSING
13250 Maybe some development libraries/packages are missing?
13251 If you don't want to link with them give
13252 $WITH_NO
13253 as options to configure" "$LINENO" 5
13257 ### Use -lgpm if available, unless `--with-gpm=no'.
13258 HAVE_GPM=no
13259 LIBGPM=
13260 if test "${with_gpm}" != "no"; then
13261 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13262 if test "x$ac_cv_header_gpm_h" = x""yes; then :
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13264 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13265 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13266 $as_echo_n "(cached) " >&6
13267 else
13268 ac_check_lib_save_LIBS=$LIBS
13269 LIBS="-lgpm $LIBS"
13270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13271 /* end confdefs.h. */
13273 /* Override any GCC internal prototype to avoid an error.
13274 Use char because int might match the return type of a GCC
13275 builtin and then its argument prototype would still apply. */
13276 #ifdef __cplusplus
13277 extern "C"
13278 #endif
13279 char Gpm_Open ();
13281 main ()
13283 return Gpm_Open ();
13285 return 0;
13287 _ACEOF
13288 if ac_fn_c_try_link "$LINENO"; then :
13289 ac_cv_lib_gpm_Gpm_Open=yes
13290 else
13291 ac_cv_lib_gpm_Gpm_Open=no
13293 rm -f core conftest.err conftest.$ac_objext \
13294 conftest$ac_exeext conftest.$ac_ext
13295 LIBS=$ac_check_lib_save_LIBS
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13298 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13299 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
13300 HAVE_GPM=yes
13307 if test "${HAVE_GPM}" = "yes"; then
13309 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13311 LIBGPM=-lgpm
13320 GNUSTEP_CFLAGS=
13321 ### Use NeXTstep API to implement GUI.
13322 if test "${HAVE_NS}" = "yes"; then
13324 $as_echo "#define HAVE_NS 1" >>confdefs.h
13326 if test "${NS_IMPL_COCOA}" = "yes"; then
13328 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13331 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13333 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13335 # See also .m.o rule in Makefile.in */
13336 # FIXME: are all these flags really needed? Document here why. */
13337 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13338 ## Extra CFLAGS applied to src/*.m files.
13339 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"
13341 # We also have mouse menus.
13342 HAVE_MENUS=yes
13343 OTHER_FILES=ns-app
13346 if test "${HAVE_W32}" = "yes"; then
13347 HAVE_MENUS=yes
13350 ### Use session management (-lSM -lICE) if available
13351 HAVE_X_SM=no
13352 LIBXSM=
13353 if test "${HAVE_X11}" = "yes"; then
13354 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13355 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13357 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13358 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13359 $as_echo_n "(cached) " >&6
13360 else
13361 ac_check_lib_save_LIBS=$LIBS
13362 LIBS="-lSM -lICE $LIBS"
13363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13364 /* end confdefs.h. */
13366 /* Override any GCC internal prototype to avoid an error.
13367 Use char because int might match the return type of a GCC
13368 builtin and then its argument prototype would still apply. */
13369 #ifdef __cplusplus
13370 extern "C"
13371 #endif
13372 char SmcOpenConnection ();
13374 main ()
13376 return SmcOpenConnection ();
13378 return 0;
13380 _ACEOF
13381 if ac_fn_c_try_link "$LINENO"; then :
13382 ac_cv_lib_SM_SmcOpenConnection=yes
13383 else
13384 ac_cv_lib_SM_SmcOpenConnection=no
13386 rm -f core conftest.err conftest.$ac_objext \
13387 conftest$ac_exeext conftest.$ac_ext
13388 LIBS=$ac_check_lib_save_LIBS
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13391 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13392 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13393 HAVE_X_SM=yes
13400 if test "${HAVE_X_SM}" = "yes"; then
13402 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13404 LIBXSM="-lSM -lICE"
13405 case "$LIBS" in
13406 *-lSM*) ;;
13407 *) LIBS="$LIBXSM $LIBS" ;;
13408 esac
13413 ### Use libxml (-lxml2) if available
13414 HAVE_LIBXML2=no
13415 if test "${with_xml2}" != "no"; then
13416 ### I'm not sure what the version number should be, so I just guessed.
13418 succeeded=no
13420 if test "$PKG_CONFIG" = "no" ; then
13421 HAVE_LIBXML2=no
13422 else
13423 PKG_CONFIG_MIN_VERSION=0.9.0
13424 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13426 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13428 if "$PKG_CONFIG" --exists "libxml-2.0 > 2.6.17" 2>&5 &&
13429 LIBXML2_CFLAGS=`"$PKG_CONFIG" --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
13430 LIBXML2_LIBS=`"$PKG_CONFIG" --libs "libxml-2.0 > 2.6.17" 2>&5`; then
13431 edit_cflags="
13432 s,///*,/,g
13433 s/^/ /
13434 s/ -I/ $isystem/g
13435 s/^ //
13437 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
13438 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
13440 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
13441 succeeded=yes
13442 else
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13444 $as_echo "no" >&6; }
13445 LIBXML2_CFLAGS=""
13446 LIBXML2_LIBS=""
13447 ## If we have a custom action on failure, don't print errors, but
13448 ## do set a variable so people can do so. Do it in a subshell
13449 ## to capture any diagnostics in invoking pkg-config.
13450 LIBXML2_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libxml-2.0 > 2.6.17") 2>&1`
13456 else
13457 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13458 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13462 if test $succeeded = yes; then
13463 HAVE_LIBXML2=yes
13464 else
13465 HAVE_LIBXML2=no
13468 if test "${HAVE_LIBXML2}" = "yes"; then
13469 LIBS="$LIBXML2_LIBS $LIBS"
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13471 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13472 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13473 $as_echo_n "(cached) " >&6
13474 else
13475 ac_check_lib_save_LIBS=$LIBS
13476 LIBS="-lxml2 $LIBS"
13477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13478 /* end confdefs.h. */
13480 /* Override any GCC internal prototype to avoid an error.
13481 Use char because int might match the return type of a GCC
13482 builtin and then its argument prototype would still apply. */
13483 #ifdef __cplusplus
13484 extern "C"
13485 #endif
13486 char htmlReadMemory ();
13488 main ()
13490 return htmlReadMemory ();
13492 return 0;
13494 _ACEOF
13495 if ac_fn_c_try_link "$LINENO"; then :
13496 ac_cv_lib_xml2_htmlReadMemory=yes
13497 else
13498 ac_cv_lib_xml2_htmlReadMemory=no
13500 rm -f core conftest.err conftest.$ac_objext \
13501 conftest$ac_exeext conftest.$ac_ext
13502 LIBS=$ac_check_lib_save_LIBS
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13505 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13506 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13507 HAVE_LIBXML2=yes
13508 else
13509 HAVE_LIBXML2=no
13512 if test "${HAVE_LIBXML2}" = "yes"; then
13514 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13516 else
13517 LIBXML2_LIBS=""
13518 LIBXML2_CFLAGS=""
13525 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13527 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13528 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13529 $as_echo_n "(cached) " >&6
13530 else
13531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13532 /* end confdefs.h. */
13533 #include <netdb.h>
13535 main ()
13537 return h_errno;
13539 return 0;
13541 _ACEOF
13542 if ac_fn_c_try_link "$LINENO"; then :
13543 emacs_cv_netdb_declares_h_errno=yes
13544 else
13545 emacs_cv_netdb_declares_h_errno=no
13547 rm -f core conftest.err conftest.$ac_objext \
13548 conftest$ac_exeext conftest.$ac_ext
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13551 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13552 if test $emacs_cv_netdb_declares_h_errno = yes; then
13554 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13558 # sqrt and other floating-point functions such as fmod and frexp
13559 # are found in -lm on most systems.
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13561 $as_echo_n "checking for sqrt in -lm... " >&6; }
13562 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13563 $as_echo_n "(cached) " >&6
13564 else
13565 ac_check_lib_save_LIBS=$LIBS
13566 LIBS="-lm $LIBS"
13567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13568 /* end confdefs.h. */
13570 /* Override any GCC internal prototype to avoid an error.
13571 Use char because int might match the return type of a GCC
13572 builtin and then its argument prototype would still apply. */
13573 #ifdef __cplusplus
13574 extern "C"
13575 #endif
13576 char sqrt ();
13578 main ()
13580 return sqrt ();
13582 return 0;
13584 _ACEOF
13585 if ac_fn_c_try_link "$LINENO"; then :
13586 ac_cv_lib_m_sqrt=yes
13587 else
13588 ac_cv_lib_m_sqrt=no
13590 rm -f core conftest.err conftest.$ac_objext \
13591 conftest$ac_exeext conftest.$ac_ext
13592 LIBS=$ac_check_lib_save_LIBS
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13595 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13596 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13597 cat >>confdefs.h <<_ACEOF
13598 #define HAVE_LIBM 1
13599 _ACEOF
13601 LIBS="-lm $LIBS"
13606 # Check for mail-locking functions in a "mail" library. Probably this should
13607 # have the same check as for liblockfile below.
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13609 $as_echo_n "checking for maillock in -lmail... " >&6; }
13610 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13611 $as_echo_n "(cached) " >&6
13612 else
13613 ac_check_lib_save_LIBS=$LIBS
13614 LIBS="-lmail $LIBS"
13615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13616 /* end confdefs.h. */
13618 /* Override any GCC internal prototype to avoid an error.
13619 Use char because int might match the return type of a GCC
13620 builtin and then its argument prototype would still apply. */
13621 #ifdef __cplusplus
13622 extern "C"
13623 #endif
13624 char maillock ();
13626 main ()
13628 return maillock ();
13630 return 0;
13632 _ACEOF
13633 if ac_fn_c_try_link "$LINENO"; then :
13634 ac_cv_lib_mail_maillock=yes
13635 else
13636 ac_cv_lib_mail_maillock=no
13638 rm -f core conftest.err conftest.$ac_objext \
13639 conftest$ac_exeext conftest.$ac_ext
13640 LIBS=$ac_check_lib_save_LIBS
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13643 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13644 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13645 have_mail=yes
13646 else
13647 have_mail=no
13650 if test $have_mail = yes; then
13651 LIBS_MAIL=-lmail
13652 LIBS="$LIBS_MAIL $LIBS"
13654 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13656 else
13657 LIBS_MAIL=
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13660 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13661 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13662 $as_echo_n "(cached) " >&6
13663 else
13664 ac_check_lib_save_LIBS=$LIBS
13665 LIBS="-llockfile $LIBS"
13666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13667 /* end confdefs.h. */
13669 /* Override any GCC internal prototype to avoid an error.
13670 Use char because int might match the return type of a GCC
13671 builtin and then its argument prototype would still apply. */
13672 #ifdef __cplusplus
13673 extern "C"
13674 #endif
13675 char maillock ();
13677 main ()
13679 return maillock ();
13681 return 0;
13683 _ACEOF
13684 if ac_fn_c_try_link "$LINENO"; then :
13685 ac_cv_lib_lockfile_maillock=yes
13686 else
13687 ac_cv_lib_lockfile_maillock=no
13689 rm -f core conftest.err conftest.$ac_objext \
13690 conftest$ac_exeext conftest.$ac_ext
13691 LIBS=$ac_check_lib_save_LIBS
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13694 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13695 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13696 have_lockfile=yes
13697 else
13698 have_lockfile=no
13701 if test $have_lockfile = yes; then
13702 LIBS_MAIL=-llockfile
13703 LIBS="$LIBS_MAIL $LIBS"
13705 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13707 else
13708 # If we have the shared liblockfile, assume we must use it for mail
13709 # locking (e.g. Debian). If we couldn't link against liblockfile
13710 # (no liblockfile.a installed), ensure that we don't need to.
13711 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13712 set dummy liblockfile.so; ac_word=$2
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13714 $as_echo_n "checking for $ac_word... " >&6; }
13715 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13716 $as_echo_n "(cached) " >&6
13717 else
13718 if test -n "$liblockfile"; then
13719 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13720 else
13721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13722 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13723 for as_dir in $as_dummy
13725 IFS=$as_save_IFS
13726 test -z "$as_dir" && as_dir=.
13727 for ac_exec_ext in '' $ac_executable_extensions; do
13728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13729 ac_cv_prog_liblockfile="yes"
13730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13731 break 2
13733 done
13734 done
13735 IFS=$as_save_IFS
13737 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13740 liblockfile=$ac_cv_prog_liblockfile
13741 if test -n "$liblockfile"; then
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13743 $as_echo "$liblockfile" >&6; }
13744 else
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13746 $as_echo "no" >&6; }
13750 if test $ac_cv_prog_liblockfile = yes; then
13751 as_fn_error "Shared liblockfile found but can't link against it.
13752 This probably means that movemail could lose mail.
13753 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13761 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13762 ## interlock access to the mail spool. The alternative is a lock file named
13763 ## /usr/spool/mail/$USER.lock.
13764 mail_lock=no
13765 case "$opsys" in
13766 aix4-2) mail_lock="lockf" ;;
13768 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13770 ## On GNU/Linux systems, both methods are used by various mail programs.
13771 ## I assume most people are using newer mailers that have heard of flock.
13772 ## Change this if you need to.
13773 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13774 ## configure gets the right answers, and that means *NOT* using flock.
13775 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13776 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13777 ## Debian maintainer hasn't provided a clean fix for Emacs.
13778 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13779 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13780 ## correct logic. -- fx
13781 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13782 ## liblockfile is a Free Software replacement for libmail, used on
13783 ## Debian systems and elsewhere. -rfr.
13784 gnu-*)
13785 mail_lock="flock"
13786 if test $have_mail = yes || test $have_lockfile = yes; then
13787 test $ac_cv_header_maillock_h = yes && mail_lock=no
13790 esac
13792 BLESSMAIL_TARGET=
13793 case "$mail_lock" in
13794 flock)
13795 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13798 lockf)
13799 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13802 *) BLESSMAIL_TARGET="need-blessmail" ;;
13803 esac
13807 for ac_func in gethostname \
13808 getrusage get_current_dir_name \
13809 lrand48 \
13810 select getpagesize setlocale \
13811 utimes getrlimit setrlimit shutdown getaddrinfo \
13812 strsignal setitimer \
13813 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13814 gai_strerror mkstemp getline getdelim sync \
13815 difftime posix_memalign \
13816 getpwent endpwent getgrent endgrent \
13817 touchlock \
13818 cfmakeraw cfsetspeed copysign __executable_start
13819 do :
13820 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13821 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13822 eval as_val=\$$as_ac_var
13823 if test "x$as_val" = x""yes; then :
13824 cat >>confdefs.h <<_ACEOF
13825 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13826 _ACEOF
13829 done
13832 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
13833 ## has a broken `rint' in some library versions including math library
13834 ## version number A.09.05.
13835 ## You can fix the math library by installing patch number PHSS_4630.
13836 ## But we can fix it more reliably for Emacs by just not using rint.
13837 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
13838 case $opsys in
13839 hpux*) : ;;
13840 *) for ac_func in random rint
13841 do :
13842 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13843 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13844 eval as_val=\$$as_ac_var
13845 if test "x$as_val" = x""yes; then :
13846 cat >>confdefs.h <<_ACEOF
13847 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13848 _ACEOF
13851 done
13853 esac
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13856 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13857 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13858 $as_echo_n "(cached) " >&6
13859 else
13860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13861 /* end confdefs.h. */
13864 main ()
13866 __builtin_unwind_init ();
13868 return 0;
13870 _ACEOF
13871 if ac_fn_c_try_link "$LINENO"; then :
13872 emacs_cv_func___builtin_unwind_init=yes
13873 else
13874 emacs_cv_func___builtin_unwind_init=no
13876 rm -f core conftest.err conftest.$ac_objext \
13877 conftest$ac_exeext conftest.$ac_ext
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13880 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13881 if test $emacs_cv_func___builtin_unwind_init = yes; then
13883 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13892 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13893 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13894 $as_echo_n "(cached) " >&6
13895 else
13896 while :; do
13897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13898 /* end confdefs.h. */
13899 #include <sys/types.h> /* for off_t */
13900 #include <stdio.h>
13902 main ()
13904 int (*fp) (FILE *, off_t, int) = fseeko;
13905 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13907 return 0;
13909 _ACEOF
13910 if ac_fn_c_try_link "$LINENO"; then :
13911 ac_cv_sys_largefile_source=no; break
13913 rm -f core conftest.err conftest.$ac_objext \
13914 conftest$ac_exeext conftest.$ac_ext
13915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13916 /* end confdefs.h. */
13917 #define _LARGEFILE_SOURCE 1
13918 #include <sys/types.h> /* for off_t */
13919 #include <stdio.h>
13921 main ()
13923 int (*fp) (FILE *, off_t, int) = fseeko;
13924 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13926 return 0;
13928 _ACEOF
13929 if ac_fn_c_try_link "$LINENO"; then :
13930 ac_cv_sys_largefile_source=1; break
13932 rm -f core conftest.err conftest.$ac_objext \
13933 conftest$ac_exeext conftest.$ac_ext
13934 ac_cv_sys_largefile_source=unknown
13935 break
13936 done
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13939 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13940 case $ac_cv_sys_largefile_source in #(
13941 no | unknown) ;;
13943 cat >>confdefs.h <<_ACEOF
13944 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13945 _ACEOF
13947 esac
13948 rm -rf conftest*
13950 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13951 # in glibc 2.1.3, but that breaks too many other things.
13952 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13953 if test $ac_cv_sys_largefile_source != unknown; then
13955 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13960 # UNIX98 PTYs.
13961 for ac_func in grantpt
13962 do :
13963 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
13964 if test "x$ac_cv_func_grantpt" = x""yes; then :
13965 cat >>confdefs.h <<_ACEOF
13966 #define HAVE_GRANTPT 1
13967 _ACEOF
13970 done
13973 # PTY-related GNU extensions.
13974 for ac_func in getpt posix_openpt
13975 do :
13976 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13977 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13978 eval as_val=\$$as_ac_var
13979 if test "x$as_val" = x""yes; then :
13980 cat >>confdefs.h <<_ACEOF
13981 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13982 _ACEOF
13985 done
13988 # Check this now, so that we will NOT find the above functions in ncurses.
13989 # That is because we have not set up to link ncurses in lib-src.
13990 # It's better to believe a function is not available
13991 # than to expect to find it in ncurses.
13992 # Also we need tputs and friends to be able to build at all.
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13994 $as_echo_n "checking for library containing tputs... " >&6; }
13995 # Run a test program that contains a call to tputs, a call that is
13996 # never executed. This tests whether a pre-'main' dynamic linker
13997 # works with the library. It's too much trouble to actually call
13998 # tputs in the test program, due to portability hassles. When
13999 # cross-compiling, assume the test program will run if it links.
14001 # Maybe curses should be tried earlier?
14002 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14003 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
14004 OLIBS=$LIBS
14005 if test -z "$tputs_library"; then
14006 LIBS_TERMCAP=
14007 msg='none required'
14008 else
14009 LIBS_TERMCAP=-l$tputs_library
14010 msg=$LIBS_TERMCAP
14011 LIBS="$LIBS_TERMCAP $LIBS"
14013 if test "$cross_compiling" = yes; then :
14014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14015 /* end confdefs.h. */
14017 extern void tputs (const char *, int, int (*)(int));
14018 int main (int argc, char **argv)
14020 if (argc == 10000)
14021 tputs (argv[0], 0, 0);
14022 return 0;
14025 _ACEOF
14026 if ac_fn_c_try_link "$LINENO"; then :
14028 else
14029 msg=no
14031 rm -f core conftest.err conftest.$ac_objext \
14032 conftest$ac_exeext conftest.$ac_ext
14033 else
14034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14035 /* end confdefs.h. */
14037 extern void tputs (const char *, int, int (*)(int));
14038 int main (int argc, char **argv)
14040 if (argc == 10000)
14041 tputs (argv[0], 0, 0);
14042 return 0;
14045 _ACEOF
14046 if ac_fn_c_try_run "$LINENO"; then :
14048 else
14049 msg=no
14051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14052 conftest.$ac_objext conftest.beam conftest.$ac_ext
14055 LIBS=$OLIBS
14056 if test "X$msg" != Xno; then
14057 break
14059 done
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
14061 $as_echo "$msg" >&6; }
14062 if test "X$msg" = Xno; then
14063 as_fn_error "The required function \`tputs' was not found in any library.
14064 The following libraries were tried (in order):
14065 libtinfo, libncurses, libterminfo, libtermcap, libcurses
14066 Please try installing whichever of these libraries is most appropriate
14067 for your system, together with its header files.
14068 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14071 ## Use termcap instead of terminfo?
14072 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
14073 TERMINFO=yes
14074 ## FIXME? In the cases below where we unconditionally set
14075 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
14076 ## if that was found above to have tputs.
14077 ## Should we use the gnu* logic everywhere?
14078 case "$opsys" in
14079 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14080 ## The ncurses library has been moved out of the System framework in
14081 ## Mac OS X 10.2. So if configure detects it, set the command-line
14082 ## option to use it.
14083 darwin) LIBS_TERMCAP="-lncurses" ;;
14085 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
14087 freebsd)
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14089 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14090 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14091 $as_echo_n "(cached) " >&6
14092 else
14093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14094 /* end confdefs.h. */
14095 #include <osreldate.h>
14097 main ()
14099 #if __FreeBSD_version < 400000
14100 fail;
14101 #endif
14104 return 0;
14106 _ACEOF
14107 if ac_fn_c_try_link "$LINENO"; then :
14108 emacs_cv_freebsd_terminfo=yes
14109 else
14110 emacs_cv_freebsd_terminfo=no
14112 rm -f core conftest.err conftest.$ac_objext \
14113 conftest$ac_exeext conftest.$ac_ext
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14118 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14120 if test $emacs_cv_freebsd_terminfo = yes; then
14121 LIBS_TERMCAP="-lncurses"
14122 else
14123 TERMINFO=no
14124 LIBS_TERMCAP="-ltermcap"
14128 netbsd)
14129 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
14130 TERMINFO=no
14131 LIBS_TERMCAP="-ltermcap"
14135 openbsd) LIBS_TERMCAP="-lncurses" ;;
14137 ## hpux: Make sure we get select from libc rather than from libcurses
14138 ## because libcurses on HPUX 10.10 has a broken version of select.
14139 ## We used to use -lc -lcurses, but this may be cleaner.
14140 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
14141 # set that way, now it uses the default). Isn't this a contradiction?
14142 hpux*) LIBS_TERMCAP="-ltermcap" ;;
14144 esac
14146 TERMCAP_OBJ=tparam.o
14147 if test $TERMINFO = yes; then
14149 $as_echo "#define TERMINFO 1" >>confdefs.h
14151 TERMCAP_OBJ=terminfo.o
14157 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14158 # On Darwin, res_init appears not to be useful: see bug#562 and
14159 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
14160 resolv=no
14162 if test $opsys != darwin; then
14164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14165 /* end confdefs.h. */
14166 #include <netinet/in.h>
14167 #include <arpa/nameser.h>
14168 #include <resolv.h>
14170 main ()
14172 return res_init();
14174 return 0;
14176 _ACEOF
14177 if ac_fn_c_try_link "$LINENO"; then :
14178 have_res_init=yes
14179 else
14180 have_res_init=no
14182 rm -f core conftest.err conftest.$ac_objext \
14183 conftest$ac_exeext conftest.$ac_ext
14184 if test "$have_res_init" = no; then
14185 OLIBS="$LIBS"
14186 LIBS="$LIBS -lresolv"
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14188 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14190 /* end confdefs.h. */
14191 #include <netinet/in.h>
14192 #include <arpa/nameser.h>
14193 #include <resolv.h>
14195 main ()
14197 return res_init();
14199 return 0;
14201 _ACEOF
14202 if ac_fn_c_try_link "$LINENO"; then :
14203 have_res_init=yes
14204 else
14205 have_res_init=no
14207 rm -f core conftest.err conftest.$ac_objext \
14208 conftest$ac_exeext conftest.$ac_ext
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14210 $as_echo "$have_res_init" >&6; }
14211 if test "$have_res_init" = yes ; then
14212 resolv=yes
14214 LIBS="$OLIBS"
14217 if test "$have_res_init" = yes; then
14219 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14223 # Do we need the Hesiod library to provide the support routines?
14224 LIBHESIOD=
14225 if test "$with_hesiod" != no ; then
14226 # Don't set $LIBS here -- see comments above. FIXME which comments?
14227 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
14228 if test "x$ac_cv_func_res_send" = x""yes; then :
14230 else
14231 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
14232 if test "x$ac_cv_func___res_send" = x""yes; then :
14234 else
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14236 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14237 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14238 $as_echo_n "(cached) " >&6
14239 else
14240 ac_check_lib_save_LIBS=$LIBS
14241 LIBS="-lresolv $LIBS"
14242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14243 /* end confdefs.h. */
14245 /* Override any GCC internal prototype to avoid an error.
14246 Use char because int might match the return type of a GCC
14247 builtin and then its argument prototype would still apply. */
14248 #ifdef __cplusplus
14249 extern "C"
14250 #endif
14251 char res_send ();
14253 main ()
14255 return res_send ();
14257 return 0;
14259 _ACEOF
14260 if ac_fn_c_try_link "$LINENO"; then :
14261 ac_cv_lib_resolv_res_send=yes
14262 else
14263 ac_cv_lib_resolv_res_send=no
14265 rm -f core conftest.err conftest.$ac_objext \
14266 conftest$ac_exeext conftest.$ac_ext
14267 LIBS=$ac_check_lib_save_LIBS
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14270 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14271 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
14272 resolv=yes
14273 else
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14275 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14276 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14277 $as_echo_n "(cached) " >&6
14278 else
14279 ac_check_lib_save_LIBS=$LIBS
14280 LIBS="-lresolv $LIBS"
14281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14282 /* end confdefs.h. */
14284 /* Override any GCC internal prototype to avoid an error.
14285 Use char because int might match the return type of a GCC
14286 builtin and then its argument prototype would still apply. */
14287 #ifdef __cplusplus
14288 extern "C"
14289 #endif
14290 char __res_send ();
14292 main ()
14294 return __res_send ();
14296 return 0;
14298 _ACEOF
14299 if ac_fn_c_try_link "$LINENO"; then :
14300 ac_cv_lib_resolv___res_send=yes
14301 else
14302 ac_cv_lib_resolv___res_send=no
14304 rm -f core conftest.err conftest.$ac_objext \
14305 conftest$ac_exeext conftest.$ac_ext
14306 LIBS=$ac_check_lib_save_LIBS
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14309 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14310 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
14311 resolv=yes
14320 if test "$resolv" = yes ; then
14321 RESOLVLIB=-lresolv
14322 else
14323 RESOLVLIB=
14325 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14326 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
14328 else
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14330 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14331 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14332 $as_echo_n "(cached) " >&6
14333 else
14334 ac_check_lib_save_LIBS=$LIBS
14335 LIBS="-lhesiod $RESOLVLIB $LIBS"
14336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14337 /* end confdefs.h. */
14339 /* Override any GCC internal prototype to avoid an error.
14340 Use char because int might match the return type of a GCC
14341 builtin and then its argument prototype would still apply. */
14342 #ifdef __cplusplus
14343 extern "C"
14344 #endif
14345 char hes_getmailhost ();
14347 main ()
14349 return hes_getmailhost ();
14351 return 0;
14353 _ACEOF
14354 if ac_fn_c_try_link "$LINENO"; then :
14355 ac_cv_lib_hesiod_hes_getmailhost=yes
14356 else
14357 ac_cv_lib_hesiod_hes_getmailhost=no
14359 rm -f core conftest.err conftest.$ac_objext \
14360 conftest$ac_exeext conftest.$ac_ext
14361 LIBS=$ac_check_lib_save_LIBS
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14364 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14365 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
14366 hesiod=yes
14367 else
14374 if test x"$hesiod" = xyes; then
14376 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14378 LIBHESIOD=-lhesiod
14383 # Do we need libresolv (due to res_init or Hesiod)?
14384 if test "$resolv" = yes && test $opsys != darwin; then
14386 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14388 LIBRESOLV=-lresolv
14389 else
14390 LIBRESOLV=
14394 # These tell us which Kerberos-related libraries to use.
14395 COM_ERRLIB=
14396 CRYPTOLIB=
14397 KRB5LIB=
14398 DESLIB=
14399 KRB4LIB=
14401 if test "${with_kerberos}" != no; then
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14403 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14404 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14405 $as_echo_n "(cached) " >&6
14406 else
14407 ac_check_lib_save_LIBS=$LIBS
14408 LIBS="-lcom_err $LIBS"
14409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14410 /* end confdefs.h. */
14412 /* Override any GCC internal prototype to avoid an error.
14413 Use char because int might match the return type of a GCC
14414 builtin and then its argument prototype would still apply. */
14415 #ifdef __cplusplus
14416 extern "C"
14417 #endif
14418 char com_err ();
14420 main ()
14422 return com_err ();
14424 return 0;
14426 _ACEOF
14427 if ac_fn_c_try_link "$LINENO"; then :
14428 ac_cv_lib_com_err_com_err=yes
14429 else
14430 ac_cv_lib_com_err_com_err=no
14432 rm -f core conftest.err conftest.$ac_objext \
14433 conftest$ac_exeext conftest.$ac_ext
14434 LIBS=$ac_check_lib_save_LIBS
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14437 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14438 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
14439 have_com_err=yes
14440 else
14441 have_com_err=no
14444 if test $have_com_err = yes; then
14445 COM_ERRLIB=-lcom_err
14446 LIBS="$COM_ERRLIB $LIBS"
14448 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14452 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14453 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14454 $as_echo_n "(cached) " >&6
14455 else
14456 ac_check_lib_save_LIBS=$LIBS
14457 LIBS="-lcrypto $LIBS"
14458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14459 /* end confdefs.h. */
14461 /* Override any GCC internal prototype to avoid an error.
14462 Use char because int might match the return type of a GCC
14463 builtin and then its argument prototype would still apply. */
14464 #ifdef __cplusplus
14465 extern "C"
14466 #endif
14467 char mit_des_cbc_encrypt ();
14469 main ()
14471 return mit_des_cbc_encrypt ();
14473 return 0;
14475 _ACEOF
14476 if ac_fn_c_try_link "$LINENO"; then :
14477 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14478 else
14479 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14481 rm -f core conftest.err conftest.$ac_objext \
14482 conftest$ac_exeext conftest.$ac_ext
14483 LIBS=$ac_check_lib_save_LIBS
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14486 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14487 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
14488 have_crypto=yes
14489 else
14490 have_crypto=no
14493 if test $have_crypto = yes; then
14494 CRYPTOLIB=-lcrypto
14495 LIBS="$CRYPTOLIB $LIBS"
14497 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14501 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14502 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14503 $as_echo_n "(cached) " >&6
14504 else
14505 ac_check_lib_save_LIBS=$LIBS
14506 LIBS="-lk5crypto $LIBS"
14507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14508 /* end confdefs.h. */
14510 /* Override any GCC internal prototype to avoid an error.
14511 Use char because int might match the return type of a GCC
14512 builtin and then its argument prototype would still apply. */
14513 #ifdef __cplusplus
14514 extern "C"
14515 #endif
14516 char mit_des_cbc_encrypt ();
14518 main ()
14520 return mit_des_cbc_encrypt ();
14522 return 0;
14524 _ACEOF
14525 if ac_fn_c_try_link "$LINENO"; then :
14526 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14527 else
14528 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14530 rm -f core conftest.err conftest.$ac_objext \
14531 conftest$ac_exeext conftest.$ac_ext
14532 LIBS=$ac_check_lib_save_LIBS
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14535 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14536 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
14537 have_k5crypto=yes
14538 else
14539 have_k5crypto=no
14542 if test $have_k5crypto = yes; then
14543 CRYPTOLIB=-lk5crypto
14544 LIBS="$CRYPTOLIB $LIBS"
14546 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14550 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14551 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14552 $as_echo_n "(cached) " >&6
14553 else
14554 ac_check_lib_save_LIBS=$LIBS
14555 LIBS="-lkrb5 $LIBS"
14556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14557 /* end confdefs.h. */
14559 /* Override any GCC internal prototype to avoid an error.
14560 Use char because int might match the return type of a GCC
14561 builtin and then its argument prototype would still apply. */
14562 #ifdef __cplusplus
14563 extern "C"
14564 #endif
14565 char krb5_init_context ();
14567 main ()
14569 return krb5_init_context ();
14571 return 0;
14573 _ACEOF
14574 if ac_fn_c_try_link "$LINENO"; then :
14575 ac_cv_lib_krb5_krb5_init_context=yes
14576 else
14577 ac_cv_lib_krb5_krb5_init_context=no
14579 rm -f core conftest.err conftest.$ac_objext \
14580 conftest$ac_exeext conftest.$ac_ext
14581 LIBS=$ac_check_lib_save_LIBS
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14584 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14585 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
14586 have_krb5=yes
14587 else
14588 have_krb5=no
14591 if test $have_krb5=yes; then
14592 KRB5LIB=-lkrb5
14593 LIBS="$KRB5LIB $LIBS"
14595 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14598 if test "${with_kerberos5}" = no; then
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14600 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14601 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14602 $as_echo_n "(cached) " >&6
14603 else
14604 ac_check_lib_save_LIBS=$LIBS
14605 LIBS="-ldes425 $LIBS"
14606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14607 /* end confdefs.h. */
14609 /* Override any GCC internal prototype to avoid an error.
14610 Use char because int might match the return type of a GCC
14611 builtin and then its argument prototype would still apply. */
14612 #ifdef __cplusplus
14613 extern "C"
14614 #endif
14615 char des_cbc_encrypt ();
14617 main ()
14619 return des_cbc_encrypt ();
14621 return 0;
14623 _ACEOF
14624 if ac_fn_c_try_link "$LINENO"; then :
14625 ac_cv_lib_des425_des_cbc_encrypt=yes
14626 else
14627 ac_cv_lib_des425_des_cbc_encrypt=no
14629 rm -f core conftest.err conftest.$ac_objext \
14630 conftest$ac_exeext conftest.$ac_ext
14631 LIBS=$ac_check_lib_save_LIBS
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14634 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14635 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
14636 have_des425=yes
14637 else
14638 have_des425=no
14641 if test $have_des425 = yes; then
14642 DESLIB=-ldes425
14643 LIBS="$DESLIB $LIBS"
14645 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14647 else
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14649 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14650 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14651 $as_echo_n "(cached) " >&6
14652 else
14653 ac_check_lib_save_LIBS=$LIBS
14654 LIBS="-ldes $LIBS"
14655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14656 /* end confdefs.h. */
14658 /* Override any GCC internal prototype to avoid an error.
14659 Use char because int might match the return type of a GCC
14660 builtin and then its argument prototype would still apply. */
14661 #ifdef __cplusplus
14662 extern "C"
14663 #endif
14664 char des_cbc_encrypt ();
14666 main ()
14668 return des_cbc_encrypt ();
14670 return 0;
14672 _ACEOF
14673 if ac_fn_c_try_link "$LINENO"; then :
14674 ac_cv_lib_des_des_cbc_encrypt=yes
14675 else
14676 ac_cv_lib_des_des_cbc_encrypt=no
14678 rm -f core conftest.err conftest.$ac_objext \
14679 conftest$ac_exeext conftest.$ac_ext
14680 LIBS=$ac_check_lib_save_LIBS
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14683 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14684 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
14685 have_des=yes
14686 else
14687 have_des=no
14690 if test $have_des = yes; then
14691 DESLIB=-ldes
14692 LIBS="$DESLIB $LIBS"
14694 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14699 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14700 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14701 $as_echo_n "(cached) " >&6
14702 else
14703 ac_check_lib_save_LIBS=$LIBS
14704 LIBS="-lkrb4 $LIBS"
14705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14706 /* end confdefs.h. */
14708 /* Override any GCC internal prototype to avoid an error.
14709 Use char because int might match the return type of a GCC
14710 builtin and then its argument prototype would still apply. */
14711 #ifdef __cplusplus
14712 extern "C"
14713 #endif
14714 char krb_get_cred ();
14716 main ()
14718 return krb_get_cred ();
14720 return 0;
14722 _ACEOF
14723 if ac_fn_c_try_link "$LINENO"; then :
14724 ac_cv_lib_krb4_krb_get_cred=yes
14725 else
14726 ac_cv_lib_krb4_krb_get_cred=no
14728 rm -f core conftest.err conftest.$ac_objext \
14729 conftest$ac_exeext conftest.$ac_ext
14730 LIBS=$ac_check_lib_save_LIBS
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14733 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14734 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
14735 have_krb4=yes
14736 else
14737 have_krb4=no
14740 if test $have_krb4 = yes; then
14741 KRB4LIB=-lkrb4
14742 LIBS="$KRB4LIB $LIBS"
14744 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14746 else
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14748 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14749 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14750 $as_echo_n "(cached) " >&6
14751 else
14752 ac_check_lib_save_LIBS=$LIBS
14753 LIBS="-lkrb $LIBS"
14754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14755 /* end confdefs.h. */
14757 /* Override any GCC internal prototype to avoid an error.
14758 Use char because int might match the return type of a GCC
14759 builtin and then its argument prototype would still apply. */
14760 #ifdef __cplusplus
14761 extern "C"
14762 #endif
14763 char krb_get_cred ();
14765 main ()
14767 return krb_get_cred ();
14769 return 0;
14771 _ACEOF
14772 if ac_fn_c_try_link "$LINENO"; then :
14773 ac_cv_lib_krb_krb_get_cred=yes
14774 else
14775 ac_cv_lib_krb_krb_get_cred=no
14777 rm -f core conftest.err conftest.$ac_objext \
14778 conftest$ac_exeext conftest.$ac_ext
14779 LIBS=$ac_check_lib_save_LIBS
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14782 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14783 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
14784 have_krb=yes
14785 else
14786 have_krb=no
14789 if test $have_krb = yes; then
14790 KRB4LIB=-lkrb
14791 LIBS="$KRB4LIB $LIBS"
14793 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14799 if test "${with_kerberos5}" != no; then
14800 for ac_header in krb5.h
14801 do :
14802 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14803 if test "x$ac_cv_header_krb5_h" = x""yes; then :
14804 cat >>confdefs.h <<_ACEOF
14805 #define HAVE_KRB5_H 1
14806 _ACEOF
14807 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14809 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
14811 cat >>confdefs.h <<_ACEOF
14812 #define HAVE_KRB5_ERROR_TEXT 1
14813 _ACEOF
14817 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14819 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
14821 cat >>confdefs.h <<_ACEOF
14822 #define HAVE_KRB5_ERROR_E_TEXT 1
14823 _ACEOF
14830 done
14832 else
14833 for ac_header in des.h
14834 do :
14835 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14836 if test "x$ac_cv_header_des_h" = x""yes; then :
14837 cat >>confdefs.h <<_ACEOF
14838 #define HAVE_DES_H 1
14839 _ACEOF
14841 else
14842 for ac_header in kerberosIV/des.h
14843 do :
14844 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14845 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
14846 cat >>confdefs.h <<_ACEOF
14847 #define HAVE_KERBEROSIV_DES_H 1
14848 _ACEOF
14850 else
14851 for ac_header in kerberos/des.h
14852 do :
14853 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14854 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
14855 cat >>confdefs.h <<_ACEOF
14856 #define HAVE_KERBEROS_DES_H 1
14857 _ACEOF
14861 done
14865 done
14869 done
14871 for ac_header in krb.h
14872 do :
14873 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14874 if test "x$ac_cv_header_krb_h" = x""yes; then :
14875 cat >>confdefs.h <<_ACEOF
14876 #define HAVE_KRB_H 1
14877 _ACEOF
14879 else
14880 for ac_header in kerberosIV/krb.h
14881 do :
14882 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14883 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
14884 cat >>confdefs.h <<_ACEOF
14885 #define HAVE_KERBEROSIV_KRB_H 1
14886 _ACEOF
14888 else
14889 for ac_header in kerberos/krb.h
14890 do :
14891 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14892 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
14893 cat >>confdefs.h <<_ACEOF
14894 #define HAVE_KERBEROS_KRB_H 1
14895 _ACEOF
14899 done
14903 done
14907 done
14910 for ac_header in com_err.h
14911 do :
14912 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14913 if test "x$ac_cv_header_com_err_h" = x""yes; then :
14914 cat >>confdefs.h <<_ACEOF
14915 #define HAVE_COM_ERR_H 1
14916 _ACEOF
14920 done
14933 for ac_func in $ac_func_list
14934 do :
14935 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14936 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14937 eval as_val=\$$as_ac_var
14938 if test "x$as_val" = x""yes; then :
14939 cat >>confdefs.h <<_ACEOF
14940 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14941 _ACEOF
14944 done
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14950 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14951 if test "${emacs_cv_localtime_cache+set}" = set; then :
14952 $as_echo_n "(cached) " >&6
14953 else
14954 if test x$ac_cv_func_tzset = xyes; then
14955 if test "$cross_compiling" = yes; then :
14956 # If we have tzset, assume the worst when cross-compiling.
14957 emacs_cv_localtime_cache=yes
14958 else
14959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14960 /* end confdefs.h. */
14961 #include <time.h>
14962 char TZ_GMT0[] = "TZ=GMT0";
14963 char TZ_PST8[] = "TZ=PST8";
14964 main()
14966 time_t now = time ((time_t *) 0);
14967 int hour_GMT0, hour_unset;
14968 if (putenv (TZ_GMT0) != 0)
14969 exit (1);
14970 hour_GMT0 = localtime (&now)->tm_hour;
14971 unsetenv("TZ");
14972 hour_unset = localtime (&now)->tm_hour;
14973 if (putenv (TZ_PST8) != 0)
14974 exit (1);
14975 if (localtime (&now)->tm_hour == hour_GMT0)
14976 exit (1);
14977 unsetenv("TZ");
14978 if (localtime (&now)->tm_hour != hour_unset)
14979 exit (1);
14980 exit (0);
14982 _ACEOF
14983 if ac_fn_c_try_run "$LINENO"; then :
14984 emacs_cv_localtime_cache=no
14985 else
14986 emacs_cv_localtime_cache=yes
14988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14989 conftest.$ac_objext conftest.beam conftest.$ac_ext
14992 else
14993 # If we lack tzset, report that localtime does not cache TZ,
14994 # since we can't invalidate the cache if we don't have tzset.
14995 emacs_cv_localtime_cache=no
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14999 $as_echo "$emacs_cv_localtime_cache" >&6; }
15000 if test $emacs_cv_localtime_cache = yes; then
15002 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15006 ok_so_far=yes
15007 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15008 if test "x$ac_cv_func_socket" = x""yes; then :
15010 else
15011 ok_so_far=no
15014 if test $ok_so_far = yes; then
15015 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15016 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
15018 else
15019 ok_so_far=no
15024 if test $ok_so_far = yes; then
15025 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15026 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
15028 else
15029 ok_so_far=no
15034 if test $ok_so_far = yes; then
15036 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15040 if test -f /usr/lpp/X11/bin/smt.exp; then
15042 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15047 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15048 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15050 $as_echo "yes" >&6; }
15052 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15054 else
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15056 $as_echo "no" >&6; }
15059 case $canonical in
15060 *-solaris2.4 | *-solaris2.4.*)
15061 : ${ac_cv_func_vfork_works=no};;
15062 esac
15064 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15065 if test "x$ac_cv_type_pid_t" = x""yes; then :
15067 else
15069 cat >>confdefs.h <<_ACEOF
15070 #define pid_t int
15071 _ACEOF
15075 for ac_header in vfork.h
15076 do :
15077 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15078 if test "x$ac_cv_header_vfork_h" = x""yes; then :
15079 cat >>confdefs.h <<_ACEOF
15080 #define HAVE_VFORK_H 1
15081 _ACEOF
15085 done
15087 for ac_func in fork vfork
15088 do :
15089 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15090 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15091 eval as_val=\$$as_ac_var
15092 if test "x$as_val" = x""yes; then :
15093 cat >>confdefs.h <<_ACEOF
15094 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15095 _ACEOF
15098 done
15100 if test "x$ac_cv_func_fork" = xyes; then
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15102 $as_echo_n "checking for working fork... " >&6; }
15103 if test "${ac_cv_func_fork_works+set}" = set; then :
15104 $as_echo_n "(cached) " >&6
15105 else
15106 if test "$cross_compiling" = yes; then :
15107 ac_cv_func_fork_works=cross
15108 else
15109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15110 /* end confdefs.h. */
15111 $ac_includes_default
15113 main ()
15116 /* By Ruediger Kuhlmann. */
15117 return fork () < 0;
15120 return 0;
15122 _ACEOF
15123 if ac_fn_c_try_run "$LINENO"; then :
15124 ac_cv_func_fork_works=yes
15125 else
15126 ac_cv_func_fork_works=no
15128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15129 conftest.$ac_objext conftest.beam conftest.$ac_ext
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15134 $as_echo "$ac_cv_func_fork_works" >&6; }
15136 else
15137 ac_cv_func_fork_works=$ac_cv_func_fork
15139 if test "x$ac_cv_func_fork_works" = xcross; then
15140 case $host in
15141 *-*-amigaos* | *-*-msdosdjgpp*)
15142 # Override, as these systems have only a dummy fork() stub
15143 ac_cv_func_fork_works=no
15146 ac_cv_func_fork_works=yes
15148 esac
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15150 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15152 ac_cv_func_vfork_works=$ac_cv_func_vfork
15153 if test "x$ac_cv_func_vfork" = xyes; then
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15155 $as_echo_n "checking for working vfork... " >&6; }
15156 if test "${ac_cv_func_vfork_works+set}" = set; then :
15157 $as_echo_n "(cached) " >&6
15158 else
15159 if test "$cross_compiling" = yes; then :
15160 ac_cv_func_vfork_works=cross
15161 else
15162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15163 /* end confdefs.h. */
15164 /* Thanks to Paul Eggert for this test. */
15165 $ac_includes_default
15166 #include <sys/wait.h>
15167 #ifdef HAVE_VFORK_H
15168 # include <vfork.h>
15169 #endif
15170 /* On some sparc systems, changes by the child to local and incoming
15171 argument registers are propagated back to the parent. The compiler
15172 is told about this with #include <vfork.h>, but some compilers
15173 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15174 static variable whose address is put into a register that is
15175 clobbered by the vfork. */
15176 static void
15177 #ifdef __cplusplus
15178 sparc_address_test (int arg)
15179 # else
15180 sparc_address_test (arg) int arg;
15181 #endif
15183 static pid_t child;
15184 if (!child) {
15185 child = vfork ();
15186 if (child < 0) {
15187 perror ("vfork");
15188 _exit(2);
15190 if (!child) {
15191 arg = getpid();
15192 write(-1, "", 0);
15193 _exit (arg);
15199 main ()
15201 pid_t parent = getpid ();
15202 pid_t child;
15204 sparc_address_test (0);
15206 child = vfork ();
15208 if (child == 0) {
15209 /* Here is another test for sparc vfork register problems. This
15210 test uses lots of local variables, at least as many local
15211 variables as main has allocated so far including compiler
15212 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15213 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15214 reuse the register of parent for one of the local variables,
15215 since it will think that parent can't possibly be used any more
15216 in this routine. Assigning to the local variable will thus
15217 munge parent in the parent process. */
15218 pid_t
15219 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15220 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15221 /* Convince the compiler that p..p7 are live; otherwise, it might
15222 use the same hardware register for all 8 local variables. */
15223 if (p != p1 || p != p2 || p != p3 || p != p4
15224 || p != p5 || p != p6 || p != p7)
15225 _exit(1);
15227 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15228 from child file descriptors. If the child closes a descriptor
15229 before it execs or exits, this munges the parent's descriptor
15230 as well. Test for this by closing stdout in the child. */
15231 _exit(close(fileno(stdout)) != 0);
15232 } else {
15233 int status;
15234 struct stat st;
15236 while (wait(&status) != child)
15238 return (
15239 /* Was there some problem with vforking? */
15240 child < 0
15242 /* Did the child fail? (This shouldn't happen.) */
15243 || status
15245 /* Did the vfork/compiler bug occur? */
15246 || parent != getpid()
15248 /* Did the file descriptor bug occur? */
15249 || fstat(fileno(stdout), &st) != 0
15253 _ACEOF
15254 if ac_fn_c_try_run "$LINENO"; then :
15255 ac_cv_func_vfork_works=yes
15256 else
15257 ac_cv_func_vfork_works=no
15259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15260 conftest.$ac_objext conftest.beam conftest.$ac_ext
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15265 $as_echo "$ac_cv_func_vfork_works" >&6; }
15268 if test "x$ac_cv_func_fork_works" = xcross; then
15269 ac_cv_func_vfork_works=$ac_cv_func_vfork
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15271 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15274 if test "x$ac_cv_func_vfork_works" = xyes; then
15276 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15278 else
15280 $as_echo "#define vfork fork" >>confdefs.h
15283 if test "x$ac_cv_func_fork_works" = xyes; then
15285 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15290 for ac_func in snprintf
15291 do :
15292 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
15293 if test "x$ac_cv_func_snprintf" = x""yes; then :
15294 cat >>confdefs.h <<_ACEOF
15295 #define HAVE_SNPRINTF 1
15296 _ACEOF
15299 done
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15303 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15304 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15305 $as_echo_n "(cached) " >&6
15306 else
15307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15308 /* end confdefs.h. */
15309 #include <langinfo.h>
15311 main ()
15313 char* cs = nl_langinfo(CODESET);
15315 return 0;
15317 _ACEOF
15318 if ac_fn_c_try_link "$LINENO"; then :
15319 emacs_cv_langinfo_codeset=yes
15320 else
15321 emacs_cv_langinfo_codeset=no
15323 rm -f core conftest.err conftest.$ac_objext \
15324 conftest$ac_exeext conftest.$ac_ext
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15328 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15329 if test $emacs_cv_langinfo_codeset = yes; then
15331 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15336 $as_echo_n "checking for mbstate_t... " >&6; }
15337 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15338 $as_echo_n "(cached) " >&6
15339 else
15340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15341 /* end confdefs.h. */
15342 $ac_includes_default
15343 # include <wchar.h>
15345 main ()
15347 mbstate_t x; return sizeof x;
15349 return 0;
15351 _ACEOF
15352 if ac_fn_c_try_compile "$LINENO"; then :
15353 ac_cv_type_mbstate_t=yes
15354 else
15355 ac_cv_type_mbstate_t=no
15357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15360 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15361 if test $ac_cv_type_mbstate_t = yes; then
15363 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15365 else
15367 $as_echo "#define mbstate_t int" >>confdefs.h
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15372 $as_echo_n "checking for C restricted array declarations... " >&6; }
15373 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15374 $as_echo_n "(cached) " >&6
15375 else
15376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15377 /* end confdefs.h. */
15378 void fred (int x[__restrict]);
15380 main ()
15384 return 0;
15386 _ACEOF
15387 if ac_fn_c_try_compile "$LINENO"; then :
15388 emacs_cv_c_restrict_arr=yes
15389 else
15390 emacs_cv_c_restrict_arr=no
15392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15395 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15396 if test "$emacs_cv_c_restrict_arr" = yes; then
15398 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15404 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
15408 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
15411 ## Note: PTYs are broken on darwin <6. Use at your own risk.
15413 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
15417 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
15423 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
15427 $as_echo "#define SEPCHAR ':'" >>confdefs.h
15431 $as_echo "#define subprocesses 1" >>confdefs.h
15435 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
15440 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
15446 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
15450 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
15454 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
15460 case $opsys in
15461 aix4-2)
15462 if test x$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes; then
15463 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15468 hpux*)
15469 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15472 esac
15475 case $opsys in
15476 irix6-5 | sol2* | unixware )
15478 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
15481 esac
15483 emacs_broken_SIGIO=no
15485 case $opsys in
15486 hpux* | irix6-5 | openbsd | sol2* | unixware )
15487 emacs_broken_SIGIO=yes
15490 aix4-2)
15492 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
15496 freebsd)
15498 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
15501 esac
15503 case $opsys in
15504 gnu-* | sol2-10 )
15506 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
15509 esac
15511 case $opsys in
15512 darwin | freebsd | netbsd | openbsd )
15514 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
15517 esac
15519 case $opsys in
15520 netbsd | openbsd) sound_device="/dev/audio" ;;
15521 *) sound_device="/dev/dsp" ;;
15522 esac
15525 cat >>confdefs.h <<_ACEOF
15526 #define DEFAULT_SOUND_DEVICE "$sound_device"
15527 _ACEOF
15531 case $opsys in
15532 darwin | gnu-linux | gnu-kfreebsd )
15534 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
15537 esac
15540 case $opsys in
15541 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd)
15543 $as_echo "#define NARROWPROTO 1" >>confdefs.h
15546 esac
15555 case $opsys in
15556 aix4-2 )
15557 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
15559 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
15561 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
15565 cygwin )
15566 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15568 $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
15570 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15572 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15576 darwin )
15577 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15579 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15581 $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
15583 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15585 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15589 gnu | openbsd )
15590 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15594 gnu-linux | gnu-kfreebsd | freebsd | netbsd )
15595 if test "x$ac_cv_func_grantpt" = xyes; then
15597 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
15599 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15601 $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
15603 if test "x$ac_cv_func_posix_openpt" = xyes; then
15604 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
15606 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15608 elif test "x$ac_cv_func_getpt" = xyes; then
15609 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
15611 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15613 else
15614 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15617 else
15618 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15623 hpux*)
15624 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15626 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
15628 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
15632 irix6-5 )
15633 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
15635 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
15637 $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(SIGCHLD, &cstat, &ocstat); name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); sigaction(SIGCHLD, &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
15639 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15641 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15645 sol2* )
15646 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); 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
15650 unixware )
15651 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); 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
15654 esac
15657 case $opsys in
15658 sol2* | unixware )
15659 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
15661 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15664 $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
15667 esac
15672 case $opsys in
15673 aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd | darwin )
15674 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15678 gnu-linux | gnu-kfreebsd )
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15681 $as_echo_n "checking for signals via characters... " >&6; }
15682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15683 /* end confdefs.h. */
15685 #include <linux/version.h>
15686 #if LINUX_VERSION_CODE < 0x20400
15687 # error "Linux version too old"
15688 #endif
15691 main ()
15695 return 0;
15697 _ACEOF
15698 if ac_fn_c_try_cpp "$LINENO"; then :
15699 emacs_signals_via_chars=yes
15700 else
15701 emacs_signals_via_chars=no
15703 rm -f conftest.err conftest.$ac_ext
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15706 $as_echo "$emacs_signals_via_chars" >&6; }
15707 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15710 esac
15715 case $opsys in
15716 aix*)
15717 $as_echo "#define DATA_SEG_BITS 0x20000000" >>confdefs.h
15720 hpux*)
15721 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15724 irix6-5)
15725 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15728 esac
15733 case $opsys in
15734 darwin) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15737 gnu | freebsd | netbsd | openbsd )
15739 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15741 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15745 gnu-linux | gnu-kfreebsd )
15746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15747 /* end confdefs.h. */
15749 #ifndef __ia64__
15750 # error "not ia64"
15751 #endif
15754 main ()
15758 return 0;
15760 _ACEOF
15761 if ac_fn_c_try_cpp "$LINENO"; then :
15763 $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
15766 rm -f conftest.err conftest.$ac_ext
15769 hpux*)
15771 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
15774 esac
15780 case $opsys in
15781 gnu-linux | gnu-kfreebsd )
15782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15783 /* end confdefs.h. */
15785 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
15786 || defined __alpha__ || defined __mips__ || defined __s390__ \
15787 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
15788 || defined __ia64__ || defined __sh__
15789 /* ok */
15790 #else
15791 # error "setjmp not known to work on this arch"
15792 #endif
15795 main ()
15799 return 0;
15801 _ACEOF
15802 if ac_fn_c_try_cpp "$LINENO"; then :
15803 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15806 rm -f conftest.err conftest.$ac_ext
15808 esac
15811 if test x$GCC = xyes; then
15812 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15814 else
15815 case $opsys in
15816 freebsd | netbsd | openbsd | irix6-5 | sol2* )
15817 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15820 esac
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
15823 $as_echo_n "checking for _setjmp... " >&6; }
15824 if test "${emacs_cv_func__setjmp+set}" = set; then :
15825 $as_echo_n "(cached) " >&6
15826 else
15827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15828 /* end confdefs.h. */
15829 #include <setjmp.h>
15832 main ()
15834 jmp_buf j;
15835 if (! _setjmp (j))
15836 _longjmp (j, 1);
15838 return 0;
15840 _ACEOF
15841 if ac_fn_c_try_link "$LINENO"; then :
15842 emacs_cv_func__setjmp=yes
15843 else
15844 emacs_cv_func__setjmp=no
15846 rm -f core conftest.err conftest.$ac_objext \
15847 conftest$ac_exeext conftest.$ac_ext
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
15850 $as_echo "$emacs_cv_func__setjmp" >&6; }
15851 if test $emacs_cv_func__setjmp = yes; then
15853 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
15855 else
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
15857 $as_echo_n "checking for sigsetjmp... " >&6; }
15858 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
15859 $as_echo_n "(cached) " >&6
15860 else
15861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15862 /* end confdefs.h. */
15863 #include <setjmp.h>
15866 main ()
15868 sigjmp_buf j;
15869 if (! sigsetjmp (j, 1))
15870 siglongjmp (j, 1);
15872 return 0;
15874 _ACEOF
15875 if ac_fn_c_try_link "$LINENO"; then :
15876 emacs_cv_func_sigsetjmp=yes
15877 else
15878 emacs_cv_func_sigsetjmp=no
15880 rm -f core conftest.err conftest.$ac_objext \
15881 conftest$ac_exeext conftest.$ac_ext
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
15884 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
15885 if test $emacs_cv_func_sigsetjmp = yes; then
15887 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
15892 case $opsys in
15893 sol2* | unixware )
15895 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
15898 esac
15901 case $opsys in
15902 hpux* | sol2* )
15904 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
15907 esac
15916 case $opsys in
15917 aix4-2)
15918 $as_echo "#define USG /**/" >>confdefs.h
15920 $as_echo "#define USG5 /**/" >>confdefs.h
15922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15923 /* end confdefs.h. */
15925 #ifndef _AIX
15926 # error "_AIX not defined"
15927 #endif
15930 main ()
15934 return 0;
15936 _ACEOF
15937 if ac_fn_c_try_cpp "$LINENO"; then :
15939 else
15941 $as_echo "#define _AIX /**/" >>confdefs.h
15944 rm -f conftest.err conftest.$ac_ext
15947 cygwin)
15949 $as_echo "#define CYGWIN 1" >>confdefs.h
15953 darwin)
15955 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
15959 gnu-linux | gnu-kfreebsd )
15960 $as_echo "#define USG /**/" >>confdefs.h
15963 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
15967 hpux*)
15968 $as_echo "#define USG /**/" >>confdefs.h
15970 $as_echo "#define USG5 /**/" >>confdefs.h
15973 $as_echo "#define HPUX /**/" >>confdefs.h
15977 irix6-5)
15978 $as_echo "#define USG /**/" >>confdefs.h
15980 $as_echo "#define USG5 /**/" >>confdefs.h
15982 $as_echo "#define USG5_4 /**/" >>confdefs.h
15985 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
15989 sol2*)
15990 $as_echo "#define USG /**/" >>confdefs.h
15992 $as_echo "#define USG5 /**/" >>confdefs.h
15994 $as_echo "#define USG5_4 /**/" >>confdefs.h
15997 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
16001 unixware)
16002 $as_echo "#define USG /**/" >>confdefs.h
16004 $as_echo "#define USG5 /**/" >>confdefs.h
16006 $as_echo "#define USG5_4 /**/" >>confdefs.h
16009 esac
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
16012 $as_echo_n "checking for usable FIONREAD... " >&6; }
16013 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
16014 $as_echo_n "(cached) " >&6
16015 else
16016 case $opsys in
16017 aix4-2)
16018 emacs_cv_usable_FIONREAD=no
16022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16023 /* end confdefs.h. */
16024 #include <sys/types.h>
16025 #include <sys/ioctl.h>
16026 #ifdef USG5_4
16027 # include <sys/filio.h>
16028 #endif
16031 main ()
16033 int foo = ioctl (0, FIONREAD, &foo);
16035 return 0;
16037 _ACEOF
16038 if ac_fn_c_try_compile "$LINENO"; then :
16039 emacs_cv_usable_FIONREAD=yes
16040 else
16041 emacs_cv_usable_FIONREAD=no
16043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16045 esac
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
16048 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
16049 if test $emacs_cv_usable_FIONREAD = yes; then
16051 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
16054 if test $emacs_broken_SIGIO = no; then
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
16056 $as_echo_n "checking for usable SIGIO... " >&6; }
16057 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
16058 $as_echo_n "(cached) " >&6
16059 else
16060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16061 /* end confdefs.h. */
16062 #include <fcntl.h>
16063 #include <signal.h>
16066 main ()
16068 int foo = SIGIO | F_SETFL | FASYNC;
16070 return 0;
16072 _ACEOF
16073 if ac_fn_c_try_compile "$LINENO"; then :
16074 emacs_cv_usable_SIGIO=yes
16075 else
16076 emacs_cv_usable_SIGIO=no
16078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
16081 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
16082 if test $emacs_cv_usable_SIGIO = yes; then
16084 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
16091 case $opsys in
16092 cygwin)
16094 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
16098 hpux11)
16100 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
16104 irix6-5)
16106 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
16110 sol2-10)
16112 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
16115 esac
16117 # Set up the CFLAGS for real compilation, so we can substitute it.
16118 CFLAGS="$REAL_CFLAGS"
16119 CPPFLAGS="$REAL_CPPFLAGS"
16121 ## Hack to detect a buggy GCC version.
16122 if test "x$GCC" = xyes \
16123 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
16124 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
16125 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
16126 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
16129 version=$PACKAGE_VERSION
16131 copyright="Copyright (C) 2013 Free Software Foundation, Inc."
16133 cat >>confdefs.h <<_ACEOF
16134 #define COPYRIGHT "$copyright"
16135 _ACEOF
16139 ### Specify what sort of things we'll be editing into Makefile and config.h.
16140 ### Use configuration here uncanonicalized to avoid exceeding size limits.
16143 ## Unused?
16166 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
16167 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
16168 ## end of LIBX_BASE, but nothing ever set it.
16173 ## Used in lwlib/Makefile.in.
16182 if test -n "${term_header}"; then
16184 cat >>confdefs.h <<_ACEOF
16185 #define TERM_HEADER "${term_header}"
16186 _ACEOF
16191 cat >>confdefs.h <<_ACEOF
16192 #define EMACS_CONFIGURATION "${canonical}"
16193 _ACEOF
16195 emacs_config_options=`echo "$emacs_config_options " | sed -e 's/--no-create //' -e 's/--no-recursion //' -e 's/ *$//' -e "s/\"/'/g"`
16197 cat >>confdefs.h <<_ACEOF
16198 #define EMACS_CONFIG_OPTIONS "${emacs_config_options}"
16199 _ACEOF
16203 XMENU_OBJ=
16204 XOBJ=
16205 FONT_OBJ=
16206 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16208 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16210 XMENU_OBJ=xmenu.o
16211 XOBJ="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o"
16212 FONT_OBJ=xfont.o
16213 if test "$HAVE_XFT" = "yes"; then
16214 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
16215 elif test "$HAVE_FREETYPE" = "yes"; then
16216 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
16224 WIDGET_OBJ=
16225 MOTIF_LIBW=
16226 if test "${USE_X_TOOLKIT}" != "none" ; then
16227 WIDGET_OBJ=widget.o
16229 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
16231 if test "${USE_X_TOOLKIT}" = "LUCID"; then
16233 $as_echo "#define USE_LUCID 1" >>confdefs.h
16235 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
16237 $as_echo "#define USE_MOTIF 1" >>confdefs.h
16239 MOTIF_LIBW=-lXm
16240 case "$opsys" in
16241 gnu-linux)
16242 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
16243 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
16246 unixware)
16247 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
16248 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
16249 MOTIF_LIBW="MOTIF_LIBW -lXimp"
16252 aix4-2)
16253 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
16254 MOTIF_LIBW="$MOTIF_LIBW -li18n"
16256 esac
16257 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
16262 TOOLKIT_LIBW=
16263 case "$USE_X_TOOLKIT" in
16264 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
16265 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
16266 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
16267 esac
16270 if test "$USE_X_TOOLKIT" = "none"; then
16271 LIBXT_OTHER="\$(LIBXSM)"
16272 OLDXMENU_TARGET="really-oldXMenu"
16273 else
16274 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16275 OLDXMENU_TARGET="really-lwlib"
16279 ## The X Menu stuff is present in the X10 distribution, but missing
16280 ## from X11. If we have X10, just use the installed library;
16281 ## otherwise, use our own copy.
16282 if test "${HAVE_X11}" = "yes" ; then
16284 $as_echo "#define HAVE_X11 1" >>confdefs.h
16287 if test "$USE_X_TOOLKIT" = "none"; then
16288 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
16289 else
16290 OLDXMENU="\${lwlibdir}/liblw.a"
16292 LIBXMENU="\$(OLDXMENU)"
16293 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
16294 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
16295 else
16296 ## For a syntactically valid Makefile; not actually used for anything.
16297 ## See comments in src/Makefile.in.
16298 OLDXMENU=nothing
16299 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16300 if test "${HAVE_X_WINDOWS}" = "yes"; then
16301 LIBXMENU="-lXMenu"
16302 else
16303 LIBXMENU=
16305 LIBX_OTHER=
16306 OLDXMENU_DEPS=
16309 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
16310 OLDXMENU_TARGET=
16311 OLDXMENU=nothing
16312 LIBXMENU=
16313 OLDXMENU_DEPS=
16322 if test "${HAVE_MENUS}" = "yes" ; then
16324 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16328 if test "${GNU_MALLOC}" = "yes" ; then
16330 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16334 RALLOC_OBJ=
16335 if test "${REL_ALLOC}" = "yes" ; then
16337 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16340 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16344 if test "$opsys" = "cygwin"; then
16345 CYGWIN_OBJ="sheap.o cygw32.o"
16346 ## Cygwin differs because of its unexec().
16347 PRE_ALLOC_OBJ=
16348 POST_ALLOC_OBJ=lastfile.o
16349 else
16350 CYGWIN_OBJ=
16351 PRE_ALLOC_OBJ=lastfile.o
16352 POST_ALLOC_OBJ=
16358 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
16359 # it temporarily reverts them to their pre-pkg-config values,
16360 # because gnulib needs to work with both src (which uses the
16361 # pkg-config stuff) and lib-src (which does not). For example, gnulib
16362 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
16363 # and it therefore needs to run in an environment where LIBS does not
16364 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
16365 # for some package unrelated to lib-src.
16366 SAVE_CFLAGS=$CFLAGS
16367 SAVE_LIBS=$LIBS
16368 CFLAGS=$pre_PKG_CONFIG_CFLAGS
16369 LIBS="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
16381 LIBC_FATAL_STDERR_=1
16382 export LIBC_FATAL_STDERR_
16384 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16385 # for constant arguments. Useless!
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16387 $as_echo_n "checking for working alloca.h... " >&6; }
16388 if test "${ac_cv_working_alloca_h+set}" = set; then :
16389 $as_echo_n "(cached) " >&6
16390 else
16391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16392 /* end confdefs.h. */
16393 #include <alloca.h>
16395 main ()
16397 char *p = (char *) alloca (2 * sizeof (int));
16398 if (p) return 0;
16400 return 0;
16402 _ACEOF
16403 if ac_fn_c_try_link "$LINENO"; then :
16404 ac_cv_working_alloca_h=yes
16405 else
16406 ac_cv_working_alloca_h=no
16408 rm -f core conftest.err conftest.$ac_objext \
16409 conftest$ac_exeext conftest.$ac_ext
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16412 $as_echo "$ac_cv_working_alloca_h" >&6; }
16413 if test $ac_cv_working_alloca_h = yes; then
16415 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16420 $as_echo_n "checking for alloca... " >&6; }
16421 if test "${ac_cv_func_alloca_works+set}" = set; then :
16422 $as_echo_n "(cached) " >&6
16423 else
16424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16425 /* end confdefs.h. */
16426 #ifdef __GNUC__
16427 # define alloca __builtin_alloca
16428 #else
16429 # ifdef _MSC_VER
16430 # include <malloc.h>
16431 # define alloca _alloca
16432 # else
16433 # ifdef HAVE_ALLOCA_H
16434 # include <alloca.h>
16435 # else
16436 # ifdef _AIX
16437 #pragma alloca
16438 # else
16439 # ifndef alloca /* predefined by HP cc +Olibcalls */
16440 char *alloca ();
16441 # endif
16442 # endif
16443 # endif
16444 # endif
16445 #endif
16448 main ()
16450 char *p = (char *) alloca (1);
16451 if (p) return 0;
16453 return 0;
16455 _ACEOF
16456 if ac_fn_c_try_link "$LINENO"; then :
16457 ac_cv_func_alloca_works=yes
16458 else
16459 ac_cv_func_alloca_works=no
16461 rm -f core conftest.err conftest.$ac_objext \
16462 conftest$ac_exeext conftest.$ac_ext
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16465 $as_echo "$ac_cv_func_alloca_works" >&6; }
16467 if test $ac_cv_func_alloca_works = yes; then
16469 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16471 else
16472 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16473 # that cause trouble. Some versions do not even contain alloca or
16474 # contain a buggy version. If you still want to use their alloca,
16475 # use ar to extract alloca.o from them instead of compiling alloca.c.
16481 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16483 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
16487 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
16488 if test "${ac_cv_os_cray+set}" = set; then :
16489 $as_echo_n "(cached) " >&6
16490 else
16491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16492 /* end confdefs.h. */
16493 #if defined CRAY && ! defined CRAY2
16494 webecray
16495 #else
16496 wenotbecray
16497 #endif
16499 _ACEOF
16500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16501 $EGREP "webecray" >/dev/null 2>&1; then :
16502 ac_cv_os_cray=yes
16503 else
16504 ac_cv_os_cray=no
16506 rm -f conftest*
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16510 $as_echo "$ac_cv_os_cray" >&6; }
16511 if test $ac_cv_os_cray = yes; then
16512 for ac_func in _getb67 GETB67 getb67; do
16513 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16514 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16515 eval as_val=\$$as_ac_var
16516 if test "x$as_val" = x""yes; then :
16518 cat >>confdefs.h <<_ACEOF
16519 #define CRAY_STACKSEG_END $ac_func
16520 _ACEOF
16522 break
16525 done
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16529 $as_echo_n "checking stack direction for C alloca... " >&6; }
16530 if test "${ac_cv_c_stack_direction+set}" = set; then :
16531 $as_echo_n "(cached) " >&6
16532 else
16533 if test "$cross_compiling" = yes; then :
16534 ac_cv_c_stack_direction=0
16535 else
16536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16537 /* end confdefs.h. */
16538 $ac_includes_default
16540 find_stack_direction (int *addr, int depth)
16542 int dir, dummy = 0;
16543 if (! addr)
16544 addr = &dummy;
16545 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16546 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16547 return dir + dummy;
16551 main (int argc, char **argv)
16553 return find_stack_direction (0, argc + !argv + 20) < 0;
16555 _ACEOF
16556 if ac_fn_c_try_run "$LINENO"; then :
16557 ac_cv_c_stack_direction=1
16558 else
16559 ac_cv_c_stack_direction=-1
16561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16562 conftest.$ac_objext conftest.beam conftest.$ac_ext
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16567 $as_echo "$ac_cv_c_stack_direction" >&6; }
16568 cat >>confdefs.h <<_ACEOF
16569 #define STACK_DIRECTION $ac_cv_c_stack_direction
16570 _ACEOF
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16579 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16580 if test "${ac_cv_c_bigendian+set}" = set; then :
16581 $as_echo_n "(cached) " >&6
16582 else
16583 ac_cv_c_bigendian=unknown
16584 # See if we're dealing with a universal compiler.
16585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16586 /* end confdefs.h. */
16587 #ifndef __APPLE_CC__
16588 not a universal capable compiler
16589 #endif
16590 typedef int dummy;
16592 _ACEOF
16593 if ac_fn_c_try_compile "$LINENO"; then :
16595 # Check for potential -arch flags. It is not universal unless
16596 # there are at least two -arch flags with different values.
16597 ac_arch=
16598 ac_prev=
16599 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16600 if test -n "$ac_prev"; then
16601 case $ac_word in
16602 i?86 | x86_64 | ppc | ppc64)
16603 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16604 ac_arch=$ac_word
16605 else
16606 ac_cv_c_bigendian=universal
16607 break
16610 esac
16611 ac_prev=
16612 elif test "x$ac_word" = "x-arch"; then
16613 ac_prev=arch
16615 done
16617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16618 if test $ac_cv_c_bigendian = unknown; then
16619 # See if sys/param.h defines the BYTE_ORDER macro.
16620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16621 /* end confdefs.h. */
16622 #include <sys/types.h>
16623 #include <sys/param.h>
16626 main ()
16628 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16629 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16630 && LITTLE_ENDIAN)
16631 bogus endian macros
16632 #endif
16635 return 0;
16637 _ACEOF
16638 if ac_fn_c_try_compile "$LINENO"; then :
16639 # It does; now see whether it defined to BIG_ENDIAN or not.
16640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16641 /* end confdefs.h. */
16642 #include <sys/types.h>
16643 #include <sys/param.h>
16646 main ()
16648 #if BYTE_ORDER != BIG_ENDIAN
16649 not big endian
16650 #endif
16653 return 0;
16655 _ACEOF
16656 if ac_fn_c_try_compile "$LINENO"; then :
16657 ac_cv_c_bigendian=yes
16658 else
16659 ac_cv_c_bigendian=no
16661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16665 if test $ac_cv_c_bigendian = unknown; then
16666 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16668 /* end confdefs.h. */
16669 #include <limits.h>
16672 main ()
16674 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16675 bogus endian macros
16676 #endif
16679 return 0;
16681 _ACEOF
16682 if ac_fn_c_try_compile "$LINENO"; then :
16683 # It does; now see whether it defined to _BIG_ENDIAN or not.
16684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16685 /* end confdefs.h. */
16686 #include <limits.h>
16689 main ()
16691 #ifndef _BIG_ENDIAN
16692 not big endian
16693 #endif
16696 return 0;
16698 _ACEOF
16699 if ac_fn_c_try_compile "$LINENO"; then :
16700 ac_cv_c_bigendian=yes
16701 else
16702 ac_cv_c_bigendian=no
16704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16708 if test $ac_cv_c_bigendian = unknown; then
16709 # Compile a test program.
16710 if test "$cross_compiling" = yes; then :
16711 # Try to guess by grepping values from an object file.
16712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16713 /* end confdefs.h. */
16714 short int ascii_mm[] =
16715 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16716 short int ascii_ii[] =
16717 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16718 int use_ascii (int i) {
16719 return ascii_mm[i] + ascii_ii[i];
16721 short int ebcdic_ii[] =
16722 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16723 short int ebcdic_mm[] =
16724 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16725 int use_ebcdic (int i) {
16726 return ebcdic_mm[i] + ebcdic_ii[i];
16728 extern int foo;
16731 main ()
16733 return use_ascii (foo) == use_ebcdic (foo);
16735 return 0;
16737 _ACEOF
16738 if ac_fn_c_try_compile "$LINENO"; then :
16739 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16740 ac_cv_c_bigendian=yes
16742 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16743 if test "$ac_cv_c_bigendian" = unknown; then
16744 ac_cv_c_bigendian=no
16745 else
16746 # finding both strings is unlikely to happen, but who knows?
16747 ac_cv_c_bigendian=unknown
16751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16752 else
16753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16754 /* end confdefs.h. */
16755 $ac_includes_default
16757 main ()
16760 /* Are we little or big endian? From Harbison&Steele. */
16761 union
16763 long int l;
16764 char c[sizeof (long int)];
16765 } u;
16766 u.l = 1;
16767 return u.c[sizeof (long int) - 1] == 1;
16770 return 0;
16772 _ACEOF
16773 if ac_fn_c_try_run "$LINENO"; then :
16774 ac_cv_c_bigendian=no
16775 else
16776 ac_cv_c_bigendian=yes
16778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16779 conftest.$ac_objext conftest.beam conftest.$ac_ext
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16785 $as_echo "$ac_cv_c_bigendian" >&6; }
16786 case $ac_cv_c_bigendian in #(
16787 yes)
16788 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16789 ;; #(
16791 ;; #(
16792 universal)
16794 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16796 ;; #(
16798 as_fn_error "unknown endianness
16799 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16800 esac
16804 GNULIB_CHDIR=0;
16805 GNULIB_CHOWN=0;
16806 GNULIB_CLOSE=0;
16807 GNULIB_DUP=0;
16808 GNULIB_DUP2=0;
16809 GNULIB_DUP3=0;
16810 GNULIB_ENVIRON=0;
16811 GNULIB_EUIDACCESS=0;
16812 GNULIB_FACCESSAT=0;
16813 GNULIB_FCHDIR=0;
16814 GNULIB_FCHOWNAT=0;
16815 GNULIB_FDATASYNC=0;
16816 GNULIB_FSYNC=0;
16817 GNULIB_FTRUNCATE=0;
16818 GNULIB_GETCWD=0;
16819 GNULIB_GETDOMAINNAME=0;
16820 GNULIB_GETDTABLESIZE=0;
16821 GNULIB_GETGROUPS=0;
16822 GNULIB_GETHOSTNAME=0;
16823 GNULIB_GETLOGIN=0;
16824 GNULIB_GETLOGIN_R=0;
16825 GNULIB_GETPAGESIZE=0;
16826 GNULIB_GETUSERSHELL=0;
16827 GNULIB_GROUP_MEMBER=0;
16828 GNULIB_ISATTY=0;
16829 GNULIB_LCHOWN=0;
16830 GNULIB_LINK=0;
16831 GNULIB_LINKAT=0;
16832 GNULIB_LSEEK=0;
16833 GNULIB_PIPE=0;
16834 GNULIB_PIPE2=0;
16835 GNULIB_PREAD=0;
16836 GNULIB_PWRITE=0;
16837 GNULIB_READ=0;
16838 GNULIB_READLINK=0;
16839 GNULIB_READLINKAT=0;
16840 GNULIB_RMDIR=0;
16841 GNULIB_SETHOSTNAME=0;
16842 GNULIB_SLEEP=0;
16843 GNULIB_SYMLINK=0;
16844 GNULIB_SYMLINKAT=0;
16845 GNULIB_TTYNAME_R=0;
16846 GNULIB_UNISTD_H_NONBLOCKING=0;
16847 GNULIB_UNISTD_H_SIGPIPE=0;
16848 GNULIB_UNLINK=0;
16849 GNULIB_UNLINKAT=0;
16850 GNULIB_USLEEP=0;
16851 GNULIB_WRITE=0;
16852 HAVE_CHOWN=1;
16853 HAVE_DUP2=1;
16854 HAVE_DUP3=1;
16855 HAVE_EUIDACCESS=1;
16856 HAVE_FACCESSAT=1;
16857 HAVE_FCHDIR=1;
16858 HAVE_FCHOWNAT=1;
16859 HAVE_FDATASYNC=1;
16860 HAVE_FSYNC=1;
16861 HAVE_FTRUNCATE=1;
16862 HAVE_GETDTABLESIZE=1;
16863 HAVE_GETGROUPS=1;
16864 HAVE_GETHOSTNAME=1;
16865 HAVE_GETLOGIN=1;
16866 HAVE_GETPAGESIZE=1;
16867 HAVE_GROUP_MEMBER=1;
16868 HAVE_LCHOWN=1;
16869 HAVE_LINK=1;
16870 HAVE_LINKAT=1;
16871 HAVE_PIPE=1;
16872 HAVE_PIPE2=1;
16873 HAVE_PREAD=1;
16874 HAVE_PWRITE=1;
16875 HAVE_READLINK=1;
16876 HAVE_READLINKAT=1;
16877 HAVE_SETHOSTNAME=1;
16878 HAVE_SLEEP=1;
16879 HAVE_SYMLINK=1;
16880 HAVE_SYMLINKAT=1;
16881 HAVE_UNLINKAT=1;
16882 HAVE_USLEEP=1;
16883 HAVE_DECL_ENVIRON=1;
16884 HAVE_DECL_FCHDIR=1;
16885 HAVE_DECL_FDATASYNC=1;
16886 HAVE_DECL_GETDOMAINNAME=1;
16887 HAVE_DECL_GETLOGIN_R=1;
16888 HAVE_DECL_GETPAGESIZE=1;
16889 HAVE_DECL_GETUSERSHELL=1;
16890 HAVE_DECL_SETHOSTNAME=1;
16891 HAVE_DECL_TTYNAME_R=1;
16892 HAVE_OS_H=0;
16893 HAVE_SYS_PARAM_H=0;
16894 REPLACE_CHOWN=0;
16895 REPLACE_CLOSE=0;
16896 REPLACE_DUP=0;
16897 REPLACE_DUP2=0;
16898 REPLACE_FCHOWNAT=0;
16899 REPLACE_FTRUNCATE=0;
16900 REPLACE_GETCWD=0;
16901 REPLACE_GETDOMAINNAME=0;
16902 REPLACE_GETLOGIN_R=0;
16903 REPLACE_GETGROUPS=0;
16904 REPLACE_GETPAGESIZE=0;
16905 REPLACE_ISATTY=0;
16906 REPLACE_LCHOWN=0;
16907 REPLACE_LINK=0;
16908 REPLACE_LINKAT=0;
16909 REPLACE_LSEEK=0;
16910 REPLACE_PREAD=0;
16911 REPLACE_PWRITE=0;
16912 REPLACE_READ=0;
16913 REPLACE_READLINK=0;
16914 REPLACE_RMDIR=0;
16915 REPLACE_SLEEP=0;
16916 REPLACE_SYMLINK=0;
16917 REPLACE_TTYNAME_R=0;
16918 REPLACE_UNLINK=0;
16919 REPLACE_UNLINKAT=0;
16920 REPLACE_USLEEP=0;
16921 REPLACE_WRITE=0;
16922 UNISTD_H_HAVE_WINSOCK2_H=0;
16923 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16927 GNULIB_OPENDIR=0;
16928 GNULIB_READDIR=0;
16929 GNULIB_REWINDDIR=0;
16930 GNULIB_CLOSEDIR=0;
16931 GNULIB_DIRFD=0;
16932 GNULIB_FDOPENDIR=0;
16933 GNULIB_SCANDIR=0;
16934 GNULIB_ALPHASORT=0;
16935 HAVE_OPENDIR=1;
16936 HAVE_READDIR=1;
16937 HAVE_REWINDDIR=1;
16938 HAVE_CLOSEDIR=1;
16939 HAVE_DECL_DIRFD=1;
16940 HAVE_DECL_FDOPENDIR=1;
16941 HAVE_FDOPENDIR=1;
16942 HAVE_SCANDIR=1;
16943 HAVE_ALPHASORT=1;
16944 REPLACE_OPENDIR=0;
16945 REPLACE_CLOSEDIR=0;
16946 REPLACE_DIRFD=0;
16947 REPLACE_FDOPENDIR=0;
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16952 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16953 if test "${gl_cv_have_include_next+set}" = set; then :
16954 $as_echo_n "(cached) " >&6
16955 else
16956 rm -rf conftestd1a conftestd1b conftestd2
16957 mkdir conftestd1a conftestd1b conftestd2
16958 cat <<EOF > conftestd1a/conftest.h
16959 #define DEFINED_IN_CONFTESTD1
16960 #include_next <conftest.h>
16961 #ifdef DEFINED_IN_CONFTESTD2
16962 int foo;
16963 #else
16964 #error "include_next doesn't work"
16965 #endif
16967 cat <<EOF > conftestd1b/conftest.h
16968 #define DEFINED_IN_CONFTESTD1
16969 #include <stdio.h>
16970 #include_next <conftest.h>
16971 #ifdef DEFINED_IN_CONFTESTD2
16972 int foo;
16973 #else
16974 #error "include_next doesn't work"
16975 #endif
16977 cat <<EOF > conftestd2/conftest.h
16978 #ifndef DEFINED_IN_CONFTESTD1
16979 #error "include_next test doesn't work"
16980 #endif
16981 #define DEFINED_IN_CONFTESTD2
16983 gl_save_CPPFLAGS="$CPPFLAGS"
16984 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16986 /* end confdefs.h. */
16987 #include <conftest.h>
16988 _ACEOF
16989 if ac_fn_c_try_compile "$LINENO"; then :
16990 gl_cv_have_include_next=yes
16991 else
16992 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16994 /* end confdefs.h. */
16995 #include <conftest.h>
16996 _ACEOF
16997 if ac_fn_c_try_compile "$LINENO"; then :
16998 gl_cv_have_include_next=buggy
16999 else
17000 gl_cv_have_include_next=no
17002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17006 CPPFLAGS="$gl_save_CPPFLAGS"
17007 rm -rf conftestd1a conftestd1b conftestd2
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17011 $as_echo "$gl_cv_have_include_next" >&6; }
17012 PRAGMA_SYSTEM_HEADER=
17013 if test $gl_cv_have_include_next = yes; then
17014 INCLUDE_NEXT=include_next
17015 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17016 if test -n "$GCC"; then
17017 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
17019 else
17020 if test $gl_cv_have_include_next = buggy; then
17021 INCLUDE_NEXT=include
17022 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17023 else
17024 INCLUDE_NEXT=include
17025 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17032 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17033 if test "${gl_cv_pragma_columns+set}" = set; then :
17034 $as_echo_n "(cached) " >&6
17035 else
17036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17037 /* end confdefs.h. */
17039 #ifdef __TANDEM
17040 choke me
17041 #endif
17043 _ACEOF
17044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17045 $EGREP "choke me" >/dev/null 2>&1; then :
17046 gl_cv_pragma_columns=yes
17047 else
17048 gl_cv_pragma_columns=no
17050 rm -f conftest*
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17055 $as_echo "$gl_cv_pragma_columns" >&6; }
17056 if test $gl_cv_pragma_columns = yes; then
17057 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
17058 else
17059 PRAGMA_COLUMNS=
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
17067 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
17068 if test "${gl_cv_func_c99_strtold+set}" = set; then :
17069 $as_echo_n "(cached) " >&6
17070 else
17071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17072 /* end confdefs.h. */
17073 /* On HP-UX before 11.23, strtold returns a struct instead of
17074 long double. Reject implementations like that, by requiring
17075 compatibility with the C99 prototype. */
17076 #include <stdlib.h>
17077 static long double (*p) (char const *, char **) = strtold;
17078 static long double
17079 test (char const *nptr, char **endptr)
17081 long double r;
17082 r = strtold (nptr, endptr);
17083 return r;
17086 main ()
17088 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
17090 return 0;
17092 _ACEOF
17093 if ac_fn_c_try_link "$LINENO"; then :
17094 gl_cv_func_c99_strtold=yes
17095 else
17096 gl_cv_func_c99_strtold=no
17098 rm -f core conftest.err conftest.$ac_objext \
17099 conftest$ac_exeext conftest.$ac_ext
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
17102 $as_echo "$gl_cv_func_c99_strtold" >&6; }
17103 if test $gl_cv_func_c99_strtold = yes; then
17105 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
17117 $as_echo_n "checking if environ is properly declared... " >&6; }
17118 if test "${gt_cv_var_environ_declaration+set}" = set; then :
17119 $as_echo_n "(cached) " >&6
17120 else
17122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17123 /* end confdefs.h. */
17124 #if HAVE_UNISTD_H
17125 #include <unistd.h>
17126 #endif
17127 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
17128 #include <stdlib.h>
17130 extern struct { int foo; } environ;
17132 main ()
17134 environ.foo = 1;
17136 return 0;
17138 _ACEOF
17139 if ac_fn_c_try_compile "$LINENO"; then :
17140 gt_cv_var_environ_declaration=no
17141 else
17142 gt_cv_var_environ_declaration=yes
17144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
17148 $as_echo "$gt_cv_var_environ_declaration" >&6; }
17149 if test $gt_cv_var_environ_declaration = yes; then
17151 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
17156 if test $gt_cv_var_environ_declaration != yes; then
17157 HAVE_DECL_ENVIRON=0
17168 GNULIB_FCNTL=0;
17169 GNULIB_NONBLOCKING=0;
17170 GNULIB_OPEN=0;
17171 GNULIB_OPENAT=0;
17172 HAVE_FCNTL=1;
17173 HAVE_OPENAT=1;
17174 REPLACE_FCNTL=0;
17175 REPLACE_OPEN=0;
17176 REPLACE_OPENAT=0;
17179 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17180 if test "x$ac_cv_type_mode_t" = x""yes; then :
17182 else
17184 cat >>confdefs.h <<_ACEOF
17185 #define mode_t int
17186 _ACEOF
17190 ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "$ac_includes_default"
17191 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then :
17192 ac_have_decl=1
17193 else
17194 ac_have_decl=0
17197 cat >>confdefs.h <<_ACEOF
17198 #define HAVE_DECL_FDATASYNC $ac_have_decl
17199 _ACEOF
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
17204 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
17205 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
17206 $as_echo_n "(cached) " >&6
17207 else
17208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17209 /* end confdefs.h. */
17211 #include <sys/types.h>
17212 #include <sys/stat.h>
17214 main ()
17216 struct stat s; s.st_dm_mode;
17218 return 0;
17220 _ACEOF
17221 if ac_fn_c_try_compile "$LINENO"; then :
17222 ac_cv_struct_st_dm_mode=yes
17223 else
17224 ac_cv_struct_st_dm_mode=no
17226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
17229 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
17231 if test $ac_cv_struct_st_dm_mode = yes; then
17233 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
17238 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
17239 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
17240 ac_have_decl=1
17241 else
17242 ac_have_decl=0
17245 cat >>confdefs.h <<_ACEOF
17246 #define HAVE_DECL_STRMODE $ac_have_decl
17247 _ACEOF
17254 GNULIB_FCHMODAT=0;
17255 GNULIB_FSTAT=0;
17256 GNULIB_FSTATAT=0;
17257 GNULIB_FUTIMENS=0;
17258 GNULIB_LCHMOD=0;
17259 GNULIB_LSTAT=0;
17260 GNULIB_MKDIRAT=0;
17261 GNULIB_MKFIFO=0;
17262 GNULIB_MKFIFOAT=0;
17263 GNULIB_MKNOD=0;
17264 GNULIB_MKNODAT=0;
17265 GNULIB_STAT=0;
17266 GNULIB_UTIMENSAT=0;
17267 HAVE_FCHMODAT=1;
17268 HAVE_FSTATAT=1;
17269 HAVE_FUTIMENS=1;
17270 HAVE_LCHMOD=1;
17271 HAVE_LSTAT=1;
17272 HAVE_MKDIRAT=1;
17273 HAVE_MKFIFO=1;
17274 HAVE_MKFIFOAT=1;
17275 HAVE_MKNOD=1;
17276 HAVE_MKNODAT=1;
17277 HAVE_UTIMENSAT=1;
17278 REPLACE_FSTAT=0;
17279 REPLACE_FSTATAT=0;
17280 REPLACE_FUTIMENS=0;
17281 REPLACE_LSTAT=0;
17282 REPLACE_MKDIR=0;
17283 REPLACE_MKFIFO=0;
17284 REPLACE_MKNOD=0;
17285 REPLACE_STAT=0;
17286 REPLACE_UTIMENSAT=0;
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
17290 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
17291 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
17292 $as_echo_n "(cached) " >&6
17293 else
17294 rm -f conftest.sym conftest.file
17295 echo >conftest.file
17296 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
17297 if test "$cross_compiling" = yes; then :
17298 case "$host_os" in
17299 # Guess yes on glibc systems.
17300 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
17301 # If we don't know, assume the worst.
17302 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
17303 esac
17305 else
17306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17307 /* end confdefs.h. */
17308 $ac_includes_default
17310 main ()
17312 struct stat sbuf;
17313 /* Linux will dereference the symlink and fail, as required by
17314 POSIX. That is better in the sense that it means we will not
17315 have to compile and use the lstat wrapper. */
17316 return lstat ("conftest.sym/", &sbuf) == 0;
17319 return 0;
17321 _ACEOF
17322 if ac_fn_c_try_run "$LINENO"; then :
17323 gl_cv_func_lstat_dereferences_slashed_symlink=yes
17324 else
17325 gl_cv_func_lstat_dereferences_slashed_symlink=no
17327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17328 conftest.$ac_objext conftest.beam conftest.$ac_ext
17331 else
17332 # If the 'ln -s' command failed, then we probably don't even
17333 # have an lstat function.
17334 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
17336 rm -f conftest.sym conftest.file
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
17340 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
17341 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
17342 *yes)
17344 cat >>confdefs.h <<_ACEOF
17345 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
17346 _ACEOF
17349 esac
17356 GNULIB__EXIT=0;
17357 GNULIB_ATOLL=0;
17358 GNULIB_CALLOC_POSIX=0;
17359 GNULIB_CANONICALIZE_FILE_NAME=0;
17360 GNULIB_GETLOADAVG=0;
17361 GNULIB_GETSUBOPT=0;
17362 GNULIB_GRANTPT=0;
17363 GNULIB_MALLOC_POSIX=0;
17364 GNULIB_MBTOWC=0;
17365 GNULIB_MKDTEMP=0;
17366 GNULIB_MKOSTEMP=0;
17367 GNULIB_MKOSTEMPS=0;
17368 GNULIB_MKSTEMP=0;
17369 GNULIB_MKSTEMPS=0;
17370 GNULIB_POSIX_OPENPT=0;
17371 GNULIB_PTSNAME=0;
17372 GNULIB_PTSNAME_R=0;
17373 GNULIB_PUTENV=0;
17374 GNULIB_RANDOM=0;
17375 GNULIB_RANDOM_R=0;
17376 GNULIB_REALLOC_POSIX=0;
17377 GNULIB_REALPATH=0;
17378 GNULIB_RPMATCH=0;
17379 GNULIB_SECURE_GETENV=0;
17380 GNULIB_SETENV=0;
17381 GNULIB_STRTOD=0;
17382 GNULIB_STRTOLL=0;
17383 GNULIB_STRTOULL=0;
17384 GNULIB_SYSTEM_POSIX=0;
17385 GNULIB_UNLOCKPT=0;
17386 GNULIB_UNSETENV=0;
17387 GNULIB_WCTOMB=0;
17388 HAVE__EXIT=1;
17389 HAVE_ATOLL=1;
17390 HAVE_CANONICALIZE_FILE_NAME=1;
17391 HAVE_DECL_GETLOADAVG=1;
17392 HAVE_GETSUBOPT=1;
17393 HAVE_GRANTPT=1;
17394 HAVE_MKDTEMP=1;
17395 HAVE_MKOSTEMP=1;
17396 HAVE_MKOSTEMPS=1;
17397 HAVE_MKSTEMP=1;
17398 HAVE_MKSTEMPS=1;
17399 HAVE_POSIX_OPENPT=1;
17400 HAVE_PTSNAME=1;
17401 HAVE_PTSNAME_R=1;
17402 HAVE_RANDOM=1;
17403 HAVE_RANDOM_H=1;
17404 HAVE_RANDOM_R=1;
17405 HAVE_REALPATH=1;
17406 HAVE_RPMATCH=1;
17407 HAVE_SECURE_GETENV=1;
17408 HAVE_SETENV=1;
17409 HAVE_DECL_SETENV=1;
17410 HAVE_STRTOD=1;
17411 HAVE_STRTOLL=1;
17412 HAVE_STRTOULL=1;
17413 HAVE_STRUCT_RANDOM_DATA=1;
17414 HAVE_SYS_LOADAVG_H=0;
17415 HAVE_UNLOCKPT=1;
17416 HAVE_DECL_UNSETENV=1;
17417 REPLACE_CALLOC=0;
17418 REPLACE_CANONICALIZE_FILE_NAME=0;
17419 REPLACE_MALLOC=0;
17420 REPLACE_MBTOWC=0;
17421 REPLACE_MKSTEMP=0;
17422 REPLACE_PTSNAME=0;
17423 REPLACE_PTSNAME_R=0;
17424 REPLACE_PUTENV=0;
17425 REPLACE_RANDOM_R=0;
17426 REPLACE_REALLOC=0;
17427 REPLACE_REALPATH=0;
17428 REPLACE_SETENV=0;
17429 REPLACE_STRTOD=0;
17430 REPLACE_UNSETENV=0;
17431 REPLACE_WCTOMB=0;
17448 if test $gl_cv_have_include_next = yes; then
17449 gl_cv_next_getopt_h='<'getopt.h'>'
17450 else
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17452 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17453 if test "${gl_cv_next_getopt_h+set}" = set; then :
17454 $as_echo_n "(cached) " >&6
17455 else
17457 if test $ac_cv_header_getopt_h = yes; then
17460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17461 /* end confdefs.h. */
17462 #include <getopt.h>
17464 _ACEOF
17465 case "$host_os" in
17466 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17467 *) gl_absname_cpp="$ac_cpp" ;;
17468 esac
17470 case "$host_os" in
17471 mingw*)
17472 gl_dirsep_regex='[/\\]'
17475 gl_dirsep_regex='\/'
17477 esac
17478 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17480 gl_header_literal_regex=`echo 'getopt.h' \
17481 | sed -e "$gl_make_literal_regex_sed"`
17482 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17483 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17484 s|^/[^/]|//&|
17488 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17489 sed -n "$gl_absolute_header_sed"`'"'
17490 else
17491 gl_cv_next_getopt_h='<'getopt.h'>'
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17497 $as_echo "$gl_cv_next_getopt_h" >&6; }
17499 NEXT_GETOPT_H=$gl_cv_next_getopt_h
17501 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17502 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17503 gl_next_as_first_directive='<'getopt.h'>'
17504 else
17505 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17506 gl_next_as_first_directive=$gl_cv_next_getopt_h
17508 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
17513 if test $ac_cv_header_getopt_h = yes; then
17514 HAVE_GETOPT_H=1
17515 else
17516 HAVE_GETOPT_H=0
17520 gl_replace_getopt=
17522 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17523 for ac_header in getopt.h
17524 do :
17525 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17526 if test "x$ac_cv_header_getopt_h" = x""yes; then :
17527 cat >>confdefs.h <<_ACEOF
17528 #define HAVE_GETOPT_H 1
17529 _ACEOF
17531 else
17532 gl_replace_getopt=yes
17535 done
17539 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17540 for ac_func in getopt_long_only
17541 do :
17542 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17543 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
17544 cat >>confdefs.h <<_ACEOF
17545 #define HAVE_GETOPT_LONG_ONLY 1
17546 _ACEOF
17548 else
17549 gl_replace_getopt=yes
17551 done
17555 if test -z "$gl_replace_getopt"; then
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17557 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17558 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17559 $as_echo_n "(cached) " >&6
17560 else
17562 if test $cross_compiling = no; then
17563 if test "$cross_compiling" = yes; then :
17564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17566 as_fn_error "cannot run test program while cross compiling
17567 See \`config.log' for more details." "$LINENO" 5; }
17568 else
17569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17570 /* end confdefs.h. */
17572 #include <unistd.h>
17573 #include <stdlib.h>
17574 #include <string.h>
17577 main ()
17579 static char program[] = "program";
17580 static char a[] = "-a";
17581 static char foo[] = "foo";
17582 static char bar[] = "bar";
17583 char *argv[] = { program, a, foo, bar, NULL };
17584 int c;
17586 c = getopt (4, argv, "ab");
17587 if (!(c == 'a'))
17588 return 1;
17589 c = getopt (4, argv, "ab");
17590 if (!(c == -1))
17591 return 2;
17592 if (!(optind == 2))
17593 return 3;
17594 return 0;
17597 _ACEOF
17598 if ac_fn_c_try_run "$LINENO"; then :
17599 gl_cv_func_getopt_posix=maybe
17600 else
17601 gl_cv_func_getopt_posix=no
17603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17604 conftest.$ac_objext conftest.beam conftest.$ac_ext
17607 if test $gl_cv_func_getopt_posix = maybe; then
17608 if test "$cross_compiling" = yes; then :
17609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17611 as_fn_error "cannot run test program while cross compiling
17612 See \`config.log' for more details." "$LINENO" 5; }
17613 else
17614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17615 /* end confdefs.h. */
17617 #include <unistd.h>
17618 #include <stdlib.h>
17619 #include <string.h>
17622 main ()
17624 static char program[] = "program";
17625 static char donald[] = "donald";
17626 static char p[] = "-p";
17627 static char billy[] = "billy";
17628 static char duck[] = "duck";
17629 static char a[] = "-a";
17630 static char bar[] = "bar";
17631 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17632 int c;
17634 c = getopt (7, argv, "+abp:q:");
17635 if (!(c == -1))
17636 return 4;
17637 if (!(strcmp (argv[0], "program") == 0))
17638 return 5;
17639 if (!(strcmp (argv[1], "donald") == 0))
17640 return 6;
17641 if (!(strcmp (argv[2], "-p") == 0))
17642 return 7;
17643 if (!(strcmp (argv[3], "billy") == 0))
17644 return 8;
17645 if (!(strcmp (argv[4], "duck") == 0))
17646 return 9;
17647 if (!(strcmp (argv[5], "-a") == 0))
17648 return 10;
17649 if (!(strcmp (argv[6], "bar") == 0))
17650 return 11;
17651 if (!(optind == 1))
17652 return 12;
17653 return 0;
17656 _ACEOF
17657 if ac_fn_c_try_run "$LINENO"; then :
17658 gl_cv_func_getopt_posix=maybe
17659 else
17660 gl_cv_func_getopt_posix=no
17662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17663 conftest.$ac_objext conftest.beam conftest.$ac_ext
17667 if test $gl_cv_func_getopt_posix = maybe; then
17668 if test "$cross_compiling" = yes; then :
17669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17671 as_fn_error "cannot run test program while cross compiling
17672 See \`config.log' for more details." "$LINENO" 5; }
17673 else
17674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17675 /* end confdefs.h. */
17677 #include <unistd.h>
17678 #include <stdlib.h>
17679 #include <string.h>
17682 main ()
17684 static char program[] = "program";
17685 static char ab[] = "-ab";
17686 char *argv[3] = { program, ab, NULL };
17687 if (getopt (2, argv, "ab:") != 'a')
17688 return 13;
17689 if (getopt (2, argv, "ab:") != '?')
17690 return 14;
17691 if (optopt != 'b')
17692 return 15;
17693 if (optind != 2)
17694 return 16;
17695 return 0;
17698 _ACEOF
17699 if ac_fn_c_try_run "$LINENO"; then :
17700 gl_cv_func_getopt_posix=yes
17701 else
17702 gl_cv_func_getopt_posix=no
17704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17705 conftest.$ac_objext conftest.beam conftest.$ac_ext
17709 else
17710 case "$host_os" in
17711 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
17712 *) gl_cv_func_getopt_posix="guessing yes";;
17713 esac
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17718 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17719 case "$gl_cv_func_getopt_posix" in
17720 *no) gl_replace_getopt=yes ;;
17721 esac
17724 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17726 $as_echo_n "checking for working GNU getopt function... " >&6; }
17727 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17728 $as_echo_n "(cached) " >&6
17729 else
17730 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17731 # optstring is necessary for programs like m4 that have POSIX-mandated
17732 # semantics for supporting options interspersed with files.
17733 # Also, since getopt_long is a GNU extension, we require optind=0.
17734 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17735 # so take care to revert to the correct (non-)export state.
17736 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17737 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17738 xx) gl_had_POSIXLY_CORRECT=exported ;;
17739 x) gl_had_POSIXLY_CORRECT=yes ;;
17740 *) gl_had_POSIXLY_CORRECT= ;;
17741 esac
17742 POSIXLY_CORRECT=1
17743 export POSIXLY_CORRECT
17744 if test "$cross_compiling" = yes; then :
17745 gl_cv_func_getopt_gnu="guessing no"
17747 else
17748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17749 /* end confdefs.h. */
17750 #include <getopt.h>
17751 #include <stddef.h>
17752 #include <string.h>
17754 #include <stdlib.h>
17755 #if defined __MACH__ && defined __APPLE__
17756 /* Avoid a crash on Mac OS X. */
17757 #include <mach/mach.h>
17758 #include <mach/mach_error.h>
17759 #include <mach/thread_status.h>
17760 #include <mach/exception.h>
17761 #include <mach/task.h>
17762 #include <pthread.h>
17763 /* The exception port on which our thread listens. */
17764 static mach_port_t our_exception_port;
17765 /* The main function of the thread listening for exceptions of type
17766 EXC_BAD_ACCESS. */
17767 static void *
17768 mach_exception_thread (void *arg)
17770 /* Buffer for a message to be received. */
17771 struct {
17772 mach_msg_header_t head;
17773 mach_msg_body_t msgh_body;
17774 char data[1024];
17775 } msg;
17776 mach_msg_return_t retval;
17777 /* Wait for a message on the exception port. */
17778 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17779 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17780 if (retval != MACH_MSG_SUCCESS)
17781 abort ();
17782 exit (1);
17784 static void
17785 nocrash_init (void)
17787 mach_port_t self = mach_task_self ();
17788 /* Allocate a port on which the thread shall listen for exceptions. */
17789 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17790 == KERN_SUCCESS) {
17791 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17792 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17793 MACH_MSG_TYPE_MAKE_SEND)
17794 == KERN_SUCCESS) {
17795 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17796 for us. */
17797 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17798 /* Create the thread listening on the exception port. */
17799 pthread_attr_t attr;
17800 pthread_t thread;
17801 if (pthread_attr_init (&attr) == 0
17802 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17803 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17804 pthread_attr_destroy (&attr);
17805 /* Replace the exception port info for these exceptions with our own.
17806 Note that we replace the exception port for the entire task, not only
17807 for a particular thread. This has the effect that when our exception
17808 port gets the message, the thread specific exception port has already
17809 been asked, and we don't need to bother about it.
17810 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17811 task_set_exception_ports (self, mask, our_exception_port,
17812 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17817 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17818 /* Avoid a crash on native Windows. */
17819 #define WIN32_LEAN_AND_MEAN
17820 #include <windows.h>
17821 #include <winerror.h>
17822 static LONG WINAPI
17823 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17825 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17827 case EXCEPTION_ACCESS_VIOLATION:
17828 case EXCEPTION_IN_PAGE_ERROR:
17829 case EXCEPTION_STACK_OVERFLOW:
17830 case EXCEPTION_GUARD_PAGE:
17831 case EXCEPTION_PRIV_INSTRUCTION:
17832 case EXCEPTION_ILLEGAL_INSTRUCTION:
17833 case EXCEPTION_DATATYPE_MISALIGNMENT:
17834 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17835 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17836 exit (1);
17838 return EXCEPTION_CONTINUE_SEARCH;
17840 static void
17841 nocrash_init (void)
17843 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17845 #else
17846 /* Avoid a crash on POSIX systems. */
17847 #include <signal.h>
17848 /* A POSIX signal handler. */
17849 static void
17850 exception_handler (int sig)
17852 exit (1);
17854 static void
17855 nocrash_init (void)
17857 #ifdef SIGSEGV
17858 signal (SIGSEGV, exception_handler);
17859 #endif
17860 #ifdef SIGBUS
17861 signal (SIGBUS, exception_handler);
17862 #endif
17864 #endif
17868 main ()
17871 int result = 0;
17873 nocrash_init();
17875 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17876 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17877 OSF/1 5.1, Solaris 10. */
17879 static char conftest[] = "conftest";
17880 static char plus[] = "-+";
17881 char *argv[3] = { conftest, plus, NULL };
17882 opterr = 0;
17883 if (getopt (2, argv, "+a") != '?')
17884 result |= 1;
17886 /* This code succeeds on glibc 2.8, mingw,
17887 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17888 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17890 static char program[] = "program";
17891 static char p[] = "-p";
17892 static char foo[] = "foo";
17893 static char bar[] = "bar";
17894 char *argv[] = { program, p, foo, bar, NULL };
17896 optind = 1;
17897 if (getopt (4, argv, "p::") != 'p')
17898 result |= 2;
17899 else if (optarg != NULL)
17900 result |= 4;
17901 else if (getopt (4, argv, "p::") != -1)
17902 result |= 6;
17903 else if (optind != 2)
17904 result |= 8;
17906 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17908 static char program[] = "program";
17909 static char foo[] = "foo";
17910 static char p[] = "-p";
17911 char *argv[] = { program, foo, p, NULL };
17912 optind = 0;
17913 if (getopt (3, argv, "-p") != 1)
17914 result |= 16;
17915 else if (getopt (3, argv, "-p") != 'p')
17916 result |= 16;
17918 /* This code fails on glibc 2.11. */
17920 static char program[] = "program";
17921 static char b[] = "-b";
17922 static char a[] = "-a";
17923 char *argv[] = { program, b, a, NULL };
17924 optind = opterr = 0;
17925 if (getopt (3, argv, "+:a:b") != 'b')
17926 result |= 32;
17927 else if (getopt (3, argv, "+:a:b") != ':')
17928 result |= 32;
17930 /* This code dumps core on glibc 2.14. */
17932 static char program[] = "program";
17933 static char w[] = "-W";
17934 static char dummy[] = "dummy";
17935 char *argv[] = { program, w, dummy, NULL };
17936 optind = opterr = 1;
17937 if (getopt (3, argv, "W;") != 'W')
17938 result |= 64;
17940 return result;
17943 return 0;
17945 _ACEOF
17946 if ac_fn_c_try_run "$LINENO"; then :
17947 gl_cv_func_getopt_gnu=yes
17948 else
17949 gl_cv_func_getopt_gnu=no
17951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17952 conftest.$ac_objext conftest.beam conftest.$ac_ext
17955 case $gl_had_POSIXLY_CORRECT in
17956 exported) ;;
17957 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
17958 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
17959 esac
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17963 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17964 if test "$gl_cv_func_getopt_gnu" != yes; then
17965 gl_replace_getopt=yes
17966 else
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
17968 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
17969 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
17970 $as_echo_n "(cached) " >&6
17971 else
17972 if test "$cross_compiling" = yes; then :
17973 case "$host_os" in
17974 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
17975 *) gl_cv_func_getopt_long_gnu="guessing yes";;
17976 esac
17978 else
17979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17980 /* end confdefs.h. */
17981 #include <getopt.h>
17982 #include <stddef.h>
17983 #include <string.h>
17986 main ()
17988 static const struct option long_options[] =
17990 { "xtremely-",no_argument, NULL, 1003 },
17991 { "xtra", no_argument, NULL, 1001 },
17992 { "xtreme", no_argument, NULL, 1002 },
17993 { "xtremely", no_argument, NULL, 1003 },
17994 { NULL, 0, NULL, 0 }
17996 /* This code fails on OpenBSD 5.0. */
17998 static char program[] = "program";
17999 static char xtremel[] = "--xtremel";
18000 char *argv[] = { program, xtremel, NULL };
18001 int option_index;
18002 optind = 1; opterr = 0;
18003 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
18004 return 1;
18006 return 0;
18009 return 0;
18011 _ACEOF
18012 if ac_fn_c_try_run "$LINENO"; then :
18013 gl_cv_func_getopt_long_gnu=yes
18014 else
18015 gl_cv_func_getopt_long_gnu=no
18017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18018 conftest.$ac_objext conftest.beam conftest.$ac_ext
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
18024 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
18025 case "$gl_cv_func_getopt_long_gnu" in
18026 *yes) ;;
18027 *) gl_replace_getopt=yes ;;
18028 esac
18037 REPLACE_GETOPT=0
18038 if test -n "$gl_replace_getopt"; then
18039 REPLACE_GETOPT=1
18042 if test $REPLACE_GETOPT = 1; then
18044 GETOPT_H=getopt.h
18046 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
18052 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
18053 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
18054 ac_have_decl=1
18055 else
18056 ac_have_decl=0
18059 cat >>confdefs.h <<_ACEOF
18060 #define HAVE_DECL_GETENV $ac_have_decl
18061 _ACEOF
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18069 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18070 if test "${ac_cv_c_restrict+set}" = set; then :
18071 $as_echo_n "(cached) " >&6
18072 else
18073 ac_cv_c_restrict=no
18074 # The order here caters to the fact that C++ does not require restrict.
18075 for ac_kw in __restrict __restrict__ _Restrict restrict; do
18076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18077 /* end confdefs.h. */
18078 typedef int * int_ptr;
18079 int foo (int_ptr $ac_kw ip) {
18080 return ip[0];
18083 main ()
18085 int s[1];
18086 int * $ac_kw t = s;
18087 t[0] = 0;
18088 return foo(t)
18090 return 0;
18092 _ACEOF
18093 if ac_fn_c_try_compile "$LINENO"; then :
18094 ac_cv_c_restrict=$ac_kw
18096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18097 test "$ac_cv_c_restrict" != no && break
18098 done
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18102 $as_echo "$ac_cv_c_restrict" >&6; }
18104 case $ac_cv_c_restrict in
18105 restrict) ;;
18106 no) $as_echo "#define restrict /**/" >>confdefs.h
18108 *) cat >>confdefs.h <<_ACEOF
18109 #define restrict $ac_cv_c_restrict
18110 _ACEOF
18112 esac
18115 GNULIB_GETTIMEOFDAY=0;
18116 HAVE_GETTIMEOFDAY=1;
18117 HAVE_STRUCT_TIMEVAL=1;
18118 HAVE_SYS_TIME_H=1;
18119 REPLACE_GETTIMEOFDAY=0;
18120 REPLACE_STRUCT_TIMEVAL=0;
18137 if test $gl_cv_have_include_next = yes; then
18138 gl_cv_next_sys_time_h='<'sys/time.h'>'
18139 else
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
18141 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
18142 if test "${gl_cv_next_sys_time_h+set}" = set; then :
18143 $as_echo_n "(cached) " >&6
18144 else
18146 if test $ac_cv_header_sys_time_h = yes; then
18149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18150 /* end confdefs.h. */
18151 #include <sys/time.h>
18153 _ACEOF
18154 case "$host_os" in
18155 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18156 *) gl_absname_cpp="$ac_cpp" ;;
18157 esac
18159 case "$host_os" in
18160 mingw*)
18161 gl_dirsep_regex='[/\\]'
18164 gl_dirsep_regex='\/'
18166 esac
18167 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18169 gl_header_literal_regex=`echo 'sys/time.h' \
18170 | sed -e "$gl_make_literal_regex_sed"`
18171 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18172 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18173 s|^/[^/]|//&|
18177 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18178 sed -n "$gl_absolute_header_sed"`'"'
18179 else
18180 gl_cv_next_sys_time_h='<'sys/time.h'>'
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
18186 $as_echo "$gl_cv_next_sys_time_h" >&6; }
18188 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
18190 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18191 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18192 gl_next_as_first_directive='<'sys/time.h'>'
18193 else
18194 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18195 gl_next_as_first_directive=$gl_cv_next_sys_time_h
18197 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
18203 if test $ac_cv_header_sys_time_h != yes; then
18204 HAVE_SYS_TIME_H=0
18211 if test $ac_cv_header_sys_socket_h != yes; then
18212 for ac_header in winsock2.h
18213 do :
18214 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18215 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
18216 cat >>confdefs.h <<_ACEOF
18217 #define HAVE_WINSOCK2_H 1
18218 _ACEOF
18222 done
18225 if test "$ac_cv_header_winsock2_h" = yes; then
18226 HAVE_WINSOCK2_H=1
18227 UNISTD_H_HAVE_WINSOCK2_H=1
18228 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
18229 else
18230 HAVE_WINSOCK2_H=0
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
18235 $as_echo_n "checking for struct timeval... " >&6; }
18236 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
18237 $as_echo_n "(cached) " >&6
18238 else
18239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18240 /* end confdefs.h. */
18241 #if HAVE_SYS_TIME_H
18242 #include <sys/time.h>
18243 #endif
18244 #include <time.h>
18245 #if HAVE_WINSOCK2_H
18246 # include <winsock2.h>
18247 #endif
18250 main ()
18252 static struct timeval x; x.tv_sec = x.tv_usec;
18254 return 0;
18256 _ACEOF
18257 if ac_fn_c_try_compile "$LINENO"; then :
18258 gl_cv_sys_struct_timeval=yes
18259 else
18260 gl_cv_sys_struct_timeval=no
18262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
18266 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
18267 if test $gl_cv_sys_struct_timeval != yes; then
18268 HAVE_STRUCT_TIMEVAL=0
18269 else
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
18271 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
18272 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
18273 $as_echo_n "(cached) " >&6
18274 else
18275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18276 /* end confdefs.h. */
18277 #if HAVE_SYS_TIME_H
18278 #include <sys/time.h>
18279 #endif
18280 #include <time.h>
18281 #if HAVE_WINSOCK2_H
18282 # include <winsock2.h>
18283 #endif
18286 main ()
18288 static struct timeval x;
18289 typedef int verify_tv_sec_type[
18290 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
18294 return 0;
18296 _ACEOF
18297 if ac_fn_c_try_compile "$LINENO"; then :
18298 gl_cv_sys_struct_timeval_tv_sec=yes
18299 else
18300 gl_cv_sys_struct_timeval_tv_sec=no
18302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
18306 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
18307 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
18308 REPLACE_STRUCT_TIMEVAL=1
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
18319 $as_echo_n "checking for unsigned long long int... " >&6; }
18320 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
18321 $as_echo_n "(cached) " >&6
18322 else
18323 ac_cv_type_unsigned_long_long_int=yes
18324 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18326 /* end confdefs.h. */
18328 /* For now, do not test the preprocessor; as of 2007 there are too many
18329 implementations with broken preprocessors. Perhaps this can
18330 be revisited in 2012. In the meantime, code should not expect
18331 #if to work with literals wider than 32 bits. */
18332 /* Test literals. */
18333 long long int ll = 9223372036854775807ll;
18334 long long int nll = -9223372036854775807LL;
18335 unsigned long long int ull = 18446744073709551615ULL;
18336 /* Test constant expressions. */
18337 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18338 ? 1 : -1)];
18339 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18340 ? 1 : -1)];
18341 int i = 63;
18343 main ()
18345 /* Test availability of runtime routines for shift and division. */
18346 long long int llmax = 9223372036854775807ll;
18347 unsigned long long int ullmax = 18446744073709551615ull;
18348 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18349 | (llmax / ll) | (llmax % ll)
18350 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18351 | (ullmax / ull) | (ullmax % ull));
18353 return 0;
18356 _ACEOF
18357 if ac_fn_c_try_link "$LINENO"; then :
18359 else
18360 ac_cv_type_unsigned_long_long_int=no
18362 rm -f core conftest.err conftest.$ac_objext \
18363 conftest$ac_exeext conftest.$ac_ext
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18367 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18368 if test $ac_cv_type_unsigned_long_long_int = yes; then
18370 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18377 $as_echo_n "checking for long long int... " >&6; }
18378 if test "${ac_cv_type_long_long_int+set}" = set; then :
18379 $as_echo_n "(cached) " >&6
18380 else
18381 ac_cv_type_long_long_int=yes
18382 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18383 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
18384 if test $ac_cv_type_long_long_int = yes; then
18385 if test "$cross_compiling" = yes; then :
18387 else
18388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18389 /* end confdefs.h. */
18390 #include <limits.h>
18391 #ifndef LLONG_MAX
18392 # define HALF \
18393 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18394 # define LLONG_MAX (HALF - 1 + HALF)
18395 #endif
18397 main ()
18399 long long int n = 1;
18400 int i;
18401 for (i = 0; ; i++)
18403 long long int m = n << i;
18404 if (m >> i != n)
18405 return 1;
18406 if (LLONG_MAX / 2 < m)
18407 break;
18409 return 0;
18411 return 0;
18413 _ACEOF
18414 if ac_fn_c_try_run "$LINENO"; then :
18416 else
18417 ac_cv_type_long_long_int=no
18419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18420 conftest.$ac_objext conftest.beam conftest.$ac_ext
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18427 $as_echo "$ac_cv_type_long_long_int" >&6; }
18428 if test $ac_cv_type_long_long_int = yes; then
18430 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18439 gl_cv_c_multiarch=no
18440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18441 /* end confdefs.h. */
18442 #ifndef __APPLE_CC__
18443 not a universal capable compiler
18444 #endif
18445 typedef int dummy;
18447 _ACEOF
18448 if ac_fn_c_try_compile "$LINENO"; then :
18450 arch=
18451 prev=
18452 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18453 if test -n "$prev"; then
18454 case $word in
18455 i?86 | x86_64 | ppc | ppc64)
18456 if test -z "$arch" || test "$arch" = "$word"; then
18457 arch="$word"
18458 else
18459 gl_cv_c_multiarch=yes
18462 esac
18463 prev=
18464 else
18465 if test "x$word" = "x-arch"; then
18466 prev=arch
18469 done
18472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18473 if test $gl_cv_c_multiarch = yes; then
18474 APPLE_UNIVERSAL_BUILD=1
18475 else
18476 APPLE_UNIVERSAL_BUILD=0
18483 if test $ac_cv_type_long_long_int = yes; then
18484 HAVE_LONG_LONG_INT=1
18485 else
18486 HAVE_LONG_LONG_INT=0
18490 if test $ac_cv_type_unsigned_long_long_int = yes; then
18491 HAVE_UNSIGNED_LONG_LONG_INT=1
18492 else
18493 HAVE_UNSIGNED_LONG_LONG_INT=0
18498 if test $ac_cv_header_wchar_h = yes; then
18499 HAVE_WCHAR_H=1
18500 else
18501 HAVE_WCHAR_H=0
18505 if test $ac_cv_header_inttypes_h = yes; then
18506 HAVE_INTTYPES_H=1
18507 else
18508 HAVE_INTTYPES_H=0
18512 if test $ac_cv_header_sys_types_h = yes; then
18513 HAVE_SYS_TYPES_H=1
18514 else
18515 HAVE_SYS_TYPES_H=0
18528 if test $gl_cv_have_include_next = yes; then
18529 gl_cv_next_stdint_h='<'stdint.h'>'
18530 else
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18532 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18533 if test "${gl_cv_next_stdint_h+set}" = set; then :
18534 $as_echo_n "(cached) " >&6
18535 else
18537 if test $ac_cv_header_stdint_h = yes; then
18540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18541 /* end confdefs.h. */
18542 #include <stdint.h>
18544 _ACEOF
18545 case "$host_os" in
18546 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18547 *) gl_absname_cpp="$ac_cpp" ;;
18548 esac
18550 case "$host_os" in
18551 mingw*)
18552 gl_dirsep_regex='[/\\]'
18555 gl_dirsep_regex='\/'
18557 esac
18558 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18560 gl_header_literal_regex=`echo 'stdint.h' \
18561 | sed -e "$gl_make_literal_regex_sed"`
18562 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18563 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18564 s|^/[^/]|//&|
18568 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18569 sed -n "$gl_absolute_header_sed"`'"'
18570 else
18571 gl_cv_next_stdint_h='<'stdint.h'>'
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18577 $as_echo "$gl_cv_next_stdint_h" >&6; }
18579 NEXT_STDINT_H=$gl_cv_next_stdint_h
18581 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18582 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18583 gl_next_as_first_directive='<'stdint.h'>'
18584 else
18585 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18586 gl_next_as_first_directive=$gl_cv_next_stdint_h
18588 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18593 if test $ac_cv_header_stdint_h = yes; then
18594 HAVE_STDINT_H=1
18595 else
18596 HAVE_STDINT_H=0
18600 if test $ac_cv_header_stdint_h = yes; then
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18602 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18603 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18604 $as_echo_n "(cached) " >&6
18605 else
18606 gl_cv_header_working_stdint_h=no
18607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18608 /* end confdefs.h. */
18611 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18612 #include <stdint.h>
18613 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18614 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18615 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18616 #endif
18619 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18620 included before <wchar.h>. */
18621 #include <stddef.h>
18622 #include <signal.h>
18623 #if HAVE_WCHAR_H
18624 # include <stdio.h>
18625 # include <time.h>
18626 # include <wchar.h>
18627 #endif
18630 #ifdef INT8_MAX
18631 int8_t a1 = INT8_MAX;
18632 int8_t a1min = INT8_MIN;
18633 #endif
18634 #ifdef INT16_MAX
18635 int16_t a2 = INT16_MAX;
18636 int16_t a2min = INT16_MIN;
18637 #endif
18638 #ifdef INT32_MAX
18639 int32_t a3 = INT32_MAX;
18640 int32_t a3min = INT32_MIN;
18641 #endif
18642 #ifdef INT64_MAX
18643 int64_t a4 = INT64_MAX;
18644 int64_t a4min = INT64_MIN;
18645 #endif
18646 #ifdef UINT8_MAX
18647 uint8_t b1 = UINT8_MAX;
18648 #else
18649 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18650 #endif
18651 #ifdef UINT16_MAX
18652 uint16_t b2 = UINT16_MAX;
18653 #endif
18654 #ifdef UINT32_MAX
18655 uint32_t b3 = UINT32_MAX;
18656 #endif
18657 #ifdef UINT64_MAX
18658 uint64_t b4 = UINT64_MAX;
18659 #endif
18660 int_least8_t c1 = INT8_C (0x7f);
18661 int_least8_t c1max = INT_LEAST8_MAX;
18662 int_least8_t c1min = INT_LEAST8_MIN;
18663 int_least16_t c2 = INT16_C (0x7fff);
18664 int_least16_t c2max = INT_LEAST16_MAX;
18665 int_least16_t c2min = INT_LEAST16_MIN;
18666 int_least32_t c3 = INT32_C (0x7fffffff);
18667 int_least32_t c3max = INT_LEAST32_MAX;
18668 int_least32_t c3min = INT_LEAST32_MIN;
18669 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18670 int_least64_t c4max = INT_LEAST64_MAX;
18671 int_least64_t c4min = INT_LEAST64_MIN;
18672 uint_least8_t d1 = UINT8_C (0xff);
18673 uint_least8_t d1max = UINT_LEAST8_MAX;
18674 uint_least16_t d2 = UINT16_C (0xffff);
18675 uint_least16_t d2max = UINT_LEAST16_MAX;
18676 uint_least32_t d3 = UINT32_C (0xffffffff);
18677 uint_least32_t d3max = UINT_LEAST32_MAX;
18678 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18679 uint_least64_t d4max = UINT_LEAST64_MAX;
18680 int_fast8_t e1 = INT_FAST8_MAX;
18681 int_fast8_t e1min = INT_FAST8_MIN;
18682 int_fast16_t e2 = INT_FAST16_MAX;
18683 int_fast16_t e2min = INT_FAST16_MIN;
18684 int_fast32_t e3 = INT_FAST32_MAX;
18685 int_fast32_t e3min = INT_FAST32_MIN;
18686 int_fast64_t e4 = INT_FAST64_MAX;
18687 int_fast64_t e4min = INT_FAST64_MIN;
18688 uint_fast8_t f1 = UINT_FAST8_MAX;
18689 uint_fast16_t f2 = UINT_FAST16_MAX;
18690 uint_fast32_t f3 = UINT_FAST32_MAX;
18691 uint_fast64_t f4 = UINT_FAST64_MAX;
18692 #ifdef INTPTR_MAX
18693 intptr_t g = INTPTR_MAX;
18694 intptr_t gmin = INTPTR_MIN;
18695 #endif
18696 #ifdef UINTPTR_MAX
18697 uintptr_t h = UINTPTR_MAX;
18698 #endif
18699 intmax_t i = INTMAX_MAX;
18700 uintmax_t j = UINTMAX_MAX;
18702 #include <limits.h> /* for CHAR_BIT */
18703 #define TYPE_MINIMUM(t) \
18704 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18705 #define TYPE_MAXIMUM(t) \
18706 ((t) ((t) 0 < (t) -1 \
18707 ? (t) -1 \
18708 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18709 struct s {
18710 int check_PTRDIFF:
18711 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18712 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18713 ? 1 : -1;
18714 /* Detect bug in FreeBSD 6.0 / ia64. */
18715 int check_SIG_ATOMIC:
18716 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18717 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18718 ? 1 : -1;
18719 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18720 int check_WCHAR:
18721 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18722 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18723 ? 1 : -1;
18724 /* Detect bug in mingw. */
18725 int check_WINT:
18726 WINT_MIN == TYPE_MINIMUM (wint_t)
18727 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18728 ? 1 : -1;
18730 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18731 int check_UINT8_C:
18732 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18733 int check_UINT16_C:
18734 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18736 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18737 #ifdef UINT8_MAX
18738 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18739 #endif
18740 #ifdef UINT16_MAX
18741 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18742 #endif
18743 #ifdef UINT32_MAX
18744 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18745 #endif
18746 #ifdef UINT64_MAX
18747 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18748 #endif
18749 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18750 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18751 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18752 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18753 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18754 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18755 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18756 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18757 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18758 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18759 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18763 main ()
18767 return 0;
18769 _ACEOF
18770 if ac_fn_c_try_compile "$LINENO"; then :
18771 if test "$cross_compiling" = yes; then :
18772 gl_cv_header_working_stdint_h=yes
18774 else
18775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18776 /* end confdefs.h. */
18779 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18780 #include <stdint.h>
18783 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18784 included before <wchar.h>. */
18785 #include <stddef.h>
18786 #include <signal.h>
18787 #if HAVE_WCHAR_H
18788 # include <stdio.h>
18789 # include <time.h>
18790 # include <wchar.h>
18791 #endif
18794 #include <stdio.h>
18795 #include <string.h>
18796 #define MVAL(macro) MVAL1(macro)
18797 #define MVAL1(expression) #expression
18798 static const char *macro_values[] =
18800 #ifdef INT8_MAX
18801 MVAL (INT8_MAX),
18802 #endif
18803 #ifdef INT16_MAX
18804 MVAL (INT16_MAX),
18805 #endif
18806 #ifdef INT32_MAX
18807 MVAL (INT32_MAX),
18808 #endif
18809 #ifdef INT64_MAX
18810 MVAL (INT64_MAX),
18811 #endif
18812 #ifdef UINT8_MAX
18813 MVAL (UINT8_MAX),
18814 #endif
18815 #ifdef UINT16_MAX
18816 MVAL (UINT16_MAX),
18817 #endif
18818 #ifdef UINT32_MAX
18819 MVAL (UINT32_MAX),
18820 #endif
18821 #ifdef UINT64_MAX
18822 MVAL (UINT64_MAX),
18823 #endif
18824 NULL
18828 main ()
18831 const char **mv;
18832 for (mv = macro_values; *mv != NULL; mv++)
18834 const char *value = *mv;
18835 /* Test whether it looks like a cast expression. */
18836 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18837 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18838 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18839 || strncmp (value, "((int)"/*)*/, 6) == 0
18840 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18841 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18842 return mv - macro_values + 1;
18844 return 0;
18847 return 0;
18849 _ACEOF
18850 if ac_fn_c_try_run "$LINENO"; then :
18851 gl_cv_header_working_stdint_h=yes
18853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18854 conftest.$ac_objext conftest.beam conftest.$ac_ext
18859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18863 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18865 if test "$gl_cv_header_working_stdint_h" = yes; then
18866 STDINT_H=
18867 else
18868 for ac_header in sys/inttypes.h sys/bitypes.h
18869 do :
18870 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18871 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18872 eval as_val=\$$as_ac_Header
18873 if test "x$as_val" = x""yes; then :
18874 cat >>confdefs.h <<_ACEOF
18875 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18876 _ACEOF
18880 done
18882 if test $ac_cv_header_sys_inttypes_h = yes; then
18883 HAVE_SYS_INTTYPES_H=1
18884 else
18885 HAVE_SYS_INTTYPES_H=0
18888 if test $ac_cv_header_sys_bitypes_h = yes; then
18889 HAVE_SYS_BITYPES_H=1
18890 else
18891 HAVE_SYS_BITYPES_H=0
18897 if test $APPLE_UNIVERSAL_BUILD = 0; then
18900 for gltype in ptrdiff_t size_t ; do
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18902 $as_echo_n "checking for bit size of $gltype... " >&6; }
18903 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18904 $as_echo_n "(cached) " >&6
18905 else
18906 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18907 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18908 included before <wchar.h>. */
18909 #include <stddef.h>
18910 #include <signal.h>
18911 #if HAVE_WCHAR_H
18912 # include <stdio.h>
18913 # include <time.h>
18914 # include <wchar.h>
18915 #endif
18917 #include <limits.h>"; then :
18919 else
18920 result=unknown
18923 eval gl_cv_bitsizeof_${gltype}=\$result
18926 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18928 $as_echo "$ac_res" >&6; }
18929 eval result=\$gl_cv_bitsizeof_${gltype}
18930 if test $result = unknown; then
18931 result=0
18933 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18934 cat >>confdefs.h <<_ACEOF
18935 #define BITSIZEOF_${GLTYPE} $result
18936 _ACEOF
18938 eval BITSIZEOF_${GLTYPE}=\$result
18939 done
18945 for gltype in sig_atomic_t wchar_t wint_t ; do
18946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18947 $as_echo_n "checking for bit size of $gltype... " >&6; }
18948 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18949 $as_echo_n "(cached) " >&6
18950 else
18951 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18952 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18953 included before <wchar.h>. */
18954 #include <stddef.h>
18955 #include <signal.h>
18956 #if HAVE_WCHAR_H
18957 # include <stdio.h>
18958 # include <time.h>
18959 # include <wchar.h>
18960 #endif
18962 #include <limits.h>"; then :
18964 else
18965 result=unknown
18968 eval gl_cv_bitsizeof_${gltype}=\$result
18971 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18973 $as_echo "$ac_res" >&6; }
18974 eval result=\$gl_cv_bitsizeof_${gltype}
18975 if test $result = unknown; then
18976 result=0
18978 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18979 cat >>confdefs.h <<_ACEOF
18980 #define BITSIZEOF_${GLTYPE} $result
18981 _ACEOF
18983 eval BITSIZEOF_${GLTYPE}=\$result
18984 done
18989 for gltype in sig_atomic_t wchar_t wint_t ; do
18990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18991 $as_echo_n "checking whether $gltype is signed... " >&6; }
18992 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18993 $as_echo_n "(cached) " >&6
18994 else
18995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18996 /* end confdefs.h. */
18998 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18999 included before <wchar.h>. */
19000 #include <stddef.h>
19001 #include <signal.h>
19002 #if HAVE_WCHAR_H
19003 # include <stdio.h>
19004 # include <time.h>
19005 # include <wchar.h>
19006 #endif
19008 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
19010 main ()
19014 return 0;
19016 _ACEOF
19017 if ac_fn_c_try_compile "$LINENO"; then :
19018 result=yes
19019 else
19020 result=no
19022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19023 eval gl_cv_type_${gltype}_signed=\$result
19026 eval ac_res=\$gl_cv_type_${gltype}_signed
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19028 $as_echo "$ac_res" >&6; }
19029 eval result=\$gl_cv_type_${gltype}_signed
19030 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19031 if test "$result" = yes; then
19032 cat >>confdefs.h <<_ACEOF
19033 #define HAVE_SIGNED_${GLTYPE} 1
19034 _ACEOF
19036 eval HAVE_SIGNED_${GLTYPE}=1
19037 else
19038 eval HAVE_SIGNED_${GLTYPE}=0
19040 done
19043 gl_cv_type_ptrdiff_t_signed=yes
19044 gl_cv_type_size_t_signed=no
19045 if test $APPLE_UNIVERSAL_BUILD = 0; then
19048 for gltype in ptrdiff_t size_t ; do
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19050 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19051 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
19052 $as_echo_n "(cached) " >&6
19053 else
19054 eval gl_cv_type_${gltype}_suffix=no
19055 eval result=\$gl_cv_type_${gltype}_signed
19056 if test "$result" = yes; then
19057 glsufu=
19058 else
19059 glsufu=u
19061 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
19062 case $glsuf in
19063 '') gltype1='int';;
19064 l) gltype1='long int';;
19065 ll) gltype1='long long int';;
19066 i64) gltype1='__int64';;
19067 u) gltype1='unsigned int';;
19068 ul) gltype1='unsigned long int';;
19069 ull) gltype1='unsigned long long int';;
19070 ui64)gltype1='unsigned __int64';;
19071 esac
19072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19073 /* end confdefs.h. */
19075 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19076 included before <wchar.h>. */
19077 #include <stddef.h>
19078 #include <signal.h>
19079 #if HAVE_WCHAR_H
19080 # include <stdio.h>
19081 # include <time.h>
19082 # include <wchar.h>
19083 #endif
19085 extern $gltype foo;
19086 extern $gltype1 foo;
19088 main ()
19092 return 0;
19094 _ACEOF
19095 if ac_fn_c_try_compile "$LINENO"; then :
19096 eval gl_cv_type_${gltype}_suffix=\$glsuf
19098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19099 eval result=\$gl_cv_type_${gltype}_suffix
19100 test "$result" != no && break
19101 done
19103 eval ac_res=\$gl_cv_type_${gltype}_suffix
19104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19105 $as_echo "$ac_res" >&6; }
19106 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19107 eval result=\$gl_cv_type_${gltype}_suffix
19108 test "$result" = no && result=
19109 eval ${GLTYPE}_SUFFIX=\$result
19110 cat >>confdefs.h <<_ACEOF
19111 #define ${GLTYPE}_SUFFIX $result
19112 _ACEOF
19114 done
19120 for gltype in sig_atomic_t wchar_t wint_t ; do
19121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19122 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19123 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
19124 $as_echo_n "(cached) " >&6
19125 else
19126 eval gl_cv_type_${gltype}_suffix=no
19127 eval result=\$gl_cv_type_${gltype}_signed
19128 if test "$result" = yes; then
19129 glsufu=
19130 else
19131 glsufu=u
19133 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
19134 case $glsuf in
19135 '') gltype1='int';;
19136 l) gltype1='long int';;
19137 ll) gltype1='long long int';;
19138 i64) gltype1='__int64';;
19139 u) gltype1='unsigned int';;
19140 ul) gltype1='unsigned long int';;
19141 ull) gltype1='unsigned long long int';;
19142 ui64)gltype1='unsigned __int64';;
19143 esac
19144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19145 /* end confdefs.h. */
19147 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19148 included before <wchar.h>. */
19149 #include <stddef.h>
19150 #include <signal.h>
19151 #if HAVE_WCHAR_H
19152 # include <stdio.h>
19153 # include <time.h>
19154 # include <wchar.h>
19155 #endif
19157 extern $gltype foo;
19158 extern $gltype1 foo;
19160 main ()
19164 return 0;
19166 _ACEOF
19167 if ac_fn_c_try_compile "$LINENO"; then :
19168 eval gl_cv_type_${gltype}_suffix=\$glsuf
19170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19171 eval result=\$gl_cv_type_${gltype}_suffix
19172 test "$result" != no && break
19173 done
19175 eval ac_res=\$gl_cv_type_${gltype}_suffix
19176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19177 $as_echo "$ac_res" >&6; }
19178 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19179 eval result=\$gl_cv_type_${gltype}_suffix
19180 test "$result" = no && result=
19181 eval ${GLTYPE}_SUFFIX=\$result
19182 cat >>confdefs.h <<_ACEOF
19183 #define ${GLTYPE}_SUFFIX $result
19184 _ACEOF
19186 done
19190 if test $BITSIZEOF_WINT_T -lt 32; then
19191 BITSIZEOF_WINT_T=32
19194 STDINT_H=stdint.h
19197 if test -n "$STDINT_H"; then
19198 GL_GENERATE_STDINT_H_TRUE=
19199 GL_GENERATE_STDINT_H_FALSE='#'
19200 else
19201 GL_GENERATE_STDINT_H_TRUE='#'
19202 GL_GENERATE_STDINT_H_FALSE=
19209 GNULIB_IMAXABS=0;
19210 GNULIB_IMAXDIV=0;
19211 GNULIB_STRTOIMAX=0;
19212 GNULIB_STRTOUMAX=0;
19213 HAVE_DECL_IMAXABS=1;
19214 HAVE_DECL_IMAXDIV=1;
19215 HAVE_DECL_STRTOIMAX=1;
19216 HAVE_DECL_STRTOUMAX=1;
19217 REPLACE_STRTOIMAX=0;
19218 INT32_MAX_LT_INTMAX_MAX=1;
19219 INT64_MAX_EQ_LONG_MAX='defined _LP64';
19220 PRI_MACROS_BROKEN=0;
19221 PRIPTR_PREFIX=__PRIPTR_PREFIX;
19222 UINT32_MAX_LT_UINTMAX_MAX=1;
19223 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
19239 if test $gl_cv_have_include_next = yes; then
19240 gl_cv_next_inttypes_h='<'inttypes.h'>'
19241 else
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
19243 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
19244 if test "${gl_cv_next_inttypes_h+set}" = set; then :
19245 $as_echo_n "(cached) " >&6
19246 else
19248 if test $ac_cv_header_inttypes_h = yes; then
19251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19252 /* end confdefs.h. */
19253 #include <inttypes.h>
19255 _ACEOF
19256 case "$host_os" in
19257 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19258 *) gl_absname_cpp="$ac_cpp" ;;
19259 esac
19261 case "$host_os" in
19262 mingw*)
19263 gl_dirsep_regex='[/\\]'
19266 gl_dirsep_regex='\/'
19268 esac
19269 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19271 gl_header_literal_regex=`echo 'inttypes.h' \
19272 | sed -e "$gl_make_literal_regex_sed"`
19273 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19274 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19275 s|^/[^/]|//&|
19279 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19280 sed -n "$gl_absolute_header_sed"`'"'
19281 else
19282 gl_cv_next_inttypes_h='<'inttypes.h'>'
19287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
19288 $as_echo "$gl_cv_next_inttypes_h" >&6; }
19290 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
19292 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19293 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19294 gl_next_as_first_directive='<'inttypes.h'>'
19295 else
19296 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19297 gl_next_as_first_directive=$gl_cv_next_inttypes_h
19299 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
19311 case "$host_os" in
19312 mingw*)
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
19314 $as_echo_n "checking for 64-bit off_t... " >&6; }
19315 if test "${gl_cv_type_off_t_64+set}" = set; then :
19316 $as_echo_n "(cached) " >&6
19317 else
19318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19319 /* end confdefs.h. */
19320 #include <sys/types.h>
19321 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
19324 main ()
19328 return 0;
19330 _ACEOF
19331 if ac_fn_c_try_compile "$LINENO"; then :
19332 gl_cv_type_off_t_64=yes
19333 else
19334 gl_cv_type_off_t_64=no
19336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
19340 $as_echo "$gl_cv_type_off_t_64" >&6; }
19341 if test $gl_cv_type_off_t_64 = no; then
19342 WINDOWS_64_BIT_OFF_T=1
19343 else
19344 WINDOWS_64_BIT_OFF_T=0
19346 WINDOWS_64_BIT_ST_SIZE=1
19349 WINDOWS_64_BIT_OFF_T=0
19350 WINDOWS_64_BIT_ST_SIZE=0
19352 esac
19357 GNULIB_FFSL=0;
19358 GNULIB_FFSLL=0;
19359 GNULIB_MEMCHR=0;
19360 GNULIB_MEMMEM=0;
19361 GNULIB_MEMPCPY=0;
19362 GNULIB_MEMRCHR=0;
19363 GNULIB_RAWMEMCHR=0;
19364 GNULIB_STPCPY=0;
19365 GNULIB_STPNCPY=0;
19366 GNULIB_STRCHRNUL=0;
19367 GNULIB_STRDUP=0;
19368 GNULIB_STRNCAT=0;
19369 GNULIB_STRNDUP=0;
19370 GNULIB_STRNLEN=0;
19371 GNULIB_STRPBRK=0;
19372 GNULIB_STRSEP=0;
19373 GNULIB_STRSTR=0;
19374 GNULIB_STRCASESTR=0;
19375 GNULIB_STRTOK_R=0;
19376 GNULIB_MBSLEN=0;
19377 GNULIB_MBSNLEN=0;
19378 GNULIB_MBSCHR=0;
19379 GNULIB_MBSRCHR=0;
19380 GNULIB_MBSSTR=0;
19381 GNULIB_MBSCASECMP=0;
19382 GNULIB_MBSNCASECMP=0;
19383 GNULIB_MBSPCASECMP=0;
19384 GNULIB_MBSCASESTR=0;
19385 GNULIB_MBSCSPN=0;
19386 GNULIB_MBSPBRK=0;
19387 GNULIB_MBSSPN=0;
19388 GNULIB_MBSSEP=0;
19389 GNULIB_MBSTOK_R=0;
19390 GNULIB_STRERROR=0;
19391 GNULIB_STRERROR_R=0;
19392 GNULIB_STRSIGNAL=0;
19393 GNULIB_STRVERSCMP=0;
19394 HAVE_MBSLEN=0;
19395 HAVE_FFSL=1;
19396 HAVE_FFSLL=1;
19397 HAVE_MEMCHR=1;
19398 HAVE_DECL_MEMMEM=1;
19399 HAVE_MEMPCPY=1;
19400 HAVE_DECL_MEMRCHR=1;
19401 HAVE_RAWMEMCHR=1;
19402 HAVE_STPCPY=1;
19403 HAVE_STPNCPY=1;
19404 HAVE_STRCHRNUL=1;
19405 HAVE_DECL_STRDUP=1;
19406 HAVE_DECL_STRNDUP=1;
19407 HAVE_DECL_STRNLEN=1;
19408 HAVE_STRPBRK=1;
19409 HAVE_STRSEP=1;
19410 HAVE_STRCASESTR=1;
19411 HAVE_DECL_STRTOK_R=1;
19412 HAVE_DECL_STRERROR_R=1;
19413 HAVE_DECL_STRSIGNAL=1;
19414 HAVE_STRVERSCMP=1;
19415 REPLACE_MEMCHR=0;
19416 REPLACE_MEMMEM=0;
19417 REPLACE_STPNCPY=0;
19418 REPLACE_STRDUP=0;
19419 REPLACE_STRSTR=0;
19420 REPLACE_STRCASESTR=0;
19421 REPLACE_STRCHRNUL=0;
19422 REPLACE_STRERROR=0;
19423 REPLACE_STRERROR_R=0;
19424 REPLACE_STRNCAT=0;
19425 REPLACE_STRNDUP=0;
19426 REPLACE_STRNLEN=0;
19427 REPLACE_STRSIGNAL=0;
19428 REPLACE_STRTOK_R=0;
19429 UNDEFINE_STRTOK_R=0;
19431 ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
19432 if test "x$ac_cv_have_decl_memrchr" = x""yes; then :
19433 ac_have_decl=1
19434 else
19435 ac_have_decl=0
19438 cat >>confdefs.h <<_ACEOF
19439 #define HAVE_DECL_MEMRCHR $ac_have_decl
19440 _ACEOF
19443 GNULIB_MKTIME=0;
19444 GNULIB_NANOSLEEP=0;
19445 GNULIB_STRPTIME=0;
19446 GNULIB_TIMEGM=0;
19447 GNULIB_TIME_R=0;
19448 HAVE_DECL_LOCALTIME_R=1;
19449 HAVE_NANOSLEEP=1;
19450 HAVE_STRPTIME=1;
19451 HAVE_TIMEGM=1;
19452 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
19453 REPLACE_MKTIME=GNULIB_PORTCHECK;
19454 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
19455 REPLACE_TIMEGM=GNULIB_PORTCHECK;
19457 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
19458 if test "x$ac_cv_have_decl_alarm" = x""yes; then :
19459 ac_have_decl=1
19460 else
19461 ac_have_decl=0
19464 cat >>confdefs.h <<_ACEOF
19465 #define HAVE_DECL_ALARM $ac_have_decl
19466 _ACEOF
19469 GNULIB_PSELECT=0;
19470 GNULIB_SELECT=0;
19471 HAVE_PSELECT=1;
19472 REPLACE_PSELECT=0;
19473 REPLACE_SELECT=0;
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
19481 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
19482 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
19483 $as_echo_n "(cached) " >&6
19484 else
19486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19487 /* end confdefs.h. */
19488 #include <sys/select.h>
19490 main ()
19492 struct timeval b;
19494 return 0;
19496 _ACEOF
19497 if ac_fn_c_try_compile "$LINENO"; then :
19498 gl_cv_header_sys_select_h_selfcontained=yes
19499 else
19500 gl_cv_header_sys_select_h_selfcontained=no
19502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19503 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
19504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19505 /* end confdefs.h. */
19506 #include <sys/select.h>
19508 main ()
19510 int memset; int bzero;
19512 return 0;
19515 _ACEOF
19516 if ac_fn_c_try_compile "$LINENO"; then :
19517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19518 /* end confdefs.h. */
19519 #include <sys/select.h>
19521 main ()
19524 #undef memset
19525 #define memset nonexistent_memset
19526 extern
19527 #ifdef __cplusplus
19529 #endif
19530 void *memset (void *, int, unsigned long);
19531 #undef bzero
19532 #define bzero nonexistent_bzero
19533 extern
19534 #ifdef __cplusplus
19536 #endif
19537 void bzero (void *, unsigned long);
19538 fd_set fds;
19539 FD_ZERO (&fds);
19542 return 0;
19545 _ACEOF
19546 if ac_fn_c_try_link "$LINENO"; then :
19548 else
19549 gl_cv_header_sys_select_h_selfcontained=no
19551 rm -f core conftest.err conftest.$ac_objext \
19552 conftest$ac_exeext conftest.$ac_ext
19555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
19560 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
19570 if test $gl_cv_have_include_next = yes; then
19571 gl_cv_next_sys_select_h='<'sys/select.h'>'
19572 else
19573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
19574 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
19575 if test "${gl_cv_next_sys_select_h+set}" = set; then :
19576 $as_echo_n "(cached) " >&6
19577 else
19579 if test $ac_cv_header_sys_select_h = yes; then
19582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19583 /* end confdefs.h. */
19584 #include <sys/select.h>
19586 _ACEOF
19587 case "$host_os" in
19588 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19589 *) gl_absname_cpp="$ac_cpp" ;;
19590 esac
19592 case "$host_os" in
19593 mingw*)
19594 gl_dirsep_regex='[/\\]'
19597 gl_dirsep_regex='\/'
19599 esac
19600 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19602 gl_header_literal_regex=`echo 'sys/select.h' \
19603 | sed -e "$gl_make_literal_regex_sed"`
19604 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19605 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19606 s|^/[^/]|//&|
19610 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19611 sed -n "$gl_absolute_header_sed"`'"'
19612 else
19613 gl_cv_next_sys_select_h='<'sys/select.h'>'
19618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
19619 $as_echo "$gl_cv_next_sys_select_h" >&6; }
19621 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
19623 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19624 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19625 gl_next_as_first_directive='<'sys/select.h'>'
19626 else
19627 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19628 gl_next_as_first_directive=$gl_cv_next_sys_select_h
19630 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
19635 if test $ac_cv_header_sys_select_h = yes; then
19636 HAVE_SYS_SELECT_H=1
19637 else
19638 HAVE_SYS_SELECT_H=0
19645 if test $ac_cv_header_sys_socket_h != yes; then
19646 for ac_header in winsock2.h
19647 do :
19648 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19649 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
19650 cat >>confdefs.h <<_ACEOF
19651 #define HAVE_WINSOCK2_H 1
19652 _ACEOF
19656 done
19659 if test "$ac_cv_header_winsock2_h" = yes; then
19660 HAVE_WINSOCK2_H=1
19661 UNISTD_H_HAVE_WINSOCK2_H=1
19662 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19663 else
19664 HAVE_WINSOCK2_H=0
19674 GNULIB_PTHREAD_SIGMASK=0;
19675 GNULIB_RAISE=0;
19676 GNULIB_SIGNAL_H_SIGPIPE=0;
19677 GNULIB_SIGPROCMASK=0;
19678 GNULIB_SIGACTION=0;
19679 HAVE_POSIX_SIGNALBLOCKING=1;
19680 HAVE_PTHREAD_SIGMASK=1;
19681 HAVE_RAISE=1;
19682 HAVE_SIGSET_T=1;
19683 HAVE_SIGINFO_T=1;
19684 HAVE_SIGACTION=1;
19685 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
19687 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
19689 HAVE_SIGHANDLER_T=1;
19690 REPLACE_PTHREAD_SIGMASK=0;
19691 REPLACE_RAISE=0;
19699 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19700 #include <signal.h>
19701 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19702 #include <sys/types.h>
19705 if test "x$ac_cv_type_sigset_t" = x""yes; then :
19707 cat >>confdefs.h <<_ACEOF
19708 #define HAVE_SIGSET_T 1
19709 _ACEOF
19711 gl_cv_type_sigset_t=yes
19712 else
19713 gl_cv_type_sigset_t=no
19716 if test $gl_cv_type_sigset_t != yes; then
19717 HAVE_SIGSET_T=0
19722 if test $ac_cv_header_sys_socket_h = no; then
19723 for ac_header in ws2tcpip.h
19724 do :
19725 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19726 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
19727 cat >>confdefs.h <<_ACEOF
19728 #define HAVE_WS2TCPIP_H 1
19729 _ACEOF
19733 done
19737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19738 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19739 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19740 $as_echo_n "(cached) " >&6
19741 else
19742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19743 /* end confdefs.h. */
19745 #include <stdbool.h>
19746 #ifndef bool
19747 "error: bool is not defined"
19748 #endif
19749 #ifndef false
19750 "error: false is not defined"
19751 #endif
19752 #if false
19753 "error: false is not 0"
19754 #endif
19755 #ifndef true
19756 "error: true is not defined"
19757 #endif
19758 #if true != 1
19759 "error: true is not 1"
19760 #endif
19761 #ifndef __bool_true_false_are_defined
19762 "error: __bool_true_false_are_defined is not defined"
19763 #endif
19765 struct s { _Bool s: 1; _Bool t; } s;
19767 char a[true == 1 ? 1 : -1];
19768 char b[false == 0 ? 1 : -1];
19769 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19770 char d[(bool) 0.5 == true ? 1 : -1];
19771 /* See body of main program for 'e'. */
19772 char f[(_Bool) 0.0 == false ? 1 : -1];
19773 char g[true];
19774 char h[sizeof (_Bool)];
19775 char i[sizeof s.t];
19776 enum { j = false, k = true, l = false * true, m = true * 256 };
19777 /* The following fails for
19778 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19779 _Bool n[m];
19780 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19781 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19782 /* Catch a bug in an HP-UX C compiler. See
19783 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19784 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19786 _Bool q = true;
19787 _Bool *pq = &q;
19790 main ()
19793 bool e = &s;
19794 *pq |= q;
19795 *pq |= ! q;
19796 /* Refer to every declared value, to avoid compiler optimizations. */
19797 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19798 + !m + !n + !o + !p + !q + !pq);
19801 return 0;
19803 _ACEOF
19804 if ac_fn_c_try_compile "$LINENO"; then :
19805 ac_cv_header_stdbool_h=yes
19806 else
19807 ac_cv_header_stdbool_h=no
19809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19812 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19813 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19814 if test "x$ac_cv_type__Bool" = x""yes; then :
19816 cat >>confdefs.h <<_ACEOF
19817 #define HAVE__BOOL 1
19818 _ACEOF
19825 REPLACE_NULL=0;
19826 HAVE_WCHAR_T=1;
19829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19830 $as_echo_n "checking for wchar_t... " >&6; }
19831 if test "${gt_cv_c_wchar_t+set}" = set; then :
19832 $as_echo_n "(cached) " >&6
19833 else
19834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19835 /* end confdefs.h. */
19836 #include <stddef.h>
19837 wchar_t foo = (wchar_t)'\0';
19839 main ()
19843 return 0;
19845 _ACEOF
19846 if ac_fn_c_try_compile "$LINENO"; then :
19847 gt_cv_c_wchar_t=yes
19848 else
19849 gt_cv_c_wchar_t=no
19851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19854 $as_echo "$gt_cv_c_wchar_t" >&6; }
19855 if test $gt_cv_c_wchar_t = yes; then
19857 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19862 GNULIB_DPRINTF=0;
19863 GNULIB_FCLOSE=0;
19864 GNULIB_FDOPEN=0;
19865 GNULIB_FFLUSH=0;
19866 GNULIB_FGETC=0;
19867 GNULIB_FGETS=0;
19868 GNULIB_FOPEN=0;
19869 GNULIB_FPRINTF=0;
19870 GNULIB_FPRINTF_POSIX=0;
19871 GNULIB_FPURGE=0;
19872 GNULIB_FPUTC=0;
19873 GNULIB_FPUTS=0;
19874 GNULIB_FREAD=0;
19875 GNULIB_FREOPEN=0;
19876 GNULIB_FSCANF=0;
19877 GNULIB_FSEEK=0;
19878 GNULIB_FSEEKO=0;
19879 GNULIB_FTELL=0;
19880 GNULIB_FTELLO=0;
19881 GNULIB_FWRITE=0;
19882 GNULIB_GETC=0;
19883 GNULIB_GETCHAR=0;
19884 GNULIB_GETDELIM=0;
19885 GNULIB_GETLINE=0;
19886 GNULIB_OBSTACK_PRINTF=0;
19887 GNULIB_OBSTACK_PRINTF_POSIX=0;
19888 GNULIB_PCLOSE=0;
19889 GNULIB_PERROR=0;
19890 GNULIB_POPEN=0;
19891 GNULIB_PRINTF=0;
19892 GNULIB_PRINTF_POSIX=0;
19893 GNULIB_PUTC=0;
19894 GNULIB_PUTCHAR=0;
19895 GNULIB_PUTS=0;
19896 GNULIB_REMOVE=0;
19897 GNULIB_RENAME=0;
19898 GNULIB_RENAMEAT=0;
19899 GNULIB_SCANF=0;
19900 GNULIB_SNPRINTF=0;
19901 GNULIB_SPRINTF_POSIX=0;
19902 GNULIB_STDIO_H_NONBLOCKING=0;
19903 GNULIB_STDIO_H_SIGPIPE=0;
19904 GNULIB_TMPFILE=0;
19905 GNULIB_VASPRINTF=0;
19906 GNULIB_VFSCANF=0;
19907 GNULIB_VSCANF=0;
19908 GNULIB_VDPRINTF=0;
19909 GNULIB_VFPRINTF=0;
19910 GNULIB_VFPRINTF_POSIX=0;
19911 GNULIB_VPRINTF=0;
19912 GNULIB_VPRINTF_POSIX=0;
19913 GNULIB_VSNPRINTF=0;
19914 GNULIB_VSPRINTF_POSIX=0;
19915 HAVE_DECL_FPURGE=1;
19916 HAVE_DECL_FSEEKO=1;
19917 HAVE_DECL_FTELLO=1;
19918 HAVE_DECL_GETDELIM=1;
19919 HAVE_DECL_GETLINE=1;
19920 HAVE_DECL_OBSTACK_PRINTF=1;
19921 HAVE_DECL_SNPRINTF=1;
19922 HAVE_DECL_VSNPRINTF=1;
19923 HAVE_DPRINTF=1;
19924 HAVE_FSEEKO=1;
19925 HAVE_FTELLO=1;
19926 HAVE_PCLOSE=1;
19927 HAVE_POPEN=1;
19928 HAVE_RENAMEAT=1;
19929 HAVE_VASPRINTF=1;
19930 HAVE_VDPRINTF=1;
19931 REPLACE_DPRINTF=0;
19932 REPLACE_FCLOSE=0;
19933 REPLACE_FDOPEN=0;
19934 REPLACE_FFLUSH=0;
19935 REPLACE_FOPEN=0;
19936 REPLACE_FPRINTF=0;
19937 REPLACE_FPURGE=0;
19938 REPLACE_FREOPEN=0;
19939 REPLACE_FSEEK=0;
19940 REPLACE_FSEEKO=0;
19941 REPLACE_FTELL=0;
19942 REPLACE_FTELLO=0;
19943 REPLACE_GETDELIM=0;
19944 REPLACE_GETLINE=0;
19945 REPLACE_OBSTACK_PRINTF=0;
19946 REPLACE_PERROR=0;
19947 REPLACE_POPEN=0;
19948 REPLACE_PRINTF=0;
19949 REPLACE_REMOVE=0;
19950 REPLACE_RENAME=0;
19951 REPLACE_RENAMEAT=0;
19952 REPLACE_SNPRINTF=0;
19953 REPLACE_SPRINTF=0;
19954 REPLACE_STDIO_READ_FUNCS=0;
19955 REPLACE_STDIO_WRITE_FUNCS=0;
19956 REPLACE_TMPFILE=0;
19957 REPLACE_VASPRINTF=0;
19958 REPLACE_VDPRINTF=0;
19959 REPLACE_VFPRINTF=0;
19960 REPLACE_VPRINTF=0;
19961 REPLACE_VSNPRINTF=0;
19962 REPLACE_VSPRINTF=0;
19964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19965 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19966 if test "${ac_cv_struct_tm+set}" = set; then :
19967 $as_echo_n "(cached) " >&6
19968 else
19969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19970 /* end confdefs.h. */
19971 #include <sys/types.h>
19972 #include <time.h>
19975 main ()
19977 struct tm tm;
19978 int *p = &tm.tm_sec;
19979 return !p;
19981 return 0;
19983 _ACEOF
19984 if ac_fn_c_try_compile "$LINENO"; then :
19985 ac_cv_struct_tm=time.h
19986 else
19987 ac_cv_struct_tm=sys/time.h
19989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19992 $as_echo "$ac_cv_struct_tm" >&6; }
19993 if test $ac_cv_struct_tm = sys/time.h; then
19995 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19999 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
20000 #include <$ac_cv_struct_tm>
20003 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
20005 cat >>confdefs.h <<_ACEOF
20006 #define HAVE_STRUCT_TM_TM_ZONE 1
20007 _ACEOF
20012 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20014 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
20016 else
20017 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
20019 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
20020 ac_have_decl=1
20021 else
20022 ac_have_decl=0
20025 cat >>confdefs.h <<_ACEOF
20026 #define HAVE_DECL_TZNAME $ac_have_decl
20027 _ACEOF
20029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
20030 $as_echo_n "checking for tzname... " >&6; }
20031 if test "${ac_cv_var_tzname+set}" = set; then :
20032 $as_echo_n "(cached) " >&6
20033 else
20034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20035 /* end confdefs.h. */
20036 #include <time.h>
20037 #if !HAVE_DECL_TZNAME
20038 extern char *tzname[];
20039 #endif
20042 main ()
20044 return tzname[0][0];
20046 return 0;
20048 _ACEOF
20049 if ac_fn_c_try_link "$LINENO"; then :
20050 ac_cv_var_tzname=yes
20051 else
20052 ac_cv_var_tzname=no
20054 rm -f core conftest.err conftest.$ac_objext \
20055 conftest$ac_exeext conftest.$ac_ext
20057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
20058 $as_echo "$ac_cv_var_tzname" >&6; }
20059 if test $ac_cv_var_tzname = yes; then
20061 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
20067 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
20069 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
20071 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
20087 if test $gl_cv_have_include_next = yes; then
20088 gl_cv_next_string_h='<'string.h'>'
20089 else
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
20091 $as_echo_n "checking absolute name of <string.h>... " >&6; }
20092 if test "${gl_cv_next_string_h+set}" = set; then :
20093 $as_echo_n "(cached) " >&6
20094 else
20096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20097 /* end confdefs.h. */
20098 #include <string.h>
20100 _ACEOF
20101 case "$host_os" in
20102 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20103 *) gl_absname_cpp="$ac_cpp" ;;
20104 esac
20106 case "$host_os" in
20107 mingw*)
20108 gl_dirsep_regex='[/\\]'
20111 gl_dirsep_regex='\/'
20113 esac
20114 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20116 gl_header_literal_regex=`echo 'string.h' \
20117 | sed -e "$gl_make_literal_regex_sed"`
20118 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20119 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20120 s|^/[^/]|//&|
20124 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20125 sed -n "$gl_absolute_header_sed"`'"'
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
20130 $as_echo "$gl_cv_next_string_h" >&6; }
20132 NEXT_STRING_H=$gl_cv_next_string_h
20134 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20135 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20136 gl_next_as_first_directive='<'string.h'>'
20137 else
20138 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20139 gl_next_as_first_directive=$gl_cv_next_string_h
20141 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
20151 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
20152 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
20153 ac_have_decl=1
20154 else
20155 ac_have_decl=0
20158 cat >>confdefs.h <<_ACEOF
20159 #define HAVE_DECL_STRTOIMAX $ac_have_decl
20160 _ACEOF
20164 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
20165 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
20166 ac_have_decl=1
20167 else
20168 ac_have_decl=0
20171 cat >>confdefs.h <<_ACEOF
20172 #define HAVE_DECL_STRTOUMAX $ac_have_decl
20173 _ACEOF
20177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20178 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20179 if test "${ac_cv_header_stat_broken+set}" = set; then :
20180 $as_echo_n "(cached) " >&6
20181 else
20182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20183 /* end confdefs.h. */
20184 #include <sys/types.h>
20185 #include <sys/stat.h>
20187 #if defined S_ISBLK && defined S_IFDIR
20188 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20189 #endif
20191 #if defined S_ISBLK && defined S_IFCHR
20192 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20193 #endif
20195 #if defined S_ISLNK && defined S_IFREG
20196 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20197 #endif
20199 #if defined S_ISSOCK && defined S_IFREG
20200 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20201 #endif
20203 _ACEOF
20204 if ac_fn_c_try_compile "$LINENO"; then :
20205 ac_cv_header_stat_broken=no
20206 else
20207 ac_cv_header_stat_broken=yes
20209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20212 $as_echo "$ac_cv_header_stat_broken" >&6; }
20213 if test $ac_cv_header_stat_broken = yes; then
20215 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
20224 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
20225 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
20226 $as_echo_n "(cached) " >&6
20227 else
20228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20229 /* end confdefs.h. */
20230 #include <time.h>
20233 main ()
20235 static struct timespec x; x.tv_sec = x.tv_nsec;
20237 return 0;
20239 _ACEOF
20240 if ac_fn_c_try_compile "$LINENO"; then :
20241 gl_cv_sys_struct_timespec_in_time_h=yes
20242 else
20243 gl_cv_sys_struct_timespec_in_time_h=no
20245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
20248 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
20250 TIME_H_DEFINES_STRUCT_TIMESPEC=0
20251 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
20252 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
20253 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
20254 TIME_H_DEFINES_STRUCT_TIMESPEC=1
20255 else
20256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
20257 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
20258 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
20259 $as_echo_n "(cached) " >&6
20260 else
20261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20262 /* end confdefs.h. */
20263 #include <sys/time.h>
20266 main ()
20268 static struct timespec x; x.tv_sec = x.tv_nsec;
20270 return 0;
20272 _ACEOF
20273 if ac_fn_c_try_compile "$LINENO"; then :
20274 gl_cv_sys_struct_timespec_in_sys_time_h=yes
20275 else
20276 gl_cv_sys_struct_timespec_in_sys_time_h=no
20278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
20281 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
20282 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
20283 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
20284 else
20285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
20286 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
20287 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
20288 $as_echo_n "(cached) " >&6
20289 else
20290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20291 /* end confdefs.h. */
20292 #include <pthread.h>
20295 main ()
20297 static struct timespec x; x.tv_sec = x.tv_nsec;
20299 return 0;
20301 _ACEOF
20302 if ac_fn_c_try_compile "$LINENO"; then :
20303 gl_cv_sys_struct_timespec_in_pthread_h=yes
20304 else
20305 gl_cv_sys_struct_timespec_in_pthread_h=no
20307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
20310 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
20311 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
20312 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
20331 if test $gl_cv_have_include_next = yes; then
20332 gl_cv_next_time_h='<'time.h'>'
20333 else
20334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
20335 $as_echo_n "checking absolute name of <time.h>... " >&6; }
20336 if test "${gl_cv_next_time_h+set}" = set; then :
20337 $as_echo_n "(cached) " >&6
20338 else
20340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20341 /* end confdefs.h. */
20342 #include <time.h>
20344 _ACEOF
20345 case "$host_os" in
20346 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20347 *) gl_absname_cpp="$ac_cpp" ;;
20348 esac
20350 case "$host_os" in
20351 mingw*)
20352 gl_dirsep_regex='[/\\]'
20355 gl_dirsep_regex='\/'
20357 esac
20358 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20360 gl_header_literal_regex=`echo 'time.h' \
20361 | sed -e "$gl_make_literal_regex_sed"`
20362 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20363 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20364 s|^/[^/]|//&|
20368 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20369 sed -n "$gl_absolute_header_sed"`'"'
20373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
20374 $as_echo "$gl_cv_next_time_h" >&6; }
20376 NEXT_TIME_H=$gl_cv_next_time_h
20378 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20379 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20380 gl_next_as_first_directive='<'time.h'>'
20381 else
20382 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20383 gl_next_as_first_directive=$gl_cv_next_time_h
20385 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
20400 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
20401 if test "x$ac_cv_have_decl_unsetenv" = x""yes; then :
20402 ac_have_decl=1
20403 else
20404 ac_have_decl=0
20407 cat >>confdefs.h <<_ACEOF
20408 #define HAVE_DECL_UNSETENV $ac_have_decl
20409 _ACEOF
20412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
20413 $as_echo_n "checking whether the utimes function works... " >&6; }
20414 if test "${gl_cv_func_working_utimes+set}" = set; then :
20415 $as_echo_n "(cached) " >&6
20416 else
20418 if test "$cross_compiling" = yes; then :
20419 gl_cv_func_working_utimes=no
20420 else
20421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20422 /* end confdefs.h. */
20424 #include <sys/types.h>
20425 #include <sys/stat.h>
20426 #include <fcntl.h>
20427 #include <sys/time.h>
20428 #include <time.h>
20429 #include <unistd.h>
20430 #include <stdlib.h>
20431 #include <stdio.h>
20432 #include <utime.h>
20434 static int
20435 inorder (time_t a, time_t b, time_t c)
20437 return a <= b && b <= c;
20441 main ()
20443 int result = 0;
20444 char const *file = "conftest.utimes";
20445 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
20447 /* Test whether utimes() essentially works. */
20449 struct stat sbuf;
20450 FILE *f = fopen (file, "w");
20451 if (f == NULL)
20452 result |= 1;
20453 else if (fclose (f) != 0)
20454 result |= 1;
20455 else if (utimes (file, timeval) != 0)
20456 result |= 2;
20457 else if (lstat (file, &sbuf) != 0)
20458 result |= 1;
20459 else if (!(sbuf.st_atime == timeval[0].tv_sec
20460 && sbuf.st_mtime == timeval[1].tv_sec))
20461 result |= 4;
20462 if (unlink (file) != 0)
20463 result |= 1;
20466 /* Test whether utimes() with a NULL argument sets the file's timestamp
20467 to the current time. Use 'fstat' as well as 'time' to
20468 determine the "current" time, to accommodate NFS file systems
20469 if there is a time skew between the host and the NFS server. */
20471 int fd = open (file, O_WRONLY|O_CREAT, 0644);
20472 if (fd < 0)
20473 result |= 1;
20474 else
20476 time_t t0, t2;
20477 struct stat st0, st1, st2;
20478 if (time (&t0) == (time_t) -1)
20479 result |= 1;
20480 else if (fstat (fd, &st0) != 0)
20481 result |= 1;
20482 else if (utimes (file, timeval) != 0)
20483 result |= 2;
20484 else if (utimes (file, NULL) != 0)
20485 result |= 8;
20486 else if (fstat (fd, &st1) != 0)
20487 result |= 1;
20488 else if (write (fd, "\n", 1) != 1)
20489 result |= 1;
20490 else if (fstat (fd, &st2) != 0)
20491 result |= 1;
20492 else if (time (&t2) == (time_t) -1)
20493 result |= 1;
20494 else
20496 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
20497 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
20498 if (! (st1.st_atime == st1.st_mtime))
20499 result |= 16;
20500 if (! (m_ok_POSIX || m_ok_NFS))
20501 result |= 32;
20503 if (close (fd) != 0)
20504 result |= 1;
20506 if (unlink (file) != 0)
20507 result |= 1;
20510 /* Test whether utimes() with a NULL argument works on read-only files. */
20512 int fd = open (file, O_WRONLY|O_CREAT, 0444);
20513 if (fd < 0)
20514 result |= 1;
20515 else if (close (fd) != 0)
20516 result |= 1;
20517 else if (utimes (file, NULL) != 0)
20518 result |= 64;
20519 if (unlink (file) != 0)
20520 result |= 1;
20523 return result;
20526 _ACEOF
20527 if ac_fn_c_try_run "$LINENO"; then :
20528 gl_cv_func_working_utimes=yes
20529 else
20530 gl_cv_func_working_utimes=no
20532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20533 conftest.$ac_objext conftest.beam conftest.$ac_ext
20537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
20538 $as_echo "$gl_cv_func_working_utimes" >&6; }
20540 if test $gl_cv_func_working_utimes = yes; then
20542 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
20550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
20551 $as_echo_n "checking for struct utimbuf... " >&6; }
20552 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
20553 $as_echo_n "(cached) " >&6
20554 else
20555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20556 /* end confdefs.h. */
20557 #if HAVE_SYS_TIME_H
20558 #include <sys/time.h>
20559 #endif
20560 #include <time.h>
20561 #ifdef HAVE_UTIME_H
20562 #include <utime.h>
20563 #endif
20566 main ()
20568 static struct utimbuf x; x.actime = x.modtime;
20570 return 0;
20572 _ACEOF
20573 if ac_fn_c_try_compile "$LINENO"; then :
20574 gl_cv_sys_struct_utimbuf=yes
20575 else
20576 gl_cv_sys_struct_utimbuf=no
20578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
20581 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
20583 if test $gl_cv_sys_struct_utimbuf = yes; then
20585 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
20600 $as_echo_n "checking type of array argument to getgroups... " >&6; }
20601 if test "${ac_cv_type_getgroups+set}" = set; then :
20602 $as_echo_n "(cached) " >&6
20603 else
20604 if test "$cross_compiling" = yes; then :
20605 ac_cv_type_getgroups=cross
20606 else
20607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20608 /* end confdefs.h. */
20609 /* Thanks to Mike Rendell for this test. */
20610 $ac_includes_default
20611 #define NGID 256
20612 #undef MAX
20613 #define MAX(x, y) ((x) > (y) ? (x) : (y))
20616 main ()
20618 gid_t gidset[NGID];
20619 int i, n;
20620 union { gid_t gval; long int lval; } val;
20622 val.lval = -1;
20623 for (i = 0; i < NGID; i++)
20624 gidset[i] = val.gval;
20625 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
20626 gidset);
20627 /* Exit non-zero if getgroups seems to require an array of ints. This
20628 happens when gid_t is short int but getgroups modifies an array
20629 of ints. */
20630 return n > 0 && gidset[n] != val.gval;
20632 _ACEOF
20633 if ac_fn_c_try_run "$LINENO"; then :
20634 ac_cv_type_getgroups=gid_t
20635 else
20636 ac_cv_type_getgroups=int
20638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20639 conftest.$ac_objext conftest.beam conftest.$ac_ext
20642 if test $ac_cv_type_getgroups = cross; then
20643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20644 /* end confdefs.h. */
20645 #include <unistd.h>
20647 _ACEOF
20648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20649 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
20650 ac_cv_type_getgroups=gid_t
20651 else
20652 ac_cv_type_getgroups=int
20654 rm -f conftest*
20658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
20659 $as_echo "$ac_cv_type_getgroups" >&6; }
20661 cat >>confdefs.h <<_ACEOF
20662 #define GETGROUPS_T $ac_cv_type_getgroups
20663 _ACEOF
20668 if false; then
20669 GL_COND_LIBTOOL_TRUE=
20670 GL_COND_LIBTOOL_FALSE='#'
20671 else
20672 GL_COND_LIBTOOL_TRUE='#'
20673 GL_COND_LIBTOOL_FALSE=
20676 gl_cond_libtool=false
20677 gl_libdeps=
20678 gl_ltlibdeps=
20679 gl_m4_base='m4'
20689 gl_source_base='lib'
20692 if test $ac_cv_func_alloca_works = no; then
20696 # Define an additional variable used in the Makefile substitution.
20697 if test $ac_cv_working_alloca_h = yes; then
20698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20699 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20700 if test "${gl_cv_rpl_alloca+set}" = set; then :
20701 $as_echo_n "(cached) " >&6
20702 else
20704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20705 /* end confdefs.h. */
20707 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20708 Need own alloca
20709 #endif
20711 _ACEOF
20712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20713 $EGREP "Need own alloca" >/dev/null 2>&1; then :
20714 gl_cv_rpl_alloca=yes
20715 else
20716 gl_cv_rpl_alloca=no
20718 rm -f conftest*
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20723 $as_echo "$gl_cv_rpl_alloca" >&6; }
20724 if test $gl_cv_rpl_alloca = yes; then
20726 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20728 ALLOCA_H=alloca.h
20729 else
20730 ALLOCA_H=
20732 else
20733 ALLOCA_H=alloca.h
20736 if test -n "$ALLOCA_H"; then
20737 GL_GENERATE_ALLOCA_H_TRUE=
20738 GL_GENERATE_ALLOCA_H_FALSE='#'
20739 else
20740 GL_GENERATE_ALLOCA_H_TRUE='#'
20741 GL_GENERATE_ALLOCA_H_FALSE=
20749 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
20750 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
20752 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
20753 # programs in the package would end up linked with that potentially-shared
20754 # library, inducing unnecessary run-time overhead.
20755 LIB_CLOCK_GETTIME=
20757 gl_saved_libs=$LIBS
20758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20759 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20760 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20761 $as_echo_n "(cached) " >&6
20762 else
20763 ac_func_search_save_LIBS=$LIBS
20764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20765 /* end confdefs.h. */
20767 /* Override any GCC internal prototype to avoid an error.
20768 Use char because int might match the return type of a GCC
20769 builtin and then its argument prototype would still apply. */
20770 #ifdef __cplusplus
20771 extern "C"
20772 #endif
20773 char clock_gettime ();
20775 main ()
20777 return clock_gettime ();
20779 return 0;
20781 _ACEOF
20782 for ac_lib in '' rt posix4; do
20783 if test -z "$ac_lib"; then
20784 ac_res="none required"
20785 else
20786 ac_res=-l$ac_lib
20787 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20789 if ac_fn_c_try_link "$LINENO"; then :
20790 ac_cv_search_clock_gettime=$ac_res
20792 rm -f core conftest.err conftest.$ac_objext \
20793 conftest$ac_exeext
20794 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20795 break
20797 done
20798 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20800 else
20801 ac_cv_search_clock_gettime=no
20803 rm conftest.$ac_ext
20804 LIBS=$ac_func_search_save_LIBS
20806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20807 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20808 ac_res=$ac_cv_search_clock_gettime
20809 if test "$ac_res" != no; then :
20810 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20811 test "$ac_cv_search_clock_gettime" = "none required" ||
20812 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
20815 for ac_func in clock_gettime clock_settime
20816 do :
20817 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20818 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20819 eval as_val=\$$as_ac_var
20820 if test "x$as_val" = x""yes; then :
20821 cat >>confdefs.h <<_ACEOF
20822 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20823 _ACEOF
20826 done
20828 LIBS=$gl_saved_libs
20835 cat >>confdefs.h <<_ACEOF
20836 #define GNULIB_CLOSE_STREAM 1
20837 _ACEOF
20866 if test $gl_cv_have_include_next = yes; then
20867 gl_cv_next_dirent_h='<'dirent.h'>'
20868 else
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
20870 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
20871 if test "${gl_cv_next_dirent_h+set}" = set; then :
20872 $as_echo_n "(cached) " >&6
20873 else
20875 if test $ac_cv_header_dirent_h = yes; then
20878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20879 /* end confdefs.h. */
20880 #include <dirent.h>
20882 _ACEOF
20883 case "$host_os" in
20884 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20885 *) gl_absname_cpp="$ac_cpp" ;;
20886 esac
20888 case "$host_os" in
20889 mingw*)
20890 gl_dirsep_regex='[/\\]'
20893 gl_dirsep_regex='\/'
20895 esac
20896 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20898 gl_header_literal_regex=`echo 'dirent.h' \
20899 | sed -e "$gl_make_literal_regex_sed"`
20900 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20901 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20902 s|^/[^/]|//&|
20906 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20907 sed -n "$gl_absolute_header_sed"`'"'
20908 else
20909 gl_cv_next_dirent_h='<'dirent.h'>'
20914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
20915 $as_echo "$gl_cv_next_dirent_h" >&6; }
20917 NEXT_DIRENT_H=$gl_cv_next_dirent_h
20919 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20920 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20921 gl_next_as_first_directive='<'dirent.h'>'
20922 else
20923 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20924 gl_next_as_first_directive=$gl_cv_next_dirent_h
20926 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
20931 if test $ac_cv_header_dirent_h = yes; then
20932 HAVE_DIRENT_H=1
20933 else
20934 HAVE_DIRENT_H=0
20946 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
20949 if test $HAVE_DUP2 = 1; then
20950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
20951 $as_echo_n "checking whether dup2 works... " >&6; }
20952 if test "${gl_cv_func_dup2_works+set}" = set; then :
20953 $as_echo_n "(cached) " >&6
20954 else
20955 if test "$cross_compiling" = yes; then :
20956 case "$host_os" in
20957 mingw*) # on this platform, dup2 always returns 0 for success
20958 gl_cv_func_dup2_works="guessing no" ;;
20959 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
20960 gl_cv_func_dup2_works="guessing no" ;;
20961 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
20962 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
20963 gl_cv_func_dup2_works="guessing no" ;;
20964 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
20965 gl_cv_func_dup2_works="guessing no" ;;
20966 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
20967 gl_cv_func_dup2_works="guessing no" ;;
20968 *) gl_cv_func_dup2_works="guessing yes" ;;
20969 esac
20970 else
20971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20972 /* end confdefs.h. */
20974 #include <unistd.h>
20975 #include <fcntl.h>
20976 #include <errno.h>
20978 main ()
20980 int result = 0;
20981 #ifdef FD_CLOEXEC
20982 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
20983 result |= 1;
20984 #endif
20985 if (dup2 (1, 1) == 0)
20986 result |= 2;
20987 #ifdef FD_CLOEXEC
20988 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
20989 result |= 4;
20990 #endif
20991 close (0);
20992 if (dup2 (0, 0) != -1)
20993 result |= 8;
20994 /* Many gnulib modules require POSIX conformance of EBADF. */
20995 if (dup2 (2, 1000000) == -1 && errno != EBADF)
20996 result |= 16;
20997 /* Flush out a cygwin core dump. */
20998 if (dup2 (2, -1) != -1 || errno != EBADF)
20999 result |= 32;
21000 return result;
21003 return 0;
21006 _ACEOF
21007 if ac_fn_c_try_run "$LINENO"; then :
21008 gl_cv_func_dup2_works=yes
21009 else
21010 gl_cv_func_dup2_works=no
21012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21013 conftest.$ac_objext conftest.beam conftest.$ac_ext
21018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
21019 $as_echo "$gl_cv_func_dup2_works" >&6; }
21020 case "$gl_cv_func_dup2_works" in
21021 *yes) ;;
21023 REPLACE_DUP2=1
21025 esac
21029 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
21038 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
21047 GNULIB_DUP2=1
21059 GNULIB_ENVIRON=1
21068 LIB_EXECINFO=''
21069 EXECINFO_H='execinfo.h'
21071 if test $ac_cv_header_execinfo_h = yes; then
21072 gl_saved_libs=$LIBS
21073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
21074 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
21075 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
21076 $as_echo_n "(cached) " >&6
21077 else
21078 ac_func_search_save_LIBS=$LIBS
21079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21080 /* end confdefs.h. */
21082 /* Override any GCC internal prototype to avoid an error.
21083 Use char because int might match the return type of a GCC
21084 builtin and then its argument prototype would still apply. */
21085 #ifdef __cplusplus
21086 extern "C"
21087 #endif
21088 char backtrace_symbols_fd ();
21090 main ()
21092 return backtrace_symbols_fd ();
21094 return 0;
21096 _ACEOF
21097 for ac_lib in '' execinfo; do
21098 if test -z "$ac_lib"; then
21099 ac_res="none required"
21100 else
21101 ac_res=-l$ac_lib
21102 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21104 if ac_fn_c_try_link "$LINENO"; then :
21105 ac_cv_search_backtrace_symbols_fd=$ac_res
21107 rm -f core conftest.err conftest.$ac_objext \
21108 conftest$ac_exeext
21109 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
21110 break
21112 done
21113 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
21115 else
21116 ac_cv_search_backtrace_symbols_fd=no
21118 rm conftest.$ac_ext
21119 LIBS=$ac_func_search_save_LIBS
21121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
21122 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
21123 ac_res=$ac_cv_search_backtrace_symbols_fd
21124 if test "$ac_res" != no; then :
21125 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21126 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
21127 LIB_EXECINFO=$ac_cv_search_backtrace_symbols_fd
21130 LIBS=$gl_saved_libs
21131 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H=''
21134 if test -n "$EXECINFO_H"; then
21143 gl_LIBOBJS="$gl_LIBOBJS execinfo.$ac_objext"
21149 if test -n "$EXECINFO_H"; then
21150 GL_GENERATE_EXECINFO_H_TRUE=
21151 GL_GENERATE_EXECINFO_H_FALSE='#'
21152 else
21153 GL_GENERATE_EXECINFO_H_TRUE='#'
21154 GL_GENERATE_EXECINFO_H_FALSE=
21165 if test $ac_cv_func_faccessat = no; then
21166 HAVE_FACCESSAT=0
21169 if test $HAVE_FACCESSAT = 0; then
21178 gl_LIBOBJS="$gl_LIBOBJS faccessat.$ac_objext"
21181 for ac_func in access
21182 do :
21183 ac_fn_c_check_func "$LINENO" "access" "ac_cv_func_access"
21184 if test "x$ac_cv_func_access" = x""yes; then :
21185 cat >>confdefs.h <<_ACEOF
21186 #define HAVE_ACCESS 1
21187 _ACEOF
21190 done
21196 cat >>confdefs.h <<_ACEOF
21197 #define GNULIB_FACCESSAT 1
21198 _ACEOF
21206 GNULIB_FACCESSAT=1
21223 if test $gl_cv_have_include_next = yes; then
21224 gl_cv_next_fcntl_h='<'fcntl.h'>'
21225 else
21226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
21227 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
21228 if test "${gl_cv_next_fcntl_h+set}" = set; then :
21229 $as_echo_n "(cached) " >&6
21230 else
21232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21233 /* end confdefs.h. */
21234 #include <fcntl.h>
21236 _ACEOF
21237 case "$host_os" in
21238 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21239 *) gl_absname_cpp="$ac_cpp" ;;
21240 esac
21242 case "$host_os" in
21243 mingw*)
21244 gl_dirsep_regex='[/\\]'
21247 gl_dirsep_regex='\/'
21249 esac
21250 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21252 gl_header_literal_regex=`echo 'fcntl.h' \
21253 | sed -e "$gl_make_literal_regex_sed"`
21254 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21255 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21256 s|^/[^/]|//&|
21260 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21261 sed -n "$gl_absolute_header_sed"`'"'
21265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
21266 $as_echo "$gl_cv_next_fcntl_h" >&6; }
21268 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
21270 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21271 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21272 gl_next_as_first_directive='<'fcntl.h'>'
21273 else
21274 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21275 gl_next_as_first_directive=$gl_cv_next_fcntl_h
21277 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
21293 LIB_FDATASYNC=
21296 if test $ac_cv_have_decl_fdatasync = no; then
21297 HAVE_DECL_FDATASYNC=0
21298 for ac_func in fdatasync
21299 do :
21300 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
21301 if test "x$ac_cv_func_fdatasync" = x""yes; then :
21302 cat >>confdefs.h <<_ACEOF
21303 #define HAVE_FDATASYNC 1
21304 _ACEOF
21307 done
21309 if test $ac_cv_func_fdatasync = no; then
21310 HAVE_FDATASYNC=0
21312 else
21313 gl_saved_libs=$LIBS
21314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
21315 $as_echo_n "checking for library containing fdatasync... " >&6; }
21316 if test "${ac_cv_search_fdatasync+set}" = set; then :
21317 $as_echo_n "(cached) " >&6
21318 else
21319 ac_func_search_save_LIBS=$LIBS
21320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21321 /* end confdefs.h. */
21323 /* Override any GCC internal prototype to avoid an error.
21324 Use char because int might match the return type of a GCC
21325 builtin and then its argument prototype would still apply. */
21326 #ifdef __cplusplus
21327 extern "C"
21328 #endif
21329 char fdatasync ();
21331 main ()
21333 return fdatasync ();
21335 return 0;
21337 _ACEOF
21338 for ac_lib in '' rt posix4; do
21339 if test -z "$ac_lib"; then
21340 ac_res="none required"
21341 else
21342 ac_res=-l$ac_lib
21343 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21345 if ac_fn_c_try_link "$LINENO"; then :
21346 ac_cv_search_fdatasync=$ac_res
21348 rm -f core conftest.err conftest.$ac_objext \
21349 conftest$ac_exeext
21350 if test "${ac_cv_search_fdatasync+set}" = set; then :
21351 break
21353 done
21354 if test "${ac_cv_search_fdatasync+set}" = set; then :
21356 else
21357 ac_cv_search_fdatasync=no
21359 rm conftest.$ac_ext
21360 LIBS=$ac_func_search_save_LIBS
21362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
21363 $as_echo "$ac_cv_search_fdatasync" >&6; }
21364 ac_res=$ac_cv_search_fdatasync
21365 if test "$ac_res" != no; then :
21366 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21367 test "$ac_cv_search_fdatasync" = "none required" ||
21368 LIB_FDATASYNC=$ac_cv_search_fdatasync
21371 LIBS=$gl_saved_libs
21374 if test $HAVE_FDATASYNC = 0; then
21383 gl_LIBOBJS="$gl_LIBOBJS fdatasync.$ac_objext"
21391 GNULIB_FDATASYNC=1
21402 ac_fn_c_check_decl "$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
21403 #include <dirent.h>
21406 if test "x$ac_cv_have_decl_fdopendir" = x""yes; then :
21407 ac_have_decl=1
21408 else
21409 ac_have_decl=0
21412 cat >>confdefs.h <<_ACEOF
21413 #define HAVE_DECL_FDOPENDIR $ac_have_decl
21414 _ACEOF
21415 if test $ac_have_decl = 1; then :
21417 else
21418 HAVE_DECL_FDOPENDIR=0
21422 if test $ac_cv_func_fdopendir = no; then
21423 HAVE_FDOPENDIR=0
21424 else
21425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
21426 $as_echo_n "checking whether fdopendir works... " >&6; }
21427 if test "${gl_cv_func_fdopendir_works+set}" = set; then :
21428 $as_echo_n "(cached) " >&6
21429 else
21430 if test "$cross_compiling" = yes; then :
21431 case "$host_os" in
21432 # Guess yes on glibc systems.
21433 *-gnu*) gl_cv_func_fdopendir_works="guessing yes" ;;
21434 # If we don't know, assume the worst.
21435 *) gl_cv_func_fdopendir_works="guessing no" ;;
21436 esac
21438 else
21439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21440 /* end confdefs.h. */
21442 #include <dirent.h>
21443 #include <fcntl.h>
21444 #include <unistd.h>
21445 #if !HAVE_DECL_FDOPENDIR
21446 extern
21447 # ifdef __cplusplus
21449 # endif
21450 DIR *fdopendir (int);
21451 #endif
21454 main ()
21456 int result = 0;
21457 int fd = open ("conftest.c", O_RDONLY);
21458 if (fd < 0) result |= 1;
21459 if (fdopendir (fd)) result |= 2;
21460 if (close (fd)) result |= 4;
21461 return result;
21463 return 0;
21465 _ACEOF
21466 if ac_fn_c_try_run "$LINENO"; then :
21467 gl_cv_func_fdopendir_works=yes
21468 else
21469 gl_cv_func_fdopendir_works=no
21471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21472 conftest.$ac_objext conftest.beam conftest.$ac_ext
21476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
21477 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
21478 case "$gl_cv_func_fdopendir_works" in
21479 *yes) ;;
21481 REPLACE_FDOPENDIR=1
21483 esac
21486 if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
21495 gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
21503 GNULIB_FDOPENDIR=1
21511 cat >>confdefs.h <<_ACEOF
21512 #define GNULIB_FDOPENDIR 1
21513 _ACEOF
21523 fp_headers='
21524 # include <stdio.h>
21525 # if HAVE_STDIO_EXT_H
21526 # include <stdio_ext.h>
21527 # endif
21529 ac_fn_c_check_decl "$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
21531 if test "x$ac_cv_have_decl___fpending" = x""yes; then :
21532 ac_have_decl=1
21533 else
21534 ac_have_decl=0
21537 cat >>confdefs.h <<_ACEOF
21538 #define HAVE_DECL___FPENDING $ac_have_decl
21539 _ACEOF
21542 if test $ac_cv_func___fpending = no; then
21551 gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
21554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
21555 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
21556 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
21557 $as_echo_n "(cached) " >&6
21558 else
21560 for ac_expr in \
21562 '# glibc2' \
21563 'fp->_IO_write_ptr - fp->_IO_write_base' \
21565 '# traditional Unix' \
21566 'fp->_ptr - fp->_base' \
21568 '# BSD' \
21569 'fp->_p - fp->_bf._base' \
21571 '# SCO, Unixware' \
21572 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
21574 '# QNX' \
21575 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
21577 '# old glibc?' \
21578 'fp->__bufp - fp->__buffer' \
21580 '# old glibc iostream?' \
21581 'fp->_pptr - fp->_pbase' \
21583 '# emx+gcc' \
21584 'fp->_ptr - fp->_buffer' \
21586 '# Minix' \
21587 'fp->_ptr - fp->_buf' \
21589 '# Plan9' \
21590 'fp->wp - fp->buf' \
21592 '# VMS' \
21593 '(*fp)->_ptr - (*fp)->_base' \
21595 '# e.g., DGUX R4.11; the info is not available' \
21597 ; do
21599 # Skip each embedded comment.
21600 case "$ac_expr" in '#'*) continue;; esac
21602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21603 /* end confdefs.h. */
21604 #include <stdio.h>
21606 main ()
21608 FILE *fp = stdin; (void) ($ac_expr);
21610 return 0;
21612 _ACEOF
21613 if ac_fn_c_try_compile "$LINENO"; then :
21614 fp_done=yes
21617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21618 test "$fp_done" = yes && break
21619 done
21621 ac_cv_sys_pending_output_n_bytes=$ac_expr
21625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
21626 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
21628 cat >>confdefs.h <<_ACEOF
21629 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
21630 _ACEOF
21640 if test $ac_cv_func_fstatat = no; then
21641 HAVE_FSTATAT=0
21642 else
21643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
21644 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
21645 if test "${gl_cv_func_fstatat_zero_flag+set}" = set; then :
21646 $as_echo_n "(cached) " >&6
21647 else
21648 if test "$cross_compiling" = yes; then :
21649 case "$host_os" in
21650 aix*) gl_cv_func_fstatat_zero_flag="guessing no";;
21651 *) gl_cv_func_fstatat_zero_flag="guessing yes";;
21652 esac
21654 else
21655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21656 /* end confdefs.h. */
21658 #include <fcntl.h>
21659 #include <sys/stat.h>
21661 main (void)
21663 struct stat a;
21664 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
21667 _ACEOF
21668 if ac_fn_c_try_run "$LINENO"; then :
21669 gl_cv_func_fstatat_zero_flag=yes
21670 else
21671 gl_cv_func_fstatat_zero_flag=no
21673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21674 conftest.$ac_objext conftest.beam conftest.$ac_ext
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
21680 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
21682 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
21683 *yes+*yes) ;;
21684 *) REPLACE_FSTATAT=1
21685 case $gl_cv_func_fstatat_zero_flag in
21686 *yes)
21688 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
21691 esac
21693 esac
21696 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
21705 gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
21713 GNULIB_FSTATAT=1
21722 if test $ac_cv_func_fsync = no; then
21723 HAVE_FSYNC=0
21726 if test $HAVE_FSYNC = 0; then
21735 gl_LIBOBJS="$gl_LIBOBJS fsync.$ac_objext"
21744 GNULIB_FSYNC=1
21752 # Persuade glibc <stdlib.h> to declare getloadavg().
21755 gl_save_LIBS=$LIBS
21757 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
21758 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
21759 HAVE_GETLOADAVG=1
21760 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
21761 if test "x$ac_cv_func_getloadavg" = x""yes; then :
21763 else
21764 gl_func_getloadavg_done=no
21766 # Some systems with -lutil have (and need) -lkvm as well, some do not.
21767 # On Solaris, -lkvm requires nlist from -lelf, so check that first
21768 # to get the right answer into the cache.
21769 # For kstat on solaris, we need to test for libelf and libkvm to force the
21770 # definition of SVR4 below.
21771 if test $gl_func_getloadavg_done = no; then
21772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
21773 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
21774 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
21775 $as_echo_n "(cached) " >&6
21776 else
21777 ac_check_lib_save_LIBS=$LIBS
21778 LIBS="-lelf $LIBS"
21779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21780 /* end confdefs.h. */
21782 /* Override any GCC internal prototype to avoid an error.
21783 Use char because int might match the return type of a GCC
21784 builtin and then its argument prototype would still apply. */
21785 #ifdef __cplusplus
21786 extern "C"
21787 #endif
21788 char elf_begin ();
21790 main ()
21792 return elf_begin ();
21794 return 0;
21796 _ACEOF
21797 if ac_fn_c_try_link "$LINENO"; then :
21798 ac_cv_lib_elf_elf_begin=yes
21799 else
21800 ac_cv_lib_elf_elf_begin=no
21802 rm -f core conftest.err conftest.$ac_objext \
21803 conftest$ac_exeext conftest.$ac_ext
21804 LIBS=$ac_check_lib_save_LIBS
21806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
21807 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
21808 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
21809 LIBS="-lelf $LIBS"
21812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
21813 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
21814 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
21815 $as_echo_n "(cached) " >&6
21816 else
21817 ac_check_lib_save_LIBS=$LIBS
21818 LIBS="-lkvm $LIBS"
21819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21820 /* end confdefs.h. */
21822 /* Override any GCC internal prototype to avoid an error.
21823 Use char because int might match the return type of a GCC
21824 builtin and then its argument prototype would still apply. */
21825 #ifdef __cplusplus
21826 extern "C"
21827 #endif
21828 char kvm_open ();
21830 main ()
21832 return kvm_open ();
21834 return 0;
21836 _ACEOF
21837 if ac_fn_c_try_link "$LINENO"; then :
21838 ac_cv_lib_kvm_kvm_open=yes
21839 else
21840 ac_cv_lib_kvm_kvm_open=no
21842 rm -f core conftest.err conftest.$ac_objext \
21843 conftest$ac_exeext conftest.$ac_ext
21844 LIBS=$ac_check_lib_save_LIBS
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
21847 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
21848 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
21849 LIBS="-lkvm $LIBS"
21852 # Check for the 4.4BSD definition of getloadavg.
21853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
21854 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
21855 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
21856 $as_echo_n "(cached) " >&6
21857 else
21858 ac_check_lib_save_LIBS=$LIBS
21859 LIBS="-lutil $LIBS"
21860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21861 /* end confdefs.h. */
21863 /* Override any GCC internal prototype to avoid an error.
21864 Use char because int might match the return type of a GCC
21865 builtin and then its argument prototype would still apply. */
21866 #ifdef __cplusplus
21867 extern "C"
21868 #endif
21869 char getloadavg ();
21871 main ()
21873 return getloadavg ();
21875 return 0;
21877 _ACEOF
21878 if ac_fn_c_try_link "$LINENO"; then :
21879 ac_cv_lib_util_getloadavg=yes
21880 else
21881 ac_cv_lib_util_getloadavg=no
21883 rm -f core conftest.err conftest.$ac_objext \
21884 conftest$ac_exeext conftest.$ac_ext
21885 LIBS=$ac_check_lib_save_LIBS
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
21888 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
21889 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
21890 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
21895 if test $gl_func_getloadavg_done = no; then
21896 # There is a commonly available library for RS/6000 AIX.
21897 # Since it is not a standard part of AIX, it might be installed locally.
21898 gl_getloadavg_LIBS=$LIBS
21899 LIBS="-L/usr/local/lib $LIBS"
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
21901 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
21902 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
21903 $as_echo_n "(cached) " >&6
21904 else
21905 ac_check_lib_save_LIBS=$LIBS
21906 LIBS="-lgetloadavg $LIBS"
21907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21908 /* end confdefs.h. */
21910 /* Override any GCC internal prototype to avoid an error.
21911 Use char because int might match the return type of a GCC
21912 builtin and then its argument prototype would still apply. */
21913 #ifdef __cplusplus
21914 extern "C"
21915 #endif
21916 char getloadavg ();
21918 main ()
21920 return getloadavg ();
21922 return 0;
21924 _ACEOF
21925 if ac_fn_c_try_link "$LINENO"; then :
21926 ac_cv_lib_getloadavg_getloadavg=yes
21927 else
21928 ac_cv_lib_getloadavg_getloadavg=no
21930 rm -f core conftest.err conftest.$ac_objext \
21931 conftest$ac_exeext conftest.$ac_ext
21932 LIBS=$ac_check_lib_save_LIBS
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
21935 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
21936 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
21937 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
21938 else
21939 LIBS=$gl_getloadavg_LIBS
21944 # Set up the replacement function if necessary.
21945 if test $gl_func_getloadavg_done = no; then
21946 HAVE_GETLOADAVG=0
21948 # Solaris has libkstat which does not require root.
21949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
21950 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
21951 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
21952 $as_echo_n "(cached) " >&6
21953 else
21954 ac_check_lib_save_LIBS=$LIBS
21955 LIBS="-lkstat $LIBS"
21956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21957 /* end confdefs.h. */
21959 /* Override any GCC internal prototype to avoid an error.
21960 Use char because int might match the return type of a GCC
21961 builtin and then its argument prototype would still apply. */
21962 #ifdef __cplusplus
21963 extern "C"
21964 #endif
21965 char kstat_open ();
21967 main ()
21969 return kstat_open ();
21971 return 0;
21973 _ACEOF
21974 if ac_fn_c_try_link "$LINENO"; then :
21975 ac_cv_lib_kstat_kstat_open=yes
21976 else
21977 ac_cv_lib_kstat_kstat_open=no
21979 rm -f core conftest.err conftest.$ac_objext \
21980 conftest$ac_exeext conftest.$ac_ext
21981 LIBS=$ac_check_lib_save_LIBS
21983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
21984 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
21985 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
21986 cat >>confdefs.h <<_ACEOF
21987 #define HAVE_LIBKSTAT 1
21988 _ACEOF
21990 LIBS="-lkstat $LIBS"
21994 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
21996 # AIX has libperfstat which does not require root
21997 if test $gl_func_getloadavg_done = no; then
21998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
21999 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
22000 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
22001 $as_echo_n "(cached) " >&6
22002 else
22003 ac_check_lib_save_LIBS=$LIBS
22004 LIBS="-lperfstat $LIBS"
22005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22006 /* end confdefs.h. */
22008 /* Override any GCC internal prototype to avoid an error.
22009 Use char because int might match the return type of a GCC
22010 builtin and then its argument prototype would still apply. */
22011 #ifdef __cplusplus
22012 extern "C"
22013 #endif
22014 char perfstat_cpu_total ();
22016 main ()
22018 return perfstat_cpu_total ();
22020 return 0;
22022 _ACEOF
22023 if ac_fn_c_try_link "$LINENO"; then :
22024 ac_cv_lib_perfstat_perfstat_cpu_total=yes
22025 else
22026 ac_cv_lib_perfstat_perfstat_cpu_total=no
22028 rm -f core conftest.err conftest.$ac_objext \
22029 conftest$ac_exeext conftest.$ac_ext
22030 LIBS=$ac_check_lib_save_LIBS
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
22033 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
22034 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
22035 cat >>confdefs.h <<_ACEOF
22036 #define HAVE_LIBPERFSTAT 1
22037 _ACEOF
22039 LIBS="-lperfstat $LIBS"
22043 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
22046 if test $gl_func_getloadavg_done = no; then
22047 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
22048 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
22049 gl_func_getloadavg_done=yes
22051 $as_echo "#define DGUX 1" >>confdefs.h
22053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
22054 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
22055 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
22056 $as_echo_n "(cached) " >&6
22057 else
22058 ac_check_lib_save_LIBS=$LIBS
22059 LIBS="-ldgc $LIBS"
22060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22061 /* end confdefs.h. */
22063 /* Override any GCC internal prototype to avoid an error.
22064 Use char because int might match the return type of a GCC
22065 builtin and then its argument prototype would still apply. */
22066 #ifdef __cplusplus
22067 extern "C"
22068 #endif
22069 char dg_sys_info ();
22071 main ()
22073 return dg_sys_info ();
22075 return 0;
22077 _ACEOF
22078 if ac_fn_c_try_link "$LINENO"; then :
22079 ac_cv_lib_dgc_dg_sys_info=yes
22080 else
22081 ac_cv_lib_dgc_dg_sys_info=no
22083 rm -f core conftest.err conftest.$ac_objext \
22084 conftest$ac_exeext conftest.$ac_ext
22085 LIBS=$ac_check_lib_save_LIBS
22087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
22088 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
22089 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
22090 cat >>confdefs.h <<_ACEOF
22091 #define HAVE_LIBDGC 1
22092 _ACEOF
22094 LIBS="-ldgc $LIBS"
22106 if test "x$gl_save_LIBS" = x; then
22107 GETLOADAVG_LIBS=$LIBS
22108 else
22109 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
22111 LIBS=$gl_save_LIBS
22114 # Test whether the system declares getloadavg. Solaris has the function
22115 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
22116 for ac_header in sys/loadavg.h
22117 do :
22118 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
22119 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
22120 cat >>confdefs.h <<_ACEOF
22121 #define HAVE_SYS_LOADAVG_H 1
22122 _ACEOF
22126 done
22128 if test $ac_cv_header_sys_loadavg_h = yes; then
22129 HAVE_SYS_LOADAVG_H=1
22130 else
22131 HAVE_SYS_LOADAVG_H=0
22133 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
22134 # include <sys/loadavg.h>
22135 #endif
22136 #include <stdlib.h>
22138 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
22140 else
22141 HAVE_DECL_GETLOADAVG=0
22145 if test $HAVE_GETLOADAVG = 0; then
22154 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
22157 # Figure out what our getloadavg.c needs.
22161 # On HPUX9, an unprivileged user can get load averages this way.
22162 if test $gl_func_getloadavg_done = no; then
22163 for ac_func in pstat_getdynamic
22164 do :
22165 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
22166 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
22167 cat >>confdefs.h <<_ACEOF
22168 #define HAVE_PSTAT_GETDYNAMIC 1
22169 _ACEOF
22170 gl_func_getloadavg_done=yes
22172 done
22176 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
22177 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
22178 # Irix 4.0.5F has the header but not the library.
22179 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
22180 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
22181 gl_func_getloadavg_done=yes
22183 $as_echo "#define SVR4 1" >>confdefs.h
22187 if test $gl_func_getloadavg_done = no; then
22188 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
22189 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
22190 gl_func_getloadavg_done=yes
22192 $as_echo "#define UMAX 1" >>confdefs.h
22195 $as_echo "#define UMAX4_3 1" >>confdefs.h
22202 if test $gl_func_getloadavg_done = no; then
22203 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
22204 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
22205 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
22212 if test $gl_func_getloadavg_done = no; then
22213 for ac_header in mach/mach.h
22214 do :
22215 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
22216 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
22217 cat >>confdefs.h <<_ACEOF
22218 #define HAVE_MACH_MACH_H 1
22219 _ACEOF
22223 done
22227 for ac_header in nlist.h
22228 do :
22229 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
22230 if test "x$ac_cv_header_nlist_h" = x""yes; then :
22231 cat >>confdefs.h <<_ACEOF
22232 #define HAVE_NLIST_H 1
22233 _ACEOF
22234 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
22236 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
22238 cat >>confdefs.h <<_ACEOF
22239 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
22240 _ACEOF
22245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22246 /* end confdefs.h. */
22247 #include <nlist.h>
22249 main ()
22251 struct nlist x;
22252 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
22253 x.n_un.n_name = "";
22254 #else
22255 x.n_name = "";
22256 #endif
22258 return 0;
22260 _ACEOF
22261 if ac_fn_c_try_link "$LINENO"; then :
22263 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
22266 rm -f core conftest.err conftest.$ac_objext \
22267 conftest$ac_exeext conftest.$ac_ext
22271 done
22279 GNULIB_GETLOADAVG=1
22290 if test $REPLACE_GETOPT = 1; then
22299 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
22309 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
22314 GNULIB_GL_UNISTD_H_GETOPT=1
22323 REPLACE_GETOPT=0
22324 if test -n "$gl_replace_getopt"; then
22325 REPLACE_GETOPT=1
22328 if test $REPLACE_GETOPT = 1; then
22330 GETOPT_H=getopt.h
22332 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
22338 if test $REPLACE_GETOPT = 1; then
22347 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
22357 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
22362 GNULIB_GL_UNISTD_H_GETOPT=1
22376 gl_gettimeofday_timezone=void
22377 if test $ac_cv_func_gettimeofday != yes; then
22378 HAVE_GETTIMEOFDAY=0
22379 else
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
22384 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
22385 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
22386 $as_echo_n "(cached) " >&6
22387 else
22388 if test "$cross_compiling" = yes; then :
22389 # When cross-compiling:
22390 case "$host_os" in
22391 # Guess all is fine on glibc systems.
22392 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
22393 # If we don't know, assume the worst.
22394 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
22395 esac
22397 else
22398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22399 /* end confdefs.h. */
22400 #include <string.h>
22401 #include <sys/time.h>
22402 #include <time.h>
22403 #include <stdlib.h>
22406 main ()
22409 time_t t = 0;
22410 struct tm *lt;
22411 struct tm saved_lt;
22412 struct timeval tv;
22413 lt = localtime (&t);
22414 saved_lt = *lt;
22415 gettimeofday (&tv, NULL);
22416 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
22419 return 0;
22421 _ACEOF
22422 if ac_fn_c_try_run "$LINENO"; then :
22423 gl_cv_func_gettimeofday_clobber=no
22424 else
22425 gl_cv_func_gettimeofday_clobber=yes
22427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22428 conftest.$ac_objext conftest.beam conftest.$ac_ext
22432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
22433 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
22435 case "$gl_cv_func_gettimeofday_clobber" in
22436 *yes)
22437 REPLACE_GETTIMEOFDAY=1
22440 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
22443 $as_echo "#define localtime rpl_localtime" >>confdefs.h
22447 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
22450 esac
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
22453 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
22454 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
22455 $as_echo_n "(cached) " >&6
22456 else
22457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22458 /* end confdefs.h. */
22459 #include <sys/time.h>
22460 struct timeval c;
22461 int gettimeofday (struct timeval *restrict, void *restrict);
22464 main ()
22466 /* glibc uses struct timezone * rather than the POSIX void *
22467 if _GNU_SOURCE is defined. However, since the only portable
22468 use of gettimeofday uses NULL as the second parameter, and
22469 since the glibc definition is actually more typesafe, it is
22470 not worth wrapping this to get a compliant signature. */
22471 int (*f) (struct timeval *restrict, void *restrict)
22472 = gettimeofday;
22473 int x = f (&c, 0);
22474 return !(x | c.tv_sec | c.tv_usec);
22477 return 0;
22479 _ACEOF
22480 if ac_fn_c_try_compile "$LINENO"; then :
22481 gl_cv_func_gettimeofday_posix_signature=yes
22482 else
22483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22484 /* end confdefs.h. */
22485 #include <sys/time.h>
22486 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
22489 main ()
22493 return 0;
22495 _ACEOF
22496 if ac_fn_c_try_compile "$LINENO"; then :
22497 gl_cv_func_gettimeofday_posix_signature=almost
22498 else
22499 gl_cv_func_gettimeofday_posix_signature=no
22501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
22506 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
22507 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
22508 gl_gettimeofday_timezone='struct timezone'
22509 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
22510 REPLACE_GETTIMEOFDAY=1
22512 if test $REPLACE_STRUCT_TIMEVAL = 1; then
22513 REPLACE_GETTIMEOFDAY=1
22518 cat >>confdefs.h <<_ACEOF
22519 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
22520 _ACEOF
22523 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
22532 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
22535 for ac_header in sys/timeb.h
22536 do :
22537 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
22538 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
22539 cat >>confdefs.h <<_ACEOF
22540 #define HAVE_SYS_TIMEB_H 1
22541 _ACEOF
22545 done
22547 for ac_func in _ftime
22548 do :
22549 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
22550 if test "x$ac_cv_func__ftime" = x""yes; then :
22551 cat >>confdefs.h <<_ACEOF
22552 #define HAVE__FTIME 1
22553 _ACEOF
22556 done
22565 GNULIB_GETTIMEOFDAY=1
22576 if test $ac_cv_func_lstat = yes; then
22578 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
22579 *no)
22580 REPLACE_LSTAT=1
22582 esac
22583 else
22584 HAVE_LSTAT=0
22587 if test $REPLACE_LSTAT = 1; then
22596 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
22605 GNULIB_LSTAT=1
22616 if test $ac_cv_have_decl_memrchr = no; then
22617 HAVE_DECL_MEMRCHR=0
22620 for ac_func in memrchr
22621 do :
22622 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
22623 if test "x$ac_cv_func_memrchr" = x""yes; then :
22624 cat >>confdefs.h <<_ACEOF
22625 #define HAVE_MEMRCHR 1
22626 _ACEOF
22629 done
22632 if test $ac_cv_func_memrchr = no; then
22641 gl_LIBOBJS="$gl_LIBOBJS memrchr.$ac_objext"
22650 GNULIB_MEMRCHR=1
22662 if test $APPLE_UNIVERSAL_BUILD = 1; then
22663 # A universal build on Apple Mac OS X platforms.
22664 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
22665 # But we need a configuration result that is valid in both modes.
22666 gl_cv_func_working_mktime=no
22668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
22669 $as_echo_n "checking for working mktime... " >&6; }
22670 if test "${gl_cv_func_working_mktime+set}" = set; then :
22671 $as_echo_n "(cached) " >&6
22672 else
22673 if test "$cross_compiling" = yes; then :
22674 gl_cv_func_working_mktime=no
22675 else
22676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22677 /* end confdefs.h. */
22678 /* Test program from Paul Eggert and Tony Leneis. */
22679 #include <limits.h>
22680 #include <stdlib.h>
22681 #include <time.h>
22683 #ifdef HAVE_UNISTD_H
22684 # include <unistd.h>
22685 #endif
22687 #if HAVE_DECL_ALARM
22688 # include <signal.h>
22689 #endif
22691 /* Work around redefinition to rpl_putenv by other config tests. */
22692 #undef putenv
22694 static time_t time_t_max;
22695 static time_t time_t_min;
22697 /* Values we'll use to set the TZ environment variable. */
22698 static char *tz_strings[] = {
22699 (char *) 0, "TZ=GMT0", "TZ=JST-9",
22700 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
22702 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
22704 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
22705 Based on a problem report from Andreas Jaeger. */
22706 static int
22707 spring_forward_gap ()
22709 /* glibc (up to about 1998-10-07) failed this test. */
22710 struct tm tm;
22712 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22713 instead of "TZ=America/Vancouver" in order to detect the bug even
22714 on systems that don't support the Olson extension, or don't have the
22715 full zoneinfo tables installed. */
22716 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22718 tm.tm_year = 98;
22719 tm.tm_mon = 3;
22720 tm.tm_mday = 5;
22721 tm.tm_hour = 2;
22722 tm.tm_min = 0;
22723 tm.tm_sec = 0;
22724 tm.tm_isdst = -1;
22725 return mktime (&tm) != (time_t) -1;
22728 static int
22729 mktime_test1 (time_t now)
22731 struct tm *lt;
22732 return ! (lt = localtime (&now)) || mktime (lt) == now;
22735 static int
22736 mktime_test (time_t now)
22738 return (mktime_test1 (now)
22739 && mktime_test1 ((time_t) (time_t_max - now))
22740 && mktime_test1 ((time_t) (time_t_min + now)));
22743 static int
22744 irix_6_4_bug ()
22746 /* Based on code from Ariel Faigon. */
22747 struct tm tm;
22748 tm.tm_year = 96;
22749 tm.tm_mon = 3;
22750 tm.tm_mday = 0;
22751 tm.tm_hour = 0;
22752 tm.tm_min = 0;
22753 tm.tm_sec = 0;
22754 tm.tm_isdst = -1;
22755 mktime (&tm);
22756 return tm.tm_mon == 2 && tm.tm_mday == 31;
22759 static int
22760 bigtime_test (int j)
22762 struct tm tm;
22763 time_t now;
22764 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
22765 now = mktime (&tm);
22766 if (now != (time_t) -1)
22768 struct tm *lt = localtime (&now);
22769 if (! (lt
22770 && lt->tm_year == tm.tm_year
22771 && lt->tm_mon == tm.tm_mon
22772 && lt->tm_mday == tm.tm_mday
22773 && lt->tm_hour == tm.tm_hour
22774 && lt->tm_min == tm.tm_min
22775 && lt->tm_sec == tm.tm_sec
22776 && lt->tm_yday == tm.tm_yday
22777 && lt->tm_wday == tm.tm_wday
22778 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
22779 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
22780 return 0;
22782 return 1;
22785 static int
22786 year_2050_test ()
22788 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
22789 ignoring leap seconds. */
22790 unsigned long int answer = 2527315200UL;
22792 struct tm tm;
22793 time_t t;
22794 tm.tm_year = 2050 - 1900;
22795 tm.tm_mon = 2 - 1;
22796 tm.tm_mday = 1;
22797 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
22798 tm.tm_isdst = -1;
22800 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22801 instead of "TZ=America/Vancouver" in order to detect the bug even
22802 on systems that don't support the Olson extension, or don't have the
22803 full zoneinfo tables installed. */
22804 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22806 t = mktime (&tm);
22808 /* Check that the result is either a failure, or close enough
22809 to the correct answer that we can assume the discrepancy is
22810 due to leap seconds. */
22811 return (t == (time_t) -1
22812 || (0 < t && answer - 120 <= t && t <= answer + 120));
22816 main ()
22818 int result = 0;
22819 time_t t, delta;
22820 int i, j;
22821 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
22822 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
22824 #if HAVE_DECL_ALARM
22825 /* This test makes some buggy mktime implementations loop.
22826 Give up after 60 seconds; a mktime slower than that
22827 isn't worth using anyway. */
22828 signal (SIGALRM, SIG_DFL);
22829 alarm (60);
22830 #endif
22832 time_t_max = (! time_t_signed
22833 ? (time_t) -1
22834 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
22835 * 2 + 1));
22836 time_t_min = (! time_t_signed
22837 ? (time_t) 0
22838 : time_t_signed_magnitude
22839 ? ~ (time_t) 0
22840 : ~ time_t_max);
22842 delta = time_t_max / 997; /* a suitable prime number */
22843 for (i = 0; i < N_STRINGS; i++)
22845 if (tz_strings[i])
22846 putenv (tz_strings[i]);
22848 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
22849 if (! mktime_test (t))
22850 result |= 1;
22851 if ((result & 2) == 0
22852 && ! (mktime_test ((time_t) 1)
22853 && mktime_test ((time_t) (60 * 60))
22854 && mktime_test ((time_t) (60 * 60 * 24))))
22855 result |= 2;
22857 for (j = 1; (result & 4) == 0; j <<= 1)
22859 if (! bigtime_test (j))
22860 result |= 4;
22861 if (INT_MAX / 2 < j)
22862 break;
22864 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
22865 result |= 8;
22867 if (! irix_6_4_bug ())
22868 result |= 16;
22869 if (! spring_forward_gap ())
22870 result |= 32;
22871 if (! year_2050_test ())
22872 result |= 64;
22873 return result;
22875 _ACEOF
22876 if ac_fn_c_try_run "$LINENO"; then :
22877 gl_cv_func_working_mktime=yes
22878 else
22879 gl_cv_func_working_mktime=no
22881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22882 conftest.$ac_objext conftest.beam conftest.$ac_ext
22887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
22888 $as_echo "$gl_cv_func_working_mktime" >&6; }
22890 if test $gl_cv_func_working_mktime = no; then
22891 REPLACE_MKTIME=1
22892 else
22893 REPLACE_MKTIME=0
22896 if test $REPLACE_MKTIME = 1; then
22905 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
22914 GNULIB_MKTIME=1
22926 if test $ac_cv_func_pselect = yes; then
22927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
22928 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
22929 if test "${gl_cv_sig_pselect+set}" = set; then :
22930 $as_echo_n "(cached) " >&6
22931 else
22932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22933 /* end confdefs.h. */
22934 #include <sys/select.h>
22937 main ()
22939 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
22940 struct timespec const *restrict,
22941 sigset_t const *restrict) = pselect;
22942 return !p;
22944 return 0;
22946 _ACEOF
22947 if ac_fn_c_try_link "$LINENO"; then :
22948 gl_cv_sig_pselect=yes
22949 else
22950 gl_cv_sig_pselect=no
22952 rm -f core conftest.err conftest.$ac_objext \
22953 conftest$ac_exeext conftest.$ac_ext
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
22956 $as_echo "$gl_cv_sig_pselect" >&6; }
22958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
22959 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
22960 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
22961 $as_echo_n "(cached) " >&6
22962 else
22964 if test "$cross_compiling" = yes; then :
22966 case "$host_os" in
22967 # Guess yes on glibc systems.
22968 *-gnu*) gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
22969 # If we don't know, assume the worst.
22970 *) gl_cv_func_pselect_detects_ebadf="guessing no" ;;
22971 esac
22973 else
22974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22975 /* end confdefs.h. */
22977 #include <sys/types.h>
22978 #include <sys/time.h>
22979 #if HAVE_SYS_SELECT_H
22980 # include <sys/select.h>
22981 #endif
22982 #include <unistd.h>
22983 #include <errno.h>
22986 main ()
22989 fd_set set;
22990 dup2(0, 16);
22991 FD_ZERO(&set);
22992 FD_SET(16, &set);
22993 close(16);
22994 struct timespec timeout;
22995 timeout.tv_sec = 0;
22996 timeout.tv_nsec = 5000;
22997 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
23000 return 0;
23002 _ACEOF
23003 if ac_fn_c_try_run "$LINENO"; then :
23004 gl_cv_func_pselect_detects_ebadf=yes
23005 else
23006 gl_cv_func_pselect_detects_ebadf=no
23008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23009 conftest.$ac_objext conftest.beam conftest.$ac_ext
23014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
23015 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
23016 case $gl_cv_func_pselect_detects_ebadf in
23017 *yes) ;;
23018 *) REPLACE_PSELECT=1 ;;
23019 esac
23022 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
23023 REPLACE_PSELECT=1
23026 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
23035 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
23043 GNULIB_PSELECT=1
23053 LIB_PTHREAD_SIGMASK=
23058 if test "$gl_threads_api" = posix; then
23059 if test $ac_cv_func_pthread_sigmask = yes; then
23061 else
23062 if test -n "$LIBMULTITHREAD"; then
23063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
23064 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
23065 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
23066 $as_echo_n "(cached) " >&6
23067 else
23068 gl_save_LIBS="$LIBS"
23069 LIBS="$LIBS $LIBMULTITHREAD"
23070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23071 /* end confdefs.h. */
23072 #include <pthread.h>
23073 #include <signal.h>
23076 main ()
23078 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
23080 return 0;
23083 _ACEOF
23084 if ac_fn_c_try_link "$LINENO"; then :
23085 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes
23086 else
23087 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no
23089 rm -f core conftest.err conftest.$ac_objext \
23090 conftest$ac_exeext conftest.$ac_ext
23091 LIBS="$gl_save_LIBS"
23094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
23095 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
23096 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
23097 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
23098 else
23099 HAVE_PTHREAD_SIGMASK=0
23101 else
23102 HAVE_PTHREAD_SIGMASK=0
23105 else
23106 if test $ac_cv_func_pthread_sigmask = yes; then
23107 REPLACE_PTHREAD_SIGMASK=1
23108 else
23109 HAVE_PTHREAD_SIGMASK=0
23116 if test $HAVE_PTHREAD_SIGMASK = 1; then
23119 if test -z "$LIB_PTHREAD_SIGMASK"; then
23120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
23121 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
23122 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
23123 $as_echo_n "(cached) " >&6
23124 else
23126 if test "$cross_compiling" = yes; then :
23128 case "$host_os" in
23129 freebsd* | hpux* | solaris | solaris2.[2-9]*)
23130 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
23132 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
23133 esac
23135 else
23136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23137 /* end confdefs.h. */
23139 #include <pthread.h>
23140 #include <signal.h>
23141 #include <stddef.h>
23142 int main ()
23144 sigset_t set;
23145 sigemptyset (&set);
23146 return pthread_sigmask (1729, &set, NULL) != 0;
23148 _ACEOF
23149 if ac_fn_c_try_run "$LINENO"; then :
23150 gl_cv_func_pthread_sigmask_in_libc_works=no
23151 else
23152 gl_cv_func_pthread_sigmask_in_libc_works=yes
23154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23155 conftest.$ac_objext conftest.beam conftest.$ac_ext
23160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
23161 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
23162 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
23163 *no)
23164 REPLACE_PTHREAD_SIGMASK=1
23166 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
23169 esac
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
23173 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
23174 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
23175 $as_echo_n "(cached) " >&6
23176 else
23178 gl_save_LIBS="$LIBS"
23179 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
23180 if test "$cross_compiling" = yes; then :
23181 case "$host_os" in
23182 cygwin*)
23183 gl_cv_func_pthread_sigmask_return_works="guessing no";;
23185 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
23186 esac
23188 else
23189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23190 /* end confdefs.h. */
23192 #include <pthread.h>
23193 #include <signal.h>
23194 #include <stddef.h>
23195 int main ()
23197 sigset_t set;
23198 sigemptyset (&set);
23199 if (pthread_sigmask (1729, &set, NULL) == -1)
23200 return 1;
23201 return 0;
23203 _ACEOF
23204 if ac_fn_c_try_run "$LINENO"; then :
23205 gl_cv_func_pthread_sigmask_return_works=yes
23206 else
23207 gl_cv_func_pthread_sigmask_return_works=no
23209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23210 conftest.$ac_objext conftest.beam conftest.$ac_ext
23213 LIBS="$gl_save_LIBS"
23216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
23217 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
23218 case "$gl_cv_func_pthread_sigmask_return_works" in
23219 *no)
23220 REPLACE_PTHREAD_SIGMASK=1
23222 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
23225 esac
23227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
23228 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
23229 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
23230 $as_echo_n "(cached) " >&6
23231 else
23233 case "$host_os" in
23234 irix*)
23235 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
23237 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
23238 esac
23239 gl_save_LIBS="$LIBS"
23240 LIBS="$LIBS $LIBMULTITHREAD"
23241 if test "$cross_compiling" = yes; then :
23243 else
23244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23245 /* end confdefs.h. */
23247 #include <pthread.h>
23248 #include <signal.h>
23249 #include <stdio.h>
23250 #include <stdlib.h>
23251 #include <unistd.h>
23252 static volatile int sigint_occurred;
23253 static void
23254 sigint_handler (int sig)
23256 sigint_occurred++;
23258 int main ()
23260 sigset_t set;
23261 int pid = getpid ();
23262 char command[80];
23263 signal (SIGINT, sigint_handler);
23264 sigemptyset (&set);
23265 sigaddset (&set, SIGINT);
23266 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
23267 return 1;
23268 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
23269 if (!(system (command) == 0))
23270 return 2;
23271 sleep (2);
23272 if (!(sigint_occurred == 0))
23273 return 3;
23274 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
23275 return 4;
23276 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
23277 return 5;
23278 return 0;
23280 _ACEOF
23281 if ac_fn_c_try_run "$LINENO"; then :
23283 else
23284 gl_cv_func_pthread_sigmask_unblock_works=no
23286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23287 conftest.$ac_objext conftest.beam conftest.$ac_ext
23290 LIBS="$gl_save_LIBS"
23293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
23294 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
23295 case "$gl_cv_func_pthread_sigmask_unblock_works" in
23296 *no)
23297 REPLACE_PTHREAD_SIGMASK=1
23299 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
23302 esac
23305 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
23314 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
23317 if test $HAVE_PTHREAD_SIGMASK = 1; then
23319 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
23329 GNULIB_PTHREAD_SIGMASK=1
23337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
23338 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
23339 if test "${gl_cv_func_svid_putenv+set}" = set; then :
23340 $as_echo_n "(cached) " >&6
23341 else
23342 if test "$cross_compiling" = yes; then :
23343 case "$host_os" in
23344 # Guess yes on glibc systems.
23345 *-gnu*) gl_cv_func_svid_putenv="guessing yes" ;;
23346 # If we don't know, assume the worst.
23347 *) gl_cv_func_svid_putenv="guessing no" ;;
23348 esac
23350 else
23351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23352 /* end confdefs.h. */
23353 $ac_includes_default
23355 main ()
23358 /* Put it in env. */
23359 if (putenv ("CONFTEST_putenv=val"))
23360 return 1;
23362 /* Try to remove it. */
23363 if (putenv ("CONFTEST_putenv"))
23364 return 2;
23366 /* Make sure it was deleted. */
23367 if (getenv ("CONFTEST_putenv") != 0)
23368 return 3;
23370 return 0;
23373 return 0;
23375 _ACEOF
23376 if ac_fn_c_try_run "$LINENO"; then :
23377 gl_cv_func_svid_putenv=yes
23378 else
23379 gl_cv_func_svid_putenv=no
23381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23382 conftest.$ac_objext conftest.beam conftest.$ac_ext
23387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
23388 $as_echo "$gl_cv_func_svid_putenv" >&6; }
23389 case "$gl_cv_func_svid_putenv" in
23390 *yes) ;;
23392 REPLACE_PUTENV=1
23394 esac
23396 if test $REPLACE_PUTENV = 1; then
23405 gl_LIBOBJS="$gl_LIBOBJS putenv.$ac_objext"
23408 ac_fn_c_check_decl "$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default"
23409 if test "x$ac_cv_have_decl__putenv" = x""yes; then :
23410 ac_have_decl=1
23411 else
23412 ac_have_decl=0
23415 cat >>confdefs.h <<_ACEOF
23416 #define HAVE_DECL__PUTENV $ac_have_decl
23417 _ACEOF
23426 GNULIB_PUTENV=1
23435 if test $ac_cv_func_readlink = no; then
23436 HAVE_READLINK=0
23437 else
23438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
23439 $as_echo_n "checking whether readlink signature is correct... " >&6; }
23440 if test "${gl_cv_decl_readlink_works+set}" = set; then :
23441 $as_echo_n "(cached) " >&6
23442 else
23443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23444 /* end confdefs.h. */
23445 #include <unistd.h>
23446 /* Cause compilation failure if original declaration has wrong type. */
23447 ssize_t readlink (const char *, char *, size_t);
23449 main ()
23453 return 0;
23455 _ACEOF
23456 if ac_fn_c_try_compile "$LINENO"; then :
23457 gl_cv_decl_readlink_works=yes
23458 else
23459 gl_cv_decl_readlink_works=no
23461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
23464 $as_echo "$gl_cv_decl_readlink_works" >&6; }
23465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
23466 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
23467 if test "${gl_cv_func_readlink_works+set}" = set; then :
23468 $as_echo_n "(cached) " >&6
23469 else
23470 # We have readlink, so assume ln -s works.
23471 ln -s conftest.no-such conftest.link
23472 ln -s conftest.link conftest.lnk2
23473 if test "$cross_compiling" = yes; then :
23474 case "$host_os" in
23475 # Guess yes on glibc systems.
23476 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
23477 # If we don't know, assume the worst.
23478 *) gl_cv_func_readlink_works="guessing no" ;;
23479 esac
23481 else
23482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23483 /* end confdefs.h. */
23484 #include <unistd.h>
23487 main ()
23489 char buf[20];
23490 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
23492 return 0;
23494 _ACEOF
23495 if ac_fn_c_try_run "$LINENO"; then :
23496 gl_cv_func_readlink_works=yes
23497 else
23498 gl_cv_func_readlink_works=no
23500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23501 conftest.$ac_objext conftest.beam conftest.$ac_ext
23504 rm -f conftest.link conftest.lnk2
23506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
23507 $as_echo "$gl_cv_func_readlink_works" >&6; }
23508 case "$gl_cv_func_readlink_works" in
23509 *yes)
23510 if test "$gl_cv_decl_readlink_works" != yes; then
23511 REPLACE_READLINK=1
23516 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
23518 REPLACE_READLINK=1
23520 esac
23523 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
23532 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
23543 GNULIB_READLINK=1
23553 if test $ac_cv_func_readlinkat = no; then
23554 HAVE_READLINKAT=0
23557 if test $HAVE_READLINKAT = 0; then
23566 gl_LIBOBJS="$gl_LIBOBJS readlinkat.$ac_objext"
23574 GNULIB_READLINKAT=1
23581 for ac_func in sig2str
23582 do :
23583 ac_fn_c_check_func "$LINENO" "sig2str" "ac_cv_func_sig2str"
23584 if test "x$ac_cv_func_sig2str" = x""yes; then :
23585 cat >>confdefs.h <<_ACEOF
23586 #define HAVE_SIG2STR 1
23587 _ACEOF
23590 done
23593 if test $ac_cv_func_sig2str = no; then
23602 gl_LIBOBJS="$gl_LIBOBJS sig2str.$ac_objext"
23619 if test $gl_cv_have_include_next = yes; then
23620 gl_cv_next_signal_h='<'signal.h'>'
23621 else
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
23623 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
23624 if test "${gl_cv_next_signal_h+set}" = set; then :
23625 $as_echo_n "(cached) " >&6
23626 else
23628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23629 /* end confdefs.h. */
23630 #include <signal.h>
23632 _ACEOF
23633 case "$host_os" in
23634 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23635 *) gl_absname_cpp="$ac_cpp" ;;
23636 esac
23638 case "$host_os" in
23639 mingw*)
23640 gl_dirsep_regex='[/\\]'
23643 gl_dirsep_regex='\/'
23645 esac
23646 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23648 gl_header_literal_regex=`echo 'signal.h' \
23649 | sed -e "$gl_make_literal_regex_sed"`
23650 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23651 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23652 s|^/[^/]|//&|
23656 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23657 sed -n "$gl_absolute_header_sed"`'"'
23661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
23662 $as_echo "$gl_cv_next_signal_h" >&6; }
23664 NEXT_SIGNAL_H=$gl_cv_next_signal_h
23666 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23667 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23668 gl_next_as_first_directive='<'signal.h'>'
23669 else
23670 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23671 gl_next_as_first_directive=$gl_cv_next_signal_h
23673 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
23679 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
23680 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
23681 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
23682 #include <signal.h>
23685 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
23687 else
23688 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
23697 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
23698 #include <signal.h>
23701 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
23703 else
23704 HAVE_SIGHANDLER_T=0
23710 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
23711 /* <sys/types.h> is not needed according to POSIX, but the
23712 <sys/socket.h> in i386-unknown-freebsd4.10 and
23713 powerpc-apple-darwin5.5 required it. */
23714 #include <sys/types.h>
23715 #if HAVE_SYS_SOCKET_H
23716 # include <sys/socket.h>
23717 #elif HAVE_WS2TCPIP_H
23718 # include <ws2tcpip.h>
23719 #endif
23722 if test "x$ac_cv_type_socklen_t" = x""yes; then :
23724 else
23725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
23726 $as_echo_n "checking for socklen_t equivalent... " >&6; }
23727 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
23728 $as_echo_n "(cached) " >&6
23729 else
23730 # Systems have either "struct sockaddr *" or
23731 # "void *" as the second argument to getpeername
23732 gl_cv_socklen_t_equiv=
23733 for arg2 in "struct sockaddr" void; do
23734 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
23735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23736 /* end confdefs.h. */
23737 #include <sys/types.h>
23738 #include <sys/socket.h>
23740 int getpeername (int, $arg2 *, $t *);
23742 main ()
23744 $t len;
23745 getpeername (0, 0, &len);
23747 return 0;
23749 _ACEOF
23750 if ac_fn_c_try_compile "$LINENO"; then :
23751 gl_cv_socklen_t_equiv="$t"
23753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23754 test "$gl_cv_socklen_t_equiv" != "" && break
23755 done
23756 test "$gl_cv_socklen_t_equiv" != "" && break
23757 done
23761 if test "$gl_cv_socklen_t_equiv" = ""; then
23762 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
23764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
23765 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
23767 cat >>confdefs.h <<_ACEOF
23768 #define socklen_t $gl_cv_socklen_t_equiv
23769 _ACEOF
23774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
23775 $as_echo_n "checking for ssize_t... " >&6; }
23776 if test "${gt_cv_ssize_t+set}" = set; then :
23777 $as_echo_n "(cached) " >&6
23778 else
23779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23780 /* end confdefs.h. */
23781 #include <sys/types.h>
23783 main ()
23785 int x = sizeof (ssize_t *) + sizeof (ssize_t);
23786 return !x;
23788 return 0;
23790 _ACEOF
23791 if ac_fn_c_try_compile "$LINENO"; then :
23792 gt_cv_ssize_t=yes
23793 else
23794 gt_cv_ssize_t=no
23796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
23799 $as_echo "$gt_cv_ssize_t" >&6; }
23800 if test $gt_cv_ssize_t = no; then
23802 $as_echo "#define ssize_t int" >>confdefs.h
23810 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>
23811 #include <sys/stat.h>
23813 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
23815 cat >>confdefs.h <<_ACEOF
23816 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
23817 _ACEOF
23819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
23820 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
23821 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
23822 $as_echo_n "(cached) " >&6
23823 else
23824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23825 /* end confdefs.h. */
23827 #include <sys/types.h>
23828 #include <sys/stat.h>
23829 #if HAVE_SYS_TIME_H
23830 # include <sys/time.h>
23831 #endif
23832 #include <time.h>
23833 struct timespec ts;
23834 struct stat st;
23837 main ()
23840 st.st_atim = ts;
23843 return 0;
23845 _ACEOF
23846 if ac_fn_c_try_compile "$LINENO"; then :
23847 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
23848 else
23849 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
23851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
23854 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
23855 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
23857 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
23860 else
23861 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>
23862 #include <sys/stat.h>
23864 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
23866 cat >>confdefs.h <<_ACEOF
23867 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
23868 _ACEOF
23871 else
23872 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
23873 #include <sys/stat.h>
23875 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
23877 cat >>confdefs.h <<_ACEOF
23878 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
23879 _ACEOF
23882 else
23883 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>
23884 #include <sys/stat.h>
23886 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
23888 cat >>confdefs.h <<_ACEOF
23889 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
23890 _ACEOF
23905 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>
23906 #include <sys/stat.h>
23908 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
23910 cat >>confdefs.h <<_ACEOF
23911 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
23912 _ACEOF
23915 else
23916 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
23917 #include <sys/stat.h>
23919 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
23921 cat >>confdefs.h <<_ACEOF
23922 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
23923 _ACEOF
23926 else
23927 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>
23928 #include <sys/stat.h>
23930 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
23932 cat >>confdefs.h <<_ACEOF
23933 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
23934 _ACEOF
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
23946 $as_echo_n "checking for working stdalign.h... " >&6; }
23947 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
23948 $as_echo_n "(cached) " >&6
23949 else
23950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23951 /* end confdefs.h. */
23952 #include <stdalign.h>
23953 #include <stddef.h>
23955 /* Test that alignof yields a result consistent with offsetof.
23956 This catches GCC bug 52023
23957 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
23958 #ifdef __cplusplus
23959 template <class t> struct alignof_helper { char a; t b; };
23960 # define ao(type) offsetof (alignof_helper<type>, b)
23961 #else
23962 # define ao(type) offsetof (struct { char a; type b; }, b)
23963 #endif
23964 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
23965 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
23966 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
23968 /* Test _Alignas only on platforms where gnulib can help. */
23969 #if \
23970 (__GNUC__ || __IBMC__ || __IBMCPP__ \
23971 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
23972 struct alignas_test { char c; char alignas (8) alignas_8; };
23973 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
23974 ? 1 : -1];
23975 #endif
23978 main ()
23982 return 0;
23984 _ACEOF
23985 if ac_fn_c_try_compile "$LINENO"; then :
23986 gl_cv_header_working_stdalign_h=yes
23987 else
23988 gl_cv_header_working_stdalign_h=no
23990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
23993 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
23995 if test $gl_cv_header_working_stdalign_h = yes; then
23996 STDALIGN_H=''
23997 else
23998 STDALIGN_H='stdalign.h'
24002 if test -n "$STDALIGN_H"; then
24003 GL_GENERATE_STDALIGN_H_TRUE=
24004 GL_GENERATE_STDALIGN_H_FALSE='#'
24005 else
24006 GL_GENERATE_STDALIGN_H_TRUE='#'
24007 GL_GENERATE_STDALIGN_H_FALSE=
24012 STDARG_H=''
24013 NEXT_STDARG_H='<stdarg.h>'
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
24015 $as_echo_n "checking for va_copy... " >&6; }
24016 if test "${gl_cv_func_va_copy+set}" = set; then :
24017 $as_echo_n "(cached) " >&6
24018 else
24020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24021 /* end confdefs.h. */
24022 #include <stdarg.h>
24024 main ()
24027 #ifndef va_copy
24028 void (*func) (va_list, va_list) = va_copy;
24029 #endif
24032 return 0;
24034 _ACEOF
24035 if ac_fn_c_try_compile "$LINENO"; then :
24036 gl_cv_func_va_copy=yes
24037 else
24038 gl_cv_func_va_copy=no
24040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
24044 $as_echo "$gl_cv_func_va_copy" >&6; }
24045 if test $gl_cv_func_va_copy = no; then
24046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24047 /* end confdefs.h. */
24048 #if defined _AIX && !defined __GNUC__
24049 AIX vaccine
24050 #endif
24052 _ACEOF
24053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24054 $EGREP "vaccine" >/dev/null 2>&1; then :
24055 gl_aixcc=yes
24056 else
24057 gl_aixcc=no
24059 rm -f conftest*
24061 if test $gl_aixcc = yes; then
24062 STDARG_H=stdarg.h
24071 if test $gl_cv_have_include_next = yes; then
24072 gl_cv_next_stdarg_h='<'stdarg.h'>'
24073 else
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
24075 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
24076 if test "${gl_cv_next_stdarg_h+set}" = set; then :
24077 $as_echo_n "(cached) " >&6
24078 else
24080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24081 /* end confdefs.h. */
24082 #include <stdarg.h>
24084 _ACEOF
24085 case "$host_os" in
24086 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24087 *) gl_absname_cpp="$ac_cpp" ;;
24088 esac
24090 case "$host_os" in
24091 mingw*)
24092 gl_dirsep_regex='[/\\]'
24095 gl_dirsep_regex='\/'
24097 esac
24098 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24100 gl_header_literal_regex=`echo 'stdarg.h' \
24101 | sed -e "$gl_make_literal_regex_sed"`
24102 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24103 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24104 s|^/[^/]|//&|
24108 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24109 sed -n "$gl_absolute_header_sed"`'"'
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
24114 $as_echo "$gl_cv_next_stdarg_h" >&6; }
24116 NEXT_STDARG_H=$gl_cv_next_stdarg_h
24118 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24119 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24120 gl_next_as_first_directive='<'stdarg.h'>'
24121 else
24122 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24123 gl_next_as_first_directive=$gl_cv_next_stdarg_h
24125 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
24130 if test "$gl_cv_next_stdarg_h" = '""'; then
24131 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
24132 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
24134 else
24136 saved_as_echo_n="$as_echo_n"
24137 as_echo_n=':'
24138 if test "${gl_cv_func___va_copy+set}" = set; then :
24139 $as_echo_n "(cached) " >&6
24140 else
24142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24143 /* end confdefs.h. */
24144 #include <stdarg.h>
24146 main ()
24149 #ifndef __va_copy
24150 error, bail out
24151 #endif
24154 return 0;
24156 _ACEOF
24157 if ac_fn_c_try_compile "$LINENO"; then :
24158 gl_cv_func___va_copy=yes
24159 else
24160 gl_cv_func___va_copy=no
24162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24165 as_echo_n="$saved_as_echo_n"
24167 if test $gl_cv_func___va_copy = yes; then
24169 $as_echo "#define va_copy __va_copy" >>confdefs.h
24171 else
24174 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
24180 if test -n "$STDARG_H"; then
24181 GL_GENERATE_STDARG_H_TRUE=
24182 GL_GENERATE_STDARG_H_FALSE='#'
24183 else
24184 GL_GENERATE_STDARG_H_TRUE='#'
24185 GL_GENERATE_STDARG_H_FALSE=
24193 # Define two additional variables used in the Makefile substitution.
24195 if test "$ac_cv_header_stdbool_h" = yes; then
24196 STDBOOL_H=''
24197 else
24198 STDBOOL_H='stdbool.h'
24201 if test -n "$STDBOOL_H"; then
24202 GL_GENERATE_STDBOOL_H_TRUE=
24203 GL_GENERATE_STDBOOL_H_FALSE='#'
24204 else
24205 GL_GENERATE_STDBOOL_H_TRUE='#'
24206 GL_GENERATE_STDBOOL_H_FALSE=
24210 if test "$ac_cv_type__Bool" = yes; then
24211 HAVE__BOOL=1
24212 else
24213 HAVE__BOOL=0
24220 STDDEF_H=
24221 if test $gt_cv_c_wchar_t = no; then
24222 HAVE_WCHAR_T=0
24223 STDDEF_H=stddef.h
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
24226 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
24227 if test "${gl_cv_decl_null_works+set}" = set; then :
24228 $as_echo_n "(cached) " >&6
24229 else
24230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24231 /* end confdefs.h. */
24232 #include <stddef.h>
24233 int test[2 * (sizeof NULL == sizeof (void *)) -1];
24236 main ()
24240 return 0;
24242 _ACEOF
24243 if ac_fn_c_try_compile "$LINENO"; then :
24244 gl_cv_decl_null_works=yes
24245 else
24246 gl_cv_decl_null_works=no
24248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
24251 $as_echo "$gl_cv_decl_null_works" >&6; }
24252 if test $gl_cv_decl_null_works = no; then
24253 REPLACE_NULL=1
24254 STDDEF_H=stddef.h
24257 if test -n "$STDDEF_H"; then
24258 GL_GENERATE_STDDEF_H_TRUE=
24259 GL_GENERATE_STDDEF_H_FALSE='#'
24260 else
24261 GL_GENERATE_STDDEF_H_TRUE='#'
24262 GL_GENERATE_STDDEF_H_FALSE=
24265 if test -n "$STDDEF_H"; then
24274 if test $gl_cv_have_include_next = yes; then
24275 gl_cv_next_stddef_h='<'stddef.h'>'
24276 else
24277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
24278 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
24279 if test "${gl_cv_next_stddef_h+set}" = set; then :
24280 $as_echo_n "(cached) " >&6
24281 else
24283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24284 /* end confdefs.h. */
24285 #include <stddef.h>
24287 _ACEOF
24288 case "$host_os" in
24289 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24290 *) gl_absname_cpp="$ac_cpp" ;;
24291 esac
24293 case "$host_os" in
24294 mingw*)
24295 gl_dirsep_regex='[/\\]'
24298 gl_dirsep_regex='\/'
24300 esac
24301 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24303 gl_header_literal_regex=`echo 'stddef.h' \
24304 | sed -e "$gl_make_literal_regex_sed"`
24305 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24306 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24307 s|^/[^/]|//&|
24311 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24312 sed -n "$gl_absolute_header_sed"`'"'
24316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
24317 $as_echo "$gl_cv_next_stddef_h" >&6; }
24319 NEXT_STDDEF_H=$gl_cv_next_stddef_h
24321 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24322 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24323 gl_next_as_first_directive='<'stddef.h'>'
24324 else
24325 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24326 gl_next_as_first_directive=$gl_cv_next_stddef_h
24328 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
24346 if test $gl_cv_have_include_next = yes; then
24347 gl_cv_next_stdio_h='<'stdio.h'>'
24348 else
24349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
24350 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
24351 if test "${gl_cv_next_stdio_h+set}" = set; then :
24352 $as_echo_n "(cached) " >&6
24353 else
24355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24356 /* end confdefs.h. */
24357 #include <stdio.h>
24359 _ACEOF
24360 case "$host_os" in
24361 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24362 *) gl_absname_cpp="$ac_cpp" ;;
24363 esac
24365 case "$host_os" in
24366 mingw*)
24367 gl_dirsep_regex='[/\\]'
24370 gl_dirsep_regex='\/'
24372 esac
24373 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24375 gl_header_literal_regex=`echo 'stdio.h' \
24376 | sed -e "$gl_make_literal_regex_sed"`
24377 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24378 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24379 s|^/[^/]|//&|
24383 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24384 sed -n "$gl_absolute_header_sed"`'"'
24388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
24389 $as_echo "$gl_cv_next_stdio_h" >&6; }
24391 NEXT_STDIO_H=$gl_cv_next_stdio_h
24393 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24394 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24395 gl_next_as_first_directive='<'stdio.h'>'
24396 else
24397 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24398 gl_next_as_first_directive=$gl_cv_next_stdio_h
24400 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
24406 GNULIB_FSCANF=1
24409 cat >>confdefs.h <<_ACEOF
24410 #define GNULIB_FSCANF 1
24411 _ACEOF
24414 GNULIB_SCANF=1
24417 cat >>confdefs.h <<_ACEOF
24418 #define GNULIB_SCANF 1
24419 _ACEOF
24422 GNULIB_FGETC=1
24423 GNULIB_GETC=1
24424 GNULIB_GETCHAR=1
24425 GNULIB_FGETS=1
24426 GNULIB_FREAD=1
24429 GNULIB_FPRINTF=1
24430 GNULIB_PRINTF=1
24431 GNULIB_VFPRINTF=1
24432 GNULIB_VPRINTF=1
24433 GNULIB_FPUTC=1
24434 GNULIB_PUTC=1
24435 GNULIB_PUTCHAR=1
24436 GNULIB_FPUTS=1
24437 GNULIB_PUTS=1
24438 GNULIB_FWRITE=1
24454 if test $gl_cv_have_include_next = yes; then
24455 gl_cv_next_stdlib_h='<'stdlib.h'>'
24456 else
24457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
24458 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
24459 if test "${gl_cv_next_stdlib_h+set}" = set; then :
24460 $as_echo_n "(cached) " >&6
24461 else
24463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24464 /* end confdefs.h. */
24465 #include <stdlib.h>
24467 _ACEOF
24468 case "$host_os" in
24469 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24470 *) gl_absname_cpp="$ac_cpp" ;;
24471 esac
24473 case "$host_os" in
24474 mingw*)
24475 gl_dirsep_regex='[/\\]'
24478 gl_dirsep_regex='\/'
24480 esac
24481 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24483 gl_header_literal_regex=`echo 'stdlib.h' \
24484 | sed -e "$gl_make_literal_regex_sed"`
24485 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24486 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24487 s|^/[^/]|//&|
24491 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24492 sed -n "$gl_absolute_header_sed"`'"'
24496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
24497 $as_echo "$gl_cv_next_stdlib_h" >&6; }
24499 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
24501 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24502 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24503 gl_next_as_first_directive='<'stdlib.h'>'
24504 else
24505 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24506 gl_next_as_first_directive=$gl_cv_next_stdlib_h
24508 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
24518 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
24526 $as_echo "#define my_strftime nstrftime" >>confdefs.h
24538 if test "$ac_cv_have_decl_strtoimax" != yes; then
24539 HAVE_DECL_STRTOIMAX=0
24542 if test $ac_cv_func_strtoimax = yes; then
24543 HAVE_STRTOIMAX=1
24544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
24545 $as_echo_n "checking whether strtoimax works... " >&6; }
24546 if test "${gl_cv_func_strtoimax+set}" = set; then :
24547 $as_echo_n "(cached) " >&6
24548 else
24549 if test "$cross_compiling" = yes; then :
24550 case "$host_os" in
24551 # Guess no on AIX 5.
24552 aix5*) gl_cv_func_strtoimax="guessing no" ;;
24553 # Guess yes otherwise.
24554 *) gl_cv_func_strtoimax="guessing yes" ;;
24555 esac
24557 else
24558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24559 /* end confdefs.h. */
24561 #include <errno.h>
24562 #include <string.h>
24563 #include <inttypes.h>
24564 int main ()
24566 if (sizeof (intmax_t) > sizeof (int))
24568 const char *s = "4294967295";
24569 char *p;
24570 intmax_t res;
24571 errno = 0;
24572 res = strtoimax (s, &p, 10);
24573 if (p != s + strlen (s))
24574 return 1;
24575 if (errno != 0)
24576 return 2;
24577 if (res != (intmax_t) 65535 * (intmax_t) 65537)
24578 return 3;
24580 else
24582 const char *s = "2147483647";
24583 char *p;
24584 intmax_t res;
24585 errno = 0;
24586 res = strtoimax (s, &p, 10);
24587 if (p != s + strlen (s))
24588 return 1;
24589 if (errno != 0)
24590 return 2;
24591 if (res != 2147483647)
24592 return 3;
24594 return 0;
24597 _ACEOF
24598 if ac_fn_c_try_run "$LINENO"; then :
24599 gl_cv_func_strtoimax=yes
24600 else
24601 gl_cv_func_strtoimax=no
24603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24604 conftest.$ac_objext conftest.beam conftest.$ac_ext
24609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
24610 $as_echo "$gl_cv_func_strtoimax" >&6; }
24611 case "$gl_cv_func_strtoimax" in
24612 *no) REPLACE_STRTOIMAX=1 ;;
24613 esac
24614 else
24615 HAVE_STRTOIMAX=0
24618 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
24627 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
24630 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
24631 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
24632 ac_have_decl=1
24633 else
24634 ac_have_decl=0
24637 cat >>confdefs.h <<_ACEOF
24638 #define HAVE_DECL_STRTOLL $ac_have_decl
24639 _ACEOF
24649 GNULIB_STRTOIMAX=1
24659 if test "$ac_cv_have_decl_strtoumax" != yes; then
24660 HAVE_DECL_STRTOUMAX=0
24663 if test $ac_cv_func_strtoumax = no; then
24672 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
24675 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
24676 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
24677 ac_have_decl=1
24678 else
24679 ac_have_decl=0
24682 cat >>confdefs.h <<_ACEOF
24683 #define HAVE_DECL_STRTOULL $ac_have_decl
24684 _ACEOF
24694 GNULIB_STRTOUMAX=1
24702 if test $ac_cv_func_symlink = no; then
24703 HAVE_SYMLINK=0
24704 else
24705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
24706 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
24707 if test "${gl_cv_func_symlink_works+set}" = set; then :
24708 $as_echo_n "(cached) " >&6
24709 else
24710 if test "$cross_compiling" = yes; then :
24711 case "$host_os" in
24712 # Guess yes on glibc systems.
24713 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
24714 # If we don't know, assume the worst.
24715 *) gl_cv_func_symlink_works="guessing no" ;;
24716 esac
24718 else
24719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24720 /* end confdefs.h. */
24721 #include <unistd.h>
24724 main ()
24726 int result = 0;
24727 if (!symlink ("a", "conftest.link/"))
24728 result |= 1;
24729 if (symlink ("conftest.f", "conftest.lnk2"))
24730 result |= 2;
24731 else if (!symlink ("a", "conftest.lnk2/"))
24732 result |= 4;
24733 return result;
24736 return 0;
24738 _ACEOF
24739 if ac_fn_c_try_run "$LINENO"; then :
24740 gl_cv_func_symlink_works=yes
24741 else
24742 gl_cv_func_symlink_works=no
24744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24745 conftest.$ac_objext conftest.beam conftest.$ac_ext
24748 rm -f conftest.f conftest.link conftest.lnk2
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
24751 $as_echo "$gl_cv_func_symlink_works" >&6; }
24752 case "$gl_cv_func_symlink_works" in
24753 *yes) ;;
24755 REPLACE_SYMLINK=1
24757 esac
24760 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
24769 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
24777 GNULIB_SYMLINK=1
24786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
24787 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
24788 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
24789 $as_echo_n "(cached) " >&6
24790 else
24792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24793 /* end confdefs.h. */
24794 #include <sys/select.h>
24796 main ()
24798 struct timeval b;
24800 return 0;
24802 _ACEOF
24803 if ac_fn_c_try_compile "$LINENO"; then :
24804 gl_cv_header_sys_select_h_selfcontained=yes
24805 else
24806 gl_cv_header_sys_select_h_selfcontained=no
24808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24809 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
24810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24811 /* end confdefs.h. */
24812 #include <sys/select.h>
24814 main ()
24816 int memset; int bzero;
24818 return 0;
24821 _ACEOF
24822 if ac_fn_c_try_compile "$LINENO"; then :
24823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24824 /* end confdefs.h. */
24825 #include <sys/select.h>
24827 main ()
24830 #undef memset
24831 #define memset nonexistent_memset
24832 extern
24833 #ifdef __cplusplus
24835 #endif
24836 void *memset (void *, int, unsigned long);
24837 #undef bzero
24838 #define bzero nonexistent_bzero
24839 extern
24840 #ifdef __cplusplus
24842 #endif
24843 void bzero (void *, unsigned long);
24844 fd_set fds;
24845 FD_ZERO (&fds);
24848 return 0;
24851 _ACEOF
24852 if ac_fn_c_try_link "$LINENO"; then :
24854 else
24855 gl_cv_header_sys_select_h_selfcontained=no
24857 rm -f core conftest.err conftest.$ac_objext \
24858 conftest$ac_exeext conftest.$ac_ext
24861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
24866 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
24876 if test $gl_cv_have_include_next = yes; then
24877 gl_cv_next_sys_select_h='<'sys/select.h'>'
24878 else
24879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
24880 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
24881 if test "${gl_cv_next_sys_select_h+set}" = set; then :
24882 $as_echo_n "(cached) " >&6
24883 else
24885 if test $ac_cv_header_sys_select_h = yes; then
24888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24889 /* end confdefs.h. */
24890 #include <sys/select.h>
24892 _ACEOF
24893 case "$host_os" in
24894 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24895 *) gl_absname_cpp="$ac_cpp" ;;
24896 esac
24898 case "$host_os" in
24899 mingw*)
24900 gl_dirsep_regex='[/\\]'
24903 gl_dirsep_regex='\/'
24905 esac
24906 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24908 gl_header_literal_regex=`echo 'sys/select.h' \
24909 | sed -e "$gl_make_literal_regex_sed"`
24910 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24911 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24912 s|^/[^/]|//&|
24916 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24917 sed -n "$gl_absolute_header_sed"`'"'
24918 else
24919 gl_cv_next_sys_select_h='<'sys/select.h'>'
24924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
24925 $as_echo "$gl_cv_next_sys_select_h" >&6; }
24927 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
24929 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24930 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24931 gl_next_as_first_directive='<'sys/select.h'>'
24932 else
24933 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24934 gl_next_as_first_directive=$gl_cv_next_sys_select_h
24936 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
24941 if test $ac_cv_header_sys_select_h = yes; then
24942 HAVE_SYS_SELECT_H=1
24943 else
24944 HAVE_SYS_SELECT_H=0
24951 if test $ac_cv_header_sys_socket_h != yes; then
24952 for ac_header in winsock2.h
24953 do :
24954 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
24955 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
24956 cat >>confdefs.h <<_ACEOF
24957 #define HAVE_WINSOCK2_H 1
24958 _ACEOF
24962 done
24965 if test "$ac_cv_header_winsock2_h" = yes; then
24966 HAVE_WINSOCK2_H=1
24967 UNISTD_H_HAVE_WINSOCK2_H=1
24968 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
24969 else
24970 HAVE_WINSOCK2_H=0
24992 if test $gl_cv_have_include_next = yes; then
24993 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24994 else
24995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
24996 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
24997 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
24998 $as_echo_n "(cached) " >&6
24999 else
25001 if test $ac_cv_header_sys_stat_h = yes; then
25004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25005 /* end confdefs.h. */
25006 #include <sys/stat.h>
25008 _ACEOF
25009 case "$host_os" in
25010 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25011 *) gl_absname_cpp="$ac_cpp" ;;
25012 esac
25014 case "$host_os" in
25015 mingw*)
25016 gl_dirsep_regex='[/\\]'
25019 gl_dirsep_regex='\/'
25021 esac
25022 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25024 gl_header_literal_regex=`echo 'sys/stat.h' \
25025 | sed -e "$gl_make_literal_regex_sed"`
25026 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25027 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25028 s|^/[^/]|//&|
25032 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25033 sed -n "$gl_absolute_header_sed"`'"'
25034 else
25035 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
25040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
25041 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
25043 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
25045 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25046 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25047 gl_next_as_first_directive='<'sys/stat.h'>'
25048 else
25049 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25050 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
25052 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
25064 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
25066 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
25070 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
25071 #include <sys/stat.h>
25073 if test "x$ac_cv_type_nlink_t" = x""yes; then :
25075 else
25077 $as_echo "#define nlink_t int" >>confdefs.h
25098 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
25100 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
25101 ac_have_decl=1
25102 else
25103 ac_have_decl=0
25106 cat >>confdefs.h <<_ACEOF
25107 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
25108 _ACEOF
25110 if test $ac_cv_have_decl_localtime_r = no; then
25111 HAVE_DECL_LOCALTIME_R=0
25115 if test $ac_cv_func_localtime_r = yes; then
25116 HAVE_LOCALTIME_R=1
25117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
25118 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
25119 if test "${gl_cv_time_r_posix+set}" = set; then :
25120 $as_echo_n "(cached) " >&6
25121 else
25122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25123 /* end confdefs.h. */
25124 #include <time.h>
25126 main ()
25128 /* We don't need to append 'restrict's to the argument types,
25129 even though the POSIX signature has the 'restrict's,
25130 since C99 says they can't affect type compatibility. */
25131 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
25132 if (ptr) return 0;
25133 /* Check the return type is a pointer.
25134 On HP-UX 10 it is 'int'. */
25135 *localtime_r (0, 0);
25137 return 0;
25140 _ACEOF
25141 if ac_fn_c_try_compile "$LINENO"; then :
25142 gl_cv_time_r_posix=yes
25143 else
25144 gl_cv_time_r_posix=no
25146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
25150 $as_echo "$gl_cv_time_r_posix" >&6; }
25151 if test $gl_cv_time_r_posix = yes; then
25152 REPLACE_LOCALTIME_R=0
25153 else
25154 REPLACE_LOCALTIME_R=1
25156 else
25157 HAVE_LOCALTIME_R=0
25160 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
25169 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
25180 GNULIB_TIME_R=1
25191 LIB_TIMER_TIME=
25193 gl_saved_libs=$LIBS
25194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
25195 $as_echo_n "checking for library containing timer_settime... " >&6; }
25196 if test "${ac_cv_search_timer_settime+set}" = set; then :
25197 $as_echo_n "(cached) " >&6
25198 else
25199 ac_func_search_save_LIBS=$LIBS
25200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25201 /* end confdefs.h. */
25203 /* Override any GCC internal prototype to avoid an error.
25204 Use char because int might match the return type of a GCC
25205 builtin and then its argument prototype would still apply. */
25206 #ifdef __cplusplus
25207 extern "C"
25208 #endif
25209 char timer_settime ();
25211 main ()
25213 return timer_settime ();
25215 return 0;
25217 _ACEOF
25218 for ac_lib in '' rt posix4; do
25219 if test -z "$ac_lib"; then
25220 ac_res="none required"
25221 else
25222 ac_res=-l$ac_lib
25223 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25225 if ac_fn_c_try_link "$LINENO"; then :
25226 ac_cv_search_timer_settime=$ac_res
25228 rm -f core conftest.err conftest.$ac_objext \
25229 conftest$ac_exeext
25230 if test "${ac_cv_search_timer_settime+set}" = set; then :
25231 break
25233 done
25234 if test "${ac_cv_search_timer_settime+set}" = set; then :
25236 else
25237 ac_cv_search_timer_settime=no
25239 rm conftest.$ac_ext
25240 LIBS=$ac_func_search_save_LIBS
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
25243 $as_echo "$ac_cv_search_timer_settime" >&6; }
25244 ac_res=$ac_cv_search_timer_settime
25245 if test "$ac_res" != no; then :
25246 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25247 test "$ac_cv_search_timer_settime" = "none required" ||
25248 LIB_TIMER_TIME=$ac_cv_search_timer_settime
25251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25252 /* end confdefs.h. */
25254 #include <features.h>
25255 #ifdef __GNU_LIBRARY__
25256 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
25257 && !defined __UCLIBC__
25258 Thread emulation available
25259 #endif
25260 #endif
25262 _ACEOF
25263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25264 $EGREP "Thread" >/dev/null 2>&1; then :
25265 LIB_TIMER_TIME="$LIB_TIMER_TIME $LIBMULTITHREAD"
25267 rm -f conftest*
25269 for ac_func in timer_settime
25270 do :
25271 ac_fn_c_check_func "$LINENO" "timer_settime" "ac_cv_func_timer_settime"
25272 if test "x$ac_cv_func_timer_settime" = x""yes; then :
25273 cat >>confdefs.h <<_ACEOF
25274 #define HAVE_TIMER_SETTIME 1
25275 _ACEOF
25278 done
25280 LIBS=$gl_saved_libs
25295 if test $gl_cv_have_include_next = yes; then
25296 gl_cv_next_unistd_h='<'unistd.h'>'
25297 else
25298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
25299 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
25300 if test "${gl_cv_next_unistd_h+set}" = set; then :
25301 $as_echo_n "(cached) " >&6
25302 else
25304 if test $ac_cv_header_unistd_h = yes; then
25307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25308 /* end confdefs.h. */
25309 #include <unistd.h>
25311 _ACEOF
25312 case "$host_os" in
25313 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25314 *) gl_absname_cpp="$ac_cpp" ;;
25315 esac
25317 case "$host_os" in
25318 mingw*)
25319 gl_dirsep_regex='[/\\]'
25322 gl_dirsep_regex='\/'
25324 esac
25325 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25327 gl_header_literal_regex=`echo 'unistd.h' \
25328 | sed -e "$gl_make_literal_regex_sed"`
25329 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25330 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25331 s|^/[^/]|//&|
25335 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25336 sed -n "$gl_absolute_header_sed"`'"'
25337 else
25338 gl_cv_next_unistd_h='<'unistd.h'>'
25343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
25344 $as_echo "$gl_cv_next_unistd_h" >&6; }
25346 NEXT_UNISTD_H=$gl_cv_next_unistd_h
25348 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25349 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25350 gl_next_as_first_directive='<'unistd.h'>'
25351 else
25352 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25353 gl_next_as_first_directive=$gl_cv_next_unistd_h
25355 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
25360 if test $ac_cv_header_unistd_h = yes; then
25361 HAVE_UNISTD_H=1
25362 else
25363 HAVE_UNISTD_H=0
25376 if test $ac_cv_have_decl_unsetenv = no; then
25377 HAVE_DECL_UNSETENV=0
25379 for ac_func in unsetenv
25380 do :
25381 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
25382 if test "x$ac_cv_func_unsetenv" = x""yes; then :
25383 cat >>confdefs.h <<_ACEOF
25384 #define HAVE_UNSETENV 1
25385 _ACEOF
25388 done
25390 if test $ac_cv_func_unsetenv = no; then
25391 HAVE_UNSETENV=0
25392 else
25393 HAVE_UNSETENV=1
25394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
25395 $as_echo_n "checking for unsetenv() return type... " >&6; }
25396 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
25397 $as_echo_n "(cached) " >&6
25398 else
25399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25400 /* end confdefs.h. */
25402 #undef _BSD
25403 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
25404 #include <stdlib.h>
25405 extern
25406 #ifdef __cplusplus
25408 #endif
25409 int unsetenv (const char *name);
25412 main ()
25416 return 0;
25418 _ACEOF
25419 if ac_fn_c_try_compile "$LINENO"; then :
25420 gt_cv_func_unsetenv_ret='int'
25421 else
25422 gt_cv_func_unsetenv_ret='void'
25424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
25427 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
25428 if test $gt_cv_func_unsetenv_ret = 'void'; then
25430 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
25432 REPLACE_UNSETENV=1
25435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
25436 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
25437 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
25438 $as_echo_n "(cached) " >&6
25439 else
25440 if test "$cross_compiling" = yes; then :
25441 case "$host_os" in
25442 # Guess yes on glibc systems.
25443 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
25444 # If we don't know, assume the worst.
25445 *) gl_cv_func_unsetenv_works="guessing no" ;;
25446 esac
25448 else
25449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25450 /* end confdefs.h. */
25452 #include <stdlib.h>
25453 #include <errno.h>
25454 extern char **environ;
25457 main ()
25460 char entry1[] = "a=1";
25461 char entry2[] = "b=2";
25462 char *env[] = { entry1, entry2, NULL };
25463 if (putenv ((char *) "a=1")) return 1;
25464 if (putenv (entry2)) return 2;
25465 entry2[0] = 'a';
25466 unsetenv ("a");
25467 if (getenv ("a")) return 3;
25468 if (!unsetenv ("") || errno != EINVAL) return 4;
25469 entry2[0] = 'b';
25470 environ = env;
25471 if (!getenv ("a")) return 5;
25472 entry2[0] = 'a';
25473 unsetenv ("a");
25474 if (getenv ("a")) return 6;
25477 return 0;
25479 _ACEOF
25480 if ac_fn_c_try_run "$LINENO"; then :
25481 gl_cv_func_unsetenv_works=yes
25482 else
25483 gl_cv_func_unsetenv_works=no
25485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25486 conftest.$ac_objext conftest.beam conftest.$ac_ext
25490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
25491 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
25492 case "$gl_cv_func_unsetenv_works" in
25493 *yes) ;;
25495 REPLACE_UNSETENV=1
25497 esac
25500 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
25509 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
25521 GNULIB_UNSETENV=1
25533 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
25534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
25535 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
25536 if test "${gl_cv_func_futimesat_works+set}" = set; then :
25537 $as_echo_n "(cached) " >&6
25538 else
25539 touch conftest.file
25540 if test "$cross_compiling" = yes; then :
25541 case "$host_os" in
25542 # Guess yes on glibc systems.
25543 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
25544 # If we don't know, assume the worst.
25545 *) gl_cv_func_futimesat_works="guessing no" ;;
25546 esac
25548 else
25549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25550 /* end confdefs.h. */
25552 #include <stddef.h>
25553 #include <sys/times.h>
25554 #include <fcntl.h>
25557 main ()
25559 int fd = open ("conftest.file", O_RDWR);
25560 if (fd < 0) return 1;
25561 if (futimesat (fd, NULL, NULL)) return 2;
25564 return 0;
25566 _ACEOF
25567 if ac_fn_c_try_run "$LINENO"; then :
25568 gl_cv_func_futimesat_works=yes
25569 else
25570 gl_cv_func_futimesat_works=no
25572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25573 conftest.$ac_objext conftest.beam conftest.$ac_ext
25576 rm -f conftest.file
25578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
25579 $as_echo "$gl_cv_func_futimesat_works" >&6; }
25580 case "$gl_cv_func_futimesat_works" in
25581 *yes) ;;
25584 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
25587 esac
25590 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=false
25591 gl_gnulib_enabled_dosname=false
25592 gl_gnulib_enabled_euidaccess=false
25593 gl_gnulib_enabled_getgroups=false
25594 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
25595 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=false
25596 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=false
25597 gl_gnulib_enabled_pathmax=false
25598 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=false
25599 gl_gnulib_enabled_stat=false
25600 gl_gnulib_enabled_strtoll=false
25601 gl_gnulib_enabled_strtoull=false
25602 gl_gnulib_enabled_verify=false
25603 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=false
25604 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b ()
25606 if ! $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
25615 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
25617 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=true
25620 func_gl_gnulib_m4code_dosname ()
25622 if ! $gl_gnulib_enabled_dosname; then
25623 gl_gnulib_enabled_dosname=true
25626 func_gl_gnulib_m4code_euidaccess ()
25628 if ! $gl_gnulib_enabled_euidaccess; then
25634 for ac_func in euidaccess
25635 do :
25636 ac_fn_c_check_func "$LINENO" "euidaccess" "ac_cv_func_euidaccess"
25637 if test "x$ac_cv_func_euidaccess" = x""yes; then :
25638 cat >>confdefs.h <<_ACEOF
25639 #define HAVE_EUIDACCESS 1
25640 _ACEOF
25643 done
25645 if test $ac_cv_func_euidaccess = no; then
25646 HAVE_EUIDACCESS=0
25649 if test $HAVE_EUIDACCESS = 0; then
25658 gl_LIBOBJS="$gl_LIBOBJS euidaccess.$ac_objext"
25662 for ac_header in libgen.h
25663 do :
25664 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
25665 if test "x$ac_cv_header_libgen_h" = x""yes; then :
25666 cat >>confdefs.h <<_ACEOF
25667 #define HAVE_LIBGEN_H 1
25668 _ACEOF
25672 done
25675 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
25676 if test "x$ac_cv_func_getgroups" = x""yes; then :
25681 # If we don't yet have getgroups, see if it's in -lbsd.
25682 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25683 ac_save_LIBS=$LIBS
25684 if test $ac_cv_func_getgroups = no; then
25685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
25686 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
25687 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
25688 $as_echo_n "(cached) " >&6
25689 else
25690 ac_check_lib_save_LIBS=$LIBS
25691 LIBS="-lbsd $LIBS"
25692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25693 /* end confdefs.h. */
25695 /* Override any GCC internal prototype to avoid an error.
25696 Use char because int might match the return type of a GCC
25697 builtin and then its argument prototype would still apply. */
25698 #ifdef __cplusplus
25699 extern "C"
25700 #endif
25701 char getgroups ();
25703 main ()
25705 return getgroups ();
25707 return 0;
25709 _ACEOF
25710 if ac_fn_c_try_link "$LINENO"; then :
25711 ac_cv_lib_bsd_getgroups=yes
25712 else
25713 ac_cv_lib_bsd_getgroups=no
25715 rm -f core conftest.err conftest.$ac_objext \
25716 conftest$ac_exeext conftest.$ac_ext
25717 LIBS=$ac_check_lib_save_LIBS
25719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
25720 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
25721 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
25722 GETGROUPS_LIB=-lbsd
25727 # Run the program to test the functionality of the system-supplied
25728 # getgroups function only if there is such a function.
25729 if test $ac_cv_func_getgroups = yes; then
25730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
25731 $as_echo_n "checking for working getgroups... " >&6; }
25732 if test "${ac_cv_func_getgroups_works+set}" = set; then :
25733 $as_echo_n "(cached) " >&6
25734 else
25735 if test "$cross_compiling" = yes; then :
25736 case "$host_os" in # ((
25737 # Guess yes on glibc systems.
25738 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
25739 # If we don't know, assume the worst.
25740 *) ac_cv_func_getgroups_works="guessing no" ;;
25741 esac
25743 else
25744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25745 /* end confdefs.h. */
25746 $ac_includes_default
25748 main ()
25750 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
25751 return getgroups (0, 0) == -1;
25753 return 0;
25756 _ACEOF
25757 if ac_fn_c_try_run "$LINENO"; then :
25758 ac_cv_func_getgroups_works=yes
25759 else
25760 ac_cv_func_getgroups_works=no
25762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25763 conftest.$ac_objext conftest.beam conftest.$ac_ext
25768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
25769 $as_echo "$ac_cv_func_getgroups_works" >&6; }
25770 else
25771 ac_cv_func_getgroups_works=no
25773 case "$ac_cv_func_getgroups_works" in
25774 *yes)
25776 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
25779 esac
25780 LIBS=$ac_save_LIBS
25783 # Solaris 9 and 10 need -lgen to get the eaccess function.
25784 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
25785 # programs in the package would end up linked with that potentially-shared
25786 # library, inducing unnecessary run-time overhead.
25787 LIB_EACCESS=
25789 gl_saved_libs=$LIBS
25790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
25791 $as_echo_n "checking for library containing eaccess... " >&6; }
25792 if test "${ac_cv_search_eaccess+set}" = set; then :
25793 $as_echo_n "(cached) " >&6
25794 else
25795 ac_func_search_save_LIBS=$LIBS
25796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25797 /* end confdefs.h. */
25799 /* Override any GCC internal prototype to avoid an error.
25800 Use char because int might match the return type of a GCC
25801 builtin and then its argument prototype would still apply. */
25802 #ifdef __cplusplus
25803 extern "C"
25804 #endif
25805 char eaccess ();
25807 main ()
25809 return eaccess ();
25811 return 0;
25813 _ACEOF
25814 for ac_lib in '' gen; do
25815 if test -z "$ac_lib"; then
25816 ac_res="none required"
25817 else
25818 ac_res=-l$ac_lib
25819 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25821 if ac_fn_c_try_link "$LINENO"; then :
25822 ac_cv_search_eaccess=$ac_res
25824 rm -f core conftest.err conftest.$ac_objext \
25825 conftest$ac_exeext
25826 if test "${ac_cv_search_eaccess+set}" = set; then :
25827 break
25829 done
25830 if test "${ac_cv_search_eaccess+set}" = set; then :
25832 else
25833 ac_cv_search_eaccess=no
25835 rm conftest.$ac_ext
25836 LIBS=$ac_func_search_save_LIBS
25838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
25839 $as_echo "$ac_cv_search_eaccess" >&6; }
25840 ac_res=$ac_cv_search_eaccess
25841 if test "$ac_res" != no; then :
25842 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25843 test "$ac_cv_search_eaccess" = "none required" ||
25844 LIB_EACCESS=$ac_cv_search_eaccess
25847 for ac_func in eaccess
25848 do :
25849 ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
25850 if test "x$ac_cv_func_eaccess" = x""yes; then :
25851 cat >>confdefs.h <<_ACEOF
25852 #define HAVE_EACCESS 1
25853 _ACEOF
25856 done
25858 LIBS=$gl_saved_libs
25866 GNULIB_EUIDACCESS=1
25872 gl_gnulib_enabled_euidaccess=true
25873 if test $HAVE_EUIDACCESS = 0; then
25874 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
25876 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
25877 if test $HAVE_EUIDACCESS = 0; then
25878 func_gl_gnulib_m4code_stat
25882 func_gl_gnulib_m4code_getgroups ()
25884 if ! $gl_gnulib_enabled_getgroups; then
25890 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
25891 if test "x$ac_cv_func_getgroups" = x""yes; then :
25896 # If we don't yet have getgroups, see if it's in -lbsd.
25897 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25898 ac_save_LIBS=$LIBS
25899 if test $ac_cv_func_getgroups = no; then
25900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
25901 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
25902 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
25903 $as_echo_n "(cached) " >&6
25904 else
25905 ac_check_lib_save_LIBS=$LIBS
25906 LIBS="-lbsd $LIBS"
25907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25908 /* end confdefs.h. */
25910 /* Override any GCC internal prototype to avoid an error.
25911 Use char because int might match the return type of a GCC
25912 builtin and then its argument prototype would still apply. */
25913 #ifdef __cplusplus
25914 extern "C"
25915 #endif
25916 char getgroups ();
25918 main ()
25920 return getgroups ();
25922 return 0;
25924 _ACEOF
25925 if ac_fn_c_try_link "$LINENO"; then :
25926 ac_cv_lib_bsd_getgroups=yes
25927 else
25928 ac_cv_lib_bsd_getgroups=no
25930 rm -f core conftest.err conftest.$ac_objext \
25931 conftest$ac_exeext conftest.$ac_ext
25932 LIBS=$ac_check_lib_save_LIBS
25934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
25935 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
25936 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
25937 GETGROUPS_LIB=-lbsd
25942 # Run the program to test the functionality of the system-supplied
25943 # getgroups function only if there is such a function.
25944 if test $ac_cv_func_getgroups = yes; then
25945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
25946 $as_echo_n "checking for working getgroups... " >&6; }
25947 if test "${ac_cv_func_getgroups_works+set}" = set; then :
25948 $as_echo_n "(cached) " >&6
25949 else
25950 if test "$cross_compiling" = yes; then :
25951 case "$host_os" in # ((
25952 # Guess yes on glibc systems.
25953 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
25954 # If we don't know, assume the worst.
25955 *) ac_cv_func_getgroups_works="guessing no" ;;
25956 esac
25958 else
25959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25960 /* end confdefs.h. */
25961 $ac_includes_default
25963 main ()
25965 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
25966 return getgroups (0, 0) == -1;
25968 return 0;
25971 _ACEOF
25972 if ac_fn_c_try_run "$LINENO"; then :
25973 ac_cv_func_getgroups_works=yes
25974 else
25975 ac_cv_func_getgroups_works=no
25977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25978 conftest.$ac_objext conftest.beam conftest.$ac_ext
25983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
25984 $as_echo "$ac_cv_func_getgroups_works" >&6; }
25985 else
25986 ac_cv_func_getgroups_works=no
25988 case "$ac_cv_func_getgroups_works" in
25989 *yes)
25991 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
25994 esac
25995 LIBS=$ac_save_LIBS
25997 if test $ac_cv_func_getgroups != yes; then
25998 HAVE_GETGROUPS=0
25999 else
26000 if test "$ac_cv_type_getgroups" != gid_t \
26001 || { case "$ac_cv_func_getgroups_works" in
26002 *yes) false;;
26003 *) true;;
26004 esac
26005 }; then
26006 REPLACE_GETGROUPS=1
26008 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
26010 else
26011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
26012 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
26013 if test "${gl_cv_func_getgroups_works+set}" = set; then :
26014 $as_echo_n "(cached) " >&6
26015 else
26016 if test "$cross_compiling" = yes; then :
26017 case "$host_os" in
26018 # Guess yes on glibc systems.
26019 *-gnu*) gl_cv_func_getgroups_works="guessing yes" ;;
26020 # If we don't know, assume the worst.
26021 *) gl_cv_func_getgroups_works="guessing no" ;;
26022 esac
26024 else
26025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26026 /* end confdefs.h. */
26027 $ac_includes_default
26029 main ()
26031 int size = getgroups (0, 0);
26032 gid_t *list = malloc (size * sizeof *list);
26033 return getgroups (-1, list) != -1;
26035 return 0;
26037 _ACEOF
26038 if ac_fn_c_try_run "$LINENO"; then :
26039 gl_cv_func_getgroups_works=yes
26040 else
26041 gl_cv_func_getgroups_works=no
26043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26044 conftest.$ac_objext conftest.beam conftest.$ac_ext
26048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
26049 $as_echo "$gl_cv_func_getgroups_works" >&6; }
26050 case "$gl_cv_func_getgroups_works" in
26051 *yes) ;;
26052 *) REPLACE_GETGROUPS=1 ;;
26053 esac
26056 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
26058 if test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1; then
26067 gl_LIBOBJS="$gl_LIBOBJS getgroups.$ac_objext"
26075 GNULIB_GETGROUPS=1
26081 gl_gnulib_enabled_getgroups=true
26084 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
26086 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
26089 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
26092 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1 ()
26094 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
26100 ac_fn_c_check_func "$LINENO" "group_member" "ac_cv_func_group_member"
26101 if test "x$ac_cv_func_group_member" = x""yes; then :
26103 else
26105 HAVE_GROUP_MEMBER=0
26110 if test $HAVE_GROUP_MEMBER = 0; then
26119 gl_LIBOBJS="$gl_LIBOBJS group-member.$ac_objext"
26130 GNULIB_GROUP_MEMBER=1
26136 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=true
26137 if test $HAVE_GROUP_MEMBER = 0; then
26138 func_gl_gnulib_m4code_getgroups
26140 if test $HAVE_GROUP_MEMBER = 0; then
26141 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
26145 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7 ()
26147 if ! $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
26148 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=true
26151 func_gl_gnulib_m4code_pathmax ()
26153 if ! $gl_gnulib_enabled_pathmax; then
26157 gl_gnulib_enabled_pathmax=true
26160 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c ()
26162 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
26163 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=true
26166 func_gl_gnulib_m4code_stat ()
26168 if ! $gl_gnulib_enabled_stat; then
26172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
26173 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
26174 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
26175 $as_echo_n "(cached) " >&6
26176 else
26177 if test "$cross_compiling" = yes; then :
26178 case $host_os in
26179 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
26180 *) gl_cv_func_stat_dir_slash="guessing yes";;
26181 esac
26182 else
26183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26184 /* end confdefs.h. */
26185 #include <sys/stat.h>
26188 main ()
26190 struct stat st; return stat (".", &st) != stat ("./", &st);
26192 return 0;
26194 _ACEOF
26195 if ac_fn_c_try_run "$LINENO"; then :
26196 gl_cv_func_stat_dir_slash=yes
26197 else
26198 gl_cv_func_stat_dir_slash=no
26200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26201 conftest.$ac_objext conftest.beam conftest.$ac_ext
26205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
26206 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
26207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
26208 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
26209 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
26210 $as_echo_n "(cached) " >&6
26211 else
26212 touch conftest.tmp
26213 # Assume that if we have lstat, we can also check symlinks.
26214 if test $ac_cv_func_lstat = yes; then
26215 ln -s conftest.tmp conftest.lnk
26217 if test "$cross_compiling" = yes; then :
26218 case "$host_os" in
26219 # Guess yes on glibc systems.
26220 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
26221 # If we don't know, assume the worst.
26222 *) gl_cv_func_stat_file_slash="guessing no" ;;
26223 esac
26225 else
26226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26227 /* end confdefs.h. */
26228 #include <sys/stat.h>
26231 main ()
26233 int result = 0;
26234 struct stat st;
26235 if (!stat ("conftest.tmp/", &st))
26236 result |= 1;
26237 #if HAVE_LSTAT
26238 if (!stat ("conftest.lnk/", &st))
26239 result |= 2;
26240 #endif
26241 return result;
26244 return 0;
26246 _ACEOF
26247 if ac_fn_c_try_run "$LINENO"; then :
26248 gl_cv_func_stat_file_slash=yes
26249 else
26250 gl_cv_func_stat_file_slash=no
26252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26253 conftest.$ac_objext conftest.beam conftest.$ac_ext
26256 rm -f conftest.tmp conftest.lnk
26258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
26259 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
26260 case $gl_cv_func_stat_dir_slash in
26261 *no) REPLACE_STAT=1
26263 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
26265 esac
26266 case $gl_cv_func_stat_file_slash in
26267 *no) REPLACE_STAT=1
26269 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
26271 esac
26273 if test $REPLACE_STAT = 1; then
26282 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
26291 GNULIB_STAT=1
26297 gl_gnulib_enabled_stat=true
26298 if test $REPLACE_STAT = 1; then
26299 func_gl_gnulib_m4code_dosname
26301 if test $REPLACE_STAT = 1; then
26302 func_gl_gnulib_m4code_pathmax
26304 if test $REPLACE_STAT = 1; then
26305 func_gl_gnulib_m4code_verify
26309 func_gl_gnulib_m4code_strtoll ()
26311 if ! $gl_gnulib_enabled_strtoll; then
26315 if test "$ac_cv_type_long_long_int" = yes; then
26316 for ac_func in strtoll
26317 do :
26318 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
26319 if test "x$ac_cv_func_strtoll" = x""yes; then :
26320 cat >>confdefs.h <<_ACEOF
26321 #define HAVE_STRTOLL 1
26322 _ACEOF
26325 done
26327 if test $ac_cv_func_strtoll = no; then
26328 HAVE_STRTOLL=0
26332 if test $HAVE_STRTOLL = 0; then
26341 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
26352 GNULIB_STRTOLL=1
26358 gl_gnulib_enabled_strtoll=true
26361 func_gl_gnulib_m4code_strtoull ()
26363 if ! $gl_gnulib_enabled_strtoull; then
26367 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
26368 for ac_func in strtoull
26369 do :
26370 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
26371 if test "x$ac_cv_func_strtoull" = x""yes; then :
26372 cat >>confdefs.h <<_ACEOF
26373 #define HAVE_STRTOULL 1
26374 _ACEOF
26377 done
26379 if test $ac_cv_func_strtoull = no; then
26380 HAVE_STRTOULL=0
26384 if test $HAVE_STRTOULL = 0; then
26393 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
26404 GNULIB_STRTOULL=1
26410 gl_gnulib_enabled_strtoull=true
26413 func_gl_gnulib_m4code_verify ()
26415 if ! $gl_gnulib_enabled_verify; then
26416 gl_gnulib_enabled_verify=true
26419 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec ()
26421 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
26422 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=true
26425 if test $HAVE_FACCESSAT = 0; then
26426 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26428 if test $HAVE_FACCESSAT = 0; then
26429 func_gl_gnulib_m4code_dosname
26431 if test $HAVE_FACCESSAT = 0; then
26432 func_gl_gnulib_m4code_euidaccess
26434 if test $HAVE_FACCESSAT = 0; then
26435 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
26437 if test $HAVE_FDOPENDIR = 0; then
26438 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26440 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
26441 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26443 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
26444 func_gl_gnulib_m4code_dosname
26446 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
26447 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
26449 if test $REPLACE_GETOPT = 1; then
26450 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
26452 if test $REPLACE_LSTAT = 1; then
26453 func_gl_gnulib_m4code_dosname
26455 if test $REPLACE_LSTAT = 1; then
26456 func_gl_gnulib_m4code_stat
26458 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
26459 func_gl_gnulib_m4code_stat
26461 if test $HAVE_READLINKAT = 0; then
26462 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26464 if test $HAVE_READLINKAT = 0; then
26465 func_gl_gnulib_m4code_dosname
26467 if test $HAVE_READLINKAT = 0; then
26468 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
26470 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
26471 func_gl_gnulib_m4code_strtoll
26473 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
26474 func_gl_gnulib_m4code_verify
26476 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
26477 func_gl_gnulib_m4code_strtoull
26479 if test $ac_cv_func_strtoumax = no; then
26480 func_gl_gnulib_m4code_verify
26483 if $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
26484 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE=
26485 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE='#'
26486 else
26487 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE='#'
26488 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE=
26491 if $gl_gnulib_enabled_dosname; then
26492 gl_GNULIB_ENABLED_dosname_TRUE=
26493 gl_GNULIB_ENABLED_dosname_FALSE='#'
26494 else
26495 gl_GNULIB_ENABLED_dosname_TRUE='#'
26496 gl_GNULIB_ENABLED_dosname_FALSE=
26499 if $gl_gnulib_enabled_euidaccess; then
26500 gl_GNULIB_ENABLED_euidaccess_TRUE=
26501 gl_GNULIB_ENABLED_euidaccess_FALSE='#'
26502 else
26503 gl_GNULIB_ENABLED_euidaccess_TRUE='#'
26504 gl_GNULIB_ENABLED_euidaccess_FALSE=
26507 if $gl_gnulib_enabled_getgroups; then
26508 gl_GNULIB_ENABLED_getgroups_TRUE=
26509 gl_GNULIB_ENABLED_getgroups_FALSE='#'
26510 else
26511 gl_GNULIB_ENABLED_getgroups_TRUE='#'
26512 gl_GNULIB_ENABLED_getgroups_FALSE=
26515 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
26516 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
26517 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
26518 else
26519 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
26520 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
26523 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
26524 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE=
26525 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE='#'
26526 else
26527 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE='#'
26528 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE=
26531 if $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
26532 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE=
26533 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE='#'
26534 else
26535 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE='#'
26536 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE=
26539 if $gl_gnulib_enabled_pathmax; then
26540 gl_GNULIB_ENABLED_pathmax_TRUE=
26541 gl_GNULIB_ENABLED_pathmax_FALSE='#'
26542 else
26543 gl_GNULIB_ENABLED_pathmax_TRUE='#'
26544 gl_GNULIB_ENABLED_pathmax_FALSE=
26547 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
26548 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE=
26549 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE='#'
26550 else
26551 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE='#'
26552 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE=
26555 if $gl_gnulib_enabled_stat; then
26556 gl_GNULIB_ENABLED_stat_TRUE=
26557 gl_GNULIB_ENABLED_stat_FALSE='#'
26558 else
26559 gl_GNULIB_ENABLED_stat_TRUE='#'
26560 gl_GNULIB_ENABLED_stat_FALSE=
26563 if $gl_gnulib_enabled_strtoll; then
26564 gl_GNULIB_ENABLED_strtoll_TRUE=
26565 gl_GNULIB_ENABLED_strtoll_FALSE='#'
26566 else
26567 gl_GNULIB_ENABLED_strtoll_TRUE='#'
26568 gl_GNULIB_ENABLED_strtoll_FALSE=
26571 if $gl_gnulib_enabled_strtoull; then
26572 gl_GNULIB_ENABLED_strtoull_TRUE=
26573 gl_GNULIB_ENABLED_strtoull_FALSE='#'
26574 else
26575 gl_GNULIB_ENABLED_strtoull_TRUE='#'
26576 gl_GNULIB_ENABLED_strtoull_FALSE=
26579 if $gl_gnulib_enabled_verify; then
26580 gl_GNULIB_ENABLED_verify_TRUE=
26581 gl_GNULIB_ENABLED_verify_FALSE='#'
26582 else
26583 gl_GNULIB_ENABLED_verify_TRUE='#'
26584 gl_GNULIB_ENABLED_verify_FALSE=
26587 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
26588 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE=
26589 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE='#'
26590 else
26591 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE='#'
26592 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE=
26595 # End of code from modules
26605 gltests_libdeps=
26606 gltests_ltlibdeps=
26616 gl_source_base='tests'
26617 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
26619 gl_module_indicator_condition=$gltests_WITNESS
26630 LIBGNU_LIBDEPS="$gl_libdeps"
26632 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
26635 CFLAGS=$SAVE_CFLAGS
26636 LIBS=$SAVE_LIBS
26638 case "$opsys" in
26639 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
26641 darwin)
26642 ## The -headerpad option tells ld (see man page) to leave room at the
26643 ## end of the header for adding load commands. Needed for dumping.
26644 ## 0x690 is the total size of 30 segment load commands (at 56
26645 ## each); under Cocoa 31 commands are required.
26646 if test "$HAVE_NS" = "yes"; then
26647 libs_nsgui="-framework AppKit"
26648 headerpad_extra=6C8
26649 else
26650 libs_nsgui=
26651 headerpad_extra=690
26653 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
26655 ## This is here because src/Makefile.in did some extra fiddling around
26656 ## with LD_SWITCH_SYSTEM. It seems cleaner to put this in
26657 ## LD_SWITCH_SYSTEM_TEMACS instead,
26658 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26659 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
26662 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
26663 ## find X at run-time.
26664 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
26665 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
26666 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
26667 ## had different values in configure (in ac_link) and src/Makefile.in.
26668 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
26669 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
26671 *) LD_SWITCH_SYSTEM_TEMACS= ;;
26672 esac
26674 if test x$ac_enable_profiling != x ; then
26675 case $opsys in
26676 *freebsd | gnu-linux) ;;
26677 *) LD_SWITCH_SYSTEM_TEMACS="$LD_SWITCH_SYSTEM_TEMACS -pg" ;;
26678 esac
26683 ## Common for all window systems
26684 if test "$window_system" != "none"; then
26686 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
26688 WINDOW_SYSTEM_OBJ="fontset.o fringe.o image.o"
26695 #### Report on what we decided to do.
26696 #### Report GTK as a toolkit, even if it doesn't use Xt.
26697 #### It makes printing result more understandable as using GTK sets
26698 #### toolkit_scroll_bars to yes by default.
26699 if test "${HAVE_GTK}" = "yes"; then
26700 USE_X_TOOLKIT="$USE_GTK_TOOLKIT"
26703 echo "
26704 Configured for \`${canonical}'.
26706 Where should the build process find the source code? ${srcdir}
26707 What compiler should emacs be built with? ${CC} ${CFLAGS}
26708 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26709 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26710 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26711 What window system should Emacs use? ${window_system}
26712 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26714 if test -n "${x_includes}"; then
26715 echo " Where do we find X Windows header files? ${x_includes}"
26716 else
26717 echo " Where do we find X Windows header files? Standard dirs"
26719 if test -n "${x_libraries}"; then
26720 echo " Where do we find X Windows libraries? ${x_libraries}"
26721 else
26722 echo " Where do we find X Windows libraries? Standard dirs"
26725 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26726 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26727 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26728 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26729 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26730 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26731 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26732 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
26734 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26735 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26736 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26737 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
26738 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26739 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
26740 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
26742 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26743 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26744 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26745 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26747 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26748 echo
26750 if test -n "${EMACSDATA}"; then
26751 echo " Environment variable EMACSDATA set to: $EMACSDATA"
26753 if test -n "${EMACSDOC}"; then
26754 echo " Environment variable EMACSDOC set to: $EMACSDOC"
26757 echo
26759 if test "$HAVE_NS" = "yes"; then
26760 echo
26761 echo "You must run \"${MAKE-make} install\" in order to test the built application.
26762 The installed application will go to nextstep/Emacs.app and can be
26763 run or moved from there."
26764 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26765 echo "The application will be fully self-contained."
26766 else
26767 echo "The lisp resources for the application will be installed under ${prefix}.
26768 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
26769 to run if these resources are not installed."
26771 echo
26774 if test "${opsys}" = "cygwin"; then
26775 case `uname -r` in
26776 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
26777 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
26778 echo
26780 esac
26783 # Remove any trailing slashes in these variables.
26784 test "${prefix}" != NONE &&
26785 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26786 test "${exec_prefix}" != NONE &&
26787 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26789 if test "$HAVE_NS" = "yes"; then
26790 if test "$NS_IMPL_GNUSTEP" = yes; then
26791 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"
26793 else
26794 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"
26799 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"
26801 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"
26804 opt_makefile=test/automated/Makefile
26806 if test -f "$srcdir/$opt_makefile.in"; then
26807 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
26808 ac_config_files="$ac_config_files test/automated/Makefile"
26813 opt_makefile=admin/unidata/Makefile
26815 if test -f "$srcdir/$opt_makefile.in"; then
26816 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
26817 ac_config_files="$ac_config_files admin/unidata/Makefile"
26822 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
26826 ac_config_commands="$ac_config_commands mkdirs"
26829 ac_config_commands="$ac_config_commands epaths"
26832 ac_config_commands="$ac_config_commands gdbinit"
26835 cat >confcache <<\_ACEOF
26836 # This file is a shell script that caches the results of configure
26837 # tests run on this system so they can be shared between configure
26838 # scripts and configure runs, see configure's option --config-cache.
26839 # It is not useful on other systems. If it contains results you don't
26840 # want to keep, you may remove or edit it.
26842 # config.status only pays attention to the cache file if you give it
26843 # the --recheck option to rerun configure.
26845 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26846 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26847 # following values.
26849 _ACEOF
26851 # The following way of writing the cache mishandles newlines in values,
26852 # but we know of no workaround that is simple, portable, and efficient.
26853 # So, we kill variables containing newlines.
26854 # Ultrix sh set writes to stderr and can't be redirected directly,
26855 # and sets the high bit in the cache file unless we assign to the vars.
26857 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26858 eval ac_val=\$$ac_var
26859 case $ac_val in #(
26860 *${as_nl}*)
26861 case $ac_var in #(
26862 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26863 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26864 esac
26865 case $ac_var in #(
26866 _ | IFS | as_nl) ;; #(
26867 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26868 *) { eval $ac_var=; unset $ac_var;} ;;
26869 esac ;;
26870 esac
26871 done
26873 (set) 2>&1 |
26874 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26875 *${as_nl}ac_space=\ *)
26876 # `set' does not quote correctly, so add quotes: double-quote
26877 # substitution turns \\\\ into \\, and sed turns \\ into \.
26878 sed -n \
26879 "s/'/'\\\\''/g;
26880 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26881 ;; #(
26883 # `set' quotes correctly as required by POSIX, so do not add quotes.
26884 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26886 esac |
26887 sort
26889 sed '
26890 /^ac_cv_env_/b end
26891 t clear
26892 :clear
26893 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26894 t end
26895 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26896 :end' >>confcache
26897 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26898 if test -w "$cache_file"; then
26899 test "x$cache_file" != "x/dev/null" &&
26900 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26901 $as_echo "$as_me: updating cache $cache_file" >&6;}
26902 cat confcache >$cache_file
26903 else
26904 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26905 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26908 rm -f confcache
26910 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26911 # Let make expand exec_prefix.
26912 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26914 DEFS=-DHAVE_CONFIG_H
26916 ac_libobjs=
26917 ac_ltlibobjs=
26918 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26919 # 1. Remove the extension, and $U if already installed.
26920 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26921 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26922 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26923 # will be set to the directory where LIBOBJS objects are built.
26924 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26925 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26926 done
26927 LIBOBJS=$ac_libobjs
26929 LTLIBOBJS=$ac_ltlibobjs
26932 if test -n "$EXEEXT"; then
26933 am__EXEEXT_TRUE=
26934 am__EXEEXT_FALSE='#'
26935 else
26936 am__EXEEXT_TRUE='#'
26937 am__EXEEXT_FALSE=
26940 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26941 as_fn_error "conditional \"AMDEP\" was never defined.
26942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26944 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26945 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26948 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
26949 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
26950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26952 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
26953 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
26954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26957 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
26958 as_fn_error "conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
26959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26961 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
26962 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
26963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26965 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
26966 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
26967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26969 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
26970 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
26971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26973 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
26974 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
26975 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26977 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
26978 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
26979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26981 if test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE}" && test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE}"; then
26982 as_fn_error "conditional \"gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b\" was never defined.
26983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26985 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
26986 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
26987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26989 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
26990 as_fn_error "conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
26991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26993 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
26994 as_fn_error "conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
26995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26997 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
26998 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
26999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27001 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
27002 as_fn_error "conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
27003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27005 if test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE}" && test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE}"; then
27006 as_fn_error "conditional \"gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7\" was never defined.
27007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27009 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
27010 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
27011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27013 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
27014 as_fn_error "conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
27015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27017 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
27018 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
27019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27021 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
27022 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
27023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27025 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
27026 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
27027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27029 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
27030 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
27031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27033 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
27034 as_fn_error "conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
27035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27038 gl_libobjs=
27039 gl_ltlibobjs=
27040 if test -n "$gl_LIBOBJS"; then
27041 # Remove the extension.
27042 sed_drop_objext='s/\.o$//;s/\.obj$//'
27043 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
27044 gl_libobjs="$gl_libobjs $i.$ac_objext"
27045 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
27046 done
27048 gl_LIBOBJS=$gl_libobjs
27050 gl_LTLIBOBJS=$gl_ltlibobjs
27054 gltests_libobjs=
27055 gltests_ltlibobjs=
27056 if test -n "$gltests_LIBOBJS"; then
27057 # Remove the extension.
27058 sed_drop_objext='s/\.o$//;s/\.obj$//'
27059 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
27060 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
27061 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
27062 done
27064 gltests_LIBOBJS=$gltests_libobjs
27066 gltests_LTLIBOBJS=$gltests_ltlibobjs
27070 : ${CONFIG_STATUS=./config.status}
27071 ac_write_fail=0
27072 ac_clean_files_save=$ac_clean_files
27073 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27074 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27075 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27076 as_write_fail=0
27077 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27078 #! $SHELL
27079 # Generated by $as_me.
27080 # Run this file to recreate the current configuration.
27081 # Compiler output produced by configure, useful for debugging
27082 # configure, is in config.log if it exists.
27084 debug=false
27085 ac_cs_recheck=false
27086 ac_cs_silent=false
27088 SHELL=\${CONFIG_SHELL-$SHELL}
27089 export SHELL
27090 _ASEOF
27091 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27092 ## -------------------- ##
27093 ## M4sh Initialization. ##
27094 ## -------------------- ##
27096 # Be more Bourne compatible
27097 DUALCASE=1; export DUALCASE # for MKS sh
27098 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27099 emulate sh
27100 NULLCMD=:
27101 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27102 # is contrary to our usage. Disable this feature.
27103 alias -g '${1+"$@"}'='"$@"'
27104 setopt NO_GLOB_SUBST
27105 else
27106 case `(set -o) 2>/dev/null` in #(
27107 *posix*) :
27108 set -o posix ;; #(
27109 *) :
27111 esac
27115 as_nl='
27117 export as_nl
27118 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27119 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27120 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27121 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27122 # Prefer a ksh shell builtin over an external printf program on Solaris,
27123 # but without wasting forks for bash or zsh.
27124 if test -z "$BASH_VERSION$ZSH_VERSION" \
27125 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27126 as_echo='print -r --'
27127 as_echo_n='print -rn --'
27128 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27129 as_echo='printf %s\n'
27130 as_echo_n='printf %s'
27131 else
27132 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27133 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27134 as_echo_n='/usr/ucb/echo -n'
27135 else
27136 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27137 as_echo_n_body='eval
27138 arg=$1;
27139 case $arg in #(
27140 *"$as_nl"*)
27141 expr "X$arg" : "X\\(.*\\)$as_nl";
27142 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27143 esac;
27144 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27146 export as_echo_n_body
27147 as_echo_n='sh -c $as_echo_n_body as_echo'
27149 export as_echo_body
27150 as_echo='sh -c $as_echo_body as_echo'
27153 # The user is always right.
27154 if test "${PATH_SEPARATOR+set}" != set; then
27155 PATH_SEPARATOR=:
27156 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27157 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27158 PATH_SEPARATOR=';'
27163 # IFS
27164 # We need space, tab and new line, in precisely that order. Quoting is
27165 # there to prevent editors from complaining about space-tab.
27166 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27167 # splitting by setting IFS to empty value.)
27168 IFS=" "" $as_nl"
27170 # Find who we are. Look in the path if we contain no directory separator.
27171 case $0 in #((
27172 *[\\/]* ) as_myself=$0 ;;
27173 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27174 for as_dir in $PATH
27176 IFS=$as_save_IFS
27177 test -z "$as_dir" && as_dir=.
27178 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27179 done
27180 IFS=$as_save_IFS
27183 esac
27184 # We did not find ourselves, most probably we were run as `sh COMMAND'
27185 # in which case we are not to be found in the path.
27186 if test "x$as_myself" = x; then
27187 as_myself=$0
27189 if test ! -f "$as_myself"; then
27190 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27191 exit 1
27194 # Unset variables that we do not need and which cause bugs (e.g. in
27195 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27196 # suppresses any "Segmentation fault" message there. '((' could
27197 # trigger a bug in pdksh 5.2.14.
27198 for as_var in BASH_ENV ENV MAIL MAILPATH
27199 do eval test x\${$as_var+set} = xset \
27200 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27201 done
27202 PS1='$ '
27203 PS2='> '
27204 PS4='+ '
27206 # NLS nuisances.
27207 LC_ALL=C
27208 export LC_ALL
27209 LANGUAGE=C
27210 export LANGUAGE
27212 # CDPATH.
27213 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27216 # as_fn_error ERROR [LINENO LOG_FD]
27217 # ---------------------------------
27218 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27219 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27220 # script with status $?, using 1 if that was 0.
27221 as_fn_error ()
27223 as_status=$?; test $as_status -eq 0 && as_status=1
27224 if test "$3"; then
27225 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27226 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27228 $as_echo "$as_me: error: $1" >&2
27229 as_fn_exit $as_status
27230 } # as_fn_error
27233 # as_fn_set_status STATUS
27234 # -----------------------
27235 # Set $? to STATUS, without forking.
27236 as_fn_set_status ()
27238 return $1
27239 } # as_fn_set_status
27241 # as_fn_exit STATUS
27242 # -----------------
27243 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27244 as_fn_exit ()
27246 set +e
27247 as_fn_set_status $1
27248 exit $1
27249 } # as_fn_exit
27251 # as_fn_unset VAR
27252 # ---------------
27253 # Portably unset VAR.
27254 as_fn_unset ()
27256 { eval $1=; unset $1;}
27258 as_unset=as_fn_unset
27259 # as_fn_append VAR VALUE
27260 # ----------------------
27261 # Append the text in VALUE to the end of the definition contained in VAR. Take
27262 # advantage of any shell optimizations that allow amortized linear growth over
27263 # repeated appends, instead of the typical quadratic growth present in naive
27264 # implementations.
27265 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27266 eval 'as_fn_append ()
27268 eval $1+=\$2
27270 else
27271 as_fn_append ()
27273 eval $1=\$$1\$2
27275 fi # as_fn_append
27277 # as_fn_arith ARG...
27278 # ------------------
27279 # Perform arithmetic evaluation on the ARGs, and store the result in the
27280 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27281 # must be portable across $(()) and expr.
27282 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27283 eval 'as_fn_arith ()
27285 as_val=$(( $* ))
27287 else
27288 as_fn_arith ()
27290 as_val=`expr "$@" || test $? -eq 1`
27292 fi # as_fn_arith
27295 if expr a : '\(a\)' >/dev/null 2>&1 &&
27296 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27297 as_expr=expr
27298 else
27299 as_expr=false
27302 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27303 as_basename=basename
27304 else
27305 as_basename=false
27308 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27309 as_dirname=dirname
27310 else
27311 as_dirname=false
27314 as_me=`$as_basename -- "$0" ||
27315 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27316 X"$0" : 'X\(//\)$' \| \
27317 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27318 $as_echo X/"$0" |
27319 sed '/^.*\/\([^/][^/]*\)\/*$/{
27320 s//\1/
27323 /^X\/\(\/\/\)$/{
27324 s//\1/
27327 /^X\/\(\/\).*/{
27328 s//\1/
27331 s/.*/./; q'`
27333 # Avoid depending upon Character Ranges.
27334 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27335 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27336 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27337 as_cr_digits='0123456789'
27338 as_cr_alnum=$as_cr_Letters$as_cr_digits
27340 ECHO_C= ECHO_N= ECHO_T=
27341 case `echo -n x` in #(((((
27342 -n*)
27343 case `echo 'xy\c'` in
27344 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27345 xy) ECHO_C='\c';;
27346 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27347 ECHO_T=' ';;
27348 esac;;
27350 ECHO_N='-n';;
27351 esac
27353 rm -f conf$$ conf$$.exe conf$$.file
27354 if test -d conf$$.dir; then
27355 rm -f conf$$.dir/conf$$.file
27356 else
27357 rm -f conf$$.dir
27358 mkdir conf$$.dir 2>/dev/null
27360 if (echo >conf$$.file) 2>/dev/null; then
27361 if ln -s conf$$.file conf$$ 2>/dev/null; then
27362 as_ln_s='ln -s'
27363 # ... but there are two gotchas:
27364 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27365 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27366 # In both cases, we have to default to `cp -p'.
27367 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27368 as_ln_s='cp -p'
27369 elif ln conf$$.file conf$$ 2>/dev/null; then
27370 as_ln_s=ln
27371 else
27372 as_ln_s='cp -p'
27374 else
27375 as_ln_s='cp -p'
27377 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27378 rmdir conf$$.dir 2>/dev/null
27381 # as_fn_mkdir_p
27382 # -------------
27383 # Create "$as_dir" as a directory, including parents if necessary.
27384 as_fn_mkdir_p ()
27387 case $as_dir in #(
27388 -*) as_dir=./$as_dir;;
27389 esac
27390 test -d "$as_dir" || eval $as_mkdir_p || {
27391 as_dirs=
27392 while :; do
27393 case $as_dir in #(
27394 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27395 *) as_qdir=$as_dir;;
27396 esac
27397 as_dirs="'$as_qdir' $as_dirs"
27398 as_dir=`$as_dirname -- "$as_dir" ||
27399 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27400 X"$as_dir" : 'X\(//\)[^/]' \| \
27401 X"$as_dir" : 'X\(//\)$' \| \
27402 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27403 $as_echo X"$as_dir" |
27404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27405 s//\1/
27408 /^X\(\/\/\)[^/].*/{
27409 s//\1/
27412 /^X\(\/\/\)$/{
27413 s//\1/
27416 /^X\(\/\).*/{
27417 s//\1/
27420 s/.*/./; q'`
27421 test -d "$as_dir" && break
27422 done
27423 test -z "$as_dirs" || eval "mkdir $as_dirs"
27424 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27427 } # as_fn_mkdir_p
27428 if mkdir -p . 2>/dev/null; then
27429 as_mkdir_p='mkdir -p "$as_dir"'
27430 else
27431 test -d ./-p && rmdir ./-p
27432 as_mkdir_p=false
27435 if test -x / >/dev/null 2>&1; then
27436 as_test_x='test -x'
27437 else
27438 if ls -dL / >/dev/null 2>&1; then
27439 as_ls_L_option=L
27440 else
27441 as_ls_L_option=
27443 as_test_x='
27444 eval sh -c '\''
27445 if test -d "$1"; then
27446 test -d "$1/.";
27447 else
27448 case $1 in #(
27449 -*)set "./$1";;
27450 esac;
27451 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27452 ???[sx]*):;;*)false;;esac;fi
27453 '\'' sh
27456 as_executable_p=$as_test_x
27458 # Sed expression to map a string onto a valid CPP name.
27459 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27461 # Sed expression to map a string onto a valid variable name.
27462 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27465 exec 6>&1
27466 ## ----------------------------------- ##
27467 ## Main body of $CONFIG_STATUS script. ##
27468 ## ----------------------------------- ##
27469 _ASEOF
27470 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27473 # Save the log message, to keep $0 and so on meaningful, and to
27474 # report actual input values of CONFIG_FILES etc. instead of their
27475 # values after options handling.
27476 ac_log="
27477 This file was extended by emacs $as_me 24.3.50, which was
27478 generated by GNU Autoconf 2.65. Invocation command line was
27480 CONFIG_FILES = $CONFIG_FILES
27481 CONFIG_HEADERS = $CONFIG_HEADERS
27482 CONFIG_LINKS = $CONFIG_LINKS
27483 CONFIG_COMMANDS = $CONFIG_COMMANDS
27484 $ $0 $@
27486 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27489 _ACEOF
27491 case $ac_config_files in *"
27492 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27493 esac
27495 case $ac_config_headers in *"
27496 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27497 esac
27500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27501 # Files that config.status was made for.
27502 config_files="$ac_config_files"
27503 config_headers="$ac_config_headers"
27504 config_commands="$ac_config_commands"
27506 _ACEOF
27508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27509 ac_cs_usage="\
27510 \`$as_me' instantiates files and other configuration actions
27511 from templates according to the current configuration. Unless the files
27512 and actions are specified as TAGs, all are instantiated by default.
27514 Usage: $0 [OPTION]... [TAG]...
27516 -h, --help print this help, then exit
27517 -V, --version print version number and configuration settings, then exit
27518 --config print configuration, then exit
27519 -q, --quiet, --silent
27520 do not print progress messages
27521 -d, --debug don't remove temporary files
27522 --recheck update $as_me by reconfiguring in the same conditions
27523 --file=FILE[:TEMPLATE]
27524 instantiate the configuration file FILE
27525 --header=FILE[:TEMPLATE]
27526 instantiate the configuration header FILE
27528 Configuration files:
27529 $config_files
27531 Configuration headers:
27532 $config_headers
27534 Configuration commands:
27535 $config_commands
27537 Report bugs to the package provider."
27539 _ACEOF
27540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27541 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27542 ac_cs_version="\\
27543 emacs config.status 24.3.50
27544 configured by $0, generated by GNU Autoconf 2.65,
27545 with options \\"\$ac_cs_config\\"
27547 Copyright (C) 2009 Free Software Foundation, Inc.
27548 This config.status script is free software; the Free Software Foundation
27549 gives unlimited permission to copy, distribute and modify it."
27551 ac_pwd='$ac_pwd'
27552 srcdir='$srcdir'
27553 INSTALL='$INSTALL'
27554 MKDIR_P='$MKDIR_P'
27555 AWK='$AWK'
27556 test -n "\$AWK" || AWK=awk
27557 _ACEOF
27559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27560 # The default lists apply if the user does not specify any file.
27561 ac_need_defaults=:
27562 while test $# != 0
27564 case $1 in
27565 --*=*)
27566 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27567 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27568 ac_shift=:
27571 ac_option=$1
27572 ac_optarg=$2
27573 ac_shift=shift
27575 esac
27577 case $ac_option in
27578 # Handling of the options.
27579 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27580 ac_cs_recheck=: ;;
27581 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27582 $as_echo "$ac_cs_version"; exit ;;
27583 --config | --confi | --conf | --con | --co | --c )
27584 $as_echo "$ac_cs_config"; exit ;;
27585 --debug | --debu | --deb | --de | --d | -d )
27586 debug=: ;;
27587 --file | --fil | --fi | --f )
27588 $ac_shift
27589 case $ac_optarg in
27590 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27591 esac
27592 as_fn_append CONFIG_FILES " '$ac_optarg'"
27593 ac_need_defaults=false;;
27594 --header | --heade | --head | --hea )
27595 $ac_shift
27596 case $ac_optarg in
27597 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27598 esac
27599 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27600 ac_need_defaults=false;;
27601 --he | --h)
27602 # Conflict between --help and --header
27603 as_fn_error "ambiguous option: \`$1'
27604 Try \`$0 --help' for more information.";;
27605 --help | --hel | -h )
27606 $as_echo "$ac_cs_usage"; exit ;;
27607 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27608 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27609 ac_cs_silent=: ;;
27611 # This is an error.
27612 -*) as_fn_error "unrecognized option: \`$1'
27613 Try \`$0 --help' for more information." ;;
27615 *) as_fn_append ac_config_targets " $1"
27616 ac_need_defaults=false ;;
27618 esac
27619 shift
27620 done
27622 ac_configure_extra_args=
27624 if $ac_cs_silent; then
27625 exec 6>/dev/null
27626 ac_configure_extra_args="$ac_configure_extra_args --silent"
27629 _ACEOF
27630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27631 if \$ac_cs_recheck; then
27632 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27633 shift
27634 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27635 CONFIG_SHELL='$SHELL'
27636 export CONFIG_SHELL
27637 exec "\$@"
27640 _ACEOF
27641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27642 exec 5>>config.log
27644 echo
27645 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27646 ## Running $as_me. ##
27647 _ASBOX
27648 $as_echo "$ac_log"
27649 } >&5
27651 _ACEOF
27652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27654 # INIT-COMMANDS
27656 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27657 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
27659 _ACEOF
27661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27663 # Handling of arguments.
27664 for ac_config_target in $ac_config_targets
27666 case $ac_config_target in
27667 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
27668 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27669 "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" ;;
27670 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
27671 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
27672 "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" ;;
27673 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27674 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
27675 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
27676 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
27677 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
27678 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
27679 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
27680 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
27681 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27682 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
27683 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
27684 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
27685 "nextstep/Makefile") CONFIG_FILES="$CONFIG_FILES nextstep/Makefile" ;;
27686 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
27687 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
27688 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
27689 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
27690 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
27692 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27693 esac
27694 done
27697 # If the user did not use the arguments to specify the items to instantiate,
27698 # then the envvar interface is used. Set only those that are not.
27699 # We use the long form for the default assignment because of an extremely
27700 # bizarre bug on SunOS 4.1.3.
27701 if $ac_need_defaults; then
27702 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27703 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27704 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27707 # Have a temporary directory for convenience. Make it in the build tree
27708 # simply because there is no reason against having it here, and in addition,
27709 # creating and moving files from /tmp can sometimes cause problems.
27710 # Hook for its removal unless debugging.
27711 # Note that there is a small window in which the directory will not be cleaned:
27712 # after its creation but before its name has been assigned to `$tmp'.
27713 $debug ||
27715 tmp=
27716 trap 'exit_status=$?
27717 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27719 trap 'as_fn_exit 1' 1 2 13 15
27721 # Create a (secure) tmp directory for tmp files.
27724 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27725 test -n "$tmp" && test -d "$tmp"
27726 } ||
27728 tmp=./conf$$-$RANDOM
27729 (umask 077 && mkdir "$tmp")
27730 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27732 # Set up the scripts for CONFIG_FILES section.
27733 # No need to generate them if there are no CONFIG_FILES.
27734 # This happens for instance with `./config.status config.h'.
27735 if test -n "$CONFIG_FILES"; then
27737 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27738 ac_cs_awk_getline=:
27739 ac_cs_awk_pipe_init=
27740 ac_cs_awk_read_file='
27741 while ((getline aline < (F[key])) > 0)
27742 print(aline)
27743 close(F[key])'
27744 ac_cs_awk_pipe_fini=
27745 else
27746 ac_cs_awk_getline=false
27747 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27748 ac_cs_awk_read_file='
27749 print "|#_!!_#|"
27750 print "cat " F[key] " &&"
27751 '$ac_cs_awk_pipe_init
27752 # The final `:' finishes the AND list.
27753 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27755 ac_cr=`echo X | tr X '\015'`
27756 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27757 # But we know of no other shell where ac_cr would be empty at this
27758 # point, so we can use a bashism as a fallback.
27759 if test "x$ac_cr" = x; then
27760 eval ac_cr=\$\'\\r\'
27762 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27763 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27764 ac_cs_awk_cr='\r'
27765 else
27766 ac_cs_awk_cr=$ac_cr
27769 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27770 _ACEOF
27772 # Create commands to substitute file output variables.
27774 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27775 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27776 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27777 echo "_ACAWK" &&
27778 echo "_ACEOF"
27779 } >conf$$files.sh &&
27780 . ./conf$$files.sh ||
27781 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27782 rm -f conf$$files.sh
27785 echo "cat >conf$$subs.awk <<_ACEOF" &&
27786 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27787 echo "_ACEOF"
27788 } >conf$$subs.sh ||
27789 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27790 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27791 ac_delim='%!_!# '
27792 for ac_last_try in false false false false false :; do
27793 . ./conf$$subs.sh ||
27794 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27796 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27797 if test $ac_delim_n = $ac_delim_num; then
27798 break
27799 elif $ac_last_try; then
27800 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27801 else
27802 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27804 done
27805 rm -f conf$$subs.sh
27807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27808 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27809 _ACEOF
27810 sed -n '
27812 s/^/S["/; s/!.*/"]=/
27815 s/^[^!]*!//
27816 :repl
27817 t repl
27818 s/'"$ac_delim"'$//
27819 t delim
27822 s/\(.\{148\}\)..*/\1/
27823 t more1
27824 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27827 b repl
27828 :more1
27829 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27832 s/.\{148\}//
27833 t nl
27834 :delim
27836 s/\(.\{148\}\)..*/\1/
27837 t more2
27838 s/["\\]/\\&/g; s/^/"/; s/$/"/
27841 :more2
27842 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27845 s/.\{148\}//
27846 t delim
27847 ' <conf$$subs.awk | sed '
27848 /^[^""]/{
27850 s/\n//
27852 ' >>$CONFIG_STATUS || ac_write_fail=1
27853 rm -f conf$$subs.awk
27854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27855 _ACAWK
27856 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27857 for (key in S) S_is_set[key] = 1
27858 FS = "\a"
27859 \$ac_cs_awk_pipe_init
27862 line = $ 0
27863 nfields = split(line, field, "@")
27864 substed = 0
27865 len = length(field[1])
27866 for (i = 2; i < nfields; i++) {
27867 key = field[i]
27868 keylen = length(key)
27869 if (S_is_set[key]) {
27870 value = S[key]
27871 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27872 len += length(value) + length(field[++i])
27873 substed = 1
27874 } else
27875 len += 1 + keylen
27877 if (nfields == 3 && !substed) {
27878 key = field[2]
27879 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27880 \$ac_cs_awk_read_file
27881 next
27884 print line
27886 \$ac_cs_awk_pipe_fini
27887 _ACAWK
27888 _ACEOF
27889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27890 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27891 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27892 else
27894 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27895 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27896 _ACEOF
27898 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27899 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27900 # trailing colons and then remove the whole line if VPATH becomes empty
27901 # (actually we leave an empty line to preserve line numbers).
27902 if test "x$srcdir" = x.; then
27903 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27904 s/:*\$(srcdir):*/:/
27905 s/:*\${srcdir}:*/:/
27906 s/:*@srcdir@:*/:/
27907 s/^\([^=]*=[ ]*\):*/\1/
27908 s/:*$//
27909 s/^[^=]*=[ ]*$//
27913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27914 fi # test -n "$CONFIG_FILES"
27916 # Set up the scripts for CONFIG_HEADERS section.
27917 # No need to generate them if there are no CONFIG_HEADERS.
27918 # This happens for instance with `./config.status Makefile'.
27919 if test -n "$CONFIG_HEADERS"; then
27920 cat >"$tmp/defines.awk" <<\_ACAWK ||
27921 BEGIN {
27922 _ACEOF
27924 # Transform confdefs.h into an awk script `defines.awk', embedded as
27925 # here-document in config.status, that substitutes the proper values into
27926 # config.h.in to produce config.h.
27928 # Create a delimiter string that does not exist in confdefs.h, to ease
27929 # handling of long lines.
27930 ac_delim='%!_!# '
27931 for ac_last_try in false false :; do
27932 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27933 if test -z "$ac_t"; then
27934 break
27935 elif $ac_last_try; then
27936 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27937 else
27938 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27940 done
27942 # For the awk script, D is an array of macro values keyed by name,
27943 # likewise P contains macro parameters if any. Preserve backslash
27944 # newline sequences.
27946 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27947 sed -n '
27948 s/.\{148\}/&'"$ac_delim"'/g
27949 t rset
27950 :rset
27951 s/^[ ]*#[ ]*define[ ][ ]*/ /
27952 t def
27954 :def
27955 s/\\$//
27956 t bsnl
27957 s/["\\]/\\&/g
27958 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27959 D["\1"]=" \3"/p
27960 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27962 :bsnl
27963 s/["\\]/\\&/g
27964 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27965 D["\1"]=" \3\\\\\\n"\\/p
27966 t cont
27967 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27968 t cont
27970 :cont
27972 s/.\{148\}/&'"$ac_delim"'/g
27973 t clear
27974 :clear
27975 s/\\$//
27976 t bsnlc
27977 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27979 :bsnlc
27980 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27981 b cont
27982 ' <confdefs.h | sed '
27983 s/'"$ac_delim"'/"\\\
27984 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27987 for (key in D) D_is_set[key] = 1
27988 FS = "\a"
27990 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27991 line = \$ 0
27992 split(line, arg, " ")
27993 if (arg[1] == "#") {
27994 defundef = arg[2]
27995 mac1 = arg[3]
27996 } else {
27997 defundef = substr(arg[1], 2)
27998 mac1 = arg[2]
28000 split(mac1, mac2, "(") #)
28001 macro = mac2[1]
28002 prefix = substr(line, 1, index(line, defundef) - 1)
28003 if (D_is_set[macro]) {
28004 # Preserve the white space surrounding the "#".
28005 print prefix "define", macro P[macro] D[macro]
28006 next
28007 } else {
28008 # Replace #undef with comments. This is necessary, for example,
28009 # in the case of _POSIX_SOURCE, which is predefined and required
28010 # on some systems where configure will not decide to define it.
28011 if (defundef == "undef") {
28012 print "/*", prefix defundef, macro, "*/"
28013 next
28017 { print }
28018 _ACAWK
28019 _ACEOF
28020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28021 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28022 fi # test -n "$CONFIG_HEADERS"
28025 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28026 shift
28027 for ac_tag
28029 case $ac_tag in
28030 :[FHLC]) ac_mode=$ac_tag; continue;;
28031 esac
28032 case $ac_mode$ac_tag in
28033 :[FHL]*:*);;
28034 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28035 :[FH]-) ac_tag=-:-;;
28036 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28037 esac
28038 ac_save_IFS=$IFS
28039 IFS=:
28040 set x $ac_tag
28041 IFS=$ac_save_IFS
28042 shift
28043 ac_file=$1
28044 shift
28046 case $ac_mode in
28047 :L) ac_source=$1;;
28048 :[FH])
28049 ac_file_inputs=
28050 for ac_f
28052 case $ac_f in
28053 -) ac_f="$tmp/stdin";;
28054 *) # Look for the file first in the build tree, then in the source tree
28055 # (if the path is not absolute). The absolute path cannot be DOS-style,
28056 # because $ac_f cannot contain `:'.
28057 test -f "$ac_f" ||
28058 case $ac_f in
28059 [\\/$]*) false;;
28060 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28061 esac ||
28062 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28063 esac
28064 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28065 as_fn_append ac_file_inputs " '$ac_f'"
28066 done
28068 # Let's still pretend it is `configure' which instantiates (i.e., don't
28069 # use $as_me), people would be surprised to read:
28070 # /* config.h. Generated by config.status. */
28071 configure_input='Generated from '`
28072 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28073 `' by configure.'
28074 if test x"$ac_file" != x-; then
28075 configure_input="$ac_file. $configure_input"
28076 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28077 $as_echo "$as_me: creating $ac_file" >&6;}
28079 # Neutralize special characters interpreted by sed in replacement strings.
28080 case $configure_input in #(
28081 *\&* | *\|* | *\\* )
28082 ac_sed_conf_input=`$as_echo "$configure_input" |
28083 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28084 *) ac_sed_conf_input=$configure_input;;
28085 esac
28087 case $ac_tag in
28088 *:-:* | *:-) cat >"$tmp/stdin" \
28089 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28090 esac
28092 esac
28094 ac_dir=`$as_dirname -- "$ac_file" ||
28095 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28096 X"$ac_file" : 'X\(//\)[^/]' \| \
28097 X"$ac_file" : 'X\(//\)$' \| \
28098 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28099 $as_echo X"$ac_file" |
28100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28101 s//\1/
28104 /^X\(\/\/\)[^/].*/{
28105 s//\1/
28108 /^X\(\/\/\)$/{
28109 s//\1/
28112 /^X\(\/\).*/{
28113 s//\1/
28116 s/.*/./; q'`
28117 as_dir="$ac_dir"; as_fn_mkdir_p
28118 ac_builddir=.
28120 case "$ac_dir" in
28121 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28123 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28124 # A ".." for each directory in $ac_dir_suffix.
28125 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28126 case $ac_top_builddir_sub in
28127 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28128 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28129 esac ;;
28130 esac
28131 ac_abs_top_builddir=$ac_pwd
28132 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28133 # for backward compatibility:
28134 ac_top_builddir=$ac_top_build_prefix
28136 case $srcdir in
28137 .) # We are building in place.
28138 ac_srcdir=.
28139 ac_top_srcdir=$ac_top_builddir_sub
28140 ac_abs_top_srcdir=$ac_pwd ;;
28141 [\\/]* | ?:[\\/]* ) # Absolute name.
28142 ac_srcdir=$srcdir$ac_dir_suffix;
28143 ac_top_srcdir=$srcdir
28144 ac_abs_top_srcdir=$srcdir ;;
28145 *) # Relative name.
28146 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28147 ac_top_srcdir=$ac_top_build_prefix$srcdir
28148 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28149 esac
28150 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28153 case $ac_mode in
28156 # CONFIG_FILE
28159 case $INSTALL in
28160 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28161 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28162 esac
28163 ac_MKDIR_P=$MKDIR_P
28164 case $MKDIR_P in
28165 [\\/$]* | ?:[\\/]* ) ;;
28166 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28167 esac
28168 _ACEOF
28170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28171 # If the template does not know about datarootdir, expand it.
28172 # FIXME: This hack should be removed a few years after 2.60.
28173 ac_datarootdir_hack=; ac_datarootdir_seen=
28174 ac_sed_dataroot='
28175 /datarootdir/ {
28179 /@datadir@/p
28180 /@docdir@/p
28181 /@infodir@/p
28182 /@localedir@/p
28183 /@mandir@/p'
28184 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28185 *datarootdir*) ac_datarootdir_seen=yes;;
28186 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28188 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28189 _ACEOF
28190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28191 ac_datarootdir_hack='
28192 s&@datadir@&$datadir&g
28193 s&@docdir@&$docdir&g
28194 s&@infodir@&$infodir&g
28195 s&@localedir@&$localedir&g
28196 s&@mandir@&$mandir&g
28197 s&\\\${datarootdir}&$datarootdir&g' ;;
28198 esac
28199 _ACEOF
28201 # Neutralize VPATH when `$srcdir' = `.'.
28202 # Shell code in configure.ac might set extrasub.
28203 # FIXME: do we really want to maintain this feature?
28204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28205 ac_sed_extra="$ac_vpsub
28206 $extrasub
28207 _ACEOF
28208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28210 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28211 s|@configure_input@|$ac_sed_conf_input|;t t
28212 s&@top_builddir@&$ac_top_builddir_sub&;t t
28213 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28214 s&@srcdir@&$ac_srcdir&;t t
28215 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28216 s&@top_srcdir@&$ac_top_srcdir&;t t
28217 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28218 s&@builddir@&$ac_builddir&;t t
28219 s&@abs_builddir@&$ac_abs_builddir&;t t
28220 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28221 s&@INSTALL@&$ac_INSTALL&;t t
28222 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28223 $ac_datarootdir_hack
28225 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28226 if $ac_cs_awk_getline; then
28227 $AWK -f "$tmp/subs.awk"
28228 else
28229 $AWK -f "$tmp/subs.awk" | $SHELL
28230 fi >$tmp/out \
28231 || as_fn_error "could not create $ac_file" "$LINENO" 5
28233 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28234 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28235 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28237 which seems to be undefined. Please make sure it is defined." >&5
28238 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28239 which seems to be undefined. Please make sure it is defined." >&2;}
28241 rm -f "$tmp/stdin"
28242 case $ac_file in
28243 -) cat "$tmp/out" && rm -f "$tmp/out";;
28244 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28245 esac \
28246 || as_fn_error "could not create $ac_file" "$LINENO" 5
28250 # CONFIG_HEADER
28252 if test x"$ac_file" != x-; then
28254 $as_echo "/* $configure_input */" \
28255 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28256 } >"$tmp/config.h" \
28257 || as_fn_error "could not create $ac_file" "$LINENO" 5
28258 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28259 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28260 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28261 else
28262 rm -f "$ac_file"
28263 mv "$tmp/config.h" "$ac_file" \
28264 || as_fn_error "could not create $ac_file" "$LINENO" 5
28266 else
28267 $as_echo "/* $configure_input */" \
28268 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28269 || as_fn_error "could not create -" "$LINENO" 5
28271 # Compute "$ac_file"'s index in $config_headers.
28272 _am_arg="$ac_file"
28273 _am_stamp_count=1
28274 for _am_header in $config_headers :; do
28275 case $_am_header in
28276 $_am_arg | $_am_arg:* )
28277 break ;;
28279 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28280 esac
28281 done
28282 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28283 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28284 X"$_am_arg" : 'X\(//\)[^/]' \| \
28285 X"$_am_arg" : 'X\(//\)$' \| \
28286 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28287 $as_echo X"$_am_arg" |
28288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28289 s//\1/
28292 /^X\(\/\/\)[^/].*/{
28293 s//\1/
28296 /^X\(\/\/\)$/{
28297 s//\1/
28300 /^X\(\/\).*/{
28301 s//\1/
28304 s/.*/./; q'`/stamp-h$_am_stamp_count
28307 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28308 $as_echo "$as_me: executing $ac_file commands" >&6;}
28310 esac
28313 case $ac_file$ac_mode in
28314 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28315 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28316 # are listed without --file. Let's play safe and only enable the eval
28317 # if we detect the quoting.
28318 case $CONFIG_FILES in
28319 *\'*) eval set x "$CONFIG_FILES" ;;
28320 *) set x $CONFIG_FILES ;;
28321 esac
28322 shift
28323 for mf
28325 # Strip MF so we end up with the name of the file.
28326 mf=`echo "$mf" | sed -e 's/:.*$//'`
28327 # Check whether this is an Automake generated Makefile or not.
28328 # We used to match only the files named `Makefile.in', but
28329 # some people rename them; so instead we look at the file content.
28330 # Grep'ing the first line is not enough: some people post-process
28331 # each Makefile.in and add a new line on top of each file to say so.
28332 # Grep'ing the whole file is not good either: AIX grep has a line
28333 # limit of 2048, but all sed's we know have understand at least 4000.
28334 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28335 dirpart=`$as_dirname -- "$mf" ||
28336 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28337 X"$mf" : 'X\(//\)[^/]' \| \
28338 X"$mf" : 'X\(//\)$' \| \
28339 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28340 $as_echo X"$mf" |
28341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28342 s//\1/
28345 /^X\(\/\/\)[^/].*/{
28346 s//\1/
28349 /^X\(\/\/\)$/{
28350 s//\1/
28353 /^X\(\/\).*/{
28354 s//\1/
28357 s/.*/./; q'`
28358 else
28359 continue
28361 # Extract the definition of DEPDIR, am__include, and am__quote
28362 # from the Makefile without running `make'.
28363 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28364 test -z "$DEPDIR" && continue
28365 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28366 test -z "am__include" && continue
28367 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28368 # When using ansi2knr, U may be empty or an underscore; expand it
28369 U=`sed -n 's/^U = //p' < "$mf"`
28370 # Find all dependency output files, they are included files with
28371 # $(DEPDIR) in their names. We invoke sed twice because it is the
28372 # simplest approach to changing $(DEPDIR) to its actual value in the
28373 # expansion.
28374 for file in `sed -n "
28375 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28376 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28377 # Make sure the directory exists.
28378 test -f "$dirpart/$file" && continue
28379 fdir=`$as_dirname -- "$file" ||
28380 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28381 X"$file" : 'X\(//\)[^/]' \| \
28382 X"$file" : 'X\(//\)$' \| \
28383 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28384 $as_echo X"$file" |
28385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28386 s//\1/
28389 /^X\(\/\/\)[^/].*/{
28390 s//\1/
28393 /^X\(\/\/\)$/{
28394 s//\1/
28397 /^X\(\/\).*/{
28398 s//\1/
28401 s/.*/./; q'`
28402 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28403 # echo "creating $dirpart/$file"
28404 echo '# dummy' > "$dirpart/$file"
28405 done
28406 done
28409 "mkdirs":C)
28410 for dir in etc lisp ; do
28411 test -d ${dir} || mkdir ${dir}
28412 done
28414 "epaths":C)
28415 echo creating src/epaths.h
28416 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force
28418 "gdbinit":C)
28419 if test ! -f src/.gdbinit && test -f "$srcdir/src/.gdbinit"; then
28420 echo creating src/.gdbinit
28421 echo "source $srcdir/src/.gdbinit" > src/.gdbinit
28425 esac
28426 done # for ac_tag
28429 as_fn_exit 0
28430 _ACEOF
28431 ac_clean_files=$ac_clean_files_save
28433 test $ac_write_fail = 0 ||
28434 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28437 # configure is writing to config.log, and then calls config.status.
28438 # config.status does its own redirection, appending to config.log.
28439 # Unfortunately, on DOS this fails, as config.log is still kept open
28440 # by configure, so config.status won't be able to write to it; its
28441 # output is simply discarded. So we exec the FD to /dev/null,
28442 # effectively closing config.log, so it can be properly (re)opened and
28443 # appended to by config.status. When coming back to configure, we
28444 # need to make the FD available again.
28445 if test "$no_create" != yes; then
28446 ac_cs_success=:
28447 ac_config_status_args=
28448 test "$silent" = yes &&
28449 ac_config_status_args="$ac_config_status_args --quiet"
28450 exec 5>/dev/null
28451 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28452 exec 5>>config.log
28453 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28454 # would make configure fail if this is the last instruction.
28455 $ac_cs_success || as_fn_exit $?
28457 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28459 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}