Auto-commit of generated files.
[emacs.git] / autogen / configure
blob5f379dc8de5fddb132afca183d134db66ff741f4
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 ns_check_file
608 WINDOW_SYSTEM_OBJ
609 EMACS_HEAPSIZE
610 TEMACS_POST_LINK
611 ADDSECTION
612 LD_SWITCH_SYSTEM_TEMACS
613 LIBGNU_LTLIBDEPS
614 LIBGNU_LIBDEPS
615 gltests_WITNESS
616 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
617 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
618 gl_GNULIB_ENABLED_tempname_FALSE
619 gl_GNULIB_ENABLED_tempname_TRUE
620 gl_GNULIB_ENABLED_strtoull_FALSE
621 gl_GNULIB_ENABLED_strtoull_TRUE
622 gl_GNULIB_ENABLED_strtoll_FALSE
623 gl_GNULIB_ENABLED_strtoll_TRUE
624 gl_GNULIB_ENABLED_stat_FALSE
625 gl_GNULIB_ENABLED_stat_TRUE
626 gl_GNULIB_ENABLED_secure_getenv_FALSE
627 gl_GNULIB_ENABLED_secure_getenv_TRUE
628 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
629 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
630 gl_GNULIB_ENABLED_pathmax_FALSE
631 gl_GNULIB_ENABLED_pathmax_TRUE
632 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
633 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
634 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
635 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
636 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
637 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
638 gl_GNULIB_ENABLED_getgroups_FALSE
639 gl_GNULIB_ENABLED_getgroups_TRUE
640 gl_GNULIB_ENABLED_getdtablesize_FALSE
641 gl_GNULIB_ENABLED_getdtablesize_TRUE
642 gl_GNULIB_ENABLED_euidaccess_FALSE
643 gl_GNULIB_ENABLED_euidaccess_TRUE
644 gl_GNULIB_ENABLED_dosname_FALSE
645 gl_GNULIB_ENABLED_dosname_TRUE
646 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
647 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
648 LTLIBINTL
649 LIBINTL
650 LIB_EACCESS
651 WINDOWS_64_BIT_OFF_T
652 HAVE_UNISTD_H
653 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
654 NEXT_UNISTD_H
655 LIB_TIMER_TIME
656 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
657 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
658 TIME_H_DEFINES_STRUCT_TIMESPEC
659 NEXT_AS_FIRST_DIRECTIVE_TIME_H
660 NEXT_TIME_H
661 WINDOWS_64_BIT_ST_SIZE
662 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
663 NEXT_SYS_STAT_H
664 NEXT_AS_FIRST_DIRECTIVE_STRING_H
665 NEXT_STRING_H
666 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
667 NEXT_STDLIB_H
668 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
669 NEXT_STDIO_H
670 REPLACE_VSPRINTF
671 REPLACE_VSNPRINTF
672 REPLACE_VPRINTF
673 REPLACE_VFPRINTF
674 REPLACE_VDPRINTF
675 REPLACE_VASPRINTF
676 REPLACE_TMPFILE
677 REPLACE_STDIO_WRITE_FUNCS
678 REPLACE_STDIO_READ_FUNCS
679 REPLACE_SPRINTF
680 REPLACE_SNPRINTF
681 REPLACE_RENAMEAT
682 REPLACE_RENAME
683 REPLACE_REMOVE
684 REPLACE_PRINTF
685 REPLACE_POPEN
686 REPLACE_PERROR
687 REPLACE_OBSTACK_PRINTF
688 REPLACE_GETLINE
689 REPLACE_GETDELIM
690 REPLACE_FTELLO
691 REPLACE_FTELL
692 REPLACE_FSEEKO
693 REPLACE_FSEEK
694 REPLACE_FREOPEN
695 REPLACE_FPURGE
696 REPLACE_FPRINTF
697 REPLACE_FOPEN
698 REPLACE_FFLUSH
699 REPLACE_FDOPEN
700 REPLACE_FCLOSE
701 REPLACE_DPRINTF
702 HAVE_VDPRINTF
703 HAVE_VASPRINTF
704 HAVE_RENAMEAT
705 HAVE_POPEN
706 HAVE_PCLOSE
707 HAVE_FTELLO
708 HAVE_FSEEKO
709 HAVE_DPRINTF
710 HAVE_DECL_VSNPRINTF
711 HAVE_DECL_SNPRINTF
712 HAVE_DECL_OBSTACK_PRINTF
713 HAVE_DECL_GETLINE
714 HAVE_DECL_GETDELIM
715 HAVE_DECL_FTELLO
716 HAVE_DECL_FSEEKO
717 HAVE_DECL_FPURGE
718 GNULIB_VSPRINTF_POSIX
719 GNULIB_VSNPRINTF
720 GNULIB_VPRINTF_POSIX
721 GNULIB_VPRINTF
722 GNULIB_VFPRINTF_POSIX
723 GNULIB_VFPRINTF
724 GNULIB_VDPRINTF
725 GNULIB_VSCANF
726 GNULIB_VFSCANF
727 GNULIB_VASPRINTF
728 GNULIB_TMPFILE
729 GNULIB_STDIO_H_SIGPIPE
730 GNULIB_STDIO_H_NONBLOCKING
731 GNULIB_SPRINTF_POSIX
732 GNULIB_SNPRINTF
733 GNULIB_SCANF
734 GNULIB_RENAMEAT
735 GNULIB_RENAME
736 GNULIB_REMOVE
737 GNULIB_PUTS
738 GNULIB_PUTCHAR
739 GNULIB_PUTC
740 GNULIB_PRINTF_POSIX
741 GNULIB_PRINTF
742 GNULIB_POPEN
743 GNULIB_PERROR
744 GNULIB_PCLOSE
745 GNULIB_OBSTACK_PRINTF_POSIX
746 GNULIB_OBSTACK_PRINTF
747 GNULIB_GETLINE
748 GNULIB_GETDELIM
749 GNULIB_GETCHAR
750 GNULIB_GETC
751 GNULIB_FWRITE
752 GNULIB_FTELLO
753 GNULIB_FTELL
754 GNULIB_FSEEKO
755 GNULIB_FSEEK
756 GNULIB_FSCANF
757 GNULIB_FREOPEN
758 GNULIB_FREAD
759 GNULIB_FPUTS
760 GNULIB_FPUTC
761 GNULIB_FPURGE
762 GNULIB_FPRINTF_POSIX
763 GNULIB_FPRINTF
764 GNULIB_FOPEN
765 GNULIB_FGETS
766 GNULIB_FGETC
767 GNULIB_FFLUSH
768 GNULIB_FDOPEN
769 GNULIB_FCLOSE
770 GNULIB_DPRINTF
771 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
772 NEXT_STDDEF_H
773 GL_GENERATE_STDDEF_H_FALSE
774 GL_GENERATE_STDDEF_H_TRUE
775 STDDEF_H
776 HAVE_WCHAR_T
777 REPLACE_NULL
778 HAVE__BOOL
779 GL_GENERATE_STDBOOL_H_FALSE
780 GL_GENERATE_STDBOOL_H_TRUE
781 STDBOOL_H
782 GL_GENERATE_STDARG_H_FALSE
783 GL_GENERATE_STDARG_H_TRUE
784 STDARG_H
785 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
786 NEXT_STDARG_H
787 GL_GENERATE_STDALIGN_H_FALSE
788 GL_GENERATE_STDALIGN_H_TRUE
789 STDALIGN_H
790 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
791 NEXT_SIGNAL_H
792 USE_ACL
793 LIB_ACL
794 LIB_PTHREAD_SIGMASK
795 REPLACE_RAISE
796 REPLACE_PTHREAD_SIGMASK
797 HAVE_SIGHANDLER_T
798 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
799 HAVE_STRUCT_SIGACTION_SA_SIGACTION
800 HAVE_SIGACTION
801 HAVE_SIGINFO_T
802 HAVE_SIGSET_T
803 HAVE_RAISE
804 HAVE_PTHREAD_SIGMASK
805 HAVE_POSIX_SIGNALBLOCKING
806 GNULIB_SIGACTION
807 GNULIB_SIGPROCMASK
808 GNULIB_SIGNAL_H_SIGPIPE
809 GNULIB_RAISE
810 GNULIB_PTHREAD_SIGMASK
811 HAVE_SYS_SELECT_H
812 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
813 NEXT_SYS_SELECT_H
814 REPLACE_SELECT
815 REPLACE_PSELECT
816 HAVE_PSELECT
817 GNULIB_SELECT
818 GNULIB_PSELECT
819 REPLACE_TIMEGM
820 REPLACE_NANOSLEEP
821 REPLACE_MKTIME
822 REPLACE_LOCALTIME_R
823 HAVE_TIMEGM
824 HAVE_STRPTIME
825 HAVE_NANOSLEEP
826 HAVE_DECL_LOCALTIME_R
827 GNULIB_TIME_R
828 GNULIB_TIMEGM
829 GNULIB_STRPTIME
830 GNULIB_NANOSLEEP
831 GNULIB_MKTIME
832 UNDEFINE_STRTOK_R
833 REPLACE_STRTOK_R
834 REPLACE_STRSIGNAL
835 REPLACE_STRNLEN
836 REPLACE_STRNDUP
837 REPLACE_STRNCAT
838 REPLACE_STRERROR_R
839 REPLACE_STRERROR
840 REPLACE_STRCHRNUL
841 REPLACE_STRCASESTR
842 REPLACE_STRSTR
843 REPLACE_STRDUP
844 REPLACE_STPNCPY
845 REPLACE_MEMMEM
846 REPLACE_MEMCHR
847 HAVE_STRVERSCMP
848 HAVE_DECL_STRSIGNAL
849 HAVE_DECL_STRERROR_R
850 HAVE_DECL_STRTOK_R
851 HAVE_STRCASESTR
852 HAVE_STRSEP
853 HAVE_STRPBRK
854 HAVE_DECL_STRNLEN
855 HAVE_DECL_STRNDUP
856 HAVE_DECL_STRDUP
857 HAVE_STRCHRNUL
858 HAVE_STPNCPY
859 HAVE_STPCPY
860 HAVE_RAWMEMCHR
861 HAVE_DECL_MEMRCHR
862 HAVE_MEMPCPY
863 HAVE_DECL_MEMMEM
864 HAVE_MEMCHR
865 HAVE_FFSLL
866 HAVE_FFSL
867 HAVE_MBSLEN
868 GNULIB_STRVERSCMP
869 GNULIB_STRSIGNAL
870 GNULIB_STRERROR_R
871 GNULIB_STRERROR
872 GNULIB_MBSTOK_R
873 GNULIB_MBSSEP
874 GNULIB_MBSSPN
875 GNULIB_MBSPBRK
876 GNULIB_MBSCSPN
877 GNULIB_MBSCASESTR
878 GNULIB_MBSPCASECMP
879 GNULIB_MBSNCASECMP
880 GNULIB_MBSCASECMP
881 GNULIB_MBSSTR
882 GNULIB_MBSRCHR
883 GNULIB_MBSCHR
884 GNULIB_MBSNLEN
885 GNULIB_MBSLEN
886 GNULIB_STRTOK_R
887 GNULIB_STRCASESTR
888 GNULIB_STRSTR
889 GNULIB_STRSEP
890 GNULIB_STRPBRK
891 GNULIB_STRNLEN
892 GNULIB_STRNDUP
893 GNULIB_STRNCAT
894 GNULIB_STRDUP
895 GNULIB_STRCHRNUL
896 GNULIB_STPNCPY
897 GNULIB_STPCPY
898 GNULIB_RAWMEMCHR
899 GNULIB_MEMRCHR
900 GNULIB_MEMPCPY
901 GNULIB_MEMMEM
902 GNULIB_MEMCHR
903 GNULIB_FFSLL
904 GNULIB_FFSL
905 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
906 NEXT_INTTYPES_H
907 UINT64_MAX_EQ_ULONG_MAX
908 UINT32_MAX_LT_UINTMAX_MAX
909 PRIPTR_PREFIX
910 PRI_MACROS_BROKEN
911 INT64_MAX_EQ_LONG_MAX
912 INT32_MAX_LT_INTMAX_MAX
913 REPLACE_STRTOUMAX
914 REPLACE_STRTOIMAX
915 HAVE_DECL_STRTOUMAX
916 HAVE_DECL_STRTOIMAX
917 HAVE_DECL_IMAXDIV
918 HAVE_DECL_IMAXABS
919 GNULIB_STRTOUMAX
920 GNULIB_STRTOIMAX
921 GNULIB_IMAXDIV
922 GNULIB_IMAXABS
923 GL_GENERATE_STDINT_H_FALSE
924 GL_GENERATE_STDINT_H_TRUE
925 STDINT_H
926 WINT_T_SUFFIX
927 WCHAR_T_SUFFIX
928 SIG_ATOMIC_T_SUFFIX
929 SIZE_T_SUFFIX
930 PTRDIFF_T_SUFFIX
931 HAVE_SIGNED_WINT_T
932 HAVE_SIGNED_WCHAR_T
933 HAVE_SIGNED_SIG_ATOMIC_T
934 BITSIZEOF_WINT_T
935 BITSIZEOF_WCHAR_T
936 BITSIZEOF_SIG_ATOMIC_T
937 BITSIZEOF_SIZE_T
938 BITSIZEOF_PTRDIFF_T
939 APPLE_UNIVERSAL_BUILD
940 HAVE_SYS_BITYPES_H
941 HAVE_SYS_INTTYPES_H
942 HAVE_STDINT_H
943 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
944 NEXT_STDINT_H
945 HAVE_SYS_TYPES_H
946 HAVE_INTTYPES_H
947 HAVE_WCHAR_H
948 HAVE_UNSIGNED_LONG_LONG_INT
949 HAVE_LONG_LONG_INT
950 HAVE_WINSOCK2_H
951 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
952 NEXT_SYS_TIME_H
953 REPLACE_STRUCT_TIMEVAL
954 REPLACE_GETTIMEOFDAY
955 HAVE_SYS_TIME_H
956 HAVE_STRUCT_TIMEVAL
957 HAVE_GETTIMEOFDAY
958 GNULIB_GETTIMEOFDAY
959 GNULIB_GL_UNISTD_H_GETOPT
960 GETOPT_H
961 HAVE_GETOPT_H
962 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
963 NEXT_GETOPT_H
964 GETLOADAVG_LIBS
965 REPLACE_WCTOMB
966 REPLACE_UNSETENV
967 REPLACE_STRTOD
968 REPLACE_SETENV
969 REPLACE_REALPATH
970 REPLACE_REALLOC
971 REPLACE_RANDOM_R
972 REPLACE_PUTENV
973 REPLACE_PTSNAME_R
974 REPLACE_PTSNAME
975 REPLACE_MKSTEMP
976 REPLACE_MBTOWC
977 REPLACE_MALLOC
978 REPLACE_CANONICALIZE_FILE_NAME
979 REPLACE_CALLOC
980 HAVE_DECL_UNSETENV
981 HAVE_UNLOCKPT
982 HAVE_SYS_LOADAVG_H
983 HAVE_STRUCT_RANDOM_DATA
984 HAVE_STRTOULL
985 HAVE_STRTOLL
986 HAVE_STRTOD
987 HAVE_DECL_SETENV
988 HAVE_SETENV
989 HAVE_SECURE_GETENV
990 HAVE_RPMATCH
991 HAVE_REALPATH
992 HAVE_RANDOM_R
993 HAVE_RANDOM_H
994 HAVE_RANDOM
995 HAVE_PTSNAME_R
996 HAVE_PTSNAME
997 HAVE_POSIX_OPENPT
998 HAVE_MKSTEMPS
999 HAVE_MKSTEMP
1000 HAVE_MKOSTEMPS
1001 HAVE_MKOSTEMP
1002 HAVE_MKDTEMP
1003 HAVE_GRANTPT
1004 HAVE_GETSUBOPT
1005 HAVE_DECL_GETLOADAVG
1006 HAVE_CANONICALIZE_FILE_NAME
1007 HAVE_ATOLL
1008 HAVE__EXIT
1009 GNULIB_WCTOMB
1010 GNULIB_UNSETENV
1011 GNULIB_UNLOCKPT
1012 GNULIB_SYSTEM_POSIX
1013 GNULIB_STRTOULL
1014 GNULIB_STRTOLL
1015 GNULIB_STRTOD
1016 GNULIB_SETENV
1017 GNULIB_SECURE_GETENV
1018 GNULIB_RPMATCH
1019 GNULIB_REALPATH
1020 GNULIB_REALLOC_POSIX
1021 GNULIB_RANDOM_R
1022 GNULIB_RANDOM
1023 GNULIB_PUTENV
1024 GNULIB_PTSNAME_R
1025 GNULIB_PTSNAME
1026 GNULIB_POSIX_OPENPT
1027 GNULIB_MKSTEMPS
1028 GNULIB_MKSTEMP
1029 GNULIB_MKOSTEMPS
1030 GNULIB_MKOSTEMP
1031 GNULIB_MKDTEMP
1032 GNULIB_MBTOWC
1033 GNULIB_MALLOC_POSIX
1034 GNULIB_GRANTPT
1035 GNULIB_GETSUBOPT
1036 GNULIB_GETLOADAVG
1037 GNULIB_CANONICALIZE_FILE_NAME
1038 GNULIB_CALLOC_POSIX
1039 GNULIB_ATOLL
1040 GNULIB__EXIT
1041 REPLACE_UTIMENSAT
1042 REPLACE_STAT
1043 REPLACE_MKNOD
1044 REPLACE_MKFIFO
1045 REPLACE_MKDIR
1046 REPLACE_LSTAT
1047 REPLACE_FUTIMENS
1048 REPLACE_FSTATAT
1049 REPLACE_FSTAT
1050 HAVE_UTIMENSAT
1051 HAVE_MKNODAT
1052 HAVE_MKNOD
1053 HAVE_MKFIFOAT
1054 HAVE_MKFIFO
1055 HAVE_MKDIRAT
1056 HAVE_LSTAT
1057 HAVE_LCHMOD
1058 HAVE_FUTIMENS
1059 HAVE_FSTATAT
1060 HAVE_FCHMODAT
1061 GNULIB_UTIMENSAT
1062 GNULIB_STAT
1063 GNULIB_MKNODAT
1064 GNULIB_MKNOD
1065 GNULIB_MKFIFOAT
1066 GNULIB_MKFIFO
1067 GNULIB_MKDIRAT
1068 GNULIB_LSTAT
1069 GNULIB_LCHMOD
1070 GNULIB_FUTIMENS
1071 GNULIB_FSTATAT
1072 GNULIB_FSTAT
1073 GNULIB_FCHMODAT
1074 LIB_FDATASYNC
1075 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1076 NEXT_FCNTL_H
1077 REPLACE_OPENAT
1078 REPLACE_OPEN
1079 REPLACE_FCNTL
1080 HAVE_OPENAT
1081 HAVE_FCNTL
1082 GNULIB_OPENAT
1083 GNULIB_OPEN
1084 GNULIB_NONBLOCKING
1085 GNULIB_FCNTL
1086 GL_GENERATE_EXECINFO_H_FALSE
1087 GL_GENERATE_EXECINFO_H_TRUE
1088 LIB_EXECINFO
1089 EXECINFO_H
1090 EOVERFLOW_VALUE
1091 EOVERFLOW_HIDDEN
1092 ENOLINK_VALUE
1093 ENOLINK_HIDDEN
1094 EMULTIHOP_VALUE
1095 EMULTIHOP_HIDDEN
1096 GL_GENERATE_ERRNO_H_FALSE
1097 GL_GENERATE_ERRNO_H_TRUE
1098 ERRNO_H
1099 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1100 NEXT_ERRNO_H
1101 HAVE_DIRENT_H
1102 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1103 NEXT_DIRENT_H
1104 PRAGMA_COLUMNS
1105 PRAGMA_SYSTEM_HEADER
1106 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1107 INCLUDE_NEXT
1108 REPLACE_FDOPENDIR
1109 REPLACE_DIRFD
1110 REPLACE_CLOSEDIR
1111 REPLACE_OPENDIR
1112 HAVE_ALPHASORT
1113 HAVE_SCANDIR
1114 HAVE_FDOPENDIR
1115 HAVE_DECL_FDOPENDIR
1116 HAVE_DECL_DIRFD
1117 HAVE_CLOSEDIR
1118 HAVE_REWINDDIR
1119 HAVE_READDIR
1120 HAVE_OPENDIR
1121 GNULIB_ALPHASORT
1122 GNULIB_SCANDIR
1123 GNULIB_FDOPENDIR
1124 GNULIB_DIRFD
1125 GNULIB_CLOSEDIR
1126 GNULIB_REWINDDIR
1127 GNULIB_READDIR
1128 GNULIB_OPENDIR
1129 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1130 UNISTD_H_HAVE_WINSOCK2_H
1131 REPLACE_WRITE
1132 REPLACE_USLEEP
1133 REPLACE_UNLINKAT
1134 REPLACE_UNLINK
1135 REPLACE_TTYNAME_R
1136 REPLACE_SYMLINK
1137 REPLACE_SLEEP
1138 REPLACE_RMDIR
1139 REPLACE_READLINK
1140 REPLACE_READ
1141 REPLACE_PWRITE
1142 REPLACE_PREAD
1143 REPLACE_LSEEK
1144 REPLACE_LINKAT
1145 REPLACE_LINK
1146 REPLACE_LCHOWN
1147 REPLACE_ISATTY
1148 REPLACE_GETPAGESIZE
1149 REPLACE_GETGROUPS
1150 REPLACE_GETLOGIN_R
1151 REPLACE_GETDTABLESIZE
1152 REPLACE_GETDOMAINNAME
1153 REPLACE_GETCWD
1154 REPLACE_FTRUNCATE
1155 REPLACE_FCHOWNAT
1156 REPLACE_DUP2
1157 REPLACE_DUP
1158 REPLACE_CLOSE
1159 REPLACE_CHOWN
1160 HAVE_SYS_PARAM_H
1161 HAVE_OS_H
1162 HAVE_DECL_TTYNAME_R
1163 HAVE_DECL_SETHOSTNAME
1164 HAVE_DECL_GETUSERSHELL
1165 HAVE_DECL_GETPAGESIZE
1166 HAVE_DECL_GETLOGIN_R
1167 HAVE_DECL_GETDOMAINNAME
1168 HAVE_DECL_FDATASYNC
1169 HAVE_DECL_FCHDIR
1170 HAVE_DECL_ENVIRON
1171 HAVE_USLEEP
1172 HAVE_UNLINKAT
1173 HAVE_SYMLINKAT
1174 HAVE_SYMLINK
1175 HAVE_SLEEP
1176 HAVE_SETHOSTNAME
1177 HAVE_READLINKAT
1178 HAVE_READLINK
1179 HAVE_PWRITE
1180 HAVE_PREAD
1181 HAVE_PIPE2
1182 HAVE_PIPE
1183 HAVE_LINKAT
1184 HAVE_LINK
1185 HAVE_LCHOWN
1186 HAVE_GROUP_MEMBER
1187 HAVE_GETPAGESIZE
1188 HAVE_GETLOGIN
1189 HAVE_GETHOSTNAME
1190 HAVE_GETGROUPS
1191 HAVE_GETDTABLESIZE
1192 HAVE_FTRUNCATE
1193 HAVE_FSYNC
1194 HAVE_FDATASYNC
1195 HAVE_FCHOWNAT
1196 HAVE_FCHDIR
1197 HAVE_FACCESSAT
1198 HAVE_EUIDACCESS
1199 HAVE_DUP3
1200 HAVE_DUP2
1201 HAVE_CHOWN
1202 GNULIB_WRITE
1203 GNULIB_USLEEP
1204 GNULIB_UNLINKAT
1205 GNULIB_UNLINK
1206 GNULIB_UNISTD_H_SIGPIPE
1207 GNULIB_UNISTD_H_NONBLOCKING
1208 GNULIB_TTYNAME_R
1209 GNULIB_SYMLINKAT
1210 GNULIB_SYMLINK
1211 GNULIB_SLEEP
1212 GNULIB_SETHOSTNAME
1213 GNULIB_RMDIR
1214 GNULIB_READLINKAT
1215 GNULIB_READLINK
1216 GNULIB_READ
1217 GNULIB_PWRITE
1218 GNULIB_PREAD
1219 GNULIB_PIPE2
1220 GNULIB_PIPE
1221 GNULIB_LSEEK
1222 GNULIB_LINKAT
1223 GNULIB_LINK
1224 GNULIB_LCHOWN
1225 GNULIB_ISATTY
1226 GNULIB_GROUP_MEMBER
1227 GNULIB_GETUSERSHELL
1228 GNULIB_GETPAGESIZE
1229 GNULIB_GETLOGIN_R
1230 GNULIB_GETLOGIN
1231 GNULIB_GETHOSTNAME
1232 GNULIB_GETGROUPS
1233 GNULIB_GETDTABLESIZE
1234 GNULIB_GETDOMAINNAME
1235 GNULIB_GETCWD
1236 GNULIB_FTRUNCATE
1237 GNULIB_FSYNC
1238 GNULIB_FDATASYNC
1239 GNULIB_FCHOWNAT
1240 GNULIB_FCHDIR
1241 GNULIB_FACCESSAT
1242 GNULIB_EUIDACCESS
1243 GNULIB_ENVIRON
1244 GNULIB_DUP3
1245 GNULIB_DUP2
1246 GNULIB_DUP
1247 GNULIB_CLOSE
1248 GNULIB_CHOWN
1249 GNULIB_CHDIR
1250 LIB_CLOCK_GETTIME
1251 GL_GENERATE_BYTESWAP_H_FALSE
1252 GL_GENERATE_BYTESWAP_H_TRUE
1253 BYTESWAP_H
1254 GL_GENERATE_ALLOCA_H_FALSE
1255 GL_GENERATE_ALLOCA_H_TRUE
1256 ALLOCA_H
1257 ALLOCA
1258 GL_COND_LIBTOOL_FALSE
1259 GL_COND_LIBTOOL_TRUE
1260 POST_ALLOC_OBJ
1261 PRE_ALLOC_OBJ
1262 CYGWIN_OBJ
1263 RALLOC_OBJ
1264 OLDXMENU_DEPS
1265 LIBX_OTHER
1266 LIBXMENU
1267 OLDXMENU
1268 OLDXMENU_TARGET
1269 LIBXT_OTHER
1270 TOOLKIT_LIBW
1271 WIDGET_OBJ
1272 XOBJ
1273 XMENU_OBJ
1274 FONT_OBJ
1275 OTHER_FILES
1276 GNU_OBJC_CFLAGS
1277 ns_appsrc
1278 ns_appresdir
1279 ns_appbindir
1280 ns_appdir
1281 X_TOOLKIT_TYPE
1282 GNUSTEP_CFLAGS
1283 C_SWITCH_X_SITE
1284 LD_SWITCH_X_SITE
1285 gameuser
1286 gamedir
1287 bitmapdir
1288 etcdocdir
1289 archlibdir
1290 etcdir
1291 x_default_search_path
1292 lisppath
1293 locallisppath
1294 standardlisppath
1295 leimdir
1296 lispdir
1297 srcdir
1298 canonical
1299 configuration
1300 version
1301 copyright
1302 XGSELOBJ
1303 KRB4LIB
1304 DESLIB
1305 KRB5LIB
1306 CRYPTOLIB
1307 COM_ERRLIB
1308 LIBRESOLV
1309 LIBHESIOD
1310 TERMCAP_OBJ
1311 LIBS_TERMCAP
1312 BLESSMAIL_TARGET
1313 LIBS_MAIL
1314 liblockfile
1315 LIBXML2_LIBS
1316 LIBXML2_CFLAGS
1317 XINERAMA_LIBS
1318 XINERAMA_CFLAGS
1319 XRANDR_LIBS
1320 XRANDR_CFLAGS
1321 LIBXSM
1322 LIBGPM
1323 LIBGIF
1324 LIBTIFF
1325 LIBZ
1326 LIBPNG
1327 LIBJPEG
1328 LIBXPM
1329 M17N_FLT_LIBS
1330 M17N_FLT_CFLAGS
1331 LIBOTF_LIBS
1332 LIBOTF_CFLAGS
1333 FREETYPE_LIBS
1334 FREETYPE_CFLAGS
1335 XFT_LIBS
1336 XFT_CFLAGS
1337 FONTCONFIG_LIBS
1338 FONTCONFIG_CFLAGS
1339 LIBXMU
1340 LIBXTR6
1341 NOTIFY_OBJ
1342 GFILENOTIFY_LIBS
1343 GFILENOTIFY_CFLAGS
1344 LIBGNUTLS_LIBS
1345 LIBGNUTLS_CFLAGS
1346 LIBSELINUX_LIBS
1347 SETTINGS_LIBS
1348 SETTINGS_CFLAGS
1349 GOBJECT_LIBS
1350 GOBJECT_CFLAGS
1351 GCONF_LIBS
1352 GCONF_CFLAGS
1353 GSETTINGS_LIBS
1354 GSETTINGS_CFLAGS
1355 DBUS_OBJ
1356 DBUS_LIBS
1357 DBUS_CFLAGS
1358 GTK_OBJ
1359 GTK_LIBS
1360 GTK_CFLAGS
1361 IMAGEMAGICK_LIBS
1362 IMAGEMAGICK_CFLAGS
1363 RSVG_LIBS
1364 RSVG_CFLAGS
1365 LIB_PTHREAD
1366 VMLIMIT_OBJ
1367 GMALLOC_OBJ
1368 HAVE_XSERVER
1369 XARGS_LIMIT
1370 NTLIB
1371 LIB_WSOCK32
1372 LIBS_ECLIENT
1373 CM_OBJ
1374 NTDIR
1375 FIRSTFILE_OBJ
1376 W32_RES_LINK
1377 CLIENTW
1378 CLIENTRES
1379 UPDATE_MANIFEST
1380 EMACS_MANIFEST
1381 EMACSRES
1382 W32_LIBS
1383 W32_OBJ
1384 WINDRES
1385 NS_OBJC_OBJ
1386 NS_OBJ
1387 ns_self_contained
1388 INSTALL_ARCH_INDEP_EXTRA
1389 LIBS_GNUSTEP
1390 LD_SWITCH_X_SITE_RPATH
1391 XMKMF
1392 DEPFLAGS
1393 MKDEPDIR
1394 CFLAGS_SOUND
1395 ALSA_LIBS
1396 ALSA_CFLAGS
1397 LIBSOUND
1398 PKG_CONFIG
1399 LIB_MATH
1400 LIBS_SYSTEM
1401 C_SWITCH_SYSTEM
1402 UNEXEC_OBJ
1403 C_SWITCH_MACHINE
1404 LD_SWITCH_SYSTEM
1405 CANNOT_DUMP
1406 DOCMISC_W32
1407 INFO_OPTS
1408 INFO_EXT
1409 HAVE_MAKEINFO
1410 PAXCTL
1411 GZIP_PROG
1412 INSTALL_INFO
1413 LN_S_FILEONLY
1414 GNULIB_WARN_CFLAGS
1415 WERROR_CFLAGS
1416 WARN_CFLAGS
1417 RANLIB
1418 ARFLAGS
1420 EGREP
1421 GREP
1423 BUILDING_FOR_WINDOWSNT_FALSE
1424 BUILDING_FOR_WINDOWSNT_TRUE
1425 am__fastdepCC_FALSE
1426 am__fastdepCC_TRUE
1427 CCDEPMODE
1428 AMDEPBACKSLASH
1429 AMDEP_FALSE
1430 AMDEP_TRUE
1431 am__quote
1432 am__include
1433 DEPDIR
1434 OBJEXT
1435 EXEEXT
1436 ac_ct_CC
1437 CPPFLAGS
1438 LDFLAGS
1439 CFLAGS
1441 host_os
1442 host_vendor
1443 host_cpu
1444 host
1445 build_os
1446 build_vendor
1447 build_cpu
1448 build
1449 PROFILING_CFLAGS
1450 cache_file
1451 am__untar
1452 am__tar
1453 AMTAR
1454 am__leading_dot
1455 SET_MAKE
1457 mkdir_p
1458 MKDIR_P
1459 INSTALL_STRIP_PROGRAM
1460 STRIP
1461 install_sh
1462 MAKEINFO
1463 AUTOHEADER
1464 AUTOMAKE
1465 AUTOCONF
1466 ACLOCAL
1467 VERSION
1468 PACKAGE
1469 CYGPATH_W
1470 am__isrc
1471 INSTALL_DATA
1472 INSTALL_SCRIPT
1473 INSTALL_PROGRAM
1474 target_alias
1475 host_alias
1476 build_alias
1477 LIBS
1478 ECHO_T
1479 ECHO_N
1480 ECHO_C
1481 DEFS
1482 mandir
1483 localedir
1484 libdir
1485 psdir
1486 pdfdir
1487 dvidir
1488 htmldir
1489 infodir
1490 docdir
1491 oldincludedir
1492 includedir
1493 localstatedir
1494 sharedstatedir
1495 sysconfdir
1496 datadir
1497 datarootdir
1498 libexecdir
1499 sbindir
1500 bindir
1501 program_transform_name
1502 prefix
1503 exec_prefix
1504 PACKAGE_URL
1505 PACKAGE_BUGREPORT
1506 PACKAGE_STRING
1507 PACKAGE_VERSION
1508 PACKAGE_TARNAME
1509 PACKAGE_NAME
1510 PATH_SEPARATOR
1511 SHELL'
1512 ac_subst_files='deps_frag
1513 lisp_frag'
1514 ac_user_opts='
1515 enable_option_checking
1516 with_all
1517 with_pop
1518 with_kerberos
1519 with_kerberos5
1520 with_hesiod
1521 with_mmdf
1522 with_mail_unlink
1523 with_mailhost
1524 with_sound
1525 with_x_toolkit
1526 with_wide_int
1527 with_xpm
1528 with_jpeg
1529 with_tiff
1530 with_gif
1531 with_png
1532 with_rsvg
1533 with_xml2
1534 with_imagemagick
1535 with_xft
1536 with_libotf
1537 with_m17n_flt
1538 with_toolkit_scroll_bars
1539 with_xaw3d
1540 with_xim
1541 with_ns
1542 with_w32
1543 with_gpm
1544 with_dbus
1545 with_gconf
1546 with_gsettings
1547 with_selinux
1548 with_gnutls
1549 with_zlib
1550 with_file_notification
1551 with_makeinfo
1552 with_compress_install
1553 with_pkg_config_prog
1554 with_gameuser
1555 with_gnustep_conf
1556 enable_ns_self_contained
1557 enable_locallisppath
1558 enable_checking
1559 enable_check_lisp_object_type
1560 enable_profiling
1561 enable_autodepend
1562 enable_gtk_deprecation_warnings
1563 enable_dependency_tracking
1564 enable_largefile
1565 enable_gcc_warnings
1566 enable_link_time_optimization
1567 with_x
1568 enable_acl
1570 ac_precious_vars='build_alias
1571 host_alias
1572 target_alias
1574 CFLAGS
1575 LDFLAGS
1576 LIBS
1577 CPPFLAGS
1579 XMKMF'
1582 # Initialize some variables set by options.
1583 ac_init_help=
1584 ac_init_version=false
1585 ac_unrecognized_opts=
1586 ac_unrecognized_sep=
1587 # The variables have the same names as the options, with
1588 # dashes changed to underlines.
1589 cache_file=/dev/null
1590 exec_prefix=NONE
1591 no_create=
1592 no_recursion=
1593 prefix=NONE
1594 program_prefix=NONE
1595 program_suffix=NONE
1596 program_transform_name=s,x,x,
1597 silent=
1598 site=
1599 srcdir=
1600 verbose=
1601 x_includes=NONE
1602 x_libraries=NONE
1604 # Installation directory options.
1605 # These are left unexpanded so users can "make install exec_prefix=/foo"
1606 # and all the variables that are supposed to be based on exec_prefix
1607 # by default will actually change.
1608 # Use braces instead of parens because sh, perl, etc. also accept them.
1609 # (The list follows the same order as the GNU Coding Standards.)
1610 bindir='${exec_prefix}/bin'
1611 sbindir='${exec_prefix}/sbin'
1612 libexecdir='${exec_prefix}/libexec'
1613 datarootdir='${prefix}/share'
1614 datadir='${datarootdir}'
1615 sysconfdir='${prefix}/etc'
1616 sharedstatedir='${prefix}/com'
1617 localstatedir='${prefix}/var'
1618 includedir='${prefix}/include'
1619 oldincludedir='/usr/include'
1620 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1621 infodir='${datarootdir}/info'
1622 htmldir='${docdir}'
1623 dvidir='${docdir}'
1624 pdfdir='${docdir}'
1625 psdir='${docdir}'
1626 libdir='${exec_prefix}/lib'
1627 localedir='${datarootdir}/locale'
1628 mandir='${datarootdir}/man'
1630 ac_prev=
1631 ac_dashdash=
1632 for ac_option
1634 # If the previous option needs an argument, assign it.
1635 if test -n "$ac_prev"; then
1636 eval $ac_prev=\$ac_option
1637 ac_prev=
1638 continue
1641 case $ac_option in
1642 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1643 *) ac_optarg=yes ;;
1644 esac
1646 # Accept the important Cygnus configure options, so we can diagnose typos.
1648 case $ac_dashdash$ac_option in
1650 ac_dashdash=yes ;;
1652 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1653 ac_prev=bindir ;;
1654 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1655 bindir=$ac_optarg ;;
1657 -build | --build | --buil | --bui | --bu)
1658 ac_prev=build_alias ;;
1659 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1660 build_alias=$ac_optarg ;;
1662 -cache-file | --cache-file | --cache-fil | --cache-fi \
1663 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1664 ac_prev=cache_file ;;
1665 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1666 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1667 cache_file=$ac_optarg ;;
1669 --config-cache | -C)
1670 cache_file=config.cache ;;
1672 -datadir | --datadir | --datadi | --datad)
1673 ac_prev=datadir ;;
1674 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1675 datadir=$ac_optarg ;;
1677 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1678 | --dataroo | --dataro | --datar)
1679 ac_prev=datarootdir ;;
1680 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1681 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1682 datarootdir=$ac_optarg ;;
1684 -disable-* | --disable-*)
1685 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1686 # Reject names that are not valid shell variable names.
1687 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1688 as_fn_error "invalid feature name: $ac_useropt"
1689 ac_useropt_orig=$ac_useropt
1690 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1691 case $ac_user_opts in
1693 "enable_$ac_useropt"
1694 "*) ;;
1695 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1696 ac_unrecognized_sep=', ';;
1697 esac
1698 eval enable_$ac_useropt=no ;;
1700 -docdir | --docdir | --docdi | --doc | --do)
1701 ac_prev=docdir ;;
1702 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1703 docdir=$ac_optarg ;;
1705 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1706 ac_prev=dvidir ;;
1707 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1708 dvidir=$ac_optarg ;;
1710 -enable-* | --enable-*)
1711 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1712 # Reject names that are not valid shell variable names.
1713 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1714 as_fn_error "invalid feature name: $ac_useropt"
1715 ac_useropt_orig=$ac_useropt
1716 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1717 case $ac_user_opts in
1719 "enable_$ac_useropt"
1720 "*) ;;
1721 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1722 ac_unrecognized_sep=', ';;
1723 esac
1724 eval enable_$ac_useropt=\$ac_optarg ;;
1726 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1727 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1728 | --exec | --exe | --ex)
1729 ac_prev=exec_prefix ;;
1730 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1731 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1732 | --exec=* | --exe=* | --ex=*)
1733 exec_prefix=$ac_optarg ;;
1735 -gas | --gas | --ga | --g)
1736 # Obsolete; use --with-gas.
1737 with_gas=yes ;;
1739 -help | --help | --hel | --he | -h)
1740 ac_init_help=long ;;
1741 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1742 ac_init_help=recursive ;;
1743 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1744 ac_init_help=short ;;
1746 -host | --host | --hos | --ho)
1747 ac_prev=host_alias ;;
1748 -host=* | --host=* | --hos=* | --ho=*)
1749 host_alias=$ac_optarg ;;
1751 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1752 ac_prev=htmldir ;;
1753 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1754 | --ht=*)
1755 htmldir=$ac_optarg ;;
1757 -includedir | --includedir | --includedi | --included | --include \
1758 | --includ | --inclu | --incl | --inc)
1759 ac_prev=includedir ;;
1760 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1761 | --includ=* | --inclu=* | --incl=* | --inc=*)
1762 includedir=$ac_optarg ;;
1764 -infodir | --infodir | --infodi | --infod | --info | --inf)
1765 ac_prev=infodir ;;
1766 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1767 infodir=$ac_optarg ;;
1769 -libdir | --libdir | --libdi | --libd)
1770 ac_prev=libdir ;;
1771 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1772 libdir=$ac_optarg ;;
1774 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1775 | --libexe | --libex | --libe)
1776 ac_prev=libexecdir ;;
1777 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1778 | --libexe=* | --libex=* | --libe=*)
1779 libexecdir=$ac_optarg ;;
1781 -localedir | --localedir | --localedi | --localed | --locale)
1782 ac_prev=localedir ;;
1783 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1784 localedir=$ac_optarg ;;
1786 -localstatedir | --localstatedir | --localstatedi | --localstated \
1787 | --localstate | --localstat | --localsta | --localst | --locals)
1788 ac_prev=localstatedir ;;
1789 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1790 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1791 localstatedir=$ac_optarg ;;
1793 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1794 ac_prev=mandir ;;
1795 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1796 mandir=$ac_optarg ;;
1798 -nfp | --nfp | --nf)
1799 # Obsolete; use --without-fp.
1800 with_fp=no ;;
1802 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1803 | --no-cr | --no-c | -n)
1804 no_create=yes ;;
1806 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1807 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1808 no_recursion=yes ;;
1810 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1811 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1812 | --oldin | --oldi | --old | --ol | --o)
1813 ac_prev=oldincludedir ;;
1814 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1815 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1816 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1817 oldincludedir=$ac_optarg ;;
1819 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1820 ac_prev=prefix ;;
1821 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1822 prefix=$ac_optarg ;;
1824 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1825 | --program-pre | --program-pr | --program-p)
1826 ac_prev=program_prefix ;;
1827 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1828 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1829 program_prefix=$ac_optarg ;;
1831 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1832 | --program-suf | --program-su | --program-s)
1833 ac_prev=program_suffix ;;
1834 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1835 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1836 program_suffix=$ac_optarg ;;
1838 -program-transform-name | --program-transform-name \
1839 | --program-transform-nam | --program-transform-na \
1840 | --program-transform-n | --program-transform- \
1841 | --program-transform | --program-transfor \
1842 | --program-transfo | --program-transf \
1843 | --program-trans | --program-tran \
1844 | --progr-tra | --program-tr | --program-t)
1845 ac_prev=program_transform_name ;;
1846 -program-transform-name=* | --program-transform-name=* \
1847 | --program-transform-nam=* | --program-transform-na=* \
1848 | --program-transform-n=* | --program-transform-=* \
1849 | --program-transform=* | --program-transfor=* \
1850 | --program-transfo=* | --program-transf=* \
1851 | --program-trans=* | --program-tran=* \
1852 | --progr-tra=* | --program-tr=* | --program-t=*)
1853 program_transform_name=$ac_optarg ;;
1855 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1856 ac_prev=pdfdir ;;
1857 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1858 pdfdir=$ac_optarg ;;
1860 -psdir | --psdir | --psdi | --psd | --ps)
1861 ac_prev=psdir ;;
1862 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1863 psdir=$ac_optarg ;;
1865 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1866 | -silent | --silent | --silen | --sile | --sil)
1867 silent=yes ;;
1869 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1870 ac_prev=sbindir ;;
1871 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1872 | --sbi=* | --sb=*)
1873 sbindir=$ac_optarg ;;
1875 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1876 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1877 | --sharedst | --shareds | --shared | --share | --shar \
1878 | --sha | --sh)
1879 ac_prev=sharedstatedir ;;
1880 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1881 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1882 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1883 | --sha=* | --sh=*)
1884 sharedstatedir=$ac_optarg ;;
1886 -site | --site | --sit)
1887 ac_prev=site ;;
1888 -site=* | --site=* | --sit=*)
1889 site=$ac_optarg ;;
1891 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1892 ac_prev=srcdir ;;
1893 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1894 srcdir=$ac_optarg ;;
1896 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1897 | --syscon | --sysco | --sysc | --sys | --sy)
1898 ac_prev=sysconfdir ;;
1899 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1900 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1901 sysconfdir=$ac_optarg ;;
1903 -target | --target | --targe | --targ | --tar | --ta | --t)
1904 ac_prev=target_alias ;;
1905 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1906 target_alias=$ac_optarg ;;
1908 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1909 verbose=yes ;;
1911 -version | --version | --versio | --versi | --vers | -V)
1912 ac_init_version=: ;;
1914 -with-* | --with-*)
1915 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1916 # Reject names that are not valid shell variable names.
1917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1918 as_fn_error "invalid package name: $ac_useropt"
1919 ac_useropt_orig=$ac_useropt
1920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1921 case $ac_user_opts in
1923 "with_$ac_useropt"
1924 "*) ;;
1925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1926 ac_unrecognized_sep=', ';;
1927 esac
1928 eval with_$ac_useropt=\$ac_optarg ;;
1930 -without-* | --without-*)
1931 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1932 # Reject names that are not valid shell variable names.
1933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1934 as_fn_error "invalid package name: $ac_useropt"
1935 ac_useropt_orig=$ac_useropt
1936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1937 case $ac_user_opts in
1939 "with_$ac_useropt"
1940 "*) ;;
1941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1942 ac_unrecognized_sep=', ';;
1943 esac
1944 eval with_$ac_useropt=no ;;
1946 --x)
1947 # Obsolete; use --with-x.
1948 with_x=yes ;;
1950 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1951 | --x-incl | --x-inc | --x-in | --x-i)
1952 ac_prev=x_includes ;;
1953 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1954 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1955 x_includes=$ac_optarg ;;
1957 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1958 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1959 ac_prev=x_libraries ;;
1960 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1961 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1962 x_libraries=$ac_optarg ;;
1964 -*) as_fn_error "unrecognized option: \`$ac_option'
1965 Try \`$0 --help' for more information."
1968 *=*)
1969 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1970 # Reject names that are not valid shell variable names.
1971 case $ac_envvar in #(
1972 '' | [0-9]* | *[!_$as_cr_alnum]* )
1973 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1974 esac
1975 eval $ac_envvar=\$ac_optarg
1976 export $ac_envvar ;;
1979 # FIXME: should be removed in autoconf 3.0.
1980 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1981 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1982 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1983 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1986 esac
1987 done
1989 if test -n "$ac_prev"; then
1990 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1991 as_fn_error "missing argument to $ac_option"
1994 if test -n "$ac_unrecognized_opts"; then
1995 case $enable_option_checking in
1996 no) ;;
1997 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1998 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1999 esac
2002 # Check all directory arguments for consistency.
2003 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2004 datadir sysconfdir sharedstatedir localstatedir includedir \
2005 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2006 libdir localedir mandir
2008 eval ac_val=\$$ac_var
2009 # Remove trailing slashes.
2010 case $ac_val in
2011 */ )
2012 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2013 eval $ac_var=\$ac_val;;
2014 esac
2015 # Be sure to have absolute directory names.
2016 case $ac_val in
2017 [\\/$]* | ?:[\\/]* ) continue;;
2018 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2019 esac
2020 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
2021 done
2023 # There might be people who depend on the old broken behavior: `$host'
2024 # used to hold the argument of --host etc.
2025 # FIXME: To remove some day.
2026 build=$build_alias
2027 host=$host_alias
2028 target=$target_alias
2030 # FIXME: To remove some day.
2031 if test "x$host_alias" != x; then
2032 if test "x$build_alias" = x; then
2033 cross_compiling=maybe
2034 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2035 If a cross compiler is detected then cross compile mode will be used." >&2
2036 elif test "x$build_alias" != "x$host_alias"; then
2037 cross_compiling=yes
2041 ac_tool_prefix=
2042 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2044 test "$silent" = yes && exec 6>/dev/null
2047 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2048 ac_ls_di=`ls -di .` &&
2049 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2050 as_fn_error "working directory cannot be determined"
2051 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2052 as_fn_error "pwd does not report name of working directory"
2055 # Find the source files, if location was not specified.
2056 if test -z "$srcdir"; then
2057 ac_srcdir_defaulted=yes
2058 # Try the directory containing this script, then the parent directory.
2059 ac_confdir=`$as_dirname -- "$as_myself" ||
2060 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2061 X"$as_myself" : 'X\(//\)[^/]' \| \
2062 X"$as_myself" : 'X\(//\)$' \| \
2063 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2064 $as_echo X"$as_myself" |
2065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2066 s//\1/
2069 /^X\(\/\/\)[^/].*/{
2070 s//\1/
2073 /^X\(\/\/\)$/{
2074 s//\1/
2077 /^X\(\/\).*/{
2078 s//\1/
2081 s/.*/./; q'`
2082 srcdir=$ac_confdir
2083 if test ! -r "$srcdir/$ac_unique_file"; then
2084 srcdir=..
2086 else
2087 ac_srcdir_defaulted=no
2089 if test ! -r "$srcdir/$ac_unique_file"; then
2090 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2091 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
2093 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2094 ac_abs_confdir=`(
2095 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2096 pwd)`
2097 # When building in place, set srcdir=.
2098 if test "$ac_abs_confdir" = "$ac_pwd"; then
2099 srcdir=.
2101 # Remove unnecessary trailing slashes from srcdir.
2102 # Double slashes in file names in object file debugging info
2103 # mess up M-x gdb in Emacs.
2104 case $srcdir in
2105 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2106 esac
2107 for ac_var in $ac_precious_vars; do
2108 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2109 eval ac_env_${ac_var}_value=\$${ac_var}
2110 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2111 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2112 done
2115 # Report the --help message.
2117 if test "$ac_init_help" = "long"; then
2118 # Omit some internal or obsolete options to make the list less imposing.
2119 # This message is too long to be a string in the A/UX 3.1 sh.
2120 cat <<_ACEOF
2121 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
2123 Usage: $0 [OPTION]... [VAR=VALUE]...
2125 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2126 VAR=VALUE. See below for descriptions of some of the useful variables.
2128 Defaults for the options are specified in brackets.
2130 Configuration:
2131 -h, --help display this help and exit
2132 --help=short display options specific to this package
2133 --help=recursive display the short help of all the included packages
2134 -V, --version display version information and exit
2135 -q, --quiet, --silent do not print \`checking...' messages
2136 --cache-file=FILE cache test results in FILE [disabled]
2137 -C, --config-cache alias for \`--cache-file=config.cache'
2138 -n, --no-create do not create output files
2139 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2141 Installation directories:
2142 --prefix=PREFIX install architecture-independent files in PREFIX
2143 [$ac_default_prefix]
2144 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2145 [PREFIX]
2147 By default, \`make install' will install all the files in
2148 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2149 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2150 for instance \`--prefix=\$HOME'.
2152 For better control, use the options below.
2154 Fine tuning of the installation directories:
2155 --bindir=DIR user executables [EPREFIX/bin]
2156 --sbindir=DIR system admin executables [EPREFIX/sbin]
2157 --libexecdir=DIR program executables [EPREFIX/libexec]
2158 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2159 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2160 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2161 --libdir=DIR object code libraries [EPREFIX/lib]
2162 --includedir=DIR C header files [PREFIX/include]
2163 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2164 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2165 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2166 --infodir=DIR info documentation [DATAROOTDIR/info]
2167 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2168 --mandir=DIR man documentation [DATAROOTDIR/man]
2169 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2170 --htmldir=DIR html documentation [DOCDIR]
2171 --dvidir=DIR dvi documentation [DOCDIR]
2172 --pdfdir=DIR pdf documentation [DOCDIR]
2173 --psdir=DIR ps documentation [DOCDIR]
2174 _ACEOF
2176 cat <<\_ACEOF
2178 Program names:
2179 --program-prefix=PREFIX prepend PREFIX to installed program names
2180 --program-suffix=SUFFIX append SUFFIX to installed program names
2181 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2183 X features:
2184 --x-includes=DIR X include files are in DIR
2185 --x-libraries=DIR X library files are in DIR
2187 System types:
2188 --build=BUILD configure for building on BUILD [guessed]
2189 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2190 _ACEOF
2193 if test -n "$ac_init_help"; then
2194 case $ac_init_help in
2195 short | recursive ) echo "Configuration of emacs 24.3.50:";;
2196 esac
2197 cat <<\_ACEOF
2199 Optional Features:
2200 --disable-option-checking ignore unrecognized --enable/--with options
2201 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2202 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2203 --disable-ns-self-contained
2204 disable self contained build under NeXTstep
2205 --enable-locallisppath=PATH
2206 directories Emacs should search for lisp files
2207 specific to this site
2208 --enable-checking[=LIST]
2209 enable expensive run-time checks. With LIST, enable
2210 only specific categories of checks. Categories are:
2211 all,yes,no. Flags are: stringbytes, stringoverrun,
2212 stringfreelist, xmallocoverrun, conslist, glyphs
2213 --enable-check-lisp-object-type
2214 enable compile time checks for the Lisp_Object data
2215 type. This is useful for development for catching
2216 certain types of bugs.
2217 --enable-profiling build emacs with low-level, gprof profiling support.
2218 Mainly useful for debugging Emacs itself. May not
2219 work on all platforms. Stops profiler.el working.
2220 --enable-autodepend automatically generate dependencies to .h-files.
2221 Requires GNU Make and Gcc. Enabled if GNU Make and
2222 Gcc is found
2223 --enable-gtk-deprecation-warnings
2224 Show Gtk+/Gdk deprecation warnings for Gtk+ >= 3.0
2225 --disable-dependency-tracking speeds up one-time build
2226 --enable-dependency-tracking do not reject slow dependency extractors
2227 --disable-largefile omit support for large files
2228 --enable-gcc-warnings turn on lots of GCC warnings/errors. This is
2229 intended for developers, and may generate false
2230 alarms when used with older or non-GNU development
2231 tools.
2232 --enable-link-time-optimization
2233 build emacs with link-time optimization. This is
2234 supported only for GCC since 4.5.0.
2235 --disable-acl do not support ACLs
2237 Optional Packages:
2238 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2239 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2240 --without-all omit almost all features and build small executable
2241 with minimal dependencies
2242 --without-pop don't support POP mail retrieval with movemail
2243 --with-kerberos support Kerberos-authenticated POP
2244 --with-kerberos5 support Kerberos version 5 authenticated POP
2245 --with-hesiod support Hesiod to get the POP server host
2246 --with-mmdf support MMDF mailboxes
2247 --with-mail-unlink unlink, rather than empty, mail spool after reading
2248 --with-mailhost=HOSTNAME
2249 string giving default POP mail host
2250 --with-sound=VALUE compile with sound support (VALUE one of: yes, alsa,
2251 oss, bsd-ossaudio, no; default yes). Only for
2252 GNU/Linux, FreeBSD, NetBSD, MinGW.
2253 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2,
2254 gtk3, lucid or athena, motif, no)
2255 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2256 --without-xpm don't compile with XPM image support
2257 --without-jpeg don't compile with JPEG image support
2258 --without-tiff don't compile with TIFF image support
2259 --without-gif don't compile with GIF image support
2260 --without-png don't compile with PNG image support
2261 --without-rsvg don't compile with SVG image support
2262 --without-xml2 don't compile with XML parsing support
2263 --without-imagemagick don't compile with ImageMagick image support
2264 --without-xft don't use XFT for anti aliased fonts
2265 --without-libotf don't use libotf for OpenType font support
2266 --without-m17n-flt don't use m17n-flt for text shaping
2267 --without-toolkit-scroll-bars
2268 don't use Motif or Xaw3d scroll bars
2269 --without-xaw3d don't use Xaw3d
2270 --without-xim don't use X11 XIM
2271 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2272 --with-w32 use native MS Windows GUI in a Cygwin build
2273 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2274 console
2275 --without-dbus don't compile with D-Bus support
2276 --without-gconf don't compile with GConf support
2277 --without-gsettings don't compile with GSettings support
2278 --without-selinux don't compile with SELinux support
2279 --without-gnutls don't use -lgnutls for SSL/TLS support
2280 --without-zlib don't compile with zlib decompression support
2281 --with-file-notification=LIB
2282 use a file notification library (LIB one of: yes,
2283 gfile, inotify, w32, no)
2284 --without-makeinfo don't require makeinfo for building manuals
2285 --without-compress-install
2286 don't compress some files (.el, .info, etc.) when
2287 installing. Equivalent to: make GZIP_PROG= install
2288 --with-pkg-config-prog=FILENAME
2289 file name of pkg-config for finding GTK and librsvg
2290 --with-gameuser=USER user for shared game score files
2291 --with-gnustep-conf=FILENAME
2292 name of GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2293 or /etc/GNUstep/GNUstep.conf
2294 --with-x use the X Window System
2296 Some influential environment variables:
2297 CC C compiler command
2298 CFLAGS C compiler flags
2299 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2300 nonstandard directory <lib dir>
2301 LIBS libraries to pass to the linker, e.g. -l<library>
2302 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2303 you have headers in a nonstandard directory <include dir>
2304 CPP C preprocessor
2305 XMKMF Path to xmkmf, Makefile generator for X Window System
2307 Use these variables to override the choices made by `configure' or to help
2308 it to find libraries and programs with nonstandard names/locations.
2310 Report bugs to the package provider.
2311 _ACEOF
2312 ac_status=$?
2315 if test "$ac_init_help" = "recursive"; then
2316 # If there are subdirs, report their specific --help.
2317 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2318 test -d "$ac_dir" ||
2319 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2320 continue
2321 ac_builddir=.
2323 case "$ac_dir" in
2324 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2326 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2327 # A ".." for each directory in $ac_dir_suffix.
2328 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2329 case $ac_top_builddir_sub in
2330 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2331 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2332 esac ;;
2333 esac
2334 ac_abs_top_builddir=$ac_pwd
2335 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2336 # for backward compatibility:
2337 ac_top_builddir=$ac_top_build_prefix
2339 case $srcdir in
2340 .) # We are building in place.
2341 ac_srcdir=.
2342 ac_top_srcdir=$ac_top_builddir_sub
2343 ac_abs_top_srcdir=$ac_pwd ;;
2344 [\\/]* | ?:[\\/]* ) # Absolute name.
2345 ac_srcdir=$srcdir$ac_dir_suffix;
2346 ac_top_srcdir=$srcdir
2347 ac_abs_top_srcdir=$srcdir ;;
2348 *) # Relative name.
2349 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2350 ac_top_srcdir=$ac_top_build_prefix$srcdir
2351 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2352 esac
2353 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2355 cd "$ac_dir" || { ac_status=$?; continue; }
2356 # Check for guested configure.
2357 if test -f "$ac_srcdir/configure.gnu"; then
2358 echo &&
2359 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2360 elif test -f "$ac_srcdir/configure"; then
2361 echo &&
2362 $SHELL "$ac_srcdir/configure" --help=recursive
2363 else
2364 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2365 fi || ac_status=$?
2366 cd "$ac_pwd" || { ac_status=$?; break; }
2367 done
2370 test -n "$ac_init_help" && exit $ac_status
2371 if $ac_init_version; then
2372 cat <<\_ACEOF
2373 emacs configure 24.3.50
2374 generated by GNU Autoconf 2.65
2376 Copyright (C) 2009 Free Software Foundation, Inc.
2377 This configure script is free software; the Free Software Foundation
2378 gives unlimited permission to copy, distribute and modify it.
2379 _ACEOF
2380 exit
2383 ## ------------------------ ##
2384 ## Autoconf initialization. ##
2385 ## ------------------------ ##
2387 # ac_fn_c_try_compile LINENO
2388 # --------------------------
2389 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2390 ac_fn_c_try_compile ()
2392 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2393 rm -f conftest.$ac_objext
2394 if { { ac_try="$ac_compile"
2395 case "(($ac_try" in
2396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2397 *) ac_try_echo=$ac_try;;
2398 esac
2399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2400 $as_echo "$ac_try_echo"; } >&5
2401 (eval "$ac_compile") 2>conftest.err
2402 ac_status=$?
2403 if test -s conftest.err; then
2404 grep -v '^ *+' conftest.err >conftest.er1
2405 cat conftest.er1 >&5
2406 mv -f conftest.er1 conftest.err
2408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2409 test $ac_status = 0; } && {
2410 test -z "$ac_c_werror_flag" ||
2411 test ! -s conftest.err
2412 } && test -s conftest.$ac_objext; then :
2413 ac_retval=0
2414 else
2415 $as_echo "$as_me: failed program was:" >&5
2416 sed 's/^/| /' conftest.$ac_ext >&5
2418 ac_retval=1
2420 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2421 as_fn_set_status $ac_retval
2423 } # ac_fn_c_try_compile
2425 # ac_fn_c_try_cpp LINENO
2426 # ----------------------
2427 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2428 ac_fn_c_try_cpp ()
2430 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2431 if { { ac_try="$ac_cpp conftest.$ac_ext"
2432 case "(($ac_try" in
2433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434 *) ac_try_echo=$ac_try;;
2435 esac
2436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2437 $as_echo "$ac_try_echo"; } >&5
2438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2439 ac_status=$?
2440 if test -s conftest.err; then
2441 grep -v '^ *+' conftest.err >conftest.er1
2442 cat conftest.er1 >&5
2443 mv -f conftest.er1 conftest.err
2445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2446 test $ac_status = 0; } >/dev/null && {
2447 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2448 test ! -s conftest.err
2449 }; then :
2450 ac_retval=0
2451 else
2452 $as_echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2455 ac_retval=1
2457 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2458 as_fn_set_status $ac_retval
2460 } # ac_fn_c_try_cpp
2462 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2463 # -------------------------------------------------------
2464 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2465 # the include files in INCLUDES and setting the cache variable VAR
2466 # accordingly.
2467 ac_fn_c_check_header_mongrel ()
2469 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2470 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2472 $as_echo_n "checking for $2... " >&6; }
2473 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2474 $as_echo_n "(cached) " >&6
2476 eval ac_res=\$$3
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2478 $as_echo "$ac_res" >&6; }
2479 else
2480 # Is the header compilable?
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2482 $as_echo_n "checking $2 usability... " >&6; }
2483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2484 /* end confdefs.h. */
2486 #include <$2>
2487 _ACEOF
2488 if ac_fn_c_try_compile "$LINENO"; then :
2489 ac_header_compiler=yes
2490 else
2491 ac_header_compiler=no
2493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2495 $as_echo "$ac_header_compiler" >&6; }
2497 # Is the header present?
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2499 $as_echo_n "checking $2 presence... " >&6; }
2500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2501 /* end confdefs.h. */
2502 #include <$2>
2503 _ACEOF
2504 if ac_fn_c_try_cpp "$LINENO"; then :
2505 ac_header_preproc=yes
2506 else
2507 ac_header_preproc=no
2509 rm -f conftest.err conftest.$ac_ext
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2511 $as_echo "$ac_header_preproc" >&6; }
2513 # So? What about this header?
2514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2515 yes:no: )
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2517 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2519 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2521 no:yes:* )
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2523 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2525 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2527 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2529 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2531 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2533 esac
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2535 $as_echo_n "checking for $2... " >&6; }
2536 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2537 $as_echo_n "(cached) " >&6
2538 else
2539 eval "$3=\$ac_header_compiler"
2541 eval ac_res=\$$3
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2543 $as_echo "$ac_res" >&6; }
2545 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2547 } # ac_fn_c_check_header_mongrel
2549 # ac_fn_c_try_run LINENO
2550 # ----------------------
2551 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2552 # that executables *can* be run.
2553 ac_fn_c_try_run ()
2555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2556 if { { ac_try="$ac_link"
2557 case "(($ac_try" in
2558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559 *) ac_try_echo=$ac_try;;
2560 esac
2561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2562 $as_echo "$ac_try_echo"; } >&5
2563 (eval "$ac_link") 2>&5
2564 ac_status=$?
2565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2566 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2567 { { case "(($ac_try" in
2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569 *) ac_try_echo=$ac_try;;
2570 esac
2571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2572 $as_echo "$ac_try_echo"; } >&5
2573 (eval "$ac_try") 2>&5
2574 ac_status=$?
2575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2576 test $ac_status = 0; }; }; then :
2577 ac_retval=0
2578 else
2579 $as_echo "$as_me: program exited with status $ac_status" >&5
2580 $as_echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2583 ac_retval=$ac_status
2585 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2586 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2587 as_fn_set_status $ac_retval
2589 } # ac_fn_c_try_run
2591 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2592 # -------------------------------------------------------
2593 # Tests whether HEADER exists and can be compiled using the include files in
2594 # INCLUDES, setting the cache variable VAR accordingly.
2595 ac_fn_c_check_header_compile ()
2597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2599 $as_echo_n "checking for $2... " >&6; }
2600 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2601 $as_echo_n "(cached) " >&6
2602 else
2603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604 /* end confdefs.h. */
2606 #include <$2>
2607 _ACEOF
2608 if ac_fn_c_try_compile "$LINENO"; then :
2609 eval "$3=yes"
2610 else
2611 eval "$3=no"
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615 eval ac_res=\$$3
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2617 $as_echo "$ac_res" >&6; }
2618 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2620 } # ac_fn_c_check_header_compile
2622 # ac_fn_c_try_link LINENO
2623 # -----------------------
2624 # Try to link conftest.$ac_ext, and return whether this succeeded.
2625 ac_fn_c_try_link ()
2627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2628 rm -f conftest.$ac_objext conftest$ac_exeext
2629 if { { ac_try="$ac_link"
2630 case "(($ac_try" in
2631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632 *) ac_try_echo=$ac_try;;
2633 esac
2634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2635 $as_echo "$ac_try_echo"; } >&5
2636 (eval "$ac_link") 2>conftest.err
2637 ac_status=$?
2638 if test -s conftest.err; then
2639 grep -v '^ *+' conftest.err >conftest.er1
2640 cat conftest.er1 >&5
2641 mv -f conftest.er1 conftest.err
2643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2644 test $ac_status = 0; } && {
2645 test -z "$ac_c_werror_flag" ||
2646 test ! -s conftest.err
2647 } && test -s conftest$ac_exeext && {
2648 test "$cross_compiling" = yes ||
2649 $as_test_x conftest$ac_exeext
2650 }; then :
2651 ac_retval=0
2652 else
2653 $as_echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2656 ac_retval=1
2658 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2659 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2660 # interfere with the next link command; also delete a directory that is
2661 # left behind by Apple's compiler. We do this before executing the actions.
2662 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2663 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2664 as_fn_set_status $ac_retval
2666 } # ac_fn_c_try_link
2668 # ac_fn_c_check_decl LINENO SYMBOL VAR
2669 # ------------------------------------
2670 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2671 ac_fn_c_check_decl ()
2673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2675 $as_echo_n "checking whether $2 is declared... " >&6; }
2676 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2677 $as_echo_n "(cached) " >&6
2678 else
2679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2680 /* end confdefs.h. */
2683 main ()
2685 #ifndef $2
2686 (void) $2;
2687 #endif
2690 return 0;
2692 _ACEOF
2693 if ac_fn_c_try_compile "$LINENO"; then :
2694 eval "$3=yes"
2695 else
2696 eval "$3=no"
2698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2700 eval ac_res=\$$3
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2702 $as_echo "$ac_res" >&6; }
2703 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2705 } # ac_fn_c_check_decl
2707 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2708 # ----------------------------------------------
2709 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2710 ac_fn_c_check_header_preproc ()
2712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2714 $as_echo_n "checking for $2... " >&6; }
2715 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2716 $as_echo_n "(cached) " >&6
2717 else
2718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2719 /* end confdefs.h. */
2720 #include <$2>
2721 _ACEOF
2722 if ac_fn_c_try_cpp "$LINENO"; then :
2723 eval "$3=yes"
2724 else
2725 eval "$3=no"
2727 rm -f conftest.err conftest.$ac_ext
2729 eval ac_res=\$$3
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2731 $as_echo "$ac_res" >&6; }
2732 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2734 } # ac_fn_c_check_header_preproc
2736 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2737 # ----------------------------------------------------
2738 # Tries to find if the field MEMBER exists in type AGGR, after including
2739 # INCLUDES, setting cache variable VAR accordingly.
2740 ac_fn_c_check_member ()
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.$3" >&5
2744 $as_echo_n "checking for $2.$3... " >&6; }
2745 if { as_var=$4; 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. */
2752 main ()
2754 static $2 ac_aggr;
2755 if (ac_aggr.$3)
2756 return 0;
2758 return 0;
2760 _ACEOF
2761 if ac_fn_c_try_compile "$LINENO"; then :
2762 eval "$4=yes"
2763 else
2764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2765 /* end confdefs.h. */
2768 main ()
2770 static $2 ac_aggr;
2771 if (sizeof ac_aggr.$3)
2772 return 0;
2774 return 0;
2776 _ACEOF
2777 if ac_fn_c_try_compile "$LINENO"; then :
2778 eval "$4=yes"
2779 else
2780 eval "$4=no"
2782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2786 eval ac_res=\$$4
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2788 $as_echo "$ac_res" >&6; }
2789 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2791 } # ac_fn_c_check_member
2793 # ac_fn_c_check_func LINENO FUNC VAR
2794 # ----------------------------------
2795 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2796 ac_fn_c_check_func ()
2798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2800 $as_echo_n "checking for $2... " >&6; }
2801 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2802 $as_echo_n "(cached) " >&6
2803 else
2804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2805 /* end confdefs.h. */
2806 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2808 #define $2 innocuous_$2
2810 /* System header to define __stub macros and hopefully few prototypes,
2811 which can conflict with char $2 (); below.
2812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2813 <limits.h> exists even on freestanding compilers. */
2815 #ifdef __STDC__
2816 # include <limits.h>
2817 #else
2818 # include <assert.h>
2819 #endif
2821 #undef $2
2823 /* Override any GCC internal prototype to avoid an error.
2824 Use char because int might match the return type of a GCC
2825 builtin and then its argument prototype would still apply. */
2826 #ifdef __cplusplus
2827 extern "C"
2828 #endif
2829 char $2 ();
2830 /* The GNU C library defines this for functions which it implements
2831 to always fail with ENOSYS. Some functions are actually named
2832 something starting with __ and the normal name is an alias. */
2833 #if defined __stub_$2 || defined __stub___$2
2834 choke me
2835 #endif
2838 main ()
2840 return $2 ();
2842 return 0;
2844 _ACEOF
2845 if ac_fn_c_try_link "$LINENO"; then :
2846 eval "$3=yes"
2847 else
2848 eval "$3=no"
2850 rm -f core conftest.err conftest.$ac_objext \
2851 conftest$ac_exeext conftest.$ac_ext
2853 eval ac_res=\$$3
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2855 $as_echo "$ac_res" >&6; }
2856 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2858 } # ac_fn_c_check_func
2860 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2861 # -------------------------------------------
2862 # Tests whether TYPE exists after having included INCLUDES, setting cache
2863 # variable VAR accordingly.
2864 ac_fn_c_check_type ()
2866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2868 $as_echo_n "checking for $2... " >&6; }
2869 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2870 $as_echo_n "(cached) " >&6
2871 else
2872 eval "$3=no"
2873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2874 /* end confdefs.h. */
2877 main ()
2879 if (sizeof ($2))
2880 return 0;
2882 return 0;
2884 _ACEOF
2885 if ac_fn_c_try_compile "$LINENO"; then :
2886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2887 /* end confdefs.h. */
2890 main ()
2892 if (sizeof (($2)))
2893 return 0;
2895 return 0;
2897 _ACEOF
2898 if ac_fn_c_try_compile "$LINENO"; then :
2900 else
2901 eval "$3=yes"
2903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2907 eval ac_res=\$$3
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2909 $as_echo "$ac_res" >&6; }
2910 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2912 } # ac_fn_c_check_type
2914 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2915 # --------------------------------------------
2916 # Tries to find the compile-time value of EXPR in a program that includes
2917 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2918 # computed
2919 ac_fn_c_compute_int ()
2921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2922 if test "$cross_compiling" = yes; then
2923 # Depending upon the size, compute the lo and hi bounds.
2924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2925 /* end confdefs.h. */
2928 main ()
2930 static int test_array [1 - 2 * !(($2) >= 0)];
2931 test_array [0] = 0
2934 return 0;
2936 _ACEOF
2937 if ac_fn_c_try_compile "$LINENO"; then :
2938 ac_lo=0 ac_mid=0
2939 while :; do
2940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2941 /* end confdefs.h. */
2944 main ()
2946 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2947 test_array [0] = 0
2950 return 0;
2952 _ACEOF
2953 if ac_fn_c_try_compile "$LINENO"; then :
2954 ac_hi=$ac_mid; break
2955 else
2956 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2957 if test $ac_lo -le $ac_mid; then
2958 ac_lo= ac_hi=
2959 break
2961 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2964 done
2965 else
2966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2967 /* end confdefs.h. */
2970 main ()
2972 static int test_array [1 - 2 * !(($2) < 0)];
2973 test_array [0] = 0
2976 return 0;
2978 _ACEOF
2979 if ac_fn_c_try_compile "$LINENO"; then :
2980 ac_hi=-1 ac_mid=-1
2981 while :; do
2982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2983 /* end confdefs.h. */
2986 main ()
2988 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2989 test_array [0] = 0
2992 return 0;
2994 _ACEOF
2995 if ac_fn_c_try_compile "$LINENO"; then :
2996 ac_lo=$ac_mid; break
2997 else
2998 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2999 if test $ac_mid -le $ac_hi; then
3000 ac_lo= ac_hi=
3001 break
3003 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3006 done
3007 else
3008 ac_lo= ac_hi=
3010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3013 # Binary search between lo and hi bounds.
3014 while test "x$ac_lo" != "x$ac_hi"; do
3015 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3017 /* end confdefs.h. */
3020 main ()
3022 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3023 test_array [0] = 0
3026 return 0;
3028 _ACEOF
3029 if ac_fn_c_try_compile "$LINENO"; then :
3030 ac_hi=$ac_mid
3031 else
3032 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3035 done
3036 case $ac_lo in #((
3037 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3038 '') ac_retval=1 ;;
3039 esac
3040 else
3041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3042 /* end confdefs.h. */
3044 static long int longval () { return $2; }
3045 static unsigned long int ulongval () { return $2; }
3046 #include <stdio.h>
3047 #include <stdlib.h>
3049 main ()
3052 FILE *f = fopen ("conftest.val", "w");
3053 if (! f)
3054 return 1;
3055 if (($2) < 0)
3057 long int i = longval ();
3058 if (i != ($2))
3059 return 1;
3060 fprintf (f, "%ld", i);
3062 else
3064 unsigned long int i = ulongval ();
3065 if (i != ($2))
3066 return 1;
3067 fprintf (f, "%lu", i);
3069 /* Do not output a trailing newline, as this causes \r\n confusion
3070 on some platforms. */
3071 return ferror (f) || fclose (f) != 0;
3074 return 0;
3076 _ACEOF
3077 if ac_fn_c_try_run "$LINENO"; then :
3078 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3079 else
3080 ac_retval=1
3082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3083 conftest.$ac_objext conftest.beam conftest.$ac_ext
3084 rm -f conftest.val
3087 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3088 as_fn_set_status $ac_retval
3090 } # ac_fn_c_compute_int
3091 cat >config.log <<_ACEOF
3092 This file contains any messages produced by compilers while
3093 running configure, to aid debugging if configure makes a mistake.
3095 It was created by emacs $as_me 24.3.50, which was
3096 generated by GNU Autoconf 2.65. Invocation command line was
3098 $ $0 $@
3100 _ACEOF
3101 exec 5>>config.log
3103 cat <<_ASUNAME
3104 ## --------- ##
3105 ## Platform. ##
3106 ## --------- ##
3108 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3109 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3110 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3111 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3112 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3114 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3115 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3117 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3118 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3119 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3120 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3121 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3122 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3123 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3125 _ASUNAME
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH
3130 IFS=$as_save_IFS
3131 test -z "$as_dir" && as_dir=.
3132 $as_echo "PATH: $as_dir"
3133 done
3134 IFS=$as_save_IFS
3136 } >&5
3138 cat >&5 <<_ACEOF
3141 ## ----------- ##
3142 ## Core tests. ##
3143 ## ----------- ##
3145 _ACEOF
3148 # Keep a trace of the command line.
3149 # Strip out --no-create and --no-recursion so they do not pile up.
3150 # Strip out --silent because we don't want to record it for future runs.
3151 # Also quote any args containing shell meta-characters.
3152 # Make two passes to allow for proper duplicate-argument suppression.
3153 ac_configure_args=
3154 ac_configure_args0=
3155 ac_configure_args1=
3156 ac_must_keep_next=false
3157 for ac_pass in 1 2
3159 for ac_arg
3161 case $ac_arg in
3162 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3164 | -silent | --silent | --silen | --sile | --sil)
3165 continue ;;
3166 *\'*)
3167 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3168 esac
3169 case $ac_pass in
3170 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3172 as_fn_append ac_configure_args1 " '$ac_arg'"
3173 if test $ac_must_keep_next = true; then
3174 ac_must_keep_next=false # Got value, back to normal.
3175 else
3176 case $ac_arg in
3177 *=* | --config-cache | -C | -disable-* | --disable-* \
3178 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3179 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3180 | -with-* | --with-* | -without-* | --without-* | --x)
3181 case "$ac_configure_args0 " in
3182 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3183 esac
3185 -* ) ac_must_keep_next=true ;;
3186 esac
3188 as_fn_append ac_configure_args " '$ac_arg'"
3190 esac
3191 done
3192 done
3193 { ac_configure_args0=; unset ac_configure_args0;}
3194 { ac_configure_args1=; unset ac_configure_args1;}
3196 # When interrupted or exit'd, cleanup temporary files, and complete
3197 # config.log. We remove comments because anyway the quotes in there
3198 # would cause problems or look ugly.
3199 # WARNING: Use '\'' to represent an apostrophe within the trap.
3200 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3201 trap 'exit_status=$?
3202 # Save into config.log some information that might help in debugging.
3204 echo
3206 cat <<\_ASBOX
3207 ## ---------------- ##
3208 ## Cache variables. ##
3209 ## ---------------- ##
3210 _ASBOX
3211 echo
3212 # The following way of writing the cache mishandles newlines in values,
3214 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3215 eval ac_val=\$$ac_var
3216 case $ac_val in #(
3217 *${as_nl}*)
3218 case $ac_var in #(
3219 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3220 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3221 esac
3222 case $ac_var in #(
3223 _ | IFS | as_nl) ;; #(
3224 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3225 *) { eval $ac_var=; unset $ac_var;} ;;
3226 esac ;;
3227 esac
3228 done
3229 (set) 2>&1 |
3230 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3231 *${as_nl}ac_space=\ *)
3232 sed -n \
3233 "s/'\''/'\''\\\\'\'''\''/g;
3234 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3235 ;; #(
3237 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3239 esac |
3240 sort
3242 echo
3244 cat <<\_ASBOX
3245 ## ----------------- ##
3246 ## Output variables. ##
3247 ## ----------------- ##
3248 _ASBOX
3249 echo
3250 for ac_var in $ac_subst_vars
3252 eval ac_val=\$$ac_var
3253 case $ac_val in
3254 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3255 esac
3256 $as_echo "$ac_var='\''$ac_val'\''"
3257 done | sort
3258 echo
3260 if test -n "$ac_subst_files"; then
3261 cat <<\_ASBOX
3262 ## ------------------- ##
3263 ## File substitutions. ##
3264 ## ------------------- ##
3265 _ASBOX
3266 echo
3267 for ac_var in $ac_subst_files
3269 eval ac_val=\$$ac_var
3270 case $ac_val in
3271 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3272 esac
3273 $as_echo "$ac_var='\''$ac_val'\''"
3274 done | sort
3275 echo
3278 if test -s confdefs.h; then
3279 cat <<\_ASBOX
3280 ## ----------- ##
3281 ## confdefs.h. ##
3282 ## ----------- ##
3283 _ASBOX
3284 echo
3285 cat confdefs.h
3286 echo
3288 test "$ac_signal" != 0 &&
3289 $as_echo "$as_me: caught signal $ac_signal"
3290 $as_echo "$as_me: exit $exit_status"
3291 } >&5
3292 rm -f core *.core core.conftest.* &&
3293 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3294 exit $exit_status
3296 for ac_signal in 1 2 13 15; do
3297 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3298 done
3299 ac_signal=0
3301 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3302 rm -f -r conftest* confdefs.h
3304 $as_echo "/* confdefs.h */" > confdefs.h
3306 # Predefined preprocessor variables.
3308 cat >>confdefs.h <<_ACEOF
3309 #define PACKAGE_NAME "$PACKAGE_NAME"
3310 _ACEOF
3312 cat >>confdefs.h <<_ACEOF
3313 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3314 _ACEOF
3316 cat >>confdefs.h <<_ACEOF
3317 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3318 _ACEOF
3320 cat >>confdefs.h <<_ACEOF
3321 #define PACKAGE_STRING "$PACKAGE_STRING"
3322 _ACEOF
3324 cat >>confdefs.h <<_ACEOF
3325 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3326 _ACEOF
3328 cat >>confdefs.h <<_ACEOF
3329 #define PACKAGE_URL "$PACKAGE_URL"
3330 _ACEOF
3333 # Let the site file select an alternate cache file if it wants to.
3334 # Prefer an explicitly selected file to automatically selected ones.
3335 ac_site_file1=NONE
3336 ac_site_file2=NONE
3337 if test -n "$CONFIG_SITE"; then
3338 ac_site_file1=$CONFIG_SITE
3339 elif test "x$prefix" != xNONE; then
3340 ac_site_file1=$prefix/share/config.site
3341 ac_site_file2=$prefix/etc/config.site
3342 else
3343 ac_site_file1=$ac_default_prefix/share/config.site
3344 ac_site_file2=$ac_default_prefix/etc/config.site
3346 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3348 test "x$ac_site_file" = xNONE && continue
3349 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3351 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3352 sed 's/^/| /' "$ac_site_file" >&5
3353 . "$ac_site_file"
3355 done
3357 if test -r "$cache_file"; then
3358 # Some versions of bash will fail to source /dev/null (special files
3359 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3360 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3362 $as_echo "$as_me: loading cache $cache_file" >&6;}
3363 case $cache_file in
3364 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3365 *) . "./$cache_file";;
3366 esac
3368 else
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3370 $as_echo "$as_me: creating cache $cache_file" >&6;}
3371 >$cache_file
3374 as_fn_append ac_header_list " sys/systeminfo.h"
3375 as_fn_append ac_header_list " coff.h"
3376 as_fn_append ac_header_list " pty.h"
3377 as_fn_append ac_header_list " sys/resource.h"
3378 as_fn_append ac_header_list " sys/utsname.h"
3379 as_fn_append ac_header_list " pwd.h"
3380 as_fn_append ac_header_list " utmp.h"
3381 as_fn_append ac_header_list " util.h"
3382 as_fn_append ac_header_list " sys/socket.h"
3383 as_fn_append ac_header_list " stdlib.h"
3384 as_fn_append ac_header_list " unistd.h"
3385 as_fn_append ac_header_list " sys/param.h"
3386 as_fn_append ac_header_list " pthread.h"
3387 as_fn_append ac_header_list " malloc/malloc.h"
3388 as_fn_append ac_header_list " maillock.h"
3389 as_fn_append ac_header_list " sys/un.h"
3390 as_fn_append ac_func_list " tzset"
3391 as_fn_append ac_func_list " readlinkat"
3392 as_fn_append ac_header_list " dirent.h"
3393 as_fn_append ac_header_list " execinfo.h"
3394 as_fn_append ac_func_list " faccessat"
3395 as_fn_append ac_func_list " fcntl"
3396 as_fn_append ac_func_list " fdopendir"
3397 as_fn_append ac_header_list " stdio_ext.h"
3398 as_fn_append ac_func_list " fstatat"
3399 as_fn_append ac_func_list " fsync"
3400 gl_getopt_required=GNU
3401 as_fn_append ac_header_list " getopt.h"
3402 as_fn_append ac_func_list " gettimeofday"
3403 as_fn_append ac_func_list " nanotime"
3404 as_fn_append ac_header_list " sys/time.h"
3405 as_fn_append ac_header_list " wchar.h"
3406 as_fn_append ac_header_list " stdint.h"
3407 as_fn_append ac_header_list " inttypes.h"
3408 as_fn_append ac_func_list " lstat"
3409 as_fn_append ac_func_list " mkostemp"
3410 as_fn_append ac_func_list " pipe2"
3411 as_fn_append ac_header_list " sys/select.h"
3412 as_fn_append ac_func_list " pselect"
3413 as_fn_append ac_func_list " pthread_sigmask"
3414 as_fn_append ac_func_list " readlink"
3415 as_fn_append ac_func_list " strtoimax"
3416 as_fn_append ac_func_list " strtoumax"
3417 as_fn_append ac_func_list " symlink"
3418 as_fn_append ac_header_list " sys/stat.h"
3419 as_fn_append ac_func_list " localtime_r"
3420 as_fn_append ac_header_list " utime.h"
3421 as_fn_append ac_func_list " futimes"
3422 as_fn_append ac_func_list " futimesat"
3423 as_fn_append ac_func_list " futimens"
3424 as_fn_append ac_func_list " utimensat"
3425 as_fn_append ac_func_list " lutimes"
3426 as_fn_append ac_func_list " getdtablesize"
3427 as_fn_append ac_func_list " secure_getenv"
3428 # Check that the precious variables saved in the cache have kept the same
3429 # value.
3430 ac_cache_corrupted=false
3431 for ac_var in $ac_precious_vars; do
3432 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3433 eval ac_new_set=\$ac_env_${ac_var}_set
3434 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3435 eval ac_new_val=\$ac_env_${ac_var}_value
3436 case $ac_old_set,$ac_new_set in
3437 set,)
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3439 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3440 ac_cache_corrupted=: ;;
3441 ,set)
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3443 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3444 ac_cache_corrupted=: ;;
3445 ,);;
3447 if test "x$ac_old_val" != "x$ac_new_val"; then
3448 # differences in whitespace do not lead to failure.
3449 ac_old_val_w=`echo x $ac_old_val`
3450 ac_new_val_w=`echo x $ac_new_val`
3451 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3453 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3454 ac_cache_corrupted=:
3455 else
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3457 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3458 eval $ac_var=\$ac_old_val
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3461 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3463 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3464 fi;;
3465 esac
3466 # Pass precious variables to config.status.
3467 if test "$ac_new_set" = set; then
3468 case $ac_new_val in
3469 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3470 *) ac_arg=$ac_var=$ac_new_val ;;
3471 esac
3472 case " $ac_configure_args " in
3473 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3474 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3475 esac
3477 done
3478 if $ac_cache_corrupted; then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3482 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3483 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3485 ## -------------------- ##
3486 ## Main body of script. ##
3487 ## -------------------- ##
3489 ac_ext=c
3490 ac_cpp='$CPP $CPPFLAGS'
3491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3497 emacs_config_options=
3498 optsep=
3499 for opt in ${1+"$@"} CFLAGS CPPFLAGS LDFLAGS; do
3500 case $opt in
3501 -n | --no-create | --no-recursion)
3502 continue ;;
3503 CFLAGS | CPPFLAGS | LDFLAGS)
3504 eval 'test "${'$opt'+set}" = set' || continue
3505 case " $*" in
3506 *" $opt="*) continue ;;
3507 esac
3508 eval opt=$opt=\$$opt ;;
3509 esac
3511 emacs_shell_specials=$IFS\''"#$&()*;<>?[\\`{|~'
3512 case $opt in
3513 *["$emacs_shell_specials"]*)
3514 case $opt in
3515 *\'*)
3516 emacs_quote_apostrophes="s/'/'\\\\''/g"
3517 opt=`$as_echo "$opt" | sed "$emacs_quote_apostrophes"` ;;
3518 esac
3519 opt="'$opt'"
3520 case $opt in
3521 *['"\\']*)
3522 emacs_quote_for_c='s/["\\]/\\&/g; $!s/$/\\n\\/'
3523 opt=`$as_echo "$opt" | sed "$emacs_quote_for_c"` ;;
3524 esac ;;
3525 esac
3526 as_fn_append emacs_config_options "$optsep$opt"
3527 optsep=' '
3528 done
3530 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3533 ac_aux_dir=
3534 for ac_dir in build-aux "$srcdir"/build-aux; do
3535 for ac_t in install-sh install.sh shtool; do
3536 if test -f "$ac_dir/$ac_t"; then
3537 ac_aux_dir=$ac_dir
3538 ac_install_sh="$ac_aux_dir/$ac_t -c"
3539 break 2
3541 done
3542 done
3543 if test -z "$ac_aux_dir"; then
3544 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3547 # These three variables are undocumented and unsupported,
3548 # and are intended to be withdrawn in a future Autoconf release.
3549 # They can cause serious problems if a builder's source tree is in a directory
3550 # whose full name contains unusual characters.
3551 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3552 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3553 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3556 am__api_version='1.11'
3558 # Find a good install program. We prefer a C program (faster),
3559 # so one script is as good as another. But avoid the broken or
3560 # incompatible versions:
3561 # SysV /etc/install, /usr/sbin/install
3562 # SunOS /usr/etc/install
3563 # IRIX /sbin/install
3564 # AIX /bin/install
3565 # AmigaOS /C/install, which installs bootblocks on floppy discs
3566 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3567 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3568 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3569 # OS/2's system install, which has a completely different semantic
3570 # ./install, which can be erroneously created by make from ./install.sh.
3571 # Reject install programs that cannot install multiple files.
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3573 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3574 if test -z "$INSTALL"; then
3575 if test "${ac_cv_path_install+set}" = set; then :
3576 $as_echo_n "(cached) " >&6
3577 else
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 for as_dir in $PATH
3581 IFS=$as_save_IFS
3582 test -z "$as_dir" && as_dir=.
3583 # Account for people who put trailing slashes in PATH elements.
3584 case $as_dir/ in #((
3585 ./ | .// | /[cC]/* | \
3586 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3587 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3588 /usr/ucb/* ) ;;
3590 # OSF1 and SCO ODT 3.0 have their own names for install.
3591 # Don't use installbsd from OSF since it installs stuff as root
3592 # by default.
3593 for ac_prog in ginstall scoinst install; do
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3596 if test $ac_prog = install &&
3597 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3598 # AIX install. It has an incompatible calling convention.
3600 elif test $ac_prog = install &&
3601 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3602 # program-specific install script used by HP pwplus--don't use.
3604 else
3605 rm -rf conftest.one conftest.two conftest.dir
3606 echo one > conftest.one
3607 echo two > conftest.two
3608 mkdir conftest.dir
3609 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3610 test -s conftest.one && test -s conftest.two &&
3611 test -s conftest.dir/conftest.one &&
3612 test -s conftest.dir/conftest.two
3613 then
3614 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3615 break 3
3619 done
3620 done
3622 esac
3624 done
3625 IFS=$as_save_IFS
3627 rm -rf conftest.one conftest.two conftest.dir
3630 if test "${ac_cv_path_install+set}" = set; then
3631 INSTALL=$ac_cv_path_install
3632 else
3633 # As a last resort, use the slow shell script. Don't cache a
3634 # value for INSTALL within a source directory, because that will
3635 # break other packages using the cache if that directory is
3636 # removed, or if the value is a relative name.
3637 INSTALL=$ac_install_sh
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3641 $as_echo "$INSTALL" >&6; }
3643 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3644 # It thinks the first close brace ends the variable substitution.
3645 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3647 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3649 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3652 $as_echo_n "checking whether build environment is sane... " >&6; }
3653 # Just in case
3654 sleep 1
3655 echo timestamp > conftest.file
3656 # Reject unsafe characters in $srcdir or the absolute working directory
3657 # name. Accept space and tab only in the latter.
3658 am_lf='
3660 case `pwd` in
3661 *[\\\"\#\$\&\'\`$am_lf]*)
3662 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3663 esac
3664 case $srcdir in
3665 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3666 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3667 esac
3669 # Do `set' in a subshell so we don't clobber the current shell's
3670 # arguments. Must try -L first in case configure is actually a
3671 # symlink; some systems play weird games with the mod time of symlinks
3672 # (eg FreeBSD returns the mod time of the symlink's containing
3673 # directory).
3674 if (
3675 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3676 if test "$*" = "X"; then
3677 # -L didn't work.
3678 set X `ls -t "$srcdir/configure" conftest.file`
3680 rm -f conftest.file
3681 if test "$*" != "X $srcdir/configure conftest.file" \
3682 && test "$*" != "X conftest.file $srcdir/configure"; then
3684 # If neither matched, then we have a broken ls. This can happen
3685 # if, for instance, CONFIG_SHELL is bash and it inherits a
3686 # broken ls alias from the environment. This has actually
3687 # happened. Such a system could not be considered "sane".
3688 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3689 alias in your environment" "$LINENO" 5
3692 test "$2" = conftest.file
3694 then
3695 # Ok.
3697 else
3698 as_fn_error "newly created file is older than distributed files!
3699 Check your system clock" "$LINENO" 5
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3702 $as_echo "yes" >&6; }
3703 test "$program_prefix" != NONE &&
3704 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3705 # Use a double $ so make ignores it.
3706 test "$program_suffix" != NONE &&
3707 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3708 # Double any \ or $.
3709 # By default was `s,x,x', remove it if useless.
3710 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3711 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3713 # expand $ac_aux_dir to an absolute path
3714 am_aux_dir=`cd $ac_aux_dir && pwd`
3716 if test x"${MISSING+set}" != xset; then
3717 case $am_aux_dir in
3718 *\ * | *\ *)
3719 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3721 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3722 esac
3724 # Use eval to expand $SHELL
3725 if eval "$MISSING --run true"; then
3726 am_missing_run="$MISSING --run "
3727 else
3728 am_missing_run=
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3730 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3733 if test x"${install_sh}" != xset; then
3734 case $am_aux_dir in
3735 *\ * | *\ *)
3736 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3738 install_sh="\${SHELL} $am_aux_dir/install-sh"
3739 esac
3742 # Installed binaries are usually stripped using `strip' when the user
3743 # run `make install-strip'. However `strip' might not be the right
3744 # tool to use in cross-compilation environments, therefore Automake
3745 # will honor the `STRIP' environment variable to overrule this program.
3746 if test "$cross_compiling" != no; then
3747 if test -n "$ac_tool_prefix"; then
3748 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3749 set dummy ${ac_tool_prefix}strip; ac_word=$2
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3751 $as_echo_n "checking for $ac_word... " >&6; }
3752 if test "${ac_cv_prog_STRIP+set}" = set; then :
3753 $as_echo_n "(cached) " >&6
3754 else
3755 if test -n "$STRIP"; then
3756 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3757 else
3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 for as_dir in $PATH
3761 IFS=$as_save_IFS
3762 test -z "$as_dir" && as_dir=.
3763 for ac_exec_ext in '' $ac_executable_extensions; do
3764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3765 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3767 break 2
3769 done
3770 done
3771 IFS=$as_save_IFS
3775 STRIP=$ac_cv_prog_STRIP
3776 if test -n "$STRIP"; then
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3778 $as_echo "$STRIP" >&6; }
3779 else
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3781 $as_echo "no" >&6; }
3786 if test -z "$ac_cv_prog_STRIP"; then
3787 ac_ct_STRIP=$STRIP
3788 # Extract the first word of "strip", so it can be a program name with args.
3789 set dummy strip; ac_word=$2
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3791 $as_echo_n "checking for $ac_word... " >&6; }
3792 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3793 $as_echo_n "(cached) " >&6
3794 else
3795 if test -n "$ac_ct_STRIP"; then
3796 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3797 else
3798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 for as_dir in $PATH
3801 IFS=$as_save_IFS
3802 test -z "$as_dir" && as_dir=.
3803 for ac_exec_ext in '' $ac_executable_extensions; do
3804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3805 ac_cv_prog_ac_ct_STRIP="strip"
3806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3807 break 2
3809 done
3810 done
3811 IFS=$as_save_IFS
3815 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3816 if test -n "$ac_ct_STRIP"; then
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3818 $as_echo "$ac_ct_STRIP" >&6; }
3819 else
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3821 $as_echo "no" >&6; }
3824 if test "x$ac_ct_STRIP" = x; then
3825 STRIP=":"
3826 else
3827 case $cross_compiling:$ac_tool_warned in
3828 yes:)
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3831 ac_tool_warned=yes ;;
3832 esac
3833 STRIP=$ac_ct_STRIP
3835 else
3836 STRIP="$ac_cv_prog_STRIP"
3840 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3843 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3844 if test -z "$MKDIR_P"; then
3845 if test "${ac_cv_path_mkdir+set}" = set; then :
3846 $as_echo_n "(cached) " >&6
3847 else
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3851 IFS=$as_save_IFS
3852 test -z "$as_dir" && as_dir=.
3853 for ac_prog in mkdir gmkdir; do
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3856 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3857 'mkdir (GNU coreutils) '* | \
3858 'mkdir (coreutils) '* | \
3859 'mkdir (fileutils) '4.1*)
3860 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3861 break 3;;
3862 esac
3863 done
3864 done
3865 done
3866 IFS=$as_save_IFS
3870 test -d ./--version && rmdir ./--version
3871 if test "${ac_cv_path_mkdir+set}" = set; then
3872 MKDIR_P="$ac_cv_path_mkdir -p"
3873 else
3874 # As a last resort, use the slow shell script. Don't cache a
3875 # value for MKDIR_P within a source directory, because that will
3876 # break other packages using the cache if that directory is
3877 # removed, or if the value is a relative name.
3878 MKDIR_P="$ac_install_sh -d"
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3882 $as_echo "$MKDIR_P" >&6; }
3884 mkdir_p="$MKDIR_P"
3885 case $mkdir_p in
3886 [\\/$]* | ?:[\\/]*) ;;
3887 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3888 esac
3890 for ac_prog in gawk mawk nawk awk
3892 # Extract the first word of "$ac_prog", so it can be a program name with args.
3893 set dummy $ac_prog; ac_word=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if test "${ac_cv_prog_AWK+set}" = set; then :
3897 $as_echo_n "(cached) " >&6
3898 else
3899 if test -n "$AWK"; then
3900 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3901 else
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3909 ac_cv_prog_AWK="$ac_prog"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 break 2
3913 done
3914 done
3915 IFS=$as_save_IFS
3919 AWK=$ac_cv_prog_AWK
3920 if test -n "$AWK"; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3922 $as_echo "$AWK" >&6; }
3923 else
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3929 test -n "$AWK" && break
3930 done
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3933 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3934 set x ${MAKE-make}
3935 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3936 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3937 $as_echo_n "(cached) " >&6
3938 else
3939 cat >conftest.make <<\_ACEOF
3940 SHELL = /bin/sh
3941 all:
3942 @echo '@@@%%%=$(MAKE)=@@@%%%'
3943 _ACEOF
3944 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3945 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3946 *@@@%%%=?*=@@@%%%*)
3947 eval ac_cv_prog_make_${ac_make}_set=yes;;
3949 eval ac_cv_prog_make_${ac_make}_set=no;;
3950 esac
3951 rm -f conftest.make
3953 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3955 $as_echo "yes" >&6; }
3956 SET_MAKE=
3957 else
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 $as_echo "no" >&6; }
3960 SET_MAKE="MAKE=${MAKE-make}"
3963 rm -rf .tst 2>/dev/null
3964 mkdir .tst 2>/dev/null
3965 if test -d .tst; then
3966 am__leading_dot=.
3967 else
3968 am__leading_dot=_
3970 rmdir .tst 2>/dev/null
3972 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3973 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3974 # is not polluted with repeated "-I."
3975 am__isrc=' -I$(srcdir)'
3976 # test to see if srcdir already configured
3977 if test -f $srcdir/config.status; then
3978 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3982 # test whether we have cygpath
3983 if test -z "$CYGPATH_W"; then
3984 if (cygpath --version) >/dev/null 2>/dev/null; then
3985 CYGPATH_W='cygpath -w'
3986 else
3987 CYGPATH_W=echo
3992 # Define the identity of the package.
3993 PACKAGE='emacs'
3994 VERSION='24.3.50'
3997 cat >>confdefs.h <<_ACEOF
3998 #define PACKAGE "$PACKAGE"
3999 _ACEOF
4002 cat >>confdefs.h <<_ACEOF
4003 #define VERSION "$VERSION"
4004 _ACEOF
4006 # Some tools Automake needs.
4008 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4011 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4014 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4017 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4020 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4022 # We need awk for the "check" target. The system "awk" is bad on
4023 # some platforms.
4024 # Always define AMTAR for backward compatibility.
4026 AMTAR=${AMTAR-"${am_missing_run}tar"}
4028 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4037 lispdir='${datadir}/emacs/${version}/lisp'
4038 leimdir='${datadir}/emacs/${version}/leim'
4039 standardlisppath='${lispdir}:${leimdir}'
4040 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
4041 '${datadir}/emacs/site-lisp'
4042 lisppath='${locallisppath}:${standardlisppath}'
4043 etcdir='${datadir}/emacs/${version}/etc'
4044 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
4045 etcdocdir='${datadir}/emacs/${version}/etc'
4046 gamedir='${localstatedir}/games/emacs'
4049 # Check whether --with-all was given.
4050 if test "${with_all+set}" = set; then :
4051 withval=$with_all; with_features=$withval
4052 else
4053 with_features=yes
4060 # Check whether --with-pop was given.
4061 if test "${with_pop+set}" = set; then :
4062 withval=$with_pop;
4063 else
4064 with_pop=$with_features
4067 if test "$with_pop" = yes; then
4068 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
4073 # Check whether --with-kerberos was given.
4074 if test "${with_kerberos+set}" = set; then :
4075 withval=$with_kerberos;
4076 else
4077 with_kerberos=no
4080 if test "$with_kerberos" != no; then
4081 $as_echo "#define KERBEROS 1" >>confdefs.h
4086 # Check whether --with-kerberos5 was given.
4087 if test "${with_kerberos5+set}" = set; then :
4088 withval=$with_kerberos5;
4089 else
4090 with_kerberos5=no
4093 if test "${with_kerberos5}" != no; then
4094 if test "${with_kerberos}" = no; then
4095 with_kerberos=yes
4096 $as_echo "#define KERBEROS 1" >>confdefs.h
4100 $as_echo "#define KERBEROS5 1" >>confdefs.h
4105 # Check whether --with-hesiod was given.
4106 if test "${with_hesiod+set}" = set; then :
4107 withval=$with_hesiod;
4108 else
4109 with_hesiod=no
4112 if test "$with_hesiod" != no; then
4114 $as_echo "#define HESIOD 1" >>confdefs.h
4119 # Check whether --with-mmdf was given.
4120 if test "${with_mmdf+set}" = set; then :
4121 withval=$with_mmdf;
4122 else
4123 with_mmdf=no
4126 if test "$with_mmdf" != no; then
4128 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
4133 # Check whether --with-mail-unlink was given.
4134 if test "${with_mail_unlink+set}" = set; then :
4135 withval=$with_mail_unlink;
4136 else
4137 with_mail_unlink=no
4140 if test "$with_mail_unlink" != no; then
4142 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
4147 # Check whether --with-mailhost was given.
4148 if test "${with_mailhost+set}" = set; then :
4149 withval=$with_mailhost;
4150 cat >>confdefs.h <<_ACEOF
4151 #define MAILHOST "$withval"
4152 _ACEOF
4158 # Check whether --with-sound was given.
4159 if test "${with_sound+set}" = set; then :
4160 withval=$with_sound; case "${withval}" in
4161 yes|no|alsa|oss|bsd-ossaudio) val=$withval ;;
4162 *) as_fn_error "\`--with-sound=$withval' is invalid;
4163 this option's value should be \`yes', \`no', \`alsa', \`oss', or \`bsd-ossaudio'." "$LINENO" 5
4165 esac
4166 with_sound=$val
4168 else
4169 with_sound=$with_features
4174 # Check whether --with-x-toolkit was given.
4175 if test "${with_x_toolkit+set}" = set; then :
4176 withval=$with_x_toolkit; case "${withval}" in
4177 y | ye | yes ) val=gtk ;;
4178 n | no ) val=no ;;
4179 l | lu | luc | luci | lucid ) val=lucid ;;
4180 a | at | ath | athe | athen | athena ) val=athena ;;
4181 m | mo | mot | moti | motif ) val=motif ;;
4182 g | gt | gtk ) val=gtk ;;
4183 gtk2 ) val=gtk2 ;;
4184 gtk3 ) val=gtk3 ;;
4186 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
4187 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
4188 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
4189 \`athena' and \`lucid' are synonyms." "$LINENO" 5
4191 esac
4192 with_x_toolkit=$val
4198 # Check whether --with-wide-int was given.
4199 if test "${with_wide_int+set}" = set; then :
4200 withval=$with_wide_int;
4201 else
4202 with_wide_int=no
4205 if test "$with_wide_int" = yes; then
4207 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4212 # Check whether --with-xpm was given.
4213 if test "${with_xpm+set}" = set; then :
4214 withval=$with_xpm;
4215 else
4216 with_xpm=$with_features
4220 # Check whether --with-jpeg was given.
4221 if test "${with_jpeg+set}" = set; then :
4222 withval=$with_jpeg;
4223 else
4224 with_jpeg=$with_features
4228 # Check whether --with-tiff was given.
4229 if test "${with_tiff+set}" = set; then :
4230 withval=$with_tiff;
4231 else
4232 with_tiff=$with_features
4236 # Check whether --with-gif was given.
4237 if test "${with_gif+set}" = set; then :
4238 withval=$with_gif;
4239 else
4240 with_gif=$with_features
4244 # Check whether --with-png was given.
4245 if test "${with_png+set}" = set; then :
4246 withval=$with_png;
4247 else
4248 with_png=$with_features
4252 # Check whether --with-rsvg was given.
4253 if test "${with_rsvg+set}" = set; then :
4254 withval=$with_rsvg;
4255 else
4256 with_rsvg=$with_features
4260 # Check whether --with-xml2 was given.
4261 if test "${with_xml2+set}" = set; then :
4262 withval=$with_xml2;
4263 else
4264 with_xml2=$with_features
4268 # Check whether --with-imagemagick was given.
4269 if test "${with_imagemagick+set}" = set; then :
4270 withval=$with_imagemagick;
4271 else
4272 with_imagemagick=$with_features
4277 # Check whether --with-xft was given.
4278 if test "${with_xft+set}" = set; then :
4279 withval=$with_xft;
4280 else
4281 with_xft=$with_features
4285 # Check whether --with-libotf was given.
4286 if test "${with_libotf+set}" = set; then :
4287 withval=$with_libotf;
4288 else
4289 with_libotf=$with_features
4293 # Check whether --with-m17n-flt was given.
4294 if test "${with_m17n_flt+set}" = set; then :
4295 withval=$with_m17n_flt;
4296 else
4297 with_m17n_flt=$with_features
4302 # Check whether --with-toolkit-scroll-bars was given.
4303 if test "${with_toolkit_scroll_bars+set}" = set; then :
4304 withval=$with_toolkit_scroll_bars;
4305 else
4306 with_toolkit_scroll_bars=$with_features
4310 # Check whether --with-xaw3d was given.
4311 if test "${with_xaw3d+set}" = set; then :
4312 withval=$with_xaw3d;
4313 else
4314 with_xaw3d=$with_features
4318 # Check whether --with-xim was given.
4319 if test "${with_xim+set}" = set; then :
4320 withval=$with_xim;
4321 else
4322 with_xim=$with_features
4326 # Check whether --with-ns was given.
4327 if test "${with_ns+set}" = set; then :
4328 withval=$with_ns;
4329 else
4330 with_ns=no
4334 # Check whether --with-w32 was given.
4335 if test "${with_w32+set}" = set; then :
4336 withval=$with_w32;
4337 else
4338 with_w32=no
4343 # Check whether --with-gpm was given.
4344 if test "${with_gpm+set}" = set; then :
4345 withval=$with_gpm;
4346 else
4347 with_gpm=$with_features
4351 # Check whether --with-dbus was given.
4352 if test "${with_dbus+set}" = set; then :
4353 withval=$with_dbus;
4354 else
4355 with_dbus=$with_features
4359 # Check whether --with-gconf was given.
4360 if test "${with_gconf+set}" = set; then :
4361 withval=$with_gconf;
4362 else
4363 with_gconf=$with_features
4367 # Check whether --with-gsettings was given.
4368 if test "${with_gsettings+set}" = set; then :
4369 withval=$with_gsettings;
4370 else
4371 with_gsettings=$with_features
4375 # Check whether --with-selinux was given.
4376 if test "${with_selinux+set}" = set; then :
4377 withval=$with_selinux;
4378 else
4379 with_selinux=$with_features
4383 # Check whether --with-gnutls was given.
4384 if test "${with_gnutls+set}" = set; then :
4385 withval=$with_gnutls;
4386 else
4387 with_gnutls=$with_features
4391 # Check whether --with-zlib was given.
4392 if test "${with_zlib+set}" = set; then :
4393 withval=$with_zlib;
4394 else
4395 with_zlib=$with_features
4400 # Check whether --with-file-notification was given.
4401 if test "${with_file_notification+set}" = set; then :
4402 withval=$with_file_notification; case "${withval}" in
4403 y | ye | yes ) val=yes ;;
4404 n | no ) val=no ;;
4405 g | gf | gfi | gfil | gfile ) val=gfile ;;
4406 i | in | ino | inot | inoti | inotif | inotify ) val=inotify ;;
4407 w | w3 | w32 ) val=w32 ;;
4408 * ) as_fn_error "\`--with-file-notification=$withval' is invalid;
4409 this option's value should be \`yes', \`no', \`gfile', \`inotify' or \`w32'.
4410 \`yes' is a synonym for \`w32' on MS-Windows, for \`no' on Nextstep,
4411 otherwise for the first of \`gfile' or \`inotify' that is usable." "$LINENO" 5
4413 esac
4414 with_file_notification=$val
4416 else
4417 with_file_notification=$with_features
4421 ## For the times when you want to build Emacs but don't have
4422 ## a suitable makeinfo, and can live without the manuals.
4424 # Check whether --with-makeinfo was given.
4425 if test "${with_makeinfo+set}" = set; then :
4426 withval=$with_makeinfo;
4427 else
4428 with_makeinfo=$with_features
4432 ## Makefile.in needs the cache file name.
4435 ## This is an option because I do not know if all info/man support
4436 ## compressed files, nor how to test if they do so.
4438 # Check whether --with-compress-install was given.
4439 if test "${with_compress_install+set}" = set; then :
4440 withval=$with_compress_install;
4441 else
4442 with_compress_install=$with_features
4447 # Check whether --with-pkg-config-prog was given.
4448 if test "${with_pkg_config_prog+set}" = set; then :
4449 withval=$with_pkg_config_prog;
4452 if test "X${with_pkg_config_prog}" != X; then
4453 if test "${with_pkg_config_prog}" != yes; then
4454 PKG_CONFIG="${with_pkg_config_prog}"
4459 # Check whether --with-gameuser was given.
4460 if test "${with_gameuser+set}" = set; then :
4461 withval=$with_gameuser;
4464 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4465 && gameuser="${with_gameuser}"
4466 test "X$gameuser" = X && gameuser=games
4469 # Check whether --with-gnustep-conf was given.
4470 if test "${with_gnustep_conf+set}" = set; then :
4471 withval=$with_gnustep_conf;
4474 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4475 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4476 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4477 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4479 # Check whether --enable-ns-self-contained was given.
4480 if test "${enable_ns_self_contained+set}" = set; then :
4481 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4482 else
4483 EN_NS_SELF_CONTAINED=yes
4487 # Check whether --enable-locallisppath was given.
4488 if test "${enable_locallisppath+set}" = set; then :
4489 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4490 locallisppath=
4491 elif test "${enableval}" != "yes"; then
4492 locallisppath=${enableval}
4497 # Check whether --enable-checking was given.
4498 if test "${enable_checking+set}" = set; then :
4499 enableval=$enable_checking; ac_checking_flags="${enableval}"
4502 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4503 for check in $ac_checking_flags
4505 case $check in
4506 # these set all the flags to specific states
4507 yes) ac_enable_checking=1 ;;
4508 no) ac_enable_checking= ;
4509 ac_gc_check_stringbytes= ;
4510 ac_gc_check_string_overrun= ;
4511 ac_gc_check_string_free_list= ;
4512 ac_xmalloc_overrun= ;
4513 ac_gc_check_cons_list= ;
4514 ac_glyphs_debug= ;;
4515 all) ac_enable_checking=1 ;
4516 ac_gc_check_stringbytes=1 ;
4517 ac_gc_check_string_overrun=1 ;
4518 ac_gc_check_string_free_list=1 ;
4519 ac_xmalloc_overrun=1 ;
4520 ac_gc_check_cons_list=1 ;
4521 ac_glyphs_debug=1 ;;
4522 # these enable particular checks
4523 stringbytes) ac_gc_check_stringbytes=1 ;;
4524 stringoverrun) ac_gc_check_string_overrun=1 ;;
4525 stringfreelist) ac_gc_check_string_free_list=1 ;;
4526 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4527 conslist) ac_gc_check_cons_list=1 ;;
4528 glyphs) ac_glyphs_debug=1 ;;
4529 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4530 esac
4531 done
4532 IFS="$ac_save_IFS"
4534 if test x$ac_enable_checking != x ; then
4536 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4539 if test x$ac_gc_check_stringbytes != x ; then
4541 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4544 if test x$ac_gc_check_string_overrun != x ; then
4546 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4549 if test x$ac_gc_check_string_free_list != x ; then
4551 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4554 if test x$ac_xmalloc_overrun != x ; then
4556 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4559 if test x$ac_gc_check_cons_list != x ; then
4561 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4564 if test x$ac_glyphs_debug != x ; then
4566 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4570 # Check whether --enable-check-lisp-object-type was given.
4571 if test "${enable_check_lisp_object_type+set}" = set; then :
4572 enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4574 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4581 # Check whether --enable-profiling was given.
4582 if test "${enable_profiling+set}" = set; then :
4583 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4586 if test x$ac_enable_profiling != x ; then
4587 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4588 else
4589 PROFILING_CFLAGS=
4593 # Check whether --enable-autodepend was given.
4594 if test "${enable_autodepend+set}" = set; then :
4595 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4596 else
4597 ac_enable_autodepend=yes
4601 # Check whether --enable-gtk-deprecation-warnings was given.
4602 if test "${enable_gtk_deprecation_warnings+set}" = set; then :
4603 enableval=$enable_gtk_deprecation_warnings; ac_enable_gtk_deprecation_warnings="${enableval}"
4607 #### Make srcdir absolute, if it isn't already. It's important to
4608 #### avoid running the file name through pwd unnecessarily, since pwd can
4609 #### give you automounter prefixes, which can go away. We do all this
4610 #### so Emacs can find its files when run uninstalled.
4611 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4612 unset CDPATH
4613 case "${srcdir}" in
4614 [\\/]* | ?:[\\/]*) ;;
4616 ## We may be able to use the $PWD environment variable to make this
4617 ## absolute. But sometimes PWD is inaccurate.
4618 ## Note: we used to use $PWD at the end instead of `pwd`,
4619 ## but that tested only for a well-formed and valid PWD,
4620 ## it did not object when PWD was well-formed and valid but just wrong.
4621 if test ".$PWD" != "." && test ".`(cd "$PWD" ; sh -c pwd)`" = ".`pwd`" ;
4622 then
4623 srcdir="$PWD"
4624 else
4625 srcdir=`(cd "$srcdir"; pwd)`
4628 * ) srcdir=`(cd "$srcdir"; pwd)` ;;
4629 esac
4631 #### When building with MinGW inside the MSYS tree, 'pwd' produces
4632 #### directories relative to the root of the MSYS tree,
4633 #### e.g. '/home/user/foo' instead of '/d/MSYS/home/user/foo'. When
4634 #### such a value of srcdir is written to the top-level Makefile, it
4635 #### gets propagated to src/epaths.h, and that causes temacs to fail,
4636 #### because, being a MinGW program that knows nothing of MSYS root
4637 #### substitution, it cannot find the data directory. "pwd -W"
4638 #### produces Windows-style 'd:/foo/bar' absolute directory names, so
4639 #### we use it here to countermand that lossage.
4640 test "$MSYSTEM" = "MINGW32" && srcdir=`(cd "$srcdir"; pwd -W | sed -e 's,^\([A-Za-z]\):,/\1,')`
4642 ### Canonicalize the configuration name.
4644 # Make sure we can run config.sub.
4645 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4646 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4649 $as_echo_n "checking build system type... " >&6; }
4650 if test "${ac_cv_build+set}" = set; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 ac_build_alias=$build_alias
4654 test "x$ac_build_alias" = x &&
4655 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4656 test "x$ac_build_alias" = x &&
4657 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4658 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4659 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4663 $as_echo "$ac_cv_build" >&6; }
4664 case $ac_cv_build in
4665 *-*-*) ;;
4666 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4667 esac
4668 build=$ac_cv_build
4669 ac_save_IFS=$IFS; IFS='-'
4670 set x $ac_cv_build
4671 shift
4672 build_cpu=$1
4673 build_vendor=$2
4674 shift; shift
4675 # Remember, the first character of IFS is used to create $*,
4676 # except with old shells:
4677 build_os=$*
4678 IFS=$ac_save_IFS
4679 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4683 $as_echo_n "checking host system type... " >&6; }
4684 if test "${ac_cv_host+set}" = set; then :
4685 $as_echo_n "(cached) " >&6
4686 else
4687 if test "x$host_alias" = x; then
4688 ac_cv_host=$ac_cv_build
4689 else
4690 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4691 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4696 $as_echo "$ac_cv_host" >&6; }
4697 case $ac_cv_host in
4698 *-*-*) ;;
4699 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4700 esac
4701 host=$ac_cv_host
4702 ac_save_IFS=$IFS; IFS='-'
4703 set x $ac_cv_host
4704 shift
4705 host_cpu=$1
4706 host_vendor=$2
4707 shift; shift
4708 # Remember, the first character of IFS is used to create $*,
4709 # except with old shells:
4710 host_os=$*
4711 IFS=$ac_save_IFS
4712 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4715 canonical=$host
4716 configuration=${host_alias-${build_alias-$host}}
4720 ### If you add support for a new configuration, add code to this
4721 ### switch statement to recognize your configuration name and select
4722 ### the appropriate operating system file.
4724 ### You would hope that you could choose an s/*.h
4725 ### file based on the operating system portion. However, it turns out
4726 ### that each s/*.h file is pretty manufacturer-specific.
4727 ### So we basically have to have a special case for each
4728 ### configuration name.
4730 ### As far as handling version numbers on operating systems is
4731 ### concerned, make sure things will fail in a fixable way. If
4732 ### /etc/MACHINES doesn't say anything about version numbers, be
4733 ### prepared to handle anything reasonably. If version numbers
4734 ### matter, be sure /etc/MACHINES says something about it.
4736 opsys='' unported=no
4737 case "${canonical}" in
4739 ## GNU/Linux and similar ports
4740 *-*-linux* )
4741 opsys=gnu-linux
4744 ## FreeBSD ports
4745 *-*-freebsd* )
4746 opsys=freebsd
4749 ## DragonFly ports
4750 *-*-dragonfly* )
4751 opsys=dragonfly
4754 ## FreeBSD kernel + glibc based userland
4755 *-*-kfreebsd*gnu* )
4756 opsys=gnu-kfreebsd
4759 ## NetBSD ports
4760 *-*-netbsd* )
4761 opsys=netbsd
4764 ## OpenBSD ports
4765 *-*-openbsd* )
4766 opsys=openbsd
4769 ## Apple Darwin / Mac OS X
4770 *-apple-darwin* )
4771 case "${canonical}" in
4772 i[3456]86-* ) ;;
4773 powerpc-* ) ;;
4774 x86_64-* ) ;;
4775 * ) unported=yes ;;
4776 esac
4777 opsys=darwin
4778 ## Use fink packages if available.
4779 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4780 ## if test -d /sw/include && test -d /sw/lib; then
4781 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4782 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4783 ## fi
4786 ## Cygwin ports
4787 *-*-cygwin )
4788 opsys=cygwin
4791 ## HP 9000 series 700 and 800, running HP/UX
4792 hppa*-hp-hpux10.2* )
4793 opsys=hpux10-20
4795 hppa*-hp-hpux1[1-9]* )
4796 opsys=hpux11
4797 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4800 ## IBM machines
4801 rs6000-ibm-aix4.[23]* )
4802 opsys=aix4-2
4804 powerpc-ibm-aix4.[23]* )
4805 opsys=aix4-2
4807 rs6000-ibm-aix[56]* )
4808 opsys=aix4-2
4810 powerpc-ibm-aix[56]* )
4811 opsys=aix4-2
4814 ## Silicon Graphics machines
4815 ## Iris 4D
4816 mips-sgi-irix6.5 )
4817 opsys=irix6-5
4818 # Without defining _LANGUAGE_C, things get masked out in the headers
4819 # so that, for instance, grepping for `free' in stdlib.h fails and
4820 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4821 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4824 ## Suns
4825 *-sun-solaris* \
4826 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4827 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4828 case "${canonical}" in
4829 i[3456]86-*-* ) ;;
4830 amd64-*-*|x86_64-*-*) ;;
4831 sparc* ) ;;
4832 * ) unported=yes ;;
4833 esac
4834 case "${canonical}" in
4835 *-sunos5.6* | *-solaris2.6* )
4836 opsys=sol2-6
4837 RANLIB="ar -ts"
4839 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4840 opsys=sol2-6
4841 emacs_check_sunpro_c=yes
4843 *-sunos5* | *-solaris* )
4844 opsys=sol2-10
4845 emacs_check_sunpro_c=yes
4847 esac
4848 ## Watch out for a compiler that we know will not work.
4849 case "${canonical}" in
4850 *-solaris* | *-sunos5* )
4851 if [ "x$CC" = x/usr/ucb/cc ]; then
4852 ## /usr/ucb/cc doesn't work;
4853 ## we should find some other compiler that does work.
4854 unset CC
4857 *) ;;
4858 esac
4861 ## Intel 386 machines where we don't care about the manufacturer.
4862 i[3456]86-*-* )
4863 case "${canonical}" in
4864 *-darwin* ) opsys=darwin ;;
4865 *-mingw32 )
4866 opsys=mingw32
4867 # MinGW overrides and adds some system headers in nt/inc.
4868 GCC_TEST_OPTIONS="-I $srcdir/nt/inc"
4870 *-sysv4.2uw* ) opsys=unixware ;;
4871 *-sysv5uw* ) opsys=unixware ;;
4872 *-sysv5OpenUNIX* ) opsys=unixware ;;
4873 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4874 esac
4878 unported=yes
4880 esac
4882 ### If the code above didn't choose an operating system, just choose
4883 ### an operating system based on the configuration name. You really
4884 ### only want to use this when you have no idea what the right
4885 ### operating system is; if you know what operating systems a machine
4886 ### runs, it's cleaner to make it explicit in the case statement
4887 ### above.
4888 if test x"${opsys}" = x; then
4889 case "${canonical}" in
4890 *-gnu* ) opsys=gnu ;;
4892 unported=yes
4894 esac
4899 if test $unported = yes; then
4900 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4901 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4905 #### Choose a compiler.
4907 ac_ext=c
4908 ac_cpp='$CPP $CPPFLAGS'
4909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4912 if test -n "$ac_tool_prefix"; then
4913 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4914 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4916 $as_echo_n "checking for $ac_word... " >&6; }
4917 if test "${ac_cv_prog_CC+set}" = set; then :
4918 $as_echo_n "(cached) " >&6
4919 else
4920 if test -n "$CC"; then
4921 ac_cv_prog_CC="$CC" # Let the user override the test.
4922 else
4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 for as_dir in $PATH
4926 IFS=$as_save_IFS
4927 test -z "$as_dir" && as_dir=.
4928 for ac_exec_ext in '' $ac_executable_extensions; do
4929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4930 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4932 break 2
4934 done
4935 done
4936 IFS=$as_save_IFS
4940 CC=$ac_cv_prog_CC
4941 if test -n "$CC"; then
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4943 $as_echo "$CC" >&6; }
4944 else
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4946 $as_echo "no" >&6; }
4951 if test -z "$ac_cv_prog_CC"; then
4952 ac_ct_CC=$CC
4953 # Extract the first word of "gcc", so it can be a program name with args.
4954 set dummy gcc; ac_word=$2
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4956 $as_echo_n "checking for $ac_word... " >&6; }
4957 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4958 $as_echo_n "(cached) " >&6
4959 else
4960 if test -n "$ac_ct_CC"; then
4961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4962 else
4963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964 for as_dir in $PATH
4966 IFS=$as_save_IFS
4967 test -z "$as_dir" && as_dir=.
4968 for ac_exec_ext in '' $ac_executable_extensions; do
4969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4970 ac_cv_prog_ac_ct_CC="gcc"
4971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4972 break 2
4974 done
4975 done
4976 IFS=$as_save_IFS
4980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4981 if test -n "$ac_ct_CC"; then
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4983 $as_echo "$ac_ct_CC" >&6; }
4984 else
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986 $as_echo "no" >&6; }
4989 if test "x$ac_ct_CC" = x; then
4990 CC=""
4991 else
4992 case $cross_compiling:$ac_tool_warned in
4993 yes:)
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4996 ac_tool_warned=yes ;;
4997 esac
4998 CC=$ac_ct_CC
5000 else
5001 CC="$ac_cv_prog_CC"
5004 if test -z "$CC"; then
5005 if test -n "$ac_tool_prefix"; then
5006 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5007 set dummy ${ac_tool_prefix}cc; ac_word=$2
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5009 $as_echo_n "checking for $ac_word... " >&6; }
5010 if test "${ac_cv_prog_CC+set}" = set; then :
5011 $as_echo_n "(cached) " >&6
5012 else
5013 if test -n "$CC"; then
5014 ac_cv_prog_CC="$CC" # Let the user override the test.
5015 else
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 for as_dir in $PATH
5019 IFS=$as_save_IFS
5020 test -z "$as_dir" && as_dir=.
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5023 ac_cv_prog_CC="${ac_tool_prefix}cc"
5024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5025 break 2
5027 done
5028 done
5029 IFS=$as_save_IFS
5033 CC=$ac_cv_prog_CC
5034 if test -n "$CC"; then
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5036 $as_echo "$CC" >&6; }
5037 else
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039 $as_echo "no" >&6; }
5045 if test -z "$CC"; then
5046 # Extract the first word of "cc", so it can be a program name with args.
5047 set dummy cc; ac_word=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if test "${ac_cv_prog_CC+set}" = set; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 if test -n "$CC"; then
5054 ac_cv_prog_CC="$CC" # Let the user override the test.
5055 else
5056 ac_prog_rejected=no
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH
5060 IFS=$as_save_IFS
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5064 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5065 ac_prog_rejected=yes
5066 continue
5068 ac_cv_prog_CC="cc"
5069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 break 2
5072 done
5073 done
5074 IFS=$as_save_IFS
5076 if test $ac_prog_rejected = yes; then
5077 # We found a bogon in the path, so make sure we never use it.
5078 set dummy $ac_cv_prog_CC
5079 shift
5080 if test $# != 0; then
5081 # We chose a different compiler from the bogus one.
5082 # However, it has the same basename, so the bogon will be chosen
5083 # first if we set CC to just the basename; use the full file name.
5084 shift
5085 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5090 CC=$ac_cv_prog_CC
5091 if test -n "$CC"; then
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5093 $as_echo "$CC" >&6; }
5094 else
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096 $as_echo "no" >&6; }
5101 if test -z "$CC"; then
5102 if test -n "$ac_tool_prefix"; then
5103 for ac_prog in cl.exe
5105 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5106 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108 $as_echo_n "checking for $ac_word... " >&6; }
5109 if test "${ac_cv_prog_CC+set}" = set; then :
5110 $as_echo_n "(cached) " >&6
5111 else
5112 if test -n "$CC"; then
5113 ac_cv_prog_CC="$CC" # Let the user override the test.
5114 else
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 break 2
5126 done
5127 done
5128 IFS=$as_save_IFS
5132 CC=$ac_cv_prog_CC
5133 if test -n "$CC"; then
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5135 $as_echo "$CC" >&6; }
5136 else
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138 $as_echo "no" >&6; }
5142 test -n "$CC" && break
5143 done
5145 if test -z "$CC"; then
5146 ac_ct_CC=$CC
5147 for ac_prog in cl.exe
5149 # Extract the first word of "$ac_prog", so it can be a program name with args.
5150 set dummy $ac_prog; ac_word=$2
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152 $as_echo_n "checking for $ac_word... " >&6; }
5153 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5154 $as_echo_n "(cached) " >&6
5155 else
5156 if test -n "$ac_ct_CC"; then
5157 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5158 else
5159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 for as_dir in $PATH
5162 IFS=$as_save_IFS
5163 test -z "$as_dir" && as_dir=.
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5166 ac_cv_prog_ac_ct_CC="$ac_prog"
5167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5168 break 2
5170 done
5171 done
5172 IFS=$as_save_IFS
5176 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5177 if test -n "$ac_ct_CC"; then
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5179 $as_echo "$ac_ct_CC" >&6; }
5180 else
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182 $as_echo "no" >&6; }
5186 test -n "$ac_ct_CC" && break
5187 done
5189 if test "x$ac_ct_CC" = x; then
5190 CC=""
5191 else
5192 case $cross_compiling:$ac_tool_warned in
5193 yes:)
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5196 ac_tool_warned=yes ;;
5197 esac
5198 CC=$ac_ct_CC
5205 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5207 as_fn_error "no acceptable C compiler found in \$PATH
5208 See \`config.log' for more details." "$LINENO" 5; }
5210 # Provide some information about the compiler.
5211 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5212 set X $ac_compile
5213 ac_compiler=$2
5214 for ac_option in --version -v -V -qversion; do
5215 { { ac_try="$ac_compiler $ac_option >&5"
5216 case "(($ac_try" in
5217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5218 *) ac_try_echo=$ac_try;;
5219 esac
5220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5221 $as_echo "$ac_try_echo"; } >&5
5222 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5223 ac_status=$?
5224 if test -s conftest.err; then
5225 sed '10a\
5226 ... rest of stderr output deleted ...
5227 10q' conftest.err >conftest.er1
5228 cat conftest.er1 >&5
5230 rm -f conftest.er1 conftest.err
5231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5232 test $ac_status = 0; }
5233 done
5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h. */
5239 main ()
5243 return 0;
5245 _ACEOF
5246 ac_clean_files_save=$ac_clean_files
5247 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5248 # Try to create an executable without -o first, disregard a.out.
5249 # It will help us diagnose broken compilers, and finding out an intuition
5250 # of exeext.
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5252 $as_echo_n "checking whether the C compiler works... " >&6; }
5253 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5255 # The possible output files:
5256 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5258 ac_rmfiles=
5259 for ac_file in $ac_files
5261 case $ac_file in
5262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5263 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5264 esac
5265 done
5266 rm -f $ac_rmfiles
5268 if { { ac_try="$ac_link_default"
5269 case "(($ac_try" in
5270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5271 *) ac_try_echo=$ac_try;;
5272 esac
5273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5274 $as_echo "$ac_try_echo"; } >&5
5275 (eval "$ac_link_default") 2>&5
5276 ac_status=$?
5277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5278 test $ac_status = 0; }; then :
5279 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5280 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5281 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5282 # so that the user can short-circuit this test for compilers unknown to
5283 # Autoconf.
5284 for ac_file in $ac_files ''
5286 test -f "$ac_file" || continue
5287 case $ac_file in
5288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5290 [ab].out )
5291 # We found the default executable, but exeext='' is most
5292 # certainly right.
5293 break;;
5294 *.* )
5295 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5296 then :; else
5297 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5299 # We set ac_cv_exeext here because the later test for it is not
5300 # safe: cross compilers may not add the suffix if given an `-o'
5301 # argument, so we may need to know it at that point already.
5302 # Even if this section looks crufty: it has the advantage of
5303 # actually working.
5304 break;;
5306 break;;
5307 esac
5308 done
5309 test "$ac_cv_exeext" = no && ac_cv_exeext=
5311 else
5312 ac_file=''
5314 if test -z "$ac_file"; then :
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316 $as_echo "no" >&6; }
5317 $as_echo "$as_me: failed program was:" >&5
5318 sed 's/^/| /' conftest.$ac_ext >&5
5320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5322 { as_fn_set_status 77
5323 as_fn_error "C compiler cannot create executables
5324 See \`config.log' for more details." "$LINENO" 5; }; }
5325 else
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5327 $as_echo "yes" >&6; }
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5330 $as_echo_n "checking for C compiler default output file name... " >&6; }
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5332 $as_echo "$ac_file" >&6; }
5333 ac_exeext=$ac_cv_exeext
5335 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5336 ac_clean_files=$ac_clean_files_save
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5338 $as_echo_n "checking for suffix of executables... " >&6; }
5339 if { { ac_try="$ac_link"
5340 case "(($ac_try" in
5341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5342 *) ac_try_echo=$ac_try;;
5343 esac
5344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5345 $as_echo "$ac_try_echo"; } >&5
5346 (eval "$ac_link") 2>&5
5347 ac_status=$?
5348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5349 test $ac_status = 0; }; then :
5350 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5351 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5352 # work properly (i.e., refer to `conftest.exe'), while it won't with
5353 # `rm'.
5354 for ac_file in conftest.exe conftest conftest.*; do
5355 test -f "$ac_file" || continue
5356 case $ac_file in
5357 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5358 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5359 break;;
5360 * ) break;;
5361 esac
5362 done
5363 else
5364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5366 as_fn_error "cannot compute suffix of executables: cannot compile and link
5367 See \`config.log' for more details." "$LINENO" 5; }
5369 rm -f conftest conftest$ac_cv_exeext
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5371 $as_echo "$ac_cv_exeext" >&6; }
5373 rm -f conftest.$ac_ext
5374 EXEEXT=$ac_cv_exeext
5375 ac_exeext=$EXEEXT
5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h. */
5378 #include <stdio.h>
5380 main ()
5382 FILE *f = fopen ("conftest.out", "w");
5383 return ferror (f) || fclose (f) != 0;
5386 return 0;
5388 _ACEOF
5389 ac_clean_files="$ac_clean_files conftest.out"
5390 # Check that the compiler produces executables we can run. If not, either
5391 # the compiler is broken, or we cross compile.
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5393 $as_echo_n "checking whether we are cross compiling... " >&6; }
5394 if test "$cross_compiling" != yes; then
5395 { { ac_try="$ac_link"
5396 case "(($ac_try" in
5397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398 *) ac_try_echo=$ac_try;;
5399 esac
5400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5401 $as_echo "$ac_try_echo"; } >&5
5402 (eval "$ac_link") 2>&5
5403 ac_status=$?
5404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5405 test $ac_status = 0; }
5406 if { ac_try='./conftest$ac_cv_exeext'
5407 { { case "(($ac_try" in
5408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5409 *) ac_try_echo=$ac_try;;
5410 esac
5411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5412 $as_echo "$ac_try_echo"; } >&5
5413 (eval "$ac_try") 2>&5
5414 ac_status=$?
5415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5416 test $ac_status = 0; }; }; then
5417 cross_compiling=no
5418 else
5419 if test "$cross_compiling" = maybe; then
5420 cross_compiling=yes
5421 else
5422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5424 as_fn_error "cannot run C compiled programs.
5425 If you meant to cross compile, use \`--host'.
5426 See \`config.log' for more details." "$LINENO" 5; }
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5431 $as_echo "$cross_compiling" >&6; }
5433 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5434 ac_clean_files=$ac_clean_files_save
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5436 $as_echo_n "checking for suffix of object files... " >&6; }
5437 if test "${ac_cv_objext+set}" = set; then :
5438 $as_echo_n "(cached) " >&6
5439 else
5440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5444 main ()
5448 return 0;
5450 _ACEOF
5451 rm -f conftest.o conftest.obj
5452 if { { ac_try="$ac_compile"
5453 case "(($ac_try" in
5454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5455 *) ac_try_echo=$ac_try;;
5456 esac
5457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5458 $as_echo "$ac_try_echo"; } >&5
5459 (eval "$ac_compile") 2>&5
5460 ac_status=$?
5461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5462 test $ac_status = 0; }; then :
5463 for ac_file in conftest.o conftest.obj conftest.*; do
5464 test -f "$ac_file" || continue;
5465 case $ac_file in
5466 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5467 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5468 break;;
5469 esac
5470 done
5471 else
5472 $as_echo "$as_me: failed program was:" >&5
5473 sed 's/^/| /' conftest.$ac_ext >&5
5475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5477 as_fn_error "cannot compute suffix of object files: cannot compile
5478 See \`config.log' for more details." "$LINENO" 5; }
5480 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5483 $as_echo "$ac_cv_objext" >&6; }
5484 OBJEXT=$ac_cv_objext
5485 ac_objext=$OBJEXT
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5487 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5488 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5489 $as_echo_n "(cached) " >&6
5490 else
5491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492 /* end confdefs.h. */
5495 main ()
5497 #ifndef __GNUC__
5498 choke me
5499 #endif
5502 return 0;
5504 _ACEOF
5505 if ac_fn_c_try_compile "$LINENO"; then :
5506 ac_compiler_gnu=yes
5507 else
5508 ac_compiler_gnu=no
5510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5511 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5515 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5516 if test $ac_compiler_gnu = yes; then
5517 GCC=yes
5518 else
5519 GCC=
5521 ac_test_CFLAGS=${CFLAGS+set}
5522 ac_save_CFLAGS=$CFLAGS
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5524 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5525 if test "${ac_cv_prog_cc_g+set}" = set; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528 ac_save_c_werror_flag=$ac_c_werror_flag
5529 ac_c_werror_flag=yes
5530 ac_cv_prog_cc_g=no
5531 CFLAGS="-g"
5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5536 main ()
5540 return 0;
5542 _ACEOF
5543 if ac_fn_c_try_compile "$LINENO"; then :
5544 ac_cv_prog_cc_g=yes
5545 else
5546 CFLAGS=""
5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548 /* end confdefs.h. */
5551 main ()
5555 return 0;
5557 _ACEOF
5558 if ac_fn_c_try_compile "$LINENO"; then :
5560 else
5561 ac_c_werror_flag=$ac_save_c_werror_flag
5562 CFLAGS="-g"
5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564 /* end confdefs.h. */
5567 main ()
5571 return 0;
5573 _ACEOF
5574 if ac_fn_c_try_compile "$LINENO"; then :
5575 ac_cv_prog_cc_g=yes
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582 ac_c_werror_flag=$ac_save_c_werror_flag
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5585 $as_echo "$ac_cv_prog_cc_g" >&6; }
5586 if test "$ac_test_CFLAGS" = set; then
5587 CFLAGS=$ac_save_CFLAGS
5588 elif test $ac_cv_prog_cc_g = yes; then
5589 if test "$GCC" = yes; then
5590 CFLAGS="-g -O2"
5591 else
5592 CFLAGS="-g"
5594 else
5595 if test "$GCC" = yes; then
5596 CFLAGS="-O2"
5597 else
5598 CFLAGS=
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5602 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5603 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5604 $as_echo_n "(cached) " >&6
5605 else
5606 ac_cv_prog_cc_c89=no
5607 ac_save_CC=$CC
5608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5609 /* end confdefs.h. */
5610 #include <stdarg.h>
5611 #include <stdio.h>
5612 #include <sys/types.h>
5613 #include <sys/stat.h>
5614 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5615 struct buf { int x; };
5616 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5617 static char *e (p, i)
5618 char **p;
5619 int i;
5621 return p[i];
5623 static char *f (char * (*g) (char **, int), char **p, ...)
5625 char *s;
5626 va_list v;
5627 va_start (v,p);
5628 s = g (p, va_arg (v,int));
5629 va_end (v);
5630 return s;
5633 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5634 function prototypes and stuff, but not '\xHH' hex character constants.
5635 These don't provoke an error unfortunately, instead are silently treated
5636 as 'x'. The following induces an error, until -std is added to get
5637 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5638 array size at least. It's necessary to write '\x00'==0 to get something
5639 that's true only with -std. */
5640 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5642 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5643 inside strings and character constants. */
5644 #define FOO(x) 'x'
5645 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5647 int test (int i, double x);
5648 struct s1 {int (*f) (int a);};
5649 struct s2 {int (*f) (double a);};
5650 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5651 int argc;
5652 char **argv;
5654 main ()
5656 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5658 return 0;
5660 _ACEOF
5661 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5662 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5664 CC="$ac_save_CC $ac_arg"
5665 if ac_fn_c_try_compile "$LINENO"; then :
5666 ac_cv_prog_cc_c89=$ac_arg
5668 rm -f core conftest.err conftest.$ac_objext
5669 test "x$ac_cv_prog_cc_c89" != "xno" && break
5670 done
5671 rm -f conftest.$ac_ext
5672 CC=$ac_save_CC
5675 # AC_CACHE_VAL
5676 case "x$ac_cv_prog_cc_c89" in
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5679 $as_echo "none needed" >&6; } ;;
5680 xno)
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5682 $as_echo "unsupported" >&6; } ;;
5684 CC="$CC $ac_cv_prog_cc_c89"
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5686 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5687 esac
5688 if test "x$ac_cv_prog_cc_c89" != xno; then :
5692 ac_ext=c
5693 ac_cpp='$CPP $CPPFLAGS'
5694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5697 DEPDIR="${am__leading_dot}deps"
5699 ac_config_commands="$ac_config_commands depfiles"
5702 am_make=${MAKE-make}
5703 cat > confinc << 'END'
5704 am__doit:
5705 @echo this is the am__doit target
5706 .PHONY: am__doit
5708 # If we don't find an include directive, just comment out the code.
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5710 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5711 am__include="#"
5712 am__quote=
5713 _am_result=none
5714 # First try GNU make style include.
5715 echo "include confinc" > confmf
5716 # Ignore all kinds of additional output from `make'.
5717 case `$am_make -s -f confmf 2> /dev/null` in #(
5718 *the\ am__doit\ target*)
5719 am__include=include
5720 am__quote=
5721 _am_result=GNU
5723 esac
5724 # Now try BSD make style include.
5725 if test "$am__include" = "#"; then
5726 echo '.include "confinc"' > confmf
5727 case `$am_make -s -f confmf 2> /dev/null` in #(
5728 *the\ am__doit\ target*)
5729 am__include=.include
5730 am__quote="\""
5731 _am_result=BSD
5733 esac
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5738 $as_echo "$_am_result" >&6; }
5739 rm -f confinc confmf
5741 # Check whether --enable-dependency-tracking was given.
5742 if test "${enable_dependency_tracking+set}" = set; then :
5743 enableval=$enable_dependency_tracking;
5746 if test "x$enable_dependency_tracking" != xno; then
5747 am_depcomp="$ac_aux_dir/depcomp"
5748 AMDEPBACKSLASH='\'
5750 if test "x$enable_dependency_tracking" != xno; then
5751 AMDEP_TRUE=
5752 AMDEP_FALSE='#'
5753 else
5754 AMDEP_TRUE='#'
5755 AMDEP_FALSE=
5760 depcc="$CC" am_compiler_list=
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5763 $as_echo_n "checking dependency style of $depcc... " >&6; }
5764 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5765 $as_echo_n "(cached) " >&6
5766 else
5767 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5768 # We make a subdir and do the tests there. Otherwise we can end up
5769 # making bogus files that we don't know about and never remove. For
5770 # instance it was reported that on HP-UX the gcc test will end up
5771 # making a dummy file named `D' -- because `-MD' means `put the output
5772 # in D'.
5773 mkdir conftest.dir
5774 # Copy depcomp to subdir because otherwise we won't find it if we're
5775 # using a relative directory.
5776 cp "$am_depcomp" conftest.dir
5777 cd conftest.dir
5778 # We will build objects and dependencies in a subdirectory because
5779 # it helps to detect inapplicable dependency modes. For instance
5780 # both Tru64's cc and ICC support -MD to output dependencies as a
5781 # side effect of compilation, but ICC will put the dependencies in
5782 # the current directory while Tru64 will put them in the object
5783 # directory.
5784 mkdir sub
5786 am_cv_CC_dependencies_compiler_type=none
5787 if test "$am_compiler_list" = ""; then
5788 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5790 am__universal=false
5791 case " $depcc " in #(
5792 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5793 esac
5795 for depmode in $am_compiler_list; do
5796 # Setup a source with many dependencies, because some compilers
5797 # like to wrap large dependency lists on column 80 (with \), and
5798 # we should not choose a depcomp mode which is confused by this.
5800 # We need to recreate these files for each test, as the compiler may
5801 # overwrite some of them when testing with obscure command lines.
5802 # This happens at least with the AIX C compiler.
5803 : > sub/conftest.c
5804 for i in 1 2 3 4 5 6; do
5805 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5806 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5807 # Solaris 8's {/usr,}/bin/sh.
5808 touch sub/conftst$i.h
5809 done
5810 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5812 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5813 # mode. It turns out that the SunPro C++ compiler does not properly
5814 # handle `-M -o', and we need to detect this. Also, some Intel
5815 # versions had trouble with output in subdirs
5816 am__obj=sub/conftest.${OBJEXT-o}
5817 am__minus_obj="-o $am__obj"
5818 case $depmode in
5819 gcc)
5820 # This depmode causes a compiler race in universal mode.
5821 test "$am__universal" = false || continue
5823 nosideeffect)
5824 # after this tag, mechanisms are not by side-effect, so they'll
5825 # only be used when explicitly requested
5826 if test "x$enable_dependency_tracking" = xyes; then
5827 continue
5828 else
5829 break
5832 msvisualcpp | msvcmsys)
5833 # This compiler won't grok `-c -o', but also, the minuso test has
5834 # not run yet. These depmodes are late enough in the game, and
5835 # so weak that their functioning should not be impacted.
5836 am__obj=conftest.${OBJEXT-o}
5837 am__minus_obj=
5839 none) break ;;
5840 esac
5841 if depmode=$depmode \
5842 source=sub/conftest.c object=$am__obj \
5843 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5844 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5845 >/dev/null 2>conftest.err &&
5846 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5847 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5848 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5849 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5850 # icc doesn't choke on unknown options, it will just issue warnings
5851 # or remarks (even with -Werror). So we grep stderr for any message
5852 # that says an option was ignored or not supported.
5853 # When given -MP, icc 7.0 and 7.1 complain thusly:
5854 # icc: Command line warning: ignoring option '-M'; no argument required
5855 # The diagnosis changed in icc 8.0:
5856 # icc: Command line remark: option '-MP' not supported
5857 if (grep 'ignoring option' conftest.err ||
5858 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5859 am_cv_CC_dependencies_compiler_type=$depmode
5860 break
5863 done
5865 cd ..
5866 rm -rf conftest.dir
5867 else
5868 am_cv_CC_dependencies_compiler_type=none
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5873 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5874 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5877 test "x$enable_dependency_tracking" != xno \
5878 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5879 am__fastdepCC_TRUE=
5880 am__fastdepCC_FALSE='#'
5881 else
5882 am__fastdepCC_TRUE='#'
5883 am__fastdepCC_FALSE=
5887 if test "x$CC" != xcc; then
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5889 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5890 else
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5892 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5894 set dummy $CC; ac_cc=`$as_echo "$2" |
5895 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5896 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5897 $as_echo_n "(cached) " >&6
5898 else
5899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5900 /* end confdefs.h. */
5903 main ()
5907 return 0;
5909 _ACEOF
5910 # Make sure it works both with $CC and with simple cc.
5911 # We do the test twice because some compilers refuse to overwrite an
5912 # existing .o file with -o, though they will create one.
5913 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5914 rm -f conftest2.*
5915 if { { case "(($ac_try" in
5916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917 *) ac_try_echo=$ac_try;;
5918 esac
5919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5920 $as_echo "$ac_try_echo"; } >&5
5921 (eval "$ac_try") 2>&5
5922 ac_status=$?
5923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5924 test $ac_status = 0; } &&
5925 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5927 *) ac_try_echo=$ac_try;;
5928 esac
5929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5930 $as_echo "$ac_try_echo"; } >&5
5931 (eval "$ac_try") 2>&5
5932 ac_status=$?
5933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5934 test $ac_status = 0; };
5935 then
5936 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5937 if test "x$CC" != xcc; then
5938 # Test first that cc exists at all.
5939 if { ac_try='cc -c conftest.$ac_ext >&5'
5940 { { case "(($ac_try" in
5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942 *) ac_try_echo=$ac_try;;
5943 esac
5944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5945 $as_echo "$ac_try_echo"; } >&5
5946 (eval "$ac_try") 2>&5
5947 ac_status=$?
5948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5949 test $ac_status = 0; }; }; then
5950 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5951 rm -f conftest2.*
5952 if { { case "(($ac_try" in
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5955 esac
5956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5957 $as_echo "$ac_try_echo"; } >&5
5958 (eval "$ac_try") 2>&5
5959 ac_status=$?
5960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5961 test $ac_status = 0; } &&
5962 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5965 esac
5966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5967 $as_echo "$ac_try_echo"; } >&5
5968 (eval "$ac_try") 2>&5
5969 ac_status=$?
5970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5971 test $ac_status = 0; };
5972 then
5973 # cc works too.
5975 else
5976 # cc exists but doesn't like -o.
5977 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5981 else
5982 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5984 rm -f core conftest*
5987 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5989 $as_echo "yes" >&6; }
5990 else
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5992 $as_echo "no" >&6; }
5994 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5998 # FIXME: we rely on the cache variable name because
5999 # there is no other way.
6000 set dummy $CC
6001 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6002 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6003 if test "$am_t" != yes; then
6004 # Losing compiler, so override with the script.
6005 # FIXME: It is wrong to rewrite CC.
6006 # But if we don't then we get into trouble of one sort or another.
6007 # A longer-term fix would be to have automake use am__CC in this case,
6008 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6009 CC="$am_aux_dir/compile $CC"
6014 if test x$GCC = xyes; then
6015 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6016 else
6017 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6020 if test "x$opsys" = "xmingw32"; then
6021 BUILDING_FOR_WINDOWSNT_TRUE=
6022 BUILDING_FOR_WINDOWSNT_FALSE='#'
6023 else
6024 BUILDING_FOR_WINDOWSNT_TRUE='#'
6025 BUILDING_FOR_WINDOWSNT_FALSE=
6029 # Avoid gnulib's tests for HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW,
6030 # as we don't use them.
6032 # Avoid gnulib's threadlib module, as we do threads our own way.
6035 # Initialize gnulib right after choosing the compiler.
6037 ac_ext=c
6038 ac_cpp='$CPP $CPPFLAGS'
6039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6043 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6044 # On Suns, sometimes $CPP names a directory.
6045 if test -n "$CPP" && test -d "$CPP"; then
6046 CPP=
6048 if test -z "$CPP"; then
6049 if test "${ac_cv_prog_CPP+set}" = set; then :
6050 $as_echo_n "(cached) " >&6
6051 else
6052 # Double quotes because CPP needs to be expanded
6053 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6055 ac_preproc_ok=false
6056 for ac_c_preproc_warn_flag in '' yes
6058 # Use a header file that comes with gcc, so configuring glibc
6059 # with a fresh cross-compiler works.
6060 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6061 # <limits.h> exists even on freestanding compilers.
6062 # On the NeXT, cc -E runs the code through the compiler's parser,
6063 # not just through cpp. "Syntax error" is here to catch this case.
6064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065 /* end confdefs.h. */
6066 #ifdef __STDC__
6067 # include <limits.h>
6068 #else
6069 # include <assert.h>
6070 #endif
6071 Syntax error
6072 _ACEOF
6073 if ac_fn_c_try_cpp "$LINENO"; then :
6075 else
6076 # Broken: fails on valid input.
6077 continue
6079 rm -f conftest.err conftest.$ac_ext
6081 # OK, works on sane cases. Now check whether nonexistent headers
6082 # can be detected and how.
6083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084 /* end confdefs.h. */
6085 #include <ac_nonexistent.h>
6086 _ACEOF
6087 if ac_fn_c_try_cpp "$LINENO"; then :
6088 # Broken: success on invalid input.
6089 continue
6090 else
6091 # Passes both tests.
6092 ac_preproc_ok=:
6093 break
6095 rm -f conftest.err conftest.$ac_ext
6097 done
6098 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6099 rm -f conftest.err conftest.$ac_ext
6100 if $ac_preproc_ok; then :
6101 break
6104 done
6105 ac_cv_prog_CPP=$CPP
6108 CPP=$ac_cv_prog_CPP
6109 else
6110 ac_cv_prog_CPP=$CPP
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6113 $as_echo "$CPP" >&6; }
6114 ac_preproc_ok=false
6115 for ac_c_preproc_warn_flag in '' yes
6117 # Use a header file that comes with gcc, so configuring glibc
6118 # with a fresh cross-compiler works.
6119 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6120 # <limits.h> exists even on freestanding compilers.
6121 # On the NeXT, cc -E runs the code through the compiler's parser,
6122 # not just through cpp. "Syntax error" is here to catch this case.
6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h. */
6125 #ifdef __STDC__
6126 # include <limits.h>
6127 #else
6128 # include <assert.h>
6129 #endif
6130 Syntax error
6131 _ACEOF
6132 if ac_fn_c_try_cpp "$LINENO"; then :
6134 else
6135 # Broken: fails on valid input.
6136 continue
6138 rm -f conftest.err conftest.$ac_ext
6140 # OK, works on sane cases. Now check whether nonexistent headers
6141 # can be detected and how.
6142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6143 /* end confdefs.h. */
6144 #include <ac_nonexistent.h>
6145 _ACEOF
6146 if ac_fn_c_try_cpp "$LINENO"; then :
6147 # Broken: success on invalid input.
6148 continue
6149 else
6150 # Passes both tests.
6151 ac_preproc_ok=:
6152 break
6154 rm -f conftest.err conftest.$ac_ext
6156 done
6157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6158 rm -f conftest.err conftest.$ac_ext
6159 if $ac_preproc_ok; then :
6161 else
6162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6164 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6165 See \`config.log' for more details." "$LINENO" 5; }
6168 ac_ext=c
6169 ac_cpp='$CPP $CPPFLAGS'
6170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6176 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6177 if test "${ac_cv_path_GREP+set}" = set; then :
6178 $as_echo_n "(cached) " >&6
6179 else
6180 if test -z "$GREP"; then
6181 ac_path_GREP_found=false
6182 # Loop through the user's path and test for each of PROGNAME-LIST
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6186 IFS=$as_save_IFS
6187 test -z "$as_dir" && as_dir=.
6188 for ac_prog in grep ggrep; do
6189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6191 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6192 # Check for GNU ac_path_GREP and select it if it is found.
6193 # Check for GNU $ac_path_GREP
6194 case `"$ac_path_GREP" --version 2>&1` in
6195 *GNU*)
6196 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6198 ac_count=0
6199 $as_echo_n 0123456789 >"conftest.in"
6200 while :
6202 cat "conftest.in" "conftest.in" >"conftest.tmp"
6203 mv "conftest.tmp" "conftest.in"
6204 cp "conftest.in" "conftest.nl"
6205 $as_echo 'GREP' >> "conftest.nl"
6206 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6207 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6208 as_fn_arith $ac_count + 1 && ac_count=$as_val
6209 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6210 # Best one so far, save it but keep looking for a better one
6211 ac_cv_path_GREP="$ac_path_GREP"
6212 ac_path_GREP_max=$ac_count
6214 # 10*(2^10) chars as input seems more than enough
6215 test $ac_count -gt 10 && break
6216 done
6217 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6218 esac
6220 $ac_path_GREP_found && break 3
6221 done
6222 done
6223 done
6224 IFS=$as_save_IFS
6225 if test -z "$ac_cv_path_GREP"; then
6226 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6228 else
6229 ac_cv_path_GREP=$GREP
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6234 $as_echo "$ac_cv_path_GREP" >&6; }
6235 GREP="$ac_cv_path_GREP"
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6239 $as_echo_n "checking for egrep... " >&6; }
6240 if test "${ac_cv_path_EGREP+set}" = set; then :
6241 $as_echo_n "(cached) " >&6
6242 else
6243 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6244 then ac_cv_path_EGREP="$GREP -E"
6245 else
6246 if test -z "$EGREP"; then
6247 ac_path_EGREP_found=false
6248 # Loop through the user's path and test for each of PROGNAME-LIST
6249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6252 IFS=$as_save_IFS
6253 test -z "$as_dir" && as_dir=.
6254 for ac_prog in egrep; do
6255 for ac_exec_ext in '' $ac_executable_extensions; do
6256 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6257 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6258 # Check for GNU ac_path_EGREP and select it if it is found.
6259 # Check for GNU $ac_path_EGREP
6260 case `"$ac_path_EGREP" --version 2>&1` in
6261 *GNU*)
6262 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6264 ac_count=0
6265 $as_echo_n 0123456789 >"conftest.in"
6266 while :
6268 cat "conftest.in" "conftest.in" >"conftest.tmp"
6269 mv "conftest.tmp" "conftest.in"
6270 cp "conftest.in" "conftest.nl"
6271 $as_echo 'EGREP' >> "conftest.nl"
6272 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6273 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6274 as_fn_arith $ac_count + 1 && ac_count=$as_val
6275 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6276 # Best one so far, save it but keep looking for a better one
6277 ac_cv_path_EGREP="$ac_path_EGREP"
6278 ac_path_EGREP_max=$ac_count
6280 # 10*(2^10) chars as input seems more than enough
6281 test $ac_count -gt 10 && break
6282 done
6283 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6284 esac
6286 $ac_path_EGREP_found && break 3
6287 done
6288 done
6289 done
6290 IFS=$as_save_IFS
6291 if test -z "$ac_cv_path_EGREP"; then
6292 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6294 else
6295 ac_cv_path_EGREP=$EGREP
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6301 $as_echo "$ac_cv_path_EGREP" >&6; }
6302 EGREP="$ac_cv_path_EGREP"
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6308 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6309 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6310 $as_echo_n "(cached) " >&6
6311 else
6313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6314 /* end confdefs.h. */
6316 #ifdef __ACK__
6317 Amsterdam
6318 #endif
6320 _ACEOF
6321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6322 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6323 gl_cv_c_amsterdam_compiler=yes
6324 else
6325 gl_cv_c_amsterdam_compiler=no
6327 rm -f conftest*
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6332 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6333 if test -z "$AR"; then
6334 if test $gl_cv_c_amsterdam_compiler = yes; then
6335 AR='cc -c.a'
6336 if test -z "$ARFLAGS"; then
6337 ARFLAGS='-o'
6339 else
6340 if test -n "$ac_tool_prefix"; then
6341 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6342 set dummy ${ac_tool_prefix}ar; ac_word=$2
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6344 $as_echo_n "checking for $ac_word... " >&6; }
6345 if test "${ac_cv_prog_AR+set}" = set; then :
6346 $as_echo_n "(cached) " >&6
6347 else
6348 if test -n "$AR"; then
6349 ac_cv_prog_AR="$AR" # Let the user override the test.
6350 else
6351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352 for as_dir in $PATH
6354 IFS=$as_save_IFS
6355 test -z "$as_dir" && as_dir=.
6356 for ac_exec_ext in '' $ac_executable_extensions; do
6357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6358 ac_cv_prog_AR="${ac_tool_prefix}ar"
6359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6360 break 2
6362 done
6363 done
6364 IFS=$as_save_IFS
6368 AR=$ac_cv_prog_AR
6369 if test -n "$AR"; then
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6371 $as_echo "$AR" >&6; }
6372 else
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6374 $as_echo "no" >&6; }
6379 if test -z "$ac_cv_prog_AR"; then
6380 ac_ct_AR=$AR
6381 # Extract the first word of "ar", so it can be a program name with args.
6382 set dummy ar; ac_word=$2
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6384 $as_echo_n "checking for $ac_word... " >&6; }
6385 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6386 $as_echo_n "(cached) " >&6
6387 else
6388 if test -n "$ac_ct_AR"; then
6389 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6390 else
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 for as_dir in $PATH
6394 IFS=$as_save_IFS
6395 test -z "$as_dir" && as_dir=.
6396 for ac_exec_ext in '' $ac_executable_extensions; do
6397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6398 ac_cv_prog_ac_ct_AR="ar"
6399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6400 break 2
6402 done
6403 done
6404 IFS=$as_save_IFS
6408 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6409 if test -n "$ac_ct_AR"; then
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6411 $as_echo "$ac_ct_AR" >&6; }
6412 else
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6414 $as_echo "no" >&6; }
6417 if test "x$ac_ct_AR" = x; then
6418 AR="ar"
6419 else
6420 case $cross_compiling:$ac_tool_warned in
6421 yes:)
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6424 ac_tool_warned=yes ;;
6425 esac
6426 AR=$ac_ct_AR
6428 else
6429 AR="$ac_cv_prog_AR"
6432 if test -z "$ARFLAGS"; then
6433 ARFLAGS='cru'
6436 else
6437 if test -z "$ARFLAGS"; then
6438 ARFLAGS='cru'
6443 if test -z "$RANLIB"; then
6444 if test $gl_cv_c_amsterdam_compiler = yes; then
6445 RANLIB=':'
6446 else
6447 if test -n "$ac_tool_prefix"; then
6448 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6449 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451 $as_echo_n "checking for $ac_word... " >&6; }
6452 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6453 $as_echo_n "(cached) " >&6
6454 else
6455 if test -n "$RANLIB"; then
6456 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6457 else
6458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 for as_dir in $PATH
6461 IFS=$as_save_IFS
6462 test -z "$as_dir" && as_dir=.
6463 for ac_exec_ext in '' $ac_executable_extensions; do
6464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6465 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6467 break 2
6469 done
6470 done
6471 IFS=$as_save_IFS
6475 RANLIB=$ac_cv_prog_RANLIB
6476 if test -n "$RANLIB"; then
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6478 $as_echo "$RANLIB" >&6; }
6479 else
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6481 $as_echo "no" >&6; }
6486 if test -z "$ac_cv_prog_RANLIB"; then
6487 ac_ct_RANLIB=$RANLIB
6488 # Extract the first word of "ranlib", so it can be a program name with args.
6489 set dummy ranlib; ac_word=$2
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491 $as_echo_n "checking for $ac_word... " >&6; }
6492 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6493 $as_echo_n "(cached) " >&6
6494 else
6495 if test -n "$ac_ct_RANLIB"; then
6496 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6497 else
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 for as_dir in $PATH
6501 IFS=$as_save_IFS
6502 test -z "$as_dir" && as_dir=.
6503 for ac_exec_ext in '' $ac_executable_extensions; do
6504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6505 ac_cv_prog_ac_ct_RANLIB="ranlib"
6506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 break 2
6509 done
6510 done
6511 IFS=$as_save_IFS
6515 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6516 if test -n "$ac_ct_RANLIB"; then
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6518 $as_echo "$ac_ct_RANLIB" >&6; }
6519 else
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 $as_echo "no" >&6; }
6524 if test "x$ac_ct_RANLIB" = x; then
6525 RANLIB=":"
6526 else
6527 case $cross_compiling:$ac_tool_warned in
6528 yes:)
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6531 ac_tool_warned=yes ;;
6532 esac
6533 RANLIB=$ac_ct_RANLIB
6535 else
6536 RANLIB="$ac_cv_prog_RANLIB"
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6544 $as_echo_n "checking for ANSI C header files... " >&6; }
6545 if test "${ac_cv_header_stdc+set}" = set; then :
6546 $as_echo_n "(cached) " >&6
6547 else
6548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6549 /* end confdefs.h. */
6550 #include <stdlib.h>
6551 #include <stdarg.h>
6552 #include <string.h>
6553 #include <float.h>
6556 main ()
6560 return 0;
6562 _ACEOF
6563 if ac_fn_c_try_compile "$LINENO"; then :
6564 ac_cv_header_stdc=yes
6565 else
6566 ac_cv_header_stdc=no
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570 if test $ac_cv_header_stdc = yes; then
6571 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6574 #include <string.h>
6576 _ACEOF
6577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6578 $EGREP "memchr" >/dev/null 2>&1; then :
6580 else
6581 ac_cv_header_stdc=no
6583 rm -f conftest*
6587 if test $ac_cv_header_stdc = yes; then
6588 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h. */
6591 #include <stdlib.h>
6593 _ACEOF
6594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6595 $EGREP "free" >/dev/null 2>&1; then :
6597 else
6598 ac_cv_header_stdc=no
6600 rm -f conftest*
6604 if test $ac_cv_header_stdc = yes; then
6605 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6606 if test "$cross_compiling" = yes; then :
6608 else
6609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6610 /* end confdefs.h. */
6611 #include <ctype.h>
6612 #include <stdlib.h>
6613 #if ((' ' & 0x0FF) == 0x020)
6614 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6615 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6616 #else
6617 # define ISLOWER(c) \
6618 (('a' <= (c) && (c) <= 'i') \
6619 || ('j' <= (c) && (c) <= 'r') \
6620 || ('s' <= (c) && (c) <= 'z'))
6621 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6622 #endif
6624 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6626 main ()
6628 int i;
6629 for (i = 0; i < 256; i++)
6630 if (XOR (islower (i), ISLOWER (i))
6631 || toupper (i) != TOUPPER (i))
6632 return 2;
6633 return 0;
6635 _ACEOF
6636 if ac_fn_c_try_run "$LINENO"; then :
6638 else
6639 ac_cv_header_stdc=no
6641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6642 conftest.$ac_objext conftest.beam conftest.$ac_ext
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6648 $as_echo "$ac_cv_header_stdc" >&6; }
6649 if test $ac_cv_header_stdc = yes; then
6651 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6655 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6656 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6657 inttypes.h stdint.h unistd.h
6658 do :
6659 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6660 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6662 eval as_val=\$$as_ac_Header
6663 if test "x$as_val" = x""yes; then :
6664 cat >>confdefs.h <<_ACEOF
6665 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6666 _ACEOF
6670 done
6674 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6675 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6676 MINIX=yes
6677 else
6678 MINIX=
6682 if test "$MINIX" = yes; then
6684 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6687 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6690 $as_echo "#define _MINIX 1" >>confdefs.h
6693 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6699 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6700 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6701 $as_echo_n "(cached) " >&6
6702 else
6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h. */
6706 # define __EXTENSIONS__ 1
6707 $ac_includes_default
6709 main ()
6713 return 0;
6715 _ACEOF
6716 if ac_fn_c_try_compile "$LINENO"; then :
6717 ac_cv_safe_to_define___extensions__=yes
6718 else
6719 ac_cv_safe_to_define___extensions__=no
6721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6724 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6725 test $ac_cv_safe_to_define___extensions__ = yes &&
6726 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6728 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6730 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6732 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6734 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6736 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6739 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6740 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
6741 $as_echo_n "(cached) " >&6
6742 else
6743 ac_cv_should_define__xopen_source=no
6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745 /* end confdefs.h. */
6747 #include <wchar.h>
6748 mbstate_t x;
6750 main ()
6754 return 0;
6756 _ACEOF
6757 if ac_fn_c_try_compile "$LINENO"; then :
6759 else
6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761 /* end confdefs.h. */
6763 #define _XOPEN_SOURCE 500
6764 #include <wchar.h>
6765 mbstate_t x;
6767 main ()
6771 return 0;
6773 _ACEOF
6774 if ac_fn_c_try_compile "$LINENO"; then :
6775 ac_cv_should_define__xopen_source=yes
6777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6782 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6783 test $ac_cv_should_define__xopen_source = yes &&
6784 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6793 # Check whether --enable-largefile was given.
6794 if test "${enable_largefile+set}" = set; then :
6795 enableval=$enable_largefile;
6798 if test "$enable_largefile" != no; then
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6801 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6802 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6803 $as_echo_n "(cached) " >&6
6804 else
6805 ac_cv_sys_largefile_CC=no
6806 if test "$GCC" != yes; then
6807 ac_save_CC=$CC
6808 while :; do
6809 # IRIX 6.2 and later do not support large files by default,
6810 # so use the C compiler's -n32 option if that helps.
6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812 /* end confdefs.h. */
6813 #include <sys/types.h>
6814 /* Check that off_t can represent 2**63 - 1 correctly.
6815 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6816 since some C++ compilers masquerading as C compilers
6817 incorrectly reject 9223372036854775807. */
6818 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6819 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6820 && LARGE_OFF_T % 2147483647 == 1)
6821 ? 1 : -1];
6823 main ()
6827 return 0;
6829 _ACEOF
6830 if ac_fn_c_try_compile "$LINENO"; then :
6831 break
6833 rm -f core conftest.err conftest.$ac_objext
6834 CC="$CC -n32"
6835 if ac_fn_c_try_compile "$LINENO"; then :
6836 ac_cv_sys_largefile_CC=' -n32'; break
6838 rm -f core conftest.err conftest.$ac_objext
6839 break
6840 done
6841 CC=$ac_save_CC
6842 rm -f conftest.$ac_ext
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6846 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6847 if test "$ac_cv_sys_largefile_CC" != no; then
6848 CC=$CC$ac_cv_sys_largefile_CC
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6852 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6853 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6854 $as_echo_n "(cached) " >&6
6855 else
6856 while :; do
6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h. */
6859 #include <sys/types.h>
6860 /* Check that off_t can represent 2**63 - 1 correctly.
6861 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6862 since some C++ compilers masquerading as C compilers
6863 incorrectly reject 9223372036854775807. */
6864 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6865 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6866 && LARGE_OFF_T % 2147483647 == 1)
6867 ? 1 : -1];
6869 main ()
6873 return 0;
6875 _ACEOF
6876 if ac_fn_c_try_compile "$LINENO"; then :
6877 ac_cv_sys_file_offset_bits=no; break
6879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881 /* end confdefs.h. */
6882 #define _FILE_OFFSET_BITS 64
6883 #include <sys/types.h>
6884 /* Check that off_t can represent 2**63 - 1 correctly.
6885 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6886 since some C++ compilers masquerading as C compilers
6887 incorrectly reject 9223372036854775807. */
6888 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6889 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6890 && LARGE_OFF_T % 2147483647 == 1)
6891 ? 1 : -1];
6893 main ()
6897 return 0;
6899 _ACEOF
6900 if ac_fn_c_try_compile "$LINENO"; then :
6901 ac_cv_sys_file_offset_bits=64; break
6903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6904 ac_cv_sys_file_offset_bits=unknown
6905 break
6906 done
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6909 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6910 case $ac_cv_sys_file_offset_bits in #(
6911 no | unknown) ;;
6913 cat >>confdefs.h <<_ACEOF
6914 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6915 _ACEOF
6917 esac
6918 rm -rf conftest*
6919 if test $ac_cv_sys_file_offset_bits = unknown; then
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6921 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6922 if test "${ac_cv_sys_large_files+set}" = set; then :
6923 $as_echo_n "(cached) " >&6
6924 else
6925 while :; do
6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h. */
6928 #include <sys/types.h>
6929 /* Check that off_t can represent 2**63 - 1 correctly.
6930 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6931 since some C++ compilers masquerading as C compilers
6932 incorrectly reject 9223372036854775807. */
6933 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6934 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6935 && LARGE_OFF_T % 2147483647 == 1)
6936 ? 1 : -1];
6938 main ()
6942 return 0;
6944 _ACEOF
6945 if ac_fn_c_try_compile "$LINENO"; then :
6946 ac_cv_sys_large_files=no; break
6948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950 /* end confdefs.h. */
6951 #define _LARGE_FILES 1
6952 #include <sys/types.h>
6953 /* Check that off_t can represent 2**63 - 1 correctly.
6954 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6955 since some C++ compilers masquerading as C compilers
6956 incorrectly reject 9223372036854775807. */
6957 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6958 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6959 && LARGE_OFF_T % 2147483647 == 1)
6960 ? 1 : -1];
6962 main ()
6966 return 0;
6968 _ACEOF
6969 if ac_fn_c_try_compile "$LINENO"; then :
6970 ac_cv_sys_large_files=1; break
6972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6973 ac_cv_sys_large_files=unknown
6974 break
6975 done
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6978 $as_echo "$ac_cv_sys_large_files" >&6; }
6979 case $ac_cv_sys_large_files in #(
6980 no | unknown) ;;
6982 cat >>confdefs.h <<_ACEOF
6983 #define _LARGE_FILES $ac_cv_sys_large_files
6984 _ACEOF
6986 esac
6987 rm -rf conftest*
6991 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6995 case $ac_cv_prog_cc_stdc in #(
6996 no) :
6997 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6998 *) :
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7000 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7001 if test "${ac_cv_prog_cc_c99+set}" = set; then :
7002 $as_echo_n "(cached) " >&6
7003 else
7004 ac_cv_prog_cc_c99=no
7005 ac_save_CC=$CC
7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007 /* end confdefs.h. */
7008 #include <stdarg.h>
7009 #include <stdbool.h>
7010 #include <stdlib.h>
7011 #include <wchar.h>
7012 #include <stdio.h>
7014 // Check varargs macros. These examples are taken from C99 6.10.3.5.
7015 #define debug(...) fprintf (stderr, __VA_ARGS__)
7016 #define showlist(...) puts (#__VA_ARGS__)
7017 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7018 static void
7019 test_varargs_macros (void)
7021 int x = 1234;
7022 int y = 5678;
7023 debug ("Flag");
7024 debug ("X = %d\n", x);
7025 showlist (The first, second, and third items.);
7026 report (x>y, "x is %d but y is %d", x, y);
7029 // Check long long types.
7030 #define BIG64 18446744073709551615ull
7031 #define BIG32 4294967295ul
7032 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7033 #if !BIG_OK
7034 your preprocessor is broken;
7035 #endif
7036 #if BIG_OK
7037 #else
7038 your preprocessor is broken;
7039 #endif
7040 static long long int bignum = -9223372036854775807LL;
7041 static unsigned long long int ubignum = BIG64;
7043 struct incomplete_array
7045 int datasize;
7046 double data[];
7049 struct named_init {
7050 int number;
7051 const wchar_t *name;
7052 double average;
7055 typedef const char *ccp;
7057 static inline int
7058 test_restrict (ccp restrict text)
7060 // See if C++-style comments work.
7061 // Iterate through items via the restricted pointer.
7062 // Also check for declarations in for loops.
7063 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7064 continue;
7065 return 0;
7068 // Check varargs and va_copy.
7069 static void
7070 test_varargs (const char *format, ...)
7072 va_list args;
7073 va_start (args, format);
7074 va_list args_copy;
7075 va_copy (args_copy, args);
7077 const char *str;
7078 int number;
7079 float fnumber;
7081 while (*format)
7083 switch (*format++)
7085 case 's': // string
7086 str = va_arg (args_copy, const char *);
7087 break;
7088 case 'd': // int
7089 number = va_arg (args_copy, int);
7090 break;
7091 case 'f': // float
7092 fnumber = va_arg (args_copy, double);
7093 break;
7094 default:
7095 break;
7098 va_end (args_copy);
7099 va_end (args);
7103 main ()
7106 // Check bool.
7107 _Bool success = false;
7109 // Check restrict.
7110 if (test_restrict ("String literal") == 0)
7111 success = true;
7112 char *restrict newvar = "Another string";
7114 // Check varargs.
7115 test_varargs ("s, d' f .", "string", 65, 34.234);
7116 test_varargs_macros ();
7118 // Check flexible array members.
7119 struct incomplete_array *ia =
7120 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7121 ia->datasize = 10;
7122 for (int i = 0; i < ia->datasize; ++i)
7123 ia->data[i] = i * 1.234;
7125 // Check named initializers.
7126 struct named_init ni = {
7127 .number = 34,
7128 .name = L"Test wide string",
7129 .average = 543.34343,
7132 ni.number = 58;
7134 int dynamic_array[ni.number];
7135 dynamic_array[ni.number - 1] = 543;
7137 // work around unused variable warnings
7138 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7139 || dynamic_array[ni.number - 1] != 543);
7142 return 0;
7144 _ACEOF
7145 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7147 CC="$ac_save_CC $ac_arg"
7148 if ac_fn_c_try_compile "$LINENO"; then :
7149 ac_cv_prog_cc_c99=$ac_arg
7151 rm -f core conftest.err conftest.$ac_objext
7152 test "x$ac_cv_prog_cc_c99" != "xno" && break
7153 done
7154 rm -f conftest.$ac_ext
7155 CC=$ac_save_CC
7158 # AC_CACHE_VAL
7159 case "x$ac_cv_prog_cc_c99" in
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7162 $as_echo "none needed" >&6; } ;;
7163 xno)
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7165 $as_echo "unsupported" >&6; } ;;
7167 CC="$CC $ac_cv_prog_cc_c99"
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7169 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7170 esac
7171 if test "x$ac_cv_prog_cc_c99" != xno; then :
7172 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7173 else
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7175 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7176 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7177 $as_echo_n "(cached) " >&6
7178 else
7179 ac_cv_prog_cc_c89=no
7180 ac_save_CC=$CC
7181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7182 /* end confdefs.h. */
7183 #include <stdarg.h>
7184 #include <stdio.h>
7185 #include <sys/types.h>
7186 #include <sys/stat.h>
7187 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7188 struct buf { int x; };
7189 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7190 static char *e (p, i)
7191 char **p;
7192 int i;
7194 return p[i];
7196 static char *f (char * (*g) (char **, int), char **p, ...)
7198 char *s;
7199 va_list v;
7200 va_start (v,p);
7201 s = g (p, va_arg (v,int));
7202 va_end (v);
7203 return s;
7206 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7207 function prototypes and stuff, but not '\xHH' hex character constants.
7208 These don't provoke an error unfortunately, instead are silently treated
7209 as 'x'. The following induces an error, until -std is added to get
7210 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7211 array size at least. It's necessary to write '\x00'==0 to get something
7212 that's true only with -std. */
7213 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7215 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7216 inside strings and character constants. */
7217 #define FOO(x) 'x'
7218 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7220 int test (int i, double x);
7221 struct s1 {int (*f) (int a);};
7222 struct s2 {int (*f) (double a);};
7223 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7224 int argc;
7225 char **argv;
7227 main ()
7229 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7231 return 0;
7233 _ACEOF
7234 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7235 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7237 CC="$ac_save_CC $ac_arg"
7238 if ac_fn_c_try_compile "$LINENO"; then :
7239 ac_cv_prog_cc_c89=$ac_arg
7241 rm -f core conftest.err conftest.$ac_objext
7242 test "x$ac_cv_prog_cc_c89" != "xno" && break
7243 done
7244 rm -f conftest.$ac_ext
7245 CC=$ac_save_CC
7248 # AC_CACHE_VAL
7249 case "x$ac_cv_prog_cc_c89" in
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7252 $as_echo "none needed" >&6; } ;;
7253 xno)
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7255 $as_echo "unsupported" >&6; } ;;
7257 CC="$CC $ac_cv_prog_cc_c89"
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7259 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7260 esac
7261 if test "x$ac_cv_prog_cc_c89" != xno; then :
7262 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7263 else
7264 ac_cv_prog_cc_stdc=no
7269 esac
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7271 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7272 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7273 $as_echo_n "(cached) " >&6
7276 case $ac_cv_prog_cc_stdc in #(
7277 no) :
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7279 $as_echo "unsupported" >&6; } ;; #(
7280 '') :
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7282 $as_echo "none needed" >&6; } ;; #(
7283 *) :
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7285 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7286 esac
7290 # Code from module alloca-opt:
7291 # Code from module allocator:
7292 # Code from module at-internal:
7293 # Code from module binary-io:
7294 # Code from module byteswap:
7295 # Code from module c-ctype:
7296 # Code from module c-strcase:
7297 # Code from module careadlinkat:
7298 # Code from module clock-time:
7299 # Code from module close-stream:
7300 # Code from module count-one-bits:
7301 # Code from module count-trailing-zeros:
7302 # Code from module crypto/md5:
7303 # Code from module crypto/sha1:
7304 # Code from module crypto/sha256:
7305 # Code from module crypto/sha512:
7306 # Code from module dirent:
7307 # Code from module dosname:
7308 # Code from module dtoastr:
7309 # Code from module dtotimespec:
7310 # Code from module dup2:
7311 # Code from module environ:
7312 # Code from module errno:
7313 # Code from module euidaccess:
7314 # Code from module execinfo:
7315 # Code from module extensions:
7317 # Code from module extern-inline:
7318 # Code from module faccessat:
7319 # Code from module fcntl:
7320 # Code from module fcntl-h:
7321 # Code from module fdatasync:
7322 # Code from module fdopendir:
7323 # Code from module filemode:
7324 # Code from module fpending:
7325 # Code from module fstatat:
7326 # Code from module fsync:
7327 # Code from module getdtablesize:
7328 # Code from module getgroups:
7329 # Code from module getloadavg:
7330 # Code from module getopt-gnu:
7331 # Code from module getopt-posix:
7332 # Code from module gettext-h:
7333 # Code from module gettime:
7334 # Code from module gettimeofday:
7335 # Code from module group-member:
7336 # Code from module include_next:
7337 # Code from module intprops:
7338 # Code from module inttypes-incomplete:
7339 # Code from module largefile:
7341 # Code from module lstat:
7342 # Code from module manywarnings:
7343 # Code from module memrchr:
7344 # Code from module mkostemp:
7345 # Code from module mktime:
7346 # Code from module multiarch:
7347 # Code from module nocrash:
7348 # Code from module openat-h:
7349 # Code from module pathmax:
7350 # Code from module pipe2:
7351 # Code from module pselect:
7352 # Code from module pthread_sigmask:
7353 # Code from module putenv:
7354 # Code from module qacl:
7355 # Code from module readlink:
7356 # Code from module readlinkat:
7357 # Code from module root-uid:
7358 # Code from module secure_getenv:
7359 # Code from module sig2str:
7360 # Code from module signal-h:
7361 # Code from module snippet/_Noreturn:
7362 # Code from module snippet/arg-nonnull:
7363 # Code from module snippet/c++defs:
7364 # Code from module snippet/warn-on-use:
7365 # Code from module socklen:
7366 # Code from module ssize_t:
7367 # Code from module stat:
7368 # Code from module stat-time:
7369 # Code from module stdalign:
7370 # Code from module stdarg:
7374 # Code from module stdbool:
7375 # Code from module stddef:
7376 # Code from module stdint:
7377 # Code from module stdio:
7378 # Code from module stdlib:
7379 # Code from module strftime:
7380 # Code from module string:
7381 # Code from module strtoimax:
7382 # Code from module strtoll:
7383 # Code from module strtoull:
7384 # Code from module strtoumax:
7385 # Code from module symlink:
7386 # Code from module sys_select:
7387 # Code from module sys_stat:
7388 # Code from module sys_time:
7389 # Code from module tempname:
7390 # Code from module time:
7391 # Code from module time_r:
7392 # Code from module timer-time:
7393 # Code from module timespec:
7394 # Code from module timespec-add:
7395 # Code from module timespec-sub:
7396 # Code from module u64:
7397 # Code from module unistd:
7398 # Code from module unsetenv:
7399 # Code from module utimens:
7400 # Code from module verify:
7401 # Code from module warnings:
7402 # Code from module xalloc-oversized:
7405 if test "$ac_test_CFLAGS" != set; then
7406 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7407 # if -g3 works and the user does not specify CFLAGS.
7408 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7409 case $CFLAGS in
7410 '-g')
7411 emacs_g3_CFLAGS='-g3';;
7412 '-g -O2')
7413 emacs_g3_CFLAGS='-g3 -O2';;
7415 emacs_g3_CFLAGS='';;
7416 esac
7417 if test -n "$emacs_g3_CFLAGS"; then
7418 emacs_save_CFLAGS=$CFLAGS
7419 CFLAGS=$emacs_g3_CFLAGS
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7421 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7422 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7423 $as_echo_n "(cached) " >&6
7424 else
7425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7426 /* end confdefs.h. */
7429 main ()
7433 return 0;
7435 _ACEOF
7436 if ac_fn_c_try_link "$LINENO"; then :
7437 emacs_cv_prog_cc_g3=yes
7438 else
7439 emacs_cv_prog_cc_g3=no
7441 rm -f core conftest.err conftest.$ac_objext \
7442 conftest$ac_exeext conftest.$ac_ext
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7445 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7446 if test $emacs_cv_prog_cc_g3 != yes; then
7447 CFLAGS=$emacs_save_CFLAGS
7449 if test $opsys = mingw32; then
7450 CFLAGS="$CFLAGS -gdwarf-2"
7454 case $CFLAGS in
7455 *-O*) ;;
7457 # No optimization flag was inferred for this non-GCC compiler.
7458 # Try -O. This is needed for xlc on AIX; see Bug#14258.
7459 emacs_save_CFLAGS=$CFLAGS
7460 test -z "$CFLAGS" || CFLAGS="$CFLAGS "
7461 CFLAGS=${CFLAGS}-O
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -O" >&5
7463 $as_echo_n "checking whether $CC accepts -O... " >&6; }
7464 if test "${emacs_cv_prog_cc_o+set}" = set; then :
7465 $as_echo_n "(cached) " >&6
7466 else
7467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468 /* end confdefs.h. */
7471 main ()
7475 return 0;
7477 _ACEOF
7478 if ac_fn_c_try_link "$LINENO"; then :
7479 emacs_cv_prog_cc_o=yes
7480 else
7481 emacs_cv_prog_cc_o=no
7483 rm -f core conftest.err conftest.$ac_objext \
7484 conftest$ac_exeext conftest.$ac_ext
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_o" >&5
7487 $as_echo "$emacs_cv_prog_cc_o" >&6; }
7488 if test $emacs_cv_prog_cc_o != yes; then
7489 CFLAGS=$emacs_save_CFLAGS
7490 fi ;;
7491 esac
7494 # Check whether --enable-gcc-warnings was given.
7495 if test "${enable_gcc_warnings+set}" = set; then :
7496 enableval=$enable_gcc_warnings; case $enableval in
7497 yes|no) ;;
7498 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7499 esac
7500 gl_gcc_warnings=$enableval
7501 else
7502 gl_gcc_warnings=no
7507 # Check whether --enable-link-time-optimization was given.
7508 if test "${enable_link_time_optimization+set}" = set; then :
7509 enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7511 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7512 ac_lto_supported=no
7513 if test x$GCC = xyes; then
7514 CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7515 if test x$CPUS != x; then
7516 LTO="-flto=$CPUS"
7517 else
7518 LTO="-flto"
7520 old_CFLAGS=$CFLAGS
7521 CFLAGS="$CFLAGS $LTO"
7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h. */
7526 main ()
7530 return 0;
7532 _ACEOF
7533 if ac_fn_c_try_compile "$LINENO"; then :
7534 ac_lto_supported=yes
7535 else
7536 ac_lto_supported=no
7538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7539 CFLAGS="$old_CFLAGS"
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7542 $as_echo "$ac_lto_supported" >&6; }
7543 if test "$ac_lto_supported" = "yes"; then
7544 CFLAGS="$CFLAGS $LTO"
7550 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7551 # ------------------------------------------------
7552 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7553 # Otherwise, run RUN-IF-NOT-FOUND.
7556 # clang is unduly picky about some things.
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
7558 $as_echo_n "checking whether the compiler is clang... " >&6; }
7559 if test "${emacs_cv_clang+set}" = set; then :
7560 $as_echo_n "(cached) " >&6
7561 else
7562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563 /* end confdefs.h. */
7565 #ifndef __clang__
7566 #error "not clang"
7567 #endif
7570 main ()
7574 return 0;
7576 _ACEOF
7577 if ac_fn_c_try_compile "$LINENO"; then :
7578 emacs_cv_clang=yes
7579 else
7580 emacs_cv_clang=no
7582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_clang" >&5
7585 $as_echo "$emacs_cv_clang" >&6; }
7587 # When compiling with GCC, prefer -isystem to -I when including system
7588 # include files, to avoid generating useless diagnostics for the files.
7589 if test "$gl_gcc_warnings" != yes; then
7590 isystem='-I'
7591 if test "$emacs_cv_clang" = yes
7592 then
7593 # Turn off some warnings if supported.
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
7595 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
7596 if test "${gl_cv_warn_c__Werror__Wunknown_warning_option+set}" = set; then :
7597 $as_echo_n "(cached) " >&6
7598 else
7600 gl_save_compiler_FLAGS="$CFLAGS"
7601 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
7602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h. */
7606 main ()
7610 return 0;
7612 _ACEOF
7613 if ac_fn_c_try_link "$LINENO"; then :
7614 gl_cv_warn_c__Werror__Wunknown_warning_option=yes
7615 else
7616 gl_cv_warn_c__Werror__Wunknown_warning_option=no
7618 rm -f core conftest.err conftest.$ac_objext \
7619 conftest$ac_exeext conftest.$ac_ext
7620 CFLAGS="$gl_save_compiler_FLAGS"
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
7624 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
7625 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = x""yes; then :
7626 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
7627 else
7628 gl_unknown_warnings_are_errors=
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7633 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7634 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7635 $as_echo_n "(cached) " >&6
7636 else
7638 gl_save_compiler_FLAGS="$CFLAGS"
7639 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wswitch"
7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7644 main ()
7648 return 0;
7650 _ACEOF
7651 if ac_fn_c_try_link "$LINENO"; then :
7652 gl_cv_warn_c__Wno_switch=yes
7653 else
7654 gl_cv_warn_c__Wno_switch=no
7656 rm -f core conftest.err conftest.$ac_objext \
7657 conftest$ac_exeext conftest.$ac_ext
7658 CFLAGS="$gl_save_compiler_FLAGS"
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7662 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7663 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7664 as_fn_append WARN_CFLAGS " -Wno-switch"
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare" >&5
7670 $as_echo_n "checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare... " >&6; }
7671 if test "${gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare+set}" = set; then :
7672 $as_echo_n "(cached) " >&6
7673 else
7675 gl_save_compiler_FLAGS="$CFLAGS"
7676 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wtautological-constant-out-of-range-compare"
7677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7678 /* end confdefs.h. */
7681 main ()
7685 return 0;
7687 _ACEOF
7688 if ac_fn_c_try_link "$LINENO"; then :
7689 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare=yes
7690 else
7691 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare=no
7693 rm -f core conftest.err conftest.$ac_objext \
7694 conftest$ac_exeext conftest.$ac_ext
7695 CFLAGS="$gl_save_compiler_FLAGS"
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&5
7699 $as_echo "$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&6; }
7700 if test "x$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" = x""yes; then :
7701 as_fn_append WARN_CFLAGS " -Wno-tautological-constant-out-of-range-compare"
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-pointer-sign" >&5
7707 $as_echo_n "checking whether C compiler handles -Wno-pointer-sign... " >&6; }
7708 if test "${gl_cv_warn_c__Wno_pointer_sign+set}" = set; then :
7709 $as_echo_n "(cached) " >&6
7710 else
7712 gl_save_compiler_FLAGS="$CFLAGS"
7713 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wpointer-sign"
7714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7715 /* end confdefs.h. */
7718 main ()
7722 return 0;
7724 _ACEOF
7725 if ac_fn_c_try_link "$LINENO"; then :
7726 gl_cv_warn_c__Wno_pointer_sign=yes
7727 else
7728 gl_cv_warn_c__Wno_pointer_sign=no
7730 rm -f core conftest.err conftest.$ac_objext \
7731 conftest$ac_exeext conftest.$ac_ext
7732 CFLAGS="$gl_save_compiler_FLAGS"
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_pointer_sign" >&5
7736 $as_echo "$gl_cv_warn_c__Wno_pointer_sign" >&6; }
7737 if test "x$gl_cv_warn_c__Wno_pointer_sign" = x""yes; then :
7738 as_fn_append WARN_CFLAGS " -Wno-pointer-sign"
7743 else
7744 isystem='-isystem '
7746 # This, $nw, is the list of warnings we disable.
7749 case $with_x_toolkit in
7750 lucid | athena | motif)
7751 # Old toolkits mishandle 'const'.
7752 nw="$nw -Wwrite-strings"
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7757 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7758 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7759 $as_echo_n "(cached) " >&6
7760 else
7762 gl_save_compiler_FLAGS="$CFLAGS"
7763 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror"
7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765 /* end confdefs.h. */
7768 main ()
7772 return 0;
7774 _ACEOF
7775 if ac_fn_c_try_link "$LINENO"; then :
7776 gl_cv_warn_c__Werror=yes
7777 else
7778 gl_cv_warn_c__Werror=no
7780 rm -f core conftest.err conftest.$ac_objext \
7781 conftest$ac_exeext conftest.$ac_ext
7782 CFLAGS="$gl_save_compiler_FLAGS"
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7786 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7787 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7788 as_fn_append WERROR_CFLAGS " -Werror"
7793 esac
7796 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7797 nw="$nw -Woverlength-strings" # Not a problem these days
7798 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7799 nw="$nw -Wformat-nonliteral" # we do this a lot
7800 nw="$nw -Wvla" # warnings in gettext.h
7801 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7802 nw="$nw -Wswitch-default" # Too many warnings for now
7803 nw="$nw -Winline" # OK to ignore 'inline'
7804 nw="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7805 nw="$nw -Wstrict-overflow" # OK to optimize assuming that
7806 # signed overflow has undefined behavior
7807 nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7808 nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7809 nw="$nw -Wbad-function-cast" # These casts are no worse than others.
7811 # Emacs doesn't care about shadowing; see
7812 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7813 nw="$nw -Wshadow"
7815 # Emacs's use of alloca inhibits protecting the stack.
7816 nw="$nw -Wstack-protector"
7818 # The following line should be removable at some point.
7819 nw="$nw -Wsuggest-attribute=pure"
7821 # This part is merely for shortening the command line,
7822 # since -Wno-FOO needs to be added below regardless.
7823 nw="$nw -Wmissing-field-initializers"
7824 nw="$nw -Wswitch"
7825 nw="$nw -Wtype-limits"
7826 nw="$nw -Wunused-parameter"
7828 if test $emacs_cv_clang = yes; then
7829 nw="$nw -Wcast-align"
7834 if test -n "$GCC"; then
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7837 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7838 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7839 $as_echo_n "(cached) " >&6
7840 else
7842 gl_save_CFLAGS="$CFLAGS"
7843 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845 /* end confdefs.h. */
7848 main ()
7852 return 0;
7854 _ACEOF
7855 if ac_fn_c_try_compile "$LINENO"; then :
7856 gl_cv_cc_nomfi_supported=yes
7857 else
7858 gl_cv_cc_nomfi_supported=no
7860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7861 CFLAGS="$gl_save_CFLAGS"
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7865 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7867 if test "$gl_cv_cc_nomfi_supported" = yes; then
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7869 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7870 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7871 $as_echo_n "(cached) " >&6
7872 else
7874 gl_save_CFLAGS="$CFLAGS"
7875 CFLAGS="$CFLAGS -W -Werror"
7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h. */
7878 void f (void)
7880 typedef struct { int a; int b; } s_t;
7881 s_t s1 = { 0, };
7885 main ()
7889 return 0;
7891 _ACEOF
7892 if ac_fn_c_try_compile "$LINENO"; then :
7893 gl_cv_cc_nomfi_needed=no
7894 else
7895 gl_cv_cc_nomfi_needed=yes
7897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7898 CFLAGS="$gl_save_CFLAGS"
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7903 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7907 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7908 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7909 $as_echo_n "(cached) " >&6
7910 else
7912 gl_save_CFLAGS="$CFLAGS"
7913 CFLAGS="$CFLAGS -Werror -Wuninitialized"
7914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7915 /* end confdefs.h. */
7918 main ()
7922 return 0;
7924 _ACEOF
7925 if ac_fn_c_try_compile "$LINENO"; then :
7926 gl_cv_cc_uninitialized_supported=yes
7927 else
7928 gl_cv_cc_uninitialized_supported=no
7930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7931 CFLAGS="$gl_save_CFLAGS"
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7935 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7939 # List all gcc warning categories.
7940 gl_manywarn_set=
7941 for gl_manywarn_item in \
7942 -W \
7943 -Wabi \
7944 -Waddress \
7945 -Waggressive-loop-optimizations \
7946 -Wall \
7947 -Warray-bounds \
7948 -Wattributes \
7949 -Wbad-function-cast \
7950 -Wbuiltin-macro-redefined \
7951 -Wcast-align \
7952 -Wchar-subscripts \
7953 -Wclobbered \
7954 -Wcomment \
7955 -Wcomments \
7956 -Wcoverage-mismatch \
7957 -Wcpp \
7958 -Wdeprecated \
7959 -Wdeprecated-declarations \
7960 -Wdisabled-optimization \
7961 -Wdiv-by-zero \
7962 -Wdouble-promotion \
7963 -Wempty-body \
7964 -Wendif-labels \
7965 -Wenum-compare \
7966 -Wextra \
7967 -Wformat-contains-nul \
7968 -Wformat-extra-args \
7969 -Wformat-nonliteral \
7970 -Wformat-security \
7971 -Wformat-y2k \
7972 -Wformat-zero-length \
7973 -Wfree-nonheap-object \
7974 -Wignored-qualifiers \
7975 -Wimplicit \
7976 -Wimplicit-function-declaration \
7977 -Wimplicit-int \
7978 -Winit-self \
7979 -Winline \
7980 -Wint-to-pointer-cast \
7981 -Winvalid-memory-model \
7982 -Winvalid-pch \
7983 -Wjump-misses-init \
7984 -Wlogical-op \
7985 -Wmain \
7986 -Wmaybe-uninitialized \
7987 -Wmissing-braces \
7988 -Wmissing-declarations \
7989 -Wmissing-field-initializers \
7990 -Wmissing-include-dirs \
7991 -Wmissing-parameter-type \
7992 -Wmissing-prototypes \
7993 -Wmudflap \
7994 -Wmultichar \
7995 -Wnarrowing \
7996 -Wnested-externs \
7997 -Wnonnull \
7998 -Wnormalized=nfc \
7999 -Wold-style-declaration \
8000 -Wold-style-definition \
8001 -Woverflow \
8002 -Woverlength-strings \
8003 -Woverride-init \
8004 -Wpacked \
8005 -Wpacked-bitfield-compat \
8006 -Wparentheses \
8007 -Wpointer-arith \
8008 -Wpointer-sign \
8009 -Wpointer-to-int-cast \
8010 -Wpragmas \
8011 -Wreturn-local-addr \
8012 -Wreturn-type \
8013 -Wsequence-point \
8014 -Wshadow \
8015 -Wsizeof-pointer-memaccess \
8016 -Wstack-protector \
8017 -Wstrict-aliasing \
8018 -Wstrict-overflow \
8019 -Wstrict-prototypes \
8020 -Wsuggest-attribute=const \
8021 -Wsuggest-attribute=format \
8022 -Wsuggest-attribute=noreturn \
8023 -Wsuggest-attribute=pure \
8024 -Wswitch \
8025 -Wswitch-default \
8026 -Wsync-nand \
8027 -Wsystem-headers \
8028 -Wtrampolines \
8029 -Wtrigraphs \
8030 -Wtype-limits \
8031 -Wuninitialized \
8032 -Wunknown-pragmas \
8033 -Wunsafe-loop-optimizations \
8034 -Wunused \
8035 -Wunused-but-set-parameter \
8036 -Wunused-but-set-variable \
8037 -Wunused-function \
8038 -Wunused-label \
8039 -Wunused-local-typedefs \
8040 -Wunused-macros \
8041 -Wunused-parameter \
8042 -Wunused-result \
8043 -Wunused-value \
8044 -Wunused-variable \
8045 -Wvarargs \
8046 -Wvariadic-macros \
8047 -Wvector-operation-performance \
8048 -Wvla \
8049 -Wvolatile-register-var \
8050 -Wwrite-strings \
8051 -fdiagnostics-show-option \
8052 -funit-at-a-time \
8054 ; do
8055 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
8056 done
8058 # Disable specific options as needed.
8059 if test "$gl_cv_cc_nomfi_needed" = yes; then
8060 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
8063 if test "$gl_cv_cc_uninitialized_supported" = no; then
8064 gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
8067 ws=$gl_manywarn_set
8070 gl_warn_set=
8071 set x $ws; shift
8072 for gl_warn_item
8074 case " $nw " in
8075 *" $gl_warn_item "*)
8078 gl_warn_set="$gl_warn_set $gl_warn_item"
8080 esac
8081 done
8082 ws=$gl_warn_set
8084 for w in $ws; do
8086 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
8087 gl_positive="$w"
8088 case $gl_positive in
8089 -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
8090 esac
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
8092 $as_echo_n "checking whether C compiler handles $w... " >&6; }
8093 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
8094 $as_echo_n "(cached) " >&6
8095 else
8097 gl_save_compiler_FLAGS="$CFLAGS"
8098 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive"
8099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8100 /* end confdefs.h. */
8103 main ()
8107 return 0;
8109 _ACEOF
8110 if ac_fn_c_try_link "$LINENO"; then :
8111 eval "$as_gl_Warn=yes"
8112 else
8113 eval "$as_gl_Warn=no"
8115 rm -f core conftest.err conftest.$ac_objext \
8116 conftest$ac_exeext conftest.$ac_ext
8117 CFLAGS="$gl_save_compiler_FLAGS"
8120 eval ac_res=\$$as_gl_Warn
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8122 $as_echo "$ac_res" >&6; }
8123 eval as_val=\$$as_gl_Warn
8124 if test "x$as_val" = x""yes; then :
8125 as_fn_append WARN_CFLAGS " $w"
8129 done
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
8132 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
8133 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
8134 $as_echo_n "(cached) " >&6
8135 else
8137 gl_save_compiler_FLAGS="$CFLAGS"
8138 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
8139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8140 /* end confdefs.h. */
8143 main ()
8147 return 0;
8149 _ACEOF
8150 if ac_fn_c_try_link "$LINENO"; then :
8151 gl_cv_warn_c__Wno_missing_field_initializers=yes
8152 else
8153 gl_cv_warn_c__Wno_missing_field_initializers=no
8155 rm -f core conftest.err conftest.$ac_objext \
8156 conftest$ac_exeext conftest.$ac_ext
8157 CFLAGS="$gl_save_compiler_FLAGS"
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
8161 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
8162 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
8163 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
8166 # We need this one
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
8169 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
8170 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
8171 $as_echo_n "(cached) " >&6
8172 else
8174 gl_save_compiler_FLAGS="$CFLAGS"
8175 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wsign-compare"
8176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8177 /* end confdefs.h. */
8180 main ()
8184 return 0;
8186 _ACEOF
8187 if ac_fn_c_try_link "$LINENO"; then :
8188 gl_cv_warn_c__Wno_sign_compare=yes
8189 else
8190 gl_cv_warn_c__Wno_sign_compare=no
8192 rm -f core conftest.err conftest.$ac_objext \
8193 conftest$ac_exeext conftest.$ac_ext
8194 CFLAGS="$gl_save_compiler_FLAGS"
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
8198 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
8199 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
8200 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
8203 # Too many warnings for now
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
8206 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
8207 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
8208 $as_echo_n "(cached) " >&6
8209 else
8211 gl_save_compiler_FLAGS="$CFLAGS"
8212 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wtype-limits"
8213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8214 /* end confdefs.h. */
8217 main ()
8221 return 0;
8223 _ACEOF
8224 if ac_fn_c_try_link "$LINENO"; then :
8225 gl_cv_warn_c__Wno_type_limits=yes
8226 else
8227 gl_cv_warn_c__Wno_type_limits=no
8229 rm -f core conftest.err conftest.$ac_objext \
8230 conftest$ac_exeext conftest.$ac_ext
8231 CFLAGS="$gl_save_compiler_FLAGS"
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
8235 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
8236 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
8237 as_fn_append WARN_CFLAGS " -Wno-type-limits"
8240 # Too many warnings for now
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
8243 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
8244 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
8245 $as_echo_n "(cached) " >&6
8246 else
8248 gl_save_compiler_FLAGS="$CFLAGS"
8249 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wswitch"
8250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251 /* end confdefs.h. */
8254 main ()
8258 return 0;
8260 _ACEOF
8261 if ac_fn_c_try_link "$LINENO"; then :
8262 gl_cv_warn_c__Wno_switch=yes
8263 else
8264 gl_cv_warn_c__Wno_switch=no
8266 rm -f core conftest.err conftest.$ac_objext \
8267 conftest$ac_exeext conftest.$ac_ext
8268 CFLAGS="$gl_save_compiler_FLAGS"
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
8272 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
8273 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
8274 as_fn_append WARN_CFLAGS " -Wno-switch"
8277 # Too many warnings for now
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
8280 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
8281 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
8282 $as_echo_n "(cached) " >&6
8283 else
8285 gl_save_compiler_FLAGS="$CFLAGS"
8286 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-parameter"
8287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h. */
8291 main ()
8295 return 0;
8297 _ACEOF
8298 if ac_fn_c_try_link "$LINENO"; then :
8299 gl_cv_warn_c__Wno_unused_parameter=yes
8300 else
8301 gl_cv_warn_c__Wno_unused_parameter=no
8303 rm -f core conftest.err conftest.$ac_objext \
8304 conftest$ac_exeext conftest.$ac_ext
8305 CFLAGS="$gl_save_compiler_FLAGS"
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
8309 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
8310 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
8311 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
8314 # Too many warnings for now
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
8317 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
8318 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
8319 $as_echo_n "(cached) " >&6
8320 else
8322 gl_save_compiler_FLAGS="$CFLAGS"
8323 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-nonliteral"
8324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8325 /* end confdefs.h. */
8328 main ()
8332 return 0;
8334 _ACEOF
8335 if ac_fn_c_try_link "$LINENO"; then :
8336 gl_cv_warn_c__Wno_format_nonliteral=yes
8337 else
8338 gl_cv_warn_c__Wno_format_nonliteral=no
8340 rm -f core conftest.err conftest.$ac_objext \
8341 conftest$ac_exeext conftest.$ac_ext
8342 CFLAGS="$gl_save_compiler_FLAGS"
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
8346 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
8347 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
8348 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
8353 # In spite of excluding -Wlogical-op above, it is enabled, as of
8354 # gcc 4.5.0 20090517.
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
8357 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
8358 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
8359 $as_echo_n "(cached) " >&6
8360 else
8362 gl_save_compiler_FLAGS="$CFLAGS"
8363 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wlogical-op"
8364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365 /* end confdefs.h. */
8368 main ()
8372 return 0;
8374 _ACEOF
8375 if ac_fn_c_try_link "$LINENO"; then :
8376 gl_cv_warn_c__Wno_logical_op=yes
8377 else
8378 gl_cv_warn_c__Wno_logical_op=no
8380 rm -f core conftest.err conftest.$ac_objext \
8381 conftest$ac_exeext conftest.$ac_ext
8382 CFLAGS="$gl_save_compiler_FLAGS"
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
8386 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
8387 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
8388 as_fn_append WARN_CFLAGS " -Wno-logical-op"
8393 # More things that clang is unduly picky about.
8394 if test $emacs_cv_clang = yes; then
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-extra-args" >&5
8397 $as_echo_n "checking whether C compiler handles -Wno-format-extra-args... " >&6; }
8398 if test "${gl_cv_warn_c__Wno_format_extra_args+set}" = set; then :
8399 $as_echo_n "(cached) " >&6
8400 else
8402 gl_save_compiler_FLAGS="$CFLAGS"
8403 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-extra-args"
8404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8405 /* end confdefs.h. */
8408 main ()
8412 return 0;
8414 _ACEOF
8415 if ac_fn_c_try_link "$LINENO"; then :
8416 gl_cv_warn_c__Wno_format_extra_args=yes
8417 else
8418 gl_cv_warn_c__Wno_format_extra_args=no
8420 rm -f core conftest.err conftest.$ac_objext \
8421 conftest$ac_exeext conftest.$ac_ext
8422 CFLAGS="$gl_save_compiler_FLAGS"
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_extra_args" >&5
8426 $as_echo "$gl_cv_warn_c__Wno_format_extra_args" >&6; }
8427 if test "x$gl_cv_warn_c__Wno_format_extra_args" = x""yes; then :
8428 as_fn_append WARN_CFLAGS " -Wno-format-extra-args"
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare" >&5
8434 $as_echo_n "checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare... " >&6; }
8435 if test "${gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare+set}" = set; then :
8436 $as_echo_n "(cached) " >&6
8437 else
8439 gl_save_compiler_FLAGS="$CFLAGS"
8440 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wtautological-constant-out-of-range-compare"
8441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8442 /* end confdefs.h. */
8445 main ()
8449 return 0;
8451 _ACEOF
8452 if ac_fn_c_try_link "$LINENO"; then :
8453 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare=yes
8454 else
8455 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare=no
8457 rm -f core conftest.err conftest.$ac_objext \
8458 conftest$ac_exeext conftest.$ac_ext
8459 CFLAGS="$gl_save_compiler_FLAGS"
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&5
8463 $as_echo "$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&6; }
8464 if test "x$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" = x""yes; then :
8465 as_fn_append WARN_CFLAGS " -Wno-tautological-constant-out-of-range-compare"
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-command-line-argument" >&5
8471 $as_echo_n "checking whether C compiler handles -Wno-unused-command-line-argument... " >&6; }
8472 if test "${gl_cv_warn_c__Wno_unused_command_line_argument+set}" = set; then :
8473 $as_echo_n "(cached) " >&6
8474 else
8476 gl_save_compiler_FLAGS="$CFLAGS"
8477 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-command-line-argument"
8478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479 /* end confdefs.h. */
8482 main ()
8486 return 0;
8488 _ACEOF
8489 if ac_fn_c_try_link "$LINENO"; then :
8490 gl_cv_warn_c__Wno_unused_command_line_argument=yes
8491 else
8492 gl_cv_warn_c__Wno_unused_command_line_argument=no
8494 rm -f core conftest.err conftest.$ac_objext \
8495 conftest$ac_exeext conftest.$ac_ext
8496 CFLAGS="$gl_save_compiler_FLAGS"
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_command_line_argument" >&5
8500 $as_echo "$gl_cv_warn_c__Wno_unused_command_line_argument" >&6; }
8501 if test "x$gl_cv_warn_c__Wno_unused_command_line_argument" = x""yes; then :
8502 as_fn_append WARN_CFLAGS " -Wno-unused-command-line-argument"
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-value" >&5
8508 $as_echo_n "checking whether C compiler handles -Wno-unused-value... " >&6; }
8509 if test "${gl_cv_warn_c__Wno_unused_value+set}" = set; then :
8510 $as_echo_n "(cached) " >&6
8511 else
8513 gl_save_compiler_FLAGS="$CFLAGS"
8514 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-value"
8515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8516 /* end confdefs.h. */
8519 main ()
8523 return 0;
8525 _ACEOF
8526 if ac_fn_c_try_link "$LINENO"; then :
8527 gl_cv_warn_c__Wno_unused_value=yes
8528 else
8529 gl_cv_warn_c__Wno_unused_value=no
8531 rm -f core conftest.err conftest.$ac_objext \
8532 conftest$ac_exeext conftest.$ac_ext
8533 CFLAGS="$gl_save_compiler_FLAGS"
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_value" >&5
8537 $as_echo "$gl_cv_warn_c__Wno_unused_value" >&6; }
8538 if test "x$gl_cv_warn_c__Wno_unused_value" = x""yes; then :
8539 as_fn_append WARN_CFLAGS " -Wno-unused-value"
8546 $as_echo "#define lint 1" >>confdefs.h
8550 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
8553 # We use a slightly smaller set of warning options for lib/.
8554 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
8556 nw="$nw -Wunused-macros"
8559 gl_warn_set=
8560 set x $WARN_CFLAGS; shift
8561 for gl_warn_item
8563 case " $nw " in
8564 *" $gl_warn_item "*)
8567 gl_warn_set="$gl_warn_set $gl_warn_item"
8569 esac
8570 done
8571 GNULIB_WARN_CFLAGS=$gl_warn_set
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works for files in the same directory" >&5
8582 $as_echo_n "checking whether ln -s works for files in the same directory... " >&6; }
8583 rm -f conf$$ conf$$.file
8585 LN_S_FILEONLY='cp -p'
8587 if (echo >conf$$.file) 2>/dev/null; then
8588 if ln -s conf$$.file conf$$ 2>/dev/null; then
8589 LN_S_FILEONLY='ln -s'
8590 elif ln conf$$.file conf$$ 2>/dev/null; then
8591 LN_S_FILEONLY=ln
8595 rm -f conf$$ conf$$.file
8597 if test "$LN_S_FILEONLY" = "ln -s"; then
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8599 $as_echo "yes" >&6; }
8600 else
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S_FILEONLY" >&5
8602 $as_echo "no, using $LN_S_FILEONLY" >&6; }
8608 if test "$opsys" = "mingw32"; then
8609 LN_S="ln"
8612 # Extract the first word of "install-info", so it can be a program name with args.
8613 set dummy install-info; ac_word=$2
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8615 $as_echo_n "checking for $ac_word... " >&6; }
8616 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8617 $as_echo_n "(cached) " >&6
8618 else
8619 case $INSTALL_INFO in
8620 [\\/]* | ?:[\\/]*)
8621 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
8624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8625 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
8627 IFS=$as_save_IFS
8628 test -z "$as_dir" && as_dir=.
8629 for ac_exec_ext in '' $ac_executable_extensions; do
8630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8631 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
8632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8633 break 2
8635 done
8636 done
8637 IFS=$as_save_IFS
8639 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
8641 esac
8643 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
8644 if test -n "$INSTALL_INFO"; then
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8646 $as_echo "$INSTALL_INFO" >&6; }
8647 else
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8649 $as_echo "no" >&6; }
8653 # Extract the first word of "gzip", so it can be a program name with args.
8654 set dummy gzip; ac_word=$2
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8656 $as_echo_n "checking for $ac_word... " >&6; }
8657 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8658 $as_echo_n "(cached) " >&6
8659 else
8660 case $GZIP_PROG in
8661 [\\/]* | ?:[\\/]*)
8662 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
8665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8666 for as_dir in $PATH
8668 IFS=$as_save_IFS
8669 test -z "$as_dir" && as_dir=.
8670 for ac_exec_ext in '' $ac_executable_extensions; do
8671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8672 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
8673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8674 break 2
8676 done
8677 done
8678 IFS=$as_save_IFS
8681 esac
8683 GZIP_PROG=$ac_cv_path_GZIP_PROG
8684 if test -n "$GZIP_PROG"; then
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8686 $as_echo "$GZIP_PROG" >&6; }
8687 else
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8689 $as_echo "no" >&6; }
8694 test $with_compress_install != yes && test -n "$GZIP_PROG" && \
8695 GZIP_PROG=" # $GZIP_PROG # (disabled by configure --without-compress-install)"
8697 if test $opsys = gnu-linux; then
8698 # Extract the first word of "paxctl", so it can be a program name with args.
8699 set dummy paxctl; ac_word=$2
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8701 $as_echo_n "checking for $ac_word... " >&6; }
8702 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8703 $as_echo_n "(cached) " >&6
8704 else
8705 case $PAXCTL in
8706 [\\/]* | ?:[\\/]*)
8707 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
8710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8711 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
8713 IFS=$as_save_IFS
8714 test -z "$as_dir" && as_dir=.
8715 for ac_exec_ext in '' $ac_executable_extensions; do
8716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8717 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
8718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8719 break 2
8721 done
8722 done
8723 IFS=$as_save_IFS
8726 esac
8728 PAXCTL=$ac_cv_path_PAXCTL
8729 if test -n "$PAXCTL"; then
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8731 $as_echo "$PAXCTL" >&6; }
8732 else
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734 $as_echo "no" >&6; }
8738 if test "X$PAXCTL" != X; then
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8740 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742 /* end confdefs.h. */
8745 main ()
8749 return 0;
8751 _ACEOF
8752 if ac_fn_c_try_link "$LINENO"; then :
8753 if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8754 $as_echo "yes" >&6; }
8755 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8756 $as_echo "no" >&6; }; PAXCTL=""; fi
8758 rm -f core conftest.err conftest.$ac_objext \
8759 conftest$ac_exeext conftest.$ac_ext
8763 ## Need makeinfo >= 4.7 (?) to build the manuals.
8764 # Extract the first word of "makeinfo", so it can be a program name with args.
8765 set dummy makeinfo; ac_word=$2
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8767 $as_echo_n "checking for $ac_word... " >&6; }
8768 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8769 $as_echo_n "(cached) " >&6
8770 else
8771 case $MAKEINFO in
8772 [\\/]* | ?:[\\/]*)
8773 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
8776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8777 for as_dir in $PATH
8779 IFS=$as_save_IFS
8780 test -z "$as_dir" && as_dir=.
8781 for ac_exec_ext in '' $ac_executable_extensions; do
8782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8783 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
8784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8785 break 2
8787 done
8788 done
8789 IFS=$as_save_IFS
8791 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
8793 esac
8795 MAKEINFO=$ac_cv_path_MAKEINFO
8796 if test -n "$MAKEINFO"; then
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8798 $as_echo "$MAKEINFO" >&6; }
8799 else
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8801 $as_echo "no" >&6; }
8805 if test "$MAKEINFO" != "no"; then
8806 case `
8807 $MAKEINFO --version 2> /dev/null |
8808 $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'
8809 ` in
8810 '') MAKEINFO=no;;
8811 esac
8814 ## Makeinfo is unusual. For a released Emacs, the manuals are
8815 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8816 ## therefore in the category of "special tools" not normally required, which
8817 ## configure does not have to check for (eg autoconf itself).
8818 ## In a Bazaar checkout on the other hand, the manuals are not included.
8819 ## So makeinfo is a requirement to build from Bazaar, and configure
8820 ## should test for it as it does for any other build requirement.
8821 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8822 ## with pre-built manuals, from a Bazaar checkout.
8823 HAVE_MAKEINFO=yes
8825 if test "$MAKEINFO" = "no"; then
8826 MAKEINFO=makeinfo
8827 if test "x${with_makeinfo}" = "xno"; then
8828 HAVE_MAKEINFO=no
8829 elif test ! -e "$srcdir/info/emacs" && test ! -e "$srcdir/info/emacs.info"; then
8830 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
8831 source tree does not seem to have pre-built manuals in the \`info' directory.
8832 Either install a suitable version of makeinfo, or re-run configure
8833 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8838 INFO_EXT=.info
8839 INFO_OPTS=--no-split
8843 if test $opsys = mingw32; then
8844 DOCMISC_W32=efaq-w32
8845 else
8846 DOCMISC_W32=
8851 if test x$GCC = xyes; then
8852 test "x$GCC_LINK_TEST_OPTIONS" != x && \
8853 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8854 else
8855 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8856 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8860 late_LDFLAGS="$LDFLAGS"
8861 if test x$GCC = xyes; then
8862 LDFLAGS_NOCOMBRELOC="-Wl,-znocombreloc"
8863 else
8864 LDFLAGS_NOCOMBRELOC="-znocombreloc"
8867 LDFLAGS="$LDFLAGS $LDFLAGS_NOCOMBRELOC"
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8870 $as_echo_n "checking for -znocombreloc... " >&6; }
8871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8872 /* end confdefs.h. */
8875 main ()
8879 return 0;
8881 _ACEOF
8882 if ac_fn_c_try_link "$LINENO"; then :
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8884 $as_echo "yes" >&6; }
8885 else
8886 LDFLAGS_NOCOMBRELOC=
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8888 $as_echo "no" >&6; }
8890 rm -f core conftest.err conftest.$ac_objext \
8891 conftest$ac_exeext conftest.$ac_ext
8893 LDFLAGS="$late_LDFLAGS"
8895 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8896 case "$opsys" in
8897 your-opsys-here) CANNOT_DUMP=yes ;;
8898 esac
8900 test "$CANNOT_DUMP" = "yes" && \
8902 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8908 UNEXEC_OBJ=unexelf.o
8909 case "$opsys" in
8910 # MSDOS uses unexcoff.o
8911 aix4-2)
8912 UNEXEC_OBJ=unexaix.o
8914 cygwin)
8915 UNEXEC_OBJ=unexcw.o
8917 darwin)
8918 UNEXEC_OBJ=unexmacosx.o
8920 hpux10-20 | hpux11)
8921 UNEXEC_OBJ=unexhp9k800.o
8923 mingw32)
8924 UNEXEC_OBJ=unexw32.o
8926 sol2-10)
8927 # Use the Solaris dldump() function, called from unexsol.c, to dump
8928 # emacs, instead of the generic ELF dump code found in unexelf.c.
8929 # The resulting binary has a complete symbol table, and is better
8930 # for debugging and other observability tools (debuggers, pstack, etc).
8932 # If you encounter a problem using dldump(), please consider sending
8933 # a message to the OpenSolaris tools-linking mailing list:
8934 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8936 # It is likely that dldump() works with older Solaris too, but this has
8937 # not been tested, so for now this change is for Solaris 10 or newer.
8938 UNEXEC_OBJ=unexsol.o
8940 esac
8942 LD_SWITCH_SYSTEM=
8943 case "$opsys" in
8944 freebsd|dragonfly)
8945 ## Let `ld' find image libs and similar things in /usr/local/lib.
8946 ## The system compiler, GCC, has apparently been modified to not
8947 ## look there, contrary to what a stock GCC would do.
8948 ### It's not our place to do this. See bug#10313#17.
8949 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8953 gnu-linux)
8954 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8955 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8958 netbsd)
8959 ### It's not our place to do this. See bug#10313#17.
8960 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8964 openbsd)
8965 ## Han Boetes <han@boetes.org> says this is necessary,
8966 ## otherwise Emacs dumps core on elf systems.
8967 LD_SWITCH_SYSTEM="-Z"
8969 esac
8972 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8974 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8975 ## which has not been defined yet. When this was handled with cpp,
8976 ## it was expanded to null when configure sourced the s/*.h file.
8977 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8978 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8979 ## (or somesuch), but because it is supposed to go at the _front_
8980 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8981 ## Compare with the gnu-linux case below, which added to the end
8982 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8983 ## LD_SWITCH_SYSTEM_TEMACS.
8984 case "$opsys" in
8985 netbsd|openbsd)
8986 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8987 esac
8990 C_SWITCH_MACHINE=
8991 case $canonical in
8992 alpha*)
8993 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8994 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8998 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8999 ## With ELF, make sure that all common symbols get allocated to in the
9000 ## data section. Otherwise, the dump of temacs may miss variables in
9001 ## the shared library that have been initialized. For example, with
9002 ## GNU libc, __malloc_initialized would normally be resolved to the
9003 ## shared library's .bss section, which is fatal.
9004 if test "x$GCC" = "xyes"; then
9005 C_SWITCH_MACHINE="-fno-common"
9006 else
9007 as_fn_error "Non-GCC compilers are not supported." "$LINENO" 5
9009 else
9010 as_fn_error "Non-ELF systems are not supported since Emacs 24.1." "$LINENO" 5
9013 esac
9018 C_SWITCH_SYSTEM=
9019 ## Some programs in src produce warnings saying certain subprograms
9020 ## are too complex and need a MAXMEM value greater than 2000 for
9021 ## additional optimization. --nils@exp-math.uni-essen.de
9022 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
9023 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
9024 test "$opsys" = "mingw32" && C_SWITCH_SYSTEM="-mtune=pentium4"
9025 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
9026 ## It is redundant in glibc2, since we define _GNU_SOURCE.
9030 LIBS_SYSTEM=
9031 case "$opsys" in
9032 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
9033 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
9035 freebsd|dragonfly) LIBS_SYSTEM="-lutil" ;;
9037 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
9039 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
9041 ## Motif needs -lgen.
9042 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
9043 esac
9047 ### Make sure subsequent tests use flags consistent with the build flags.
9049 if test x"${OVERRIDE_CPPFLAGS}" != x; then
9050 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
9051 else
9052 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
9055 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
9057 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
9061 LIB_MATH=-lm
9062 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
9064 case $opsys in
9065 cygwin )
9066 LIB_MATH=
9068 darwin )
9069 ## Adding -lm confuses the dynamic linker, so omit it.
9070 LIB_MATH=
9072 freebsd | dragonfly )
9073 SYSTEM_TYPE=berkeley-unix
9075 gnu-linux | gnu-kfreebsd )
9077 hpux10-20 | hpux11 )
9079 mingw32 )
9080 LIB_MATH=
9081 SYSTEM_TYPE=windows-nt
9083 netbsd | openbsd )
9084 SYSTEM_TYPE=berkeley-unix
9087 sol2* | unixware )
9088 SYSTEM_TYPE=usg-unix-v
9091 esac
9095 cat >>confdefs.h <<_ACEOF
9096 #define SYSTEM_TYPE "$SYSTEM_TYPE"
9097 _ACEOF
9101 pre_PKG_CONFIG_CFLAGS=$CFLAGS
9102 pre_PKG_CONFIG_LIBS=$LIBS
9104 # Extract the first word of "pkg-config", so it can be a program name with args.
9105 set dummy pkg-config; ac_word=$2
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9107 $as_echo_n "checking for $ac_word... " >&6; }
9108 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9109 $as_echo_n "(cached) " >&6
9110 else
9111 case $PKG_CONFIG in
9112 [\\/]* | ?:[\\/]*)
9113 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9117 for as_dir in $PATH
9119 IFS=$as_save_IFS
9120 test -z "$as_dir" && as_dir=.
9121 for ac_exec_ext in '' $ac_executable_extensions; do
9122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9123 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9125 break 2
9127 done
9128 done
9129 IFS=$as_save_IFS
9131 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9133 esac
9135 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9136 if test -n "$PKG_CONFIG"; then
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9138 $as_echo "$PKG_CONFIG" >&6; }
9139 else
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9141 $as_echo "no" >&6; }
9148 HAVE_SOUND=no
9149 if test "${with_sound}" != "no"; then
9150 # Sound support for GNU/Linux, the free BSDs, and MinGW.
9151 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
9152 do :
9153 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9154 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
9155 #ifdef __MINGW32__
9156 #define WIN32_LEAN_AND_MEAN
9157 #include <windows.h>
9158 #endif
9161 eval as_val=\$$as_ac_Header
9162 if test "x$as_val" = x""yes; then :
9163 cat >>confdefs.h <<_ACEOF
9164 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9165 _ACEOF
9166 have_sound_header=yes
9169 done
9171 test "${with_sound}" = "oss" && test "${have_sound_header}" != "yes" && \
9172 as_fn_error "OSS sound support requested but not found." "$LINENO" 5
9174 if test "${with_sound}" = "bsd-ossaudio" || test "${with_sound}" = "yes"; then
9175 # Emulation library used on NetBSD.
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
9177 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
9178 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
9179 $as_echo_n "(cached) " >&6
9180 else
9181 ac_check_lib_save_LIBS=$LIBS
9182 LIBS="-lossaudio $LIBS"
9183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9184 /* end confdefs.h. */
9186 /* Override any GCC internal prototype to avoid an error.
9187 Use char because int might match the return type of a GCC
9188 builtin and then its argument prototype would still apply. */
9189 #ifdef __cplusplus
9190 extern "C"
9191 #endif
9192 char _oss_ioctl ();
9194 main ()
9196 return _oss_ioctl ();
9198 return 0;
9200 _ACEOF
9201 if ac_fn_c_try_link "$LINENO"; then :
9202 ac_cv_lib_ossaudio__oss_ioctl=yes
9203 else
9204 ac_cv_lib_ossaudio__oss_ioctl=no
9206 rm -f core conftest.err conftest.$ac_objext \
9207 conftest$ac_exeext conftest.$ac_ext
9208 LIBS=$ac_check_lib_save_LIBS
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
9211 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
9212 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
9213 LIBSOUND=-lossaudio
9214 else
9215 LIBSOUND=
9218 test "${with_sound}" = "bsd-ossaudio" && test -z "$LIBSOUND" && \
9219 as_fn_error "bsd-ossaudio sound support requested but not found." "$LINENO" 5
9223 if test "${with_sound}" = "alsa" || test "${with_sound}" = "yes"; then
9224 ALSA_REQUIRED=1.0.0
9225 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
9227 succeeded=no
9229 if test "$PKG_CONFIG" = "no" ; then
9230 HAVE_ALSA=no
9231 else
9232 PKG_CONFIG_MIN_VERSION=0.9.0
9233 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
9235 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
9237 if "$PKG_CONFIG" --exists "$ALSA_MODULES" 2>&5 &&
9238 ALSA_CFLAGS=`"$PKG_CONFIG" --cflags "$ALSA_MODULES" 2>&5` &&
9239 ALSA_LIBS=`"$PKG_CONFIG" --libs "$ALSA_MODULES" 2>&5`; then
9240 edit_cflags="
9241 s,///*,/,g
9242 s/^/ /
9243 s/ -I/ $isystem/g
9244 s/^ //
9246 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
9247 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
9249 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
9250 succeeded=yes
9251 else
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9253 $as_echo "no" >&6; }
9254 ALSA_CFLAGS=""
9255 ALSA_LIBS=""
9256 ## If we have a custom action on failure, don't print errors, but
9257 ## do set a variable so people can do so. Do it in a subshell
9258 ## to capture any diagnostics in invoking pkg-config.
9259 ALSA_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$ALSA_MODULES") 2>&1`
9265 else
9266 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9267 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9271 if test $succeeded = yes; then
9272 HAVE_ALSA=yes
9273 else
9274 HAVE_ALSA=no
9277 if test $HAVE_ALSA = yes; then
9278 SAVE_CFLAGS="$CFLAGS"
9279 SAVE_LIBS="$LIBS"
9280 CFLAGS="$ALSA_CFLAGS $CFLAGS"
9281 LIBS="$ALSA_LIBS $LIBS"
9282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9283 /* end confdefs.h. */
9284 #include <asoundlib.h>
9286 main ()
9288 snd_lib_error_set_handler (0);
9290 return 0;
9292 _ACEOF
9293 if ac_fn_c_try_compile "$LINENO"; then :
9294 emacs_alsa_normal=yes
9295 else
9296 emacs_alsa_normal=no
9298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9299 if test "$emacs_alsa_normal" != yes; then
9300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9301 /* end confdefs.h. */
9302 #include <alsa/asoundlib.h>
9304 main ()
9306 snd_lib_error_set_handler (0);
9308 return 0;
9310 _ACEOF
9311 if ac_fn_c_try_compile "$LINENO"; then :
9312 emacs_alsa_subdir=yes
9313 else
9314 emacs_alsa_subdir=no
9316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9317 if test "$emacs_alsa_subdir" != yes; then
9318 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
9320 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
9323 CFLAGS="$SAVE_CFLAGS"
9324 LIBS="$SAVE_LIBS"
9325 LIBSOUND="$LIBSOUND $ALSA_LIBS"
9326 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
9328 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
9330 elif test "${with_sound}" = "alsa"; then
9331 as_fn_error "ALSA sound support requested but not found." "$LINENO" 5
9334 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
9335 case "$opsys" in
9336 gnu-linux|freebsd|netbsd|mingw32)
9338 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
9340 HAVE_SOUND=yes
9342 esac
9351 for ac_header in $ac_header_list
9352 do :
9353 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9354 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9356 eval as_val=\$$as_ac_Header
9357 if test "x$as_val" = x""yes; then :
9358 cat >>confdefs.h <<_ACEOF
9359 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9360 _ACEOF
9364 done
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
9385 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
9386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9387 /* end confdefs.h. */
9388 #include <sys/personality.h>
9390 main ()
9392 personality (PER_LINUX32)
9394 return 0;
9396 _ACEOF
9397 if ac_fn_c_try_compile "$LINENO"; then :
9398 emacs_cv_personality_linux32=yes
9399 else
9400 emacs_cv_personality_linux32=no
9402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
9404 $as_echo "$emacs_cv_personality_linux32" >&6; }
9406 if test $emacs_cv_personality_linux32 = yes; then
9408 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
9412 for ac_header in term.h
9413 do :
9414 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
9415 if test "x$ac_cv_header_term_h" = x""yes; then :
9416 cat >>confdefs.h <<_ACEOF
9417 #define HAVE_TERM_H 1
9418 _ACEOF
9422 done
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9425 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9426 if test "${ac_cv_header_time+set}" = set; then :
9427 $as_echo_n "(cached) " >&6
9428 else
9429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9430 /* end confdefs.h. */
9431 #include <sys/types.h>
9432 #include <sys/time.h>
9433 #include <time.h>
9436 main ()
9438 if ((struct tm *) 0)
9439 return 0;
9441 return 0;
9443 _ACEOF
9444 if ac_fn_c_try_compile "$LINENO"; then :
9445 ac_cv_header_time=yes
9446 else
9447 ac_cv_header_time=no
9449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9452 $as_echo "$ac_cv_header_time" >&6; }
9453 if test $ac_cv_header_time = yes; then
9455 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9459 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
9462 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
9463 ac_have_decl=1
9464 else
9465 ac_have_decl=0
9468 cat >>confdefs.h <<_ACEOF
9469 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9470 _ACEOF
9472 if test $ac_cv_have_decl_sys_siglist != yes; then
9473 # For Tru64, at least:
9474 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
9477 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
9478 ac_have_decl=1
9479 else
9480 ac_have_decl=0
9483 cat >>confdefs.h <<_ACEOF
9484 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9485 _ACEOF
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9489 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9490 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9491 $as_echo_n "(cached) " >&6
9492 else
9493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9494 /* end confdefs.h. */
9495 #include <sys/types.h>
9496 #include <sys/wait.h>
9497 #ifndef WEXITSTATUS
9498 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9499 #endif
9500 #ifndef WIFEXITED
9501 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9502 #endif
9505 main ()
9507 int s;
9508 wait (&s);
9509 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9511 return 0;
9513 _ACEOF
9514 if ac_fn_c_try_compile "$LINENO"; then :
9515 ac_cv_header_sys_wait_h=yes
9516 else
9517 ac_cv_header_sys_wait_h=no
9519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9522 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9523 if test $ac_cv_header_sys_wait_h = yes; then
9525 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9533 for ac_header in net/if.h
9534 do :
9535 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9536 #if HAVE_SYS_SOCKET_H
9537 #include <sys/socket.h>
9538 #endif
9540 if test "x$ac_cv_header_net_if_h" = x""yes; then :
9541 cat >>confdefs.h <<_ACEOF
9542 #define HAVE_NET_IF_H 1
9543 _ACEOF
9547 done
9549 for ac_header in ifaddrs.h
9550 do :
9551 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9552 #if HAVE_SYS_SOCKET_H
9553 #include <sys/socket.h>
9554 #endif
9556 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
9557 cat >>confdefs.h <<_ACEOF
9558 #define HAVE_IFADDRS_H 1
9559 _ACEOF
9563 done
9565 for ac_header in net/if_dl.h
9566 do :
9567 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9568 #if HAVE_SYS_SOCKET_H
9569 #include <sys/socket.h>
9570 #endif
9572 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
9573 cat >>confdefs.h <<_ACEOF
9574 #define HAVE_NET_IF_DL_H 1
9575 _ACEOF
9579 done
9582 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9583 #if HAVE_SYS_SOCKET_H
9584 #include <sys/socket.h>
9585 #endif
9586 #if HAVE_NET_IF_H
9587 #include <net/if.h>
9588 #endif
9590 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
9592 cat >>confdefs.h <<_ACEOF
9593 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9594 _ACEOF
9598 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9599 #if HAVE_SYS_SOCKET_H
9600 #include <sys/socket.h>
9601 #endif
9602 #if HAVE_NET_IF_H
9603 #include <net/if.h>
9604 #endif
9606 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
9608 cat >>confdefs.h <<_ACEOF
9609 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9610 _ACEOF
9614 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9615 #if HAVE_SYS_SOCKET_H
9616 #include <sys/socket.h>
9617 #endif
9618 #if HAVE_NET_IF_H
9619 #include <net/if.h>
9620 #endif
9622 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9624 cat >>confdefs.h <<_ACEOF
9625 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9626 _ACEOF
9630 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9631 #if HAVE_SYS_SOCKET_H
9632 #include <sys/socket.h>
9633 #endif
9634 #if HAVE_NET_IF_H
9635 #include <net/if.h>
9636 #endif
9638 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9640 cat >>confdefs.h <<_ACEOF
9641 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9642 _ACEOF
9646 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9647 #if HAVE_SYS_SOCKET_H
9648 #include <sys/socket.h>
9649 #endif
9650 #if HAVE_NET_IF_H
9651 #include <net/if.h>
9652 #endif
9654 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9656 cat >>confdefs.h <<_ACEOF
9657 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9658 _ACEOF
9662 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9663 #if HAVE_SYS_SOCKET_H
9664 #include <sys/socket.h>
9665 #endif
9666 #if HAVE_NET_IF_H
9667 #include <net/if.h>
9668 #endif
9670 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9672 cat >>confdefs.h <<_ACEOF
9673 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9674 _ACEOF
9682 DEPFLAGS=
9683 MKDEPDIR=":"
9684 deps_frag=deps.mk
9685 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9687 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9688 HAVE_GNU_MAKE=no
9689 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9690 if test "x$testval" != x; then
9691 HAVE_GNU_MAKE=yes
9692 else
9693 ac_enable_autodepend=no
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9696 $as_echo "$HAVE_GNU_MAKE" >&6; }
9697 if test $HAVE_GNU_MAKE = yes; then
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9699 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9700 SAVE_CFLAGS="$CFLAGS"
9701 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9703 /* end confdefs.h. */
9706 main ()
9710 return 0;
9712 _ACEOF
9713 if ac_fn_c_try_compile "$LINENO"; then :
9715 else
9716 ac_enable_autodepend=no
9718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9719 CFLAGS="$SAVE_CFLAGS"
9720 test -f deps.d || ac_enable_autodepend=no
9721 rm -rf deps.d
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9723 $as_echo "$ac_enable_autodepend" >&6; }
9725 if test $ac_enable_autodepend = yes; then
9726 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9727 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9728 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9729 deps_frag=autodeps.mk
9732 deps_frag=$srcdir/src/$deps_frag
9738 lisp_frag=$srcdir/src/lisp.mk
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9743 $as_echo_n "checking for long file names... " >&6; }
9744 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9745 $as_echo_n "(cached) " >&6
9746 else
9747 ac_cv_sys_long_file_names=yes
9748 # Test for long file names in all the places we know might matter:
9749 # . the current directory, where building will happen
9750 # $prefix/lib where we will be installing things
9751 # $exec_prefix/lib likewise
9752 # $TMPDIR if set, where it might want to write temporary files
9753 # /tmp where it might want to write temporary files
9754 # /var/tmp likewise
9755 # /usr/tmp likewise
9756 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9757 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9758 # in the usual case where exec_prefix is '${prefix}'.
9759 case $ac_dir in #(
9760 . | /* | ?:[\\/]*) ;; #(
9761 *) continue;;
9762 esac
9763 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9764 ac_xdir=$ac_dir/cf$$
9765 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9766 ac_tf1=$ac_xdir/conftest9012345
9767 ac_tf2=$ac_xdir/conftest9012346
9768 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9769 ac_cv_sys_long_file_names=no
9770 rm -f -r "$ac_xdir" 2>/dev/null
9771 test $ac_cv_sys_long_file_names = no && break
9772 done
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9775 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9776 if test $ac_cv_sys_long_file_names = yes; then
9778 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9783 #### Choose a window system.
9785 ## We leave window_system equal to none if
9786 ## we end up building without one. Any new window system should
9787 ## set window_system to an appropriate value and add objects to
9788 ## window-system-specific substs.
9790 window_system=none
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9792 $as_echo_n "checking for X... " >&6; }
9795 # Check whether --with-x was given.
9796 if test "${with_x+set}" = set; then :
9797 withval=$with_x;
9800 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9801 if test "x$with_x" = xno; then
9802 # The user explicitly disabled X.
9803 have_x=disabled
9804 else
9805 case $x_includes,$x_libraries in #(
9806 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9807 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9808 $as_echo_n "(cached) " >&6
9809 else
9810 # One or both of the vars are not set, and there is no cached value.
9811 ac_x_includes=no ac_x_libraries=no
9812 rm -f -r conftest.dir
9813 if mkdir conftest.dir; then
9814 cd conftest.dir
9815 cat >Imakefile <<'_ACEOF'
9816 incroot:
9817 @echo incroot='${INCROOT}'
9818 usrlibdir:
9819 @echo usrlibdir='${USRLIBDIR}'
9820 libdir:
9821 @echo libdir='${LIBDIR}'
9822 _ACEOF
9823 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9824 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9825 for ac_var in incroot usrlibdir libdir; do
9826 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9827 done
9828 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9829 for ac_extension in a so sl dylib la dll; do
9830 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9831 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9832 ac_im_usrlibdir=$ac_im_libdir; break
9834 done
9835 # Screen out bogus values from the imake configuration. They are
9836 # bogus both because they are the default anyway, and because
9837 # using them would break gcc on systems where it needs fixed includes.
9838 case $ac_im_incroot in
9839 /usr/include) ac_x_includes= ;;
9840 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9841 esac
9842 case $ac_im_usrlibdir in
9843 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9844 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9845 esac
9847 cd ..
9848 rm -f -r conftest.dir
9851 # Standard set of common directories for X headers.
9852 # Check X11 before X11Rn because it is often a symlink to the current release.
9853 ac_x_header_dirs='
9854 /usr/X11/include
9855 /usr/X11R7/include
9856 /usr/X11R6/include
9857 /usr/X11R5/include
9858 /usr/X11R4/include
9860 /usr/include/X11
9861 /usr/include/X11R7
9862 /usr/include/X11R6
9863 /usr/include/X11R5
9864 /usr/include/X11R4
9866 /usr/local/X11/include
9867 /usr/local/X11R7/include
9868 /usr/local/X11R6/include
9869 /usr/local/X11R5/include
9870 /usr/local/X11R4/include
9872 /usr/local/include/X11
9873 /usr/local/include/X11R7
9874 /usr/local/include/X11R6
9875 /usr/local/include/X11R5
9876 /usr/local/include/X11R4
9878 /usr/X386/include
9879 /usr/x386/include
9880 /usr/XFree86/include/X11
9882 /usr/include
9883 /usr/local/include
9884 /usr/unsupported/include
9885 /usr/athena/include
9886 /usr/local/x11r5/include
9887 /usr/lpp/Xamples/include
9889 /usr/openwin/include
9890 /usr/openwin/share/include'
9892 if test "$ac_x_includes" = no; then
9893 # Guess where to find include files, by looking for Xlib.h.
9894 # First, try using that file with no special directory specified.
9895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9896 /* end confdefs.h. */
9897 #include <X11/Xlib.h>
9898 _ACEOF
9899 if ac_fn_c_try_cpp "$LINENO"; then :
9900 # We can compile using X headers with no special include directory.
9901 ac_x_includes=
9902 else
9903 for ac_dir in $ac_x_header_dirs; do
9904 if test -r "$ac_dir/X11/Xlib.h"; then
9905 ac_x_includes=$ac_dir
9906 break
9908 done
9910 rm -f conftest.err conftest.$ac_ext
9911 fi # $ac_x_includes = no
9913 if test "$ac_x_libraries" = no; then
9914 # Check for the libraries.
9915 # See if we find them without any special options.
9916 # Don't add to $LIBS permanently.
9917 ac_save_LIBS=$LIBS
9918 LIBS="-lX11 $LIBS"
9919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9920 /* end confdefs.h. */
9921 #include <X11/Xlib.h>
9923 main ()
9925 XrmInitialize ()
9927 return 0;
9929 _ACEOF
9930 if ac_fn_c_try_link "$LINENO"; then :
9931 LIBS=$ac_save_LIBS
9932 # We can link X programs with no special library path.
9933 ac_x_libraries=
9934 else
9935 LIBS=$ac_save_LIBS
9936 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9938 # Don't even attempt the hair of trying to link an X program!
9939 for ac_extension in a so sl dylib la dll; do
9940 if test -r "$ac_dir/libX11.$ac_extension"; then
9941 ac_x_libraries=$ac_dir
9942 break 2
9944 done
9945 done
9947 rm -f core conftest.err conftest.$ac_objext \
9948 conftest$ac_exeext conftest.$ac_ext
9949 fi # $ac_x_libraries = no
9951 case $ac_x_includes,$ac_x_libraries in #(
9952 no,* | *,no | *\'*)
9953 # Didn't find X, or a directory has "'" in its name.
9954 ac_cv_have_x="have_x=no";; #(
9956 # Record where we found X for the cache.
9957 ac_cv_have_x="have_x=yes\
9958 ac_x_includes='$ac_x_includes'\
9959 ac_x_libraries='$ac_x_libraries'"
9960 esac
9962 ;; #(
9963 *) have_x=yes;;
9964 esac
9965 eval "$ac_cv_have_x"
9966 fi # $with_x != no
9968 if test "$have_x" != yes; then
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9970 $as_echo "$have_x" >&6; }
9971 no_x=yes
9972 else
9973 # If each of the values was on the command line, it overrides each guess.
9974 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9975 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9976 # Update the cache value to reflect the command line values.
9977 ac_cv_have_x="have_x=yes\
9978 ac_x_includes='$x_includes'\
9979 ac_x_libraries='$x_libraries'"
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9981 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9984 if test "$no_x" != yes; then
9985 window_system=x11
9988 LD_SWITCH_X_SITE_RPATH=
9989 if test "${x_libraries}" != NONE; then
9990 if test -n "${x_libraries}"; then
9991 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9992 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9994 x_default_search_path=""
9995 x_search_path=${x_libraries}
9996 if test -z "${x_search_path}"; then
9997 x_search_path=/usr/lib
9999 for x_library in `echo ${x_search_path}: | \
10000 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
10001 x_search_path="\
10002 ${x_library}/X11/%L/%T/%N%C%S:\
10003 ${x_library}/X11/%l/%T/%N%C%S:\
10004 ${x_library}/X11/%T/%N%C%S:\
10005 ${x_library}/X11/%L/%T/%N%S:\
10006 ${x_library}/X11/%l/%T/%N%S:\
10007 ${x_library}/X11/%T/%N%S"
10008 if test x"${x_default_search_path}" = x; then
10009 x_default_search_path=${x_search_path}
10010 else
10011 x_default_search_path="${x_search_path}:${x_default_search_path}"
10013 done
10017 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
10018 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
10021 if test x"${x_includes}" = x; then
10022 bitmapdir=/usr/include/X11/bitmaps
10023 else
10024 # accumulate include directories that have X11 bitmap subdirectories
10025 bmd_acc="dummyval"
10026 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
10027 if test -d "${bmd}/X11/bitmaps"; then
10028 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
10030 if test -d "${bmd}/bitmaps"; then
10031 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
10033 done
10034 if test ${bmd_acc} != "dummyval"; then
10035 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
10039 HAVE_NS=no
10040 NS_IMPL_COCOA=no
10041 NS_IMPL_GNUSTEP=no
10042 tmp_CPPFLAGS="$CPPFLAGS"
10043 tmp_CFLAGS="$CFLAGS"
10044 CPPFLAGS="$CPPFLAGS -x objective-c"
10045 CFLAGS="$CFLAGS -x objective-c"
10046 GNU_OBJC_CFLAGS=
10047 LIBS_GNUSTEP=
10048 if test "${with_ns}" != no; then
10049 if test "${opsys}" = darwin; then
10050 NS_IMPL_COCOA=yes
10051 ns_appdir=`pwd`/nextstep/Emacs.app
10052 ns_appbindir=${ns_appdir}/Contents/MacOS
10053 ns_appresdir=${ns_appdir}/Contents/Resources
10054 ns_appsrc=Cocoa/Emacs.base
10055 elif test -f $GNUSTEP_CONFIG_FILE; then
10056 NS_IMPL_GNUSTEP=yes
10057 ns_appdir=`pwd`/nextstep/Emacs.app
10058 ns_appbindir=${ns_appdir}
10059 ns_appresdir=${ns_appdir}/Resources
10060 ns_appsrc=GNUstep/Emacs.base
10061 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
10062 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
10063 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
10064 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
10065 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
10066 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
10067 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
10068 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
10069 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
10070 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
10071 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
10072 LIBS_GNUSTEP="-lgnustep-gui -lgnustep-base -lobjc -lpthread"
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
10074 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
10075 if test "${emacs_cv_objc_exceptions+set}" = set; then :
10076 $as_echo_n "(cached) " >&6
10077 else
10078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10079 /* end confdefs.h. */
10080 #include <GNUstepBase/GSConfig.h>
10082 main ()
10084 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
10086 #else
10087 fail;
10088 #endif
10090 return 0;
10092 _ACEOF
10093 if ac_fn_c_try_compile "$LINENO"; then :
10094 emacs_cv_objc_exceptions=yes
10095 else
10096 emacs_cv_objc_exceptions=no
10098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
10101 $as_echo "$emacs_cv_objc_exceptions" >&6; }
10102 if test $emacs_cv_objc_exceptions = yes; then
10104 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
10106 GNU_OBJC_CFLAGS="-fobjc-exceptions"
10110 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
10112 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
10113 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
10114 HAVE_NS=yes
10115 else
10116 as_fn_error "\`--with-ns' was specified, but the include
10117 files are missing or cannot be compiled." "$LINENO" 5
10122 macfont_file=""
10123 if test "${NS_IMPL_COCOA}" = "yes"; then
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.4 or newer" >&5
10125 $as_echo_n "checking for OSX 10.4 or newer... " >&6; }
10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10128 #include <AppKit/AppKit.h>
10130 main ()
10133 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
10134 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
10135 ; /* OK */
10136 #else
10137 #error "OSX 10.4 or newer required"
10138 #endif
10139 #endif
10142 return 0;
10144 _ACEOF
10145 if ac_fn_c_try_compile "$LINENO"; then :
10146 ns_osx_have_104=yes
10147 else
10148 ns_osx_have_104=no
10150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ns_osx_have_104" >&5
10152 $as_echo "$ns_osx_have_104" >&6; }
10154 if test $ns_osx_have_104 = no; then
10155 as_fn_error "\`OSX 10.4 or newer is required'" "$LINENO" 5;
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 or newer" >&5
10158 $as_echo_n "checking for OSX 10.5 or newer... " >&6; }
10159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10160 /* end confdefs.h. */
10161 #include <AppKit/AppKit.h>
10163 main ()
10166 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
10167 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1050
10168 ; /* OK */
10169 #else
10170 #error "OSX 10.5 not found"
10171 #endif
10172 #endif
10175 return 0;
10177 _ACEOF
10178 if ac_fn_c_try_compile "$LINENO"; then :
10179 ns_osx_have_105=yes
10180 else
10181 ns_osx_have_105=no
10183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ns_osx_have_105" >&5
10185 $as_echo "$ns_osx_have_105" >&6; }
10186 if test $ns_osx_have_105 = yes; then
10187 macfont_file="macfont.o"
10190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10191 /* end confdefs.h. */
10192 #include <Foundation/NSObjCRuntime.h>
10194 main ()
10196 NSInteger i;
10198 return 0;
10200 _ACEOF
10201 if ac_fn_c_try_compile "$LINENO"; then :
10202 ns_have_nsinteger=yes
10203 else
10204 ns_have_nsinteger=no
10206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10207 if test $ns_have_nsinteger = yes; then
10209 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10216 INSTALL_ARCH_INDEP_EXTRA=install-etc
10217 ns_self_contained=no
10218 NS_OBJ=
10219 NS_OBJC_OBJ=
10220 if test "${HAVE_NS}" = yes; then
10221 if test "$with_toolkit_scroll_bars" = "no"; then
10222 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
10225 window_system=nextstep
10226 # set up packaging dirs
10227 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10228 ns_self_contained=yes
10229 prefix=${ns_appresdir}
10230 exec_prefix=${ns_appbindir}
10231 libexecdir="\${ns_appbindir}/libexec"
10232 archlibdir="\${ns_appbindir}/libexec"
10233 etcdocdir="\${ns_appresdir}/etc"
10234 etcdir="\${ns_appresdir}/etc"
10235 infodir="\${ns_appresdir}/info"
10236 mandir="\${ns_appresdir}/man"
10237 lispdir="\${ns_appresdir}/lisp"
10238 leimdir="\${ns_appresdir}/leim"
10239 INSTALL_ARCH_INDEP_EXTRA=
10242 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o $macfont_file"
10244 CFLAGS="$tmp_CFLAGS"
10245 CPPFLAGS="$tmp_CPPFLAGS"
10251 HAVE_W32=no
10252 W32_OBJ=
10253 W32_LIBS=
10254 EMACSRES=
10255 CLIENTRES=
10256 CLIENTW=
10257 W32_RES_LINK=
10258 EMACS_MANIFEST=
10259 UPDATE_MANIFEST=
10260 if test "${with_w32}" != no; then
10261 case "${opsys}" in
10262 cygwin)
10263 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
10264 if test "x$ac_cv_header_windows_h" = x""yes; then :
10265 HAVE_W32=yes
10266 else
10267 as_fn_error "\`--with-w32' was specified, but windows.h
10268 cannot be found." "$LINENO" 5
10273 mingw32)
10274 ## Using --with-w32 with MinGW is a no-op, but we allow it.
10277 as_fn_error "Using w32 with an autotools build is only supported for Cygwin and MinGW32." "$LINENO" 5
10279 esac
10282 if test "${opsys}" = "mingw32"; then
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Windows API headers are recent enough" >&5
10284 $as_echo_n "checking whether Windows API headers are recent enough... " >&6; }
10285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10286 /* end confdefs.h. */
10288 #include <windows.h>
10289 #include <usp10.h>
10291 main ()
10293 PIMAGE_NT_HEADERS pHeader;
10294 PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader)
10296 return 0;
10298 _ACEOF
10299 if ac_fn_c_try_compile "$LINENO"; then :
10300 emacs_cv_w32api=yes
10301 HAVE_W32=yes
10302 else
10303 emacs_cv_w32api=no
10305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_w32api" >&5
10307 $as_echo "$emacs_cv_w32api" >&6; }
10308 if test "${emacs_cv_w32api}" = "no"; then
10309 as_fn_error "the Windows API headers are too old to support this build." "$LINENO" 5
10313 FIRSTFILE_OBJ=
10314 NTDIR=
10315 LIBS_ECLIENT=
10316 LIB_WSOCK32=
10317 NTLIB=
10318 CM_OBJ="cm.o"
10319 XARGS_LIMIT=
10320 if test "${HAVE_W32}" = "yes"; then
10322 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
10324 if test -n "$ac_tool_prefix"; then
10325 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10326 set dummy ${ac_tool_prefix}windres; ac_word=$2
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10328 $as_echo_n "checking for $ac_word... " >&6; }
10329 if test "${ac_cv_prog_WINDRES+set}" = set; then :
10330 $as_echo_n "(cached) " >&6
10331 else
10332 if test -n "$WINDRES"; then
10333 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10334 else
10335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10336 for as_dir in $PATH
10338 IFS=$as_save_IFS
10339 test -z "$as_dir" && as_dir=.
10340 for ac_exec_ext in '' $ac_executable_extensions; do
10341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10342 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10344 break 2
10346 done
10347 done
10348 IFS=$as_save_IFS
10352 WINDRES=$ac_cv_prog_WINDRES
10353 if test -n "$WINDRES"; then
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10355 $as_echo "$WINDRES" >&6; }
10356 else
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10358 $as_echo "no" >&6; }
10363 if test -z "$ac_cv_prog_WINDRES"; then
10364 ac_ct_WINDRES=$WINDRES
10365 # Extract the first word of "windres", so it can be a program name with args.
10366 set dummy windres; ac_word=$2
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10368 $as_echo_n "checking for $ac_word... " >&6; }
10369 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
10370 $as_echo_n "(cached) " >&6
10371 else
10372 if test -n "$ac_ct_WINDRES"; then
10373 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10374 else
10375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10376 for as_dir in $PATH
10378 IFS=$as_save_IFS
10379 test -z "$as_dir" && as_dir=.
10380 for ac_exec_ext in '' $ac_executable_extensions; do
10381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10382 ac_cv_prog_ac_ct_WINDRES="windres"
10383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10384 break 2
10386 done
10387 done
10388 IFS=$as_save_IFS
10392 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10393 if test -n "$ac_ct_WINDRES"; then
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10395 $as_echo "$ac_ct_WINDRES" >&6; }
10396 else
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10398 $as_echo "no" >&6; }
10401 if test "x$ac_ct_WINDRES" = x; then
10402 WINDRES="as_fn_error "No resource compiler found." "$LINENO" 5"
10403 else
10404 case $cross_compiling:$ac_tool_warned in
10405 yes:)
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10408 ac_tool_warned=yes ;;
10409 esac
10410 WINDRES=$ac_ct_WINDRES
10412 else
10413 WINDRES="$ac_cv_prog_WINDRES"
10416 W32_OBJ="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
10417 W32_OBJ="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
10418 EMACSRES="emacs.res"
10419 case "$canonical" in
10420 x86_64-*-*) EMACS_MANIFEST="emacs-x64.manifest" ;;
10421 *) EMACS_MANIFEST="emacs-x86.manifest" ;;
10422 esac
10423 UPDATE_MANIFEST=update-game-score.exe.manifest
10424 if test "${opsys}" = "cygwin"; then
10425 W32_LIBS="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
10426 W32_LIBS="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
10427 # Tell the linker that emacs.res is an object (which we compile from
10428 # the rc file), not a linker script.
10429 W32_RES_LINK="-Wl,emacs.res"
10430 else
10431 W32_OBJ="$W32_OBJ w32.o w32console.o w32heap.o w32inevt.o w32proc.o"
10432 W32_LIBS="$W32_LIBS -lwinmm -lgdi32 -lcomdlg32"
10433 W32_LIBS="$W32_LIBS -lmpr -lwinspool -lole32 -lcomctl32 -lusp10"
10434 W32_RES_LINK="\$(EMACSRES)"
10435 CLIENTRES="emacsclient.res"
10436 CLIENTW="emacsclientw\$(EXEEXT)"
10437 FIRSTFILE_OBJ=firstfile.o
10438 NTDIR=nt
10439 CM_OBJ=
10440 LIBS_ECLIENT="-lcomctl32"
10441 LIB_WSOCK32="-lwsock32"
10442 NTLIB="ntlib.$ac_objext"
10443 XARGS_LIMIT="-s 10000"
10462 if test "${HAVE_W32}" = "yes"; then
10463 window_system=w32
10464 with_xft=no
10467 ## $window_system is now set to the window system we will
10468 ## ultimately use.
10470 if test "$window_system" = none && test "$gl_gcc_warnings" = yes; then
10471 # Too many warnings for now.
10473 nw="$nw -Wsuggest-attribute=const"
10474 nw="$nw -Wsuggest-attribute=noreturn"
10476 gl_warn_set=
10477 set x $WARN_CFLAGS; shift
10478 for gl_warn_item
10480 case " $nw " in
10481 *" $gl_warn_item "*)
10484 gl_warn_set="$gl_warn_set $gl_warn_item"
10486 esac
10487 done
10488 WARN_CFLAGS=$gl_warn_set
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-variable" >&5
10493 $as_echo_n "checking whether C compiler handles -Wno-unused-variable... " >&6; }
10494 if test "${gl_cv_warn_c__Wno_unused_variable+set}" = set; then :
10495 $as_echo_n "(cached) " >&6
10496 else
10498 gl_save_compiler_FLAGS="$CFLAGS"
10499 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-variable"
10500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10501 /* end confdefs.h. */
10504 main ()
10508 return 0;
10510 _ACEOF
10511 if ac_fn_c_try_link "$LINENO"; then :
10512 gl_cv_warn_c__Wno_unused_variable=yes
10513 else
10514 gl_cv_warn_c__Wno_unused_variable=no
10516 rm -f core conftest.err conftest.$ac_objext \
10517 conftest$ac_exeext conftest.$ac_ext
10518 CFLAGS="$gl_save_compiler_FLAGS"
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_variable" >&5
10522 $as_echo "$gl_cv_warn_c__Wno_unused_variable" >&6; }
10523 if test "x$gl_cv_warn_c__Wno_unused_variable" = x""yes; then :
10524 as_fn_append WARN_CFLAGS " -Wno-unused-variable"
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-but-set-variable" >&5
10530 $as_echo_n "checking whether C compiler handles -Wno-unused-but-set-variable... " >&6; }
10531 if test "${gl_cv_warn_c__Wno_unused_but_set_variable+set}" = set; then :
10532 $as_echo_n "(cached) " >&6
10533 else
10535 gl_save_compiler_FLAGS="$CFLAGS"
10536 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-but-set-variable"
10537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10538 /* end confdefs.h. */
10541 main ()
10545 return 0;
10547 _ACEOF
10548 if ac_fn_c_try_link "$LINENO"; then :
10549 gl_cv_warn_c__Wno_unused_but_set_variable=yes
10550 else
10551 gl_cv_warn_c__Wno_unused_but_set_variable=no
10553 rm -f core conftest.err conftest.$ac_objext \
10554 conftest$ac_exeext conftest.$ac_ext
10555 CFLAGS="$gl_save_compiler_FLAGS"
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_but_set_variable" >&5
10559 $as_echo "$gl_cv_warn_c__Wno_unused_but_set_variable" >&6; }
10560 if test "x$gl_cv_warn_c__Wno_unused_but_set_variable" = x""yes; then :
10561 as_fn_append WARN_CFLAGS " -Wno-unused-but-set-variable"
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-but-set-parameter" >&5
10567 $as_echo_n "checking whether C compiler handles -Wno-unused-but-set-parameter... " >&6; }
10568 if test "${gl_cv_warn_c__Wno_unused_but_set_parameter+set}" = set; then :
10569 $as_echo_n "(cached) " >&6
10570 else
10572 gl_save_compiler_FLAGS="$CFLAGS"
10573 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-but-set-parameter"
10574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10575 /* end confdefs.h. */
10578 main ()
10582 return 0;
10584 _ACEOF
10585 if ac_fn_c_try_link "$LINENO"; then :
10586 gl_cv_warn_c__Wno_unused_but_set_parameter=yes
10587 else
10588 gl_cv_warn_c__Wno_unused_but_set_parameter=no
10590 rm -f core conftest.err conftest.$ac_objext \
10591 conftest$ac_exeext conftest.$ac_ext
10592 CFLAGS="$gl_save_compiler_FLAGS"
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_but_set_parameter" >&5
10596 $as_echo "$gl_cv_warn_c__Wno_unused_but_set_parameter" >&6; }
10597 if test "x$gl_cv_warn_c__Wno_unused_but_set_parameter" = x""yes; then :
10598 as_fn_append WARN_CFLAGS " -Wno-unused-but-set-parameter"
10604 term_header=
10605 HAVE_X_WINDOWS=no
10606 HAVE_X11=no
10607 USE_X_TOOLKIT=none
10609 case "${window_system}" in
10610 x11 )
10611 HAVE_X_WINDOWS=yes
10612 HAVE_X11=yes
10613 term_header=xterm.h
10614 case "${with_x_toolkit}" in
10615 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10616 motif ) USE_X_TOOLKIT=MOTIF ;;
10617 gtk ) with_gtk=yes
10618 term_header=gtkutil.h
10619 USE_X_TOOLKIT=none ;;
10620 gtk2 ) with_gtk2=yes
10621 term_header=gtkutil.h
10622 USE_X_TOOLKIT=none ;;
10623 gtk3 ) with_gtk3=yes
10624 term_header=gtkutil.h
10625 USE_X_TOOLKIT=none ;;
10626 no ) USE_X_TOOLKIT=none ;;
10627 * ) USE_X_TOOLKIT=maybe ;;
10628 esac
10630 nextstep )
10631 term_header=nsterm.h
10633 w32 )
10634 term_header=w32term.h
10636 esac
10638 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10639 # Extract the first word of "X", so it can be a program name with args.
10640 set dummy X; ac_word=$2
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10642 $as_echo_n "checking for $ac_word... " >&6; }
10643 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
10644 $as_echo_n "(cached) " >&6
10645 else
10646 if test -n "$HAVE_XSERVER"; then
10647 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10648 else
10649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10650 for as_dir in $PATH
10652 IFS=$as_save_IFS
10653 test -z "$as_dir" && as_dir=.
10654 for ac_exec_ext in '' $ac_executable_extensions; do
10655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10656 ac_cv_prog_HAVE_XSERVER="true"
10657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10658 break 2
10660 done
10661 done
10662 IFS=$as_save_IFS
10664 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10667 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10668 if test -n "$HAVE_XSERVER"; then
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10670 $as_echo "$HAVE_XSERVER" >&6; }
10671 else
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10673 $as_echo "no" >&6; }
10677 if test "$HAVE_XSERVER" = true ||
10678 test -n "$DISPLAY" ||
10679 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10680 as_fn_error "You seem to be running X, but no X development libraries
10681 were found. You should install the relevant development files for X
10682 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10683 sure you have development files for image handling, i.e.
10684 tiff, gif, jpeg, png and xpm.
10685 If you are sure you want Emacs compiled without X window support, pass
10686 --without-x
10687 to configure." "$LINENO" 5
10691 ### We always support menus.
10692 HAVE_MENUS=yes
10694 # Does the opsystem file prohibit the use of the GNU malloc?
10695 # Assume not, until told otherwise.
10696 GNU_MALLOC=yes
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10699 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10700 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10701 $as_echo_n "(cached) " >&6
10702 else
10703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10704 /* end confdefs.h. */
10705 #include <malloc.h>
10706 static void hook (void) {}
10708 main ()
10710 malloc_set_state (malloc_get_state ());
10711 __after_morecore_hook = hook;
10712 __malloc_initialize_hook = hook;
10714 return 0;
10716 _ACEOF
10717 if ac_fn_c_try_link "$LINENO"; then :
10718 emacs_cv_var_doug_lea_malloc=yes
10719 else
10720 emacs_cv_var_doug_lea_malloc=no
10722 rm -f core conftest.err conftest.$ac_objext \
10723 conftest$ac_exeext conftest.$ac_ext
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10726 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10727 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
10730 system_malloc=no
10731 case "$opsys" in
10732 ## darwin ld insists on the use of malloc routines in the System framework.
10733 darwin|sol2-10) system_malloc=yes ;;
10734 esac
10736 if test "${system_malloc}" = "yes"; then
10738 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10740 GNU_MALLOC=no
10741 GNU_MALLOC_reason="
10742 (The GNU allocators don't work with this system configuration.)"
10743 GMALLOC_OBJ=
10744 VMLIMIT_OBJ=
10745 else
10746 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10747 VMLIMIT_OBJ=vm-limit.o
10749 for ac_header in sys/vlimit.h
10750 do :
10751 ac_fn_c_check_header_mongrel "$LINENO" "sys/vlimit.h" "ac_cv_header_sys_vlimit_h" "$ac_includes_default"
10752 if test "x$ac_cv_header_sys_vlimit_h" = x""yes; then :
10753 cat >>confdefs.h <<_ACEOF
10754 #define HAVE_SYS_VLIMIT_H 1
10755 _ACEOF
10759 done
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for data_start" >&5
10762 $as_echo_n "checking for data_start... " >&6; }
10763 if test "${emacs_cv_data_start+set}" = set; then :
10764 $as_echo_n "(cached) " >&6
10765 else
10766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10767 /* end confdefs.h. */
10768 extern char data_start[]; char ch;
10770 main ()
10772 return data_start < &ch;
10774 return 0;
10776 _ACEOF
10777 if ac_fn_c_try_link "$LINENO"; then :
10778 emacs_cv_data_start=yes
10779 else
10780 emacs_cv_data_start=no
10782 rm -f core conftest.err conftest.$ac_objext \
10783 conftest$ac_exeext conftest.$ac_ext
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_data_start" >&5
10786 $as_echo "$emacs_cv_data_start" >&6; }
10787 if test $emacs_cv_data_start = yes; then
10789 $as_echo "#define HAVE_DATA_START 1" >>confdefs.h
10796 if test "$doug_lea_malloc" = "yes" ; then
10797 if test "$GNU_MALLOC" = yes ; then
10798 GNU_MALLOC_reason="
10799 (Using Doug Lea's new malloc from the GNU C Library.)"
10802 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10805 ## Use mmap directly for allocating larger buffers.
10806 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10807 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10808 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10809 case "$opsys" in
10810 gnu*) REL_ALLOC=no ;;
10811 esac
10814 if test x"${REL_ALLOC}" = x; then
10815 REL_ALLOC=${GNU_MALLOC}
10818 use_mmap_for_buffers=no
10819 case "$opsys" in
10820 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10821 esac
10830 for ac_func in getpagesize
10831 do :
10832 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10833 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10834 cat >>confdefs.h <<_ACEOF
10835 #define HAVE_GETPAGESIZE 1
10836 _ACEOF
10839 done
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10842 $as_echo_n "checking for working mmap... " >&6; }
10843 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10844 $as_echo_n "(cached) " >&6
10845 else
10846 if test "$cross_compiling" = yes; then :
10847 ac_cv_func_mmap_fixed_mapped=no
10848 else
10849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10850 /* end confdefs.h. */
10851 $ac_includes_default
10852 /* malloc might have been renamed as rpl_malloc. */
10853 #undef malloc
10855 /* Thanks to Mike Haertel and Jim Avera for this test.
10856 Here is a matrix of mmap possibilities:
10857 mmap private not fixed
10858 mmap private fixed at somewhere currently unmapped
10859 mmap private fixed at somewhere already mapped
10860 mmap shared not fixed
10861 mmap shared fixed at somewhere currently unmapped
10862 mmap shared fixed at somewhere already mapped
10863 For private mappings, we should verify that changes cannot be read()
10864 back from the file, nor mmap's back from the file at a different
10865 address. (There have been systems where private was not correctly
10866 implemented like the infamous i386 svr4.0, and systems where the
10867 VM page cache was not coherent with the file system buffer cache
10868 like early versions of FreeBSD and possibly contemporary NetBSD.)
10869 For shared mappings, we should conversely verify that changes get
10870 propagated back to all the places they're supposed to be.
10872 Grep wants private fixed already mapped.
10873 The main things grep needs to know about mmap are:
10874 * does it exist and is it safe to write into the mmap'd area
10875 * how to use it (BSD variants) */
10877 #include <fcntl.h>
10878 #include <sys/mman.h>
10880 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10881 char *malloc ();
10882 #endif
10884 /* This mess was copied from the GNU getpagesize.h. */
10885 #ifndef HAVE_GETPAGESIZE
10886 # ifdef _SC_PAGESIZE
10887 # define getpagesize() sysconf(_SC_PAGESIZE)
10888 # else /* no _SC_PAGESIZE */
10889 # ifdef HAVE_SYS_PARAM_H
10890 # include <sys/param.h>
10891 # ifdef EXEC_PAGESIZE
10892 # define getpagesize() EXEC_PAGESIZE
10893 # else /* no EXEC_PAGESIZE */
10894 # ifdef NBPG
10895 # define getpagesize() NBPG * CLSIZE
10896 # ifndef CLSIZE
10897 # define CLSIZE 1
10898 # endif /* no CLSIZE */
10899 # else /* no NBPG */
10900 # ifdef NBPC
10901 # define getpagesize() NBPC
10902 # else /* no NBPC */
10903 # ifdef PAGESIZE
10904 # define getpagesize() PAGESIZE
10905 # endif /* PAGESIZE */
10906 # endif /* no NBPC */
10907 # endif /* no NBPG */
10908 # endif /* no EXEC_PAGESIZE */
10909 # else /* no HAVE_SYS_PARAM_H */
10910 # define getpagesize() 8192 /* punt totally */
10911 # endif /* no HAVE_SYS_PARAM_H */
10912 # endif /* no _SC_PAGESIZE */
10914 #endif /* no HAVE_GETPAGESIZE */
10917 main ()
10919 char *data, *data2, *data3;
10920 const char *cdata2;
10921 int i, pagesize;
10922 int fd, fd2;
10924 pagesize = getpagesize ();
10926 /* First, make a file with some known garbage in it. */
10927 data = (char *) malloc (pagesize);
10928 if (!data)
10929 return 1;
10930 for (i = 0; i < pagesize; ++i)
10931 *(data + i) = rand ();
10932 umask (0);
10933 fd = creat ("conftest.mmap", 0600);
10934 if (fd < 0)
10935 return 2;
10936 if (write (fd, data, pagesize) != pagesize)
10937 return 3;
10938 close (fd);
10940 /* Next, check that the tail of a page is zero-filled. File must have
10941 non-zero length, otherwise we risk SIGBUS for entire page. */
10942 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10943 if (fd2 < 0)
10944 return 4;
10945 cdata2 = "";
10946 if (write (fd2, cdata2, 1) != 1)
10947 return 5;
10948 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10949 if (data2 == MAP_FAILED)
10950 return 6;
10951 for (i = 0; i < pagesize; ++i)
10952 if (*(data2 + i))
10953 return 7;
10954 close (fd2);
10955 if (munmap (data2, pagesize))
10956 return 8;
10958 /* Next, try to mmap the file at a fixed address which already has
10959 something else allocated at it. If we can, also make sure that
10960 we see the same garbage. */
10961 fd = open ("conftest.mmap", O_RDWR);
10962 if (fd < 0)
10963 return 9;
10964 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10965 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10966 return 10;
10967 for (i = 0; i < pagesize; ++i)
10968 if (*(data + i) != *(data2 + i))
10969 return 11;
10971 /* Finally, make sure that changes to the mapped area do not
10972 percolate back to the file as seen by read(). (This is a bug on
10973 some variants of i386 svr4.0.) */
10974 for (i = 0; i < pagesize; ++i)
10975 *(data2 + i) = *(data2 + i) + 1;
10976 data3 = (char *) malloc (pagesize);
10977 if (!data3)
10978 return 12;
10979 if (read (fd, data3, pagesize) != pagesize)
10980 return 13;
10981 for (i = 0; i < pagesize; ++i)
10982 if (*(data + i) != *(data3 + i))
10983 return 14;
10984 close (fd);
10985 return 0;
10987 _ACEOF
10988 if ac_fn_c_try_run "$LINENO"; then :
10989 ac_cv_func_mmap_fixed_mapped=yes
10990 else
10991 ac_cv_func_mmap_fixed_mapped=no
10993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10994 conftest.$ac_objext conftest.beam conftest.$ac_ext
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10999 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11000 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11002 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11005 rm -f conftest.mmap conftest.txt
11007 if test $use_mmap_for_buffers = yes; then
11009 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
11011 REL_ALLOC=no
11014 LIBS="$LIBS_SYSTEM $LIBS"
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
11017 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
11018 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
11019 $as_echo_n "(cached) " >&6
11020 else
11021 ac_check_lib_save_LIBS=$LIBS
11022 LIBS="-ldnet $LIBS"
11023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11024 /* end confdefs.h. */
11026 /* Override any GCC internal prototype to avoid an error.
11027 Use char because int might match the return type of a GCC
11028 builtin and then its argument prototype would still apply. */
11029 #ifdef __cplusplus
11030 extern "C"
11031 #endif
11032 char dnet_ntoa ();
11034 main ()
11036 return dnet_ntoa ();
11038 return 0;
11040 _ACEOF
11041 if ac_fn_c_try_link "$LINENO"; then :
11042 ac_cv_lib_dnet_dnet_ntoa=yes
11043 else
11044 ac_cv_lib_dnet_dnet_ntoa=no
11046 rm -f core conftest.err conftest.$ac_objext \
11047 conftest$ac_exeext conftest.$ac_ext
11048 LIBS=$ac_check_lib_save_LIBS
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11051 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11052 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
11053 cat >>confdefs.h <<_ACEOF
11054 #define HAVE_LIBDNET 1
11055 _ACEOF
11057 LIBS="-ldnet $LIBS"
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
11063 $as_echo_n "checking for main in -lXbsd... " >&6; }
11064 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
11065 $as_echo_n "(cached) " >&6
11066 else
11067 ac_check_lib_save_LIBS=$LIBS
11068 LIBS="-lXbsd $LIBS"
11069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11070 /* end confdefs.h. */
11074 main ()
11076 return main ();
11078 return 0;
11080 _ACEOF
11081 if ac_fn_c_try_link "$LINENO"; then :
11082 ac_cv_lib_Xbsd_main=yes
11083 else
11084 ac_cv_lib_Xbsd_main=no
11086 rm -f core conftest.err conftest.$ac_objext \
11087 conftest$ac_exeext conftest.$ac_ext
11088 LIBS=$ac_check_lib_save_LIBS
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
11091 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
11092 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
11093 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
11097 LIB_PTHREAD=
11101 if test "$ac_cv_header_pthread_h"; then
11102 if test "$GMALLOC_OBJ" = gmalloc.o; then
11103 emacs_pthread_function=pthread_atfork
11104 else
11105 emacs_pthread_function=pthread_self
11107 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
11109 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
11110 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
11111 $as_echo_n "(cached) " >&6
11112 else
11113 ac_check_lib_save_LIBS=$LIBS
11114 LIBS="-lpthread $LIBS"
11115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11116 /* end confdefs.h. */
11118 /* Override any GCC internal prototype to avoid an error.
11119 Use char because int might match the return type of a GCC
11120 builtin and then its argument prototype would still apply. */
11121 #ifdef __cplusplus
11122 extern "C"
11123 #endif
11124 char $emacs_pthread_function ();
11126 main ()
11128 return $emacs_pthread_function ();
11130 return 0;
11132 _ACEOF
11133 if ac_fn_c_try_link "$LINENO"; then :
11134 eval "$as_ac_Lib=yes"
11135 else
11136 eval "$as_ac_Lib=no"
11138 rm -f core conftest.err conftest.$ac_objext \
11139 conftest$ac_exeext conftest.$ac_ext
11140 LIBS=$ac_check_lib_save_LIBS
11142 eval ac_res=\$$as_ac_Lib
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11144 $as_echo "$ac_res" >&6; }
11145 eval as_val=\$$as_ac_Lib
11146 if test "x$as_val" = x""yes; then :
11147 HAVE_PTHREAD=yes
11151 if test "$HAVE_PTHREAD" = yes; then
11152 case "${canonical}" in
11153 *-hpux*) ;;
11154 *) LIB_PTHREAD="-lpthread"
11155 LIBS="$LIB_PTHREAD $LIBS" ;;
11156 esac
11158 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
11164 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
11165 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
11166 $as_echo_n "(cached) " >&6
11167 else
11168 ac_check_lib_save_LIBS=$LIBS
11169 LIBS="-lpthreads $LIBS"
11170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11171 /* end confdefs.h. */
11173 /* Override any GCC internal prototype to avoid an error.
11174 Use char because int might match the return type of a GCC
11175 builtin and then its argument prototype would still apply. */
11176 #ifdef __cplusplus
11177 extern "C"
11178 #endif
11179 char cma_open ();
11181 main ()
11183 return cma_open ();
11185 return 0;
11187 _ACEOF
11188 if ac_fn_c_try_link "$LINENO"; then :
11189 ac_cv_lib_pthreads_cma_open=yes
11190 else
11191 ac_cv_lib_pthreads_cma_open=no
11193 rm -f core conftest.err conftest.$ac_objext \
11194 conftest$ac_exeext conftest.$ac_ext
11195 LIBS=$ac_check_lib_save_LIBS
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
11198 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11199 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
11200 cat >>confdefs.h <<_ACEOF
11201 #define HAVE_LIBPTHREADS 1
11202 _ACEOF
11204 LIBS="-lpthreads $LIBS"
11209 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11210 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11211 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11212 ## added to LIBS in configure would never contain the pthreads part,
11213 ## but the value used in Makefiles might. FIXME?
11215 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11216 ## be harmless on older versions of X where it happens to exist.
11217 test "$opsys" = "aix4-2" && \
11218 test $ac_cv_lib_pthreads_cma_open = yes && \
11219 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
11222 case ${host_os} in
11223 aix*)
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
11225 $as_echo_n "checking for -bbigtoc option... " >&6; }
11226 if test "${gdb_cv_bigtoc+set}" = set; then :
11227 $as_echo_n "(cached) " >&6
11228 else
11230 case $GCC in
11231 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11232 *) gdb_cv_bigtoc=-bbigtoc ;;
11233 esac
11235 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11237 /* end confdefs.h. */
11240 main ()
11242 int i;
11244 return 0;
11246 _ACEOF
11247 if ac_fn_c_try_link "$LINENO"; then :
11249 else
11250 gdb_cv_bigtoc=
11252 rm -f core conftest.err conftest.$ac_objext \
11253 conftest$ac_exeext conftest.$ac_ext
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
11257 $as_echo "$gdb_cv_bigtoc" >&6; }
11259 esac
11261 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11262 # used for the tests that follow. We set them back to REAL_CFLAGS and
11263 # REAL_CPPFLAGS later on.
11265 REAL_CFLAGS="$CFLAGS"
11266 REAL_CPPFLAGS="$CPPFLAGS"
11268 if test "${HAVE_X11}" = "yes"; then
11269 DEFS="$C_SWITCH_X_SITE $DEFS"
11270 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11271 LIBS="-lX11 $LIBS"
11272 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11273 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11275 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11276 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
11277 # but it's more convenient here to set LD_RUN_PATH since this
11278 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
11279 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11280 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11281 export LD_RUN_PATH
11284 if test "${opsys}" = "gnu-linux"; then
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
11286 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h. */
11291 main ()
11293 XOpenDisplay ("foo");
11295 return 0;
11297 _ACEOF
11298 if ac_fn_c_try_link "$LINENO"; then :
11299 xgnu_linux_first_failure=no
11300 else
11301 xgnu_linux_first_failure=yes
11303 rm -f core conftest.err conftest.$ac_objext \
11304 conftest$ac_exeext conftest.$ac_ext
11305 if test "${xgnu_linux_first_failure}" = "yes"; then
11306 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11307 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11308 OLD_CPPFLAGS="$CPPFLAGS"
11309 OLD_LIBS="$LIBS"
11310 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11311 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11312 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11313 LIBS="$LIBS -b i486-linuxaout"
11314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11315 /* end confdefs.h. */
11318 main ()
11320 XOpenDisplay ("foo");
11322 return 0;
11324 _ACEOF
11325 if ac_fn_c_try_link "$LINENO"; then :
11326 xgnu_linux_second_failure=no
11327 else
11328 xgnu_linux_second_failure=yes
11330 rm -f core conftest.err conftest.$ac_objext \
11331 conftest$ac_exeext conftest.$ac_ext
11332 if test "${xgnu_linux_second_failure}" = "yes"; then
11333 # If we get the same failure with -b, there is no use adding -b.
11334 # So take it out. This plays safe.
11335 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11336 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11337 CPPFLAGS="$OLD_CPPFLAGS"
11338 LIBS="$OLD_LIBS"
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11340 $as_echo "no" >&6; }
11341 else
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11343 $as_echo "yes" >&6; }
11345 else
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11347 $as_echo "no" >&6; }
11351 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11352 # header files included from there.
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
11354 $as_echo_n "checking for Xkb... " >&6; }
11355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11356 /* end confdefs.h. */
11357 #include <X11/Xlib.h>
11358 #include <X11/XKBlib.h>
11360 main ()
11362 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11364 return 0;
11366 _ACEOF
11367 if ac_fn_c_try_link "$LINENO"; then :
11368 emacs_xkb=yes
11369 else
11370 emacs_xkb=no
11372 rm -f core conftest.err conftest.$ac_objext \
11373 conftest$ac_exeext conftest.$ac_ext
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
11375 $as_echo "$emacs_xkb" >&6; }
11376 if test $emacs_xkb = yes; then
11378 $as_echo "#define HAVE_XKB 1" >>confdefs.h
11382 for ac_func in XrmSetDatabase XScreenResourceString \
11383 XScreenNumberOfScreen
11384 do :
11385 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11386 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11387 eval as_val=\$$as_ac_var
11388 if test "x$as_val" = x""yes; then :
11389 cat >>confdefs.h <<_ACEOF
11390 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11391 _ACEOF
11394 done
11398 if test "${window_system}" = "x11"; then
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
11400 $as_echo_n "checking X11 version 6... " >&6; }
11401 if test "${emacs_cv_x11_version_6+set}" = set; then :
11402 $as_echo_n "(cached) " >&6
11403 else
11404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h. */
11406 #include <X11/Xlib.h>
11408 main ()
11410 #if XlibSpecificationRelease < 6
11411 fail;
11412 #endif
11415 return 0;
11417 _ACEOF
11418 if ac_fn_c_try_link "$LINENO"; then :
11419 emacs_cv_x11_version_6=yes
11420 else
11421 emacs_cv_x11_version_6=no
11423 rm -f core conftest.err conftest.$ac_objext \
11424 conftest$ac_exeext conftest.$ac_ext
11427 if test $emacs_cv_x11_version_6 = yes; then
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11429 $as_echo "6 or newer" >&6; }
11431 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
11434 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
11436 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
11437 ## XIM support.
11438 case "$opsys" in
11439 sol2-*) : ;;
11441 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
11444 esac
11445 else
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11447 $as_echo "before 6" >&6; }
11452 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11453 HAVE_RSVG=no
11454 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes" || test "${opsys}" = "mingw32"; then
11455 if test "${with_rsvg}" != "no"; then
11456 RSVG_REQUIRED=2.11.0
11457 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11460 succeeded=no
11462 if test "$PKG_CONFIG" = "no" ; then
11464 else
11465 PKG_CONFIG_MIN_VERSION=0.9.0
11466 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
11468 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11470 if "$PKG_CONFIG" --exists "$RSVG_MODULE" 2>&5 &&
11471 RSVG_CFLAGS=`"$PKG_CONFIG" --cflags "$RSVG_MODULE" 2>&5` &&
11472 RSVG_LIBS=`"$PKG_CONFIG" --libs "$RSVG_MODULE" 2>&5`; then
11473 edit_cflags="
11474 s,///*,/,g
11475 s/^/ /
11476 s/ -I/ $isystem/g
11477 s/^ //
11479 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
11480 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
11482 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
11483 succeeded=yes
11484 else
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11486 $as_echo "no" >&6; }
11487 RSVG_CFLAGS=""
11488 RSVG_LIBS=""
11489 ## If we have a custom action on failure, don't print errors, but
11490 ## do set a variable so people can do so. Do it in a subshell
11491 ## to capture any diagnostics in invoking pkg-config.
11492 RSVG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$RSVG_MODULE") 2>&1`
11498 else
11499 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11500 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11504 if test $succeeded = yes; then
11505 HAVE_RSVG=yes
11506 else
11513 if test $HAVE_RSVG = yes; then
11515 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
11517 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11518 LIBS="$RSVG_LIBS $LIBS"
11523 HAVE_IMAGEMAGICK=no
11524 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
11525 if test "${with_imagemagick}" != "no"; then
11526 ## 6.2.8 is the earliest version known to work, but earlier versions
11527 ## might work - let us know if you find one.
11528 ## 6.0.7 does not work. See bug#7955.
11529 ## 6.8.2 makes Emacs crash; see Bug#13867.
11530 IMAGEMAGICK_MODULE="Wand >= 6.2.8 Wand != 6.8.2"
11532 succeeded=no
11534 if test "$PKG_CONFIG" = "no" ; then
11536 else
11537 PKG_CONFIG_MIN_VERSION=0.9.0
11538 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
11540 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11542 if "$PKG_CONFIG" --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
11543 IMAGEMAGICK_CFLAGS=`"$PKG_CONFIG" --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
11544 IMAGEMAGICK_LIBS=`"$PKG_CONFIG" --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
11545 edit_cflags="
11546 s,///*,/,g
11547 s/^/ /
11548 s/ -I/ $isystem/g
11549 s/^ //
11551 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
11552 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
11554 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
11555 succeeded=yes
11556 else
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11558 $as_echo "no" >&6; }
11559 IMAGEMAGICK_CFLAGS=""
11560 IMAGEMAGICK_LIBS=""
11561 ## If we have a custom action on failure, don't print errors, but
11562 ## do set a variable so people can do so. Do it in a subshell
11563 ## to capture any diagnostics in invoking pkg-config.
11564 IMAGEMAGICK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
11570 else
11571 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11572 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11576 if test $succeeded = yes; then
11577 HAVE_IMAGEMAGICK=yes
11578 else
11585 if test $HAVE_IMAGEMAGICK = yes; then
11587 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
11589 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
11590 LIBS="$IMAGEMAGICK_LIBS $LIBS"
11591 for ac_func in MagickExportImagePixels MagickMergeImageLayers
11592 do :
11593 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11594 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11595 eval as_val=\$$as_ac_var
11596 if test "x$as_val" = x""yes; then :
11597 cat >>confdefs.h <<_ACEOF
11598 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11599 _ACEOF
11602 done
11609 HAVE_GTK=no
11610 GTK_OBJ=
11611 gtk_term_header=$term_header
11612 check_gtk2=no
11613 gtk3_pkg_errors=
11614 if test "${opsys}" != "mingw32"; then
11615 if test "${with_gtk3}" = "yes" || test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11616 GLIB_REQUIRED=2.28
11617 GTK_REQUIRED=3.0
11618 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11621 succeeded=no
11623 if test "$PKG_CONFIG" = "no" ; then
11624 pkg_check_gtk=no
11625 else
11626 PKG_CONFIG_MIN_VERSION=0.9.0
11627 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11629 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11631 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11632 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11633 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11634 edit_cflags="
11635 s,///*,/,g
11636 s/^/ /
11637 s/ -I/ $isystem/g
11638 s/^ //
11640 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11641 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11643 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11644 succeeded=yes
11645 else
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11647 $as_echo "no" >&6; }
11648 GTK_CFLAGS=""
11649 GTK_LIBS=""
11650 ## If we have a custom action on failure, don't print errors, but
11651 ## do set a variable so people can do so. Do it in a subshell
11652 ## to capture any diagnostics in invoking pkg-config.
11653 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11659 else
11660 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11661 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11665 if test $succeeded = yes; then
11666 pkg_check_gtk=yes
11667 else
11668 pkg_check_gtk=no
11671 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
11672 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11674 if test "$pkg_check_gtk" = "yes"; then
11676 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11678 GTK_OBJ=emacsgtkfixed.o
11679 gtk_term_header=gtkutil.h
11680 USE_GTK_TOOLKIT="GTK3"
11681 if test "x$ac_enable_gtk_deprecation_warnings" = x; then
11682 GTK_CFLAGS="$GTK_CFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS"
11683 GTK_CFLAGS="$GTK_CFLAGS -DGLIB_DISABLE_DEPRECATION_WARNINGS"
11685 else
11686 check_gtk2=yes
11687 gtk3_pkg_errors="$GTK_PKG_ERRORS "
11691 if test "${with_gtk2}" = "yes" || test "$check_gtk2" = "yes"; then
11692 GLIB_REQUIRED=2.10
11693 GTK_REQUIRED=2.10
11694 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11697 succeeded=no
11699 if test "$PKG_CONFIG" = "no" ; then
11700 pkg_check_gtk=no
11701 else
11702 PKG_CONFIG_MIN_VERSION=0.9.0
11703 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11705 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11707 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11708 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11709 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11710 edit_cflags="
11711 s,///*,/,g
11712 s/^/ /
11713 s/ -I/ $isystem/g
11714 s/^ //
11716 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11717 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11719 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11720 succeeded=yes
11721 else
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11723 $as_echo "no" >&6; }
11724 GTK_CFLAGS=""
11725 GTK_LIBS=""
11726 ## If we have a custom action on failure, don't print errors, but
11727 ## do set a variable so people can do so. Do it in a subshell
11728 ## to capture any diagnostics in invoking pkg-config.
11729 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11735 else
11736 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11737 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11741 if test $succeeded = yes; then
11742 pkg_check_gtk=yes
11743 else
11744 pkg_check_gtk=no
11747 if test "$pkg_check_gtk" = "no" &&
11748 { test "$with_gtk" = yes || test "$with_gtk2" = "yes"; }
11749 then
11750 as_fn_error "$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
11752 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT="GTK2"
11756 if test x"$pkg_check_gtk" = xyes; then
11760 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11761 CFLAGS="$CFLAGS $GTK_CFLAGS"
11762 LIBS="$GTK_LIBS $LIBS"
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GTK compiles" >&5
11764 $as_echo_n "checking whether GTK compiles... " >&6; }
11765 GTK_COMPILES=no
11766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11767 /* end confdefs.h. */
11768 /* Check the Gtk and Glib APIs. */
11769 #include <gtk/gtk.h>
11770 #include <glib-object.h>
11771 static void
11772 callback (GObject *go, GParamSpec *spec, gpointer user_data)
11776 main ()
11779 GtkSettings *gs = 0;
11780 /* Use G_CALLBACK to make sure function pointers can be cast to void *;
11781 strict C prohibits this. Use gtk_main_iteration to test that the
11782 libraries are there. */
11783 if (g_signal_handler_find (G_OBJECT (gs), G_SIGNAL_MATCH_FUNC,
11784 0, 0, 0, G_CALLBACK (callback), 0))
11785 gtk_main_iteration ();
11788 return 0;
11790 _ACEOF
11791 if ac_fn_c_try_link "$LINENO"; then :
11792 GTK_COMPILES=yes
11794 rm -f core conftest.err conftest.$ac_objext \
11795 conftest$ac_exeext conftest.$ac_ext
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_COMPILES" >&5
11797 $as_echo "$GTK_COMPILES" >&6; }
11798 if test "${GTK_COMPILES}" != "yes"; then
11799 GTK_OBJ=
11800 if test "$USE_X_TOOLKIT" != "maybe"; then
11801 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11803 else
11804 HAVE_GTK=yes
11806 $as_echo "#define USE_GTK 1" >>confdefs.h
11808 GTK_OBJ="gtkutil.o $GTK_OBJ"
11809 term_header=$gtk_term_header
11810 USE_X_TOOLKIT=none
11811 if "$PKG_CONFIG" --atleast-version=2.10 gtk+-2.0; then
11813 else
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11815 closing open displays. This is no problem if you just use
11816 one display, but if you use more than one and close one of them
11817 Emacs may crash." >&5
11818 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11819 closing open displays. This is no problem if you just use
11820 one display, but if you use more than one and close one of them
11821 Emacs may crash." >&2;}
11822 sleep 3
11830 if test "${HAVE_GTK}" = "yes"; then
11832 if test "$with_toolkit_scroll_bars" != no; then
11833 with_toolkit_scroll_bars=yes
11836 HAVE_GTK_FILE_SELECTION=no
11837 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11838 #include <gtk/gtk.h>
11840 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11841 HAVE_GTK_FILE_SELECTION=yes
11842 else
11843 HAVE_GTK_FILE_SELECTION=no
11846 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11847 for ac_func in gtk_file_selection_new
11848 do :
11849 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11850 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11851 cat >>confdefs.h <<_ACEOF
11852 #define HAVE_GTK_FILE_SELECTION_NEW 1
11853 _ACEOF
11856 done
11860 HAVE_GTK_HANDLE_BOX=no
11861 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_HANDLE_BOX" "ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" "$ac_includes_default
11862 #include <gtk/gtk.h>
11864 if test "x$ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" = x""yes; then :
11865 HAVE_GTK_HANDLE_BOX=yes
11866 else
11867 HAVE_GTK_HANDLE_BOX=no
11870 if test "$HAVE_GTK_HANDLE_BOX" = yes; then
11871 for ac_func in gtk_handle_box_new
11872 do :
11873 ac_fn_c_check_func "$LINENO" "gtk_handle_box_new" "ac_cv_func_gtk_handle_box_new"
11874 if test "x$ac_cv_func_gtk_handle_box_new" = x""yes; then :
11875 cat >>confdefs.h <<_ACEOF
11876 #define HAVE_GTK_HANDLE_BOX_NEW 1
11877 _ACEOF
11880 done
11884 HAVE_GTK_TEAROFF_MENU_ITEM=no
11885 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_TEAROFF_MENU_ITEM" "ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" "$ac_includes_default
11886 #include <gtk/gtk.h>
11888 if test "x$ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" = x""yes; then :
11889 HAVE_GTK_TEAROFF_MENU_ITEM=yes
11890 else
11891 HAVE_GTK_TEAROFF_MENU_ITEM=no
11894 if test "$HAVE_GTK_TEAROFF_MENU_ITEM" = yes; then
11895 for ac_func in gtk_tearoff_menu_item_new
11896 do :
11897 ac_fn_c_check_func "$LINENO" "gtk_tearoff_menu_item_new" "ac_cv_func_gtk_tearoff_menu_item_new"
11898 if test "x$ac_cv_func_gtk_tearoff_menu_item_new" = x""yes; then :
11899 cat >>confdefs.h <<_ACEOF
11900 #define HAVE_GTK_TEAROFF_MENU_ITEM_NEW 1
11901 _ACEOF
11904 done
11908 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11909 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11910 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11911 gtk_orientable_set_orientation \
11912 gtk_window_set_has_resize_grip
11913 do :
11914 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11915 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11916 eval as_val=\$$as_ac_var
11917 if test "x$as_val" = x""yes; then :
11918 cat >>confdefs.h <<_ACEOF
11919 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11920 _ACEOF
11923 done
11926 term_header=gtkutil.h
11929 HAVE_DBUS=no
11930 DBUS_OBJ=
11931 if test "${with_dbus}" = "yes"; then
11933 succeeded=no
11935 if test "$PKG_CONFIG" = "no" ; then
11936 HAVE_DBUS=no
11937 else
11938 PKG_CONFIG_MIN_VERSION=0.9.0
11939 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11941 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11943 if "$PKG_CONFIG" --exists "dbus-1 >= 1.0" 2>&5 &&
11944 DBUS_CFLAGS=`"$PKG_CONFIG" --cflags "dbus-1 >= 1.0" 2>&5` &&
11945 DBUS_LIBS=`"$PKG_CONFIG" --libs "dbus-1 >= 1.0" 2>&5`; then
11946 edit_cflags="
11947 s,///*,/,g
11948 s/^/ /
11949 s/ -I/ $isystem/g
11950 s/^ //
11952 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11953 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11955 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11956 succeeded=yes
11957 else
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959 $as_echo "no" >&6; }
11960 DBUS_CFLAGS=""
11961 DBUS_LIBS=""
11962 ## If we have a custom action on failure, don't print errors, but
11963 ## do set a variable so people can do so. Do it in a subshell
11964 ## to capture any diagnostics in invoking pkg-config.
11965 DBUS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "dbus-1 >= 1.0") 2>&1`
11971 else
11972 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11973 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11977 if test $succeeded = yes; then
11978 HAVE_DBUS=yes
11979 else
11980 HAVE_DBUS=no
11983 if test "$HAVE_DBUS" = yes; then
11984 LIBS="$LIBS $DBUS_LIBS"
11986 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11988 for ac_func in dbus_watch_get_unix_fd \
11989 dbus_type_is_valid \
11990 dbus_validate_bus_name \
11991 dbus_validate_path \
11992 dbus_validate_interface \
11993 dbus_validate_member
11994 do :
11995 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11996 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11997 eval as_val=\$$as_ac_var
11998 if test "x$as_val" = x""yes; then :
11999 cat >>confdefs.h <<_ACEOF
12000 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12001 _ACEOF
12004 done
12006 DBUS_OBJ=dbusbind.o
12011 HAVE_GSETTINGS=no
12012 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
12014 succeeded=no
12016 if test "$PKG_CONFIG" = "no" ; then
12017 HAVE_GSETTINGS=no
12018 else
12019 PKG_CONFIG_MIN_VERSION=0.9.0
12020 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
12022 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
12024 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.26" 2>&5 &&
12025 GSETTINGS_CFLAGS=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.26" 2>&5` &&
12026 GSETTINGS_LIBS=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.26" 2>&5`; then
12027 edit_cflags="
12028 s,///*,/,g
12029 s/^/ /
12030 s/ -I/ $isystem/g
12031 s/^ //
12033 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
12034 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
12036 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
12037 succeeded=yes
12038 else
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12040 $as_echo "no" >&6; }
12041 GSETTINGS_CFLAGS=""
12042 GSETTINGS_LIBS=""
12043 ## If we have a custom action on failure, don't print errors, but
12044 ## do set a variable so people can do so. Do it in a subshell
12045 ## to capture any diagnostics in invoking pkg-config.
12046 GSETTINGS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.26") 2>&1`
12052 else
12053 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12054 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12058 if test $succeeded = yes; then
12059 HAVE_GSETTINGS=yes
12060 else
12061 HAVE_GSETTINGS=no
12064 if test "$HAVE_GSETTINGS" = "yes"; then
12066 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
12068 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
12069 SETTINGS_LIBS="$GSETTINGS_LIBS"
12073 HAVE_GCONF=no
12074 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12076 succeeded=no
12078 if test "$PKG_CONFIG" = "no" ; then
12079 HAVE_GCONF=no
12080 else
12081 PKG_CONFIG_MIN_VERSION=0.9.0
12082 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
12084 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12086 if "$PKG_CONFIG" --exists "gconf-2.0 >= 2.13" 2>&5 &&
12087 GCONF_CFLAGS=`"$PKG_CONFIG" --cflags "gconf-2.0 >= 2.13" 2>&5` &&
12088 GCONF_LIBS=`"$PKG_CONFIG" --libs "gconf-2.0 >= 2.13" 2>&5`; then
12089 edit_cflags="
12090 s,///*,/,g
12091 s/^/ /
12092 s/ -I/ $isystem/g
12093 s/^ //
12095 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
12096 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
12098 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
12099 succeeded=yes
12100 else
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12102 $as_echo "no" >&6; }
12103 GCONF_CFLAGS=""
12104 GCONF_LIBS=""
12105 ## If we have a custom action on failure, don't print errors, but
12106 ## do set a variable so people can do so. Do it in a subshell
12107 ## to capture any diagnostics in invoking pkg-config.
12108 GCONF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gconf-2.0 >= 2.13") 2>&1`
12114 else
12115 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12116 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12120 if test $succeeded = yes; then
12121 HAVE_GCONF=yes
12122 else
12123 HAVE_GCONF=no
12126 if test "$HAVE_GCONF" = yes; then
12128 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
12130 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
12131 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
12135 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
12137 succeeded=no
12139 if test "$PKG_CONFIG" = "no" ; then
12140 HAVE_GOBJECT=no
12141 else
12142 PKG_CONFIG_MIN_VERSION=0.9.0
12143 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
12145 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
12147 if "$PKG_CONFIG" --exists "gobject-2.0 >= 2.0" 2>&5 &&
12148 GOBJECT_CFLAGS=`"$PKG_CONFIG" --cflags "gobject-2.0 >= 2.0" 2>&5` &&
12149 GOBJECT_LIBS=`"$PKG_CONFIG" --libs "gobject-2.0 >= 2.0" 2>&5`; then
12150 edit_cflags="
12151 s,///*,/,g
12152 s/^/ /
12153 s/ -I/ $isystem/g
12154 s/^ //
12156 GOBJECT_CFLAGS=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
12157 GOBJECT_LIBS=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
12159 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
12160 succeeded=yes
12161 else
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12163 $as_echo "no" >&6; }
12164 GOBJECT_CFLAGS=""
12165 GOBJECT_LIBS=""
12166 ## If we have a custom action on failure, don't print errors, but
12167 ## do set a variable so people can do so. Do it in a subshell
12168 ## to capture any diagnostics in invoking pkg-config.
12169 GOBJECT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gobject-2.0 >= 2.0") 2>&1`
12175 else
12176 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12177 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12181 if test $succeeded = yes; then
12182 HAVE_GOBJECT=yes
12183 else
12184 HAVE_GOBJECT=no
12187 if test "$HAVE_GOBJECT" = "yes"; then
12188 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
12189 SETTINGS_LIBS="$SETTINGS_LIBS $GOBJECT_LIBS"
12191 SAVE_CFLAGS="$CFLAGS"
12192 SAVE_LIBS="$LIBS"
12193 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
12194 LIBS="$SETTINGS_LIBS $LIBS"
12195 CFLAGS="$SAVE_CFLAGS"
12196 LIBS="$SAVE_LIBS"
12202 HAVE_LIBSELINUX=no
12203 LIBSELINUX_LIBS=
12204 if test "${with_selinux}" = "yes"; then
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
12206 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
12207 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
12208 $as_echo_n "(cached) " >&6
12209 else
12210 ac_check_lib_save_LIBS=$LIBS
12211 LIBS="-lselinux $LIBS"
12212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12213 /* end confdefs.h. */
12215 /* Override any GCC internal prototype to avoid an error.
12216 Use char because int might match the return type of a GCC
12217 builtin and then its argument prototype would still apply. */
12218 #ifdef __cplusplus
12219 extern "C"
12220 #endif
12221 char lgetfilecon ();
12223 main ()
12225 return lgetfilecon ();
12227 return 0;
12229 _ACEOF
12230 if ac_fn_c_try_link "$LINENO"; then :
12231 ac_cv_lib_selinux_lgetfilecon=yes
12232 else
12233 ac_cv_lib_selinux_lgetfilecon=no
12235 rm -f core conftest.err conftest.$ac_objext \
12236 conftest$ac_exeext conftest.$ac_ext
12237 LIBS=$ac_check_lib_save_LIBS
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
12240 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
12241 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
12242 HAVE_LIBSELINUX=yes
12243 else
12244 HAVE_LIBSELINUX=no
12247 if test "$HAVE_LIBSELINUX" = yes; then
12249 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
12251 LIBSELINUX_LIBS=-lselinux
12256 HAVE_GNUTLS=no
12257 HAVE_GNUTLS3=no
12258 if test "${with_gnutls}" = "yes" ; then
12260 succeeded=no
12262 if test "$PKG_CONFIG" = "no" ; then
12263 HAVE_GNUTLS3=no
12264 else
12265 PKG_CONFIG_MIN_VERSION=0.9.0
12266 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 3.0.0" >&5
12268 $as_echo_n "checking for gnutls >= 3.0.0... " >&6; }
12270 if "$PKG_CONFIG" --exists "gnutls >= 3.0.0" 2>&5 &&
12271 LIBGNUTLS_CFLAGS=`"$PKG_CONFIG" --cflags "gnutls >= 3.0.0" 2>&5` &&
12272 LIBGNUTLS_LIBS=`"$PKG_CONFIG" --libs "gnutls >= 3.0.0" 2>&5`; then
12273 edit_cflags="
12274 s,///*,/,g
12275 s/^/ /
12276 s/ -I/ $isystem/g
12277 s/^ //
12279 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
12280 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
12282 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
12283 succeeded=yes
12284 else
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12286 $as_echo "no" >&6; }
12287 LIBGNUTLS_CFLAGS=""
12288 LIBGNUTLS_LIBS=""
12289 ## If we have a custom action on failure, don't print errors, but
12290 ## do set a variable so people can do so. Do it in a subshell
12291 ## to capture any diagnostics in invoking pkg-config.
12292 LIBGNUTLS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gnutls >= 3.0.0") 2>&1`
12298 else
12299 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12300 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12304 if test $succeeded = yes; then
12305 HAVE_GNUTLS3=yes
12306 else
12307 HAVE_GNUTLS3=no
12310 if test "${HAVE_GNUTLS3}" = "yes"; then
12312 $as_echo "#define HAVE_GNUTLS3 1" >>confdefs.h
12314 HAVE_GNUTLS="yes"
12315 else
12317 succeeded=no
12319 if test "$PKG_CONFIG" = "no" ; then
12320 HAVE_GNUTLS=no
12321 else
12322 PKG_CONFIG_MIN_VERSION=0.9.0
12323 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
12325 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
12327 if "$PKG_CONFIG" --exists "gnutls >= 2.6.6" 2>&5 &&
12328 LIBGNUTLS_CFLAGS=`"$PKG_CONFIG" --cflags "gnutls >= 2.6.6" 2>&5` &&
12329 LIBGNUTLS_LIBS=`"$PKG_CONFIG" --libs "gnutls >= 2.6.6" 2>&5`; then
12330 edit_cflags="
12331 s,///*,/,g
12332 s/^/ /
12333 s/ -I/ $isystem/g
12334 s/^ //
12336 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
12337 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
12339 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
12340 succeeded=yes
12341 else
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343 $as_echo "no" >&6; }
12344 LIBGNUTLS_CFLAGS=""
12345 LIBGNUTLS_LIBS=""
12346 ## If we have a custom action on failure, don't print errors, but
12347 ## do set a variable so people can do so. Do it in a subshell
12348 ## to capture any diagnostics in invoking pkg-config.
12349 LIBGNUTLS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gnutls >= 2.6.6") 2>&1`
12355 else
12356 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12357 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12361 if test $succeeded = yes; then
12362 HAVE_GNUTLS=yes
12363 else
12364 HAVE_GNUTLS=no
12368 if test "${HAVE_GNUTLS}" = "yes"; then
12370 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
12374 # Windows loads GnuTLS dynamically
12375 if test "${opsys}" = "mingw32"; then
12376 LIBGNUTLS_LIBS=
12377 else
12378 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
12379 LIBS="$LIBGNUTLS_LIBS $LIBS"
12386 NOTIFY_OBJ=
12387 NOTIFY_SUMMARY=no
12389 if test "${with_ns}" = yes && test ${with_file_notification} = yes; then
12390 with_file_notification=no
12393 case $with_file_notification,$opsys in
12394 w32,* | yes,mingw32)
12395 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12396 if test "x$ac_cv_header_windows_h" = x""yes; then :
12401 if test "$ac_cv_header_windows_h" = yes ; then
12403 $as_echo "#define HAVE_W32NOTIFY 1" >>confdefs.h
12405 NOTIFY_OBJ=w32notify.o
12406 NOTIFY_SUMMARY="yes (w32)"
12407 fi ;;
12408 esac
12410 case $with_file_notification,$NOTIFY_OBJ in
12411 gfile, | yes,)
12413 succeeded=no
12415 if test "$PKG_CONFIG" = "no" ; then
12416 HAVE_GFILENOTIFY=no
12417 else
12418 PKG_CONFIG_MIN_VERSION=0.9.0
12419 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.24" >&5
12421 $as_echo_n "checking for gio-2.0 >= 2.24... " >&6; }
12423 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.24" 2>&5 &&
12424 GFILENOTIFY_CFLAGS=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.24" 2>&5` &&
12425 GFILENOTIFY_LIBS=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.24" 2>&5`; then
12426 edit_cflags="
12427 s,///*,/,g
12428 s/^/ /
12429 s/ -I/ $isystem/g
12430 s/^ //
12432 GFILENOTIFY_CFLAGS=`$as_echo "$GFILENOTIFY_CFLAGS" | sed -e "$edit_cflags"`
12433 GFILENOTIFY_LIBS=`$as_echo "$GFILENOTIFY_LIBS" | sed -e 's,///*,/,g'`
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&5
12435 $as_echo "yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&6; }
12436 succeeded=yes
12437 else
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12439 $as_echo "no" >&6; }
12440 GFILENOTIFY_CFLAGS=""
12441 GFILENOTIFY_LIBS=""
12442 ## If we have a custom action on failure, don't print errors, but
12443 ## do set a variable so people can do so. Do it in a subshell
12444 ## to capture any diagnostics in invoking pkg-config.
12445 GFILENOTIFY_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.24") 2>&1`
12451 else
12452 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12453 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12457 if test $succeeded = yes; then
12458 HAVE_GFILENOTIFY=yes
12459 else
12460 HAVE_GFILENOTIFY=no
12463 if test "$HAVE_GFILENOTIFY" = "yes"; then
12465 $as_echo "#define HAVE_GFILENOTIFY 1" >>confdefs.h
12467 NOTIFY_OBJ=gfilenotify.o
12468 NOTIFY_SUMMARY="yes -lgio (gfile)"
12469 fi ;;
12470 esac
12472 case $with_file_notification,$NOTIFY_OBJ in
12473 inotify, | yes,)
12474 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
12475 if test "x$ac_cv_header_sys_inotify_h" = x""yes; then :
12480 if test "$ac_cv_header_sys_inotify_h" = yes ; then
12481 ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
12482 if test "x$ac_cv_func_inotify_init1" = x""yes; then :
12486 if test "$ac_cv_func_inotify_init1" = yes; then
12488 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
12490 NOTIFY_OBJ=inotify.o
12491 NOTIFY_SUMMARY="yes -lglibc (inotify)"
12493 fi ;;
12494 esac
12496 case $with_file_notification,$NOTIFY_OBJ in
12497 yes,* | no,* | *,?*) ;;
12498 *) as_fn_error "File notification \`$with_file_notification' requested but requirements not found." "$LINENO" 5 ;;
12499 esac
12501 if test -n "$NOTIFY_OBJ"; then
12503 $as_echo "#define USE_FILE_NOTIFY 1" >>confdefs.h
12510 HAVE_XAW3D=no
12511 LUCID_LIBW=
12512 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12513 if test "$with_xaw3d" != no; then
12514 if test "${emacs_cv_xaw3d+set}" = set; then :
12515 $as_echo_n "(cached) " >&6
12516 else
12517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12518 /* end confdefs.h. */
12520 #include <X11/Intrinsic.h>
12521 #include <X11/Xaw3d/Simple.h>
12523 main ()
12527 return 0;
12529 _ACEOF
12530 if ac_fn_c_try_link "$LINENO"; then :
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12532 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
12533 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
12534 $as_echo_n "(cached) " >&6
12535 else
12536 ac_check_lib_save_LIBS=$LIBS
12537 LIBS="-lXaw3d $LIBS"
12538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12539 /* end confdefs.h. */
12541 /* Override any GCC internal prototype to avoid an error.
12542 Use char because int might match the return type of a GCC
12543 builtin and then its argument prototype would still apply. */
12544 #ifdef __cplusplus
12545 extern "C"
12546 #endif
12547 char XawScrollbarSetThumb ();
12549 main ()
12551 return XawScrollbarSetThumb ();
12553 return 0;
12555 _ACEOF
12556 if ac_fn_c_try_link "$LINENO"; then :
12557 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12558 else
12559 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12561 rm -f core conftest.err conftest.$ac_objext \
12562 conftest$ac_exeext conftest.$ac_ext
12563 LIBS=$ac_check_lib_save_LIBS
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12566 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12567 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
12568 emacs_cv_xaw3d=yes
12569 else
12570 emacs_cv_xaw3d=no
12573 else
12574 emacs_cv_xaw3d=no
12576 rm -f core conftest.err conftest.$ac_objext \
12577 conftest$ac_exeext conftest.$ac_ext
12580 else
12581 emacs_cv_xaw3d=no
12583 if test $emacs_cv_xaw3d = yes; then
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12585 $as_echo_n "checking for xaw3d... " >&6; }
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12587 $as_echo "yes; using Lucid toolkit" >&6; }
12588 USE_X_TOOLKIT=LUCID
12589 HAVE_XAW3D=yes
12590 LUCID_LIBW=-lXaw3d
12592 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
12594 else
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12596 $as_echo_n "checking for xaw3d... " >&6; }
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12598 $as_echo "no" >&6; }
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
12600 $as_echo_n "checking for libXaw... " >&6; }
12601 if test "${emacs_cv_xaw+set}" = set; then :
12602 $as_echo_n "(cached) " >&6
12603 else
12604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12605 /* end confdefs.h. */
12607 #include <X11/Intrinsic.h>
12608 #include <X11/Xaw/Simple.h>
12610 main ()
12614 return 0;
12616 _ACEOF
12617 if ac_fn_c_try_link "$LINENO"; then :
12618 emacs_cv_xaw=yes
12619 else
12620 emacs_cv_xaw=no
12622 rm -f core conftest.err conftest.$ac_objext \
12623 conftest$ac_exeext conftest.$ac_ext
12626 if test $emacs_cv_xaw = yes; then
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12628 $as_echo "yes; using Lucid toolkit" >&6; }
12629 USE_X_TOOLKIT=LUCID
12630 LUCID_LIBW=-lXaw
12631 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12632 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12633 else
12634 as_fn_error "No X toolkit could be found.
12635 If you are sure you want Emacs compiled without an X toolkit, pass
12636 --with-x-toolkit=no
12637 to configure. Otherwise, install the development libraries for the toolkit
12638 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
12643 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12645 LIBXTR6=
12646 if test "${USE_X_TOOLKIT}" != "none"; then
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12648 $as_echo_n "checking X11 toolkit version... " >&6; }
12649 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12650 $as_echo_n "(cached) " >&6
12651 else
12652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12653 /* end confdefs.h. */
12654 #include <X11/Intrinsic.h>
12656 main ()
12658 #if XtSpecificationRelease < 6
12659 fail;
12660 #endif
12663 return 0;
12665 _ACEOF
12666 if ac_fn_c_try_link "$LINENO"; then :
12667 emacs_cv_x11_toolkit_version_6=yes
12668 else
12669 emacs_cv_x11_toolkit_version_6=no
12671 rm -f core conftest.err conftest.$ac_objext \
12672 conftest$ac_exeext conftest.$ac_ext
12675 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12676 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12678 $as_echo "6 or newer" >&6; }
12680 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12682 LIBXTR6="-lSM -lICE"
12683 case "$opsys" in
12684 ## Use libw.a along with X11R6 Xt.
12685 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
12686 esac
12687 else
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12689 $as_echo "before 6" >&6; }
12692 OLDLIBS="$LIBS"
12693 if test x$HAVE_X11XTR6 = xyes; then
12694 LIBS="-lXt -lSM -lICE $LIBS"
12695 else
12696 LIBS="-lXt $LIBS"
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12699 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12700 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12701 $as_echo_n "(cached) " >&6
12702 else
12703 ac_check_lib_save_LIBS=$LIBS
12704 LIBS="-lXmu $LIBS"
12705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12706 /* end confdefs.h. */
12708 /* Override any GCC internal prototype to avoid an error.
12709 Use char because int might match the return type of a GCC
12710 builtin and then its argument prototype would still apply. */
12711 #ifdef __cplusplus
12712 extern "C"
12713 #endif
12714 char XmuConvertStandardSelection ();
12716 main ()
12718 return XmuConvertStandardSelection ();
12720 return 0;
12722 _ACEOF
12723 if ac_fn_c_try_link "$LINENO"; then :
12724 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12725 else
12726 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12728 rm -f core conftest.err conftest.$ac_objext \
12729 conftest$ac_exeext conftest.$ac_ext
12730 LIBS=$ac_check_lib_save_LIBS
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12733 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12734 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
12735 cat >>confdefs.h <<_ACEOF
12736 #define HAVE_LIBXMU 1
12737 _ACEOF
12739 LIBS="-lXmu $LIBS"
12743 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12747 LIBXMU=-lXmu
12748 case $opsys in
12749 ## These systems don't supply Xmu.
12750 hpux* | aix4-2 )
12751 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
12753 mingw32 )
12754 LIBXMU=
12756 esac
12759 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12760 if test "${HAVE_X11}" = "yes"; then
12761 if test "${USE_X_TOOLKIT}" != "none"; then
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12763 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12764 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12765 $as_echo_n "(cached) " >&6
12766 else
12767 ac_check_lib_save_LIBS=$LIBS
12768 LIBS="-lXext $LIBS"
12769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12770 /* end confdefs.h. */
12772 /* Override any GCC internal prototype to avoid an error.
12773 Use char because int might match the return type of a GCC
12774 builtin and then its argument prototype would still apply. */
12775 #ifdef __cplusplus
12776 extern "C"
12777 #endif
12778 char XShapeQueryExtension ();
12780 main ()
12782 return XShapeQueryExtension ();
12784 return 0;
12786 _ACEOF
12787 if ac_fn_c_try_link "$LINENO"; then :
12788 ac_cv_lib_Xext_XShapeQueryExtension=yes
12789 else
12790 ac_cv_lib_Xext_XShapeQueryExtension=no
12792 rm -f core conftest.err conftest.$ac_objext \
12793 conftest$ac_exeext conftest.$ac_ext
12794 LIBS=$ac_check_lib_save_LIBS
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12797 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12798 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
12799 cat >>confdefs.h <<_ACEOF
12800 #define HAVE_LIBXEXT 1
12801 _ACEOF
12803 LIBS="-lXext $LIBS"
12810 LIBXP=
12811 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12812 # OpenMotif may be installed in such a way on some GNU/Linux systems.
12813 if test -d /usr/include/openmotif; then
12814 CPPFLAGS="-I/usr/include/openmotif $CPPFLAGS"
12815 emacs_cv_openmotif=yes
12816 case "$canonical" in
12817 x86_64-*-linux-gnu* | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*)
12818 test -d /usr/lib64/openmotif && LDFLAGS="-L/usr/lib64/openmotif $LDFLAGS"
12821 test -d /usr/lib/openmotif && LDFLAGS="-L/usr/lib/openmotif $LDFLAGS"
12822 esac
12823 else
12824 emacs_cv_openmotif=no
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
12827 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
12828 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12829 $as_echo_n "(cached) " >&6
12830 else
12831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12832 /* end confdefs.h. */
12833 #include <Xm/Xm.h>
12835 main ()
12837 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12838 int x = 5;
12839 #else
12840 Motif version prior to 2.1.
12841 #endif
12843 return 0;
12845 _ACEOF
12846 if ac_fn_c_try_compile "$LINENO"; then :
12847 emacs_cv_motif_version_2_1=yes
12848 else
12849 emacs_cv_motif_version_2_1=no
12851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12854 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12855 if test $emacs_cv_motif_version_2_1 = yes; then
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12857 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12858 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12859 $as_echo_n "(cached) " >&6
12860 else
12861 ac_check_lib_save_LIBS=$LIBS
12862 LIBS="-lXp $LIBS"
12863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12864 /* end confdefs.h. */
12866 /* Override any GCC internal prototype to avoid an error.
12867 Use char because int might match the return type of a GCC
12868 builtin and then its argument prototype would still apply. */
12869 #ifdef __cplusplus
12870 extern "C"
12871 #endif
12872 char XpCreateContext ();
12874 main ()
12876 return XpCreateContext ();
12878 return 0;
12880 _ACEOF
12881 if ac_fn_c_try_link "$LINENO"; then :
12882 ac_cv_lib_Xp_XpCreateContext=yes
12883 else
12884 ac_cv_lib_Xp_XpCreateContext=no
12886 rm -f core conftest.err conftest.$ac_objext \
12887 conftest$ac_exeext conftest.$ac_ext
12888 LIBS=$ac_check_lib_save_LIBS
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12891 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12892 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
12893 LIBXP=-lXp
12896 if test x$emacs_cv_openmotif = xyes; then
12897 REAL_CPPFLAGS="-I/usr/include/openmotif $REAL_CPPFLAGS"
12899 else
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12901 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12902 if test "${emacs_cv_lesstif+set}" = set; then :
12903 $as_echo_n "(cached) " >&6
12904 else
12905 # We put this in CFLAGS temporarily to precede other -I options
12906 # that might be in CFLAGS temporarily.
12907 # We put this in CPPFLAGS where it precedes the other -I options.
12908 OLD_CPPFLAGS=$CPPFLAGS
12909 OLD_CFLAGS=$CFLAGS
12910 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12911 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12913 /* end confdefs.h. */
12914 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12916 main ()
12918 int x = 5;
12920 return 0;
12922 _ACEOF
12923 if ac_fn_c_try_compile "$LINENO"; then :
12924 emacs_cv_lesstif=yes
12925 else
12926 emacs_cv_lesstif=no
12928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12931 $as_echo "$emacs_cv_lesstif" >&6; }
12932 if test $emacs_cv_lesstif = yes; then
12933 # Make sure this -I option remains in CPPFLAGS after it is set
12934 # back to REAL_CPPFLAGS.
12935 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12936 # have those other -I options anyway. Ultimately, having this
12937 # directory ultimately in CPPFLAGS will be enough.
12938 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12939 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12940 else
12941 CFLAGS=$OLD_CFLAGS
12942 CPPFLAGS=$OLD_CPPFLAGS
12945 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12946 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
12948 else
12949 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
12956 USE_TOOLKIT_SCROLL_BARS=no
12957 if test "${with_toolkit_scroll_bars}" != "no"; then
12958 if test "${USE_X_TOOLKIT}" != "none"; then
12959 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12960 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12962 HAVE_XAW3D=no
12963 USE_TOOLKIT_SCROLL_BARS=yes
12964 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
12965 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12967 USE_TOOLKIT_SCROLL_BARS=yes
12969 elif test "${HAVE_GTK}" = "yes"; then
12970 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12972 USE_TOOLKIT_SCROLL_BARS=yes
12973 elif test "${HAVE_NS}" = "yes"; then
12974 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12976 USE_TOOLKIT_SCROLL_BARS=yes
12977 elif test "${HAVE_W32}" = "yes"; then
12978 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12980 USE_TOOLKIT_SCROLL_BARS=yes
12984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12985 /* end confdefs.h. */
12987 #include <X11/Xlib.h>
12988 #include <X11/Xresource.h>
12990 main ()
12992 XIMProc callback;
12994 return 0;
12996 _ACEOF
12997 if ac_fn_c_try_compile "$LINENO"; then :
12998 HAVE_XIM=yes
13000 $as_echo "#define HAVE_XIM 1" >>confdefs.h
13002 else
13003 HAVE_XIM=no
13005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13008 if test "${with_xim}" != "no"; then
13010 $as_echo "#define USE_XIM 1" >>confdefs.h
13015 if test "${HAVE_XIM}" != "no"; then
13016 late_CFLAGS=$CFLAGS
13017 if test "$GCC" = yes; then
13018 CFLAGS="$CFLAGS --pedantic-errors"
13020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13021 /* end confdefs.h. */
13023 #include <X11/Xlib.h>
13024 #include <X11/Xresource.h>
13026 main ()
13028 Display *display;
13029 XrmDatabase db;
13030 char *res_name;
13031 char *res_class;
13032 XIMProc callback;
13033 XPointer *client_data;
13034 #ifndef __GNUC__
13035 /* If we're not using GCC, it's probably not XFree86, and this is
13036 probably right, but we can't use something like --pedantic-errors. */
13037 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13038 char*, XIMProc, XPointer*);
13039 #endif
13040 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13041 client_data);
13043 return 0;
13045 _ACEOF
13046 if ac_fn_c_try_compile "$LINENO"; then :
13047 emacs_cv_arg6_star=yes
13049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13050 if test "$emacs_cv_arg6_star" = yes; then
13051 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
13053 else
13054 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
13057 CFLAGS=$late_CFLAGS
13060 ### Start of font-backend (under any platform) section.
13061 # (nothing here yet -- this is a placeholder)
13062 ### End of font-backend (under any platform) section.
13064 ### Start of font-backend (under X11) section.
13065 if test "${HAVE_X11}" = "yes"; then
13067 succeeded=no
13069 if test "$PKG_CONFIG" = "no" ; then
13070 HAVE_FC=no
13071 else
13072 PKG_CONFIG_MIN_VERSION=0.9.0
13073 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
13075 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13077 if "$PKG_CONFIG" --exists "fontconfig >= 2.2.0" 2>&5 &&
13078 FONTCONFIG_CFLAGS=`"$PKG_CONFIG" --cflags "fontconfig >= 2.2.0" 2>&5` &&
13079 FONTCONFIG_LIBS=`"$PKG_CONFIG" --libs "fontconfig >= 2.2.0" 2>&5`; then
13080 edit_cflags="
13081 s,///*,/,g
13082 s/^/ /
13083 s/ -I/ $isystem/g
13084 s/^ //
13086 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
13087 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
13089 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
13090 succeeded=yes
13091 else
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13093 $as_echo "no" >&6; }
13094 FONTCONFIG_CFLAGS=""
13095 FONTCONFIG_LIBS=""
13096 ## If we have a custom action on failure, don't print errors, but
13097 ## do set a variable so people can do so. Do it in a subshell
13098 ## to capture any diagnostics in invoking pkg-config.
13099 FONTCONFIG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "fontconfig >= 2.2.0") 2>&1`
13105 else
13106 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13107 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13111 if test $succeeded = yes; then
13112 HAVE_FC=yes
13113 else
13114 HAVE_FC=no
13118 ## Use -lXft if available, unless `--with-xft=no'.
13119 HAVE_XFT=maybe
13120 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13121 with_xft="no";
13123 if test "x${with_xft}" != "xno"; then
13126 succeeded=no
13128 if test "$PKG_CONFIG" = "no" ; then
13129 HAVE_XFT=no
13130 else
13131 PKG_CONFIG_MIN_VERSION=0.9.0
13132 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
13134 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13136 if "$PKG_CONFIG" --exists "xft >= 0.13.0" 2>&5 &&
13137 XFT_CFLAGS=`"$PKG_CONFIG" --cflags "xft >= 0.13.0" 2>&5` &&
13138 XFT_LIBS=`"$PKG_CONFIG" --libs "xft >= 0.13.0" 2>&5`; then
13139 edit_cflags="
13140 s,///*,/,g
13141 s/^/ /
13142 s/ -I/ $isystem/g
13143 s/^ //
13145 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
13146 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
13148 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
13149 succeeded=yes
13150 else
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13152 $as_echo "no" >&6; }
13153 XFT_CFLAGS=""
13154 XFT_LIBS=""
13155 ## If we have a custom action on failure, don't print errors, but
13156 ## do set a variable so people can do so. Do it in a subshell
13157 ## to capture any diagnostics in invoking pkg-config.
13158 XFT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "xft >= 0.13.0") 2>&1`
13164 else
13165 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13166 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13170 if test $succeeded = yes; then
13172 else
13173 HAVE_XFT=no
13176 ## Because xftfont.c uses XRenderQueryExtension, we also
13177 ## need to link to -lXrender.
13178 HAVE_XRENDER=no
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
13180 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13181 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
13182 $as_echo_n "(cached) " >&6
13183 else
13184 ac_check_lib_save_LIBS=$LIBS
13185 LIBS="-lXrender $LIBS"
13186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13187 /* end confdefs.h. */
13189 /* Override any GCC internal prototype to avoid an error.
13190 Use char because int might match the return type of a GCC
13191 builtin and then its argument prototype would still apply. */
13192 #ifdef __cplusplus
13193 extern "C"
13194 #endif
13195 char XRenderQueryExtension ();
13197 main ()
13199 return XRenderQueryExtension ();
13201 return 0;
13203 _ACEOF
13204 if ac_fn_c_try_link "$LINENO"; then :
13205 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13206 else
13207 ac_cv_lib_Xrender_XRenderQueryExtension=no
13209 rm -f core conftest.err conftest.$ac_objext \
13210 conftest$ac_exeext conftest.$ac_ext
13211 LIBS=$ac_check_lib_save_LIBS
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13214 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13215 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
13216 HAVE_XRENDER=yes
13219 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13220 OLD_CPPFLAGS="$CPPFLAGS"
13221 OLD_CFLAGS="$CFLAGS"
13222 OLD_LIBS="$LIBS"
13223 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13224 CFLAGS="$CFLAGS $XFT_CFLAGS"
13225 XFT_LIBS="-lXrender $XFT_LIBS"
13226 LIBS="$XFT_LIBS $LIBS"
13227 ac_fn_c_check_header_compile "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "#include <X11/X.h>
13229 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
13231 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13232 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
13233 $as_echo_n "(cached) " >&6
13234 else
13235 ac_check_lib_save_LIBS=$LIBS
13236 LIBS="-lXft $XFT_LIBS $LIBS"
13237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13238 /* end confdefs.h. */
13240 /* Override any GCC internal prototype to avoid an error.
13241 Use char because int might match the return type of a GCC
13242 builtin and then its argument prototype would still apply. */
13243 #ifdef __cplusplus
13244 extern "C"
13245 #endif
13246 char XftFontOpen ();
13248 main ()
13250 return XftFontOpen ();
13252 return 0;
13254 _ACEOF
13255 if ac_fn_c_try_link "$LINENO"; then :
13256 ac_cv_lib_Xft_XftFontOpen=yes
13257 else
13258 ac_cv_lib_Xft_XftFontOpen=no
13260 rm -f core conftest.err conftest.$ac_objext \
13261 conftest$ac_exeext conftest.$ac_ext
13262 LIBS=$ac_check_lib_save_LIBS
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13265 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13266 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
13267 HAVE_XFT=yes
13274 if test "${HAVE_XFT}" = "yes"; then
13276 $as_echo "#define HAVE_XFT 1" >>confdefs.h
13279 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13280 else
13281 CPPFLAGS="$OLD_CPPFLAGS"
13282 CFLAGS="$OLD_CFLAGS"
13283 LIBS="$OLD_LIBS"
13284 fi # "${HAVE_XFT}" = "yes"
13285 fi # "$HAVE_XFT" != no
13286 fi # "x${with_xft}" != "xno"
13288 ## We used to allow building with FreeType and without Xft.
13289 ## However, the ftx font backend driver is not in good shape.
13290 if test "$HAVE_XFT" != "yes"; then
13291 HAVE_XFT=no
13292 HAVE_FREETYPE=no
13293 else
13295 succeeded=no
13297 if test "$PKG_CONFIG" = "no" ; then
13298 HAVE_FREETYPE=no
13299 else
13300 PKG_CONFIG_MIN_VERSION=0.9.0
13301 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
13303 $as_echo_n "checking for freetype2... " >&6; }
13305 if "$PKG_CONFIG" --exists "freetype2" 2>&5 &&
13306 FREETYPE_CFLAGS=`"$PKG_CONFIG" --cflags "freetype2" 2>&5` &&
13307 FREETYPE_LIBS=`"$PKG_CONFIG" --libs "freetype2" 2>&5`; then
13308 edit_cflags="
13309 s,///*,/,g
13310 s/^/ /
13311 s/ -I/ $isystem/g
13312 s/^ //
13314 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
13315 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
13317 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
13318 succeeded=yes
13319 else
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13321 $as_echo "no" >&6; }
13322 FREETYPE_CFLAGS=""
13323 FREETYPE_LIBS=""
13324 ## If we have a custom action on failure, don't print errors, but
13325 ## do set a variable so people can do so. Do it in a subshell
13326 ## to capture any diagnostics in invoking pkg-config.
13327 FREETYPE_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "freetype2") 2>&1`
13333 else
13334 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13335 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13339 if test $succeeded = yes; then
13340 HAVE_FREETYPE=yes
13341 else
13342 HAVE_FREETYPE=no
13346 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
13349 HAVE_LIBOTF=no
13350 if test "${HAVE_FREETYPE}" = "yes"; then
13352 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
13354 if test "${with_libotf}" != "no"; then
13356 succeeded=no
13358 if test "$PKG_CONFIG" = "no" ; then
13359 HAVE_LIBOTF=no
13360 else
13361 PKG_CONFIG_MIN_VERSION=0.9.0
13362 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
13364 $as_echo_n "checking for libotf... " >&6; }
13366 if "$PKG_CONFIG" --exists "libotf" 2>&5 &&
13367 LIBOTF_CFLAGS=`"$PKG_CONFIG" --cflags "libotf" 2>&5` &&
13368 LIBOTF_LIBS=`"$PKG_CONFIG" --libs "libotf" 2>&5`; then
13369 edit_cflags="
13370 s,///*,/,g
13371 s/^/ /
13372 s/ -I/ $isystem/g
13373 s/^ //
13375 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
13376 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
13378 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
13379 succeeded=yes
13380 else
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13382 $as_echo "no" >&6; }
13383 LIBOTF_CFLAGS=""
13384 LIBOTF_LIBS=""
13385 ## If we have a custom action on failure, don't print errors, but
13386 ## do set a variable so people can do so. Do it in a subshell
13387 ## to capture any diagnostics in invoking pkg-config.
13388 LIBOTF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libotf") 2>&1`
13394 else
13395 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13396 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13400 if test $succeeded = yes; then
13401 HAVE_LIBOTF=yes
13402 else
13403 HAVE_LIBOTF=no
13406 if test "$HAVE_LIBOTF" = "yes"; then
13408 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
13411 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13412 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
13413 $as_echo_n "(cached) " >&6
13414 else
13415 ac_check_lib_save_LIBS=$LIBS
13416 LIBS="-lotf $LIBS"
13417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13418 /* end confdefs.h. */
13420 /* Override any GCC internal prototype to avoid an error.
13421 Use char because int might match the return type of a GCC
13422 builtin and then its argument prototype would still apply. */
13423 #ifdef __cplusplus
13424 extern "C"
13425 #endif
13426 char OTF_get_variation_glyphs ();
13428 main ()
13430 return OTF_get_variation_glyphs ();
13432 return 0;
13434 _ACEOF
13435 if ac_fn_c_try_link "$LINENO"; then :
13436 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13437 else
13438 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13440 rm -f core conftest.err conftest.$ac_objext \
13441 conftest$ac_exeext conftest.$ac_ext
13442 LIBS=$ac_check_lib_save_LIBS
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13445 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13446 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
13447 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13448 else
13449 HAVE_OTF_GET_VARIATION_GLYPHS=no
13452 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13454 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
13461 HAVE_M17N_FLT=no
13462 if test "${HAVE_LIBOTF}" = yes; then
13463 if test "${with_m17n_flt}" != "no"; then
13465 succeeded=no
13467 if test "$PKG_CONFIG" = "no" ; then
13468 HAVE_M17N_FLT=no
13469 else
13470 PKG_CONFIG_MIN_VERSION=0.9.0
13471 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
13473 $as_echo_n "checking for m17n-flt... " >&6; }
13475 if "$PKG_CONFIG" --exists "m17n-flt" 2>&5 &&
13476 M17N_FLT_CFLAGS=`"$PKG_CONFIG" --cflags "m17n-flt" 2>&5` &&
13477 M17N_FLT_LIBS=`"$PKG_CONFIG" --libs "m17n-flt" 2>&5`; then
13478 edit_cflags="
13479 s,///*,/,g
13480 s/^/ /
13481 s/ -I/ $isystem/g
13482 s/^ //
13484 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
13485 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
13487 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
13488 succeeded=yes
13489 else
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13491 $as_echo "no" >&6; }
13492 M17N_FLT_CFLAGS=""
13493 M17N_FLT_LIBS=""
13494 ## If we have a custom action on failure, don't print errors, but
13495 ## do set a variable so people can do so. Do it in a subshell
13496 ## to capture any diagnostics in invoking pkg-config.
13497 M17N_FLT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "m17n-flt") 2>&1`
13503 else
13504 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13505 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13509 if test $succeeded = yes; then
13510 HAVE_M17N_FLT=yes
13511 else
13512 HAVE_M17N_FLT=no
13515 if test "$HAVE_M17N_FLT" = "yes"; then
13517 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13522 else
13523 HAVE_XFT=no
13524 HAVE_FREETYPE=no
13525 HAVE_LIBOTF=no
13526 HAVE_M17N_FLT=no
13529 ### End of font-backend (under X11) section.
13540 ### Use -lXpm if available, unless `--with-xpm=no'.
13541 ### mingw32 doesn't use -lXpm, since it loads the library dynamically.
13542 HAVE_XPM=no
13543 LIBXPM=
13544 if test "${HAVE_W32}" = "yes" && test "${opsys}" = "cygwin"; then
13545 if test "${with_xpm}" != "no"; then
13546 SAVE_CPPFLAGS="$CPPFLAGS"
13547 SAVE_LDFLAGS="$LDFLAGS"
13548 CPPFLAGS="$CPPFLAGS -I/usr/include/noX"
13549 LDFLAGS="$LDFLAGS -L/usr/lib/noX"
13550 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13551 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
13553 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
13554 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
13555 $as_echo_n "(cached) " >&6
13556 else
13557 ac_check_lib_save_LIBS=$LIBS
13558 LIBS="-lXpm $LIBS"
13559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13560 /* end confdefs.h. */
13562 /* Override any GCC internal prototype to avoid an error.
13563 Use char because int might match the return type of a GCC
13564 builtin and then its argument prototype would still apply. */
13565 #ifdef __cplusplus
13566 extern "C"
13567 #endif
13568 char XpmReadFileToImage ();
13570 main ()
13572 return XpmReadFileToImage ();
13574 return 0;
13576 _ACEOF
13577 if ac_fn_c_try_link "$LINENO"; then :
13578 ac_cv_lib_Xpm_XpmReadFileToImage=yes
13579 else
13580 ac_cv_lib_Xpm_XpmReadFileToImage=no
13582 rm -f core conftest.err conftest.$ac_objext \
13583 conftest$ac_exeext conftest.$ac_ext
13584 LIBS=$ac_check_lib_save_LIBS
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
13587 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
13588 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x""yes; then :
13589 HAVE_XPM=yes
13595 if test "${HAVE_XPM}" = "yes"; then
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13597 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13599 /* end confdefs.h. */
13600 #include "X11/xpm.h"
13601 #ifndef XpmReturnAllocPixels
13602 no_return_alloc_pixels
13603 #endif
13605 _ACEOF
13606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13607 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13608 HAVE_XPM=no
13609 else
13610 HAVE_XPM=yes
13612 rm -f conftest*
13615 if test "${HAVE_XPM}" = "yes"; then
13616 REAL_CPPFLAGS="$REAL_CPPFLAGS -I/usr/include/noX"
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13618 $as_echo "yes" >&6; }
13619 else
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13621 $as_echo "no" >&6; }
13622 CPPFLAGS="$SAVE_CPPFLAGS"
13623 LDFLAGS="$SAVE_LDFLAGS"
13628 if test "${HAVE_XPM}" = "yes"; then
13630 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13632 LIBXPM=-lXpm
13636 if test "${HAVE_X11}" = "yes"; then
13637 if test "${with_xpm}" != "no"; then
13638 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13639 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13641 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13642 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13643 $as_echo_n "(cached) " >&6
13644 else
13645 ac_check_lib_save_LIBS=$LIBS
13646 LIBS="-lXpm -lX11 $LIBS"
13647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13648 /* end confdefs.h. */
13650 /* Override any GCC internal prototype to avoid an error.
13651 Use char because int might match the return type of a GCC
13652 builtin and then its argument prototype would still apply. */
13653 #ifdef __cplusplus
13654 extern "C"
13655 #endif
13656 char XpmReadFileToPixmap ();
13658 main ()
13660 return XpmReadFileToPixmap ();
13662 return 0;
13664 _ACEOF
13665 if ac_fn_c_try_link "$LINENO"; then :
13666 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13667 else
13668 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13670 rm -f core conftest.err conftest.$ac_objext \
13671 conftest$ac_exeext conftest.$ac_ext
13672 LIBS=$ac_check_lib_save_LIBS
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13675 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13676 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
13677 HAVE_XPM=yes
13683 if test "${HAVE_XPM}" = "yes"; then
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13685 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13687 /* end confdefs.h. */
13688 #include "X11/xpm.h"
13689 #ifndef XpmReturnAllocPixels
13690 no_return_alloc_pixels
13691 #endif
13693 _ACEOF
13694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13695 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13696 HAVE_XPM=no
13697 else
13698 HAVE_XPM=yes
13700 rm -f conftest*
13703 if test "${HAVE_XPM}" = "yes"; then
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13705 $as_echo "yes" >&6; }
13706 else
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13708 $as_echo "no" >&6; }
13713 if test "${HAVE_XPM}" = "yes"; then
13715 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13717 LIBXPM=-lXpm
13721 ### FIXME: Perhaps regroup to minimize code duplication due to MinGW's
13722 ### slightly different requirements wrt image libraries (it doesn't
13723 ### use -lXpm because it loads the xpm shared library dynamically at
13724 ### run time).
13725 if test "${opsys}" = "mingw32"; then
13726 if test "${with_xpm}" != "no"; then
13727 ac_fn_c_check_header_compile "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "
13728 #define FOR_MSW 1
13730 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13731 HAVE_XPM=yes
13732 else
13733 HAVE_XPM=no
13739 if test "${HAVE_XPM}" = "yes"; then
13741 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13748 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13749 ### mingw32 doesn't use -ljpeg, since it loads the library dynamically.
13750 HAVE_JPEG=no
13751 LIBJPEG=
13752 if test "${opsys}" = "mingw32"; then
13753 if test "${with_jpeg}" != "no"; then
13754 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13755 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13756 HAVE_JPEG=yes
13757 else
13758 HAVE_JPEG=no
13763 if test "${HAVE_JPEG}" = "yes"; then
13764 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13767 /* end confdefs.h. */
13768 #include <jpeglib.h>
13769 version=JPEG_LIB_VERSION
13771 _ACEOF
13772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13773 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13774 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13776 else
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13778 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13779 HAVE_JPEG=no
13781 rm -f conftest*
13784 elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13785 if test "${with_jpeg}" != "no"; then
13786 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13787 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13789 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13790 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13791 $as_echo_n "(cached) " >&6
13792 else
13793 ac_check_lib_save_LIBS=$LIBS
13794 LIBS="-ljpeg $LIBS"
13795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13796 /* end confdefs.h. */
13798 /* Override any GCC internal prototype to avoid an error.
13799 Use char because int might match the return type of a GCC
13800 builtin and then its argument prototype would still apply. */
13801 #ifdef __cplusplus
13802 extern "C"
13803 #endif
13804 char jpeg_destroy_compress ();
13806 main ()
13808 return jpeg_destroy_compress ();
13810 return 0;
13812 _ACEOF
13813 if ac_fn_c_try_link "$LINENO"; then :
13814 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13815 else
13816 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13818 rm -f core conftest.err conftest.$ac_objext \
13819 conftest$ac_exeext conftest.$ac_ext
13820 LIBS=$ac_check_lib_save_LIBS
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13823 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13824 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
13825 HAVE_JPEG=yes
13833 if test "${HAVE_JPEG}" = "yes"; then
13834 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13837 /* end confdefs.h. */
13838 #include <jpeglib.h>
13839 version=JPEG_LIB_VERSION
13841 _ACEOF
13842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13843 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13844 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13846 else
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13848 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13849 HAVE_JPEG=no
13851 rm -f conftest*
13854 if test "${HAVE_JPEG}" = "yes"; then
13855 LIBJPEG=-ljpeg
13860 ### Use -lpng if available, unless `--with-png=no'.
13861 ### mingw32 doesn't use -lpng, since it loads the library dynamically.
13862 HAVE_PNG=no
13863 LIBPNG=
13864 if test "${opsys}" = "mingw32"; then
13865 if test "${with_png}" != "no"; then
13866 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
13867 if test "x$ac_cv_header_png_h" = x""yes; then :
13868 HAVE_PNG=yes
13869 else
13870 HAVE_PNG=no
13875 if test "${HAVE_PNG}" = "yes"; then
13877 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13880 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13881 # include <libpng/png.h>
13882 #else
13883 # include <png.h>
13884 #endif
13887 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
13889 else
13891 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13896 elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13897 if test "${with_png}" != "no"; then
13898 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13899 # in /usr/include/libpng.
13900 for ac_header in png.h libpng/png.h
13901 do :
13902 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13903 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13904 eval as_val=\$$as_ac_Header
13905 if test "x$as_val" = x""yes; then :
13906 cat >>confdefs.h <<_ACEOF
13907 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13908 _ACEOF
13909 break
13912 done
13914 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13916 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13917 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13918 $as_echo_n "(cached) " >&6
13919 else
13920 ac_check_lib_save_LIBS=$LIBS
13921 LIBS="-lpng -lz -lm $LIBS"
13922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13923 /* end confdefs.h. */
13925 /* Override any GCC internal prototype to avoid an error.
13926 Use char because int might match the return type of a GCC
13927 builtin and then its argument prototype would still apply. */
13928 #ifdef __cplusplus
13929 extern "C"
13930 #endif
13931 char png_get_channels ();
13933 main ()
13935 return png_get_channels ();
13937 return 0;
13939 _ACEOF
13940 if ac_fn_c_try_link "$LINENO"; then :
13941 ac_cv_lib_png_png_get_channels=yes
13942 else
13943 ac_cv_lib_png_png_get_channels=no
13945 rm -f core conftest.err conftest.$ac_objext \
13946 conftest$ac_exeext conftest.$ac_ext
13947 LIBS=$ac_check_lib_save_LIBS
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13950 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13951 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
13952 HAVE_PNG=yes
13958 if test "${HAVE_PNG}" = "yes"; then
13960 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13962 LIBPNG="-lpng -lz -lm"
13964 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13965 # include <libpng/png.h>
13966 #else
13967 # include <png.h>
13968 #endif
13971 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
13973 else
13975 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13983 HAVE_ZLIB=no
13984 LIBZ=
13985 if test "${with_zlib}" != "no"; then
13986 OLIBS=$LIBS
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
13988 $as_echo_n "checking for library containing inflateEnd... " >&6; }
13989 if test "${ac_cv_search_inflateEnd+set}" = set; then :
13990 $as_echo_n "(cached) " >&6
13991 else
13992 ac_func_search_save_LIBS=$LIBS
13993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13994 /* end confdefs.h. */
13996 /* Override any GCC internal prototype to avoid an error.
13997 Use char because int might match the return type of a GCC
13998 builtin and then its argument prototype would still apply. */
13999 #ifdef __cplusplus
14000 extern "C"
14001 #endif
14002 char inflateEnd ();
14004 main ()
14006 return inflateEnd ();
14008 return 0;
14010 _ACEOF
14011 for ac_lib in '' z; do
14012 if test -z "$ac_lib"; then
14013 ac_res="none required"
14014 else
14015 ac_res=-l$ac_lib
14016 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14018 if ac_fn_c_try_link "$LINENO"; then :
14019 ac_cv_search_inflateEnd=$ac_res
14021 rm -f core conftest.err conftest.$ac_objext \
14022 conftest$ac_exeext
14023 if test "${ac_cv_search_inflateEnd+set}" = set; then :
14024 break
14026 done
14027 if test "${ac_cv_search_inflateEnd+set}" = set; then :
14029 else
14030 ac_cv_search_inflateEnd=no
14032 rm conftest.$ac_ext
14033 LIBS=$ac_func_search_save_LIBS
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
14036 $as_echo "$ac_cv_search_inflateEnd" >&6; }
14037 ac_res=$ac_cv_search_inflateEnd
14038 if test "$ac_res" != no; then :
14039 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14040 HAVE_ZLIB=yes
14043 LIBS=$OLIBS
14044 case $ac_cv_search_inflateEnd in
14045 -*) LIBZ=$ac_cv_search_inflateEnd ;;
14046 esac
14048 if test "${HAVE_ZLIB}" = "yes"; then
14050 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
14052 ### mingw32 doesn't use -lz, since it loads the library dynamically.
14053 if test "${opsys}" = "mingw32"; then
14054 LIBZ=
14060 ### Use -ltiff if available, unless `--with-tiff=no'.
14061 ### mingw32 doesn't use -ltiff, since it loads the library dynamically.
14062 HAVE_TIFF=no
14063 LIBTIFF=
14064 if test "${opsys}" = "mingw32"; then
14065 if test "${with_tiff}" != "no"; then
14066 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
14067 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
14068 HAVE_TIFF=yes
14069 else
14070 HAVE_TIFF=no
14075 if test "${HAVE_TIFF}" = "yes"; then
14077 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
14080 elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
14081 if test "${with_tiff}" != "no"; then
14082 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
14083 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
14084 tifflibs="-lz -lm"
14085 # At least one tiff package requires the jpeg library.
14086 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
14088 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
14089 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
14090 $as_echo_n "(cached) " >&6
14091 else
14092 ac_check_lib_save_LIBS=$LIBS
14093 LIBS="-ltiff $tifflibs $LIBS"
14094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14095 /* end confdefs.h. */
14097 /* Override any GCC internal prototype to avoid an error.
14098 Use char because int might match the return type of a GCC
14099 builtin and then its argument prototype would still apply. */
14100 #ifdef __cplusplus
14101 extern "C"
14102 #endif
14103 char TIFFGetVersion ();
14105 main ()
14107 return TIFFGetVersion ();
14109 return 0;
14111 _ACEOF
14112 if ac_fn_c_try_link "$LINENO"; then :
14113 ac_cv_lib_tiff_TIFFGetVersion=yes
14114 else
14115 ac_cv_lib_tiff_TIFFGetVersion=no
14117 rm -f core conftest.err conftest.$ac_objext \
14118 conftest$ac_exeext conftest.$ac_ext
14119 LIBS=$ac_check_lib_save_LIBS
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14122 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14123 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
14124 HAVE_TIFF=yes
14132 if test "${HAVE_TIFF}" = "yes"; then
14134 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
14136 LIBTIFF=-ltiff
14141 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14142 ### mingw32 doesn't use -lgif/-lungif, since it loads the library dynamically.
14143 HAVE_GIF=no
14144 LIBGIF=
14145 if test "${opsys}" = "mingw32"; then
14146 if test "${with_gif}" != "no"; then
14147 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
14148 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
14149 HAVE_GIF=yes
14150 else
14151 HAVE_GIF=no
14156 if test "${HAVE_GIF}" = "yes"; then
14158 $as_echo "#define HAVE_GIF 1" >>confdefs.h
14161 elif test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
14162 || test "${HAVE_W32}" = "yes"; then
14163 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
14164 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
14165 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14166 # Earlier versions can crash Emacs, but version 5.0 removes EGifPutExtensionLast.
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GifMakeMapObject in -lgif" >&5
14168 $as_echo_n "checking for GifMakeMapObject in -lgif... " >&6; }
14169 if test "${ac_cv_lib_gif_GifMakeMapObject+set}" = set; then :
14170 $as_echo_n "(cached) " >&6
14171 else
14172 ac_check_lib_save_LIBS=$LIBS
14173 LIBS="-lgif $LIBS"
14174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14175 /* end confdefs.h. */
14177 /* Override any GCC internal prototype to avoid an error.
14178 Use char because int might match the return type of a GCC
14179 builtin and then its argument prototype would still apply. */
14180 #ifdef __cplusplus
14181 extern "C"
14182 #endif
14183 char GifMakeMapObject ();
14185 main ()
14187 return GifMakeMapObject ();
14189 return 0;
14191 _ACEOF
14192 if ac_fn_c_try_link "$LINENO"; then :
14193 ac_cv_lib_gif_GifMakeMapObject=yes
14194 else
14195 ac_cv_lib_gif_GifMakeMapObject=no
14197 rm -f core conftest.err conftest.$ac_objext \
14198 conftest$ac_exeext conftest.$ac_ext
14199 LIBS=$ac_check_lib_save_LIBS
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_GifMakeMapObject" >&5
14202 $as_echo "$ac_cv_lib_gif_GifMakeMapObject" >&6; }
14203 if test "x$ac_cv_lib_gif_GifMakeMapObject" = x""yes; then :
14204 HAVE_GIF=yes
14205 else
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
14207 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
14208 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
14209 $as_echo_n "(cached) " >&6
14210 else
14211 ac_check_lib_save_LIBS=$LIBS
14212 LIBS="-lgif $LIBS"
14213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14214 /* end confdefs.h. */
14216 /* Override any GCC internal prototype to avoid an error.
14217 Use char because int might match the return type of a GCC
14218 builtin and then its argument prototype would still apply. */
14219 #ifdef __cplusplus
14220 extern "C"
14221 #endif
14222 char EGifPutExtensionLast ();
14224 main ()
14226 return EGifPutExtensionLast ();
14228 return 0;
14230 _ACEOF
14231 if ac_fn_c_try_link "$LINENO"; then :
14232 ac_cv_lib_gif_EGifPutExtensionLast=yes
14233 else
14234 ac_cv_lib_gif_EGifPutExtensionLast=no
14236 rm -f core conftest.err conftest.$ac_objext \
14237 conftest$ac_exeext conftest.$ac_ext
14238 LIBS=$ac_check_lib_save_LIBS
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14241 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14242 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
14243 HAVE_GIF=yes
14244 else
14245 HAVE_GIF=maybe
14254 if test "$HAVE_GIF" = yes; then
14255 LIBGIF=-lgif
14256 elif test "$HAVE_GIF" = maybe; then
14257 # If gif_lib.h but no libgif, try libungif.
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
14259 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
14260 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
14261 $as_echo_n "(cached) " >&6
14262 else
14263 ac_check_lib_save_LIBS=$LIBS
14264 LIBS="-lungif $LIBS"
14265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14266 /* end confdefs.h. */
14268 /* Override any GCC internal prototype to avoid an error.
14269 Use char because int might match the return type of a GCC
14270 builtin and then its argument prototype would still apply. */
14271 #ifdef __cplusplus
14272 extern "C"
14273 #endif
14274 char EGifPutExtensionLast ();
14276 main ()
14278 return EGifPutExtensionLast ();
14280 return 0;
14282 _ACEOF
14283 if ac_fn_c_try_link "$LINENO"; then :
14284 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14285 else
14286 ac_cv_lib_ungif_EGifPutExtensionLast=no
14288 rm -f core conftest.err conftest.$ac_objext \
14289 conftest$ac_exeext conftest.$ac_ext
14290 LIBS=$ac_check_lib_save_LIBS
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14293 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14294 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
14295 HAVE_GIF=yes
14296 else
14297 HAVE_GIF=no
14300 test "$HAVE_GIF" = yes && LIBGIF=-lungif
14303 if test "${HAVE_GIF}" = "yes"; then
14305 $as_echo "#define HAVE_GIF 1" >>confdefs.h
14311 if test "${HAVE_X11}" = "yes"; then
14312 MISSING=""
14313 WITH_NO=""
14314 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14315 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14316 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14317 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14318 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14319 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14320 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14321 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14322 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14323 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14325 if test "X${MISSING}" != X; then
14326 as_fn_error "The following required libraries were not found:
14327 $MISSING
14328 Maybe some development libraries/packages are missing?
14329 If you don't want to link with them give
14330 $WITH_NO
14331 as options to configure" "$LINENO" 5
14335 ### Use -lgpm if available, unless `--with-gpm=no'.
14336 HAVE_GPM=no
14337 LIBGPM=
14338 if test "${with_gpm}" != "no"; then
14339 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
14340 if test "x$ac_cv_header_gpm_h" = x""yes; then :
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
14342 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
14343 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
14344 $as_echo_n "(cached) " >&6
14345 else
14346 ac_check_lib_save_LIBS=$LIBS
14347 LIBS="-lgpm $LIBS"
14348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14349 /* end confdefs.h. */
14351 /* Override any GCC internal prototype to avoid an error.
14352 Use char because int might match the return type of a GCC
14353 builtin and then its argument prototype would still apply. */
14354 #ifdef __cplusplus
14355 extern "C"
14356 #endif
14357 char Gpm_Open ();
14359 main ()
14361 return Gpm_Open ();
14363 return 0;
14365 _ACEOF
14366 if ac_fn_c_try_link "$LINENO"; then :
14367 ac_cv_lib_gpm_Gpm_Open=yes
14368 else
14369 ac_cv_lib_gpm_Gpm_Open=no
14371 rm -f core conftest.err conftest.$ac_objext \
14372 conftest$ac_exeext conftest.$ac_ext
14373 LIBS=$ac_check_lib_save_LIBS
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14376 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
14377 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
14378 HAVE_GPM=yes
14385 if test "${HAVE_GPM}" = "yes"; then
14387 $as_echo "#define HAVE_GPM 1" >>confdefs.h
14389 LIBGPM=-lgpm
14398 GNUSTEP_CFLAGS=
14399 ### Use NeXTstep API to implement GUI.
14400 if test "${HAVE_NS}" = "yes"; then
14402 $as_echo "#define HAVE_NS 1" >>confdefs.h
14404 if test "${NS_IMPL_COCOA}" = "yes"; then
14406 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
14409 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14411 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
14413 # See also .m.o rule in Makefile.in */
14414 # FIXME: are all these flags really needed? Document here why. */
14415 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
14416 ## Extra CFLAGS applied to src/*.m files.
14417 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"
14419 OTHER_FILES=ns-app
14422 ### Use session management (-lSM -lICE) if available
14423 HAVE_X_SM=no
14424 LIBXSM=
14425 if test "${HAVE_X11}" = "yes"; then
14426 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
14427 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
14429 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
14430 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
14431 $as_echo_n "(cached) " >&6
14432 else
14433 ac_check_lib_save_LIBS=$LIBS
14434 LIBS="-lSM -lICE $LIBS"
14435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14436 /* end confdefs.h. */
14438 /* Override any GCC internal prototype to avoid an error.
14439 Use char because int might match the return type of a GCC
14440 builtin and then its argument prototype would still apply. */
14441 #ifdef __cplusplus
14442 extern "C"
14443 #endif
14444 char SmcOpenConnection ();
14446 main ()
14448 return SmcOpenConnection ();
14450 return 0;
14452 _ACEOF
14453 if ac_fn_c_try_link "$LINENO"; then :
14454 ac_cv_lib_SM_SmcOpenConnection=yes
14455 else
14456 ac_cv_lib_SM_SmcOpenConnection=no
14458 rm -f core conftest.err conftest.$ac_objext \
14459 conftest$ac_exeext conftest.$ac_ext
14460 LIBS=$ac_check_lib_save_LIBS
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14463 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14464 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
14465 HAVE_X_SM=yes
14472 if test "${HAVE_X_SM}" = "yes"; then
14474 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
14476 LIBXSM="-lSM -lICE"
14477 case "$LIBS" in
14478 *-lSM*) ;;
14479 *) LIBS="$LIBXSM $LIBS" ;;
14480 esac
14485 ### Use XRandr (-lXrandr) if available
14486 HAVE_XRANDR=no
14487 if test "${HAVE_X11}" = "yes"; then
14488 XRANDR_REQUIRED=1.2.2
14489 XRANDR_MODULES="xrandr >= $XRANDR_REQUIRED"
14491 succeeded=no
14493 if test "$PKG_CONFIG" = "no" ; then
14494 HAVE_XRANDR=no
14495 else
14496 PKG_CONFIG_MIN_VERSION=0.9.0
14497 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XRANDR_MODULES" >&5
14499 $as_echo_n "checking for $XRANDR_MODULES... " >&6; }
14501 if "$PKG_CONFIG" --exists "$XRANDR_MODULES" 2>&5 &&
14502 XRANDR_CFLAGS=`"$PKG_CONFIG" --cflags "$XRANDR_MODULES" 2>&5` &&
14503 XRANDR_LIBS=`"$PKG_CONFIG" --libs "$XRANDR_MODULES" 2>&5`; then
14504 edit_cflags="
14505 s,///*,/,g
14506 s/^/ /
14507 s/ -I/ $isystem/g
14508 s/^ //
14510 XRANDR_CFLAGS=`$as_echo "$XRANDR_CFLAGS" | sed -e "$edit_cflags"`
14511 XRANDR_LIBS=`$as_echo "$XRANDR_LIBS" | sed -e 's,///*,/,g'`
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&5
14513 $as_echo "yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&6; }
14514 succeeded=yes
14515 else
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14517 $as_echo "no" >&6; }
14518 XRANDR_CFLAGS=""
14519 XRANDR_LIBS=""
14520 ## If we have a custom action on failure, don't print errors, but
14521 ## do set a variable so people can do so. Do it in a subshell
14522 ## to capture any diagnostics in invoking pkg-config.
14523 XRANDR_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$XRANDR_MODULES") 2>&1`
14529 else
14530 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14531 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14535 if test $succeeded = yes; then
14536 HAVE_XRANDR=yes
14537 else
14538 HAVE_XRANDR=no
14541 if test $HAVE_XRANDR = no; then
14542 # Test old way in case pkg-config doesn't have it (older machines).
14543 ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "$ac_includes_default"
14544 if test "x$ac_cv_header_X11_extensions_Xrandr_h" = x""yes; then :
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRGetScreenResources in -lXrandr" >&5
14546 $as_echo_n "checking for XRRGetScreenResources in -lXrandr... " >&6; }
14547 if test "${ac_cv_lib_Xrandr_XRRGetScreenResources+set}" = set; then :
14548 $as_echo_n "(cached) " >&6
14549 else
14550 ac_check_lib_save_LIBS=$LIBS
14551 LIBS="-lXrandr $LIBS"
14552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14553 /* end confdefs.h. */
14555 /* Override any GCC internal prototype to avoid an error.
14556 Use char because int might match the return type of a GCC
14557 builtin and then its argument prototype would still apply. */
14558 #ifdef __cplusplus
14559 extern "C"
14560 #endif
14561 char XRRGetScreenResources ();
14563 main ()
14565 return XRRGetScreenResources ();
14567 return 0;
14569 _ACEOF
14570 if ac_fn_c_try_link "$LINENO"; then :
14571 ac_cv_lib_Xrandr_XRRGetScreenResources=yes
14572 else
14573 ac_cv_lib_Xrandr_XRRGetScreenResources=no
14575 rm -f core conftest.err conftest.$ac_objext \
14576 conftest$ac_exeext conftest.$ac_ext
14577 LIBS=$ac_check_lib_save_LIBS
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRGetScreenResources" >&5
14580 $as_echo "$ac_cv_lib_Xrandr_XRRGetScreenResources" >&6; }
14581 if test "x$ac_cv_lib_Xrandr_XRRGetScreenResources" = x""yes; then :
14582 HAVE_XRANDR=yes
14588 if test $HAVE_XRANDR = yes; then
14589 XRANDR_LIBS=-lXrandr
14593 if test $HAVE_XRANDR = yes; then
14594 SAVE_CFLAGS="$CFLAGS"
14595 SAVE_LIBS="$LIBS"
14596 CFLAGS="$XRANDR_CFLAGS $CFLAGS"
14597 LIBS="$XRANDR_LIBS $LIBS"
14598 for ac_func in XRRGetOutputPrimary XRRGetScreenResourcesCurrent
14599 do :
14600 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14601 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14602 eval as_val=\$$as_ac_var
14603 if test "x$as_val" = x""yes; then :
14604 cat >>confdefs.h <<_ACEOF
14605 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14606 _ACEOF
14609 done
14611 CFLAGS="$SAVE_CFLAGS"
14612 LIBS="$SAVE_LIBS"
14615 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
14620 ### Use Xinerama (-lXinerama) if available
14621 HAVE_XINERAMA=no
14622 if test "${HAVE_X11}" = "yes"; then
14623 XINERAMA_REQUIRED=1.0.2
14624 XINERAMA_MODULES="xinerama >= $XINERAMA_REQUIRED"
14626 succeeded=no
14628 if test "$PKG_CONFIG" = "no" ; then
14629 HAVE_XINERAMA=no
14630 else
14631 PKG_CONFIG_MIN_VERSION=0.9.0
14632 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XINERAMA_MODULES" >&5
14634 $as_echo_n "checking for $XINERAMA_MODULES... " >&6; }
14636 if "$PKG_CONFIG" --exists "$XINERAMA_MODULES" 2>&5 &&
14637 XINERAMA_CFLAGS=`"$PKG_CONFIG" --cflags "$XINERAMA_MODULES" 2>&5` &&
14638 XINERAMA_LIBS=`"$PKG_CONFIG" --libs "$XINERAMA_MODULES" 2>&5`; then
14639 edit_cflags="
14640 s,///*,/,g
14641 s/^/ /
14642 s/ -I/ $isystem/g
14643 s/^ //
14645 XINERAMA_CFLAGS=`$as_echo "$XINERAMA_CFLAGS" | sed -e "$edit_cflags"`
14646 XINERAMA_LIBS=`$as_echo "$XINERAMA_LIBS" | sed -e 's,///*,/,g'`
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&5
14648 $as_echo "yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&6; }
14649 succeeded=yes
14650 else
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14652 $as_echo "no" >&6; }
14653 XINERAMA_CFLAGS=""
14654 XINERAMA_LIBS=""
14655 ## If we have a custom action on failure, don't print errors, but
14656 ## do set a variable so people can do so. Do it in a subshell
14657 ## to capture any diagnostics in invoking pkg-config.
14658 XINERAMA_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$XINERAMA_MODULES") 2>&1`
14664 else
14665 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14666 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14670 if test $succeeded = yes; then
14671 HAVE_XINERAMA=yes
14672 else
14673 HAVE_XINERAMA=no
14676 if test $HAVE_XINERAMA = no; then
14677 # Test old way in case pkg-config doesn't have it (older machines).
14678 ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "$ac_includes_default"
14679 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = x""yes; then :
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
14681 $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
14682 if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then :
14683 $as_echo_n "(cached) " >&6
14684 else
14685 ac_check_lib_save_LIBS=$LIBS
14686 LIBS="-lXinerama $LIBS"
14687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14688 /* end confdefs.h. */
14690 /* Override any GCC internal prototype to avoid an error.
14691 Use char because int might match the return type of a GCC
14692 builtin and then its argument prototype would still apply. */
14693 #ifdef __cplusplus
14694 extern "C"
14695 #endif
14696 char XineramaQueryExtension ();
14698 main ()
14700 return XineramaQueryExtension ();
14702 return 0;
14704 _ACEOF
14705 if ac_fn_c_try_link "$LINENO"; then :
14706 ac_cv_lib_Xinerama_XineramaQueryExtension=yes
14707 else
14708 ac_cv_lib_Xinerama_XineramaQueryExtension=no
14710 rm -f core conftest.err conftest.$ac_objext \
14711 conftest$ac_exeext conftest.$ac_ext
14712 LIBS=$ac_check_lib_save_LIBS
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
14715 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
14716 if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = x""yes; then :
14717 HAVE_XINERAMA=yes
14723 if test $HAVE_XINERAMA = yes; then
14724 XINERAMA_LIBS=-lXinerama
14728 if test $HAVE_XINERAMA = yes; then
14730 $as_echo "#define HAVE_XINERAMA 1" >>confdefs.h
14736 ### Use libxml (-lxml2) if available
14737 ### mingw32 doesn't use -lxml2, since it loads the library dynamically.
14738 HAVE_LIBXML2=no
14739 if test "${with_xml2}" != "no"; then
14740 ### I'm not sure what the version number should be, so I just guessed.
14742 succeeded=no
14744 if test "$PKG_CONFIG" = "no" ; then
14745 HAVE_LIBXML2=no
14746 else
14747 PKG_CONFIG_MIN_VERSION=0.9.0
14748 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
14750 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
14752 if "$PKG_CONFIG" --exists "libxml-2.0 > 2.6.17" 2>&5 &&
14753 LIBXML2_CFLAGS=`"$PKG_CONFIG" --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
14754 LIBXML2_LIBS=`"$PKG_CONFIG" --libs "libxml-2.0 > 2.6.17" 2>&5`; then
14755 edit_cflags="
14756 s,///*,/,g
14757 s/^/ /
14758 s/ -I/ $isystem/g
14759 s/^ //
14761 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
14762 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
14764 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
14765 succeeded=yes
14766 else
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14768 $as_echo "no" >&6; }
14769 LIBXML2_CFLAGS=""
14770 LIBXML2_LIBS=""
14771 ## If we have a custom action on failure, don't print errors, but
14772 ## do set a variable so people can do so. Do it in a subshell
14773 ## to capture any diagnostics in invoking pkg-config.
14774 LIBXML2_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libxml-2.0 > 2.6.17") 2>&1`
14780 else
14781 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14782 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14786 if test $succeeded = yes; then
14787 HAVE_LIBXML2=yes
14788 else
14789 HAVE_LIBXML2=no
14792 # Built-in libxml2 on OS X 10.8 lacks libxml-2.0.pc.
14793 if test "${HAVE_LIBXML2}" != "yes" -a "$opsys" = "darwin"; then
14794 SAVE_CPPFLAGS="$CPPFLAGS"
14795 CPPFLAGS="$CPPFLAGS -I/usr/include/libxml2"
14796 ac_fn_c_check_header_mongrel "$LINENO" "libxml/HTMLparser.h" "ac_cv_header_libxml_HTMLparser_h" "$ac_includes_default"
14797 if test "x$ac_cv_header_libxml_HTMLparser_h" = x""yes; then :
14798 ac_fn_c_check_decl "$LINENO" "HTML_PARSE_RECOVER" "ac_cv_have_decl_HTML_PARSE_RECOVER" "#include <libxml/HTMLparser.h>
14800 if test "x$ac_cv_have_decl_HTML_PARSE_RECOVER" = x""yes; then :
14801 HAVE_LIBXML2=yes
14807 CPPFLAGS="$SAVE_CPPFLAGS"
14808 if test "${HAVE_LIBXML2}" = "yes"; then
14809 LIBXML2_LIBS="-lxml2"
14810 LIBXML2_CFLAGS="-I/usr/include/libxml2"
14813 if test "${HAVE_LIBXML2}" = "yes"; then
14814 if test "${opsys}" != "mingw32"; then
14815 LIBS="$LIBXML2_LIBS $LIBS"
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
14817 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
14818 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
14819 $as_echo_n "(cached) " >&6
14820 else
14821 ac_check_lib_save_LIBS=$LIBS
14822 LIBS="-lxml2 $LIBS"
14823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824 /* end confdefs.h. */
14826 /* Override any GCC internal prototype to avoid an error.
14827 Use char because int might match the return type of a GCC
14828 builtin and then its argument prototype would still apply. */
14829 #ifdef __cplusplus
14830 extern "C"
14831 #endif
14832 char htmlReadMemory ();
14834 main ()
14836 return htmlReadMemory ();
14838 return 0;
14840 _ACEOF
14841 if ac_fn_c_try_link "$LINENO"; then :
14842 ac_cv_lib_xml2_htmlReadMemory=yes
14843 else
14844 ac_cv_lib_xml2_htmlReadMemory=no
14846 rm -f core conftest.err conftest.$ac_objext \
14847 conftest$ac_exeext conftest.$ac_ext
14848 LIBS=$ac_check_lib_save_LIBS
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
14851 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
14852 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
14853 HAVE_LIBXML2=yes
14854 else
14855 HAVE_LIBXML2=no
14858 else
14859 LIBXML2_LIBS=""
14861 if test "${HAVE_LIBXML2}" = "yes"; then
14863 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
14865 else
14866 LIBXML2_LIBS=""
14867 LIBXML2_CFLAGS=""
14874 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14875 # On MinGW, that is provided by nt/inc/sys/socket.h and w32.c.
14876 if test "${opsys}" = "mingw32"; then
14877 emacs_cv_netdb_declares_h_errno=yes
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
14880 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
14881 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
14882 $as_echo_n "(cached) " >&6
14883 else
14884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14885 /* end confdefs.h. */
14886 #include <netdb.h>
14888 main ()
14890 return h_errno;
14892 return 0;
14894 _ACEOF
14895 if ac_fn_c_try_link "$LINENO"; then :
14896 emacs_cv_netdb_declares_h_errno=yes
14897 else
14898 emacs_cv_netdb_declares_h_errno=no
14900 rm -f core conftest.err conftest.$ac_objext \
14901 conftest$ac_exeext conftest.$ac_ext
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
14904 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
14905 if test $emacs_cv_netdb_declares_h_errno = yes; then
14907 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
14911 # sqrt and other floating-point functions such as fmod and frexp
14912 # are found in -lm on most systems, but mingw32 doesn't use -lm.
14913 if test "${opsys}" != "mingw32"; then
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14915 $as_echo_n "checking for sqrt in -lm... " >&6; }
14916 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14917 $as_echo_n "(cached) " >&6
14918 else
14919 ac_check_lib_save_LIBS=$LIBS
14920 LIBS="-lm $LIBS"
14921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14922 /* end confdefs.h. */
14924 /* Override any GCC internal prototype to avoid an error.
14925 Use char because int might match the return type of a GCC
14926 builtin and then its argument prototype would still apply. */
14927 #ifdef __cplusplus
14928 extern "C"
14929 #endif
14930 char sqrt ();
14932 main ()
14934 return sqrt ();
14936 return 0;
14938 _ACEOF
14939 if ac_fn_c_try_link "$LINENO"; then :
14940 ac_cv_lib_m_sqrt=yes
14941 else
14942 ac_cv_lib_m_sqrt=no
14944 rm -f core conftest.err conftest.$ac_objext \
14945 conftest$ac_exeext conftest.$ac_ext
14946 LIBS=$ac_check_lib_save_LIBS
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14949 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14950 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14951 cat >>confdefs.h <<_ACEOF
14952 #define HAVE_LIBM 1
14953 _ACEOF
14955 LIBS="-lm $LIBS"
14961 # Check for mail-locking functions in a "mail" library. Probably this should
14962 # have the same check as for liblockfile below.
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
14964 $as_echo_n "checking for maillock in -lmail... " >&6; }
14965 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
14966 $as_echo_n "(cached) " >&6
14967 else
14968 ac_check_lib_save_LIBS=$LIBS
14969 LIBS="-lmail $LIBS"
14970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14971 /* end confdefs.h. */
14973 /* Override any GCC internal prototype to avoid an error.
14974 Use char because int might match the return type of a GCC
14975 builtin and then its argument prototype would still apply. */
14976 #ifdef __cplusplus
14977 extern "C"
14978 #endif
14979 char maillock ();
14981 main ()
14983 return maillock ();
14985 return 0;
14987 _ACEOF
14988 if ac_fn_c_try_link "$LINENO"; then :
14989 ac_cv_lib_mail_maillock=yes
14990 else
14991 ac_cv_lib_mail_maillock=no
14993 rm -f core conftest.err conftest.$ac_objext \
14994 conftest$ac_exeext conftest.$ac_ext
14995 LIBS=$ac_check_lib_save_LIBS
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
14998 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
14999 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
15000 have_mail=yes
15001 else
15002 have_mail=no
15005 if test $have_mail = yes; then
15006 LIBS_MAIL=-lmail
15007 LIBS="$LIBS_MAIL $LIBS"
15009 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
15011 else
15012 LIBS_MAIL=
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
15015 $as_echo_n "checking for maillock in -llockfile... " >&6; }
15016 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
15017 $as_echo_n "(cached) " >&6
15018 else
15019 ac_check_lib_save_LIBS=$LIBS
15020 LIBS="-llockfile $LIBS"
15021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022 /* end confdefs.h. */
15024 /* Override any GCC internal prototype to avoid an error.
15025 Use char because int might match the return type of a GCC
15026 builtin and then its argument prototype would still apply. */
15027 #ifdef __cplusplus
15028 extern "C"
15029 #endif
15030 char maillock ();
15032 main ()
15034 return maillock ();
15036 return 0;
15038 _ACEOF
15039 if ac_fn_c_try_link "$LINENO"; then :
15040 ac_cv_lib_lockfile_maillock=yes
15041 else
15042 ac_cv_lib_lockfile_maillock=no
15044 rm -f core conftest.err conftest.$ac_objext \
15045 conftest$ac_exeext conftest.$ac_ext
15046 LIBS=$ac_check_lib_save_LIBS
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
15049 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
15050 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
15051 have_lockfile=yes
15052 else
15053 have_lockfile=no
15056 if test $have_lockfile = yes; then
15057 LIBS_MAIL=-llockfile
15058 LIBS="$LIBS_MAIL $LIBS"
15060 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
15062 else
15063 # If we have the shared liblockfile, assume we must use it for mail
15064 # locking (e.g. Debian). If we couldn't link against liblockfile
15065 # (no liblockfile.a installed), ensure that we don't need to.
15066 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15067 set dummy liblockfile.so; ac_word=$2
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15069 $as_echo_n "checking for $ac_word... " >&6; }
15070 if test "${ac_cv_prog_liblockfile+set}" = set; then :
15071 $as_echo_n "(cached) " >&6
15072 else
15073 if test -n "$liblockfile"; then
15074 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15075 else
15076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15077 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15078 for as_dir in $as_dummy
15080 IFS=$as_save_IFS
15081 test -z "$as_dir" && as_dir=.
15082 for ac_exec_ext in '' $ac_executable_extensions; do
15083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15084 ac_cv_prog_liblockfile="yes"
15085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15086 break 2
15088 done
15089 done
15090 IFS=$as_save_IFS
15092 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15095 liblockfile=$ac_cv_prog_liblockfile
15096 if test -n "$liblockfile"; then
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
15098 $as_echo "$liblockfile" >&6; }
15099 else
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15101 $as_echo "no" >&6; }
15105 if test $ac_cv_prog_liblockfile = yes; then
15106 as_fn_error "Shared liblockfile found but can't link against it.
15107 This probably means that movemail could lose mail.
15108 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
15116 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
15117 ## interlock access to the mail spool. The alternative is a lock file named
15118 ## /usr/spool/mail/$USER.lock.
15119 mail_lock=no
15120 case "$opsys" in
15121 aix4-2) mail_lock="lockf" ;;
15123 gnu|freebsd|dragonfly|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
15125 ## On GNU/Linux systems, both methods are used by various mail programs.
15126 ## I assume most people are using newer mailers that have heard of flock.
15127 ## Change this if you need to.
15128 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
15129 ## configure gets the right answers, and that means *NOT* using flock.
15130 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
15131 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
15132 ## Debian maintainer hasn't provided a clean fix for Emacs.
15133 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
15134 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
15135 ## correct logic. -- fx
15136 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
15137 ## liblockfile is a Free Software replacement for libmail, used on
15138 ## Debian systems and elsewhere. -rfr.
15139 gnu-*)
15140 mail_lock="flock"
15141 if test $have_mail = yes || test $have_lockfile = yes; then
15142 test $ac_cv_header_maillock_h = yes && mail_lock=no
15146 mingw32)
15147 mail_lock="none-needed" ;;
15148 esac
15150 BLESSMAIL_TARGET=
15151 case "$mail_lock" in
15152 flock)
15153 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
15156 lockf)
15157 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
15160 none-needed) ;;
15162 *) BLESSMAIL_TARGET="need-blessmail" ;;
15163 esac
15167 for ac_func in accept4 gethostname \
15168 getrusage get_current_dir_name \
15169 lrand48 \
15170 select getpagesize setlocale \
15171 getrlimit setrlimit shutdown getaddrinfo \
15172 strsignal setitimer \
15173 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
15174 gai_strerror getline getdelim sync \
15175 difftime posix_memalign \
15176 getpwent endpwent getgrent endgrent \
15177 touchlock \
15178 cfmakeraw cfsetspeed copysign __executable_start log2
15179 do :
15180 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15181 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15182 eval as_val=\$$as_ac_var
15183 if test "x$as_val" = x""yes; then :
15184 cat >>confdefs.h <<_ACEOF
15185 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15186 _ACEOF
15189 done
15192 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
15193 ## has a broken `rint' in some library versions including math library
15194 ## version number A.09.05.
15195 ## You can fix the math library by installing patch number PHSS_4630.
15196 ## But we can fix it more reliably for Emacs by just not using rint.
15197 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
15198 case $opsys in
15199 hpux*) : ;;
15200 *) for ac_func in random rint
15201 do :
15202 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15203 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15204 eval as_val=\$$as_ac_var
15205 if test "x$as_val" = x""yes; then :
15206 cat >>confdefs.h <<_ACEOF
15207 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15208 _ACEOF
15211 done
15213 esac
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
15216 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
15217 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
15218 $as_echo_n "(cached) " >&6
15219 else
15220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221 /* end confdefs.h. */
15224 main ()
15226 __builtin_unwind_init ();
15228 return 0;
15230 _ACEOF
15231 if ac_fn_c_try_link "$LINENO"; then :
15232 emacs_cv_func___builtin_unwind_init=yes
15233 else
15234 emacs_cv_func___builtin_unwind_init=no
15236 rm -f core conftest.err conftest.$ac_objext \
15237 conftest$ac_exeext conftest.$ac_ext
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
15240 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
15241 if test $emacs_cv_func___builtin_unwind_init = yes; then
15243 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15252 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15253 if test "${ac_cv_sys_largefile_source+set}" = set; then :
15254 $as_echo_n "(cached) " >&6
15255 else
15256 while :; do
15257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15258 /* end confdefs.h. */
15259 #include <sys/types.h> /* for off_t */
15260 #include <stdio.h>
15262 main ()
15264 int (*fp) (FILE *, off_t, int) = fseeko;
15265 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15267 return 0;
15269 _ACEOF
15270 if ac_fn_c_try_link "$LINENO"; then :
15271 ac_cv_sys_largefile_source=no; break
15273 rm -f core conftest.err conftest.$ac_objext \
15274 conftest$ac_exeext conftest.$ac_ext
15275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15276 /* end confdefs.h. */
15277 #define _LARGEFILE_SOURCE 1
15278 #include <sys/types.h> /* for off_t */
15279 #include <stdio.h>
15281 main ()
15283 int (*fp) (FILE *, off_t, int) = fseeko;
15284 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15286 return 0;
15288 _ACEOF
15289 if ac_fn_c_try_link "$LINENO"; then :
15290 ac_cv_sys_largefile_source=1; break
15292 rm -f core conftest.err conftest.$ac_objext \
15293 conftest$ac_exeext conftest.$ac_ext
15294 ac_cv_sys_largefile_source=unknown
15295 break
15296 done
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15299 $as_echo "$ac_cv_sys_largefile_source" >&6; }
15300 case $ac_cv_sys_largefile_source in #(
15301 no | unknown) ;;
15303 cat >>confdefs.h <<_ACEOF
15304 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15305 _ACEOF
15307 esac
15308 rm -rf conftest*
15310 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15311 # in glibc 2.1.3, but that breaks too many other things.
15312 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15313 if test $ac_cv_sys_largefile_source != unknown; then
15315 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15320 # UNIX98 PTYs.
15321 for ac_func in grantpt
15322 do :
15323 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
15324 if test "x$ac_cv_func_grantpt" = x""yes; then :
15325 cat >>confdefs.h <<_ACEOF
15326 #define HAVE_GRANTPT 1
15327 _ACEOF
15330 done
15333 # PTY-related GNU extensions.
15334 for ac_func in getpt posix_openpt
15335 do :
15336 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15337 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15338 eval as_val=\$$as_ac_var
15339 if test "x$as_val" = x""yes; then :
15340 cat >>confdefs.h <<_ACEOF
15341 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15342 _ACEOF
15345 done
15348 # Check this now, so that we will NOT find the above functions in ncurses.
15349 # That is because we have not set up to link ncurses in lib-src.
15350 # It's better to believe a function is not available
15351 # than to expect to find it in ncurses.
15352 # Also we need tputs and friends to be able to build at all.
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
15354 $as_echo_n "checking for library containing tputs... " >&6; }
15355 # Run a test program that contains a call to tputs, a call that is
15356 # never executed. This tests whether a pre-'main' dynamic linker
15357 # works with the library. It's too much trouble to actually call
15358 # tputs in the test program, due to portability hassles. When
15359 # cross-compiling, assume the test program will run if it links.
15361 if test "${opsys}" = "mingw32"; then
15362 msg='none required'
15363 else
15364 # Maybe curses should be tried earlier?
15365 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
15366 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
15367 OLIBS=$LIBS
15368 if test -z "$tputs_library"; then
15369 LIBS_TERMCAP=
15370 msg='none required'
15371 else
15372 LIBS_TERMCAP=-l$tputs_library
15373 msg=$LIBS_TERMCAP
15374 LIBS="$LIBS_TERMCAP $LIBS"
15376 if test "$cross_compiling" = yes; then :
15377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15378 /* end confdefs.h. */
15380 extern void tputs (const char *, int, int (*)(int));
15381 int main (int argc, char **argv)
15383 if (argc == 10000)
15384 tputs (argv[0], 0, 0);
15385 return 0;
15388 _ACEOF
15389 if ac_fn_c_try_link "$LINENO"; then :
15391 else
15392 msg=no
15394 rm -f core conftest.err conftest.$ac_objext \
15395 conftest$ac_exeext conftest.$ac_ext
15396 else
15397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15398 /* end confdefs.h. */
15400 extern void tputs (const char *, int, int (*)(int));
15401 int main (int argc, char **argv)
15403 if (argc == 10000)
15404 tputs (argv[0], 0, 0);
15405 return 0;
15408 _ACEOF
15409 if ac_fn_c_try_run "$LINENO"; then :
15411 else
15412 msg=no
15414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15415 conftest.$ac_objext conftest.beam conftest.$ac_ext
15418 LIBS=$OLIBS
15419 if test "X$msg" != Xno; then
15420 break
15422 done
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
15425 $as_echo "$msg" >&6; }
15426 if test "X$msg" = Xno; then
15427 as_fn_error "The required function \`tputs' was not found in any library.
15428 The following libraries were tried (in order):
15429 libtinfo, libncurses, libterminfo, libtermcap, libcurses
15430 Please try installing whichever of these libraries is most appropriate
15431 for your system, together with its header files.
15432 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
15435 ## Use termcap instead of terminfo?
15436 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
15437 TERMINFO=yes
15438 ## FIXME? In the cases below where we unconditionally set
15439 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
15440 ## if that was found above to have tputs.
15441 ## Should we use the gnu* logic everywhere?
15442 case "$opsys" in
15443 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
15444 ## The ncurses library has been moved out of the System framework in
15445 ## Mac OS X 10.2. So if configure detects it, set the command-line
15446 ## option to use it.
15447 darwin) LIBS_TERMCAP="-lncurses" ;;
15449 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
15451 freebsd)
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
15453 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
15454 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
15455 $as_echo_n "(cached) " >&6
15456 else
15457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15458 /* end confdefs.h. */
15459 #include <osreldate.h>
15461 main ()
15463 #if __FreeBSD_version < 400000
15464 fail;
15465 #endif
15468 return 0;
15470 _ACEOF
15471 if ac_fn_c_try_link "$LINENO"; then :
15472 emacs_cv_freebsd_terminfo=yes
15473 else
15474 emacs_cv_freebsd_terminfo=no
15476 rm -f core conftest.err conftest.$ac_objext \
15477 conftest$ac_exeext conftest.$ac_ext
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
15482 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
15484 if test $emacs_cv_freebsd_terminfo = yes; then
15485 LIBS_TERMCAP="-lncurses"
15486 else
15487 TERMINFO=no
15488 LIBS_TERMCAP="-ltermcap"
15492 mingw32)
15493 TERMINFO=no
15494 LIBS_TERMCAP=
15497 netbsd)
15498 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
15499 TERMINFO=no
15500 LIBS_TERMCAP="-ltermcap"
15504 openbsd | dragonfly) LIBS_TERMCAP="-lncurses" ;;
15506 ## hpux: Make sure we get select from libc rather than from libcurses
15507 ## because libcurses on HPUX 10.10 has a broken version of select.
15508 ## We used to use -lc -lcurses, but this may be cleaner.
15509 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
15510 # set that way, now it uses the default). Isn't this a contradiction?
15511 hpux*) LIBS_TERMCAP="-ltermcap" ;;
15513 esac
15515 TERMCAP_OBJ=tparam.o
15516 if test $TERMINFO = yes; then
15518 $as_echo "#define TERMINFO 1" >>confdefs.h
15520 TERMCAP_OBJ=terminfo.o
15522 if test "X$LIBS_TERMCAP" = "X-lncurses"; then
15524 $as_echo "#define USE_NCURSES 1" >>confdefs.h
15531 # Do we have res_init, for detecting changes in /etc/resolv.conf?
15532 # On Darwin, res_init appears not to be useful: see bug#562 and
15533 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
15534 resolv=no
15536 if test $opsys != darwin; then
15538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15539 /* end confdefs.h. */
15540 #include <netinet/in.h>
15541 #include <arpa/nameser.h>
15542 #include <resolv.h>
15544 main ()
15546 return res_init();
15548 return 0;
15550 _ACEOF
15551 if ac_fn_c_try_link "$LINENO"; then :
15552 have_res_init=yes
15553 else
15554 have_res_init=no
15556 rm -f core conftest.err conftest.$ac_objext \
15557 conftest$ac_exeext conftest.$ac_ext
15558 if test "$have_res_init" = no; then
15559 OLIBS="$LIBS"
15560 LIBS="$LIBS -lresolv"
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15562 $as_echo_n "checking for res_init with -lresolv... " >&6; }
15563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15564 /* end confdefs.h. */
15565 #include <netinet/in.h>
15566 #include <arpa/nameser.h>
15567 #include <resolv.h>
15569 main ()
15571 return res_init();
15573 return 0;
15575 _ACEOF
15576 if ac_fn_c_try_link "$LINENO"; then :
15577 have_res_init=yes
15578 else
15579 have_res_init=no
15581 rm -f core conftest.err conftest.$ac_objext \
15582 conftest$ac_exeext conftest.$ac_ext
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15584 $as_echo "$have_res_init" >&6; }
15585 if test "$have_res_init" = yes ; then
15586 resolv=yes
15588 LIBS="$OLIBS"
15591 if test "$have_res_init" = yes; then
15593 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15597 # Do we need the Hesiod library to provide the support routines?
15598 LIBHESIOD=
15599 if test "$with_hesiod" != no ; then
15600 # Don't set $LIBS here -- see comments above. FIXME which comments?
15601 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
15602 if test "x$ac_cv_func_res_send" = x""yes; then :
15604 else
15605 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
15606 if test "x$ac_cv_func___res_send" = x""yes; then :
15608 else
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15610 $as_echo_n "checking for res_send in -lresolv... " >&6; }
15611 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
15612 $as_echo_n "(cached) " >&6
15613 else
15614 ac_check_lib_save_LIBS=$LIBS
15615 LIBS="-lresolv $LIBS"
15616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15617 /* end confdefs.h. */
15619 /* Override any GCC internal prototype to avoid an error.
15620 Use char because int might match the return type of a GCC
15621 builtin and then its argument prototype would still apply. */
15622 #ifdef __cplusplus
15623 extern "C"
15624 #endif
15625 char res_send ();
15627 main ()
15629 return res_send ();
15631 return 0;
15633 _ACEOF
15634 if ac_fn_c_try_link "$LINENO"; then :
15635 ac_cv_lib_resolv_res_send=yes
15636 else
15637 ac_cv_lib_resolv_res_send=no
15639 rm -f core conftest.err conftest.$ac_objext \
15640 conftest$ac_exeext conftest.$ac_ext
15641 LIBS=$ac_check_lib_save_LIBS
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15644 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
15645 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
15646 resolv=yes
15647 else
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15649 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
15650 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
15651 $as_echo_n "(cached) " >&6
15652 else
15653 ac_check_lib_save_LIBS=$LIBS
15654 LIBS="-lresolv $LIBS"
15655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15656 /* end confdefs.h. */
15658 /* Override any GCC internal prototype to avoid an error.
15659 Use char because int might match the return type of a GCC
15660 builtin and then its argument prototype would still apply. */
15661 #ifdef __cplusplus
15662 extern "C"
15663 #endif
15664 char __res_send ();
15666 main ()
15668 return __res_send ();
15670 return 0;
15672 _ACEOF
15673 if ac_fn_c_try_link "$LINENO"; then :
15674 ac_cv_lib_resolv___res_send=yes
15675 else
15676 ac_cv_lib_resolv___res_send=no
15678 rm -f core conftest.err conftest.$ac_objext \
15679 conftest$ac_exeext conftest.$ac_ext
15680 LIBS=$ac_check_lib_save_LIBS
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15683 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
15684 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
15685 resolv=yes
15694 if test "$resolv" = yes ; then
15695 RESOLVLIB=-lresolv
15696 else
15697 RESOLVLIB=
15699 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
15700 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
15702 else
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15704 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
15705 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
15706 $as_echo_n "(cached) " >&6
15707 else
15708 ac_check_lib_save_LIBS=$LIBS
15709 LIBS="-lhesiod $RESOLVLIB $LIBS"
15710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15711 /* end confdefs.h. */
15713 /* Override any GCC internal prototype to avoid an error.
15714 Use char because int might match the return type of a GCC
15715 builtin and then its argument prototype would still apply. */
15716 #ifdef __cplusplus
15717 extern "C"
15718 #endif
15719 char hes_getmailhost ();
15721 main ()
15723 return hes_getmailhost ();
15725 return 0;
15727 _ACEOF
15728 if ac_fn_c_try_link "$LINENO"; then :
15729 ac_cv_lib_hesiod_hes_getmailhost=yes
15730 else
15731 ac_cv_lib_hesiod_hes_getmailhost=no
15733 rm -f core conftest.err conftest.$ac_objext \
15734 conftest$ac_exeext conftest.$ac_ext
15735 LIBS=$ac_check_lib_save_LIBS
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15738 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
15739 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
15740 hesiod=yes
15741 else
15748 if test x"$hesiod" = xyes; then
15749 LIBHESIOD=-lhesiod
15754 # Do we need libresolv (due to res_init or Hesiod)?
15755 if test "$resolv" = yes && test $opsys != darwin; then
15756 LIBRESOLV=-lresolv
15757 else
15758 LIBRESOLV=
15762 # These tell us which Kerberos-related libraries to use.
15763 COM_ERRLIB=
15764 CRYPTOLIB=
15765 KRB5LIB=
15766 DESLIB=
15767 KRB4LIB=
15769 if test "${with_kerberos}" != no; then
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15771 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15772 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
15773 $as_echo_n "(cached) " >&6
15774 else
15775 ac_check_lib_save_LIBS=$LIBS
15776 LIBS="-lcom_err $LIBS"
15777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15778 /* end confdefs.h. */
15780 /* Override any GCC internal prototype to avoid an error.
15781 Use char because int might match the return type of a GCC
15782 builtin and then its argument prototype would still apply. */
15783 #ifdef __cplusplus
15784 extern "C"
15785 #endif
15786 char com_err ();
15788 main ()
15790 return com_err ();
15792 return 0;
15794 _ACEOF
15795 if ac_fn_c_try_link "$LINENO"; then :
15796 ac_cv_lib_com_err_com_err=yes
15797 else
15798 ac_cv_lib_com_err_com_err=no
15800 rm -f core conftest.err conftest.$ac_objext \
15801 conftest$ac_exeext conftest.$ac_ext
15802 LIBS=$ac_check_lib_save_LIBS
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15805 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15806 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
15807 have_com_err=yes
15808 else
15809 have_com_err=no
15812 if test $have_com_err = yes; then
15813 COM_ERRLIB=-lcom_err
15814 LIBS="$COM_ERRLIB $LIBS"
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15817 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
15818 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
15819 $as_echo_n "(cached) " >&6
15820 else
15821 ac_check_lib_save_LIBS=$LIBS
15822 LIBS="-lcrypto $LIBS"
15823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15824 /* end confdefs.h. */
15826 /* Override any GCC internal prototype to avoid an error.
15827 Use char because int might match the return type of a GCC
15828 builtin and then its argument prototype would still apply. */
15829 #ifdef __cplusplus
15830 extern "C"
15831 #endif
15832 char mit_des_cbc_encrypt ();
15834 main ()
15836 return mit_des_cbc_encrypt ();
15838 return 0;
15840 _ACEOF
15841 if ac_fn_c_try_link "$LINENO"; then :
15842 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
15843 else
15844 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
15846 rm -f core conftest.err conftest.$ac_objext \
15847 conftest$ac_exeext conftest.$ac_ext
15848 LIBS=$ac_check_lib_save_LIBS
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15851 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
15852 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
15853 have_crypto=yes
15854 else
15855 have_crypto=no
15858 if test $have_crypto = yes; then
15859 CRYPTOLIB=-lcrypto
15860 LIBS="$CRYPTOLIB $LIBS"
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15863 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
15864 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
15865 $as_echo_n "(cached) " >&6
15866 else
15867 ac_check_lib_save_LIBS=$LIBS
15868 LIBS="-lk5crypto $LIBS"
15869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15870 /* end confdefs.h. */
15872 /* Override any GCC internal prototype to avoid an error.
15873 Use char because int might match the return type of a GCC
15874 builtin and then its argument prototype would still apply. */
15875 #ifdef __cplusplus
15876 extern "C"
15877 #endif
15878 char mit_des_cbc_encrypt ();
15880 main ()
15882 return mit_des_cbc_encrypt ();
15884 return 0;
15886 _ACEOF
15887 if ac_fn_c_try_link "$LINENO"; then :
15888 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
15889 else
15890 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
15892 rm -f core conftest.err conftest.$ac_objext \
15893 conftest$ac_exeext conftest.$ac_ext
15894 LIBS=$ac_check_lib_save_LIBS
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15897 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
15898 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
15899 have_k5crypto=yes
15900 else
15901 have_k5crypto=no
15904 if test $have_k5crypto = yes; then
15905 CRYPTOLIB=-lk5crypto
15906 LIBS="$CRYPTOLIB $LIBS"
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15909 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15910 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
15911 $as_echo_n "(cached) " >&6
15912 else
15913 ac_check_lib_save_LIBS=$LIBS
15914 LIBS="-lkrb5 $LIBS"
15915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15916 /* end confdefs.h. */
15918 /* Override any GCC internal prototype to avoid an error.
15919 Use char because int might match the return type of a GCC
15920 builtin and then its argument prototype would still apply. */
15921 #ifdef __cplusplus
15922 extern "C"
15923 #endif
15924 char krb5_init_context ();
15926 main ()
15928 return krb5_init_context ();
15930 return 0;
15932 _ACEOF
15933 if ac_fn_c_try_link "$LINENO"; then :
15934 ac_cv_lib_krb5_krb5_init_context=yes
15935 else
15936 ac_cv_lib_krb5_krb5_init_context=no
15938 rm -f core conftest.err conftest.$ac_objext \
15939 conftest$ac_exeext conftest.$ac_ext
15940 LIBS=$ac_check_lib_save_LIBS
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15943 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15944 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
15945 have_krb5=yes
15946 else
15947 have_krb5=no
15950 if test $have_krb5=yes; then
15951 KRB5LIB=-lkrb5
15952 LIBS="$KRB5LIB $LIBS"
15954 if test "${with_kerberos5}" = no; then
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
15956 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15957 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
15958 $as_echo_n "(cached) " >&6
15959 else
15960 ac_check_lib_save_LIBS=$LIBS
15961 LIBS="-ldes425 $LIBS"
15962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15963 /* end confdefs.h. */
15965 /* Override any GCC internal prototype to avoid an error.
15966 Use char because int might match the return type of a GCC
15967 builtin and then its argument prototype would still apply. */
15968 #ifdef __cplusplus
15969 extern "C"
15970 #endif
15971 char des_cbc_encrypt ();
15973 main ()
15975 return des_cbc_encrypt ();
15977 return 0;
15979 _ACEOF
15980 if ac_fn_c_try_link "$LINENO"; then :
15981 ac_cv_lib_des425_des_cbc_encrypt=yes
15982 else
15983 ac_cv_lib_des425_des_cbc_encrypt=no
15985 rm -f core conftest.err conftest.$ac_objext \
15986 conftest$ac_exeext conftest.$ac_ext
15987 LIBS=$ac_check_lib_save_LIBS
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15990 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15991 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
15992 have_des425=yes
15993 else
15994 have_des425=no
15997 if test $have_des425 = yes; then
15998 DESLIB=-ldes425
15999 LIBS="$DESLIB $LIBS"
16000 else
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
16002 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
16003 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
16004 $as_echo_n "(cached) " >&6
16005 else
16006 ac_check_lib_save_LIBS=$LIBS
16007 LIBS="-ldes $LIBS"
16008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16009 /* end confdefs.h. */
16011 /* Override any GCC internal prototype to avoid an error.
16012 Use char because int might match the return type of a GCC
16013 builtin and then its argument prototype would still apply. */
16014 #ifdef __cplusplus
16015 extern "C"
16016 #endif
16017 char des_cbc_encrypt ();
16019 main ()
16021 return des_cbc_encrypt ();
16023 return 0;
16025 _ACEOF
16026 if ac_fn_c_try_link "$LINENO"; then :
16027 ac_cv_lib_des_des_cbc_encrypt=yes
16028 else
16029 ac_cv_lib_des_des_cbc_encrypt=no
16031 rm -f core conftest.err conftest.$ac_objext \
16032 conftest$ac_exeext conftest.$ac_ext
16033 LIBS=$ac_check_lib_save_LIBS
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16036 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
16037 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
16038 have_des=yes
16039 else
16040 have_des=no
16043 if test $have_des = yes; then
16044 DESLIB=-ldes
16045 LIBS="$DESLIB $LIBS"
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
16049 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
16050 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
16051 $as_echo_n "(cached) " >&6
16052 else
16053 ac_check_lib_save_LIBS=$LIBS
16054 LIBS="-lkrb4 $LIBS"
16055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16056 /* end confdefs.h. */
16058 /* Override any GCC internal prototype to avoid an error.
16059 Use char because int might match the return type of a GCC
16060 builtin and then its argument prototype would still apply. */
16061 #ifdef __cplusplus
16062 extern "C"
16063 #endif
16064 char krb_get_cred ();
16066 main ()
16068 return krb_get_cred ();
16070 return 0;
16072 _ACEOF
16073 if ac_fn_c_try_link "$LINENO"; then :
16074 ac_cv_lib_krb4_krb_get_cred=yes
16075 else
16076 ac_cv_lib_krb4_krb_get_cred=no
16078 rm -f core conftest.err conftest.$ac_objext \
16079 conftest$ac_exeext conftest.$ac_ext
16080 LIBS=$ac_check_lib_save_LIBS
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
16083 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
16084 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
16085 have_krb4=yes
16086 else
16087 have_krb4=no
16090 if test $have_krb4 = yes; then
16091 KRB4LIB=-lkrb4
16092 LIBS="$KRB4LIB $LIBS"
16093 else
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
16095 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
16096 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
16097 $as_echo_n "(cached) " >&6
16098 else
16099 ac_check_lib_save_LIBS=$LIBS
16100 LIBS="-lkrb $LIBS"
16101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16102 /* end confdefs.h. */
16104 /* Override any GCC internal prototype to avoid an error.
16105 Use char because int might match the return type of a GCC
16106 builtin and then its argument prototype would still apply. */
16107 #ifdef __cplusplus
16108 extern "C"
16109 #endif
16110 char krb_get_cred ();
16112 main ()
16114 return krb_get_cred ();
16116 return 0;
16118 _ACEOF
16119 if ac_fn_c_try_link "$LINENO"; then :
16120 ac_cv_lib_krb_krb_get_cred=yes
16121 else
16122 ac_cv_lib_krb_krb_get_cred=no
16124 rm -f core conftest.err conftest.$ac_objext \
16125 conftest$ac_exeext conftest.$ac_ext
16126 LIBS=$ac_check_lib_save_LIBS
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
16129 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
16130 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
16131 have_krb=yes
16132 else
16133 have_krb=no
16136 if test $have_krb = yes; then
16137 KRB4LIB=-lkrb
16138 LIBS="$KRB4LIB $LIBS"
16143 if test "${with_kerberos5}" != no; then
16144 for ac_header in krb5.h
16145 do :
16146 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
16147 if test "x$ac_cv_header_krb5_h" = x""yes; then :
16148 cat >>confdefs.h <<_ACEOF
16149 #define HAVE_KRB5_H 1
16150 _ACEOF
16151 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
16153 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
16155 cat >>confdefs.h <<_ACEOF
16156 #define HAVE_KRB5_ERROR_TEXT 1
16157 _ACEOF
16161 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
16163 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
16165 cat >>confdefs.h <<_ACEOF
16166 #define HAVE_KRB5_ERROR_E_TEXT 1
16167 _ACEOF
16174 done
16176 else
16177 for ac_header in krb.h
16178 do :
16179 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
16180 if test "x$ac_cv_header_krb_h" = x""yes; then :
16181 cat >>confdefs.h <<_ACEOF
16182 #define HAVE_KRB_H 1
16183 _ACEOF
16185 else
16186 for ac_header in kerberosIV/krb.h
16187 do :
16188 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
16189 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
16190 cat >>confdefs.h <<_ACEOF
16191 #define HAVE_KERBEROSIV_KRB_H 1
16192 _ACEOF
16194 else
16195 for ac_header in kerberos/krb.h
16196 do :
16197 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
16198 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
16199 cat >>confdefs.h <<_ACEOF
16200 #define HAVE_KERBEROS_KRB_H 1
16201 _ACEOF
16205 done
16209 done
16213 done
16216 for ac_header in com_err.h
16217 do :
16218 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
16219 if test "x$ac_cv_header_com_err_h" = x""yes; then :
16220 cat >>confdefs.h <<_ACEOF
16221 #define HAVE_COM_ERR_H 1
16222 _ACEOF
16226 done
16236 for ac_header in valgrind/valgrind.h
16237 do :
16238 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
16239 if test "x$ac_cv_header_valgrind_valgrind_h" = x""yes; then :
16240 cat >>confdefs.h <<_ACEOF
16241 #define HAVE_VALGRIND_VALGRIND_H 1
16242 _ACEOF
16246 done
16252 for ac_func in $ac_func_list
16253 do :
16254 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16255 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16256 eval as_val=\$$as_ac_var
16257 if test "x$as_val" = x""yes; then :
16258 cat >>confdefs.h <<_ACEOF
16259 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16260 _ACEOF
16263 done
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
16269 $as_echo_n "checking whether localtime caches TZ... " >&6; }
16270 if test "${emacs_cv_localtime_cache+set}" = set; then :
16271 $as_echo_n "(cached) " >&6
16272 else
16273 if test x$ac_cv_func_tzset = xyes; then
16274 if test "$cross_compiling" = yes; then :
16275 # If we have tzset, assume the worst when cross-compiling.
16276 emacs_cv_localtime_cache=yes
16277 else
16278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16279 /* end confdefs.h. */
16280 #include <time.h>
16281 char TZ_GMT0[] = "TZ=GMT0";
16282 char TZ_PST8[] = "TZ=PST8";
16283 main()
16285 time_t now = time ((time_t *) 0);
16286 int hour_GMT0, hour_unset;
16287 if (putenv (TZ_GMT0) != 0)
16288 exit (1);
16289 hour_GMT0 = localtime (&now)->tm_hour;
16290 unsetenv("TZ");
16291 hour_unset = localtime (&now)->tm_hour;
16292 if (putenv (TZ_PST8) != 0)
16293 exit (1);
16294 if (localtime (&now)->tm_hour == hour_GMT0)
16295 exit (1);
16296 unsetenv("TZ");
16297 if (localtime (&now)->tm_hour != hour_unset)
16298 exit (1);
16299 exit (0);
16301 _ACEOF
16302 if ac_fn_c_try_run "$LINENO"; then :
16303 emacs_cv_localtime_cache=no
16304 else
16305 emacs_cv_localtime_cache=yes
16307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16308 conftest.$ac_objext conftest.beam conftest.$ac_ext
16311 else
16312 # If we lack tzset, report that localtime does not cache TZ,
16313 # since we can't invalidate the cache if we don't have tzset.
16314 emacs_cv_localtime_cache=no
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
16318 $as_echo "$emacs_cv_localtime_cache" >&6; }
16319 if test $emacs_cv_localtime_cache = yes; then
16321 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
16325 ok_so_far=yes
16326 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
16327 if test "x$ac_cv_func_socket" = x""yes; then :
16329 else
16330 ok_so_far=no
16333 if test $ok_so_far = yes; then
16334 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
16335 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
16337 else
16338 ok_so_far=no
16343 if test $ok_so_far = yes; then
16344 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
16345 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
16347 else
16348 ok_so_far=no
16353 if test $ok_so_far = yes; then
16355 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
16359 case $canonical in
16360 *-solaris2.4 | *-solaris2.4.*)
16361 : ${ac_cv_func_vfork_works=no};;
16362 esac
16364 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16365 if test "x$ac_cv_type_pid_t" = x""yes; then :
16367 else
16369 cat >>confdefs.h <<_ACEOF
16370 #define pid_t int
16371 _ACEOF
16375 for ac_header in vfork.h
16376 do :
16377 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
16378 if test "x$ac_cv_header_vfork_h" = x""yes; then :
16379 cat >>confdefs.h <<_ACEOF
16380 #define HAVE_VFORK_H 1
16381 _ACEOF
16385 done
16387 for ac_func in fork vfork
16388 do :
16389 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16390 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16391 eval as_val=\$$as_ac_var
16392 if test "x$as_val" = x""yes; then :
16393 cat >>confdefs.h <<_ACEOF
16394 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16395 _ACEOF
16398 done
16400 if test "x$ac_cv_func_fork" = xyes; then
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16402 $as_echo_n "checking for working fork... " >&6; }
16403 if test "${ac_cv_func_fork_works+set}" = set; then :
16404 $as_echo_n "(cached) " >&6
16405 else
16406 if test "$cross_compiling" = yes; then :
16407 ac_cv_func_fork_works=cross
16408 else
16409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16410 /* end confdefs.h. */
16411 $ac_includes_default
16413 main ()
16416 /* By Ruediger Kuhlmann. */
16417 return fork () < 0;
16420 return 0;
16422 _ACEOF
16423 if ac_fn_c_try_run "$LINENO"; then :
16424 ac_cv_func_fork_works=yes
16425 else
16426 ac_cv_func_fork_works=no
16428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16429 conftest.$ac_objext conftest.beam conftest.$ac_ext
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16434 $as_echo "$ac_cv_func_fork_works" >&6; }
16436 else
16437 ac_cv_func_fork_works=$ac_cv_func_fork
16439 if test "x$ac_cv_func_fork_works" = xcross; then
16440 case $host in
16441 *-*-amigaos* | *-*-msdosdjgpp*)
16442 # Override, as these systems have only a dummy fork() stub
16443 ac_cv_func_fork_works=no
16446 ac_cv_func_fork_works=yes
16448 esac
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16450 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16452 ac_cv_func_vfork_works=$ac_cv_func_vfork
16453 if test "x$ac_cv_func_vfork" = xyes; then
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16455 $as_echo_n "checking for working vfork... " >&6; }
16456 if test "${ac_cv_func_vfork_works+set}" = set; then :
16457 $as_echo_n "(cached) " >&6
16458 else
16459 if test "$cross_compiling" = yes; then :
16460 ac_cv_func_vfork_works=cross
16461 else
16462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16463 /* end confdefs.h. */
16464 /* Thanks to Paul Eggert for this test. */
16465 $ac_includes_default
16466 #include <sys/wait.h>
16467 #ifdef HAVE_VFORK_H
16468 # include <vfork.h>
16469 #endif
16470 /* On some sparc systems, changes by the child to local and incoming
16471 argument registers are propagated back to the parent. The compiler
16472 is told about this with #include <vfork.h>, but some compilers
16473 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16474 static variable whose address is put into a register that is
16475 clobbered by the vfork. */
16476 static void
16477 #ifdef __cplusplus
16478 sparc_address_test (int arg)
16479 # else
16480 sparc_address_test (arg) int arg;
16481 #endif
16483 static pid_t child;
16484 if (!child) {
16485 child = vfork ();
16486 if (child < 0) {
16487 perror ("vfork");
16488 _exit(2);
16490 if (!child) {
16491 arg = getpid();
16492 write(-1, "", 0);
16493 _exit (arg);
16499 main ()
16501 pid_t parent = getpid ();
16502 pid_t child;
16504 sparc_address_test (0);
16506 child = vfork ();
16508 if (child == 0) {
16509 /* Here is another test for sparc vfork register problems. This
16510 test uses lots of local variables, at least as many local
16511 variables as main has allocated so far including compiler
16512 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16513 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16514 reuse the register of parent for one of the local variables,
16515 since it will think that parent can't possibly be used any more
16516 in this routine. Assigning to the local variable will thus
16517 munge parent in the parent process. */
16518 pid_t
16519 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16520 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16521 /* Convince the compiler that p..p7 are live; otherwise, it might
16522 use the same hardware register for all 8 local variables. */
16523 if (p != p1 || p != p2 || p != p3 || p != p4
16524 || p != p5 || p != p6 || p != p7)
16525 _exit(1);
16527 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16528 from child file descriptors. If the child closes a descriptor
16529 before it execs or exits, this munges the parent's descriptor
16530 as well. Test for this by closing stdout in the child. */
16531 _exit(close(fileno(stdout)) != 0);
16532 } else {
16533 int status;
16534 struct stat st;
16536 while (wait(&status) != child)
16538 return (
16539 /* Was there some problem with vforking? */
16540 child < 0
16542 /* Did the child fail? (This shouldn't happen.) */
16543 || status
16545 /* Did the vfork/compiler bug occur? */
16546 || parent != getpid()
16548 /* Did the file descriptor bug occur? */
16549 || fstat(fileno(stdout), &st) != 0
16553 _ACEOF
16554 if ac_fn_c_try_run "$LINENO"; then :
16555 ac_cv_func_vfork_works=yes
16556 else
16557 ac_cv_func_vfork_works=no
16559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16560 conftest.$ac_objext conftest.beam conftest.$ac_ext
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16565 $as_echo "$ac_cv_func_vfork_works" >&6; }
16568 if test "x$ac_cv_func_fork_works" = xcross; then
16569 ac_cv_func_vfork_works=$ac_cv_func_vfork
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16571 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16574 if test "x$ac_cv_func_vfork_works" = xyes; then
16576 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16578 else
16580 $as_echo "#define vfork fork" >>confdefs.h
16583 if test "x$ac_cv_func_fork_works" = xyes; then
16585 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16590 for ac_func in snprintf
16591 do :
16592 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
16593 if test "x$ac_cv_func_snprintf" = x""yes; then :
16594 cat >>confdefs.h <<_ACEOF
16595 #define HAVE_SNPRINTF 1
16596 _ACEOF
16599 done
16602 XGSELOBJ=
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GLib is linked in" >&5
16604 $as_echo_n "checking whether GLib is linked in... " >&6; }
16605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16606 /* end confdefs.h. */
16607 #include <glib.h>
16610 main ()
16612 g_print ("Hello world");
16614 return 0;
16616 _ACEOF
16617 if ac_fn_c_try_link "$LINENO"; then :
16618 links_glib=yes
16619 else
16620 links_glib=no
16622 rm -f core conftest.err conftest.$ac_objext \
16623 conftest$ac_exeext conftest.$ac_ext
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $links_glib" >&5
16625 $as_echo "$links_glib" >&6; }
16626 if test "${links_glib}" = "yes"; then
16628 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
16630 if test "$HAVE_NS" = no;then
16631 XGSELOBJ=xgselect.o
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16637 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16638 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
16639 $as_echo_n "(cached) " >&6
16640 else
16641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16642 /* end confdefs.h. */
16643 #include <langinfo.h>
16645 main ()
16647 char* cs = nl_langinfo(CODESET);
16649 return 0;
16651 _ACEOF
16652 if ac_fn_c_try_link "$LINENO"; then :
16653 emacs_cv_langinfo_codeset=yes
16654 else
16655 emacs_cv_langinfo_codeset=no
16657 rm -f core conftest.err conftest.$ac_objext \
16658 conftest$ac_exeext conftest.$ac_ext
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16662 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
16663 if test $emacs_cv_langinfo_codeset = yes; then
16665 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16670 $as_echo_n "checking for mbstate_t... " >&6; }
16671 if test "${ac_cv_type_mbstate_t+set}" = set; then :
16672 $as_echo_n "(cached) " >&6
16673 else
16674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16675 /* end confdefs.h. */
16676 $ac_includes_default
16677 # include <wchar.h>
16679 main ()
16681 mbstate_t x; return sizeof x;
16683 return 0;
16685 _ACEOF
16686 if ac_fn_c_try_compile "$LINENO"; then :
16687 ac_cv_type_mbstate_t=yes
16688 else
16689 ac_cv_type_mbstate_t=no
16691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16694 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16695 if test $ac_cv_type_mbstate_t = yes; then
16697 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16699 else
16701 $as_echo "#define mbstate_t int" >>confdefs.h
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16706 $as_echo_n "checking for C restricted array declarations... " >&6; }
16707 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
16708 $as_echo_n "(cached) " >&6
16709 else
16710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16711 /* end confdefs.h. */
16712 void fred (int x[__restrict]);
16714 main ()
16718 return 0;
16720 _ACEOF
16721 if ac_fn_c_try_compile "$LINENO"; then :
16722 emacs_cv_c_restrict_arr=yes
16723 else
16724 emacs_cv_c_restrict_arr=no
16726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16729 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
16730 if test "$emacs_cv_c_restrict_arr" = yes; then
16732 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
16737 if test "${opsys}" != "mingw32"; then
16739 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
16744 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
16747 ## Note: PTYs are broken on darwin <6. Use at your own risk.
16748 if test "${opsys}" != "mingw32"; then
16750 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
16755 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
16761 if test "${opsys}" = "mingw32"; then
16762 $as_echo "#define NULL_DEVICE \"NUL:\"" >>confdefs.h
16764 else
16765 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
16770 if test "${opsys}" = "mingw32"; then
16771 $as_echo "#define SEPCHAR ';'" >>confdefs.h
16773 else
16774 $as_echo "#define SEPCHAR ':'" >>confdefs.h
16779 $as_echo "#define subprocesses 1" >>confdefs.h
16783 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
16788 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
16791 if test "${opsys}" = "mingw32"; then
16793 $as_echo "#define IS_DEVICE_SEP(_c_) ((_c_) == ':')" >>confdefs.h
16797 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\\\')" >>confdefs.h
16801 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP(_c_))" >>confdefs.h
16803 else
16805 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
16809 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
16813 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
16819 case $opsys in
16820 aix4-2)
16821 if test x$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes; then
16822 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16827 hpux*)
16828 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16831 esac
16834 case $opsys in
16835 irix6-5 | sol2* | unixware )
16837 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
16840 esac
16842 emacs_broken_SIGIO=no
16844 case $opsys in
16845 hpux* | irix6-5 | openbsd | sol2* | unixware )
16846 emacs_broken_SIGIO=yes
16849 aix4-2)
16851 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
16855 freebsd)
16857 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
16860 esac
16862 case $opsys in
16863 gnu-* | sol2-10 )
16865 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
16868 esac
16870 case $opsys in
16871 darwin | dragonfly | freebsd | netbsd | openbsd )
16873 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
16876 esac
16878 case $opsys in
16879 netbsd | openbsd) sound_device="/dev/audio" ;;
16880 *) sound_device="/dev/dsp" ;;
16881 esac
16884 cat >>confdefs.h <<_ACEOF
16885 #define DEFAULT_SOUND_DEVICE "$sound_device"
16886 _ACEOF
16890 case $opsys in
16891 darwin | gnu-linux | gnu-kfreebsd )
16893 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
16896 esac
16899 case $opsys in
16900 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd)
16902 $as_echo "#define NARROWPROTO 1" >>confdefs.h
16905 esac
16914 case $opsys in
16915 aix4-2 )
16916 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
16918 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
16920 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
16924 cygwin )
16925 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16927 $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
16929 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16931 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16935 darwin )
16936 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16938 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16940 $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
16942 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16944 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16948 gnu | openbsd )
16949 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16953 gnu-linux | gnu-kfreebsd | dragonfly | freebsd | netbsd )
16954 if test "x$ac_cv_func_grantpt" = xyes; then
16956 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
16958 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16960 $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) { emacs_close (fd); return -1; } snprintf (pty_name, PTY_NAME_SIZE, \"%s\", ptyname); }" >>confdefs.h
16962 if test "x$ac_cv_func_posix_openpt" = xyes; then
16963 $as_echo "#define PTY_OPEN do { fd = posix_openpt (O_RDWR | O_CLOEXEC | O_NOCTTY); if (fd < 0 && errno == EINVAL) fd = posix_openpt (O_RDWR | O_NOCTTY); } while (0)" >>confdefs.h
16965 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16967 elif test "x$ac_cv_func_getpt" = xyes; then
16968 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
16970 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16972 else
16973 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
16976 else
16977 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16982 hpux*)
16983 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16985 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
16987 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
16991 irix6-5 )
16992 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
16994 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
16996 $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
16998 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
17000 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
17004 sol2* )
17005 $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, PTY_NAME_SIZE, \"%s\", ptyname); }" >>confdefs.h
17009 unixware )
17010 $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, PTY_NAME_SIZE, \"%s\", ptyname); }" >>confdefs.h
17013 esac
17016 case $opsys in
17017 sol2* | unixware )
17018 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
17020 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
17023 $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
17026 esac
17031 case $opsys in
17032 aix4-2 | cygwin | gnu | irix6-5 | dragonfly | freebsd | netbsd | openbsd | darwin )
17033 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
17037 gnu-linux | gnu-kfreebsd )
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
17040 $as_echo_n "checking for signals via characters... " >&6; }
17041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17042 /* end confdefs.h. */
17044 #include <linux/version.h>
17045 #if LINUX_VERSION_CODE < 0x20400
17046 # error "Linux version too old"
17047 #endif
17050 main ()
17054 return 0;
17056 _ACEOF
17057 if ac_fn_c_try_cpp "$LINENO"; then :
17058 emacs_signals_via_chars=yes
17059 else
17060 emacs_signals_via_chars=no
17062 rm -f conftest.err conftest.$ac_ext
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
17065 $as_echo "$emacs_signals_via_chars" >&6; }
17066 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
17069 esac
17074 case $opsys in
17075 aix*)
17076 $as_echo "#define DATA_SEG_BITS 0x20000000" >>confdefs.h
17079 hpux*)
17080 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
17083 irix6-5)
17084 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
17087 esac
17092 case $opsys in
17093 darwin) $as_echo "#define TAB3 OXTABS" >>confdefs.h
17096 gnu | dragonfly | freebsd | netbsd | openbsd )
17098 $as_echo "#define TABDLY OXTABS" >>confdefs.h
17100 $as_echo "#define TAB3 OXTABS" >>confdefs.h
17104 gnu-linux | gnu-kfreebsd )
17105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17106 /* end confdefs.h. */
17108 #ifndef __ia64__
17109 # error "not ia64"
17110 #endif
17113 main ()
17117 return 0;
17119 _ACEOF
17120 if ac_fn_c_try_cpp "$LINENO"; then :
17122 $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
17125 rm -f conftest.err conftest.$ac_ext
17128 hpux*)
17130 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
17133 esac
17139 case $opsys in
17140 gnu-linux | gnu-kfreebsd )
17141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17142 /* end confdefs.h. */
17144 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
17145 || defined __alpha__ || defined __mips__ || defined __s390__ \
17146 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
17147 || defined __ia64__ || defined __sh__
17148 /* ok */
17149 #else
17150 # error "setjmp not known to work on this arch"
17151 #endif
17154 main ()
17158 return 0;
17160 _ACEOF
17161 if ac_fn_c_try_cpp "$LINENO"; then :
17162 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
17165 rm -f conftest.err conftest.$ac_ext
17167 esac
17170 if test x$GCC = xyes; then
17171 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
17173 else
17174 case $opsys in
17175 dragonfly | freebsd | netbsd | openbsd | irix6-5 | sol2* )
17176 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
17179 esac
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
17182 $as_echo_n "checking for _setjmp... " >&6; }
17183 if test "${emacs_cv_func__setjmp+set}" = set; then :
17184 $as_echo_n "(cached) " >&6
17185 else
17186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17187 /* end confdefs.h. */
17188 #include <setjmp.h>
17189 #ifdef __MINGW32__
17190 # define _longjmp longjmp
17191 #endif
17194 main ()
17196 jmp_buf j;
17197 if (! _setjmp (j))
17198 _longjmp (j, 1);
17200 return 0;
17202 _ACEOF
17203 if ac_fn_c_try_link "$LINENO"; then :
17204 emacs_cv_func__setjmp=yes
17205 else
17206 emacs_cv_func__setjmp=no
17208 rm -f core conftest.err conftest.$ac_objext \
17209 conftest$ac_exeext conftest.$ac_ext
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
17212 $as_echo "$emacs_cv_func__setjmp" >&6; }
17213 if test $emacs_cv_func__setjmp = yes; then
17215 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
17217 else
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
17219 $as_echo_n "checking for sigsetjmp... " >&6; }
17220 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
17221 $as_echo_n "(cached) " >&6
17222 else
17223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17224 /* end confdefs.h. */
17225 #include <setjmp.h>
17228 main ()
17230 sigjmp_buf j;
17231 if (! sigsetjmp (j, 1))
17232 siglongjmp (j, 1);
17234 return 0;
17236 _ACEOF
17237 if ac_fn_c_try_link "$LINENO"; then :
17238 emacs_cv_func_sigsetjmp=yes
17239 else
17240 emacs_cv_func_sigsetjmp=no
17242 rm -f core conftest.err conftest.$ac_objext \
17243 conftest$ac_exeext conftest.$ac_ext
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
17246 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
17247 if test $emacs_cv_func_sigsetjmp = yes; then
17249 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
17254 case $opsys in
17255 sol2* | unixware )
17257 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
17260 esac
17263 case $opsys in
17264 hpux* | sol2* )
17266 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
17269 esac
17277 case $opsys in
17278 aix4-2)
17279 $as_echo "#define USG /**/" >>confdefs.h
17281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17282 /* end confdefs.h. */
17284 #ifndef _AIX
17285 # error "_AIX not defined"
17286 #endif
17289 main ()
17293 return 0;
17295 _ACEOF
17296 if ac_fn_c_try_cpp "$LINENO"; then :
17298 else
17300 $as_echo "#define _AIX /**/" >>confdefs.h
17303 rm -f conftest.err conftest.$ac_ext
17306 cygwin)
17308 $as_echo "#define CYGWIN 1" >>confdefs.h
17312 darwin)
17314 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
17318 gnu-linux | gnu-kfreebsd )
17319 $as_echo "#define USG /**/" >>confdefs.h
17322 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
17326 hpux*)
17327 $as_echo "#define USG /**/" >>confdefs.h
17330 $as_echo "#define HPUX /**/" >>confdefs.h
17334 irix6-5)
17335 $as_echo "#define USG /**/" >>confdefs.h
17337 $as_echo "#define USG5_4 /**/" >>confdefs.h
17340 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
17344 mingw32)
17345 $as_echo "#define DOS_NT /**/" >>confdefs.h
17348 $as_echo "#define WINDOWSNT 1" >>confdefs.h
17350 if test "x$ac_enable_checking" != "x" ; then
17352 $as_echo "#define EMACSDEBUG 1" >>confdefs.h
17357 sol2*)
17358 $as_echo "#define USG /**/" >>confdefs.h
17360 $as_echo "#define USG5_4 /**/" >>confdefs.h
17363 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
17367 unixware)
17368 $as_echo "#define USG /**/" >>confdefs.h
17370 $as_echo "#define USG5_4 /**/" >>confdefs.h
17373 esac
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
17376 $as_echo_n "checking for usable FIONREAD... " >&6; }
17377 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
17378 $as_echo_n "(cached) " >&6
17379 else
17380 case $opsys in
17381 aix4-2)
17382 emacs_cv_usable_FIONREAD=no
17385 mingw32)
17386 emacs_cv_usable_FIONREAD=yes
17390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17391 /* end confdefs.h. */
17392 #include <sys/types.h>
17393 #include <sys/ioctl.h>
17394 #ifdef USG5_4
17395 # include <sys/filio.h>
17396 #endif
17399 main ()
17401 int foo = ioctl (0, FIONREAD, &foo);
17403 return 0;
17405 _ACEOF
17406 if ac_fn_c_try_compile "$LINENO"; then :
17407 emacs_cv_usable_FIONREAD=yes
17408 else
17409 emacs_cv_usable_FIONREAD=no
17411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17413 esac
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
17416 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
17417 if test $emacs_cv_usable_FIONREAD = yes; then
17419 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
17422 if test $emacs_broken_SIGIO = no; then
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
17424 $as_echo_n "checking for usable SIGIO... " >&6; }
17425 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
17426 $as_echo_n "(cached) " >&6
17427 else
17428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17429 /* end confdefs.h. */
17430 #include <fcntl.h>
17431 #include <signal.h>
17434 main ()
17436 int foo = SIGIO | F_SETFL | FASYNC;
17438 return 0;
17440 _ACEOF
17441 if ac_fn_c_try_compile "$LINENO"; then :
17442 emacs_cv_usable_SIGIO=yes
17443 else
17444 emacs_cv_usable_SIGIO=no
17446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
17449 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
17450 if test $emacs_cv_usable_SIGIO = yes; then
17452 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
17459 case $opsys in
17460 cygwin)
17462 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
17466 hpux11)
17468 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
17472 irix6-5)
17474 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
17478 sol2-10)
17480 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
17483 esac
17485 # Set up the CFLAGS for real compilation, so we can substitute it.
17486 CFLAGS="$REAL_CFLAGS"
17487 CPPFLAGS="$REAL_CPPFLAGS"
17489 ## Hack to detect a buggy GCC version.
17490 if test "x$GCC" = xyes \
17491 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
17492 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
17493 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
17494 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
17497 version=$PACKAGE_VERSION
17499 copyright="Copyright (C) 2013 Free Software Foundation, Inc."
17501 cat >>confdefs.h <<_ACEOF
17502 #define COPYRIGHT "$copyright"
17503 _ACEOF
17507 ### Specify what sort of things we'll be editing into Makefile and config.h.
17508 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17511 ## Unused?
17534 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
17535 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
17536 ## end of LIBX_BASE, but nothing ever set it.
17541 ## Used in lwlib/Makefile.in.
17550 if test -n "${term_header}"; then
17552 cat >>confdefs.h <<_ACEOF
17553 #define TERM_HEADER "${term_header}"
17554 _ACEOF
17559 cat >>confdefs.h <<_ACEOF
17560 #define EMACS_CONFIGURATION "${canonical}"
17561 _ACEOF
17564 cat >>confdefs.h <<_ACEOF
17565 #define EMACS_CONFIG_OPTIONS "${emacs_config_options}"
17566 _ACEOF
17570 case $opsys in
17571 mingw32)
17572 $as_echo "#define config_opsysfile <ms-w32.h>" >>confdefs.h
17575 esac
17577 XMENU_OBJ=
17578 XOBJ=
17579 FONT_OBJ=
17580 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17582 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
17584 XMENU_OBJ=xmenu.o
17585 XOBJ="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o"
17586 FONT_OBJ=xfont.o
17587 if test "$HAVE_XFT" = "yes"; then
17588 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
17589 elif test "$HAVE_FREETYPE" = "yes"; then
17590 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
17598 WIDGET_OBJ=
17599 MOTIF_LIBW=
17600 if test "${USE_X_TOOLKIT}" != "none" ; then
17601 WIDGET_OBJ=widget.o
17603 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
17605 if test "${USE_X_TOOLKIT}" = "LUCID"; then
17607 $as_echo "#define USE_LUCID 1" >>confdefs.h
17609 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
17611 $as_echo "#define USE_MOTIF 1" >>confdefs.h
17613 MOTIF_LIBW=-lXm
17614 case "$opsys" in
17615 gnu-linux)
17616 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
17617 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
17620 unixware)
17621 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
17622 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
17623 MOTIF_LIBW="MOTIF_LIBW -lXimp"
17626 aix4-2)
17627 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
17628 MOTIF_LIBW="$MOTIF_LIBW -li18n"
17630 esac
17631 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
17636 TOOLKIT_LIBW=
17637 case "$USE_X_TOOLKIT" in
17638 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
17639 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
17640 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
17641 esac
17644 if test "${opsys}" != "mingw32"; then
17645 if test "$USE_X_TOOLKIT" = "none"; then
17646 LIBXT_OTHER="\$(LIBXSM)"
17647 OLDXMENU_TARGET="really-oldXMenu"
17648 else
17649 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
17650 OLDXMENU_TARGET="really-lwlib"
17655 ## The X Menu stuff is present in the X10 distribution, but missing
17656 ## from X11. If we have X10, just use the installed library;
17657 ## otherwise, use our own copy.
17658 if test "${HAVE_X11}" = "yes" ; then
17660 $as_echo "#define HAVE_X11 1" >>confdefs.h
17663 if test "$USE_X_TOOLKIT" = "none"; then
17664 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
17665 else
17666 OLDXMENU="\${lwlibdir}/liblw.a"
17668 LIBXMENU="\$(OLDXMENU)"
17669 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
17670 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
17671 else
17672 ## For a syntactically valid Makefile; not actually used for anything.
17673 ## See comments in src/Makefile.in.
17674 OLDXMENU=nothing
17675 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
17676 if test "${HAVE_X_WINDOWS}" = "yes"; then
17677 LIBXMENU="-lXMenu"
17678 else
17679 LIBXMENU=
17681 LIBX_OTHER=
17682 OLDXMENU_DEPS=
17685 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
17686 OLDXMENU_TARGET=
17687 OLDXMENU=nothing
17688 LIBXMENU=
17689 OLDXMENU_DEPS=
17698 if test "${HAVE_MENUS}" = "yes" ; then
17700 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
17704 if test "${GNU_MALLOC}" = "yes" ; then
17706 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
17710 RALLOC_OBJ=
17711 if test "${REL_ALLOC}" = "yes" ; then
17713 $as_echo "#define REL_ALLOC 1" >>confdefs.h
17716 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
17720 if test "$opsys" = "cygwin"; then
17721 CYGWIN_OBJ="sheap.o cygw32.o"
17722 ## Cygwin differs because of its unexec().
17723 PRE_ALLOC_OBJ=
17724 POST_ALLOC_OBJ=lastfile.o
17725 elif test "$opsys" = "mingw32"; then
17726 CYGWIN_OBJ=
17727 PRE_ALLOC_OBJ=
17728 POST_ALLOC_OBJ=lastfile.o
17729 else
17730 CYGWIN_OBJ=
17731 PRE_ALLOC_OBJ=lastfile.o
17732 POST_ALLOC_OBJ=
17740 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
17741 # it temporarily reverts them to their pre-pkg-config values,
17742 # because gnulib needs to work with both src (which uses the
17743 # pkg-config stuff) and lib-src (which does not). For example, gnulib
17744 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
17745 # and it therefore needs to run in an environment where LIBS does not
17746 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
17747 # for some package unrelated to lib-src.
17748 SAVE_CFLAGS=$CFLAGS
17749 SAVE_LIBS=$LIBS
17750 CFLAGS=$pre_PKG_CONFIG_CFLAGS
17751 LIBS="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
17763 LIBC_FATAL_STDERR_=1
17764 export LIBC_FATAL_STDERR_
17766 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17767 # for constant arguments. Useless!
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17769 $as_echo_n "checking for working alloca.h... " >&6; }
17770 if test "${ac_cv_working_alloca_h+set}" = set; then :
17771 $as_echo_n "(cached) " >&6
17772 else
17773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17774 /* end confdefs.h. */
17775 #include <alloca.h>
17777 main ()
17779 char *p = (char *) alloca (2 * sizeof (int));
17780 if (p) return 0;
17782 return 0;
17784 _ACEOF
17785 if ac_fn_c_try_link "$LINENO"; then :
17786 ac_cv_working_alloca_h=yes
17787 else
17788 ac_cv_working_alloca_h=no
17790 rm -f core conftest.err conftest.$ac_objext \
17791 conftest$ac_exeext conftest.$ac_ext
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17794 $as_echo "$ac_cv_working_alloca_h" >&6; }
17795 if test $ac_cv_working_alloca_h = yes; then
17797 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17802 $as_echo_n "checking for alloca... " >&6; }
17803 if test "${ac_cv_func_alloca_works+set}" = set; then :
17804 $as_echo_n "(cached) " >&6
17805 else
17806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17807 /* end confdefs.h. */
17808 #ifdef __GNUC__
17809 # define alloca __builtin_alloca
17810 #else
17811 # ifdef _MSC_VER
17812 # include <malloc.h>
17813 # define alloca _alloca
17814 # else
17815 # ifdef HAVE_ALLOCA_H
17816 # include <alloca.h>
17817 # else
17818 # ifdef _AIX
17819 #pragma alloca
17820 # else
17821 # ifndef alloca /* predefined by HP cc +Olibcalls */
17822 char *alloca ();
17823 # endif
17824 # endif
17825 # endif
17826 # endif
17827 #endif
17830 main ()
17832 char *p = (char *) alloca (1);
17833 if (p) return 0;
17835 return 0;
17837 _ACEOF
17838 if ac_fn_c_try_link "$LINENO"; then :
17839 ac_cv_func_alloca_works=yes
17840 else
17841 ac_cv_func_alloca_works=no
17843 rm -f core conftest.err conftest.$ac_objext \
17844 conftest$ac_exeext conftest.$ac_ext
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17847 $as_echo "$ac_cv_func_alloca_works" >&6; }
17849 if test $ac_cv_func_alloca_works = yes; then
17851 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17853 else
17854 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17855 # that cause trouble. Some versions do not even contain alloca or
17856 # contain a buggy version. If you still want to use their alloca,
17857 # use ar to extract alloca.o from them instead of compiling alloca.c.
17863 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17865 $as_echo "#define C_ALLOCA 1" >>confdefs.h
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
17869 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
17870 if test "${ac_cv_os_cray+set}" = set; then :
17871 $as_echo_n "(cached) " >&6
17872 else
17873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17874 /* end confdefs.h. */
17875 #if defined CRAY && ! defined CRAY2
17876 webecray
17877 #else
17878 wenotbecray
17879 #endif
17881 _ACEOF
17882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17883 $EGREP "webecray" >/dev/null 2>&1; then :
17884 ac_cv_os_cray=yes
17885 else
17886 ac_cv_os_cray=no
17888 rm -f conftest*
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
17892 $as_echo "$ac_cv_os_cray" >&6; }
17893 if test $ac_cv_os_cray = yes; then
17894 for ac_func in _getb67 GETB67 getb67; do
17895 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17896 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17897 eval as_val=\$$as_ac_var
17898 if test "x$as_val" = x""yes; then :
17900 cat >>confdefs.h <<_ACEOF
17901 #define CRAY_STACKSEG_END $ac_func
17902 _ACEOF
17904 break
17907 done
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17911 $as_echo_n "checking stack direction for C alloca... " >&6; }
17912 if test "${ac_cv_c_stack_direction+set}" = set; then :
17913 $as_echo_n "(cached) " >&6
17914 else
17915 if test "$cross_compiling" = yes; then :
17916 ac_cv_c_stack_direction=0
17917 else
17918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17919 /* end confdefs.h. */
17920 $ac_includes_default
17922 find_stack_direction (int *addr, int depth)
17924 int dir, dummy = 0;
17925 if (! addr)
17926 addr = &dummy;
17927 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
17928 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
17929 return dir + dummy;
17933 main (int argc, char **argv)
17935 return find_stack_direction (0, argc + !argv + 20) < 0;
17937 _ACEOF
17938 if ac_fn_c_try_run "$LINENO"; then :
17939 ac_cv_c_stack_direction=1
17940 else
17941 ac_cv_c_stack_direction=-1
17943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17944 conftest.$ac_objext conftest.beam conftest.$ac_ext
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17949 $as_echo "$ac_cv_c_stack_direction" >&6; }
17950 cat >>confdefs.h <<_ACEOF
17951 #define STACK_DIRECTION $ac_cv_c_stack_direction
17952 _ACEOF
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17961 $as_echo_n "checking for unsigned long long int... " >&6; }
17962 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17963 $as_echo_n "(cached) " >&6
17964 else
17965 ac_cv_type_unsigned_long_long_int=yes
17966 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17968 /* end confdefs.h. */
17970 /* For now, do not test the preprocessor; as of 2007 there are too many
17971 implementations with broken preprocessors. Perhaps this can
17972 be revisited in 2012. In the meantime, code should not expect
17973 #if to work with literals wider than 32 bits. */
17974 /* Test literals. */
17975 long long int ll = 9223372036854775807ll;
17976 long long int nll = -9223372036854775807LL;
17977 unsigned long long int ull = 18446744073709551615ULL;
17978 /* Test constant expressions. */
17979 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17980 ? 1 : -1)];
17981 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17982 ? 1 : -1)];
17983 int i = 63;
17985 main ()
17987 /* Test availability of runtime routines for shift and division. */
17988 long long int llmax = 9223372036854775807ll;
17989 unsigned long long int ullmax = 18446744073709551615ull;
17990 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17991 | (llmax / ll) | (llmax % ll)
17992 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17993 | (ullmax / ull) | (ullmax % ull));
17995 return 0;
17998 _ACEOF
17999 if ac_fn_c_try_link "$LINENO"; then :
18001 else
18002 ac_cv_type_unsigned_long_long_int=no
18004 rm -f core conftest.err conftest.$ac_objext \
18005 conftest$ac_exeext conftest.$ac_ext
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18009 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18010 if test $ac_cv_type_unsigned_long_long_int = yes; then
18012 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18018 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
18019 if test "${ac_cv_c_bigendian+set}" = set; then :
18020 $as_echo_n "(cached) " >&6
18021 else
18022 ac_cv_c_bigendian=unknown
18023 # See if we're dealing with a universal compiler.
18024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18025 /* end confdefs.h. */
18026 #ifndef __APPLE_CC__
18027 not a universal capable compiler
18028 #endif
18029 typedef int dummy;
18031 _ACEOF
18032 if ac_fn_c_try_compile "$LINENO"; then :
18034 # Check for potential -arch flags. It is not universal unless
18035 # there are at least two -arch flags with different values.
18036 ac_arch=
18037 ac_prev=
18038 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
18039 if test -n "$ac_prev"; then
18040 case $ac_word in
18041 i?86 | x86_64 | ppc | ppc64)
18042 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
18043 ac_arch=$ac_word
18044 else
18045 ac_cv_c_bigendian=universal
18046 break
18049 esac
18050 ac_prev=
18051 elif test "x$ac_word" = "x-arch"; then
18052 ac_prev=arch
18054 done
18056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18057 if test $ac_cv_c_bigendian = unknown; then
18058 # See if sys/param.h defines the BYTE_ORDER macro.
18059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18060 /* end confdefs.h. */
18061 #include <sys/types.h>
18062 #include <sys/param.h>
18065 main ()
18067 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
18068 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
18069 && LITTLE_ENDIAN)
18070 bogus endian macros
18071 #endif
18074 return 0;
18076 _ACEOF
18077 if ac_fn_c_try_compile "$LINENO"; then :
18078 # It does; now see whether it defined to BIG_ENDIAN or not.
18079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18080 /* end confdefs.h. */
18081 #include <sys/types.h>
18082 #include <sys/param.h>
18085 main ()
18087 #if BYTE_ORDER != BIG_ENDIAN
18088 not big endian
18089 #endif
18092 return 0;
18094 _ACEOF
18095 if ac_fn_c_try_compile "$LINENO"; then :
18096 ac_cv_c_bigendian=yes
18097 else
18098 ac_cv_c_bigendian=no
18100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18104 if test $ac_cv_c_bigendian = unknown; then
18105 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18107 /* end confdefs.h. */
18108 #include <limits.h>
18111 main ()
18113 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18114 bogus endian macros
18115 #endif
18118 return 0;
18120 _ACEOF
18121 if ac_fn_c_try_compile "$LINENO"; then :
18122 # It does; now see whether it defined to _BIG_ENDIAN or not.
18123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18124 /* end confdefs.h. */
18125 #include <limits.h>
18128 main ()
18130 #ifndef _BIG_ENDIAN
18131 not big endian
18132 #endif
18135 return 0;
18137 _ACEOF
18138 if ac_fn_c_try_compile "$LINENO"; then :
18139 ac_cv_c_bigendian=yes
18140 else
18141 ac_cv_c_bigendian=no
18143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18147 if test $ac_cv_c_bigendian = unknown; then
18148 # Compile a test program.
18149 if test "$cross_compiling" = yes; then :
18150 # Try to guess by grepping values from an object file.
18151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18152 /* end confdefs.h. */
18153 short int ascii_mm[] =
18154 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18155 short int ascii_ii[] =
18156 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18157 int use_ascii (int i) {
18158 return ascii_mm[i] + ascii_ii[i];
18160 short int ebcdic_ii[] =
18161 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18162 short int ebcdic_mm[] =
18163 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18164 int use_ebcdic (int i) {
18165 return ebcdic_mm[i] + ebcdic_ii[i];
18167 extern int foo;
18170 main ()
18172 return use_ascii (foo) == use_ebcdic (foo);
18174 return 0;
18176 _ACEOF
18177 if ac_fn_c_try_compile "$LINENO"; then :
18178 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18179 ac_cv_c_bigendian=yes
18181 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18182 if test "$ac_cv_c_bigendian" = unknown; then
18183 ac_cv_c_bigendian=no
18184 else
18185 # finding both strings is unlikely to happen, but who knows?
18186 ac_cv_c_bigendian=unknown
18190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18191 else
18192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18193 /* end confdefs.h. */
18194 $ac_includes_default
18196 main ()
18199 /* Are we little or big endian? From Harbison&Steele. */
18200 union
18202 long int l;
18203 char c[sizeof (long int)];
18204 } u;
18205 u.l = 1;
18206 return u.c[sizeof (long int) - 1] == 1;
18209 return 0;
18211 _ACEOF
18212 if ac_fn_c_try_run "$LINENO"; then :
18213 ac_cv_c_bigendian=no
18214 else
18215 ac_cv_c_bigendian=yes
18217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18218 conftest.$ac_objext conftest.beam conftest.$ac_ext
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
18224 $as_echo "$ac_cv_c_bigendian" >&6; }
18225 case $ac_cv_c_bigendian in #(
18226 yes)
18227 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
18228 ;; #(
18230 ;; #(
18231 universal)
18233 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
18235 ;; #(
18237 as_fn_error "unknown endianness
18238 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
18239 esac
18243 GNULIB_CHDIR=0;
18244 GNULIB_CHOWN=0;
18245 GNULIB_CLOSE=0;
18246 GNULIB_DUP=0;
18247 GNULIB_DUP2=0;
18248 GNULIB_DUP3=0;
18249 GNULIB_ENVIRON=0;
18250 GNULIB_EUIDACCESS=0;
18251 GNULIB_FACCESSAT=0;
18252 GNULIB_FCHDIR=0;
18253 GNULIB_FCHOWNAT=0;
18254 GNULIB_FDATASYNC=0;
18255 GNULIB_FSYNC=0;
18256 GNULIB_FTRUNCATE=0;
18257 GNULIB_GETCWD=0;
18258 GNULIB_GETDOMAINNAME=0;
18259 GNULIB_GETDTABLESIZE=0;
18260 GNULIB_GETGROUPS=0;
18261 GNULIB_GETHOSTNAME=0;
18262 GNULIB_GETLOGIN=0;
18263 GNULIB_GETLOGIN_R=0;
18264 GNULIB_GETPAGESIZE=0;
18265 GNULIB_GETUSERSHELL=0;
18266 GNULIB_GROUP_MEMBER=0;
18267 GNULIB_ISATTY=0;
18268 GNULIB_LCHOWN=0;
18269 GNULIB_LINK=0;
18270 GNULIB_LINKAT=0;
18271 GNULIB_LSEEK=0;
18272 GNULIB_PIPE=0;
18273 GNULIB_PIPE2=0;
18274 GNULIB_PREAD=0;
18275 GNULIB_PWRITE=0;
18276 GNULIB_READ=0;
18277 GNULIB_READLINK=0;
18278 GNULIB_READLINKAT=0;
18279 GNULIB_RMDIR=0;
18280 GNULIB_SETHOSTNAME=0;
18281 GNULIB_SLEEP=0;
18282 GNULIB_SYMLINK=0;
18283 GNULIB_SYMLINKAT=0;
18284 GNULIB_TTYNAME_R=0;
18285 GNULIB_UNISTD_H_NONBLOCKING=0;
18286 GNULIB_UNISTD_H_SIGPIPE=0;
18287 GNULIB_UNLINK=0;
18288 GNULIB_UNLINKAT=0;
18289 GNULIB_USLEEP=0;
18290 GNULIB_WRITE=0;
18291 HAVE_CHOWN=1;
18292 HAVE_DUP2=1;
18293 HAVE_DUP3=1;
18294 HAVE_EUIDACCESS=1;
18295 HAVE_FACCESSAT=1;
18296 HAVE_FCHDIR=1;
18297 HAVE_FCHOWNAT=1;
18298 HAVE_FDATASYNC=1;
18299 HAVE_FSYNC=1;
18300 HAVE_FTRUNCATE=1;
18301 HAVE_GETDTABLESIZE=1;
18302 HAVE_GETGROUPS=1;
18303 HAVE_GETHOSTNAME=1;
18304 HAVE_GETLOGIN=1;
18305 HAVE_GETPAGESIZE=1;
18306 HAVE_GROUP_MEMBER=1;
18307 HAVE_LCHOWN=1;
18308 HAVE_LINK=1;
18309 HAVE_LINKAT=1;
18310 HAVE_PIPE=1;
18311 HAVE_PIPE2=1;
18312 HAVE_PREAD=1;
18313 HAVE_PWRITE=1;
18314 HAVE_READLINK=1;
18315 HAVE_READLINKAT=1;
18316 HAVE_SETHOSTNAME=1;
18317 HAVE_SLEEP=1;
18318 HAVE_SYMLINK=1;
18319 HAVE_SYMLINKAT=1;
18320 HAVE_UNLINKAT=1;
18321 HAVE_USLEEP=1;
18322 HAVE_DECL_ENVIRON=1;
18323 HAVE_DECL_FCHDIR=1;
18324 HAVE_DECL_FDATASYNC=1;
18325 HAVE_DECL_GETDOMAINNAME=1;
18326 HAVE_DECL_GETLOGIN_R=1;
18327 HAVE_DECL_GETPAGESIZE=1;
18328 HAVE_DECL_GETUSERSHELL=1;
18329 HAVE_DECL_SETHOSTNAME=1;
18330 HAVE_DECL_TTYNAME_R=1;
18331 HAVE_OS_H=0;
18332 HAVE_SYS_PARAM_H=0;
18333 REPLACE_CHOWN=0;
18334 REPLACE_CLOSE=0;
18335 REPLACE_DUP=0;
18336 REPLACE_DUP2=0;
18337 REPLACE_FCHOWNAT=0;
18338 REPLACE_FTRUNCATE=0;
18339 REPLACE_GETCWD=0;
18340 REPLACE_GETDOMAINNAME=0;
18341 REPLACE_GETDTABLESIZE=0;
18342 REPLACE_GETLOGIN_R=0;
18343 REPLACE_GETGROUPS=0;
18344 REPLACE_GETPAGESIZE=0;
18345 REPLACE_ISATTY=0;
18346 REPLACE_LCHOWN=0;
18347 REPLACE_LINK=0;
18348 REPLACE_LINKAT=0;
18349 REPLACE_LSEEK=0;
18350 REPLACE_PREAD=0;
18351 REPLACE_PWRITE=0;
18352 REPLACE_READ=0;
18353 REPLACE_READLINK=0;
18354 REPLACE_RMDIR=0;
18355 REPLACE_SLEEP=0;
18356 REPLACE_SYMLINK=0;
18357 REPLACE_TTYNAME_R=0;
18358 REPLACE_UNLINK=0;
18359 REPLACE_UNLINKAT=0;
18360 REPLACE_USLEEP=0;
18361 REPLACE_WRITE=0;
18362 UNISTD_H_HAVE_WINSOCK2_H=0;
18363 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
18367 GNULIB_OPENDIR=0;
18368 GNULIB_READDIR=0;
18369 GNULIB_REWINDDIR=0;
18370 GNULIB_CLOSEDIR=0;
18371 GNULIB_DIRFD=0;
18372 GNULIB_FDOPENDIR=0;
18373 GNULIB_SCANDIR=0;
18374 GNULIB_ALPHASORT=0;
18375 HAVE_OPENDIR=1;
18376 HAVE_READDIR=1;
18377 HAVE_REWINDDIR=1;
18378 HAVE_CLOSEDIR=1;
18379 HAVE_DECL_DIRFD=1;
18380 HAVE_DECL_FDOPENDIR=1;
18381 HAVE_FDOPENDIR=1;
18382 HAVE_SCANDIR=1;
18383 HAVE_ALPHASORT=1;
18384 REPLACE_OPENDIR=0;
18385 REPLACE_CLOSEDIR=0;
18386 REPLACE_DIRFD=0;
18387 REPLACE_FDOPENDIR=0;
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
18392 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
18393 if test "${gl_cv_have_include_next+set}" = set; then :
18394 $as_echo_n "(cached) " >&6
18395 else
18396 rm -rf conftestd1a conftestd1b conftestd2
18397 mkdir conftestd1a conftestd1b conftestd2
18398 cat <<EOF > conftestd1a/conftest.h
18399 #define DEFINED_IN_CONFTESTD1
18400 #include_next <conftest.h>
18401 #ifdef DEFINED_IN_CONFTESTD2
18402 int foo;
18403 #else
18404 #error "include_next doesn't work"
18405 #endif
18407 cat <<EOF > conftestd1b/conftest.h
18408 #define DEFINED_IN_CONFTESTD1
18409 #include <stdio.h>
18410 #include_next <conftest.h>
18411 #ifdef DEFINED_IN_CONFTESTD2
18412 int foo;
18413 #else
18414 #error "include_next doesn't work"
18415 #endif
18417 cat <<EOF > conftestd2/conftest.h
18418 #ifndef DEFINED_IN_CONFTESTD1
18419 #error "include_next test doesn't work"
18420 #endif
18421 #define DEFINED_IN_CONFTESTD2
18423 gl_save_CPPFLAGS="$CPPFLAGS"
18424 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
18425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18426 /* end confdefs.h. */
18427 #include <conftest.h>
18428 _ACEOF
18429 if ac_fn_c_try_compile "$LINENO"; then :
18430 gl_cv_have_include_next=yes
18431 else
18432 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
18433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18434 /* end confdefs.h. */
18435 #include <conftest.h>
18436 _ACEOF
18437 if ac_fn_c_try_compile "$LINENO"; then :
18438 gl_cv_have_include_next=buggy
18439 else
18440 gl_cv_have_include_next=no
18442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18446 CPPFLAGS="$gl_save_CPPFLAGS"
18447 rm -rf conftestd1a conftestd1b conftestd2
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
18451 $as_echo "$gl_cv_have_include_next" >&6; }
18452 PRAGMA_SYSTEM_HEADER=
18453 if test $gl_cv_have_include_next = yes; then
18454 INCLUDE_NEXT=include_next
18455 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
18456 if test -n "$GCC"; then
18457 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
18459 else
18460 if test $gl_cv_have_include_next = buggy; then
18461 INCLUDE_NEXT=include
18462 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
18463 else
18464 INCLUDE_NEXT=include
18465 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
18472 $as_echo_n "checking whether system header files limit the line length... " >&6; }
18473 if test "${gl_cv_pragma_columns+set}" = set; then :
18474 $as_echo_n "(cached) " >&6
18475 else
18476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18477 /* end confdefs.h. */
18479 #ifdef __TANDEM
18480 choke me
18481 #endif
18483 _ACEOF
18484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18485 $EGREP "choke me" >/dev/null 2>&1; then :
18486 gl_cv_pragma_columns=yes
18487 else
18488 gl_cv_pragma_columns=no
18490 rm -f conftest*
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
18495 $as_echo "$gl_cv_pragma_columns" >&6; }
18496 if test $gl_cv_pragma_columns = yes; then
18497 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
18498 else
18499 PRAGMA_COLUMNS=
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
18507 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
18508 if test "${gl_cv_func_c99_strtold+set}" = set; then :
18509 $as_echo_n "(cached) " >&6
18510 else
18511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18512 /* end confdefs.h. */
18513 /* On HP-UX before 11.23, strtold returns a struct instead of
18514 long double. Reject implementations like that, by requiring
18515 compatibility with the C99 prototype. */
18516 #include <stdlib.h>
18517 static long double (*p) (char const *, char **) = strtold;
18518 static long double
18519 test (char const *nptr, char **endptr)
18521 long double r;
18522 r = strtold (nptr, endptr);
18523 return r;
18526 main ()
18528 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
18530 return 0;
18532 _ACEOF
18533 if ac_fn_c_try_link "$LINENO"; then :
18534 gl_cv_func_c99_strtold=yes
18535 else
18536 gl_cv_func_c99_strtold=no
18538 rm -f core conftest.err conftest.$ac_objext \
18539 conftest$ac_exeext conftest.$ac_ext
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
18542 $as_echo "$gl_cv_func_c99_strtold" >&6; }
18543 if test $gl_cv_func_c99_strtold = yes; then
18545 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
18557 $as_echo_n "checking if environ is properly declared... " >&6; }
18558 if test "${gt_cv_var_environ_declaration+set}" = set; then :
18559 $as_echo_n "(cached) " >&6
18560 else
18562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18563 /* end confdefs.h. */
18564 #if HAVE_UNISTD_H
18565 #include <unistd.h>
18566 #endif
18567 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
18568 #include <stdlib.h>
18570 extern struct { int foo; } environ;
18572 main ()
18574 environ.foo = 1;
18576 return 0;
18578 _ACEOF
18579 if ac_fn_c_try_compile "$LINENO"; then :
18580 gt_cv_var_environ_declaration=no
18581 else
18582 gt_cv_var_environ_declaration=yes
18584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
18588 $as_echo "$gt_cv_var_environ_declaration" >&6; }
18589 if test $gt_cv_var_environ_declaration = yes; then
18591 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
18596 if test $gt_cv_var_environ_declaration != yes; then
18597 HAVE_DECL_ENVIRON=0
18602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
18603 $as_echo_n "checking for complete errno.h... " >&6; }
18604 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
18605 $as_echo_n "(cached) " >&6
18606 else
18608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18609 /* end confdefs.h. */
18611 #include <errno.h>
18612 #if !defined ETXTBSY
18613 booboo
18614 #endif
18615 #if !defined ENOMSG
18616 booboo
18617 #endif
18618 #if !defined EIDRM
18619 booboo
18620 #endif
18621 #if !defined ENOLINK
18622 booboo
18623 #endif
18624 #if !defined EPROTO
18625 booboo
18626 #endif
18627 #if !defined EMULTIHOP
18628 booboo
18629 #endif
18630 #if !defined EBADMSG
18631 booboo
18632 #endif
18633 #if !defined EOVERFLOW
18634 booboo
18635 #endif
18636 #if !defined ENOTSUP
18637 booboo
18638 #endif
18639 #if !defined ENETRESET
18640 booboo
18641 #endif
18642 #if !defined ECONNABORTED
18643 booboo
18644 #endif
18645 #if !defined ESTALE
18646 booboo
18647 #endif
18648 #if !defined EDQUOT
18649 booboo
18650 #endif
18651 #if !defined ECANCELED
18652 booboo
18653 #endif
18654 #if !defined EOWNERDEAD
18655 booboo
18656 #endif
18657 #if !defined ENOTRECOVERABLE
18658 booboo
18659 #endif
18660 #if !defined EILSEQ
18661 booboo
18662 #endif
18664 _ACEOF
18665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18666 $EGREP "booboo" >/dev/null 2>&1; then :
18667 gl_cv_header_errno_h_complete=no
18668 else
18669 gl_cv_header_errno_h_complete=yes
18671 rm -f conftest*
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
18676 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
18677 if test $gl_cv_header_errno_h_complete = yes; then
18678 ERRNO_H=''
18679 else
18688 if test $gl_cv_have_include_next = yes; then
18689 gl_cv_next_errno_h='<'errno.h'>'
18690 else
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
18692 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
18693 if test "${gl_cv_next_errno_h+set}" = set; then :
18694 $as_echo_n "(cached) " >&6
18695 else
18697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18698 /* end confdefs.h. */
18699 #include <errno.h>
18701 _ACEOF
18702 case "$host_os" in
18703 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18704 *) gl_absname_cpp="$ac_cpp" ;;
18705 esac
18707 case "$host_os" in
18708 mingw*)
18709 gl_dirsep_regex='[/\\]'
18712 gl_dirsep_regex='\/'
18714 esac
18715 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18717 gl_header_literal_regex=`echo 'errno.h' \
18718 | sed -e "$gl_make_literal_regex_sed"`
18719 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18720 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18721 s|^/[^/]|//&|
18725 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18726 sed -n "$gl_absolute_header_sed"`'"'
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
18731 $as_echo "$gl_cv_next_errno_h" >&6; }
18733 NEXT_ERRNO_H=$gl_cv_next_errno_h
18735 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18736 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18737 gl_next_as_first_directive='<'errno.h'>'
18738 else
18739 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18740 gl_next_as_first_directive=$gl_cv_next_errno_h
18742 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
18747 ERRNO_H='errno.h'
18750 if test -n "$ERRNO_H"; then
18751 GL_GENERATE_ERRNO_H_TRUE=
18752 GL_GENERATE_ERRNO_H_FALSE='#'
18753 else
18754 GL_GENERATE_ERRNO_H_TRUE='#'
18755 GL_GENERATE_ERRNO_H_FALSE=
18759 if test -n "$ERRNO_H"; then
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
18761 $as_echo_n "checking for EMULTIHOP value... " >&6; }
18762 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
18763 $as_echo_n "(cached) " >&6
18764 else
18766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18767 /* end confdefs.h. */
18769 #include <errno.h>
18770 #ifdef EMULTIHOP
18772 #endif
18774 _ACEOF
18775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18776 $EGREP "yes" >/dev/null 2>&1; then :
18777 gl_cv_header_errno_h_EMULTIHOP=yes
18778 else
18779 gl_cv_header_errno_h_EMULTIHOP=no
18781 rm -f conftest*
18783 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
18784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18785 /* end confdefs.h. */
18787 #define _XOPEN_SOURCE_EXTENDED 1
18788 #include <errno.h>
18789 #ifdef EMULTIHOP
18791 #endif
18793 _ACEOF
18794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18795 $EGREP "yes" >/dev/null 2>&1; then :
18796 gl_cv_header_errno_h_EMULTIHOP=hidden
18798 rm -f conftest*
18800 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
18801 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
18802 #define _XOPEN_SOURCE_EXTENDED 1
18803 #include <errno.h>
18804 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18805 #include <stdio.h>
18806 #include <stdlib.h>
18807 "; then :
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
18816 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
18817 case $gl_cv_header_errno_h_EMULTIHOP in
18818 yes | no)
18819 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
18822 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
18824 esac
18830 if test -n "$ERRNO_H"; then
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
18832 $as_echo_n "checking for ENOLINK value... " >&6; }
18833 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
18834 $as_echo_n "(cached) " >&6
18835 else
18837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18838 /* end confdefs.h. */
18840 #include <errno.h>
18841 #ifdef ENOLINK
18843 #endif
18845 _ACEOF
18846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18847 $EGREP "yes" >/dev/null 2>&1; then :
18848 gl_cv_header_errno_h_ENOLINK=yes
18849 else
18850 gl_cv_header_errno_h_ENOLINK=no
18852 rm -f conftest*
18854 if test $gl_cv_header_errno_h_ENOLINK = no; then
18855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18856 /* end confdefs.h. */
18858 #define _XOPEN_SOURCE_EXTENDED 1
18859 #include <errno.h>
18860 #ifdef ENOLINK
18862 #endif
18864 _ACEOF
18865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18866 $EGREP "yes" >/dev/null 2>&1; then :
18867 gl_cv_header_errno_h_ENOLINK=hidden
18869 rm -f conftest*
18871 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
18872 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
18873 #define _XOPEN_SOURCE_EXTENDED 1
18874 #include <errno.h>
18875 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18876 #include <stdio.h>
18877 #include <stdlib.h>
18878 "; then :
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
18887 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
18888 case $gl_cv_header_errno_h_ENOLINK in
18889 yes | no)
18890 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
18893 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
18895 esac
18901 if test -n "$ERRNO_H"; then
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
18903 $as_echo_n "checking for EOVERFLOW value... " >&6; }
18904 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
18905 $as_echo_n "(cached) " >&6
18906 else
18908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18909 /* end confdefs.h. */
18911 #include <errno.h>
18912 #ifdef EOVERFLOW
18914 #endif
18916 _ACEOF
18917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18918 $EGREP "yes" >/dev/null 2>&1; then :
18919 gl_cv_header_errno_h_EOVERFLOW=yes
18920 else
18921 gl_cv_header_errno_h_EOVERFLOW=no
18923 rm -f conftest*
18925 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
18926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18927 /* end confdefs.h. */
18929 #define _XOPEN_SOURCE_EXTENDED 1
18930 #include <errno.h>
18931 #ifdef EOVERFLOW
18933 #endif
18935 _ACEOF
18936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18937 $EGREP "yes" >/dev/null 2>&1; then :
18938 gl_cv_header_errno_h_EOVERFLOW=hidden
18940 rm -f conftest*
18942 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
18943 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
18944 #define _XOPEN_SOURCE_EXTENDED 1
18945 #include <errno.h>
18946 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18947 #include <stdio.h>
18948 #include <stdlib.h>
18949 "; then :
18957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
18958 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
18959 case $gl_cv_header_errno_h_EOVERFLOW in
18960 yes | no)
18961 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
18964 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
18966 esac
18980 GNULIB_FCNTL=0;
18981 GNULIB_NONBLOCKING=0;
18982 GNULIB_OPEN=0;
18983 GNULIB_OPENAT=0;
18984 HAVE_FCNTL=1;
18985 HAVE_OPENAT=1;
18986 REPLACE_FCNTL=0;
18987 REPLACE_OPEN=0;
18988 REPLACE_OPENAT=0;
18993 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18994 if test "x$ac_cv_type_mode_t" = x""yes; then :
18996 else
18998 cat >>confdefs.h <<_ACEOF
18999 #define mode_t int
19000 _ACEOF
19004 ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "$ac_includes_default"
19005 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then :
19006 ac_have_decl=1
19007 else
19008 ac_have_decl=0
19011 cat >>confdefs.h <<_ACEOF
19012 #define HAVE_DECL_FDATASYNC $ac_have_decl
19013 _ACEOF
19017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
19018 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
19019 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
19020 $as_echo_n "(cached) " >&6
19021 else
19022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19023 /* end confdefs.h. */
19025 #include <sys/types.h>
19026 #include <sys/stat.h>
19028 main ()
19030 struct stat s; s.st_dm_mode;
19032 return 0;
19034 _ACEOF
19035 if ac_fn_c_try_compile "$LINENO"; then :
19036 ac_cv_struct_st_dm_mode=yes
19037 else
19038 ac_cv_struct_st_dm_mode=no
19040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
19043 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
19045 if test $ac_cv_struct_st_dm_mode = yes; then
19047 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
19052 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
19053 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
19054 ac_have_decl=1
19055 else
19056 ac_have_decl=0
19059 cat >>confdefs.h <<_ACEOF
19060 #define HAVE_DECL_STRMODE $ac_have_decl
19061 _ACEOF
19066 GNULIB_FCHMODAT=0;
19067 GNULIB_FSTAT=0;
19068 GNULIB_FSTATAT=0;
19069 GNULIB_FUTIMENS=0;
19070 GNULIB_LCHMOD=0;
19071 GNULIB_LSTAT=0;
19072 GNULIB_MKDIRAT=0;
19073 GNULIB_MKFIFO=0;
19074 GNULIB_MKFIFOAT=0;
19075 GNULIB_MKNOD=0;
19076 GNULIB_MKNODAT=0;
19077 GNULIB_STAT=0;
19078 GNULIB_UTIMENSAT=0;
19079 HAVE_FCHMODAT=1;
19080 HAVE_FSTATAT=1;
19081 HAVE_FUTIMENS=1;
19082 HAVE_LCHMOD=1;
19083 HAVE_LSTAT=1;
19084 HAVE_MKDIRAT=1;
19085 HAVE_MKFIFO=1;
19086 HAVE_MKFIFOAT=1;
19087 HAVE_MKNOD=1;
19088 HAVE_MKNODAT=1;
19089 HAVE_UTIMENSAT=1;
19090 REPLACE_FSTAT=0;
19091 REPLACE_FSTATAT=0;
19092 REPLACE_FUTIMENS=0;
19093 REPLACE_LSTAT=0;
19094 REPLACE_MKDIR=0;
19095 REPLACE_MKFIFO=0;
19096 REPLACE_MKNOD=0;
19097 REPLACE_STAT=0;
19098 REPLACE_UTIMENSAT=0;
19101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
19102 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
19103 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
19104 $as_echo_n "(cached) " >&6
19105 else
19106 rm -f conftest.sym conftest.file
19107 echo >conftest.file
19108 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
19109 if test "$cross_compiling" = yes; then :
19110 case "$host_os" in
19111 # Guess yes on glibc systems.
19112 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
19113 # If we don't know, assume the worst.
19114 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
19115 esac
19117 else
19118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19119 /* end confdefs.h. */
19120 $ac_includes_default
19122 main ()
19124 struct stat sbuf;
19125 /* Linux will dereference the symlink and fail, as required by
19126 POSIX. That is better in the sense that it means we will not
19127 have to compile and use the lstat wrapper. */
19128 return lstat ("conftest.sym/", &sbuf) == 0;
19131 return 0;
19133 _ACEOF
19134 if ac_fn_c_try_run "$LINENO"; then :
19135 gl_cv_func_lstat_dereferences_slashed_symlink=yes
19136 else
19137 gl_cv_func_lstat_dereferences_slashed_symlink=no
19139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19140 conftest.$ac_objext conftest.beam conftest.$ac_ext
19143 else
19144 # If the 'ln -s' command failed, then we probably don't even
19145 # have an lstat function.
19146 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
19148 rm -f conftest.sym conftest.file
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
19152 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19153 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19154 *yes)
19156 cat >>confdefs.h <<_ACEOF
19157 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19158 _ACEOF
19161 esac
19168 GNULIB__EXIT=0;
19169 GNULIB_ATOLL=0;
19170 GNULIB_CALLOC_POSIX=0;
19171 GNULIB_CANONICALIZE_FILE_NAME=0;
19172 GNULIB_GETLOADAVG=0;
19173 GNULIB_GETSUBOPT=0;
19174 GNULIB_GRANTPT=0;
19175 GNULIB_MALLOC_POSIX=0;
19176 GNULIB_MBTOWC=0;
19177 GNULIB_MKDTEMP=0;
19178 GNULIB_MKOSTEMP=0;
19179 GNULIB_MKOSTEMPS=0;
19180 GNULIB_MKSTEMP=0;
19181 GNULIB_MKSTEMPS=0;
19182 GNULIB_POSIX_OPENPT=0;
19183 GNULIB_PTSNAME=0;
19184 GNULIB_PTSNAME_R=0;
19185 GNULIB_PUTENV=0;
19186 GNULIB_RANDOM=0;
19187 GNULIB_RANDOM_R=0;
19188 GNULIB_REALLOC_POSIX=0;
19189 GNULIB_REALPATH=0;
19190 GNULIB_RPMATCH=0;
19191 GNULIB_SECURE_GETENV=0;
19192 GNULIB_SETENV=0;
19193 GNULIB_STRTOD=0;
19194 GNULIB_STRTOLL=0;
19195 GNULIB_STRTOULL=0;
19196 GNULIB_SYSTEM_POSIX=0;
19197 GNULIB_UNLOCKPT=0;
19198 GNULIB_UNSETENV=0;
19199 GNULIB_WCTOMB=0;
19200 HAVE__EXIT=1;
19201 HAVE_ATOLL=1;
19202 HAVE_CANONICALIZE_FILE_NAME=1;
19203 HAVE_DECL_GETLOADAVG=1;
19204 HAVE_GETSUBOPT=1;
19205 HAVE_GRANTPT=1;
19206 HAVE_MKDTEMP=1;
19207 HAVE_MKOSTEMP=1;
19208 HAVE_MKOSTEMPS=1;
19209 HAVE_MKSTEMP=1;
19210 HAVE_MKSTEMPS=1;
19211 HAVE_POSIX_OPENPT=1;
19212 HAVE_PTSNAME=1;
19213 HAVE_PTSNAME_R=1;
19214 HAVE_RANDOM=1;
19215 HAVE_RANDOM_H=1;
19216 HAVE_RANDOM_R=1;
19217 HAVE_REALPATH=1;
19218 HAVE_RPMATCH=1;
19219 HAVE_SECURE_GETENV=1;
19220 HAVE_SETENV=1;
19221 HAVE_DECL_SETENV=1;
19222 HAVE_STRTOD=1;
19223 HAVE_STRTOLL=1;
19224 HAVE_STRTOULL=1;
19225 HAVE_STRUCT_RANDOM_DATA=1;
19226 HAVE_SYS_LOADAVG_H=0;
19227 HAVE_UNLOCKPT=1;
19228 HAVE_DECL_UNSETENV=1;
19229 REPLACE_CALLOC=0;
19230 REPLACE_CANONICALIZE_FILE_NAME=0;
19231 REPLACE_MALLOC=0;
19232 REPLACE_MBTOWC=0;
19233 REPLACE_MKSTEMP=0;
19234 REPLACE_PTSNAME=0;
19235 REPLACE_PTSNAME_R=0;
19236 REPLACE_PUTENV=0;
19237 REPLACE_RANDOM_R=0;
19238 REPLACE_REALLOC=0;
19239 REPLACE_REALPATH=0;
19240 REPLACE_SETENV=0;
19241 REPLACE_STRTOD=0;
19242 REPLACE_UNSETENV=0;
19243 REPLACE_WCTOMB=0;
19260 if test $gl_cv_have_include_next = yes; then
19261 gl_cv_next_getopt_h='<'getopt.h'>'
19262 else
19263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
19264 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
19265 if test "${gl_cv_next_getopt_h+set}" = set; then :
19266 $as_echo_n "(cached) " >&6
19267 else
19269 if test $ac_cv_header_getopt_h = yes; then
19272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19273 /* end confdefs.h. */
19274 #include <getopt.h>
19276 _ACEOF
19277 case "$host_os" in
19278 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19279 *) gl_absname_cpp="$ac_cpp" ;;
19280 esac
19282 case "$host_os" in
19283 mingw*)
19284 gl_dirsep_regex='[/\\]'
19287 gl_dirsep_regex='\/'
19289 esac
19290 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19292 gl_header_literal_regex=`echo 'getopt.h' \
19293 | sed -e "$gl_make_literal_regex_sed"`
19294 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19295 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19296 s|^/[^/]|//&|
19300 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19301 sed -n "$gl_absolute_header_sed"`'"'
19302 else
19303 gl_cv_next_getopt_h='<'getopt.h'>'
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
19309 $as_echo "$gl_cv_next_getopt_h" >&6; }
19311 NEXT_GETOPT_H=$gl_cv_next_getopt_h
19313 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19314 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19315 gl_next_as_first_directive='<'getopt.h'>'
19316 else
19317 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19318 gl_next_as_first_directive=$gl_cv_next_getopt_h
19320 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
19325 if test $ac_cv_header_getopt_h = yes; then
19326 HAVE_GETOPT_H=1
19327 else
19328 HAVE_GETOPT_H=0
19332 gl_replace_getopt=
19334 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
19335 for ac_header in getopt.h
19336 do :
19337 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
19338 if test "x$ac_cv_header_getopt_h" = x""yes; then :
19339 cat >>confdefs.h <<_ACEOF
19340 #define HAVE_GETOPT_H 1
19341 _ACEOF
19343 else
19344 gl_replace_getopt=yes
19347 done
19351 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
19352 for ac_func in getopt_long_only
19353 do :
19354 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
19355 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
19356 cat >>confdefs.h <<_ACEOF
19357 #define HAVE_GETOPT_LONG_ONLY 1
19358 _ACEOF
19360 else
19361 gl_replace_getopt=yes
19363 done
19367 if test -z "$gl_replace_getopt"; then
19368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
19369 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
19370 if test "${gl_cv_func_getopt_posix+set}" = set; then :
19371 $as_echo_n "(cached) " >&6
19372 else
19374 if test $cross_compiling = no; then
19375 if test "$cross_compiling" = yes; then :
19376 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19378 as_fn_error "cannot run test program while cross compiling
19379 See \`config.log' for more details." "$LINENO" 5; }
19380 else
19381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19382 /* end confdefs.h. */
19384 #include <unistd.h>
19385 #include <stdlib.h>
19386 #include <string.h>
19389 main ()
19391 static char program[] = "program";
19392 static char a[] = "-a";
19393 static char foo[] = "foo";
19394 static char bar[] = "bar";
19395 char *argv[] = { program, a, foo, bar, NULL };
19396 int c;
19398 c = getopt (4, argv, "ab");
19399 if (!(c == 'a'))
19400 return 1;
19401 c = getopt (4, argv, "ab");
19402 if (!(c == -1))
19403 return 2;
19404 if (!(optind == 2))
19405 return 3;
19406 return 0;
19409 _ACEOF
19410 if ac_fn_c_try_run "$LINENO"; then :
19411 gl_cv_func_getopt_posix=maybe
19412 else
19413 gl_cv_func_getopt_posix=no
19415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19416 conftest.$ac_objext conftest.beam conftest.$ac_ext
19419 if test $gl_cv_func_getopt_posix = maybe; then
19420 if test "$cross_compiling" = yes; then :
19421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19423 as_fn_error "cannot run test program while cross compiling
19424 See \`config.log' for more details." "$LINENO" 5; }
19425 else
19426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19427 /* end confdefs.h. */
19429 #include <unistd.h>
19430 #include <stdlib.h>
19431 #include <string.h>
19434 main ()
19436 static char program[] = "program";
19437 static char donald[] = "donald";
19438 static char p[] = "-p";
19439 static char billy[] = "billy";
19440 static char duck[] = "duck";
19441 static char a[] = "-a";
19442 static char bar[] = "bar";
19443 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
19444 int c;
19446 c = getopt (7, argv, "+abp:q:");
19447 if (!(c == -1))
19448 return 4;
19449 if (!(strcmp (argv[0], "program") == 0))
19450 return 5;
19451 if (!(strcmp (argv[1], "donald") == 0))
19452 return 6;
19453 if (!(strcmp (argv[2], "-p") == 0))
19454 return 7;
19455 if (!(strcmp (argv[3], "billy") == 0))
19456 return 8;
19457 if (!(strcmp (argv[4], "duck") == 0))
19458 return 9;
19459 if (!(strcmp (argv[5], "-a") == 0))
19460 return 10;
19461 if (!(strcmp (argv[6], "bar") == 0))
19462 return 11;
19463 if (!(optind == 1))
19464 return 12;
19465 return 0;
19468 _ACEOF
19469 if ac_fn_c_try_run "$LINENO"; then :
19470 gl_cv_func_getopt_posix=maybe
19471 else
19472 gl_cv_func_getopt_posix=no
19474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19475 conftest.$ac_objext conftest.beam conftest.$ac_ext
19479 if test $gl_cv_func_getopt_posix = maybe; then
19480 if test "$cross_compiling" = yes; then :
19481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19483 as_fn_error "cannot run test program while cross compiling
19484 See \`config.log' for more details." "$LINENO" 5; }
19485 else
19486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19487 /* end confdefs.h. */
19489 #include <unistd.h>
19490 #include <stdlib.h>
19491 #include <string.h>
19494 main ()
19496 static char program[] = "program";
19497 static char ab[] = "-ab";
19498 char *argv[3] = { program, ab, NULL };
19499 if (getopt (2, argv, "ab:") != 'a')
19500 return 13;
19501 if (getopt (2, argv, "ab:") != '?')
19502 return 14;
19503 if (optopt != 'b')
19504 return 15;
19505 if (optind != 2)
19506 return 16;
19507 return 0;
19510 _ACEOF
19511 if ac_fn_c_try_run "$LINENO"; then :
19512 gl_cv_func_getopt_posix=yes
19513 else
19514 gl_cv_func_getopt_posix=no
19516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19517 conftest.$ac_objext conftest.beam conftest.$ac_ext
19521 else
19522 case "$host_os" in
19523 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
19524 *) gl_cv_func_getopt_posix="guessing yes";;
19525 esac
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
19530 $as_echo "$gl_cv_func_getopt_posix" >&6; }
19531 case "$gl_cv_func_getopt_posix" in
19532 *no) gl_replace_getopt=yes ;;
19533 esac
19536 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
19538 $as_echo_n "checking for working GNU getopt function... " >&6; }
19539 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
19540 $as_echo_n "(cached) " >&6
19541 else
19542 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
19543 # optstring is necessary for programs like m4 that have POSIX-mandated
19544 # semantics for supporting options interspersed with files.
19545 # Also, since getopt_long is a GNU extension, we require optind=0.
19546 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
19547 # so take care to revert to the correct (non-)export state.
19548 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
19549 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
19550 xx) gl_had_POSIXLY_CORRECT=exported ;;
19551 x) gl_had_POSIXLY_CORRECT=yes ;;
19552 *) gl_had_POSIXLY_CORRECT= ;;
19553 esac
19554 POSIXLY_CORRECT=1
19555 export POSIXLY_CORRECT
19556 if test "$cross_compiling" = yes; then :
19557 gl_cv_func_getopt_gnu="guessing no"
19559 else
19560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19561 /* end confdefs.h. */
19562 #include <getopt.h>
19563 #include <stddef.h>
19564 #include <string.h>
19566 #include <stdlib.h>
19567 #if defined __MACH__ && defined __APPLE__
19568 /* Avoid a crash on Mac OS X. */
19569 #include <mach/mach.h>
19570 #include <mach/mach_error.h>
19571 #include <mach/thread_status.h>
19572 #include <mach/exception.h>
19573 #include <mach/task.h>
19574 #include <pthread.h>
19575 /* The exception port on which our thread listens. */
19576 static mach_port_t our_exception_port;
19577 /* The main function of the thread listening for exceptions of type
19578 EXC_BAD_ACCESS. */
19579 static void *
19580 mach_exception_thread (void *arg)
19582 /* Buffer for a message to be received. */
19583 struct {
19584 mach_msg_header_t head;
19585 mach_msg_body_t msgh_body;
19586 char data[1024];
19587 } msg;
19588 mach_msg_return_t retval;
19589 /* Wait for a message on the exception port. */
19590 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
19591 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
19592 if (retval != MACH_MSG_SUCCESS)
19593 abort ();
19594 exit (1);
19596 static void
19597 nocrash_init (void)
19599 mach_port_t self = mach_task_self ();
19600 /* Allocate a port on which the thread shall listen for exceptions. */
19601 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
19602 == KERN_SUCCESS) {
19603 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
19604 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
19605 MACH_MSG_TYPE_MAKE_SEND)
19606 == KERN_SUCCESS) {
19607 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
19608 for us. */
19609 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
19610 /* Create the thread listening on the exception port. */
19611 pthread_attr_t attr;
19612 pthread_t thread;
19613 if (pthread_attr_init (&attr) == 0
19614 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
19615 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
19616 pthread_attr_destroy (&attr);
19617 /* Replace the exception port info for these exceptions with our own.
19618 Note that we replace the exception port for the entire task, not only
19619 for a particular thread. This has the effect that when our exception
19620 port gets the message, the thread specific exception port has already
19621 been asked, and we don't need to bother about it.
19622 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
19623 task_set_exception_ports (self, mask, our_exception_port,
19624 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
19629 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
19630 /* Avoid a crash on native Windows. */
19631 #define WIN32_LEAN_AND_MEAN
19632 #include <windows.h>
19633 #include <winerror.h>
19634 static LONG WINAPI
19635 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
19637 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
19639 case EXCEPTION_ACCESS_VIOLATION:
19640 case EXCEPTION_IN_PAGE_ERROR:
19641 case EXCEPTION_STACK_OVERFLOW:
19642 case EXCEPTION_GUARD_PAGE:
19643 case EXCEPTION_PRIV_INSTRUCTION:
19644 case EXCEPTION_ILLEGAL_INSTRUCTION:
19645 case EXCEPTION_DATATYPE_MISALIGNMENT:
19646 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
19647 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
19648 exit (1);
19650 return EXCEPTION_CONTINUE_SEARCH;
19652 static void
19653 nocrash_init (void)
19655 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
19657 #else
19658 /* Avoid a crash on POSIX systems. */
19659 #include <signal.h>
19660 /* A POSIX signal handler. */
19661 static void
19662 exception_handler (int sig)
19664 exit (1);
19666 static void
19667 nocrash_init (void)
19669 #ifdef SIGSEGV
19670 signal (SIGSEGV, exception_handler);
19671 #endif
19672 #ifdef SIGBUS
19673 signal (SIGBUS, exception_handler);
19674 #endif
19676 #endif
19680 main ()
19683 int result = 0;
19685 nocrash_init();
19687 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
19688 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
19689 OSF/1 5.1, Solaris 10. */
19691 static char conftest[] = "conftest";
19692 static char plus[] = "-+";
19693 char *argv[3] = { conftest, plus, NULL };
19694 opterr = 0;
19695 if (getopt (2, argv, "+a") != '?')
19696 result |= 1;
19698 /* This code succeeds on glibc 2.8, mingw,
19699 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
19700 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
19702 static char program[] = "program";
19703 static char p[] = "-p";
19704 static char foo[] = "foo";
19705 static char bar[] = "bar";
19706 char *argv[] = { program, p, foo, bar, NULL };
19708 optind = 1;
19709 if (getopt (4, argv, "p::") != 'p')
19710 result |= 2;
19711 else if (optarg != NULL)
19712 result |= 4;
19713 else if (getopt (4, argv, "p::") != -1)
19714 result |= 6;
19715 else if (optind != 2)
19716 result |= 8;
19718 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
19720 static char program[] = "program";
19721 static char foo[] = "foo";
19722 static char p[] = "-p";
19723 char *argv[] = { program, foo, p, NULL };
19724 optind = 0;
19725 if (getopt (3, argv, "-p") != 1)
19726 result |= 16;
19727 else if (getopt (3, argv, "-p") != 'p')
19728 result |= 16;
19730 /* This code fails on glibc 2.11. */
19732 static char program[] = "program";
19733 static char b[] = "-b";
19734 static char a[] = "-a";
19735 char *argv[] = { program, b, a, NULL };
19736 optind = opterr = 0;
19737 if (getopt (3, argv, "+:a:b") != 'b')
19738 result |= 32;
19739 else if (getopt (3, argv, "+:a:b") != ':')
19740 result |= 32;
19742 /* This code dumps core on glibc 2.14. */
19744 static char program[] = "program";
19745 static char w[] = "-W";
19746 static char dummy[] = "dummy";
19747 char *argv[] = { program, w, dummy, NULL };
19748 optind = opterr = 1;
19749 if (getopt (3, argv, "W;") != 'W')
19750 result |= 64;
19752 return result;
19755 return 0;
19757 _ACEOF
19758 if ac_fn_c_try_run "$LINENO"; then :
19759 gl_cv_func_getopt_gnu=yes
19760 else
19761 gl_cv_func_getopt_gnu=no
19763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19764 conftest.$ac_objext conftest.beam conftest.$ac_ext
19767 case $gl_had_POSIXLY_CORRECT in
19768 exported) ;;
19769 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
19770 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
19771 esac
19774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
19775 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
19776 if test "$gl_cv_func_getopt_gnu" != yes; then
19777 gl_replace_getopt=yes
19778 else
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
19780 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
19781 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
19782 $as_echo_n "(cached) " >&6
19783 else
19784 if test "$cross_compiling" = yes; then :
19785 case "$host_os" in
19786 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
19787 *) gl_cv_func_getopt_long_gnu="guessing yes";;
19788 esac
19790 else
19791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19792 /* end confdefs.h. */
19793 #include <getopt.h>
19794 #include <stddef.h>
19795 #include <string.h>
19798 main ()
19800 static const struct option long_options[] =
19802 { "xtremely-",no_argument, NULL, 1003 },
19803 { "xtra", no_argument, NULL, 1001 },
19804 { "xtreme", no_argument, NULL, 1002 },
19805 { "xtremely", no_argument, NULL, 1003 },
19806 { NULL, 0, NULL, 0 }
19808 /* This code fails on OpenBSD 5.0. */
19810 static char program[] = "program";
19811 static char xtremel[] = "--xtremel";
19812 char *argv[] = { program, xtremel, NULL };
19813 int option_index;
19814 optind = 1; opterr = 0;
19815 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
19816 return 1;
19818 return 0;
19821 return 0;
19823 _ACEOF
19824 if ac_fn_c_try_run "$LINENO"; then :
19825 gl_cv_func_getopt_long_gnu=yes
19826 else
19827 gl_cv_func_getopt_long_gnu=no
19829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19830 conftest.$ac_objext conftest.beam conftest.$ac_ext
19835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
19836 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
19837 case "$gl_cv_func_getopt_long_gnu" in
19838 *yes) ;;
19839 *) gl_replace_getopt=yes ;;
19840 esac
19849 REPLACE_GETOPT=0
19850 if test -n "$gl_replace_getopt"; then
19851 REPLACE_GETOPT=1
19854 if test $REPLACE_GETOPT = 1; then
19856 GETOPT_H=getopt.h
19858 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19864 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
19865 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
19866 ac_have_decl=1
19867 else
19868 ac_have_decl=0
19871 cat >>confdefs.h <<_ACEOF
19872 #define HAVE_DECL_GETENV $ac_have_decl
19873 _ACEOF
19880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19881 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19882 if test "${ac_cv_c_restrict+set}" = set; then :
19883 $as_echo_n "(cached) " >&6
19884 else
19885 ac_cv_c_restrict=no
19886 # The order here caters to the fact that C++ does not require restrict.
19887 for ac_kw in __restrict __restrict__ _Restrict restrict; do
19888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19889 /* end confdefs.h. */
19890 typedef int * int_ptr;
19891 int foo (int_ptr $ac_kw ip) {
19892 return ip[0];
19895 main ()
19897 int s[1];
19898 int * $ac_kw t = s;
19899 t[0] = 0;
19900 return foo(t)
19902 return 0;
19904 _ACEOF
19905 if ac_fn_c_try_compile "$LINENO"; then :
19906 ac_cv_c_restrict=$ac_kw
19908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19909 test "$ac_cv_c_restrict" != no && break
19910 done
19913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19914 $as_echo "$ac_cv_c_restrict" >&6; }
19916 case $ac_cv_c_restrict in
19917 restrict) ;;
19918 no) $as_echo "#define restrict /**/" >>confdefs.h
19920 *) cat >>confdefs.h <<_ACEOF
19921 #define restrict $ac_cv_c_restrict
19922 _ACEOF
19924 esac
19927 GNULIB_GETTIMEOFDAY=0;
19928 HAVE_GETTIMEOFDAY=1;
19929 HAVE_STRUCT_TIMEVAL=1;
19930 HAVE_SYS_TIME_H=1;
19931 REPLACE_GETTIMEOFDAY=0;
19932 REPLACE_STRUCT_TIMEVAL=0;
19949 if test $gl_cv_have_include_next = yes; then
19950 gl_cv_next_sys_time_h='<'sys/time.h'>'
19951 else
19952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
19953 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
19954 if test "${gl_cv_next_sys_time_h+set}" = set; then :
19955 $as_echo_n "(cached) " >&6
19956 else
19958 if test $ac_cv_header_sys_time_h = yes; then
19961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19962 /* end confdefs.h. */
19963 #include <sys/time.h>
19965 _ACEOF
19966 case "$host_os" in
19967 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19968 *) gl_absname_cpp="$ac_cpp" ;;
19969 esac
19971 case "$host_os" in
19972 mingw*)
19973 gl_dirsep_regex='[/\\]'
19976 gl_dirsep_regex='\/'
19978 esac
19979 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19981 gl_header_literal_regex=`echo 'sys/time.h' \
19982 | sed -e "$gl_make_literal_regex_sed"`
19983 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19984 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19985 s|^/[^/]|//&|
19989 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19990 sed -n "$gl_absolute_header_sed"`'"'
19991 else
19992 gl_cv_next_sys_time_h='<'sys/time.h'>'
19997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
19998 $as_echo "$gl_cv_next_sys_time_h" >&6; }
20000 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
20002 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20003 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20004 gl_next_as_first_directive='<'sys/time.h'>'
20005 else
20006 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20007 gl_next_as_first_directive=$gl_cv_next_sys_time_h
20009 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
20015 if test $ac_cv_header_sys_time_h != yes; then
20016 HAVE_SYS_TIME_H=0
20023 if test $ac_cv_header_sys_socket_h != yes; then
20024 for ac_header in winsock2.h
20025 do :
20026 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
20027 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
20028 cat >>confdefs.h <<_ACEOF
20029 #define HAVE_WINSOCK2_H 1
20030 _ACEOF
20034 done
20037 if test "$ac_cv_header_winsock2_h" = yes; then
20038 HAVE_WINSOCK2_H=1
20039 UNISTD_H_HAVE_WINSOCK2_H=1
20040 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
20041 else
20042 HAVE_WINSOCK2_H=0
20046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
20047 $as_echo_n "checking for struct timeval... " >&6; }
20048 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
20049 $as_echo_n "(cached) " >&6
20050 else
20051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20052 /* end confdefs.h. */
20053 #if HAVE_SYS_TIME_H
20054 #include <sys/time.h>
20055 #endif
20056 #include <time.h>
20057 #if HAVE_WINSOCK2_H
20058 # include <winsock2.h>
20059 #endif
20062 main ()
20064 static struct timeval x; x.tv_sec = x.tv_usec;
20066 return 0;
20068 _ACEOF
20069 if ac_fn_c_try_compile "$LINENO"; then :
20070 gl_cv_sys_struct_timeval=yes
20071 else
20072 gl_cv_sys_struct_timeval=no
20074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
20078 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
20079 if test $gl_cv_sys_struct_timeval != yes; then
20080 HAVE_STRUCT_TIMEVAL=0
20081 else
20082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
20083 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
20084 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
20085 $as_echo_n "(cached) " >&6
20086 else
20087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20088 /* end confdefs.h. */
20089 #if HAVE_SYS_TIME_H
20090 #include <sys/time.h>
20091 #endif
20092 #include <time.h>
20093 #if HAVE_WINSOCK2_H
20094 # include <winsock2.h>
20095 #endif
20098 main ()
20100 static struct timeval x;
20101 typedef int verify_tv_sec_type[
20102 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
20106 return 0;
20108 _ACEOF
20109 if ac_fn_c_try_compile "$LINENO"; then :
20110 gl_cv_sys_struct_timeval_tv_sec=yes
20111 else
20112 gl_cv_sys_struct_timeval_tv_sec=no
20114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
20118 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
20119 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
20120 REPLACE_STRUCT_TIMEVAL=1
20131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
20132 $as_echo_n "checking for long long int... " >&6; }
20133 if test "${ac_cv_type_long_long_int+set}" = set; then :
20134 $as_echo_n "(cached) " >&6
20135 else
20136 ac_cv_type_long_long_int=yes
20137 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
20138 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
20139 if test $ac_cv_type_long_long_int = yes; then
20140 if test "$cross_compiling" = yes; then :
20142 else
20143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20144 /* end confdefs.h. */
20145 #include <limits.h>
20146 #ifndef LLONG_MAX
20147 # define HALF \
20148 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
20149 # define LLONG_MAX (HALF - 1 + HALF)
20150 #endif
20152 main ()
20154 long long int n = 1;
20155 int i;
20156 for (i = 0; ; i++)
20158 long long int m = n << i;
20159 if (m >> i != n)
20160 return 1;
20161 if (LLONG_MAX / 2 < m)
20162 break;
20164 return 0;
20166 return 0;
20168 _ACEOF
20169 if ac_fn_c_try_run "$LINENO"; then :
20171 else
20172 ac_cv_type_long_long_int=no
20174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20175 conftest.$ac_objext conftest.beam conftest.$ac_ext
20181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
20182 $as_echo "$ac_cv_type_long_long_int" >&6; }
20183 if test $ac_cv_type_long_long_int = yes; then
20185 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
20194 gl_cv_c_multiarch=no
20195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20196 /* end confdefs.h. */
20197 #ifndef __APPLE_CC__
20198 not a universal capable compiler
20199 #endif
20200 typedef int dummy;
20202 _ACEOF
20203 if ac_fn_c_try_compile "$LINENO"; then :
20205 arch=
20206 prev=
20207 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
20208 if test -n "$prev"; then
20209 case $word in
20210 i?86 | x86_64 | ppc | ppc64)
20211 if test -z "$arch" || test "$arch" = "$word"; then
20212 arch="$word"
20213 else
20214 gl_cv_c_multiarch=yes
20217 esac
20218 prev=
20219 else
20220 if test "x$word" = "x-arch"; then
20221 prev=arch
20224 done
20227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20228 if test $gl_cv_c_multiarch = yes; then
20229 APPLE_UNIVERSAL_BUILD=1
20230 else
20231 APPLE_UNIVERSAL_BUILD=0
20238 if test $ac_cv_type_long_long_int = yes; then
20239 HAVE_LONG_LONG_INT=1
20240 else
20241 HAVE_LONG_LONG_INT=0
20245 if test $ac_cv_type_unsigned_long_long_int = yes; then
20246 HAVE_UNSIGNED_LONG_LONG_INT=1
20247 else
20248 HAVE_UNSIGNED_LONG_LONG_INT=0
20253 if test $ac_cv_header_wchar_h = yes; then
20254 HAVE_WCHAR_H=1
20255 else
20256 HAVE_WCHAR_H=0
20260 if test $ac_cv_header_inttypes_h = yes; then
20261 HAVE_INTTYPES_H=1
20262 else
20263 HAVE_INTTYPES_H=0
20267 if test $ac_cv_header_sys_types_h = yes; then
20268 HAVE_SYS_TYPES_H=1
20269 else
20270 HAVE_SYS_TYPES_H=0
20283 if test $gl_cv_have_include_next = yes; then
20284 gl_cv_next_stdint_h='<'stdint.h'>'
20285 else
20286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
20287 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
20288 if test "${gl_cv_next_stdint_h+set}" = set; then :
20289 $as_echo_n "(cached) " >&6
20290 else
20292 if test $ac_cv_header_stdint_h = yes; then
20295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20296 /* end confdefs.h. */
20297 #include <stdint.h>
20299 _ACEOF
20300 case "$host_os" in
20301 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20302 *) gl_absname_cpp="$ac_cpp" ;;
20303 esac
20305 case "$host_os" in
20306 mingw*)
20307 gl_dirsep_regex='[/\\]'
20310 gl_dirsep_regex='\/'
20312 esac
20313 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20315 gl_header_literal_regex=`echo 'stdint.h' \
20316 | sed -e "$gl_make_literal_regex_sed"`
20317 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20318 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20319 s|^/[^/]|//&|
20323 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20324 sed -n "$gl_absolute_header_sed"`'"'
20325 else
20326 gl_cv_next_stdint_h='<'stdint.h'>'
20331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
20332 $as_echo "$gl_cv_next_stdint_h" >&6; }
20334 NEXT_STDINT_H=$gl_cv_next_stdint_h
20336 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20337 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20338 gl_next_as_first_directive='<'stdint.h'>'
20339 else
20340 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20341 gl_next_as_first_directive=$gl_cv_next_stdint_h
20343 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
20348 if test $ac_cv_header_stdint_h = yes; then
20349 HAVE_STDINT_H=1
20350 else
20351 HAVE_STDINT_H=0
20355 if test $ac_cv_header_stdint_h = yes; then
20356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
20357 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
20358 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
20359 $as_echo_n "(cached) " >&6
20360 else
20361 gl_cv_header_working_stdint_h=no
20362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20363 /* end confdefs.h. */
20366 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20367 #include <stdint.h>
20368 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
20369 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
20370 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
20371 #endif
20374 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20375 included before <wchar.h>. */
20376 #include <stddef.h>
20377 #include <signal.h>
20378 #if HAVE_WCHAR_H
20379 # include <stdio.h>
20380 # include <time.h>
20381 # include <wchar.h>
20382 #endif
20385 #ifdef INT8_MAX
20386 int8_t a1 = INT8_MAX;
20387 int8_t a1min = INT8_MIN;
20388 #endif
20389 #ifdef INT16_MAX
20390 int16_t a2 = INT16_MAX;
20391 int16_t a2min = INT16_MIN;
20392 #endif
20393 #ifdef INT32_MAX
20394 int32_t a3 = INT32_MAX;
20395 int32_t a3min = INT32_MIN;
20396 #endif
20397 #ifdef INT64_MAX
20398 int64_t a4 = INT64_MAX;
20399 int64_t a4min = INT64_MIN;
20400 #endif
20401 #ifdef UINT8_MAX
20402 uint8_t b1 = UINT8_MAX;
20403 #else
20404 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
20405 #endif
20406 #ifdef UINT16_MAX
20407 uint16_t b2 = UINT16_MAX;
20408 #endif
20409 #ifdef UINT32_MAX
20410 uint32_t b3 = UINT32_MAX;
20411 #endif
20412 #ifdef UINT64_MAX
20413 uint64_t b4 = UINT64_MAX;
20414 #endif
20415 int_least8_t c1 = INT8_C (0x7f);
20416 int_least8_t c1max = INT_LEAST8_MAX;
20417 int_least8_t c1min = INT_LEAST8_MIN;
20418 int_least16_t c2 = INT16_C (0x7fff);
20419 int_least16_t c2max = INT_LEAST16_MAX;
20420 int_least16_t c2min = INT_LEAST16_MIN;
20421 int_least32_t c3 = INT32_C (0x7fffffff);
20422 int_least32_t c3max = INT_LEAST32_MAX;
20423 int_least32_t c3min = INT_LEAST32_MIN;
20424 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
20425 int_least64_t c4max = INT_LEAST64_MAX;
20426 int_least64_t c4min = INT_LEAST64_MIN;
20427 uint_least8_t d1 = UINT8_C (0xff);
20428 uint_least8_t d1max = UINT_LEAST8_MAX;
20429 uint_least16_t d2 = UINT16_C (0xffff);
20430 uint_least16_t d2max = UINT_LEAST16_MAX;
20431 uint_least32_t d3 = UINT32_C (0xffffffff);
20432 uint_least32_t d3max = UINT_LEAST32_MAX;
20433 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
20434 uint_least64_t d4max = UINT_LEAST64_MAX;
20435 int_fast8_t e1 = INT_FAST8_MAX;
20436 int_fast8_t e1min = INT_FAST8_MIN;
20437 int_fast16_t e2 = INT_FAST16_MAX;
20438 int_fast16_t e2min = INT_FAST16_MIN;
20439 int_fast32_t e3 = INT_FAST32_MAX;
20440 int_fast32_t e3min = INT_FAST32_MIN;
20441 int_fast64_t e4 = INT_FAST64_MAX;
20442 int_fast64_t e4min = INT_FAST64_MIN;
20443 uint_fast8_t f1 = UINT_FAST8_MAX;
20444 uint_fast16_t f2 = UINT_FAST16_MAX;
20445 uint_fast32_t f3 = UINT_FAST32_MAX;
20446 uint_fast64_t f4 = UINT_FAST64_MAX;
20447 #ifdef INTPTR_MAX
20448 intptr_t g = INTPTR_MAX;
20449 intptr_t gmin = INTPTR_MIN;
20450 #endif
20451 #ifdef UINTPTR_MAX
20452 uintptr_t h = UINTPTR_MAX;
20453 #endif
20454 intmax_t i = INTMAX_MAX;
20455 uintmax_t j = UINTMAX_MAX;
20457 #include <limits.h> /* for CHAR_BIT */
20458 #define TYPE_MINIMUM(t) \
20459 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
20460 #define TYPE_MAXIMUM(t) \
20461 ((t) ((t) 0 < (t) -1 \
20462 ? (t) -1 \
20463 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
20464 struct s {
20465 int check_PTRDIFF:
20466 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
20467 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
20468 ? 1 : -1;
20469 /* Detect bug in FreeBSD 6.0 / ia64. */
20470 int check_SIG_ATOMIC:
20471 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
20472 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
20473 ? 1 : -1;
20474 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
20475 int check_WCHAR:
20476 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
20477 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
20478 ? 1 : -1;
20479 /* Detect bug in mingw. */
20480 int check_WINT:
20481 WINT_MIN == TYPE_MINIMUM (wint_t)
20482 && WINT_MAX == TYPE_MAXIMUM (wint_t)
20483 ? 1 : -1;
20485 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
20486 int check_UINT8_C:
20487 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
20488 int check_UINT16_C:
20489 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
20491 /* Detect bugs in OpenBSD 3.9 stdint.h. */
20492 #ifdef UINT8_MAX
20493 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
20494 #endif
20495 #ifdef UINT16_MAX
20496 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
20497 #endif
20498 #ifdef UINT32_MAX
20499 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
20500 #endif
20501 #ifdef UINT64_MAX
20502 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
20503 #endif
20504 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
20505 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
20506 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
20507 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
20508 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
20509 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
20510 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
20511 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
20512 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
20513 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
20514 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
20518 main ()
20522 return 0;
20524 _ACEOF
20525 if ac_fn_c_try_compile "$LINENO"; then :
20526 if test "$cross_compiling" = yes; then :
20527 gl_cv_header_working_stdint_h=yes
20529 else
20530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20531 /* end confdefs.h. */
20534 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20535 #include <stdint.h>
20538 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20539 included before <wchar.h>. */
20540 #include <stddef.h>
20541 #include <signal.h>
20542 #if HAVE_WCHAR_H
20543 # include <stdio.h>
20544 # include <time.h>
20545 # include <wchar.h>
20546 #endif
20549 #include <stdio.h>
20550 #include <string.h>
20551 #define MVAL(macro) MVAL1(macro)
20552 #define MVAL1(expression) #expression
20553 static const char *macro_values[] =
20555 #ifdef INT8_MAX
20556 MVAL (INT8_MAX),
20557 #endif
20558 #ifdef INT16_MAX
20559 MVAL (INT16_MAX),
20560 #endif
20561 #ifdef INT32_MAX
20562 MVAL (INT32_MAX),
20563 #endif
20564 #ifdef INT64_MAX
20565 MVAL (INT64_MAX),
20566 #endif
20567 #ifdef UINT8_MAX
20568 MVAL (UINT8_MAX),
20569 #endif
20570 #ifdef UINT16_MAX
20571 MVAL (UINT16_MAX),
20572 #endif
20573 #ifdef UINT32_MAX
20574 MVAL (UINT32_MAX),
20575 #endif
20576 #ifdef UINT64_MAX
20577 MVAL (UINT64_MAX),
20578 #endif
20579 NULL
20583 main ()
20586 const char **mv;
20587 for (mv = macro_values; *mv != NULL; mv++)
20589 const char *value = *mv;
20590 /* Test whether it looks like a cast expression. */
20591 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
20592 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
20593 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
20594 || strncmp (value, "((int)"/*)*/, 6) == 0
20595 || strncmp (value, "((signed short)"/*)*/, 15) == 0
20596 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
20597 return mv - macro_values + 1;
20599 return 0;
20602 return 0;
20604 _ACEOF
20605 if ac_fn_c_try_run "$LINENO"; then :
20606 gl_cv_header_working_stdint_h=yes
20608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20609 conftest.$ac_objext conftest.beam conftest.$ac_ext
20614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
20618 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
20620 if test "$gl_cv_header_working_stdint_h" = yes; then
20621 STDINT_H=
20622 else
20623 for ac_header in sys/inttypes.h sys/bitypes.h
20624 do :
20625 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20626 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20627 eval as_val=\$$as_ac_Header
20628 if test "x$as_val" = x""yes; then :
20629 cat >>confdefs.h <<_ACEOF
20630 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20631 _ACEOF
20635 done
20637 if test $ac_cv_header_sys_inttypes_h = yes; then
20638 HAVE_SYS_INTTYPES_H=1
20639 else
20640 HAVE_SYS_INTTYPES_H=0
20643 if test $ac_cv_header_sys_bitypes_h = yes; then
20644 HAVE_SYS_BITYPES_H=1
20645 else
20646 HAVE_SYS_BITYPES_H=0
20652 if test $APPLE_UNIVERSAL_BUILD = 0; then
20655 for gltype in ptrdiff_t size_t ; do
20656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20657 $as_echo_n "checking for bit size of $gltype... " >&6; }
20658 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20659 $as_echo_n "(cached) " >&6
20660 else
20661 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20662 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20663 included before <wchar.h>. */
20664 #include <stddef.h>
20665 #include <signal.h>
20666 #if HAVE_WCHAR_H
20667 # include <stdio.h>
20668 # include <time.h>
20669 # include <wchar.h>
20670 #endif
20672 #include <limits.h>"; then :
20674 else
20675 result=unknown
20678 eval gl_cv_bitsizeof_${gltype}=\$result
20681 eval ac_res=\$gl_cv_bitsizeof_${gltype}
20682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20683 $as_echo "$ac_res" >&6; }
20684 eval result=\$gl_cv_bitsizeof_${gltype}
20685 if test $result = unknown; then
20686 result=0
20688 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20689 cat >>confdefs.h <<_ACEOF
20690 #define BITSIZEOF_${GLTYPE} $result
20691 _ACEOF
20693 eval BITSIZEOF_${GLTYPE}=\$result
20694 done
20700 for gltype in sig_atomic_t wchar_t wint_t ; do
20701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20702 $as_echo_n "checking for bit size of $gltype... " >&6; }
20703 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20704 $as_echo_n "(cached) " >&6
20705 else
20706 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20707 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20708 included before <wchar.h>. */
20709 #include <stddef.h>
20710 #include <signal.h>
20711 #if HAVE_WCHAR_H
20712 # include <stdio.h>
20713 # include <time.h>
20714 # include <wchar.h>
20715 #endif
20717 #include <limits.h>"; then :
20719 else
20720 result=unknown
20723 eval gl_cv_bitsizeof_${gltype}=\$result
20726 eval ac_res=\$gl_cv_bitsizeof_${gltype}
20727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20728 $as_echo "$ac_res" >&6; }
20729 eval result=\$gl_cv_bitsizeof_${gltype}
20730 if test $result = unknown; then
20731 result=0
20733 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20734 cat >>confdefs.h <<_ACEOF
20735 #define BITSIZEOF_${GLTYPE} $result
20736 _ACEOF
20738 eval BITSIZEOF_${GLTYPE}=\$result
20739 done
20744 for gltype in sig_atomic_t wchar_t wint_t ; do
20745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
20746 $as_echo_n "checking whether $gltype is signed... " >&6; }
20747 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
20748 $as_echo_n "(cached) " >&6
20749 else
20750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20751 /* end confdefs.h. */
20753 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20754 included before <wchar.h>. */
20755 #include <stddef.h>
20756 #include <signal.h>
20757 #if HAVE_WCHAR_H
20758 # include <stdio.h>
20759 # include <time.h>
20760 # include <wchar.h>
20761 #endif
20763 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
20765 main ()
20769 return 0;
20771 _ACEOF
20772 if ac_fn_c_try_compile "$LINENO"; then :
20773 result=yes
20774 else
20775 result=no
20777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20778 eval gl_cv_type_${gltype}_signed=\$result
20781 eval ac_res=\$gl_cv_type_${gltype}_signed
20782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20783 $as_echo "$ac_res" >&6; }
20784 eval result=\$gl_cv_type_${gltype}_signed
20785 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20786 if test "$result" = yes; then
20787 cat >>confdefs.h <<_ACEOF
20788 #define HAVE_SIGNED_${GLTYPE} 1
20789 _ACEOF
20791 eval HAVE_SIGNED_${GLTYPE}=1
20792 else
20793 eval HAVE_SIGNED_${GLTYPE}=0
20795 done
20798 gl_cv_type_ptrdiff_t_signed=yes
20799 gl_cv_type_size_t_signed=no
20800 if test $APPLE_UNIVERSAL_BUILD = 0; then
20803 for gltype in ptrdiff_t size_t ; do
20804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20805 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20806 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20807 $as_echo_n "(cached) " >&6
20808 else
20809 eval gl_cv_type_${gltype}_suffix=no
20810 eval result=\$gl_cv_type_${gltype}_signed
20811 if test "$result" = yes; then
20812 glsufu=
20813 else
20814 glsufu=u
20816 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
20817 case $glsuf in
20818 '') gltype1='int';;
20819 l) gltype1='long int';;
20820 ll) gltype1='long long int';;
20821 i64) gltype1='__int64';;
20822 u) gltype1='unsigned int';;
20823 ul) gltype1='unsigned long int';;
20824 ull) gltype1='unsigned long long int';;
20825 ui64)gltype1='unsigned __int64';;
20826 esac
20827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20828 /* end confdefs.h. */
20830 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20831 included before <wchar.h>. */
20832 #include <stddef.h>
20833 #include <signal.h>
20834 #if HAVE_WCHAR_H
20835 # include <stdio.h>
20836 # include <time.h>
20837 # include <wchar.h>
20838 #endif
20840 extern $gltype foo;
20841 extern $gltype1 foo;
20843 main ()
20847 return 0;
20849 _ACEOF
20850 if ac_fn_c_try_compile "$LINENO"; then :
20851 eval gl_cv_type_${gltype}_suffix=\$glsuf
20853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20854 eval result=\$gl_cv_type_${gltype}_suffix
20855 test "$result" != no && break
20856 done
20858 eval ac_res=\$gl_cv_type_${gltype}_suffix
20859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20860 $as_echo "$ac_res" >&6; }
20861 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20862 eval result=\$gl_cv_type_${gltype}_suffix
20863 test "$result" = no && result=
20864 eval ${GLTYPE}_SUFFIX=\$result
20865 cat >>confdefs.h <<_ACEOF
20866 #define ${GLTYPE}_SUFFIX $result
20867 _ACEOF
20869 done
20875 for gltype in sig_atomic_t wchar_t wint_t ; do
20876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20877 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20878 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20879 $as_echo_n "(cached) " >&6
20880 else
20881 eval gl_cv_type_${gltype}_suffix=no
20882 eval result=\$gl_cv_type_${gltype}_signed
20883 if test "$result" = yes; then
20884 glsufu=
20885 else
20886 glsufu=u
20888 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
20889 case $glsuf in
20890 '') gltype1='int';;
20891 l) gltype1='long int';;
20892 ll) gltype1='long long int';;
20893 i64) gltype1='__int64';;
20894 u) gltype1='unsigned int';;
20895 ul) gltype1='unsigned long int';;
20896 ull) gltype1='unsigned long long int';;
20897 ui64)gltype1='unsigned __int64';;
20898 esac
20899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20900 /* end confdefs.h. */
20902 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20903 included before <wchar.h>. */
20904 #include <stddef.h>
20905 #include <signal.h>
20906 #if HAVE_WCHAR_H
20907 # include <stdio.h>
20908 # include <time.h>
20909 # include <wchar.h>
20910 #endif
20912 extern $gltype foo;
20913 extern $gltype1 foo;
20915 main ()
20919 return 0;
20921 _ACEOF
20922 if ac_fn_c_try_compile "$LINENO"; then :
20923 eval gl_cv_type_${gltype}_suffix=\$glsuf
20925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20926 eval result=\$gl_cv_type_${gltype}_suffix
20927 test "$result" != no && break
20928 done
20930 eval ac_res=\$gl_cv_type_${gltype}_suffix
20931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20932 $as_echo "$ac_res" >&6; }
20933 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20934 eval result=\$gl_cv_type_${gltype}_suffix
20935 test "$result" = no && result=
20936 eval ${GLTYPE}_SUFFIX=\$result
20937 cat >>confdefs.h <<_ACEOF
20938 #define ${GLTYPE}_SUFFIX $result
20939 _ACEOF
20941 done
20945 if test $BITSIZEOF_WINT_T -lt 32; then
20946 BITSIZEOF_WINT_T=32
20949 STDINT_H=stdint.h
20952 if test -n "$STDINT_H"; then
20953 GL_GENERATE_STDINT_H_TRUE=
20954 GL_GENERATE_STDINT_H_FALSE='#'
20955 else
20956 GL_GENERATE_STDINT_H_TRUE='#'
20957 GL_GENERATE_STDINT_H_FALSE=
20964 GNULIB_IMAXABS=0;
20965 GNULIB_IMAXDIV=0;
20966 GNULIB_STRTOIMAX=0;
20967 GNULIB_STRTOUMAX=0;
20968 HAVE_DECL_IMAXABS=1;
20969 HAVE_DECL_IMAXDIV=1;
20970 HAVE_DECL_STRTOIMAX=1;
20971 HAVE_DECL_STRTOUMAX=1;
20972 REPLACE_STRTOIMAX=0;
20973 REPLACE_STRTOUMAX=0;
20974 INT32_MAX_LT_INTMAX_MAX=1;
20975 INT64_MAX_EQ_LONG_MAX='defined _LP64';
20976 PRI_MACROS_BROKEN=0;
20977 PRIPTR_PREFIX=__PRIPTR_PREFIX;
20978 UINT32_MAX_LT_UINTMAX_MAX=1;
20979 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
20995 if test $gl_cv_have_include_next = yes; then
20996 gl_cv_next_inttypes_h='<'inttypes.h'>'
20997 else
20998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
20999 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
21000 if test "${gl_cv_next_inttypes_h+set}" = set; then :
21001 $as_echo_n "(cached) " >&6
21002 else
21004 if test $ac_cv_header_inttypes_h = yes; then
21007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21008 /* end confdefs.h. */
21009 #include <inttypes.h>
21011 _ACEOF
21012 case "$host_os" in
21013 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21014 *) gl_absname_cpp="$ac_cpp" ;;
21015 esac
21017 case "$host_os" in
21018 mingw*)
21019 gl_dirsep_regex='[/\\]'
21022 gl_dirsep_regex='\/'
21024 esac
21025 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21027 gl_header_literal_regex=`echo 'inttypes.h' \
21028 | sed -e "$gl_make_literal_regex_sed"`
21029 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21030 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21031 s|^/[^/]|//&|
21035 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21036 sed -n "$gl_absolute_header_sed"`'"'
21037 else
21038 gl_cv_next_inttypes_h='<'inttypes.h'>'
21043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
21044 $as_echo "$gl_cv_next_inttypes_h" >&6; }
21046 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
21048 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21049 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21050 gl_next_as_first_directive='<'inttypes.h'>'
21051 else
21052 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21053 gl_next_as_first_directive=$gl_cv_next_inttypes_h
21055 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
21067 case "$host_os" in
21068 mingw*)
21069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
21070 $as_echo_n "checking for 64-bit off_t... " >&6; }
21071 if test "${gl_cv_type_off_t_64+set}" = set; then :
21072 $as_echo_n "(cached) " >&6
21073 else
21074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21075 /* end confdefs.h. */
21076 #include <sys/types.h>
21077 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
21080 main ()
21084 return 0;
21086 _ACEOF
21087 if ac_fn_c_try_compile "$LINENO"; then :
21088 gl_cv_type_off_t_64=yes
21089 else
21090 gl_cv_type_off_t_64=no
21092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
21096 $as_echo "$gl_cv_type_off_t_64" >&6; }
21097 if test $gl_cv_type_off_t_64 = no; then
21098 WINDOWS_64_BIT_OFF_T=1
21099 else
21100 WINDOWS_64_BIT_OFF_T=0
21102 WINDOWS_64_BIT_ST_SIZE=1
21105 WINDOWS_64_BIT_OFF_T=0
21106 WINDOWS_64_BIT_ST_SIZE=0
21108 esac
21113 GNULIB_FFSL=0;
21114 GNULIB_FFSLL=0;
21115 GNULIB_MEMCHR=0;
21116 GNULIB_MEMMEM=0;
21117 GNULIB_MEMPCPY=0;
21118 GNULIB_MEMRCHR=0;
21119 GNULIB_RAWMEMCHR=0;
21120 GNULIB_STPCPY=0;
21121 GNULIB_STPNCPY=0;
21122 GNULIB_STRCHRNUL=0;
21123 GNULIB_STRDUP=0;
21124 GNULIB_STRNCAT=0;
21125 GNULIB_STRNDUP=0;
21126 GNULIB_STRNLEN=0;
21127 GNULIB_STRPBRK=0;
21128 GNULIB_STRSEP=0;
21129 GNULIB_STRSTR=0;
21130 GNULIB_STRCASESTR=0;
21131 GNULIB_STRTOK_R=0;
21132 GNULIB_MBSLEN=0;
21133 GNULIB_MBSNLEN=0;
21134 GNULIB_MBSCHR=0;
21135 GNULIB_MBSRCHR=0;
21136 GNULIB_MBSSTR=0;
21137 GNULIB_MBSCASECMP=0;
21138 GNULIB_MBSNCASECMP=0;
21139 GNULIB_MBSPCASECMP=0;
21140 GNULIB_MBSCASESTR=0;
21141 GNULIB_MBSCSPN=0;
21142 GNULIB_MBSPBRK=0;
21143 GNULIB_MBSSPN=0;
21144 GNULIB_MBSSEP=0;
21145 GNULIB_MBSTOK_R=0;
21146 GNULIB_STRERROR=0;
21147 GNULIB_STRERROR_R=0;
21148 GNULIB_STRSIGNAL=0;
21149 GNULIB_STRVERSCMP=0;
21150 HAVE_MBSLEN=0;
21151 HAVE_FFSL=1;
21152 HAVE_FFSLL=1;
21153 HAVE_MEMCHR=1;
21154 HAVE_DECL_MEMMEM=1;
21155 HAVE_MEMPCPY=1;
21156 HAVE_DECL_MEMRCHR=1;
21157 HAVE_RAWMEMCHR=1;
21158 HAVE_STPCPY=1;
21159 HAVE_STPNCPY=1;
21160 HAVE_STRCHRNUL=1;
21161 HAVE_DECL_STRDUP=1;
21162 HAVE_DECL_STRNDUP=1;
21163 HAVE_DECL_STRNLEN=1;
21164 HAVE_STRPBRK=1;
21165 HAVE_STRSEP=1;
21166 HAVE_STRCASESTR=1;
21167 HAVE_DECL_STRTOK_R=1;
21168 HAVE_DECL_STRERROR_R=1;
21169 HAVE_DECL_STRSIGNAL=1;
21170 HAVE_STRVERSCMP=1;
21171 REPLACE_MEMCHR=0;
21172 REPLACE_MEMMEM=0;
21173 REPLACE_STPNCPY=0;
21174 REPLACE_STRDUP=0;
21175 REPLACE_STRSTR=0;
21176 REPLACE_STRCASESTR=0;
21177 REPLACE_STRCHRNUL=0;
21178 REPLACE_STRERROR=0;
21179 REPLACE_STRERROR_R=0;
21180 REPLACE_STRNCAT=0;
21181 REPLACE_STRNDUP=0;
21182 REPLACE_STRNLEN=0;
21183 REPLACE_STRSIGNAL=0;
21184 REPLACE_STRTOK_R=0;
21185 UNDEFINE_STRTOK_R=0;
21187 ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
21188 if test "x$ac_cv_have_decl_memrchr" = x""yes; then :
21189 ac_have_decl=1
21190 else
21191 ac_have_decl=0
21194 cat >>confdefs.h <<_ACEOF
21195 #define HAVE_DECL_MEMRCHR $ac_have_decl
21196 _ACEOF
21201 GNULIB_MKTIME=0;
21202 GNULIB_NANOSLEEP=0;
21203 GNULIB_STRPTIME=0;
21204 GNULIB_TIMEGM=0;
21205 GNULIB_TIME_R=0;
21206 HAVE_DECL_LOCALTIME_R=1;
21207 HAVE_NANOSLEEP=1;
21208 HAVE_STRPTIME=1;
21209 HAVE_TIMEGM=1;
21210 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
21211 REPLACE_MKTIME=GNULIB_PORTCHECK;
21212 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
21213 REPLACE_TIMEGM=GNULIB_PORTCHECK;
21215 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
21216 if test "x$ac_cv_have_decl_alarm" = x""yes; then :
21217 ac_have_decl=1
21218 else
21219 ac_have_decl=0
21222 cat >>confdefs.h <<_ACEOF
21223 #define HAVE_DECL_ALARM $ac_have_decl
21224 _ACEOF
21229 GNULIB_PSELECT=0;
21230 GNULIB_SELECT=0;
21231 HAVE_PSELECT=1;
21232 REPLACE_PSELECT=0;
21233 REPLACE_SELECT=0;
21240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
21241 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
21242 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
21243 $as_echo_n "(cached) " >&6
21244 else
21246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21247 /* end confdefs.h. */
21248 #include <sys/select.h>
21250 main ()
21252 struct timeval b;
21254 return 0;
21256 _ACEOF
21257 if ac_fn_c_try_compile "$LINENO"; then :
21258 gl_cv_header_sys_select_h_selfcontained=yes
21259 else
21260 gl_cv_header_sys_select_h_selfcontained=no
21262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21263 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
21264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21265 /* end confdefs.h. */
21266 #include <sys/select.h>
21268 main ()
21270 int memset; int bzero;
21272 return 0;
21275 _ACEOF
21276 if ac_fn_c_try_compile "$LINENO"; then :
21277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21278 /* end confdefs.h. */
21279 #include <sys/select.h>
21281 main ()
21284 #undef memset
21285 #define memset nonexistent_memset
21286 extern
21287 #ifdef __cplusplus
21289 #endif
21290 void *memset (void *, int, unsigned long);
21291 #undef bzero
21292 #define bzero nonexistent_bzero
21293 extern
21294 #ifdef __cplusplus
21296 #endif
21297 void bzero (void *, unsigned long);
21298 fd_set fds;
21299 FD_ZERO (&fds);
21302 return 0;
21305 _ACEOF
21306 if ac_fn_c_try_link "$LINENO"; then :
21308 else
21309 gl_cv_header_sys_select_h_selfcontained=no
21311 rm -f core conftest.err conftest.$ac_objext \
21312 conftest$ac_exeext conftest.$ac_ext
21315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
21320 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
21330 if test $gl_cv_have_include_next = yes; then
21331 gl_cv_next_sys_select_h='<'sys/select.h'>'
21332 else
21333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
21334 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
21335 if test "${gl_cv_next_sys_select_h+set}" = set; then :
21336 $as_echo_n "(cached) " >&6
21337 else
21339 if test $ac_cv_header_sys_select_h = yes; then
21342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21343 /* end confdefs.h. */
21344 #include <sys/select.h>
21346 _ACEOF
21347 case "$host_os" in
21348 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21349 *) gl_absname_cpp="$ac_cpp" ;;
21350 esac
21352 case "$host_os" in
21353 mingw*)
21354 gl_dirsep_regex='[/\\]'
21357 gl_dirsep_regex='\/'
21359 esac
21360 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21362 gl_header_literal_regex=`echo 'sys/select.h' \
21363 | sed -e "$gl_make_literal_regex_sed"`
21364 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21365 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21366 s|^/[^/]|//&|
21370 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21371 sed -n "$gl_absolute_header_sed"`'"'
21372 else
21373 gl_cv_next_sys_select_h='<'sys/select.h'>'
21378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
21379 $as_echo "$gl_cv_next_sys_select_h" >&6; }
21381 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
21383 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21384 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21385 gl_next_as_first_directive='<'sys/select.h'>'
21386 else
21387 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21388 gl_next_as_first_directive=$gl_cv_next_sys_select_h
21390 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
21395 if test $ac_cv_header_sys_select_h = yes; then
21396 HAVE_SYS_SELECT_H=1
21397 else
21398 HAVE_SYS_SELECT_H=0
21405 if test $ac_cv_header_sys_socket_h != yes; then
21406 for ac_header in winsock2.h
21407 do :
21408 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21409 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
21410 cat >>confdefs.h <<_ACEOF
21411 #define HAVE_WINSOCK2_H 1
21412 _ACEOF
21416 done
21419 if test "$ac_cv_header_winsock2_h" = yes; then
21420 HAVE_WINSOCK2_H=1
21421 UNISTD_H_HAVE_WINSOCK2_H=1
21422 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
21423 else
21424 HAVE_WINSOCK2_H=0
21434 GNULIB_PTHREAD_SIGMASK=0;
21435 GNULIB_RAISE=0;
21436 GNULIB_SIGNAL_H_SIGPIPE=0;
21437 GNULIB_SIGPROCMASK=0;
21438 GNULIB_SIGACTION=0;
21439 HAVE_POSIX_SIGNALBLOCKING=1;
21440 HAVE_PTHREAD_SIGMASK=1;
21441 HAVE_RAISE=1;
21442 HAVE_SIGSET_T=1;
21443 HAVE_SIGINFO_T=1;
21444 HAVE_SIGACTION=1;
21445 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
21447 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
21449 HAVE_SIGHANDLER_T=1;
21450 REPLACE_PTHREAD_SIGMASK=0;
21451 REPLACE_RAISE=0;
21459 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
21460 #include <signal.h>
21461 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
21462 #include <sys/types.h>
21465 if test "x$ac_cv_type_sigset_t" = x""yes; then :
21467 cat >>confdefs.h <<_ACEOF
21468 #define HAVE_SIGSET_T 1
21469 _ACEOF
21471 gl_cv_type_sigset_t=yes
21472 else
21473 gl_cv_type_sigset_t=no
21476 if test $gl_cv_type_sigset_t != yes; then
21477 HAVE_SIGSET_T=0
21482 if test $ac_cv_header_sys_socket_h = no; then
21483 for ac_header in ws2tcpip.h
21484 do :
21485 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
21486 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
21487 cat >>confdefs.h <<_ACEOF
21488 #define HAVE_WS2TCPIP_H 1
21489 _ACEOF
21493 done
21497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
21498 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
21499 if test "${ac_cv_header_stdbool_h+set}" = set; then :
21500 $as_echo_n "(cached) " >&6
21501 else
21502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21503 /* end confdefs.h. */
21505 #include <stdbool.h>
21506 #ifndef bool
21507 "error: bool is not defined"
21508 #endif
21509 #ifndef false
21510 "error: false is not defined"
21511 #endif
21512 #if false
21513 "error: false is not 0"
21514 #endif
21515 #ifndef true
21516 "error: true is not defined"
21517 #endif
21518 #if true != 1
21519 "error: true is not 1"
21520 #endif
21521 #ifndef __bool_true_false_are_defined
21522 "error: __bool_true_false_are_defined is not defined"
21523 #endif
21525 struct s { _Bool s: 1; _Bool t; } s;
21527 char a[true == 1 ? 1 : -1];
21528 char b[false == 0 ? 1 : -1];
21529 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21530 char d[(bool) 0.5 == true ? 1 : -1];
21531 /* See body of main program for 'e'. */
21532 char f[(_Bool) 0.0 == false ? 1 : -1];
21533 char g[true];
21534 char h[sizeof (_Bool)];
21535 char i[sizeof s.t];
21536 enum { j = false, k = true, l = false * true, m = true * 256 };
21537 /* The following fails for
21538 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21539 _Bool n[m];
21540 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21541 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21542 /* Catch a bug in an HP-UX C compiler. See
21543 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21544 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21546 _Bool q = true;
21547 _Bool *pq = &q;
21550 main ()
21553 bool e = &s;
21554 *pq |= q;
21555 *pq |= ! q;
21556 /* Refer to every declared value, to avoid compiler optimizations. */
21557 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21558 + !m + !n + !o + !p + !q + !pq);
21561 return 0;
21563 _ACEOF
21564 if ac_fn_c_try_compile "$LINENO"; then :
21565 ac_cv_header_stdbool_h=yes
21566 else
21567 ac_cv_header_stdbool_h=no
21569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21572 $as_echo "$ac_cv_header_stdbool_h" >&6; }
21573 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21574 if test "x$ac_cv_type__Bool" = x""yes; then :
21576 cat >>confdefs.h <<_ACEOF
21577 #define HAVE__BOOL 1
21578 _ACEOF
21585 REPLACE_NULL=0;
21586 HAVE_WCHAR_T=1;
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
21590 $as_echo_n "checking for wchar_t... " >&6; }
21591 if test "${gt_cv_c_wchar_t+set}" = set; then :
21592 $as_echo_n "(cached) " >&6
21593 else
21594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21595 /* end confdefs.h. */
21596 #include <stddef.h>
21597 wchar_t foo = (wchar_t)'\0';
21599 main ()
21603 return 0;
21605 _ACEOF
21606 if ac_fn_c_try_compile "$LINENO"; then :
21607 gt_cv_c_wchar_t=yes
21608 else
21609 gt_cv_c_wchar_t=no
21611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
21614 $as_echo "$gt_cv_c_wchar_t" >&6; }
21615 if test $gt_cv_c_wchar_t = yes; then
21617 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
21622 GNULIB_DPRINTF=0;
21623 GNULIB_FCLOSE=0;
21624 GNULIB_FDOPEN=0;
21625 GNULIB_FFLUSH=0;
21626 GNULIB_FGETC=0;
21627 GNULIB_FGETS=0;
21628 GNULIB_FOPEN=0;
21629 GNULIB_FPRINTF=0;
21630 GNULIB_FPRINTF_POSIX=0;
21631 GNULIB_FPURGE=0;
21632 GNULIB_FPUTC=0;
21633 GNULIB_FPUTS=0;
21634 GNULIB_FREAD=0;
21635 GNULIB_FREOPEN=0;
21636 GNULIB_FSCANF=0;
21637 GNULIB_FSEEK=0;
21638 GNULIB_FSEEKO=0;
21639 GNULIB_FTELL=0;
21640 GNULIB_FTELLO=0;
21641 GNULIB_FWRITE=0;
21642 GNULIB_GETC=0;
21643 GNULIB_GETCHAR=0;
21644 GNULIB_GETDELIM=0;
21645 GNULIB_GETLINE=0;
21646 GNULIB_OBSTACK_PRINTF=0;
21647 GNULIB_OBSTACK_PRINTF_POSIX=0;
21648 GNULIB_PCLOSE=0;
21649 GNULIB_PERROR=0;
21650 GNULIB_POPEN=0;
21651 GNULIB_PRINTF=0;
21652 GNULIB_PRINTF_POSIX=0;
21653 GNULIB_PUTC=0;
21654 GNULIB_PUTCHAR=0;
21655 GNULIB_PUTS=0;
21656 GNULIB_REMOVE=0;
21657 GNULIB_RENAME=0;
21658 GNULIB_RENAMEAT=0;
21659 GNULIB_SCANF=0;
21660 GNULIB_SNPRINTF=0;
21661 GNULIB_SPRINTF_POSIX=0;
21662 GNULIB_STDIO_H_NONBLOCKING=0;
21663 GNULIB_STDIO_H_SIGPIPE=0;
21664 GNULIB_TMPFILE=0;
21665 GNULIB_VASPRINTF=0;
21666 GNULIB_VFSCANF=0;
21667 GNULIB_VSCANF=0;
21668 GNULIB_VDPRINTF=0;
21669 GNULIB_VFPRINTF=0;
21670 GNULIB_VFPRINTF_POSIX=0;
21671 GNULIB_VPRINTF=0;
21672 GNULIB_VPRINTF_POSIX=0;
21673 GNULIB_VSNPRINTF=0;
21674 GNULIB_VSPRINTF_POSIX=0;
21675 HAVE_DECL_FPURGE=1;
21676 HAVE_DECL_FSEEKO=1;
21677 HAVE_DECL_FTELLO=1;
21678 HAVE_DECL_GETDELIM=1;
21679 HAVE_DECL_GETLINE=1;
21680 HAVE_DECL_OBSTACK_PRINTF=1;
21681 HAVE_DECL_SNPRINTF=1;
21682 HAVE_DECL_VSNPRINTF=1;
21683 HAVE_DPRINTF=1;
21684 HAVE_FSEEKO=1;
21685 HAVE_FTELLO=1;
21686 HAVE_PCLOSE=1;
21687 HAVE_POPEN=1;
21688 HAVE_RENAMEAT=1;
21689 HAVE_VASPRINTF=1;
21690 HAVE_VDPRINTF=1;
21691 REPLACE_DPRINTF=0;
21692 REPLACE_FCLOSE=0;
21693 REPLACE_FDOPEN=0;
21694 REPLACE_FFLUSH=0;
21695 REPLACE_FOPEN=0;
21696 REPLACE_FPRINTF=0;
21697 REPLACE_FPURGE=0;
21698 REPLACE_FREOPEN=0;
21699 REPLACE_FSEEK=0;
21700 REPLACE_FSEEKO=0;
21701 REPLACE_FTELL=0;
21702 REPLACE_FTELLO=0;
21703 REPLACE_GETDELIM=0;
21704 REPLACE_GETLINE=0;
21705 REPLACE_OBSTACK_PRINTF=0;
21706 REPLACE_PERROR=0;
21707 REPLACE_POPEN=0;
21708 REPLACE_PRINTF=0;
21709 REPLACE_REMOVE=0;
21710 REPLACE_RENAME=0;
21711 REPLACE_RENAMEAT=0;
21712 REPLACE_SNPRINTF=0;
21713 REPLACE_SPRINTF=0;
21714 REPLACE_STDIO_READ_FUNCS=0;
21715 REPLACE_STDIO_WRITE_FUNCS=0;
21716 REPLACE_TMPFILE=0;
21717 REPLACE_VASPRINTF=0;
21718 REPLACE_VDPRINTF=0;
21719 REPLACE_VFPRINTF=0;
21720 REPLACE_VPRINTF=0;
21721 REPLACE_VSNPRINTF=0;
21722 REPLACE_VSPRINTF=0;
21724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21725 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21726 if test "${ac_cv_struct_tm+set}" = set; then :
21727 $as_echo_n "(cached) " >&6
21728 else
21729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21730 /* end confdefs.h. */
21731 #include <sys/types.h>
21732 #include <time.h>
21735 main ()
21737 struct tm tm;
21738 int *p = &tm.tm_sec;
21739 return !p;
21741 return 0;
21743 _ACEOF
21744 if ac_fn_c_try_compile "$LINENO"; then :
21745 ac_cv_struct_tm=time.h
21746 else
21747 ac_cv_struct_tm=sys/time.h
21749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21752 $as_echo "$ac_cv_struct_tm" >&6; }
21753 if test $ac_cv_struct_tm = sys/time.h; then
21755 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21759 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21760 #include <$ac_cv_struct_tm>
21763 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21765 cat >>confdefs.h <<_ACEOF
21766 #define HAVE_STRUCT_TM_TM_ZONE 1
21767 _ACEOF
21772 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21774 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21776 else
21777 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21779 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21780 ac_have_decl=1
21781 else
21782 ac_have_decl=0
21785 cat >>confdefs.h <<_ACEOF
21786 #define HAVE_DECL_TZNAME $ac_have_decl
21787 _ACEOF
21789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21790 $as_echo_n "checking for tzname... " >&6; }
21791 if test "${ac_cv_var_tzname+set}" = set; then :
21792 $as_echo_n "(cached) " >&6
21793 else
21794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21795 /* end confdefs.h. */
21796 #include <time.h>
21797 #if !HAVE_DECL_TZNAME
21798 extern char *tzname[];
21799 #endif
21802 main ()
21804 return tzname[0][0];
21806 return 0;
21808 _ACEOF
21809 if ac_fn_c_try_link "$LINENO"; then :
21810 ac_cv_var_tzname=yes
21811 else
21812 ac_cv_var_tzname=no
21814 rm -f core conftest.err conftest.$ac_objext \
21815 conftest$ac_exeext conftest.$ac_ext
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21818 $as_echo "$ac_cv_var_tzname" >&6; }
21819 if test $ac_cv_var_tzname = yes; then
21821 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21827 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
21829 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
21831 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
21847 if test $gl_cv_have_include_next = yes; then
21848 gl_cv_next_string_h='<'string.h'>'
21849 else
21850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
21851 $as_echo_n "checking absolute name of <string.h>... " >&6; }
21852 if test "${gl_cv_next_string_h+set}" = set; then :
21853 $as_echo_n "(cached) " >&6
21854 else
21856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21857 /* end confdefs.h. */
21858 #include <string.h>
21860 _ACEOF
21861 case "$host_os" in
21862 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21863 *) gl_absname_cpp="$ac_cpp" ;;
21864 esac
21866 case "$host_os" in
21867 mingw*)
21868 gl_dirsep_regex='[/\\]'
21871 gl_dirsep_regex='\/'
21873 esac
21874 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21876 gl_header_literal_regex=`echo 'string.h' \
21877 | sed -e "$gl_make_literal_regex_sed"`
21878 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21879 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21880 s|^/[^/]|//&|
21884 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21885 sed -n "$gl_absolute_header_sed"`'"'
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
21890 $as_echo "$gl_cv_next_string_h" >&6; }
21892 NEXT_STRING_H=$gl_cv_next_string_h
21894 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21895 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21896 gl_next_as_first_directive='<'string.h'>'
21897 else
21898 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21899 gl_next_as_first_directive=$gl_cv_next_string_h
21901 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
21911 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
21912 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
21913 ac_have_decl=1
21914 else
21915 ac_have_decl=0
21918 cat >>confdefs.h <<_ACEOF
21919 #define HAVE_DECL_STRTOIMAX $ac_have_decl
21920 _ACEOF
21924 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
21925 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
21926 ac_have_decl=1
21927 else
21928 ac_have_decl=0
21931 cat >>confdefs.h <<_ACEOF
21932 #define HAVE_DECL_STRTOUMAX $ac_have_decl
21933 _ACEOF
21937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21938 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21939 if test "${ac_cv_header_stat_broken+set}" = set; then :
21940 $as_echo_n "(cached) " >&6
21941 else
21942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21943 /* end confdefs.h. */
21944 #include <sys/types.h>
21945 #include <sys/stat.h>
21947 #if defined S_ISBLK && defined S_IFDIR
21948 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21949 #endif
21951 #if defined S_ISBLK && defined S_IFCHR
21952 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21953 #endif
21955 #if defined S_ISLNK && defined S_IFREG
21956 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21957 #endif
21959 #if defined S_ISSOCK && defined S_IFREG
21960 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21961 #endif
21963 _ACEOF
21964 if ac_fn_c_try_compile "$LINENO"; then :
21965 ac_cv_header_stat_broken=no
21966 else
21967 ac_cv_header_stat_broken=yes
21969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21972 $as_echo "$ac_cv_header_stat_broken" >&6; }
21973 if test $ac_cv_header_stat_broken = yes; then
21975 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
21984 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
21985 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
21986 $as_echo_n "(cached) " >&6
21987 else
21988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21989 /* end confdefs.h. */
21990 #include <time.h>
21993 main ()
21995 static struct timespec x; x.tv_sec = x.tv_nsec;
21997 return 0;
21999 _ACEOF
22000 if ac_fn_c_try_compile "$LINENO"; then :
22001 gl_cv_sys_struct_timespec_in_time_h=yes
22002 else
22003 gl_cv_sys_struct_timespec_in_time_h=no
22005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
22008 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
22010 TIME_H_DEFINES_STRUCT_TIMESPEC=0
22011 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
22012 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
22013 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
22014 TIME_H_DEFINES_STRUCT_TIMESPEC=1
22015 else
22016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
22017 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
22018 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
22019 $as_echo_n "(cached) " >&6
22020 else
22021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22022 /* end confdefs.h. */
22023 #include <sys/time.h>
22026 main ()
22028 static struct timespec x; x.tv_sec = x.tv_nsec;
22030 return 0;
22032 _ACEOF
22033 if ac_fn_c_try_compile "$LINENO"; then :
22034 gl_cv_sys_struct_timespec_in_sys_time_h=yes
22035 else
22036 gl_cv_sys_struct_timespec_in_sys_time_h=no
22038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
22041 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
22042 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
22043 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
22044 else
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
22046 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
22047 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
22048 $as_echo_n "(cached) " >&6
22049 else
22050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22051 /* end confdefs.h. */
22052 #include <pthread.h>
22055 main ()
22057 static struct timespec x; x.tv_sec = x.tv_nsec;
22059 return 0;
22061 _ACEOF
22062 if ac_fn_c_try_compile "$LINENO"; then :
22063 gl_cv_sys_struct_timespec_in_pthread_h=yes
22064 else
22065 gl_cv_sys_struct_timespec_in_pthread_h=no
22067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
22070 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
22071 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
22072 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
22091 if test $gl_cv_have_include_next = yes; then
22092 gl_cv_next_time_h='<'time.h'>'
22093 else
22094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
22095 $as_echo_n "checking absolute name of <time.h>... " >&6; }
22096 if test "${gl_cv_next_time_h+set}" = set; then :
22097 $as_echo_n "(cached) " >&6
22098 else
22100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22101 /* end confdefs.h. */
22102 #include <time.h>
22104 _ACEOF
22105 case "$host_os" in
22106 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22107 *) gl_absname_cpp="$ac_cpp" ;;
22108 esac
22110 case "$host_os" in
22111 mingw*)
22112 gl_dirsep_regex='[/\\]'
22115 gl_dirsep_regex='\/'
22117 esac
22118 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22120 gl_header_literal_regex=`echo 'time.h' \
22121 | sed -e "$gl_make_literal_regex_sed"`
22122 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22123 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22124 s|^/[^/]|//&|
22128 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22129 sed -n "$gl_absolute_header_sed"`'"'
22133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
22134 $as_echo "$gl_cv_next_time_h" >&6; }
22136 NEXT_TIME_H=$gl_cv_next_time_h
22138 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22139 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22140 gl_next_as_first_directive='<'time.h'>'
22141 else
22142 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22143 gl_next_as_first_directive=$gl_cv_next_time_h
22145 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
22160 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
22161 if test "x$ac_cv_have_decl_unsetenv" = x""yes; then :
22162 ac_have_decl=1
22163 else
22164 ac_have_decl=0
22167 cat >>confdefs.h <<_ACEOF
22168 #define HAVE_DECL_UNSETENV $ac_have_decl
22169 _ACEOF
22172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
22173 $as_echo_n "checking whether the utimes function works... " >&6; }
22174 if test "${gl_cv_func_working_utimes+set}" = set; then :
22175 $as_echo_n "(cached) " >&6
22176 else
22178 if test "$cross_compiling" = yes; then :
22179 gl_cv_func_working_utimes=no
22180 else
22181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22182 /* end confdefs.h. */
22184 #include <sys/types.h>
22185 #include <sys/stat.h>
22186 #include <fcntl.h>
22187 #include <sys/time.h>
22188 #include <time.h>
22189 #include <unistd.h>
22190 #include <stdlib.h>
22191 #include <stdio.h>
22192 #include <utime.h>
22194 static int
22195 inorder (time_t a, time_t b, time_t c)
22197 return a <= b && b <= c;
22201 main ()
22203 int result = 0;
22204 char const *file = "conftest.utimes";
22205 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
22207 /* Test whether utimes() essentially works. */
22209 struct stat sbuf;
22210 FILE *f = fopen (file, "w");
22211 if (f == NULL)
22212 result |= 1;
22213 else if (fclose (f) != 0)
22214 result |= 1;
22215 else if (utimes (file, timeval) != 0)
22216 result |= 2;
22217 else if (lstat (file, &sbuf) != 0)
22218 result |= 1;
22219 else if (!(sbuf.st_atime == timeval[0].tv_sec
22220 && sbuf.st_mtime == timeval[1].tv_sec))
22221 result |= 4;
22222 if (unlink (file) != 0)
22223 result |= 1;
22226 /* Test whether utimes() with a NULL argument sets the file's timestamp
22227 to the current time. Use 'fstat' as well as 'time' to
22228 determine the "current" time, to accommodate NFS file systems
22229 if there is a time skew between the host and the NFS server. */
22231 int fd = open (file, O_WRONLY|O_CREAT, 0644);
22232 if (fd < 0)
22233 result |= 1;
22234 else
22236 time_t t0, t2;
22237 struct stat st0, st1, st2;
22238 if (time (&t0) == (time_t) -1)
22239 result |= 1;
22240 else if (fstat (fd, &st0) != 0)
22241 result |= 1;
22242 else if (utimes (file, timeval) != 0)
22243 result |= 2;
22244 else if (utimes (file, NULL) != 0)
22245 result |= 8;
22246 else if (fstat (fd, &st1) != 0)
22247 result |= 1;
22248 else if (write (fd, "\n", 1) != 1)
22249 result |= 1;
22250 else if (fstat (fd, &st2) != 0)
22251 result |= 1;
22252 else if (time (&t2) == (time_t) -1)
22253 result |= 1;
22254 else
22256 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
22257 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
22258 if (! (st1.st_atime == st1.st_mtime))
22259 result |= 16;
22260 if (! (m_ok_POSIX || m_ok_NFS))
22261 result |= 32;
22263 if (close (fd) != 0)
22264 result |= 1;
22266 if (unlink (file) != 0)
22267 result |= 1;
22270 /* Test whether utimes() with a NULL argument works on read-only files. */
22272 int fd = open (file, O_WRONLY|O_CREAT, 0444);
22273 if (fd < 0)
22274 result |= 1;
22275 else if (close (fd) != 0)
22276 result |= 1;
22277 else if (utimes (file, NULL) != 0)
22278 result |= 64;
22279 if (unlink (file) != 0)
22280 result |= 1;
22283 return result;
22286 _ACEOF
22287 if ac_fn_c_try_run "$LINENO"; then :
22288 gl_cv_func_working_utimes=yes
22289 else
22290 gl_cv_func_working_utimes=no
22292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22293 conftest.$ac_objext conftest.beam conftest.$ac_ext
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
22298 $as_echo "$gl_cv_func_working_utimes" >&6; }
22300 if test $gl_cv_func_working_utimes = yes; then
22302 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
22310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
22311 $as_echo_n "checking for struct utimbuf... " >&6; }
22312 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
22313 $as_echo_n "(cached) " >&6
22314 else
22315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22316 /* end confdefs.h. */
22317 #if HAVE_SYS_TIME_H
22318 #include <sys/time.h>
22319 #endif
22320 #include <time.h>
22321 #ifdef HAVE_UTIME_H
22322 #include <utime.h>
22323 #endif
22326 main ()
22328 static struct utimbuf x; x.actime = x.modtime;
22330 return 0;
22332 _ACEOF
22333 if ac_fn_c_try_compile "$LINENO"; then :
22334 gl_cv_sys_struct_utimbuf=yes
22335 else
22336 gl_cv_sys_struct_utimbuf=no
22338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
22341 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
22343 if test $gl_cv_sys_struct_utimbuf = yes; then
22345 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
22359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
22360 $as_echo_n "checking type of array argument to getgroups... " >&6; }
22361 if test "${ac_cv_type_getgroups+set}" = set; then :
22362 $as_echo_n "(cached) " >&6
22363 else
22364 if test "$cross_compiling" = yes; then :
22365 ac_cv_type_getgroups=cross
22366 else
22367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22368 /* end confdefs.h. */
22369 /* Thanks to Mike Rendell for this test. */
22370 $ac_includes_default
22371 #define NGID 256
22372 #undef MAX
22373 #define MAX(x, y) ((x) > (y) ? (x) : (y))
22376 main ()
22378 gid_t gidset[NGID];
22379 int i, n;
22380 union { gid_t gval; long int lval; } val;
22382 val.lval = -1;
22383 for (i = 0; i < NGID; i++)
22384 gidset[i] = val.gval;
22385 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
22386 gidset);
22387 /* Exit non-zero if getgroups seems to require an array of ints. This
22388 happens when gid_t is short int but getgroups modifies an array
22389 of ints. */
22390 return n > 0 && gidset[n] != val.gval;
22392 _ACEOF
22393 if ac_fn_c_try_run "$LINENO"; then :
22394 ac_cv_type_getgroups=gid_t
22395 else
22396 ac_cv_type_getgroups=int
22398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22399 conftest.$ac_objext conftest.beam conftest.$ac_ext
22402 if test $ac_cv_type_getgroups = cross; then
22403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22404 /* end confdefs.h. */
22405 #include <unistd.h>
22407 _ACEOF
22408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22409 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
22410 ac_cv_type_getgroups=gid_t
22411 else
22412 ac_cv_type_getgroups=int
22414 rm -f conftest*
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
22419 $as_echo "$ac_cv_type_getgroups" >&6; }
22421 cat >>confdefs.h <<_ACEOF
22422 #define GETGROUPS_T $ac_cv_type_getgroups
22423 _ACEOF
22432 if false; then
22433 GL_COND_LIBTOOL_TRUE=
22434 GL_COND_LIBTOOL_FALSE='#'
22435 else
22436 GL_COND_LIBTOOL_TRUE='#'
22437 GL_COND_LIBTOOL_FALSE=
22440 gl_cond_libtool=false
22441 gl_libdeps=
22442 gl_ltlibdeps=
22443 gl_m4_base='m4'
22453 gl_source_base='lib'
22456 if test $ac_cv_func_alloca_works = no; then
22460 # Define an additional variable used in the Makefile substitution.
22461 if test $ac_cv_working_alloca_h = yes; then
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
22463 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
22464 if test "${gl_cv_rpl_alloca+set}" = set; then :
22465 $as_echo_n "(cached) " >&6
22466 else
22468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22469 /* end confdefs.h. */
22471 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
22472 Need own alloca
22473 #endif
22475 _ACEOF
22476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22477 $EGREP "Need own alloca" >/dev/null 2>&1; then :
22478 gl_cv_rpl_alloca=yes
22479 else
22480 gl_cv_rpl_alloca=no
22482 rm -f conftest*
22486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
22487 $as_echo "$gl_cv_rpl_alloca" >&6; }
22488 if test $gl_cv_rpl_alloca = yes; then
22490 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
22492 ALLOCA_H=alloca.h
22493 else
22494 ALLOCA_H=
22496 else
22497 ALLOCA_H=alloca.h
22500 if test -n "$ALLOCA_H"; then
22501 GL_GENERATE_ALLOCA_H_TRUE=
22502 GL_GENERATE_ALLOCA_H_FALSE='#'
22503 else
22504 GL_GENERATE_ALLOCA_H_TRUE='#'
22505 GL_GENERATE_ALLOCA_H_FALSE=
22510 for ac_header in byteswap.h
22511 do :
22512 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
22513 if test "x$ac_cv_header_byteswap_h" = x""yes; then :
22514 cat >>confdefs.h <<_ACEOF
22515 #define HAVE_BYTESWAP_H 1
22516 _ACEOF
22518 BYTESWAP_H=''
22520 else
22522 BYTESWAP_H='byteswap.h'
22526 done
22529 if test -n "$BYTESWAP_H"; then
22530 GL_GENERATE_BYTESWAP_H_TRUE=
22531 GL_GENERATE_BYTESWAP_H_FALSE='#'
22532 else
22533 GL_GENERATE_BYTESWAP_H_TRUE='#'
22534 GL_GENERATE_BYTESWAP_H_FALSE=
22542 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
22543 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
22545 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
22546 # programs in the package would end up linked with that potentially-shared
22547 # library, inducing unnecessary run-time overhead.
22548 LIB_CLOCK_GETTIME=
22550 gl_saved_libs=$LIBS
22551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
22552 $as_echo_n "checking for library containing clock_gettime... " >&6; }
22553 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22554 $as_echo_n "(cached) " >&6
22555 else
22556 ac_func_search_save_LIBS=$LIBS
22557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22558 /* end confdefs.h. */
22560 /* Override any GCC internal prototype to avoid an error.
22561 Use char because int might match the return type of a GCC
22562 builtin and then its argument prototype would still apply. */
22563 #ifdef __cplusplus
22564 extern "C"
22565 #endif
22566 char clock_gettime ();
22568 main ()
22570 return clock_gettime ();
22572 return 0;
22574 _ACEOF
22575 for ac_lib in '' rt posix4; do
22576 if test -z "$ac_lib"; then
22577 ac_res="none required"
22578 else
22579 ac_res=-l$ac_lib
22580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22582 if ac_fn_c_try_link "$LINENO"; then :
22583 ac_cv_search_clock_gettime=$ac_res
22585 rm -f core conftest.err conftest.$ac_objext \
22586 conftest$ac_exeext
22587 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22588 break
22590 done
22591 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22593 else
22594 ac_cv_search_clock_gettime=no
22596 rm conftest.$ac_ext
22597 LIBS=$ac_func_search_save_LIBS
22599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
22600 $as_echo "$ac_cv_search_clock_gettime" >&6; }
22601 ac_res=$ac_cv_search_clock_gettime
22602 if test "$ac_res" != no; then :
22603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22604 test "$ac_cv_search_clock_gettime" = "none required" ||
22605 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
22608 for ac_func in clock_gettime clock_settime
22609 do :
22610 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22611 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22612 eval as_val=\$$as_ac_var
22613 if test "x$as_val" = x""yes; then :
22614 cat >>confdefs.h <<_ACEOF
22615 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22616 _ACEOF
22619 done
22621 LIBS=$gl_saved_libs
22628 cat >>confdefs.h <<_ACEOF
22629 #define GNULIB_CLOSE_STREAM 1
22630 _ACEOF
22667 if test $gl_cv_have_include_next = yes; then
22668 gl_cv_next_dirent_h='<'dirent.h'>'
22669 else
22670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
22671 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
22672 if test "${gl_cv_next_dirent_h+set}" = set; then :
22673 $as_echo_n "(cached) " >&6
22674 else
22676 if test $ac_cv_header_dirent_h = yes; then
22679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22680 /* end confdefs.h. */
22681 #include <dirent.h>
22683 _ACEOF
22684 case "$host_os" in
22685 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22686 *) gl_absname_cpp="$ac_cpp" ;;
22687 esac
22689 case "$host_os" in
22690 mingw*)
22691 gl_dirsep_regex='[/\\]'
22694 gl_dirsep_regex='\/'
22696 esac
22697 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22699 gl_header_literal_regex=`echo 'dirent.h' \
22700 | sed -e "$gl_make_literal_regex_sed"`
22701 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22702 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22703 s|^/[^/]|//&|
22707 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22708 sed -n "$gl_absolute_header_sed"`'"'
22709 else
22710 gl_cv_next_dirent_h='<'dirent.h'>'
22715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
22716 $as_echo "$gl_cv_next_dirent_h" >&6; }
22718 NEXT_DIRENT_H=$gl_cv_next_dirent_h
22720 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22721 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22722 gl_next_as_first_directive='<'dirent.h'>'
22723 else
22724 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22725 gl_next_as_first_directive=$gl_cv_next_dirent_h
22727 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
22732 if test $ac_cv_header_dirent_h = yes; then
22733 HAVE_DIRENT_H=1
22734 else
22735 HAVE_DIRENT_H=0
22747 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
22750 if test $HAVE_DUP2 = 1; then
22751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
22752 $as_echo_n "checking whether dup2 works... " >&6; }
22753 if test "${gl_cv_func_dup2_works+set}" = set; then :
22754 $as_echo_n "(cached) " >&6
22755 else
22756 if test "$cross_compiling" = yes; then :
22757 case "$host_os" in
22758 mingw*) # on this platform, dup2 always returns 0 for success
22759 gl_cv_func_dup2_works="guessing no" ;;
22760 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
22761 gl_cv_func_dup2_works="guessing no" ;;
22762 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
22763 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
22764 gl_cv_func_dup2_works="guessing no" ;;
22765 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
22766 gl_cv_func_dup2_works="guessing no" ;;
22767 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
22768 gl_cv_func_dup2_works="guessing no" ;;
22769 *) gl_cv_func_dup2_works="guessing yes" ;;
22770 esac
22771 else
22772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22773 /* end confdefs.h. */
22775 #include <unistd.h>
22776 #include <fcntl.h>
22777 #include <errno.h>
22779 main ()
22781 int result = 0;
22782 #ifdef FD_CLOEXEC
22783 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
22784 result |= 1;
22785 #endif
22786 if (dup2 (1, 1) == 0)
22787 result |= 2;
22788 #ifdef FD_CLOEXEC
22789 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
22790 result |= 4;
22791 #endif
22792 close (0);
22793 if (dup2 (0, 0) != -1)
22794 result |= 8;
22795 /* Many gnulib modules require POSIX conformance of EBADF. */
22796 if (dup2 (2, 1000000) == -1 && errno != EBADF)
22797 result |= 16;
22798 /* Flush out some cygwin core dumps. */
22799 if (dup2 (2, -1) != -1 || errno != EBADF)
22800 result |= 32;
22801 dup2 (2, 255);
22802 dup2 (2, 256);
22803 return result;
22806 return 0;
22809 _ACEOF
22810 if ac_fn_c_try_run "$LINENO"; then :
22811 gl_cv_func_dup2_works=yes
22812 else
22813 gl_cv_func_dup2_works=no
22815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22816 conftest.$ac_objext conftest.beam conftest.$ac_ext
22821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
22822 $as_echo "$gl_cv_func_dup2_works" >&6; }
22823 case "$gl_cv_func_dup2_works" in
22824 *yes) ;;
22826 REPLACE_DUP2=1
22827 for ac_func in setdtablesize
22828 do :
22829 ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
22830 if test "x$ac_cv_func_setdtablesize" = x""yes; then :
22831 cat >>confdefs.h <<_ACEOF
22832 #define HAVE_SETDTABLESIZE 1
22833 _ACEOF
22836 done
22839 esac
22843 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
22852 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
22861 GNULIB_DUP2=1
22873 GNULIB_ENVIRON=1
22883 LIB_EXECINFO=''
22884 EXECINFO_H='execinfo.h'
22886 if test $ac_cv_header_execinfo_h = yes; then
22887 gl_saved_libs=$LIBS
22888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
22889 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
22890 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22891 $as_echo_n "(cached) " >&6
22892 else
22893 ac_func_search_save_LIBS=$LIBS
22894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22895 /* end confdefs.h. */
22897 /* Override any GCC internal prototype to avoid an error.
22898 Use char because int might match the return type of a GCC
22899 builtin and then its argument prototype would still apply. */
22900 #ifdef __cplusplus
22901 extern "C"
22902 #endif
22903 char backtrace_symbols_fd ();
22905 main ()
22907 return backtrace_symbols_fd ();
22909 return 0;
22911 _ACEOF
22912 for ac_lib in '' execinfo; do
22913 if test -z "$ac_lib"; then
22914 ac_res="none required"
22915 else
22916 ac_res=-l$ac_lib
22917 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22919 if ac_fn_c_try_link "$LINENO"; then :
22920 ac_cv_search_backtrace_symbols_fd=$ac_res
22922 rm -f core conftest.err conftest.$ac_objext \
22923 conftest$ac_exeext
22924 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22925 break
22927 done
22928 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22930 else
22931 ac_cv_search_backtrace_symbols_fd=no
22933 rm conftest.$ac_ext
22934 LIBS=$ac_func_search_save_LIBS
22936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
22937 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
22938 ac_res=$ac_cv_search_backtrace_symbols_fd
22939 if test "$ac_res" != no; then :
22940 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22941 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
22942 LIB_EXECINFO=$ac_cv_search_backtrace_symbols_fd
22945 LIBS=$gl_saved_libs
22946 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H=''
22949 if test -n "$EXECINFO_H"; then
22958 gl_LIBOBJS="$gl_LIBOBJS execinfo.$ac_objext"
22964 if test -n "$EXECINFO_H"; then
22965 GL_GENERATE_EXECINFO_H_TRUE=
22966 GL_GENERATE_EXECINFO_H_FALSE='#'
22967 else
22968 GL_GENERATE_EXECINFO_H_TRUE='#'
22969 GL_GENERATE_EXECINFO_H_FALSE=
22980 if test $ac_cv_func_faccessat = no; then
22981 HAVE_FACCESSAT=0
22984 if test $HAVE_FACCESSAT = 0; then
22993 gl_LIBOBJS="$gl_LIBOBJS faccessat.$ac_objext"
22996 for ac_func in access
22997 do :
22998 ac_fn_c_check_func "$LINENO" "access" "ac_cv_func_access"
22999 if test "x$ac_cv_func_access" = x""yes; then :
23000 cat >>confdefs.h <<_ACEOF
23001 #define HAVE_ACCESS 1
23002 _ACEOF
23005 done
23011 cat >>confdefs.h <<_ACEOF
23012 #define GNULIB_FACCESSAT 1
23013 _ACEOF
23021 GNULIB_FACCESSAT=1
23032 if test $ac_cv_func_fcntl = no; then
23036 if test $ac_cv_func_fcntl = no; then
23037 HAVE_FCNTL=0
23038 else
23039 REPLACE_FCNTL=1
23042 else
23043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
23044 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
23045 if test "${gl_cv_func_fcntl_f_dupfd_works+set}" = set; then :
23046 $as_echo_n "(cached) " >&6
23047 else
23048 if test "$cross_compiling" = yes; then :
23049 # Guess that it works on glibc systems
23050 case $host_os in #((
23051 *-gnu*) gl_cv_func_fcntl_f_dupfd_works="guessing yes";;
23052 *) gl_cv_func_fcntl_f_dupfd_works="guessing no";;
23053 esac
23054 else
23055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23056 /* end confdefs.h. */
23058 #include <fcntl.h>
23059 #include <errno.h>
23062 main ()
23064 int result = 0;
23065 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
23066 if (errno != EINVAL) result |= 2;
23067 return result;
23070 return 0;
23072 _ACEOF
23073 if ac_fn_c_try_run "$LINENO"; then :
23074 gl_cv_func_fcntl_f_dupfd_works=yes
23075 else
23076 gl_cv_func_fcntl_f_dupfd_works=no
23078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23079 conftest.$ac_objext conftest.beam conftest.$ac_ext
23083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
23084 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
23085 case $gl_cv_func_fcntl_f_dupfd_works in
23086 *yes) ;;
23090 if test $ac_cv_func_fcntl = no; then
23091 HAVE_FCNTL=0
23092 else
23093 REPLACE_FCNTL=1
23097 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
23099 esac
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
23102 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
23103 if test "${gl_cv_func_fcntl_f_dupfd_cloexec+set}" = set; then :
23104 $as_echo_n "(cached) " >&6
23105 else
23106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23107 /* end confdefs.h. */
23109 #include <fcntl.h>
23110 #ifndef F_DUPFD_CLOEXEC
23111 choke me
23112 #endif
23115 main ()
23119 return 0;
23121 _ACEOF
23122 if ac_fn_c_try_compile "$LINENO"; then :
23123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23124 /* end confdefs.h. */
23126 #ifdef __linux__
23127 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
23128 it to support the semantics on older kernels that failed with EINVAL. */
23129 choke me
23130 #endif
23133 main ()
23137 return 0;
23139 _ACEOF
23140 if ac_fn_c_try_compile "$LINENO"; then :
23141 gl_cv_func_fcntl_f_dupfd_cloexec=yes
23142 else
23143 gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
23145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23146 else
23147 gl_cv_func_fcntl_f_dupfd_cloexec=no
23149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
23152 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
23153 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
23157 if test $ac_cv_func_fcntl = no; then
23158 HAVE_FCNTL=0
23159 else
23160 REPLACE_FCNTL=1
23167 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
23176 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
23184 GNULIB_FCNTL=1
23201 if test $gl_cv_have_include_next = yes; then
23202 gl_cv_next_fcntl_h='<'fcntl.h'>'
23203 else
23204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
23205 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
23206 if test "${gl_cv_next_fcntl_h+set}" = set; then :
23207 $as_echo_n "(cached) " >&6
23208 else
23210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23211 /* end confdefs.h. */
23212 #include <fcntl.h>
23214 _ACEOF
23215 case "$host_os" in
23216 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23217 *) gl_absname_cpp="$ac_cpp" ;;
23218 esac
23220 case "$host_os" in
23221 mingw*)
23222 gl_dirsep_regex='[/\\]'
23225 gl_dirsep_regex='\/'
23227 esac
23228 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23230 gl_header_literal_regex=`echo 'fcntl.h' \
23231 | sed -e "$gl_make_literal_regex_sed"`
23232 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23233 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23234 s|^/[^/]|//&|
23238 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23239 sed -n "$gl_absolute_header_sed"`'"'
23243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
23244 $as_echo "$gl_cv_next_fcntl_h" >&6; }
23246 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
23248 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23249 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23250 gl_next_as_first_directive='<'fcntl.h'>'
23251 else
23252 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23253 gl_next_as_first_directive=$gl_cv_next_fcntl_h
23255 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
23271 LIB_FDATASYNC=
23274 if test $ac_cv_have_decl_fdatasync = no; then
23275 HAVE_DECL_FDATASYNC=0
23276 for ac_func in fdatasync
23277 do :
23278 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
23279 if test "x$ac_cv_func_fdatasync" = x""yes; then :
23280 cat >>confdefs.h <<_ACEOF
23281 #define HAVE_FDATASYNC 1
23282 _ACEOF
23285 done
23287 if test $ac_cv_func_fdatasync = no; then
23288 HAVE_FDATASYNC=0
23290 else
23291 gl_saved_libs=$LIBS
23292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
23293 $as_echo_n "checking for library containing fdatasync... " >&6; }
23294 if test "${ac_cv_search_fdatasync+set}" = set; then :
23295 $as_echo_n "(cached) " >&6
23296 else
23297 ac_func_search_save_LIBS=$LIBS
23298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23299 /* end confdefs.h. */
23301 /* Override any GCC internal prototype to avoid an error.
23302 Use char because int might match the return type of a GCC
23303 builtin and then its argument prototype would still apply. */
23304 #ifdef __cplusplus
23305 extern "C"
23306 #endif
23307 char fdatasync ();
23309 main ()
23311 return fdatasync ();
23313 return 0;
23315 _ACEOF
23316 for ac_lib in '' rt posix4; do
23317 if test -z "$ac_lib"; then
23318 ac_res="none required"
23319 else
23320 ac_res=-l$ac_lib
23321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23323 if ac_fn_c_try_link "$LINENO"; then :
23324 ac_cv_search_fdatasync=$ac_res
23326 rm -f core conftest.err conftest.$ac_objext \
23327 conftest$ac_exeext
23328 if test "${ac_cv_search_fdatasync+set}" = set; then :
23329 break
23331 done
23332 if test "${ac_cv_search_fdatasync+set}" = set; then :
23334 else
23335 ac_cv_search_fdatasync=no
23337 rm conftest.$ac_ext
23338 LIBS=$ac_func_search_save_LIBS
23340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
23341 $as_echo "$ac_cv_search_fdatasync" >&6; }
23342 ac_res=$ac_cv_search_fdatasync
23343 if test "$ac_res" != no; then :
23344 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23345 test "$ac_cv_search_fdatasync" = "none required" ||
23346 LIB_FDATASYNC=$ac_cv_search_fdatasync
23349 LIBS=$gl_saved_libs
23352 if test $HAVE_FDATASYNC = 0; then
23361 gl_LIBOBJS="$gl_LIBOBJS fdatasync.$ac_objext"
23369 GNULIB_FDATASYNC=1
23380 ac_fn_c_check_decl "$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
23381 #include <dirent.h>
23384 if test "x$ac_cv_have_decl_fdopendir" = x""yes; then :
23385 ac_have_decl=1
23386 else
23387 ac_have_decl=0
23390 cat >>confdefs.h <<_ACEOF
23391 #define HAVE_DECL_FDOPENDIR $ac_have_decl
23392 _ACEOF
23393 if test $ac_have_decl = 1; then :
23395 else
23396 HAVE_DECL_FDOPENDIR=0
23400 if test $ac_cv_func_fdopendir = no; then
23401 HAVE_FDOPENDIR=0
23402 else
23403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
23404 $as_echo_n "checking whether fdopendir works... " >&6; }
23405 if test "${gl_cv_func_fdopendir_works+set}" = set; then :
23406 $as_echo_n "(cached) " >&6
23407 else
23408 if test "$cross_compiling" = yes; then :
23409 case "$host_os" in
23410 # Guess yes on glibc systems.
23411 *-gnu*) gl_cv_func_fdopendir_works="guessing yes" ;;
23412 # If we don't know, assume the worst.
23413 *) gl_cv_func_fdopendir_works="guessing no" ;;
23414 esac
23416 else
23417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23418 /* end confdefs.h. */
23420 #include <dirent.h>
23421 #include <fcntl.h>
23422 #include <unistd.h>
23423 #if !HAVE_DECL_FDOPENDIR
23424 extern
23425 # ifdef __cplusplus
23427 # endif
23428 DIR *fdopendir (int);
23429 #endif
23432 main ()
23434 int result = 0;
23435 int fd = open ("conftest.c", O_RDONLY);
23436 if (fd < 0) result |= 1;
23437 if (fdopendir (fd)) result |= 2;
23438 if (close (fd)) result |= 4;
23439 return result;
23441 return 0;
23443 _ACEOF
23444 if ac_fn_c_try_run "$LINENO"; then :
23445 gl_cv_func_fdopendir_works=yes
23446 else
23447 gl_cv_func_fdopendir_works=no
23449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23450 conftest.$ac_objext conftest.beam conftest.$ac_ext
23454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
23455 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
23456 case "$gl_cv_func_fdopendir_works" in
23457 *yes) ;;
23459 REPLACE_FDOPENDIR=1
23461 esac
23464 if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
23473 gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
23481 GNULIB_FDOPENDIR=1
23489 cat >>confdefs.h <<_ACEOF
23490 #define GNULIB_FDOPENDIR 1
23491 _ACEOF
23500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpending" >&5
23501 $as_echo_n "checking for __fpending... " >&6; }
23502 if test "${gl_cv_func___fpending+set}" = set; then :
23503 $as_echo_n "(cached) " >&6
23504 else
23506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23507 /* end confdefs.h. */
23508 #include <stdio.h>
23509 #if HAVE_STDIO_EXT_H
23510 # include <stdio_ext.h>
23511 #endif
23514 main ()
23516 return ! __fpending (stdin);
23518 return 0;
23520 _ACEOF
23521 if ac_fn_c_try_link "$LINENO"; then :
23522 gl_cv_func___fpending=yes
23523 else
23524 gl_cv_func___fpending=no
23526 rm -f core conftest.err conftest.$ac_objext \
23527 conftest$ac_exeext conftest.$ac_ext
23530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func___fpending" >&5
23531 $as_echo "$gl_cv_func___fpending" >&6; }
23533 if test $gl_cv_func___fpending = no; then
23542 gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
23545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
23546 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
23547 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
23548 $as_echo_n "(cached) " >&6
23549 else
23551 for ac_expr in \
23553 '# glibc2' \
23554 'fp->_IO_write_ptr - fp->_IO_write_base' \
23556 '# traditional Unix' \
23557 'fp->_ptr - fp->_base' \
23559 '# BSD' \
23560 'fp->_p - fp->_bf._base' \
23562 '# SCO, Unixware' \
23563 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
23565 '# QNX' \
23566 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
23568 '# old glibc?' \
23569 'fp->__bufp - fp->__buffer' \
23571 '# old glibc iostream?' \
23572 'fp->_pptr - fp->_pbase' \
23574 '# emx+gcc' \
23575 'fp->_ptr - fp->_buffer' \
23577 '# Minix' \
23578 'fp->_ptr - fp->_buf' \
23580 '# Plan9' \
23581 'fp->wp - fp->buf' \
23583 '# VMS' \
23584 '(*fp)->_ptr - (*fp)->_base' \
23586 '# e.g., DGUX R4.11; the info is not available' \
23588 ; do
23590 # Skip each embedded comment.
23591 case "$ac_expr" in '#'*) continue;; esac
23593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23594 /* end confdefs.h. */
23595 #include <stdio.h>
23597 main ()
23599 FILE *fp = stdin; (void) ($ac_expr);
23601 return 0;
23603 _ACEOF
23604 if ac_fn_c_try_compile "$LINENO"; then :
23605 fp_done=yes
23608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23609 test "$fp_done" = yes && break
23610 done
23612 ac_cv_sys_pending_output_n_bytes=$ac_expr
23616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
23617 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
23619 cat >>confdefs.h <<_ACEOF
23620 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
23621 _ACEOF
23631 if test $ac_cv_func_fstatat = no; then
23632 HAVE_FSTATAT=0
23633 else
23634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
23635 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
23636 if test "${gl_cv_func_fstatat_zero_flag+set}" = set; then :
23637 $as_echo_n "(cached) " >&6
23638 else
23639 if test "$cross_compiling" = yes; then :
23640 case "$host_os" in
23641 aix*) gl_cv_func_fstatat_zero_flag="guessing no";;
23642 *) gl_cv_func_fstatat_zero_flag="guessing yes";;
23643 esac
23645 else
23646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23647 /* end confdefs.h. */
23649 #include <fcntl.h>
23650 #include <sys/stat.h>
23652 main (void)
23654 struct stat a;
23655 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
23658 _ACEOF
23659 if ac_fn_c_try_run "$LINENO"; then :
23660 gl_cv_func_fstatat_zero_flag=yes
23661 else
23662 gl_cv_func_fstatat_zero_flag=no
23664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23665 conftest.$ac_objext conftest.beam conftest.$ac_ext
23670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
23671 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
23673 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
23674 *yes+*yes) ;;
23675 *) REPLACE_FSTATAT=1
23676 case $gl_cv_func_fstatat_zero_flag in
23677 *yes)
23679 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
23682 esac
23684 esac
23687 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
23696 gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
23704 GNULIB_FSTATAT=1
23713 if test $ac_cv_func_fsync = no; then
23714 HAVE_FSYNC=0
23717 if test $HAVE_FSYNC = 0; then
23726 gl_LIBOBJS="$gl_LIBOBJS fsync.$ac_objext"
23735 GNULIB_FSYNC=1
23743 # Persuade glibc <stdlib.h> to declare getloadavg().
23746 gl_save_LIBS=$LIBS
23748 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
23749 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
23750 HAVE_GETLOADAVG=1
23751 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
23752 if test "x$ac_cv_func_getloadavg" = x""yes; then :
23754 else
23755 gl_func_getloadavg_done=no
23757 # Some systems with -lutil have (and need) -lkvm as well, some do not.
23758 # On Solaris, -lkvm requires nlist from -lelf, so check that first
23759 # to get the right answer into the cache.
23760 # For kstat on solaris, we need to test for libelf and libkvm to force the
23761 # definition of SVR4 below.
23762 if test $gl_func_getloadavg_done = no; then
23763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
23764 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
23765 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
23766 $as_echo_n "(cached) " >&6
23767 else
23768 ac_check_lib_save_LIBS=$LIBS
23769 LIBS="-lelf $LIBS"
23770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23771 /* end confdefs.h. */
23773 /* Override any GCC internal prototype to avoid an error.
23774 Use char because int might match the return type of a GCC
23775 builtin and then its argument prototype would still apply. */
23776 #ifdef __cplusplus
23777 extern "C"
23778 #endif
23779 char elf_begin ();
23781 main ()
23783 return elf_begin ();
23785 return 0;
23787 _ACEOF
23788 if ac_fn_c_try_link "$LINENO"; then :
23789 ac_cv_lib_elf_elf_begin=yes
23790 else
23791 ac_cv_lib_elf_elf_begin=no
23793 rm -f core conftest.err conftest.$ac_objext \
23794 conftest$ac_exeext conftest.$ac_ext
23795 LIBS=$ac_check_lib_save_LIBS
23797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
23798 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
23799 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
23800 LIBS="-lelf $LIBS"
23803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
23804 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
23805 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
23806 $as_echo_n "(cached) " >&6
23807 else
23808 ac_check_lib_save_LIBS=$LIBS
23809 LIBS="-lkvm $LIBS"
23810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23811 /* end confdefs.h. */
23813 /* Override any GCC internal prototype to avoid an error.
23814 Use char because int might match the return type of a GCC
23815 builtin and then its argument prototype would still apply. */
23816 #ifdef __cplusplus
23817 extern "C"
23818 #endif
23819 char kvm_open ();
23821 main ()
23823 return kvm_open ();
23825 return 0;
23827 _ACEOF
23828 if ac_fn_c_try_link "$LINENO"; then :
23829 ac_cv_lib_kvm_kvm_open=yes
23830 else
23831 ac_cv_lib_kvm_kvm_open=no
23833 rm -f core conftest.err conftest.$ac_objext \
23834 conftest$ac_exeext conftest.$ac_ext
23835 LIBS=$ac_check_lib_save_LIBS
23837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
23838 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
23839 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
23840 LIBS="-lkvm $LIBS"
23843 # Check for the 4.4BSD definition of getloadavg.
23844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
23845 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
23846 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
23847 $as_echo_n "(cached) " >&6
23848 else
23849 ac_check_lib_save_LIBS=$LIBS
23850 LIBS="-lutil $LIBS"
23851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23852 /* end confdefs.h. */
23854 /* Override any GCC internal prototype to avoid an error.
23855 Use char because int might match the return type of a GCC
23856 builtin and then its argument prototype would still apply. */
23857 #ifdef __cplusplus
23858 extern "C"
23859 #endif
23860 char getloadavg ();
23862 main ()
23864 return getloadavg ();
23866 return 0;
23868 _ACEOF
23869 if ac_fn_c_try_link "$LINENO"; then :
23870 ac_cv_lib_util_getloadavg=yes
23871 else
23872 ac_cv_lib_util_getloadavg=no
23874 rm -f core conftest.err conftest.$ac_objext \
23875 conftest$ac_exeext conftest.$ac_ext
23876 LIBS=$ac_check_lib_save_LIBS
23878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
23879 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
23880 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
23881 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
23886 if test $gl_func_getloadavg_done = no; then
23887 # There is a commonly available library for RS/6000 AIX.
23888 # Since it is not a standard part of AIX, it might be installed locally.
23889 gl_getloadavg_LIBS=$LIBS
23890 LIBS="-L/usr/local/lib $LIBS"
23891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
23892 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
23893 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
23894 $as_echo_n "(cached) " >&6
23895 else
23896 ac_check_lib_save_LIBS=$LIBS
23897 LIBS="-lgetloadavg $LIBS"
23898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23899 /* end confdefs.h. */
23901 /* Override any GCC internal prototype to avoid an error.
23902 Use char because int might match the return type of a GCC
23903 builtin and then its argument prototype would still apply. */
23904 #ifdef __cplusplus
23905 extern "C"
23906 #endif
23907 char getloadavg ();
23909 main ()
23911 return getloadavg ();
23913 return 0;
23915 _ACEOF
23916 if ac_fn_c_try_link "$LINENO"; then :
23917 ac_cv_lib_getloadavg_getloadavg=yes
23918 else
23919 ac_cv_lib_getloadavg_getloadavg=no
23921 rm -f core conftest.err conftest.$ac_objext \
23922 conftest$ac_exeext conftest.$ac_ext
23923 LIBS=$ac_check_lib_save_LIBS
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
23926 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
23927 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
23928 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
23929 else
23930 LIBS=$gl_getloadavg_LIBS
23935 # Set up the replacement function if necessary.
23936 if test $gl_func_getloadavg_done = no; then
23937 HAVE_GETLOADAVG=0
23939 # Solaris has libkstat which does not require root.
23940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
23941 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
23942 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
23943 $as_echo_n "(cached) " >&6
23944 else
23945 ac_check_lib_save_LIBS=$LIBS
23946 LIBS="-lkstat $LIBS"
23947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23948 /* end confdefs.h. */
23950 /* Override any GCC internal prototype to avoid an error.
23951 Use char because int might match the return type of a GCC
23952 builtin and then its argument prototype would still apply. */
23953 #ifdef __cplusplus
23954 extern "C"
23955 #endif
23956 char kstat_open ();
23958 main ()
23960 return kstat_open ();
23962 return 0;
23964 _ACEOF
23965 if ac_fn_c_try_link "$LINENO"; then :
23966 ac_cv_lib_kstat_kstat_open=yes
23967 else
23968 ac_cv_lib_kstat_kstat_open=no
23970 rm -f core conftest.err conftest.$ac_objext \
23971 conftest$ac_exeext conftest.$ac_ext
23972 LIBS=$ac_check_lib_save_LIBS
23974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
23975 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
23976 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
23977 cat >>confdefs.h <<_ACEOF
23978 #define HAVE_LIBKSTAT 1
23979 _ACEOF
23981 LIBS="-lkstat $LIBS"
23985 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
23987 # AIX has libperfstat which does not require root
23988 if test $gl_func_getloadavg_done = no; then
23989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
23990 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
23991 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
23992 $as_echo_n "(cached) " >&6
23993 else
23994 ac_check_lib_save_LIBS=$LIBS
23995 LIBS="-lperfstat $LIBS"
23996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23997 /* end confdefs.h. */
23999 /* Override any GCC internal prototype to avoid an error.
24000 Use char because int might match the return type of a GCC
24001 builtin and then its argument prototype would still apply. */
24002 #ifdef __cplusplus
24003 extern "C"
24004 #endif
24005 char perfstat_cpu_total ();
24007 main ()
24009 return perfstat_cpu_total ();
24011 return 0;
24013 _ACEOF
24014 if ac_fn_c_try_link "$LINENO"; then :
24015 ac_cv_lib_perfstat_perfstat_cpu_total=yes
24016 else
24017 ac_cv_lib_perfstat_perfstat_cpu_total=no
24019 rm -f core conftest.err conftest.$ac_objext \
24020 conftest$ac_exeext conftest.$ac_ext
24021 LIBS=$ac_check_lib_save_LIBS
24023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
24024 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
24025 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
24026 cat >>confdefs.h <<_ACEOF
24027 #define HAVE_LIBPERFSTAT 1
24028 _ACEOF
24030 LIBS="-lperfstat $LIBS"
24034 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
24037 if test $gl_func_getloadavg_done = no; then
24038 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
24039 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
24040 gl_func_getloadavg_done=yes
24042 $as_echo "#define DGUX 1" >>confdefs.h
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
24045 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
24046 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
24047 $as_echo_n "(cached) " >&6
24048 else
24049 ac_check_lib_save_LIBS=$LIBS
24050 LIBS="-ldgc $LIBS"
24051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24052 /* end confdefs.h. */
24054 /* Override any GCC internal prototype to avoid an error.
24055 Use char because int might match the return type of a GCC
24056 builtin and then its argument prototype would still apply. */
24057 #ifdef __cplusplus
24058 extern "C"
24059 #endif
24060 char dg_sys_info ();
24062 main ()
24064 return dg_sys_info ();
24066 return 0;
24068 _ACEOF
24069 if ac_fn_c_try_link "$LINENO"; then :
24070 ac_cv_lib_dgc_dg_sys_info=yes
24071 else
24072 ac_cv_lib_dgc_dg_sys_info=no
24074 rm -f core conftest.err conftest.$ac_objext \
24075 conftest$ac_exeext conftest.$ac_ext
24076 LIBS=$ac_check_lib_save_LIBS
24078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
24079 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
24080 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
24081 cat >>confdefs.h <<_ACEOF
24082 #define HAVE_LIBDGC 1
24083 _ACEOF
24085 LIBS="-ldgc $LIBS"
24097 if test "x$gl_save_LIBS" = x; then
24098 GETLOADAVG_LIBS=$LIBS
24099 else
24100 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
24102 LIBS=$gl_save_LIBS
24105 # Test whether the system declares getloadavg. Solaris has the function
24106 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
24107 for ac_header in sys/loadavg.h
24108 do :
24109 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
24110 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
24111 cat >>confdefs.h <<_ACEOF
24112 #define HAVE_SYS_LOADAVG_H 1
24113 _ACEOF
24117 done
24119 if test $ac_cv_header_sys_loadavg_h = yes; then
24120 HAVE_SYS_LOADAVG_H=1
24121 else
24122 HAVE_SYS_LOADAVG_H=0
24124 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
24125 # include <sys/loadavg.h>
24126 #endif
24127 #include <stdlib.h>
24129 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
24131 else
24132 HAVE_DECL_GETLOADAVG=0
24136 if test $HAVE_GETLOADAVG = 0; then
24145 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
24148 # Figure out what our getloadavg.c needs.
24152 # On HPUX9, an unprivileged user can get load averages this way.
24153 if test $gl_func_getloadavg_done = no; then
24154 for ac_func in pstat_getdynamic
24155 do :
24156 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
24157 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
24158 cat >>confdefs.h <<_ACEOF
24159 #define HAVE_PSTAT_GETDYNAMIC 1
24160 _ACEOF
24161 gl_func_getloadavg_done=yes
24163 done
24167 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
24168 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
24169 # Irix 4.0.5F has the header but not the library.
24170 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
24171 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
24172 gl_func_getloadavg_done=yes
24174 $as_echo "#define SVR4 1" >>confdefs.h
24178 if test $gl_func_getloadavg_done = no; then
24179 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
24180 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
24181 gl_func_getloadavg_done=yes
24183 $as_echo "#define UMAX 1" >>confdefs.h
24186 $as_echo "#define UMAX4_3 1" >>confdefs.h
24193 if test $gl_func_getloadavg_done = no; then
24194 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
24195 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
24196 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
24203 if test $gl_func_getloadavg_done = no; then
24204 for ac_header in mach/mach.h
24205 do :
24206 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
24207 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
24208 cat >>confdefs.h <<_ACEOF
24209 #define HAVE_MACH_MACH_H 1
24210 _ACEOF
24214 done
24218 for ac_header in nlist.h
24219 do :
24220 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
24221 if test "x$ac_cv_header_nlist_h" = x""yes; then :
24222 cat >>confdefs.h <<_ACEOF
24223 #define HAVE_NLIST_H 1
24224 _ACEOF
24225 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
24227 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
24229 cat >>confdefs.h <<_ACEOF
24230 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
24231 _ACEOF
24236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24237 /* end confdefs.h. */
24238 #include <nlist.h>
24240 main ()
24242 struct nlist x;
24243 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
24244 x.n_un.n_name = "";
24245 #else
24246 x.n_name = "";
24247 #endif
24249 return 0;
24251 _ACEOF
24252 if ac_fn_c_try_link "$LINENO"; then :
24254 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
24257 rm -f core conftest.err conftest.$ac_objext \
24258 conftest$ac_exeext conftest.$ac_ext
24262 done
24270 GNULIB_GETLOADAVG=1
24281 if test $REPLACE_GETOPT = 1; then
24290 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
24300 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
24305 GNULIB_GL_UNISTD_H_GETOPT=1
24314 REPLACE_GETOPT=0
24315 if test -n "$gl_replace_getopt"; then
24316 REPLACE_GETOPT=1
24319 if test $REPLACE_GETOPT = 1; then
24321 GETOPT_H=getopt.h
24323 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
24329 if test $REPLACE_GETOPT = 1; then
24338 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
24348 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
24353 GNULIB_GL_UNISTD_H_GETOPT=1
24367 gl_gettimeofday_timezone=void
24368 if test $ac_cv_func_gettimeofday != yes; then
24369 HAVE_GETTIMEOFDAY=0
24370 else
24374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
24375 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
24376 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
24377 $as_echo_n "(cached) " >&6
24378 else
24379 if test "$cross_compiling" = yes; then :
24380 # When cross-compiling:
24381 case "$host_os" in
24382 # Guess all is fine on glibc systems.
24383 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
24384 # If we don't know, assume the worst.
24385 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
24386 esac
24388 else
24389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24390 /* end confdefs.h. */
24391 #include <string.h>
24392 #include <sys/time.h>
24393 #include <time.h>
24394 #include <stdlib.h>
24397 main ()
24400 time_t t = 0;
24401 struct tm *lt;
24402 struct tm saved_lt;
24403 struct timeval tv;
24404 lt = localtime (&t);
24405 saved_lt = *lt;
24406 gettimeofday (&tv, NULL);
24407 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
24410 return 0;
24412 _ACEOF
24413 if ac_fn_c_try_run "$LINENO"; then :
24414 gl_cv_func_gettimeofday_clobber=no
24415 else
24416 gl_cv_func_gettimeofday_clobber=yes
24418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24419 conftest.$ac_objext conftest.beam conftest.$ac_ext
24423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
24424 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
24426 case "$gl_cv_func_gettimeofday_clobber" in
24427 *yes)
24428 REPLACE_GETTIMEOFDAY=1
24431 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
24434 $as_echo "#define localtime rpl_localtime" >>confdefs.h
24438 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
24441 esac
24443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
24444 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
24445 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
24446 $as_echo_n "(cached) " >&6
24447 else
24448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24449 /* end confdefs.h. */
24450 #include <sys/time.h>
24451 struct timeval c;
24452 int gettimeofday (struct timeval *restrict, void *restrict);
24455 main ()
24457 /* glibc uses struct timezone * rather than the POSIX void *
24458 if _GNU_SOURCE is defined. However, since the only portable
24459 use of gettimeofday uses NULL as the second parameter, and
24460 since the glibc definition is actually more typesafe, it is
24461 not worth wrapping this to get a compliant signature. */
24462 int (*f) (struct timeval *restrict, void *restrict)
24463 = gettimeofday;
24464 int x = f (&c, 0);
24465 return !(x | c.tv_sec | c.tv_usec);
24468 return 0;
24470 _ACEOF
24471 if ac_fn_c_try_compile "$LINENO"; then :
24472 gl_cv_func_gettimeofday_posix_signature=yes
24473 else
24474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24475 /* end confdefs.h. */
24476 #include <sys/time.h>
24477 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
24480 main ()
24484 return 0;
24486 _ACEOF
24487 if ac_fn_c_try_compile "$LINENO"; then :
24488 gl_cv_func_gettimeofday_posix_signature=almost
24489 else
24490 gl_cv_func_gettimeofday_posix_signature=no
24492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
24497 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
24498 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
24499 gl_gettimeofday_timezone='struct timezone'
24500 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
24501 REPLACE_GETTIMEOFDAY=1
24503 if test $REPLACE_STRUCT_TIMEVAL = 1; then
24504 REPLACE_GETTIMEOFDAY=1
24509 cat >>confdefs.h <<_ACEOF
24510 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
24511 _ACEOF
24514 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
24523 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
24526 for ac_header in sys/timeb.h
24527 do :
24528 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
24529 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
24530 cat >>confdefs.h <<_ACEOF
24531 #define HAVE_SYS_TIMEB_H 1
24532 _ACEOF
24536 done
24538 for ac_func in _ftime
24539 do :
24540 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
24541 if test "x$ac_cv_func__ftime" = x""yes; then :
24542 cat >>confdefs.h <<_ACEOF
24543 #define HAVE__FTIME 1
24544 _ACEOF
24547 done
24556 GNULIB_GETTIMEOFDAY=1
24567 if test $ac_cv_func_lstat = yes; then
24569 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
24570 *no)
24571 REPLACE_LSTAT=1
24573 esac
24574 else
24575 HAVE_LSTAT=0
24578 if test $REPLACE_LSTAT = 1; then
24587 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
24596 GNULIB_LSTAT=1
24607 if test $ac_cv_have_decl_memrchr = no; then
24608 HAVE_DECL_MEMRCHR=0
24611 for ac_func in memrchr
24612 do :
24613 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
24614 if test "x$ac_cv_func_memrchr" = x""yes; then :
24615 cat >>confdefs.h <<_ACEOF
24616 #define HAVE_MEMRCHR 1
24617 _ACEOF
24620 done
24623 if test $ac_cv_func_memrchr = no; then
24632 gl_LIBOBJS="$gl_LIBOBJS memrchr.$ac_objext"
24641 GNULIB_MEMRCHR=1
24653 if test $ac_cv_func_mkostemp != yes; then
24654 HAVE_MKOSTEMP=0
24657 if test $HAVE_MKOSTEMP = 0; then
24666 gl_LIBOBJS="$gl_LIBOBJS mkostemp.$ac_objext"
24673 cat >>confdefs.h <<_ACEOF
24674 #define GNULIB_MKOSTEMP 1
24675 _ACEOF
24683 GNULIB_MKOSTEMP=1
24695 if test $APPLE_UNIVERSAL_BUILD = 1; then
24696 # A universal build on Apple Mac OS X platforms.
24697 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
24698 # But we need a configuration result that is valid in both modes.
24699 gl_cv_func_working_mktime=no
24701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
24702 $as_echo_n "checking for working mktime... " >&6; }
24703 if test "${gl_cv_func_working_mktime+set}" = set; then :
24704 $as_echo_n "(cached) " >&6
24705 else
24706 if test "$cross_compiling" = yes; then :
24707 gl_cv_func_working_mktime=no
24708 else
24709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24710 /* end confdefs.h. */
24711 /* Test program from Paul Eggert and Tony Leneis. */
24712 #include <limits.h>
24713 #include <stdlib.h>
24714 #include <time.h>
24716 #ifdef HAVE_UNISTD_H
24717 # include <unistd.h>
24718 #endif
24720 #if HAVE_DECL_ALARM
24721 # include <signal.h>
24722 #endif
24724 /* Work around redefinition to rpl_putenv by other config tests. */
24725 #undef putenv
24727 static time_t time_t_max;
24728 static time_t time_t_min;
24730 /* Values we'll use to set the TZ environment variable. */
24731 static char *tz_strings[] = {
24732 (char *) 0, "TZ=GMT0", "TZ=JST-9",
24733 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
24735 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
24737 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
24738 Based on a problem report from Andreas Jaeger. */
24739 static int
24740 spring_forward_gap ()
24742 /* glibc (up to about 1998-10-07) failed this test. */
24743 struct tm tm;
24745 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24746 instead of "TZ=America/Vancouver" in order to detect the bug even
24747 on systems that don't support the Olson extension, or don't have the
24748 full zoneinfo tables installed. */
24749 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24751 tm.tm_year = 98;
24752 tm.tm_mon = 3;
24753 tm.tm_mday = 5;
24754 tm.tm_hour = 2;
24755 tm.tm_min = 0;
24756 tm.tm_sec = 0;
24757 tm.tm_isdst = -1;
24758 return mktime (&tm) != (time_t) -1;
24761 static int
24762 mktime_test1 (time_t now)
24764 struct tm *lt;
24765 return ! (lt = localtime (&now)) || mktime (lt) == now;
24768 static int
24769 mktime_test (time_t now)
24771 return (mktime_test1 (now)
24772 && mktime_test1 ((time_t) (time_t_max - now))
24773 && mktime_test1 ((time_t) (time_t_min + now)));
24776 static int
24777 irix_6_4_bug ()
24779 /* Based on code from Ariel Faigon. */
24780 struct tm tm;
24781 tm.tm_year = 96;
24782 tm.tm_mon = 3;
24783 tm.tm_mday = 0;
24784 tm.tm_hour = 0;
24785 tm.tm_min = 0;
24786 tm.tm_sec = 0;
24787 tm.tm_isdst = -1;
24788 mktime (&tm);
24789 return tm.tm_mon == 2 && tm.tm_mday == 31;
24792 static int
24793 bigtime_test (int j)
24795 struct tm tm;
24796 time_t now;
24797 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
24798 now = mktime (&tm);
24799 if (now != (time_t) -1)
24801 struct tm *lt = localtime (&now);
24802 if (! (lt
24803 && lt->tm_year == tm.tm_year
24804 && lt->tm_mon == tm.tm_mon
24805 && lt->tm_mday == tm.tm_mday
24806 && lt->tm_hour == tm.tm_hour
24807 && lt->tm_min == tm.tm_min
24808 && lt->tm_sec == tm.tm_sec
24809 && lt->tm_yday == tm.tm_yday
24810 && lt->tm_wday == tm.tm_wday
24811 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
24812 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
24813 return 0;
24815 return 1;
24818 static int
24819 year_2050_test ()
24821 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
24822 ignoring leap seconds. */
24823 unsigned long int answer = 2527315200UL;
24825 struct tm tm;
24826 time_t t;
24827 tm.tm_year = 2050 - 1900;
24828 tm.tm_mon = 2 - 1;
24829 tm.tm_mday = 1;
24830 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
24831 tm.tm_isdst = -1;
24833 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24834 instead of "TZ=America/Vancouver" in order to detect the bug even
24835 on systems that don't support the Olson extension, or don't have the
24836 full zoneinfo tables installed. */
24837 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24839 t = mktime (&tm);
24841 /* Check that the result is either a failure, or close enough
24842 to the correct answer that we can assume the discrepancy is
24843 due to leap seconds. */
24844 return (t == (time_t) -1
24845 || (0 < t && answer - 120 <= t && t <= answer + 120));
24849 main ()
24851 int result = 0;
24852 time_t t, delta;
24853 int i, j;
24854 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
24855 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
24857 #if HAVE_DECL_ALARM
24858 /* This test makes some buggy mktime implementations loop.
24859 Give up after 60 seconds; a mktime slower than that
24860 isn't worth using anyway. */
24861 signal (SIGALRM, SIG_DFL);
24862 alarm (60);
24863 #endif
24865 time_t_max = (! time_t_signed
24866 ? (time_t) -1
24867 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
24868 * 2 + 1));
24869 time_t_min = (! time_t_signed
24870 ? (time_t) 0
24871 : time_t_signed_magnitude
24872 ? ~ (time_t) 0
24873 : ~ time_t_max);
24875 delta = time_t_max / 997; /* a suitable prime number */
24876 for (i = 0; i < N_STRINGS; i++)
24878 if (tz_strings[i])
24879 putenv (tz_strings[i]);
24881 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
24882 if (! mktime_test (t))
24883 result |= 1;
24884 if ((result & 2) == 0
24885 && ! (mktime_test ((time_t) 1)
24886 && mktime_test ((time_t) (60 * 60))
24887 && mktime_test ((time_t) (60 * 60 * 24))))
24888 result |= 2;
24890 for (j = 1; (result & 4) == 0; j <<= 1)
24892 if (! bigtime_test (j))
24893 result |= 4;
24894 if (INT_MAX / 2 < j)
24895 break;
24897 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
24898 result |= 8;
24900 if (! irix_6_4_bug ())
24901 result |= 16;
24902 if (! spring_forward_gap ())
24903 result |= 32;
24904 if (! year_2050_test ())
24905 result |= 64;
24906 return result;
24908 _ACEOF
24909 if ac_fn_c_try_run "$LINENO"; then :
24910 gl_cv_func_working_mktime=yes
24911 else
24912 gl_cv_func_working_mktime=no
24914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24915 conftest.$ac_objext conftest.beam conftest.$ac_ext
24920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
24921 $as_echo "$gl_cv_func_working_mktime" >&6; }
24923 if test $gl_cv_func_working_mktime = no; then
24924 REPLACE_MKTIME=1
24925 else
24926 REPLACE_MKTIME=0
24929 if test $REPLACE_MKTIME = 1; then
24938 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
24947 GNULIB_MKTIME=1
24960 if test $ac_cv_func_pipe2 != yes; then
24961 HAVE_PIPE2=0
24969 GNULIB_PIPE2=1
24980 if test $ac_cv_func_pselect = yes; then
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
24982 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
24983 if test "${gl_cv_sig_pselect+set}" = set; then :
24984 $as_echo_n "(cached) " >&6
24985 else
24986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24987 /* end confdefs.h. */
24988 #include <sys/select.h>
24991 main ()
24993 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
24994 struct timespec const *restrict,
24995 sigset_t const *restrict) = pselect;
24996 return !p;
24998 return 0;
25000 _ACEOF
25001 if ac_fn_c_try_link "$LINENO"; then :
25002 gl_cv_sig_pselect=yes
25003 else
25004 gl_cv_sig_pselect=no
25006 rm -f core conftest.err conftest.$ac_objext \
25007 conftest$ac_exeext conftest.$ac_ext
25009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
25010 $as_echo "$gl_cv_sig_pselect" >&6; }
25012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
25013 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
25014 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
25015 $as_echo_n "(cached) " >&6
25016 else
25018 if test "$cross_compiling" = yes; then :
25020 case "$host_os" in
25021 # Guess yes on glibc systems.
25022 *-gnu*) gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
25023 # If we don't know, assume the worst.
25024 *) gl_cv_func_pselect_detects_ebadf="guessing no" ;;
25025 esac
25027 else
25028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25029 /* end confdefs.h. */
25031 #include <sys/types.h>
25032 #include <sys/time.h>
25033 #if HAVE_SYS_SELECT_H
25034 # include <sys/select.h>
25035 #endif
25036 #include <unistd.h>
25037 #include <errno.h>
25040 main ()
25043 fd_set set;
25044 dup2(0, 16);
25045 FD_ZERO(&set);
25046 FD_SET(16, &set);
25047 close(16);
25048 struct timespec timeout;
25049 timeout.tv_sec = 0;
25050 timeout.tv_nsec = 5000;
25051 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
25054 return 0;
25056 _ACEOF
25057 if ac_fn_c_try_run "$LINENO"; then :
25058 gl_cv_func_pselect_detects_ebadf=yes
25059 else
25060 gl_cv_func_pselect_detects_ebadf=no
25062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25063 conftest.$ac_objext conftest.beam conftest.$ac_ext
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
25069 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
25070 case $gl_cv_func_pselect_detects_ebadf in
25071 *yes) ;;
25072 *) REPLACE_PSELECT=1 ;;
25073 esac
25076 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
25077 REPLACE_PSELECT=1
25080 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
25089 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
25097 GNULIB_PSELECT=1
25107 LIB_PTHREAD_SIGMASK=
25112 if test "$gl_threads_api" = posix; then
25113 if test $ac_cv_func_pthread_sigmask = yes; then
25115 else
25116 if test -n "$LIBMULTITHREAD"; then
25117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
25118 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
25119 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
25120 $as_echo_n "(cached) " >&6
25121 else
25122 gl_save_LIBS="$LIBS"
25123 LIBS="$LIBS $LIBMULTITHREAD"
25124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25125 /* end confdefs.h. */
25126 #include <pthread.h>
25127 #include <signal.h>
25130 main ()
25132 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
25134 return 0;
25137 _ACEOF
25138 if ac_fn_c_try_link "$LINENO"; then :
25139 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes
25140 else
25141 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no
25143 rm -f core conftest.err conftest.$ac_objext \
25144 conftest$ac_exeext conftest.$ac_ext
25145 LIBS="$gl_save_LIBS"
25148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
25149 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
25150 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
25151 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
25152 else
25153 HAVE_PTHREAD_SIGMASK=0
25155 else
25156 HAVE_PTHREAD_SIGMASK=0
25159 else
25160 if test $ac_cv_func_pthread_sigmask = yes; then
25161 REPLACE_PTHREAD_SIGMASK=1
25162 else
25163 HAVE_PTHREAD_SIGMASK=0
25170 if test $HAVE_PTHREAD_SIGMASK = 1; then
25173 if test -z "$LIB_PTHREAD_SIGMASK"; then
25174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
25175 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
25176 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
25177 $as_echo_n "(cached) " >&6
25178 else
25180 if test "$cross_compiling" = yes; then :
25182 case "$host_os" in
25183 freebsd* | hpux* | solaris | solaris2.[2-9]*)
25184 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
25186 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
25187 esac
25189 else
25190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25191 /* end confdefs.h. */
25193 #include <pthread.h>
25194 #include <signal.h>
25195 #include <stddef.h>
25196 int main ()
25198 sigset_t set;
25199 sigemptyset (&set);
25200 return pthread_sigmask (1729, &set, NULL) != 0;
25202 _ACEOF
25203 if ac_fn_c_try_run "$LINENO"; then :
25204 gl_cv_func_pthread_sigmask_in_libc_works=no
25205 else
25206 gl_cv_func_pthread_sigmask_in_libc_works=yes
25208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25209 conftest.$ac_objext conftest.beam conftest.$ac_ext
25214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
25215 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
25216 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
25217 *no)
25218 REPLACE_PTHREAD_SIGMASK=1
25220 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
25223 esac
25226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
25227 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
25228 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
25229 $as_echo_n "(cached) " >&6
25230 else
25232 gl_save_LIBS="$LIBS"
25233 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
25234 if test "$cross_compiling" = yes; then :
25235 case "$host_os" in
25236 cygwin*)
25237 gl_cv_func_pthread_sigmask_return_works="guessing no";;
25239 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
25240 esac
25242 else
25243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25244 /* end confdefs.h. */
25246 #include <pthread.h>
25247 #include <signal.h>
25248 #include <stddef.h>
25249 int main ()
25251 sigset_t set;
25252 sigemptyset (&set);
25253 if (pthread_sigmask (1729, &set, NULL) == -1)
25254 return 1;
25255 return 0;
25257 _ACEOF
25258 if ac_fn_c_try_run "$LINENO"; then :
25259 gl_cv_func_pthread_sigmask_return_works=yes
25260 else
25261 gl_cv_func_pthread_sigmask_return_works=no
25263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25264 conftest.$ac_objext conftest.beam conftest.$ac_ext
25267 LIBS="$gl_save_LIBS"
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
25271 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
25272 case "$gl_cv_func_pthread_sigmask_return_works" in
25273 *no)
25274 REPLACE_PTHREAD_SIGMASK=1
25276 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
25279 esac
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
25282 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
25283 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
25284 $as_echo_n "(cached) " >&6
25285 else
25287 case "$host_os" in
25288 irix*)
25289 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
25291 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
25292 esac
25293 gl_save_LIBS="$LIBS"
25294 LIBS="$LIBS $LIBMULTITHREAD"
25295 if test "$cross_compiling" = yes; then :
25297 else
25298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25299 /* end confdefs.h. */
25301 #include <pthread.h>
25302 #include <signal.h>
25303 #include <stdio.h>
25304 #include <stdlib.h>
25305 #include <unistd.h>
25306 static volatile int sigint_occurred;
25307 static void
25308 sigint_handler (int sig)
25310 sigint_occurred++;
25312 int main ()
25314 sigset_t set;
25315 int pid = getpid ();
25316 char command[80];
25317 signal (SIGINT, sigint_handler);
25318 sigemptyset (&set);
25319 sigaddset (&set, SIGINT);
25320 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
25321 return 1;
25322 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
25323 if (!(system (command) == 0))
25324 return 2;
25325 sleep (2);
25326 if (!(sigint_occurred == 0))
25327 return 3;
25328 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
25329 return 4;
25330 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
25331 return 5;
25332 return 0;
25334 _ACEOF
25335 if ac_fn_c_try_run "$LINENO"; then :
25337 else
25338 gl_cv_func_pthread_sigmask_unblock_works=no
25340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25341 conftest.$ac_objext conftest.beam conftest.$ac_ext
25344 LIBS="$gl_save_LIBS"
25347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
25348 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
25349 case "$gl_cv_func_pthread_sigmask_unblock_works" in
25350 *no)
25351 REPLACE_PTHREAD_SIGMASK=1
25353 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
25356 esac
25359 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
25368 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
25371 if test $HAVE_PTHREAD_SIGMASK = 1; then
25373 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
25383 GNULIB_PTHREAD_SIGMASK=1
25391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
25392 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
25393 if test "${gl_cv_func_svid_putenv+set}" = set; then :
25394 $as_echo_n "(cached) " >&6
25395 else
25396 if test "$cross_compiling" = yes; then :
25397 case "$host_os" in
25398 # Guess yes on glibc systems.
25399 *-gnu*) gl_cv_func_svid_putenv="guessing yes" ;;
25400 # If we don't know, assume the worst.
25401 *) gl_cv_func_svid_putenv="guessing no" ;;
25402 esac
25404 else
25405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25406 /* end confdefs.h. */
25407 $ac_includes_default
25409 main ()
25412 /* Put it in env. */
25413 if (putenv ("CONFTEST_putenv=val"))
25414 return 1;
25416 /* Try to remove it. */
25417 if (putenv ("CONFTEST_putenv"))
25418 return 2;
25420 /* Make sure it was deleted. */
25421 if (getenv ("CONFTEST_putenv") != 0)
25422 return 3;
25424 return 0;
25427 return 0;
25429 _ACEOF
25430 if ac_fn_c_try_run "$LINENO"; then :
25431 gl_cv_func_svid_putenv=yes
25432 else
25433 gl_cv_func_svid_putenv=no
25435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25436 conftest.$ac_objext conftest.beam conftest.$ac_ext
25441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
25442 $as_echo "$gl_cv_func_svid_putenv" >&6; }
25443 case "$gl_cv_func_svid_putenv" in
25444 *yes) ;;
25446 REPLACE_PUTENV=1
25448 esac
25450 if test $REPLACE_PUTENV = 1; then
25459 gl_LIBOBJS="$gl_LIBOBJS putenv.$ac_objext"
25462 ac_fn_c_check_decl "$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default"
25463 if test "x$ac_cv_have_decl__putenv" = x""yes; then :
25464 ac_have_decl=1
25465 else
25466 ac_have_decl=0
25469 cat >>confdefs.h <<_ACEOF
25470 #define HAVE_DECL__PUTENV $ac_have_decl
25471 _ACEOF
25480 GNULIB_PUTENV=1
25487 # Check whether --enable-acl was given.
25488 if test "${enable_acl+set}" = set; then :
25489 enableval=$enable_acl;
25490 else
25491 enable_acl=auto
25495 LIB_ACL=
25496 use_acl=0
25497 if test "x$enable_acl" != "xno"; then
25498 for ac_header in sys/acl.h
25499 do :
25500 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
25501 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
25502 cat >>confdefs.h <<_ACEOF
25503 #define HAVE_SYS_ACL_H 1
25504 _ACEOF
25508 done
25510 if test $ac_cv_header_sys_acl_h = yes; then
25511 ac_save_LIBS=$LIBS
25513 if test $use_acl = 0; then
25514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_get_file" >&5
25515 $as_echo_n "checking for library containing acl_get_file... " >&6; }
25516 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25517 $as_echo_n "(cached) " >&6
25518 else
25519 ac_func_search_save_LIBS=$LIBS
25520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25521 /* end confdefs.h. */
25523 /* Override any GCC internal prototype to avoid an error.
25524 Use char because int might match the return type of a GCC
25525 builtin and then its argument prototype would still apply. */
25526 #ifdef __cplusplus
25527 extern "C"
25528 #endif
25529 char acl_get_file ();
25531 main ()
25533 return acl_get_file ();
25535 return 0;
25537 _ACEOF
25538 for ac_lib in '' acl pacl; do
25539 if test -z "$ac_lib"; then
25540 ac_res="none required"
25541 else
25542 ac_res=-l$ac_lib
25543 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25545 if ac_fn_c_try_link "$LINENO"; then :
25546 ac_cv_search_acl_get_file=$ac_res
25548 rm -f core conftest.err conftest.$ac_objext \
25549 conftest$ac_exeext
25550 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25551 break
25553 done
25554 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25556 else
25557 ac_cv_search_acl_get_file=no
25559 rm conftest.$ac_ext
25560 LIBS=$ac_func_search_save_LIBS
25562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_get_file" >&5
25563 $as_echo "$ac_cv_search_acl_get_file" >&6; }
25564 ac_res=$ac_cv_search_acl_get_file
25565 if test "$ac_res" != no; then :
25566 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25567 if test "$ac_cv_search_acl_get_file" != "none required"; then
25568 LIB_ACL=$ac_cv_search_acl_get_file
25570 for ac_func in acl_get_file acl_get_fd acl_set_file acl_set_fd \
25571 acl_free acl_from_mode acl_from_text \
25572 acl_delete_def_file acl_extended_file \
25573 acl_delete_fd_np acl_delete_file_np \
25574 acl_copy_ext_native acl_create_entry_np \
25575 acl_to_short_text acl_free_text
25576 do :
25577 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25578 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25579 eval as_val=\$$as_ac_var
25580 if test "x$as_val" = x""yes; then :
25581 cat >>confdefs.h <<_ACEOF
25582 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25583 _ACEOF
25586 done
25588 # If the acl_get_file bug is detected, don't enable the ACL support.
25590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working acl_get_file" >&5
25591 $as_echo_n "checking for working acl_get_file... " >&6; }
25592 if test "${gl_cv_func_working_acl_get_file+set}" = set; then :
25593 $as_echo_n "(cached) " >&6
25594 else
25595 if test "$cross_compiling" = yes; then :
25596 gl_cv_func_working_acl_get_file=cross-compiling
25597 else
25598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25599 /* end confdefs.h. */
25600 #include <sys/types.h>
25601 #include <sys/acl.h>
25602 #include <errno.h>
25605 main ()
25607 if (!acl_get_file (".", ACL_TYPE_ACCESS) && errno == ENOENT)
25608 return 1;
25609 return 0;
25612 return 0;
25614 _ACEOF
25615 if ac_fn_c_try_run "$LINENO"; then :
25616 gl_cv_func_working_acl_get_file=yes
25617 else
25618 gl_cv_func_working_acl_get_file=no
25620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25621 conftest.$ac_objext conftest.beam conftest.$ac_ext
25625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_acl_get_file" >&5
25626 $as_echo "$gl_cv_func_working_acl_get_file" >&6; }
25628 if test $gl_cv_func_working_acl_get_file = yes; then :
25629 use_acl=1
25632 if test $use_acl = 1; then
25633 for ac_header in acl/libacl.h
25634 do :
25635 ac_fn_c_check_header_mongrel "$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"
25636 if test "x$ac_cv_header_acl_libacl_h" = x""yes; then :
25637 cat >>confdefs.h <<_ACEOF
25638 #define HAVE_ACL_LIBACL_H 1
25639 _ACEOF
25643 done
25653 for ac_func in acl_entries
25654 do :
25655 ac_fn_c_check_func "$LINENO" "acl_entries" "ac_cv_func_acl_entries"
25656 if test "x$ac_cv_func_acl_entries" = x""yes; then :
25657 cat >>confdefs.h <<_ACEOF
25658 #define HAVE_ACL_ENTRIES 1
25659 _ACEOF
25661 else
25663 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
25666 done
25669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_FIRST_ENTRY" >&5
25670 $as_echo_n "checking for ACL_FIRST_ENTRY... " >&6; }
25671 if test "${gl_cv_acl_ACL_FIRST_ENTRY+set}" = set; then :
25672 $as_echo_n "(cached) " >&6
25673 else
25674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25675 /* end confdefs.h. */
25676 #include <sys/types.h>
25677 #include <sys/acl.h>
25678 int type = ACL_FIRST_ENTRY;
25680 main ()
25684 return 0;
25686 _ACEOF
25687 if ac_fn_c_try_compile "$LINENO"; then :
25688 gl_cv_acl_ACL_FIRST_ENTRY=yes
25689 else
25690 gl_cv_acl_ACL_FIRST_ENTRY=no
25692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_FIRST_ENTRY" >&5
25695 $as_echo "$gl_cv_acl_ACL_FIRST_ENTRY" >&6; }
25696 if test $gl_cv_acl_ACL_FIRST_ENTRY = yes; then
25698 $as_echo "#define HAVE_ACL_FIRST_ENTRY 1" >>confdefs.h
25701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED" >&5
25702 $as_echo_n "checking for ACL_TYPE_EXTENDED... " >&6; }
25703 if test "${gl_cv_acl_ACL_TYPE_EXTENDED+set}" = set; then :
25704 $as_echo_n "(cached) " >&6
25705 else
25706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25707 /* end confdefs.h. */
25708 #include <sys/types.h>
25709 #include <sys/acl.h>
25710 int type = ACL_TYPE_EXTENDED;
25712 main ()
25716 return 0;
25718 _ACEOF
25719 if ac_fn_c_try_compile "$LINENO"; then :
25720 gl_cv_acl_ACL_TYPE_EXTENDED=yes
25721 else
25722 gl_cv_acl_ACL_TYPE_EXTENDED=no
25724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_TYPE_EXTENDED" >&5
25727 $as_echo "$gl_cv_acl_ACL_TYPE_EXTENDED" >&6; }
25728 if test $gl_cv_acl_ACL_TYPE_EXTENDED = yes; then
25730 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
25733 else
25734 LIB_ACL=
25741 if test $use_acl = 0; then
25742 for ac_func in facl
25743 do :
25744 ac_fn_c_check_func "$LINENO" "facl" "ac_cv_func_facl"
25745 if test "x$ac_cv_func_facl" = x""yes; then :
25746 cat >>confdefs.h <<_ACEOF
25747 #define HAVE_FACL 1
25748 _ACEOF
25751 done
25753 if test $ac_cv_func_facl = yes; then
25754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_trivial" >&5
25755 $as_echo_n "checking for library containing acl_trivial... " >&6; }
25756 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25757 $as_echo_n "(cached) " >&6
25758 else
25759 ac_func_search_save_LIBS=$LIBS
25760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25761 /* end confdefs.h. */
25763 /* Override any GCC internal prototype to avoid an error.
25764 Use char because int might match the return type of a GCC
25765 builtin and then its argument prototype would still apply. */
25766 #ifdef __cplusplus
25767 extern "C"
25768 #endif
25769 char acl_trivial ();
25771 main ()
25773 return acl_trivial ();
25775 return 0;
25777 _ACEOF
25778 for ac_lib in '' sec; do
25779 if test -z "$ac_lib"; then
25780 ac_res="none required"
25781 else
25782 ac_res=-l$ac_lib
25783 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25785 if ac_fn_c_try_link "$LINENO"; then :
25786 ac_cv_search_acl_trivial=$ac_res
25788 rm -f core conftest.err conftest.$ac_objext \
25789 conftest$ac_exeext
25790 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25791 break
25793 done
25794 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25796 else
25797 ac_cv_search_acl_trivial=no
25799 rm conftest.$ac_ext
25800 LIBS=$ac_func_search_save_LIBS
25802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_trivial" >&5
25803 $as_echo "$ac_cv_search_acl_trivial" >&6; }
25804 ac_res=$ac_cv_search_acl_trivial
25805 if test "$ac_res" != no; then :
25806 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25807 if test "$ac_cv_search_acl_trivial" != "none required"; then
25808 LIB_ACL=$ac_cv_search_acl_trivial
25813 for ac_func in acl_trivial
25814 do :
25815 ac_fn_c_check_func "$LINENO" "acl_trivial" "ac_cv_func_acl_trivial"
25816 if test "x$ac_cv_func_acl_trivial" = x""yes; then :
25817 cat >>confdefs.h <<_ACEOF
25818 #define HAVE_ACL_TRIVIAL 1
25819 _ACEOF
25822 done
25824 use_acl=1
25828 if test $use_acl = 0; then
25829 for ac_func in getacl
25830 do :
25831 ac_fn_c_check_func "$LINENO" "getacl" "ac_cv_func_getacl"
25832 if test "x$ac_cv_func_getacl" = x""yes; then :
25833 cat >>confdefs.h <<_ACEOF
25834 #define HAVE_GETACL 1
25835 _ACEOF
25838 done
25840 if test $ac_cv_func_getacl = yes; then
25841 use_acl=1
25843 for ac_header in aclv.h
25844 do :
25845 ac_fn_c_check_header_compile "$LINENO" "aclv.h" "ac_cv_header_aclv_h" "#include <sys/types.h>
25847 if test "x$ac_cv_header_aclv_h" = x""yes; then :
25848 cat >>confdefs.h <<_ACEOF
25849 #define HAVE_ACLV_H 1
25850 _ACEOF
25854 done
25858 if test $use_acl = 0; then
25859 for ac_func in aclx_get
25860 do :
25861 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
25862 if test "x$ac_cv_func_aclx_get" = x""yes; then :
25863 cat >>confdefs.h <<_ACEOF
25864 #define HAVE_ACLX_GET 1
25865 _ACEOF
25868 done
25870 if test $ac_cv_func_aclx_get = yes; then
25871 use_acl=1
25875 if test $use_acl = 0 || test "$ac_cv_func_aclx_get" = yes; then
25876 for ac_func in statacl
25877 do :
25878 ac_fn_c_check_func "$LINENO" "statacl" "ac_cv_func_statacl"
25879 if test "x$ac_cv_func_statacl" = x""yes; then :
25880 cat >>confdefs.h <<_ACEOF
25881 #define HAVE_STATACL 1
25882 _ACEOF
25885 done
25887 if test $ac_cv_func_statacl = yes; then
25888 use_acl=1
25892 if test $use_acl = 0; then
25893 for ac_func in aclsort
25894 do :
25895 ac_fn_c_check_func "$LINENO" "aclsort" "ac_cv_func_aclsort"
25896 if test "x$ac_cv_func_aclsort" = x""yes; then :
25897 cat >>confdefs.h <<_ACEOF
25898 #define HAVE_ACLSORT 1
25899 _ACEOF
25902 done
25904 if test $ac_cv_func_aclsort = yes; then
25905 use_acl=1
25909 LIBS=$ac_save_LIBS
25911 if test "x$enable_acl$use_acl" = "xyes0"; then
25912 as_fn_error "ACLs enabled but support not detected" "$LINENO" 5
25913 elif test "x$enable_acl$use_acl" = "xauto0"; then
25914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libacl development library was not found or not usable." >&5
25915 $as_echo "$as_me: WARNING: libacl development library was not found or not usable." >&2;}
25916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: emacs will be built without ACL support." >&5
25917 $as_echo "$as_me: WARNING: emacs will be built without ACL support." >&2;}
25922 cat >>confdefs.h <<_ACEOF
25923 #define USE_ACL $use_acl
25924 _ACEOF
25926 USE_ACL=$use_acl
25932 if test $ac_cv_func_readlink = no; then
25933 HAVE_READLINK=0
25934 else
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
25936 $as_echo_n "checking whether readlink signature is correct... " >&6; }
25937 if test "${gl_cv_decl_readlink_works+set}" = set; then :
25938 $as_echo_n "(cached) " >&6
25939 else
25940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25941 /* end confdefs.h. */
25942 #include <unistd.h>
25943 /* Cause compilation failure if original declaration has wrong type. */
25944 ssize_t readlink (const char *, char *, size_t);
25946 main ()
25950 return 0;
25952 _ACEOF
25953 if ac_fn_c_try_compile "$LINENO"; then :
25954 gl_cv_decl_readlink_works=yes
25955 else
25956 gl_cv_decl_readlink_works=no
25958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
25961 $as_echo "$gl_cv_decl_readlink_works" >&6; }
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
25963 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
25964 if test "${gl_cv_func_readlink_works+set}" = set; then :
25965 $as_echo_n "(cached) " >&6
25966 else
25967 # We have readlink, so assume ln -s works.
25968 ln -s conftest.no-such conftest.link
25969 ln -s conftest.link conftest.lnk2
25970 if test "$cross_compiling" = yes; then :
25971 case "$host_os" in
25972 # Guess yes on glibc systems.
25973 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
25974 # If we don't know, assume the worst.
25975 *) gl_cv_func_readlink_works="guessing no" ;;
25976 esac
25978 else
25979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25980 /* end confdefs.h. */
25981 #include <unistd.h>
25984 main ()
25986 char buf[20];
25987 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
25989 return 0;
25991 _ACEOF
25992 if ac_fn_c_try_run "$LINENO"; then :
25993 gl_cv_func_readlink_works=yes
25994 else
25995 gl_cv_func_readlink_works=no
25997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25998 conftest.$ac_objext conftest.beam conftest.$ac_ext
26001 rm -f conftest.link conftest.lnk2
26003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
26004 $as_echo "$gl_cv_func_readlink_works" >&6; }
26005 case "$gl_cv_func_readlink_works" in
26006 *yes)
26007 if test "$gl_cv_decl_readlink_works" != yes; then
26008 REPLACE_READLINK=1
26013 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
26015 REPLACE_READLINK=1
26017 esac
26020 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
26029 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
26040 GNULIB_READLINK=1
26050 if test $ac_cv_func_readlinkat = no; then
26051 HAVE_READLINKAT=0
26054 if test $HAVE_READLINKAT = 0; then
26063 gl_LIBOBJS="$gl_LIBOBJS readlinkat.$ac_objext"
26071 GNULIB_READLINKAT=1
26078 for ac_func in sig2str
26079 do :
26080 ac_fn_c_check_func "$LINENO" "sig2str" "ac_cv_func_sig2str"
26081 if test "x$ac_cv_func_sig2str" = x""yes; then :
26082 cat >>confdefs.h <<_ACEOF
26083 #define HAVE_SIG2STR 1
26084 _ACEOF
26087 done
26090 if test $ac_cv_func_sig2str = no; then
26099 gl_LIBOBJS="$gl_LIBOBJS sig2str.$ac_objext"
26116 if test $gl_cv_have_include_next = yes; then
26117 gl_cv_next_signal_h='<'signal.h'>'
26118 else
26119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
26120 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
26121 if test "${gl_cv_next_signal_h+set}" = set; then :
26122 $as_echo_n "(cached) " >&6
26123 else
26125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26126 /* end confdefs.h. */
26127 #include <signal.h>
26129 _ACEOF
26130 case "$host_os" in
26131 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26132 *) gl_absname_cpp="$ac_cpp" ;;
26133 esac
26135 case "$host_os" in
26136 mingw*)
26137 gl_dirsep_regex='[/\\]'
26140 gl_dirsep_regex='\/'
26142 esac
26143 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26145 gl_header_literal_regex=`echo 'signal.h' \
26146 | sed -e "$gl_make_literal_regex_sed"`
26147 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26148 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26149 s|^/[^/]|//&|
26153 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26154 sed -n "$gl_absolute_header_sed"`'"'
26158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
26159 $as_echo "$gl_cv_next_signal_h" >&6; }
26161 NEXT_SIGNAL_H=$gl_cv_next_signal_h
26163 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26164 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26165 gl_next_as_first_directive='<'signal.h'>'
26166 else
26167 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26168 gl_next_as_first_directive=$gl_cv_next_signal_h
26170 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
26176 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
26177 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
26178 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
26179 #include <signal.h>
26182 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
26184 else
26185 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
26194 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
26195 #include <signal.h>
26198 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
26200 else
26201 HAVE_SIGHANDLER_T=0
26207 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
26208 /* <sys/types.h> is not needed according to POSIX, but the
26209 <sys/socket.h> in i386-unknown-freebsd4.10 and
26210 powerpc-apple-darwin5.5 required it. */
26211 #include <sys/types.h>
26212 #if HAVE_SYS_SOCKET_H
26213 # include <sys/socket.h>
26214 #elif HAVE_WS2TCPIP_H
26215 # include <ws2tcpip.h>
26216 #endif
26219 if test "x$ac_cv_type_socklen_t" = x""yes; then :
26221 else
26222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
26223 $as_echo_n "checking for socklen_t equivalent... " >&6; }
26224 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
26225 $as_echo_n "(cached) " >&6
26226 else
26227 # Systems have either "struct sockaddr *" or
26228 # "void *" as the second argument to getpeername
26229 gl_cv_socklen_t_equiv=
26230 for arg2 in "struct sockaddr" void; do
26231 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
26232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26233 /* end confdefs.h. */
26234 #include <sys/types.h>
26235 #include <sys/socket.h>
26237 int getpeername (int, $arg2 *, $t *);
26239 main ()
26241 $t len;
26242 getpeername (0, 0, &len);
26244 return 0;
26246 _ACEOF
26247 if ac_fn_c_try_compile "$LINENO"; then :
26248 gl_cv_socklen_t_equiv="$t"
26250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26251 test "$gl_cv_socklen_t_equiv" != "" && break
26252 done
26253 test "$gl_cv_socklen_t_equiv" != "" && break
26254 done
26258 if test "$gl_cv_socklen_t_equiv" = ""; then
26259 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
26261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
26262 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
26264 cat >>confdefs.h <<_ACEOF
26265 #define socklen_t $gl_cv_socklen_t_equiv
26266 _ACEOF
26271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
26272 $as_echo_n "checking for ssize_t... " >&6; }
26273 if test "${gt_cv_ssize_t+set}" = set; then :
26274 $as_echo_n "(cached) " >&6
26275 else
26276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26277 /* end confdefs.h. */
26278 #include <sys/types.h>
26280 main ()
26282 int x = sizeof (ssize_t *) + sizeof (ssize_t);
26283 return !x;
26285 return 0;
26287 _ACEOF
26288 if ac_fn_c_try_compile "$LINENO"; then :
26289 gt_cv_ssize_t=yes
26290 else
26291 gt_cv_ssize_t=no
26293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
26296 $as_echo "$gt_cv_ssize_t" >&6; }
26297 if test $gt_cv_ssize_t = no; then
26299 $as_echo "#define ssize_t int" >>confdefs.h
26307 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>
26308 #include <sys/stat.h>
26310 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
26312 cat >>confdefs.h <<_ACEOF
26313 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
26314 _ACEOF
26316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
26317 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
26318 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
26319 $as_echo_n "(cached) " >&6
26320 else
26321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26322 /* end confdefs.h. */
26324 #include <sys/types.h>
26325 #include <sys/stat.h>
26326 #if HAVE_SYS_TIME_H
26327 # include <sys/time.h>
26328 #endif
26329 #include <time.h>
26330 struct timespec ts;
26331 struct stat st;
26334 main ()
26337 st.st_atim = ts;
26340 return 0;
26342 _ACEOF
26343 if ac_fn_c_try_compile "$LINENO"; then :
26344 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
26345 else
26346 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
26348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
26351 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
26352 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
26354 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
26357 else
26358 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>
26359 #include <sys/stat.h>
26361 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
26363 cat >>confdefs.h <<_ACEOF
26364 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
26365 _ACEOF
26368 else
26369 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
26370 #include <sys/stat.h>
26372 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
26374 cat >>confdefs.h <<_ACEOF
26375 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
26376 _ACEOF
26379 else
26380 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>
26381 #include <sys/stat.h>
26383 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
26385 cat >>confdefs.h <<_ACEOF
26386 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
26387 _ACEOF
26402 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>
26403 #include <sys/stat.h>
26405 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
26407 cat >>confdefs.h <<_ACEOF
26408 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
26409 _ACEOF
26412 else
26413 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
26414 #include <sys/stat.h>
26416 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
26418 cat >>confdefs.h <<_ACEOF
26419 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
26420 _ACEOF
26423 else
26424 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>
26425 #include <sys/stat.h>
26427 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
26429 cat >>confdefs.h <<_ACEOF
26430 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
26431 _ACEOF
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
26443 $as_echo_n "checking for working stdalign.h... " >&6; }
26444 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
26445 $as_echo_n "(cached) " >&6
26446 else
26447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26448 /* end confdefs.h. */
26449 #include <stdalign.h>
26450 #include <stddef.h>
26452 /* Test that alignof yields a result consistent with offsetof.
26453 This catches GCC bug 52023
26454 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
26455 #ifdef __cplusplus
26456 template <class t> struct alignof_helper { char a; t b; };
26457 # define ao(type) offsetof (alignof_helper<type>, b)
26458 #else
26459 # define ao(type) offsetof (struct { char a; type b; }, b)
26460 #endif
26461 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
26462 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
26463 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
26465 /* Test _Alignas only on platforms where gnulib can help. */
26466 #if \
26467 ((defined __cplusplus && 201103 <= __cplusplus) \
26468 || __GNUC__ || __IBMC__ || __IBMCPP__ || __ICC \
26469 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
26470 struct alignas_test { char c; char alignas (8) alignas_8; };
26471 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
26472 ? 1 : -1];
26473 #endif
26476 main ()
26480 return 0;
26482 _ACEOF
26483 if ac_fn_c_try_compile "$LINENO"; then :
26484 gl_cv_header_working_stdalign_h=yes
26485 else
26486 gl_cv_header_working_stdalign_h=no
26488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
26491 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
26493 if test $gl_cv_header_working_stdalign_h = yes; then
26494 STDALIGN_H=''
26495 else
26496 STDALIGN_H='stdalign.h'
26500 if test -n "$STDALIGN_H"; then
26501 GL_GENERATE_STDALIGN_H_TRUE=
26502 GL_GENERATE_STDALIGN_H_FALSE='#'
26503 else
26504 GL_GENERATE_STDALIGN_H_TRUE='#'
26505 GL_GENERATE_STDALIGN_H_FALSE=
26510 STDARG_H=''
26511 NEXT_STDARG_H='<stdarg.h>'
26512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
26513 $as_echo_n "checking for va_copy... " >&6; }
26514 if test "${gl_cv_func_va_copy+set}" = set; then :
26515 $as_echo_n "(cached) " >&6
26516 else
26518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26519 /* end confdefs.h. */
26520 #include <stdarg.h>
26522 main ()
26525 #ifndef va_copy
26526 void (*func) (va_list, va_list) = va_copy;
26527 #endif
26530 return 0;
26532 _ACEOF
26533 if ac_fn_c_try_compile "$LINENO"; then :
26534 gl_cv_func_va_copy=yes
26535 else
26536 gl_cv_func_va_copy=no
26538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
26542 $as_echo "$gl_cv_func_va_copy" >&6; }
26543 if test $gl_cv_func_va_copy = no; then
26544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26545 /* end confdefs.h. */
26546 #if defined _AIX && !defined __GNUC__
26547 AIX vaccine
26548 #endif
26550 _ACEOF
26551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26552 $EGREP "vaccine" >/dev/null 2>&1; then :
26553 gl_aixcc=yes
26554 else
26555 gl_aixcc=no
26557 rm -f conftest*
26559 if test $gl_aixcc = yes; then
26560 STDARG_H=stdarg.h
26569 if test $gl_cv_have_include_next = yes; then
26570 gl_cv_next_stdarg_h='<'stdarg.h'>'
26571 else
26572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
26573 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
26574 if test "${gl_cv_next_stdarg_h+set}" = set; then :
26575 $as_echo_n "(cached) " >&6
26576 else
26578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26579 /* end confdefs.h. */
26580 #include <stdarg.h>
26582 _ACEOF
26583 case "$host_os" in
26584 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26585 *) gl_absname_cpp="$ac_cpp" ;;
26586 esac
26588 case "$host_os" in
26589 mingw*)
26590 gl_dirsep_regex='[/\\]'
26593 gl_dirsep_regex='\/'
26595 esac
26596 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26598 gl_header_literal_regex=`echo 'stdarg.h' \
26599 | sed -e "$gl_make_literal_regex_sed"`
26600 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26601 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26602 s|^/[^/]|//&|
26606 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26607 sed -n "$gl_absolute_header_sed"`'"'
26611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
26612 $as_echo "$gl_cv_next_stdarg_h" >&6; }
26614 NEXT_STDARG_H=$gl_cv_next_stdarg_h
26616 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26617 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26618 gl_next_as_first_directive='<'stdarg.h'>'
26619 else
26620 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26621 gl_next_as_first_directive=$gl_cv_next_stdarg_h
26623 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
26628 if test "$gl_cv_next_stdarg_h" = '""'; then
26629 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
26630 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
26632 else
26634 saved_as_echo_n="$as_echo_n"
26635 as_echo_n=':'
26636 if test "${gl_cv_func___va_copy+set}" = set; then :
26637 $as_echo_n "(cached) " >&6
26638 else
26640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26641 /* end confdefs.h. */
26642 #include <stdarg.h>
26644 main ()
26647 #ifndef __va_copy
26648 error, bail out
26649 #endif
26652 return 0;
26654 _ACEOF
26655 if ac_fn_c_try_compile "$LINENO"; then :
26656 gl_cv_func___va_copy=yes
26657 else
26658 gl_cv_func___va_copy=no
26660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26663 as_echo_n="$saved_as_echo_n"
26665 if test $gl_cv_func___va_copy = yes; then
26667 $as_echo "#define va_copy __va_copy" >>confdefs.h
26669 else
26672 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
26678 if test -n "$STDARG_H"; then
26679 GL_GENERATE_STDARG_H_TRUE=
26680 GL_GENERATE_STDARG_H_FALSE='#'
26681 else
26682 GL_GENERATE_STDARG_H_TRUE='#'
26683 GL_GENERATE_STDARG_H_FALSE=
26691 # Define two additional variables used in the Makefile substitution.
26693 if test "$ac_cv_header_stdbool_h" = yes; then
26694 STDBOOL_H=''
26695 else
26696 STDBOOL_H='stdbool.h'
26699 if test -n "$STDBOOL_H"; then
26700 GL_GENERATE_STDBOOL_H_TRUE=
26701 GL_GENERATE_STDBOOL_H_FALSE='#'
26702 else
26703 GL_GENERATE_STDBOOL_H_TRUE='#'
26704 GL_GENERATE_STDBOOL_H_FALSE=
26708 if test "$ac_cv_type__Bool" = yes; then
26709 HAVE__BOOL=1
26710 else
26711 HAVE__BOOL=0
26718 STDDEF_H=
26719 if test $gt_cv_c_wchar_t = no; then
26720 HAVE_WCHAR_T=0
26721 STDDEF_H=stddef.h
26723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
26724 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
26725 if test "${gl_cv_decl_null_works+set}" = set; then :
26726 $as_echo_n "(cached) " >&6
26727 else
26728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26729 /* end confdefs.h. */
26730 #include <stddef.h>
26731 int test[2 * (sizeof NULL == sizeof (void *)) -1];
26734 main ()
26738 return 0;
26740 _ACEOF
26741 if ac_fn_c_try_compile "$LINENO"; then :
26742 gl_cv_decl_null_works=yes
26743 else
26744 gl_cv_decl_null_works=no
26746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
26749 $as_echo "$gl_cv_decl_null_works" >&6; }
26750 if test $gl_cv_decl_null_works = no; then
26751 REPLACE_NULL=1
26752 STDDEF_H=stddef.h
26755 if test -n "$STDDEF_H"; then
26756 GL_GENERATE_STDDEF_H_TRUE=
26757 GL_GENERATE_STDDEF_H_FALSE='#'
26758 else
26759 GL_GENERATE_STDDEF_H_TRUE='#'
26760 GL_GENERATE_STDDEF_H_FALSE=
26763 if test -n "$STDDEF_H"; then
26772 if test $gl_cv_have_include_next = yes; then
26773 gl_cv_next_stddef_h='<'stddef.h'>'
26774 else
26775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
26776 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
26777 if test "${gl_cv_next_stddef_h+set}" = set; then :
26778 $as_echo_n "(cached) " >&6
26779 else
26781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26782 /* end confdefs.h. */
26783 #include <stddef.h>
26785 _ACEOF
26786 case "$host_os" in
26787 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26788 *) gl_absname_cpp="$ac_cpp" ;;
26789 esac
26791 case "$host_os" in
26792 mingw*)
26793 gl_dirsep_regex='[/\\]'
26796 gl_dirsep_regex='\/'
26798 esac
26799 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26801 gl_header_literal_regex=`echo 'stddef.h' \
26802 | sed -e "$gl_make_literal_regex_sed"`
26803 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26804 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26805 s|^/[^/]|//&|
26809 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26810 sed -n "$gl_absolute_header_sed"`'"'
26814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
26815 $as_echo "$gl_cv_next_stddef_h" >&6; }
26817 NEXT_STDDEF_H=$gl_cv_next_stddef_h
26819 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26820 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26821 gl_next_as_first_directive='<'stddef.h'>'
26822 else
26823 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26824 gl_next_as_first_directive=$gl_cv_next_stddef_h
26826 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
26844 if test $gl_cv_have_include_next = yes; then
26845 gl_cv_next_stdio_h='<'stdio.h'>'
26846 else
26847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
26848 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
26849 if test "${gl_cv_next_stdio_h+set}" = set; then :
26850 $as_echo_n "(cached) " >&6
26851 else
26853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26854 /* end confdefs.h. */
26855 #include <stdio.h>
26857 _ACEOF
26858 case "$host_os" in
26859 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26860 *) gl_absname_cpp="$ac_cpp" ;;
26861 esac
26863 case "$host_os" in
26864 mingw*)
26865 gl_dirsep_regex='[/\\]'
26868 gl_dirsep_regex='\/'
26870 esac
26871 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26873 gl_header_literal_regex=`echo 'stdio.h' \
26874 | sed -e "$gl_make_literal_regex_sed"`
26875 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26876 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26877 s|^/[^/]|//&|
26881 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26882 sed -n "$gl_absolute_header_sed"`'"'
26886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
26887 $as_echo "$gl_cv_next_stdio_h" >&6; }
26889 NEXT_STDIO_H=$gl_cv_next_stdio_h
26891 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26892 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26893 gl_next_as_first_directive='<'stdio.h'>'
26894 else
26895 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26896 gl_next_as_first_directive=$gl_cv_next_stdio_h
26898 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
26904 GNULIB_FSCANF=1
26907 cat >>confdefs.h <<_ACEOF
26908 #define GNULIB_FSCANF 1
26909 _ACEOF
26912 GNULIB_SCANF=1
26915 cat >>confdefs.h <<_ACEOF
26916 #define GNULIB_SCANF 1
26917 _ACEOF
26920 GNULIB_FGETC=1
26921 GNULIB_GETC=1
26922 GNULIB_GETCHAR=1
26923 GNULIB_FGETS=1
26924 GNULIB_FREAD=1
26927 GNULIB_FPRINTF=1
26928 GNULIB_PRINTF=1
26929 GNULIB_VFPRINTF=1
26930 GNULIB_VPRINTF=1
26931 GNULIB_FPUTC=1
26932 GNULIB_PUTC=1
26933 GNULIB_PUTCHAR=1
26934 GNULIB_FPUTS=1
26935 GNULIB_PUTS=1
26936 GNULIB_FWRITE=1
26952 if test $gl_cv_have_include_next = yes; then
26953 gl_cv_next_stdlib_h='<'stdlib.h'>'
26954 else
26955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
26956 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
26957 if test "${gl_cv_next_stdlib_h+set}" = set; then :
26958 $as_echo_n "(cached) " >&6
26959 else
26961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26962 /* end confdefs.h. */
26963 #include <stdlib.h>
26965 _ACEOF
26966 case "$host_os" in
26967 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26968 *) gl_absname_cpp="$ac_cpp" ;;
26969 esac
26971 case "$host_os" in
26972 mingw*)
26973 gl_dirsep_regex='[/\\]'
26976 gl_dirsep_regex='\/'
26978 esac
26979 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26981 gl_header_literal_regex=`echo 'stdlib.h' \
26982 | sed -e "$gl_make_literal_regex_sed"`
26983 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26984 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26985 s|^/[^/]|//&|
26989 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26990 sed -n "$gl_absolute_header_sed"`'"'
26994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
26995 $as_echo "$gl_cv_next_stdlib_h" >&6; }
26997 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
26999 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27000 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27001 gl_next_as_first_directive='<'stdlib.h'>'
27002 else
27003 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27004 gl_next_as_first_directive=$gl_cv_next_stdlib_h
27006 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
27016 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
27024 $as_echo "#define my_strftime nstrftime" >>confdefs.h
27036 if test "$ac_cv_have_decl_strtoimax" != yes; then
27037 HAVE_DECL_STRTOIMAX=0
27040 if test "$ac_cv_func_strtoimax" = yes; then
27041 HAVE_STRTOIMAX=1
27042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
27043 $as_echo_n "checking whether strtoimax works... " >&6; }
27044 if test "${gl_cv_func_strtoimax+set}" = set; then :
27045 $as_echo_n "(cached) " >&6
27046 else
27047 if test "$cross_compiling" = yes; then :
27048 case "$host_os" in
27049 # Guess no on AIX 5.
27050 aix5*) gl_cv_func_strtoimax="guessing no" ;;
27051 # Guess yes otherwise.
27052 *) gl_cv_func_strtoimax="guessing yes" ;;
27053 esac
27055 else
27056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27057 /* end confdefs.h. */
27059 #include <errno.h>
27060 #include <string.h>
27061 #include <inttypes.h>
27062 int main ()
27064 if (sizeof (intmax_t) > sizeof (int))
27066 const char *s = "4294967295";
27067 char *p;
27068 intmax_t res;
27069 errno = 0;
27070 res = strtoimax (s, &p, 10);
27071 if (p != s + strlen (s))
27072 return 1;
27073 if (errno != 0)
27074 return 2;
27075 if (res != (intmax_t) 65535 * (intmax_t) 65537)
27076 return 3;
27078 else
27080 const char *s = "2147483647";
27081 char *p;
27082 intmax_t res;
27083 errno = 0;
27084 res = strtoimax (s, &p, 10);
27085 if (p != s + strlen (s))
27086 return 1;
27087 if (errno != 0)
27088 return 2;
27089 if (res != 2147483647)
27090 return 3;
27092 return 0;
27095 _ACEOF
27096 if ac_fn_c_try_run "$LINENO"; then :
27097 gl_cv_func_strtoimax=yes
27098 else
27099 gl_cv_func_strtoimax=no
27101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27102 conftest.$ac_objext conftest.beam conftest.$ac_ext
27107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
27108 $as_echo "$gl_cv_func_strtoimax" >&6; }
27109 case "$gl_cv_func_strtoimax" in
27110 *no) REPLACE_STRTOIMAX=1 ;;
27111 esac
27112 else
27113 if test "$ac_cv_have_decl_strtoimax" = yes; then
27114 # HP-UX 11.11 has "#define strtoimax(...) ..." but no function.
27115 REPLACE_STRTOIMAX=1
27117 HAVE_STRTOIMAX=0
27120 if test $HAVE_DECL_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
27129 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
27132 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
27133 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
27134 ac_have_decl=1
27135 else
27136 ac_have_decl=0
27139 cat >>confdefs.h <<_ACEOF
27140 #define HAVE_DECL_STRTOLL $ac_have_decl
27141 _ACEOF
27151 GNULIB_STRTOIMAX=1
27161 if test "$ac_cv_have_decl_strtoumax" = yes; then
27162 if test "$ac_cv_func_strtoumax" != yes; then
27163 # HP-UX 11.11 has "#define strtoimax(...) ..." but no function.
27164 REPLACE_STRTOUMAX=1
27166 else
27167 HAVE_DECL_STRTOUMAX=0
27170 if test $HAVE_DECL_STRTOUMAX = 0 || test $REPLACE_STRTOUMAX = 1; then
27179 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
27182 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
27183 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
27184 ac_have_decl=1
27185 else
27186 ac_have_decl=0
27189 cat >>confdefs.h <<_ACEOF
27190 #define HAVE_DECL_STRTOULL $ac_have_decl
27191 _ACEOF
27201 GNULIB_STRTOUMAX=1
27209 if test $ac_cv_func_symlink = no; then
27210 HAVE_SYMLINK=0
27211 else
27212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
27213 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
27214 if test "${gl_cv_func_symlink_works+set}" = set; then :
27215 $as_echo_n "(cached) " >&6
27216 else
27217 if test "$cross_compiling" = yes; then :
27218 case "$host_os" in
27219 # Guess yes on glibc systems.
27220 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
27221 # If we don't know, assume the worst.
27222 *) gl_cv_func_symlink_works="guessing no" ;;
27223 esac
27225 else
27226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27227 /* end confdefs.h. */
27228 #include <unistd.h>
27231 main ()
27233 int result = 0;
27234 if (!symlink ("a", "conftest.link/"))
27235 result |= 1;
27236 if (symlink ("conftest.f", "conftest.lnk2"))
27237 result |= 2;
27238 else if (!symlink ("a", "conftest.lnk2/"))
27239 result |= 4;
27240 return result;
27243 return 0;
27245 _ACEOF
27246 if ac_fn_c_try_run "$LINENO"; then :
27247 gl_cv_func_symlink_works=yes
27248 else
27249 gl_cv_func_symlink_works=no
27251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27252 conftest.$ac_objext conftest.beam conftest.$ac_ext
27255 rm -f conftest.f conftest.link conftest.lnk2
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
27258 $as_echo "$gl_cv_func_symlink_works" >&6; }
27259 case "$gl_cv_func_symlink_works" in
27260 *yes) ;;
27262 REPLACE_SYMLINK=1
27264 esac
27267 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
27276 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
27284 GNULIB_SYMLINK=1
27293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
27294 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
27295 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
27296 $as_echo_n "(cached) " >&6
27297 else
27299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27300 /* end confdefs.h. */
27301 #include <sys/select.h>
27303 main ()
27305 struct timeval b;
27307 return 0;
27309 _ACEOF
27310 if ac_fn_c_try_compile "$LINENO"; then :
27311 gl_cv_header_sys_select_h_selfcontained=yes
27312 else
27313 gl_cv_header_sys_select_h_selfcontained=no
27315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27316 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
27317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27318 /* end confdefs.h. */
27319 #include <sys/select.h>
27321 main ()
27323 int memset; int bzero;
27325 return 0;
27328 _ACEOF
27329 if ac_fn_c_try_compile "$LINENO"; then :
27330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27331 /* end confdefs.h. */
27332 #include <sys/select.h>
27334 main ()
27337 #undef memset
27338 #define memset nonexistent_memset
27339 extern
27340 #ifdef __cplusplus
27342 #endif
27343 void *memset (void *, int, unsigned long);
27344 #undef bzero
27345 #define bzero nonexistent_bzero
27346 extern
27347 #ifdef __cplusplus
27349 #endif
27350 void bzero (void *, unsigned long);
27351 fd_set fds;
27352 FD_ZERO (&fds);
27355 return 0;
27358 _ACEOF
27359 if ac_fn_c_try_link "$LINENO"; then :
27361 else
27362 gl_cv_header_sys_select_h_selfcontained=no
27364 rm -f core conftest.err conftest.$ac_objext \
27365 conftest$ac_exeext conftest.$ac_ext
27368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
27373 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
27383 if test $gl_cv_have_include_next = yes; then
27384 gl_cv_next_sys_select_h='<'sys/select.h'>'
27385 else
27386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
27387 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
27388 if test "${gl_cv_next_sys_select_h+set}" = set; then :
27389 $as_echo_n "(cached) " >&6
27390 else
27392 if test $ac_cv_header_sys_select_h = yes; then
27395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27396 /* end confdefs.h. */
27397 #include <sys/select.h>
27399 _ACEOF
27400 case "$host_os" in
27401 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27402 *) gl_absname_cpp="$ac_cpp" ;;
27403 esac
27405 case "$host_os" in
27406 mingw*)
27407 gl_dirsep_regex='[/\\]'
27410 gl_dirsep_regex='\/'
27412 esac
27413 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27415 gl_header_literal_regex=`echo 'sys/select.h' \
27416 | sed -e "$gl_make_literal_regex_sed"`
27417 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27418 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27419 s|^/[^/]|//&|
27423 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27424 sed -n "$gl_absolute_header_sed"`'"'
27425 else
27426 gl_cv_next_sys_select_h='<'sys/select.h'>'
27431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
27432 $as_echo "$gl_cv_next_sys_select_h" >&6; }
27434 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
27436 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27437 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27438 gl_next_as_first_directive='<'sys/select.h'>'
27439 else
27440 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27441 gl_next_as_first_directive=$gl_cv_next_sys_select_h
27443 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
27448 if test $ac_cv_header_sys_select_h = yes; then
27449 HAVE_SYS_SELECT_H=1
27450 else
27451 HAVE_SYS_SELECT_H=0
27458 if test $ac_cv_header_sys_socket_h != yes; then
27459 for ac_header in winsock2.h
27460 do :
27461 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
27462 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
27463 cat >>confdefs.h <<_ACEOF
27464 #define HAVE_WINSOCK2_H 1
27465 _ACEOF
27469 done
27472 if test "$ac_cv_header_winsock2_h" = yes; then
27473 HAVE_WINSOCK2_H=1
27474 UNISTD_H_HAVE_WINSOCK2_H=1
27475 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
27476 else
27477 HAVE_WINSOCK2_H=0
27499 if test $gl_cv_have_include_next = yes; then
27500 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
27501 else
27502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
27503 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
27504 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
27505 $as_echo_n "(cached) " >&6
27506 else
27508 if test $ac_cv_header_sys_stat_h = yes; then
27511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27512 /* end confdefs.h. */
27513 #include <sys/stat.h>
27515 _ACEOF
27516 case "$host_os" in
27517 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27518 *) gl_absname_cpp="$ac_cpp" ;;
27519 esac
27521 case "$host_os" in
27522 mingw*)
27523 gl_dirsep_regex='[/\\]'
27526 gl_dirsep_regex='\/'
27528 esac
27529 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27531 gl_header_literal_regex=`echo 'sys/stat.h' \
27532 | sed -e "$gl_make_literal_regex_sed"`
27533 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27534 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27535 s|^/[^/]|//&|
27539 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27540 sed -n "$gl_absolute_header_sed"`'"'
27541 else
27542 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
27547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
27548 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
27550 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
27552 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27553 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27554 gl_next_as_first_directive='<'sys/stat.h'>'
27555 else
27556 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27557 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
27559 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
27571 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
27573 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
27577 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
27578 #include <sys/stat.h>
27580 if test "x$ac_cv_type_nlink_t" = x""yes; then :
27582 else
27584 $as_echo "#define nlink_t int" >>confdefs.h
27605 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
27607 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
27608 ac_have_decl=1
27609 else
27610 ac_have_decl=0
27613 cat >>confdefs.h <<_ACEOF
27614 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
27615 _ACEOF
27617 if test $ac_cv_have_decl_localtime_r = no; then
27618 HAVE_DECL_LOCALTIME_R=0
27622 if test $ac_cv_func_localtime_r = yes; then
27623 HAVE_LOCALTIME_R=1
27624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
27625 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
27626 if test "${gl_cv_time_r_posix+set}" = set; then :
27627 $as_echo_n "(cached) " >&6
27628 else
27629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27630 /* end confdefs.h. */
27631 #include <time.h>
27633 main ()
27635 /* We don't need to append 'restrict's to the argument types,
27636 even though the POSIX signature has the 'restrict's,
27637 since C99 says they can't affect type compatibility. */
27638 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
27639 if (ptr) return 0;
27640 /* Check the return type is a pointer.
27641 On HP-UX 10 it is 'int'. */
27642 *localtime_r (0, 0);
27644 return 0;
27647 _ACEOF
27648 if ac_fn_c_try_compile "$LINENO"; then :
27649 gl_cv_time_r_posix=yes
27650 else
27651 gl_cv_time_r_posix=no
27653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
27657 $as_echo "$gl_cv_time_r_posix" >&6; }
27658 if test $gl_cv_time_r_posix = yes; then
27659 REPLACE_LOCALTIME_R=0
27660 else
27661 REPLACE_LOCALTIME_R=1
27663 else
27664 HAVE_LOCALTIME_R=0
27667 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
27676 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
27687 GNULIB_TIME_R=1
27698 LIB_TIMER_TIME=
27700 gl_saved_libs=$LIBS
27701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
27702 $as_echo_n "checking for library containing timer_settime... " >&6; }
27703 if test "${ac_cv_search_timer_settime+set}" = set; then :
27704 $as_echo_n "(cached) " >&6
27705 else
27706 ac_func_search_save_LIBS=$LIBS
27707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27708 /* end confdefs.h. */
27710 /* Override any GCC internal prototype to avoid an error.
27711 Use char because int might match the return type of a GCC
27712 builtin and then its argument prototype would still apply. */
27713 #ifdef __cplusplus
27714 extern "C"
27715 #endif
27716 char timer_settime ();
27718 main ()
27720 return timer_settime ();
27722 return 0;
27724 _ACEOF
27725 for ac_lib in '' rt posix4; do
27726 if test -z "$ac_lib"; then
27727 ac_res="none required"
27728 else
27729 ac_res=-l$ac_lib
27730 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27732 if ac_fn_c_try_link "$LINENO"; then :
27733 ac_cv_search_timer_settime=$ac_res
27735 rm -f core conftest.err conftest.$ac_objext \
27736 conftest$ac_exeext
27737 if test "${ac_cv_search_timer_settime+set}" = set; then :
27738 break
27740 done
27741 if test "${ac_cv_search_timer_settime+set}" = set; then :
27743 else
27744 ac_cv_search_timer_settime=no
27746 rm conftest.$ac_ext
27747 LIBS=$ac_func_search_save_LIBS
27749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
27750 $as_echo "$ac_cv_search_timer_settime" >&6; }
27751 ac_res=$ac_cv_search_timer_settime
27752 if test "$ac_res" != no; then :
27753 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27754 test "$ac_cv_search_timer_settime" = "none required" ||
27755 LIB_TIMER_TIME=$ac_cv_search_timer_settime
27758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27759 /* end confdefs.h. */
27761 #include <features.h>
27762 #ifdef __GNU_LIBRARY__
27763 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
27764 && !defined __UCLIBC__
27765 Thread emulation available
27766 #endif
27767 #endif
27769 _ACEOF
27770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27771 $EGREP "Thread" >/dev/null 2>&1; then :
27772 LIB_TIMER_TIME="$LIB_TIMER_TIME $LIBMULTITHREAD"
27774 rm -f conftest*
27776 for ac_func in timer_settime
27777 do :
27778 ac_fn_c_check_func "$LINENO" "timer_settime" "ac_cv_func_timer_settime"
27779 if test "x$ac_cv_func_timer_settime" = x""yes; then :
27780 cat >>confdefs.h <<_ACEOF
27781 #define HAVE_TIMER_SETTIME 1
27782 _ACEOF
27785 done
27787 LIBS=$gl_saved_libs
27802 if test $gl_cv_have_include_next = yes; then
27803 gl_cv_next_unistd_h='<'unistd.h'>'
27804 else
27805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
27806 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
27807 if test "${gl_cv_next_unistd_h+set}" = set; then :
27808 $as_echo_n "(cached) " >&6
27809 else
27811 if test $ac_cv_header_unistd_h = yes; then
27814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27815 /* end confdefs.h. */
27816 #include <unistd.h>
27818 _ACEOF
27819 case "$host_os" in
27820 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27821 *) gl_absname_cpp="$ac_cpp" ;;
27822 esac
27824 case "$host_os" in
27825 mingw*)
27826 gl_dirsep_regex='[/\\]'
27829 gl_dirsep_regex='\/'
27831 esac
27832 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27834 gl_header_literal_regex=`echo 'unistd.h' \
27835 | sed -e "$gl_make_literal_regex_sed"`
27836 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27837 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27838 s|^/[^/]|//&|
27842 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27843 sed -n "$gl_absolute_header_sed"`'"'
27844 else
27845 gl_cv_next_unistd_h='<'unistd.h'>'
27850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
27851 $as_echo "$gl_cv_next_unistd_h" >&6; }
27853 NEXT_UNISTD_H=$gl_cv_next_unistd_h
27855 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27856 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27857 gl_next_as_first_directive='<'unistd.h'>'
27858 else
27859 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27860 gl_next_as_first_directive=$gl_cv_next_unistd_h
27862 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
27867 if test $ac_cv_header_unistd_h = yes; then
27868 HAVE_UNISTD_H=1
27869 else
27870 HAVE_UNISTD_H=0
27883 if test $ac_cv_have_decl_unsetenv = no; then
27884 HAVE_DECL_UNSETENV=0
27886 for ac_func in unsetenv
27887 do :
27888 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
27889 if test "x$ac_cv_func_unsetenv" = x""yes; then :
27890 cat >>confdefs.h <<_ACEOF
27891 #define HAVE_UNSETENV 1
27892 _ACEOF
27895 done
27897 if test $ac_cv_func_unsetenv = no; then
27898 HAVE_UNSETENV=0
27899 else
27900 HAVE_UNSETENV=1
27901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
27902 $as_echo_n "checking for unsetenv() return type... " >&6; }
27903 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
27904 $as_echo_n "(cached) " >&6
27905 else
27906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27907 /* end confdefs.h. */
27909 #undef _BSD
27910 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
27911 #include <stdlib.h>
27912 extern
27913 #ifdef __cplusplus
27915 #endif
27916 int unsetenv (const char *name);
27919 main ()
27923 return 0;
27925 _ACEOF
27926 if ac_fn_c_try_compile "$LINENO"; then :
27927 gt_cv_func_unsetenv_ret='int'
27928 else
27929 gt_cv_func_unsetenv_ret='void'
27931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
27934 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
27935 if test $gt_cv_func_unsetenv_ret = 'void'; then
27937 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
27939 REPLACE_UNSETENV=1
27942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
27943 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
27944 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
27945 $as_echo_n "(cached) " >&6
27946 else
27947 if test "$cross_compiling" = yes; then :
27948 case "$host_os" in
27949 # Guess yes on glibc systems.
27950 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
27951 # If we don't know, assume the worst.
27952 *) gl_cv_func_unsetenv_works="guessing no" ;;
27953 esac
27955 else
27956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27957 /* end confdefs.h. */
27959 #include <stdlib.h>
27960 #include <errno.h>
27961 extern char **environ;
27964 main ()
27967 char entry1[] = "a=1";
27968 char entry2[] = "b=2";
27969 char *env[] = { entry1, entry2, NULL };
27970 if (putenv ((char *) "a=1")) return 1;
27971 if (putenv (entry2)) return 2;
27972 entry2[0] = 'a';
27973 unsetenv ("a");
27974 if (getenv ("a")) return 3;
27975 if (!unsetenv ("") || errno != EINVAL) return 4;
27976 entry2[0] = 'b';
27977 environ = env;
27978 if (!getenv ("a")) return 5;
27979 entry2[0] = 'a';
27980 unsetenv ("a");
27981 if (getenv ("a")) return 6;
27984 return 0;
27986 _ACEOF
27987 if ac_fn_c_try_run "$LINENO"; then :
27988 gl_cv_func_unsetenv_works=yes
27989 else
27990 gl_cv_func_unsetenv_works=no
27992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27993 conftest.$ac_objext conftest.beam conftest.$ac_ext
27997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
27998 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
27999 case "$gl_cv_func_unsetenv_works" in
28000 *yes) ;;
28002 REPLACE_UNSETENV=1
28004 esac
28007 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
28016 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
28028 GNULIB_UNSETENV=1
28040 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
28041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
28042 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
28043 if test "${gl_cv_func_futimesat_works+set}" = set; then :
28044 $as_echo_n "(cached) " >&6
28045 else
28046 touch conftest.file
28047 if test "$cross_compiling" = yes; then :
28048 case "$host_os" in
28049 # Guess yes on glibc systems.
28050 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
28051 # If we don't know, assume the worst.
28052 *) gl_cv_func_futimesat_works="guessing no" ;;
28053 esac
28055 else
28056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28057 /* end confdefs.h. */
28059 #include <stddef.h>
28060 #include <sys/times.h>
28061 #include <fcntl.h>
28064 main ()
28066 int fd = open ("conftest.file", O_RDWR);
28067 if (fd < 0) return 1;
28068 if (futimesat (fd, NULL, NULL)) return 2;
28071 return 0;
28073 _ACEOF
28074 if ac_fn_c_try_run "$LINENO"; then :
28075 gl_cv_func_futimesat_works=yes
28076 else
28077 gl_cv_func_futimesat_works=no
28079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28080 conftest.$ac_objext conftest.beam conftest.$ac_ext
28083 rm -f conftest.file
28085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
28086 $as_echo "$gl_cv_func_futimesat_works" >&6; }
28087 case "$gl_cv_func_futimesat_works" in
28088 *yes) ;;
28091 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
28094 esac
28097 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=false
28098 gl_gnulib_enabled_dosname=false
28099 gl_gnulib_enabled_euidaccess=false
28100 gl_gnulib_enabled_getdtablesize=false
28101 gl_gnulib_enabled_getgroups=false
28102 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
28103 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=false
28104 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=false
28105 gl_gnulib_enabled_pathmax=false
28106 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=false
28107 gl_gnulib_enabled_secure_getenv=false
28108 gl_gnulib_enabled_stat=false
28109 gl_gnulib_enabled_strtoll=false
28110 gl_gnulib_enabled_strtoull=false
28111 gl_gnulib_enabled_tempname=false
28112 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=false
28113 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b ()
28115 if ! $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
28124 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
28126 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=true
28129 func_gl_gnulib_m4code_dosname ()
28131 if ! $gl_gnulib_enabled_dosname; then
28132 gl_gnulib_enabled_dosname=true
28135 func_gl_gnulib_m4code_euidaccess ()
28137 if ! $gl_gnulib_enabled_euidaccess; then
28143 for ac_func in euidaccess
28144 do :
28145 ac_fn_c_check_func "$LINENO" "euidaccess" "ac_cv_func_euidaccess"
28146 if test "x$ac_cv_func_euidaccess" = x""yes; then :
28147 cat >>confdefs.h <<_ACEOF
28148 #define HAVE_EUIDACCESS 1
28149 _ACEOF
28152 done
28154 if test $ac_cv_func_euidaccess = no; then
28155 HAVE_EUIDACCESS=0
28158 if test $HAVE_EUIDACCESS = 0; then
28167 gl_LIBOBJS="$gl_LIBOBJS euidaccess.$ac_objext"
28171 for ac_header in libgen.h
28172 do :
28173 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
28174 if test "x$ac_cv_header_libgen_h" = x""yes; then :
28175 cat >>confdefs.h <<_ACEOF
28176 #define HAVE_LIBGEN_H 1
28177 _ACEOF
28181 done
28184 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
28185 if test "x$ac_cv_func_getgroups" = x""yes; then :
28190 # If we don't yet have getgroups, see if it's in -lbsd.
28191 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
28192 ac_save_LIBS=$LIBS
28193 if test $ac_cv_func_getgroups = no; then
28194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
28195 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
28196 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
28197 $as_echo_n "(cached) " >&6
28198 else
28199 ac_check_lib_save_LIBS=$LIBS
28200 LIBS="-lbsd $LIBS"
28201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28202 /* end confdefs.h. */
28204 /* Override any GCC internal prototype to avoid an error.
28205 Use char because int might match the return type of a GCC
28206 builtin and then its argument prototype would still apply. */
28207 #ifdef __cplusplus
28208 extern "C"
28209 #endif
28210 char getgroups ();
28212 main ()
28214 return getgroups ();
28216 return 0;
28218 _ACEOF
28219 if ac_fn_c_try_link "$LINENO"; then :
28220 ac_cv_lib_bsd_getgroups=yes
28221 else
28222 ac_cv_lib_bsd_getgroups=no
28224 rm -f core conftest.err conftest.$ac_objext \
28225 conftest$ac_exeext conftest.$ac_ext
28226 LIBS=$ac_check_lib_save_LIBS
28228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
28229 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
28230 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
28231 GETGROUPS_LIB=-lbsd
28236 # Run the program to test the functionality of the system-supplied
28237 # getgroups function only if there is such a function.
28238 if test $ac_cv_func_getgroups = yes; then
28239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
28240 $as_echo_n "checking for working getgroups... " >&6; }
28241 if test "${ac_cv_func_getgroups_works+set}" = set; then :
28242 $as_echo_n "(cached) " >&6
28243 else
28244 if test "$cross_compiling" = yes; then :
28245 case "$host_os" in # ((
28246 # Guess yes on glibc systems.
28247 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
28248 # If we don't know, assume the worst.
28249 *) ac_cv_func_getgroups_works="guessing no" ;;
28250 esac
28252 else
28253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28254 /* end confdefs.h. */
28255 $ac_includes_default
28257 main ()
28259 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
28260 return getgroups (0, 0) == -1;
28262 return 0;
28265 _ACEOF
28266 if ac_fn_c_try_run "$LINENO"; then :
28267 ac_cv_func_getgroups_works=yes
28268 else
28269 ac_cv_func_getgroups_works=no
28271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28272 conftest.$ac_objext conftest.beam conftest.$ac_ext
28277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
28278 $as_echo "$ac_cv_func_getgroups_works" >&6; }
28279 else
28280 ac_cv_func_getgroups_works=no
28282 case "$ac_cv_func_getgroups_works" in
28283 *yes)
28285 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
28288 esac
28289 LIBS=$ac_save_LIBS
28292 # Solaris 9 and 10 need -lgen to get the eaccess function.
28293 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
28294 # programs in the package would end up linked with that potentially-shared
28295 # library, inducing unnecessary run-time overhead.
28296 LIB_EACCESS=
28298 gl_saved_libs=$LIBS
28299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
28300 $as_echo_n "checking for library containing eaccess... " >&6; }
28301 if test "${ac_cv_search_eaccess+set}" = set; then :
28302 $as_echo_n "(cached) " >&6
28303 else
28304 ac_func_search_save_LIBS=$LIBS
28305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28306 /* end confdefs.h. */
28308 /* Override any GCC internal prototype to avoid an error.
28309 Use char because int might match the return type of a GCC
28310 builtin and then its argument prototype would still apply. */
28311 #ifdef __cplusplus
28312 extern "C"
28313 #endif
28314 char eaccess ();
28316 main ()
28318 return eaccess ();
28320 return 0;
28322 _ACEOF
28323 for ac_lib in '' gen; do
28324 if test -z "$ac_lib"; then
28325 ac_res="none required"
28326 else
28327 ac_res=-l$ac_lib
28328 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28330 if ac_fn_c_try_link "$LINENO"; then :
28331 ac_cv_search_eaccess=$ac_res
28333 rm -f core conftest.err conftest.$ac_objext \
28334 conftest$ac_exeext
28335 if test "${ac_cv_search_eaccess+set}" = set; then :
28336 break
28338 done
28339 if test "${ac_cv_search_eaccess+set}" = set; then :
28341 else
28342 ac_cv_search_eaccess=no
28344 rm conftest.$ac_ext
28345 LIBS=$ac_func_search_save_LIBS
28347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
28348 $as_echo "$ac_cv_search_eaccess" >&6; }
28349 ac_res=$ac_cv_search_eaccess
28350 if test "$ac_res" != no; then :
28351 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28352 test "$ac_cv_search_eaccess" = "none required" ||
28353 LIB_EACCESS=$ac_cv_search_eaccess
28356 for ac_func in eaccess
28357 do :
28358 ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
28359 if test "x$ac_cv_func_eaccess" = x""yes; then :
28360 cat >>confdefs.h <<_ACEOF
28361 #define HAVE_EACCESS 1
28362 _ACEOF
28365 done
28367 LIBS=$gl_saved_libs
28375 GNULIB_EUIDACCESS=1
28381 gl_gnulib_enabled_euidaccess=true
28382 if test $HAVE_EUIDACCESS = 0; then
28383 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
28385 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
28386 if test $HAVE_EUIDACCESS = 0; then
28387 func_gl_gnulib_m4code_stat
28391 func_gl_gnulib_m4code_getdtablesize ()
28393 if ! $gl_gnulib_enabled_getdtablesize; then
28398 if test $ac_cv_func_getdtablesize = yes; then
28399 # Cygwin 1.7.25 automatically increases the RLIMIT_NOFILE soft limit
28400 # up to an unchangeable hard limit; all other platforms correctly
28401 # require setrlimit before getdtablesize() can report a larger value.
28402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
28403 $as_echo_n "checking whether getdtablesize works... " >&6; }
28404 if test "${gl_cv_func_getdtablesize_works+set}" = set; then :
28405 $as_echo_n "(cached) " >&6
28406 else
28407 if test "$cross_compiling" = yes; then :
28408 case "$host_os" in
28409 cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
28410 gl_cv_func_getdtablesize_works="guessing no" ;;
28411 *) gl_cv_func_getdtablesize_works="guessing yes" ;;
28412 esac
28413 else
28414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28415 /* end confdefs.h. */
28417 #include <unistd.h>
28419 main ()
28421 int size = getdtablesize();
28422 if (dup2 (0, getdtablesize()) != -1)
28423 return 1;
28424 if (size != getdtablesize())
28425 return 2;
28428 return 0;
28430 _ACEOF
28431 if ac_fn_c_try_run "$LINENO"; then :
28432 gl_cv_func_getdtablesize_works=yes
28433 else
28434 gl_cv_func_getdtablesize_works=no
28436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28437 conftest.$ac_objext conftest.beam conftest.$ac_ext
28442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
28443 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
28444 case "$gl_cv_func_getdtablesize_works" in
28445 *yes) ;;
28446 *) REPLACE_GETDTABLESIZE=1 ;;
28447 esac
28448 else
28449 HAVE_GETDTABLESIZE=0
28452 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
28461 gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
28470 GNULIB_GETDTABLESIZE=1
28476 gl_gnulib_enabled_getdtablesize=true
28479 func_gl_gnulib_m4code_getgroups ()
28481 if ! $gl_gnulib_enabled_getgroups; then
28487 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
28488 if test "x$ac_cv_func_getgroups" = x""yes; then :
28493 # If we don't yet have getgroups, see if it's in -lbsd.
28494 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
28495 ac_save_LIBS=$LIBS
28496 if test $ac_cv_func_getgroups = no; then
28497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
28498 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
28499 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
28500 $as_echo_n "(cached) " >&6
28501 else
28502 ac_check_lib_save_LIBS=$LIBS
28503 LIBS="-lbsd $LIBS"
28504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28505 /* end confdefs.h. */
28507 /* Override any GCC internal prototype to avoid an error.
28508 Use char because int might match the return type of a GCC
28509 builtin and then its argument prototype would still apply. */
28510 #ifdef __cplusplus
28511 extern "C"
28512 #endif
28513 char getgroups ();
28515 main ()
28517 return getgroups ();
28519 return 0;
28521 _ACEOF
28522 if ac_fn_c_try_link "$LINENO"; then :
28523 ac_cv_lib_bsd_getgroups=yes
28524 else
28525 ac_cv_lib_bsd_getgroups=no
28527 rm -f core conftest.err conftest.$ac_objext \
28528 conftest$ac_exeext conftest.$ac_ext
28529 LIBS=$ac_check_lib_save_LIBS
28531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
28532 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
28533 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
28534 GETGROUPS_LIB=-lbsd
28539 # Run the program to test the functionality of the system-supplied
28540 # getgroups function only if there is such a function.
28541 if test $ac_cv_func_getgroups = yes; then
28542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
28543 $as_echo_n "checking for working getgroups... " >&6; }
28544 if test "${ac_cv_func_getgroups_works+set}" = set; then :
28545 $as_echo_n "(cached) " >&6
28546 else
28547 if test "$cross_compiling" = yes; then :
28548 case "$host_os" in # ((
28549 # Guess yes on glibc systems.
28550 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
28551 # If we don't know, assume the worst.
28552 *) ac_cv_func_getgroups_works="guessing no" ;;
28553 esac
28555 else
28556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28557 /* end confdefs.h. */
28558 $ac_includes_default
28560 main ()
28562 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
28563 return getgroups (0, 0) == -1;
28565 return 0;
28568 _ACEOF
28569 if ac_fn_c_try_run "$LINENO"; then :
28570 ac_cv_func_getgroups_works=yes
28571 else
28572 ac_cv_func_getgroups_works=no
28574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28575 conftest.$ac_objext conftest.beam conftest.$ac_ext
28580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
28581 $as_echo "$ac_cv_func_getgroups_works" >&6; }
28582 else
28583 ac_cv_func_getgroups_works=no
28585 case "$ac_cv_func_getgroups_works" in
28586 *yes)
28588 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
28591 esac
28592 LIBS=$ac_save_LIBS
28594 if test $ac_cv_func_getgroups != yes; then
28595 HAVE_GETGROUPS=0
28596 else
28597 if test "$ac_cv_type_getgroups" != gid_t \
28598 || { case "$ac_cv_func_getgroups_works" in
28599 *yes) false;;
28600 *) true;;
28601 esac
28602 }; then
28603 REPLACE_GETGROUPS=1
28605 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
28607 else
28608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
28609 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
28610 if test "${gl_cv_func_getgroups_works+set}" = set; then :
28611 $as_echo_n "(cached) " >&6
28612 else
28613 if test "$cross_compiling" = yes; then :
28614 case "$host_os" in
28615 # Guess yes on glibc systems.
28616 *-gnu*) gl_cv_func_getgroups_works="guessing yes" ;;
28617 # If we don't know, assume the worst.
28618 *) gl_cv_func_getgroups_works="guessing no" ;;
28619 esac
28621 else
28622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28623 /* end confdefs.h. */
28624 $ac_includes_default
28626 main ()
28628 int size = getgroups (0, 0);
28629 gid_t *list = malloc (size * sizeof *list);
28630 return getgroups (-1, list) != -1;
28632 return 0;
28634 _ACEOF
28635 if ac_fn_c_try_run "$LINENO"; then :
28636 gl_cv_func_getgroups_works=yes
28637 else
28638 gl_cv_func_getgroups_works=no
28640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28641 conftest.$ac_objext conftest.beam conftest.$ac_ext
28645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
28646 $as_echo "$gl_cv_func_getgroups_works" >&6; }
28647 case "$gl_cv_func_getgroups_works" in
28648 *yes) ;;
28649 *) REPLACE_GETGROUPS=1 ;;
28650 esac
28653 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
28655 if test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1; then
28664 gl_LIBOBJS="$gl_LIBOBJS getgroups.$ac_objext"
28672 GNULIB_GETGROUPS=1
28678 gl_gnulib_enabled_getgroups=true
28681 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
28683 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
28686 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
28689 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1 ()
28691 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
28697 ac_fn_c_check_func "$LINENO" "group_member" "ac_cv_func_group_member"
28698 if test "x$ac_cv_func_group_member" = x""yes; then :
28700 else
28702 HAVE_GROUP_MEMBER=0
28707 if test $HAVE_GROUP_MEMBER = 0; then
28716 gl_LIBOBJS="$gl_LIBOBJS group-member.$ac_objext"
28727 GNULIB_GROUP_MEMBER=1
28733 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=true
28734 if test $HAVE_GROUP_MEMBER = 0; then
28735 func_gl_gnulib_m4code_getgroups
28737 if test $HAVE_GROUP_MEMBER = 0; then
28738 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
28742 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7 ()
28744 if ! $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
28745 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=true
28748 func_gl_gnulib_m4code_pathmax ()
28750 if ! $gl_gnulib_enabled_pathmax; then
28754 gl_gnulib_enabled_pathmax=true
28757 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c ()
28759 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
28760 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=true
28763 func_gl_gnulib_m4code_secure_getenv ()
28765 if ! $gl_gnulib_enabled_secure_getenv; then
28771 if test $ac_cv_func_secure_getenv = no; then
28772 HAVE_SECURE_GETENV=0
28775 if test $HAVE_SECURE_GETENV = 0; then
28784 gl_LIBOBJS="$gl_LIBOBJS secure_getenv.$ac_objext"
28787 for ac_func in __secure_getenv
28788 do :
28789 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
28790 if test "x$ac_cv_func___secure_getenv" = x""yes; then :
28791 cat >>confdefs.h <<_ACEOF
28792 #define HAVE___SECURE_GETENV 1
28793 _ACEOF
28796 done
28798 if test $ac_cv_func___secure_getenv = no; then
28799 for ac_func in issetugid
28800 do :
28801 ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
28802 if test "x$ac_cv_func_issetugid" = x""yes; then :
28803 cat >>confdefs.h <<_ACEOF
28804 #define HAVE_ISSETUGID 1
28805 _ACEOF
28808 done
28818 GNULIB_SECURE_GETENV=1
28824 gl_gnulib_enabled_secure_getenv=true
28827 func_gl_gnulib_m4code_stat ()
28829 if ! $gl_gnulib_enabled_stat; then
28833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
28834 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
28835 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
28836 $as_echo_n "(cached) " >&6
28837 else
28838 if test "$cross_compiling" = yes; then :
28839 case $host_os in
28840 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
28841 *) gl_cv_func_stat_dir_slash="guessing yes";;
28842 esac
28843 else
28844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28845 /* end confdefs.h. */
28846 #include <sys/stat.h>
28849 main ()
28851 struct stat st; return stat (".", &st) != stat ("./", &st);
28853 return 0;
28855 _ACEOF
28856 if ac_fn_c_try_run "$LINENO"; then :
28857 gl_cv_func_stat_dir_slash=yes
28858 else
28859 gl_cv_func_stat_dir_slash=no
28861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28862 conftest.$ac_objext conftest.beam conftest.$ac_ext
28866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
28867 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
28868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
28869 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
28870 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
28871 $as_echo_n "(cached) " >&6
28872 else
28873 touch conftest.tmp
28874 # Assume that if we have lstat, we can also check symlinks.
28875 if test $ac_cv_func_lstat = yes; then
28876 ln -s conftest.tmp conftest.lnk
28878 if test "$cross_compiling" = yes; then :
28879 case "$host_os" in
28880 # Guess yes on glibc systems.
28881 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
28882 # If we don't know, assume the worst.
28883 *) gl_cv_func_stat_file_slash="guessing no" ;;
28884 esac
28886 else
28887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28888 /* end confdefs.h. */
28889 #include <sys/stat.h>
28892 main ()
28894 int result = 0;
28895 struct stat st;
28896 if (!stat ("conftest.tmp/", &st))
28897 result |= 1;
28898 #if HAVE_LSTAT
28899 if (!stat ("conftest.lnk/", &st))
28900 result |= 2;
28901 #endif
28902 return result;
28905 return 0;
28907 _ACEOF
28908 if ac_fn_c_try_run "$LINENO"; then :
28909 gl_cv_func_stat_file_slash=yes
28910 else
28911 gl_cv_func_stat_file_slash=no
28913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28914 conftest.$ac_objext conftest.beam conftest.$ac_ext
28917 rm -f conftest.tmp conftest.lnk
28919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
28920 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
28921 case $gl_cv_func_stat_dir_slash in
28922 *no) REPLACE_STAT=1
28924 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
28926 esac
28927 case $gl_cv_func_stat_file_slash in
28928 *no) REPLACE_STAT=1
28930 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
28932 esac
28934 if test $REPLACE_STAT = 1; then
28943 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
28952 GNULIB_STAT=1
28958 gl_gnulib_enabled_stat=true
28959 if test $REPLACE_STAT = 1; then
28960 func_gl_gnulib_m4code_dosname
28962 if test $REPLACE_STAT = 1; then
28963 func_gl_gnulib_m4code_pathmax
28967 func_gl_gnulib_m4code_strtoll ()
28969 if ! $gl_gnulib_enabled_strtoll; then
28973 if test "$ac_cv_type_long_long_int" = yes; then
28974 for ac_func in strtoll
28975 do :
28976 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28977 if test "x$ac_cv_func_strtoll" = x""yes; then :
28978 cat >>confdefs.h <<_ACEOF
28979 #define HAVE_STRTOLL 1
28980 _ACEOF
28983 done
28985 if test $ac_cv_func_strtoll = no; then
28986 HAVE_STRTOLL=0
28990 if test $HAVE_STRTOLL = 0; then
28999 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
29010 GNULIB_STRTOLL=1
29016 gl_gnulib_enabled_strtoll=true
29019 func_gl_gnulib_m4code_strtoull ()
29021 if ! $gl_gnulib_enabled_strtoull; then
29025 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
29026 for ac_func in strtoull
29027 do :
29028 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
29029 if test "x$ac_cv_func_strtoull" = x""yes; then :
29030 cat >>confdefs.h <<_ACEOF
29031 #define HAVE_STRTOULL 1
29032 _ACEOF
29035 done
29037 if test $ac_cv_func_strtoull = no; then
29038 HAVE_STRTOULL=0
29042 if test $HAVE_STRTOULL = 0; then
29051 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
29062 GNULIB_STRTOULL=1
29068 gl_gnulib_enabled_strtoull=true
29071 func_gl_gnulib_m4code_tempname ()
29073 if ! $gl_gnulib_enabled_tempname; then
29079 gl_gnulib_enabled_tempname=true
29080 func_gl_gnulib_m4code_secure_getenv
29083 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec ()
29085 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
29086 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=true
29089 if test $HAVE_FACCESSAT = 0; then
29090 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
29092 if test $HAVE_FACCESSAT = 0; then
29093 func_gl_gnulib_m4code_dosname
29095 if test $HAVE_FACCESSAT = 0; then
29096 func_gl_gnulib_m4code_euidaccess
29098 if test $HAVE_FACCESSAT = 0; then
29099 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
29101 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
29102 func_gl_gnulib_m4code_getdtablesize
29104 if test $HAVE_FDOPENDIR = 0; then
29105 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
29107 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
29108 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
29110 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
29111 func_gl_gnulib_m4code_dosname
29113 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
29114 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
29116 if test $REPLACE_GETOPT = 1; then
29117 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
29119 if test $REPLACE_LSTAT = 1; then
29120 func_gl_gnulib_m4code_dosname
29122 if test $REPLACE_LSTAT = 1; then
29123 func_gl_gnulib_m4code_stat
29125 if test $HAVE_MKOSTEMP = 0; then
29126 func_gl_gnulib_m4code_tempname
29128 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
29129 func_gl_gnulib_m4code_stat
29131 if test $HAVE_READLINKAT = 0; then
29132 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
29134 if test $HAVE_READLINKAT = 0; then
29135 func_gl_gnulib_m4code_dosname
29137 if test $HAVE_READLINKAT = 0; then
29138 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
29140 if { test $HAVE_DECL_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
29141 func_gl_gnulib_m4code_strtoll
29143 if { test $HAVE_DECL_STRTOUMAX = 0 || test $REPLACE_STRTOUMAX = 1; } && test $ac_cv_type_unsigned_long_long_int = yes; then
29144 func_gl_gnulib_m4code_strtoull
29147 if $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
29148 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE=
29149 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE='#'
29150 else
29151 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE='#'
29152 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE=
29155 if $gl_gnulib_enabled_dosname; then
29156 gl_GNULIB_ENABLED_dosname_TRUE=
29157 gl_GNULIB_ENABLED_dosname_FALSE='#'
29158 else
29159 gl_GNULIB_ENABLED_dosname_TRUE='#'
29160 gl_GNULIB_ENABLED_dosname_FALSE=
29163 if $gl_gnulib_enabled_euidaccess; then
29164 gl_GNULIB_ENABLED_euidaccess_TRUE=
29165 gl_GNULIB_ENABLED_euidaccess_FALSE='#'
29166 else
29167 gl_GNULIB_ENABLED_euidaccess_TRUE='#'
29168 gl_GNULIB_ENABLED_euidaccess_FALSE=
29171 if $gl_gnulib_enabled_getdtablesize; then
29172 gl_GNULIB_ENABLED_getdtablesize_TRUE=
29173 gl_GNULIB_ENABLED_getdtablesize_FALSE='#'
29174 else
29175 gl_GNULIB_ENABLED_getdtablesize_TRUE='#'
29176 gl_GNULIB_ENABLED_getdtablesize_FALSE=
29179 if $gl_gnulib_enabled_getgroups; then
29180 gl_GNULIB_ENABLED_getgroups_TRUE=
29181 gl_GNULIB_ENABLED_getgroups_FALSE='#'
29182 else
29183 gl_GNULIB_ENABLED_getgroups_TRUE='#'
29184 gl_GNULIB_ENABLED_getgroups_FALSE=
29187 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
29188 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
29189 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
29190 else
29191 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
29192 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
29195 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
29196 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE=
29197 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE='#'
29198 else
29199 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE='#'
29200 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE=
29203 if $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
29204 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE=
29205 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE='#'
29206 else
29207 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE='#'
29208 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE=
29211 if $gl_gnulib_enabled_pathmax; then
29212 gl_GNULIB_ENABLED_pathmax_TRUE=
29213 gl_GNULIB_ENABLED_pathmax_FALSE='#'
29214 else
29215 gl_GNULIB_ENABLED_pathmax_TRUE='#'
29216 gl_GNULIB_ENABLED_pathmax_FALSE=
29219 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
29220 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE=
29221 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE='#'
29222 else
29223 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE='#'
29224 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE=
29227 if $gl_gnulib_enabled_secure_getenv; then
29228 gl_GNULIB_ENABLED_secure_getenv_TRUE=
29229 gl_GNULIB_ENABLED_secure_getenv_FALSE='#'
29230 else
29231 gl_GNULIB_ENABLED_secure_getenv_TRUE='#'
29232 gl_GNULIB_ENABLED_secure_getenv_FALSE=
29235 if $gl_gnulib_enabled_stat; then
29236 gl_GNULIB_ENABLED_stat_TRUE=
29237 gl_GNULIB_ENABLED_stat_FALSE='#'
29238 else
29239 gl_GNULIB_ENABLED_stat_TRUE='#'
29240 gl_GNULIB_ENABLED_stat_FALSE=
29243 if $gl_gnulib_enabled_strtoll; then
29244 gl_GNULIB_ENABLED_strtoll_TRUE=
29245 gl_GNULIB_ENABLED_strtoll_FALSE='#'
29246 else
29247 gl_GNULIB_ENABLED_strtoll_TRUE='#'
29248 gl_GNULIB_ENABLED_strtoll_FALSE=
29251 if $gl_gnulib_enabled_strtoull; then
29252 gl_GNULIB_ENABLED_strtoull_TRUE=
29253 gl_GNULIB_ENABLED_strtoull_FALSE='#'
29254 else
29255 gl_GNULIB_ENABLED_strtoull_TRUE='#'
29256 gl_GNULIB_ENABLED_strtoull_FALSE=
29259 if $gl_gnulib_enabled_tempname; then
29260 gl_GNULIB_ENABLED_tempname_TRUE=
29261 gl_GNULIB_ENABLED_tempname_FALSE='#'
29262 else
29263 gl_GNULIB_ENABLED_tempname_TRUE='#'
29264 gl_GNULIB_ENABLED_tempname_FALSE=
29267 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
29268 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE=
29269 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE='#'
29270 else
29271 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE='#'
29272 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE=
29275 # End of code from modules
29285 gltests_libdeps=
29286 gltests_ltlibdeps=
29296 gl_source_base='tests'
29297 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
29299 gl_module_indicator_condition=$gltests_WITNESS
29310 LIBGNU_LIBDEPS="$gl_libdeps"
29312 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
29315 CFLAGS=$SAVE_CFLAGS
29316 LIBS=$SAVE_LIBS
29318 if test "${opsys}" = "mingw32"; then
29319 CPPFLAGS="$CPPFLAGS -DUSE_CRT_DLL=1 -I $srcdir/nt/inc"
29320 # Remove unneeded switches from the value of CC that goes to Makefiles
29321 CC=`echo $CC | sed -e "s,$GCC_TEST_OPTIONS,,"`
29324 case "$opsys" in
29325 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
29327 darwin)
29328 ## The -headerpad option tells ld (see man page) to leave room at the
29329 ## end of the header for adding load commands. Needed for dumping.
29330 ## 0x690 is the total size of 30 segment load commands (at 56
29331 ## each); under Cocoa 31 commands are required.
29332 if test "$HAVE_NS" = "yes"; then
29333 libs_nsgui="-framework AppKit"
29334 if test "$NS_IMPL_COCOA" = "yes"; then
29335 libs_nsgui="$libs_nsgui -framework IOKit"
29337 headerpad_extra=6C8
29338 else
29339 libs_nsgui=
29340 headerpad_extra=690
29342 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
29344 ## This is here because src/Makefile.in did some extra fiddling around
29345 ## with LD_SWITCH_SYSTEM. It seems cleaner to put this in
29346 ## LD_SWITCH_SYSTEM_TEMACS instead,
29347 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
29348 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
29351 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
29352 ## find X at run-time.
29353 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
29354 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
29355 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
29356 ## had different values in configure (in ac_link) and src/Makefile.in.
29357 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
29358 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
29360 mingw32)
29361 ## MinGW64 does not prepend an underscore to symbols, so we must
29362 ## pass a different -entry switch to linker. FIXME: It is better
29363 ## to make the entry points the same by changing unexw32.c.
29364 case "$canonical" in
29365 x86_64-*-*) LD_SWITCH_SYSTEM_TEMACS="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,_start -Wl,-Map,./temacs.map" ;;
29366 *) LD_SWITCH_SYSTEM_TEMACS="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,__start -Wl,-Map,./temacs.map" ;;
29367 esac
29370 openbsd) LD_SWITCH_SYSTEM_TEMACS='-nopie' ;;
29372 *) LD_SWITCH_SYSTEM_TEMACS= ;;
29373 esac
29375 if test x$ac_enable_profiling != x ; then
29376 case $opsys in
29377 *freebsd | gnu-linux) ;;
29378 *) LD_SWITCH_SYSTEM_TEMACS="$LD_SWITCH_SYSTEM_TEMACS -pg" ;;
29379 esac
29382 LD_SWITCH_SYSTEM_TEMACS="$LDFLAGS_NOCOMBRELOC $LD_SWITCH_SYSTEM_TEMACS"
29386 ## MinGW-specific post-link processing of temacs.
29387 TEMACS_POST_LINK=":"
29388 ADDSECTION=
29389 EMACS_HEAPSIZE=
29390 if test "${opsys}" = "mingw32"; then
29391 TEMACS_POST_LINK="\$(MINGW_TEMACS_POST_LINK)"
29392 ADDSECTION="../nt/addsection\$(EXEEXT)"
29393 ## Preload heap size of temacs.exe in MB.
29394 case "$canonical" in
29395 x86_64-*-*) EMACS_HEAPSIZE=42 ;;
29396 *) EMACS_HEAPSIZE=27 ;;
29397 esac
29404 ## Common for all window systems
29405 if test "$window_system" != "none"; then
29407 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
29409 WINDOW_SYSTEM_OBJ="fontset.o fringe.o image.o"
29416 #### Report on what we decided to do.
29417 #### Report GTK as a toolkit, even if it doesn't use Xt.
29418 #### It makes printing result more understandable as using GTK sets
29419 #### toolkit_scroll_bars to yes by default.
29420 if test "${HAVE_GTK}" = "yes"; then
29421 USE_X_TOOLKIT="$USE_GTK_TOOLKIT"
29424 if test $USE_ACL -ne 0; then
29425 acl_summary="yes $LIB_ACL"
29426 else
29427 acl_summary=no
29430 echo "
29431 Configured for \`${canonical}'.
29433 Where should the build process find the source code? ${srcdir}
29434 What compiler should emacs be built with? ${CC} ${CFLAGS}
29435 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
29436 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
29437 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
29438 What window system should Emacs use? ${window_system}
29439 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
29441 if test -n "${x_includes}"; then
29442 echo " Where do we find X Windows header files? ${x_includes}"
29443 else
29444 echo " Where do we find X Windows header files? Standard dirs"
29446 if test -n "${x_libraries}"; then
29447 echo " Where do we find X Windows libraries? ${x_libraries}"
29448 else
29449 echo " Where do we find X Windows libraries? Standard dirs"
29452 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
29453 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
29454 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
29455 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
29456 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
29457 echo " Does Emacs use -lpng? ${HAVE_PNG}"
29458 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
29459 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
29461 echo " Does Emacs support sound? ${HAVE_SOUND}"
29463 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
29464 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
29465 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
29466 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
29467 echo " Does Emacs use a file notification library? ${NOTIFY_SUMMARY}"
29468 echo " Does Emacs use access control lists? ${acl_summary}"
29469 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
29470 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
29471 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
29473 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
29474 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
29475 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
29476 echo " Does Emacs use -lxft? ${HAVE_XFT}"
29477 echo " Does Emacs directly use zlib? ${HAVE_ZLIB}"
29479 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
29480 echo
29482 if test -n "${EMACSDATA}"; then
29483 echo " Environment variable EMACSDATA set to: $EMACSDATA"
29485 if test -n "${EMACSDOC}"; then
29486 echo " Environment variable EMACSDOC set to: $EMACSDOC"
29489 echo
29491 if test "$HAVE_NS" = "yes"; then
29492 echo
29493 echo "You must run \"${MAKE-make} install\" in order to test the built application.
29494 The installed application will go to nextstep/Emacs.app and can be
29495 run or moved from there."
29496 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
29497 echo "The application will be fully self-contained."
29498 else
29499 echo "The lisp resources for the application will be installed under ${prefix}.
29500 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
29501 to run if these resources are not installed."
29503 echo
29506 if test "${opsys}" = "cygwin"; then
29507 case `uname -r` in
29508 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
29509 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
29510 echo
29512 esac
29515 # Remove any trailing slashes in these variables.
29516 test "${prefix}" != NONE &&
29517 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
29518 test "${exec_prefix}" != NONE &&
29519 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
29521 if test "$HAVE_NS" = "yes"; then
29522 if test "$NS_IMPL_GNUSTEP" = yes; then
29523 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"
29525 ns_check_file=Resources/Info-gnustep.plist
29526 else
29527 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"
29529 ns_check_file=Contents/Info.plist
29534 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 nt/Makefile"
29536 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 nt/Makefile"
29539 opt_makefile=test/automated/Makefile
29541 if test -f "$srcdir/$opt_makefile.in"; then
29542 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
29543 ac_config_files="$ac_config_files test/automated/Makefile"
29548 opt_makefile=admin/unidata/Makefile
29550 if test -f "$srcdir/$opt_makefile.in"; then
29551 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
29552 ac_config_files="$ac_config_files admin/unidata/Makefile"
29557 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
29561 ac_config_commands="$ac_config_commands src/epaths.h"
29564 ac_config_commands="$ac_config_commands src/.gdbinit"
29567 cat >confcache <<\_ACEOF
29568 # This file is a shell script that caches the results of configure
29569 # tests run on this system so they can be shared between configure
29570 # scripts and configure runs, see configure's option --config-cache.
29571 # It is not useful on other systems. If it contains results you don't
29572 # want to keep, you may remove or edit it.
29574 # config.status only pays attention to the cache file if you give it
29575 # the --recheck option to rerun configure.
29577 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29578 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29579 # following values.
29581 _ACEOF
29583 # The following way of writing the cache mishandles newlines in values,
29584 # but we know of no workaround that is simple, portable, and efficient.
29585 # So, we kill variables containing newlines.
29586 # Ultrix sh set writes to stderr and can't be redirected directly,
29587 # and sets the high bit in the cache file unless we assign to the vars.
29589 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29590 eval ac_val=\$$ac_var
29591 case $ac_val in #(
29592 *${as_nl}*)
29593 case $ac_var in #(
29594 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29595 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29596 esac
29597 case $ac_var in #(
29598 _ | IFS | as_nl) ;; #(
29599 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29600 *) { eval $ac_var=; unset $ac_var;} ;;
29601 esac ;;
29602 esac
29603 done
29605 (set) 2>&1 |
29606 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29607 *${as_nl}ac_space=\ *)
29608 # `set' does not quote correctly, so add quotes: double-quote
29609 # substitution turns \\\\ into \\, and sed turns \\ into \.
29610 sed -n \
29611 "s/'/'\\\\''/g;
29612 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29613 ;; #(
29615 # `set' quotes correctly as required by POSIX, so do not add quotes.
29616 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29618 esac |
29619 sort
29621 sed '
29622 /^ac_cv_env_/b end
29623 t clear
29624 :clear
29625 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29626 t end
29627 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29628 :end' >>confcache
29629 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29630 if test -w "$cache_file"; then
29631 test "x$cache_file" != "x/dev/null" &&
29632 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29633 $as_echo "$as_me: updating cache $cache_file" >&6;}
29634 cat confcache >$cache_file
29635 else
29636 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29637 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29640 rm -f confcache
29642 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29643 # Let make expand exec_prefix.
29644 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29646 DEFS=-DHAVE_CONFIG_H
29648 ac_libobjs=
29649 ac_ltlibobjs=
29650 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29651 # 1. Remove the extension, and $U if already installed.
29652 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29653 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29654 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29655 # will be set to the directory where LIBOBJS objects are built.
29656 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29657 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29658 done
29659 LIBOBJS=$ac_libobjs
29661 LTLIBOBJS=$ac_ltlibobjs
29664 if test -n "$EXEEXT"; then
29665 am__EXEEXT_TRUE=
29666 am__EXEEXT_FALSE='#'
29667 else
29668 am__EXEEXT_TRUE='#'
29669 am__EXEEXT_FALSE=
29672 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29673 as_fn_error "conditional \"AMDEP\" was never defined.
29674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29676 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29677 as_fn_error "conditional \"am__fastdepCC\" was never defined.
29678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29680 if test -z "${BUILDING_FOR_WINDOWSNT_TRUE}" && test -z "${BUILDING_FOR_WINDOWSNT_FALSE}"; then
29681 as_fn_error "conditional \"BUILDING_FOR_WINDOWSNT\" was never defined.
29682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29684 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
29685 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
29686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29688 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
29689 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
29690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29692 if test -z "${GL_GENERATE_BYTESWAP_H_TRUE}" && test -z "${GL_GENERATE_BYTESWAP_H_FALSE}"; then
29693 as_fn_error "conditional \"GL_GENERATE_BYTESWAP_H\" was never defined.
29694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29697 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
29698 as_fn_error "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
29699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29701 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
29702 as_fn_error "conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
29703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29705 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
29706 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
29707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29709 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
29710 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
29711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29713 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
29714 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
29715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29717 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
29718 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
29719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29721 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
29722 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
29723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29725 if test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE}" && test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE}"; then
29726 as_fn_error "conditional \"gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b\" was never defined.
29727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29729 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
29730 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
29731 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29733 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
29734 as_fn_error "conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
29735 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29737 if test -z "${gl_GNULIB_ENABLED_getdtablesize_TRUE}" && test -z "${gl_GNULIB_ENABLED_getdtablesize_FALSE}"; then
29738 as_fn_error "conditional \"gl_GNULIB_ENABLED_getdtablesize\" was never defined.
29739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29741 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
29742 as_fn_error "conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
29743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29745 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
29746 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
29747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29749 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
29750 as_fn_error "conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
29751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29753 if test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE}" && test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE}"; then
29754 as_fn_error "conditional \"gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7\" was never defined.
29755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29757 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
29758 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
29759 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29761 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
29762 as_fn_error "conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
29763 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29765 if test -z "${gl_GNULIB_ENABLED_secure_getenv_TRUE}" && test -z "${gl_GNULIB_ENABLED_secure_getenv_FALSE}"; then
29766 as_fn_error "conditional \"gl_GNULIB_ENABLED_secure_getenv\" was never defined.
29767 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29769 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
29770 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
29771 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29773 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
29774 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
29775 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29777 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
29778 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
29779 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29781 if test -z "${gl_GNULIB_ENABLED_tempname_TRUE}" && test -z "${gl_GNULIB_ENABLED_tempname_FALSE}"; then
29782 as_fn_error "conditional \"gl_GNULIB_ENABLED_tempname\" was never defined.
29783 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29785 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
29786 as_fn_error "conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
29787 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29790 gl_libobjs=
29791 gl_ltlibobjs=
29792 if test -n "$gl_LIBOBJS"; then
29793 # Remove the extension.
29794 sed_drop_objext='s/\.o$//;s/\.obj$//'
29795 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29796 gl_libobjs="$gl_libobjs $i.$ac_objext"
29797 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
29798 done
29800 gl_LIBOBJS=$gl_libobjs
29802 gl_LTLIBOBJS=$gl_ltlibobjs
29806 gltests_libobjs=
29807 gltests_ltlibobjs=
29808 if test -n "$gltests_LIBOBJS"; then
29809 # Remove the extension.
29810 sed_drop_objext='s/\.o$//;s/\.obj$//'
29811 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29812 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
29813 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
29814 done
29816 gltests_LIBOBJS=$gltests_libobjs
29818 gltests_LTLIBOBJS=$gltests_ltlibobjs
29822 : ${CONFIG_STATUS=./config.status}
29823 ac_write_fail=0
29824 ac_clean_files_save=$ac_clean_files
29825 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29826 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29827 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29828 as_write_fail=0
29829 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29830 #! $SHELL
29831 # Generated by $as_me.
29832 # Run this file to recreate the current configuration.
29833 # Compiler output produced by configure, useful for debugging
29834 # configure, is in config.log if it exists.
29836 debug=false
29837 ac_cs_recheck=false
29838 ac_cs_silent=false
29840 SHELL=\${CONFIG_SHELL-$SHELL}
29841 export SHELL
29842 _ASEOF
29843 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29844 ## -------------------- ##
29845 ## M4sh Initialization. ##
29846 ## -------------------- ##
29848 # Be more Bourne compatible
29849 DUALCASE=1; export DUALCASE # for MKS sh
29850 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29851 emulate sh
29852 NULLCMD=:
29853 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29854 # is contrary to our usage. Disable this feature.
29855 alias -g '${1+"$@"}'='"$@"'
29856 setopt NO_GLOB_SUBST
29857 else
29858 case `(set -o) 2>/dev/null` in #(
29859 *posix*) :
29860 set -o posix ;; #(
29861 *) :
29863 esac
29867 as_nl='
29869 export as_nl
29870 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29871 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29872 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29873 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29874 # Prefer a ksh shell builtin over an external printf program on Solaris,
29875 # but without wasting forks for bash or zsh.
29876 if test -z "$BASH_VERSION$ZSH_VERSION" \
29877 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29878 as_echo='print -r --'
29879 as_echo_n='print -rn --'
29880 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29881 as_echo='printf %s\n'
29882 as_echo_n='printf %s'
29883 else
29884 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29885 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29886 as_echo_n='/usr/ucb/echo -n'
29887 else
29888 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29889 as_echo_n_body='eval
29890 arg=$1;
29891 case $arg in #(
29892 *"$as_nl"*)
29893 expr "X$arg" : "X\\(.*\\)$as_nl";
29894 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29895 esac;
29896 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29898 export as_echo_n_body
29899 as_echo_n='sh -c $as_echo_n_body as_echo'
29901 export as_echo_body
29902 as_echo='sh -c $as_echo_body as_echo'
29905 # The user is always right.
29906 if test "${PATH_SEPARATOR+set}" != set; then
29907 PATH_SEPARATOR=:
29908 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29909 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29910 PATH_SEPARATOR=';'
29915 # IFS
29916 # We need space, tab and new line, in precisely that order. Quoting is
29917 # there to prevent editors from complaining about space-tab.
29918 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29919 # splitting by setting IFS to empty value.)
29920 IFS=" "" $as_nl"
29922 # Find who we are. Look in the path if we contain no directory separator.
29923 case $0 in #((
29924 *[\\/]* ) as_myself=$0 ;;
29925 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29926 for as_dir in $PATH
29928 IFS=$as_save_IFS
29929 test -z "$as_dir" && as_dir=.
29930 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29931 done
29932 IFS=$as_save_IFS
29935 esac
29936 # We did not find ourselves, most probably we were run as `sh COMMAND'
29937 # in which case we are not to be found in the path.
29938 if test "x$as_myself" = x; then
29939 as_myself=$0
29941 if test ! -f "$as_myself"; then
29942 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29943 exit 1
29946 # Unset variables that we do not need and which cause bugs (e.g. in
29947 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29948 # suppresses any "Segmentation fault" message there. '((' could
29949 # trigger a bug in pdksh 5.2.14.
29950 for as_var in BASH_ENV ENV MAIL MAILPATH
29951 do eval test x\${$as_var+set} = xset \
29952 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29953 done
29954 PS1='$ '
29955 PS2='> '
29956 PS4='+ '
29958 # NLS nuisances.
29959 LC_ALL=C
29960 export LC_ALL
29961 LANGUAGE=C
29962 export LANGUAGE
29964 # CDPATH.
29965 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29968 # as_fn_error ERROR [LINENO LOG_FD]
29969 # ---------------------------------
29970 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29971 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29972 # script with status $?, using 1 if that was 0.
29973 as_fn_error ()
29975 as_status=$?; test $as_status -eq 0 && as_status=1
29976 if test "$3"; then
29977 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29978 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29980 $as_echo "$as_me: error: $1" >&2
29981 as_fn_exit $as_status
29982 } # as_fn_error
29985 # as_fn_set_status STATUS
29986 # -----------------------
29987 # Set $? to STATUS, without forking.
29988 as_fn_set_status ()
29990 return $1
29991 } # as_fn_set_status
29993 # as_fn_exit STATUS
29994 # -----------------
29995 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29996 as_fn_exit ()
29998 set +e
29999 as_fn_set_status $1
30000 exit $1
30001 } # as_fn_exit
30003 # as_fn_unset VAR
30004 # ---------------
30005 # Portably unset VAR.
30006 as_fn_unset ()
30008 { eval $1=; unset $1;}
30010 as_unset=as_fn_unset
30011 # as_fn_append VAR VALUE
30012 # ----------------------
30013 # Append the text in VALUE to the end of the definition contained in VAR. Take
30014 # advantage of any shell optimizations that allow amortized linear growth over
30015 # repeated appends, instead of the typical quadratic growth present in naive
30016 # implementations.
30017 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30018 eval 'as_fn_append ()
30020 eval $1+=\$2
30022 else
30023 as_fn_append ()
30025 eval $1=\$$1\$2
30027 fi # as_fn_append
30029 # as_fn_arith ARG...
30030 # ------------------
30031 # Perform arithmetic evaluation on the ARGs, and store the result in the
30032 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30033 # must be portable across $(()) and expr.
30034 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30035 eval 'as_fn_arith ()
30037 as_val=$(( $* ))
30039 else
30040 as_fn_arith ()
30042 as_val=`expr "$@" || test $? -eq 1`
30044 fi # as_fn_arith
30047 if expr a : '\(a\)' >/dev/null 2>&1 &&
30048 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30049 as_expr=expr
30050 else
30051 as_expr=false
30054 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30055 as_basename=basename
30056 else
30057 as_basename=false
30060 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30061 as_dirname=dirname
30062 else
30063 as_dirname=false
30066 as_me=`$as_basename -- "$0" ||
30067 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30068 X"$0" : 'X\(//\)$' \| \
30069 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30070 $as_echo X/"$0" |
30071 sed '/^.*\/\([^/][^/]*\)\/*$/{
30072 s//\1/
30075 /^X\/\(\/\/\)$/{
30076 s//\1/
30079 /^X\/\(\/\).*/{
30080 s//\1/
30083 s/.*/./; q'`
30085 # Avoid depending upon Character Ranges.
30086 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30087 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30088 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30089 as_cr_digits='0123456789'
30090 as_cr_alnum=$as_cr_Letters$as_cr_digits
30092 ECHO_C= ECHO_N= ECHO_T=
30093 case `echo -n x` in #(((((
30094 -n*)
30095 case `echo 'xy\c'` in
30096 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30097 xy) ECHO_C='\c';;
30098 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30099 ECHO_T=' ';;
30100 esac;;
30102 ECHO_N='-n';;
30103 esac
30105 rm -f conf$$ conf$$.exe conf$$.file
30106 if test -d conf$$.dir; then
30107 rm -f conf$$.dir/conf$$.file
30108 else
30109 rm -f conf$$.dir
30110 mkdir conf$$.dir 2>/dev/null
30112 if (echo >conf$$.file) 2>/dev/null; then
30113 if ln -s conf$$.file conf$$ 2>/dev/null; then
30114 as_ln_s='ln -s'
30115 # ... but there are two gotchas:
30116 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30117 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30118 # In both cases, we have to default to `cp -p'.
30119 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30120 as_ln_s='cp -p'
30121 elif ln conf$$.file conf$$ 2>/dev/null; then
30122 as_ln_s=ln
30123 else
30124 as_ln_s='cp -p'
30126 else
30127 as_ln_s='cp -p'
30129 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30130 rmdir conf$$.dir 2>/dev/null
30133 # as_fn_mkdir_p
30134 # -------------
30135 # Create "$as_dir" as a directory, including parents if necessary.
30136 as_fn_mkdir_p ()
30139 case $as_dir in #(
30140 -*) as_dir=./$as_dir;;
30141 esac
30142 test -d "$as_dir" || eval $as_mkdir_p || {
30143 as_dirs=
30144 while :; do
30145 case $as_dir in #(
30146 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30147 *) as_qdir=$as_dir;;
30148 esac
30149 as_dirs="'$as_qdir' $as_dirs"
30150 as_dir=`$as_dirname -- "$as_dir" ||
30151 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30152 X"$as_dir" : 'X\(//\)[^/]' \| \
30153 X"$as_dir" : 'X\(//\)$' \| \
30154 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30155 $as_echo X"$as_dir" |
30156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30157 s//\1/
30160 /^X\(\/\/\)[^/].*/{
30161 s//\1/
30164 /^X\(\/\/\)$/{
30165 s//\1/
30168 /^X\(\/\).*/{
30169 s//\1/
30172 s/.*/./; q'`
30173 test -d "$as_dir" && break
30174 done
30175 test -z "$as_dirs" || eval "mkdir $as_dirs"
30176 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30179 } # as_fn_mkdir_p
30180 if mkdir -p . 2>/dev/null; then
30181 as_mkdir_p='mkdir -p "$as_dir"'
30182 else
30183 test -d ./-p && rmdir ./-p
30184 as_mkdir_p=false
30187 if test -x / >/dev/null 2>&1; then
30188 as_test_x='test -x'
30189 else
30190 if ls -dL / >/dev/null 2>&1; then
30191 as_ls_L_option=L
30192 else
30193 as_ls_L_option=
30195 as_test_x='
30196 eval sh -c '\''
30197 if test -d "$1"; then
30198 test -d "$1/.";
30199 else
30200 case $1 in #(
30201 -*)set "./$1";;
30202 esac;
30203 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30204 ???[sx]*):;;*)false;;esac;fi
30205 '\'' sh
30208 as_executable_p=$as_test_x
30210 # Sed expression to map a string onto a valid CPP name.
30211 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30213 # Sed expression to map a string onto a valid variable name.
30214 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30217 exec 6>&1
30218 ## ----------------------------------- ##
30219 ## Main body of $CONFIG_STATUS script. ##
30220 ## ----------------------------------- ##
30221 _ASEOF
30222 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30225 # Save the log message, to keep $0 and so on meaningful, and to
30226 # report actual input values of CONFIG_FILES etc. instead of their
30227 # values after options handling.
30228 ac_log="
30229 This file was extended by emacs $as_me 24.3.50, which was
30230 generated by GNU Autoconf 2.65. Invocation command line was
30232 CONFIG_FILES = $CONFIG_FILES
30233 CONFIG_HEADERS = $CONFIG_HEADERS
30234 CONFIG_LINKS = $CONFIG_LINKS
30235 CONFIG_COMMANDS = $CONFIG_COMMANDS
30236 $ $0 $@
30238 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30241 _ACEOF
30243 case $ac_config_files in *"
30244 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30245 esac
30247 case $ac_config_headers in *"
30248 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30249 esac
30252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30253 # Files that config.status was made for.
30254 config_files="$ac_config_files"
30255 config_headers="$ac_config_headers"
30256 config_commands="$ac_config_commands"
30258 _ACEOF
30260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30261 ac_cs_usage="\
30262 \`$as_me' instantiates files and other configuration actions
30263 from templates according to the current configuration. Unless the files
30264 and actions are specified as TAGs, all are instantiated by default.
30266 Usage: $0 [OPTION]... [TAG]...
30268 -h, --help print this help, then exit
30269 -V, --version print version number and configuration settings, then exit
30270 --config print configuration, then exit
30271 -q, --quiet, --silent
30272 do not print progress messages
30273 -d, --debug don't remove temporary files
30274 --recheck update $as_me by reconfiguring in the same conditions
30275 --file=FILE[:TEMPLATE]
30276 instantiate the configuration file FILE
30277 --header=FILE[:TEMPLATE]
30278 instantiate the configuration header FILE
30280 Configuration files:
30281 $config_files
30283 Configuration headers:
30284 $config_headers
30286 Configuration commands:
30287 $config_commands
30289 Report bugs to the package provider."
30291 _ACEOF
30292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30293 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30294 ac_cs_version="\\
30295 emacs config.status 24.3.50
30296 configured by $0, generated by GNU Autoconf 2.65,
30297 with options \\"\$ac_cs_config\\"
30299 Copyright (C) 2009 Free Software Foundation, Inc.
30300 This config.status script is free software; the Free Software Foundation
30301 gives unlimited permission to copy, distribute and modify it."
30303 ac_pwd='$ac_pwd'
30304 srcdir='$srcdir'
30305 INSTALL='$INSTALL'
30306 MKDIR_P='$MKDIR_P'
30307 AWK='$AWK'
30308 test -n "\$AWK" || AWK=awk
30309 _ACEOF
30311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30312 # The default lists apply if the user does not specify any file.
30313 ac_need_defaults=:
30314 while test $# != 0
30316 case $1 in
30317 --*=*)
30318 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30319 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30320 ac_shift=:
30323 ac_option=$1
30324 ac_optarg=$2
30325 ac_shift=shift
30327 esac
30329 case $ac_option in
30330 # Handling of the options.
30331 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30332 ac_cs_recheck=: ;;
30333 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30334 $as_echo "$ac_cs_version"; exit ;;
30335 --config | --confi | --conf | --con | --co | --c )
30336 $as_echo "$ac_cs_config"; exit ;;
30337 --debug | --debu | --deb | --de | --d | -d )
30338 debug=: ;;
30339 --file | --fil | --fi | --f )
30340 $ac_shift
30341 case $ac_optarg in
30342 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30343 esac
30344 as_fn_append CONFIG_FILES " '$ac_optarg'"
30345 ac_need_defaults=false;;
30346 --header | --heade | --head | --hea )
30347 $ac_shift
30348 case $ac_optarg in
30349 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30350 esac
30351 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30352 ac_need_defaults=false;;
30353 --he | --h)
30354 # Conflict between --help and --header
30355 as_fn_error "ambiguous option: \`$1'
30356 Try \`$0 --help' for more information.";;
30357 --help | --hel | -h )
30358 $as_echo "$ac_cs_usage"; exit ;;
30359 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30360 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30361 ac_cs_silent=: ;;
30363 # This is an error.
30364 -*) as_fn_error "unrecognized option: \`$1'
30365 Try \`$0 --help' for more information." ;;
30367 *) as_fn_append ac_config_targets " $1"
30368 ac_need_defaults=false ;;
30370 esac
30371 shift
30372 done
30374 ac_configure_extra_args=
30376 if $ac_cs_silent; then
30377 exec 6>/dev/null
30378 ac_configure_extra_args="$ac_configure_extra_args --silent"
30381 _ACEOF
30382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30383 if \$ac_cs_recheck; then
30384 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30385 shift
30386 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30387 CONFIG_SHELL='$SHELL'
30388 export CONFIG_SHELL
30389 exec "\$@"
30392 _ACEOF
30393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30394 exec 5>>config.log
30396 echo
30397 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30398 ## Running $as_me. ##
30399 _ASBOX
30400 $as_echo "$ac_log"
30401 } >&5
30403 _ACEOF
30404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30406 # INIT-COMMANDS
30408 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30409 GCC="$GCC" CPPFLAGS="$CPPFLAGS" opsys="$opsys"
30411 _ACEOF
30413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30415 # Handling of arguments.
30416 for ac_config_target in $ac_config_targets
30418 case $ac_config_target in
30419 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
30420 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30421 "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" ;;
30422 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
30423 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
30424 "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" ;;
30425 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30426 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
30427 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
30428 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
30429 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
30430 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
30431 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
30432 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
30433 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30434 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
30435 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
30436 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
30437 "nextstep/Makefile") CONFIG_FILES="$CONFIG_FILES nextstep/Makefile" ;;
30438 "nt/Makefile") CONFIG_FILES="$CONFIG_FILES nt/Makefile" ;;
30439 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
30440 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
30441 "src/epaths.h") CONFIG_COMMANDS="$CONFIG_COMMANDS src/epaths.h" ;;
30442 "src/.gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS src/.gdbinit" ;;
30444 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30445 esac
30446 done
30449 # If the user did not use the arguments to specify the items to instantiate,
30450 # then the envvar interface is used. Set only those that are not.
30451 # We use the long form for the default assignment because of an extremely
30452 # bizarre bug on SunOS 4.1.3.
30453 if $ac_need_defaults; then
30454 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30455 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30456 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30459 # Have a temporary directory for convenience. Make it in the build tree
30460 # simply because there is no reason against having it here, and in addition,
30461 # creating and moving files from /tmp can sometimes cause problems.
30462 # Hook for its removal unless debugging.
30463 # Note that there is a small window in which the directory will not be cleaned:
30464 # after its creation but before its name has been assigned to `$tmp'.
30465 $debug ||
30467 tmp=
30468 trap 'exit_status=$?
30469 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30471 trap 'as_fn_exit 1' 1 2 13 15
30473 # Create a (secure) tmp directory for tmp files.
30476 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30477 test -n "$tmp" && test -d "$tmp"
30478 } ||
30480 tmp=./conf$$-$RANDOM
30481 (umask 077 && mkdir "$tmp")
30482 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30484 # Set up the scripts for CONFIG_FILES section.
30485 # No need to generate them if there are no CONFIG_FILES.
30486 # This happens for instance with `./config.status config.h'.
30487 if test -n "$CONFIG_FILES"; then
30489 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30490 ac_cs_awk_getline=:
30491 ac_cs_awk_pipe_init=
30492 ac_cs_awk_read_file='
30493 while ((getline aline < (F[key])) > 0)
30494 print(aline)
30495 close(F[key])'
30496 ac_cs_awk_pipe_fini=
30497 else
30498 ac_cs_awk_getline=false
30499 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30500 ac_cs_awk_read_file='
30501 print "|#_!!_#|"
30502 print "cat " F[key] " &&"
30503 '$ac_cs_awk_pipe_init
30504 # The final `:' finishes the AND list.
30505 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30507 ac_cr=`echo X | tr X '\015'`
30508 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30509 # But we know of no other shell where ac_cr would be empty at this
30510 # point, so we can use a bashism as a fallback.
30511 if test "x$ac_cr" = x; then
30512 eval ac_cr=\$\'\\r\'
30514 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30515 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30516 ac_cs_awk_cr='\r'
30517 else
30518 ac_cs_awk_cr=$ac_cr
30521 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30522 _ACEOF
30524 # Create commands to substitute file output variables.
30526 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30527 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30528 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30529 echo "_ACAWK" &&
30530 echo "_ACEOF"
30531 } >conf$$files.sh &&
30532 . ./conf$$files.sh ||
30533 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30534 rm -f conf$$files.sh
30537 echo "cat >conf$$subs.awk <<_ACEOF" &&
30538 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30539 echo "_ACEOF"
30540 } >conf$$subs.sh ||
30541 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30542 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30543 ac_delim='%!_!# '
30544 for ac_last_try in false false false false false :; do
30545 . ./conf$$subs.sh ||
30546 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30548 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30549 if test $ac_delim_n = $ac_delim_num; then
30550 break
30551 elif $ac_last_try; then
30552 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30553 else
30554 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30556 done
30557 rm -f conf$$subs.sh
30559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30560 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30561 _ACEOF
30562 sed -n '
30564 s/^/S["/; s/!.*/"]=/
30567 s/^[^!]*!//
30568 :repl
30569 t repl
30570 s/'"$ac_delim"'$//
30571 t delim
30574 s/\(.\{148\}\)..*/\1/
30575 t more1
30576 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30579 b repl
30580 :more1
30581 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30584 s/.\{148\}//
30585 t nl
30586 :delim
30588 s/\(.\{148\}\)..*/\1/
30589 t more2
30590 s/["\\]/\\&/g; s/^/"/; s/$/"/
30593 :more2
30594 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30597 s/.\{148\}//
30598 t delim
30599 ' <conf$$subs.awk | sed '
30600 /^[^""]/{
30602 s/\n//
30604 ' >>$CONFIG_STATUS || ac_write_fail=1
30605 rm -f conf$$subs.awk
30606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30607 _ACAWK
30608 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30609 for (key in S) S_is_set[key] = 1
30610 FS = "\a"
30611 \$ac_cs_awk_pipe_init
30614 line = $ 0
30615 nfields = split(line, field, "@")
30616 substed = 0
30617 len = length(field[1])
30618 for (i = 2; i < nfields; i++) {
30619 key = field[i]
30620 keylen = length(key)
30621 if (S_is_set[key]) {
30622 value = S[key]
30623 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30624 len += length(value) + length(field[++i])
30625 substed = 1
30626 } else
30627 len += 1 + keylen
30629 if (nfields == 3 && !substed) {
30630 key = field[2]
30631 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30632 \$ac_cs_awk_read_file
30633 next
30636 print line
30638 \$ac_cs_awk_pipe_fini
30639 _ACAWK
30640 _ACEOF
30641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30642 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30643 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30644 else
30646 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30647 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30648 _ACEOF
30650 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30651 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30652 # trailing colons and then remove the whole line if VPATH becomes empty
30653 # (actually we leave an empty line to preserve line numbers).
30654 if test "x$srcdir" = x.; then
30655 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30656 s/:*\$(srcdir):*/:/
30657 s/:*\${srcdir}:*/:/
30658 s/:*@srcdir@:*/:/
30659 s/^\([^=]*=[ ]*\):*/\1/
30660 s/:*$//
30661 s/^[^=]*=[ ]*$//
30665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30666 fi # test -n "$CONFIG_FILES"
30668 # Set up the scripts for CONFIG_HEADERS section.
30669 # No need to generate them if there are no CONFIG_HEADERS.
30670 # This happens for instance with `./config.status Makefile'.
30671 if test -n "$CONFIG_HEADERS"; then
30672 cat >"$tmp/defines.awk" <<\_ACAWK ||
30673 BEGIN {
30674 _ACEOF
30676 # Transform confdefs.h into an awk script `defines.awk', embedded as
30677 # here-document in config.status, that substitutes the proper values into
30678 # config.h.in to produce config.h.
30680 # Create a delimiter string that does not exist in confdefs.h, to ease
30681 # handling of long lines.
30682 ac_delim='%!_!# '
30683 for ac_last_try in false false :; do
30684 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30685 if test -z "$ac_t"; then
30686 break
30687 elif $ac_last_try; then
30688 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30689 else
30690 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30692 done
30694 # For the awk script, D is an array of macro values keyed by name,
30695 # likewise P contains macro parameters if any. Preserve backslash
30696 # newline sequences.
30698 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30699 sed -n '
30700 s/.\{148\}/&'"$ac_delim"'/g
30701 t rset
30702 :rset
30703 s/^[ ]*#[ ]*define[ ][ ]*/ /
30704 t def
30706 :def
30707 s/\\$//
30708 t bsnl
30709 s/["\\]/\\&/g
30710 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30711 D["\1"]=" \3"/p
30712 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30714 :bsnl
30715 s/["\\]/\\&/g
30716 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30717 D["\1"]=" \3\\\\\\n"\\/p
30718 t cont
30719 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30720 t cont
30722 :cont
30724 s/.\{148\}/&'"$ac_delim"'/g
30725 t clear
30726 :clear
30727 s/\\$//
30728 t bsnlc
30729 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30731 :bsnlc
30732 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30733 b cont
30734 ' <confdefs.h | sed '
30735 s/'"$ac_delim"'/"\\\
30736 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30739 for (key in D) D_is_set[key] = 1
30740 FS = "\a"
30742 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30743 line = \$ 0
30744 split(line, arg, " ")
30745 if (arg[1] == "#") {
30746 defundef = arg[2]
30747 mac1 = arg[3]
30748 } else {
30749 defundef = substr(arg[1], 2)
30750 mac1 = arg[2]
30752 split(mac1, mac2, "(") #)
30753 macro = mac2[1]
30754 prefix = substr(line, 1, index(line, defundef) - 1)
30755 if (D_is_set[macro]) {
30756 # Preserve the white space surrounding the "#".
30757 print prefix "define", macro P[macro] D[macro]
30758 next
30759 } else {
30760 # Replace #undef with comments. This is necessary, for example,
30761 # in the case of _POSIX_SOURCE, which is predefined and required
30762 # on some systems where configure will not decide to define it.
30763 if (defundef == "undef") {
30764 print "/*", prefix defundef, macro, "*/"
30765 next
30769 { print }
30770 _ACAWK
30771 _ACEOF
30772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30773 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30774 fi # test -n "$CONFIG_HEADERS"
30777 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
30778 shift
30779 for ac_tag
30781 case $ac_tag in
30782 :[FHLC]) ac_mode=$ac_tag; continue;;
30783 esac
30784 case $ac_mode$ac_tag in
30785 :[FHL]*:*);;
30786 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30787 :[FH]-) ac_tag=-:-;;
30788 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30789 esac
30790 ac_save_IFS=$IFS
30791 IFS=:
30792 set x $ac_tag
30793 IFS=$ac_save_IFS
30794 shift
30795 ac_file=$1
30796 shift
30798 case $ac_mode in
30799 :L) ac_source=$1;;
30800 :[FH])
30801 ac_file_inputs=
30802 for ac_f
30804 case $ac_f in
30805 -) ac_f="$tmp/stdin";;
30806 *) # Look for the file first in the build tree, then in the source tree
30807 # (if the path is not absolute). The absolute path cannot be DOS-style,
30808 # because $ac_f cannot contain `:'.
30809 test -f "$ac_f" ||
30810 case $ac_f in
30811 [\\/$]*) false;;
30812 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30813 esac ||
30814 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30815 esac
30816 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30817 as_fn_append ac_file_inputs " '$ac_f'"
30818 done
30820 # Let's still pretend it is `configure' which instantiates (i.e., don't
30821 # use $as_me), people would be surprised to read:
30822 # /* config.h. Generated by config.status. */
30823 configure_input='Generated from '`
30824 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30825 `' by configure.'
30826 if test x"$ac_file" != x-; then
30827 configure_input="$ac_file. $configure_input"
30828 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30829 $as_echo "$as_me: creating $ac_file" >&6;}
30831 # Neutralize special characters interpreted by sed in replacement strings.
30832 case $configure_input in #(
30833 *\&* | *\|* | *\\* )
30834 ac_sed_conf_input=`$as_echo "$configure_input" |
30835 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30836 *) ac_sed_conf_input=$configure_input;;
30837 esac
30839 case $ac_tag in
30840 *:-:* | *:-) cat >"$tmp/stdin" \
30841 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30842 esac
30844 esac
30846 ac_dir=`$as_dirname -- "$ac_file" ||
30847 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30848 X"$ac_file" : 'X\(//\)[^/]' \| \
30849 X"$ac_file" : 'X\(//\)$' \| \
30850 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30851 $as_echo X"$ac_file" |
30852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30853 s//\1/
30856 /^X\(\/\/\)[^/].*/{
30857 s//\1/
30860 /^X\(\/\/\)$/{
30861 s//\1/
30864 /^X\(\/\).*/{
30865 s//\1/
30868 s/.*/./; q'`
30869 as_dir="$ac_dir"; as_fn_mkdir_p
30870 ac_builddir=.
30872 case "$ac_dir" in
30873 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30875 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30876 # A ".." for each directory in $ac_dir_suffix.
30877 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30878 case $ac_top_builddir_sub in
30879 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30880 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30881 esac ;;
30882 esac
30883 ac_abs_top_builddir=$ac_pwd
30884 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30885 # for backward compatibility:
30886 ac_top_builddir=$ac_top_build_prefix
30888 case $srcdir in
30889 .) # We are building in place.
30890 ac_srcdir=.
30891 ac_top_srcdir=$ac_top_builddir_sub
30892 ac_abs_top_srcdir=$ac_pwd ;;
30893 [\\/]* | ?:[\\/]* ) # Absolute name.
30894 ac_srcdir=$srcdir$ac_dir_suffix;
30895 ac_top_srcdir=$srcdir
30896 ac_abs_top_srcdir=$srcdir ;;
30897 *) # Relative name.
30898 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30899 ac_top_srcdir=$ac_top_build_prefix$srcdir
30900 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30901 esac
30902 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30905 case $ac_mode in
30908 # CONFIG_FILE
30911 case $INSTALL in
30912 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30913 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30914 esac
30915 ac_MKDIR_P=$MKDIR_P
30916 case $MKDIR_P in
30917 [\\/$]* | ?:[\\/]* ) ;;
30918 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30919 esac
30920 _ACEOF
30922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30923 # If the template does not know about datarootdir, expand it.
30924 # FIXME: This hack should be removed a few years after 2.60.
30925 ac_datarootdir_hack=; ac_datarootdir_seen=
30926 ac_sed_dataroot='
30927 /datarootdir/ {
30931 /@datadir@/p
30932 /@docdir@/p
30933 /@infodir@/p
30934 /@localedir@/p
30935 /@mandir@/p'
30936 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30937 *datarootdir*) ac_datarootdir_seen=yes;;
30938 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30940 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30941 _ACEOF
30942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30943 ac_datarootdir_hack='
30944 s&@datadir@&$datadir&g
30945 s&@docdir@&$docdir&g
30946 s&@infodir@&$infodir&g
30947 s&@localedir@&$localedir&g
30948 s&@mandir@&$mandir&g
30949 s&\\\${datarootdir}&$datarootdir&g' ;;
30950 esac
30951 _ACEOF
30953 # Neutralize VPATH when `$srcdir' = `.'.
30954 # Shell code in configure.ac might set extrasub.
30955 # FIXME: do we really want to maintain this feature?
30956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30957 ac_sed_extra="$ac_vpsub
30958 $extrasub
30959 _ACEOF
30960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30962 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30963 s|@configure_input@|$ac_sed_conf_input|;t t
30964 s&@top_builddir@&$ac_top_builddir_sub&;t t
30965 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30966 s&@srcdir@&$ac_srcdir&;t t
30967 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30968 s&@top_srcdir@&$ac_top_srcdir&;t t
30969 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30970 s&@builddir@&$ac_builddir&;t t
30971 s&@abs_builddir@&$ac_abs_builddir&;t t
30972 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30973 s&@INSTALL@&$ac_INSTALL&;t t
30974 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30975 $ac_datarootdir_hack
30977 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30978 if $ac_cs_awk_getline; then
30979 $AWK -f "$tmp/subs.awk"
30980 else
30981 $AWK -f "$tmp/subs.awk" | $SHELL
30982 fi >$tmp/out \
30983 || as_fn_error "could not create $ac_file" "$LINENO" 5
30985 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30986 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30987 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30989 which seems to be undefined. Please make sure it is defined." >&5
30990 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30991 which seems to be undefined. Please make sure it is defined." >&2;}
30993 rm -f "$tmp/stdin"
30994 case $ac_file in
30995 -) cat "$tmp/out" && rm -f "$tmp/out";;
30996 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30997 esac \
30998 || as_fn_error "could not create $ac_file" "$LINENO" 5
31002 # CONFIG_HEADER
31004 if test x"$ac_file" != x-; then
31006 $as_echo "/* $configure_input */" \
31007 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31008 } >"$tmp/config.h" \
31009 || as_fn_error "could not create $ac_file" "$LINENO" 5
31010 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31011 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31012 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31013 else
31014 rm -f "$ac_file"
31015 mv "$tmp/config.h" "$ac_file" \
31016 || as_fn_error "could not create $ac_file" "$LINENO" 5
31018 else
31019 $as_echo "/* $configure_input */" \
31020 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31021 || as_fn_error "could not create -" "$LINENO" 5
31023 # Compute "$ac_file"'s index in $config_headers.
31024 _am_arg="$ac_file"
31025 _am_stamp_count=1
31026 for _am_header in $config_headers :; do
31027 case $_am_header in
31028 $_am_arg | $_am_arg:* )
31029 break ;;
31031 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31032 esac
31033 done
31034 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
31035 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31036 X"$_am_arg" : 'X\(//\)[^/]' \| \
31037 X"$_am_arg" : 'X\(//\)$' \| \
31038 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
31039 $as_echo X"$_am_arg" |
31040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31041 s//\1/
31044 /^X\(\/\/\)[^/].*/{
31045 s//\1/
31048 /^X\(\/\/\)$/{
31049 s//\1/
31052 /^X\(\/\).*/{
31053 s//\1/
31056 s/.*/./; q'`/stamp-h$_am_stamp_count
31059 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31060 $as_echo "$as_me: executing $ac_file commands" >&6;}
31062 esac
31065 case $ac_file$ac_mode in
31066 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
31067 # Autoconf 2.62 quotes --file arguments for eval, but not when files
31068 # are listed without --file. Let's play safe and only enable the eval
31069 # if we detect the quoting.
31070 case $CONFIG_FILES in
31071 *\'*) eval set x "$CONFIG_FILES" ;;
31072 *) set x $CONFIG_FILES ;;
31073 esac
31074 shift
31075 for mf
31077 # Strip MF so we end up with the name of the file.
31078 mf=`echo "$mf" | sed -e 's/:.*$//'`
31079 # Check whether this is an Automake generated Makefile or not.
31080 # We used to match only the files named `Makefile.in', but
31081 # some people rename them; so instead we look at the file content.
31082 # Grep'ing the first line is not enough: some people post-process
31083 # each Makefile.in and add a new line on top of each file to say so.
31084 # Grep'ing the whole file is not good either: AIX grep has a line
31085 # limit of 2048, but all sed's we know have understand at least 4000.
31086 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
31087 dirpart=`$as_dirname -- "$mf" ||
31088 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31089 X"$mf" : 'X\(//\)[^/]' \| \
31090 X"$mf" : 'X\(//\)$' \| \
31091 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31092 $as_echo X"$mf" |
31093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31094 s//\1/
31097 /^X\(\/\/\)[^/].*/{
31098 s//\1/
31101 /^X\(\/\/\)$/{
31102 s//\1/
31105 /^X\(\/\).*/{
31106 s//\1/
31109 s/.*/./; q'`
31110 else
31111 continue
31113 # Extract the definition of DEPDIR, am__include, and am__quote
31114 # from the Makefile without running `make'.
31115 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31116 test -z "$DEPDIR" && continue
31117 am__include=`sed -n 's/^am__include = //p' < "$mf"`
31118 test -z "am__include" && continue
31119 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31120 # When using ansi2knr, U may be empty or an underscore; expand it
31121 U=`sed -n 's/^U = //p' < "$mf"`
31122 # Find all dependency output files, they are included files with
31123 # $(DEPDIR) in their names. We invoke sed twice because it is the
31124 # simplest approach to changing $(DEPDIR) to its actual value in the
31125 # expansion.
31126 for file in `sed -n "
31127 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31128 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31129 # Make sure the directory exists.
31130 test -f "$dirpart/$file" && continue
31131 fdir=`$as_dirname -- "$file" ||
31132 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31133 X"$file" : 'X\(//\)[^/]' \| \
31134 X"$file" : 'X\(//\)$' \| \
31135 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31136 $as_echo X"$file" |
31137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31138 s//\1/
31141 /^X\(\/\/\)[^/].*/{
31142 s//\1/
31145 /^X\(\/\/\)$/{
31146 s//\1/
31149 /^X\(\/\).*/{
31150 s//\1/
31153 s/.*/./; q'`
31154 as_dir=$dirpart/$fdir; as_fn_mkdir_p
31155 # echo "creating $dirpart/$file"
31156 echo '# dummy' > "$dirpart/$file"
31157 done
31158 done
31161 "src/epaths.h":C)
31162 if test "${opsys}" = "mingw32"; then
31163 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force-w32
31164 else
31165 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force
31168 "src/.gdbinit":C)
31169 if test ! -f src/.gdbinit && test -f "$srcdir/src/.gdbinit"; then
31170 echo "source $srcdir/src/.gdbinit" > src/.gdbinit
31174 esac
31175 done # for ac_tag
31178 as_fn_exit 0
31179 _ACEOF
31180 ac_clean_files=$ac_clean_files_save
31182 test $ac_write_fail = 0 ||
31183 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31186 # configure is writing to config.log, and then calls config.status.
31187 # config.status does its own redirection, appending to config.log.
31188 # Unfortunately, on DOS this fails, as config.log is still kept open
31189 # by configure, so config.status won't be able to write to it; its
31190 # output is simply discarded. So we exec the FD to /dev/null,
31191 # effectively closing config.log, so it can be properly (re)opened and
31192 # appended to by config.status. When coming back to configure, we
31193 # need to make the FD available again.
31194 if test "$no_create" != yes; then
31195 ac_cs_success=:
31196 ac_config_status_args=
31197 test "$silent" = yes &&
31198 ac_config_status_args="$ac_config_status_args --quiet"
31199 exec 5>/dev/null
31200 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31201 exec 5>>config.log
31202 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31203 # would make configure fail if this is the last instruction.
31204 $ac_cs_success || as_fn_exit $?
31206 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31208 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}